diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 5d62c87..c34546b 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: f28179cc-ef59-426d-9e85-60cec22fc642 management: docChecksum: 4e9799bd93fdf4959c9efd6004900847 docVersion: 0.0.1 - speakeasyVersion: 1.310.0 - generationVersion: 2.347.4 - releaseVersion: 0.30.0 - configChecksum: 3a10eead6c2e202b51efca6e91e3a3c5 + speakeasyVersion: 1.313.0 + generationVersion: 2.347.8 + releaseVersion: 0.30.1 + configChecksum: cac24fa351193e38d0c0de1fb515e0a1 repoURL: https://github.com/dubinc/dub-node.git installationURL: https://github.com/dubinc/dub-node published: true @@ -14,7 +14,7 @@ features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.5 - core: 3.10.0 + core: 3.10.1 deprecations: 2.81.1 examples: 2.81.4 flattening: 2.81.1 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c4131a4..8bf6197 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.30.0 + version: 0.30.1 additionalDependencies: dependencies: {} devDependencies: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9fc994f..79be23e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.310.0 +speakeasyVersion: 1.313.0 sources: my-first-source: sourceNamespace: my-first-source - sourceRevisionDigest: sha256:d8364283c60870cb9f54133d096e7823722e4160e52eeb3db8cc2f7d90d96e65 - sourceBlobDigest: sha256:52de37a2a76e00df27b42df8fdfa2db162c0932baec6a3eeb8659f4306f5f9b5 + sourceRevisionDigest: sha256:580766149ac00dbd6366ec82f1f89b0b46ec48577ee4498f289d2037489c528f + sourceBlobDigest: sha256:62970863bdbbe43757830e6930f28636b2a80cd64964af9b63c88c7c12995697 tags: - latest - main @@ -11,8 +11,8 @@ targets: my-first-target: source: my-first-source sourceNamespace: my-first-source - sourceRevisionDigest: sha256:d8364283c60870cb9f54133d096e7823722e4160e52eeb3db8cc2f7d90d96e65 - sourceBlobDigest: sha256:52de37a2a76e00df27b42df8fdfa2db162c0932baec6a3eeb8659f4306f5f9b5 + sourceRevisionDigest: sha256:580766149ac00dbd6366ec82f1f89b0b46ec48577ee4498f289d2037489c528f + sourceBlobDigest: sha256:62970863bdbbe43757830e6930f28636b2a80cd64964af9b63c88c7c12995697 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index f7761ae..3489d4b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -466,4 +466,14 @@ Based on: ### Generated - [typescript v0.30.0] . ### Releases -- [NPM v0.30.0] https://www.npmjs.com/package/dub/v/0.30.0 - . \ No newline at end of file +- [NPM v0.30.0] https://www.npmjs.com/package/dub/v/0.30.0 - . + +## 2024-06-21 01:17:43 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.313.0 (2.347.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.30.1] . +### Releases +- [NPM v0.30.1] https://www.npmjs.com/package/dub/v/0.30.1 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 33a3baf..7d4ed71 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,11 +3,11 @@ info: title: CodeSamples overlay for typescript target version: 0.0.0 actions: - - target: $["paths"]["/links"]["post"] + - target: $["paths"]["/links/{linkId}"]["patch"] update: "x-codeSamples": - "lang": "typescript" - "label": "createLink" + "label": "updateLink" "source": |- import { Dub } from "dub"; @@ -16,7 +16,7 @@ actions: }); async function run() { - const result = await dub.links.create({ + const result = await dub.links.update("", { url: "https://google/com", }); @@ -24,68 +24,6 @@ actions: console.log(result) } - run(); - - target: $["paths"]["/links/upsert"]["put"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "upsertLink" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.links.upsert({ - url: "https://google/com", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/links"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getLinks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.links.list({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "retrieveAnalytics" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.analytics.retrieve({}); - - // Handle the result - console.log(result) - } - run(); - target: $["paths"]["/workspaces"]["post"] update: @@ -110,11 +48,11 @@ actions: } run(); - - target: $["paths"]["/tags"]["get"] + - target: $["paths"]["/tags"]["post"] update: "x-codeSamples": - "lang": "typescript" - "label": "getTags" + "label": "createTag" "source": |- import { Dub } from "dub"; @@ -123,48 +61,8 @@ actions: }); async function run() { - const result = await dub.tags.list({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/domains/{slug}"]["patch"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "updateDomain" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.domains.update("acme.com", {}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/track/customer"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "trackCustomer" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.track.customer({ - customerId: "", + const result = await dub.tags.create({ + tag: "", }); // Handle the result @@ -172,11 +70,11 @@ actions: } run(); - - target: $["paths"]["/links/count"]["get"] + - target: $["paths"]["/domains"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getLinksCount" + "label": "listDomains" "source": |- import { Dub } from "dub"; @@ -185,18 +83,18 @@ actions: }); async function run() { - const result = await dub.links.count({}); + const result = await dub.domains.list({}); // Handle the result console.log(result) } run(); - - target: $["paths"]["/links/info"]["get"] + - target: $["paths"]["/metatags"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getLinkInfo" + "label": "getMetatags" "source": |- import { Dub } from "dub"; @@ -205,7 +103,31 @@ actions: }); async function run() { - const result = await dub.links.get({}); + const result = await dub.metatags.get({ + url: "https://dub.co", + }); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/links/upsert"]["put"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "upsertLink" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.links.upsert({ + url: "https://google/com", + }); // Handle the result console.log(result) @@ -253,28 +175,6 @@ actions: console.log(result) } - run(); - - target: $["paths"]["/domains"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "createDomain" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.domains.create({ - slug: "acme.com", - }); - - // Handle the result - console.log(result) - } - run(); - target: $["paths"]["/domains/{slug}"]["delete"] update: @@ -295,6 +195,26 @@ actions: console.log(result) } + run(); + - target: $["paths"]["/domains/{slug}"]["patch"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "updateDomain" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.domains.update("acme.com", {}); + + // Handle the result + console.log(result) + } + run(); - target: $["paths"]["/domains/{slug}/transfer"]["post"] update: @@ -317,6 +237,30 @@ actions: console.log(result) } + run(); + - target: $["paths"]["/track/lead"]["post"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "trackLead" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.track.lead({ + clickId: "", + eventName: "Sign up", + customerId: "", + }); + + // Handle the result + console.log(result) + } + run(); - target: $["paths"]["/track/sale"]["post"] update: @@ -325,7 +269,6 @@ actions: "label": "trackSale" "source": |- import { Dub } from "dub"; - import { PaymentProcessor } from "dub/models/operations"; const dub = new Dub({ token: "DUB_API_KEY", @@ -335,7 +278,7 @@ actions: const result = await dub.track.sale({ customerId: "", amount: 996500, - paymentProcessor: PaymentProcessor.Shopify, + paymentProcessor: "shopify", }); // Handle the result @@ -343,11 +286,11 @@ actions: } run(); - - target: $["paths"]["/links/{linkId}"]["patch"] + - target: $["paths"]["/links/count"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "updateLink" + "label": "getLinksCount" "source": |- import { Dub } from "dub"; @@ -356,14 +299,134 @@ actions: }); async function run() { - const result = await dub.links.update("", { - url: "https://google/com", + const result = await dub.links.count({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/links/info"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getLinkInfo" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.links.get({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "retrieveAnalytics" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.analytics.retrieve({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/tags"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getTags" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.tags.list({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/domains/{slug}/primary"]["post"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "setPrimaryDomain" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.domains.setPrimary("acme.com"); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/track/customer"]["post"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "trackCustomer" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.track.customer({ + customerId: "", }); // Handle the result console.log(result) } + run(); + - target: $["paths"]["/links"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getLinks" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + }); + + async function run() { + const result = await dub.links.list({}); + + // Handle the result + console.log(result) + } + run(); - target: $["paths"]["/links/bulk"]["post"] update: @@ -409,11 +472,11 @@ actions: } run(); - - target: $["paths"]["/domains/{slug}/primary"]["post"] + - target: $["paths"]["/domains"]["post"] update: "x-codeSamples": - "lang": "typescript" - "label": "setPrimaryDomain" + "label": "createDomain" "source": |- import { Dub } from "dub"; @@ -422,18 +485,20 @@ actions: }); async function run() { - const result = await dub.domains.setPrimary("acme.com"); + const result = await dub.domains.create({ + slug: "acme.com", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/metatags"]["get"] + - target: $["paths"]["/links"]["post"] update: "x-codeSamples": - "lang": "typescript" - "label": "getMetatags" + "label": "createLink" "source": |- import { Dub } from "dub"; @@ -442,8 +507,8 @@ actions: }); async function run() { - const result = await dub.metatags.get({ - url: "https://dub.co", + const result = await dub.links.create({ + url: "https://google/com", }); // Handle the result @@ -472,70 +537,4 @@ actions: console.log(result) } - run(); - - target: $["paths"]["/tags"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "createTag" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.tags.create({ - tag: "", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/domains"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "listDomains" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.domains.list({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/track/lead"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "trackLead" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - }); - - async function run() { - const result = await dub.track.lead({ - clickId: "", - eventName: "Sign up", - customerId: "", - }); - - // Handle the result - console.log(result) - } - run(); diff --git a/docs/sdks/track/README.md b/docs/sdks/track/README.md index b60b521..cf0f464 100644 --- a/docs/sdks/track/README.md +++ b/docs/sdks/track/README.md @@ -69,7 +69,6 @@ Track a sale for a short link. ```typescript import { Dub } from "dub"; -import { PaymentProcessor } from "dub/models/operations"; const dub = new Dub({ token: "DUB_API_KEY", @@ -79,7 +78,7 @@ async function run() { const result = await dub.track.sale({ customerId: "", amount: 996500, - paymentProcessor: PaymentProcessor.Shopify, + paymentProcessor: "shopify", }); // Handle the result diff --git a/jsr.json b/jsr.json index 8349491..88a2e38 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "dub", - "version": "0.30.0", + "version": "0.30.1", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 3891060..c33ef0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dub", - "version": "0.30.0", + "version": "0.30.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dub", - "version": "0.30.0", + "version": "0.30.1", "devDependencies": { "@types/jsonpath": "^0.2.4", "@types/node": "^20.12.7", diff --git a/package.json b/package.json index ffa8223..97b5aa2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dub", - "version": "0.30.0", + "version": "0.30.1", "author": "Dub", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index ba8279c..f083078 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "0.30.0", - genVersion: "2.347.4", - userAgent: "speakeasy-sdk/typescript 0.30.0 2.347.4 0.0.1 dub", + sdkVersion: "0.30.1", + genVersion: "2.347.8", + userAgent: "speakeasy-sdk/typescript 0.30.1 2.347.8 0.0.1 dub", } as const; diff --git a/src/sdk/analytics.ts b/src/sdk/analytics.ts index 720d391..f2dd0b1 100644 --- a/src/sdk/analytics.ts +++ b/src/sdk/analytics.ts @@ -147,8 +147,8 @@ export class Analytics extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; diff --git a/src/sdk/domains.ts b/src/sdk/domains.ts index 0005b8f..02f7848 100644 --- a/src/sdk/domains.ts +++ b/src/sdk/domains.ts @@ -126,8 +126,8 @@ export class Domains extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -224,8 +224,8 @@ export class Domains extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -325,8 +325,8 @@ export class Domains extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -429,8 +429,8 @@ export class Domains extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -527,8 +527,8 @@ export class Domains extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -631,8 +631,8 @@ export class Domains extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; diff --git a/src/sdk/links.ts b/src/sdk/links.ts index 8abff46..39cd945 100644 --- a/src/sdk/links.ts +++ b/src/sdk/links.ts @@ -143,8 +143,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -241,8 +241,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -346,8 +346,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -446,8 +446,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -550,8 +550,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -657,8 +657,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -755,8 +755,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -853,8 +853,8 @@ export class Links extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; diff --git a/src/sdk/qrcodes.ts b/src/sdk/qrcodes.ts index f353b87..5cdf7e1 100644 --- a/src/sdk/qrcodes.ts +++ b/src/sdk/qrcodes.ts @@ -129,8 +129,8 @@ export class QRCodes extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; diff --git a/src/sdk/tags.ts b/src/sdk/tags.ts index 80fdcc6..fc1e980 100644 --- a/src/sdk/tags.ts +++ b/src/sdk/tags.ts @@ -125,8 +125,8 @@ export class Tags extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -223,8 +223,8 @@ export class Tags extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; diff --git a/src/sdk/track.ts b/src/sdk/track.ts index d25212d..3782c95 100644 --- a/src/sdk/track.ts +++ b/src/sdk/track.ts @@ -132,8 +132,8 @@ export class Track extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -230,8 +230,8 @@ export class Track extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -329,8 +329,8 @@ export class Track extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; diff --git a/src/sdk/workspaces.ts b/src/sdk/workspaces.ts index cfcd577..513215a 100644 --- a/src/sdk/workspaces.ts +++ b/src/sdk/workspaces.ts @@ -114,8 +114,8 @@ export class Workspaces extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -210,8 +210,8 @@ export class Workspaces extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$; @@ -309,8 +309,8 @@ export class Workspaces extends ClientSDK { .json(410, errors.InviteExpired$, { err: true }) .json(422, errors.UnprocessableEntity$, { err: true }) .json(429, errors.RateLimitExceeded$, { err: true }) - .fail(["4XX", "5XX"]) .json(500, errors.InternalServerError$, { err: true }) + .fail(["4XX", "5XX"]) .match(response, { extraFields: responseFields$ }); return result$;