diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 5b295ec..9e54447 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: f28179cc-ef59-426d-9e85-60cec22fc642 management: - docChecksum: 61ca2a4d60218732e7611140e6caf8d9 + docChecksum: 2174cc715c8b8406f1015e71de6e9a07 docVersion: 0.0.1 - speakeasyVersion: 1.292.0 + speakeasyVersion: 1.293.0 generationVersion: 2.332.4 - releaseVersion: 0.29.2 - configChecksum: d735362927204881510a6a6042f5e824 + releaseVersion: 0.29.3 + configChecksum: c6c98a549bafe2e1fdcb6812e7870dbb repoURL: https://github.com/dubinc/dub-node.git installationURL: https://github.com/dubinc/dub-node published: true @@ -64,6 +64,10 @@ generatedFiles: - tsconfig.json - src/models/components/linkschema.ts - src/models/components/tagschema.ts + - src/models/components/linkgeotargeting.ts + - src/models/components/countrycode.ts + - src/models/components/clicksbycountry.ts + - src/models/components/clicksbycities.ts - src/models/components/workspaceschema.ts - src/models/components/domainschema.ts - src/models/components/security.ts @@ -123,6 +127,12 @@ generatedFiles: - docs/models/components/linkschema.md - docs/models/components/color.md - docs/models/components/tagschema.md + - docs/models/components/linkgeotargeting.md + - docs/models/components/countrycode.md + - docs/models/components/country.md + - docs/models/components/clicksbycountry.md + - docs/models/components/clicksbycitiescountry.md + - docs/models/components/clicksbycities.md - docs/models/components/plan.md - docs/models/components/role.md - docs/models/components/users.md @@ -164,7 +174,6 @@ generatedFiles: - docs/models/operations/getlinksrequest.md - docs/models/operations/tagids.md - docs/models/operations/tagnames.md - - docs/models/operations/geo.md - docs/models/operations/createlinkrequestbody.md - docs/models/operations/getlinkscountqueryparamtagids.md - docs/models/operations/getlinkscountqueryparamtagnames.md @@ -177,100 +186,69 @@ generatedFiles: - docs/models/operations/deletelinkresponsebody.md - docs/models/operations/updatelinktagids.md - docs/models/operations/updatelinktagnames.md - - docs/models/operations/updatelinkgeo.md - docs/models/operations/updatelinkrequestbody.md - docs/models/operations/updatelinkrequest.md - docs/models/operations/bulkcreatelinkstagids.md - docs/models/operations/bulkcreatelinkstagnames.md - - docs/models/operations/bulkcreatelinksgeo.md - docs/models/operations/requestbody.md - docs/models/operations/upsertlinktagids.md - docs/models/operations/upsertlinktagnames.md - - docs/models/operations/upsertlinkgeo.md - docs/models/operations/upsertlinkrequestbody.md - docs/models/operations/level.md - docs/models/operations/getqrcoderequest.md - docs/models/operations/gettimeseriesbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/gettimeseriesbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/gettimeseriesbyclicksdeprecatedrequest.md - docs/models/operations/gettimeseriesbyclicksdeprecatedresponsebody.md - docs/models/operations/getcountriesbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/getcountriesbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/getcountriesbyclicksdeprecatedrequest.md - - docs/models/operations/getcountriesbyclicksdeprecatedcountry.md - - docs/models/operations/getcountriesbyclicksdeprecatedresponsebody.md - docs/models/operations/getcitiesbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/getcitiesbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/getcitiesbyclicksdeprecatedrequest.md - - docs/models/operations/getcitiesbyclicksdeprecatedcountry.md - - docs/models/operations/getcitiesbyclicksdeprecatedresponsebody.md - docs/models/operations/getdevicesbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/getdevicesbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/getdevicesbyclicksdeprecatedrequest.md - docs/models/operations/getdevicesbyclicksdeprecatedresponsebody.md - docs/models/operations/getbrowsersbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/getbrowsersbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/getbrowsersbyclicksdeprecatedrequest.md - docs/models/operations/getbrowsersbyclicksdeprecatedresponsebody.md - docs/models/operations/getosbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/getosbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/getosbyclicksdeprecatedrequest.md - docs/models/operations/getosbyclicksdeprecatedresponsebody.md - docs/models/operations/getreferersbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/getreferersbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/getreferersbyclicksdeprecatedrequest.md - docs/models/operations/getreferersbyclicksdeprecatedresponsebody.md - docs/models/operations/gettoplinksbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/gettoplinksbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/gettoplinksbyclicksdeprecatedrequest.md - docs/models/operations/gettoplinksbyclicksdeprecatedresponsebody.md - docs/models/operations/gettopurlsbyclicksdeprecatedqueryparaminterval.md - - docs/models/operations/gettopurlsbyclicksdeprecatedqueryparamcountry.md - docs/models/operations/gettopurlsbyclicksdeprecatedrequest.md - docs/models/operations/gettopurlsbyclicksdeprecatedresponsebody.md - docs/models/operations/interval.md - - docs/models/operations/country.md - docs/models/operations/getclickscountrequest.md - docs/models/operations/queryparaminterval.md - - docs/models/operations/queryparamcountry.md - docs/models/operations/gettimeseriesbyclicksrequest.md - docs/models/operations/responsebody.md - docs/models/operations/getcountriesbyclicksqueryparaminterval.md - - docs/models/operations/getcountriesbyclicksqueryparamcountry.md - docs/models/operations/getcountriesbyclicksrequest.md - - docs/models/operations/getcountriesbyclickscountry.md - - docs/models/operations/getcountriesbyclicksresponsebody.md - docs/models/operations/getcitiesbyclicksqueryparaminterval.md - - docs/models/operations/getcitiesbyclicksqueryparamcountry.md - docs/models/operations/getcitiesbyclicksrequest.md - - docs/models/operations/getcitiesbyclickscountry.md - - docs/models/operations/getcitiesbyclicksresponsebody.md - docs/models/operations/getdevicesbyclicksqueryparaminterval.md - - docs/models/operations/getdevicesbyclicksqueryparamcountry.md - docs/models/operations/getdevicesbyclicksrequest.md - docs/models/operations/getdevicesbyclicksresponsebody.md - docs/models/operations/getbrowsersbyclicksqueryparaminterval.md - - docs/models/operations/getbrowsersbyclicksqueryparamcountry.md - docs/models/operations/getbrowsersbyclicksrequest.md - docs/models/operations/getbrowsersbyclicksresponsebody.md - docs/models/operations/getosbyclicksqueryparaminterval.md - - docs/models/operations/getosbyclicksqueryparamcountry.md - docs/models/operations/getosbyclicksrequest.md - docs/models/operations/getosbyclicksresponsebody.md - docs/models/operations/getreferersbyclicksqueryparaminterval.md - - docs/models/operations/getreferersbyclicksqueryparamcountry.md - docs/models/operations/getreferersbyclicksrequest.md - docs/models/operations/getreferersbyclicksresponsebody.md - docs/models/operations/gettoplinksbyclicksqueryparaminterval.md - - docs/models/operations/gettoplinksbyclicksqueryparamcountry.md - docs/models/operations/gettoplinksbyclicksrequest.md - docs/models/operations/gettoplinksbyclicksresponsebody.md - docs/models/operations/gettopurlsbyclicksqueryparaminterval.md - - docs/models/operations/gettopurlsbyclicksqueryparamcountry.md - docs/models/operations/gettopurlsbyclicksrequest.md - docs/models/operations/gettopurlsbyclicksresponsebody.md - docs/models/operations/getclickscountdeprecatedqueryparaminterval.md - - docs/models/operations/getclickscountdeprecatedqueryparamcountry.md - docs/models/operations/getclickscountdeprecatedrequest.md - docs/models/operations/createworkspacerequestbody.md - docs/models/operations/getworkspacerequest.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a6fc4cd..68a8bda 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.29.2 + version: 0.29.3 additionalDependencies: dependencies: {} devDependencies: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a0010e5..b8abe70 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.292.0 +speakeasyVersion: 1.293.0 sources: my-first-source: sourceNamespace: my-first-source - sourceRevisionDigest: sha256:5942adf6760284067d2ca0359825cf1ef0521c1664f460e4555f0a57ff26350f - sourceBlobDigest: sha256:2015f657a172457134c6c072b9a409640d62716b9b36d933e2b35fb44aa65492 + sourceRevisionDigest: sha256:21b865f9f8292a530ea46e572f7f485210a97c209f29259b6887092d119b0071 + sourceBlobDigest: sha256:ce4df5bf1dfcc93e9dbe3feb4a5532c02fbbb5f89c913e1c6f568cec105a822f tags: - latest - main @@ -11,8 +11,8 @@ targets: my-first-target: source: my-first-source sourceNamespace: my-first-source - sourceRevisionDigest: sha256:5942adf6760284067d2ca0359825cf1ef0521c1664f460e4555f0a57ff26350f - sourceBlobDigest: sha256:2015f657a172457134c6c072b9a409640d62716b9b36d933e2b35fb44aa65492 + sourceRevisionDigest: sha256:21b865f9f8292a530ea46e572f7f485210a97c209f29259b6887092d119b0071 + sourceBlobDigest: sha256:ce4df5bf1dfcc93e9dbe3feb4a5532c02fbbb5f89c913e1c6f568cec105a822f outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index b165cae..b0475d7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -276,4 +276,14 @@ Based on: ### Generated - [typescript v0.29.2] . ### Releases -- [NPM v0.29.2] https://www.npmjs.com/package/dub/v/0.29.2 - . \ No newline at end of file +- [NPM v0.29.2] https://www.npmjs.com/package/dub/v/0.29.2 - . + +## 2024-05-17 10:02:20 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.293.0 (2.332.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.29.3] . +### Releases +- [NPM v0.29.3] https://www.npmjs.com/package/dub/v/0.29.3 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 257bf79..bd92344 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/{slug}/transfer"]["post"] + - target: $["paths"]["/links/{linkId}"]["patch"] update: "x-codeSamples": - "lang": "typescript" - "label": "transferDomain" + "label": "updateLink" "source": |- import { Dub } from "dub"; @@ -17,56 +17,14 @@ actions: }); async function run() { - const result = await dub.transfer("acme.com", { - newWorkspaceId: "", + const result = await dub.update("", { + url: "https://google/com", }); // Handle the result console.log(result) } - run(); - - target: $["paths"]["/links/count"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getLinksCount" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.count({}); - - // 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.delete(""); - - // Handle the result - console.log(result) - } - run(); - target: $["paths"]["/links/bulk"]["post"] update: @@ -93,11 +51,11 @@ actions: } run(); - - target: $["paths"]["/analytics/top_urls"]["get"] + - target: $["paths"]["/analytics/country"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getTopURLsByClicksDeprecated" + "label": "getCountriesByClicksDeprecated" "source": |- import { Dub } from "dub"; @@ -107,286 +65,7 @@ actions: }); async function run() { - const result = await dub.topUrls({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/clicks/countries"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getCountriesByClicks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.countries({}); - - // Handle the result - 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", - workspaceId: "", - }); - - async function run() { - const result = await dub.create({ - tag: "", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/browser"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getBrowsersByClicksDeprecated" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.browser({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/clicks/cities"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getCitiesByClicks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.cities({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/clicks/devices"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getDevicesByClicks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.devices({}); - - // 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", - workspaceId: "", - }); - - async function run() { - const result = await dub.get({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/clicks/count"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getClicksCount" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.count({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/clicks/browsers"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getBrowsersByClicks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.browsers({}); - - // 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.get({ - idOrSlug: "", - }); - - // 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.list({}); - - // 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.list({}); - - // 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.update("", { - url: "https://google/com", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/timeseries"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getTimeseriesByClicksDeprecated" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.timeseries({}); + const result = await dub.country({}); // Handle the result console.log(result) @@ -414,11 +93,11 @@ actions: } run(); - - target: $["paths"]["/analytics/referer"]["get"] + - target: $["paths"]["/analytics/browser"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getReferersByClicksDeprecated" + "label": "getBrowsersByClicksDeprecated" "source": |- import { Dub } from "dub"; @@ -428,7 +107,7 @@ actions: }); async function run() { - const result = await dub.referer({}); + const result = await dub.browser({}); // Handle the result console.log(result) @@ -456,11 +135,11 @@ actions: } run(); - - target: $["paths"]["/links/upsert"]["put"] + - target: $["paths"]["/analytics/clicks/top_urls"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "upsertLink" + "label": "getTopURLsByClicks" "source": |- import { Dub } from "dub"; @@ -470,9 +149,7 @@ actions: }); async function run() { - const result = await dub.upsert({ - url: "https://google/com", - }); + const result = await dub.topUrls({}); // Handle the result console.log(result) @@ -500,11 +177,11 @@ actions: } run(); - - target: $["paths"]["/analytics/clicks/os"]["get"] + - target: $["paths"]["/analytics/top_urls"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getOSByClicks" + "label": "getTopURLsByClicksDeprecated" "source": |- import { Dub } from "dub"; @@ -514,18 +191,18 @@ actions: }); async function run() { - const result = await dub.os({}); + const result = await dub.topUrls({}); // Handle the result console.log(result) } run(); - - target: $["paths"]["/analytics/clicks/top_links"]["get"] + - target: $["paths"]["/analytics/clicks/timeseries"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getTopLinksByClicks" + "label": "getTimeseriesByClicks" "source": |- import { Dub } from "dub"; @@ -535,7 +212,49 @@ actions: }); async function run() { - const result = await dub.topLinks({}); + const result = await dub.timeseries({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/clicks/devices"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getDevicesByClicks" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.devices({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/clicks/browsers"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getBrowsersByClicks" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.browsers({}); // Handle the result console.log(result) @@ -565,27 +284,6 @@ actions: 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.delete("acme.com"); - - // Handle the result - console.log(result) - } - run(); - target: $["paths"]["/links"]["post"] update: @@ -609,6 +307,69 @@ actions: 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.list({}); + + // 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", + workspaceId: "", + }); + + async function run() { + const result = await dub.get({}); + + // 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.delete(""); + + // Handle the result + console.log(result) + } + run(); - target: $["paths"]["/qr"]["get"] update: @@ -632,69 +393,6 @@ actions: console.log(result) } - run(); - - target: $["paths"]["/analytics/clicks/referers"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getReferersByClicks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.referers({}); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/analytics/clicks/top_urls"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "getTopURLsByClicks" - "source": |- - import { Dub } from "dub"; - - const dub = new Dub({ - token: "DUB_API_KEY", - workspaceId: "", - }); - - async function run() { - const result = await dub.topUrls({}); - - // 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.list({}); - - // Handle the result - console.log(result) - } - run(); - target: $["paths"]["/domains/{slug}/primary"]["post"] update: @@ -717,11 +415,11 @@ actions: } run(); - - target: $["paths"]["/analytics/country"]["get"] + - target: $["paths"]["/domains/{slug}/transfer"]["post"] update: "x-codeSamples": - "lang": "typescript" - "label": "getCountriesByClicksDeprecated" + "label": "transferDomain" "source": |- import { Dub } from "dub"; @@ -731,18 +429,20 @@ actions: }); async function run() { - const result = await dub.country({}); + const result = await dub.transfer("acme.com", { + newWorkspaceId: "", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/analytics/clicks/timeseries"]["get"] + - target: $["paths"]["/links/upsert"]["put"] update: "x-codeSamples": - "lang": "typescript" - "label": "getTimeseriesByClicks" + "label": "upsertLink" "source": |- import { Dub } from "dub"; @@ -752,18 +452,20 @@ actions: }); async function run() { - const result = await dub.timeseries({}); + const result = await dub.upsert({ + url: "https://google/com", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/analytics/clicks"]["get"] + - target: $["paths"]["/workspaces"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getClicksCountDeprecated" + "label": "getWorkspaces" "source": |- import { Dub } from "dub"; @@ -773,7 +475,135 @@ actions: }); async function run() { - const result = await dub.getClicksCountDeprecated({}); + const result = await dub.list(); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/clicks/top_links"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getTopLinksByClicks" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.topLinks({}); + + // 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.update("acme.com", {}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/links/count"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getLinksCount" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.count({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/city"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getCitiesByClicksDeprecated" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.city({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/clicks/cities"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getCitiesByClicks" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.cities({}); + + // 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.get({ + idOrSlug: "", + }); // Handle the result console.log(result) @@ -803,11 +633,11 @@ actions: } run(); - - target: $["paths"]["/domains/{slug}"]["patch"] + - target: $["paths"]["/analytics/timeseries"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "updateDomain" + "label": "getTimeseriesByClicksDeprecated" "source": |- import { Dub } from "dub"; @@ -817,7 +647,133 @@ actions: }); async function run() { - const result = await dub.update("acme.com", {}); + const result = await dub.timeseries({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/referer"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getReferersByClicksDeprecated" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.referer({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/clicks/countries"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getCountriesByClicks" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.countries({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/clicks/referers"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getReferersByClicks" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.referers({}); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/analytics/clicks"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "getClicksCountDeprecated" + "source": |- + import { Dub } from "dub"; + + const dub = new Dub({ + token: "DUB_API_KEY", + workspaceId: "", + }); + + async function run() { + const result = await dub.getClicksCountDeprecated({}); + + // 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.list({}); + + // 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.delete("acme.com"); // Handle the result console.log(result) @@ -847,11 +803,11 @@ actions: } run(); - - target: $["paths"]["/analytics/city"]["get"] + - target: $["paths"]["/analytics/clicks/count"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getCitiesByClicksDeprecated" + "label": "getClicksCount" "source": |- import { Dub } from "dub"; @@ -861,18 +817,18 @@ actions: }); async function run() { - const result = await dub.city({}); + const result = await dub.count({}); // Handle the result console.log(result) } run(); - - target: $["paths"]["/workspaces"]["get"] + - target: $["paths"]["/analytics/clicks/os"]["get"] update: "x-codeSamples": - "lang": "typescript" - "label": "getWorkspaces" + "label": "getOSByClicks" "source": |- import { Dub } from "dub"; @@ -882,7 +838,51 @@ actions: }); async function run() { - const result = await dub.list(); + const result = await dub.os({}); + + // Handle the result + 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", + workspaceId: "", + }); + + async function run() { + const result = await dub.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", + workspaceId: "", + }); + + async function run() { + const result = await dub.list({}); // Handle the result console.log(result) diff --git a/docs/models/components/clicksbycities.md b/docs/models/components/clicksbycities.md new file mode 100644 index 0000000..4d07306 --- /dev/null +++ b/docs/models/components/clicksbycities.md @@ -0,0 +1,10 @@ +# ClicksByCities + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `city` | *string* | :heavy_check_mark: | The name of the city | +| `country` | [components.ClicksByCitiesCountry](../../models/components/clicksbycitiescountry.md) | :heavy_check_mark: | The 2-letter country code of the city: https://d.to/geo | +| `clicks` | *number* | :heavy_check_mark: | The number of clicks from this city | \ No newline at end of file diff --git a/docs/models/operations/getcitiesbyclickscountry.md b/docs/models/components/clicksbycitiescountry.md similarity index 99% rename from docs/models/operations/getcitiesbyclickscountry.md rename to docs/models/components/clicksbycitiescountry.md index 9e5dbe0..196910b 100644 --- a/docs/models/operations/getcitiesbyclickscountry.md +++ b/docs/models/components/clicksbycitiescountry.md @@ -1,4 +1,4 @@ -# GetCitiesByClicksCountry +# ClicksByCitiesCountry The 2-letter country code of the city: https://d.to/geo diff --git a/docs/models/components/clicksbycountry.md b/docs/models/components/clicksbycountry.md new file mode 100644 index 0000000..b4205d4 --- /dev/null +++ b/docs/models/components/clicksbycountry.md @@ -0,0 +1,9 @@ +# ClicksByCountry + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `country` | [components.Country](../../models/components/country.md) | :heavy_check_mark: | The 2-letter country code: https://d.to/geo | +| `clicks` | *number* | :heavy_check_mark: | The number of clicks from this country | \ No newline at end of file diff --git a/docs/models/operations/country.md b/docs/models/components/country.md similarity index 99% rename from docs/models/operations/country.md rename to docs/models/components/country.md index e20d602..5497e3f 100644 --- a/docs/models/operations/country.md +++ b/docs/models/components/country.md @@ -1,6 +1,6 @@ # Country -The country to retrieve analytics for. +The 2-letter country code: https://d.to/geo ## Values diff --git a/docs/models/operations/queryparamcountry.md b/docs/models/components/countrycode.md similarity index 99% rename from docs/models/operations/queryparamcountry.md rename to docs/models/components/countrycode.md index e55054c..2985e98 100644 --- a/docs/models/operations/queryparamcountry.md +++ b/docs/models/components/countrycode.md @@ -1,4 +1,4 @@ -# QueryParamCountry +# CountryCode The country to retrieve analytics for. diff --git a/docs/models/operations/geo.md b/docs/models/components/linkgeotargeting.md similarity index 99% rename from docs/models/operations/geo.md rename to docs/models/components/linkgeotargeting.md index 022641c..8a20f4a 100644 --- a/docs/models/operations/geo.md +++ b/docs/models/components/linkgeotargeting.md @@ -1,4 +1,4 @@ -# Geo +# LinkGeoTargeting Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. diff --git a/docs/models/operations/bulkcreatelinksgeo.md b/docs/models/operations/bulkcreatelinksgeo.md deleted file mode 100644 index 29a9fbd..0000000 --- a/docs/models/operations/bulkcreatelinksgeo.md +++ /dev/null @@ -1,259 +0,0 @@ -# BulkCreateLinksGeo - -Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `af` | *string* | :heavy_minus_sign: | N/A | -| `al` | *string* | :heavy_minus_sign: | N/A | -| `dz` | *string* | :heavy_minus_sign: | N/A | -| `as` | *string* | :heavy_minus_sign: | N/A | -| `ad` | *string* | :heavy_minus_sign: | N/A | -| `ao` | *string* | :heavy_minus_sign: | N/A | -| `ai` | *string* | :heavy_minus_sign: | N/A | -| `aq` | *string* | :heavy_minus_sign: | N/A | -| `ag` | *string* | :heavy_minus_sign: | N/A | -| `ar` | *string* | :heavy_minus_sign: | N/A | -| `am` | *string* | :heavy_minus_sign: | N/A | -| `aw` | *string* | :heavy_minus_sign: | N/A | -| `au` | *string* | :heavy_minus_sign: | N/A | -| `at` | *string* | :heavy_minus_sign: | N/A | -| `az` | *string* | :heavy_minus_sign: | N/A | -| `bs` | *string* | :heavy_minus_sign: | N/A | -| `bh` | *string* | :heavy_minus_sign: | N/A | -| `bd` | *string* | :heavy_minus_sign: | N/A | -| `bb` | *string* | :heavy_minus_sign: | N/A | -| `by` | *string* | :heavy_minus_sign: | N/A | -| `be` | *string* | :heavy_minus_sign: | N/A | -| `bz` | *string* | :heavy_minus_sign: | N/A | -| `bj` | *string* | :heavy_minus_sign: | N/A | -| `bm` | *string* | :heavy_minus_sign: | N/A | -| `bt` | *string* | :heavy_minus_sign: | N/A | -| `bo` | *string* | :heavy_minus_sign: | N/A | -| `ba` | *string* | :heavy_minus_sign: | N/A | -| `bw` | *string* | :heavy_minus_sign: | N/A | -| `bv` | *string* | :heavy_minus_sign: | N/A | -| `br` | *string* | :heavy_minus_sign: | N/A | -| `io` | *string* | :heavy_minus_sign: | N/A | -| `bn` | *string* | :heavy_minus_sign: | N/A | -| `bg` | *string* | :heavy_minus_sign: | N/A | -| `bf` | *string* | :heavy_minus_sign: | N/A | -| `bi` | *string* | :heavy_minus_sign: | N/A | -| `kh` | *string* | :heavy_minus_sign: | N/A | -| `cm` | *string* | :heavy_minus_sign: | N/A | -| `ca` | *string* | :heavy_minus_sign: | N/A | -| `cv` | *string* | :heavy_minus_sign: | N/A | -| `ky` | *string* | :heavy_minus_sign: | N/A | -| `cf` | *string* | :heavy_minus_sign: | N/A | -| `td` | *string* | :heavy_minus_sign: | N/A | -| `cl` | *string* | :heavy_minus_sign: | N/A | -| `cn` | *string* | :heavy_minus_sign: | N/A | -| `cx` | *string* | :heavy_minus_sign: | N/A | -| `cc` | *string* | :heavy_minus_sign: | N/A | -| `co` | *string* | :heavy_minus_sign: | N/A | -| `km` | *string* | :heavy_minus_sign: | N/A | -| `cg` | *string* | :heavy_minus_sign: | N/A | -| `cd` | *string* | :heavy_minus_sign: | N/A | -| `ck` | *string* | :heavy_minus_sign: | N/A | -| `cr` | *string* | :heavy_minus_sign: | N/A | -| `ci` | *string* | :heavy_minus_sign: | N/A | -| `hr` | *string* | :heavy_minus_sign: | N/A | -| `cu` | *string* | :heavy_minus_sign: | N/A | -| `cy` | *string* | :heavy_minus_sign: | N/A | -| `cz` | *string* | :heavy_minus_sign: | N/A | -| `dk` | *string* | :heavy_minus_sign: | N/A | -| `dj` | *string* | :heavy_minus_sign: | N/A | -| `dm` | *string* | :heavy_minus_sign: | N/A | -| `do` | *string* | :heavy_minus_sign: | N/A | -| `ec` | *string* | :heavy_minus_sign: | N/A | -| `eg` | *string* | :heavy_minus_sign: | N/A | -| `sv` | *string* | :heavy_minus_sign: | N/A | -| `gq` | *string* | :heavy_minus_sign: | N/A | -| `er` | *string* | :heavy_minus_sign: | N/A | -| `ee` | *string* | :heavy_minus_sign: | N/A | -| `et` | *string* | :heavy_minus_sign: | N/A | -| `fk` | *string* | :heavy_minus_sign: | N/A | -| `fo` | *string* | :heavy_minus_sign: | N/A | -| `fj` | *string* | :heavy_minus_sign: | N/A | -| `fi` | *string* | :heavy_minus_sign: | N/A | -| `fr` | *string* | :heavy_minus_sign: | N/A | -| `gf` | *string* | :heavy_minus_sign: | N/A | -| `pf` | *string* | :heavy_minus_sign: | N/A | -| `tf` | *string* | :heavy_minus_sign: | N/A | -| `ga` | *string* | :heavy_minus_sign: | N/A | -| `gm` | *string* | :heavy_minus_sign: | N/A | -| `ge` | *string* | :heavy_minus_sign: | N/A | -| `de` | *string* | :heavy_minus_sign: | N/A | -| `gh` | *string* | :heavy_minus_sign: | N/A | -| `gi` | *string* | :heavy_minus_sign: | N/A | -| `gr` | *string* | :heavy_minus_sign: | N/A | -| `gl` | *string* | :heavy_minus_sign: | N/A | -| `gd` | *string* | :heavy_minus_sign: | N/A | -| `gp` | *string* | :heavy_minus_sign: | N/A | -| `gu` | *string* | :heavy_minus_sign: | N/A | -| `gt` | *string* | :heavy_minus_sign: | N/A | -| `gn` | *string* | :heavy_minus_sign: | N/A | -| `gw` | *string* | :heavy_minus_sign: | N/A | -| `gy` | *string* | :heavy_minus_sign: | N/A | -| `ht` | *string* | :heavy_minus_sign: | N/A | -| `hm` | *string* | :heavy_minus_sign: | N/A | -| `va` | *string* | :heavy_minus_sign: | N/A | -| `hn` | *string* | :heavy_minus_sign: | N/A | -| `hk` | *string* | :heavy_minus_sign: | N/A | -| `hu` | *string* | :heavy_minus_sign: | N/A | -| `is` | *string* | :heavy_minus_sign: | N/A | -| `in` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `ir` | *string* | :heavy_minus_sign: | N/A | -| `iq` | *string* | :heavy_minus_sign: | N/A | -| `ie` | *string* | :heavy_minus_sign: | N/A | -| `il` | *string* | :heavy_minus_sign: | N/A | -| `it` | *string* | :heavy_minus_sign: | N/A | -| `jm` | *string* | :heavy_minus_sign: | N/A | -| `jp` | *string* | :heavy_minus_sign: | N/A | -| `jo` | *string* | :heavy_minus_sign: | N/A | -| `kz` | *string* | :heavy_minus_sign: | N/A | -| `ke` | *string* | :heavy_minus_sign: | N/A | -| `ki` | *string* | :heavy_minus_sign: | N/A | -| `kp` | *string* | :heavy_minus_sign: | N/A | -| `kr` | *string* | :heavy_minus_sign: | N/A | -| `kw` | *string* | :heavy_minus_sign: | N/A | -| `kg` | *string* | :heavy_minus_sign: | N/A | -| `la` | *string* | :heavy_minus_sign: | N/A | -| `lv` | *string* | :heavy_minus_sign: | N/A | -| `lb` | *string* | :heavy_minus_sign: | N/A | -| `ls` | *string* | :heavy_minus_sign: | N/A | -| `lr` | *string* | :heavy_minus_sign: | N/A | -| `ly` | *string* | :heavy_minus_sign: | N/A | -| `li` | *string* | :heavy_minus_sign: | N/A | -| `lt` | *string* | :heavy_minus_sign: | N/A | -| `lu` | *string* | :heavy_minus_sign: | N/A | -| `mo` | *string* | :heavy_minus_sign: | N/A | -| `mg` | *string* | :heavy_minus_sign: | N/A | -| `mw` | *string* | :heavy_minus_sign: | N/A | -| `my` | *string* | :heavy_minus_sign: | N/A | -| `mv` | *string* | :heavy_minus_sign: | N/A | -| `ml` | *string* | :heavy_minus_sign: | N/A | -| `mt` | *string* | :heavy_minus_sign: | N/A | -| `mh` | *string* | :heavy_minus_sign: | N/A | -| `mq` | *string* | :heavy_minus_sign: | N/A | -| `mr` | *string* | :heavy_minus_sign: | N/A | -| `mu` | *string* | :heavy_minus_sign: | N/A | -| `yt` | *string* | :heavy_minus_sign: | N/A | -| `mx` | *string* | :heavy_minus_sign: | N/A | -| `fm` | *string* | :heavy_minus_sign: | N/A | -| `md` | *string* | :heavy_minus_sign: | N/A | -| `mc` | *string* | :heavy_minus_sign: | N/A | -| `mn` | *string* | :heavy_minus_sign: | N/A | -| `ms` | *string* | :heavy_minus_sign: | N/A | -| `ma` | *string* | :heavy_minus_sign: | N/A | -| `mz` | *string* | :heavy_minus_sign: | N/A | -| `mm` | *string* | :heavy_minus_sign: | N/A | -| `na` | *string* | :heavy_minus_sign: | N/A | -| `nr` | *string* | :heavy_minus_sign: | N/A | -| `np` | *string* | :heavy_minus_sign: | N/A | -| `nl` | *string* | :heavy_minus_sign: | N/A | -| `nc` | *string* | :heavy_minus_sign: | N/A | -| `nz` | *string* | :heavy_minus_sign: | N/A | -| `ni` | *string* | :heavy_minus_sign: | N/A | -| `ne` | *string* | :heavy_minus_sign: | N/A | -| `ng` | *string* | :heavy_minus_sign: | N/A | -| `nu` | *string* | :heavy_minus_sign: | N/A | -| `nf` | *string* | :heavy_minus_sign: | N/A | -| `mk` | *string* | :heavy_minus_sign: | N/A | -| `mp` | *string* | :heavy_minus_sign: | N/A | -| `no` | *string* | :heavy_minus_sign: | N/A | -| `om` | *string* | :heavy_minus_sign: | N/A | -| `pk` | *string* | :heavy_minus_sign: | N/A | -| `pw` | *string* | :heavy_minus_sign: | N/A | -| `ps` | *string* | :heavy_minus_sign: | N/A | -| `pa` | *string* | :heavy_minus_sign: | N/A | -| `pg` | *string* | :heavy_minus_sign: | N/A | -| `py` | *string* | :heavy_minus_sign: | N/A | -| `pe` | *string* | :heavy_minus_sign: | N/A | -| `ph` | *string* | :heavy_minus_sign: | N/A | -| `pn` | *string* | :heavy_minus_sign: | N/A | -| `pl` | *string* | :heavy_minus_sign: | N/A | -| `pt` | *string* | :heavy_minus_sign: | N/A | -| `pr` | *string* | :heavy_minus_sign: | N/A | -| `qa` | *string* | :heavy_minus_sign: | N/A | -| `re` | *string* | :heavy_minus_sign: | N/A | -| `ro` | *string* | :heavy_minus_sign: | N/A | -| `ru` | *string* | :heavy_minus_sign: | N/A | -| `rw` | *string* | :heavy_minus_sign: | N/A | -| `sh` | *string* | :heavy_minus_sign: | N/A | -| `kn` | *string* | :heavy_minus_sign: | N/A | -| `lc` | *string* | :heavy_minus_sign: | N/A | -| `pm` | *string* | :heavy_minus_sign: | N/A | -| `vc` | *string* | :heavy_minus_sign: | N/A | -| `ws` | *string* | :heavy_minus_sign: | N/A | -| `sm` | *string* | :heavy_minus_sign: | N/A | -| `st` | *string* | :heavy_minus_sign: | N/A | -| `sa` | *string* | :heavy_minus_sign: | N/A | -| `sn` | *string* | :heavy_minus_sign: | N/A | -| `sc` | *string* | :heavy_minus_sign: | N/A | -| `sl` | *string* | :heavy_minus_sign: | N/A | -| `sg` | *string* | :heavy_minus_sign: | N/A | -| `sk` | *string* | :heavy_minus_sign: | N/A | -| `si` | *string* | :heavy_minus_sign: | N/A | -| `sb` | *string* | :heavy_minus_sign: | N/A | -| `so` | *string* | :heavy_minus_sign: | N/A | -| `za` | *string* | :heavy_minus_sign: | N/A | -| `gs` | *string* | :heavy_minus_sign: | N/A | -| `es` | *string* | :heavy_minus_sign: | N/A | -| `lk` | *string* | :heavy_minus_sign: | N/A | -| `sd` | *string* | :heavy_minus_sign: | N/A | -| `sr` | *string* | :heavy_minus_sign: | N/A | -| `sj` | *string* | :heavy_minus_sign: | N/A | -| `sz` | *string* | :heavy_minus_sign: | N/A | -| `se` | *string* | :heavy_minus_sign: | N/A | -| `ch` | *string* | :heavy_minus_sign: | N/A | -| `sy` | *string* | :heavy_minus_sign: | N/A | -| `tw` | *string* | :heavy_minus_sign: | N/A | -| `tj` | *string* | :heavy_minus_sign: | N/A | -| `tz` | *string* | :heavy_minus_sign: | N/A | -| `th` | *string* | :heavy_minus_sign: | N/A | -| `tl` | *string* | :heavy_minus_sign: | N/A | -| `tg` | *string* | :heavy_minus_sign: | N/A | -| `tk` | *string* | :heavy_minus_sign: | N/A | -| `to` | *string* | :heavy_minus_sign: | N/A | -| `tt` | *string* | :heavy_minus_sign: | N/A | -| `tn` | *string* | :heavy_minus_sign: | N/A | -| `tr` | *string* | :heavy_minus_sign: | N/A | -| `tm` | *string* | :heavy_minus_sign: | N/A | -| `tc` | *string* | :heavy_minus_sign: | N/A | -| `tv` | *string* | :heavy_minus_sign: | N/A | -| `ug` | *string* | :heavy_minus_sign: | N/A | -| `ua` | *string* | :heavy_minus_sign: | N/A | -| `ae` | *string* | :heavy_minus_sign: | N/A | -| `gb` | *string* | :heavy_minus_sign: | N/A | -| `us` | *string* | :heavy_minus_sign: | N/A | -| `um` | *string* | :heavy_minus_sign: | N/A | -| `uy` | *string* | :heavy_minus_sign: | N/A | -| `uz` | *string* | :heavy_minus_sign: | N/A | -| `vu` | *string* | :heavy_minus_sign: | N/A | -| `ve` | *string* | :heavy_minus_sign: | N/A | -| `vn` | *string* | :heavy_minus_sign: | N/A | -| `vg` | *string* | :heavy_minus_sign: | N/A | -| `vi` | *string* | :heavy_minus_sign: | N/A | -| `wf` | *string* | :heavy_minus_sign: | N/A | -| `eh` | *string* | :heavy_minus_sign: | N/A | -| `ye` | *string* | :heavy_minus_sign: | N/A | -| `zm` | *string* | :heavy_minus_sign: | N/A | -| `zw` | *string* | :heavy_minus_sign: | N/A | -| `ax` | *string* | :heavy_minus_sign: | N/A | -| `bq` | *string* | :heavy_minus_sign: | N/A | -| `cw` | *string* | :heavy_minus_sign: | N/A | -| `gg` | *string* | :heavy_minus_sign: | N/A | -| `im` | *string* | :heavy_minus_sign: | N/A | -| `je` | *string* | :heavy_minus_sign: | N/A | -| `me` | *string* | :heavy_minus_sign: | N/A | -| `bl` | *string* | :heavy_minus_sign: | N/A | -| `mf` | *string* | :heavy_minus_sign: | N/A | -| `rs` | *string* | :heavy_minus_sign: | N/A | -| `sx` | *string* | :heavy_minus_sign: | N/A | -| `ss` | *string* | :heavy_minus_sign: | N/A | -| `xk` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createlinkrequestbody.md b/docs/models/operations/createlinkrequestbody.md index 2fd42ff..ebcd674 100644 --- a/docs/models/operations/createlinkrequestbody.md +++ b/docs/models/operations/createlinkrequestbody.md @@ -26,4 +26,4 @@ | `rewrite` | *boolean* | :heavy_minus_sign: | Whether the short link uses link cloaking. | | | `ios` | *string* | :heavy_minus_sign: | The iOS destination URL for the short link for iOS device targeting. | | | `android` | *string* | :heavy_minus_sign: | The Android destination URL for the short link for Android device targeting. | | -| `geo` | [operations.Geo](../../models/operations/geo.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file +| `geo` | [components.LinkGeoTargeting](../../models/components/linkgeotargeting.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file diff --git a/docs/models/operations/getbrowsersbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/getbrowsersbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index 8f71f65..0000000 --- a/docs/models/operations/getbrowsersbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetBrowsersByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getbrowsersbyclicksdeprecatedrequest.md b/docs/models/operations/getbrowsersbyclicksdeprecatedrequest.md index 766b4e2..5671fcc 100644 --- a/docs/models/operations/getbrowsersbyclicksdeprecatedrequest.md +++ b/docs/models/operations/getbrowsersbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetBrowsersByClicksDeprecatedQueryParamInterval](../../models/operations/getbrowsersbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetBrowsersByClicksDeprecatedQueryParamCountry](../../models/operations/getbrowsersbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getbrowsersbyclicksqueryparamcountry.md b/docs/models/operations/getbrowsersbyclicksqueryparamcountry.md deleted file mode 100644 index 38fd4cb..0000000 --- a/docs/models/operations/getbrowsersbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetBrowsersByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getbrowsersbyclicksrequest.md b/docs/models/operations/getbrowsersbyclicksrequest.md index 2920247..d1c03d4 100644 --- a/docs/models/operations/getbrowsersbyclicksrequest.md +++ b/docs/models/operations/getbrowsersbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetBrowsersByClicksQueryParamInterval](../../models/operations/getbrowsersbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetBrowsersByClicksQueryParamCountry](../../models/operations/getbrowsersbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getcitiesbyclicksdeprecatedcountry.md b/docs/models/operations/getcitiesbyclicksdeprecatedcountry.md deleted file mode 100644 index 4b2e293..0000000 --- a/docs/models/operations/getcitiesbyclicksdeprecatedcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetCitiesByClicksDeprecatedCountry - -The 2-letter country code of the city: https://d.to/geo - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getcitiesbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/getcitiesbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index 9d8ce77..0000000 --- a/docs/models/operations/getcitiesbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetCitiesByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getcitiesbyclicksdeprecatedrequest.md b/docs/models/operations/getcitiesbyclicksdeprecatedrequest.md index 1518918..9d5c924 100644 --- a/docs/models/operations/getcitiesbyclicksdeprecatedrequest.md +++ b/docs/models/operations/getcitiesbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetCitiesByClicksDeprecatedQueryParamInterval](../../models/operations/getcitiesbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetCitiesByClicksDeprecatedQueryParamCountry](../../models/operations/getcitiesbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getcitiesbyclicksdeprecatedresponsebody.md b/docs/models/operations/getcitiesbyclicksdeprecatedresponsebody.md deleted file mode 100644 index 22360b0..0000000 --- a/docs/models/operations/getcitiesbyclicksdeprecatedresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetCitiesByClicksDeprecatedResponseBody - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `city` | *string* | :heavy_check_mark: | The name of the city | -| `country` | [operations.GetCitiesByClicksDeprecatedCountry](../../models/operations/getcitiesbyclicksdeprecatedcountry.md) | :heavy_check_mark: | The 2-letter country code of the city: https://d.to/geo | -| `clicks` | *number* | :heavy_check_mark: | The number of clicks from this city | \ No newline at end of file diff --git a/docs/models/operations/getcitiesbyclicksqueryparamcountry.md b/docs/models/operations/getcitiesbyclicksqueryparamcountry.md deleted file mode 100644 index ad338e6..0000000 --- a/docs/models/operations/getcitiesbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetCitiesByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getcitiesbyclicksrequest.md b/docs/models/operations/getcitiesbyclicksrequest.md index 7f3f2d8..7a51be5 100644 --- a/docs/models/operations/getcitiesbyclicksrequest.md +++ b/docs/models/operations/getcitiesbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetCitiesByClicksQueryParamInterval](../../models/operations/getcitiesbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetCitiesByClicksQueryParamCountry](../../models/operations/getcitiesbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getcitiesbyclicksresponsebody.md b/docs/models/operations/getcitiesbyclicksresponsebody.md deleted file mode 100644 index b526f2c..0000000 --- a/docs/models/operations/getcitiesbyclicksresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetCitiesByClicksResponseBody - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `city` | *string* | :heavy_check_mark: | The name of the city | -| `country` | [operations.GetCitiesByClicksCountry](../../models/operations/getcitiesbyclickscountry.md) | :heavy_check_mark: | The 2-letter country code of the city: https://d.to/geo | -| `clicks` | *number* | :heavy_check_mark: | The number of clicks from this city | \ No newline at end of file diff --git a/docs/models/operations/getclickscountdeprecatedqueryparamcountry.md b/docs/models/operations/getclickscountdeprecatedqueryparamcountry.md deleted file mode 100644 index 8b016fa..0000000 --- a/docs/models/operations/getclickscountdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetClicksCountDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getclickscountdeprecatedrequest.md b/docs/models/operations/getclickscountdeprecatedrequest.md index 4bc5b21..ef9b425 100644 --- a/docs/models/operations/getclickscountdeprecatedrequest.md +++ b/docs/models/operations/getclickscountdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetClicksCountDeprecatedQueryParamInterval](../../models/operations/getclickscountdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetClicksCountDeprecatedQueryParamCountry](../../models/operations/getclickscountdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getclickscountrequest.md b/docs/models/operations/getclickscountrequest.md index fd8fb91..7c0d673 100644 --- a/docs/models/operations/getclickscountrequest.md +++ b/docs/models/operations/getclickscountrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.Interval](../../models/operations/interval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.Country](../../models/operations/country.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getcountriesbyclickscountry.md b/docs/models/operations/getcountriesbyclickscountry.md deleted file mode 100644 index 329494a..0000000 --- a/docs/models/operations/getcountriesbyclickscountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetCountriesByClicksCountry - -The 2-letter country code: https://d.to/geo - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getcountriesbyclicksdeprecatedcountry.md b/docs/models/operations/getcountriesbyclicksdeprecatedcountry.md deleted file mode 100644 index 492cc58..0000000 --- a/docs/models/operations/getcountriesbyclicksdeprecatedcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetCountriesByClicksDeprecatedCountry - -The 2-letter country code: https://d.to/geo - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getcountriesbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/getcountriesbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index 0c49736..0000000 --- a/docs/models/operations/getcountriesbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetCountriesByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getcountriesbyclicksdeprecatedrequest.md b/docs/models/operations/getcountriesbyclicksdeprecatedrequest.md index b516f42..a1aec13 100644 --- a/docs/models/operations/getcountriesbyclicksdeprecatedrequest.md +++ b/docs/models/operations/getcountriesbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetCountriesByClicksDeprecatedQueryParamInterval](../../models/operations/getcountriesbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetCountriesByClicksDeprecatedQueryParamCountry](../../models/operations/getcountriesbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getcountriesbyclicksdeprecatedresponsebody.md b/docs/models/operations/getcountriesbyclicksdeprecatedresponsebody.md deleted file mode 100644 index 7fca1de..0000000 --- a/docs/models/operations/getcountriesbyclicksdeprecatedresponsebody.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetCountriesByClicksDeprecatedResponseBody - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `country` | [operations.GetCountriesByClicksDeprecatedCountry](../../models/operations/getcountriesbyclicksdeprecatedcountry.md) | :heavy_check_mark: | The 2-letter country code: https://d.to/geo | -| `clicks` | *number* | :heavy_check_mark: | The number of clicks from this country | \ No newline at end of file diff --git a/docs/models/operations/getcountriesbyclicksqueryparamcountry.md b/docs/models/operations/getcountriesbyclicksqueryparamcountry.md deleted file mode 100644 index bd753c1..0000000 --- a/docs/models/operations/getcountriesbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetCountriesByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getcountriesbyclicksrequest.md b/docs/models/operations/getcountriesbyclicksrequest.md index 9669921..14b8bd9 100644 --- a/docs/models/operations/getcountriesbyclicksrequest.md +++ b/docs/models/operations/getcountriesbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetCountriesByClicksQueryParamInterval](../../models/operations/getcountriesbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetCountriesByClicksQueryParamCountry](../../models/operations/getcountriesbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getcountriesbyclicksresponsebody.md b/docs/models/operations/getcountriesbyclicksresponsebody.md deleted file mode 100644 index 7bcd267..0000000 --- a/docs/models/operations/getcountriesbyclicksresponsebody.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetCountriesByClicksResponseBody - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `country` | [operations.GetCountriesByClicksCountry](../../models/operations/getcountriesbyclickscountry.md) | :heavy_check_mark: | The 2-letter country code: https://d.to/geo | -| `clicks` | *number* | :heavy_check_mark: | The number of clicks from this country | \ No newline at end of file diff --git a/docs/models/operations/getdevicesbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/getdevicesbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index 4004b30..0000000 --- a/docs/models/operations/getdevicesbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetDevicesByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getdevicesbyclicksdeprecatedrequest.md b/docs/models/operations/getdevicesbyclicksdeprecatedrequest.md index 4234146..ba81b51 100644 --- a/docs/models/operations/getdevicesbyclicksdeprecatedrequest.md +++ b/docs/models/operations/getdevicesbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetDevicesByClicksDeprecatedQueryParamInterval](../../models/operations/getdevicesbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetDevicesByClicksDeprecatedQueryParamCountry](../../models/operations/getdevicesbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getdevicesbyclicksqueryparamcountry.md b/docs/models/operations/getdevicesbyclicksqueryparamcountry.md deleted file mode 100644 index 1849769..0000000 --- a/docs/models/operations/getdevicesbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetDevicesByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getdevicesbyclicksrequest.md b/docs/models/operations/getdevicesbyclicksrequest.md index 7e3a752..6635502 100644 --- a/docs/models/operations/getdevicesbyclicksrequest.md +++ b/docs/models/operations/getdevicesbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetDevicesByClicksQueryParamInterval](../../models/operations/getdevicesbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetDevicesByClicksQueryParamCountry](../../models/operations/getdevicesbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getosbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/getosbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index 301c0b5..0000000 --- a/docs/models/operations/getosbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetOSByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getosbyclicksdeprecatedrequest.md b/docs/models/operations/getosbyclicksdeprecatedrequest.md index 0085867..1f20299 100644 --- a/docs/models/operations/getosbyclicksdeprecatedrequest.md +++ b/docs/models/operations/getosbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetOSByClicksDeprecatedQueryParamInterval](../../models/operations/getosbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetOSByClicksDeprecatedQueryParamCountry](../../models/operations/getosbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getosbyclicksqueryparamcountry.md b/docs/models/operations/getosbyclicksqueryparamcountry.md deleted file mode 100644 index c1c510b..0000000 --- a/docs/models/operations/getosbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetOSByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getosbyclicksrequest.md b/docs/models/operations/getosbyclicksrequest.md index 86dbe67..8531e13 100644 --- a/docs/models/operations/getosbyclicksrequest.md +++ b/docs/models/operations/getosbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetOSByClicksQueryParamInterval](../../models/operations/getosbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetOSByClicksQueryParamCountry](../../models/operations/getosbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getreferersbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/getreferersbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index fd57ddf..0000000 --- a/docs/models/operations/getreferersbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetReferersByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getreferersbyclicksdeprecatedrequest.md b/docs/models/operations/getreferersbyclicksdeprecatedrequest.md index bf14462..e08c570 100644 --- a/docs/models/operations/getreferersbyclicksdeprecatedrequest.md +++ b/docs/models/operations/getreferersbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetReferersByClicksDeprecatedQueryParamInterval](../../models/operations/getreferersbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetReferersByClicksDeprecatedQueryParamCountry](../../models/operations/getreferersbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/getreferersbyclicksqueryparamcountry.md b/docs/models/operations/getreferersbyclicksqueryparamcountry.md deleted file mode 100644 index 16d2f16..0000000 --- a/docs/models/operations/getreferersbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetReferersByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/getreferersbyclicksrequest.md b/docs/models/operations/getreferersbyclicksrequest.md index 354973f..11490ff 100644 --- a/docs/models/operations/getreferersbyclicksrequest.md +++ b/docs/models/operations/getreferersbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetReferersByClicksQueryParamInterval](../../models/operations/getreferersbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetReferersByClicksQueryParamCountry](../../models/operations/getreferersbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/gettimeseriesbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/gettimeseriesbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index 17a02b6..0000000 --- a/docs/models/operations/gettimeseriesbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetTimeseriesByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/gettimeseriesbyclicksdeprecatedrequest.md b/docs/models/operations/gettimeseriesbyclicksdeprecatedrequest.md index 43e22eb..b6bab67 100644 --- a/docs/models/operations/gettimeseriesbyclicksdeprecatedrequest.md +++ b/docs/models/operations/gettimeseriesbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetTimeseriesByClicksDeprecatedQueryParamInterval](../../models/operations/gettimeseriesbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetTimeseriesByClicksDeprecatedQueryParamCountry](../../models/operations/gettimeseriesbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/gettimeseriesbyclicksrequest.md b/docs/models/operations/gettimeseriesbyclicksrequest.md index c454975..cb43a25 100644 --- a/docs/models/operations/gettimeseriesbyclicksrequest.md +++ b/docs/models/operations/gettimeseriesbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.QueryParamInterval](../../models/operations/queryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.QueryParamCountry](../../models/operations/queryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/gettoplinksbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/gettoplinksbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index b1aa730..0000000 --- a/docs/models/operations/gettoplinksbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetTopLinksByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/gettoplinksbyclicksdeprecatedrequest.md b/docs/models/operations/gettoplinksbyclicksdeprecatedrequest.md index daa2434..f84afc1 100644 --- a/docs/models/operations/gettoplinksbyclicksdeprecatedrequest.md +++ b/docs/models/operations/gettoplinksbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetTopLinksByClicksDeprecatedQueryParamInterval](../../models/operations/gettoplinksbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetTopLinksByClicksDeprecatedQueryParamCountry](../../models/operations/gettoplinksbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/gettoplinksbyclicksqueryparamcountry.md b/docs/models/operations/gettoplinksbyclicksqueryparamcountry.md deleted file mode 100644 index 6bbb5e1..0000000 --- a/docs/models/operations/gettoplinksbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetTopLinksByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/gettoplinksbyclicksrequest.md b/docs/models/operations/gettoplinksbyclicksrequest.md index 0d44e81..9821354 100644 --- a/docs/models/operations/gettoplinksbyclicksrequest.md +++ b/docs/models/operations/gettoplinksbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetTopLinksByClicksQueryParamInterval](../../models/operations/gettoplinksbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetTopLinksByClicksQueryParamCountry](../../models/operations/gettoplinksbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/gettopurlsbyclicksdeprecatedqueryparamcountry.md b/docs/models/operations/gettopurlsbyclicksdeprecatedqueryparamcountry.md deleted file mode 100644 index 5d51834..0000000 --- a/docs/models/operations/gettopurlsbyclicksdeprecatedqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetTopURLsByClicksDeprecatedQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/gettopurlsbyclicksdeprecatedrequest.md b/docs/models/operations/gettopurlsbyclicksdeprecatedrequest.md index 1aa5103..8814980 100644 --- a/docs/models/operations/gettopurlsbyclicksdeprecatedrequest.md +++ b/docs/models/operations/gettopurlsbyclicksdeprecatedrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetTopURLsByClicksDeprecatedQueryParamInterval](../../models/operations/gettopurlsbyclicksdeprecatedqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetTopURLsByClicksDeprecatedQueryParamCountry](../../models/operations/gettopurlsbyclicksdeprecatedqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/gettopurlsbyclicksqueryparamcountry.md b/docs/models/operations/gettopurlsbyclicksqueryparamcountry.md deleted file mode 100644 index dd8ae33..0000000 --- a/docs/models/operations/gettopurlsbyclicksqueryparamcountry.md +++ /dev/null @@ -1,259 +0,0 @@ -# GetTopURLsByClicksQueryParamCountry - -The country to retrieve analytics for. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bs` | BS | -| `Bh` | BH | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mk` | MK | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | -| `Ax` | AX | -| `Bq` | BQ | -| `Cw` | CW | -| `Gg` | GG | -| `Im` | IM | -| `Je` | JE | -| `Me` | ME | -| `Bl` | BL | -| `Mf` | MF | -| `Rs` | RS | -| `Sx` | SX | -| `Ss` | SS | -| `Xk` | XK | \ No newline at end of file diff --git a/docs/models/operations/gettopurlsbyclicksrequest.md b/docs/models/operations/gettopurlsbyclicksrequest.md index ce869cc..80dff72 100644 --- a/docs/models/operations/gettopurlsbyclicksrequest.md +++ b/docs/models/operations/gettopurlsbyclicksrequest.md @@ -12,7 +12,7 @@ | `interval` | [operations.GetTopURLsByClicksQueryParamInterval](../../models/operations/gettopurlsbyclicksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | `start` | *string* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | -| `country` | [operations.GetTopURLsByClicksQueryParamCountry](../../models/operations/gettopurlsbyclicksqueryparamcountry.md) | :heavy_minus_sign: | The country to retrieve analytics for. | +| `country` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | | `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | | `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | diff --git a/docs/models/operations/requestbody.md b/docs/models/operations/requestbody.md index 91af03d..432b169 100644 --- a/docs/models/operations/requestbody.md +++ b/docs/models/operations/requestbody.md @@ -26,4 +26,4 @@ | `rewrite` | *boolean* | :heavy_minus_sign: | Whether the short link uses link cloaking. | | | `ios` | *string* | :heavy_minus_sign: | The iOS destination URL for the short link for iOS device targeting. | | | `android` | *string* | :heavy_minus_sign: | The Android destination URL for the short link for Android device targeting. | | -| `geo` | [operations.BulkCreateLinksGeo](../../models/operations/bulkcreatelinksgeo.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file +| `geo` | [components.LinkGeoTargeting](../../models/components/linkgeotargeting.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file diff --git a/docs/models/operations/updatelinkgeo.md b/docs/models/operations/updatelinkgeo.md deleted file mode 100644 index c78e714..0000000 --- a/docs/models/operations/updatelinkgeo.md +++ /dev/null @@ -1,259 +0,0 @@ -# UpdateLinkGeo - -Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `af` | *string* | :heavy_minus_sign: | N/A | -| `al` | *string* | :heavy_minus_sign: | N/A | -| `dz` | *string* | :heavy_minus_sign: | N/A | -| `as` | *string* | :heavy_minus_sign: | N/A | -| `ad` | *string* | :heavy_minus_sign: | N/A | -| `ao` | *string* | :heavy_minus_sign: | N/A | -| `ai` | *string* | :heavy_minus_sign: | N/A | -| `aq` | *string* | :heavy_minus_sign: | N/A | -| `ag` | *string* | :heavy_minus_sign: | N/A | -| `ar` | *string* | :heavy_minus_sign: | N/A | -| `am` | *string* | :heavy_minus_sign: | N/A | -| `aw` | *string* | :heavy_minus_sign: | N/A | -| `au` | *string* | :heavy_minus_sign: | N/A | -| `at` | *string* | :heavy_minus_sign: | N/A | -| `az` | *string* | :heavy_minus_sign: | N/A | -| `bs` | *string* | :heavy_minus_sign: | N/A | -| `bh` | *string* | :heavy_minus_sign: | N/A | -| `bd` | *string* | :heavy_minus_sign: | N/A | -| `bb` | *string* | :heavy_minus_sign: | N/A | -| `by` | *string* | :heavy_minus_sign: | N/A | -| `be` | *string* | :heavy_minus_sign: | N/A | -| `bz` | *string* | :heavy_minus_sign: | N/A | -| `bj` | *string* | :heavy_minus_sign: | N/A | -| `bm` | *string* | :heavy_minus_sign: | N/A | -| `bt` | *string* | :heavy_minus_sign: | N/A | -| `bo` | *string* | :heavy_minus_sign: | N/A | -| `ba` | *string* | :heavy_minus_sign: | N/A | -| `bw` | *string* | :heavy_minus_sign: | N/A | -| `bv` | *string* | :heavy_minus_sign: | N/A | -| `br` | *string* | :heavy_minus_sign: | N/A | -| `io` | *string* | :heavy_minus_sign: | N/A | -| `bn` | *string* | :heavy_minus_sign: | N/A | -| `bg` | *string* | :heavy_minus_sign: | N/A | -| `bf` | *string* | :heavy_minus_sign: | N/A | -| `bi` | *string* | :heavy_minus_sign: | N/A | -| `kh` | *string* | :heavy_minus_sign: | N/A | -| `cm` | *string* | :heavy_minus_sign: | N/A | -| `ca` | *string* | :heavy_minus_sign: | N/A | -| `cv` | *string* | :heavy_minus_sign: | N/A | -| `ky` | *string* | :heavy_minus_sign: | N/A | -| `cf` | *string* | :heavy_minus_sign: | N/A | -| `td` | *string* | :heavy_minus_sign: | N/A | -| `cl` | *string* | :heavy_minus_sign: | N/A | -| `cn` | *string* | :heavy_minus_sign: | N/A | -| `cx` | *string* | :heavy_minus_sign: | N/A | -| `cc` | *string* | :heavy_minus_sign: | N/A | -| `co` | *string* | :heavy_minus_sign: | N/A | -| `km` | *string* | :heavy_minus_sign: | N/A | -| `cg` | *string* | :heavy_minus_sign: | N/A | -| `cd` | *string* | :heavy_minus_sign: | N/A | -| `ck` | *string* | :heavy_minus_sign: | N/A | -| `cr` | *string* | :heavy_minus_sign: | N/A | -| `ci` | *string* | :heavy_minus_sign: | N/A | -| `hr` | *string* | :heavy_minus_sign: | N/A | -| `cu` | *string* | :heavy_minus_sign: | N/A | -| `cy` | *string* | :heavy_minus_sign: | N/A | -| `cz` | *string* | :heavy_minus_sign: | N/A | -| `dk` | *string* | :heavy_minus_sign: | N/A | -| `dj` | *string* | :heavy_minus_sign: | N/A | -| `dm` | *string* | :heavy_minus_sign: | N/A | -| `do` | *string* | :heavy_minus_sign: | N/A | -| `ec` | *string* | :heavy_minus_sign: | N/A | -| `eg` | *string* | :heavy_minus_sign: | N/A | -| `sv` | *string* | :heavy_minus_sign: | N/A | -| `gq` | *string* | :heavy_minus_sign: | N/A | -| `er` | *string* | :heavy_minus_sign: | N/A | -| `ee` | *string* | :heavy_minus_sign: | N/A | -| `et` | *string* | :heavy_minus_sign: | N/A | -| `fk` | *string* | :heavy_minus_sign: | N/A | -| `fo` | *string* | :heavy_minus_sign: | N/A | -| `fj` | *string* | :heavy_minus_sign: | N/A | -| `fi` | *string* | :heavy_minus_sign: | N/A | -| `fr` | *string* | :heavy_minus_sign: | N/A | -| `gf` | *string* | :heavy_minus_sign: | N/A | -| `pf` | *string* | :heavy_minus_sign: | N/A | -| `tf` | *string* | :heavy_minus_sign: | N/A | -| `ga` | *string* | :heavy_minus_sign: | N/A | -| `gm` | *string* | :heavy_minus_sign: | N/A | -| `ge` | *string* | :heavy_minus_sign: | N/A | -| `de` | *string* | :heavy_minus_sign: | N/A | -| `gh` | *string* | :heavy_minus_sign: | N/A | -| `gi` | *string* | :heavy_minus_sign: | N/A | -| `gr` | *string* | :heavy_minus_sign: | N/A | -| `gl` | *string* | :heavy_minus_sign: | N/A | -| `gd` | *string* | :heavy_minus_sign: | N/A | -| `gp` | *string* | :heavy_minus_sign: | N/A | -| `gu` | *string* | :heavy_minus_sign: | N/A | -| `gt` | *string* | :heavy_minus_sign: | N/A | -| `gn` | *string* | :heavy_minus_sign: | N/A | -| `gw` | *string* | :heavy_minus_sign: | N/A | -| `gy` | *string* | :heavy_minus_sign: | N/A | -| `ht` | *string* | :heavy_minus_sign: | N/A | -| `hm` | *string* | :heavy_minus_sign: | N/A | -| `va` | *string* | :heavy_minus_sign: | N/A | -| `hn` | *string* | :heavy_minus_sign: | N/A | -| `hk` | *string* | :heavy_minus_sign: | N/A | -| `hu` | *string* | :heavy_minus_sign: | N/A | -| `is` | *string* | :heavy_minus_sign: | N/A | -| `in` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `ir` | *string* | :heavy_minus_sign: | N/A | -| `iq` | *string* | :heavy_minus_sign: | N/A | -| `ie` | *string* | :heavy_minus_sign: | N/A | -| `il` | *string* | :heavy_minus_sign: | N/A | -| `it` | *string* | :heavy_minus_sign: | N/A | -| `jm` | *string* | :heavy_minus_sign: | N/A | -| `jp` | *string* | :heavy_minus_sign: | N/A | -| `jo` | *string* | :heavy_minus_sign: | N/A | -| `kz` | *string* | :heavy_minus_sign: | N/A | -| `ke` | *string* | :heavy_minus_sign: | N/A | -| `ki` | *string* | :heavy_minus_sign: | N/A | -| `kp` | *string* | :heavy_minus_sign: | N/A | -| `kr` | *string* | :heavy_minus_sign: | N/A | -| `kw` | *string* | :heavy_minus_sign: | N/A | -| `kg` | *string* | :heavy_minus_sign: | N/A | -| `la` | *string* | :heavy_minus_sign: | N/A | -| `lv` | *string* | :heavy_minus_sign: | N/A | -| `lb` | *string* | :heavy_minus_sign: | N/A | -| `ls` | *string* | :heavy_minus_sign: | N/A | -| `lr` | *string* | :heavy_minus_sign: | N/A | -| `ly` | *string* | :heavy_minus_sign: | N/A | -| `li` | *string* | :heavy_minus_sign: | N/A | -| `lt` | *string* | :heavy_minus_sign: | N/A | -| `lu` | *string* | :heavy_minus_sign: | N/A | -| `mo` | *string* | :heavy_minus_sign: | N/A | -| `mg` | *string* | :heavy_minus_sign: | N/A | -| `mw` | *string* | :heavy_minus_sign: | N/A | -| `my` | *string* | :heavy_minus_sign: | N/A | -| `mv` | *string* | :heavy_minus_sign: | N/A | -| `ml` | *string* | :heavy_minus_sign: | N/A | -| `mt` | *string* | :heavy_minus_sign: | N/A | -| `mh` | *string* | :heavy_minus_sign: | N/A | -| `mq` | *string* | :heavy_minus_sign: | N/A | -| `mr` | *string* | :heavy_minus_sign: | N/A | -| `mu` | *string* | :heavy_minus_sign: | N/A | -| `yt` | *string* | :heavy_minus_sign: | N/A | -| `mx` | *string* | :heavy_minus_sign: | N/A | -| `fm` | *string* | :heavy_minus_sign: | N/A | -| `md` | *string* | :heavy_minus_sign: | N/A | -| `mc` | *string* | :heavy_minus_sign: | N/A | -| `mn` | *string* | :heavy_minus_sign: | N/A | -| `ms` | *string* | :heavy_minus_sign: | N/A | -| `ma` | *string* | :heavy_minus_sign: | N/A | -| `mz` | *string* | :heavy_minus_sign: | N/A | -| `mm` | *string* | :heavy_minus_sign: | N/A | -| `na` | *string* | :heavy_minus_sign: | N/A | -| `nr` | *string* | :heavy_minus_sign: | N/A | -| `np` | *string* | :heavy_minus_sign: | N/A | -| `nl` | *string* | :heavy_minus_sign: | N/A | -| `nc` | *string* | :heavy_minus_sign: | N/A | -| `nz` | *string* | :heavy_minus_sign: | N/A | -| `ni` | *string* | :heavy_minus_sign: | N/A | -| `ne` | *string* | :heavy_minus_sign: | N/A | -| `ng` | *string* | :heavy_minus_sign: | N/A | -| `nu` | *string* | :heavy_minus_sign: | N/A | -| `nf` | *string* | :heavy_minus_sign: | N/A | -| `mk` | *string* | :heavy_minus_sign: | N/A | -| `mp` | *string* | :heavy_minus_sign: | N/A | -| `no` | *string* | :heavy_minus_sign: | N/A | -| `om` | *string* | :heavy_minus_sign: | N/A | -| `pk` | *string* | :heavy_minus_sign: | N/A | -| `pw` | *string* | :heavy_minus_sign: | N/A | -| `ps` | *string* | :heavy_minus_sign: | N/A | -| `pa` | *string* | :heavy_minus_sign: | N/A | -| `pg` | *string* | :heavy_minus_sign: | N/A | -| `py` | *string* | :heavy_minus_sign: | N/A | -| `pe` | *string* | :heavy_minus_sign: | N/A | -| `ph` | *string* | :heavy_minus_sign: | N/A | -| `pn` | *string* | :heavy_minus_sign: | N/A | -| `pl` | *string* | :heavy_minus_sign: | N/A | -| `pt` | *string* | :heavy_minus_sign: | N/A | -| `pr` | *string* | :heavy_minus_sign: | N/A | -| `qa` | *string* | :heavy_minus_sign: | N/A | -| `re` | *string* | :heavy_minus_sign: | N/A | -| `ro` | *string* | :heavy_minus_sign: | N/A | -| `ru` | *string* | :heavy_minus_sign: | N/A | -| `rw` | *string* | :heavy_minus_sign: | N/A | -| `sh` | *string* | :heavy_minus_sign: | N/A | -| `kn` | *string* | :heavy_minus_sign: | N/A | -| `lc` | *string* | :heavy_minus_sign: | N/A | -| `pm` | *string* | :heavy_minus_sign: | N/A | -| `vc` | *string* | :heavy_minus_sign: | N/A | -| `ws` | *string* | :heavy_minus_sign: | N/A | -| `sm` | *string* | :heavy_minus_sign: | N/A | -| `st` | *string* | :heavy_minus_sign: | N/A | -| `sa` | *string* | :heavy_minus_sign: | N/A | -| `sn` | *string* | :heavy_minus_sign: | N/A | -| `sc` | *string* | :heavy_minus_sign: | N/A | -| `sl` | *string* | :heavy_minus_sign: | N/A | -| `sg` | *string* | :heavy_minus_sign: | N/A | -| `sk` | *string* | :heavy_minus_sign: | N/A | -| `si` | *string* | :heavy_minus_sign: | N/A | -| `sb` | *string* | :heavy_minus_sign: | N/A | -| `so` | *string* | :heavy_minus_sign: | N/A | -| `za` | *string* | :heavy_minus_sign: | N/A | -| `gs` | *string* | :heavy_minus_sign: | N/A | -| `es` | *string* | :heavy_minus_sign: | N/A | -| `lk` | *string* | :heavy_minus_sign: | N/A | -| `sd` | *string* | :heavy_minus_sign: | N/A | -| `sr` | *string* | :heavy_minus_sign: | N/A | -| `sj` | *string* | :heavy_minus_sign: | N/A | -| `sz` | *string* | :heavy_minus_sign: | N/A | -| `se` | *string* | :heavy_minus_sign: | N/A | -| `ch` | *string* | :heavy_minus_sign: | N/A | -| `sy` | *string* | :heavy_minus_sign: | N/A | -| `tw` | *string* | :heavy_minus_sign: | N/A | -| `tj` | *string* | :heavy_minus_sign: | N/A | -| `tz` | *string* | :heavy_minus_sign: | N/A | -| `th` | *string* | :heavy_minus_sign: | N/A | -| `tl` | *string* | :heavy_minus_sign: | N/A | -| `tg` | *string* | :heavy_minus_sign: | N/A | -| `tk` | *string* | :heavy_minus_sign: | N/A | -| `to` | *string* | :heavy_minus_sign: | N/A | -| `tt` | *string* | :heavy_minus_sign: | N/A | -| `tn` | *string* | :heavy_minus_sign: | N/A | -| `tr` | *string* | :heavy_minus_sign: | N/A | -| `tm` | *string* | :heavy_minus_sign: | N/A | -| `tc` | *string* | :heavy_minus_sign: | N/A | -| `tv` | *string* | :heavy_minus_sign: | N/A | -| `ug` | *string* | :heavy_minus_sign: | N/A | -| `ua` | *string* | :heavy_minus_sign: | N/A | -| `ae` | *string* | :heavy_minus_sign: | N/A | -| `gb` | *string* | :heavy_minus_sign: | N/A | -| `us` | *string* | :heavy_minus_sign: | N/A | -| `um` | *string* | :heavy_minus_sign: | N/A | -| `uy` | *string* | :heavy_minus_sign: | N/A | -| `uz` | *string* | :heavy_minus_sign: | N/A | -| `vu` | *string* | :heavy_minus_sign: | N/A | -| `ve` | *string* | :heavy_minus_sign: | N/A | -| `vn` | *string* | :heavy_minus_sign: | N/A | -| `vg` | *string* | :heavy_minus_sign: | N/A | -| `vi` | *string* | :heavy_minus_sign: | N/A | -| `wf` | *string* | :heavy_minus_sign: | N/A | -| `eh` | *string* | :heavy_minus_sign: | N/A | -| `ye` | *string* | :heavy_minus_sign: | N/A | -| `zm` | *string* | :heavy_minus_sign: | N/A | -| `zw` | *string* | :heavy_minus_sign: | N/A | -| `ax` | *string* | :heavy_minus_sign: | N/A | -| `bq` | *string* | :heavy_minus_sign: | N/A | -| `cw` | *string* | :heavy_minus_sign: | N/A | -| `gg` | *string* | :heavy_minus_sign: | N/A | -| `im` | *string* | :heavy_minus_sign: | N/A | -| `je` | *string* | :heavy_minus_sign: | N/A | -| `me` | *string* | :heavy_minus_sign: | N/A | -| `bl` | *string* | :heavy_minus_sign: | N/A | -| `mf` | *string* | :heavy_minus_sign: | N/A | -| `rs` | *string* | :heavy_minus_sign: | N/A | -| `sx` | *string* | :heavy_minus_sign: | N/A | -| `ss` | *string* | :heavy_minus_sign: | N/A | -| `xk` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatelinkrequestbody.md b/docs/models/operations/updatelinkrequestbody.md index adac73c..4b77ff6 100644 --- a/docs/models/operations/updatelinkrequestbody.md +++ b/docs/models/operations/updatelinkrequestbody.md @@ -26,4 +26,4 @@ | `rewrite` | *boolean* | :heavy_minus_sign: | Whether the short link uses link cloaking. | | | `ios` | *string* | :heavy_minus_sign: | The iOS destination URL for the short link for iOS device targeting. | | | `android` | *string* | :heavy_minus_sign: | The Android destination URL for the short link for Android device targeting. | | -| `geo` | [operations.UpdateLinkGeo](../../models/operations/updatelinkgeo.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file +| `geo` | [components.LinkGeoTargeting](../../models/components/linkgeotargeting.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file diff --git a/docs/models/operations/upsertlinkgeo.md b/docs/models/operations/upsertlinkgeo.md deleted file mode 100644 index 3ff84fe..0000000 --- a/docs/models/operations/upsertlinkgeo.md +++ /dev/null @@ -1,259 +0,0 @@ -# UpsertLinkGeo - -Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `af` | *string* | :heavy_minus_sign: | N/A | -| `al` | *string* | :heavy_minus_sign: | N/A | -| `dz` | *string* | :heavy_minus_sign: | N/A | -| `as` | *string* | :heavy_minus_sign: | N/A | -| `ad` | *string* | :heavy_minus_sign: | N/A | -| `ao` | *string* | :heavy_minus_sign: | N/A | -| `ai` | *string* | :heavy_minus_sign: | N/A | -| `aq` | *string* | :heavy_minus_sign: | N/A | -| `ag` | *string* | :heavy_minus_sign: | N/A | -| `ar` | *string* | :heavy_minus_sign: | N/A | -| `am` | *string* | :heavy_minus_sign: | N/A | -| `aw` | *string* | :heavy_minus_sign: | N/A | -| `au` | *string* | :heavy_minus_sign: | N/A | -| `at` | *string* | :heavy_minus_sign: | N/A | -| `az` | *string* | :heavy_minus_sign: | N/A | -| `bs` | *string* | :heavy_minus_sign: | N/A | -| `bh` | *string* | :heavy_minus_sign: | N/A | -| `bd` | *string* | :heavy_minus_sign: | N/A | -| `bb` | *string* | :heavy_minus_sign: | N/A | -| `by` | *string* | :heavy_minus_sign: | N/A | -| `be` | *string* | :heavy_minus_sign: | N/A | -| `bz` | *string* | :heavy_minus_sign: | N/A | -| `bj` | *string* | :heavy_minus_sign: | N/A | -| `bm` | *string* | :heavy_minus_sign: | N/A | -| `bt` | *string* | :heavy_minus_sign: | N/A | -| `bo` | *string* | :heavy_minus_sign: | N/A | -| `ba` | *string* | :heavy_minus_sign: | N/A | -| `bw` | *string* | :heavy_minus_sign: | N/A | -| `bv` | *string* | :heavy_minus_sign: | N/A | -| `br` | *string* | :heavy_minus_sign: | N/A | -| `io` | *string* | :heavy_minus_sign: | N/A | -| `bn` | *string* | :heavy_minus_sign: | N/A | -| `bg` | *string* | :heavy_minus_sign: | N/A | -| `bf` | *string* | :heavy_minus_sign: | N/A | -| `bi` | *string* | :heavy_minus_sign: | N/A | -| `kh` | *string* | :heavy_minus_sign: | N/A | -| `cm` | *string* | :heavy_minus_sign: | N/A | -| `ca` | *string* | :heavy_minus_sign: | N/A | -| `cv` | *string* | :heavy_minus_sign: | N/A | -| `ky` | *string* | :heavy_minus_sign: | N/A | -| `cf` | *string* | :heavy_minus_sign: | N/A | -| `td` | *string* | :heavy_minus_sign: | N/A | -| `cl` | *string* | :heavy_minus_sign: | N/A | -| `cn` | *string* | :heavy_minus_sign: | N/A | -| `cx` | *string* | :heavy_minus_sign: | N/A | -| `cc` | *string* | :heavy_minus_sign: | N/A | -| `co` | *string* | :heavy_minus_sign: | N/A | -| `km` | *string* | :heavy_minus_sign: | N/A | -| `cg` | *string* | :heavy_minus_sign: | N/A | -| `cd` | *string* | :heavy_minus_sign: | N/A | -| `ck` | *string* | :heavy_minus_sign: | N/A | -| `cr` | *string* | :heavy_minus_sign: | N/A | -| `ci` | *string* | :heavy_minus_sign: | N/A | -| `hr` | *string* | :heavy_minus_sign: | N/A | -| `cu` | *string* | :heavy_minus_sign: | N/A | -| `cy` | *string* | :heavy_minus_sign: | N/A | -| `cz` | *string* | :heavy_minus_sign: | N/A | -| `dk` | *string* | :heavy_minus_sign: | N/A | -| `dj` | *string* | :heavy_minus_sign: | N/A | -| `dm` | *string* | :heavy_minus_sign: | N/A | -| `do` | *string* | :heavy_minus_sign: | N/A | -| `ec` | *string* | :heavy_minus_sign: | N/A | -| `eg` | *string* | :heavy_minus_sign: | N/A | -| `sv` | *string* | :heavy_minus_sign: | N/A | -| `gq` | *string* | :heavy_minus_sign: | N/A | -| `er` | *string* | :heavy_minus_sign: | N/A | -| `ee` | *string* | :heavy_minus_sign: | N/A | -| `et` | *string* | :heavy_minus_sign: | N/A | -| `fk` | *string* | :heavy_minus_sign: | N/A | -| `fo` | *string* | :heavy_minus_sign: | N/A | -| `fj` | *string* | :heavy_minus_sign: | N/A | -| `fi` | *string* | :heavy_minus_sign: | N/A | -| `fr` | *string* | :heavy_minus_sign: | N/A | -| `gf` | *string* | :heavy_minus_sign: | N/A | -| `pf` | *string* | :heavy_minus_sign: | N/A | -| `tf` | *string* | :heavy_minus_sign: | N/A | -| `ga` | *string* | :heavy_minus_sign: | N/A | -| `gm` | *string* | :heavy_minus_sign: | N/A | -| `ge` | *string* | :heavy_minus_sign: | N/A | -| `de` | *string* | :heavy_minus_sign: | N/A | -| `gh` | *string* | :heavy_minus_sign: | N/A | -| `gi` | *string* | :heavy_minus_sign: | N/A | -| `gr` | *string* | :heavy_minus_sign: | N/A | -| `gl` | *string* | :heavy_minus_sign: | N/A | -| `gd` | *string* | :heavy_minus_sign: | N/A | -| `gp` | *string* | :heavy_minus_sign: | N/A | -| `gu` | *string* | :heavy_minus_sign: | N/A | -| `gt` | *string* | :heavy_minus_sign: | N/A | -| `gn` | *string* | :heavy_minus_sign: | N/A | -| `gw` | *string* | :heavy_minus_sign: | N/A | -| `gy` | *string* | :heavy_minus_sign: | N/A | -| `ht` | *string* | :heavy_minus_sign: | N/A | -| `hm` | *string* | :heavy_minus_sign: | N/A | -| `va` | *string* | :heavy_minus_sign: | N/A | -| `hn` | *string* | :heavy_minus_sign: | N/A | -| `hk` | *string* | :heavy_minus_sign: | N/A | -| `hu` | *string* | :heavy_minus_sign: | N/A | -| `is` | *string* | :heavy_minus_sign: | N/A | -| `in` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `ir` | *string* | :heavy_minus_sign: | N/A | -| `iq` | *string* | :heavy_minus_sign: | N/A | -| `ie` | *string* | :heavy_minus_sign: | N/A | -| `il` | *string* | :heavy_minus_sign: | N/A | -| `it` | *string* | :heavy_minus_sign: | N/A | -| `jm` | *string* | :heavy_minus_sign: | N/A | -| `jp` | *string* | :heavy_minus_sign: | N/A | -| `jo` | *string* | :heavy_minus_sign: | N/A | -| `kz` | *string* | :heavy_minus_sign: | N/A | -| `ke` | *string* | :heavy_minus_sign: | N/A | -| `ki` | *string* | :heavy_minus_sign: | N/A | -| `kp` | *string* | :heavy_minus_sign: | N/A | -| `kr` | *string* | :heavy_minus_sign: | N/A | -| `kw` | *string* | :heavy_minus_sign: | N/A | -| `kg` | *string* | :heavy_minus_sign: | N/A | -| `la` | *string* | :heavy_minus_sign: | N/A | -| `lv` | *string* | :heavy_minus_sign: | N/A | -| `lb` | *string* | :heavy_minus_sign: | N/A | -| `ls` | *string* | :heavy_minus_sign: | N/A | -| `lr` | *string* | :heavy_minus_sign: | N/A | -| `ly` | *string* | :heavy_minus_sign: | N/A | -| `li` | *string* | :heavy_minus_sign: | N/A | -| `lt` | *string* | :heavy_minus_sign: | N/A | -| `lu` | *string* | :heavy_minus_sign: | N/A | -| `mo` | *string* | :heavy_minus_sign: | N/A | -| `mg` | *string* | :heavy_minus_sign: | N/A | -| `mw` | *string* | :heavy_minus_sign: | N/A | -| `my` | *string* | :heavy_minus_sign: | N/A | -| `mv` | *string* | :heavy_minus_sign: | N/A | -| `ml` | *string* | :heavy_minus_sign: | N/A | -| `mt` | *string* | :heavy_minus_sign: | N/A | -| `mh` | *string* | :heavy_minus_sign: | N/A | -| `mq` | *string* | :heavy_minus_sign: | N/A | -| `mr` | *string* | :heavy_minus_sign: | N/A | -| `mu` | *string* | :heavy_minus_sign: | N/A | -| `yt` | *string* | :heavy_minus_sign: | N/A | -| `mx` | *string* | :heavy_minus_sign: | N/A | -| `fm` | *string* | :heavy_minus_sign: | N/A | -| `md` | *string* | :heavy_minus_sign: | N/A | -| `mc` | *string* | :heavy_minus_sign: | N/A | -| `mn` | *string* | :heavy_minus_sign: | N/A | -| `ms` | *string* | :heavy_minus_sign: | N/A | -| `ma` | *string* | :heavy_minus_sign: | N/A | -| `mz` | *string* | :heavy_minus_sign: | N/A | -| `mm` | *string* | :heavy_minus_sign: | N/A | -| `na` | *string* | :heavy_minus_sign: | N/A | -| `nr` | *string* | :heavy_minus_sign: | N/A | -| `np` | *string* | :heavy_minus_sign: | N/A | -| `nl` | *string* | :heavy_minus_sign: | N/A | -| `nc` | *string* | :heavy_minus_sign: | N/A | -| `nz` | *string* | :heavy_minus_sign: | N/A | -| `ni` | *string* | :heavy_minus_sign: | N/A | -| `ne` | *string* | :heavy_minus_sign: | N/A | -| `ng` | *string* | :heavy_minus_sign: | N/A | -| `nu` | *string* | :heavy_minus_sign: | N/A | -| `nf` | *string* | :heavy_minus_sign: | N/A | -| `mk` | *string* | :heavy_minus_sign: | N/A | -| `mp` | *string* | :heavy_minus_sign: | N/A | -| `no` | *string* | :heavy_minus_sign: | N/A | -| `om` | *string* | :heavy_minus_sign: | N/A | -| `pk` | *string* | :heavy_minus_sign: | N/A | -| `pw` | *string* | :heavy_minus_sign: | N/A | -| `ps` | *string* | :heavy_minus_sign: | N/A | -| `pa` | *string* | :heavy_minus_sign: | N/A | -| `pg` | *string* | :heavy_minus_sign: | N/A | -| `py` | *string* | :heavy_minus_sign: | N/A | -| `pe` | *string* | :heavy_minus_sign: | N/A | -| `ph` | *string* | :heavy_minus_sign: | N/A | -| `pn` | *string* | :heavy_minus_sign: | N/A | -| `pl` | *string* | :heavy_minus_sign: | N/A | -| `pt` | *string* | :heavy_minus_sign: | N/A | -| `pr` | *string* | :heavy_minus_sign: | N/A | -| `qa` | *string* | :heavy_minus_sign: | N/A | -| `re` | *string* | :heavy_minus_sign: | N/A | -| `ro` | *string* | :heavy_minus_sign: | N/A | -| `ru` | *string* | :heavy_minus_sign: | N/A | -| `rw` | *string* | :heavy_minus_sign: | N/A | -| `sh` | *string* | :heavy_minus_sign: | N/A | -| `kn` | *string* | :heavy_minus_sign: | N/A | -| `lc` | *string* | :heavy_minus_sign: | N/A | -| `pm` | *string* | :heavy_minus_sign: | N/A | -| `vc` | *string* | :heavy_minus_sign: | N/A | -| `ws` | *string* | :heavy_minus_sign: | N/A | -| `sm` | *string* | :heavy_minus_sign: | N/A | -| `st` | *string* | :heavy_minus_sign: | N/A | -| `sa` | *string* | :heavy_minus_sign: | N/A | -| `sn` | *string* | :heavy_minus_sign: | N/A | -| `sc` | *string* | :heavy_minus_sign: | N/A | -| `sl` | *string* | :heavy_minus_sign: | N/A | -| `sg` | *string* | :heavy_minus_sign: | N/A | -| `sk` | *string* | :heavy_minus_sign: | N/A | -| `si` | *string* | :heavy_minus_sign: | N/A | -| `sb` | *string* | :heavy_minus_sign: | N/A | -| `so` | *string* | :heavy_minus_sign: | N/A | -| `za` | *string* | :heavy_minus_sign: | N/A | -| `gs` | *string* | :heavy_minus_sign: | N/A | -| `es` | *string* | :heavy_minus_sign: | N/A | -| `lk` | *string* | :heavy_minus_sign: | N/A | -| `sd` | *string* | :heavy_minus_sign: | N/A | -| `sr` | *string* | :heavy_minus_sign: | N/A | -| `sj` | *string* | :heavy_minus_sign: | N/A | -| `sz` | *string* | :heavy_minus_sign: | N/A | -| `se` | *string* | :heavy_minus_sign: | N/A | -| `ch` | *string* | :heavy_minus_sign: | N/A | -| `sy` | *string* | :heavy_minus_sign: | N/A | -| `tw` | *string* | :heavy_minus_sign: | N/A | -| `tj` | *string* | :heavy_minus_sign: | N/A | -| `tz` | *string* | :heavy_minus_sign: | N/A | -| `th` | *string* | :heavy_minus_sign: | N/A | -| `tl` | *string* | :heavy_minus_sign: | N/A | -| `tg` | *string* | :heavy_minus_sign: | N/A | -| `tk` | *string* | :heavy_minus_sign: | N/A | -| `to` | *string* | :heavy_minus_sign: | N/A | -| `tt` | *string* | :heavy_minus_sign: | N/A | -| `tn` | *string* | :heavy_minus_sign: | N/A | -| `tr` | *string* | :heavy_minus_sign: | N/A | -| `tm` | *string* | :heavy_minus_sign: | N/A | -| `tc` | *string* | :heavy_minus_sign: | N/A | -| `tv` | *string* | :heavy_minus_sign: | N/A | -| `ug` | *string* | :heavy_minus_sign: | N/A | -| `ua` | *string* | :heavy_minus_sign: | N/A | -| `ae` | *string* | :heavy_minus_sign: | N/A | -| `gb` | *string* | :heavy_minus_sign: | N/A | -| `us` | *string* | :heavy_minus_sign: | N/A | -| `um` | *string* | :heavy_minus_sign: | N/A | -| `uy` | *string* | :heavy_minus_sign: | N/A | -| `uz` | *string* | :heavy_minus_sign: | N/A | -| `vu` | *string* | :heavy_minus_sign: | N/A | -| `ve` | *string* | :heavy_minus_sign: | N/A | -| `vn` | *string* | :heavy_minus_sign: | N/A | -| `vg` | *string* | :heavy_minus_sign: | N/A | -| `vi` | *string* | :heavy_minus_sign: | N/A | -| `wf` | *string* | :heavy_minus_sign: | N/A | -| `eh` | *string* | :heavy_minus_sign: | N/A | -| `ye` | *string* | :heavy_minus_sign: | N/A | -| `zm` | *string* | :heavy_minus_sign: | N/A | -| `zw` | *string* | :heavy_minus_sign: | N/A | -| `ax` | *string* | :heavy_minus_sign: | N/A | -| `bq` | *string* | :heavy_minus_sign: | N/A | -| `cw` | *string* | :heavy_minus_sign: | N/A | -| `gg` | *string* | :heavy_minus_sign: | N/A | -| `im` | *string* | :heavy_minus_sign: | N/A | -| `je` | *string* | :heavy_minus_sign: | N/A | -| `me` | *string* | :heavy_minus_sign: | N/A | -| `bl` | *string* | :heavy_minus_sign: | N/A | -| `mf` | *string* | :heavy_minus_sign: | N/A | -| `rs` | *string* | :heavy_minus_sign: | N/A | -| `sx` | *string* | :heavy_minus_sign: | N/A | -| `ss` | *string* | :heavy_minus_sign: | N/A | -| `xk` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/upsertlinkrequestbody.md b/docs/models/operations/upsertlinkrequestbody.md index b0e8e87..4c5f759 100644 --- a/docs/models/operations/upsertlinkrequestbody.md +++ b/docs/models/operations/upsertlinkrequestbody.md @@ -26,4 +26,4 @@ | `rewrite` | *boolean* | :heavy_minus_sign: | Whether the short link uses link cloaking. | | | `ios` | *string* | :heavy_minus_sign: | The iOS destination URL for the short link for iOS device targeting. | | | `android` | *string* | :heavy_minus_sign: | The Android destination URL for the short link for Android device targeting. | | -| `geo` | [operations.UpsertLinkGeo](../../models/operations/upsertlinkgeo.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file +| `geo` | [components.LinkGeoTargeting](../../models/components/linkgeotargeting.md) | :heavy_minus_sign: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. | | \ No newline at end of file diff --git a/docs/sdks/analytics/README.md b/docs/sdks/analytics/README.md index 4baac00..90c2a47 100644 --- a/docs/sdks/analytics/README.md +++ b/docs/sdks/analytics/README.md @@ -103,7 +103,7 @@ run(); ### Response -**Promise<[operations.GetCountriesByClicksDeprecatedResponseBody[]](../../models/.md)>** +**Promise<[components.ClicksByCountry[]](../../models/.md)>** ### Errors | Error Object | Status Code | Content Type | @@ -156,7 +156,7 @@ run(); ### Response -**Promise<[operations.GetCitiesByClicksDeprecatedResponseBody[]](../../models/.md)>** +**Promise<[components.ClicksByCities[]](../../models/.md)>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/clicks/README.md b/docs/sdks/clicks/README.md index 18418ce..9deccd3 100644 --- a/docs/sdks/clicks/README.md +++ b/docs/sdks/clicks/README.md @@ -152,7 +152,7 @@ run(); ### Response -**Promise<[operations.GetCountriesByClicksResponseBody[]](../../models/.md)>** +**Promise<[components.ClicksByCountry[]](../../models/.md)>** ### Errors | Error Object | Status Code | Content Type | @@ -203,7 +203,7 @@ run(); ### Response -**Promise<[operations.GetCitiesByClicksResponseBody[]](../../models/.md)>** +**Promise<[components.ClicksByCities[]](../../models/.md)>** ### Errors | Error Object | Status Code | Content Type | diff --git a/jsr.json b/jsr.json index a01f8b9..1915cd0 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "dub", - "version": "0.29.2", + "version": "0.29.3", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 21f096c..4f1d5e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dub", - "version": "0.29.2", + "version": "0.29.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dub", - "version": "0.29.2", + "version": "0.29.3", "devDependencies": { "@types/jsonpath": "^0.2.4", "@types/node": "^20.12.7", diff --git a/package.json b/package.json index 4031732..b87bbd1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dub", - "version": "0.29.2", + "version": "0.29.3", "author": "Dub", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index e65f250..5236bd3 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.2", + sdkVersion: "0.29.3", genVersion: "2.332.4", - userAgent: "speakeasy-sdk/typescript 0.29.2 2.332.4 0.0.1 dub", + userAgent: "speakeasy-sdk/typescript 0.29.3 2.332.4 0.0.1 dub", } as const; diff --git a/src/models/components/clicksbycities.ts b/src/models/components/clicksbycities.ts new file mode 100644 index 0000000..b9d91f6 --- /dev/null +++ b/src/models/components/clicksbycities.ts @@ -0,0 +1,324 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { ClosedEnum } from "../../types"; +import * as z from "zod"; + +/** + * The 2-letter country code of the city: https://d.to/geo + */ +export const ClicksByCitiesCountry = { + Af: "AF", + Al: "AL", + Dz: "DZ", + As: "AS", + Ad: "AD", + Ao: "AO", + Ai: "AI", + Aq: "AQ", + Ag: "AG", + Ar: "AR", + Am: "AM", + Aw: "AW", + Au: "AU", + At: "AT", + Az: "AZ", + Bs: "BS", + Bh: "BH", + Bd: "BD", + Bb: "BB", + By: "BY", + Be: "BE", + Bz: "BZ", + Bj: "BJ", + Bm: "BM", + Bt: "BT", + Bo: "BO", + Ba: "BA", + Bw: "BW", + Bv: "BV", + Br: "BR", + Io: "IO", + Bn: "BN", + Bg: "BG", + Bf: "BF", + Bi: "BI", + Kh: "KH", + Cm: "CM", + Ca: "CA", + Cv: "CV", + Ky: "KY", + Cf: "CF", + Td: "TD", + Cl: "CL", + Cn: "CN", + Cx: "CX", + Cc: "CC", + Co: "CO", + Km: "KM", + Cg: "CG", + Cd: "CD", + Ck: "CK", + Cr: "CR", + Ci: "CI", + Hr: "HR", + Cu: "CU", + Cy: "CY", + Cz: "CZ", + Dk: "DK", + Dj: "DJ", + Dm: "DM", + Do: "DO", + Ec: "EC", + Eg: "EG", + Sv: "SV", + Gq: "GQ", + Er: "ER", + Ee: "EE", + Et: "ET", + Fk: "FK", + Fo: "FO", + Fj: "FJ", + Fi: "FI", + Fr: "FR", + Gf: "GF", + Pf: "PF", + Tf: "TF", + Ga: "GA", + Gm: "GM", + Ge: "GE", + De: "DE", + Gh: "GH", + Gi: "GI", + Gr: "GR", + Gl: "GL", + Gd: "GD", + Gp: "GP", + Gu: "GU", + Gt: "GT", + Gn: "GN", + Gw: "GW", + Gy: "GY", + Ht: "HT", + Hm: "HM", + Va: "VA", + Hn: "HN", + Hk: "HK", + Hu: "HU", + Is: "IS", + In: "IN", + Id: "ID", + Ir: "IR", + Iq: "IQ", + Ie: "IE", + Il: "IL", + It: "IT", + Jm: "JM", + Jp: "JP", + Jo: "JO", + Kz: "KZ", + Ke: "KE", + Ki: "KI", + Kp: "KP", + Kr: "KR", + Kw: "KW", + Kg: "KG", + La: "LA", + Lv: "LV", + Lb: "LB", + Ls: "LS", + Lr: "LR", + Ly: "LY", + Li: "LI", + Lt: "LT", + Lu: "LU", + Mo: "MO", + Mg: "MG", + Mw: "MW", + My: "MY", + Mv: "MV", + Ml: "ML", + Mt: "MT", + Mh: "MH", + Mq: "MQ", + Mr: "MR", + Mu: "MU", + Yt: "YT", + Mx: "MX", + Fm: "FM", + Md: "MD", + Mc: "MC", + Mn: "MN", + Ms: "MS", + Ma: "MA", + Mz: "MZ", + Mm: "MM", + Na: "NA", + Nr: "NR", + Np: "NP", + Nl: "NL", + Nc: "NC", + Nz: "NZ", + Ni: "NI", + Ne: "NE", + Ng: "NG", + Nu: "NU", + Nf: "NF", + Mk: "MK", + Mp: "MP", + No: "NO", + Om: "OM", + Pk: "PK", + Pw: "PW", + Ps: "PS", + Pa: "PA", + Pg: "PG", + Py: "PY", + Pe: "PE", + Ph: "PH", + Pn: "PN", + Pl: "PL", + Pt: "PT", + Pr: "PR", + Qa: "QA", + Re: "RE", + Ro: "RO", + Ru: "RU", + Rw: "RW", + Sh: "SH", + Kn: "KN", + Lc: "LC", + Pm: "PM", + Vc: "VC", + Ws: "WS", + Sm: "SM", + St: "ST", + Sa: "SA", + Sn: "SN", + Sc: "SC", + Sl: "SL", + Sg: "SG", + Sk: "SK", + Si: "SI", + Sb: "SB", + So: "SO", + Za: "ZA", + Gs: "GS", + Es: "ES", + Lk: "LK", + Sd: "SD", + Sr: "SR", + Sj: "SJ", + Sz: "SZ", + Se: "SE", + Ch: "CH", + Sy: "SY", + Tw: "TW", + Tj: "TJ", + Tz: "TZ", + Th: "TH", + Tl: "TL", + Tg: "TG", + Tk: "TK", + To: "TO", + Tt: "TT", + Tn: "TN", + Tr: "TR", + Tm: "TM", + Tc: "TC", + Tv: "TV", + Ug: "UG", + Ua: "UA", + Ae: "AE", + Gb: "GB", + Us: "US", + Um: "UM", + Uy: "UY", + Uz: "UZ", + Vu: "VU", + Ve: "VE", + Vn: "VN", + Vg: "VG", + Vi: "VI", + Wf: "WF", + Eh: "EH", + Ye: "YE", + Zm: "ZM", + Zw: "ZW", + Ax: "AX", + Bq: "BQ", + Cw: "CW", + Gg: "GG", + Im: "IM", + Je: "JE", + Me: "ME", + Bl: "BL", + Mf: "MF", + Rs: "RS", + Sx: "SX", + Ss: "SS", + Xk: "XK", +} as const; +/** + * The 2-letter country code of the city: https://d.to/geo + */ +export type ClicksByCitiesCountry = ClosedEnum; + +export type ClicksByCities = { + /** + * The name of the city + */ + city: string; + /** + * The 2-letter country code of the city: https://d.to/geo + */ + country: ClicksByCitiesCountry; + /** + * The number of clicks from this city + */ + clicks: number; +}; + +/** @internal */ +export namespace ClicksByCitiesCountry$ { + export const inboundSchema = z.nativeEnum(ClicksByCitiesCountry); + export const outboundSchema = inboundSchema; +} + +/** @internal */ +export namespace ClicksByCities$ { + export const inboundSchema: z.ZodType = z + .object({ + city: z.string(), + country: ClicksByCitiesCountry$.inboundSchema, + clicks: z.number(), + }) + .transform((v) => { + return { + city: v.city, + country: v.country, + clicks: v.clicks, + }; + }); + + export type Outbound = { + city: string; + country: string; + clicks: number; + }; + + export const outboundSchema: z.ZodType = z + .object({ + city: z.string(), + country: ClicksByCitiesCountry$.outboundSchema, + clicks: z.number(), + }) + .transform((v) => { + return { + city: v.city, + country: v.country, + clicks: v.clicks, + }; + }); +} diff --git a/src/models/components/clicksbycountry.ts b/src/models/components/clicksbycountry.ts new file mode 100644 index 0000000..e1b9e72 --- /dev/null +++ b/src/models/components/clicksbycountry.ts @@ -0,0 +1,315 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { ClosedEnum } from "../../types"; +import * as z from "zod"; + +/** + * The 2-letter country code: https://d.to/geo + */ +export const Country = { + Af: "AF", + Al: "AL", + Dz: "DZ", + As: "AS", + Ad: "AD", + Ao: "AO", + Ai: "AI", + Aq: "AQ", + Ag: "AG", + Ar: "AR", + Am: "AM", + Aw: "AW", + Au: "AU", + At: "AT", + Az: "AZ", + Bs: "BS", + Bh: "BH", + Bd: "BD", + Bb: "BB", + By: "BY", + Be: "BE", + Bz: "BZ", + Bj: "BJ", + Bm: "BM", + Bt: "BT", + Bo: "BO", + Ba: "BA", + Bw: "BW", + Bv: "BV", + Br: "BR", + Io: "IO", + Bn: "BN", + Bg: "BG", + Bf: "BF", + Bi: "BI", + Kh: "KH", + Cm: "CM", + Ca: "CA", + Cv: "CV", + Ky: "KY", + Cf: "CF", + Td: "TD", + Cl: "CL", + Cn: "CN", + Cx: "CX", + Cc: "CC", + Co: "CO", + Km: "KM", + Cg: "CG", + Cd: "CD", + Ck: "CK", + Cr: "CR", + Ci: "CI", + Hr: "HR", + Cu: "CU", + Cy: "CY", + Cz: "CZ", + Dk: "DK", + Dj: "DJ", + Dm: "DM", + Do: "DO", + Ec: "EC", + Eg: "EG", + Sv: "SV", + Gq: "GQ", + Er: "ER", + Ee: "EE", + Et: "ET", + Fk: "FK", + Fo: "FO", + Fj: "FJ", + Fi: "FI", + Fr: "FR", + Gf: "GF", + Pf: "PF", + Tf: "TF", + Ga: "GA", + Gm: "GM", + Ge: "GE", + De: "DE", + Gh: "GH", + Gi: "GI", + Gr: "GR", + Gl: "GL", + Gd: "GD", + Gp: "GP", + Gu: "GU", + Gt: "GT", + Gn: "GN", + Gw: "GW", + Gy: "GY", + Ht: "HT", + Hm: "HM", + Va: "VA", + Hn: "HN", + Hk: "HK", + Hu: "HU", + Is: "IS", + In: "IN", + Id: "ID", + Ir: "IR", + Iq: "IQ", + Ie: "IE", + Il: "IL", + It: "IT", + Jm: "JM", + Jp: "JP", + Jo: "JO", + Kz: "KZ", + Ke: "KE", + Ki: "KI", + Kp: "KP", + Kr: "KR", + Kw: "KW", + Kg: "KG", + La: "LA", + Lv: "LV", + Lb: "LB", + Ls: "LS", + Lr: "LR", + Ly: "LY", + Li: "LI", + Lt: "LT", + Lu: "LU", + Mo: "MO", + Mg: "MG", + Mw: "MW", + My: "MY", + Mv: "MV", + Ml: "ML", + Mt: "MT", + Mh: "MH", + Mq: "MQ", + Mr: "MR", + Mu: "MU", + Yt: "YT", + Mx: "MX", + Fm: "FM", + Md: "MD", + Mc: "MC", + Mn: "MN", + Ms: "MS", + Ma: "MA", + Mz: "MZ", + Mm: "MM", + Na: "NA", + Nr: "NR", + Np: "NP", + Nl: "NL", + Nc: "NC", + Nz: "NZ", + Ni: "NI", + Ne: "NE", + Ng: "NG", + Nu: "NU", + Nf: "NF", + Mk: "MK", + Mp: "MP", + No: "NO", + Om: "OM", + Pk: "PK", + Pw: "PW", + Ps: "PS", + Pa: "PA", + Pg: "PG", + Py: "PY", + Pe: "PE", + Ph: "PH", + Pn: "PN", + Pl: "PL", + Pt: "PT", + Pr: "PR", + Qa: "QA", + Re: "RE", + Ro: "RO", + Ru: "RU", + Rw: "RW", + Sh: "SH", + Kn: "KN", + Lc: "LC", + Pm: "PM", + Vc: "VC", + Ws: "WS", + Sm: "SM", + St: "ST", + Sa: "SA", + Sn: "SN", + Sc: "SC", + Sl: "SL", + Sg: "SG", + Sk: "SK", + Si: "SI", + Sb: "SB", + So: "SO", + Za: "ZA", + Gs: "GS", + Es: "ES", + Lk: "LK", + Sd: "SD", + Sr: "SR", + Sj: "SJ", + Sz: "SZ", + Se: "SE", + Ch: "CH", + Sy: "SY", + Tw: "TW", + Tj: "TJ", + Tz: "TZ", + Th: "TH", + Tl: "TL", + Tg: "TG", + Tk: "TK", + To: "TO", + Tt: "TT", + Tn: "TN", + Tr: "TR", + Tm: "TM", + Tc: "TC", + Tv: "TV", + Ug: "UG", + Ua: "UA", + Ae: "AE", + Gb: "GB", + Us: "US", + Um: "UM", + Uy: "UY", + Uz: "UZ", + Vu: "VU", + Ve: "VE", + Vn: "VN", + Vg: "VG", + Vi: "VI", + Wf: "WF", + Eh: "EH", + Ye: "YE", + Zm: "ZM", + Zw: "ZW", + Ax: "AX", + Bq: "BQ", + Cw: "CW", + Gg: "GG", + Im: "IM", + Je: "JE", + Me: "ME", + Bl: "BL", + Mf: "MF", + Rs: "RS", + Sx: "SX", + Ss: "SS", + Xk: "XK", +} as const; +/** + * The 2-letter country code: https://d.to/geo + */ +export type Country = ClosedEnum; + +export type ClicksByCountry = { + /** + * The 2-letter country code: https://d.to/geo + */ + country: Country; + /** + * The number of clicks from this country + */ + clicks: number; +}; + +/** @internal */ +export namespace Country$ { + export const inboundSchema = z.nativeEnum(Country); + export const outboundSchema = inboundSchema; +} + +/** @internal */ +export namespace ClicksByCountry$ { + export const inboundSchema: z.ZodType = z + .object({ + country: Country$.inboundSchema, + clicks: z.number(), + }) + .transform((v) => { + return { + country: v.country, + clicks: v.clicks, + }; + }); + + export type Outbound = { + country: string; + clicks: number; + }; + + export const outboundSchema: z.ZodType = z + .object({ + country: Country$.outboundSchema, + clicks: z.number(), + }) + .transform((v) => { + return { + country: v.country, + clicks: v.clicks, + }; + }); +} diff --git a/src/models/components/countrycode.ts b/src/models/components/countrycode.ts new file mode 100644 index 0000000..940efcc --- /dev/null +++ b/src/models/components/countrycode.ts @@ -0,0 +1,272 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { ClosedEnum } from "../../types"; +import * as z from "zod"; + +/** + * The country to retrieve analytics for. + */ +export const CountryCode = { + Af: "AF", + Al: "AL", + Dz: "DZ", + As: "AS", + Ad: "AD", + Ao: "AO", + Ai: "AI", + Aq: "AQ", + Ag: "AG", + Ar: "AR", + Am: "AM", + Aw: "AW", + Au: "AU", + At: "AT", + Az: "AZ", + Bs: "BS", + Bh: "BH", + Bd: "BD", + Bb: "BB", + By: "BY", + Be: "BE", + Bz: "BZ", + Bj: "BJ", + Bm: "BM", + Bt: "BT", + Bo: "BO", + Ba: "BA", + Bw: "BW", + Bv: "BV", + Br: "BR", + Io: "IO", + Bn: "BN", + Bg: "BG", + Bf: "BF", + Bi: "BI", + Kh: "KH", + Cm: "CM", + Ca: "CA", + Cv: "CV", + Ky: "KY", + Cf: "CF", + Td: "TD", + Cl: "CL", + Cn: "CN", + Cx: "CX", + Cc: "CC", + Co: "CO", + Km: "KM", + Cg: "CG", + Cd: "CD", + Ck: "CK", + Cr: "CR", + Ci: "CI", + Hr: "HR", + Cu: "CU", + Cy: "CY", + Cz: "CZ", + Dk: "DK", + Dj: "DJ", + Dm: "DM", + Do: "DO", + Ec: "EC", + Eg: "EG", + Sv: "SV", + Gq: "GQ", + Er: "ER", + Ee: "EE", + Et: "ET", + Fk: "FK", + Fo: "FO", + Fj: "FJ", + Fi: "FI", + Fr: "FR", + Gf: "GF", + Pf: "PF", + Tf: "TF", + Ga: "GA", + Gm: "GM", + Ge: "GE", + De: "DE", + Gh: "GH", + Gi: "GI", + Gr: "GR", + Gl: "GL", + Gd: "GD", + Gp: "GP", + Gu: "GU", + Gt: "GT", + Gn: "GN", + Gw: "GW", + Gy: "GY", + Ht: "HT", + Hm: "HM", + Va: "VA", + Hn: "HN", + Hk: "HK", + Hu: "HU", + Is: "IS", + In: "IN", + Id: "ID", + Ir: "IR", + Iq: "IQ", + Ie: "IE", + Il: "IL", + It: "IT", + Jm: "JM", + Jp: "JP", + Jo: "JO", + Kz: "KZ", + Ke: "KE", + Ki: "KI", + Kp: "KP", + Kr: "KR", + Kw: "KW", + Kg: "KG", + La: "LA", + Lv: "LV", + Lb: "LB", + Ls: "LS", + Lr: "LR", + Ly: "LY", + Li: "LI", + Lt: "LT", + Lu: "LU", + Mo: "MO", + Mg: "MG", + Mw: "MW", + My: "MY", + Mv: "MV", + Ml: "ML", + Mt: "MT", + Mh: "MH", + Mq: "MQ", + Mr: "MR", + Mu: "MU", + Yt: "YT", + Mx: "MX", + Fm: "FM", + Md: "MD", + Mc: "MC", + Mn: "MN", + Ms: "MS", + Ma: "MA", + Mz: "MZ", + Mm: "MM", + Na: "NA", + Nr: "NR", + Np: "NP", + Nl: "NL", + Nc: "NC", + Nz: "NZ", + Ni: "NI", + Ne: "NE", + Ng: "NG", + Nu: "NU", + Nf: "NF", + Mk: "MK", + Mp: "MP", + No: "NO", + Om: "OM", + Pk: "PK", + Pw: "PW", + Ps: "PS", + Pa: "PA", + Pg: "PG", + Py: "PY", + Pe: "PE", + Ph: "PH", + Pn: "PN", + Pl: "PL", + Pt: "PT", + Pr: "PR", + Qa: "QA", + Re: "RE", + Ro: "RO", + Ru: "RU", + Rw: "RW", + Sh: "SH", + Kn: "KN", + Lc: "LC", + Pm: "PM", + Vc: "VC", + Ws: "WS", + Sm: "SM", + St: "ST", + Sa: "SA", + Sn: "SN", + Sc: "SC", + Sl: "SL", + Sg: "SG", + Sk: "SK", + Si: "SI", + Sb: "SB", + So: "SO", + Za: "ZA", + Gs: "GS", + Es: "ES", + Lk: "LK", + Sd: "SD", + Sr: "SR", + Sj: "SJ", + Sz: "SZ", + Se: "SE", + Ch: "CH", + Sy: "SY", + Tw: "TW", + Tj: "TJ", + Tz: "TZ", + Th: "TH", + Tl: "TL", + Tg: "TG", + Tk: "TK", + To: "TO", + Tt: "TT", + Tn: "TN", + Tr: "TR", + Tm: "TM", + Tc: "TC", + Tv: "TV", + Ug: "UG", + Ua: "UA", + Ae: "AE", + Gb: "GB", + Us: "US", + Um: "UM", + Uy: "UY", + Uz: "UZ", + Vu: "VU", + Ve: "VE", + Vn: "VN", + Vg: "VG", + Vi: "VI", + Wf: "WF", + Eh: "EH", + Ye: "YE", + Zm: "ZM", + Zw: "ZW", + Ax: "AX", + Bq: "BQ", + Cw: "CW", + Gg: "GG", + Im: "IM", + Je: "JE", + Me: "ME", + Bl: "BL", + Mf: "MF", + Rs: "RS", + Sx: "SX", + Ss: "SS", + Xk: "XK", +} as const; +/** + * The country to retrieve analytics for. + */ +export type CountryCode = ClosedEnum; + +/** @internal */ +export namespace CountryCode$ { + export const inboundSchema = z.nativeEnum(CountryCode); + export const outboundSchema = inboundSchema; +} diff --git a/src/models/components/index.ts b/src/models/components/index.ts index c797b7c..bced464 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -2,7 +2,11 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ +export * from "./clicksbycities"; +export * from "./clicksbycountry"; +export * from "./countrycode"; export * from "./domainschema"; +export * from "./linkgeotargeting"; export * from "./linkschema"; export * from "./security"; export * from "./tagschema"; diff --git a/src/models/components/linkgeotargeting.ts b/src/models/components/linkgeotargeting.ts new file mode 100644 index 0000000..353d994 --- /dev/null +++ b/src/models/components/linkgeotargeting.ts @@ -0,0 +1,1533 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import * as z from "zod"; + +/** + * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. + */ +export type LinkGeoTargeting = { + af?: string | undefined; + al?: string | undefined; + dz?: string | undefined; + as?: string | undefined; + ad?: string | undefined; + ao?: string | undefined; + ai?: string | undefined; + aq?: string | undefined; + ag?: string | undefined; + ar?: string | undefined; + am?: string | undefined; + aw?: string | undefined; + au?: string | undefined; + at?: string | undefined; + az?: string | undefined; + bs?: string | undefined; + bh?: string | undefined; + bd?: string | undefined; + bb?: string | undefined; + by?: string | undefined; + be?: string | undefined; + bz?: string | undefined; + bj?: string | undefined; + bm?: string | undefined; + bt?: string | undefined; + bo?: string | undefined; + ba?: string | undefined; + bw?: string | undefined; + bv?: string | undefined; + br?: string | undefined; + io?: string | undefined; + bn?: string | undefined; + bg?: string | undefined; + bf?: string | undefined; + bi?: string | undefined; + kh?: string | undefined; + cm?: string | undefined; + ca?: string | undefined; + cv?: string | undefined; + ky?: string | undefined; + cf?: string | undefined; + td?: string | undefined; + cl?: string | undefined; + cn?: string | undefined; + cx?: string | undefined; + cc?: string | undefined; + co?: string | undefined; + km?: string | undefined; + cg?: string | undefined; + cd?: string | undefined; + ck?: string | undefined; + cr?: string | undefined; + ci?: string | undefined; + hr?: string | undefined; + cu?: string | undefined; + cy?: string | undefined; + cz?: string | undefined; + dk?: string | undefined; + dj?: string | undefined; + dm?: string | undefined; + do?: string | undefined; + ec?: string | undefined; + eg?: string | undefined; + sv?: string | undefined; + gq?: string | undefined; + er?: string | undefined; + ee?: string | undefined; + et?: string | undefined; + fk?: string | undefined; + fo?: string | undefined; + fj?: string | undefined; + fi?: string | undefined; + fr?: string | undefined; + gf?: string | undefined; + pf?: string | undefined; + tf?: string | undefined; + ga?: string | undefined; + gm?: string | undefined; + ge?: string | undefined; + de?: string | undefined; + gh?: string | undefined; + gi?: string | undefined; + gr?: string | undefined; + gl?: string | undefined; + gd?: string | undefined; + gp?: string | undefined; + gu?: string | undefined; + gt?: string | undefined; + gn?: string | undefined; + gw?: string | undefined; + gy?: string | undefined; + ht?: string | undefined; + hm?: string | undefined; + va?: string | undefined; + hn?: string | undefined; + hk?: string | undefined; + hu?: string | undefined; + is?: string | undefined; + in?: string | undefined; + id?: string | undefined; + ir?: string | undefined; + iq?: string | undefined; + ie?: string | undefined; + il?: string | undefined; + it?: string | undefined; + jm?: string | undefined; + jp?: string | undefined; + jo?: string | undefined; + kz?: string | undefined; + ke?: string | undefined; + ki?: string | undefined; + kp?: string | undefined; + kr?: string | undefined; + kw?: string | undefined; + kg?: string | undefined; + la?: string | undefined; + lv?: string | undefined; + lb?: string | undefined; + ls?: string | undefined; + lr?: string | undefined; + ly?: string | undefined; + li?: string | undefined; + lt?: string | undefined; + lu?: string | undefined; + mo?: string | undefined; + mg?: string | undefined; + mw?: string | undefined; + my?: string | undefined; + mv?: string | undefined; + ml?: string | undefined; + mt?: string | undefined; + mh?: string | undefined; + mq?: string | undefined; + mr?: string | undefined; + mu?: string | undefined; + yt?: string | undefined; + mx?: string | undefined; + fm?: string | undefined; + md?: string | undefined; + mc?: string | undefined; + mn?: string | undefined; + ms?: string | undefined; + ma?: string | undefined; + mz?: string | undefined; + mm?: string | undefined; + na?: string | undefined; + nr?: string | undefined; + np?: string | undefined; + nl?: string | undefined; + nc?: string | undefined; + nz?: string | undefined; + ni?: string | undefined; + ne?: string | undefined; + ng?: string | undefined; + nu?: string | undefined; + nf?: string | undefined; + mk?: string | undefined; + mp?: string | undefined; + no?: string | undefined; + om?: string | undefined; + pk?: string | undefined; + pw?: string | undefined; + ps?: string | undefined; + pa?: string | undefined; + pg?: string | undefined; + py?: string | undefined; + pe?: string | undefined; + ph?: string | undefined; + pn?: string | undefined; + pl?: string | undefined; + pt?: string | undefined; + pr?: string | undefined; + qa?: string | undefined; + re?: string | undefined; + ro?: string | undefined; + ru?: string | undefined; + rw?: string | undefined; + sh?: string | undefined; + kn?: string | undefined; + lc?: string | undefined; + pm?: string | undefined; + vc?: string | undefined; + ws?: string | undefined; + sm?: string | undefined; + st?: string | undefined; + sa?: string | undefined; + sn?: string | undefined; + sc?: string | undefined; + sl?: string | undefined; + sg?: string | undefined; + sk?: string | undefined; + si?: string | undefined; + sb?: string | undefined; + so?: string | undefined; + za?: string | undefined; + gs?: string | undefined; + es?: string | undefined; + lk?: string | undefined; + sd?: string | undefined; + sr?: string | undefined; + sj?: string | undefined; + sz?: string | undefined; + se?: string | undefined; + ch?: string | undefined; + sy?: string | undefined; + tw?: string | undefined; + tj?: string | undefined; + tz?: string | undefined; + th?: string | undefined; + tl?: string | undefined; + tg?: string | undefined; + tk?: string | undefined; + to?: string | undefined; + tt?: string | undefined; + tn?: string | undefined; + tr?: string | undefined; + tm?: string | undefined; + tc?: string | undefined; + tv?: string | undefined; + ug?: string | undefined; + ua?: string | undefined; + ae?: string | undefined; + gb?: string | undefined; + us?: string | undefined; + um?: string | undefined; + uy?: string | undefined; + uz?: string | undefined; + vu?: string | undefined; + ve?: string | undefined; + vn?: string | undefined; + vg?: string | undefined; + vi?: string | undefined; + wf?: string | undefined; + eh?: string | undefined; + ye?: string | undefined; + zm?: string | undefined; + zw?: string | undefined; + ax?: string | undefined; + bq?: string | undefined; + cw?: string | undefined; + gg?: string | undefined; + im?: string | undefined; + je?: string | undefined; + me?: string | undefined; + bl?: string | undefined; + mf?: string | undefined; + rs?: string | undefined; + sx?: string | undefined; + ss?: string | undefined; + xk?: string | undefined; +}; + +/** @internal */ +export namespace LinkGeoTargeting$ { + export const inboundSchema: z.ZodType = z + .object({ + AF: z.string().optional(), + AL: z.string().optional(), + DZ: z.string().optional(), + AS: z.string().optional(), + AD: z.string().optional(), + AO: z.string().optional(), + AI: z.string().optional(), + AQ: z.string().optional(), + AG: z.string().optional(), + AR: z.string().optional(), + AM: z.string().optional(), + AW: z.string().optional(), + AU: z.string().optional(), + AT: z.string().optional(), + AZ: z.string().optional(), + BS: z.string().optional(), + BH: z.string().optional(), + BD: z.string().optional(), + BB: z.string().optional(), + BY: z.string().optional(), + BE: z.string().optional(), + BZ: z.string().optional(), + BJ: z.string().optional(), + BM: z.string().optional(), + BT: z.string().optional(), + BO: z.string().optional(), + BA: z.string().optional(), + BW: z.string().optional(), + BV: z.string().optional(), + BR: z.string().optional(), + IO: z.string().optional(), + BN: z.string().optional(), + BG: z.string().optional(), + BF: z.string().optional(), + BI: z.string().optional(), + KH: z.string().optional(), + CM: z.string().optional(), + CA: z.string().optional(), + CV: z.string().optional(), + KY: z.string().optional(), + CF: z.string().optional(), + TD: z.string().optional(), + CL: z.string().optional(), + CN: z.string().optional(), + CX: z.string().optional(), + CC: z.string().optional(), + CO: z.string().optional(), + KM: z.string().optional(), + CG: z.string().optional(), + CD: z.string().optional(), + CK: z.string().optional(), + CR: z.string().optional(), + CI: z.string().optional(), + HR: z.string().optional(), + CU: z.string().optional(), + CY: z.string().optional(), + CZ: z.string().optional(), + DK: z.string().optional(), + DJ: z.string().optional(), + DM: z.string().optional(), + DO: z.string().optional(), + EC: z.string().optional(), + EG: z.string().optional(), + SV: z.string().optional(), + GQ: z.string().optional(), + ER: z.string().optional(), + EE: z.string().optional(), + ET: z.string().optional(), + FK: z.string().optional(), + FO: z.string().optional(), + FJ: z.string().optional(), + FI: z.string().optional(), + FR: z.string().optional(), + GF: z.string().optional(), + PF: z.string().optional(), + TF: z.string().optional(), + GA: z.string().optional(), + GM: z.string().optional(), + GE: z.string().optional(), + DE: z.string().optional(), + GH: z.string().optional(), + GI: z.string().optional(), + GR: z.string().optional(), + GL: z.string().optional(), + GD: z.string().optional(), + GP: z.string().optional(), + GU: z.string().optional(), + GT: z.string().optional(), + GN: z.string().optional(), + GW: z.string().optional(), + GY: z.string().optional(), + HT: z.string().optional(), + HM: z.string().optional(), + VA: z.string().optional(), + HN: z.string().optional(), + HK: z.string().optional(), + HU: z.string().optional(), + IS: z.string().optional(), + IN: z.string().optional(), + ID: z.string().optional(), + IR: z.string().optional(), + IQ: z.string().optional(), + IE: z.string().optional(), + IL: z.string().optional(), + IT: z.string().optional(), + JM: z.string().optional(), + JP: z.string().optional(), + JO: z.string().optional(), + KZ: z.string().optional(), + KE: z.string().optional(), + KI: z.string().optional(), + KP: z.string().optional(), + KR: z.string().optional(), + KW: z.string().optional(), + KG: z.string().optional(), + LA: z.string().optional(), + LV: z.string().optional(), + LB: z.string().optional(), + LS: z.string().optional(), + LR: z.string().optional(), + LY: z.string().optional(), + LI: z.string().optional(), + LT: z.string().optional(), + LU: z.string().optional(), + MO: z.string().optional(), + MG: z.string().optional(), + MW: z.string().optional(), + MY: z.string().optional(), + MV: z.string().optional(), + ML: z.string().optional(), + MT: z.string().optional(), + MH: z.string().optional(), + MQ: z.string().optional(), + MR: z.string().optional(), + MU: z.string().optional(), + YT: z.string().optional(), + MX: z.string().optional(), + FM: z.string().optional(), + MD: z.string().optional(), + MC: z.string().optional(), + MN: z.string().optional(), + MS: z.string().optional(), + MA: z.string().optional(), + MZ: z.string().optional(), + MM: z.string().optional(), + NA: z.string().optional(), + NR: z.string().optional(), + NP: z.string().optional(), + NL: z.string().optional(), + NC: z.string().optional(), + NZ: z.string().optional(), + NI: z.string().optional(), + NE: z.string().optional(), + NG: z.string().optional(), + NU: z.string().optional(), + NF: z.string().optional(), + MK: z.string().optional(), + MP: z.string().optional(), + NO: z.string().optional(), + OM: z.string().optional(), + PK: z.string().optional(), + PW: z.string().optional(), + PS: z.string().optional(), + PA: z.string().optional(), + PG: z.string().optional(), + PY: z.string().optional(), + PE: z.string().optional(), + PH: z.string().optional(), + PN: z.string().optional(), + PL: z.string().optional(), + PT: z.string().optional(), + PR: z.string().optional(), + QA: z.string().optional(), + RE: z.string().optional(), + RO: z.string().optional(), + RU: z.string().optional(), + RW: z.string().optional(), + SH: z.string().optional(), + KN: z.string().optional(), + LC: z.string().optional(), + PM: z.string().optional(), + VC: z.string().optional(), + WS: z.string().optional(), + SM: z.string().optional(), + ST: z.string().optional(), + SA: z.string().optional(), + SN: z.string().optional(), + SC: z.string().optional(), + SL: z.string().optional(), + SG: z.string().optional(), + SK: z.string().optional(), + SI: z.string().optional(), + SB: z.string().optional(), + SO: z.string().optional(), + ZA: z.string().optional(), + GS: z.string().optional(), + ES: z.string().optional(), + LK: z.string().optional(), + SD: z.string().optional(), + SR: z.string().optional(), + SJ: z.string().optional(), + SZ: z.string().optional(), + SE: z.string().optional(), + CH: z.string().optional(), + SY: z.string().optional(), + TW: z.string().optional(), + TJ: z.string().optional(), + TZ: z.string().optional(), + TH: z.string().optional(), + TL: z.string().optional(), + TG: z.string().optional(), + TK: z.string().optional(), + TO: z.string().optional(), + TT: z.string().optional(), + TN: z.string().optional(), + TR: z.string().optional(), + TM: z.string().optional(), + TC: z.string().optional(), + TV: z.string().optional(), + UG: z.string().optional(), + UA: z.string().optional(), + AE: z.string().optional(), + GB: z.string().optional(), + US: z.string().optional(), + UM: z.string().optional(), + UY: z.string().optional(), + UZ: z.string().optional(), + VU: z.string().optional(), + VE: z.string().optional(), + VN: z.string().optional(), + VG: z.string().optional(), + VI: z.string().optional(), + WF: z.string().optional(), + EH: z.string().optional(), + YE: z.string().optional(), + ZM: z.string().optional(), + ZW: z.string().optional(), + AX: z.string().optional(), + BQ: z.string().optional(), + CW: z.string().optional(), + GG: z.string().optional(), + IM: z.string().optional(), + JE: z.string().optional(), + ME: z.string().optional(), + BL: z.string().optional(), + MF: z.string().optional(), + RS: z.string().optional(), + SX: z.string().optional(), + SS: z.string().optional(), + XK: z.string().optional(), + }) + .transform((v) => { + return { + ...(v.AF === undefined ? null : { af: v.AF }), + ...(v.AL === undefined ? null : { al: v.AL }), + ...(v.DZ === undefined ? null : { dz: v.DZ }), + ...(v.AS === undefined ? null : { as: v.AS }), + ...(v.AD === undefined ? null : { ad: v.AD }), + ...(v.AO === undefined ? null : { ao: v.AO }), + ...(v.AI === undefined ? null : { ai: v.AI }), + ...(v.AQ === undefined ? null : { aq: v.AQ }), + ...(v.AG === undefined ? null : { ag: v.AG }), + ...(v.AR === undefined ? null : { ar: v.AR }), + ...(v.AM === undefined ? null : { am: v.AM }), + ...(v.AW === undefined ? null : { aw: v.AW }), + ...(v.AU === undefined ? null : { au: v.AU }), + ...(v.AT === undefined ? null : { at: v.AT }), + ...(v.AZ === undefined ? null : { az: v.AZ }), + ...(v.BS === undefined ? null : { bs: v.BS }), + ...(v.BH === undefined ? null : { bh: v.BH }), + ...(v.BD === undefined ? null : { bd: v.BD }), + ...(v.BB === undefined ? null : { bb: v.BB }), + ...(v.BY === undefined ? null : { by: v.BY }), + ...(v.BE === undefined ? null : { be: v.BE }), + ...(v.BZ === undefined ? null : { bz: v.BZ }), + ...(v.BJ === undefined ? null : { bj: v.BJ }), + ...(v.BM === undefined ? null : { bm: v.BM }), + ...(v.BT === undefined ? null : { bt: v.BT }), + ...(v.BO === undefined ? null : { bo: v.BO }), + ...(v.BA === undefined ? null : { ba: v.BA }), + ...(v.BW === undefined ? null : { bw: v.BW }), + ...(v.BV === undefined ? null : { bv: v.BV }), + ...(v.BR === undefined ? null : { br: v.BR }), + ...(v.IO === undefined ? null : { io: v.IO }), + ...(v.BN === undefined ? null : { bn: v.BN }), + ...(v.BG === undefined ? null : { bg: v.BG }), + ...(v.BF === undefined ? null : { bf: v.BF }), + ...(v.BI === undefined ? null : { bi: v.BI }), + ...(v.KH === undefined ? null : { kh: v.KH }), + ...(v.CM === undefined ? null : { cm: v.CM }), + ...(v.CA === undefined ? null : { ca: v.CA }), + ...(v.CV === undefined ? null : { cv: v.CV }), + ...(v.KY === undefined ? null : { ky: v.KY }), + ...(v.CF === undefined ? null : { cf: v.CF }), + ...(v.TD === undefined ? null : { td: v.TD }), + ...(v.CL === undefined ? null : { cl: v.CL }), + ...(v.CN === undefined ? null : { cn: v.CN }), + ...(v.CX === undefined ? null : { cx: v.CX }), + ...(v.CC === undefined ? null : { cc: v.CC }), + ...(v.CO === undefined ? null : { co: v.CO }), + ...(v.KM === undefined ? null : { km: v.KM }), + ...(v.CG === undefined ? null : { cg: v.CG }), + ...(v.CD === undefined ? null : { cd: v.CD }), + ...(v.CK === undefined ? null : { ck: v.CK }), + ...(v.CR === undefined ? null : { cr: v.CR }), + ...(v.CI === undefined ? null : { ci: v.CI }), + ...(v.HR === undefined ? null : { hr: v.HR }), + ...(v.CU === undefined ? null : { cu: v.CU }), + ...(v.CY === undefined ? null : { cy: v.CY }), + ...(v.CZ === undefined ? null : { cz: v.CZ }), + ...(v.DK === undefined ? null : { dk: v.DK }), + ...(v.DJ === undefined ? null : { dj: v.DJ }), + ...(v.DM === undefined ? null : { dm: v.DM }), + ...(v.DO === undefined ? null : { do: v.DO }), + ...(v.EC === undefined ? null : { ec: v.EC }), + ...(v.EG === undefined ? null : { eg: v.EG }), + ...(v.SV === undefined ? null : { sv: v.SV }), + ...(v.GQ === undefined ? null : { gq: v.GQ }), + ...(v.ER === undefined ? null : { er: v.ER }), + ...(v.EE === undefined ? null : { ee: v.EE }), + ...(v.ET === undefined ? null : { et: v.ET }), + ...(v.FK === undefined ? null : { fk: v.FK }), + ...(v.FO === undefined ? null : { fo: v.FO }), + ...(v.FJ === undefined ? null : { fj: v.FJ }), + ...(v.FI === undefined ? null : { fi: v.FI }), + ...(v.FR === undefined ? null : { fr: v.FR }), + ...(v.GF === undefined ? null : { gf: v.GF }), + ...(v.PF === undefined ? null : { pf: v.PF }), + ...(v.TF === undefined ? null : { tf: v.TF }), + ...(v.GA === undefined ? null : { ga: v.GA }), + ...(v.GM === undefined ? null : { gm: v.GM }), + ...(v.GE === undefined ? null : { ge: v.GE }), + ...(v.DE === undefined ? null : { de: v.DE }), + ...(v.GH === undefined ? null : { gh: v.GH }), + ...(v.GI === undefined ? null : { gi: v.GI }), + ...(v.GR === undefined ? null : { gr: v.GR }), + ...(v.GL === undefined ? null : { gl: v.GL }), + ...(v.GD === undefined ? null : { gd: v.GD }), + ...(v.GP === undefined ? null : { gp: v.GP }), + ...(v.GU === undefined ? null : { gu: v.GU }), + ...(v.GT === undefined ? null : { gt: v.GT }), + ...(v.GN === undefined ? null : { gn: v.GN }), + ...(v.GW === undefined ? null : { gw: v.GW }), + ...(v.GY === undefined ? null : { gy: v.GY }), + ...(v.HT === undefined ? null : { ht: v.HT }), + ...(v.HM === undefined ? null : { hm: v.HM }), + ...(v.VA === undefined ? null : { va: v.VA }), + ...(v.HN === undefined ? null : { hn: v.HN }), + ...(v.HK === undefined ? null : { hk: v.HK }), + ...(v.HU === undefined ? null : { hu: v.HU }), + ...(v.IS === undefined ? null : { is: v.IS }), + ...(v.IN === undefined ? null : { in: v.IN }), + ...(v.ID === undefined ? null : { id: v.ID }), + ...(v.IR === undefined ? null : { ir: v.IR }), + ...(v.IQ === undefined ? null : { iq: v.IQ }), + ...(v.IE === undefined ? null : { ie: v.IE }), + ...(v.IL === undefined ? null : { il: v.IL }), + ...(v.IT === undefined ? null : { it: v.IT }), + ...(v.JM === undefined ? null : { jm: v.JM }), + ...(v.JP === undefined ? null : { jp: v.JP }), + ...(v.JO === undefined ? null : { jo: v.JO }), + ...(v.KZ === undefined ? null : { kz: v.KZ }), + ...(v.KE === undefined ? null : { ke: v.KE }), + ...(v.KI === undefined ? null : { ki: v.KI }), + ...(v.KP === undefined ? null : { kp: v.KP }), + ...(v.KR === undefined ? null : { kr: v.KR }), + ...(v.KW === undefined ? null : { kw: v.KW }), + ...(v.KG === undefined ? null : { kg: v.KG }), + ...(v.LA === undefined ? null : { la: v.LA }), + ...(v.LV === undefined ? null : { lv: v.LV }), + ...(v.LB === undefined ? null : { lb: v.LB }), + ...(v.LS === undefined ? null : { ls: v.LS }), + ...(v.LR === undefined ? null : { lr: v.LR }), + ...(v.LY === undefined ? null : { ly: v.LY }), + ...(v.LI === undefined ? null : { li: v.LI }), + ...(v.LT === undefined ? null : { lt: v.LT }), + ...(v.LU === undefined ? null : { lu: v.LU }), + ...(v.MO === undefined ? null : { mo: v.MO }), + ...(v.MG === undefined ? null : { mg: v.MG }), + ...(v.MW === undefined ? null : { mw: v.MW }), + ...(v.MY === undefined ? null : { my: v.MY }), + ...(v.MV === undefined ? null : { mv: v.MV }), + ...(v.ML === undefined ? null : { ml: v.ML }), + ...(v.MT === undefined ? null : { mt: v.MT }), + ...(v.MH === undefined ? null : { mh: v.MH }), + ...(v.MQ === undefined ? null : { mq: v.MQ }), + ...(v.MR === undefined ? null : { mr: v.MR }), + ...(v.MU === undefined ? null : { mu: v.MU }), + ...(v.YT === undefined ? null : { yt: v.YT }), + ...(v.MX === undefined ? null : { mx: v.MX }), + ...(v.FM === undefined ? null : { fm: v.FM }), + ...(v.MD === undefined ? null : { md: v.MD }), + ...(v.MC === undefined ? null : { mc: v.MC }), + ...(v.MN === undefined ? null : { mn: v.MN }), + ...(v.MS === undefined ? null : { ms: v.MS }), + ...(v.MA === undefined ? null : { ma: v.MA }), + ...(v.MZ === undefined ? null : { mz: v.MZ }), + ...(v.MM === undefined ? null : { mm: v.MM }), + ...(v.NA === undefined ? null : { na: v.NA }), + ...(v.NR === undefined ? null : { nr: v.NR }), + ...(v.NP === undefined ? null : { np: v.NP }), + ...(v.NL === undefined ? null : { nl: v.NL }), + ...(v.NC === undefined ? null : { nc: v.NC }), + ...(v.NZ === undefined ? null : { nz: v.NZ }), + ...(v.NI === undefined ? null : { ni: v.NI }), + ...(v.NE === undefined ? null : { ne: v.NE }), + ...(v.NG === undefined ? null : { ng: v.NG }), + ...(v.NU === undefined ? null : { nu: v.NU }), + ...(v.NF === undefined ? null : { nf: v.NF }), + ...(v.MK === undefined ? null : { mk: v.MK }), + ...(v.MP === undefined ? null : { mp: v.MP }), + ...(v.NO === undefined ? null : { no: v.NO }), + ...(v.OM === undefined ? null : { om: v.OM }), + ...(v.PK === undefined ? null : { pk: v.PK }), + ...(v.PW === undefined ? null : { pw: v.PW }), + ...(v.PS === undefined ? null : { ps: v.PS }), + ...(v.PA === undefined ? null : { pa: v.PA }), + ...(v.PG === undefined ? null : { pg: v.PG }), + ...(v.PY === undefined ? null : { py: v.PY }), + ...(v.PE === undefined ? null : { pe: v.PE }), + ...(v.PH === undefined ? null : { ph: v.PH }), + ...(v.PN === undefined ? null : { pn: v.PN }), + ...(v.PL === undefined ? null : { pl: v.PL }), + ...(v.PT === undefined ? null : { pt: v.PT }), + ...(v.PR === undefined ? null : { pr: v.PR }), + ...(v.QA === undefined ? null : { qa: v.QA }), + ...(v.RE === undefined ? null : { re: v.RE }), + ...(v.RO === undefined ? null : { ro: v.RO }), + ...(v.RU === undefined ? null : { ru: v.RU }), + ...(v.RW === undefined ? null : { rw: v.RW }), + ...(v.SH === undefined ? null : { sh: v.SH }), + ...(v.KN === undefined ? null : { kn: v.KN }), + ...(v.LC === undefined ? null : { lc: v.LC }), + ...(v.PM === undefined ? null : { pm: v.PM }), + ...(v.VC === undefined ? null : { vc: v.VC }), + ...(v.WS === undefined ? null : { ws: v.WS }), + ...(v.SM === undefined ? null : { sm: v.SM }), + ...(v.ST === undefined ? null : { st: v.ST }), + ...(v.SA === undefined ? null : { sa: v.SA }), + ...(v.SN === undefined ? null : { sn: v.SN }), + ...(v.SC === undefined ? null : { sc: v.SC }), + ...(v.SL === undefined ? null : { sl: v.SL }), + ...(v.SG === undefined ? null : { sg: v.SG }), + ...(v.SK === undefined ? null : { sk: v.SK }), + ...(v.SI === undefined ? null : { si: v.SI }), + ...(v.SB === undefined ? null : { sb: v.SB }), + ...(v.SO === undefined ? null : { so: v.SO }), + ...(v.ZA === undefined ? null : { za: v.ZA }), + ...(v.GS === undefined ? null : { gs: v.GS }), + ...(v.ES === undefined ? null : { es: v.ES }), + ...(v.LK === undefined ? null : { lk: v.LK }), + ...(v.SD === undefined ? null : { sd: v.SD }), + ...(v.SR === undefined ? null : { sr: v.SR }), + ...(v.SJ === undefined ? null : { sj: v.SJ }), + ...(v.SZ === undefined ? null : { sz: v.SZ }), + ...(v.SE === undefined ? null : { se: v.SE }), + ...(v.CH === undefined ? null : { ch: v.CH }), + ...(v.SY === undefined ? null : { sy: v.SY }), + ...(v.TW === undefined ? null : { tw: v.TW }), + ...(v.TJ === undefined ? null : { tj: v.TJ }), + ...(v.TZ === undefined ? null : { tz: v.TZ }), + ...(v.TH === undefined ? null : { th: v.TH }), + ...(v.TL === undefined ? null : { tl: v.TL }), + ...(v.TG === undefined ? null : { tg: v.TG }), + ...(v.TK === undefined ? null : { tk: v.TK }), + ...(v.TO === undefined ? null : { to: v.TO }), + ...(v.TT === undefined ? null : { tt: v.TT }), + ...(v.TN === undefined ? null : { tn: v.TN }), + ...(v.TR === undefined ? null : { tr: v.TR }), + ...(v.TM === undefined ? null : { tm: v.TM }), + ...(v.TC === undefined ? null : { tc: v.TC }), + ...(v.TV === undefined ? null : { tv: v.TV }), + ...(v.UG === undefined ? null : { ug: v.UG }), + ...(v.UA === undefined ? null : { ua: v.UA }), + ...(v.AE === undefined ? null : { ae: v.AE }), + ...(v.GB === undefined ? null : { gb: v.GB }), + ...(v.US === undefined ? null : { us: v.US }), + ...(v.UM === undefined ? null : { um: v.UM }), + ...(v.UY === undefined ? null : { uy: v.UY }), + ...(v.UZ === undefined ? null : { uz: v.UZ }), + ...(v.VU === undefined ? null : { vu: v.VU }), + ...(v.VE === undefined ? null : { ve: v.VE }), + ...(v.VN === undefined ? null : { vn: v.VN }), + ...(v.VG === undefined ? null : { vg: v.VG }), + ...(v.VI === undefined ? null : { vi: v.VI }), + ...(v.WF === undefined ? null : { wf: v.WF }), + ...(v.EH === undefined ? null : { eh: v.EH }), + ...(v.YE === undefined ? null : { ye: v.YE }), + ...(v.ZM === undefined ? null : { zm: v.ZM }), + ...(v.ZW === undefined ? null : { zw: v.ZW }), + ...(v.AX === undefined ? null : { ax: v.AX }), + ...(v.BQ === undefined ? null : { bq: v.BQ }), + ...(v.CW === undefined ? null : { cw: v.CW }), + ...(v.GG === undefined ? null : { gg: v.GG }), + ...(v.IM === undefined ? null : { im: v.IM }), + ...(v.JE === undefined ? null : { je: v.JE }), + ...(v.ME === undefined ? null : { me: v.ME }), + ...(v.BL === undefined ? null : { bl: v.BL }), + ...(v.MF === undefined ? null : { mf: v.MF }), + ...(v.RS === undefined ? null : { rs: v.RS }), + ...(v.SX === undefined ? null : { sx: v.SX }), + ...(v.SS === undefined ? null : { ss: v.SS }), + ...(v.XK === undefined ? null : { xk: v.XK }), + }; + }); + + export type Outbound = { + AF?: string | undefined; + AL?: string | undefined; + DZ?: string | undefined; + AS?: string | undefined; + AD?: string | undefined; + AO?: string | undefined; + AI?: string | undefined; + AQ?: string | undefined; + AG?: string | undefined; + AR?: string | undefined; + AM?: string | undefined; + AW?: string | undefined; + AU?: string | undefined; + AT?: string | undefined; + AZ?: string | undefined; + BS?: string | undefined; + BH?: string | undefined; + BD?: string | undefined; + BB?: string | undefined; + BY?: string | undefined; + BE?: string | undefined; + BZ?: string | undefined; + BJ?: string | undefined; + BM?: string | undefined; + BT?: string | undefined; + BO?: string | undefined; + BA?: string | undefined; + BW?: string | undefined; + BV?: string | undefined; + BR?: string | undefined; + IO?: string | undefined; + BN?: string | undefined; + BG?: string | undefined; + BF?: string | undefined; + BI?: string | undefined; + KH?: string | undefined; + CM?: string | undefined; + CA?: string | undefined; + CV?: string | undefined; + KY?: string | undefined; + CF?: string | undefined; + TD?: string | undefined; + CL?: string | undefined; + CN?: string | undefined; + CX?: string | undefined; + CC?: string | undefined; + CO?: string | undefined; + KM?: string | undefined; + CG?: string | undefined; + CD?: string | undefined; + CK?: string | undefined; + CR?: string | undefined; + CI?: string | undefined; + HR?: string | undefined; + CU?: string | undefined; + CY?: string | undefined; + CZ?: string | undefined; + DK?: string | undefined; + DJ?: string | undefined; + DM?: string | undefined; + DO?: string | undefined; + EC?: string | undefined; + EG?: string | undefined; + SV?: string | undefined; + GQ?: string | undefined; + ER?: string | undefined; + EE?: string | undefined; + ET?: string | undefined; + FK?: string | undefined; + FO?: string | undefined; + FJ?: string | undefined; + FI?: string | undefined; + FR?: string | undefined; + GF?: string | undefined; + PF?: string | undefined; + TF?: string | undefined; + GA?: string | undefined; + GM?: string | undefined; + GE?: string | undefined; + DE?: string | undefined; + GH?: string | undefined; + GI?: string | undefined; + GR?: string | undefined; + GL?: string | undefined; + GD?: string | undefined; + GP?: string | undefined; + GU?: string | undefined; + GT?: string | undefined; + GN?: string | undefined; + GW?: string | undefined; + GY?: string | undefined; + HT?: string | undefined; + HM?: string | undefined; + VA?: string | undefined; + HN?: string | undefined; + HK?: string | undefined; + HU?: string | undefined; + IS?: string | undefined; + IN?: string | undefined; + ID?: string | undefined; + IR?: string | undefined; + IQ?: string | undefined; + IE?: string | undefined; + IL?: string | undefined; + IT?: string | undefined; + JM?: string | undefined; + JP?: string | undefined; + JO?: string | undefined; + KZ?: string | undefined; + KE?: string | undefined; + KI?: string | undefined; + KP?: string | undefined; + KR?: string | undefined; + KW?: string | undefined; + KG?: string | undefined; + LA?: string | undefined; + LV?: string | undefined; + LB?: string | undefined; + LS?: string | undefined; + LR?: string | undefined; + LY?: string | undefined; + LI?: string | undefined; + LT?: string | undefined; + LU?: string | undefined; + MO?: string | undefined; + MG?: string | undefined; + MW?: string | undefined; + MY?: string | undefined; + MV?: string | undefined; + ML?: string | undefined; + MT?: string | undefined; + MH?: string | undefined; + MQ?: string | undefined; + MR?: string | undefined; + MU?: string | undefined; + YT?: string | undefined; + MX?: string | undefined; + FM?: string | undefined; + MD?: string | undefined; + MC?: string | undefined; + MN?: string | undefined; + MS?: string | undefined; + MA?: string | undefined; + MZ?: string | undefined; + MM?: string | undefined; + NA?: string | undefined; + NR?: string | undefined; + NP?: string | undefined; + NL?: string | undefined; + NC?: string | undefined; + NZ?: string | undefined; + NI?: string | undefined; + NE?: string | undefined; + NG?: string | undefined; + NU?: string | undefined; + NF?: string | undefined; + MK?: string | undefined; + MP?: string | undefined; + NO?: string | undefined; + OM?: string | undefined; + PK?: string | undefined; + PW?: string | undefined; + PS?: string | undefined; + PA?: string | undefined; + PG?: string | undefined; + PY?: string | undefined; + PE?: string | undefined; + PH?: string | undefined; + PN?: string | undefined; + PL?: string | undefined; + PT?: string | undefined; + PR?: string | undefined; + QA?: string | undefined; + RE?: string | undefined; + RO?: string | undefined; + RU?: string | undefined; + RW?: string | undefined; + SH?: string | undefined; + KN?: string | undefined; + LC?: string | undefined; + PM?: string | undefined; + VC?: string | undefined; + WS?: string | undefined; + SM?: string | undefined; + ST?: string | undefined; + SA?: string | undefined; + SN?: string | undefined; + SC?: string | undefined; + SL?: string | undefined; + SG?: string | undefined; + SK?: string | undefined; + SI?: string | undefined; + SB?: string | undefined; + SO?: string | undefined; + ZA?: string | undefined; + GS?: string | undefined; + ES?: string | undefined; + LK?: string | undefined; + SD?: string | undefined; + SR?: string | undefined; + SJ?: string | undefined; + SZ?: string | undefined; + SE?: string | undefined; + CH?: string | undefined; + SY?: string | undefined; + TW?: string | undefined; + TJ?: string | undefined; + TZ?: string | undefined; + TH?: string | undefined; + TL?: string | undefined; + TG?: string | undefined; + TK?: string | undefined; + TO?: string | undefined; + TT?: string | undefined; + TN?: string | undefined; + TR?: string | undefined; + TM?: string | undefined; + TC?: string | undefined; + TV?: string | undefined; + UG?: string | undefined; + UA?: string | undefined; + AE?: string | undefined; + GB?: string | undefined; + US?: string | undefined; + UM?: string | undefined; + UY?: string | undefined; + UZ?: string | undefined; + VU?: string | undefined; + VE?: string | undefined; + VN?: string | undefined; + VG?: string | undefined; + VI?: string | undefined; + WF?: string | undefined; + EH?: string | undefined; + YE?: string | undefined; + ZM?: string | undefined; + ZW?: string | undefined; + AX?: string | undefined; + BQ?: string | undefined; + CW?: string | undefined; + GG?: string | undefined; + IM?: string | undefined; + JE?: string | undefined; + ME?: string | undefined; + BL?: string | undefined; + MF?: string | undefined; + RS?: string | undefined; + SX?: string | undefined; + SS?: string | undefined; + XK?: string | undefined; + }; + + export const outboundSchema: z.ZodType = z + .object({ + af: z.string().optional(), + al: z.string().optional(), + dz: z.string().optional(), + as: z.string().optional(), + ad: z.string().optional(), + ao: z.string().optional(), + ai: z.string().optional(), + aq: z.string().optional(), + ag: z.string().optional(), + ar: z.string().optional(), + am: z.string().optional(), + aw: z.string().optional(), + au: z.string().optional(), + at: z.string().optional(), + az: z.string().optional(), + bs: z.string().optional(), + bh: z.string().optional(), + bd: z.string().optional(), + bb: z.string().optional(), + by: z.string().optional(), + be: z.string().optional(), + bz: z.string().optional(), + bj: z.string().optional(), + bm: z.string().optional(), + bt: z.string().optional(), + bo: z.string().optional(), + ba: z.string().optional(), + bw: z.string().optional(), + bv: z.string().optional(), + br: z.string().optional(), + io: z.string().optional(), + bn: z.string().optional(), + bg: z.string().optional(), + bf: z.string().optional(), + bi: z.string().optional(), + kh: z.string().optional(), + cm: z.string().optional(), + ca: z.string().optional(), + cv: z.string().optional(), + ky: z.string().optional(), + cf: z.string().optional(), + td: z.string().optional(), + cl: z.string().optional(), + cn: z.string().optional(), + cx: z.string().optional(), + cc: z.string().optional(), + co: z.string().optional(), + km: z.string().optional(), + cg: z.string().optional(), + cd: z.string().optional(), + ck: z.string().optional(), + cr: z.string().optional(), + ci: z.string().optional(), + hr: z.string().optional(), + cu: z.string().optional(), + cy: z.string().optional(), + cz: z.string().optional(), + dk: z.string().optional(), + dj: z.string().optional(), + dm: z.string().optional(), + do: z.string().optional(), + ec: z.string().optional(), + eg: z.string().optional(), + sv: z.string().optional(), + gq: z.string().optional(), + er: z.string().optional(), + ee: z.string().optional(), + et: z.string().optional(), + fk: z.string().optional(), + fo: z.string().optional(), + fj: z.string().optional(), + fi: z.string().optional(), + fr: z.string().optional(), + gf: z.string().optional(), + pf: z.string().optional(), + tf: z.string().optional(), + ga: z.string().optional(), + gm: z.string().optional(), + ge: z.string().optional(), + de: z.string().optional(), + gh: z.string().optional(), + gi: z.string().optional(), + gr: z.string().optional(), + gl: z.string().optional(), + gd: z.string().optional(), + gp: z.string().optional(), + gu: z.string().optional(), + gt: z.string().optional(), + gn: z.string().optional(), + gw: z.string().optional(), + gy: z.string().optional(), + ht: z.string().optional(), + hm: z.string().optional(), + va: z.string().optional(), + hn: z.string().optional(), + hk: z.string().optional(), + hu: z.string().optional(), + is: z.string().optional(), + in: z.string().optional(), + id: z.string().optional(), + ir: z.string().optional(), + iq: z.string().optional(), + ie: z.string().optional(), + il: z.string().optional(), + it: z.string().optional(), + jm: z.string().optional(), + jp: z.string().optional(), + jo: z.string().optional(), + kz: z.string().optional(), + ke: z.string().optional(), + ki: z.string().optional(), + kp: z.string().optional(), + kr: z.string().optional(), + kw: z.string().optional(), + kg: z.string().optional(), + la: z.string().optional(), + lv: z.string().optional(), + lb: z.string().optional(), + ls: z.string().optional(), + lr: z.string().optional(), + ly: z.string().optional(), + li: z.string().optional(), + lt: z.string().optional(), + lu: z.string().optional(), + mo: z.string().optional(), + mg: z.string().optional(), + mw: z.string().optional(), + my: z.string().optional(), + mv: z.string().optional(), + ml: z.string().optional(), + mt: z.string().optional(), + mh: z.string().optional(), + mq: z.string().optional(), + mr: z.string().optional(), + mu: z.string().optional(), + yt: z.string().optional(), + mx: z.string().optional(), + fm: z.string().optional(), + md: z.string().optional(), + mc: z.string().optional(), + mn: z.string().optional(), + ms: z.string().optional(), + ma: z.string().optional(), + mz: z.string().optional(), + mm: z.string().optional(), + na: z.string().optional(), + nr: z.string().optional(), + np: z.string().optional(), + nl: z.string().optional(), + nc: z.string().optional(), + nz: z.string().optional(), + ni: z.string().optional(), + ne: z.string().optional(), + ng: z.string().optional(), + nu: z.string().optional(), + nf: z.string().optional(), + mk: z.string().optional(), + mp: z.string().optional(), + no: z.string().optional(), + om: z.string().optional(), + pk: z.string().optional(), + pw: z.string().optional(), + ps: z.string().optional(), + pa: z.string().optional(), + pg: z.string().optional(), + py: z.string().optional(), + pe: z.string().optional(), + ph: z.string().optional(), + pn: z.string().optional(), + pl: z.string().optional(), + pt: z.string().optional(), + pr: z.string().optional(), + qa: z.string().optional(), + re: z.string().optional(), + ro: z.string().optional(), + ru: z.string().optional(), + rw: z.string().optional(), + sh: z.string().optional(), + kn: z.string().optional(), + lc: z.string().optional(), + pm: z.string().optional(), + vc: z.string().optional(), + ws: z.string().optional(), + sm: z.string().optional(), + st: z.string().optional(), + sa: z.string().optional(), + sn: z.string().optional(), + sc: z.string().optional(), + sl: z.string().optional(), + sg: z.string().optional(), + sk: z.string().optional(), + si: z.string().optional(), + sb: z.string().optional(), + so: z.string().optional(), + za: z.string().optional(), + gs: z.string().optional(), + es: z.string().optional(), + lk: z.string().optional(), + sd: z.string().optional(), + sr: z.string().optional(), + sj: z.string().optional(), + sz: z.string().optional(), + se: z.string().optional(), + ch: z.string().optional(), + sy: z.string().optional(), + tw: z.string().optional(), + tj: z.string().optional(), + tz: z.string().optional(), + th: z.string().optional(), + tl: z.string().optional(), + tg: z.string().optional(), + tk: z.string().optional(), + to: z.string().optional(), + tt: z.string().optional(), + tn: z.string().optional(), + tr: z.string().optional(), + tm: z.string().optional(), + tc: z.string().optional(), + tv: z.string().optional(), + ug: z.string().optional(), + ua: z.string().optional(), + ae: z.string().optional(), + gb: z.string().optional(), + us: z.string().optional(), + um: z.string().optional(), + uy: z.string().optional(), + uz: z.string().optional(), + vu: z.string().optional(), + ve: z.string().optional(), + vn: z.string().optional(), + vg: z.string().optional(), + vi: z.string().optional(), + wf: z.string().optional(), + eh: z.string().optional(), + ye: z.string().optional(), + zm: z.string().optional(), + zw: z.string().optional(), + ax: z.string().optional(), + bq: z.string().optional(), + cw: z.string().optional(), + gg: z.string().optional(), + im: z.string().optional(), + je: z.string().optional(), + me: z.string().optional(), + bl: z.string().optional(), + mf: z.string().optional(), + rs: z.string().optional(), + sx: z.string().optional(), + ss: z.string().optional(), + xk: z.string().optional(), + }) + .transform((v) => { + return { + ...(v.af === undefined ? null : { AF: v.af }), + ...(v.al === undefined ? null : { AL: v.al }), + ...(v.dz === undefined ? null : { DZ: v.dz }), + ...(v.as === undefined ? null : { AS: v.as }), + ...(v.ad === undefined ? null : { AD: v.ad }), + ...(v.ao === undefined ? null : { AO: v.ao }), + ...(v.ai === undefined ? null : { AI: v.ai }), + ...(v.aq === undefined ? null : { AQ: v.aq }), + ...(v.ag === undefined ? null : { AG: v.ag }), + ...(v.ar === undefined ? null : { AR: v.ar }), + ...(v.am === undefined ? null : { AM: v.am }), + ...(v.aw === undefined ? null : { AW: v.aw }), + ...(v.au === undefined ? null : { AU: v.au }), + ...(v.at === undefined ? null : { AT: v.at }), + ...(v.az === undefined ? null : { AZ: v.az }), + ...(v.bs === undefined ? null : { BS: v.bs }), + ...(v.bh === undefined ? null : { BH: v.bh }), + ...(v.bd === undefined ? null : { BD: v.bd }), + ...(v.bb === undefined ? null : { BB: v.bb }), + ...(v.by === undefined ? null : { BY: v.by }), + ...(v.be === undefined ? null : { BE: v.be }), + ...(v.bz === undefined ? null : { BZ: v.bz }), + ...(v.bj === undefined ? null : { BJ: v.bj }), + ...(v.bm === undefined ? null : { BM: v.bm }), + ...(v.bt === undefined ? null : { BT: v.bt }), + ...(v.bo === undefined ? null : { BO: v.bo }), + ...(v.ba === undefined ? null : { BA: v.ba }), + ...(v.bw === undefined ? null : { BW: v.bw }), + ...(v.bv === undefined ? null : { BV: v.bv }), + ...(v.br === undefined ? null : { BR: v.br }), + ...(v.io === undefined ? null : { IO: v.io }), + ...(v.bn === undefined ? null : { BN: v.bn }), + ...(v.bg === undefined ? null : { BG: v.bg }), + ...(v.bf === undefined ? null : { BF: v.bf }), + ...(v.bi === undefined ? null : { BI: v.bi }), + ...(v.kh === undefined ? null : { KH: v.kh }), + ...(v.cm === undefined ? null : { CM: v.cm }), + ...(v.ca === undefined ? null : { CA: v.ca }), + ...(v.cv === undefined ? null : { CV: v.cv }), + ...(v.ky === undefined ? null : { KY: v.ky }), + ...(v.cf === undefined ? null : { CF: v.cf }), + ...(v.td === undefined ? null : { TD: v.td }), + ...(v.cl === undefined ? null : { CL: v.cl }), + ...(v.cn === undefined ? null : { CN: v.cn }), + ...(v.cx === undefined ? null : { CX: v.cx }), + ...(v.cc === undefined ? null : { CC: v.cc }), + ...(v.co === undefined ? null : { CO: v.co }), + ...(v.km === undefined ? null : { KM: v.km }), + ...(v.cg === undefined ? null : { CG: v.cg }), + ...(v.cd === undefined ? null : { CD: v.cd }), + ...(v.ck === undefined ? null : { CK: v.ck }), + ...(v.cr === undefined ? null : { CR: v.cr }), + ...(v.ci === undefined ? null : { CI: v.ci }), + ...(v.hr === undefined ? null : { HR: v.hr }), + ...(v.cu === undefined ? null : { CU: v.cu }), + ...(v.cy === undefined ? null : { CY: v.cy }), + ...(v.cz === undefined ? null : { CZ: v.cz }), + ...(v.dk === undefined ? null : { DK: v.dk }), + ...(v.dj === undefined ? null : { DJ: v.dj }), + ...(v.dm === undefined ? null : { DM: v.dm }), + ...(v.do === undefined ? null : { DO: v.do }), + ...(v.ec === undefined ? null : { EC: v.ec }), + ...(v.eg === undefined ? null : { EG: v.eg }), + ...(v.sv === undefined ? null : { SV: v.sv }), + ...(v.gq === undefined ? null : { GQ: v.gq }), + ...(v.er === undefined ? null : { ER: v.er }), + ...(v.ee === undefined ? null : { EE: v.ee }), + ...(v.et === undefined ? null : { ET: v.et }), + ...(v.fk === undefined ? null : { FK: v.fk }), + ...(v.fo === undefined ? null : { FO: v.fo }), + ...(v.fj === undefined ? null : { FJ: v.fj }), + ...(v.fi === undefined ? null : { FI: v.fi }), + ...(v.fr === undefined ? null : { FR: v.fr }), + ...(v.gf === undefined ? null : { GF: v.gf }), + ...(v.pf === undefined ? null : { PF: v.pf }), + ...(v.tf === undefined ? null : { TF: v.tf }), + ...(v.ga === undefined ? null : { GA: v.ga }), + ...(v.gm === undefined ? null : { GM: v.gm }), + ...(v.ge === undefined ? null : { GE: v.ge }), + ...(v.de === undefined ? null : { DE: v.de }), + ...(v.gh === undefined ? null : { GH: v.gh }), + ...(v.gi === undefined ? null : { GI: v.gi }), + ...(v.gr === undefined ? null : { GR: v.gr }), + ...(v.gl === undefined ? null : { GL: v.gl }), + ...(v.gd === undefined ? null : { GD: v.gd }), + ...(v.gp === undefined ? null : { GP: v.gp }), + ...(v.gu === undefined ? null : { GU: v.gu }), + ...(v.gt === undefined ? null : { GT: v.gt }), + ...(v.gn === undefined ? null : { GN: v.gn }), + ...(v.gw === undefined ? null : { GW: v.gw }), + ...(v.gy === undefined ? null : { GY: v.gy }), + ...(v.ht === undefined ? null : { HT: v.ht }), + ...(v.hm === undefined ? null : { HM: v.hm }), + ...(v.va === undefined ? null : { VA: v.va }), + ...(v.hn === undefined ? null : { HN: v.hn }), + ...(v.hk === undefined ? null : { HK: v.hk }), + ...(v.hu === undefined ? null : { HU: v.hu }), + ...(v.is === undefined ? null : { IS: v.is }), + ...(v.in === undefined ? null : { IN: v.in }), + ...(v.id === undefined ? null : { ID: v.id }), + ...(v.ir === undefined ? null : { IR: v.ir }), + ...(v.iq === undefined ? null : { IQ: v.iq }), + ...(v.ie === undefined ? null : { IE: v.ie }), + ...(v.il === undefined ? null : { IL: v.il }), + ...(v.it === undefined ? null : { IT: v.it }), + ...(v.jm === undefined ? null : { JM: v.jm }), + ...(v.jp === undefined ? null : { JP: v.jp }), + ...(v.jo === undefined ? null : { JO: v.jo }), + ...(v.kz === undefined ? null : { KZ: v.kz }), + ...(v.ke === undefined ? null : { KE: v.ke }), + ...(v.ki === undefined ? null : { KI: v.ki }), + ...(v.kp === undefined ? null : { KP: v.kp }), + ...(v.kr === undefined ? null : { KR: v.kr }), + ...(v.kw === undefined ? null : { KW: v.kw }), + ...(v.kg === undefined ? null : { KG: v.kg }), + ...(v.la === undefined ? null : { LA: v.la }), + ...(v.lv === undefined ? null : { LV: v.lv }), + ...(v.lb === undefined ? null : { LB: v.lb }), + ...(v.ls === undefined ? null : { LS: v.ls }), + ...(v.lr === undefined ? null : { LR: v.lr }), + ...(v.ly === undefined ? null : { LY: v.ly }), + ...(v.li === undefined ? null : { LI: v.li }), + ...(v.lt === undefined ? null : { LT: v.lt }), + ...(v.lu === undefined ? null : { LU: v.lu }), + ...(v.mo === undefined ? null : { MO: v.mo }), + ...(v.mg === undefined ? null : { MG: v.mg }), + ...(v.mw === undefined ? null : { MW: v.mw }), + ...(v.my === undefined ? null : { MY: v.my }), + ...(v.mv === undefined ? null : { MV: v.mv }), + ...(v.ml === undefined ? null : { ML: v.ml }), + ...(v.mt === undefined ? null : { MT: v.mt }), + ...(v.mh === undefined ? null : { MH: v.mh }), + ...(v.mq === undefined ? null : { MQ: v.mq }), + ...(v.mr === undefined ? null : { MR: v.mr }), + ...(v.mu === undefined ? null : { MU: v.mu }), + ...(v.yt === undefined ? null : { YT: v.yt }), + ...(v.mx === undefined ? null : { MX: v.mx }), + ...(v.fm === undefined ? null : { FM: v.fm }), + ...(v.md === undefined ? null : { MD: v.md }), + ...(v.mc === undefined ? null : { MC: v.mc }), + ...(v.mn === undefined ? null : { MN: v.mn }), + ...(v.ms === undefined ? null : { MS: v.ms }), + ...(v.ma === undefined ? null : { MA: v.ma }), + ...(v.mz === undefined ? null : { MZ: v.mz }), + ...(v.mm === undefined ? null : { MM: v.mm }), + ...(v.na === undefined ? null : { NA: v.na }), + ...(v.nr === undefined ? null : { NR: v.nr }), + ...(v.np === undefined ? null : { NP: v.np }), + ...(v.nl === undefined ? null : { NL: v.nl }), + ...(v.nc === undefined ? null : { NC: v.nc }), + ...(v.nz === undefined ? null : { NZ: v.nz }), + ...(v.ni === undefined ? null : { NI: v.ni }), + ...(v.ne === undefined ? null : { NE: v.ne }), + ...(v.ng === undefined ? null : { NG: v.ng }), + ...(v.nu === undefined ? null : { NU: v.nu }), + ...(v.nf === undefined ? null : { NF: v.nf }), + ...(v.mk === undefined ? null : { MK: v.mk }), + ...(v.mp === undefined ? null : { MP: v.mp }), + ...(v.no === undefined ? null : { NO: v.no }), + ...(v.om === undefined ? null : { OM: v.om }), + ...(v.pk === undefined ? null : { PK: v.pk }), + ...(v.pw === undefined ? null : { PW: v.pw }), + ...(v.ps === undefined ? null : { PS: v.ps }), + ...(v.pa === undefined ? null : { PA: v.pa }), + ...(v.pg === undefined ? null : { PG: v.pg }), + ...(v.py === undefined ? null : { PY: v.py }), + ...(v.pe === undefined ? null : { PE: v.pe }), + ...(v.ph === undefined ? null : { PH: v.ph }), + ...(v.pn === undefined ? null : { PN: v.pn }), + ...(v.pl === undefined ? null : { PL: v.pl }), + ...(v.pt === undefined ? null : { PT: v.pt }), + ...(v.pr === undefined ? null : { PR: v.pr }), + ...(v.qa === undefined ? null : { QA: v.qa }), + ...(v.re === undefined ? null : { RE: v.re }), + ...(v.ro === undefined ? null : { RO: v.ro }), + ...(v.ru === undefined ? null : { RU: v.ru }), + ...(v.rw === undefined ? null : { RW: v.rw }), + ...(v.sh === undefined ? null : { SH: v.sh }), + ...(v.kn === undefined ? null : { KN: v.kn }), + ...(v.lc === undefined ? null : { LC: v.lc }), + ...(v.pm === undefined ? null : { PM: v.pm }), + ...(v.vc === undefined ? null : { VC: v.vc }), + ...(v.ws === undefined ? null : { WS: v.ws }), + ...(v.sm === undefined ? null : { SM: v.sm }), + ...(v.st === undefined ? null : { ST: v.st }), + ...(v.sa === undefined ? null : { SA: v.sa }), + ...(v.sn === undefined ? null : { SN: v.sn }), + ...(v.sc === undefined ? null : { SC: v.sc }), + ...(v.sl === undefined ? null : { SL: v.sl }), + ...(v.sg === undefined ? null : { SG: v.sg }), + ...(v.sk === undefined ? null : { SK: v.sk }), + ...(v.si === undefined ? null : { SI: v.si }), + ...(v.sb === undefined ? null : { SB: v.sb }), + ...(v.so === undefined ? null : { SO: v.so }), + ...(v.za === undefined ? null : { ZA: v.za }), + ...(v.gs === undefined ? null : { GS: v.gs }), + ...(v.es === undefined ? null : { ES: v.es }), + ...(v.lk === undefined ? null : { LK: v.lk }), + ...(v.sd === undefined ? null : { SD: v.sd }), + ...(v.sr === undefined ? null : { SR: v.sr }), + ...(v.sj === undefined ? null : { SJ: v.sj }), + ...(v.sz === undefined ? null : { SZ: v.sz }), + ...(v.se === undefined ? null : { SE: v.se }), + ...(v.ch === undefined ? null : { CH: v.ch }), + ...(v.sy === undefined ? null : { SY: v.sy }), + ...(v.tw === undefined ? null : { TW: v.tw }), + ...(v.tj === undefined ? null : { TJ: v.tj }), + ...(v.tz === undefined ? null : { TZ: v.tz }), + ...(v.th === undefined ? null : { TH: v.th }), + ...(v.tl === undefined ? null : { TL: v.tl }), + ...(v.tg === undefined ? null : { TG: v.tg }), + ...(v.tk === undefined ? null : { TK: v.tk }), + ...(v.to === undefined ? null : { TO: v.to }), + ...(v.tt === undefined ? null : { TT: v.tt }), + ...(v.tn === undefined ? null : { TN: v.tn }), + ...(v.tr === undefined ? null : { TR: v.tr }), + ...(v.tm === undefined ? null : { TM: v.tm }), + ...(v.tc === undefined ? null : { TC: v.tc }), + ...(v.tv === undefined ? null : { TV: v.tv }), + ...(v.ug === undefined ? null : { UG: v.ug }), + ...(v.ua === undefined ? null : { UA: v.ua }), + ...(v.ae === undefined ? null : { AE: v.ae }), + ...(v.gb === undefined ? null : { GB: v.gb }), + ...(v.us === undefined ? null : { US: v.us }), + ...(v.um === undefined ? null : { UM: v.um }), + ...(v.uy === undefined ? null : { UY: v.uy }), + ...(v.uz === undefined ? null : { UZ: v.uz }), + ...(v.vu === undefined ? null : { VU: v.vu }), + ...(v.ve === undefined ? null : { VE: v.ve }), + ...(v.vn === undefined ? null : { VN: v.vn }), + ...(v.vg === undefined ? null : { VG: v.vg }), + ...(v.vi === undefined ? null : { VI: v.vi }), + ...(v.wf === undefined ? null : { WF: v.wf }), + ...(v.eh === undefined ? null : { EH: v.eh }), + ...(v.ye === undefined ? null : { YE: v.ye }), + ...(v.zm === undefined ? null : { ZM: v.zm }), + ...(v.zw === undefined ? null : { ZW: v.zw }), + ...(v.ax === undefined ? null : { AX: v.ax }), + ...(v.bq === undefined ? null : { BQ: v.bq }), + ...(v.cw === undefined ? null : { CW: v.cw }), + ...(v.gg === undefined ? null : { GG: v.gg }), + ...(v.im === undefined ? null : { IM: v.im }), + ...(v.je === undefined ? null : { JE: v.je }), + ...(v.me === undefined ? null : { ME: v.me }), + ...(v.bl === undefined ? null : { BL: v.bl }), + ...(v.mf === undefined ? null : { MF: v.mf }), + ...(v.rs === undefined ? null : { RS: v.rs }), + ...(v.sx === undefined ? null : { SX: v.sx }), + ...(v.ss === undefined ? null : { SS: v.ss }), + ...(v.xk === undefined ? null : { XK: v.xk }), + }; + }); +} diff --git a/src/models/operations/bulkcreatelinks.ts b/src/models/operations/bulkcreatelinks.ts index 8a5ed33..395051f 100644 --- a/src/models/operations/bulkcreatelinks.ts +++ b/src/models/operations/bulkcreatelinks.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ +import * as components from "../components"; import * as z from "zod"; /** @@ -14,262 +15,6 @@ export type BulkCreateLinksTagIds = string | Array; */ export type BulkCreateLinksTagNames = string | Array; -/** - * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. - */ -export type BulkCreateLinksGeo = { - af?: string | undefined; - al?: string | undefined; - dz?: string | undefined; - as?: string | undefined; - ad?: string | undefined; - ao?: string | undefined; - ai?: string | undefined; - aq?: string | undefined; - ag?: string | undefined; - ar?: string | undefined; - am?: string | undefined; - aw?: string | undefined; - au?: string | undefined; - at?: string | undefined; - az?: string | undefined; - bs?: string | undefined; - bh?: string | undefined; - bd?: string | undefined; - bb?: string | undefined; - by?: string | undefined; - be?: string | undefined; - bz?: string | undefined; - bj?: string | undefined; - bm?: string | undefined; - bt?: string | undefined; - bo?: string | undefined; - ba?: string | undefined; - bw?: string | undefined; - bv?: string | undefined; - br?: string | undefined; - io?: string | undefined; - bn?: string | undefined; - bg?: string | undefined; - bf?: string | undefined; - bi?: string | undefined; - kh?: string | undefined; - cm?: string | undefined; - ca?: string | undefined; - cv?: string | undefined; - ky?: string | undefined; - cf?: string | undefined; - td?: string | undefined; - cl?: string | undefined; - cn?: string | undefined; - cx?: string | undefined; - cc?: string | undefined; - co?: string | undefined; - km?: string | undefined; - cg?: string | undefined; - cd?: string | undefined; - ck?: string | undefined; - cr?: string | undefined; - ci?: string | undefined; - hr?: string | undefined; - cu?: string | undefined; - cy?: string | undefined; - cz?: string | undefined; - dk?: string | undefined; - dj?: string | undefined; - dm?: string | undefined; - do?: string | undefined; - ec?: string | undefined; - eg?: string | undefined; - sv?: string | undefined; - gq?: string | undefined; - er?: string | undefined; - ee?: string | undefined; - et?: string | undefined; - fk?: string | undefined; - fo?: string | undefined; - fj?: string | undefined; - fi?: string | undefined; - fr?: string | undefined; - gf?: string | undefined; - pf?: string | undefined; - tf?: string | undefined; - ga?: string | undefined; - gm?: string | undefined; - ge?: string | undefined; - de?: string | undefined; - gh?: string | undefined; - gi?: string | undefined; - gr?: string | undefined; - gl?: string | undefined; - gd?: string | undefined; - gp?: string | undefined; - gu?: string | undefined; - gt?: string | undefined; - gn?: string | undefined; - gw?: string | undefined; - gy?: string | undefined; - ht?: string | undefined; - hm?: string | undefined; - va?: string | undefined; - hn?: string | undefined; - hk?: string | undefined; - hu?: string | undefined; - is?: string | undefined; - in?: string | undefined; - id?: string | undefined; - ir?: string | undefined; - iq?: string | undefined; - ie?: string | undefined; - il?: string | undefined; - it?: string | undefined; - jm?: string | undefined; - jp?: string | undefined; - jo?: string | undefined; - kz?: string | undefined; - ke?: string | undefined; - ki?: string | undefined; - kp?: string | undefined; - kr?: string | undefined; - kw?: string | undefined; - kg?: string | undefined; - la?: string | undefined; - lv?: string | undefined; - lb?: string | undefined; - ls?: string | undefined; - lr?: string | undefined; - ly?: string | undefined; - li?: string | undefined; - lt?: string | undefined; - lu?: string | undefined; - mo?: string | undefined; - mg?: string | undefined; - mw?: string | undefined; - my?: string | undefined; - mv?: string | undefined; - ml?: string | undefined; - mt?: string | undefined; - mh?: string | undefined; - mq?: string | undefined; - mr?: string | undefined; - mu?: string | undefined; - yt?: string | undefined; - mx?: string | undefined; - fm?: string | undefined; - md?: string | undefined; - mc?: string | undefined; - mn?: string | undefined; - ms?: string | undefined; - ma?: string | undefined; - mz?: string | undefined; - mm?: string | undefined; - na?: string | undefined; - nr?: string | undefined; - np?: string | undefined; - nl?: string | undefined; - nc?: string | undefined; - nz?: string | undefined; - ni?: string | undefined; - ne?: string | undefined; - ng?: string | undefined; - nu?: string | undefined; - nf?: string | undefined; - mk?: string | undefined; - mp?: string | undefined; - no?: string | undefined; - om?: string | undefined; - pk?: string | undefined; - pw?: string | undefined; - ps?: string | undefined; - pa?: string | undefined; - pg?: string | undefined; - py?: string | undefined; - pe?: string | undefined; - ph?: string | undefined; - pn?: string | undefined; - pl?: string | undefined; - pt?: string | undefined; - pr?: string | undefined; - qa?: string | undefined; - re?: string | undefined; - ro?: string | undefined; - ru?: string | undefined; - rw?: string | undefined; - sh?: string | undefined; - kn?: string | undefined; - lc?: string | undefined; - pm?: string | undefined; - vc?: string | undefined; - ws?: string | undefined; - sm?: string | undefined; - st?: string | undefined; - sa?: string | undefined; - sn?: string | undefined; - sc?: string | undefined; - sl?: string | undefined; - sg?: string | undefined; - sk?: string | undefined; - si?: string | undefined; - sb?: string | undefined; - so?: string | undefined; - za?: string | undefined; - gs?: string | undefined; - es?: string | undefined; - lk?: string | undefined; - sd?: string | undefined; - sr?: string | undefined; - sj?: string | undefined; - sz?: string | undefined; - se?: string | undefined; - ch?: string | undefined; - sy?: string | undefined; - tw?: string | undefined; - tj?: string | undefined; - tz?: string | undefined; - th?: string | undefined; - tl?: string | undefined; - tg?: string | undefined; - tk?: string | undefined; - to?: string | undefined; - tt?: string | undefined; - tn?: string | undefined; - tr?: string | undefined; - tm?: string | undefined; - tc?: string | undefined; - tv?: string | undefined; - ug?: string | undefined; - ua?: string | undefined; - ae?: string | undefined; - gb?: string | undefined; - us?: string | undefined; - um?: string | undefined; - uy?: string | undefined; - uz?: string | undefined; - vu?: string | undefined; - ve?: string | undefined; - vn?: string | undefined; - vg?: string | undefined; - vi?: string | undefined; - wf?: string | undefined; - eh?: string | undefined; - ye?: string | undefined; - zm?: string | undefined; - zw?: string | undefined; - ax?: string | undefined; - bq?: string | undefined; - cw?: string | undefined; - gg?: string | undefined; - im?: string | undefined; - je?: string | undefined; - me?: string | undefined; - bl?: string | undefined; - mf?: string | undefined; - rs?: string | undefined; - sx?: string | undefined; - ss?: string | undefined; - xk?: string | undefined; -}; - export type RequestBody = { /** * The destination URL of the short link. @@ -360,7 +105,7 @@ export type RequestBody = { /** * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. */ - geo?: BulkCreateLinksGeo | null | undefined; + geo?: components.LinkGeoTargeting | null | undefined; }; /** @internal */ @@ -387,1278 +132,6 @@ export namespace BulkCreateLinksTagNames$ { z.union([z.string(), z.array(z.string())]); } -/** @internal */ -export namespace BulkCreateLinksGeo$ { - export const inboundSchema: z.ZodType = z - .object({ - AF: z.string().optional(), - AL: z.string().optional(), - DZ: z.string().optional(), - AS: z.string().optional(), - AD: z.string().optional(), - AO: z.string().optional(), - AI: z.string().optional(), - AQ: z.string().optional(), - AG: z.string().optional(), - AR: z.string().optional(), - AM: z.string().optional(), - AW: z.string().optional(), - AU: z.string().optional(), - AT: z.string().optional(), - AZ: z.string().optional(), - BS: z.string().optional(), - BH: z.string().optional(), - BD: z.string().optional(), - BB: z.string().optional(), - BY: z.string().optional(), - BE: z.string().optional(), - BZ: z.string().optional(), - BJ: z.string().optional(), - BM: z.string().optional(), - BT: z.string().optional(), - BO: z.string().optional(), - BA: z.string().optional(), - BW: z.string().optional(), - BV: z.string().optional(), - BR: z.string().optional(), - IO: z.string().optional(), - BN: z.string().optional(), - BG: z.string().optional(), - BF: z.string().optional(), - BI: z.string().optional(), - KH: z.string().optional(), - CM: z.string().optional(), - CA: z.string().optional(), - CV: z.string().optional(), - KY: z.string().optional(), - CF: z.string().optional(), - TD: z.string().optional(), - CL: z.string().optional(), - CN: z.string().optional(), - CX: z.string().optional(), - CC: z.string().optional(), - CO: z.string().optional(), - KM: z.string().optional(), - CG: z.string().optional(), - CD: z.string().optional(), - CK: z.string().optional(), - CR: z.string().optional(), - CI: z.string().optional(), - HR: z.string().optional(), - CU: z.string().optional(), - CY: z.string().optional(), - CZ: z.string().optional(), - DK: z.string().optional(), - DJ: z.string().optional(), - DM: z.string().optional(), - DO: z.string().optional(), - EC: z.string().optional(), - EG: z.string().optional(), - SV: z.string().optional(), - GQ: z.string().optional(), - ER: z.string().optional(), - EE: z.string().optional(), - ET: z.string().optional(), - FK: z.string().optional(), - FO: z.string().optional(), - FJ: z.string().optional(), - FI: z.string().optional(), - FR: z.string().optional(), - GF: z.string().optional(), - PF: z.string().optional(), - TF: z.string().optional(), - GA: z.string().optional(), - GM: z.string().optional(), - GE: z.string().optional(), - DE: z.string().optional(), - GH: z.string().optional(), - GI: z.string().optional(), - GR: z.string().optional(), - GL: z.string().optional(), - GD: z.string().optional(), - GP: z.string().optional(), - GU: z.string().optional(), - GT: z.string().optional(), - GN: z.string().optional(), - GW: z.string().optional(), - GY: z.string().optional(), - HT: z.string().optional(), - HM: z.string().optional(), - VA: z.string().optional(), - HN: z.string().optional(), - HK: z.string().optional(), - HU: z.string().optional(), - IS: z.string().optional(), - IN: z.string().optional(), - ID: z.string().optional(), - IR: z.string().optional(), - IQ: z.string().optional(), - IE: z.string().optional(), - IL: z.string().optional(), - IT: z.string().optional(), - JM: z.string().optional(), - JP: z.string().optional(), - JO: z.string().optional(), - KZ: z.string().optional(), - KE: z.string().optional(), - KI: z.string().optional(), - KP: z.string().optional(), - KR: z.string().optional(), - KW: z.string().optional(), - KG: z.string().optional(), - LA: z.string().optional(), - LV: z.string().optional(), - LB: z.string().optional(), - LS: z.string().optional(), - LR: z.string().optional(), - LY: z.string().optional(), - LI: z.string().optional(), - LT: z.string().optional(), - LU: z.string().optional(), - MO: z.string().optional(), - MG: z.string().optional(), - MW: z.string().optional(), - MY: z.string().optional(), - MV: z.string().optional(), - ML: z.string().optional(), - MT: z.string().optional(), - MH: z.string().optional(), - MQ: z.string().optional(), - MR: z.string().optional(), - MU: z.string().optional(), - YT: z.string().optional(), - MX: z.string().optional(), - FM: z.string().optional(), - MD: z.string().optional(), - MC: z.string().optional(), - MN: z.string().optional(), - MS: z.string().optional(), - MA: z.string().optional(), - MZ: z.string().optional(), - MM: z.string().optional(), - NA: z.string().optional(), - NR: z.string().optional(), - NP: z.string().optional(), - NL: z.string().optional(), - NC: z.string().optional(), - NZ: z.string().optional(), - NI: z.string().optional(), - NE: z.string().optional(), - NG: z.string().optional(), - NU: z.string().optional(), - NF: z.string().optional(), - MK: z.string().optional(), - MP: z.string().optional(), - NO: z.string().optional(), - OM: z.string().optional(), - PK: z.string().optional(), - PW: z.string().optional(), - PS: z.string().optional(), - PA: z.string().optional(), - PG: z.string().optional(), - PY: z.string().optional(), - PE: z.string().optional(), - PH: z.string().optional(), - PN: z.string().optional(), - PL: z.string().optional(), - PT: z.string().optional(), - PR: z.string().optional(), - QA: z.string().optional(), - RE: z.string().optional(), - RO: z.string().optional(), - RU: z.string().optional(), - RW: z.string().optional(), - SH: z.string().optional(), - KN: z.string().optional(), - LC: z.string().optional(), - PM: z.string().optional(), - VC: z.string().optional(), - WS: z.string().optional(), - SM: z.string().optional(), - ST: z.string().optional(), - SA: z.string().optional(), - SN: z.string().optional(), - SC: z.string().optional(), - SL: z.string().optional(), - SG: z.string().optional(), - SK: z.string().optional(), - SI: z.string().optional(), - SB: z.string().optional(), - SO: z.string().optional(), - ZA: z.string().optional(), - GS: z.string().optional(), - ES: z.string().optional(), - LK: z.string().optional(), - SD: z.string().optional(), - SR: z.string().optional(), - SJ: z.string().optional(), - SZ: z.string().optional(), - SE: z.string().optional(), - CH: z.string().optional(), - SY: z.string().optional(), - TW: z.string().optional(), - TJ: z.string().optional(), - TZ: z.string().optional(), - TH: z.string().optional(), - TL: z.string().optional(), - TG: z.string().optional(), - TK: z.string().optional(), - TO: z.string().optional(), - TT: z.string().optional(), - TN: z.string().optional(), - TR: z.string().optional(), - TM: z.string().optional(), - TC: z.string().optional(), - TV: z.string().optional(), - UG: z.string().optional(), - UA: z.string().optional(), - AE: z.string().optional(), - GB: z.string().optional(), - US: z.string().optional(), - UM: z.string().optional(), - UY: z.string().optional(), - UZ: z.string().optional(), - VU: z.string().optional(), - VE: z.string().optional(), - VN: z.string().optional(), - VG: z.string().optional(), - VI: z.string().optional(), - WF: z.string().optional(), - EH: z.string().optional(), - YE: z.string().optional(), - ZM: z.string().optional(), - ZW: z.string().optional(), - AX: z.string().optional(), - BQ: z.string().optional(), - CW: z.string().optional(), - GG: z.string().optional(), - IM: z.string().optional(), - JE: z.string().optional(), - ME: z.string().optional(), - BL: z.string().optional(), - MF: z.string().optional(), - RS: z.string().optional(), - SX: z.string().optional(), - SS: z.string().optional(), - XK: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.AF === undefined ? null : { af: v.AF }), - ...(v.AL === undefined ? null : { al: v.AL }), - ...(v.DZ === undefined ? null : { dz: v.DZ }), - ...(v.AS === undefined ? null : { as: v.AS }), - ...(v.AD === undefined ? null : { ad: v.AD }), - ...(v.AO === undefined ? null : { ao: v.AO }), - ...(v.AI === undefined ? null : { ai: v.AI }), - ...(v.AQ === undefined ? null : { aq: v.AQ }), - ...(v.AG === undefined ? null : { ag: v.AG }), - ...(v.AR === undefined ? null : { ar: v.AR }), - ...(v.AM === undefined ? null : { am: v.AM }), - ...(v.AW === undefined ? null : { aw: v.AW }), - ...(v.AU === undefined ? null : { au: v.AU }), - ...(v.AT === undefined ? null : { at: v.AT }), - ...(v.AZ === undefined ? null : { az: v.AZ }), - ...(v.BS === undefined ? null : { bs: v.BS }), - ...(v.BH === undefined ? null : { bh: v.BH }), - ...(v.BD === undefined ? null : { bd: v.BD }), - ...(v.BB === undefined ? null : { bb: v.BB }), - ...(v.BY === undefined ? null : { by: v.BY }), - ...(v.BE === undefined ? null : { be: v.BE }), - ...(v.BZ === undefined ? null : { bz: v.BZ }), - ...(v.BJ === undefined ? null : { bj: v.BJ }), - ...(v.BM === undefined ? null : { bm: v.BM }), - ...(v.BT === undefined ? null : { bt: v.BT }), - ...(v.BO === undefined ? null : { bo: v.BO }), - ...(v.BA === undefined ? null : { ba: v.BA }), - ...(v.BW === undefined ? null : { bw: v.BW }), - ...(v.BV === undefined ? null : { bv: v.BV }), - ...(v.BR === undefined ? null : { br: v.BR }), - ...(v.IO === undefined ? null : { io: v.IO }), - ...(v.BN === undefined ? null : { bn: v.BN }), - ...(v.BG === undefined ? null : { bg: v.BG }), - ...(v.BF === undefined ? null : { bf: v.BF }), - ...(v.BI === undefined ? null : { bi: v.BI }), - ...(v.KH === undefined ? null : { kh: v.KH }), - ...(v.CM === undefined ? null : { cm: v.CM }), - ...(v.CA === undefined ? null : { ca: v.CA }), - ...(v.CV === undefined ? null : { cv: v.CV }), - ...(v.KY === undefined ? null : { ky: v.KY }), - ...(v.CF === undefined ? null : { cf: v.CF }), - ...(v.TD === undefined ? null : { td: v.TD }), - ...(v.CL === undefined ? null : { cl: v.CL }), - ...(v.CN === undefined ? null : { cn: v.CN }), - ...(v.CX === undefined ? null : { cx: v.CX }), - ...(v.CC === undefined ? null : { cc: v.CC }), - ...(v.CO === undefined ? null : { co: v.CO }), - ...(v.KM === undefined ? null : { km: v.KM }), - ...(v.CG === undefined ? null : { cg: v.CG }), - ...(v.CD === undefined ? null : { cd: v.CD }), - ...(v.CK === undefined ? null : { ck: v.CK }), - ...(v.CR === undefined ? null : { cr: v.CR }), - ...(v.CI === undefined ? null : { ci: v.CI }), - ...(v.HR === undefined ? null : { hr: v.HR }), - ...(v.CU === undefined ? null : { cu: v.CU }), - ...(v.CY === undefined ? null : { cy: v.CY }), - ...(v.CZ === undefined ? null : { cz: v.CZ }), - ...(v.DK === undefined ? null : { dk: v.DK }), - ...(v.DJ === undefined ? null : { dj: v.DJ }), - ...(v.DM === undefined ? null : { dm: v.DM }), - ...(v.DO === undefined ? null : { do: v.DO }), - ...(v.EC === undefined ? null : { ec: v.EC }), - ...(v.EG === undefined ? null : { eg: v.EG }), - ...(v.SV === undefined ? null : { sv: v.SV }), - ...(v.GQ === undefined ? null : { gq: v.GQ }), - ...(v.ER === undefined ? null : { er: v.ER }), - ...(v.EE === undefined ? null : { ee: v.EE }), - ...(v.ET === undefined ? null : { et: v.ET }), - ...(v.FK === undefined ? null : { fk: v.FK }), - ...(v.FO === undefined ? null : { fo: v.FO }), - ...(v.FJ === undefined ? null : { fj: v.FJ }), - ...(v.FI === undefined ? null : { fi: v.FI }), - ...(v.FR === undefined ? null : { fr: v.FR }), - ...(v.GF === undefined ? null : { gf: v.GF }), - ...(v.PF === undefined ? null : { pf: v.PF }), - ...(v.TF === undefined ? null : { tf: v.TF }), - ...(v.GA === undefined ? null : { ga: v.GA }), - ...(v.GM === undefined ? null : { gm: v.GM }), - ...(v.GE === undefined ? null : { ge: v.GE }), - ...(v.DE === undefined ? null : { de: v.DE }), - ...(v.GH === undefined ? null : { gh: v.GH }), - ...(v.GI === undefined ? null : { gi: v.GI }), - ...(v.GR === undefined ? null : { gr: v.GR }), - ...(v.GL === undefined ? null : { gl: v.GL }), - ...(v.GD === undefined ? null : { gd: v.GD }), - ...(v.GP === undefined ? null : { gp: v.GP }), - ...(v.GU === undefined ? null : { gu: v.GU }), - ...(v.GT === undefined ? null : { gt: v.GT }), - ...(v.GN === undefined ? null : { gn: v.GN }), - ...(v.GW === undefined ? null : { gw: v.GW }), - ...(v.GY === undefined ? null : { gy: v.GY }), - ...(v.HT === undefined ? null : { ht: v.HT }), - ...(v.HM === undefined ? null : { hm: v.HM }), - ...(v.VA === undefined ? null : { va: v.VA }), - ...(v.HN === undefined ? null : { hn: v.HN }), - ...(v.HK === undefined ? null : { hk: v.HK }), - ...(v.HU === undefined ? null : { hu: v.HU }), - ...(v.IS === undefined ? null : { is: v.IS }), - ...(v.IN === undefined ? null : { in: v.IN }), - ...(v.ID === undefined ? null : { id: v.ID }), - ...(v.IR === undefined ? null : { ir: v.IR }), - ...(v.IQ === undefined ? null : { iq: v.IQ }), - ...(v.IE === undefined ? null : { ie: v.IE }), - ...(v.IL === undefined ? null : { il: v.IL }), - ...(v.IT === undefined ? null : { it: v.IT }), - ...(v.JM === undefined ? null : { jm: v.JM }), - ...(v.JP === undefined ? null : { jp: v.JP }), - ...(v.JO === undefined ? null : { jo: v.JO }), - ...(v.KZ === undefined ? null : { kz: v.KZ }), - ...(v.KE === undefined ? null : { ke: v.KE }), - ...(v.KI === undefined ? null : { ki: v.KI }), - ...(v.KP === undefined ? null : { kp: v.KP }), - ...(v.KR === undefined ? null : { kr: v.KR }), - ...(v.KW === undefined ? null : { kw: v.KW }), - ...(v.KG === undefined ? null : { kg: v.KG }), - ...(v.LA === undefined ? null : { la: v.LA }), - ...(v.LV === undefined ? null : { lv: v.LV }), - ...(v.LB === undefined ? null : { lb: v.LB }), - ...(v.LS === undefined ? null : { ls: v.LS }), - ...(v.LR === undefined ? null : { lr: v.LR }), - ...(v.LY === undefined ? null : { ly: v.LY }), - ...(v.LI === undefined ? null : { li: v.LI }), - ...(v.LT === undefined ? null : { lt: v.LT }), - ...(v.LU === undefined ? null : { lu: v.LU }), - ...(v.MO === undefined ? null : { mo: v.MO }), - ...(v.MG === undefined ? null : { mg: v.MG }), - ...(v.MW === undefined ? null : { mw: v.MW }), - ...(v.MY === undefined ? null : { my: v.MY }), - ...(v.MV === undefined ? null : { mv: v.MV }), - ...(v.ML === undefined ? null : { ml: v.ML }), - ...(v.MT === undefined ? null : { mt: v.MT }), - ...(v.MH === undefined ? null : { mh: v.MH }), - ...(v.MQ === undefined ? null : { mq: v.MQ }), - ...(v.MR === undefined ? null : { mr: v.MR }), - ...(v.MU === undefined ? null : { mu: v.MU }), - ...(v.YT === undefined ? null : { yt: v.YT }), - ...(v.MX === undefined ? null : { mx: v.MX }), - ...(v.FM === undefined ? null : { fm: v.FM }), - ...(v.MD === undefined ? null : { md: v.MD }), - ...(v.MC === undefined ? null : { mc: v.MC }), - ...(v.MN === undefined ? null : { mn: v.MN }), - ...(v.MS === undefined ? null : { ms: v.MS }), - ...(v.MA === undefined ? null : { ma: v.MA }), - ...(v.MZ === undefined ? null : { mz: v.MZ }), - ...(v.MM === undefined ? null : { mm: v.MM }), - ...(v.NA === undefined ? null : { na: v.NA }), - ...(v.NR === undefined ? null : { nr: v.NR }), - ...(v.NP === undefined ? null : { np: v.NP }), - ...(v.NL === undefined ? null : { nl: v.NL }), - ...(v.NC === undefined ? null : { nc: v.NC }), - ...(v.NZ === undefined ? null : { nz: v.NZ }), - ...(v.NI === undefined ? null : { ni: v.NI }), - ...(v.NE === undefined ? null : { ne: v.NE }), - ...(v.NG === undefined ? null : { ng: v.NG }), - ...(v.NU === undefined ? null : { nu: v.NU }), - ...(v.NF === undefined ? null : { nf: v.NF }), - ...(v.MK === undefined ? null : { mk: v.MK }), - ...(v.MP === undefined ? null : { mp: v.MP }), - ...(v.NO === undefined ? null : { no: v.NO }), - ...(v.OM === undefined ? null : { om: v.OM }), - ...(v.PK === undefined ? null : { pk: v.PK }), - ...(v.PW === undefined ? null : { pw: v.PW }), - ...(v.PS === undefined ? null : { ps: v.PS }), - ...(v.PA === undefined ? null : { pa: v.PA }), - ...(v.PG === undefined ? null : { pg: v.PG }), - ...(v.PY === undefined ? null : { py: v.PY }), - ...(v.PE === undefined ? null : { pe: v.PE }), - ...(v.PH === undefined ? null : { ph: v.PH }), - ...(v.PN === undefined ? null : { pn: v.PN }), - ...(v.PL === undefined ? null : { pl: v.PL }), - ...(v.PT === undefined ? null : { pt: v.PT }), - ...(v.PR === undefined ? null : { pr: v.PR }), - ...(v.QA === undefined ? null : { qa: v.QA }), - ...(v.RE === undefined ? null : { re: v.RE }), - ...(v.RO === undefined ? null : { ro: v.RO }), - ...(v.RU === undefined ? null : { ru: v.RU }), - ...(v.RW === undefined ? null : { rw: v.RW }), - ...(v.SH === undefined ? null : { sh: v.SH }), - ...(v.KN === undefined ? null : { kn: v.KN }), - ...(v.LC === undefined ? null : { lc: v.LC }), - ...(v.PM === undefined ? null : { pm: v.PM }), - ...(v.VC === undefined ? null : { vc: v.VC }), - ...(v.WS === undefined ? null : { ws: v.WS }), - ...(v.SM === undefined ? null : { sm: v.SM }), - ...(v.ST === undefined ? null : { st: v.ST }), - ...(v.SA === undefined ? null : { sa: v.SA }), - ...(v.SN === undefined ? null : { sn: v.SN }), - ...(v.SC === undefined ? null : { sc: v.SC }), - ...(v.SL === undefined ? null : { sl: v.SL }), - ...(v.SG === undefined ? null : { sg: v.SG }), - ...(v.SK === undefined ? null : { sk: v.SK }), - ...(v.SI === undefined ? null : { si: v.SI }), - ...(v.SB === undefined ? null : { sb: v.SB }), - ...(v.SO === undefined ? null : { so: v.SO }), - ...(v.ZA === undefined ? null : { za: v.ZA }), - ...(v.GS === undefined ? null : { gs: v.GS }), - ...(v.ES === undefined ? null : { es: v.ES }), - ...(v.LK === undefined ? null : { lk: v.LK }), - ...(v.SD === undefined ? null : { sd: v.SD }), - ...(v.SR === undefined ? null : { sr: v.SR }), - ...(v.SJ === undefined ? null : { sj: v.SJ }), - ...(v.SZ === undefined ? null : { sz: v.SZ }), - ...(v.SE === undefined ? null : { se: v.SE }), - ...(v.CH === undefined ? null : { ch: v.CH }), - ...(v.SY === undefined ? null : { sy: v.SY }), - ...(v.TW === undefined ? null : { tw: v.TW }), - ...(v.TJ === undefined ? null : { tj: v.TJ }), - ...(v.TZ === undefined ? null : { tz: v.TZ }), - ...(v.TH === undefined ? null : { th: v.TH }), - ...(v.TL === undefined ? null : { tl: v.TL }), - ...(v.TG === undefined ? null : { tg: v.TG }), - ...(v.TK === undefined ? null : { tk: v.TK }), - ...(v.TO === undefined ? null : { to: v.TO }), - ...(v.TT === undefined ? null : { tt: v.TT }), - ...(v.TN === undefined ? null : { tn: v.TN }), - ...(v.TR === undefined ? null : { tr: v.TR }), - ...(v.TM === undefined ? null : { tm: v.TM }), - ...(v.TC === undefined ? null : { tc: v.TC }), - ...(v.TV === undefined ? null : { tv: v.TV }), - ...(v.UG === undefined ? null : { ug: v.UG }), - ...(v.UA === undefined ? null : { ua: v.UA }), - ...(v.AE === undefined ? null : { ae: v.AE }), - ...(v.GB === undefined ? null : { gb: v.GB }), - ...(v.US === undefined ? null : { us: v.US }), - ...(v.UM === undefined ? null : { um: v.UM }), - ...(v.UY === undefined ? null : { uy: v.UY }), - ...(v.UZ === undefined ? null : { uz: v.UZ }), - ...(v.VU === undefined ? null : { vu: v.VU }), - ...(v.VE === undefined ? null : { ve: v.VE }), - ...(v.VN === undefined ? null : { vn: v.VN }), - ...(v.VG === undefined ? null : { vg: v.VG }), - ...(v.VI === undefined ? null : { vi: v.VI }), - ...(v.WF === undefined ? null : { wf: v.WF }), - ...(v.EH === undefined ? null : { eh: v.EH }), - ...(v.YE === undefined ? null : { ye: v.YE }), - ...(v.ZM === undefined ? null : { zm: v.ZM }), - ...(v.ZW === undefined ? null : { zw: v.ZW }), - ...(v.AX === undefined ? null : { ax: v.AX }), - ...(v.BQ === undefined ? null : { bq: v.BQ }), - ...(v.CW === undefined ? null : { cw: v.CW }), - ...(v.GG === undefined ? null : { gg: v.GG }), - ...(v.IM === undefined ? null : { im: v.IM }), - ...(v.JE === undefined ? null : { je: v.JE }), - ...(v.ME === undefined ? null : { me: v.ME }), - ...(v.BL === undefined ? null : { bl: v.BL }), - ...(v.MF === undefined ? null : { mf: v.MF }), - ...(v.RS === undefined ? null : { rs: v.RS }), - ...(v.SX === undefined ? null : { sx: v.SX }), - ...(v.SS === undefined ? null : { ss: v.SS }), - ...(v.XK === undefined ? null : { xk: v.XK }), - }; - }); - - export type Outbound = { - AF?: string | undefined; - AL?: string | undefined; - DZ?: string | undefined; - AS?: string | undefined; - AD?: string | undefined; - AO?: string | undefined; - AI?: string | undefined; - AQ?: string | undefined; - AG?: string | undefined; - AR?: string | undefined; - AM?: string | undefined; - AW?: string | undefined; - AU?: string | undefined; - AT?: string | undefined; - AZ?: string | undefined; - BS?: string | undefined; - BH?: string | undefined; - BD?: string | undefined; - BB?: string | undefined; - BY?: string | undefined; - BE?: string | undefined; - BZ?: string | undefined; - BJ?: string | undefined; - BM?: string | undefined; - BT?: string | undefined; - BO?: string | undefined; - BA?: string | undefined; - BW?: string | undefined; - BV?: string | undefined; - BR?: string | undefined; - IO?: string | undefined; - BN?: string | undefined; - BG?: string | undefined; - BF?: string | undefined; - BI?: string | undefined; - KH?: string | undefined; - CM?: string | undefined; - CA?: string | undefined; - CV?: string | undefined; - KY?: string | undefined; - CF?: string | undefined; - TD?: string | undefined; - CL?: string | undefined; - CN?: string | undefined; - CX?: string | undefined; - CC?: string | undefined; - CO?: string | undefined; - KM?: string | undefined; - CG?: string | undefined; - CD?: string | undefined; - CK?: string | undefined; - CR?: string | undefined; - CI?: string | undefined; - HR?: string | undefined; - CU?: string | undefined; - CY?: string | undefined; - CZ?: string | undefined; - DK?: string | undefined; - DJ?: string | undefined; - DM?: string | undefined; - DO?: string | undefined; - EC?: string | undefined; - EG?: string | undefined; - SV?: string | undefined; - GQ?: string | undefined; - ER?: string | undefined; - EE?: string | undefined; - ET?: string | undefined; - FK?: string | undefined; - FO?: string | undefined; - FJ?: string | undefined; - FI?: string | undefined; - FR?: string | undefined; - GF?: string | undefined; - PF?: string | undefined; - TF?: string | undefined; - GA?: string | undefined; - GM?: string | undefined; - GE?: string | undefined; - DE?: string | undefined; - GH?: string | undefined; - GI?: string | undefined; - GR?: string | undefined; - GL?: string | undefined; - GD?: string | undefined; - GP?: string | undefined; - GU?: string | undefined; - GT?: string | undefined; - GN?: string | undefined; - GW?: string | undefined; - GY?: string | undefined; - HT?: string | undefined; - HM?: string | undefined; - VA?: string | undefined; - HN?: string | undefined; - HK?: string | undefined; - HU?: string | undefined; - IS?: string | undefined; - IN?: string | undefined; - ID?: string | undefined; - IR?: string | undefined; - IQ?: string | undefined; - IE?: string | undefined; - IL?: string | undefined; - IT?: string | undefined; - JM?: string | undefined; - JP?: string | undefined; - JO?: string | undefined; - KZ?: string | undefined; - KE?: string | undefined; - KI?: string | undefined; - KP?: string | undefined; - KR?: string | undefined; - KW?: string | undefined; - KG?: string | undefined; - LA?: string | undefined; - LV?: string | undefined; - LB?: string | undefined; - LS?: string | undefined; - LR?: string | undefined; - LY?: string | undefined; - LI?: string | undefined; - LT?: string | undefined; - LU?: string | undefined; - MO?: string | undefined; - MG?: string | undefined; - MW?: string | undefined; - MY?: string | undefined; - MV?: string | undefined; - ML?: string | undefined; - MT?: string | undefined; - MH?: string | undefined; - MQ?: string | undefined; - MR?: string | undefined; - MU?: string | undefined; - YT?: string | undefined; - MX?: string | undefined; - FM?: string | undefined; - MD?: string | undefined; - MC?: string | undefined; - MN?: string | undefined; - MS?: string | undefined; - MA?: string | undefined; - MZ?: string | undefined; - MM?: string | undefined; - NA?: string | undefined; - NR?: string | undefined; - NP?: string | undefined; - NL?: string | undefined; - NC?: string | undefined; - NZ?: string | undefined; - NI?: string | undefined; - NE?: string | undefined; - NG?: string | undefined; - NU?: string | undefined; - NF?: string | undefined; - MK?: string | undefined; - MP?: string | undefined; - NO?: string | undefined; - OM?: string | undefined; - PK?: string | undefined; - PW?: string | undefined; - PS?: string | undefined; - PA?: string | undefined; - PG?: string | undefined; - PY?: string | undefined; - PE?: string | undefined; - PH?: string | undefined; - PN?: string | undefined; - PL?: string | undefined; - PT?: string | undefined; - PR?: string | undefined; - QA?: string | undefined; - RE?: string | undefined; - RO?: string | undefined; - RU?: string | undefined; - RW?: string | undefined; - SH?: string | undefined; - KN?: string | undefined; - LC?: string | undefined; - PM?: string | undefined; - VC?: string | undefined; - WS?: string | undefined; - SM?: string | undefined; - ST?: string | undefined; - SA?: string | undefined; - SN?: string | undefined; - SC?: string | undefined; - SL?: string | undefined; - SG?: string | undefined; - SK?: string | undefined; - SI?: string | undefined; - SB?: string | undefined; - SO?: string | undefined; - ZA?: string | undefined; - GS?: string | undefined; - ES?: string | undefined; - LK?: string | undefined; - SD?: string | undefined; - SR?: string | undefined; - SJ?: string | undefined; - SZ?: string | undefined; - SE?: string | undefined; - CH?: string | undefined; - SY?: string | undefined; - TW?: string | undefined; - TJ?: string | undefined; - TZ?: string | undefined; - TH?: string | undefined; - TL?: string | undefined; - TG?: string | undefined; - TK?: string | undefined; - TO?: string | undefined; - TT?: string | undefined; - TN?: string | undefined; - TR?: string | undefined; - TM?: string | undefined; - TC?: string | undefined; - TV?: string | undefined; - UG?: string | undefined; - UA?: string | undefined; - AE?: string | undefined; - GB?: string | undefined; - US?: string | undefined; - UM?: string | undefined; - UY?: string | undefined; - UZ?: string | undefined; - VU?: string | undefined; - VE?: string | undefined; - VN?: string | undefined; - VG?: string | undefined; - VI?: string | undefined; - WF?: string | undefined; - EH?: string | undefined; - YE?: string | undefined; - ZM?: string | undefined; - ZW?: string | undefined; - AX?: string | undefined; - BQ?: string | undefined; - CW?: string | undefined; - GG?: string | undefined; - IM?: string | undefined; - JE?: string | undefined; - ME?: string | undefined; - BL?: string | undefined; - MF?: string | undefined; - RS?: string | undefined; - SX?: string | undefined; - SS?: string | undefined; - XK?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - af: z.string().optional(), - al: z.string().optional(), - dz: z.string().optional(), - as: z.string().optional(), - ad: z.string().optional(), - ao: z.string().optional(), - ai: z.string().optional(), - aq: z.string().optional(), - ag: z.string().optional(), - ar: z.string().optional(), - am: z.string().optional(), - aw: z.string().optional(), - au: z.string().optional(), - at: z.string().optional(), - az: z.string().optional(), - bs: z.string().optional(), - bh: z.string().optional(), - bd: z.string().optional(), - bb: z.string().optional(), - by: z.string().optional(), - be: z.string().optional(), - bz: z.string().optional(), - bj: z.string().optional(), - bm: z.string().optional(), - bt: z.string().optional(), - bo: z.string().optional(), - ba: z.string().optional(), - bw: z.string().optional(), - bv: z.string().optional(), - br: z.string().optional(), - io: z.string().optional(), - bn: z.string().optional(), - bg: z.string().optional(), - bf: z.string().optional(), - bi: z.string().optional(), - kh: z.string().optional(), - cm: z.string().optional(), - ca: z.string().optional(), - cv: z.string().optional(), - ky: z.string().optional(), - cf: z.string().optional(), - td: z.string().optional(), - cl: z.string().optional(), - cn: z.string().optional(), - cx: z.string().optional(), - cc: z.string().optional(), - co: z.string().optional(), - km: z.string().optional(), - cg: z.string().optional(), - cd: z.string().optional(), - ck: z.string().optional(), - cr: z.string().optional(), - ci: z.string().optional(), - hr: z.string().optional(), - cu: z.string().optional(), - cy: z.string().optional(), - cz: z.string().optional(), - dk: z.string().optional(), - dj: z.string().optional(), - dm: z.string().optional(), - do: z.string().optional(), - ec: z.string().optional(), - eg: z.string().optional(), - sv: z.string().optional(), - gq: z.string().optional(), - er: z.string().optional(), - ee: z.string().optional(), - et: z.string().optional(), - fk: z.string().optional(), - fo: z.string().optional(), - fj: z.string().optional(), - fi: z.string().optional(), - fr: z.string().optional(), - gf: z.string().optional(), - pf: z.string().optional(), - tf: z.string().optional(), - ga: z.string().optional(), - gm: z.string().optional(), - ge: z.string().optional(), - de: z.string().optional(), - gh: z.string().optional(), - gi: z.string().optional(), - gr: z.string().optional(), - gl: z.string().optional(), - gd: z.string().optional(), - gp: z.string().optional(), - gu: z.string().optional(), - gt: z.string().optional(), - gn: z.string().optional(), - gw: z.string().optional(), - gy: z.string().optional(), - ht: z.string().optional(), - hm: z.string().optional(), - va: z.string().optional(), - hn: z.string().optional(), - hk: z.string().optional(), - hu: z.string().optional(), - is: z.string().optional(), - in: z.string().optional(), - id: z.string().optional(), - ir: z.string().optional(), - iq: z.string().optional(), - ie: z.string().optional(), - il: z.string().optional(), - it: z.string().optional(), - jm: z.string().optional(), - jp: z.string().optional(), - jo: z.string().optional(), - kz: z.string().optional(), - ke: z.string().optional(), - ki: z.string().optional(), - kp: z.string().optional(), - kr: z.string().optional(), - kw: z.string().optional(), - kg: z.string().optional(), - la: z.string().optional(), - lv: z.string().optional(), - lb: z.string().optional(), - ls: z.string().optional(), - lr: z.string().optional(), - ly: z.string().optional(), - li: z.string().optional(), - lt: z.string().optional(), - lu: z.string().optional(), - mo: z.string().optional(), - mg: z.string().optional(), - mw: z.string().optional(), - my: z.string().optional(), - mv: z.string().optional(), - ml: z.string().optional(), - mt: z.string().optional(), - mh: z.string().optional(), - mq: z.string().optional(), - mr: z.string().optional(), - mu: z.string().optional(), - yt: z.string().optional(), - mx: z.string().optional(), - fm: z.string().optional(), - md: z.string().optional(), - mc: z.string().optional(), - mn: z.string().optional(), - ms: z.string().optional(), - ma: z.string().optional(), - mz: z.string().optional(), - mm: z.string().optional(), - na: z.string().optional(), - nr: z.string().optional(), - np: z.string().optional(), - nl: z.string().optional(), - nc: z.string().optional(), - nz: z.string().optional(), - ni: z.string().optional(), - ne: z.string().optional(), - ng: z.string().optional(), - nu: z.string().optional(), - nf: z.string().optional(), - mk: z.string().optional(), - mp: z.string().optional(), - no: z.string().optional(), - om: z.string().optional(), - pk: z.string().optional(), - pw: z.string().optional(), - ps: z.string().optional(), - pa: z.string().optional(), - pg: z.string().optional(), - py: z.string().optional(), - pe: z.string().optional(), - ph: z.string().optional(), - pn: z.string().optional(), - pl: z.string().optional(), - pt: z.string().optional(), - pr: z.string().optional(), - qa: z.string().optional(), - re: z.string().optional(), - ro: z.string().optional(), - ru: z.string().optional(), - rw: z.string().optional(), - sh: z.string().optional(), - kn: z.string().optional(), - lc: z.string().optional(), - pm: z.string().optional(), - vc: z.string().optional(), - ws: z.string().optional(), - sm: z.string().optional(), - st: z.string().optional(), - sa: z.string().optional(), - sn: z.string().optional(), - sc: z.string().optional(), - sl: z.string().optional(), - sg: z.string().optional(), - sk: z.string().optional(), - si: z.string().optional(), - sb: z.string().optional(), - so: z.string().optional(), - za: z.string().optional(), - gs: z.string().optional(), - es: z.string().optional(), - lk: z.string().optional(), - sd: z.string().optional(), - sr: z.string().optional(), - sj: z.string().optional(), - sz: z.string().optional(), - se: z.string().optional(), - ch: z.string().optional(), - sy: z.string().optional(), - tw: z.string().optional(), - tj: z.string().optional(), - tz: z.string().optional(), - th: z.string().optional(), - tl: z.string().optional(), - tg: z.string().optional(), - tk: z.string().optional(), - to: z.string().optional(), - tt: z.string().optional(), - tn: z.string().optional(), - tr: z.string().optional(), - tm: z.string().optional(), - tc: z.string().optional(), - tv: z.string().optional(), - ug: z.string().optional(), - ua: z.string().optional(), - ae: z.string().optional(), - gb: z.string().optional(), - us: z.string().optional(), - um: z.string().optional(), - uy: z.string().optional(), - uz: z.string().optional(), - vu: z.string().optional(), - ve: z.string().optional(), - vn: z.string().optional(), - vg: z.string().optional(), - vi: z.string().optional(), - wf: z.string().optional(), - eh: z.string().optional(), - ye: z.string().optional(), - zm: z.string().optional(), - zw: z.string().optional(), - ax: z.string().optional(), - bq: z.string().optional(), - cw: z.string().optional(), - gg: z.string().optional(), - im: z.string().optional(), - je: z.string().optional(), - me: z.string().optional(), - bl: z.string().optional(), - mf: z.string().optional(), - rs: z.string().optional(), - sx: z.string().optional(), - ss: z.string().optional(), - xk: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.af === undefined ? null : { AF: v.af }), - ...(v.al === undefined ? null : { AL: v.al }), - ...(v.dz === undefined ? null : { DZ: v.dz }), - ...(v.as === undefined ? null : { AS: v.as }), - ...(v.ad === undefined ? null : { AD: v.ad }), - ...(v.ao === undefined ? null : { AO: v.ao }), - ...(v.ai === undefined ? null : { AI: v.ai }), - ...(v.aq === undefined ? null : { AQ: v.aq }), - ...(v.ag === undefined ? null : { AG: v.ag }), - ...(v.ar === undefined ? null : { AR: v.ar }), - ...(v.am === undefined ? null : { AM: v.am }), - ...(v.aw === undefined ? null : { AW: v.aw }), - ...(v.au === undefined ? null : { AU: v.au }), - ...(v.at === undefined ? null : { AT: v.at }), - ...(v.az === undefined ? null : { AZ: v.az }), - ...(v.bs === undefined ? null : { BS: v.bs }), - ...(v.bh === undefined ? null : { BH: v.bh }), - ...(v.bd === undefined ? null : { BD: v.bd }), - ...(v.bb === undefined ? null : { BB: v.bb }), - ...(v.by === undefined ? null : { BY: v.by }), - ...(v.be === undefined ? null : { BE: v.be }), - ...(v.bz === undefined ? null : { BZ: v.bz }), - ...(v.bj === undefined ? null : { BJ: v.bj }), - ...(v.bm === undefined ? null : { BM: v.bm }), - ...(v.bt === undefined ? null : { BT: v.bt }), - ...(v.bo === undefined ? null : { BO: v.bo }), - ...(v.ba === undefined ? null : { BA: v.ba }), - ...(v.bw === undefined ? null : { BW: v.bw }), - ...(v.bv === undefined ? null : { BV: v.bv }), - ...(v.br === undefined ? null : { BR: v.br }), - ...(v.io === undefined ? null : { IO: v.io }), - ...(v.bn === undefined ? null : { BN: v.bn }), - ...(v.bg === undefined ? null : { BG: v.bg }), - ...(v.bf === undefined ? null : { BF: v.bf }), - ...(v.bi === undefined ? null : { BI: v.bi }), - ...(v.kh === undefined ? null : { KH: v.kh }), - ...(v.cm === undefined ? null : { CM: v.cm }), - ...(v.ca === undefined ? null : { CA: v.ca }), - ...(v.cv === undefined ? null : { CV: v.cv }), - ...(v.ky === undefined ? null : { KY: v.ky }), - ...(v.cf === undefined ? null : { CF: v.cf }), - ...(v.td === undefined ? null : { TD: v.td }), - ...(v.cl === undefined ? null : { CL: v.cl }), - ...(v.cn === undefined ? null : { CN: v.cn }), - ...(v.cx === undefined ? null : { CX: v.cx }), - ...(v.cc === undefined ? null : { CC: v.cc }), - ...(v.co === undefined ? null : { CO: v.co }), - ...(v.km === undefined ? null : { KM: v.km }), - ...(v.cg === undefined ? null : { CG: v.cg }), - ...(v.cd === undefined ? null : { CD: v.cd }), - ...(v.ck === undefined ? null : { CK: v.ck }), - ...(v.cr === undefined ? null : { CR: v.cr }), - ...(v.ci === undefined ? null : { CI: v.ci }), - ...(v.hr === undefined ? null : { HR: v.hr }), - ...(v.cu === undefined ? null : { CU: v.cu }), - ...(v.cy === undefined ? null : { CY: v.cy }), - ...(v.cz === undefined ? null : { CZ: v.cz }), - ...(v.dk === undefined ? null : { DK: v.dk }), - ...(v.dj === undefined ? null : { DJ: v.dj }), - ...(v.dm === undefined ? null : { DM: v.dm }), - ...(v.do === undefined ? null : { DO: v.do }), - ...(v.ec === undefined ? null : { EC: v.ec }), - ...(v.eg === undefined ? null : { EG: v.eg }), - ...(v.sv === undefined ? null : { SV: v.sv }), - ...(v.gq === undefined ? null : { GQ: v.gq }), - ...(v.er === undefined ? null : { ER: v.er }), - ...(v.ee === undefined ? null : { EE: v.ee }), - ...(v.et === undefined ? null : { ET: v.et }), - ...(v.fk === undefined ? null : { FK: v.fk }), - ...(v.fo === undefined ? null : { FO: v.fo }), - ...(v.fj === undefined ? null : { FJ: v.fj }), - ...(v.fi === undefined ? null : { FI: v.fi }), - ...(v.fr === undefined ? null : { FR: v.fr }), - ...(v.gf === undefined ? null : { GF: v.gf }), - ...(v.pf === undefined ? null : { PF: v.pf }), - ...(v.tf === undefined ? null : { TF: v.tf }), - ...(v.ga === undefined ? null : { GA: v.ga }), - ...(v.gm === undefined ? null : { GM: v.gm }), - ...(v.ge === undefined ? null : { GE: v.ge }), - ...(v.de === undefined ? null : { DE: v.de }), - ...(v.gh === undefined ? null : { GH: v.gh }), - ...(v.gi === undefined ? null : { GI: v.gi }), - ...(v.gr === undefined ? null : { GR: v.gr }), - ...(v.gl === undefined ? null : { GL: v.gl }), - ...(v.gd === undefined ? null : { GD: v.gd }), - ...(v.gp === undefined ? null : { GP: v.gp }), - ...(v.gu === undefined ? null : { GU: v.gu }), - ...(v.gt === undefined ? null : { GT: v.gt }), - ...(v.gn === undefined ? null : { GN: v.gn }), - ...(v.gw === undefined ? null : { GW: v.gw }), - ...(v.gy === undefined ? null : { GY: v.gy }), - ...(v.ht === undefined ? null : { HT: v.ht }), - ...(v.hm === undefined ? null : { HM: v.hm }), - ...(v.va === undefined ? null : { VA: v.va }), - ...(v.hn === undefined ? null : { HN: v.hn }), - ...(v.hk === undefined ? null : { HK: v.hk }), - ...(v.hu === undefined ? null : { HU: v.hu }), - ...(v.is === undefined ? null : { IS: v.is }), - ...(v.in === undefined ? null : { IN: v.in }), - ...(v.id === undefined ? null : { ID: v.id }), - ...(v.ir === undefined ? null : { IR: v.ir }), - ...(v.iq === undefined ? null : { IQ: v.iq }), - ...(v.ie === undefined ? null : { IE: v.ie }), - ...(v.il === undefined ? null : { IL: v.il }), - ...(v.it === undefined ? null : { IT: v.it }), - ...(v.jm === undefined ? null : { JM: v.jm }), - ...(v.jp === undefined ? null : { JP: v.jp }), - ...(v.jo === undefined ? null : { JO: v.jo }), - ...(v.kz === undefined ? null : { KZ: v.kz }), - ...(v.ke === undefined ? null : { KE: v.ke }), - ...(v.ki === undefined ? null : { KI: v.ki }), - ...(v.kp === undefined ? null : { KP: v.kp }), - ...(v.kr === undefined ? null : { KR: v.kr }), - ...(v.kw === undefined ? null : { KW: v.kw }), - ...(v.kg === undefined ? null : { KG: v.kg }), - ...(v.la === undefined ? null : { LA: v.la }), - ...(v.lv === undefined ? null : { LV: v.lv }), - ...(v.lb === undefined ? null : { LB: v.lb }), - ...(v.ls === undefined ? null : { LS: v.ls }), - ...(v.lr === undefined ? null : { LR: v.lr }), - ...(v.ly === undefined ? null : { LY: v.ly }), - ...(v.li === undefined ? null : { LI: v.li }), - ...(v.lt === undefined ? null : { LT: v.lt }), - ...(v.lu === undefined ? null : { LU: v.lu }), - ...(v.mo === undefined ? null : { MO: v.mo }), - ...(v.mg === undefined ? null : { MG: v.mg }), - ...(v.mw === undefined ? null : { MW: v.mw }), - ...(v.my === undefined ? null : { MY: v.my }), - ...(v.mv === undefined ? null : { MV: v.mv }), - ...(v.ml === undefined ? null : { ML: v.ml }), - ...(v.mt === undefined ? null : { MT: v.mt }), - ...(v.mh === undefined ? null : { MH: v.mh }), - ...(v.mq === undefined ? null : { MQ: v.mq }), - ...(v.mr === undefined ? null : { MR: v.mr }), - ...(v.mu === undefined ? null : { MU: v.mu }), - ...(v.yt === undefined ? null : { YT: v.yt }), - ...(v.mx === undefined ? null : { MX: v.mx }), - ...(v.fm === undefined ? null : { FM: v.fm }), - ...(v.md === undefined ? null : { MD: v.md }), - ...(v.mc === undefined ? null : { MC: v.mc }), - ...(v.mn === undefined ? null : { MN: v.mn }), - ...(v.ms === undefined ? null : { MS: v.ms }), - ...(v.ma === undefined ? null : { MA: v.ma }), - ...(v.mz === undefined ? null : { MZ: v.mz }), - ...(v.mm === undefined ? null : { MM: v.mm }), - ...(v.na === undefined ? null : { NA: v.na }), - ...(v.nr === undefined ? null : { NR: v.nr }), - ...(v.np === undefined ? null : { NP: v.np }), - ...(v.nl === undefined ? null : { NL: v.nl }), - ...(v.nc === undefined ? null : { NC: v.nc }), - ...(v.nz === undefined ? null : { NZ: v.nz }), - ...(v.ni === undefined ? null : { NI: v.ni }), - ...(v.ne === undefined ? null : { NE: v.ne }), - ...(v.ng === undefined ? null : { NG: v.ng }), - ...(v.nu === undefined ? null : { NU: v.nu }), - ...(v.nf === undefined ? null : { NF: v.nf }), - ...(v.mk === undefined ? null : { MK: v.mk }), - ...(v.mp === undefined ? null : { MP: v.mp }), - ...(v.no === undefined ? null : { NO: v.no }), - ...(v.om === undefined ? null : { OM: v.om }), - ...(v.pk === undefined ? null : { PK: v.pk }), - ...(v.pw === undefined ? null : { PW: v.pw }), - ...(v.ps === undefined ? null : { PS: v.ps }), - ...(v.pa === undefined ? null : { PA: v.pa }), - ...(v.pg === undefined ? null : { PG: v.pg }), - ...(v.py === undefined ? null : { PY: v.py }), - ...(v.pe === undefined ? null : { PE: v.pe }), - ...(v.ph === undefined ? null : { PH: v.ph }), - ...(v.pn === undefined ? null : { PN: v.pn }), - ...(v.pl === undefined ? null : { PL: v.pl }), - ...(v.pt === undefined ? null : { PT: v.pt }), - ...(v.pr === undefined ? null : { PR: v.pr }), - ...(v.qa === undefined ? null : { QA: v.qa }), - ...(v.re === undefined ? null : { RE: v.re }), - ...(v.ro === undefined ? null : { RO: v.ro }), - ...(v.ru === undefined ? null : { RU: v.ru }), - ...(v.rw === undefined ? null : { RW: v.rw }), - ...(v.sh === undefined ? null : { SH: v.sh }), - ...(v.kn === undefined ? null : { KN: v.kn }), - ...(v.lc === undefined ? null : { LC: v.lc }), - ...(v.pm === undefined ? null : { PM: v.pm }), - ...(v.vc === undefined ? null : { VC: v.vc }), - ...(v.ws === undefined ? null : { WS: v.ws }), - ...(v.sm === undefined ? null : { SM: v.sm }), - ...(v.st === undefined ? null : { ST: v.st }), - ...(v.sa === undefined ? null : { SA: v.sa }), - ...(v.sn === undefined ? null : { SN: v.sn }), - ...(v.sc === undefined ? null : { SC: v.sc }), - ...(v.sl === undefined ? null : { SL: v.sl }), - ...(v.sg === undefined ? null : { SG: v.sg }), - ...(v.sk === undefined ? null : { SK: v.sk }), - ...(v.si === undefined ? null : { SI: v.si }), - ...(v.sb === undefined ? null : { SB: v.sb }), - ...(v.so === undefined ? null : { SO: v.so }), - ...(v.za === undefined ? null : { ZA: v.za }), - ...(v.gs === undefined ? null : { GS: v.gs }), - ...(v.es === undefined ? null : { ES: v.es }), - ...(v.lk === undefined ? null : { LK: v.lk }), - ...(v.sd === undefined ? null : { SD: v.sd }), - ...(v.sr === undefined ? null : { SR: v.sr }), - ...(v.sj === undefined ? null : { SJ: v.sj }), - ...(v.sz === undefined ? null : { SZ: v.sz }), - ...(v.se === undefined ? null : { SE: v.se }), - ...(v.ch === undefined ? null : { CH: v.ch }), - ...(v.sy === undefined ? null : { SY: v.sy }), - ...(v.tw === undefined ? null : { TW: v.tw }), - ...(v.tj === undefined ? null : { TJ: v.tj }), - ...(v.tz === undefined ? null : { TZ: v.tz }), - ...(v.th === undefined ? null : { TH: v.th }), - ...(v.tl === undefined ? null : { TL: v.tl }), - ...(v.tg === undefined ? null : { TG: v.tg }), - ...(v.tk === undefined ? null : { TK: v.tk }), - ...(v.to === undefined ? null : { TO: v.to }), - ...(v.tt === undefined ? null : { TT: v.tt }), - ...(v.tn === undefined ? null : { TN: v.tn }), - ...(v.tr === undefined ? null : { TR: v.tr }), - ...(v.tm === undefined ? null : { TM: v.tm }), - ...(v.tc === undefined ? null : { TC: v.tc }), - ...(v.tv === undefined ? null : { TV: v.tv }), - ...(v.ug === undefined ? null : { UG: v.ug }), - ...(v.ua === undefined ? null : { UA: v.ua }), - ...(v.ae === undefined ? null : { AE: v.ae }), - ...(v.gb === undefined ? null : { GB: v.gb }), - ...(v.us === undefined ? null : { US: v.us }), - ...(v.um === undefined ? null : { UM: v.um }), - ...(v.uy === undefined ? null : { UY: v.uy }), - ...(v.uz === undefined ? null : { UZ: v.uz }), - ...(v.vu === undefined ? null : { VU: v.vu }), - ...(v.ve === undefined ? null : { VE: v.ve }), - ...(v.vn === undefined ? null : { VN: v.vn }), - ...(v.vg === undefined ? null : { VG: v.vg }), - ...(v.vi === undefined ? null : { VI: v.vi }), - ...(v.wf === undefined ? null : { WF: v.wf }), - ...(v.eh === undefined ? null : { EH: v.eh }), - ...(v.ye === undefined ? null : { YE: v.ye }), - ...(v.zm === undefined ? null : { ZM: v.zm }), - ...(v.zw === undefined ? null : { ZW: v.zw }), - ...(v.ax === undefined ? null : { AX: v.ax }), - ...(v.bq === undefined ? null : { BQ: v.bq }), - ...(v.cw === undefined ? null : { CW: v.cw }), - ...(v.gg === undefined ? null : { GG: v.gg }), - ...(v.im === undefined ? null : { IM: v.im }), - ...(v.je === undefined ? null : { JE: v.je }), - ...(v.me === undefined ? null : { ME: v.me }), - ...(v.bl === undefined ? null : { BL: v.bl }), - ...(v.mf === undefined ? null : { MF: v.mf }), - ...(v.rs === undefined ? null : { RS: v.rs }), - ...(v.sx === undefined ? null : { SX: v.sx }), - ...(v.ss === undefined ? null : { SS: v.ss }), - ...(v.xk === undefined ? null : { XK: v.xk }), - }; - }); -} - /** @internal */ export namespace RequestBody$ { export const inboundSchema: z.ZodType = z @@ -1684,7 +157,7 @@ export namespace RequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => BulkCreateLinksGeo$.inboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(), }) .transform((v) => { return { @@ -1735,7 +208,7 @@ export namespace RequestBody$ { rewrite: boolean; ios?: string | null | undefined; android?: string | null | undefined; - geo?: BulkCreateLinksGeo$.Outbound | null | undefined; + geo?: components.LinkGeoTargeting$.Outbound | null | undefined; }; export const outboundSchema: z.ZodType = z @@ -1761,7 +234,7 @@ export namespace RequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => BulkCreateLinksGeo$.outboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(), }) .transform((v) => { return { diff --git a/src/models/operations/createlink.ts b/src/models/operations/createlink.ts index 0555caf..012bf3a 100644 --- a/src/models/operations/createlink.ts +++ b/src/models/operations/createlink.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ +import * as components from "../components"; import * as z from "zod"; /** @@ -14,262 +15,6 @@ export type TagIds = string | Array; */ export type TagNames = string | Array; -/** - * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. - */ -export type Geo = { - af?: string | undefined; - al?: string | undefined; - dz?: string | undefined; - as?: string | undefined; - ad?: string | undefined; - ao?: string | undefined; - ai?: string | undefined; - aq?: string | undefined; - ag?: string | undefined; - ar?: string | undefined; - am?: string | undefined; - aw?: string | undefined; - au?: string | undefined; - at?: string | undefined; - az?: string | undefined; - bs?: string | undefined; - bh?: string | undefined; - bd?: string | undefined; - bb?: string | undefined; - by?: string | undefined; - be?: string | undefined; - bz?: string | undefined; - bj?: string | undefined; - bm?: string | undefined; - bt?: string | undefined; - bo?: string | undefined; - ba?: string | undefined; - bw?: string | undefined; - bv?: string | undefined; - br?: string | undefined; - io?: string | undefined; - bn?: string | undefined; - bg?: string | undefined; - bf?: string | undefined; - bi?: string | undefined; - kh?: string | undefined; - cm?: string | undefined; - ca?: string | undefined; - cv?: string | undefined; - ky?: string | undefined; - cf?: string | undefined; - td?: string | undefined; - cl?: string | undefined; - cn?: string | undefined; - cx?: string | undefined; - cc?: string | undefined; - co?: string | undefined; - km?: string | undefined; - cg?: string | undefined; - cd?: string | undefined; - ck?: string | undefined; - cr?: string | undefined; - ci?: string | undefined; - hr?: string | undefined; - cu?: string | undefined; - cy?: string | undefined; - cz?: string | undefined; - dk?: string | undefined; - dj?: string | undefined; - dm?: string | undefined; - do?: string | undefined; - ec?: string | undefined; - eg?: string | undefined; - sv?: string | undefined; - gq?: string | undefined; - er?: string | undefined; - ee?: string | undefined; - et?: string | undefined; - fk?: string | undefined; - fo?: string | undefined; - fj?: string | undefined; - fi?: string | undefined; - fr?: string | undefined; - gf?: string | undefined; - pf?: string | undefined; - tf?: string | undefined; - ga?: string | undefined; - gm?: string | undefined; - ge?: string | undefined; - de?: string | undefined; - gh?: string | undefined; - gi?: string | undefined; - gr?: string | undefined; - gl?: string | undefined; - gd?: string | undefined; - gp?: string | undefined; - gu?: string | undefined; - gt?: string | undefined; - gn?: string | undefined; - gw?: string | undefined; - gy?: string | undefined; - ht?: string | undefined; - hm?: string | undefined; - va?: string | undefined; - hn?: string | undefined; - hk?: string | undefined; - hu?: string | undefined; - is?: string | undefined; - in?: string | undefined; - id?: string | undefined; - ir?: string | undefined; - iq?: string | undefined; - ie?: string | undefined; - il?: string | undefined; - it?: string | undefined; - jm?: string | undefined; - jp?: string | undefined; - jo?: string | undefined; - kz?: string | undefined; - ke?: string | undefined; - ki?: string | undefined; - kp?: string | undefined; - kr?: string | undefined; - kw?: string | undefined; - kg?: string | undefined; - la?: string | undefined; - lv?: string | undefined; - lb?: string | undefined; - ls?: string | undefined; - lr?: string | undefined; - ly?: string | undefined; - li?: string | undefined; - lt?: string | undefined; - lu?: string | undefined; - mo?: string | undefined; - mg?: string | undefined; - mw?: string | undefined; - my?: string | undefined; - mv?: string | undefined; - ml?: string | undefined; - mt?: string | undefined; - mh?: string | undefined; - mq?: string | undefined; - mr?: string | undefined; - mu?: string | undefined; - yt?: string | undefined; - mx?: string | undefined; - fm?: string | undefined; - md?: string | undefined; - mc?: string | undefined; - mn?: string | undefined; - ms?: string | undefined; - ma?: string | undefined; - mz?: string | undefined; - mm?: string | undefined; - na?: string | undefined; - nr?: string | undefined; - np?: string | undefined; - nl?: string | undefined; - nc?: string | undefined; - nz?: string | undefined; - ni?: string | undefined; - ne?: string | undefined; - ng?: string | undefined; - nu?: string | undefined; - nf?: string | undefined; - mk?: string | undefined; - mp?: string | undefined; - no?: string | undefined; - om?: string | undefined; - pk?: string | undefined; - pw?: string | undefined; - ps?: string | undefined; - pa?: string | undefined; - pg?: string | undefined; - py?: string | undefined; - pe?: string | undefined; - ph?: string | undefined; - pn?: string | undefined; - pl?: string | undefined; - pt?: string | undefined; - pr?: string | undefined; - qa?: string | undefined; - re?: string | undefined; - ro?: string | undefined; - ru?: string | undefined; - rw?: string | undefined; - sh?: string | undefined; - kn?: string | undefined; - lc?: string | undefined; - pm?: string | undefined; - vc?: string | undefined; - ws?: string | undefined; - sm?: string | undefined; - st?: string | undefined; - sa?: string | undefined; - sn?: string | undefined; - sc?: string | undefined; - sl?: string | undefined; - sg?: string | undefined; - sk?: string | undefined; - si?: string | undefined; - sb?: string | undefined; - so?: string | undefined; - za?: string | undefined; - gs?: string | undefined; - es?: string | undefined; - lk?: string | undefined; - sd?: string | undefined; - sr?: string | undefined; - sj?: string | undefined; - sz?: string | undefined; - se?: string | undefined; - ch?: string | undefined; - sy?: string | undefined; - tw?: string | undefined; - tj?: string | undefined; - tz?: string | undefined; - th?: string | undefined; - tl?: string | undefined; - tg?: string | undefined; - tk?: string | undefined; - to?: string | undefined; - tt?: string | undefined; - tn?: string | undefined; - tr?: string | undefined; - tm?: string | undefined; - tc?: string | undefined; - tv?: string | undefined; - ug?: string | undefined; - ua?: string | undefined; - ae?: string | undefined; - gb?: string | undefined; - us?: string | undefined; - um?: string | undefined; - uy?: string | undefined; - uz?: string | undefined; - vu?: string | undefined; - ve?: string | undefined; - vn?: string | undefined; - vg?: string | undefined; - vi?: string | undefined; - wf?: string | undefined; - eh?: string | undefined; - ye?: string | undefined; - zm?: string | undefined; - zw?: string | undefined; - ax?: string | undefined; - bq?: string | undefined; - cw?: string | undefined; - gg?: string | undefined; - im?: string | undefined; - je?: string | undefined; - me?: string | undefined; - bl?: string | undefined; - mf?: string | undefined; - rs?: string | undefined; - sx?: string | undefined; - ss?: string | undefined; - xk?: string | undefined; -}; - export type CreateLinkRequestBody = { /** * The destination URL of the short link. @@ -360,7 +105,7 @@ export type CreateLinkRequestBody = { /** * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. */ - geo?: Geo | null | undefined; + geo?: components.LinkGeoTargeting | null | undefined; }; /** @internal */ @@ -391,1278 +136,6 @@ export namespace TagNames$ { ]); } -/** @internal */ -export namespace Geo$ { - export const inboundSchema: z.ZodType = z - .object({ - AF: z.string().optional(), - AL: z.string().optional(), - DZ: z.string().optional(), - AS: z.string().optional(), - AD: z.string().optional(), - AO: z.string().optional(), - AI: z.string().optional(), - AQ: z.string().optional(), - AG: z.string().optional(), - AR: z.string().optional(), - AM: z.string().optional(), - AW: z.string().optional(), - AU: z.string().optional(), - AT: z.string().optional(), - AZ: z.string().optional(), - BS: z.string().optional(), - BH: z.string().optional(), - BD: z.string().optional(), - BB: z.string().optional(), - BY: z.string().optional(), - BE: z.string().optional(), - BZ: z.string().optional(), - BJ: z.string().optional(), - BM: z.string().optional(), - BT: z.string().optional(), - BO: z.string().optional(), - BA: z.string().optional(), - BW: z.string().optional(), - BV: z.string().optional(), - BR: z.string().optional(), - IO: z.string().optional(), - BN: z.string().optional(), - BG: z.string().optional(), - BF: z.string().optional(), - BI: z.string().optional(), - KH: z.string().optional(), - CM: z.string().optional(), - CA: z.string().optional(), - CV: z.string().optional(), - KY: z.string().optional(), - CF: z.string().optional(), - TD: z.string().optional(), - CL: z.string().optional(), - CN: z.string().optional(), - CX: z.string().optional(), - CC: z.string().optional(), - CO: z.string().optional(), - KM: z.string().optional(), - CG: z.string().optional(), - CD: z.string().optional(), - CK: z.string().optional(), - CR: z.string().optional(), - CI: z.string().optional(), - HR: z.string().optional(), - CU: z.string().optional(), - CY: z.string().optional(), - CZ: z.string().optional(), - DK: z.string().optional(), - DJ: z.string().optional(), - DM: z.string().optional(), - DO: z.string().optional(), - EC: z.string().optional(), - EG: z.string().optional(), - SV: z.string().optional(), - GQ: z.string().optional(), - ER: z.string().optional(), - EE: z.string().optional(), - ET: z.string().optional(), - FK: z.string().optional(), - FO: z.string().optional(), - FJ: z.string().optional(), - FI: z.string().optional(), - FR: z.string().optional(), - GF: z.string().optional(), - PF: z.string().optional(), - TF: z.string().optional(), - GA: z.string().optional(), - GM: z.string().optional(), - GE: z.string().optional(), - DE: z.string().optional(), - GH: z.string().optional(), - GI: z.string().optional(), - GR: z.string().optional(), - GL: z.string().optional(), - GD: z.string().optional(), - GP: z.string().optional(), - GU: z.string().optional(), - GT: z.string().optional(), - GN: z.string().optional(), - GW: z.string().optional(), - GY: z.string().optional(), - HT: z.string().optional(), - HM: z.string().optional(), - VA: z.string().optional(), - HN: z.string().optional(), - HK: z.string().optional(), - HU: z.string().optional(), - IS: z.string().optional(), - IN: z.string().optional(), - ID: z.string().optional(), - IR: z.string().optional(), - IQ: z.string().optional(), - IE: z.string().optional(), - IL: z.string().optional(), - IT: z.string().optional(), - JM: z.string().optional(), - JP: z.string().optional(), - JO: z.string().optional(), - KZ: z.string().optional(), - KE: z.string().optional(), - KI: z.string().optional(), - KP: z.string().optional(), - KR: z.string().optional(), - KW: z.string().optional(), - KG: z.string().optional(), - LA: z.string().optional(), - LV: z.string().optional(), - LB: z.string().optional(), - LS: z.string().optional(), - LR: z.string().optional(), - LY: z.string().optional(), - LI: z.string().optional(), - LT: z.string().optional(), - LU: z.string().optional(), - MO: z.string().optional(), - MG: z.string().optional(), - MW: z.string().optional(), - MY: z.string().optional(), - MV: z.string().optional(), - ML: z.string().optional(), - MT: z.string().optional(), - MH: z.string().optional(), - MQ: z.string().optional(), - MR: z.string().optional(), - MU: z.string().optional(), - YT: z.string().optional(), - MX: z.string().optional(), - FM: z.string().optional(), - MD: z.string().optional(), - MC: z.string().optional(), - MN: z.string().optional(), - MS: z.string().optional(), - MA: z.string().optional(), - MZ: z.string().optional(), - MM: z.string().optional(), - NA: z.string().optional(), - NR: z.string().optional(), - NP: z.string().optional(), - NL: z.string().optional(), - NC: z.string().optional(), - NZ: z.string().optional(), - NI: z.string().optional(), - NE: z.string().optional(), - NG: z.string().optional(), - NU: z.string().optional(), - NF: z.string().optional(), - MK: z.string().optional(), - MP: z.string().optional(), - NO: z.string().optional(), - OM: z.string().optional(), - PK: z.string().optional(), - PW: z.string().optional(), - PS: z.string().optional(), - PA: z.string().optional(), - PG: z.string().optional(), - PY: z.string().optional(), - PE: z.string().optional(), - PH: z.string().optional(), - PN: z.string().optional(), - PL: z.string().optional(), - PT: z.string().optional(), - PR: z.string().optional(), - QA: z.string().optional(), - RE: z.string().optional(), - RO: z.string().optional(), - RU: z.string().optional(), - RW: z.string().optional(), - SH: z.string().optional(), - KN: z.string().optional(), - LC: z.string().optional(), - PM: z.string().optional(), - VC: z.string().optional(), - WS: z.string().optional(), - SM: z.string().optional(), - ST: z.string().optional(), - SA: z.string().optional(), - SN: z.string().optional(), - SC: z.string().optional(), - SL: z.string().optional(), - SG: z.string().optional(), - SK: z.string().optional(), - SI: z.string().optional(), - SB: z.string().optional(), - SO: z.string().optional(), - ZA: z.string().optional(), - GS: z.string().optional(), - ES: z.string().optional(), - LK: z.string().optional(), - SD: z.string().optional(), - SR: z.string().optional(), - SJ: z.string().optional(), - SZ: z.string().optional(), - SE: z.string().optional(), - CH: z.string().optional(), - SY: z.string().optional(), - TW: z.string().optional(), - TJ: z.string().optional(), - TZ: z.string().optional(), - TH: z.string().optional(), - TL: z.string().optional(), - TG: z.string().optional(), - TK: z.string().optional(), - TO: z.string().optional(), - TT: z.string().optional(), - TN: z.string().optional(), - TR: z.string().optional(), - TM: z.string().optional(), - TC: z.string().optional(), - TV: z.string().optional(), - UG: z.string().optional(), - UA: z.string().optional(), - AE: z.string().optional(), - GB: z.string().optional(), - US: z.string().optional(), - UM: z.string().optional(), - UY: z.string().optional(), - UZ: z.string().optional(), - VU: z.string().optional(), - VE: z.string().optional(), - VN: z.string().optional(), - VG: z.string().optional(), - VI: z.string().optional(), - WF: z.string().optional(), - EH: z.string().optional(), - YE: z.string().optional(), - ZM: z.string().optional(), - ZW: z.string().optional(), - AX: z.string().optional(), - BQ: z.string().optional(), - CW: z.string().optional(), - GG: z.string().optional(), - IM: z.string().optional(), - JE: z.string().optional(), - ME: z.string().optional(), - BL: z.string().optional(), - MF: z.string().optional(), - RS: z.string().optional(), - SX: z.string().optional(), - SS: z.string().optional(), - XK: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.AF === undefined ? null : { af: v.AF }), - ...(v.AL === undefined ? null : { al: v.AL }), - ...(v.DZ === undefined ? null : { dz: v.DZ }), - ...(v.AS === undefined ? null : { as: v.AS }), - ...(v.AD === undefined ? null : { ad: v.AD }), - ...(v.AO === undefined ? null : { ao: v.AO }), - ...(v.AI === undefined ? null : { ai: v.AI }), - ...(v.AQ === undefined ? null : { aq: v.AQ }), - ...(v.AG === undefined ? null : { ag: v.AG }), - ...(v.AR === undefined ? null : { ar: v.AR }), - ...(v.AM === undefined ? null : { am: v.AM }), - ...(v.AW === undefined ? null : { aw: v.AW }), - ...(v.AU === undefined ? null : { au: v.AU }), - ...(v.AT === undefined ? null : { at: v.AT }), - ...(v.AZ === undefined ? null : { az: v.AZ }), - ...(v.BS === undefined ? null : { bs: v.BS }), - ...(v.BH === undefined ? null : { bh: v.BH }), - ...(v.BD === undefined ? null : { bd: v.BD }), - ...(v.BB === undefined ? null : { bb: v.BB }), - ...(v.BY === undefined ? null : { by: v.BY }), - ...(v.BE === undefined ? null : { be: v.BE }), - ...(v.BZ === undefined ? null : { bz: v.BZ }), - ...(v.BJ === undefined ? null : { bj: v.BJ }), - ...(v.BM === undefined ? null : { bm: v.BM }), - ...(v.BT === undefined ? null : { bt: v.BT }), - ...(v.BO === undefined ? null : { bo: v.BO }), - ...(v.BA === undefined ? null : { ba: v.BA }), - ...(v.BW === undefined ? null : { bw: v.BW }), - ...(v.BV === undefined ? null : { bv: v.BV }), - ...(v.BR === undefined ? null : { br: v.BR }), - ...(v.IO === undefined ? null : { io: v.IO }), - ...(v.BN === undefined ? null : { bn: v.BN }), - ...(v.BG === undefined ? null : { bg: v.BG }), - ...(v.BF === undefined ? null : { bf: v.BF }), - ...(v.BI === undefined ? null : { bi: v.BI }), - ...(v.KH === undefined ? null : { kh: v.KH }), - ...(v.CM === undefined ? null : { cm: v.CM }), - ...(v.CA === undefined ? null : { ca: v.CA }), - ...(v.CV === undefined ? null : { cv: v.CV }), - ...(v.KY === undefined ? null : { ky: v.KY }), - ...(v.CF === undefined ? null : { cf: v.CF }), - ...(v.TD === undefined ? null : { td: v.TD }), - ...(v.CL === undefined ? null : { cl: v.CL }), - ...(v.CN === undefined ? null : { cn: v.CN }), - ...(v.CX === undefined ? null : { cx: v.CX }), - ...(v.CC === undefined ? null : { cc: v.CC }), - ...(v.CO === undefined ? null : { co: v.CO }), - ...(v.KM === undefined ? null : { km: v.KM }), - ...(v.CG === undefined ? null : { cg: v.CG }), - ...(v.CD === undefined ? null : { cd: v.CD }), - ...(v.CK === undefined ? null : { ck: v.CK }), - ...(v.CR === undefined ? null : { cr: v.CR }), - ...(v.CI === undefined ? null : { ci: v.CI }), - ...(v.HR === undefined ? null : { hr: v.HR }), - ...(v.CU === undefined ? null : { cu: v.CU }), - ...(v.CY === undefined ? null : { cy: v.CY }), - ...(v.CZ === undefined ? null : { cz: v.CZ }), - ...(v.DK === undefined ? null : { dk: v.DK }), - ...(v.DJ === undefined ? null : { dj: v.DJ }), - ...(v.DM === undefined ? null : { dm: v.DM }), - ...(v.DO === undefined ? null : { do: v.DO }), - ...(v.EC === undefined ? null : { ec: v.EC }), - ...(v.EG === undefined ? null : { eg: v.EG }), - ...(v.SV === undefined ? null : { sv: v.SV }), - ...(v.GQ === undefined ? null : { gq: v.GQ }), - ...(v.ER === undefined ? null : { er: v.ER }), - ...(v.EE === undefined ? null : { ee: v.EE }), - ...(v.ET === undefined ? null : { et: v.ET }), - ...(v.FK === undefined ? null : { fk: v.FK }), - ...(v.FO === undefined ? null : { fo: v.FO }), - ...(v.FJ === undefined ? null : { fj: v.FJ }), - ...(v.FI === undefined ? null : { fi: v.FI }), - ...(v.FR === undefined ? null : { fr: v.FR }), - ...(v.GF === undefined ? null : { gf: v.GF }), - ...(v.PF === undefined ? null : { pf: v.PF }), - ...(v.TF === undefined ? null : { tf: v.TF }), - ...(v.GA === undefined ? null : { ga: v.GA }), - ...(v.GM === undefined ? null : { gm: v.GM }), - ...(v.GE === undefined ? null : { ge: v.GE }), - ...(v.DE === undefined ? null : { de: v.DE }), - ...(v.GH === undefined ? null : { gh: v.GH }), - ...(v.GI === undefined ? null : { gi: v.GI }), - ...(v.GR === undefined ? null : { gr: v.GR }), - ...(v.GL === undefined ? null : { gl: v.GL }), - ...(v.GD === undefined ? null : { gd: v.GD }), - ...(v.GP === undefined ? null : { gp: v.GP }), - ...(v.GU === undefined ? null : { gu: v.GU }), - ...(v.GT === undefined ? null : { gt: v.GT }), - ...(v.GN === undefined ? null : { gn: v.GN }), - ...(v.GW === undefined ? null : { gw: v.GW }), - ...(v.GY === undefined ? null : { gy: v.GY }), - ...(v.HT === undefined ? null : { ht: v.HT }), - ...(v.HM === undefined ? null : { hm: v.HM }), - ...(v.VA === undefined ? null : { va: v.VA }), - ...(v.HN === undefined ? null : { hn: v.HN }), - ...(v.HK === undefined ? null : { hk: v.HK }), - ...(v.HU === undefined ? null : { hu: v.HU }), - ...(v.IS === undefined ? null : { is: v.IS }), - ...(v.IN === undefined ? null : { in: v.IN }), - ...(v.ID === undefined ? null : { id: v.ID }), - ...(v.IR === undefined ? null : { ir: v.IR }), - ...(v.IQ === undefined ? null : { iq: v.IQ }), - ...(v.IE === undefined ? null : { ie: v.IE }), - ...(v.IL === undefined ? null : { il: v.IL }), - ...(v.IT === undefined ? null : { it: v.IT }), - ...(v.JM === undefined ? null : { jm: v.JM }), - ...(v.JP === undefined ? null : { jp: v.JP }), - ...(v.JO === undefined ? null : { jo: v.JO }), - ...(v.KZ === undefined ? null : { kz: v.KZ }), - ...(v.KE === undefined ? null : { ke: v.KE }), - ...(v.KI === undefined ? null : { ki: v.KI }), - ...(v.KP === undefined ? null : { kp: v.KP }), - ...(v.KR === undefined ? null : { kr: v.KR }), - ...(v.KW === undefined ? null : { kw: v.KW }), - ...(v.KG === undefined ? null : { kg: v.KG }), - ...(v.LA === undefined ? null : { la: v.LA }), - ...(v.LV === undefined ? null : { lv: v.LV }), - ...(v.LB === undefined ? null : { lb: v.LB }), - ...(v.LS === undefined ? null : { ls: v.LS }), - ...(v.LR === undefined ? null : { lr: v.LR }), - ...(v.LY === undefined ? null : { ly: v.LY }), - ...(v.LI === undefined ? null : { li: v.LI }), - ...(v.LT === undefined ? null : { lt: v.LT }), - ...(v.LU === undefined ? null : { lu: v.LU }), - ...(v.MO === undefined ? null : { mo: v.MO }), - ...(v.MG === undefined ? null : { mg: v.MG }), - ...(v.MW === undefined ? null : { mw: v.MW }), - ...(v.MY === undefined ? null : { my: v.MY }), - ...(v.MV === undefined ? null : { mv: v.MV }), - ...(v.ML === undefined ? null : { ml: v.ML }), - ...(v.MT === undefined ? null : { mt: v.MT }), - ...(v.MH === undefined ? null : { mh: v.MH }), - ...(v.MQ === undefined ? null : { mq: v.MQ }), - ...(v.MR === undefined ? null : { mr: v.MR }), - ...(v.MU === undefined ? null : { mu: v.MU }), - ...(v.YT === undefined ? null : { yt: v.YT }), - ...(v.MX === undefined ? null : { mx: v.MX }), - ...(v.FM === undefined ? null : { fm: v.FM }), - ...(v.MD === undefined ? null : { md: v.MD }), - ...(v.MC === undefined ? null : { mc: v.MC }), - ...(v.MN === undefined ? null : { mn: v.MN }), - ...(v.MS === undefined ? null : { ms: v.MS }), - ...(v.MA === undefined ? null : { ma: v.MA }), - ...(v.MZ === undefined ? null : { mz: v.MZ }), - ...(v.MM === undefined ? null : { mm: v.MM }), - ...(v.NA === undefined ? null : { na: v.NA }), - ...(v.NR === undefined ? null : { nr: v.NR }), - ...(v.NP === undefined ? null : { np: v.NP }), - ...(v.NL === undefined ? null : { nl: v.NL }), - ...(v.NC === undefined ? null : { nc: v.NC }), - ...(v.NZ === undefined ? null : { nz: v.NZ }), - ...(v.NI === undefined ? null : { ni: v.NI }), - ...(v.NE === undefined ? null : { ne: v.NE }), - ...(v.NG === undefined ? null : { ng: v.NG }), - ...(v.NU === undefined ? null : { nu: v.NU }), - ...(v.NF === undefined ? null : { nf: v.NF }), - ...(v.MK === undefined ? null : { mk: v.MK }), - ...(v.MP === undefined ? null : { mp: v.MP }), - ...(v.NO === undefined ? null : { no: v.NO }), - ...(v.OM === undefined ? null : { om: v.OM }), - ...(v.PK === undefined ? null : { pk: v.PK }), - ...(v.PW === undefined ? null : { pw: v.PW }), - ...(v.PS === undefined ? null : { ps: v.PS }), - ...(v.PA === undefined ? null : { pa: v.PA }), - ...(v.PG === undefined ? null : { pg: v.PG }), - ...(v.PY === undefined ? null : { py: v.PY }), - ...(v.PE === undefined ? null : { pe: v.PE }), - ...(v.PH === undefined ? null : { ph: v.PH }), - ...(v.PN === undefined ? null : { pn: v.PN }), - ...(v.PL === undefined ? null : { pl: v.PL }), - ...(v.PT === undefined ? null : { pt: v.PT }), - ...(v.PR === undefined ? null : { pr: v.PR }), - ...(v.QA === undefined ? null : { qa: v.QA }), - ...(v.RE === undefined ? null : { re: v.RE }), - ...(v.RO === undefined ? null : { ro: v.RO }), - ...(v.RU === undefined ? null : { ru: v.RU }), - ...(v.RW === undefined ? null : { rw: v.RW }), - ...(v.SH === undefined ? null : { sh: v.SH }), - ...(v.KN === undefined ? null : { kn: v.KN }), - ...(v.LC === undefined ? null : { lc: v.LC }), - ...(v.PM === undefined ? null : { pm: v.PM }), - ...(v.VC === undefined ? null : { vc: v.VC }), - ...(v.WS === undefined ? null : { ws: v.WS }), - ...(v.SM === undefined ? null : { sm: v.SM }), - ...(v.ST === undefined ? null : { st: v.ST }), - ...(v.SA === undefined ? null : { sa: v.SA }), - ...(v.SN === undefined ? null : { sn: v.SN }), - ...(v.SC === undefined ? null : { sc: v.SC }), - ...(v.SL === undefined ? null : { sl: v.SL }), - ...(v.SG === undefined ? null : { sg: v.SG }), - ...(v.SK === undefined ? null : { sk: v.SK }), - ...(v.SI === undefined ? null : { si: v.SI }), - ...(v.SB === undefined ? null : { sb: v.SB }), - ...(v.SO === undefined ? null : { so: v.SO }), - ...(v.ZA === undefined ? null : { za: v.ZA }), - ...(v.GS === undefined ? null : { gs: v.GS }), - ...(v.ES === undefined ? null : { es: v.ES }), - ...(v.LK === undefined ? null : { lk: v.LK }), - ...(v.SD === undefined ? null : { sd: v.SD }), - ...(v.SR === undefined ? null : { sr: v.SR }), - ...(v.SJ === undefined ? null : { sj: v.SJ }), - ...(v.SZ === undefined ? null : { sz: v.SZ }), - ...(v.SE === undefined ? null : { se: v.SE }), - ...(v.CH === undefined ? null : { ch: v.CH }), - ...(v.SY === undefined ? null : { sy: v.SY }), - ...(v.TW === undefined ? null : { tw: v.TW }), - ...(v.TJ === undefined ? null : { tj: v.TJ }), - ...(v.TZ === undefined ? null : { tz: v.TZ }), - ...(v.TH === undefined ? null : { th: v.TH }), - ...(v.TL === undefined ? null : { tl: v.TL }), - ...(v.TG === undefined ? null : { tg: v.TG }), - ...(v.TK === undefined ? null : { tk: v.TK }), - ...(v.TO === undefined ? null : { to: v.TO }), - ...(v.TT === undefined ? null : { tt: v.TT }), - ...(v.TN === undefined ? null : { tn: v.TN }), - ...(v.TR === undefined ? null : { tr: v.TR }), - ...(v.TM === undefined ? null : { tm: v.TM }), - ...(v.TC === undefined ? null : { tc: v.TC }), - ...(v.TV === undefined ? null : { tv: v.TV }), - ...(v.UG === undefined ? null : { ug: v.UG }), - ...(v.UA === undefined ? null : { ua: v.UA }), - ...(v.AE === undefined ? null : { ae: v.AE }), - ...(v.GB === undefined ? null : { gb: v.GB }), - ...(v.US === undefined ? null : { us: v.US }), - ...(v.UM === undefined ? null : { um: v.UM }), - ...(v.UY === undefined ? null : { uy: v.UY }), - ...(v.UZ === undefined ? null : { uz: v.UZ }), - ...(v.VU === undefined ? null : { vu: v.VU }), - ...(v.VE === undefined ? null : { ve: v.VE }), - ...(v.VN === undefined ? null : { vn: v.VN }), - ...(v.VG === undefined ? null : { vg: v.VG }), - ...(v.VI === undefined ? null : { vi: v.VI }), - ...(v.WF === undefined ? null : { wf: v.WF }), - ...(v.EH === undefined ? null : { eh: v.EH }), - ...(v.YE === undefined ? null : { ye: v.YE }), - ...(v.ZM === undefined ? null : { zm: v.ZM }), - ...(v.ZW === undefined ? null : { zw: v.ZW }), - ...(v.AX === undefined ? null : { ax: v.AX }), - ...(v.BQ === undefined ? null : { bq: v.BQ }), - ...(v.CW === undefined ? null : { cw: v.CW }), - ...(v.GG === undefined ? null : { gg: v.GG }), - ...(v.IM === undefined ? null : { im: v.IM }), - ...(v.JE === undefined ? null : { je: v.JE }), - ...(v.ME === undefined ? null : { me: v.ME }), - ...(v.BL === undefined ? null : { bl: v.BL }), - ...(v.MF === undefined ? null : { mf: v.MF }), - ...(v.RS === undefined ? null : { rs: v.RS }), - ...(v.SX === undefined ? null : { sx: v.SX }), - ...(v.SS === undefined ? null : { ss: v.SS }), - ...(v.XK === undefined ? null : { xk: v.XK }), - }; - }); - - export type Outbound = { - AF?: string | undefined; - AL?: string | undefined; - DZ?: string | undefined; - AS?: string | undefined; - AD?: string | undefined; - AO?: string | undefined; - AI?: string | undefined; - AQ?: string | undefined; - AG?: string | undefined; - AR?: string | undefined; - AM?: string | undefined; - AW?: string | undefined; - AU?: string | undefined; - AT?: string | undefined; - AZ?: string | undefined; - BS?: string | undefined; - BH?: string | undefined; - BD?: string | undefined; - BB?: string | undefined; - BY?: string | undefined; - BE?: string | undefined; - BZ?: string | undefined; - BJ?: string | undefined; - BM?: string | undefined; - BT?: string | undefined; - BO?: string | undefined; - BA?: string | undefined; - BW?: string | undefined; - BV?: string | undefined; - BR?: string | undefined; - IO?: string | undefined; - BN?: string | undefined; - BG?: string | undefined; - BF?: string | undefined; - BI?: string | undefined; - KH?: string | undefined; - CM?: string | undefined; - CA?: string | undefined; - CV?: string | undefined; - KY?: string | undefined; - CF?: string | undefined; - TD?: string | undefined; - CL?: string | undefined; - CN?: string | undefined; - CX?: string | undefined; - CC?: string | undefined; - CO?: string | undefined; - KM?: string | undefined; - CG?: string | undefined; - CD?: string | undefined; - CK?: string | undefined; - CR?: string | undefined; - CI?: string | undefined; - HR?: string | undefined; - CU?: string | undefined; - CY?: string | undefined; - CZ?: string | undefined; - DK?: string | undefined; - DJ?: string | undefined; - DM?: string | undefined; - DO?: string | undefined; - EC?: string | undefined; - EG?: string | undefined; - SV?: string | undefined; - GQ?: string | undefined; - ER?: string | undefined; - EE?: string | undefined; - ET?: string | undefined; - FK?: string | undefined; - FO?: string | undefined; - FJ?: string | undefined; - FI?: string | undefined; - FR?: string | undefined; - GF?: string | undefined; - PF?: string | undefined; - TF?: string | undefined; - GA?: string | undefined; - GM?: string | undefined; - GE?: string | undefined; - DE?: string | undefined; - GH?: string | undefined; - GI?: string | undefined; - GR?: string | undefined; - GL?: string | undefined; - GD?: string | undefined; - GP?: string | undefined; - GU?: string | undefined; - GT?: string | undefined; - GN?: string | undefined; - GW?: string | undefined; - GY?: string | undefined; - HT?: string | undefined; - HM?: string | undefined; - VA?: string | undefined; - HN?: string | undefined; - HK?: string | undefined; - HU?: string | undefined; - IS?: string | undefined; - IN?: string | undefined; - ID?: string | undefined; - IR?: string | undefined; - IQ?: string | undefined; - IE?: string | undefined; - IL?: string | undefined; - IT?: string | undefined; - JM?: string | undefined; - JP?: string | undefined; - JO?: string | undefined; - KZ?: string | undefined; - KE?: string | undefined; - KI?: string | undefined; - KP?: string | undefined; - KR?: string | undefined; - KW?: string | undefined; - KG?: string | undefined; - LA?: string | undefined; - LV?: string | undefined; - LB?: string | undefined; - LS?: string | undefined; - LR?: string | undefined; - LY?: string | undefined; - LI?: string | undefined; - LT?: string | undefined; - LU?: string | undefined; - MO?: string | undefined; - MG?: string | undefined; - MW?: string | undefined; - MY?: string | undefined; - MV?: string | undefined; - ML?: string | undefined; - MT?: string | undefined; - MH?: string | undefined; - MQ?: string | undefined; - MR?: string | undefined; - MU?: string | undefined; - YT?: string | undefined; - MX?: string | undefined; - FM?: string | undefined; - MD?: string | undefined; - MC?: string | undefined; - MN?: string | undefined; - MS?: string | undefined; - MA?: string | undefined; - MZ?: string | undefined; - MM?: string | undefined; - NA?: string | undefined; - NR?: string | undefined; - NP?: string | undefined; - NL?: string | undefined; - NC?: string | undefined; - NZ?: string | undefined; - NI?: string | undefined; - NE?: string | undefined; - NG?: string | undefined; - NU?: string | undefined; - NF?: string | undefined; - MK?: string | undefined; - MP?: string | undefined; - NO?: string | undefined; - OM?: string | undefined; - PK?: string | undefined; - PW?: string | undefined; - PS?: string | undefined; - PA?: string | undefined; - PG?: string | undefined; - PY?: string | undefined; - PE?: string | undefined; - PH?: string | undefined; - PN?: string | undefined; - PL?: string | undefined; - PT?: string | undefined; - PR?: string | undefined; - QA?: string | undefined; - RE?: string | undefined; - RO?: string | undefined; - RU?: string | undefined; - RW?: string | undefined; - SH?: string | undefined; - KN?: string | undefined; - LC?: string | undefined; - PM?: string | undefined; - VC?: string | undefined; - WS?: string | undefined; - SM?: string | undefined; - ST?: string | undefined; - SA?: string | undefined; - SN?: string | undefined; - SC?: string | undefined; - SL?: string | undefined; - SG?: string | undefined; - SK?: string | undefined; - SI?: string | undefined; - SB?: string | undefined; - SO?: string | undefined; - ZA?: string | undefined; - GS?: string | undefined; - ES?: string | undefined; - LK?: string | undefined; - SD?: string | undefined; - SR?: string | undefined; - SJ?: string | undefined; - SZ?: string | undefined; - SE?: string | undefined; - CH?: string | undefined; - SY?: string | undefined; - TW?: string | undefined; - TJ?: string | undefined; - TZ?: string | undefined; - TH?: string | undefined; - TL?: string | undefined; - TG?: string | undefined; - TK?: string | undefined; - TO?: string | undefined; - TT?: string | undefined; - TN?: string | undefined; - TR?: string | undefined; - TM?: string | undefined; - TC?: string | undefined; - TV?: string | undefined; - UG?: string | undefined; - UA?: string | undefined; - AE?: string | undefined; - GB?: string | undefined; - US?: string | undefined; - UM?: string | undefined; - UY?: string | undefined; - UZ?: string | undefined; - VU?: string | undefined; - VE?: string | undefined; - VN?: string | undefined; - VG?: string | undefined; - VI?: string | undefined; - WF?: string | undefined; - EH?: string | undefined; - YE?: string | undefined; - ZM?: string | undefined; - ZW?: string | undefined; - AX?: string | undefined; - BQ?: string | undefined; - CW?: string | undefined; - GG?: string | undefined; - IM?: string | undefined; - JE?: string | undefined; - ME?: string | undefined; - BL?: string | undefined; - MF?: string | undefined; - RS?: string | undefined; - SX?: string | undefined; - SS?: string | undefined; - XK?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - af: z.string().optional(), - al: z.string().optional(), - dz: z.string().optional(), - as: z.string().optional(), - ad: z.string().optional(), - ao: z.string().optional(), - ai: z.string().optional(), - aq: z.string().optional(), - ag: z.string().optional(), - ar: z.string().optional(), - am: z.string().optional(), - aw: z.string().optional(), - au: z.string().optional(), - at: z.string().optional(), - az: z.string().optional(), - bs: z.string().optional(), - bh: z.string().optional(), - bd: z.string().optional(), - bb: z.string().optional(), - by: z.string().optional(), - be: z.string().optional(), - bz: z.string().optional(), - bj: z.string().optional(), - bm: z.string().optional(), - bt: z.string().optional(), - bo: z.string().optional(), - ba: z.string().optional(), - bw: z.string().optional(), - bv: z.string().optional(), - br: z.string().optional(), - io: z.string().optional(), - bn: z.string().optional(), - bg: z.string().optional(), - bf: z.string().optional(), - bi: z.string().optional(), - kh: z.string().optional(), - cm: z.string().optional(), - ca: z.string().optional(), - cv: z.string().optional(), - ky: z.string().optional(), - cf: z.string().optional(), - td: z.string().optional(), - cl: z.string().optional(), - cn: z.string().optional(), - cx: z.string().optional(), - cc: z.string().optional(), - co: z.string().optional(), - km: z.string().optional(), - cg: z.string().optional(), - cd: z.string().optional(), - ck: z.string().optional(), - cr: z.string().optional(), - ci: z.string().optional(), - hr: z.string().optional(), - cu: z.string().optional(), - cy: z.string().optional(), - cz: z.string().optional(), - dk: z.string().optional(), - dj: z.string().optional(), - dm: z.string().optional(), - do: z.string().optional(), - ec: z.string().optional(), - eg: z.string().optional(), - sv: z.string().optional(), - gq: z.string().optional(), - er: z.string().optional(), - ee: z.string().optional(), - et: z.string().optional(), - fk: z.string().optional(), - fo: z.string().optional(), - fj: z.string().optional(), - fi: z.string().optional(), - fr: z.string().optional(), - gf: z.string().optional(), - pf: z.string().optional(), - tf: z.string().optional(), - ga: z.string().optional(), - gm: z.string().optional(), - ge: z.string().optional(), - de: z.string().optional(), - gh: z.string().optional(), - gi: z.string().optional(), - gr: z.string().optional(), - gl: z.string().optional(), - gd: z.string().optional(), - gp: z.string().optional(), - gu: z.string().optional(), - gt: z.string().optional(), - gn: z.string().optional(), - gw: z.string().optional(), - gy: z.string().optional(), - ht: z.string().optional(), - hm: z.string().optional(), - va: z.string().optional(), - hn: z.string().optional(), - hk: z.string().optional(), - hu: z.string().optional(), - is: z.string().optional(), - in: z.string().optional(), - id: z.string().optional(), - ir: z.string().optional(), - iq: z.string().optional(), - ie: z.string().optional(), - il: z.string().optional(), - it: z.string().optional(), - jm: z.string().optional(), - jp: z.string().optional(), - jo: z.string().optional(), - kz: z.string().optional(), - ke: z.string().optional(), - ki: z.string().optional(), - kp: z.string().optional(), - kr: z.string().optional(), - kw: z.string().optional(), - kg: z.string().optional(), - la: z.string().optional(), - lv: z.string().optional(), - lb: z.string().optional(), - ls: z.string().optional(), - lr: z.string().optional(), - ly: z.string().optional(), - li: z.string().optional(), - lt: z.string().optional(), - lu: z.string().optional(), - mo: z.string().optional(), - mg: z.string().optional(), - mw: z.string().optional(), - my: z.string().optional(), - mv: z.string().optional(), - ml: z.string().optional(), - mt: z.string().optional(), - mh: z.string().optional(), - mq: z.string().optional(), - mr: z.string().optional(), - mu: z.string().optional(), - yt: z.string().optional(), - mx: z.string().optional(), - fm: z.string().optional(), - md: z.string().optional(), - mc: z.string().optional(), - mn: z.string().optional(), - ms: z.string().optional(), - ma: z.string().optional(), - mz: z.string().optional(), - mm: z.string().optional(), - na: z.string().optional(), - nr: z.string().optional(), - np: z.string().optional(), - nl: z.string().optional(), - nc: z.string().optional(), - nz: z.string().optional(), - ni: z.string().optional(), - ne: z.string().optional(), - ng: z.string().optional(), - nu: z.string().optional(), - nf: z.string().optional(), - mk: z.string().optional(), - mp: z.string().optional(), - no: z.string().optional(), - om: z.string().optional(), - pk: z.string().optional(), - pw: z.string().optional(), - ps: z.string().optional(), - pa: z.string().optional(), - pg: z.string().optional(), - py: z.string().optional(), - pe: z.string().optional(), - ph: z.string().optional(), - pn: z.string().optional(), - pl: z.string().optional(), - pt: z.string().optional(), - pr: z.string().optional(), - qa: z.string().optional(), - re: z.string().optional(), - ro: z.string().optional(), - ru: z.string().optional(), - rw: z.string().optional(), - sh: z.string().optional(), - kn: z.string().optional(), - lc: z.string().optional(), - pm: z.string().optional(), - vc: z.string().optional(), - ws: z.string().optional(), - sm: z.string().optional(), - st: z.string().optional(), - sa: z.string().optional(), - sn: z.string().optional(), - sc: z.string().optional(), - sl: z.string().optional(), - sg: z.string().optional(), - sk: z.string().optional(), - si: z.string().optional(), - sb: z.string().optional(), - so: z.string().optional(), - za: z.string().optional(), - gs: z.string().optional(), - es: z.string().optional(), - lk: z.string().optional(), - sd: z.string().optional(), - sr: z.string().optional(), - sj: z.string().optional(), - sz: z.string().optional(), - se: z.string().optional(), - ch: z.string().optional(), - sy: z.string().optional(), - tw: z.string().optional(), - tj: z.string().optional(), - tz: z.string().optional(), - th: z.string().optional(), - tl: z.string().optional(), - tg: z.string().optional(), - tk: z.string().optional(), - to: z.string().optional(), - tt: z.string().optional(), - tn: z.string().optional(), - tr: z.string().optional(), - tm: z.string().optional(), - tc: z.string().optional(), - tv: z.string().optional(), - ug: z.string().optional(), - ua: z.string().optional(), - ae: z.string().optional(), - gb: z.string().optional(), - us: z.string().optional(), - um: z.string().optional(), - uy: z.string().optional(), - uz: z.string().optional(), - vu: z.string().optional(), - ve: z.string().optional(), - vn: z.string().optional(), - vg: z.string().optional(), - vi: z.string().optional(), - wf: z.string().optional(), - eh: z.string().optional(), - ye: z.string().optional(), - zm: z.string().optional(), - zw: z.string().optional(), - ax: z.string().optional(), - bq: z.string().optional(), - cw: z.string().optional(), - gg: z.string().optional(), - im: z.string().optional(), - je: z.string().optional(), - me: z.string().optional(), - bl: z.string().optional(), - mf: z.string().optional(), - rs: z.string().optional(), - sx: z.string().optional(), - ss: z.string().optional(), - xk: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.af === undefined ? null : { AF: v.af }), - ...(v.al === undefined ? null : { AL: v.al }), - ...(v.dz === undefined ? null : { DZ: v.dz }), - ...(v.as === undefined ? null : { AS: v.as }), - ...(v.ad === undefined ? null : { AD: v.ad }), - ...(v.ao === undefined ? null : { AO: v.ao }), - ...(v.ai === undefined ? null : { AI: v.ai }), - ...(v.aq === undefined ? null : { AQ: v.aq }), - ...(v.ag === undefined ? null : { AG: v.ag }), - ...(v.ar === undefined ? null : { AR: v.ar }), - ...(v.am === undefined ? null : { AM: v.am }), - ...(v.aw === undefined ? null : { AW: v.aw }), - ...(v.au === undefined ? null : { AU: v.au }), - ...(v.at === undefined ? null : { AT: v.at }), - ...(v.az === undefined ? null : { AZ: v.az }), - ...(v.bs === undefined ? null : { BS: v.bs }), - ...(v.bh === undefined ? null : { BH: v.bh }), - ...(v.bd === undefined ? null : { BD: v.bd }), - ...(v.bb === undefined ? null : { BB: v.bb }), - ...(v.by === undefined ? null : { BY: v.by }), - ...(v.be === undefined ? null : { BE: v.be }), - ...(v.bz === undefined ? null : { BZ: v.bz }), - ...(v.bj === undefined ? null : { BJ: v.bj }), - ...(v.bm === undefined ? null : { BM: v.bm }), - ...(v.bt === undefined ? null : { BT: v.bt }), - ...(v.bo === undefined ? null : { BO: v.bo }), - ...(v.ba === undefined ? null : { BA: v.ba }), - ...(v.bw === undefined ? null : { BW: v.bw }), - ...(v.bv === undefined ? null : { BV: v.bv }), - ...(v.br === undefined ? null : { BR: v.br }), - ...(v.io === undefined ? null : { IO: v.io }), - ...(v.bn === undefined ? null : { BN: v.bn }), - ...(v.bg === undefined ? null : { BG: v.bg }), - ...(v.bf === undefined ? null : { BF: v.bf }), - ...(v.bi === undefined ? null : { BI: v.bi }), - ...(v.kh === undefined ? null : { KH: v.kh }), - ...(v.cm === undefined ? null : { CM: v.cm }), - ...(v.ca === undefined ? null : { CA: v.ca }), - ...(v.cv === undefined ? null : { CV: v.cv }), - ...(v.ky === undefined ? null : { KY: v.ky }), - ...(v.cf === undefined ? null : { CF: v.cf }), - ...(v.td === undefined ? null : { TD: v.td }), - ...(v.cl === undefined ? null : { CL: v.cl }), - ...(v.cn === undefined ? null : { CN: v.cn }), - ...(v.cx === undefined ? null : { CX: v.cx }), - ...(v.cc === undefined ? null : { CC: v.cc }), - ...(v.co === undefined ? null : { CO: v.co }), - ...(v.km === undefined ? null : { KM: v.km }), - ...(v.cg === undefined ? null : { CG: v.cg }), - ...(v.cd === undefined ? null : { CD: v.cd }), - ...(v.ck === undefined ? null : { CK: v.ck }), - ...(v.cr === undefined ? null : { CR: v.cr }), - ...(v.ci === undefined ? null : { CI: v.ci }), - ...(v.hr === undefined ? null : { HR: v.hr }), - ...(v.cu === undefined ? null : { CU: v.cu }), - ...(v.cy === undefined ? null : { CY: v.cy }), - ...(v.cz === undefined ? null : { CZ: v.cz }), - ...(v.dk === undefined ? null : { DK: v.dk }), - ...(v.dj === undefined ? null : { DJ: v.dj }), - ...(v.dm === undefined ? null : { DM: v.dm }), - ...(v.do === undefined ? null : { DO: v.do }), - ...(v.ec === undefined ? null : { EC: v.ec }), - ...(v.eg === undefined ? null : { EG: v.eg }), - ...(v.sv === undefined ? null : { SV: v.sv }), - ...(v.gq === undefined ? null : { GQ: v.gq }), - ...(v.er === undefined ? null : { ER: v.er }), - ...(v.ee === undefined ? null : { EE: v.ee }), - ...(v.et === undefined ? null : { ET: v.et }), - ...(v.fk === undefined ? null : { FK: v.fk }), - ...(v.fo === undefined ? null : { FO: v.fo }), - ...(v.fj === undefined ? null : { FJ: v.fj }), - ...(v.fi === undefined ? null : { FI: v.fi }), - ...(v.fr === undefined ? null : { FR: v.fr }), - ...(v.gf === undefined ? null : { GF: v.gf }), - ...(v.pf === undefined ? null : { PF: v.pf }), - ...(v.tf === undefined ? null : { TF: v.tf }), - ...(v.ga === undefined ? null : { GA: v.ga }), - ...(v.gm === undefined ? null : { GM: v.gm }), - ...(v.ge === undefined ? null : { GE: v.ge }), - ...(v.de === undefined ? null : { DE: v.de }), - ...(v.gh === undefined ? null : { GH: v.gh }), - ...(v.gi === undefined ? null : { GI: v.gi }), - ...(v.gr === undefined ? null : { GR: v.gr }), - ...(v.gl === undefined ? null : { GL: v.gl }), - ...(v.gd === undefined ? null : { GD: v.gd }), - ...(v.gp === undefined ? null : { GP: v.gp }), - ...(v.gu === undefined ? null : { GU: v.gu }), - ...(v.gt === undefined ? null : { GT: v.gt }), - ...(v.gn === undefined ? null : { GN: v.gn }), - ...(v.gw === undefined ? null : { GW: v.gw }), - ...(v.gy === undefined ? null : { GY: v.gy }), - ...(v.ht === undefined ? null : { HT: v.ht }), - ...(v.hm === undefined ? null : { HM: v.hm }), - ...(v.va === undefined ? null : { VA: v.va }), - ...(v.hn === undefined ? null : { HN: v.hn }), - ...(v.hk === undefined ? null : { HK: v.hk }), - ...(v.hu === undefined ? null : { HU: v.hu }), - ...(v.is === undefined ? null : { IS: v.is }), - ...(v.in === undefined ? null : { IN: v.in }), - ...(v.id === undefined ? null : { ID: v.id }), - ...(v.ir === undefined ? null : { IR: v.ir }), - ...(v.iq === undefined ? null : { IQ: v.iq }), - ...(v.ie === undefined ? null : { IE: v.ie }), - ...(v.il === undefined ? null : { IL: v.il }), - ...(v.it === undefined ? null : { IT: v.it }), - ...(v.jm === undefined ? null : { JM: v.jm }), - ...(v.jp === undefined ? null : { JP: v.jp }), - ...(v.jo === undefined ? null : { JO: v.jo }), - ...(v.kz === undefined ? null : { KZ: v.kz }), - ...(v.ke === undefined ? null : { KE: v.ke }), - ...(v.ki === undefined ? null : { KI: v.ki }), - ...(v.kp === undefined ? null : { KP: v.kp }), - ...(v.kr === undefined ? null : { KR: v.kr }), - ...(v.kw === undefined ? null : { KW: v.kw }), - ...(v.kg === undefined ? null : { KG: v.kg }), - ...(v.la === undefined ? null : { LA: v.la }), - ...(v.lv === undefined ? null : { LV: v.lv }), - ...(v.lb === undefined ? null : { LB: v.lb }), - ...(v.ls === undefined ? null : { LS: v.ls }), - ...(v.lr === undefined ? null : { LR: v.lr }), - ...(v.ly === undefined ? null : { LY: v.ly }), - ...(v.li === undefined ? null : { LI: v.li }), - ...(v.lt === undefined ? null : { LT: v.lt }), - ...(v.lu === undefined ? null : { LU: v.lu }), - ...(v.mo === undefined ? null : { MO: v.mo }), - ...(v.mg === undefined ? null : { MG: v.mg }), - ...(v.mw === undefined ? null : { MW: v.mw }), - ...(v.my === undefined ? null : { MY: v.my }), - ...(v.mv === undefined ? null : { MV: v.mv }), - ...(v.ml === undefined ? null : { ML: v.ml }), - ...(v.mt === undefined ? null : { MT: v.mt }), - ...(v.mh === undefined ? null : { MH: v.mh }), - ...(v.mq === undefined ? null : { MQ: v.mq }), - ...(v.mr === undefined ? null : { MR: v.mr }), - ...(v.mu === undefined ? null : { MU: v.mu }), - ...(v.yt === undefined ? null : { YT: v.yt }), - ...(v.mx === undefined ? null : { MX: v.mx }), - ...(v.fm === undefined ? null : { FM: v.fm }), - ...(v.md === undefined ? null : { MD: v.md }), - ...(v.mc === undefined ? null : { MC: v.mc }), - ...(v.mn === undefined ? null : { MN: v.mn }), - ...(v.ms === undefined ? null : { MS: v.ms }), - ...(v.ma === undefined ? null : { MA: v.ma }), - ...(v.mz === undefined ? null : { MZ: v.mz }), - ...(v.mm === undefined ? null : { MM: v.mm }), - ...(v.na === undefined ? null : { NA: v.na }), - ...(v.nr === undefined ? null : { NR: v.nr }), - ...(v.np === undefined ? null : { NP: v.np }), - ...(v.nl === undefined ? null : { NL: v.nl }), - ...(v.nc === undefined ? null : { NC: v.nc }), - ...(v.nz === undefined ? null : { NZ: v.nz }), - ...(v.ni === undefined ? null : { NI: v.ni }), - ...(v.ne === undefined ? null : { NE: v.ne }), - ...(v.ng === undefined ? null : { NG: v.ng }), - ...(v.nu === undefined ? null : { NU: v.nu }), - ...(v.nf === undefined ? null : { NF: v.nf }), - ...(v.mk === undefined ? null : { MK: v.mk }), - ...(v.mp === undefined ? null : { MP: v.mp }), - ...(v.no === undefined ? null : { NO: v.no }), - ...(v.om === undefined ? null : { OM: v.om }), - ...(v.pk === undefined ? null : { PK: v.pk }), - ...(v.pw === undefined ? null : { PW: v.pw }), - ...(v.ps === undefined ? null : { PS: v.ps }), - ...(v.pa === undefined ? null : { PA: v.pa }), - ...(v.pg === undefined ? null : { PG: v.pg }), - ...(v.py === undefined ? null : { PY: v.py }), - ...(v.pe === undefined ? null : { PE: v.pe }), - ...(v.ph === undefined ? null : { PH: v.ph }), - ...(v.pn === undefined ? null : { PN: v.pn }), - ...(v.pl === undefined ? null : { PL: v.pl }), - ...(v.pt === undefined ? null : { PT: v.pt }), - ...(v.pr === undefined ? null : { PR: v.pr }), - ...(v.qa === undefined ? null : { QA: v.qa }), - ...(v.re === undefined ? null : { RE: v.re }), - ...(v.ro === undefined ? null : { RO: v.ro }), - ...(v.ru === undefined ? null : { RU: v.ru }), - ...(v.rw === undefined ? null : { RW: v.rw }), - ...(v.sh === undefined ? null : { SH: v.sh }), - ...(v.kn === undefined ? null : { KN: v.kn }), - ...(v.lc === undefined ? null : { LC: v.lc }), - ...(v.pm === undefined ? null : { PM: v.pm }), - ...(v.vc === undefined ? null : { VC: v.vc }), - ...(v.ws === undefined ? null : { WS: v.ws }), - ...(v.sm === undefined ? null : { SM: v.sm }), - ...(v.st === undefined ? null : { ST: v.st }), - ...(v.sa === undefined ? null : { SA: v.sa }), - ...(v.sn === undefined ? null : { SN: v.sn }), - ...(v.sc === undefined ? null : { SC: v.sc }), - ...(v.sl === undefined ? null : { SL: v.sl }), - ...(v.sg === undefined ? null : { SG: v.sg }), - ...(v.sk === undefined ? null : { SK: v.sk }), - ...(v.si === undefined ? null : { SI: v.si }), - ...(v.sb === undefined ? null : { SB: v.sb }), - ...(v.so === undefined ? null : { SO: v.so }), - ...(v.za === undefined ? null : { ZA: v.za }), - ...(v.gs === undefined ? null : { GS: v.gs }), - ...(v.es === undefined ? null : { ES: v.es }), - ...(v.lk === undefined ? null : { LK: v.lk }), - ...(v.sd === undefined ? null : { SD: v.sd }), - ...(v.sr === undefined ? null : { SR: v.sr }), - ...(v.sj === undefined ? null : { SJ: v.sj }), - ...(v.sz === undefined ? null : { SZ: v.sz }), - ...(v.se === undefined ? null : { SE: v.se }), - ...(v.ch === undefined ? null : { CH: v.ch }), - ...(v.sy === undefined ? null : { SY: v.sy }), - ...(v.tw === undefined ? null : { TW: v.tw }), - ...(v.tj === undefined ? null : { TJ: v.tj }), - ...(v.tz === undefined ? null : { TZ: v.tz }), - ...(v.th === undefined ? null : { TH: v.th }), - ...(v.tl === undefined ? null : { TL: v.tl }), - ...(v.tg === undefined ? null : { TG: v.tg }), - ...(v.tk === undefined ? null : { TK: v.tk }), - ...(v.to === undefined ? null : { TO: v.to }), - ...(v.tt === undefined ? null : { TT: v.tt }), - ...(v.tn === undefined ? null : { TN: v.tn }), - ...(v.tr === undefined ? null : { TR: v.tr }), - ...(v.tm === undefined ? null : { TM: v.tm }), - ...(v.tc === undefined ? null : { TC: v.tc }), - ...(v.tv === undefined ? null : { TV: v.tv }), - ...(v.ug === undefined ? null : { UG: v.ug }), - ...(v.ua === undefined ? null : { UA: v.ua }), - ...(v.ae === undefined ? null : { AE: v.ae }), - ...(v.gb === undefined ? null : { GB: v.gb }), - ...(v.us === undefined ? null : { US: v.us }), - ...(v.um === undefined ? null : { UM: v.um }), - ...(v.uy === undefined ? null : { UY: v.uy }), - ...(v.uz === undefined ? null : { UZ: v.uz }), - ...(v.vu === undefined ? null : { VU: v.vu }), - ...(v.ve === undefined ? null : { VE: v.ve }), - ...(v.vn === undefined ? null : { VN: v.vn }), - ...(v.vg === undefined ? null : { VG: v.vg }), - ...(v.vi === undefined ? null : { VI: v.vi }), - ...(v.wf === undefined ? null : { WF: v.wf }), - ...(v.eh === undefined ? null : { EH: v.eh }), - ...(v.ye === undefined ? null : { YE: v.ye }), - ...(v.zm === undefined ? null : { ZM: v.zm }), - ...(v.zw === undefined ? null : { ZW: v.zw }), - ...(v.ax === undefined ? null : { AX: v.ax }), - ...(v.bq === undefined ? null : { BQ: v.bq }), - ...(v.cw === undefined ? null : { CW: v.cw }), - ...(v.gg === undefined ? null : { GG: v.gg }), - ...(v.im === undefined ? null : { IM: v.im }), - ...(v.je === undefined ? null : { JE: v.je }), - ...(v.me === undefined ? null : { ME: v.me }), - ...(v.bl === undefined ? null : { BL: v.bl }), - ...(v.mf === undefined ? null : { MF: v.mf }), - ...(v.rs === undefined ? null : { RS: v.rs }), - ...(v.sx === undefined ? null : { SX: v.sx }), - ...(v.ss === undefined ? null : { SS: v.ss }), - ...(v.xk === undefined ? null : { XK: v.xk }), - }; - }); -} - /** @internal */ export namespace CreateLinkRequestBody$ { export const inboundSchema: z.ZodType = z @@ -1688,7 +161,7 @@ export namespace CreateLinkRequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => Geo$.inboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(), }) .transform((v) => { return { @@ -1739,7 +212,7 @@ export namespace CreateLinkRequestBody$ { rewrite: boolean; ios?: string | null | undefined; android?: string | null | undefined; - geo?: Geo$.Outbound | null | undefined; + geo?: components.LinkGeoTargeting$.Outbound | null | undefined; }; export const outboundSchema: z.ZodType = z @@ -1765,7 +238,7 @@ export namespace CreateLinkRequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => Geo$.outboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(), }) .transform((v) => { return { diff --git a/src/models/operations/getbrowsersbyclicks.ts b/src/models/operations/getbrowsersbyclicks.ts index 7e12d70..1e34536 100644 --- a/src/models/operations/getbrowsersbyclicks.ts +++ b/src/models/operations/getbrowsersbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetBrowsersByClicksQueryParamInterval = ClosedEnum< typeof GetBrowsersByClicksQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetBrowsersByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetBrowsersByClicksQueryParamCountry = ClosedEnum< - typeof GetBrowsersByClicksQueryParamCountry ->; - export type GetBrowsersByClicksRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetBrowsersByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetBrowsersByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetBrowsersByClicksQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetBrowsersByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetBrowsersByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetBrowsersByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -392,7 +125,7 @@ export namespace GetBrowsersByClicksRequest$ { interval: GetBrowsersByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetBrowsersByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -454,7 +187,7 @@ export namespace GetBrowsersByClicksRequest$ { interval: GetBrowsersByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetBrowsersByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getbrowsersbyclicksdeprecated.ts b/src/models/operations/getbrowsersbyclicksdeprecated.ts index 4b7c7e8..0354244 100644 --- a/src/models/operations/getbrowsersbyclicksdeprecated.ts +++ b/src/models/operations/getbrowsersbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetBrowsersByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetBrowsersByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetBrowsersByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetBrowsersByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetBrowsersByClicksDeprecatedQueryParamCountry ->; - export type GetBrowsersByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetBrowsersByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetBrowsersByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetBrowsersByClicksDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetBrowsersByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetBrowsersByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetBrowsersByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -396,7 +129,7 @@ export namespace GetBrowsersByClicksDeprecatedRequest$ { interval: GetBrowsersByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetBrowsersByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -463,7 +196,7 @@ export namespace GetBrowsersByClicksDeprecatedRequest$ { GetBrowsersByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetBrowsersByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getcitiesbyclicks.ts b/src/models/operations/getcitiesbyclicks.ts index e76cfaf..78c5ac8 100644 --- a/src/models/operations/getcitiesbyclicks.ts +++ b/src/models/operations/getcitiesbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetCitiesByClicksQueryParamInterval = ClosedEnum< typeof GetCitiesByClicksQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetCitiesByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetCitiesByClicksQueryParamCountry = ClosedEnum< - typeof GetCitiesByClicksQueryParamCountry ->; - export type GetCitiesByClicksRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetCitiesByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetCitiesByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -358,293 +97,12 @@ export type GetCitiesByClicksRequest = { root?: boolean | undefined; }; -/** - * The 2-letter country code of the city: https://d.to/geo - */ -export const GetCitiesByClicksCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The 2-letter country code of the city: https://d.to/geo - */ -export type GetCitiesByClicksCountry = ClosedEnum; - -export type GetCitiesByClicksResponseBody = { - /** - * The name of the city - */ - city: string; - /** - * The 2-letter country code of the city: https://d.to/geo - */ - country: GetCitiesByClicksCountry; - /** - * The number of clicks from this city - */ - clicks: number; -}; - /** @internal */ export namespace GetCitiesByClicksQueryParamInterval$ { export const inboundSchema = z.nativeEnum(GetCitiesByClicksQueryParamInterval); export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetCitiesByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetCitiesByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetCitiesByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -656,7 +114,7 @@ export namespace GetCitiesByClicksRequest$ { interval: GetCitiesByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCitiesByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -718,7 +176,7 @@ export namespace GetCitiesByClicksRequest$ { interval: GetCitiesByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCitiesByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -751,47 +209,3 @@ export namespace GetCitiesByClicksRequest$ { }; }); } - -/** @internal */ -export namespace GetCitiesByClicksCountry$ { - export const inboundSchema = z.nativeEnum(GetCitiesByClicksCountry); - export const outboundSchema = inboundSchema; -} - -/** @internal */ -export namespace GetCitiesByClicksResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - city: z.string(), - country: GetCitiesByClicksCountry$.inboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - city: v.city, - country: v.country, - clicks: v.clicks, - }; - }); - - export type Outbound = { - city: string; - country: string; - clicks: number; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - city: z.string(), - country: GetCitiesByClicksCountry$.outboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - city: v.city, - country: v.country, - clicks: v.clicks, - }; - }); -} diff --git a/src/models/operations/getcitiesbyclicksdeprecated.ts b/src/models/operations/getcitiesbyclicksdeprecated.ts index a10e55d..72526c7 100644 --- a/src/models/operations/getcitiesbyclicksdeprecated.ts +++ b/src/models/operations/getcitiesbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetCitiesByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetCitiesByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetCitiesByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetCitiesByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetCitiesByClicksDeprecatedQueryParamCountry ->; - export type GetCitiesByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetCitiesByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetCitiesByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -358,295 +97,12 @@ export type GetCitiesByClicksDeprecatedRequest = { root?: boolean | undefined; }; -/** - * The 2-letter country code of the city: https://d.to/geo - */ -export const GetCitiesByClicksDeprecatedCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The 2-letter country code of the city: https://d.to/geo - */ -export type GetCitiesByClicksDeprecatedCountry = ClosedEnum< - typeof GetCitiesByClicksDeprecatedCountry ->; - -export type GetCitiesByClicksDeprecatedResponseBody = { - /** - * The name of the city - */ - city: string; - /** - * The 2-letter country code of the city: https://d.to/geo - */ - country: GetCitiesByClicksDeprecatedCountry; - /** - * The number of clicks from this city - */ - clicks: number; -}; - /** @internal */ export namespace GetCitiesByClicksDeprecatedQueryParamInterval$ { export const inboundSchema = z.nativeEnum(GetCitiesByClicksDeprecatedQueryParamInterval); export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetCitiesByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetCitiesByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetCitiesByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -662,7 +118,7 @@ export namespace GetCitiesByClicksDeprecatedRequest$ { interval: GetCitiesByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCitiesByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -728,7 +184,7 @@ export namespace GetCitiesByClicksDeprecatedRequest$ { interval: GetCitiesByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCitiesByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -761,54 +217,3 @@ export namespace GetCitiesByClicksDeprecatedRequest$ { }; }); } - -/** @internal */ -export namespace GetCitiesByClicksDeprecatedCountry$ { - export const inboundSchema = z.nativeEnum(GetCitiesByClicksDeprecatedCountry); - export const outboundSchema = inboundSchema; -} - -/** @internal */ -export namespace GetCitiesByClicksDeprecatedResponseBody$ { - export const inboundSchema: z.ZodType< - GetCitiesByClicksDeprecatedResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - city: z.string(), - country: GetCitiesByClicksDeprecatedCountry$.inboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - city: v.city, - country: v.country, - clicks: v.clicks, - }; - }); - - export type Outbound = { - city: string; - country: string; - clicks: number; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetCitiesByClicksDeprecatedResponseBody - > = z - .object({ - city: z.string(), - country: GetCitiesByClicksDeprecatedCountry$.outboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - city: v.city, - country: v.country, - clicks: v.clicks, - }; - }); -} diff --git a/src/models/operations/getclickscount.ts b/src/models/operations/getclickscount.ts index e157810..3527346 100644 --- a/src/models/operations/getclickscount.ts +++ b/src/models/operations/getclickscount.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -23,266 +24,6 @@ export const Interval = { */ export type Interval = ClosedEnum; -/** - * The country to retrieve analytics for. - */ -export const Country = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type Country = ClosedEnum; - export type GetClicksCountRequest = { /** * The domain to filter analytics for. @@ -315,7 +56,7 @@ export type GetClicksCountRequest = { /** * The country to retrieve analytics for. */ - country?: Country | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -360,12 +101,6 @@ export namespace Interval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace Country$ { - export const inboundSchema = z.nativeEnum(Country); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetClicksCountRequest$ { export const inboundSchema: z.ZodType = z @@ -377,7 +112,7 @@ export namespace GetClicksCountRequest$ { interval: Interval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: Country$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -439,7 +174,7 @@ export namespace GetClicksCountRequest$ { interval: Interval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: Country$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getclickscountdeprecated.ts b/src/models/operations/getclickscountdeprecated.ts index 417353b..8d82966 100644 --- a/src/models/operations/getclickscountdeprecated.ts +++ b/src/models/operations/getclickscountdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetClicksCountDeprecatedQueryParamInterval = ClosedEnum< typeof GetClicksCountDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetClicksCountDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetClicksCountDeprecatedQueryParamCountry = ClosedEnum< - typeof GetClicksCountDeprecatedQueryParamCountry ->; - export type GetClicksCountDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetClicksCountDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetClicksCountDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -364,12 +103,6 @@ export namespace GetClicksCountDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetClicksCountDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetClicksCountDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetClicksCountDeprecatedRequest$ { export const inboundSchema: z.ZodType = @@ -382,7 +115,7 @@ export namespace GetClicksCountDeprecatedRequest$ { interval: GetClicksCountDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetClicksCountDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -448,7 +181,7 @@ export namespace GetClicksCountDeprecatedRequest$ { interval: GetClicksCountDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetClicksCountDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getcountriesbyclicks.ts b/src/models/operations/getcountriesbyclicks.ts index 8887a8f..0de5a08 100644 --- a/src/models/operations/getcountriesbyclicks.ts +++ b/src/models/operations/getcountriesbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetCountriesByClicksQueryParamInterval = ClosedEnum< typeof GetCountriesByClicksQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetCountriesByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetCountriesByClicksQueryParamCountry = ClosedEnum< - typeof GetCountriesByClicksQueryParamCountry ->; - export type GetCountriesByClicksRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetCountriesByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetCountriesByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -358,289 +97,12 @@ export type GetCountriesByClicksRequest = { root?: boolean | undefined; }; -/** - * The 2-letter country code: https://d.to/geo - */ -export const GetCountriesByClicksCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The 2-letter country code: https://d.to/geo - */ -export type GetCountriesByClicksCountry = ClosedEnum; - -export type GetCountriesByClicksResponseBody = { - /** - * The 2-letter country code: https://d.to/geo - */ - country: GetCountriesByClicksCountry; - /** - * The number of clicks from this country - */ - clicks: number; -}; - /** @internal */ export namespace GetCountriesByClicksQueryParamInterval$ { export const inboundSchema = z.nativeEnum(GetCountriesByClicksQueryParamInterval); export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetCountriesByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetCountriesByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetCountriesByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -652,7 +114,7 @@ export namespace GetCountriesByClicksRequest$ { interval: GetCountriesByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCountriesByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -714,7 +176,7 @@ export namespace GetCountriesByClicksRequest$ { interval: GetCountriesByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCountriesByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -747,46 +209,3 @@ export namespace GetCountriesByClicksRequest$ { }; }); } - -/** @internal */ -export namespace GetCountriesByClicksCountry$ { - export const inboundSchema = z.nativeEnum(GetCountriesByClicksCountry); - export const outboundSchema = inboundSchema; -} - -/** @internal */ -export namespace GetCountriesByClicksResponseBody$ { - export const inboundSchema: z.ZodType = - z - .object({ - country: GetCountriesByClicksCountry$.inboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - country: v.country, - clicks: v.clicks, - }; - }); - - export type Outbound = { - country: string; - clicks: number; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetCountriesByClicksResponseBody - > = z - .object({ - country: GetCountriesByClicksCountry$.outboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - country: v.country, - clicks: v.clicks, - }; - }); -} diff --git a/src/models/operations/getcountriesbyclicksdeprecated.ts b/src/models/operations/getcountriesbyclicksdeprecated.ts index 31eac8a..d6cb332 100644 --- a/src/models/operations/getcountriesbyclicksdeprecated.ts +++ b/src/models/operations/getcountriesbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetCountriesByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetCountriesByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetCountriesByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetCountriesByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetCountriesByClicksDeprecatedQueryParamCountry ->; - export type GetCountriesByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetCountriesByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetCountriesByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -358,291 +97,12 @@ export type GetCountriesByClicksDeprecatedRequest = { root?: boolean | undefined; }; -/** - * The 2-letter country code: https://d.to/geo - */ -export const GetCountriesByClicksDeprecatedCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The 2-letter country code: https://d.to/geo - */ -export type GetCountriesByClicksDeprecatedCountry = ClosedEnum< - typeof GetCountriesByClicksDeprecatedCountry ->; - -export type GetCountriesByClicksDeprecatedResponseBody = { - /** - * The 2-letter country code: https://d.to/geo - */ - country: GetCountriesByClicksDeprecatedCountry; - /** - * The number of clicks from this country - */ - clicks: number; -}; - /** @internal */ export namespace GetCountriesByClicksDeprecatedQueryParamInterval$ { export const inboundSchema = z.nativeEnum(GetCountriesByClicksDeprecatedQueryParamInterval); export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetCountriesByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetCountriesByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetCountriesByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -659,7 +119,7 @@ export namespace GetCountriesByClicksDeprecatedRequest$ { GetCountriesByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCountriesByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -726,7 +186,7 @@ export namespace GetCountriesByClicksDeprecatedRequest$ { GetCountriesByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetCountriesByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -759,49 +219,3 @@ export namespace GetCountriesByClicksDeprecatedRequest$ { }; }); } - -/** @internal */ -export namespace GetCountriesByClicksDeprecatedCountry$ { - export const inboundSchema = z.nativeEnum(GetCountriesByClicksDeprecatedCountry); - export const outboundSchema = inboundSchema; -} - -/** @internal */ -export namespace GetCountriesByClicksDeprecatedResponseBody$ { - export const inboundSchema: z.ZodType< - GetCountriesByClicksDeprecatedResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - country: GetCountriesByClicksDeprecatedCountry$.inboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - country: v.country, - clicks: v.clicks, - }; - }); - - export type Outbound = { - country: string; - clicks: number; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetCountriesByClicksDeprecatedResponseBody - > = z - .object({ - country: GetCountriesByClicksDeprecatedCountry$.outboundSchema, - clicks: z.number(), - }) - .transform((v) => { - return { - country: v.country, - clicks: v.clicks, - }; - }); -} diff --git a/src/models/operations/getdevicesbyclicks.ts b/src/models/operations/getdevicesbyclicks.ts index aedbb6c..f4ea119 100644 --- a/src/models/operations/getdevicesbyclicks.ts +++ b/src/models/operations/getdevicesbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetDevicesByClicksQueryParamInterval = ClosedEnum< typeof GetDevicesByClicksQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetDevicesByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetDevicesByClicksQueryParamCountry = ClosedEnum< - typeof GetDevicesByClicksQueryParamCountry ->; - export type GetDevicesByClicksRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetDevicesByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetDevicesByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetDevicesByClicksQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetDevicesByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetDevicesByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetDevicesByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -392,7 +125,7 @@ export namespace GetDevicesByClicksRequest$ { interval: GetDevicesByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetDevicesByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -454,7 +187,7 @@ export namespace GetDevicesByClicksRequest$ { interval: GetDevicesByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetDevicesByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getdevicesbyclicksdeprecated.ts b/src/models/operations/getdevicesbyclicksdeprecated.ts index ae7acc9..7c4d4e6 100644 --- a/src/models/operations/getdevicesbyclicksdeprecated.ts +++ b/src/models/operations/getdevicesbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetDevicesByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetDevicesByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetDevicesByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetDevicesByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetDevicesByClicksDeprecatedQueryParamCountry ->; - export type GetDevicesByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetDevicesByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetDevicesByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetDevicesByClicksDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetDevicesByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetDevicesByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetDevicesByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -396,7 +129,7 @@ export namespace GetDevicesByClicksDeprecatedRequest$ { interval: GetDevicesByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetDevicesByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -462,7 +195,7 @@ export namespace GetDevicesByClicksDeprecatedRequest$ { interval: GetDevicesByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetDevicesByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getosbyclicks.ts b/src/models/operations/getosbyclicks.ts index 8e10bdf..bd2f47e 100644 --- a/src/models/operations/getosbyclicks.ts +++ b/src/models/operations/getosbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -23,266 +24,6 @@ export const GetOSByClicksQueryParamInterval = { */ export type GetOSByClicksQueryParamInterval = ClosedEnum; -/** - * The country to retrieve analytics for. - */ -export const GetOSByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetOSByClicksQueryParamCountry = ClosedEnum; - export type GetOSByClicksRequest = { /** * The domain to filter analytics for. @@ -315,7 +56,7 @@ export type GetOSByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetOSByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -371,12 +112,6 @@ export namespace GetOSByClicksQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetOSByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetOSByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetOSByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -388,7 +123,7 @@ export namespace GetOSByClicksRequest$ { interval: GetOSByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetOSByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -450,7 +185,7 @@ export namespace GetOSByClicksRequest$ { interval: GetOSByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetOSByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getosbyclicksdeprecated.ts b/src/models/operations/getosbyclicksdeprecated.ts index d35e3ec..6da114f 100644 --- a/src/models/operations/getosbyclicksdeprecated.ts +++ b/src/models/operations/getosbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetOSByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetOSByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetOSByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetOSByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetOSByClicksDeprecatedQueryParamCountry ->; - export type GetOSByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetOSByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetOSByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetOSByClicksDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetOSByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetOSByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetOSByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType = z @@ -392,7 +125,7 @@ export namespace GetOSByClicksDeprecatedRequest$ { interval: GetOSByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetOSByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -455,7 +188,7 @@ export namespace GetOSByClicksDeprecatedRequest$ { interval: GetOSByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetOSByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getreferersbyclicks.ts b/src/models/operations/getreferersbyclicks.ts index f062aad..4225082 100644 --- a/src/models/operations/getreferersbyclicks.ts +++ b/src/models/operations/getreferersbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetReferersByClicksQueryParamInterval = ClosedEnum< typeof GetReferersByClicksQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetReferersByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetReferersByClicksQueryParamCountry = ClosedEnum< - typeof GetReferersByClicksQueryParamCountry ->; - export type GetReferersByClicksRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetReferersByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetReferersByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetReferersByClicksQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetReferersByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetReferersByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetReferersByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -392,7 +125,7 @@ export namespace GetReferersByClicksRequest$ { interval: GetReferersByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetReferersByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -454,7 +187,7 @@ export namespace GetReferersByClicksRequest$ { interval: GetReferersByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetReferersByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/getreferersbyclicksdeprecated.ts b/src/models/operations/getreferersbyclicksdeprecated.ts index 7e1adf0..5a42d7a 100644 --- a/src/models/operations/getreferersbyclicksdeprecated.ts +++ b/src/models/operations/getreferersbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetReferersByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetReferersByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetReferersByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetReferersByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetReferersByClicksDeprecatedQueryParamCountry ->; - export type GetReferersByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetReferersByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetReferersByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetReferersByClicksDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetReferersByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetReferersByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetReferersByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -396,7 +129,7 @@ export namespace GetReferersByClicksDeprecatedRequest$ { interval: GetReferersByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetReferersByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -463,7 +196,7 @@ export namespace GetReferersByClicksDeprecatedRequest$ { GetReferersByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetReferersByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/gettimeseriesbyclicks.ts b/src/models/operations/gettimeseriesbyclicks.ts index b25ffad..2795747 100644 --- a/src/models/operations/gettimeseriesbyclicks.ts +++ b/src/models/operations/gettimeseriesbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -23,266 +24,6 @@ export const QueryParamInterval = { */ export type QueryParamInterval = ClosedEnum; -/** - * The country to retrieve analytics for. - */ -export const QueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type QueryParamCountry = ClosedEnum; - export type GetTimeseriesByClicksRequest = { /** * The domain to filter analytics for. @@ -315,7 +56,7 @@ export type GetTimeseriesByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: QueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -371,12 +112,6 @@ export namespace QueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace QueryParamCountry$ { - export const inboundSchema = z.nativeEnum(QueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetTimeseriesByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -388,7 +123,7 @@ export namespace GetTimeseriesByClicksRequest$ { interval: QueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: QueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -450,7 +185,7 @@ export namespace GetTimeseriesByClicksRequest$ { interval: QueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: QueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/gettimeseriesbyclicksdeprecated.ts b/src/models/operations/gettimeseriesbyclicksdeprecated.ts index 9171d0c..e0b74e5 100644 --- a/src/models/operations/gettimeseriesbyclicksdeprecated.ts +++ b/src/models/operations/gettimeseriesbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetTimeseriesByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetTimeseriesByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetTimeseriesByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetTimeseriesByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetTimeseriesByClicksDeprecatedQueryParamCountry ->; - export type GetTimeseriesByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetTimeseriesByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetTimeseriesByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetTimeseriesByClicksDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetTimeseriesByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetTimeseriesByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetTimeseriesByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -397,7 +130,7 @@ export namespace GetTimeseriesByClicksDeprecatedRequest$ { GetTimeseriesByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTimeseriesByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -464,7 +197,7 @@ export namespace GetTimeseriesByClicksDeprecatedRequest$ { GetTimeseriesByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTimeseriesByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/gettoplinksbyclicks.ts b/src/models/operations/gettoplinksbyclicks.ts index 6f8df68..17fd4cf 100644 --- a/src/models/operations/gettoplinksbyclicks.ts +++ b/src/models/operations/gettoplinksbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetTopLinksByClicksQueryParamInterval = ClosedEnum< typeof GetTopLinksByClicksQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetTopLinksByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetTopLinksByClicksQueryParamCountry = ClosedEnum< - typeof GetTopLinksByClicksQueryParamCountry ->; - export type GetTopLinksByClicksRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetTopLinksByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetTopLinksByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetTopLinksByClicksQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetTopLinksByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetTopLinksByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetTopLinksByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -392,7 +125,7 @@ export namespace GetTopLinksByClicksRequest$ { interval: GetTopLinksByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopLinksByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -454,7 +187,7 @@ export namespace GetTopLinksByClicksRequest$ { interval: GetTopLinksByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopLinksByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/gettoplinksbyclicksdeprecated.ts b/src/models/operations/gettoplinksbyclicksdeprecated.ts index a69859b..6cfac01 100644 --- a/src/models/operations/gettoplinksbyclicksdeprecated.ts +++ b/src/models/operations/gettoplinksbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetTopLinksByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetTopLinksByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetTopLinksByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetTopLinksByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetTopLinksByClicksDeprecatedQueryParamCountry ->; - export type GetTopLinksByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetTopLinksByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetTopLinksByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetTopLinksByClicksDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetTopLinksByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetTopLinksByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetTopLinksByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -396,7 +129,7 @@ export namespace GetTopLinksByClicksDeprecatedRequest$ { interval: GetTopLinksByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopLinksByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -463,7 +196,7 @@ export namespace GetTopLinksByClicksDeprecatedRequest$ { GetTopLinksByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopLinksByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/gettopurlsbyclicks.ts b/src/models/operations/gettopurlsbyclicks.ts index 696b701..11bfd26 100644 --- a/src/models/operations/gettopurlsbyclicks.ts +++ b/src/models/operations/gettopurlsbyclicks.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetTopURLsByClicksQueryParamInterval = ClosedEnum< typeof GetTopURLsByClicksQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetTopURLsByClicksQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetTopURLsByClicksQueryParamCountry = ClosedEnum< - typeof GetTopURLsByClicksQueryParamCountry ->; - export type GetTopURLsByClicksRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetTopURLsByClicksRequest = { /** * The country to retrieve analytics for. */ - country?: GetTopURLsByClicksQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetTopURLsByClicksQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetTopURLsByClicksQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetTopURLsByClicksQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetTopURLsByClicksRequest$ { export const inboundSchema: z.ZodType = z @@ -392,7 +125,7 @@ export namespace GetTopURLsByClicksRequest$ { interval: GetTopURLsByClicksQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopURLsByClicksQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -454,7 +187,7 @@ export namespace GetTopURLsByClicksRequest$ { interval: GetTopURLsByClicksQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopURLsByClicksQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/gettopurlsbyclicksdeprecated.ts b/src/models/operations/gettopurlsbyclicksdeprecated.ts index ea13b14..fbf2352 100644 --- a/src/models/operations/gettopurlsbyclicksdeprecated.ts +++ b/src/models/operations/gettopurlsbyclicksdeprecated.ts @@ -3,6 +3,7 @@ */ import { ClosedEnum } from "../../types"; +import * as components from "../components"; import * as z from "zod"; /** @@ -25,268 +26,6 @@ export type GetTopURLsByClicksDeprecatedQueryParamInterval = ClosedEnum< typeof GetTopURLsByClicksDeprecatedQueryParamInterval >; -/** - * The country to retrieve analytics for. - */ -export const GetTopURLsByClicksDeprecatedQueryParamCountry = { - Af: "AF", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Cv: "CV", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kp: "KP", - Kr: "KR", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Sz: "SZ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Us: "US", - Um: "UM", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", - Ax: "AX", - Bq: "BQ", - Cw: "CW", - Gg: "GG", - Im: "IM", - Je: "JE", - Me: "ME", - Bl: "BL", - Mf: "MF", - Rs: "RS", - Sx: "SX", - Ss: "SS", - Xk: "XK", -} as const; -/** - * The country to retrieve analytics for. - */ -export type GetTopURLsByClicksDeprecatedQueryParamCountry = ClosedEnum< - typeof GetTopURLsByClicksDeprecatedQueryParamCountry ->; - export type GetTopURLsByClicksDeprecatedRequest = { /** * The domain to filter analytics for. @@ -319,7 +58,7 @@ export type GetTopURLsByClicksDeprecatedRequest = { /** * The country to retrieve analytics for. */ - country?: GetTopURLsByClicksDeprecatedQueryParamCountry | undefined; + country?: components.CountryCode | undefined; /** * The city to retrieve analytics for. */ @@ -375,12 +114,6 @@ export namespace GetTopURLsByClicksDeprecatedQueryParamInterval$ { export const outboundSchema = inboundSchema; } -/** @internal */ -export namespace GetTopURLsByClicksDeprecatedQueryParamCountry$ { - export const inboundSchema = z.nativeEnum(GetTopURLsByClicksDeprecatedQueryParamCountry); - export const outboundSchema = inboundSchema; -} - /** @internal */ export namespace GetTopURLsByClicksDeprecatedRequest$ { export const inboundSchema: z.ZodType< @@ -396,7 +129,7 @@ export namespace GetTopURLsByClicksDeprecatedRequest$ { interval: GetTopURLsByClicksDeprecatedQueryParamInterval$.inboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopURLsByClicksDeprecatedQueryParamCountry$.inboundSchema.optional(), + country: components.CountryCode$.inboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), @@ -462,7 +195,7 @@ export namespace GetTopURLsByClicksDeprecatedRequest$ { interval: GetTopURLsByClicksDeprecatedQueryParamInterval$.outboundSchema.default("24h"), start: z.string().optional(), end: z.string().optional(), - country: GetTopURLsByClicksDeprecatedQueryParamCountry$.outboundSchema.optional(), + country: components.CountryCode$.outboundSchema.optional(), city: z.string().optional(), device: z.string().optional(), browser: z.string().optional(), diff --git a/src/models/operations/updatelink.ts b/src/models/operations/updatelink.ts index 75cb743..ee7c007 100644 --- a/src/models/operations/updatelink.ts +++ b/src/models/operations/updatelink.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ +import * as components from "../components"; import * as z from "zod"; /** @@ -14,262 +15,6 @@ export type UpdateLinkTagIds = string | Array; */ export type UpdateLinkTagNames = string | Array; -/** - * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. - */ -export type UpdateLinkGeo = { - af?: string | undefined; - al?: string | undefined; - dz?: string | undefined; - as?: string | undefined; - ad?: string | undefined; - ao?: string | undefined; - ai?: string | undefined; - aq?: string | undefined; - ag?: string | undefined; - ar?: string | undefined; - am?: string | undefined; - aw?: string | undefined; - au?: string | undefined; - at?: string | undefined; - az?: string | undefined; - bs?: string | undefined; - bh?: string | undefined; - bd?: string | undefined; - bb?: string | undefined; - by?: string | undefined; - be?: string | undefined; - bz?: string | undefined; - bj?: string | undefined; - bm?: string | undefined; - bt?: string | undefined; - bo?: string | undefined; - ba?: string | undefined; - bw?: string | undefined; - bv?: string | undefined; - br?: string | undefined; - io?: string | undefined; - bn?: string | undefined; - bg?: string | undefined; - bf?: string | undefined; - bi?: string | undefined; - kh?: string | undefined; - cm?: string | undefined; - ca?: string | undefined; - cv?: string | undefined; - ky?: string | undefined; - cf?: string | undefined; - td?: string | undefined; - cl?: string | undefined; - cn?: string | undefined; - cx?: string | undefined; - cc?: string | undefined; - co?: string | undefined; - km?: string | undefined; - cg?: string | undefined; - cd?: string | undefined; - ck?: string | undefined; - cr?: string | undefined; - ci?: string | undefined; - hr?: string | undefined; - cu?: string | undefined; - cy?: string | undefined; - cz?: string | undefined; - dk?: string | undefined; - dj?: string | undefined; - dm?: string | undefined; - do?: string | undefined; - ec?: string | undefined; - eg?: string | undefined; - sv?: string | undefined; - gq?: string | undefined; - er?: string | undefined; - ee?: string | undefined; - et?: string | undefined; - fk?: string | undefined; - fo?: string | undefined; - fj?: string | undefined; - fi?: string | undefined; - fr?: string | undefined; - gf?: string | undefined; - pf?: string | undefined; - tf?: string | undefined; - ga?: string | undefined; - gm?: string | undefined; - ge?: string | undefined; - de?: string | undefined; - gh?: string | undefined; - gi?: string | undefined; - gr?: string | undefined; - gl?: string | undefined; - gd?: string | undefined; - gp?: string | undefined; - gu?: string | undefined; - gt?: string | undefined; - gn?: string | undefined; - gw?: string | undefined; - gy?: string | undefined; - ht?: string | undefined; - hm?: string | undefined; - va?: string | undefined; - hn?: string | undefined; - hk?: string | undefined; - hu?: string | undefined; - is?: string | undefined; - in?: string | undefined; - id?: string | undefined; - ir?: string | undefined; - iq?: string | undefined; - ie?: string | undefined; - il?: string | undefined; - it?: string | undefined; - jm?: string | undefined; - jp?: string | undefined; - jo?: string | undefined; - kz?: string | undefined; - ke?: string | undefined; - ki?: string | undefined; - kp?: string | undefined; - kr?: string | undefined; - kw?: string | undefined; - kg?: string | undefined; - la?: string | undefined; - lv?: string | undefined; - lb?: string | undefined; - ls?: string | undefined; - lr?: string | undefined; - ly?: string | undefined; - li?: string | undefined; - lt?: string | undefined; - lu?: string | undefined; - mo?: string | undefined; - mg?: string | undefined; - mw?: string | undefined; - my?: string | undefined; - mv?: string | undefined; - ml?: string | undefined; - mt?: string | undefined; - mh?: string | undefined; - mq?: string | undefined; - mr?: string | undefined; - mu?: string | undefined; - yt?: string | undefined; - mx?: string | undefined; - fm?: string | undefined; - md?: string | undefined; - mc?: string | undefined; - mn?: string | undefined; - ms?: string | undefined; - ma?: string | undefined; - mz?: string | undefined; - mm?: string | undefined; - na?: string | undefined; - nr?: string | undefined; - np?: string | undefined; - nl?: string | undefined; - nc?: string | undefined; - nz?: string | undefined; - ni?: string | undefined; - ne?: string | undefined; - ng?: string | undefined; - nu?: string | undefined; - nf?: string | undefined; - mk?: string | undefined; - mp?: string | undefined; - no?: string | undefined; - om?: string | undefined; - pk?: string | undefined; - pw?: string | undefined; - ps?: string | undefined; - pa?: string | undefined; - pg?: string | undefined; - py?: string | undefined; - pe?: string | undefined; - ph?: string | undefined; - pn?: string | undefined; - pl?: string | undefined; - pt?: string | undefined; - pr?: string | undefined; - qa?: string | undefined; - re?: string | undefined; - ro?: string | undefined; - ru?: string | undefined; - rw?: string | undefined; - sh?: string | undefined; - kn?: string | undefined; - lc?: string | undefined; - pm?: string | undefined; - vc?: string | undefined; - ws?: string | undefined; - sm?: string | undefined; - st?: string | undefined; - sa?: string | undefined; - sn?: string | undefined; - sc?: string | undefined; - sl?: string | undefined; - sg?: string | undefined; - sk?: string | undefined; - si?: string | undefined; - sb?: string | undefined; - so?: string | undefined; - za?: string | undefined; - gs?: string | undefined; - es?: string | undefined; - lk?: string | undefined; - sd?: string | undefined; - sr?: string | undefined; - sj?: string | undefined; - sz?: string | undefined; - se?: string | undefined; - ch?: string | undefined; - sy?: string | undefined; - tw?: string | undefined; - tj?: string | undefined; - tz?: string | undefined; - th?: string | undefined; - tl?: string | undefined; - tg?: string | undefined; - tk?: string | undefined; - to?: string | undefined; - tt?: string | undefined; - tn?: string | undefined; - tr?: string | undefined; - tm?: string | undefined; - tc?: string | undefined; - tv?: string | undefined; - ug?: string | undefined; - ua?: string | undefined; - ae?: string | undefined; - gb?: string | undefined; - us?: string | undefined; - um?: string | undefined; - uy?: string | undefined; - uz?: string | undefined; - vu?: string | undefined; - ve?: string | undefined; - vn?: string | undefined; - vg?: string | undefined; - vi?: string | undefined; - wf?: string | undefined; - eh?: string | undefined; - ye?: string | undefined; - zm?: string | undefined; - zw?: string | undefined; - ax?: string | undefined; - bq?: string | undefined; - cw?: string | undefined; - gg?: string | undefined; - im?: string | undefined; - je?: string | undefined; - me?: string | undefined; - bl?: string | undefined; - mf?: string | undefined; - rs?: string | undefined; - sx?: string | undefined; - ss?: string | undefined; - xk?: string | undefined; -}; - export type UpdateLinkRequestBody = { /** * The destination URL of the short link. @@ -360,7 +105,7 @@ export type UpdateLinkRequestBody = { /** * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. */ - geo?: UpdateLinkGeo | null | undefined; + geo?: components.LinkGeoTargeting | null | undefined; }; export type UpdateLinkRequest = { @@ -399,1278 +144,6 @@ export namespace UpdateLinkTagNames$ { ]); } -/** @internal */ -export namespace UpdateLinkGeo$ { - export const inboundSchema: z.ZodType = z - .object({ - AF: z.string().optional(), - AL: z.string().optional(), - DZ: z.string().optional(), - AS: z.string().optional(), - AD: z.string().optional(), - AO: z.string().optional(), - AI: z.string().optional(), - AQ: z.string().optional(), - AG: z.string().optional(), - AR: z.string().optional(), - AM: z.string().optional(), - AW: z.string().optional(), - AU: z.string().optional(), - AT: z.string().optional(), - AZ: z.string().optional(), - BS: z.string().optional(), - BH: z.string().optional(), - BD: z.string().optional(), - BB: z.string().optional(), - BY: z.string().optional(), - BE: z.string().optional(), - BZ: z.string().optional(), - BJ: z.string().optional(), - BM: z.string().optional(), - BT: z.string().optional(), - BO: z.string().optional(), - BA: z.string().optional(), - BW: z.string().optional(), - BV: z.string().optional(), - BR: z.string().optional(), - IO: z.string().optional(), - BN: z.string().optional(), - BG: z.string().optional(), - BF: z.string().optional(), - BI: z.string().optional(), - KH: z.string().optional(), - CM: z.string().optional(), - CA: z.string().optional(), - CV: z.string().optional(), - KY: z.string().optional(), - CF: z.string().optional(), - TD: z.string().optional(), - CL: z.string().optional(), - CN: z.string().optional(), - CX: z.string().optional(), - CC: z.string().optional(), - CO: z.string().optional(), - KM: z.string().optional(), - CG: z.string().optional(), - CD: z.string().optional(), - CK: z.string().optional(), - CR: z.string().optional(), - CI: z.string().optional(), - HR: z.string().optional(), - CU: z.string().optional(), - CY: z.string().optional(), - CZ: z.string().optional(), - DK: z.string().optional(), - DJ: z.string().optional(), - DM: z.string().optional(), - DO: z.string().optional(), - EC: z.string().optional(), - EG: z.string().optional(), - SV: z.string().optional(), - GQ: z.string().optional(), - ER: z.string().optional(), - EE: z.string().optional(), - ET: z.string().optional(), - FK: z.string().optional(), - FO: z.string().optional(), - FJ: z.string().optional(), - FI: z.string().optional(), - FR: z.string().optional(), - GF: z.string().optional(), - PF: z.string().optional(), - TF: z.string().optional(), - GA: z.string().optional(), - GM: z.string().optional(), - GE: z.string().optional(), - DE: z.string().optional(), - GH: z.string().optional(), - GI: z.string().optional(), - GR: z.string().optional(), - GL: z.string().optional(), - GD: z.string().optional(), - GP: z.string().optional(), - GU: z.string().optional(), - GT: z.string().optional(), - GN: z.string().optional(), - GW: z.string().optional(), - GY: z.string().optional(), - HT: z.string().optional(), - HM: z.string().optional(), - VA: z.string().optional(), - HN: z.string().optional(), - HK: z.string().optional(), - HU: z.string().optional(), - IS: z.string().optional(), - IN: z.string().optional(), - ID: z.string().optional(), - IR: z.string().optional(), - IQ: z.string().optional(), - IE: z.string().optional(), - IL: z.string().optional(), - IT: z.string().optional(), - JM: z.string().optional(), - JP: z.string().optional(), - JO: z.string().optional(), - KZ: z.string().optional(), - KE: z.string().optional(), - KI: z.string().optional(), - KP: z.string().optional(), - KR: z.string().optional(), - KW: z.string().optional(), - KG: z.string().optional(), - LA: z.string().optional(), - LV: z.string().optional(), - LB: z.string().optional(), - LS: z.string().optional(), - LR: z.string().optional(), - LY: z.string().optional(), - LI: z.string().optional(), - LT: z.string().optional(), - LU: z.string().optional(), - MO: z.string().optional(), - MG: z.string().optional(), - MW: z.string().optional(), - MY: z.string().optional(), - MV: z.string().optional(), - ML: z.string().optional(), - MT: z.string().optional(), - MH: z.string().optional(), - MQ: z.string().optional(), - MR: z.string().optional(), - MU: z.string().optional(), - YT: z.string().optional(), - MX: z.string().optional(), - FM: z.string().optional(), - MD: z.string().optional(), - MC: z.string().optional(), - MN: z.string().optional(), - MS: z.string().optional(), - MA: z.string().optional(), - MZ: z.string().optional(), - MM: z.string().optional(), - NA: z.string().optional(), - NR: z.string().optional(), - NP: z.string().optional(), - NL: z.string().optional(), - NC: z.string().optional(), - NZ: z.string().optional(), - NI: z.string().optional(), - NE: z.string().optional(), - NG: z.string().optional(), - NU: z.string().optional(), - NF: z.string().optional(), - MK: z.string().optional(), - MP: z.string().optional(), - NO: z.string().optional(), - OM: z.string().optional(), - PK: z.string().optional(), - PW: z.string().optional(), - PS: z.string().optional(), - PA: z.string().optional(), - PG: z.string().optional(), - PY: z.string().optional(), - PE: z.string().optional(), - PH: z.string().optional(), - PN: z.string().optional(), - PL: z.string().optional(), - PT: z.string().optional(), - PR: z.string().optional(), - QA: z.string().optional(), - RE: z.string().optional(), - RO: z.string().optional(), - RU: z.string().optional(), - RW: z.string().optional(), - SH: z.string().optional(), - KN: z.string().optional(), - LC: z.string().optional(), - PM: z.string().optional(), - VC: z.string().optional(), - WS: z.string().optional(), - SM: z.string().optional(), - ST: z.string().optional(), - SA: z.string().optional(), - SN: z.string().optional(), - SC: z.string().optional(), - SL: z.string().optional(), - SG: z.string().optional(), - SK: z.string().optional(), - SI: z.string().optional(), - SB: z.string().optional(), - SO: z.string().optional(), - ZA: z.string().optional(), - GS: z.string().optional(), - ES: z.string().optional(), - LK: z.string().optional(), - SD: z.string().optional(), - SR: z.string().optional(), - SJ: z.string().optional(), - SZ: z.string().optional(), - SE: z.string().optional(), - CH: z.string().optional(), - SY: z.string().optional(), - TW: z.string().optional(), - TJ: z.string().optional(), - TZ: z.string().optional(), - TH: z.string().optional(), - TL: z.string().optional(), - TG: z.string().optional(), - TK: z.string().optional(), - TO: z.string().optional(), - TT: z.string().optional(), - TN: z.string().optional(), - TR: z.string().optional(), - TM: z.string().optional(), - TC: z.string().optional(), - TV: z.string().optional(), - UG: z.string().optional(), - UA: z.string().optional(), - AE: z.string().optional(), - GB: z.string().optional(), - US: z.string().optional(), - UM: z.string().optional(), - UY: z.string().optional(), - UZ: z.string().optional(), - VU: z.string().optional(), - VE: z.string().optional(), - VN: z.string().optional(), - VG: z.string().optional(), - VI: z.string().optional(), - WF: z.string().optional(), - EH: z.string().optional(), - YE: z.string().optional(), - ZM: z.string().optional(), - ZW: z.string().optional(), - AX: z.string().optional(), - BQ: z.string().optional(), - CW: z.string().optional(), - GG: z.string().optional(), - IM: z.string().optional(), - JE: z.string().optional(), - ME: z.string().optional(), - BL: z.string().optional(), - MF: z.string().optional(), - RS: z.string().optional(), - SX: z.string().optional(), - SS: z.string().optional(), - XK: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.AF === undefined ? null : { af: v.AF }), - ...(v.AL === undefined ? null : { al: v.AL }), - ...(v.DZ === undefined ? null : { dz: v.DZ }), - ...(v.AS === undefined ? null : { as: v.AS }), - ...(v.AD === undefined ? null : { ad: v.AD }), - ...(v.AO === undefined ? null : { ao: v.AO }), - ...(v.AI === undefined ? null : { ai: v.AI }), - ...(v.AQ === undefined ? null : { aq: v.AQ }), - ...(v.AG === undefined ? null : { ag: v.AG }), - ...(v.AR === undefined ? null : { ar: v.AR }), - ...(v.AM === undefined ? null : { am: v.AM }), - ...(v.AW === undefined ? null : { aw: v.AW }), - ...(v.AU === undefined ? null : { au: v.AU }), - ...(v.AT === undefined ? null : { at: v.AT }), - ...(v.AZ === undefined ? null : { az: v.AZ }), - ...(v.BS === undefined ? null : { bs: v.BS }), - ...(v.BH === undefined ? null : { bh: v.BH }), - ...(v.BD === undefined ? null : { bd: v.BD }), - ...(v.BB === undefined ? null : { bb: v.BB }), - ...(v.BY === undefined ? null : { by: v.BY }), - ...(v.BE === undefined ? null : { be: v.BE }), - ...(v.BZ === undefined ? null : { bz: v.BZ }), - ...(v.BJ === undefined ? null : { bj: v.BJ }), - ...(v.BM === undefined ? null : { bm: v.BM }), - ...(v.BT === undefined ? null : { bt: v.BT }), - ...(v.BO === undefined ? null : { bo: v.BO }), - ...(v.BA === undefined ? null : { ba: v.BA }), - ...(v.BW === undefined ? null : { bw: v.BW }), - ...(v.BV === undefined ? null : { bv: v.BV }), - ...(v.BR === undefined ? null : { br: v.BR }), - ...(v.IO === undefined ? null : { io: v.IO }), - ...(v.BN === undefined ? null : { bn: v.BN }), - ...(v.BG === undefined ? null : { bg: v.BG }), - ...(v.BF === undefined ? null : { bf: v.BF }), - ...(v.BI === undefined ? null : { bi: v.BI }), - ...(v.KH === undefined ? null : { kh: v.KH }), - ...(v.CM === undefined ? null : { cm: v.CM }), - ...(v.CA === undefined ? null : { ca: v.CA }), - ...(v.CV === undefined ? null : { cv: v.CV }), - ...(v.KY === undefined ? null : { ky: v.KY }), - ...(v.CF === undefined ? null : { cf: v.CF }), - ...(v.TD === undefined ? null : { td: v.TD }), - ...(v.CL === undefined ? null : { cl: v.CL }), - ...(v.CN === undefined ? null : { cn: v.CN }), - ...(v.CX === undefined ? null : { cx: v.CX }), - ...(v.CC === undefined ? null : { cc: v.CC }), - ...(v.CO === undefined ? null : { co: v.CO }), - ...(v.KM === undefined ? null : { km: v.KM }), - ...(v.CG === undefined ? null : { cg: v.CG }), - ...(v.CD === undefined ? null : { cd: v.CD }), - ...(v.CK === undefined ? null : { ck: v.CK }), - ...(v.CR === undefined ? null : { cr: v.CR }), - ...(v.CI === undefined ? null : { ci: v.CI }), - ...(v.HR === undefined ? null : { hr: v.HR }), - ...(v.CU === undefined ? null : { cu: v.CU }), - ...(v.CY === undefined ? null : { cy: v.CY }), - ...(v.CZ === undefined ? null : { cz: v.CZ }), - ...(v.DK === undefined ? null : { dk: v.DK }), - ...(v.DJ === undefined ? null : { dj: v.DJ }), - ...(v.DM === undefined ? null : { dm: v.DM }), - ...(v.DO === undefined ? null : { do: v.DO }), - ...(v.EC === undefined ? null : { ec: v.EC }), - ...(v.EG === undefined ? null : { eg: v.EG }), - ...(v.SV === undefined ? null : { sv: v.SV }), - ...(v.GQ === undefined ? null : { gq: v.GQ }), - ...(v.ER === undefined ? null : { er: v.ER }), - ...(v.EE === undefined ? null : { ee: v.EE }), - ...(v.ET === undefined ? null : { et: v.ET }), - ...(v.FK === undefined ? null : { fk: v.FK }), - ...(v.FO === undefined ? null : { fo: v.FO }), - ...(v.FJ === undefined ? null : { fj: v.FJ }), - ...(v.FI === undefined ? null : { fi: v.FI }), - ...(v.FR === undefined ? null : { fr: v.FR }), - ...(v.GF === undefined ? null : { gf: v.GF }), - ...(v.PF === undefined ? null : { pf: v.PF }), - ...(v.TF === undefined ? null : { tf: v.TF }), - ...(v.GA === undefined ? null : { ga: v.GA }), - ...(v.GM === undefined ? null : { gm: v.GM }), - ...(v.GE === undefined ? null : { ge: v.GE }), - ...(v.DE === undefined ? null : { de: v.DE }), - ...(v.GH === undefined ? null : { gh: v.GH }), - ...(v.GI === undefined ? null : { gi: v.GI }), - ...(v.GR === undefined ? null : { gr: v.GR }), - ...(v.GL === undefined ? null : { gl: v.GL }), - ...(v.GD === undefined ? null : { gd: v.GD }), - ...(v.GP === undefined ? null : { gp: v.GP }), - ...(v.GU === undefined ? null : { gu: v.GU }), - ...(v.GT === undefined ? null : { gt: v.GT }), - ...(v.GN === undefined ? null : { gn: v.GN }), - ...(v.GW === undefined ? null : { gw: v.GW }), - ...(v.GY === undefined ? null : { gy: v.GY }), - ...(v.HT === undefined ? null : { ht: v.HT }), - ...(v.HM === undefined ? null : { hm: v.HM }), - ...(v.VA === undefined ? null : { va: v.VA }), - ...(v.HN === undefined ? null : { hn: v.HN }), - ...(v.HK === undefined ? null : { hk: v.HK }), - ...(v.HU === undefined ? null : { hu: v.HU }), - ...(v.IS === undefined ? null : { is: v.IS }), - ...(v.IN === undefined ? null : { in: v.IN }), - ...(v.ID === undefined ? null : { id: v.ID }), - ...(v.IR === undefined ? null : { ir: v.IR }), - ...(v.IQ === undefined ? null : { iq: v.IQ }), - ...(v.IE === undefined ? null : { ie: v.IE }), - ...(v.IL === undefined ? null : { il: v.IL }), - ...(v.IT === undefined ? null : { it: v.IT }), - ...(v.JM === undefined ? null : { jm: v.JM }), - ...(v.JP === undefined ? null : { jp: v.JP }), - ...(v.JO === undefined ? null : { jo: v.JO }), - ...(v.KZ === undefined ? null : { kz: v.KZ }), - ...(v.KE === undefined ? null : { ke: v.KE }), - ...(v.KI === undefined ? null : { ki: v.KI }), - ...(v.KP === undefined ? null : { kp: v.KP }), - ...(v.KR === undefined ? null : { kr: v.KR }), - ...(v.KW === undefined ? null : { kw: v.KW }), - ...(v.KG === undefined ? null : { kg: v.KG }), - ...(v.LA === undefined ? null : { la: v.LA }), - ...(v.LV === undefined ? null : { lv: v.LV }), - ...(v.LB === undefined ? null : { lb: v.LB }), - ...(v.LS === undefined ? null : { ls: v.LS }), - ...(v.LR === undefined ? null : { lr: v.LR }), - ...(v.LY === undefined ? null : { ly: v.LY }), - ...(v.LI === undefined ? null : { li: v.LI }), - ...(v.LT === undefined ? null : { lt: v.LT }), - ...(v.LU === undefined ? null : { lu: v.LU }), - ...(v.MO === undefined ? null : { mo: v.MO }), - ...(v.MG === undefined ? null : { mg: v.MG }), - ...(v.MW === undefined ? null : { mw: v.MW }), - ...(v.MY === undefined ? null : { my: v.MY }), - ...(v.MV === undefined ? null : { mv: v.MV }), - ...(v.ML === undefined ? null : { ml: v.ML }), - ...(v.MT === undefined ? null : { mt: v.MT }), - ...(v.MH === undefined ? null : { mh: v.MH }), - ...(v.MQ === undefined ? null : { mq: v.MQ }), - ...(v.MR === undefined ? null : { mr: v.MR }), - ...(v.MU === undefined ? null : { mu: v.MU }), - ...(v.YT === undefined ? null : { yt: v.YT }), - ...(v.MX === undefined ? null : { mx: v.MX }), - ...(v.FM === undefined ? null : { fm: v.FM }), - ...(v.MD === undefined ? null : { md: v.MD }), - ...(v.MC === undefined ? null : { mc: v.MC }), - ...(v.MN === undefined ? null : { mn: v.MN }), - ...(v.MS === undefined ? null : { ms: v.MS }), - ...(v.MA === undefined ? null : { ma: v.MA }), - ...(v.MZ === undefined ? null : { mz: v.MZ }), - ...(v.MM === undefined ? null : { mm: v.MM }), - ...(v.NA === undefined ? null : { na: v.NA }), - ...(v.NR === undefined ? null : { nr: v.NR }), - ...(v.NP === undefined ? null : { np: v.NP }), - ...(v.NL === undefined ? null : { nl: v.NL }), - ...(v.NC === undefined ? null : { nc: v.NC }), - ...(v.NZ === undefined ? null : { nz: v.NZ }), - ...(v.NI === undefined ? null : { ni: v.NI }), - ...(v.NE === undefined ? null : { ne: v.NE }), - ...(v.NG === undefined ? null : { ng: v.NG }), - ...(v.NU === undefined ? null : { nu: v.NU }), - ...(v.NF === undefined ? null : { nf: v.NF }), - ...(v.MK === undefined ? null : { mk: v.MK }), - ...(v.MP === undefined ? null : { mp: v.MP }), - ...(v.NO === undefined ? null : { no: v.NO }), - ...(v.OM === undefined ? null : { om: v.OM }), - ...(v.PK === undefined ? null : { pk: v.PK }), - ...(v.PW === undefined ? null : { pw: v.PW }), - ...(v.PS === undefined ? null : { ps: v.PS }), - ...(v.PA === undefined ? null : { pa: v.PA }), - ...(v.PG === undefined ? null : { pg: v.PG }), - ...(v.PY === undefined ? null : { py: v.PY }), - ...(v.PE === undefined ? null : { pe: v.PE }), - ...(v.PH === undefined ? null : { ph: v.PH }), - ...(v.PN === undefined ? null : { pn: v.PN }), - ...(v.PL === undefined ? null : { pl: v.PL }), - ...(v.PT === undefined ? null : { pt: v.PT }), - ...(v.PR === undefined ? null : { pr: v.PR }), - ...(v.QA === undefined ? null : { qa: v.QA }), - ...(v.RE === undefined ? null : { re: v.RE }), - ...(v.RO === undefined ? null : { ro: v.RO }), - ...(v.RU === undefined ? null : { ru: v.RU }), - ...(v.RW === undefined ? null : { rw: v.RW }), - ...(v.SH === undefined ? null : { sh: v.SH }), - ...(v.KN === undefined ? null : { kn: v.KN }), - ...(v.LC === undefined ? null : { lc: v.LC }), - ...(v.PM === undefined ? null : { pm: v.PM }), - ...(v.VC === undefined ? null : { vc: v.VC }), - ...(v.WS === undefined ? null : { ws: v.WS }), - ...(v.SM === undefined ? null : { sm: v.SM }), - ...(v.ST === undefined ? null : { st: v.ST }), - ...(v.SA === undefined ? null : { sa: v.SA }), - ...(v.SN === undefined ? null : { sn: v.SN }), - ...(v.SC === undefined ? null : { sc: v.SC }), - ...(v.SL === undefined ? null : { sl: v.SL }), - ...(v.SG === undefined ? null : { sg: v.SG }), - ...(v.SK === undefined ? null : { sk: v.SK }), - ...(v.SI === undefined ? null : { si: v.SI }), - ...(v.SB === undefined ? null : { sb: v.SB }), - ...(v.SO === undefined ? null : { so: v.SO }), - ...(v.ZA === undefined ? null : { za: v.ZA }), - ...(v.GS === undefined ? null : { gs: v.GS }), - ...(v.ES === undefined ? null : { es: v.ES }), - ...(v.LK === undefined ? null : { lk: v.LK }), - ...(v.SD === undefined ? null : { sd: v.SD }), - ...(v.SR === undefined ? null : { sr: v.SR }), - ...(v.SJ === undefined ? null : { sj: v.SJ }), - ...(v.SZ === undefined ? null : { sz: v.SZ }), - ...(v.SE === undefined ? null : { se: v.SE }), - ...(v.CH === undefined ? null : { ch: v.CH }), - ...(v.SY === undefined ? null : { sy: v.SY }), - ...(v.TW === undefined ? null : { tw: v.TW }), - ...(v.TJ === undefined ? null : { tj: v.TJ }), - ...(v.TZ === undefined ? null : { tz: v.TZ }), - ...(v.TH === undefined ? null : { th: v.TH }), - ...(v.TL === undefined ? null : { tl: v.TL }), - ...(v.TG === undefined ? null : { tg: v.TG }), - ...(v.TK === undefined ? null : { tk: v.TK }), - ...(v.TO === undefined ? null : { to: v.TO }), - ...(v.TT === undefined ? null : { tt: v.TT }), - ...(v.TN === undefined ? null : { tn: v.TN }), - ...(v.TR === undefined ? null : { tr: v.TR }), - ...(v.TM === undefined ? null : { tm: v.TM }), - ...(v.TC === undefined ? null : { tc: v.TC }), - ...(v.TV === undefined ? null : { tv: v.TV }), - ...(v.UG === undefined ? null : { ug: v.UG }), - ...(v.UA === undefined ? null : { ua: v.UA }), - ...(v.AE === undefined ? null : { ae: v.AE }), - ...(v.GB === undefined ? null : { gb: v.GB }), - ...(v.US === undefined ? null : { us: v.US }), - ...(v.UM === undefined ? null : { um: v.UM }), - ...(v.UY === undefined ? null : { uy: v.UY }), - ...(v.UZ === undefined ? null : { uz: v.UZ }), - ...(v.VU === undefined ? null : { vu: v.VU }), - ...(v.VE === undefined ? null : { ve: v.VE }), - ...(v.VN === undefined ? null : { vn: v.VN }), - ...(v.VG === undefined ? null : { vg: v.VG }), - ...(v.VI === undefined ? null : { vi: v.VI }), - ...(v.WF === undefined ? null : { wf: v.WF }), - ...(v.EH === undefined ? null : { eh: v.EH }), - ...(v.YE === undefined ? null : { ye: v.YE }), - ...(v.ZM === undefined ? null : { zm: v.ZM }), - ...(v.ZW === undefined ? null : { zw: v.ZW }), - ...(v.AX === undefined ? null : { ax: v.AX }), - ...(v.BQ === undefined ? null : { bq: v.BQ }), - ...(v.CW === undefined ? null : { cw: v.CW }), - ...(v.GG === undefined ? null : { gg: v.GG }), - ...(v.IM === undefined ? null : { im: v.IM }), - ...(v.JE === undefined ? null : { je: v.JE }), - ...(v.ME === undefined ? null : { me: v.ME }), - ...(v.BL === undefined ? null : { bl: v.BL }), - ...(v.MF === undefined ? null : { mf: v.MF }), - ...(v.RS === undefined ? null : { rs: v.RS }), - ...(v.SX === undefined ? null : { sx: v.SX }), - ...(v.SS === undefined ? null : { ss: v.SS }), - ...(v.XK === undefined ? null : { xk: v.XK }), - }; - }); - - export type Outbound = { - AF?: string | undefined; - AL?: string | undefined; - DZ?: string | undefined; - AS?: string | undefined; - AD?: string | undefined; - AO?: string | undefined; - AI?: string | undefined; - AQ?: string | undefined; - AG?: string | undefined; - AR?: string | undefined; - AM?: string | undefined; - AW?: string | undefined; - AU?: string | undefined; - AT?: string | undefined; - AZ?: string | undefined; - BS?: string | undefined; - BH?: string | undefined; - BD?: string | undefined; - BB?: string | undefined; - BY?: string | undefined; - BE?: string | undefined; - BZ?: string | undefined; - BJ?: string | undefined; - BM?: string | undefined; - BT?: string | undefined; - BO?: string | undefined; - BA?: string | undefined; - BW?: string | undefined; - BV?: string | undefined; - BR?: string | undefined; - IO?: string | undefined; - BN?: string | undefined; - BG?: string | undefined; - BF?: string | undefined; - BI?: string | undefined; - KH?: string | undefined; - CM?: string | undefined; - CA?: string | undefined; - CV?: string | undefined; - KY?: string | undefined; - CF?: string | undefined; - TD?: string | undefined; - CL?: string | undefined; - CN?: string | undefined; - CX?: string | undefined; - CC?: string | undefined; - CO?: string | undefined; - KM?: string | undefined; - CG?: string | undefined; - CD?: string | undefined; - CK?: string | undefined; - CR?: string | undefined; - CI?: string | undefined; - HR?: string | undefined; - CU?: string | undefined; - CY?: string | undefined; - CZ?: string | undefined; - DK?: string | undefined; - DJ?: string | undefined; - DM?: string | undefined; - DO?: string | undefined; - EC?: string | undefined; - EG?: string | undefined; - SV?: string | undefined; - GQ?: string | undefined; - ER?: string | undefined; - EE?: string | undefined; - ET?: string | undefined; - FK?: string | undefined; - FO?: string | undefined; - FJ?: string | undefined; - FI?: string | undefined; - FR?: string | undefined; - GF?: string | undefined; - PF?: string | undefined; - TF?: string | undefined; - GA?: string | undefined; - GM?: string | undefined; - GE?: string | undefined; - DE?: string | undefined; - GH?: string | undefined; - GI?: string | undefined; - GR?: string | undefined; - GL?: string | undefined; - GD?: string | undefined; - GP?: string | undefined; - GU?: string | undefined; - GT?: string | undefined; - GN?: string | undefined; - GW?: string | undefined; - GY?: string | undefined; - HT?: string | undefined; - HM?: string | undefined; - VA?: string | undefined; - HN?: string | undefined; - HK?: string | undefined; - HU?: string | undefined; - IS?: string | undefined; - IN?: string | undefined; - ID?: string | undefined; - IR?: string | undefined; - IQ?: string | undefined; - IE?: string | undefined; - IL?: string | undefined; - IT?: string | undefined; - JM?: string | undefined; - JP?: string | undefined; - JO?: string | undefined; - KZ?: string | undefined; - KE?: string | undefined; - KI?: string | undefined; - KP?: string | undefined; - KR?: string | undefined; - KW?: string | undefined; - KG?: string | undefined; - LA?: string | undefined; - LV?: string | undefined; - LB?: string | undefined; - LS?: string | undefined; - LR?: string | undefined; - LY?: string | undefined; - LI?: string | undefined; - LT?: string | undefined; - LU?: string | undefined; - MO?: string | undefined; - MG?: string | undefined; - MW?: string | undefined; - MY?: string | undefined; - MV?: string | undefined; - ML?: string | undefined; - MT?: string | undefined; - MH?: string | undefined; - MQ?: string | undefined; - MR?: string | undefined; - MU?: string | undefined; - YT?: string | undefined; - MX?: string | undefined; - FM?: string | undefined; - MD?: string | undefined; - MC?: string | undefined; - MN?: string | undefined; - MS?: string | undefined; - MA?: string | undefined; - MZ?: string | undefined; - MM?: string | undefined; - NA?: string | undefined; - NR?: string | undefined; - NP?: string | undefined; - NL?: string | undefined; - NC?: string | undefined; - NZ?: string | undefined; - NI?: string | undefined; - NE?: string | undefined; - NG?: string | undefined; - NU?: string | undefined; - NF?: string | undefined; - MK?: string | undefined; - MP?: string | undefined; - NO?: string | undefined; - OM?: string | undefined; - PK?: string | undefined; - PW?: string | undefined; - PS?: string | undefined; - PA?: string | undefined; - PG?: string | undefined; - PY?: string | undefined; - PE?: string | undefined; - PH?: string | undefined; - PN?: string | undefined; - PL?: string | undefined; - PT?: string | undefined; - PR?: string | undefined; - QA?: string | undefined; - RE?: string | undefined; - RO?: string | undefined; - RU?: string | undefined; - RW?: string | undefined; - SH?: string | undefined; - KN?: string | undefined; - LC?: string | undefined; - PM?: string | undefined; - VC?: string | undefined; - WS?: string | undefined; - SM?: string | undefined; - ST?: string | undefined; - SA?: string | undefined; - SN?: string | undefined; - SC?: string | undefined; - SL?: string | undefined; - SG?: string | undefined; - SK?: string | undefined; - SI?: string | undefined; - SB?: string | undefined; - SO?: string | undefined; - ZA?: string | undefined; - GS?: string | undefined; - ES?: string | undefined; - LK?: string | undefined; - SD?: string | undefined; - SR?: string | undefined; - SJ?: string | undefined; - SZ?: string | undefined; - SE?: string | undefined; - CH?: string | undefined; - SY?: string | undefined; - TW?: string | undefined; - TJ?: string | undefined; - TZ?: string | undefined; - TH?: string | undefined; - TL?: string | undefined; - TG?: string | undefined; - TK?: string | undefined; - TO?: string | undefined; - TT?: string | undefined; - TN?: string | undefined; - TR?: string | undefined; - TM?: string | undefined; - TC?: string | undefined; - TV?: string | undefined; - UG?: string | undefined; - UA?: string | undefined; - AE?: string | undefined; - GB?: string | undefined; - US?: string | undefined; - UM?: string | undefined; - UY?: string | undefined; - UZ?: string | undefined; - VU?: string | undefined; - VE?: string | undefined; - VN?: string | undefined; - VG?: string | undefined; - VI?: string | undefined; - WF?: string | undefined; - EH?: string | undefined; - YE?: string | undefined; - ZM?: string | undefined; - ZW?: string | undefined; - AX?: string | undefined; - BQ?: string | undefined; - CW?: string | undefined; - GG?: string | undefined; - IM?: string | undefined; - JE?: string | undefined; - ME?: string | undefined; - BL?: string | undefined; - MF?: string | undefined; - RS?: string | undefined; - SX?: string | undefined; - SS?: string | undefined; - XK?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - af: z.string().optional(), - al: z.string().optional(), - dz: z.string().optional(), - as: z.string().optional(), - ad: z.string().optional(), - ao: z.string().optional(), - ai: z.string().optional(), - aq: z.string().optional(), - ag: z.string().optional(), - ar: z.string().optional(), - am: z.string().optional(), - aw: z.string().optional(), - au: z.string().optional(), - at: z.string().optional(), - az: z.string().optional(), - bs: z.string().optional(), - bh: z.string().optional(), - bd: z.string().optional(), - bb: z.string().optional(), - by: z.string().optional(), - be: z.string().optional(), - bz: z.string().optional(), - bj: z.string().optional(), - bm: z.string().optional(), - bt: z.string().optional(), - bo: z.string().optional(), - ba: z.string().optional(), - bw: z.string().optional(), - bv: z.string().optional(), - br: z.string().optional(), - io: z.string().optional(), - bn: z.string().optional(), - bg: z.string().optional(), - bf: z.string().optional(), - bi: z.string().optional(), - kh: z.string().optional(), - cm: z.string().optional(), - ca: z.string().optional(), - cv: z.string().optional(), - ky: z.string().optional(), - cf: z.string().optional(), - td: z.string().optional(), - cl: z.string().optional(), - cn: z.string().optional(), - cx: z.string().optional(), - cc: z.string().optional(), - co: z.string().optional(), - km: z.string().optional(), - cg: z.string().optional(), - cd: z.string().optional(), - ck: z.string().optional(), - cr: z.string().optional(), - ci: z.string().optional(), - hr: z.string().optional(), - cu: z.string().optional(), - cy: z.string().optional(), - cz: z.string().optional(), - dk: z.string().optional(), - dj: z.string().optional(), - dm: z.string().optional(), - do: z.string().optional(), - ec: z.string().optional(), - eg: z.string().optional(), - sv: z.string().optional(), - gq: z.string().optional(), - er: z.string().optional(), - ee: z.string().optional(), - et: z.string().optional(), - fk: z.string().optional(), - fo: z.string().optional(), - fj: z.string().optional(), - fi: z.string().optional(), - fr: z.string().optional(), - gf: z.string().optional(), - pf: z.string().optional(), - tf: z.string().optional(), - ga: z.string().optional(), - gm: z.string().optional(), - ge: z.string().optional(), - de: z.string().optional(), - gh: z.string().optional(), - gi: z.string().optional(), - gr: z.string().optional(), - gl: z.string().optional(), - gd: z.string().optional(), - gp: z.string().optional(), - gu: z.string().optional(), - gt: z.string().optional(), - gn: z.string().optional(), - gw: z.string().optional(), - gy: z.string().optional(), - ht: z.string().optional(), - hm: z.string().optional(), - va: z.string().optional(), - hn: z.string().optional(), - hk: z.string().optional(), - hu: z.string().optional(), - is: z.string().optional(), - in: z.string().optional(), - id: z.string().optional(), - ir: z.string().optional(), - iq: z.string().optional(), - ie: z.string().optional(), - il: z.string().optional(), - it: z.string().optional(), - jm: z.string().optional(), - jp: z.string().optional(), - jo: z.string().optional(), - kz: z.string().optional(), - ke: z.string().optional(), - ki: z.string().optional(), - kp: z.string().optional(), - kr: z.string().optional(), - kw: z.string().optional(), - kg: z.string().optional(), - la: z.string().optional(), - lv: z.string().optional(), - lb: z.string().optional(), - ls: z.string().optional(), - lr: z.string().optional(), - ly: z.string().optional(), - li: z.string().optional(), - lt: z.string().optional(), - lu: z.string().optional(), - mo: z.string().optional(), - mg: z.string().optional(), - mw: z.string().optional(), - my: z.string().optional(), - mv: z.string().optional(), - ml: z.string().optional(), - mt: z.string().optional(), - mh: z.string().optional(), - mq: z.string().optional(), - mr: z.string().optional(), - mu: z.string().optional(), - yt: z.string().optional(), - mx: z.string().optional(), - fm: z.string().optional(), - md: z.string().optional(), - mc: z.string().optional(), - mn: z.string().optional(), - ms: z.string().optional(), - ma: z.string().optional(), - mz: z.string().optional(), - mm: z.string().optional(), - na: z.string().optional(), - nr: z.string().optional(), - np: z.string().optional(), - nl: z.string().optional(), - nc: z.string().optional(), - nz: z.string().optional(), - ni: z.string().optional(), - ne: z.string().optional(), - ng: z.string().optional(), - nu: z.string().optional(), - nf: z.string().optional(), - mk: z.string().optional(), - mp: z.string().optional(), - no: z.string().optional(), - om: z.string().optional(), - pk: z.string().optional(), - pw: z.string().optional(), - ps: z.string().optional(), - pa: z.string().optional(), - pg: z.string().optional(), - py: z.string().optional(), - pe: z.string().optional(), - ph: z.string().optional(), - pn: z.string().optional(), - pl: z.string().optional(), - pt: z.string().optional(), - pr: z.string().optional(), - qa: z.string().optional(), - re: z.string().optional(), - ro: z.string().optional(), - ru: z.string().optional(), - rw: z.string().optional(), - sh: z.string().optional(), - kn: z.string().optional(), - lc: z.string().optional(), - pm: z.string().optional(), - vc: z.string().optional(), - ws: z.string().optional(), - sm: z.string().optional(), - st: z.string().optional(), - sa: z.string().optional(), - sn: z.string().optional(), - sc: z.string().optional(), - sl: z.string().optional(), - sg: z.string().optional(), - sk: z.string().optional(), - si: z.string().optional(), - sb: z.string().optional(), - so: z.string().optional(), - za: z.string().optional(), - gs: z.string().optional(), - es: z.string().optional(), - lk: z.string().optional(), - sd: z.string().optional(), - sr: z.string().optional(), - sj: z.string().optional(), - sz: z.string().optional(), - se: z.string().optional(), - ch: z.string().optional(), - sy: z.string().optional(), - tw: z.string().optional(), - tj: z.string().optional(), - tz: z.string().optional(), - th: z.string().optional(), - tl: z.string().optional(), - tg: z.string().optional(), - tk: z.string().optional(), - to: z.string().optional(), - tt: z.string().optional(), - tn: z.string().optional(), - tr: z.string().optional(), - tm: z.string().optional(), - tc: z.string().optional(), - tv: z.string().optional(), - ug: z.string().optional(), - ua: z.string().optional(), - ae: z.string().optional(), - gb: z.string().optional(), - us: z.string().optional(), - um: z.string().optional(), - uy: z.string().optional(), - uz: z.string().optional(), - vu: z.string().optional(), - ve: z.string().optional(), - vn: z.string().optional(), - vg: z.string().optional(), - vi: z.string().optional(), - wf: z.string().optional(), - eh: z.string().optional(), - ye: z.string().optional(), - zm: z.string().optional(), - zw: z.string().optional(), - ax: z.string().optional(), - bq: z.string().optional(), - cw: z.string().optional(), - gg: z.string().optional(), - im: z.string().optional(), - je: z.string().optional(), - me: z.string().optional(), - bl: z.string().optional(), - mf: z.string().optional(), - rs: z.string().optional(), - sx: z.string().optional(), - ss: z.string().optional(), - xk: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.af === undefined ? null : { AF: v.af }), - ...(v.al === undefined ? null : { AL: v.al }), - ...(v.dz === undefined ? null : { DZ: v.dz }), - ...(v.as === undefined ? null : { AS: v.as }), - ...(v.ad === undefined ? null : { AD: v.ad }), - ...(v.ao === undefined ? null : { AO: v.ao }), - ...(v.ai === undefined ? null : { AI: v.ai }), - ...(v.aq === undefined ? null : { AQ: v.aq }), - ...(v.ag === undefined ? null : { AG: v.ag }), - ...(v.ar === undefined ? null : { AR: v.ar }), - ...(v.am === undefined ? null : { AM: v.am }), - ...(v.aw === undefined ? null : { AW: v.aw }), - ...(v.au === undefined ? null : { AU: v.au }), - ...(v.at === undefined ? null : { AT: v.at }), - ...(v.az === undefined ? null : { AZ: v.az }), - ...(v.bs === undefined ? null : { BS: v.bs }), - ...(v.bh === undefined ? null : { BH: v.bh }), - ...(v.bd === undefined ? null : { BD: v.bd }), - ...(v.bb === undefined ? null : { BB: v.bb }), - ...(v.by === undefined ? null : { BY: v.by }), - ...(v.be === undefined ? null : { BE: v.be }), - ...(v.bz === undefined ? null : { BZ: v.bz }), - ...(v.bj === undefined ? null : { BJ: v.bj }), - ...(v.bm === undefined ? null : { BM: v.bm }), - ...(v.bt === undefined ? null : { BT: v.bt }), - ...(v.bo === undefined ? null : { BO: v.bo }), - ...(v.ba === undefined ? null : { BA: v.ba }), - ...(v.bw === undefined ? null : { BW: v.bw }), - ...(v.bv === undefined ? null : { BV: v.bv }), - ...(v.br === undefined ? null : { BR: v.br }), - ...(v.io === undefined ? null : { IO: v.io }), - ...(v.bn === undefined ? null : { BN: v.bn }), - ...(v.bg === undefined ? null : { BG: v.bg }), - ...(v.bf === undefined ? null : { BF: v.bf }), - ...(v.bi === undefined ? null : { BI: v.bi }), - ...(v.kh === undefined ? null : { KH: v.kh }), - ...(v.cm === undefined ? null : { CM: v.cm }), - ...(v.ca === undefined ? null : { CA: v.ca }), - ...(v.cv === undefined ? null : { CV: v.cv }), - ...(v.ky === undefined ? null : { KY: v.ky }), - ...(v.cf === undefined ? null : { CF: v.cf }), - ...(v.td === undefined ? null : { TD: v.td }), - ...(v.cl === undefined ? null : { CL: v.cl }), - ...(v.cn === undefined ? null : { CN: v.cn }), - ...(v.cx === undefined ? null : { CX: v.cx }), - ...(v.cc === undefined ? null : { CC: v.cc }), - ...(v.co === undefined ? null : { CO: v.co }), - ...(v.km === undefined ? null : { KM: v.km }), - ...(v.cg === undefined ? null : { CG: v.cg }), - ...(v.cd === undefined ? null : { CD: v.cd }), - ...(v.ck === undefined ? null : { CK: v.ck }), - ...(v.cr === undefined ? null : { CR: v.cr }), - ...(v.ci === undefined ? null : { CI: v.ci }), - ...(v.hr === undefined ? null : { HR: v.hr }), - ...(v.cu === undefined ? null : { CU: v.cu }), - ...(v.cy === undefined ? null : { CY: v.cy }), - ...(v.cz === undefined ? null : { CZ: v.cz }), - ...(v.dk === undefined ? null : { DK: v.dk }), - ...(v.dj === undefined ? null : { DJ: v.dj }), - ...(v.dm === undefined ? null : { DM: v.dm }), - ...(v.do === undefined ? null : { DO: v.do }), - ...(v.ec === undefined ? null : { EC: v.ec }), - ...(v.eg === undefined ? null : { EG: v.eg }), - ...(v.sv === undefined ? null : { SV: v.sv }), - ...(v.gq === undefined ? null : { GQ: v.gq }), - ...(v.er === undefined ? null : { ER: v.er }), - ...(v.ee === undefined ? null : { EE: v.ee }), - ...(v.et === undefined ? null : { ET: v.et }), - ...(v.fk === undefined ? null : { FK: v.fk }), - ...(v.fo === undefined ? null : { FO: v.fo }), - ...(v.fj === undefined ? null : { FJ: v.fj }), - ...(v.fi === undefined ? null : { FI: v.fi }), - ...(v.fr === undefined ? null : { FR: v.fr }), - ...(v.gf === undefined ? null : { GF: v.gf }), - ...(v.pf === undefined ? null : { PF: v.pf }), - ...(v.tf === undefined ? null : { TF: v.tf }), - ...(v.ga === undefined ? null : { GA: v.ga }), - ...(v.gm === undefined ? null : { GM: v.gm }), - ...(v.ge === undefined ? null : { GE: v.ge }), - ...(v.de === undefined ? null : { DE: v.de }), - ...(v.gh === undefined ? null : { GH: v.gh }), - ...(v.gi === undefined ? null : { GI: v.gi }), - ...(v.gr === undefined ? null : { GR: v.gr }), - ...(v.gl === undefined ? null : { GL: v.gl }), - ...(v.gd === undefined ? null : { GD: v.gd }), - ...(v.gp === undefined ? null : { GP: v.gp }), - ...(v.gu === undefined ? null : { GU: v.gu }), - ...(v.gt === undefined ? null : { GT: v.gt }), - ...(v.gn === undefined ? null : { GN: v.gn }), - ...(v.gw === undefined ? null : { GW: v.gw }), - ...(v.gy === undefined ? null : { GY: v.gy }), - ...(v.ht === undefined ? null : { HT: v.ht }), - ...(v.hm === undefined ? null : { HM: v.hm }), - ...(v.va === undefined ? null : { VA: v.va }), - ...(v.hn === undefined ? null : { HN: v.hn }), - ...(v.hk === undefined ? null : { HK: v.hk }), - ...(v.hu === undefined ? null : { HU: v.hu }), - ...(v.is === undefined ? null : { IS: v.is }), - ...(v.in === undefined ? null : { IN: v.in }), - ...(v.id === undefined ? null : { ID: v.id }), - ...(v.ir === undefined ? null : { IR: v.ir }), - ...(v.iq === undefined ? null : { IQ: v.iq }), - ...(v.ie === undefined ? null : { IE: v.ie }), - ...(v.il === undefined ? null : { IL: v.il }), - ...(v.it === undefined ? null : { IT: v.it }), - ...(v.jm === undefined ? null : { JM: v.jm }), - ...(v.jp === undefined ? null : { JP: v.jp }), - ...(v.jo === undefined ? null : { JO: v.jo }), - ...(v.kz === undefined ? null : { KZ: v.kz }), - ...(v.ke === undefined ? null : { KE: v.ke }), - ...(v.ki === undefined ? null : { KI: v.ki }), - ...(v.kp === undefined ? null : { KP: v.kp }), - ...(v.kr === undefined ? null : { KR: v.kr }), - ...(v.kw === undefined ? null : { KW: v.kw }), - ...(v.kg === undefined ? null : { KG: v.kg }), - ...(v.la === undefined ? null : { LA: v.la }), - ...(v.lv === undefined ? null : { LV: v.lv }), - ...(v.lb === undefined ? null : { LB: v.lb }), - ...(v.ls === undefined ? null : { LS: v.ls }), - ...(v.lr === undefined ? null : { LR: v.lr }), - ...(v.ly === undefined ? null : { LY: v.ly }), - ...(v.li === undefined ? null : { LI: v.li }), - ...(v.lt === undefined ? null : { LT: v.lt }), - ...(v.lu === undefined ? null : { LU: v.lu }), - ...(v.mo === undefined ? null : { MO: v.mo }), - ...(v.mg === undefined ? null : { MG: v.mg }), - ...(v.mw === undefined ? null : { MW: v.mw }), - ...(v.my === undefined ? null : { MY: v.my }), - ...(v.mv === undefined ? null : { MV: v.mv }), - ...(v.ml === undefined ? null : { ML: v.ml }), - ...(v.mt === undefined ? null : { MT: v.mt }), - ...(v.mh === undefined ? null : { MH: v.mh }), - ...(v.mq === undefined ? null : { MQ: v.mq }), - ...(v.mr === undefined ? null : { MR: v.mr }), - ...(v.mu === undefined ? null : { MU: v.mu }), - ...(v.yt === undefined ? null : { YT: v.yt }), - ...(v.mx === undefined ? null : { MX: v.mx }), - ...(v.fm === undefined ? null : { FM: v.fm }), - ...(v.md === undefined ? null : { MD: v.md }), - ...(v.mc === undefined ? null : { MC: v.mc }), - ...(v.mn === undefined ? null : { MN: v.mn }), - ...(v.ms === undefined ? null : { MS: v.ms }), - ...(v.ma === undefined ? null : { MA: v.ma }), - ...(v.mz === undefined ? null : { MZ: v.mz }), - ...(v.mm === undefined ? null : { MM: v.mm }), - ...(v.na === undefined ? null : { NA: v.na }), - ...(v.nr === undefined ? null : { NR: v.nr }), - ...(v.np === undefined ? null : { NP: v.np }), - ...(v.nl === undefined ? null : { NL: v.nl }), - ...(v.nc === undefined ? null : { NC: v.nc }), - ...(v.nz === undefined ? null : { NZ: v.nz }), - ...(v.ni === undefined ? null : { NI: v.ni }), - ...(v.ne === undefined ? null : { NE: v.ne }), - ...(v.ng === undefined ? null : { NG: v.ng }), - ...(v.nu === undefined ? null : { NU: v.nu }), - ...(v.nf === undefined ? null : { NF: v.nf }), - ...(v.mk === undefined ? null : { MK: v.mk }), - ...(v.mp === undefined ? null : { MP: v.mp }), - ...(v.no === undefined ? null : { NO: v.no }), - ...(v.om === undefined ? null : { OM: v.om }), - ...(v.pk === undefined ? null : { PK: v.pk }), - ...(v.pw === undefined ? null : { PW: v.pw }), - ...(v.ps === undefined ? null : { PS: v.ps }), - ...(v.pa === undefined ? null : { PA: v.pa }), - ...(v.pg === undefined ? null : { PG: v.pg }), - ...(v.py === undefined ? null : { PY: v.py }), - ...(v.pe === undefined ? null : { PE: v.pe }), - ...(v.ph === undefined ? null : { PH: v.ph }), - ...(v.pn === undefined ? null : { PN: v.pn }), - ...(v.pl === undefined ? null : { PL: v.pl }), - ...(v.pt === undefined ? null : { PT: v.pt }), - ...(v.pr === undefined ? null : { PR: v.pr }), - ...(v.qa === undefined ? null : { QA: v.qa }), - ...(v.re === undefined ? null : { RE: v.re }), - ...(v.ro === undefined ? null : { RO: v.ro }), - ...(v.ru === undefined ? null : { RU: v.ru }), - ...(v.rw === undefined ? null : { RW: v.rw }), - ...(v.sh === undefined ? null : { SH: v.sh }), - ...(v.kn === undefined ? null : { KN: v.kn }), - ...(v.lc === undefined ? null : { LC: v.lc }), - ...(v.pm === undefined ? null : { PM: v.pm }), - ...(v.vc === undefined ? null : { VC: v.vc }), - ...(v.ws === undefined ? null : { WS: v.ws }), - ...(v.sm === undefined ? null : { SM: v.sm }), - ...(v.st === undefined ? null : { ST: v.st }), - ...(v.sa === undefined ? null : { SA: v.sa }), - ...(v.sn === undefined ? null : { SN: v.sn }), - ...(v.sc === undefined ? null : { SC: v.sc }), - ...(v.sl === undefined ? null : { SL: v.sl }), - ...(v.sg === undefined ? null : { SG: v.sg }), - ...(v.sk === undefined ? null : { SK: v.sk }), - ...(v.si === undefined ? null : { SI: v.si }), - ...(v.sb === undefined ? null : { SB: v.sb }), - ...(v.so === undefined ? null : { SO: v.so }), - ...(v.za === undefined ? null : { ZA: v.za }), - ...(v.gs === undefined ? null : { GS: v.gs }), - ...(v.es === undefined ? null : { ES: v.es }), - ...(v.lk === undefined ? null : { LK: v.lk }), - ...(v.sd === undefined ? null : { SD: v.sd }), - ...(v.sr === undefined ? null : { SR: v.sr }), - ...(v.sj === undefined ? null : { SJ: v.sj }), - ...(v.sz === undefined ? null : { SZ: v.sz }), - ...(v.se === undefined ? null : { SE: v.se }), - ...(v.ch === undefined ? null : { CH: v.ch }), - ...(v.sy === undefined ? null : { SY: v.sy }), - ...(v.tw === undefined ? null : { TW: v.tw }), - ...(v.tj === undefined ? null : { TJ: v.tj }), - ...(v.tz === undefined ? null : { TZ: v.tz }), - ...(v.th === undefined ? null : { TH: v.th }), - ...(v.tl === undefined ? null : { TL: v.tl }), - ...(v.tg === undefined ? null : { TG: v.tg }), - ...(v.tk === undefined ? null : { TK: v.tk }), - ...(v.to === undefined ? null : { TO: v.to }), - ...(v.tt === undefined ? null : { TT: v.tt }), - ...(v.tn === undefined ? null : { TN: v.tn }), - ...(v.tr === undefined ? null : { TR: v.tr }), - ...(v.tm === undefined ? null : { TM: v.tm }), - ...(v.tc === undefined ? null : { TC: v.tc }), - ...(v.tv === undefined ? null : { TV: v.tv }), - ...(v.ug === undefined ? null : { UG: v.ug }), - ...(v.ua === undefined ? null : { UA: v.ua }), - ...(v.ae === undefined ? null : { AE: v.ae }), - ...(v.gb === undefined ? null : { GB: v.gb }), - ...(v.us === undefined ? null : { US: v.us }), - ...(v.um === undefined ? null : { UM: v.um }), - ...(v.uy === undefined ? null : { UY: v.uy }), - ...(v.uz === undefined ? null : { UZ: v.uz }), - ...(v.vu === undefined ? null : { VU: v.vu }), - ...(v.ve === undefined ? null : { VE: v.ve }), - ...(v.vn === undefined ? null : { VN: v.vn }), - ...(v.vg === undefined ? null : { VG: v.vg }), - ...(v.vi === undefined ? null : { VI: v.vi }), - ...(v.wf === undefined ? null : { WF: v.wf }), - ...(v.eh === undefined ? null : { EH: v.eh }), - ...(v.ye === undefined ? null : { YE: v.ye }), - ...(v.zm === undefined ? null : { ZM: v.zm }), - ...(v.zw === undefined ? null : { ZW: v.zw }), - ...(v.ax === undefined ? null : { AX: v.ax }), - ...(v.bq === undefined ? null : { BQ: v.bq }), - ...(v.cw === undefined ? null : { CW: v.cw }), - ...(v.gg === undefined ? null : { GG: v.gg }), - ...(v.im === undefined ? null : { IM: v.im }), - ...(v.je === undefined ? null : { JE: v.je }), - ...(v.me === undefined ? null : { ME: v.me }), - ...(v.bl === undefined ? null : { BL: v.bl }), - ...(v.mf === undefined ? null : { MF: v.mf }), - ...(v.rs === undefined ? null : { RS: v.rs }), - ...(v.sx === undefined ? null : { SX: v.sx }), - ...(v.ss === undefined ? null : { SS: v.ss }), - ...(v.xk === undefined ? null : { XK: v.xk }), - }; - }); -} - /** @internal */ export namespace UpdateLinkRequestBody$ { export const inboundSchema: z.ZodType = z @@ -1696,7 +169,7 @@ export namespace UpdateLinkRequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => UpdateLinkGeo$.inboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(), }) .transform((v) => { return { @@ -1747,7 +220,7 @@ export namespace UpdateLinkRequestBody$ { rewrite: boolean; ios?: string | null | undefined; android?: string | null | undefined; - geo?: UpdateLinkGeo$.Outbound | null | undefined; + geo?: components.LinkGeoTargeting$.Outbound | null | undefined; }; export const outboundSchema: z.ZodType = z @@ -1773,7 +246,7 @@ export namespace UpdateLinkRequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => UpdateLinkGeo$.outboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(), }) .transform((v) => { return { diff --git a/src/models/operations/upsertlink.ts b/src/models/operations/upsertlink.ts index f996f94..a5ddfac 100644 --- a/src/models/operations/upsertlink.ts +++ b/src/models/operations/upsertlink.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ +import * as components from "../components"; import * as z from "zod"; /** @@ -14,262 +15,6 @@ export type UpsertLinkTagIds = string | Array; */ export type UpsertLinkTagNames = string | Array; -/** - * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. - */ -export type UpsertLinkGeo = { - af?: string | undefined; - al?: string | undefined; - dz?: string | undefined; - as?: string | undefined; - ad?: string | undefined; - ao?: string | undefined; - ai?: string | undefined; - aq?: string | undefined; - ag?: string | undefined; - ar?: string | undefined; - am?: string | undefined; - aw?: string | undefined; - au?: string | undefined; - at?: string | undefined; - az?: string | undefined; - bs?: string | undefined; - bh?: string | undefined; - bd?: string | undefined; - bb?: string | undefined; - by?: string | undefined; - be?: string | undefined; - bz?: string | undefined; - bj?: string | undefined; - bm?: string | undefined; - bt?: string | undefined; - bo?: string | undefined; - ba?: string | undefined; - bw?: string | undefined; - bv?: string | undefined; - br?: string | undefined; - io?: string | undefined; - bn?: string | undefined; - bg?: string | undefined; - bf?: string | undefined; - bi?: string | undefined; - kh?: string | undefined; - cm?: string | undefined; - ca?: string | undefined; - cv?: string | undefined; - ky?: string | undefined; - cf?: string | undefined; - td?: string | undefined; - cl?: string | undefined; - cn?: string | undefined; - cx?: string | undefined; - cc?: string | undefined; - co?: string | undefined; - km?: string | undefined; - cg?: string | undefined; - cd?: string | undefined; - ck?: string | undefined; - cr?: string | undefined; - ci?: string | undefined; - hr?: string | undefined; - cu?: string | undefined; - cy?: string | undefined; - cz?: string | undefined; - dk?: string | undefined; - dj?: string | undefined; - dm?: string | undefined; - do?: string | undefined; - ec?: string | undefined; - eg?: string | undefined; - sv?: string | undefined; - gq?: string | undefined; - er?: string | undefined; - ee?: string | undefined; - et?: string | undefined; - fk?: string | undefined; - fo?: string | undefined; - fj?: string | undefined; - fi?: string | undefined; - fr?: string | undefined; - gf?: string | undefined; - pf?: string | undefined; - tf?: string | undefined; - ga?: string | undefined; - gm?: string | undefined; - ge?: string | undefined; - de?: string | undefined; - gh?: string | undefined; - gi?: string | undefined; - gr?: string | undefined; - gl?: string | undefined; - gd?: string | undefined; - gp?: string | undefined; - gu?: string | undefined; - gt?: string | undefined; - gn?: string | undefined; - gw?: string | undefined; - gy?: string | undefined; - ht?: string | undefined; - hm?: string | undefined; - va?: string | undefined; - hn?: string | undefined; - hk?: string | undefined; - hu?: string | undefined; - is?: string | undefined; - in?: string | undefined; - id?: string | undefined; - ir?: string | undefined; - iq?: string | undefined; - ie?: string | undefined; - il?: string | undefined; - it?: string | undefined; - jm?: string | undefined; - jp?: string | undefined; - jo?: string | undefined; - kz?: string | undefined; - ke?: string | undefined; - ki?: string | undefined; - kp?: string | undefined; - kr?: string | undefined; - kw?: string | undefined; - kg?: string | undefined; - la?: string | undefined; - lv?: string | undefined; - lb?: string | undefined; - ls?: string | undefined; - lr?: string | undefined; - ly?: string | undefined; - li?: string | undefined; - lt?: string | undefined; - lu?: string | undefined; - mo?: string | undefined; - mg?: string | undefined; - mw?: string | undefined; - my?: string | undefined; - mv?: string | undefined; - ml?: string | undefined; - mt?: string | undefined; - mh?: string | undefined; - mq?: string | undefined; - mr?: string | undefined; - mu?: string | undefined; - yt?: string | undefined; - mx?: string | undefined; - fm?: string | undefined; - md?: string | undefined; - mc?: string | undefined; - mn?: string | undefined; - ms?: string | undefined; - ma?: string | undefined; - mz?: string | undefined; - mm?: string | undefined; - na?: string | undefined; - nr?: string | undefined; - np?: string | undefined; - nl?: string | undefined; - nc?: string | undefined; - nz?: string | undefined; - ni?: string | undefined; - ne?: string | undefined; - ng?: string | undefined; - nu?: string | undefined; - nf?: string | undefined; - mk?: string | undefined; - mp?: string | undefined; - no?: string | undefined; - om?: string | undefined; - pk?: string | undefined; - pw?: string | undefined; - ps?: string | undefined; - pa?: string | undefined; - pg?: string | undefined; - py?: string | undefined; - pe?: string | undefined; - ph?: string | undefined; - pn?: string | undefined; - pl?: string | undefined; - pt?: string | undefined; - pr?: string | undefined; - qa?: string | undefined; - re?: string | undefined; - ro?: string | undefined; - ru?: string | undefined; - rw?: string | undefined; - sh?: string | undefined; - kn?: string | undefined; - lc?: string | undefined; - pm?: string | undefined; - vc?: string | undefined; - ws?: string | undefined; - sm?: string | undefined; - st?: string | undefined; - sa?: string | undefined; - sn?: string | undefined; - sc?: string | undefined; - sl?: string | undefined; - sg?: string | undefined; - sk?: string | undefined; - si?: string | undefined; - sb?: string | undefined; - so?: string | undefined; - za?: string | undefined; - gs?: string | undefined; - es?: string | undefined; - lk?: string | undefined; - sd?: string | undefined; - sr?: string | undefined; - sj?: string | undefined; - sz?: string | undefined; - se?: string | undefined; - ch?: string | undefined; - sy?: string | undefined; - tw?: string | undefined; - tj?: string | undefined; - tz?: string | undefined; - th?: string | undefined; - tl?: string | undefined; - tg?: string | undefined; - tk?: string | undefined; - to?: string | undefined; - tt?: string | undefined; - tn?: string | undefined; - tr?: string | undefined; - tm?: string | undefined; - tc?: string | undefined; - tv?: string | undefined; - ug?: string | undefined; - ua?: string | undefined; - ae?: string | undefined; - gb?: string | undefined; - us?: string | undefined; - um?: string | undefined; - uy?: string | undefined; - uz?: string | undefined; - vu?: string | undefined; - ve?: string | undefined; - vn?: string | undefined; - vg?: string | undefined; - vi?: string | undefined; - wf?: string | undefined; - eh?: string | undefined; - ye?: string | undefined; - zm?: string | undefined; - zw?: string | undefined; - ax?: string | undefined; - bq?: string | undefined; - cw?: string | undefined; - gg?: string | undefined; - im?: string | undefined; - je?: string | undefined; - me?: string | undefined; - bl?: string | undefined; - mf?: string | undefined; - rs?: string | undefined; - sx?: string | undefined; - ss?: string | undefined; - xk?: string | undefined; -}; - export type UpsertLinkRequestBody = { /** * The destination URL of the short link. @@ -360,7 +105,7 @@ export type UpsertLinkRequestBody = { /** * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. */ - geo?: UpsertLinkGeo | null | undefined; + geo?: components.LinkGeoTargeting | null | undefined; }; /** @internal */ @@ -391,1278 +136,6 @@ export namespace UpsertLinkTagNames$ { ]); } -/** @internal */ -export namespace UpsertLinkGeo$ { - export const inboundSchema: z.ZodType = z - .object({ - AF: z.string().optional(), - AL: z.string().optional(), - DZ: z.string().optional(), - AS: z.string().optional(), - AD: z.string().optional(), - AO: z.string().optional(), - AI: z.string().optional(), - AQ: z.string().optional(), - AG: z.string().optional(), - AR: z.string().optional(), - AM: z.string().optional(), - AW: z.string().optional(), - AU: z.string().optional(), - AT: z.string().optional(), - AZ: z.string().optional(), - BS: z.string().optional(), - BH: z.string().optional(), - BD: z.string().optional(), - BB: z.string().optional(), - BY: z.string().optional(), - BE: z.string().optional(), - BZ: z.string().optional(), - BJ: z.string().optional(), - BM: z.string().optional(), - BT: z.string().optional(), - BO: z.string().optional(), - BA: z.string().optional(), - BW: z.string().optional(), - BV: z.string().optional(), - BR: z.string().optional(), - IO: z.string().optional(), - BN: z.string().optional(), - BG: z.string().optional(), - BF: z.string().optional(), - BI: z.string().optional(), - KH: z.string().optional(), - CM: z.string().optional(), - CA: z.string().optional(), - CV: z.string().optional(), - KY: z.string().optional(), - CF: z.string().optional(), - TD: z.string().optional(), - CL: z.string().optional(), - CN: z.string().optional(), - CX: z.string().optional(), - CC: z.string().optional(), - CO: z.string().optional(), - KM: z.string().optional(), - CG: z.string().optional(), - CD: z.string().optional(), - CK: z.string().optional(), - CR: z.string().optional(), - CI: z.string().optional(), - HR: z.string().optional(), - CU: z.string().optional(), - CY: z.string().optional(), - CZ: z.string().optional(), - DK: z.string().optional(), - DJ: z.string().optional(), - DM: z.string().optional(), - DO: z.string().optional(), - EC: z.string().optional(), - EG: z.string().optional(), - SV: z.string().optional(), - GQ: z.string().optional(), - ER: z.string().optional(), - EE: z.string().optional(), - ET: z.string().optional(), - FK: z.string().optional(), - FO: z.string().optional(), - FJ: z.string().optional(), - FI: z.string().optional(), - FR: z.string().optional(), - GF: z.string().optional(), - PF: z.string().optional(), - TF: z.string().optional(), - GA: z.string().optional(), - GM: z.string().optional(), - GE: z.string().optional(), - DE: z.string().optional(), - GH: z.string().optional(), - GI: z.string().optional(), - GR: z.string().optional(), - GL: z.string().optional(), - GD: z.string().optional(), - GP: z.string().optional(), - GU: z.string().optional(), - GT: z.string().optional(), - GN: z.string().optional(), - GW: z.string().optional(), - GY: z.string().optional(), - HT: z.string().optional(), - HM: z.string().optional(), - VA: z.string().optional(), - HN: z.string().optional(), - HK: z.string().optional(), - HU: z.string().optional(), - IS: z.string().optional(), - IN: z.string().optional(), - ID: z.string().optional(), - IR: z.string().optional(), - IQ: z.string().optional(), - IE: z.string().optional(), - IL: z.string().optional(), - IT: z.string().optional(), - JM: z.string().optional(), - JP: z.string().optional(), - JO: z.string().optional(), - KZ: z.string().optional(), - KE: z.string().optional(), - KI: z.string().optional(), - KP: z.string().optional(), - KR: z.string().optional(), - KW: z.string().optional(), - KG: z.string().optional(), - LA: z.string().optional(), - LV: z.string().optional(), - LB: z.string().optional(), - LS: z.string().optional(), - LR: z.string().optional(), - LY: z.string().optional(), - LI: z.string().optional(), - LT: z.string().optional(), - LU: z.string().optional(), - MO: z.string().optional(), - MG: z.string().optional(), - MW: z.string().optional(), - MY: z.string().optional(), - MV: z.string().optional(), - ML: z.string().optional(), - MT: z.string().optional(), - MH: z.string().optional(), - MQ: z.string().optional(), - MR: z.string().optional(), - MU: z.string().optional(), - YT: z.string().optional(), - MX: z.string().optional(), - FM: z.string().optional(), - MD: z.string().optional(), - MC: z.string().optional(), - MN: z.string().optional(), - MS: z.string().optional(), - MA: z.string().optional(), - MZ: z.string().optional(), - MM: z.string().optional(), - NA: z.string().optional(), - NR: z.string().optional(), - NP: z.string().optional(), - NL: z.string().optional(), - NC: z.string().optional(), - NZ: z.string().optional(), - NI: z.string().optional(), - NE: z.string().optional(), - NG: z.string().optional(), - NU: z.string().optional(), - NF: z.string().optional(), - MK: z.string().optional(), - MP: z.string().optional(), - NO: z.string().optional(), - OM: z.string().optional(), - PK: z.string().optional(), - PW: z.string().optional(), - PS: z.string().optional(), - PA: z.string().optional(), - PG: z.string().optional(), - PY: z.string().optional(), - PE: z.string().optional(), - PH: z.string().optional(), - PN: z.string().optional(), - PL: z.string().optional(), - PT: z.string().optional(), - PR: z.string().optional(), - QA: z.string().optional(), - RE: z.string().optional(), - RO: z.string().optional(), - RU: z.string().optional(), - RW: z.string().optional(), - SH: z.string().optional(), - KN: z.string().optional(), - LC: z.string().optional(), - PM: z.string().optional(), - VC: z.string().optional(), - WS: z.string().optional(), - SM: z.string().optional(), - ST: z.string().optional(), - SA: z.string().optional(), - SN: z.string().optional(), - SC: z.string().optional(), - SL: z.string().optional(), - SG: z.string().optional(), - SK: z.string().optional(), - SI: z.string().optional(), - SB: z.string().optional(), - SO: z.string().optional(), - ZA: z.string().optional(), - GS: z.string().optional(), - ES: z.string().optional(), - LK: z.string().optional(), - SD: z.string().optional(), - SR: z.string().optional(), - SJ: z.string().optional(), - SZ: z.string().optional(), - SE: z.string().optional(), - CH: z.string().optional(), - SY: z.string().optional(), - TW: z.string().optional(), - TJ: z.string().optional(), - TZ: z.string().optional(), - TH: z.string().optional(), - TL: z.string().optional(), - TG: z.string().optional(), - TK: z.string().optional(), - TO: z.string().optional(), - TT: z.string().optional(), - TN: z.string().optional(), - TR: z.string().optional(), - TM: z.string().optional(), - TC: z.string().optional(), - TV: z.string().optional(), - UG: z.string().optional(), - UA: z.string().optional(), - AE: z.string().optional(), - GB: z.string().optional(), - US: z.string().optional(), - UM: z.string().optional(), - UY: z.string().optional(), - UZ: z.string().optional(), - VU: z.string().optional(), - VE: z.string().optional(), - VN: z.string().optional(), - VG: z.string().optional(), - VI: z.string().optional(), - WF: z.string().optional(), - EH: z.string().optional(), - YE: z.string().optional(), - ZM: z.string().optional(), - ZW: z.string().optional(), - AX: z.string().optional(), - BQ: z.string().optional(), - CW: z.string().optional(), - GG: z.string().optional(), - IM: z.string().optional(), - JE: z.string().optional(), - ME: z.string().optional(), - BL: z.string().optional(), - MF: z.string().optional(), - RS: z.string().optional(), - SX: z.string().optional(), - SS: z.string().optional(), - XK: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.AF === undefined ? null : { af: v.AF }), - ...(v.AL === undefined ? null : { al: v.AL }), - ...(v.DZ === undefined ? null : { dz: v.DZ }), - ...(v.AS === undefined ? null : { as: v.AS }), - ...(v.AD === undefined ? null : { ad: v.AD }), - ...(v.AO === undefined ? null : { ao: v.AO }), - ...(v.AI === undefined ? null : { ai: v.AI }), - ...(v.AQ === undefined ? null : { aq: v.AQ }), - ...(v.AG === undefined ? null : { ag: v.AG }), - ...(v.AR === undefined ? null : { ar: v.AR }), - ...(v.AM === undefined ? null : { am: v.AM }), - ...(v.AW === undefined ? null : { aw: v.AW }), - ...(v.AU === undefined ? null : { au: v.AU }), - ...(v.AT === undefined ? null : { at: v.AT }), - ...(v.AZ === undefined ? null : { az: v.AZ }), - ...(v.BS === undefined ? null : { bs: v.BS }), - ...(v.BH === undefined ? null : { bh: v.BH }), - ...(v.BD === undefined ? null : { bd: v.BD }), - ...(v.BB === undefined ? null : { bb: v.BB }), - ...(v.BY === undefined ? null : { by: v.BY }), - ...(v.BE === undefined ? null : { be: v.BE }), - ...(v.BZ === undefined ? null : { bz: v.BZ }), - ...(v.BJ === undefined ? null : { bj: v.BJ }), - ...(v.BM === undefined ? null : { bm: v.BM }), - ...(v.BT === undefined ? null : { bt: v.BT }), - ...(v.BO === undefined ? null : { bo: v.BO }), - ...(v.BA === undefined ? null : { ba: v.BA }), - ...(v.BW === undefined ? null : { bw: v.BW }), - ...(v.BV === undefined ? null : { bv: v.BV }), - ...(v.BR === undefined ? null : { br: v.BR }), - ...(v.IO === undefined ? null : { io: v.IO }), - ...(v.BN === undefined ? null : { bn: v.BN }), - ...(v.BG === undefined ? null : { bg: v.BG }), - ...(v.BF === undefined ? null : { bf: v.BF }), - ...(v.BI === undefined ? null : { bi: v.BI }), - ...(v.KH === undefined ? null : { kh: v.KH }), - ...(v.CM === undefined ? null : { cm: v.CM }), - ...(v.CA === undefined ? null : { ca: v.CA }), - ...(v.CV === undefined ? null : { cv: v.CV }), - ...(v.KY === undefined ? null : { ky: v.KY }), - ...(v.CF === undefined ? null : { cf: v.CF }), - ...(v.TD === undefined ? null : { td: v.TD }), - ...(v.CL === undefined ? null : { cl: v.CL }), - ...(v.CN === undefined ? null : { cn: v.CN }), - ...(v.CX === undefined ? null : { cx: v.CX }), - ...(v.CC === undefined ? null : { cc: v.CC }), - ...(v.CO === undefined ? null : { co: v.CO }), - ...(v.KM === undefined ? null : { km: v.KM }), - ...(v.CG === undefined ? null : { cg: v.CG }), - ...(v.CD === undefined ? null : { cd: v.CD }), - ...(v.CK === undefined ? null : { ck: v.CK }), - ...(v.CR === undefined ? null : { cr: v.CR }), - ...(v.CI === undefined ? null : { ci: v.CI }), - ...(v.HR === undefined ? null : { hr: v.HR }), - ...(v.CU === undefined ? null : { cu: v.CU }), - ...(v.CY === undefined ? null : { cy: v.CY }), - ...(v.CZ === undefined ? null : { cz: v.CZ }), - ...(v.DK === undefined ? null : { dk: v.DK }), - ...(v.DJ === undefined ? null : { dj: v.DJ }), - ...(v.DM === undefined ? null : { dm: v.DM }), - ...(v.DO === undefined ? null : { do: v.DO }), - ...(v.EC === undefined ? null : { ec: v.EC }), - ...(v.EG === undefined ? null : { eg: v.EG }), - ...(v.SV === undefined ? null : { sv: v.SV }), - ...(v.GQ === undefined ? null : { gq: v.GQ }), - ...(v.ER === undefined ? null : { er: v.ER }), - ...(v.EE === undefined ? null : { ee: v.EE }), - ...(v.ET === undefined ? null : { et: v.ET }), - ...(v.FK === undefined ? null : { fk: v.FK }), - ...(v.FO === undefined ? null : { fo: v.FO }), - ...(v.FJ === undefined ? null : { fj: v.FJ }), - ...(v.FI === undefined ? null : { fi: v.FI }), - ...(v.FR === undefined ? null : { fr: v.FR }), - ...(v.GF === undefined ? null : { gf: v.GF }), - ...(v.PF === undefined ? null : { pf: v.PF }), - ...(v.TF === undefined ? null : { tf: v.TF }), - ...(v.GA === undefined ? null : { ga: v.GA }), - ...(v.GM === undefined ? null : { gm: v.GM }), - ...(v.GE === undefined ? null : { ge: v.GE }), - ...(v.DE === undefined ? null : { de: v.DE }), - ...(v.GH === undefined ? null : { gh: v.GH }), - ...(v.GI === undefined ? null : { gi: v.GI }), - ...(v.GR === undefined ? null : { gr: v.GR }), - ...(v.GL === undefined ? null : { gl: v.GL }), - ...(v.GD === undefined ? null : { gd: v.GD }), - ...(v.GP === undefined ? null : { gp: v.GP }), - ...(v.GU === undefined ? null : { gu: v.GU }), - ...(v.GT === undefined ? null : { gt: v.GT }), - ...(v.GN === undefined ? null : { gn: v.GN }), - ...(v.GW === undefined ? null : { gw: v.GW }), - ...(v.GY === undefined ? null : { gy: v.GY }), - ...(v.HT === undefined ? null : { ht: v.HT }), - ...(v.HM === undefined ? null : { hm: v.HM }), - ...(v.VA === undefined ? null : { va: v.VA }), - ...(v.HN === undefined ? null : { hn: v.HN }), - ...(v.HK === undefined ? null : { hk: v.HK }), - ...(v.HU === undefined ? null : { hu: v.HU }), - ...(v.IS === undefined ? null : { is: v.IS }), - ...(v.IN === undefined ? null : { in: v.IN }), - ...(v.ID === undefined ? null : { id: v.ID }), - ...(v.IR === undefined ? null : { ir: v.IR }), - ...(v.IQ === undefined ? null : { iq: v.IQ }), - ...(v.IE === undefined ? null : { ie: v.IE }), - ...(v.IL === undefined ? null : { il: v.IL }), - ...(v.IT === undefined ? null : { it: v.IT }), - ...(v.JM === undefined ? null : { jm: v.JM }), - ...(v.JP === undefined ? null : { jp: v.JP }), - ...(v.JO === undefined ? null : { jo: v.JO }), - ...(v.KZ === undefined ? null : { kz: v.KZ }), - ...(v.KE === undefined ? null : { ke: v.KE }), - ...(v.KI === undefined ? null : { ki: v.KI }), - ...(v.KP === undefined ? null : { kp: v.KP }), - ...(v.KR === undefined ? null : { kr: v.KR }), - ...(v.KW === undefined ? null : { kw: v.KW }), - ...(v.KG === undefined ? null : { kg: v.KG }), - ...(v.LA === undefined ? null : { la: v.LA }), - ...(v.LV === undefined ? null : { lv: v.LV }), - ...(v.LB === undefined ? null : { lb: v.LB }), - ...(v.LS === undefined ? null : { ls: v.LS }), - ...(v.LR === undefined ? null : { lr: v.LR }), - ...(v.LY === undefined ? null : { ly: v.LY }), - ...(v.LI === undefined ? null : { li: v.LI }), - ...(v.LT === undefined ? null : { lt: v.LT }), - ...(v.LU === undefined ? null : { lu: v.LU }), - ...(v.MO === undefined ? null : { mo: v.MO }), - ...(v.MG === undefined ? null : { mg: v.MG }), - ...(v.MW === undefined ? null : { mw: v.MW }), - ...(v.MY === undefined ? null : { my: v.MY }), - ...(v.MV === undefined ? null : { mv: v.MV }), - ...(v.ML === undefined ? null : { ml: v.ML }), - ...(v.MT === undefined ? null : { mt: v.MT }), - ...(v.MH === undefined ? null : { mh: v.MH }), - ...(v.MQ === undefined ? null : { mq: v.MQ }), - ...(v.MR === undefined ? null : { mr: v.MR }), - ...(v.MU === undefined ? null : { mu: v.MU }), - ...(v.YT === undefined ? null : { yt: v.YT }), - ...(v.MX === undefined ? null : { mx: v.MX }), - ...(v.FM === undefined ? null : { fm: v.FM }), - ...(v.MD === undefined ? null : { md: v.MD }), - ...(v.MC === undefined ? null : { mc: v.MC }), - ...(v.MN === undefined ? null : { mn: v.MN }), - ...(v.MS === undefined ? null : { ms: v.MS }), - ...(v.MA === undefined ? null : { ma: v.MA }), - ...(v.MZ === undefined ? null : { mz: v.MZ }), - ...(v.MM === undefined ? null : { mm: v.MM }), - ...(v.NA === undefined ? null : { na: v.NA }), - ...(v.NR === undefined ? null : { nr: v.NR }), - ...(v.NP === undefined ? null : { np: v.NP }), - ...(v.NL === undefined ? null : { nl: v.NL }), - ...(v.NC === undefined ? null : { nc: v.NC }), - ...(v.NZ === undefined ? null : { nz: v.NZ }), - ...(v.NI === undefined ? null : { ni: v.NI }), - ...(v.NE === undefined ? null : { ne: v.NE }), - ...(v.NG === undefined ? null : { ng: v.NG }), - ...(v.NU === undefined ? null : { nu: v.NU }), - ...(v.NF === undefined ? null : { nf: v.NF }), - ...(v.MK === undefined ? null : { mk: v.MK }), - ...(v.MP === undefined ? null : { mp: v.MP }), - ...(v.NO === undefined ? null : { no: v.NO }), - ...(v.OM === undefined ? null : { om: v.OM }), - ...(v.PK === undefined ? null : { pk: v.PK }), - ...(v.PW === undefined ? null : { pw: v.PW }), - ...(v.PS === undefined ? null : { ps: v.PS }), - ...(v.PA === undefined ? null : { pa: v.PA }), - ...(v.PG === undefined ? null : { pg: v.PG }), - ...(v.PY === undefined ? null : { py: v.PY }), - ...(v.PE === undefined ? null : { pe: v.PE }), - ...(v.PH === undefined ? null : { ph: v.PH }), - ...(v.PN === undefined ? null : { pn: v.PN }), - ...(v.PL === undefined ? null : { pl: v.PL }), - ...(v.PT === undefined ? null : { pt: v.PT }), - ...(v.PR === undefined ? null : { pr: v.PR }), - ...(v.QA === undefined ? null : { qa: v.QA }), - ...(v.RE === undefined ? null : { re: v.RE }), - ...(v.RO === undefined ? null : { ro: v.RO }), - ...(v.RU === undefined ? null : { ru: v.RU }), - ...(v.RW === undefined ? null : { rw: v.RW }), - ...(v.SH === undefined ? null : { sh: v.SH }), - ...(v.KN === undefined ? null : { kn: v.KN }), - ...(v.LC === undefined ? null : { lc: v.LC }), - ...(v.PM === undefined ? null : { pm: v.PM }), - ...(v.VC === undefined ? null : { vc: v.VC }), - ...(v.WS === undefined ? null : { ws: v.WS }), - ...(v.SM === undefined ? null : { sm: v.SM }), - ...(v.ST === undefined ? null : { st: v.ST }), - ...(v.SA === undefined ? null : { sa: v.SA }), - ...(v.SN === undefined ? null : { sn: v.SN }), - ...(v.SC === undefined ? null : { sc: v.SC }), - ...(v.SL === undefined ? null : { sl: v.SL }), - ...(v.SG === undefined ? null : { sg: v.SG }), - ...(v.SK === undefined ? null : { sk: v.SK }), - ...(v.SI === undefined ? null : { si: v.SI }), - ...(v.SB === undefined ? null : { sb: v.SB }), - ...(v.SO === undefined ? null : { so: v.SO }), - ...(v.ZA === undefined ? null : { za: v.ZA }), - ...(v.GS === undefined ? null : { gs: v.GS }), - ...(v.ES === undefined ? null : { es: v.ES }), - ...(v.LK === undefined ? null : { lk: v.LK }), - ...(v.SD === undefined ? null : { sd: v.SD }), - ...(v.SR === undefined ? null : { sr: v.SR }), - ...(v.SJ === undefined ? null : { sj: v.SJ }), - ...(v.SZ === undefined ? null : { sz: v.SZ }), - ...(v.SE === undefined ? null : { se: v.SE }), - ...(v.CH === undefined ? null : { ch: v.CH }), - ...(v.SY === undefined ? null : { sy: v.SY }), - ...(v.TW === undefined ? null : { tw: v.TW }), - ...(v.TJ === undefined ? null : { tj: v.TJ }), - ...(v.TZ === undefined ? null : { tz: v.TZ }), - ...(v.TH === undefined ? null : { th: v.TH }), - ...(v.TL === undefined ? null : { tl: v.TL }), - ...(v.TG === undefined ? null : { tg: v.TG }), - ...(v.TK === undefined ? null : { tk: v.TK }), - ...(v.TO === undefined ? null : { to: v.TO }), - ...(v.TT === undefined ? null : { tt: v.TT }), - ...(v.TN === undefined ? null : { tn: v.TN }), - ...(v.TR === undefined ? null : { tr: v.TR }), - ...(v.TM === undefined ? null : { tm: v.TM }), - ...(v.TC === undefined ? null : { tc: v.TC }), - ...(v.TV === undefined ? null : { tv: v.TV }), - ...(v.UG === undefined ? null : { ug: v.UG }), - ...(v.UA === undefined ? null : { ua: v.UA }), - ...(v.AE === undefined ? null : { ae: v.AE }), - ...(v.GB === undefined ? null : { gb: v.GB }), - ...(v.US === undefined ? null : { us: v.US }), - ...(v.UM === undefined ? null : { um: v.UM }), - ...(v.UY === undefined ? null : { uy: v.UY }), - ...(v.UZ === undefined ? null : { uz: v.UZ }), - ...(v.VU === undefined ? null : { vu: v.VU }), - ...(v.VE === undefined ? null : { ve: v.VE }), - ...(v.VN === undefined ? null : { vn: v.VN }), - ...(v.VG === undefined ? null : { vg: v.VG }), - ...(v.VI === undefined ? null : { vi: v.VI }), - ...(v.WF === undefined ? null : { wf: v.WF }), - ...(v.EH === undefined ? null : { eh: v.EH }), - ...(v.YE === undefined ? null : { ye: v.YE }), - ...(v.ZM === undefined ? null : { zm: v.ZM }), - ...(v.ZW === undefined ? null : { zw: v.ZW }), - ...(v.AX === undefined ? null : { ax: v.AX }), - ...(v.BQ === undefined ? null : { bq: v.BQ }), - ...(v.CW === undefined ? null : { cw: v.CW }), - ...(v.GG === undefined ? null : { gg: v.GG }), - ...(v.IM === undefined ? null : { im: v.IM }), - ...(v.JE === undefined ? null : { je: v.JE }), - ...(v.ME === undefined ? null : { me: v.ME }), - ...(v.BL === undefined ? null : { bl: v.BL }), - ...(v.MF === undefined ? null : { mf: v.MF }), - ...(v.RS === undefined ? null : { rs: v.RS }), - ...(v.SX === undefined ? null : { sx: v.SX }), - ...(v.SS === undefined ? null : { ss: v.SS }), - ...(v.XK === undefined ? null : { xk: v.XK }), - }; - }); - - export type Outbound = { - AF?: string | undefined; - AL?: string | undefined; - DZ?: string | undefined; - AS?: string | undefined; - AD?: string | undefined; - AO?: string | undefined; - AI?: string | undefined; - AQ?: string | undefined; - AG?: string | undefined; - AR?: string | undefined; - AM?: string | undefined; - AW?: string | undefined; - AU?: string | undefined; - AT?: string | undefined; - AZ?: string | undefined; - BS?: string | undefined; - BH?: string | undefined; - BD?: string | undefined; - BB?: string | undefined; - BY?: string | undefined; - BE?: string | undefined; - BZ?: string | undefined; - BJ?: string | undefined; - BM?: string | undefined; - BT?: string | undefined; - BO?: string | undefined; - BA?: string | undefined; - BW?: string | undefined; - BV?: string | undefined; - BR?: string | undefined; - IO?: string | undefined; - BN?: string | undefined; - BG?: string | undefined; - BF?: string | undefined; - BI?: string | undefined; - KH?: string | undefined; - CM?: string | undefined; - CA?: string | undefined; - CV?: string | undefined; - KY?: string | undefined; - CF?: string | undefined; - TD?: string | undefined; - CL?: string | undefined; - CN?: string | undefined; - CX?: string | undefined; - CC?: string | undefined; - CO?: string | undefined; - KM?: string | undefined; - CG?: string | undefined; - CD?: string | undefined; - CK?: string | undefined; - CR?: string | undefined; - CI?: string | undefined; - HR?: string | undefined; - CU?: string | undefined; - CY?: string | undefined; - CZ?: string | undefined; - DK?: string | undefined; - DJ?: string | undefined; - DM?: string | undefined; - DO?: string | undefined; - EC?: string | undefined; - EG?: string | undefined; - SV?: string | undefined; - GQ?: string | undefined; - ER?: string | undefined; - EE?: string | undefined; - ET?: string | undefined; - FK?: string | undefined; - FO?: string | undefined; - FJ?: string | undefined; - FI?: string | undefined; - FR?: string | undefined; - GF?: string | undefined; - PF?: string | undefined; - TF?: string | undefined; - GA?: string | undefined; - GM?: string | undefined; - GE?: string | undefined; - DE?: string | undefined; - GH?: string | undefined; - GI?: string | undefined; - GR?: string | undefined; - GL?: string | undefined; - GD?: string | undefined; - GP?: string | undefined; - GU?: string | undefined; - GT?: string | undefined; - GN?: string | undefined; - GW?: string | undefined; - GY?: string | undefined; - HT?: string | undefined; - HM?: string | undefined; - VA?: string | undefined; - HN?: string | undefined; - HK?: string | undefined; - HU?: string | undefined; - IS?: string | undefined; - IN?: string | undefined; - ID?: string | undefined; - IR?: string | undefined; - IQ?: string | undefined; - IE?: string | undefined; - IL?: string | undefined; - IT?: string | undefined; - JM?: string | undefined; - JP?: string | undefined; - JO?: string | undefined; - KZ?: string | undefined; - KE?: string | undefined; - KI?: string | undefined; - KP?: string | undefined; - KR?: string | undefined; - KW?: string | undefined; - KG?: string | undefined; - LA?: string | undefined; - LV?: string | undefined; - LB?: string | undefined; - LS?: string | undefined; - LR?: string | undefined; - LY?: string | undefined; - LI?: string | undefined; - LT?: string | undefined; - LU?: string | undefined; - MO?: string | undefined; - MG?: string | undefined; - MW?: string | undefined; - MY?: string | undefined; - MV?: string | undefined; - ML?: string | undefined; - MT?: string | undefined; - MH?: string | undefined; - MQ?: string | undefined; - MR?: string | undefined; - MU?: string | undefined; - YT?: string | undefined; - MX?: string | undefined; - FM?: string | undefined; - MD?: string | undefined; - MC?: string | undefined; - MN?: string | undefined; - MS?: string | undefined; - MA?: string | undefined; - MZ?: string | undefined; - MM?: string | undefined; - NA?: string | undefined; - NR?: string | undefined; - NP?: string | undefined; - NL?: string | undefined; - NC?: string | undefined; - NZ?: string | undefined; - NI?: string | undefined; - NE?: string | undefined; - NG?: string | undefined; - NU?: string | undefined; - NF?: string | undefined; - MK?: string | undefined; - MP?: string | undefined; - NO?: string | undefined; - OM?: string | undefined; - PK?: string | undefined; - PW?: string | undefined; - PS?: string | undefined; - PA?: string | undefined; - PG?: string | undefined; - PY?: string | undefined; - PE?: string | undefined; - PH?: string | undefined; - PN?: string | undefined; - PL?: string | undefined; - PT?: string | undefined; - PR?: string | undefined; - QA?: string | undefined; - RE?: string | undefined; - RO?: string | undefined; - RU?: string | undefined; - RW?: string | undefined; - SH?: string | undefined; - KN?: string | undefined; - LC?: string | undefined; - PM?: string | undefined; - VC?: string | undefined; - WS?: string | undefined; - SM?: string | undefined; - ST?: string | undefined; - SA?: string | undefined; - SN?: string | undefined; - SC?: string | undefined; - SL?: string | undefined; - SG?: string | undefined; - SK?: string | undefined; - SI?: string | undefined; - SB?: string | undefined; - SO?: string | undefined; - ZA?: string | undefined; - GS?: string | undefined; - ES?: string | undefined; - LK?: string | undefined; - SD?: string | undefined; - SR?: string | undefined; - SJ?: string | undefined; - SZ?: string | undefined; - SE?: string | undefined; - CH?: string | undefined; - SY?: string | undefined; - TW?: string | undefined; - TJ?: string | undefined; - TZ?: string | undefined; - TH?: string | undefined; - TL?: string | undefined; - TG?: string | undefined; - TK?: string | undefined; - TO?: string | undefined; - TT?: string | undefined; - TN?: string | undefined; - TR?: string | undefined; - TM?: string | undefined; - TC?: string | undefined; - TV?: string | undefined; - UG?: string | undefined; - UA?: string | undefined; - AE?: string | undefined; - GB?: string | undefined; - US?: string | undefined; - UM?: string | undefined; - UY?: string | undefined; - UZ?: string | undefined; - VU?: string | undefined; - VE?: string | undefined; - VN?: string | undefined; - VG?: string | undefined; - VI?: string | undefined; - WF?: string | undefined; - EH?: string | undefined; - YE?: string | undefined; - ZM?: string | undefined; - ZW?: string | undefined; - AX?: string | undefined; - BQ?: string | undefined; - CW?: string | undefined; - GG?: string | undefined; - IM?: string | undefined; - JE?: string | undefined; - ME?: string | undefined; - BL?: string | undefined; - MF?: string | undefined; - RS?: string | undefined; - SX?: string | undefined; - SS?: string | undefined; - XK?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - af: z.string().optional(), - al: z.string().optional(), - dz: z.string().optional(), - as: z.string().optional(), - ad: z.string().optional(), - ao: z.string().optional(), - ai: z.string().optional(), - aq: z.string().optional(), - ag: z.string().optional(), - ar: z.string().optional(), - am: z.string().optional(), - aw: z.string().optional(), - au: z.string().optional(), - at: z.string().optional(), - az: z.string().optional(), - bs: z.string().optional(), - bh: z.string().optional(), - bd: z.string().optional(), - bb: z.string().optional(), - by: z.string().optional(), - be: z.string().optional(), - bz: z.string().optional(), - bj: z.string().optional(), - bm: z.string().optional(), - bt: z.string().optional(), - bo: z.string().optional(), - ba: z.string().optional(), - bw: z.string().optional(), - bv: z.string().optional(), - br: z.string().optional(), - io: z.string().optional(), - bn: z.string().optional(), - bg: z.string().optional(), - bf: z.string().optional(), - bi: z.string().optional(), - kh: z.string().optional(), - cm: z.string().optional(), - ca: z.string().optional(), - cv: z.string().optional(), - ky: z.string().optional(), - cf: z.string().optional(), - td: z.string().optional(), - cl: z.string().optional(), - cn: z.string().optional(), - cx: z.string().optional(), - cc: z.string().optional(), - co: z.string().optional(), - km: z.string().optional(), - cg: z.string().optional(), - cd: z.string().optional(), - ck: z.string().optional(), - cr: z.string().optional(), - ci: z.string().optional(), - hr: z.string().optional(), - cu: z.string().optional(), - cy: z.string().optional(), - cz: z.string().optional(), - dk: z.string().optional(), - dj: z.string().optional(), - dm: z.string().optional(), - do: z.string().optional(), - ec: z.string().optional(), - eg: z.string().optional(), - sv: z.string().optional(), - gq: z.string().optional(), - er: z.string().optional(), - ee: z.string().optional(), - et: z.string().optional(), - fk: z.string().optional(), - fo: z.string().optional(), - fj: z.string().optional(), - fi: z.string().optional(), - fr: z.string().optional(), - gf: z.string().optional(), - pf: z.string().optional(), - tf: z.string().optional(), - ga: z.string().optional(), - gm: z.string().optional(), - ge: z.string().optional(), - de: z.string().optional(), - gh: z.string().optional(), - gi: z.string().optional(), - gr: z.string().optional(), - gl: z.string().optional(), - gd: z.string().optional(), - gp: z.string().optional(), - gu: z.string().optional(), - gt: z.string().optional(), - gn: z.string().optional(), - gw: z.string().optional(), - gy: z.string().optional(), - ht: z.string().optional(), - hm: z.string().optional(), - va: z.string().optional(), - hn: z.string().optional(), - hk: z.string().optional(), - hu: z.string().optional(), - is: z.string().optional(), - in: z.string().optional(), - id: z.string().optional(), - ir: z.string().optional(), - iq: z.string().optional(), - ie: z.string().optional(), - il: z.string().optional(), - it: z.string().optional(), - jm: z.string().optional(), - jp: z.string().optional(), - jo: z.string().optional(), - kz: z.string().optional(), - ke: z.string().optional(), - ki: z.string().optional(), - kp: z.string().optional(), - kr: z.string().optional(), - kw: z.string().optional(), - kg: z.string().optional(), - la: z.string().optional(), - lv: z.string().optional(), - lb: z.string().optional(), - ls: z.string().optional(), - lr: z.string().optional(), - ly: z.string().optional(), - li: z.string().optional(), - lt: z.string().optional(), - lu: z.string().optional(), - mo: z.string().optional(), - mg: z.string().optional(), - mw: z.string().optional(), - my: z.string().optional(), - mv: z.string().optional(), - ml: z.string().optional(), - mt: z.string().optional(), - mh: z.string().optional(), - mq: z.string().optional(), - mr: z.string().optional(), - mu: z.string().optional(), - yt: z.string().optional(), - mx: z.string().optional(), - fm: z.string().optional(), - md: z.string().optional(), - mc: z.string().optional(), - mn: z.string().optional(), - ms: z.string().optional(), - ma: z.string().optional(), - mz: z.string().optional(), - mm: z.string().optional(), - na: z.string().optional(), - nr: z.string().optional(), - np: z.string().optional(), - nl: z.string().optional(), - nc: z.string().optional(), - nz: z.string().optional(), - ni: z.string().optional(), - ne: z.string().optional(), - ng: z.string().optional(), - nu: z.string().optional(), - nf: z.string().optional(), - mk: z.string().optional(), - mp: z.string().optional(), - no: z.string().optional(), - om: z.string().optional(), - pk: z.string().optional(), - pw: z.string().optional(), - ps: z.string().optional(), - pa: z.string().optional(), - pg: z.string().optional(), - py: z.string().optional(), - pe: z.string().optional(), - ph: z.string().optional(), - pn: z.string().optional(), - pl: z.string().optional(), - pt: z.string().optional(), - pr: z.string().optional(), - qa: z.string().optional(), - re: z.string().optional(), - ro: z.string().optional(), - ru: z.string().optional(), - rw: z.string().optional(), - sh: z.string().optional(), - kn: z.string().optional(), - lc: z.string().optional(), - pm: z.string().optional(), - vc: z.string().optional(), - ws: z.string().optional(), - sm: z.string().optional(), - st: z.string().optional(), - sa: z.string().optional(), - sn: z.string().optional(), - sc: z.string().optional(), - sl: z.string().optional(), - sg: z.string().optional(), - sk: z.string().optional(), - si: z.string().optional(), - sb: z.string().optional(), - so: z.string().optional(), - za: z.string().optional(), - gs: z.string().optional(), - es: z.string().optional(), - lk: z.string().optional(), - sd: z.string().optional(), - sr: z.string().optional(), - sj: z.string().optional(), - sz: z.string().optional(), - se: z.string().optional(), - ch: z.string().optional(), - sy: z.string().optional(), - tw: z.string().optional(), - tj: z.string().optional(), - tz: z.string().optional(), - th: z.string().optional(), - tl: z.string().optional(), - tg: z.string().optional(), - tk: z.string().optional(), - to: z.string().optional(), - tt: z.string().optional(), - tn: z.string().optional(), - tr: z.string().optional(), - tm: z.string().optional(), - tc: z.string().optional(), - tv: z.string().optional(), - ug: z.string().optional(), - ua: z.string().optional(), - ae: z.string().optional(), - gb: z.string().optional(), - us: z.string().optional(), - um: z.string().optional(), - uy: z.string().optional(), - uz: z.string().optional(), - vu: z.string().optional(), - ve: z.string().optional(), - vn: z.string().optional(), - vg: z.string().optional(), - vi: z.string().optional(), - wf: z.string().optional(), - eh: z.string().optional(), - ye: z.string().optional(), - zm: z.string().optional(), - zw: z.string().optional(), - ax: z.string().optional(), - bq: z.string().optional(), - cw: z.string().optional(), - gg: z.string().optional(), - im: z.string().optional(), - je: z.string().optional(), - me: z.string().optional(), - bl: z.string().optional(), - mf: z.string().optional(), - rs: z.string().optional(), - sx: z.string().optional(), - ss: z.string().optional(), - xk: z.string().optional(), - }) - .transform((v) => { - return { - ...(v.af === undefined ? null : { AF: v.af }), - ...(v.al === undefined ? null : { AL: v.al }), - ...(v.dz === undefined ? null : { DZ: v.dz }), - ...(v.as === undefined ? null : { AS: v.as }), - ...(v.ad === undefined ? null : { AD: v.ad }), - ...(v.ao === undefined ? null : { AO: v.ao }), - ...(v.ai === undefined ? null : { AI: v.ai }), - ...(v.aq === undefined ? null : { AQ: v.aq }), - ...(v.ag === undefined ? null : { AG: v.ag }), - ...(v.ar === undefined ? null : { AR: v.ar }), - ...(v.am === undefined ? null : { AM: v.am }), - ...(v.aw === undefined ? null : { AW: v.aw }), - ...(v.au === undefined ? null : { AU: v.au }), - ...(v.at === undefined ? null : { AT: v.at }), - ...(v.az === undefined ? null : { AZ: v.az }), - ...(v.bs === undefined ? null : { BS: v.bs }), - ...(v.bh === undefined ? null : { BH: v.bh }), - ...(v.bd === undefined ? null : { BD: v.bd }), - ...(v.bb === undefined ? null : { BB: v.bb }), - ...(v.by === undefined ? null : { BY: v.by }), - ...(v.be === undefined ? null : { BE: v.be }), - ...(v.bz === undefined ? null : { BZ: v.bz }), - ...(v.bj === undefined ? null : { BJ: v.bj }), - ...(v.bm === undefined ? null : { BM: v.bm }), - ...(v.bt === undefined ? null : { BT: v.bt }), - ...(v.bo === undefined ? null : { BO: v.bo }), - ...(v.ba === undefined ? null : { BA: v.ba }), - ...(v.bw === undefined ? null : { BW: v.bw }), - ...(v.bv === undefined ? null : { BV: v.bv }), - ...(v.br === undefined ? null : { BR: v.br }), - ...(v.io === undefined ? null : { IO: v.io }), - ...(v.bn === undefined ? null : { BN: v.bn }), - ...(v.bg === undefined ? null : { BG: v.bg }), - ...(v.bf === undefined ? null : { BF: v.bf }), - ...(v.bi === undefined ? null : { BI: v.bi }), - ...(v.kh === undefined ? null : { KH: v.kh }), - ...(v.cm === undefined ? null : { CM: v.cm }), - ...(v.ca === undefined ? null : { CA: v.ca }), - ...(v.cv === undefined ? null : { CV: v.cv }), - ...(v.ky === undefined ? null : { KY: v.ky }), - ...(v.cf === undefined ? null : { CF: v.cf }), - ...(v.td === undefined ? null : { TD: v.td }), - ...(v.cl === undefined ? null : { CL: v.cl }), - ...(v.cn === undefined ? null : { CN: v.cn }), - ...(v.cx === undefined ? null : { CX: v.cx }), - ...(v.cc === undefined ? null : { CC: v.cc }), - ...(v.co === undefined ? null : { CO: v.co }), - ...(v.km === undefined ? null : { KM: v.km }), - ...(v.cg === undefined ? null : { CG: v.cg }), - ...(v.cd === undefined ? null : { CD: v.cd }), - ...(v.ck === undefined ? null : { CK: v.ck }), - ...(v.cr === undefined ? null : { CR: v.cr }), - ...(v.ci === undefined ? null : { CI: v.ci }), - ...(v.hr === undefined ? null : { HR: v.hr }), - ...(v.cu === undefined ? null : { CU: v.cu }), - ...(v.cy === undefined ? null : { CY: v.cy }), - ...(v.cz === undefined ? null : { CZ: v.cz }), - ...(v.dk === undefined ? null : { DK: v.dk }), - ...(v.dj === undefined ? null : { DJ: v.dj }), - ...(v.dm === undefined ? null : { DM: v.dm }), - ...(v.do === undefined ? null : { DO: v.do }), - ...(v.ec === undefined ? null : { EC: v.ec }), - ...(v.eg === undefined ? null : { EG: v.eg }), - ...(v.sv === undefined ? null : { SV: v.sv }), - ...(v.gq === undefined ? null : { GQ: v.gq }), - ...(v.er === undefined ? null : { ER: v.er }), - ...(v.ee === undefined ? null : { EE: v.ee }), - ...(v.et === undefined ? null : { ET: v.et }), - ...(v.fk === undefined ? null : { FK: v.fk }), - ...(v.fo === undefined ? null : { FO: v.fo }), - ...(v.fj === undefined ? null : { FJ: v.fj }), - ...(v.fi === undefined ? null : { FI: v.fi }), - ...(v.fr === undefined ? null : { FR: v.fr }), - ...(v.gf === undefined ? null : { GF: v.gf }), - ...(v.pf === undefined ? null : { PF: v.pf }), - ...(v.tf === undefined ? null : { TF: v.tf }), - ...(v.ga === undefined ? null : { GA: v.ga }), - ...(v.gm === undefined ? null : { GM: v.gm }), - ...(v.ge === undefined ? null : { GE: v.ge }), - ...(v.de === undefined ? null : { DE: v.de }), - ...(v.gh === undefined ? null : { GH: v.gh }), - ...(v.gi === undefined ? null : { GI: v.gi }), - ...(v.gr === undefined ? null : { GR: v.gr }), - ...(v.gl === undefined ? null : { GL: v.gl }), - ...(v.gd === undefined ? null : { GD: v.gd }), - ...(v.gp === undefined ? null : { GP: v.gp }), - ...(v.gu === undefined ? null : { GU: v.gu }), - ...(v.gt === undefined ? null : { GT: v.gt }), - ...(v.gn === undefined ? null : { GN: v.gn }), - ...(v.gw === undefined ? null : { GW: v.gw }), - ...(v.gy === undefined ? null : { GY: v.gy }), - ...(v.ht === undefined ? null : { HT: v.ht }), - ...(v.hm === undefined ? null : { HM: v.hm }), - ...(v.va === undefined ? null : { VA: v.va }), - ...(v.hn === undefined ? null : { HN: v.hn }), - ...(v.hk === undefined ? null : { HK: v.hk }), - ...(v.hu === undefined ? null : { HU: v.hu }), - ...(v.is === undefined ? null : { IS: v.is }), - ...(v.in === undefined ? null : { IN: v.in }), - ...(v.id === undefined ? null : { ID: v.id }), - ...(v.ir === undefined ? null : { IR: v.ir }), - ...(v.iq === undefined ? null : { IQ: v.iq }), - ...(v.ie === undefined ? null : { IE: v.ie }), - ...(v.il === undefined ? null : { IL: v.il }), - ...(v.it === undefined ? null : { IT: v.it }), - ...(v.jm === undefined ? null : { JM: v.jm }), - ...(v.jp === undefined ? null : { JP: v.jp }), - ...(v.jo === undefined ? null : { JO: v.jo }), - ...(v.kz === undefined ? null : { KZ: v.kz }), - ...(v.ke === undefined ? null : { KE: v.ke }), - ...(v.ki === undefined ? null : { KI: v.ki }), - ...(v.kp === undefined ? null : { KP: v.kp }), - ...(v.kr === undefined ? null : { KR: v.kr }), - ...(v.kw === undefined ? null : { KW: v.kw }), - ...(v.kg === undefined ? null : { KG: v.kg }), - ...(v.la === undefined ? null : { LA: v.la }), - ...(v.lv === undefined ? null : { LV: v.lv }), - ...(v.lb === undefined ? null : { LB: v.lb }), - ...(v.ls === undefined ? null : { LS: v.ls }), - ...(v.lr === undefined ? null : { LR: v.lr }), - ...(v.ly === undefined ? null : { LY: v.ly }), - ...(v.li === undefined ? null : { LI: v.li }), - ...(v.lt === undefined ? null : { LT: v.lt }), - ...(v.lu === undefined ? null : { LU: v.lu }), - ...(v.mo === undefined ? null : { MO: v.mo }), - ...(v.mg === undefined ? null : { MG: v.mg }), - ...(v.mw === undefined ? null : { MW: v.mw }), - ...(v.my === undefined ? null : { MY: v.my }), - ...(v.mv === undefined ? null : { MV: v.mv }), - ...(v.ml === undefined ? null : { ML: v.ml }), - ...(v.mt === undefined ? null : { MT: v.mt }), - ...(v.mh === undefined ? null : { MH: v.mh }), - ...(v.mq === undefined ? null : { MQ: v.mq }), - ...(v.mr === undefined ? null : { MR: v.mr }), - ...(v.mu === undefined ? null : { MU: v.mu }), - ...(v.yt === undefined ? null : { YT: v.yt }), - ...(v.mx === undefined ? null : { MX: v.mx }), - ...(v.fm === undefined ? null : { FM: v.fm }), - ...(v.md === undefined ? null : { MD: v.md }), - ...(v.mc === undefined ? null : { MC: v.mc }), - ...(v.mn === undefined ? null : { MN: v.mn }), - ...(v.ms === undefined ? null : { MS: v.ms }), - ...(v.ma === undefined ? null : { MA: v.ma }), - ...(v.mz === undefined ? null : { MZ: v.mz }), - ...(v.mm === undefined ? null : { MM: v.mm }), - ...(v.na === undefined ? null : { NA: v.na }), - ...(v.nr === undefined ? null : { NR: v.nr }), - ...(v.np === undefined ? null : { NP: v.np }), - ...(v.nl === undefined ? null : { NL: v.nl }), - ...(v.nc === undefined ? null : { NC: v.nc }), - ...(v.nz === undefined ? null : { NZ: v.nz }), - ...(v.ni === undefined ? null : { NI: v.ni }), - ...(v.ne === undefined ? null : { NE: v.ne }), - ...(v.ng === undefined ? null : { NG: v.ng }), - ...(v.nu === undefined ? null : { NU: v.nu }), - ...(v.nf === undefined ? null : { NF: v.nf }), - ...(v.mk === undefined ? null : { MK: v.mk }), - ...(v.mp === undefined ? null : { MP: v.mp }), - ...(v.no === undefined ? null : { NO: v.no }), - ...(v.om === undefined ? null : { OM: v.om }), - ...(v.pk === undefined ? null : { PK: v.pk }), - ...(v.pw === undefined ? null : { PW: v.pw }), - ...(v.ps === undefined ? null : { PS: v.ps }), - ...(v.pa === undefined ? null : { PA: v.pa }), - ...(v.pg === undefined ? null : { PG: v.pg }), - ...(v.py === undefined ? null : { PY: v.py }), - ...(v.pe === undefined ? null : { PE: v.pe }), - ...(v.ph === undefined ? null : { PH: v.ph }), - ...(v.pn === undefined ? null : { PN: v.pn }), - ...(v.pl === undefined ? null : { PL: v.pl }), - ...(v.pt === undefined ? null : { PT: v.pt }), - ...(v.pr === undefined ? null : { PR: v.pr }), - ...(v.qa === undefined ? null : { QA: v.qa }), - ...(v.re === undefined ? null : { RE: v.re }), - ...(v.ro === undefined ? null : { RO: v.ro }), - ...(v.ru === undefined ? null : { RU: v.ru }), - ...(v.rw === undefined ? null : { RW: v.rw }), - ...(v.sh === undefined ? null : { SH: v.sh }), - ...(v.kn === undefined ? null : { KN: v.kn }), - ...(v.lc === undefined ? null : { LC: v.lc }), - ...(v.pm === undefined ? null : { PM: v.pm }), - ...(v.vc === undefined ? null : { VC: v.vc }), - ...(v.ws === undefined ? null : { WS: v.ws }), - ...(v.sm === undefined ? null : { SM: v.sm }), - ...(v.st === undefined ? null : { ST: v.st }), - ...(v.sa === undefined ? null : { SA: v.sa }), - ...(v.sn === undefined ? null : { SN: v.sn }), - ...(v.sc === undefined ? null : { SC: v.sc }), - ...(v.sl === undefined ? null : { SL: v.sl }), - ...(v.sg === undefined ? null : { SG: v.sg }), - ...(v.sk === undefined ? null : { SK: v.sk }), - ...(v.si === undefined ? null : { SI: v.si }), - ...(v.sb === undefined ? null : { SB: v.sb }), - ...(v.so === undefined ? null : { SO: v.so }), - ...(v.za === undefined ? null : { ZA: v.za }), - ...(v.gs === undefined ? null : { GS: v.gs }), - ...(v.es === undefined ? null : { ES: v.es }), - ...(v.lk === undefined ? null : { LK: v.lk }), - ...(v.sd === undefined ? null : { SD: v.sd }), - ...(v.sr === undefined ? null : { SR: v.sr }), - ...(v.sj === undefined ? null : { SJ: v.sj }), - ...(v.sz === undefined ? null : { SZ: v.sz }), - ...(v.se === undefined ? null : { SE: v.se }), - ...(v.ch === undefined ? null : { CH: v.ch }), - ...(v.sy === undefined ? null : { SY: v.sy }), - ...(v.tw === undefined ? null : { TW: v.tw }), - ...(v.tj === undefined ? null : { TJ: v.tj }), - ...(v.tz === undefined ? null : { TZ: v.tz }), - ...(v.th === undefined ? null : { TH: v.th }), - ...(v.tl === undefined ? null : { TL: v.tl }), - ...(v.tg === undefined ? null : { TG: v.tg }), - ...(v.tk === undefined ? null : { TK: v.tk }), - ...(v.to === undefined ? null : { TO: v.to }), - ...(v.tt === undefined ? null : { TT: v.tt }), - ...(v.tn === undefined ? null : { TN: v.tn }), - ...(v.tr === undefined ? null : { TR: v.tr }), - ...(v.tm === undefined ? null : { TM: v.tm }), - ...(v.tc === undefined ? null : { TC: v.tc }), - ...(v.tv === undefined ? null : { TV: v.tv }), - ...(v.ug === undefined ? null : { UG: v.ug }), - ...(v.ua === undefined ? null : { UA: v.ua }), - ...(v.ae === undefined ? null : { AE: v.ae }), - ...(v.gb === undefined ? null : { GB: v.gb }), - ...(v.us === undefined ? null : { US: v.us }), - ...(v.um === undefined ? null : { UM: v.um }), - ...(v.uy === undefined ? null : { UY: v.uy }), - ...(v.uz === undefined ? null : { UZ: v.uz }), - ...(v.vu === undefined ? null : { VU: v.vu }), - ...(v.ve === undefined ? null : { VE: v.ve }), - ...(v.vn === undefined ? null : { VN: v.vn }), - ...(v.vg === undefined ? null : { VG: v.vg }), - ...(v.vi === undefined ? null : { VI: v.vi }), - ...(v.wf === undefined ? null : { WF: v.wf }), - ...(v.eh === undefined ? null : { EH: v.eh }), - ...(v.ye === undefined ? null : { YE: v.ye }), - ...(v.zm === undefined ? null : { ZM: v.zm }), - ...(v.zw === undefined ? null : { ZW: v.zw }), - ...(v.ax === undefined ? null : { AX: v.ax }), - ...(v.bq === undefined ? null : { BQ: v.bq }), - ...(v.cw === undefined ? null : { CW: v.cw }), - ...(v.gg === undefined ? null : { GG: v.gg }), - ...(v.im === undefined ? null : { IM: v.im }), - ...(v.je === undefined ? null : { JE: v.je }), - ...(v.me === undefined ? null : { ME: v.me }), - ...(v.bl === undefined ? null : { BL: v.bl }), - ...(v.mf === undefined ? null : { MF: v.mf }), - ...(v.rs === undefined ? null : { RS: v.rs }), - ...(v.sx === undefined ? null : { SX: v.sx }), - ...(v.ss === undefined ? null : { SS: v.ss }), - ...(v.xk === undefined ? null : { XK: v.xk }), - }; - }); -} - /** @internal */ export namespace UpsertLinkRequestBody$ { export const inboundSchema: z.ZodType = z @@ -1688,7 +161,7 @@ export namespace UpsertLinkRequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => UpsertLinkGeo$.inboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(), }) .transform((v) => { return { @@ -1739,7 +212,7 @@ export namespace UpsertLinkRequestBody$ { rewrite: boolean; ios?: string | null | undefined; android?: string | null | undefined; - geo?: UpsertLinkGeo$.Outbound | null | undefined; + geo?: components.LinkGeoTargeting$.Outbound | null | undefined; }; export const outboundSchema: z.ZodType = z @@ -1765,7 +238,7 @@ export namespace UpsertLinkRequestBody$ { rewrite: z.boolean().default(false), ios: z.nullable(z.string()).optional(), android: z.nullable(z.string()).optional(), - geo: z.nullable(z.lazy(() => UpsertLinkGeo$.outboundSchema)).optional(), + geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(), }) .transform((v) => { return { diff --git a/src/sdk/analytics.ts b/src/sdk/analytics.ts index 831103d..3527cc2 100644 --- a/src/sdk/analytics.ts +++ b/src/sdk/analytics.ts @@ -8,6 +8,7 @@ import * as enc$ from "../lib/encodings"; import { HTTPClient } from "../lib/http"; import * as schemas$ from "../lib/schemas"; import { ClientSDK, RequestOptions } from "../lib/sdks"; +import * as components from "../models/components"; import * as errors from "../models/errors"; import * as operations from "../models/operations"; import { Clicks } from "./clicks"; @@ -322,7 +323,7 @@ export class Analytics extends ClientSDK { async country( request?: operations.GetCountriesByClicksDeprecatedRequest | undefined, options?: RequestOptions - ): Promise> { + ): Promise> { const input$ = typeof request === "undefined" ? {} : request; const headers$ = new Headers(); headers$.set("user-agent", SDK_METADATA.userAgent); @@ -441,9 +442,7 @@ export class Analytics extends ClientSDK { const result = schemas$.parse( responseBody, (val$) => { - return z - .array(operations.GetCountriesByClicksDeprecatedResponseBody$.inboundSchema) - .parse(val$); + return z.array(components.ClicksByCountry$.inboundSchema).parse(val$); }, "Response validation failed" ); @@ -586,7 +585,7 @@ export class Analytics extends ClientSDK { async city( request?: operations.GetCitiesByClicksDeprecatedRequest | undefined, options?: RequestOptions - ): Promise> { + ): Promise> { const input$ = typeof request === "undefined" ? {} : request; const headers$ = new Headers(); headers$.set("user-agent", SDK_METADATA.userAgent); @@ -704,9 +703,7 @@ export class Analytics extends ClientSDK { const result = schemas$.parse( responseBody, (val$) => { - return z - .array(operations.GetCitiesByClicksDeprecatedResponseBody$.inboundSchema) - .parse(val$); + return z.array(components.ClicksByCities$.inboundSchema).parse(val$); }, "Response validation failed" ); diff --git a/src/sdk/clicks.ts b/src/sdk/clicks.ts index 6e00925..6a40209 100644 --- a/src/sdk/clicks.ts +++ b/src/sdk/clicks.ts @@ -8,6 +8,7 @@ import * as enc$ from "../lib/encodings"; import { HTTPClient } from "../lib/http"; import * as schemas$ from "../lib/schemas"; import { ClientSDK, RequestOptions } from "../lib/sdks"; +import * as components from "../models/components"; import * as errors from "../models/errors"; import * as operations from "../models/operations"; import * as z from "zod"; @@ -566,7 +567,7 @@ export class Clicks extends ClientSDK { async countries( request?: operations.GetCountriesByClicksRequest | undefined, options?: RequestOptions - ): Promise> { + ): Promise> { const input$ = typeof request === "undefined" ? {} : request; const headers$ = new Headers(); headers$.set("user-agent", SDK_METADATA.userAgent); @@ -684,9 +685,7 @@ export class Clicks extends ClientSDK { const result = schemas$.parse( responseBody, (val$) => { - return z - .array(operations.GetCountriesByClicksResponseBody$.inboundSchema) - .parse(val$); + return z.array(components.ClicksByCountry$.inboundSchema).parse(val$); }, "Response validation failed" ); @@ -827,7 +826,7 @@ export class Clicks extends ClientSDK { async cities( request?: operations.GetCitiesByClicksRequest | undefined, options?: RequestOptions - ): Promise> { + ): Promise> { const input$ = typeof request === "undefined" ? {} : request; const headers$ = new Headers(); headers$.set("user-agent", SDK_METADATA.userAgent); @@ -945,9 +944,7 @@ export class Clicks extends ClientSDK { const result = schemas$.parse( responseBody, (val$) => { - return z - .array(operations.GetCitiesByClicksResponseBody$.inboundSchema) - .parse(val$); + return z.array(components.ClicksByCities$.inboundSchema).parse(val$); }, "Response validation failed" );