mirror of
https://github.com/LukeHagar/dub-node.git
synced 2025-12-10 04:19:48 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.300.1 (#121)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
committed by
GitHub
parent
26891cee31
commit
b92f9bfeb0
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
||||||
management:
|
management:
|
||||||
docChecksum: 51863c384b062f0d4c1dd02e14254615
|
docChecksum: dda943a614373c0afd2760452f6aa501
|
||||||
docVersion: 0.0.1
|
docVersion: 0.0.1
|
||||||
speakeasyVersion: 1.299.6
|
speakeasyVersion: 1.300.1
|
||||||
generationVersion: 2.338.12
|
generationVersion: 2.339.1
|
||||||
releaseVersion: 0.29.15
|
releaseVersion: 0.29.16
|
||||||
configChecksum: a9469c582da12bafd25e218107dd5da1
|
configChecksum: 45fb6c3f46a50bc746ce71d469954be8
|
||||||
repoURL: https://github.com/dubinc/dub-node.git
|
repoURL: https://github.com/dubinc/dub-node.git
|
||||||
installationURL: https://github.com/dubinc/dub-node
|
installationURL: https://github.com/dubinc/dub-node
|
||||||
published: true
|
published: true
|
||||||
@@ -14,7 +14,7 @@ features:
|
|||||||
typescript:
|
typescript:
|
||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
constsAndDefaults: 0.1.5
|
constsAndDefaults: 0.1.5
|
||||||
core: 3.9.11
|
core: 3.9.12
|
||||||
deprecations: 2.81.1
|
deprecations: 2.81.1
|
||||||
examples: 2.81.4
|
examples: 2.81.4
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
@@ -49,6 +49,7 @@ generatedFiles:
|
|||||||
- src/lib/encodings.ts
|
- src/lib/encodings.ts
|
||||||
- src/lib/http.ts
|
- src/lib/http.ts
|
||||||
- src/lib/is-plain-object.ts
|
- src/lib/is-plain-object.ts
|
||||||
|
- src/lib/primitives.ts
|
||||||
- src/lib/retries.ts
|
- src/lib/retries.ts
|
||||||
- src/lib/schemas.ts
|
- src/lib/schemas.ts
|
||||||
- src/lib/sdks.ts
|
- src/lib/sdks.ts
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.29.15
|
version: 0.29.16
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
speakeasyVersion: 1.299.6
|
speakeasyVersion: 1.300.1
|
||||||
sources:
|
sources:
|
||||||
my-first-source:
|
my-first-source:
|
||||||
sourceNamespace: my-first-source
|
sourceNamespace: my-first-source
|
||||||
sourceRevisionDigest: sha256:154ffed10420914429fbcf1e7b8c772199556ac4b5a921457e27772b84235d50
|
sourceRevisionDigest: sha256:276c60405616193747d1bfb15fb1cc5e50432b2d29d934e090a6786d8c8f3431
|
||||||
sourceBlobDigest: sha256:c90b906f71360668fbcc74e7820c7fbd8659a74450501a64cb179e5391d233a9
|
sourceBlobDigest: sha256:2f8c623af4e1e440e1fb46ce7051cf738452ecdd4e4b2cf2ede0b4251d2e2460
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
@@ -11,8 +11,8 @@ targets:
|
|||||||
my-first-target:
|
my-first-target:
|
||||||
source: my-first-source
|
source: my-first-source
|
||||||
sourceNamespace: my-first-source
|
sourceNamespace: my-first-source
|
||||||
sourceRevisionDigest: sha256:154ffed10420914429fbcf1e7b8c772199556ac4b5a921457e27772b84235d50
|
sourceRevisionDigest: sha256:276c60405616193747d1bfb15fb1cc5e50432b2d29d934e090a6786d8c8f3431
|
||||||
sourceBlobDigest: sha256:c90b906f71360668fbcc74e7820c7fbd8659a74450501a64cb179e5391d233a9
|
sourceBlobDigest: sha256:2f8c623af4e1e440e1fb46ce7051cf738452ecdd4e4b2cf2ede0b4251d2e2460
|
||||||
outLocation: /github/workspace/repo
|
outLocation: /github/workspace/repo
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -417,3 +417,13 @@ Based on:
|
|||||||
- [typescript v0.29.15] .
|
- [typescript v0.29.15] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.29.15] https://www.npmjs.com/package/dub/v/0.29.15 - .
|
- [NPM v0.29.15] https://www.npmjs.com/package/dub/v/0.29.15 - .
|
||||||
|
|
||||||
|
## 2024-06-07 01:19:48
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.300.1 (2.339.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.29.16] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.29.16] https://www.npmjs.com/package/dub/v/0.29.16 - .
|
||||||
630
codeSamples.yaml
630
codeSamples.yaml
@@ -3,11 +3,11 @@ info:
|
|||||||
title: CodeSamples overlay for typescript target
|
title: CodeSamples overlay for typescript target
|
||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
actions:
|
actions:
|
||||||
- target: $["paths"]["/track/customer"]["post"]
|
- target: $["paths"]["/links/count"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "trackCustomer"
|
"label": "getLinksCount"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -17,20 +17,18 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.track.customer({
|
const result = await dub.links.count({});
|
||||||
customerId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/links/{linkId}"]["delete"]
|
- target: $["paths"]["/links/{linkId}"]["patch"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "deleteLink"
|
"label": "updateLink"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -40,7 +38,9 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.delete("<value>");
|
const result = await dub.links.update("<value>", {
|
||||||
|
url: "https://google/com",
|
||||||
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -67,188 +67,6 @@ actions:
|
|||||||
console.log(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: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.tags.list({});
|
|
||||||
|
|
||||||
// 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: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.domains.list({});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/domains"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "addDomain"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.domains.add({
|
|
||||||
slug: "acme.com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// 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: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.domains.update("acme.com", {});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/domains/{slug}/transfer"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "transferDomain"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.domains.transfer("acme.com", {
|
|
||||||
newWorkspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/track/sale"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "trackSale"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
import { PaymentProcessor } from "dub/models/operations";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.track.sale({
|
|
||||||
customerId: "<value>",
|
|
||||||
amount: 996500,
|
|
||||||
paymentProcessor: PaymentProcessor.Shopify,
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/links/upsert"]["put"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "upsertLink"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.links.upsert({
|
|
||||||
url: "https://google/com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/workspaces"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "createWorkspace"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.workspaces.create({
|
|
||||||
name: "<value>",
|
|
||||||
slug: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
|
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
|
||||||
update:
|
update:
|
||||||
@@ -296,11 +114,11 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/domains/{slug}"]["delete"]
|
- target: $["paths"]["/domains"]["post"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "deleteDomain"
|
"label": "addDomain"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -310,98 +128,8 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.delete("acme.com");
|
const result = await dub.domains.add({
|
||||||
|
slug: "acme.com",
|
||||||
// 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: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.links.update("<value>", {
|
|
||||||
url: "https://google/com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/qr"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getQRCode"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.qrCodes.get({
|
|
||||||
url: "https://brief-micronutrient.org",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/analytics"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "retrieveAnalytics"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.analytics.retrieve({});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/track/lead"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "trackLead"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.track.lead({
|
|
||||||
clickId: "<value>",
|
|
||||||
eventName: "Signup",
|
|
||||||
customerId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
@@ -429,6 +157,29 @@ actions:
|
|||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/links/upsert"]["put"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "upsertLink"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.upsert({
|
||||||
|
url: "https://google/com",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/metatags"]["get"]
|
- target: $["paths"]["/metatags"]["get"]
|
||||||
update:
|
update:
|
||||||
@@ -453,11 +204,11 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/links"]["post"]
|
- target: $["paths"]["/domains"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "createLink"
|
"label": "listDomains"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -467,20 +218,18 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.create({
|
const result = await dub.domains.list({});
|
||||||
url: "https://google/com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/links"]["get"]
|
- target: $["paths"]["/domains/{slug}"]["patch"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getLinks"
|
"label": "updateDomain"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -490,20 +239,21 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.list({});
|
const result = await dub.domains.update("acme.com", {});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/links/count"]["get"]
|
- target: $["paths"]["/track/sale"]["post"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getLinksCount"
|
"label": "trackSale"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
import { PaymentProcessor } from "dub/models/operations";
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
@@ -511,29 +261,12 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.count({});
|
const result = await dub.track.sale({
|
||||||
|
customerId: "<value>",
|
||||||
// Handle the result
|
amount: 996500,
|
||||||
console.log(result)
|
paymentProcessor: PaymentProcessor.Shopify,
|
||||||
}
|
|
||||||
|
|
||||||
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: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.links.get({});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
@@ -563,4 +296,271 @@ actions:
|
|||||||
console.log(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: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.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: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.get({});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/qr"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getQRCode"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.qrCodes.get({
|
||||||
|
url: "https://brief-micronutrient.org",
|
||||||
|
});
|
||||||
|
|
||||||
|
// 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: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.tags.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: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.domains.delete("acme.com");
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/links"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "createLink"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.create({
|
||||||
|
url: "https://google/com",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/analytics"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "retrieveAnalytics"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.analytics.retrieve({});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/workspaces"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "createWorkspace"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.workspaces.create({
|
||||||
|
name: "<value>",
|
||||||
|
slug: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/domains/{slug}/transfer"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "transferDomain"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.domains.transfer("acme.com", {
|
||||||
|
newWorkspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/track/lead"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "trackLead"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.track.lead({
|
||||||
|
clickId: "<value>",
|
||||||
|
eventName: "Signup",
|
||||||
|
customerId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/track/customer"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "trackCustomer"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.track.customer({
|
||||||
|
customerId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// 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: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.delete("<value>");
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
| `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | |
|
| `end` | *string* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | |
|
||||||
| `timezone` | *string* | :heavy_minus_sign: | The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. | America/New_York |
|
| `timezone` | *string* | :heavy_minus_sign: | The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. | America/New_York |
|
||||||
| `country` | [components.CountryCode](../../models/components/countrycode.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. | |
|
| `city` | *string* | :heavy_minus_sign: | The city to retrieve analytics for. | New York |
|
||||||
| `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | |
|
| `device` | *string* | :heavy_minus_sign: | The device to retrieve analytics for. | Desktop |
|
||||||
| `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | |
|
| `browser` | *string* | :heavy_minus_sign: | The browser to retrieve analytics for. | Chrome |
|
||||||
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | |
|
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | Windows |
|
||||||
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | |
|
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | google.com |
|
||||||
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | |
|
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | |
|
||||||
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | |
|
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | |
|
||||||
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. | |
|
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. | |
|
||||||
|
|||||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.15",
|
"version": "0.29.16",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./models/errors": "./src/models/errors/index.ts",
|
"./models/errors": "./src/models/errors/index.ts",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.15",
|
"version": "0.29.16",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.15",
|
"version": "0.29.16",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jsonpath": "^0.2.4",
|
"@types/jsonpath": "^0.2.4",
|
||||||
"@types/node": "^20.12.7",
|
"@types/node": "^20.12.7",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.15",
|
"version": "0.29.16",
|
||||||
"author": "Dub",
|
"author": "Dub",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|||||||
export const SDK_METADATA = {
|
export const SDK_METADATA = {
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "0.0.1",
|
openapiDocVersion: "0.0.1",
|
||||||
sdkVersion: "0.29.15",
|
sdkVersion: "0.29.16",
|
||||||
genVersion: "2.338.12",
|
genVersion: "2.339.1",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.29.15 2.338.12 0.0.1 dub",
|
userAgent: "speakeasy-sdk/typescript 0.29.16 2.339.1 0.0.1 dub",
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
40
src/lib/primitives.ts
Normal file
40
src/lib/primitives.ts
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type Remap<Inp, Mapping extends { [k in keyof Inp]?: string | null }> = {
|
||||||
|
[k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */
|
||||||
|
? Mapping[k]
|
||||||
|
: Mapping[k] extends null /* if the mapping is to `null` then drop the key */
|
||||||
|
? never
|
||||||
|
: k /* otherwise keep the key as-is */]: Inp[k];
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts or omits an object's keys according to a mapping.
|
||||||
|
*
|
||||||
|
* @param inp An object whose keys will be remapped
|
||||||
|
* @param mappings A mapping of original keys to new keys. If a key is not present in the mapping, it will be left as is. If a key is mapped to `null`, it will be removed in the resulting object.
|
||||||
|
* @returns A new object with keys remapped or omitted according to the mappings
|
||||||
|
*/
|
||||||
|
export function remap<
|
||||||
|
Inp extends Record<string, unknown>,
|
||||||
|
const Mapping extends { [k in keyof Inp]?: string | null },
|
||||||
|
>(inp: Inp, mappings: Mapping): Remap<Inp, Mapping> {
|
||||||
|
let out: any = {};
|
||||||
|
|
||||||
|
if (!Object.keys(mappings).length) {
|
||||||
|
out = inp;
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const [k, v] of Object.entries(inp)) {
|
||||||
|
const j = mappings[k];
|
||||||
|
if (j === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
out[j ?? k] = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
return out;
|
||||||
|
}
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ZodError } from "zod";
|
import { output, ZodEffects, ZodError, ZodObject, ZodRawShape, ZodTypeAny } from "zod";
|
||||||
import * as errors from "../models/errors";
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility function that executes some code which may throw a ZodError. It
|
* Utility function that executes some code which may throw a ZodError. It
|
||||||
@@ -15,8 +15,42 @@ export function parse<Inp, Out>(rawValue: Inp, fn: (value: Inp) => Out, errorMes
|
|||||||
return fn(rawValue);
|
return fn(rawValue);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof ZodError) {
|
if (err instanceof ZodError) {
|
||||||
throw new errors.SDKValidationError(errorMessage, err, rawValue);
|
throw new SDKValidationError(errorMessage, err, rawValue);
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function collectExtraKeys<
|
||||||
|
Shape extends ZodRawShape,
|
||||||
|
Catchall extends ZodTypeAny,
|
||||||
|
K extends string
|
||||||
|
>(
|
||||||
|
obj: ZodObject<Shape, "strip", Catchall>,
|
||||||
|
extrasKey: K
|
||||||
|
): ZodEffects<
|
||||||
|
typeof obj,
|
||||||
|
output<ZodObject<Shape, "strict">> & {
|
||||||
|
[k in K]: Record<string, output<Catchall>>;
|
||||||
|
}
|
||||||
|
> {
|
||||||
|
return obj.transform((val) => {
|
||||||
|
const extras: Record<string, output<Catchall>> = {};
|
||||||
|
const { shape } = obj;
|
||||||
|
for (const [key] of Object.entries(val)) {
|
||||||
|
if (key in shape) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const v = val[key];
|
||||||
|
if (typeof v === "undefined") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
extras[key] = v;
|
||||||
|
delete val[key];
|
||||||
|
}
|
||||||
|
|
||||||
|
return { ...val, [extrasKey]: extras };
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type ClicksBrowsers = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksBrowsers$ {
|
export namespace ClicksBrowsers$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksBrowsers, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksBrowsers, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
browser: z.string(),
|
browser: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
browser: v.browser,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace ClicksBrowsers$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksBrowsers> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksBrowsers> = z.object({
|
||||||
.object({
|
|
||||||
browser: z.string(),
|
browser: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
browser: v.browser,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -288,18 +288,10 @@ export namespace ClicksCitiesCountry$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksCities$ {
|
export namespace ClicksCities$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksCities, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksCities, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
city: z.string(),
|
city: z.string(),
|
||||||
country: ClicksCitiesCountry$.inboundSchema,
|
country: ClicksCitiesCountry$.inboundSchema,
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
city: v.city,
|
|
||||||
country: v.country,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -308,17 +300,9 @@ export namespace ClicksCities$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksCities> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksCities> = z.object({
|
||||||
.object({
|
|
||||||
city: z.string(),
|
city: z.string(),
|
||||||
country: ClicksCitiesCountry$.outboundSchema,
|
country: ClicksCitiesCountry$.outboundSchema,
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
city: v.city,
|
|
||||||
country: v.country,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,27 +13,15 @@ export type ClicksCount = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksCount$ {
|
export namespace ClicksCount$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksCount, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksCount, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksCount> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksCount> = z.object({
|
||||||
.object({
|
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -284,16 +284,9 @@ export namespace Country$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksCountries$ {
|
export namespace ClicksCountries$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksCountries, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksCountries, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
country: Country$.inboundSchema,
|
country: Country$.inboundSchema,
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
country: v.country,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -301,15 +294,8 @@ export namespace ClicksCountries$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksCountries> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksCountries> = z.object({
|
||||||
.object({
|
|
||||||
country: Country$.outboundSchema,
|
country: Country$.outboundSchema,
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
country: v.country,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type ClicksDevices = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksDevices$ {
|
export namespace ClicksDevices$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksDevices, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksDevices, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
device: z.string(),
|
device: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
device: v.device,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace ClicksDevices$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksDevices> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksDevices> = z.object({
|
||||||
.object({
|
|
||||||
device: z.string(),
|
device: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
device: v.device,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type ClicksOS = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksOS$ {
|
export namespace ClicksOS$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksOS, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksOS, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
os: z.string(),
|
os: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
os: v.os,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace ClicksOS$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksOS> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksOS> = z.object({
|
||||||
.object({
|
|
||||||
os: z.string(),
|
os: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
os: v.os,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type ClicksReferers = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksReferers$ {
|
export namespace ClicksReferers$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksReferers, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksReferers, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
referer: z.string(),
|
referer: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
referer: v.referer,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace ClicksReferers$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksReferers> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksReferers> = z.object({
|
||||||
.object({
|
|
||||||
referer: z.string(),
|
referer: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
referer: v.referer,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type ClicksTimeseries = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksTimeseries$ {
|
export namespace ClicksTimeseries$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksTimeseries, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksTimeseries, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
start: z.string(),
|
start: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
start: v.start,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace ClicksTimeseries$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksTimeseries> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksTimeseries> = z.object({
|
||||||
.object({
|
|
||||||
start: z.string(),
|
start: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
start: v.start,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ export type ClicksTopLinks = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksTopLinks$ {
|
export namespace ClicksTopLinks$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksTopLinks, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksTopLinks, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
link: z.string(),
|
link: z.string(),
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
domain: z.string(),
|
domain: z.string(),
|
||||||
@@ -53,18 +52,6 @@ export namespace ClicksTopLinks$ {
|
|||||||
url: z.string(),
|
url: z.string(),
|
||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
link: v.link,
|
|
||||||
id: v.id,
|
|
||||||
domain: v.domain,
|
|
||||||
key: v.key,
|
|
||||||
shortLink: v.shortLink,
|
|
||||||
url: v.url,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -78,8 +65,7 @@ export namespace ClicksTopLinks$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksTopLinks> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksTopLinks> = z.object({
|
||||||
.object({
|
|
||||||
link: z.string(),
|
link: z.string(),
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
domain: z.string(),
|
domain: z.string(),
|
||||||
@@ -88,17 +74,5 @@ export namespace ClicksTopLinks$ {
|
|||||||
url: z.string(),
|
url: z.string(),
|
||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
link: v.link,
|
|
||||||
id: v.id,
|
|
||||||
domain: v.domain,
|
|
||||||
key: v.key,
|
|
||||||
shortLink: v.shortLink,
|
|
||||||
url: v.url,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type ClicksTopUrls = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksTopUrls$ {
|
export namespace ClicksTopUrls$ {
|
||||||
export const inboundSchema: z.ZodType<ClicksTopUrls, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClicksTopUrls, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace ClicksTopUrls$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksTopUrls> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClicksTopUrls> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
clicks: z.number(),
|
clicks: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,8 +72,7 @@ export namespace Type$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DomainSchema$ {
|
export namespace DomainSchema$ {
|
||||||
export const inboundSchema: z.ZodType<DomainSchema, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DomainSchema, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
verified: z.boolean().default(false),
|
verified: z.boolean().default(false),
|
||||||
@@ -85,21 +84,6 @@ export namespace DomainSchema$ {
|
|||||||
target: z.nullable(z.string()),
|
target: z.nullable(z.string()),
|
||||||
type: Type$.inboundSchema,
|
type: Type$.inboundSchema,
|
||||||
clicks: z.number().default(0),
|
clicks: z.number().default(0),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
slug: v.slug,
|
|
||||||
verified: v.verified,
|
|
||||||
primary: v.primary,
|
|
||||||
archived: v.archived,
|
|
||||||
noindex: v.noindex,
|
|
||||||
placeholder: v.placeholder,
|
|
||||||
expiredUrl: v.expiredUrl,
|
|
||||||
target: v.target,
|
|
||||||
type: v.type,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -116,8 +100,7 @@ export namespace DomainSchema$ {
|
|||||||
clicks: number;
|
clicks: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DomainSchema> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DomainSchema> = z.object({
|
||||||
.object({
|
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
verified: z.boolean().default(false),
|
verified: z.boolean().default(false),
|
||||||
@@ -129,20 +112,5 @@ export namespace DomainSchema$ {
|
|||||||
target: z.nullable(z.string()),
|
target: z.nullable(z.string()),
|
||||||
type: Type$.outboundSchema,
|
type: Type$.outboundSchema,
|
||||||
clicks: z.number().default(0),
|
clicks: z.number().default(0),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
slug: v.slug,
|
|
||||||
verified: v.verified,
|
|
||||||
primary: v.primary,
|
|
||||||
archived: v.archived,
|
|
||||||
noindex: v.noindex,
|
|
||||||
placeholder: v.placeholder,
|
|
||||||
expiredUrl: v.expiredUrl,
|
|
||||||
target: v.target,
|
|
||||||
type: v.type,
|
|
||||||
clicks: v.clicks,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type LeadsBrowsers = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsBrowsers$ {
|
export namespace LeadsBrowsers$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsBrowsers, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsBrowsers, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
browser: z.string(),
|
browser: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
browser: v.browser,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace LeadsBrowsers$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsBrowsers> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsBrowsers> = z.object({
|
||||||
.object({
|
|
||||||
browser: z.string(),
|
browser: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
browser: v.browser,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -288,18 +288,10 @@ export namespace LeadsCitiesCountry$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsCities$ {
|
export namespace LeadsCities$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsCities, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsCities, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
city: z.string(),
|
city: z.string(),
|
||||||
country: LeadsCitiesCountry$.inboundSchema,
|
country: LeadsCitiesCountry$.inboundSchema,
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
city: v.city,
|
|
||||||
country: v.country,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -308,17 +300,9 @@ export namespace LeadsCities$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsCities> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsCities> = z.object({
|
||||||
.object({
|
|
||||||
city: z.string(),
|
city: z.string(),
|
||||||
country: LeadsCitiesCountry$.outboundSchema,
|
country: LeadsCitiesCountry$.outboundSchema,
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
city: v.city,
|
|
||||||
country: v.country,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,27 +13,15 @@ export type LeadsCount = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsCount$ {
|
export namespace LeadsCount$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsCount, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsCount, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsCount> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsCount> = z.object({
|
||||||
.object({
|
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -284,16 +284,9 @@ export namespace LeadsCountriesCountry$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsCountries$ {
|
export namespace LeadsCountries$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsCountries, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsCountries, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
country: LeadsCountriesCountry$.inboundSchema,
|
country: LeadsCountriesCountry$.inboundSchema,
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
country: v.country,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -301,15 +294,8 @@ export namespace LeadsCountries$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsCountries> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsCountries> = z.object({
|
||||||
.object({
|
|
||||||
country: LeadsCountriesCountry$.outboundSchema,
|
country: LeadsCountriesCountry$.outboundSchema,
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
country: v.country,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type LeadsDevices = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsDevices$ {
|
export namespace LeadsDevices$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsDevices, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsDevices, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
device: z.string(),
|
device: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
device: v.device,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace LeadsDevices$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsDevices> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsDevices> = z.object({
|
||||||
.object({
|
|
||||||
device: z.string(),
|
device: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
device: v.device,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type LeadsOS = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsOS$ {
|
export namespace LeadsOS$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsOS, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsOS, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
os: z.string(),
|
os: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
os: v.os,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace LeadsOS$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsOS> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsOS> = z.object({
|
||||||
.object({
|
|
||||||
os: z.string(),
|
os: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
os: v.os,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type LeadsReferers = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsReferers$ {
|
export namespace LeadsReferers$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsReferers, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsReferers, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
referer: z.string(),
|
referer: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
referer: v.referer,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace LeadsReferers$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsReferers> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsReferers> = z.object({
|
||||||
.object({
|
|
||||||
referer: z.string(),
|
referer: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
referer: v.referer,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type LeadsTimeseries = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsTimeseries$ {
|
export namespace LeadsTimeseries$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsTimeseries, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsTimeseries, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
start: z.string(),
|
start: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
start: v.start,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace LeadsTimeseries$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsTimeseries> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsTimeseries> = z.object({
|
||||||
.object({
|
|
||||||
start: z.string(),
|
start: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
start: v.start,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ export type LeadsTopLinks = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsTopLinks$ {
|
export namespace LeadsTopLinks$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsTopLinks, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsTopLinks, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
link: z.string(),
|
link: z.string(),
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
domain: z.string(),
|
domain: z.string(),
|
||||||
@@ -53,18 +52,6 @@ export namespace LeadsTopLinks$ {
|
|||||||
url: z.string(),
|
url: z.string(),
|
||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
link: v.link,
|
|
||||||
id: v.id,
|
|
||||||
domain: v.domain,
|
|
||||||
key: v.key,
|
|
||||||
shortLink: v.shortLink,
|
|
||||||
url: v.url,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -78,8 +65,7 @@ export namespace LeadsTopLinks$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsTopLinks> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsTopLinks> = z.object({
|
||||||
.object({
|
|
||||||
link: z.string(),
|
link: z.string(),
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
domain: z.string(),
|
domain: z.string(),
|
||||||
@@ -88,17 +74,5 @@ export namespace LeadsTopLinks$ {
|
|||||||
url: z.string(),
|
url: z.string(),
|
||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
link: v.link,
|
|
||||||
id: v.id,
|
|
||||||
domain: v.domain,
|
|
||||||
key: v.key,
|
|
||||||
shortLink: v.shortLink,
|
|
||||||
url: v.url,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type LeadsTopUrls = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsTopUrls$ {
|
export namespace LeadsTopUrls$ {
|
||||||
export const inboundSchema: z.ZodType<LeadsTopUrls, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LeadsTopUrls, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace LeadsTopUrls$ {
|
|||||||
leads: number;
|
leads: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsTopUrls> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LeadsTopUrls> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
leads: z.number(),
|
leads: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
leads: v.leads,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -21,18 +21,10 @@ export type SalesBrowsers = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesBrowsers$ {
|
export namespace SalesBrowsers$ {
|
||||||
export const inboundSchema: z.ZodType<SalesBrowsers, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesBrowsers, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
browser: z.string(),
|
browser: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
browser: v.browser,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -41,17 +33,9 @@ export namespace SalesBrowsers$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesBrowsers> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesBrowsers> = z.object({
|
||||||
.object({
|
|
||||||
browser: z.string(),
|
browser: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
browser: v.browser,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -292,20 +292,11 @@ export namespace SalesCitiesCountry$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesCities$ {
|
export namespace SalesCities$ {
|
||||||
export const inboundSchema: z.ZodType<SalesCities, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesCities, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
city: z.string(),
|
city: z.string(),
|
||||||
country: SalesCitiesCountry$.inboundSchema,
|
country: SalesCitiesCountry$.inboundSchema,
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
city: v.city,
|
|
||||||
country: v.country,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -315,19 +306,10 @@ export namespace SalesCities$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesCities> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesCities> = z.object({
|
||||||
.object({
|
|
||||||
city: z.string(),
|
city: z.string(),
|
||||||
country: SalesCitiesCountry$.outboundSchema,
|
country: SalesCitiesCountry$.outboundSchema,
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
city: v.city,
|
|
||||||
country: v.country,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ export type SalesCount = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesCount$ {
|
export namespace SalesCount$ {
|
||||||
export const inboundSchema: z.ZodType<SalesCount, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesCount, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -34,15 +27,8 @@ export namespace SalesCount$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesCount> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesCount> = z.object({
|
||||||
.object({
|
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -288,18 +288,10 @@ export namespace SalesCountriesCountry$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesCountries$ {
|
export namespace SalesCountries$ {
|
||||||
export const inboundSchema: z.ZodType<SalesCountries, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesCountries, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
country: SalesCountriesCountry$.inboundSchema,
|
country: SalesCountriesCountry$.inboundSchema,
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
country: v.country,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -308,17 +300,9 @@ export namespace SalesCountries$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesCountries> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesCountries> = z.object({
|
||||||
.object({
|
|
||||||
country: SalesCountriesCountry$.outboundSchema,
|
country: SalesCountriesCountry$.outboundSchema,
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
country: v.country,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,18 +21,10 @@ export type SalesDevices = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesDevices$ {
|
export namespace SalesDevices$ {
|
||||||
export const inboundSchema: z.ZodType<SalesDevices, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesDevices, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
device: z.string(),
|
device: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
device: v.device,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -41,17 +33,9 @@ export namespace SalesDevices$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesDevices> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesDevices> = z.object({
|
||||||
.object({
|
|
||||||
device: z.string(),
|
device: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
device: v.device,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,18 +21,10 @@ export type SalesOS = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesOS$ {
|
export namespace SalesOS$ {
|
||||||
export const inboundSchema: z.ZodType<SalesOS, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesOS, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
os: z.string(),
|
os: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
os: v.os,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -41,17 +33,9 @@ export namespace SalesOS$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesOS> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesOS> = z.object({
|
||||||
.object({
|
|
||||||
os: z.string(),
|
os: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
os: v.os,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,18 +21,10 @@ export type SalesReferers = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesReferers$ {
|
export namespace SalesReferers$ {
|
||||||
export const inboundSchema: z.ZodType<SalesReferers, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesReferers, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
referer: z.string(),
|
referer: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
referer: v.referer,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -41,17 +33,9 @@ export namespace SalesReferers$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesReferers> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesReferers> = z.object({
|
||||||
.object({
|
|
||||||
referer: z.string(),
|
referer: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
referer: v.referer,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,18 +21,10 @@ export type SalesTimeseries = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesTimeseries$ {
|
export namespace SalesTimeseries$ {
|
||||||
export const inboundSchema: z.ZodType<SalesTimeseries, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesTimeseries, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
start: z.string(),
|
start: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
start: v.start,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -41,17 +33,9 @@ export namespace SalesTimeseries$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesTimeseries> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesTimeseries> = z.object({
|
||||||
.object({
|
|
||||||
start: z.string(),
|
start: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
start: v.start,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,8 +47,7 @@ export type SalesTopLinks = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesTopLinks$ {
|
export namespace SalesTopLinks$ {
|
||||||
export const inboundSchema: z.ZodType<SalesTopLinks, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesTopLinks, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
link: z.string(),
|
link: z.string(),
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
domain: z.string(),
|
domain: z.string(),
|
||||||
@@ -58,19 +57,6 @@ export namespace SalesTopLinks$ {
|
|||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
link: v.link,
|
|
||||||
id: v.id,
|
|
||||||
domain: v.domain,
|
|
||||||
key: v.key,
|
|
||||||
shortLink: v.shortLink,
|
|
||||||
url: v.url,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -85,8 +71,7 @@ export namespace SalesTopLinks$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesTopLinks> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesTopLinks> = z.object({
|
||||||
.object({
|
|
||||||
link: z.string(),
|
link: z.string(),
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
domain: z.string(),
|
domain: z.string(),
|
||||||
@@ -96,18 +81,5 @@ export namespace SalesTopLinks$ {
|
|||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
link: v.link,
|
|
||||||
id: v.id,
|
|
||||||
domain: v.domain,
|
|
||||||
key: v.key,
|
|
||||||
shortLink: v.shortLink,
|
|
||||||
url: v.url,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,18 +21,10 @@ export type SalesTopUrls = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesTopUrls$ {
|
export namespace SalesTopUrls$ {
|
||||||
export const inboundSchema: z.ZodType<SalesTopUrls, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SalesTopUrls, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -41,17 +33,9 @@ export namespace SalesTopUrls$ {
|
|||||||
amount: number;
|
amount: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesTopUrls> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SalesTopUrls> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
sales: z.number(),
|
sales: z.number(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
sales: v.sales,
|
|
||||||
amount: v.amount,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,27 +10,15 @@ export type Security = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Security$ {
|
export namespace Security$ {
|
||||||
export const inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
token: z.string().optional(),
|
token: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.token === undefined ? null : { token: v.token }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
token?: string | undefined;
|
token?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Security> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Security> = z.object({
|
||||||
.object({
|
|
||||||
token: z.string().optional(),
|
token: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.token === undefined ? null : { token: v.token }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,18 +45,10 @@ export namespace Color$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TagSchema$ {
|
export namespace TagSchema$ {
|
||||||
export const inboundSchema: z.ZodType<TagSchema, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TagSchema, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
color: Color$.inboundSchema,
|
color: Color$.inboundSchema,
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
name: v.name,
|
|
||||||
color: v.color,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -65,17 +57,9 @@ export namespace TagSchema$ {
|
|||||||
color: string;
|
color: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TagSchema> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TagSchema> = z.object({
|
||||||
.object({
|
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
color: Color$.outboundSchema,
|
color: Color$.outboundSchema,
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
name: v.name,
|
|
||||||
color: v.color,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,43 +149,24 @@ export namespace Role$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Users$ {
|
export namespace Users$ {
|
||||||
export const inboundSchema: z.ZodType<Users, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Users, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
role: Role$.inboundSchema,
|
role: Role$.inboundSchema,
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
role: v.role,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
role: string;
|
role: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Users> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Users> = z.object({
|
||||||
.object({
|
|
||||||
role: Role$.outboundSchema,
|
role: Role$.outboundSchema,
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
role: v.role,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Domains$ {
|
export namespace Domains$ {
|
||||||
export const inboundSchema: z.ZodType<Domains, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Domains, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
primary: z.boolean().default(false),
|
primary: z.boolean().default(false),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
primary: v.primary,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -193,23 +174,15 @@ export namespace Domains$ {
|
|||||||
primary: boolean;
|
primary: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Domains> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Domains> = z.object({
|
||||||
.object({
|
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
primary: z.boolean().default(false),
|
primary: z.boolean().default(false),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
primary: v.primary,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace WorkspaceSchema$ {
|
export namespace WorkspaceSchema$ {
|
||||||
export const inboundSchema: z.ZodType<WorkspaceSchema, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<WorkspaceSchema, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
@@ -230,30 +203,6 @@ export namespace WorkspaceSchema$ {
|
|||||||
domains: z.array(z.lazy(() => Domains$.inboundSchema)),
|
domains: z.array(z.lazy(() => Domains$.inboundSchema)),
|
||||||
inviteCode: z.nullable(z.string()),
|
inviteCode: z.nullable(z.string()),
|
||||||
betaTester: z.boolean().optional(),
|
betaTester: z.boolean().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
name: v.name,
|
|
||||||
slug: v.slug,
|
|
||||||
logo: v.logo,
|
|
||||||
usage: v.usage,
|
|
||||||
usageLimit: v.usageLimit,
|
|
||||||
linksUsage: v.linksUsage,
|
|
||||||
linksLimit: v.linksLimit,
|
|
||||||
domainsLimit: v.domainsLimit,
|
|
||||||
tagsLimit: v.tagsLimit,
|
|
||||||
usersLimit: v.usersLimit,
|
|
||||||
plan: v.plan,
|
|
||||||
stripeId: v.stripeId,
|
|
||||||
billingCycleStart: v.billingCycleStart,
|
|
||||||
stripeConnectId: v.stripeConnectId,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
users: v.users,
|
|
||||||
domains: v.domains,
|
|
||||||
inviteCode: v.inviteCode,
|
|
||||||
...(v.betaTester === undefined ? null : { betaTester: v.betaTester }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -279,8 +228,7 @@ export namespace WorkspaceSchema$ {
|
|||||||
betaTester?: boolean | undefined;
|
betaTester?: boolean | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, WorkspaceSchema> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, WorkspaceSchema> = z.object({
|
||||||
.object({
|
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
@@ -301,29 +249,5 @@ export namespace WorkspaceSchema$ {
|
|||||||
domains: z.array(z.lazy(() => Domains$.outboundSchema)),
|
domains: z.array(z.lazy(() => Domains$.outboundSchema)),
|
||||||
inviteCode: z.nullable(z.string()),
|
inviteCode: z.nullable(z.string()),
|
||||||
betaTester: z.boolean().optional(),
|
betaTester: z.boolean().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
name: v.name,
|
|
||||||
slug: v.slug,
|
|
||||||
logo: v.logo,
|
|
||||||
usage: v.usage,
|
|
||||||
usageLimit: v.usageLimit,
|
|
||||||
linksUsage: v.linksUsage,
|
|
||||||
linksLimit: v.linksLimit,
|
|
||||||
domainsLimit: v.domainsLimit,
|
|
||||||
tagsLimit: v.tagsLimit,
|
|
||||||
usersLimit: v.usersLimit,
|
|
||||||
plan: v.plan,
|
|
||||||
stripeId: v.stripeId,
|
|
||||||
billingCycleStart: v.billingCycleStart,
|
|
||||||
stripeConnectId: v.stripeConnectId,
|
|
||||||
createdAt: v.createdAt,
|
|
||||||
users: v.users,
|
|
||||||
domains: v.domains,
|
|
||||||
inviteCode: v.inviteCode,
|
|
||||||
...(v.betaTester === undefined ? null : { betaTester: v.betaTester }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace ErrorT$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace ErrorT$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace BadRequest$ {
|
|||||||
error: z.lazy(() => ErrorT$.inboundSchema),
|
error: z.lazy(() => ErrorT$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new BadRequest({
|
return new BadRequest(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace BadRequest$ {
|
|||||||
.instanceof(BadRequest)
|
.instanceof(BadRequest)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => ErrorT$.outboundSchema),
|
error: z.lazy(() => ErrorT$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace ConflictError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace ConflictError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace Conflict$ {
|
|||||||
error: z.lazy(() => ConflictError$.inboundSchema),
|
error: z.lazy(() => ConflictError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new Conflict({
|
return new Conflict(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace Conflict$ {
|
|||||||
.instanceof(Conflict)
|
.instanceof(Conflict)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => ConflictError$.outboundSchema),
|
error: z.lazy(() => ConflictError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace ForbiddenError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace ForbiddenError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace Forbidden$ {
|
|||||||
error: z.lazy(() => ForbiddenError$.inboundSchema),
|
error: z.lazy(() => ForbiddenError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new Forbidden({
|
return new Forbidden(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace Forbidden$ {
|
|||||||
.instanceof(Forbidden)
|
.instanceof(Forbidden)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => ForbiddenError$.outboundSchema),
|
error: z.lazy(() => ForbiddenError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace InternalServerErrorError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace InternalServerErrorError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace InternalServerError$ {
|
|||||||
error: z.lazy(() => InternalServerErrorError$.inboundSchema),
|
error: z.lazy(() => InternalServerErrorError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new InternalServerError({
|
return new InternalServerError(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace InternalServerError$ {
|
|||||||
.instanceof(InternalServerError)
|
.instanceof(InternalServerError)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => InternalServerErrorError$.outboundSchema),
|
error: z.lazy(() => InternalServerErrorError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace InviteExpiredError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace InviteExpiredError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace InviteExpired$ {
|
|||||||
error: z.lazy(() => InviteExpiredError$.inboundSchema),
|
error: z.lazy(() => InviteExpiredError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new InviteExpired({
|
return new InviteExpired(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace InviteExpired$ {
|
|||||||
.instanceof(InviteExpired)
|
.instanceof(InviteExpired)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => InviteExpiredError$.outboundSchema),
|
error: z.lazy(() => InviteExpiredError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace NotFoundError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace NotFoundError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace NotFound$ {
|
|||||||
error: z.lazy(() => NotFoundError$.inboundSchema),
|
error: z.lazy(() => NotFoundError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new NotFound({
|
return new NotFound(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace NotFound$ {
|
|||||||
.instanceof(NotFound)
|
.instanceof(NotFound)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => NotFoundError$.outboundSchema),
|
error: z.lazy(() => NotFoundError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace RateLimitExceededError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace RateLimitExceededError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace RateLimitExceeded$ {
|
|||||||
error: z.lazy(() => RateLimitExceededError$.inboundSchema),
|
error: z.lazy(() => RateLimitExceededError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new RateLimitExceeded({
|
return new RateLimitExceeded(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace RateLimitExceeded$ {
|
|||||||
.instanceof(RateLimitExceeded)
|
.instanceof(RateLimitExceeded)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => RateLimitExceededError$.outboundSchema),
|
error: z.lazy(() => RateLimitExceededError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace UnauthorizedError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace UnauthorizedError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace Unauthorized$ {
|
|||||||
error: z.lazy(() => UnauthorizedError$.inboundSchema),
|
error: z.lazy(() => UnauthorizedError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new Unauthorized({
|
return new Unauthorized(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace Unauthorized$ {
|
|||||||
.instanceof(Unauthorized)
|
.instanceof(Unauthorized)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => UnauthorizedError$.outboundSchema),
|
error: z.lazy(() => UnauthorizedError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -77,11 +78,9 @@ export namespace UnprocessableEntityError$ {
|
|||||||
doc_url: z.string().optional(),
|
doc_url: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
doc_url: "docUrl",
|
||||||
message: v.message,
|
});
|
||||||
...(v.doc_url === undefined ? null : { docUrl: v.doc_url }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -97,11 +96,9 @@ export namespace UnprocessableEntityError$ {
|
|||||||
docUrl: z.string().optional(),
|
docUrl: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
code: v.code,
|
docUrl: "doc_url",
|
||||||
message: v.message,
|
});
|
||||||
...(v.docUrl === undefined ? null : { doc_url: v.docUrl }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,9 +109,7 @@ export namespace UnprocessableEntity$ {
|
|||||||
error: z.lazy(() => UnprocessableEntityError$.inboundSchema),
|
error: z.lazy(() => UnprocessableEntityError$.inboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new UnprocessableEntity({
|
return new UnprocessableEntity(v);
|
||||||
error: v.error,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,14 +120,8 @@ export namespace UnprocessableEntity$ {
|
|||||||
.instanceof(UnprocessableEntity)
|
.instanceof(UnprocessableEntity)
|
||||||
.transform((v) => v.data$)
|
.transform((v) => v.data$)
|
||||||
.pipe(
|
.pipe(
|
||||||
z
|
z.object({
|
||||||
.object({
|
|
||||||
error: z.lazy(() => UnprocessableEntityError$.outboundSchema),
|
error: z.lazy(() => UnprocessableEntityError$.outboundSchema),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
error: v.error,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,16 +58,9 @@ export type AddDomainRequestBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace AddDomainGlobals$ {
|
export namespace AddDomainGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<AddDomainGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<AddDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -75,16 +68,9 @@ export namespace AddDomainGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,8 +82,7 @@ export namespace Type$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace AddDomainRequestBody$ {
|
export namespace AddDomainRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<AddDomainRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<AddDomainRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
type: Type$.inboundSchema.default("redirect"),
|
type: Type$.inboundSchema.default("redirect"),
|
||||||
target: z.nullable(z.string()).optional(),
|
target: z.nullable(z.string()).optional(),
|
||||||
@@ -105,17 +90,6 @@ export namespace AddDomainRequestBody$ {
|
|||||||
archived: z.boolean().default(false),
|
archived: z.boolean().default(false),
|
||||||
noindex: z.boolean().optional(),
|
noindex: z.boolean().optional(),
|
||||||
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
type: v.type,
|
|
||||||
...(v.target === undefined ? null : { target: v.target }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
archived: v.archived,
|
|
||||||
...(v.noindex === undefined ? null : { noindex: v.noindex }),
|
|
||||||
placeholder: v.placeholder,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -128,8 +102,8 @@ export namespace AddDomainRequestBody$ {
|
|||||||
placeholder: string | null;
|
placeholder: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainRequestBody> = z.object(
|
||||||
.object({
|
{
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
type: Type$.outboundSchema.default("redirect"),
|
type: Type$.outboundSchema.default("redirect"),
|
||||||
target: z.nullable(z.string()).optional(),
|
target: z.nullable(z.string()).optional(),
|
||||||
@@ -137,16 +111,6 @@ export namespace AddDomainRequestBody$ {
|
|||||||
archived: z.boolean().default(false),
|
archived: z.boolean().default(false),
|
||||||
noindex: z.boolean().optional(),
|
noindex: z.boolean().optional(),
|
||||||
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
type: v.type,
|
|
||||||
...(v.target === undefined ? null : { target: v.target }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
archived: v.archived,
|
|
||||||
...(v.noindex === undefined ? null : { noindex: v.noindex }),
|
|
||||||
placeholder: v.placeholder,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,33 +122,22 @@ export type RequestBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace BulkCreateLinksGlobals$ {
|
export namespace BulkCreateLinksGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<BulkCreateLinksGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<BulkCreateLinksGlobals, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId: string;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, BulkCreateLinksGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, BulkCreateLinksGlobals> =
|
||||||
.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,8 +167,7 @@ export namespace BulkCreateLinksTagNames$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace RequestBody$ {
|
export namespace RequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<RequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<RequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -203,33 +191,6 @@ export namespace RequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -258,8 +219,7 @@ export namespace RequestBody$ {
|
|||||||
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RequestBody> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -283,32 +243,5 @@ export namespace RequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,16 +122,9 @@ export type CreateLinkRequestBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreateLinkGlobals$ {
|
export namespace CreateLinkGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<CreateLinkGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreateLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -139,16 +132,9 @@ export namespace CreateLinkGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,8 +168,7 @@ export namespace TagNames$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreateLinkRequestBody$ {
|
export namespace CreateLinkRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<CreateLinkRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreateLinkRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -207,33 +192,6 @@ export namespace CreateLinkRequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -262,8 +220,8 @@ export namespace CreateLinkRequestBody$ {
|
|||||||
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkRequestBody> =
|
||||||
.object({
|
z.object({
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -287,32 +245,5 @@ export namespace CreateLinkRequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,16 +43,9 @@ export type CreateTagRequestBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreateTagGlobals$ {
|
export namespace CreateTagGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<CreateTagGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreateTagGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -60,16 +53,9 @@ export namespace CreateTagGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,16 +67,9 @@ export namespace Color$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreateTagRequestBody$ {
|
export namespace CreateTagRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<CreateTagRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreateTagRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
tag: z.string(),
|
tag: z.string(),
|
||||||
color: Color$.inboundSchema.optional(),
|
color: Color$.inboundSchema.optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
tag: v.tag,
|
|
||||||
...(v.color === undefined ? null : { color: v.color }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -98,15 +77,10 @@ export namespace CreateTagRequestBody$ {
|
|||||||
color?: string | undefined;
|
color?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagRequestBody> = z.object(
|
||||||
.object({
|
{
|
||||||
tag: z.string(),
|
tag: z.string(),
|
||||||
color: Color$.outboundSchema.optional(),
|
color: Color$.outboundSchema.optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
tag: v.tag,
|
|
||||||
...(v.color === undefined ? null : { color: v.color }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,18 +12,11 @@ export type CreateWorkspaceRequestBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreateWorkspaceRequestBody$ {
|
export namespace CreateWorkspaceRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<CreateWorkspaceRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreateWorkspaceRequestBody, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
name: v.name,
|
|
||||||
slug: v.slug,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -32,17 +25,10 @@ export namespace CreateWorkspaceRequestBody$ {
|
|||||||
domain?: string | undefined;
|
domain?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateWorkspaceRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateWorkspaceRequestBody> =
|
||||||
.object({
|
z.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
name: v.name,
|
|
||||||
slug: v.slug,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,16 +31,9 @@ export type DeleteDomainResponseBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteDomainGlobals$ {
|
export namespace DeleteDomainGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteDomainGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -48,69 +41,40 @@ export namespace DeleteDomainGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteDomainRequest$ {
|
export namespace DeleteDomainRequest$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteDomainRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteDomainRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
slug: string;
|
slug: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainRequest> = z.object({
|
||||||
.object({
|
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteDomainResponseBody$ {
|
export namespace DeleteDomainResponseBody$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteDomainResponseBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteDomainResponseBody, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
slug: string;
|
slug: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainResponseBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainResponseBody> =
|
||||||
.object({
|
z.object({
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,16 +31,9 @@ export type DeleteLinkResponseBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteLinkGlobals$ {
|
export namespace DeleteLinkGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteLinkGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -48,69 +41,41 @@ export namespace DeleteLinkGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteLinkRequest$ {
|
export namespace DeleteLinkRequest$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteLinkRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteLinkRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
linkId: z.string(),
|
linkId: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
linkId: v.linkId,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
linkId: string;
|
linkId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkRequest> = z.object({
|
||||||
.object({
|
|
||||||
linkId: z.string(),
|
linkId: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
linkId: v.linkId,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteLinkResponseBody$ {
|
export namespace DeleteLinkResponseBody$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteLinkResponseBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteLinkResponseBody, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id: string;
|
id: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkResponseBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkResponseBody> =
|
||||||
.object({
|
z.object({
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,16 +30,9 @@ export type GetLinkInfoRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinkInfoGlobals$ {
|
export namespace GetLinkInfoGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinkInfoGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLinkInfoGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -47,35 +40,19 @@ export namespace GetLinkInfoGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinkInfoGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinkInfoGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinkInfoRequest$ {
|
export namespace GetLinkInfoRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinkInfoRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLinkInfoRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
linkId: z.string().optional(),
|
linkId: z.string().optional(),
|
||||||
externalId: z.string().optional(),
|
externalId: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.linkId === undefined ? null : { linkId: v.linkId }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -85,19 +62,10 @@ export namespace GetLinkInfoRequest$ {
|
|||||||
externalId?: string | undefined;
|
externalId?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinkInfoRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinkInfoRequest> = z.object({
|
||||||
.object({
|
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
linkId: z.string().optional(),
|
linkId: z.string().optional(),
|
||||||
externalId: z.string().optional(),
|
externalId: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.linkId === undefined ? null : { linkId: v.linkId }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,16 +81,9 @@ export type GetLinksRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinksGlobals$ {
|
export namespace GetLinksGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinksGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLinksGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -98,16 +91,9 @@ export namespace GetLinksGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,8 +133,7 @@ export namespace Sort$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinksRequest$ {
|
export namespace GetLinksRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinksRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLinksRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
tagId: z.string().optional(),
|
tagId: z.string().optional(),
|
||||||
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
@@ -159,20 +144,6 @@ export namespace GetLinksRequest$ {
|
|||||||
withTags: z.boolean().default(false),
|
withTags: z.boolean().default(false),
|
||||||
sort: Sort$.inboundSchema.default("createdAt"),
|
sort: Sort$.inboundSchema.default("createdAt"),
|
||||||
page: z.number().optional(),
|
page: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.search === undefined ? null : { search: v.search }),
|
|
||||||
...(v.userId === undefined ? null : { userId: v.userId }),
|
|
||||||
showArchived: v.showArchived,
|
|
||||||
withTags: v.withTags,
|
|
||||||
sort: v.sort,
|
|
||||||
...(v.page === undefined ? null : { page: v.page }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -188,8 +159,7 @@ export namespace GetLinksRequest$ {
|
|||||||
page?: number | undefined;
|
page?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksRequest> = z.object({
|
||||||
.object({
|
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
tagId: z.string().optional(),
|
tagId: z.string().optional(),
|
||||||
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
@@ -200,19 +170,5 @@ export namespace GetLinksRequest$ {
|
|||||||
withTags: z.boolean().default(false),
|
withTags: z.boolean().default(false),
|
||||||
sort: Sort$.outboundSchema.default("createdAt"),
|
sort: Sort$.outboundSchema.default("createdAt"),
|
||||||
page: z.number().optional(),
|
page: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.search === undefined ? null : { search: v.search }),
|
|
||||||
...(v.userId === undefined ? null : { userId: v.userId }),
|
|
||||||
showArchived: v.showArchived,
|
|
||||||
withTags: v.withTags,
|
|
||||||
sort: v.sort,
|
|
||||||
...(v.page === undefined ? null : { page: v.page }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,16 +79,9 @@ export type GetLinksCountRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinksCountGlobals$ {
|
export namespace GetLinksCountGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinksCountGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLinksCountGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -96,17 +89,12 @@ export namespace GetLinksCountGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksCountGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksCountGlobals> = z.object(
|
||||||
.object({
|
{
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -160,8 +148,7 @@ export namespace GroupBy$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinksCountRequest$ {
|
export namespace GetLinksCountRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinksCountRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLinksCountRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
tagId: z.string().optional(),
|
tagId: z.string().optional(),
|
||||||
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
@@ -171,19 +158,6 @@ export namespace GetLinksCountRequest$ {
|
|||||||
showArchived: z.boolean().default(false),
|
showArchived: z.boolean().default(false),
|
||||||
withTags: z.boolean().default(false),
|
withTags: z.boolean().default(false),
|
||||||
groupBy: z.union([One$.inboundSchema, Two$.inboundSchema]).optional(),
|
groupBy: z.union([One$.inboundSchema, Two$.inboundSchema]).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.search === undefined ? null : { search: v.search }),
|
|
||||||
...(v.userId === undefined ? null : { userId: v.userId }),
|
|
||||||
showArchived: v.showArchived,
|
|
||||||
withTags: v.withTags,
|
|
||||||
...(v.groupBy === undefined ? null : { groupBy: v.groupBy }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -198,8 +172,8 @@ export namespace GetLinksCountRequest$ {
|
|||||||
groupBy?: string | string | undefined;
|
groupBy?: string | string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksCountRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksCountRequest> = z.object(
|
||||||
.object({
|
{
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
tagId: z.string().optional(),
|
tagId: z.string().optional(),
|
||||||
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
@@ -209,18 +183,6 @@ export namespace GetLinksCountRequest$ {
|
|||||||
showArchived: z.boolean().default(false),
|
showArchived: z.boolean().default(false),
|
||||||
withTags: z.boolean().default(false),
|
withTags: z.boolean().default(false),
|
||||||
groupBy: z.union([One$.outboundSchema, Two$.outboundSchema]).optional(),
|
groupBy: z.union([One$.outboundSchema, Two$.outboundSchema]).optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.search === undefined ? null : { search: v.search }),
|
|
||||||
...(v.userId === undefined ? null : { userId: v.userId }),
|
|
||||||
showArchived: v.showArchived,
|
|
||||||
withTags: v.withTags,
|
|
||||||
...(v.groupBy === undefined ? null : { groupBy: v.groupBy }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,45 +31,26 @@ export type GetMetatagsResponseBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMetatagsRequest$ {
|
export namespace GetMetatagsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetMetatagsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMetatagsRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetatagsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetatagsRequest> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMetatagsResponseBody$ {
|
export namespace GetMetatagsResponseBody$ {
|
||||||
export const inboundSchema: z.ZodType<GetMetatagsResponseBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMetatagsResponseBody, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
title: z.nullable(z.string()),
|
title: z.nullable(z.string()),
|
||||||
description: z.nullable(z.string()),
|
description: z.nullable(z.string()),
|
||||||
image: z.nullable(z.string()),
|
image: z.nullable(z.string()),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
title: v.title,
|
|
||||||
description: v.description,
|
|
||||||
image: v.image,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -78,17 +59,10 @@ export namespace GetMetatagsResponseBody$ {
|
|||||||
image: string | null;
|
image: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetatagsResponseBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetatagsResponseBody> =
|
||||||
.object({
|
z.object({
|
||||||
title: z.nullable(z.string()),
|
title: z.nullable(z.string()),
|
||||||
description: z.nullable(z.string()),
|
description: z.nullable(z.string()),
|
||||||
image: z.nullable(z.string()),
|
image: z.nullable(z.string()),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
title: v.title,
|
|
||||||
description: v.description,
|
|
||||||
image: v.image,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,24 +54,13 @@ export namespace Level$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetQRCodeRequest$ {
|
export namespace GetQRCodeRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetQRCodeRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetQRCodeRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
size: z.number().default(600),
|
size: z.number().default(600),
|
||||||
level: Level$.inboundSchema.default("L"),
|
level: Level$.inboundSchema.default("L"),
|
||||||
fgColor: z.string().default("#000000"),
|
fgColor: z.string().default("#000000"),
|
||||||
bgColor: z.string().default("#FFFFFF"),
|
bgColor: z.string().default("#FFFFFF"),
|
||||||
includeMargin: z.boolean().default(false),
|
includeMargin: z.boolean().default(false),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
size: v.size,
|
|
||||||
level: v.level,
|
|
||||||
fgColor: v.fgColor,
|
|
||||||
bgColor: v.bgColor,
|
|
||||||
includeMargin: v.includeMargin,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -83,23 +72,12 @@ export namespace GetQRCodeRequest$ {
|
|||||||
includeMargin: boolean;
|
includeMargin: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetQRCodeRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetQRCodeRequest> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
size: z.number().default(600),
|
size: z.number().default(600),
|
||||||
level: Level$.outboundSchema.default("L"),
|
level: Level$.outboundSchema.default("L"),
|
||||||
fgColor: z.string().default("#000000"),
|
fgColor: z.string().default("#000000"),
|
||||||
bgColor: z.string().default("#FFFFFF"),
|
bgColor: z.string().default("#FFFFFF"),
|
||||||
includeMargin: z.boolean().default(false),
|
includeMargin: z.boolean().default(false),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
size: v.size,
|
|
||||||
level: v.level,
|
|
||||||
fgColor: v.fgColor,
|
|
||||||
bgColor: v.bgColor,
|
|
||||||
includeMargin: v.includeMargin,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,16 +16,9 @@ export type GetTagsRequest = {};
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetTagsGlobals$ {
|
export namespace GetTagsGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetTagsGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetTagsGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -33,16 +26,9 @@ export namespace GetTagsGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTagsGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTagsGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,27 +13,15 @@ export type GetWorkspaceRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetWorkspaceRequest$ {
|
export namespace GetWorkspaceRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetWorkspaceRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetWorkspaceRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
idOrSlug: z.string(),
|
idOrSlug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
idOrSlug: v.idOrSlug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
idOrSlug: string;
|
idOrSlug: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetWorkspaceRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetWorkspaceRequest> = z.object({
|
||||||
.object({
|
|
||||||
idOrSlug: z.string(),
|
idOrSlug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
idOrSlug: v.idOrSlug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,16 +16,9 @@ export type ListDomainsRequest = {};
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ListDomainsGlobals$ {
|
export namespace ListDomainsGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<ListDomainsGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ListDomainsGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -33,16 +26,9 @@ export namespace ListDomainsGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListDomainsGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListDomainsGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -187,16 +187,10 @@ export type RetrieveAnalyticsResponseBody =
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace RetrieveAnalyticsGlobals$ {
|
export namespace RetrieveAnalyticsGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<RetrieveAnalyticsGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<RetrieveAnalyticsGlobals, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -204,16 +198,10 @@ export namespace RetrieveAnalyticsGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RetrieveAnalyticsGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RetrieveAnalyticsGlobals> =
|
||||||
.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,8 +225,8 @@ export namespace Interval$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace RetrieveAnalyticsRequest$ {
|
export namespace RetrieveAnalyticsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<RetrieveAnalyticsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<RetrieveAnalyticsRequest, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
event: Event$.inboundSchema.default("clicks"),
|
event: Event$.inboundSchema.default("clicks"),
|
||||||
groupBy: QueryParamGroupBy$.inboundSchema.default("count"),
|
groupBy: QueryParamGroupBy$.inboundSchema.default("count"),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
@@ -259,30 +247,6 @@ export namespace RetrieveAnalyticsRequest$ {
|
|||||||
tagId: z.string().optional(),
|
tagId: z.string().optional(),
|
||||||
qr: z.boolean().optional(),
|
qr: z.boolean().optional(),
|
||||||
root: z.boolean().optional(),
|
root: z.boolean().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
event: v.event,
|
|
||||||
groupBy: v.groupBy,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.linkId === undefined ? null : { linkId: v.linkId }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.interval === undefined ? null : { interval: v.interval }),
|
|
||||||
...(v.start === undefined ? null : { start: v.start }),
|
|
||||||
...(v.end === undefined ? null : { end: v.end }),
|
|
||||||
timezone: v.timezone,
|
|
||||||
...(v.country === undefined ? null : { country: v.country }),
|
|
||||||
...(v.city === undefined ? null : { city: v.city }),
|
|
||||||
...(v.device === undefined ? null : { device: v.device }),
|
|
||||||
...(v.browser === undefined ? null : { browser: v.browser }),
|
|
||||||
...(v.os === undefined ? null : { os: v.os }),
|
|
||||||
...(v.referer === undefined ? null : { referer: v.referer }),
|
|
||||||
...(v.url === undefined ? null : { url: v.url }),
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.qr === undefined ? null : { qr: v.qr }),
|
|
||||||
...(v.root === undefined ? null : { root: v.root }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -308,8 +272,8 @@ export namespace RetrieveAnalyticsRequest$ {
|
|||||||
root?: boolean | undefined;
|
root?: boolean | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RetrieveAnalyticsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RetrieveAnalyticsRequest> =
|
||||||
.object({
|
z.object({
|
||||||
event: Event$.outboundSchema.default("clicks"),
|
event: Event$.outboundSchema.default("clicks"),
|
||||||
groupBy: QueryParamGroupBy$.outboundSchema.default("count"),
|
groupBy: QueryParamGroupBy$.outboundSchema.default("count"),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
@@ -330,30 +294,6 @@ export namespace RetrieveAnalyticsRequest$ {
|
|||||||
tagId: z.string().optional(),
|
tagId: z.string().optional(),
|
||||||
qr: z.boolean().optional(),
|
qr: z.boolean().optional(),
|
||||||
root: z.boolean().optional(),
|
root: z.boolean().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
event: v.event,
|
|
||||||
groupBy: v.groupBy,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.linkId === undefined ? null : { linkId: v.linkId }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.interval === undefined ? null : { interval: v.interval }),
|
|
||||||
...(v.start === undefined ? null : { start: v.start }),
|
|
||||||
...(v.end === undefined ? null : { end: v.end }),
|
|
||||||
timezone: v.timezone,
|
|
||||||
...(v.country === undefined ? null : { country: v.country }),
|
|
||||||
...(v.city === undefined ? null : { city: v.city }),
|
|
||||||
...(v.device === undefined ? null : { device: v.device }),
|
|
||||||
...(v.browser === undefined ? null : { browser: v.browser }),
|
|
||||||
...(v.os === undefined ? null : { os: v.os }),
|
|
||||||
...(v.referer === undefined ? null : { referer: v.referer }),
|
|
||||||
...(v.url === undefined ? null : { url: v.url }),
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.qr === undefined ? null : { qr: v.qr }),
|
|
||||||
...(v.root === undefined ? null : { root: v.root }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,16 +21,10 @@ export type SetPrimaryDomainRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SetPrimaryDomainGlobals$ {
|
export namespace SetPrimaryDomainGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<SetPrimaryDomainGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SetPrimaryDomainGlobals, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -38,42 +32,26 @@ export namespace SetPrimaryDomainGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SetPrimaryDomainGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SetPrimaryDomainGlobals> =
|
||||||
.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SetPrimaryDomainRequest$ {
|
export namespace SetPrimaryDomainRequest$ {
|
||||||
export const inboundSchema: z.ZodType<SetPrimaryDomainRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SetPrimaryDomainRequest, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
slug: string;
|
slug: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SetPrimaryDomainRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SetPrimaryDomainRequest> =
|
||||||
.object({
|
z.object({
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
slug: v.slug,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,16 +43,9 @@ export type TrackCustomerResponseBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackCustomerGlobals$ {
|
export namespace TrackCustomerGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<TrackCustomerGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackCustomerGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -60,35 +53,22 @@ export namespace TrackCustomerGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerGlobals> = z.object(
|
||||||
.object({
|
{
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackCustomerRequestBody$ {
|
export namespace TrackCustomerRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<TrackCustomerRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackCustomerRequestBody, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
customerName: z.string().optional(),
|
customerName: z.string().optional(),
|
||||||
customerEmail: z.string().optional(),
|
customerEmail: z.string().optional(),
|
||||||
customerAvatar: z.string().optional(),
|
customerAvatar: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
|
||||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
|
||||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -98,39 +78,23 @@ export namespace TrackCustomerRequestBody$ {
|
|||||||
customerAvatar?: string | undefined;
|
customerAvatar?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerRequestBody> =
|
||||||
.object({
|
z.object({
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
customerName: z.string().optional(),
|
customerName: z.string().optional(),
|
||||||
customerEmail: z.string().optional(),
|
customerEmail: z.string().optional(),
|
||||||
customerAvatar: z.string().optional(),
|
customerAvatar: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
|
||||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
|
||||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackCustomerResponseBody$ {
|
export namespace TrackCustomerResponseBody$ {
|
||||||
export const inboundSchema: z.ZodType<TrackCustomerResponseBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackCustomerResponseBody, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
customerName: z.nullable(z.string()),
|
customerName: z.nullable(z.string()),
|
||||||
customerEmail: z.nullable(z.string()),
|
customerEmail: z.nullable(z.string()),
|
||||||
customerAvatar: z.nullable(z.string()),
|
customerAvatar: z.nullable(z.string()),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
customerName: v.customerName,
|
|
||||||
customerEmail: v.customerEmail,
|
|
||||||
customerAvatar: v.customerAvatar,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -140,19 +104,11 @@ export namespace TrackCustomerResponseBody$ {
|
|||||||
customerAvatar: string | null;
|
customerAvatar: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerResponseBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerResponseBody> =
|
||||||
.object({
|
z.object({
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
customerName: z.nullable(z.string()),
|
customerName: z.nullable(z.string()),
|
||||||
customerEmail: z.nullable(z.string()),
|
customerEmail: z.nullable(z.string()),
|
||||||
customerAvatar: z.nullable(z.string()),
|
customerAvatar: z.nullable(z.string()),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
customerName: v.customerName,
|
|
||||||
customerEmail: v.customerEmail,
|
|
||||||
customerAvatar: v.customerAvatar,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,16 +58,9 @@ export type TrackLeadResponseBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackLeadGlobals$ {
|
export namespace TrackLeadGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<TrackLeadGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackLeadGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -75,23 +68,15 @@ export namespace TrackLeadGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackLeadRequestBody$ {
|
export namespace TrackLeadRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<TrackLeadRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackLeadRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
clickId: z.string(),
|
clickId: z.string(),
|
||||||
eventName: z.string(),
|
eventName: z.string(),
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
@@ -99,17 +84,6 @@ export namespace TrackLeadRequestBody$ {
|
|||||||
customerEmail: z.nullable(z.string()).optional(),
|
customerEmail: z.nullable(z.string()).optional(),
|
||||||
customerAvatar: z.nullable(z.string()).optional(),
|
customerAvatar: z.nullable(z.string()).optional(),
|
||||||
metadata: z.nullable(z.record(z.any())).optional(),
|
metadata: z.nullable(z.record(z.any())).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
clickId: v.clickId,
|
|
||||||
eventName: v.eventName,
|
|
||||||
customerId: v.customerId,
|
|
||||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
|
||||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
|
||||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
|
||||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -122,8 +96,8 @@ export namespace TrackLeadRequestBody$ {
|
|||||||
metadata?: { [k: string]: any } | null | undefined;
|
metadata?: { [k: string]: any } | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadRequestBody> = z.object(
|
||||||
.object({
|
{
|
||||||
clickId: z.string(),
|
clickId: z.string(),
|
||||||
eventName: z.string(),
|
eventName: z.string(),
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
@@ -131,24 +105,13 @@ export namespace TrackLeadRequestBody$ {
|
|||||||
customerEmail: z.nullable(z.string()).optional(),
|
customerEmail: z.nullable(z.string()).optional(),
|
||||||
customerAvatar: z.nullable(z.string()).optional(),
|
customerAvatar: z.nullable(z.string()).optional(),
|
||||||
metadata: z.nullable(z.record(z.any())).optional(),
|
metadata: z.nullable(z.record(z.any())).optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
clickId: v.clickId,
|
|
||||||
eventName: v.eventName,
|
|
||||||
customerId: v.customerId,
|
|
||||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
|
||||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
|
||||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
|
||||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackLeadResponseBody$ {
|
export namespace TrackLeadResponseBody$ {
|
||||||
export const inboundSchema: z.ZodType<TrackLeadResponseBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackLeadResponseBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
clickId: z.string(),
|
clickId: z.string(),
|
||||||
eventName: z.string(),
|
eventName: z.string(),
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
@@ -156,17 +119,6 @@ export namespace TrackLeadResponseBody$ {
|
|||||||
customerEmail: z.nullable(z.string()),
|
customerEmail: z.nullable(z.string()),
|
||||||
customerAvatar: z.nullable(z.string()),
|
customerAvatar: z.nullable(z.string()),
|
||||||
metadata: z.record(z.any()).optional(),
|
metadata: z.record(z.any()).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
clickId: v.clickId,
|
|
||||||
eventName: v.eventName,
|
|
||||||
customerId: v.customerId,
|
|
||||||
customerName: v.customerName,
|
|
||||||
customerEmail: v.customerEmail,
|
|
||||||
customerAvatar: v.customerAvatar,
|
|
||||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -179,8 +131,8 @@ export namespace TrackLeadResponseBody$ {
|
|||||||
metadata?: { [k: string]: any } | undefined;
|
metadata?: { [k: string]: any } | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadResponseBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadResponseBody> =
|
||||||
.object({
|
z.object({
|
||||||
clickId: z.string(),
|
clickId: z.string(),
|
||||||
eventName: z.string(),
|
eventName: z.string(),
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
@@ -188,16 +140,5 @@ export namespace TrackLeadResponseBody$ {
|
|||||||
customerEmail: z.nullable(z.string()),
|
customerEmail: z.nullable(z.string()),
|
||||||
customerAvatar: z.nullable(z.string()),
|
customerAvatar: z.nullable(z.string()),
|
||||||
metadata: z.record(z.any()).optional(),
|
metadata: z.record(z.any()).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
clickId: v.clickId,
|
|
||||||
eventName: v.eventName,
|
|
||||||
customerId: v.customerId,
|
|
||||||
customerName: v.customerName,
|
|
||||||
customerEmail: v.customerEmail,
|
|
||||||
customerAvatar: v.customerAvatar,
|
|
||||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,16 +67,9 @@ export type TrackSaleResponseBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackSaleGlobals$ {
|
export namespace TrackSaleGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<TrackSaleGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackSaleGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -84,16 +77,9 @@ export namespace TrackSaleGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackSaleGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackSaleGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,24 +91,13 @@ export namespace PaymentProcessor$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackSaleRequestBody$ {
|
export namespace TrackSaleRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<TrackSaleRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackSaleRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
amount: z.number().int(),
|
amount: z.number().int(),
|
||||||
paymentProcessor: PaymentProcessor$.inboundSchema,
|
paymentProcessor: PaymentProcessor$.inboundSchema,
|
||||||
invoiceId: z.nullable(z.string()).default(null),
|
invoiceId: z.nullable(z.string()).default(null),
|
||||||
currency: z.string().default("usd"),
|
currency: z.string().default("usd"),
|
||||||
metadata: z.nullable(z.record(z.any())).optional(),
|
metadata: z.nullable(z.record(z.any())).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
amount: v.amount,
|
|
||||||
paymentProcessor: v.paymentProcessor,
|
|
||||||
invoiceId: v.invoiceId,
|
|
||||||
currency: v.currency,
|
|
||||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -134,47 +109,27 @@ export namespace TrackSaleRequestBody$ {
|
|||||||
metadata?: { [k: string]: any } | null | undefined;
|
metadata?: { [k: string]: any } | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackSaleRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackSaleRequestBody> = z.object(
|
||||||
.object({
|
{
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
amount: z.number().int(),
|
amount: z.number().int(),
|
||||||
paymentProcessor: PaymentProcessor$.outboundSchema,
|
paymentProcessor: PaymentProcessor$.outboundSchema,
|
||||||
invoiceId: z.nullable(z.string()).default(null),
|
invoiceId: z.nullable(z.string()).default(null),
|
||||||
currency: z.string().default("usd"),
|
currency: z.string().default("usd"),
|
||||||
metadata: z.nullable(z.record(z.any())).optional(),
|
metadata: z.nullable(z.record(z.any())).optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
amount: v.amount,
|
|
||||||
paymentProcessor: v.paymentProcessor,
|
|
||||||
invoiceId: v.invoiceId,
|
|
||||||
currency: v.currency,
|
|
||||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TrackSaleResponseBody$ {
|
export namespace TrackSaleResponseBody$ {
|
||||||
export const inboundSchema: z.ZodType<TrackSaleResponseBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TrackSaleResponseBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
paymentProcessor: z.string(),
|
paymentProcessor: z.string(),
|
||||||
invoiceId: z.nullable(z.string()),
|
invoiceId: z.nullable(z.string()),
|
||||||
currency: z.string(),
|
currency: z.string(),
|
||||||
metadata: z.nullable(z.record(z.any())),
|
metadata: z.nullable(z.record(z.any())),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
amount: v.amount,
|
|
||||||
paymentProcessor: v.paymentProcessor,
|
|
||||||
invoiceId: v.invoiceId,
|
|
||||||
currency: v.currency,
|
|
||||||
metadata: v.metadata,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -186,23 +141,13 @@ export namespace TrackSaleResponseBody$ {
|
|||||||
metadata: { [k: string]: any } | null;
|
metadata: { [k: string]: any } | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackSaleResponseBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackSaleResponseBody> =
|
||||||
.object({
|
z.object({
|
||||||
customerId: z.string(),
|
customerId: z.string(),
|
||||||
amount: z.number(),
|
amount: z.number(),
|
||||||
paymentProcessor: z.string(),
|
paymentProcessor: z.string(),
|
||||||
invoiceId: z.nullable(z.string()),
|
invoiceId: z.nullable(z.string()),
|
||||||
currency: z.string(),
|
currency: z.string(),
|
||||||
metadata: z.nullable(z.record(z.any())),
|
metadata: z.nullable(z.record(z.any())),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
customerId: v.customerId,
|
|
||||||
amount: v.amount,
|
|
||||||
paymentProcessor: v.paymentProcessor,
|
|
||||||
invoiceId: v.invoiceId,
|
|
||||||
currency: v.currency,
|
|
||||||
metadata: v.metadata,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type TransferDomainGlobals = {
|
export type TransferDomainGlobals = {
|
||||||
@@ -29,16 +30,9 @@ export type TransferDomainRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TransferDomainGlobals$ {
|
export namespace TransferDomainGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<TransferDomainGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TransferDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -46,43 +40,27 @@ export namespace TransferDomainGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TransferDomainGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TransferDomainGlobals> =
|
||||||
.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace TransferDomainRequestBody$ {
|
export namespace TransferDomainRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<TransferDomainRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<TransferDomainRequestBody, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
newWorkspaceId: z.string(),
|
newWorkspaceId: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
newWorkspaceId: v.newWorkspaceId,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
newWorkspaceId: string;
|
newWorkspaceId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TransferDomainRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TransferDomainRequestBody> =
|
||||||
.object({
|
z.object({
|
||||||
newWorkspaceId: z.string(),
|
newWorkspaceId: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
newWorkspaceId: v.newWorkspaceId,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,10 +72,9 @@ export namespace TransferDomainRequest$ {
|
|||||||
RequestBody: z.lazy(() => TransferDomainRequestBody$.inboundSchema).optional(),
|
RequestBody: z.lazy(() => TransferDomainRequestBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
slug: v.slug,
|
RequestBody: "requestBody",
|
||||||
...(v.RequestBody === undefined ? null : { requestBody: v.RequestBody }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -111,9 +88,8 @@ export namespace TransferDomainRequest$ {
|
|||||||
requestBody: z.lazy(() => TransferDomainRequestBody$.outboundSchema).optional(),
|
requestBody: z.lazy(() => TransferDomainRequestBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
slug: v.slug,
|
requestBody: "RequestBody",
|
||||||
...(v.requestBody === undefined ? null : { RequestBody: v.requestBody }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -66,16 +67,9 @@ export type UpdateDomainRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpdateDomainGlobals$ {
|
export namespace UpdateDomainGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<UpdateDomainGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpdateDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -83,16 +77,9 @@ export namespace UpdateDomainGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateDomainGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateDomainGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,8 +91,8 @@ export namespace UpdateDomainType$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpdateDomainRequestBody$ {
|
export namespace UpdateDomainRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<UpdateDomainRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpdateDomainRequestBody, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
slug: z.string().optional(),
|
slug: z.string().optional(),
|
||||||
type: UpdateDomainType$.inboundSchema.default("redirect"),
|
type: UpdateDomainType$.inboundSchema.default("redirect"),
|
||||||
target: z.nullable(z.string()).optional(),
|
target: z.nullable(z.string()).optional(),
|
||||||
@@ -113,17 +100,6 @@ export namespace UpdateDomainRequestBody$ {
|
|||||||
archived: z.boolean().default(false),
|
archived: z.boolean().default(false),
|
||||||
noindex: z.boolean().optional(),
|
noindex: z.boolean().optional(),
|
||||||
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.slug === undefined ? null : { slug: v.slug }),
|
|
||||||
type: v.type,
|
|
||||||
...(v.target === undefined ? null : { target: v.target }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
archived: v.archived,
|
|
||||||
...(v.noindex === undefined ? null : { noindex: v.noindex }),
|
|
||||||
placeholder: v.placeholder,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -136,8 +112,8 @@ export namespace UpdateDomainRequestBody$ {
|
|||||||
placeholder: string | null;
|
placeholder: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateDomainRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateDomainRequestBody> =
|
||||||
.object({
|
z.object({
|
||||||
slug: z.string().optional(),
|
slug: z.string().optional(),
|
||||||
type: UpdateDomainType$.outboundSchema.default("redirect"),
|
type: UpdateDomainType$.outboundSchema.default("redirect"),
|
||||||
target: z.nullable(z.string()).optional(),
|
target: z.nullable(z.string()).optional(),
|
||||||
@@ -145,17 +121,6 @@ export namespace UpdateDomainRequestBody$ {
|
|||||||
archived: z.boolean().default(false),
|
archived: z.boolean().default(false),
|
||||||
noindex: z.boolean().optional(),
|
noindex: z.boolean().optional(),
|
||||||
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.slug === undefined ? null : { slug: v.slug }),
|
|
||||||
type: v.type,
|
|
||||||
...(v.target === undefined ? null : { target: v.target }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
archived: v.archived,
|
|
||||||
...(v.noindex === undefined ? null : { noindex: v.noindex }),
|
|
||||||
placeholder: v.placeholder,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,10 +132,9 @@ export namespace UpdateDomainRequest$ {
|
|||||||
RequestBody: z.lazy(() => UpdateDomainRequestBody$.inboundSchema).optional(),
|
RequestBody: z.lazy(() => UpdateDomainRequestBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
slug: v.slug,
|
RequestBody: "requestBody",
|
||||||
...(v.RequestBody === undefined ? null : { requestBody: v.RequestBody }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -184,9 +148,8 @@ export namespace UpdateDomainRequest$ {
|
|||||||
requestBody: z.lazy(() => UpdateDomainRequestBody$.outboundSchema).optional(),
|
requestBody: z.lazy(() => UpdateDomainRequestBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
slug: v.slug,
|
requestBody: "RequestBody",
|
||||||
...(v.requestBody === undefined ? null : { RequestBody: v.requestBody }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as components from "../components";
|
import * as components from "../components";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -130,16 +131,9 @@ export type UpdateLinkRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpdateLinkGlobals$ {
|
export namespace UpdateLinkGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<UpdateLinkGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpdateLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -147,16 +141,9 @@ export namespace UpdateLinkGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,8 +177,7 @@ export namespace UpdateLinkTagNames$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpdateLinkRequestBody$ {
|
export namespace UpdateLinkRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<UpdateLinkRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpdateLinkRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -215,33 +201,6 @@ export namespace UpdateLinkRequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -270,8 +229,8 @@ export namespace UpdateLinkRequestBody$ {
|
|||||||
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkRequestBody> =
|
||||||
.object({
|
z.object({
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -295,33 +254,6 @@ export namespace UpdateLinkRequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -333,10 +265,9 @@ export namespace UpdateLinkRequest$ {
|
|||||||
RequestBody: z.lazy(() => UpdateLinkRequestBody$.inboundSchema).optional(),
|
RequestBody: z.lazy(() => UpdateLinkRequestBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
linkId: v.linkId,
|
RequestBody: "requestBody",
|
||||||
...(v.RequestBody === undefined ? null : { requestBody: v.RequestBody }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -350,9 +281,8 @@ export namespace UpdateLinkRequest$ {
|
|||||||
requestBody: z.lazy(() => UpdateLinkRequestBody$.outboundSchema).optional(),
|
requestBody: z.lazy(() => UpdateLinkRequestBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
linkId: v.linkId,
|
requestBody: "RequestBody",
|
||||||
...(v.requestBody === undefined ? null : { RequestBody: v.requestBody }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,16 +122,9 @@ export type UpsertLinkRequestBody = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpsertLinkGlobals$ {
|
export namespace UpsertLinkGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<UpsertLinkGlobals, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpsertLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -139,16 +132,9 @@ export namespace UpsertLinkGlobals$ {
|
|||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkGlobals> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkGlobals> = z.object({
|
||||||
.object({
|
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
workspaceId: v.workspaceId,
|
|
||||||
...(v.projectSlug === undefined ? null : { projectSlug: v.projectSlug }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,8 +168,7 @@ export namespace UpsertLinkTagNames$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpsertLinkRequestBody$ {
|
export namespace UpsertLinkRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<UpsertLinkRequestBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpsertLinkRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -207,33 +192,6 @@ export namespace UpsertLinkRequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -262,8 +220,8 @@ export namespace UpsertLinkRequestBody$ {
|
|||||||
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkRequestBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkRequestBody> =
|
||||||
.object({
|
z.object({
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
domain: z.string().optional(),
|
domain: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
@@ -287,32 +245,5 @@ export namespace UpsertLinkRequestBody$ {
|
|||||||
ios: z.nullable(z.string()).optional(),
|
ios: z.nullable(z.string()).optional(),
|
||||||
android: z.nullable(z.string()).optional(),
|
android: z.nullable(z.string()).optional(),
|
||||||
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.domain === undefined ? null : { domain: v.domain }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.externalId === undefined ? null : { externalId: v.externalId }),
|
|
||||||
...(v.prefix === undefined ? null : { prefix: v.prefix }),
|
|
||||||
trackConversion: v.trackConversion,
|
|
||||||
archived: v.archived,
|
|
||||||
publicStats: v.publicStats,
|
|
||||||
...(v.tagId === undefined ? null : { tagId: v.tagId }),
|
|
||||||
...(v.tagIds === undefined ? null : { tagIds: v.tagIds }),
|
|
||||||
...(v.tagNames === undefined ? null : { tagNames: v.tagNames }),
|
|
||||||
...(v.comments === undefined ? null : { comments: v.comments }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.expiredUrl === undefined ? null : { expiredUrl: v.expiredUrl }),
|
|
||||||
...(v.password === undefined ? null : { password: v.password }),
|
|
||||||
proxy: v.proxy,
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
...(v.image === undefined ? null : { image: v.image }),
|
|
||||||
rewrite: v.rewrite,
|
|
||||||
...(v.ios === undefined ? null : { ios: v.ios }),
|
|
||||||
...(v.android === undefined ? null : { android: v.android }),
|
|
||||||
...(v.geo === undefined ? null : { geo: v.geo }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user