diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3c46433..6af8020 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: f28179cc-ef59-426d-9e85-60cec22fc642 management: docChecksum: ba3e83845a082a6c2321d0eeaaf9c23c docVersion: 0.0.1 - speakeasyVersion: 1.306.0 - generationVersion: 2.340.3 - releaseVersion: 0.29.18 - configChecksum: 7b734b1bea3f5aa02fa180a183d84da8 + speakeasyVersion: 1.308.1 + generationVersion: 2.342.6 + releaseVersion: 0.29.19 + configChecksum: 16dcbf7b27038e97d6737d5eb5d0d00f 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.9.13 + core: 3.9.14 deprecations: 2.81.1 examples: 2.81.4 flattening: 2.81.1 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 360cb3a..fe521af 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.29.18 + version: 0.29.19 additionalDependencies: dependencies: {} devDependencies: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e90e33f..f936665 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.306.0 +speakeasyVersion: 1.308.1 sources: my-first-source: sourceNamespace: my-first-source - sourceRevisionDigest: sha256:8c17755b9d3c07391761c3012a50f04523eabcd578d197315dfc8e9e84747c97 - sourceBlobDigest: sha256:22ce9ef46e6c3905a84147071418d68f197fd93ff71b7c5e732eedecbec4a563 + sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb + sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e tags: - latest - main @@ -11,8 +11,8 @@ targets: my-first-target: source: my-first-source sourceNamespace: my-first-source - sourceRevisionDigest: sha256:8c17755b9d3c07391761c3012a50f04523eabcd578d197315dfc8e9e84747c97 - sourceBlobDigest: sha256:22ce9ef46e6c3905a84147071418d68f197fd93ff71b7c5e732eedecbec4a563 + sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb + sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index 663d621..7f809d0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -446,4 +446,14 @@ Based on: ### Generated - [typescript v0.29.18] . ### Releases -- [NPM v0.29.18] https://www.npmjs.com/package/dub/v/0.29.18 - . \ No newline at end of file +- [NPM v0.29.18] https://www.npmjs.com/package/dub/v/0.29.18 - . + +## 2024-06-17 01:20:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.308.1 (2.342.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.29.19] . +### Releases +- [NPM v0.29.19] https://www.npmjs.com/package/dub/v/0.29.19 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 6d54033..4d1568f 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"]["/domains"]["get"] + - target: $["paths"]["/links"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "listDomains" + "label": "getLinks" "source": |- import { Dub } from "dub"; @@ -17,97 +17,7 @@ actions: }); async function run() { - const result = await dub.domains.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", - workspaceId: "", - }); - - async function run() { - const result = await dub.domains.update("acme.com", {}); - - // 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", - workspaceId: "", - }); - - async function run() { - const result = await dub.track.lead({ - clickId: "", - eventName: "Sign up", - customerId: "", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/links/{linkId}"]["delete"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "deleteLink" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.links.delete(""); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/links/{linkId}"]["patch"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "updateLink" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.links.update("", { - url: "https://google/com", - }); + const result = await dub.links.list({}); // Handle the result console.log(result) @@ -135,11 +45,11 @@ actions: } run(); - - target: $["paths"]["/workspaces"]["get"] + - target: $["paths"]["/tags"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getWorkspaces" + "label": "getTags" "source": |- import { Dub } from "dub"; @@ -149,7 +59,7 @@ actions: }); async function run() { - const result = await dub.workspaces.list(); + const result = await dub.tags.list({}); // Handle the result console.log(result) @@ -178,6 +88,115 @@ actions: 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", + workspaceId: "", + }); + + async function run() { + const result = await dub.domains.setPrimary("acme.com"); + + // 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", + workspaceId: "", + }); + + async function run() { + const result = await dub.links.upsert({ + url: "https://google/com", + }); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/qr"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getQRCode" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.qrCodes.get({ + url: "https://brief-micronutrient.org", + }); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/workspaces"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getWorkspaces" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.workspaces.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", + workspaceId: "", + }); + + async function run() { + const result = await dub.domains.update("acme.com", {}); + + // Handle the result + console.log(result) + } + run(); - target: $["paths"]["/track/sale"]["post"] update: @@ -204,6 +223,118 @@ actions: console.log(result) } + run(); + - target: $["paths"]["/links/{linkId}"]["delete"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "deleteLink" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.links.delete(""); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/workspaces"]["post"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "createWorkspace" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.workspaces.create({ + name: "", + slug: "", + }); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/workspaces/{idOrSlug}"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getWorkspace" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.workspaces.get({ + idOrSlug: "", + }); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/domains/{slug}"]["delete"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "deleteDomain" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.domains.delete("acme.com"); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/domains/{slug}/transfer"]["post"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "transferDomain" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.domains.transfer("acme.com", { + newWorkspaceId: "", + }); + + // Handle the result + console.log(result) + } + run(); - target: $["paths"]["/track/customer"]["post"] update: @@ -250,6 +381,31 @@ 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", + workspaceId: "", + }); + + async function run() { + const result = await dub.track.lead({ + clickId: "", + eventName: "Sign up", + customerId: "", + }); + + // Handle the result + console.log(result) + } + run(); - target: $["paths"]["/links"]["post"] update: @@ -273,187 +429,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", - workspaceId: "", - }); - - 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", - workspaceId: "", - }); - - async function run() { - const result = await dub.links.list({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/links/bulk"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "bulkCreateLinks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.links.createMany([ - { - url: "https://google/com", - }, - ]); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/domains"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "addDomain" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.domains.add({ - slug: "acme.com", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/workspaces"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "createWorkspace" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.workspaces.create({ - name: "", - slug: "", - }); - - // 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", - workspaceId: "", - }); - - async function run() { - const result = await dub.domains.setPrimary("acme.com"); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/domains/{slug}/transfer"]["post"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "transferDomain" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.domains.transfer("acme.com", { - newWorkspaceId: "", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/domains/{slug}"]["delete"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "deleteDomain" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.domains.delete("acme.com"); - - // Handle the result - console.log(result) - } - run(); - target: $["paths"]["/links/count"]["get"] update: @@ -497,11 +472,11 @@ actions: } run(); - - target: $["paths"]["/qr"]["get"] + - target: $["paths"]["/links/{linkId}"]["patch"] update: "x-codeSamples": - "lang": "typescript" - "label": "getQRCode" + "label": "updateLink" "source": |- import { Dub } from "dub"; @@ -511,8 +486,8 @@ actions: }); async function run() { - const result = await dub.qrCodes.get({ - url: "https://brief-micronutrient.org", + const result = await dub.links.update("", { + url: "https://google/com", }); // Handle the result @@ -520,11 +495,11 @@ actions: } run(); - - target: $["paths"]["/workspaces/{idOrSlug}"]["get"] + - target: $["paths"]["/links/bulk"]["post"] update: "x-codeSamples": - "lang": "typescript" - "label": "getWorkspace" + "label": "bulkCreateLinks" "source": |- import { Dub } from "dub"; @@ -534,33 +509,58 @@ actions: }); async function run() { - const result = await dub.workspaces.get({ - idOrSlug: "", + const result = await dub.links.createMany([ + { + url: "https://google/com", + }, + ]); + + // 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", + workspaceId: "", + }); + + async function run() { + const result = await dub.domains.list({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/domains"]["post"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "addDomain" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.domains.add({ + slug: "acme.com", }); // 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", - workspaceId: "", - }); - - async function run() { - const result = await dub.tags.list({}); - - // Handle the result - console.log(result) - } - run(); diff --git a/jsr.json b/jsr.json index 4ae327d..af9ddbf 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "dub", - "version": "0.29.18", + "version": "0.29.19", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 26c7626..bc55afa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dub", - "version": "0.29.18", + "version": "0.29.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dub", - "version": "0.29.18", + "version": "0.29.19", "devDependencies": { "@types/jsonpath": "^0.2.4", "@types/node": "^20.12.7", diff --git a/package.json b/package.json index 3052b4d..b72c7bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dub", - "version": "0.29.18", + "version": "0.29.19", "author": "Dub", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index 9775ec3..1ec5eb1 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.29.18", - genVersion: "2.340.3", - userAgent: "speakeasy-sdk/typescript 0.29.18 2.340.3 0.0.1 dub", + sdkVersion: "0.29.19", + genVersion: "2.342.6", + userAgent: "speakeasy-sdk/typescript 0.29.19 2.342.6 0.0.1 dub", } as const; diff --git a/src/sdk/analytics.ts b/src/sdk/analytics.ts index 35b1744..d6f50ee 100644 --- a/src/sdk/analytics.ts +++ b/src/sdk/analytics.ts @@ -63,28 +63,28 @@ export class Analytics extends ClientSDK { const path$ = this.templateURLComponent("/analytics")(); const query$ = encodeFormQuery$({ - key: payload$.key, - linkId: payload$.linkId, - device: payload$.device, browser: payload$.browser, - tagId: payload$.tagId, city: payload$.city, - url: payload$.url, - workspaceId: this.options$.workspaceId, - event: payload$.event, - domain: payload$.domain, - externalId: payload$.externalId, - timezone: payload$.timezone, country: payload$.country, - projectSlug: this.options$.projectSlug, - qr: payload$.qr, + device: payload$.device, + domain: payload$.domain, + end: payload$.end, + event: payload$.event, + externalId: payload$.externalId, groupBy: payload$.groupBy, interval: payload$.interval, - start: payload$.start, + key: payload$.key, + linkId: payload$.linkId, os: payload$.os, + projectSlug: this.options$.projectSlug, + qr: payload$.qr, referer: payload$.referer, - end: payload$.end, root: payload$.root, + start: payload$.start, + tagId: payload$.tagId, + timezone: payload$.timezone, + url: payload$.url, + workspaceId: this.options$.workspaceId, }); let security$; diff --git a/src/sdk/domains.ts b/src/sdk/domains.ts index 42fb457..bd20b22 100644 --- a/src/sdk/domains.ts +++ b/src/sdk/domains.ts @@ -63,8 +63,8 @@ export class Domains extends ClientSDK { const path$ = this.templateURLComponent("/domains")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -160,8 +160,8 @@ export class Domains extends ClientSDK { const path$ = this.templateURLComponent("/domains")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -261,8 +261,8 @@ export class Domains extends ClientSDK { const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -365,8 +365,8 @@ export class Domains extends ClientSDK { const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -463,8 +463,8 @@ export class Domains extends ClientSDK { const path$ = this.templateURLComponent("/domains/{slug}/primary")(pathParams$); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -567,8 +567,8 @@ export class Domains extends ClientSDK { const path$ = this.templateURLComponent("/domains/{slug}/transfer")(pathParams$); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; diff --git a/src/sdk/links.ts b/src/sdk/links.ts index fd2c7f3..9706a29 100644 --- a/src/sdk/links.ts +++ b/src/sdk/links.ts @@ -69,18 +69,18 @@ export class Links extends ClientSDK { const path$ = this.templateURLComponent("/links")(); const query$ = encodeFormQuery$({ - tagId: payload$.tagId, - sort: payload$.sort, - page: payload$.page, - workspaceId: this.options$.workspaceId, domain: payload$.domain, + page: payload$.page, + projectSlug: this.options$.projectSlug, + search: payload$.search, + showArchived: payload$.showArchived, + sort: payload$.sort, + tagId: payload$.tagId, tagIds: payload$.tagIds, tagNames: payload$.tagNames, - search: payload$.search, userId: payload$.userId, - showArchived: payload$.showArchived, withTags: payload$.withTags, - projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -177,8 +177,8 @@ export class Links extends ClientSDK { const path$ = this.templateURLComponent("/links")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -273,17 +273,17 @@ export class Links extends ClientSDK { const path$ = this.templateURLComponent("/links/count")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, + domain: payload$.domain, + groupBy: payload$.groupBy, + projectSlug: this.options$.projectSlug, + search: payload$.search, + showArchived: payload$.showArchived, + tagId: payload$.tagId, tagIds: payload$.tagIds, tagNames: payload$.tagNames, - groupBy: payload$.groupBy, userId: payload$.userId, - showArchived: payload$.showArchived, withTags: payload$.withTags, - projectSlug: this.options$.projectSlug, - domain: payload$.domain, - tagId: payload$.tagId, - search: payload$.search, + workspaceId: this.options$.workspaceId, }); let security$; @@ -379,11 +379,11 @@ export class Links extends ClientSDK { const query$ = encodeFormQuery$({ domain: payload$.domain, + externalId: payload$.externalId, key: payload$.key, linkId: payload$.linkId, - externalId: payload$.externalId, - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -486,8 +486,8 @@ export class Links extends ClientSDK { const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -593,8 +593,8 @@ export class Links extends ClientSDK { const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -691,8 +691,8 @@ export class Links extends ClientSDK { const path$ = this.templateURLComponent("/links/bulk")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -789,8 +789,8 @@ export class Links extends ClientSDK { const path$ = this.templateURLComponent("/links/upsert")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; diff --git a/src/sdk/qrcodes.ts b/src/sdk/qrcodes.ts index 09f957f..e5e1c08 100644 --- a/src/sdk/qrcodes.ts +++ b/src/sdk/qrcodes.ts @@ -61,12 +61,12 @@ export class QRCodes extends ClientSDK { const path$ = this.templateURLComponent("/qr")(); const query$ = encodeFormQuery$({ - includeMargin: payload$.includeMargin, - url: payload$.url, - size: payload$.size, - level: payload$.level, - fgColor: payload$.fgColor, bgColor: payload$.bgColor, + fgColor: payload$.fgColor, + includeMargin: payload$.includeMargin, + level: payload$.level, + size: payload$.size, + url: payload$.url, }); let security$; diff --git a/src/sdk/tags.ts b/src/sdk/tags.ts index d505b0d..ae07ba7 100644 --- a/src/sdk/tags.ts +++ b/src/sdk/tags.ts @@ -59,8 +59,8 @@ export class Tags extends ClientSDK { const path$ = this.templateURLComponent("/tags")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -156,8 +156,8 @@ export class Tags extends ClientSDK { const path$ = this.templateURLComponent("/tags")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; diff --git a/src/sdk/track.ts b/src/sdk/track.ts index 12fde0a..cb47571 100644 --- a/src/sdk/track.ts +++ b/src/sdk/track.ts @@ -65,8 +65,8 @@ export class Track extends ClientSDK { const path$ = this.templateURLComponent("/track/lead")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -163,8 +163,8 @@ export class Track extends ClientSDK { const path$ = this.templateURLComponent("/track/sale")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$; @@ -262,8 +262,8 @@ export class Track extends ClientSDK { const path$ = this.templateURLComponent("/track/customer")(); const query$ = encodeFormQuery$({ - workspaceId: this.options$.workspaceId, projectSlug: this.options$.projectSlug, + workspaceId: this.options$.workspaceId, }); let security$;