dub 0.46.7 → 0.46.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/RUNTIMES.md +1 -1
- package/dist/commonjs/funcs/analyticsRetrieve.js +29 -29
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/customersCreate.js +4 -4
- package/dist/commonjs/funcs/customersCreate.js.map +1 -1
- package/dist/commonjs/funcs/customersDelete.js +4 -4
- package/dist/commonjs/funcs/customersDelete.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js +4 -4
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersList.js +4 -4
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js +4 -4
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/domainsCreate.js +4 -4
- package/dist/commonjs/funcs/domainsCreate.js.map +1 -1
- package/dist/commonjs/funcs/domainsDelete.js +4 -4
- package/dist/commonjs/funcs/domainsDelete.js.map +1 -1
- package/dist/commonjs/funcs/domainsList.js +10 -10
- package/dist/commonjs/funcs/domainsList.js.map +1 -1
- package/dist/commonjs/funcs/domainsUpdate.js +4 -4
- package/dist/commonjs/funcs/domainsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/embedTokensCreate.js +4 -4
- package/dist/commonjs/funcs/embedTokensCreate.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +32 -32
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/linksCount.js +13 -13
- package/dist/commonjs/funcs/linksCount.js.map +1 -1
- package/dist/commonjs/funcs/linksCreate.js +4 -4
- package/dist/commonjs/funcs/linksCreate.js.map +1 -1
- package/dist/commonjs/funcs/linksCreateMany.js +4 -4
- package/dist/commonjs/funcs/linksCreateMany.js.map +1 -1
- package/dist/commonjs/funcs/linksDelete.js +4 -4
- package/dist/commonjs/funcs/linksDelete.js.map +1 -1
- package/dist/commonjs/funcs/linksDeleteMany.js +4 -4
- package/dist/commonjs/funcs/linksDeleteMany.js.map +1 -1
- package/dist/commonjs/funcs/linksGet.js +8 -8
- package/dist/commonjs/funcs/linksGet.js.map +1 -1
- package/dist/commonjs/funcs/linksList.js +17 -17
- package/dist/commonjs/funcs/linksList.js.map +1 -1
- package/dist/commonjs/funcs/linksUpdate.js +4 -4
- package/dist/commonjs/funcs/linksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/linksUpdateMany.js +4 -4
- package/dist/commonjs/funcs/linksUpdateMany.js.map +1 -1
- package/dist/commonjs/funcs/linksUpsert.js +4 -4
- package/dist/commonjs/funcs/linksUpsert.js.map +1 -1
- package/dist/commonjs/funcs/metatagsGet.js +4 -4
- package/dist/commonjs/funcs/metatagsGet.js.map +1 -1
- package/dist/commonjs/funcs/qrCodesGet.js +4 -4
- package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
- package/dist/commonjs/funcs/tagsCreate.js +4 -4
- package/dist/commonjs/funcs/tagsCreate.js.map +1 -1
- package/dist/commonjs/funcs/tagsDelete.js +4 -4
- package/dist/commonjs/funcs/tagsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tagsList.js +4 -4
- package/dist/commonjs/funcs/tagsList.js.map +1 -1
- package/dist/commonjs/funcs/tagsUpdate.js +4 -4
- package/dist/commonjs/funcs/tagsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/trackLead.js +4 -4
- package/dist/commonjs/funcs/trackLead.js.map +1 -1
- package/dist/commonjs/funcs/trackSale.js +4 -4
- package/dist/commonjs/funcs/trackSale.js.map +1 -1
- package/dist/commonjs/funcs/workspacesGet.js +4 -4
- package/dist/commonjs/funcs/workspacesGet.js.map +1 -1
- package/dist/commonjs/funcs/workspacesUpdate.js +4 -4
- package/dist/commonjs/funcs/workspacesUpdate.js.map +1 -1
- package/dist/commonjs/hooks/auth.js +1 -2
- package/dist/commonjs/hooks/auth.js.map +1 -1
- package/dist/commonjs/hooks/base-url.js +1 -2
- package/dist/commonjs/hooks/base-url.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +4 -5
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.js +18 -19
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/http.js +1 -2
- package/dist/commonjs/lib/http.js.map +1 -1
- package/dist/commonjs/lib/matchers.js +5 -6
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/primitives.js +1 -1
- package/dist/commonjs/lib/primitives.js.map +1 -1
- package/dist/commonjs/lib/retries.js +3 -4
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/lib/sdks.js +15 -16
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.js +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +55 -0
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +42 -1
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +55 -0
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +42 -1
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +55 -0
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +42 -1
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +55 -0
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +42 -1
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/errors/badrequest.js +1 -2
- package/dist/commonjs/models/errors/badrequest.js.map +1 -1
- package/dist/commonjs/models/errors/conflict.js +1 -2
- package/dist/commonjs/models/errors/conflict.js.map +1 -1
- package/dist/commonjs/models/errors/forbidden.js +1 -2
- package/dist/commonjs/models/errors/forbidden.js.map +1 -1
- package/dist/commonjs/models/errors/httpclienterrors.js +2 -2
- package/dist/commonjs/models/errors/httpclienterrors.js.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.js +1 -2
- package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
- package/dist/commonjs/models/errors/inviteexpired.js +1 -2
- package/dist/commonjs/models/errors/inviteexpired.js.map +1 -1
- package/dist/commonjs/models/errors/notfound.js +1 -2
- package/dist/commonjs/models/errors/notfound.js.map +1 -1
- package/dist/commonjs/models/errors/ratelimitexceeded.js +1 -2
- package/dist/commonjs/models/errors/ratelimitexceeded.js.map +1 -1
- package/dist/commonjs/models/errors/unauthorized.js +1 -2
- package/dist/commonjs/models/errors/unauthorized.js.map +1 -1
- package/dist/commonjs/models/errors/unprocessableentity.js +1 -2
- package/dist/commonjs/models/errors/unprocessableentity.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +55 -0
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +40 -1
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +55 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +40 -1
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +55 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +41 -1
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +55 -0
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +40 -1
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/sdk/sdk.js +11 -22
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/track.d.ts +0 -9
- package/dist/commonjs/sdk/track.d.ts.map +1 -1
- package/dist/commonjs/sdk/track.js +0 -12
- package/dist/commonjs/sdk/track.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +29 -29
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/customersCreate.js +4 -4
- package/dist/esm/funcs/customersCreate.js.map +1 -1
- package/dist/esm/funcs/customersDelete.js +4 -4
- package/dist/esm/funcs/customersDelete.js.map +1 -1
- package/dist/esm/funcs/customersGet.js +4 -4
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersList.js +4 -4
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.js +4 -4
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/domainsCreate.js +4 -4
- package/dist/esm/funcs/domainsCreate.js.map +1 -1
- package/dist/esm/funcs/domainsDelete.js +4 -4
- package/dist/esm/funcs/domainsDelete.js.map +1 -1
- package/dist/esm/funcs/domainsList.js +10 -10
- package/dist/esm/funcs/domainsList.js.map +1 -1
- package/dist/esm/funcs/domainsUpdate.js +4 -4
- package/dist/esm/funcs/domainsUpdate.js.map +1 -1
- package/dist/esm/funcs/embedTokensCreate.js +4 -4
- package/dist/esm/funcs/embedTokensCreate.js.map +1 -1
- package/dist/esm/funcs/eventsList.js +32 -32
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/linksCount.js +13 -13
- package/dist/esm/funcs/linksCount.js.map +1 -1
- package/dist/esm/funcs/linksCreate.js +4 -4
- package/dist/esm/funcs/linksCreate.js.map +1 -1
- package/dist/esm/funcs/linksCreateMany.js +4 -4
- package/dist/esm/funcs/linksCreateMany.js.map +1 -1
- package/dist/esm/funcs/linksDelete.js +4 -4
- package/dist/esm/funcs/linksDelete.js.map +1 -1
- package/dist/esm/funcs/linksDeleteMany.js +4 -4
- package/dist/esm/funcs/linksDeleteMany.js.map +1 -1
- package/dist/esm/funcs/linksGet.js +8 -8
- package/dist/esm/funcs/linksGet.js.map +1 -1
- package/dist/esm/funcs/linksList.js +17 -17
- package/dist/esm/funcs/linksList.js.map +1 -1
- package/dist/esm/funcs/linksUpdate.js +4 -4
- package/dist/esm/funcs/linksUpdate.js.map +1 -1
- package/dist/esm/funcs/linksUpdateMany.js +4 -4
- package/dist/esm/funcs/linksUpdateMany.js.map +1 -1
- package/dist/esm/funcs/linksUpsert.js +4 -4
- package/dist/esm/funcs/linksUpsert.js.map +1 -1
- package/dist/esm/funcs/metatagsGet.js +4 -4
- package/dist/esm/funcs/metatagsGet.js.map +1 -1
- package/dist/esm/funcs/qrCodesGet.js +4 -4
- package/dist/esm/funcs/qrCodesGet.js.map +1 -1
- package/dist/esm/funcs/tagsCreate.js +4 -4
- package/dist/esm/funcs/tagsCreate.js.map +1 -1
- package/dist/esm/funcs/tagsDelete.js +4 -4
- package/dist/esm/funcs/tagsDelete.js.map +1 -1
- package/dist/esm/funcs/tagsList.js +4 -4
- package/dist/esm/funcs/tagsList.js.map +1 -1
- package/dist/esm/funcs/tagsUpdate.js +4 -4
- package/dist/esm/funcs/tagsUpdate.js.map +1 -1
- package/dist/esm/funcs/trackLead.js +4 -4
- package/dist/esm/funcs/trackLead.js.map +1 -1
- package/dist/esm/funcs/trackSale.js +4 -4
- package/dist/esm/funcs/trackSale.js.map +1 -1
- package/dist/esm/funcs/workspacesGet.js +4 -4
- package/dist/esm/funcs/workspacesGet.js.map +1 -1
- package/dist/esm/funcs/workspacesUpdate.js +4 -4
- package/dist/esm/funcs/workspacesUpdate.js.map +1 -1
- package/dist/esm/hooks/auth.js +1 -2
- package/dist/esm/hooks/auth.js.map +1 -1
- package/dist/esm/hooks/base-url.js +1 -2
- package/dist/esm/hooks/base-url.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +4 -5
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.js +18 -19
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/http.js +1 -2
- package/dist/esm/lib/http.js.map +1 -1
- package/dist/esm/lib/matchers.js +5 -6
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/primitives.js +1 -1
- package/dist/esm/lib/primitives.js.map +1 -1
- package/dist/esm/lib/retries.js +3 -4
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/lib/sdks.js +15 -16
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.js +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +55 -0
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +39 -0
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +55 -0
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +39 -0
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +55 -0
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +39 -0
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +55 -0
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +39 -0
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/errors/badrequest.js +1 -2
- package/dist/esm/models/errors/badrequest.js.map +1 -1
- package/dist/esm/models/errors/conflict.js +1 -2
- package/dist/esm/models/errors/conflict.js.map +1 -1
- package/dist/esm/models/errors/forbidden.js +1 -2
- package/dist/esm/models/errors/forbidden.js.map +1 -1
- package/dist/esm/models/errors/httpclienterrors.js +2 -2
- package/dist/esm/models/errors/httpclienterrors.js.map +1 -1
- package/dist/esm/models/errors/internalservererror.js +1 -2
- package/dist/esm/models/errors/internalservererror.js.map +1 -1
- package/dist/esm/models/errors/inviteexpired.js +1 -2
- package/dist/esm/models/errors/inviteexpired.js.map +1 -1
- package/dist/esm/models/errors/notfound.js +1 -2
- package/dist/esm/models/errors/notfound.js.map +1 -1
- package/dist/esm/models/errors/ratelimitexceeded.js +1 -2
- package/dist/esm/models/errors/ratelimitexceeded.js.map +1 -1
- package/dist/esm/models/errors/unauthorized.js +1 -2
- package/dist/esm/models/errors/unauthorized.js.map +1 -1
- package/dist/esm/models/errors/unprocessableentity.js +1 -2
- package/dist/esm/models/errors/unprocessableentity.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +55 -0
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +37 -0
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +55 -0
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +37 -0
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +55 -0
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +38 -0
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +55 -0
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +37 -0
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/sdk/sdk.js +11 -22
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/track.d.ts +0 -9
- package/dist/esm/sdk/track.d.ts.map +1 -1
- package/dist/esm/sdk/track.js +0 -12
- package/dist/esm/sdk/track.js.map +1 -1
- package/docs/sdks/track/README.md +0 -84
- package/package.json +1 -1
- package/src/funcs/domainsList.ts +2 -2
- package/src/funcs/linksList.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/leadcreatedevent.ts +102 -0
- package/src/models/components/leadevent.ts +102 -0
- package/src/models/components/salecreatedevent.ts +102 -0
- package/src/models/components/saleevent.ts +102 -0
- package/src/models/operations/createcustomer.ts +100 -0
- package/src/models/operations/getcustomer.ts +98 -0
- package/src/models/operations/getcustomers.ts +90 -0
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/updatecustomer.ts +100 -0
- package/src/sdk/track.ts +0 -20
- package/dist/commonjs/funcs/trackCustomer.d.ts +0 -18
- package/dist/commonjs/funcs/trackCustomer.d.ts.map +0 -1
- package/dist/commonjs/funcs/trackCustomer.js +0 -117
- package/dist/commonjs/funcs/trackCustomer.js.map +0 -1
- package/dist/commonjs/models/operations/trackcustomer.d.ts +0 -81
- package/dist/commonjs/models/operations/trackcustomer.d.ts.map +0 -1
- package/dist/commonjs/models/operations/trackcustomer.js +0 -98
- package/dist/commonjs/models/operations/trackcustomer.js.map +0 -1
- package/dist/esm/funcs/trackCustomer.d.ts +0 -18
- package/dist/esm/funcs/trackCustomer.d.ts.map +0 -1
- package/dist/esm/funcs/trackCustomer.js +0 -90
- package/dist/esm/funcs/trackCustomer.js.map +0 -1
- package/dist/esm/models/operations/trackcustomer.d.ts +0 -81
- package/dist/esm/models/operations/trackcustomer.d.ts.map +0 -1
- package/dist/esm/models/operations/trackcustomer.js +0 -68
- package/dist/esm/models/operations/trackcustomer.js.map +0 -1
- package/src/funcs/trackCustomer.ts +0 -175
- package/src/models/operations/trackcustomer.ts +0 -163
|
@@ -20,6 +20,29 @@ export const LeadCreatedEventEvent = {
|
|
|
20
20
|
} as const;
|
|
21
21
|
export type LeadCreatedEventEvent = ClosedEnum<typeof LeadCreatedEventEvent>;
|
|
22
22
|
|
|
23
|
+
export type LeadCreatedEventDataLink = {
|
|
24
|
+
/**
|
|
25
|
+
* The unique ID of the short link.
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
|
30
|
+
*/
|
|
31
|
+
domain: string;
|
|
32
|
+
/**
|
|
33
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
34
|
+
*/
|
|
35
|
+
key: string;
|
|
36
|
+
/**
|
|
37
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
38
|
+
*/
|
|
39
|
+
shortLink: string;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the program the short link is associated with.
|
|
42
|
+
*/
|
|
43
|
+
programId: string | null;
|
|
44
|
+
};
|
|
45
|
+
|
|
23
46
|
export type LeadCreatedEventCustomer = {
|
|
24
47
|
/**
|
|
25
48
|
* The unique identifier of the customer in Dub.
|
|
@@ -41,10 +64,15 @@ export type LeadCreatedEventCustomer = {
|
|
|
41
64
|
* Avatar URL of the customer.
|
|
42
65
|
*/
|
|
43
66
|
avatar?: string | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Country of the customer.
|
|
69
|
+
*/
|
|
70
|
+
country?: string | null | undefined;
|
|
44
71
|
/**
|
|
45
72
|
* The date the customer was created.
|
|
46
73
|
*/
|
|
47
74
|
createdAt: string;
|
|
75
|
+
link?: LeadCreatedEventDataLink | null | undefined;
|
|
48
76
|
};
|
|
49
77
|
|
|
50
78
|
export type LeadCreatedEventClick = {
|
|
@@ -497,6 +525,72 @@ export namespace LeadCreatedEventEvent$ {
|
|
|
497
525
|
export const outboundSchema = LeadCreatedEventEvent$outboundSchema;
|
|
498
526
|
}
|
|
499
527
|
|
|
528
|
+
/** @internal */
|
|
529
|
+
export const LeadCreatedEventDataLink$inboundSchema: z.ZodType<
|
|
530
|
+
LeadCreatedEventDataLink,
|
|
531
|
+
z.ZodTypeDef,
|
|
532
|
+
unknown
|
|
533
|
+
> = z.object({
|
|
534
|
+
id: z.string(),
|
|
535
|
+
domain: z.string(),
|
|
536
|
+
key: z.string(),
|
|
537
|
+
shortLink: z.string(),
|
|
538
|
+
programId: z.nullable(z.string()),
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
/** @internal */
|
|
542
|
+
export type LeadCreatedEventDataLink$Outbound = {
|
|
543
|
+
id: string;
|
|
544
|
+
domain: string;
|
|
545
|
+
key: string;
|
|
546
|
+
shortLink: string;
|
|
547
|
+
programId: string | null;
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
/** @internal */
|
|
551
|
+
export const LeadCreatedEventDataLink$outboundSchema: z.ZodType<
|
|
552
|
+
LeadCreatedEventDataLink$Outbound,
|
|
553
|
+
z.ZodTypeDef,
|
|
554
|
+
LeadCreatedEventDataLink
|
|
555
|
+
> = z.object({
|
|
556
|
+
id: z.string(),
|
|
557
|
+
domain: z.string(),
|
|
558
|
+
key: z.string(),
|
|
559
|
+
shortLink: z.string(),
|
|
560
|
+
programId: z.nullable(z.string()),
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* @internal
|
|
565
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
566
|
+
*/
|
|
567
|
+
export namespace LeadCreatedEventDataLink$ {
|
|
568
|
+
/** @deprecated use `LeadCreatedEventDataLink$inboundSchema` instead. */
|
|
569
|
+
export const inboundSchema = LeadCreatedEventDataLink$inboundSchema;
|
|
570
|
+
/** @deprecated use `LeadCreatedEventDataLink$outboundSchema` instead. */
|
|
571
|
+
export const outboundSchema = LeadCreatedEventDataLink$outboundSchema;
|
|
572
|
+
/** @deprecated use `LeadCreatedEventDataLink$Outbound` instead. */
|
|
573
|
+
export type Outbound = LeadCreatedEventDataLink$Outbound;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export function leadCreatedEventDataLinkToJSON(
|
|
577
|
+
leadCreatedEventDataLink: LeadCreatedEventDataLink,
|
|
578
|
+
): string {
|
|
579
|
+
return JSON.stringify(
|
|
580
|
+
LeadCreatedEventDataLink$outboundSchema.parse(leadCreatedEventDataLink),
|
|
581
|
+
);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export function leadCreatedEventDataLinkFromJSON(
|
|
585
|
+
jsonString: string,
|
|
586
|
+
): SafeParseResult<LeadCreatedEventDataLink, SDKValidationError> {
|
|
587
|
+
return safeParse(
|
|
588
|
+
jsonString,
|
|
589
|
+
(x) => LeadCreatedEventDataLink$inboundSchema.parse(JSON.parse(x)),
|
|
590
|
+
`Failed to parse 'LeadCreatedEventDataLink' from JSON`,
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
|
|
500
594
|
/** @internal */
|
|
501
595
|
export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
502
596
|
LeadCreatedEventCustomer,
|
|
@@ -508,7 +602,10 @@ export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
|
508
602
|
name: z.string(),
|
|
509
603
|
email: z.nullable(z.string()).optional(),
|
|
510
604
|
avatar: z.nullable(z.string()).optional(),
|
|
605
|
+
country: z.nullable(z.string()).optional(),
|
|
511
606
|
createdAt: z.string(),
|
|
607
|
+
link: z.nullable(z.lazy(() => LeadCreatedEventDataLink$inboundSchema))
|
|
608
|
+
.optional(),
|
|
512
609
|
});
|
|
513
610
|
|
|
514
611
|
/** @internal */
|
|
@@ -518,7 +615,9 @@ export type LeadCreatedEventCustomer$Outbound = {
|
|
|
518
615
|
name: string;
|
|
519
616
|
email?: string | null | undefined;
|
|
520
617
|
avatar?: string | null | undefined;
|
|
618
|
+
country?: string | null | undefined;
|
|
521
619
|
createdAt: string;
|
|
620
|
+
link?: LeadCreatedEventDataLink$Outbound | null | undefined;
|
|
522
621
|
};
|
|
523
622
|
|
|
524
623
|
/** @internal */
|
|
@@ -532,7 +631,10 @@ export const LeadCreatedEventCustomer$outboundSchema: z.ZodType<
|
|
|
532
631
|
name: z.string(),
|
|
533
632
|
email: z.nullable(z.string()).optional(),
|
|
534
633
|
avatar: z.nullable(z.string()).optional(),
|
|
634
|
+
country: z.nullable(z.string()).optional(),
|
|
535
635
|
createdAt: z.string(),
|
|
636
|
+
link: z.nullable(z.lazy(() => LeadCreatedEventDataLink$outboundSchema))
|
|
637
|
+
.optional(),
|
|
536
638
|
});
|
|
537
639
|
|
|
538
640
|
/**
|
|
@@ -432,6 +432,29 @@ export type LeadEventLink = {
|
|
|
432
432
|
programId: string | null;
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
+
export type LeadEventCustomerLink = {
|
|
436
|
+
/**
|
|
437
|
+
* The unique ID of the short link.
|
|
438
|
+
*/
|
|
439
|
+
id: string;
|
|
440
|
+
/**
|
|
441
|
+
* The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
|
442
|
+
*/
|
|
443
|
+
domain: string;
|
|
444
|
+
/**
|
|
445
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
446
|
+
*/
|
|
447
|
+
key: string;
|
|
448
|
+
/**
|
|
449
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
450
|
+
*/
|
|
451
|
+
shortLink: string;
|
|
452
|
+
/**
|
|
453
|
+
* The ID of the program the short link is associated with.
|
|
454
|
+
*/
|
|
455
|
+
programId: string | null;
|
|
456
|
+
};
|
|
457
|
+
|
|
435
458
|
export type Customer = {
|
|
436
459
|
/**
|
|
437
460
|
* The unique identifier of the customer in Dub.
|
|
@@ -453,10 +476,15 @@ export type Customer = {
|
|
|
453
476
|
* Avatar URL of the customer.
|
|
454
477
|
*/
|
|
455
478
|
avatar?: string | null | undefined;
|
|
479
|
+
/**
|
|
480
|
+
* Country of the customer.
|
|
481
|
+
*/
|
|
482
|
+
country?: string | null | undefined;
|
|
456
483
|
/**
|
|
457
484
|
* The date the customer was created.
|
|
458
485
|
*/
|
|
459
486
|
createdAt: string;
|
|
487
|
+
link?: LeadEventCustomerLink | null | undefined;
|
|
460
488
|
};
|
|
461
489
|
|
|
462
490
|
export type LeadEvent = {
|
|
@@ -2149,6 +2177,72 @@ export function leadEventLinkFromJSON(
|
|
|
2149
2177
|
);
|
|
2150
2178
|
}
|
|
2151
2179
|
|
|
2180
|
+
/** @internal */
|
|
2181
|
+
export const LeadEventCustomerLink$inboundSchema: z.ZodType<
|
|
2182
|
+
LeadEventCustomerLink,
|
|
2183
|
+
z.ZodTypeDef,
|
|
2184
|
+
unknown
|
|
2185
|
+
> = z.object({
|
|
2186
|
+
id: z.string(),
|
|
2187
|
+
domain: z.string(),
|
|
2188
|
+
key: z.string(),
|
|
2189
|
+
shortLink: z.string(),
|
|
2190
|
+
programId: z.nullable(z.string()),
|
|
2191
|
+
});
|
|
2192
|
+
|
|
2193
|
+
/** @internal */
|
|
2194
|
+
export type LeadEventCustomerLink$Outbound = {
|
|
2195
|
+
id: string;
|
|
2196
|
+
domain: string;
|
|
2197
|
+
key: string;
|
|
2198
|
+
shortLink: string;
|
|
2199
|
+
programId: string | null;
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
/** @internal */
|
|
2203
|
+
export const LeadEventCustomerLink$outboundSchema: z.ZodType<
|
|
2204
|
+
LeadEventCustomerLink$Outbound,
|
|
2205
|
+
z.ZodTypeDef,
|
|
2206
|
+
LeadEventCustomerLink
|
|
2207
|
+
> = z.object({
|
|
2208
|
+
id: z.string(),
|
|
2209
|
+
domain: z.string(),
|
|
2210
|
+
key: z.string(),
|
|
2211
|
+
shortLink: z.string(),
|
|
2212
|
+
programId: z.nullable(z.string()),
|
|
2213
|
+
});
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* @internal
|
|
2217
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2218
|
+
*/
|
|
2219
|
+
export namespace LeadEventCustomerLink$ {
|
|
2220
|
+
/** @deprecated use `LeadEventCustomerLink$inboundSchema` instead. */
|
|
2221
|
+
export const inboundSchema = LeadEventCustomerLink$inboundSchema;
|
|
2222
|
+
/** @deprecated use `LeadEventCustomerLink$outboundSchema` instead. */
|
|
2223
|
+
export const outboundSchema = LeadEventCustomerLink$outboundSchema;
|
|
2224
|
+
/** @deprecated use `LeadEventCustomerLink$Outbound` instead. */
|
|
2225
|
+
export type Outbound = LeadEventCustomerLink$Outbound;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
export function leadEventCustomerLinkToJSON(
|
|
2229
|
+
leadEventCustomerLink: LeadEventCustomerLink,
|
|
2230
|
+
): string {
|
|
2231
|
+
return JSON.stringify(
|
|
2232
|
+
LeadEventCustomerLink$outboundSchema.parse(leadEventCustomerLink),
|
|
2233
|
+
);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
export function leadEventCustomerLinkFromJSON(
|
|
2237
|
+
jsonString: string,
|
|
2238
|
+
): SafeParseResult<LeadEventCustomerLink, SDKValidationError> {
|
|
2239
|
+
return safeParse(
|
|
2240
|
+
jsonString,
|
|
2241
|
+
(x) => LeadEventCustomerLink$inboundSchema.parse(JSON.parse(x)),
|
|
2242
|
+
`Failed to parse 'LeadEventCustomerLink' from JSON`,
|
|
2243
|
+
);
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2152
2246
|
/** @internal */
|
|
2153
2247
|
export const Customer$inboundSchema: z.ZodType<
|
|
2154
2248
|
Customer,
|
|
@@ -2160,7 +2254,10 @@ export const Customer$inboundSchema: z.ZodType<
|
|
|
2160
2254
|
name: z.string(),
|
|
2161
2255
|
email: z.nullable(z.string()).optional(),
|
|
2162
2256
|
avatar: z.nullable(z.string()).optional(),
|
|
2257
|
+
country: z.nullable(z.string()).optional(),
|
|
2163
2258
|
createdAt: z.string(),
|
|
2259
|
+
link: z.nullable(z.lazy(() => LeadEventCustomerLink$inboundSchema))
|
|
2260
|
+
.optional(),
|
|
2164
2261
|
});
|
|
2165
2262
|
|
|
2166
2263
|
/** @internal */
|
|
@@ -2170,7 +2267,9 @@ export type Customer$Outbound = {
|
|
|
2170
2267
|
name: string;
|
|
2171
2268
|
email?: string | null | undefined;
|
|
2172
2269
|
avatar?: string | null | undefined;
|
|
2270
|
+
country?: string | null | undefined;
|
|
2173
2271
|
createdAt: string;
|
|
2272
|
+
link?: LeadEventCustomerLink$Outbound | null | undefined;
|
|
2174
2273
|
};
|
|
2175
2274
|
|
|
2176
2275
|
/** @internal */
|
|
@@ -2184,7 +2283,10 @@ export const Customer$outboundSchema: z.ZodType<
|
|
|
2184
2283
|
name: z.string(),
|
|
2185
2284
|
email: z.nullable(z.string()).optional(),
|
|
2186
2285
|
avatar: z.nullable(z.string()).optional(),
|
|
2286
|
+
country: z.nullable(z.string()).optional(),
|
|
2187
2287
|
createdAt: z.string(),
|
|
2288
|
+
link: z.nullable(z.lazy(() => LeadEventCustomerLink$outboundSchema))
|
|
2289
|
+
.optional(),
|
|
2188
2290
|
});
|
|
2189
2291
|
|
|
2190
2292
|
/**
|
|
@@ -20,6 +20,29 @@ export const SaleCreatedEventEvent = {
|
|
|
20
20
|
} as const;
|
|
21
21
|
export type SaleCreatedEventEvent = ClosedEnum<typeof SaleCreatedEventEvent>;
|
|
22
22
|
|
|
23
|
+
export type SaleCreatedEventDataLink = {
|
|
24
|
+
/**
|
|
25
|
+
* The unique ID of the short link.
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
|
30
|
+
*/
|
|
31
|
+
domain: string;
|
|
32
|
+
/**
|
|
33
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
34
|
+
*/
|
|
35
|
+
key: string;
|
|
36
|
+
/**
|
|
37
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
38
|
+
*/
|
|
39
|
+
shortLink: string;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the program the short link is associated with.
|
|
42
|
+
*/
|
|
43
|
+
programId: string | null;
|
|
44
|
+
};
|
|
45
|
+
|
|
23
46
|
export type SaleCreatedEventCustomer = {
|
|
24
47
|
/**
|
|
25
48
|
* The unique identifier of the customer in Dub.
|
|
@@ -41,10 +64,15 @@ export type SaleCreatedEventCustomer = {
|
|
|
41
64
|
* Avatar URL of the customer.
|
|
42
65
|
*/
|
|
43
66
|
avatar?: string | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Country of the customer.
|
|
69
|
+
*/
|
|
70
|
+
country?: string | null | undefined;
|
|
44
71
|
/**
|
|
45
72
|
* The date the customer was created.
|
|
46
73
|
*/
|
|
47
74
|
createdAt: string;
|
|
75
|
+
link?: SaleCreatedEventDataLink | null | undefined;
|
|
48
76
|
};
|
|
49
77
|
|
|
50
78
|
export type SaleCreatedEventClick = {
|
|
@@ -505,6 +533,72 @@ export namespace SaleCreatedEventEvent$ {
|
|
|
505
533
|
export const outboundSchema = SaleCreatedEventEvent$outboundSchema;
|
|
506
534
|
}
|
|
507
535
|
|
|
536
|
+
/** @internal */
|
|
537
|
+
export const SaleCreatedEventDataLink$inboundSchema: z.ZodType<
|
|
538
|
+
SaleCreatedEventDataLink,
|
|
539
|
+
z.ZodTypeDef,
|
|
540
|
+
unknown
|
|
541
|
+
> = z.object({
|
|
542
|
+
id: z.string(),
|
|
543
|
+
domain: z.string(),
|
|
544
|
+
key: z.string(),
|
|
545
|
+
shortLink: z.string(),
|
|
546
|
+
programId: z.nullable(z.string()),
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
/** @internal */
|
|
550
|
+
export type SaleCreatedEventDataLink$Outbound = {
|
|
551
|
+
id: string;
|
|
552
|
+
domain: string;
|
|
553
|
+
key: string;
|
|
554
|
+
shortLink: string;
|
|
555
|
+
programId: string | null;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
/** @internal */
|
|
559
|
+
export const SaleCreatedEventDataLink$outboundSchema: z.ZodType<
|
|
560
|
+
SaleCreatedEventDataLink$Outbound,
|
|
561
|
+
z.ZodTypeDef,
|
|
562
|
+
SaleCreatedEventDataLink
|
|
563
|
+
> = z.object({
|
|
564
|
+
id: z.string(),
|
|
565
|
+
domain: z.string(),
|
|
566
|
+
key: z.string(),
|
|
567
|
+
shortLink: z.string(),
|
|
568
|
+
programId: z.nullable(z.string()),
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* @internal
|
|
573
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
574
|
+
*/
|
|
575
|
+
export namespace SaleCreatedEventDataLink$ {
|
|
576
|
+
/** @deprecated use `SaleCreatedEventDataLink$inboundSchema` instead. */
|
|
577
|
+
export const inboundSchema = SaleCreatedEventDataLink$inboundSchema;
|
|
578
|
+
/** @deprecated use `SaleCreatedEventDataLink$outboundSchema` instead. */
|
|
579
|
+
export const outboundSchema = SaleCreatedEventDataLink$outboundSchema;
|
|
580
|
+
/** @deprecated use `SaleCreatedEventDataLink$Outbound` instead. */
|
|
581
|
+
export type Outbound = SaleCreatedEventDataLink$Outbound;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export function saleCreatedEventDataLinkToJSON(
|
|
585
|
+
saleCreatedEventDataLink: SaleCreatedEventDataLink,
|
|
586
|
+
): string {
|
|
587
|
+
return JSON.stringify(
|
|
588
|
+
SaleCreatedEventDataLink$outboundSchema.parse(saleCreatedEventDataLink),
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export function saleCreatedEventDataLinkFromJSON(
|
|
593
|
+
jsonString: string,
|
|
594
|
+
): SafeParseResult<SaleCreatedEventDataLink, SDKValidationError> {
|
|
595
|
+
return safeParse(
|
|
596
|
+
jsonString,
|
|
597
|
+
(x) => SaleCreatedEventDataLink$inboundSchema.parse(JSON.parse(x)),
|
|
598
|
+
`Failed to parse 'SaleCreatedEventDataLink' from JSON`,
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
|
|
508
602
|
/** @internal */
|
|
509
603
|
export const SaleCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
510
604
|
SaleCreatedEventCustomer,
|
|
@@ -516,7 +610,10 @@ export const SaleCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
|
516
610
|
name: z.string(),
|
|
517
611
|
email: z.nullable(z.string()).optional(),
|
|
518
612
|
avatar: z.nullable(z.string()).optional(),
|
|
613
|
+
country: z.nullable(z.string()).optional(),
|
|
519
614
|
createdAt: z.string(),
|
|
615
|
+
link: z.nullable(z.lazy(() => SaleCreatedEventDataLink$inboundSchema))
|
|
616
|
+
.optional(),
|
|
520
617
|
});
|
|
521
618
|
|
|
522
619
|
/** @internal */
|
|
@@ -526,7 +623,9 @@ export type SaleCreatedEventCustomer$Outbound = {
|
|
|
526
623
|
name: string;
|
|
527
624
|
email?: string | null | undefined;
|
|
528
625
|
avatar?: string | null | undefined;
|
|
626
|
+
country?: string | null | undefined;
|
|
529
627
|
createdAt: string;
|
|
628
|
+
link?: SaleCreatedEventDataLink$Outbound | null | undefined;
|
|
530
629
|
};
|
|
531
630
|
|
|
532
631
|
/** @internal */
|
|
@@ -540,7 +639,10 @@ export const SaleCreatedEventCustomer$outboundSchema: z.ZodType<
|
|
|
540
639
|
name: z.string(),
|
|
541
640
|
email: z.nullable(z.string()).optional(),
|
|
542
641
|
avatar: z.nullable(z.string()).optional(),
|
|
642
|
+
country: z.nullable(z.string()).optional(),
|
|
543
643
|
createdAt: z.string(),
|
|
644
|
+
link: z.nullable(z.lazy(() => SaleCreatedEventDataLink$outboundSchema))
|
|
645
|
+
.optional(),
|
|
544
646
|
});
|
|
545
647
|
|
|
546
648
|
/**
|
|
@@ -432,6 +432,29 @@ export type SaleEventClick = {
|
|
|
432
432
|
ip: string;
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
+
export type SaleEventCustomerLink = {
|
|
436
|
+
/**
|
|
437
|
+
* The unique ID of the short link.
|
|
438
|
+
*/
|
|
439
|
+
id: string;
|
|
440
|
+
/**
|
|
441
|
+
* The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
|
442
|
+
*/
|
|
443
|
+
domain: string;
|
|
444
|
+
/**
|
|
445
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
446
|
+
*/
|
|
447
|
+
key: string;
|
|
448
|
+
/**
|
|
449
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
450
|
+
*/
|
|
451
|
+
shortLink: string;
|
|
452
|
+
/**
|
|
453
|
+
* The ID of the program the short link is associated with.
|
|
454
|
+
*/
|
|
455
|
+
programId: string | null;
|
|
456
|
+
};
|
|
457
|
+
|
|
435
458
|
export type SaleEventCustomer = {
|
|
436
459
|
/**
|
|
437
460
|
* The unique identifier of the customer in Dub.
|
|
@@ -453,10 +476,15 @@ export type SaleEventCustomer = {
|
|
|
453
476
|
* Avatar URL of the customer.
|
|
454
477
|
*/
|
|
455
478
|
avatar?: string | null | undefined;
|
|
479
|
+
/**
|
|
480
|
+
* Country of the customer.
|
|
481
|
+
*/
|
|
482
|
+
country?: string | null | undefined;
|
|
456
483
|
/**
|
|
457
484
|
* The date the customer was created.
|
|
458
485
|
*/
|
|
459
486
|
createdAt: string;
|
|
487
|
+
link?: SaleEventCustomerLink | null | undefined;
|
|
460
488
|
};
|
|
461
489
|
|
|
462
490
|
/**
|
|
@@ -2194,6 +2222,72 @@ export function saleEventClickFromJSON(
|
|
|
2194
2222
|
);
|
|
2195
2223
|
}
|
|
2196
2224
|
|
|
2225
|
+
/** @internal */
|
|
2226
|
+
export const SaleEventCustomerLink$inboundSchema: z.ZodType<
|
|
2227
|
+
SaleEventCustomerLink,
|
|
2228
|
+
z.ZodTypeDef,
|
|
2229
|
+
unknown
|
|
2230
|
+
> = z.object({
|
|
2231
|
+
id: z.string(),
|
|
2232
|
+
domain: z.string(),
|
|
2233
|
+
key: z.string(),
|
|
2234
|
+
shortLink: z.string(),
|
|
2235
|
+
programId: z.nullable(z.string()),
|
|
2236
|
+
});
|
|
2237
|
+
|
|
2238
|
+
/** @internal */
|
|
2239
|
+
export type SaleEventCustomerLink$Outbound = {
|
|
2240
|
+
id: string;
|
|
2241
|
+
domain: string;
|
|
2242
|
+
key: string;
|
|
2243
|
+
shortLink: string;
|
|
2244
|
+
programId: string | null;
|
|
2245
|
+
};
|
|
2246
|
+
|
|
2247
|
+
/** @internal */
|
|
2248
|
+
export const SaleEventCustomerLink$outboundSchema: z.ZodType<
|
|
2249
|
+
SaleEventCustomerLink$Outbound,
|
|
2250
|
+
z.ZodTypeDef,
|
|
2251
|
+
SaleEventCustomerLink
|
|
2252
|
+
> = z.object({
|
|
2253
|
+
id: z.string(),
|
|
2254
|
+
domain: z.string(),
|
|
2255
|
+
key: z.string(),
|
|
2256
|
+
shortLink: z.string(),
|
|
2257
|
+
programId: z.nullable(z.string()),
|
|
2258
|
+
});
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* @internal
|
|
2262
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2263
|
+
*/
|
|
2264
|
+
export namespace SaleEventCustomerLink$ {
|
|
2265
|
+
/** @deprecated use `SaleEventCustomerLink$inboundSchema` instead. */
|
|
2266
|
+
export const inboundSchema = SaleEventCustomerLink$inboundSchema;
|
|
2267
|
+
/** @deprecated use `SaleEventCustomerLink$outboundSchema` instead. */
|
|
2268
|
+
export const outboundSchema = SaleEventCustomerLink$outboundSchema;
|
|
2269
|
+
/** @deprecated use `SaleEventCustomerLink$Outbound` instead. */
|
|
2270
|
+
export type Outbound = SaleEventCustomerLink$Outbound;
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
export function saleEventCustomerLinkToJSON(
|
|
2274
|
+
saleEventCustomerLink: SaleEventCustomerLink,
|
|
2275
|
+
): string {
|
|
2276
|
+
return JSON.stringify(
|
|
2277
|
+
SaleEventCustomerLink$outboundSchema.parse(saleEventCustomerLink),
|
|
2278
|
+
);
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
export function saleEventCustomerLinkFromJSON(
|
|
2282
|
+
jsonString: string,
|
|
2283
|
+
): SafeParseResult<SaleEventCustomerLink, SDKValidationError> {
|
|
2284
|
+
return safeParse(
|
|
2285
|
+
jsonString,
|
|
2286
|
+
(x) => SaleEventCustomerLink$inboundSchema.parse(JSON.parse(x)),
|
|
2287
|
+
`Failed to parse 'SaleEventCustomerLink' from JSON`,
|
|
2288
|
+
);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2197
2291
|
/** @internal */
|
|
2198
2292
|
export const SaleEventCustomer$inboundSchema: z.ZodType<
|
|
2199
2293
|
SaleEventCustomer,
|
|
@@ -2205,7 +2299,10 @@ export const SaleEventCustomer$inboundSchema: z.ZodType<
|
|
|
2205
2299
|
name: z.string(),
|
|
2206
2300
|
email: z.nullable(z.string()).optional(),
|
|
2207
2301
|
avatar: z.nullable(z.string()).optional(),
|
|
2302
|
+
country: z.nullable(z.string()).optional(),
|
|
2208
2303
|
createdAt: z.string(),
|
|
2304
|
+
link: z.nullable(z.lazy(() => SaleEventCustomerLink$inboundSchema))
|
|
2305
|
+
.optional(),
|
|
2209
2306
|
});
|
|
2210
2307
|
|
|
2211
2308
|
/** @internal */
|
|
@@ -2215,7 +2312,9 @@ export type SaleEventCustomer$Outbound = {
|
|
|
2215
2312
|
name: string;
|
|
2216
2313
|
email?: string | null | undefined;
|
|
2217
2314
|
avatar?: string | null | undefined;
|
|
2315
|
+
country?: string | null | undefined;
|
|
2218
2316
|
createdAt: string;
|
|
2317
|
+
link?: SaleEventCustomerLink$Outbound | null | undefined;
|
|
2219
2318
|
};
|
|
2220
2319
|
|
|
2221
2320
|
/** @internal */
|
|
@@ -2229,7 +2328,10 @@ export const SaleEventCustomer$outboundSchema: z.ZodType<
|
|
|
2229
2328
|
name: z.string(),
|
|
2230
2329
|
email: z.nullable(z.string()).optional(),
|
|
2231
2330
|
avatar: z.nullable(z.string()).optional(),
|
|
2331
|
+
country: z.nullable(z.string()).optional(),
|
|
2232
2332
|
createdAt: z.string(),
|
|
2333
|
+
link: z.nullable(z.lazy(() => SaleEventCustomerLink$outboundSchema))
|
|
2334
|
+
.optional(),
|
|
2233
2335
|
});
|
|
2234
2336
|
|
|
2235
2337
|
/**
|