dub 0.46.7 → 0.46.9
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 +27 -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 +2 -2
- 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 +177 -0
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +161 -1
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +177 -0
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +158 -1
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +177 -0
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +161 -1
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +177 -0
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +159 -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 +178 -0
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +158 -1
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +178 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +158 -1
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +178 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +155 -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 +178 -0
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +158 -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 +2 -2
- 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 +177 -0
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +153 -0
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +177 -0
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +150 -0
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +177 -0
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +153 -0
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +177 -0
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +151 -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 +178 -0
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +151 -0
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +178 -0
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +151 -0
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +178 -0
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +148 -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 +178 -0
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +151 -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/lib/security.ts +1 -1
- package/src/models/components/leadcreatedevent.ts +322 -0
- package/src/models/components/leadevent.ts +302 -0
- package/src/models/components/salecreatedevent.ts +322 -0
- package/src/models/components/saleevent.ts +318 -0
- package/src/models/operations/createcustomer.ts +319 -0
- package/src/models/operations/getcustomer.ts +317 -0
- package/src/models/operations/getcustomers.ts +293 -0
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/updatecustomer.ts +319 -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
|
@@ -432,6 +432,58 @@ 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
|
+
|
|
458
|
+
export type SaleEventPartner = {
|
|
459
|
+
id: string;
|
|
460
|
+
name: string;
|
|
461
|
+
email: string;
|
|
462
|
+
image?: string | null | undefined;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
export const SaleEventType = {
|
|
466
|
+
Percentage: "percentage",
|
|
467
|
+
Flat: "flat",
|
|
468
|
+
} as const;
|
|
469
|
+
export type SaleEventType = ClosedEnum<typeof SaleEventType>;
|
|
470
|
+
|
|
471
|
+
export const SaleEventInterval = {
|
|
472
|
+
Month: "month",
|
|
473
|
+
Year: "year",
|
|
474
|
+
} as const;
|
|
475
|
+
export type SaleEventInterval = ClosedEnum<typeof SaleEventInterval>;
|
|
476
|
+
|
|
477
|
+
export type SaleEventDiscount = {
|
|
478
|
+
id: string;
|
|
479
|
+
couponId: string | null;
|
|
480
|
+
couponTestId: string | null;
|
|
481
|
+
amount: number;
|
|
482
|
+
type: SaleEventType;
|
|
483
|
+
duration: number | null;
|
|
484
|
+
interval: SaleEventInterval | null;
|
|
485
|
+
};
|
|
486
|
+
|
|
435
487
|
export type SaleEventCustomer = {
|
|
436
488
|
/**
|
|
437
489
|
* The unique identifier of the customer in Dub.
|
|
@@ -453,10 +505,17 @@ export type SaleEventCustomer = {
|
|
|
453
505
|
* Avatar URL of the customer.
|
|
454
506
|
*/
|
|
455
507
|
avatar?: string | null | undefined;
|
|
508
|
+
/**
|
|
509
|
+
* Country of the customer.
|
|
510
|
+
*/
|
|
511
|
+
country?: string | null | undefined;
|
|
456
512
|
/**
|
|
457
513
|
* The date the customer was created.
|
|
458
514
|
*/
|
|
459
515
|
createdAt: string;
|
|
516
|
+
link?: SaleEventCustomerLink | null | undefined;
|
|
517
|
+
partner?: SaleEventPartner | null | undefined;
|
|
518
|
+
discount?: SaleEventDiscount | null | undefined;
|
|
460
519
|
};
|
|
461
520
|
|
|
462
521
|
/**
|
|
@@ -2194,6 +2253,249 @@ export function saleEventClickFromJSON(
|
|
|
2194
2253
|
);
|
|
2195
2254
|
}
|
|
2196
2255
|
|
|
2256
|
+
/** @internal */
|
|
2257
|
+
export const SaleEventCustomerLink$inboundSchema: z.ZodType<
|
|
2258
|
+
SaleEventCustomerLink,
|
|
2259
|
+
z.ZodTypeDef,
|
|
2260
|
+
unknown
|
|
2261
|
+
> = z.object({
|
|
2262
|
+
id: z.string(),
|
|
2263
|
+
domain: z.string(),
|
|
2264
|
+
key: z.string(),
|
|
2265
|
+
shortLink: z.string(),
|
|
2266
|
+
programId: z.nullable(z.string()),
|
|
2267
|
+
});
|
|
2268
|
+
|
|
2269
|
+
/** @internal */
|
|
2270
|
+
export type SaleEventCustomerLink$Outbound = {
|
|
2271
|
+
id: string;
|
|
2272
|
+
domain: string;
|
|
2273
|
+
key: string;
|
|
2274
|
+
shortLink: string;
|
|
2275
|
+
programId: string | null;
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2278
|
+
/** @internal */
|
|
2279
|
+
export const SaleEventCustomerLink$outboundSchema: z.ZodType<
|
|
2280
|
+
SaleEventCustomerLink$Outbound,
|
|
2281
|
+
z.ZodTypeDef,
|
|
2282
|
+
SaleEventCustomerLink
|
|
2283
|
+
> = z.object({
|
|
2284
|
+
id: z.string(),
|
|
2285
|
+
domain: z.string(),
|
|
2286
|
+
key: z.string(),
|
|
2287
|
+
shortLink: z.string(),
|
|
2288
|
+
programId: z.nullable(z.string()),
|
|
2289
|
+
});
|
|
2290
|
+
|
|
2291
|
+
/**
|
|
2292
|
+
* @internal
|
|
2293
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2294
|
+
*/
|
|
2295
|
+
export namespace SaleEventCustomerLink$ {
|
|
2296
|
+
/** @deprecated use `SaleEventCustomerLink$inboundSchema` instead. */
|
|
2297
|
+
export const inboundSchema = SaleEventCustomerLink$inboundSchema;
|
|
2298
|
+
/** @deprecated use `SaleEventCustomerLink$outboundSchema` instead. */
|
|
2299
|
+
export const outboundSchema = SaleEventCustomerLink$outboundSchema;
|
|
2300
|
+
/** @deprecated use `SaleEventCustomerLink$Outbound` instead. */
|
|
2301
|
+
export type Outbound = SaleEventCustomerLink$Outbound;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
export function saleEventCustomerLinkToJSON(
|
|
2305
|
+
saleEventCustomerLink: SaleEventCustomerLink,
|
|
2306
|
+
): string {
|
|
2307
|
+
return JSON.stringify(
|
|
2308
|
+
SaleEventCustomerLink$outboundSchema.parse(saleEventCustomerLink),
|
|
2309
|
+
);
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
export function saleEventCustomerLinkFromJSON(
|
|
2313
|
+
jsonString: string,
|
|
2314
|
+
): SafeParseResult<SaleEventCustomerLink, SDKValidationError> {
|
|
2315
|
+
return safeParse(
|
|
2316
|
+
jsonString,
|
|
2317
|
+
(x) => SaleEventCustomerLink$inboundSchema.parse(JSON.parse(x)),
|
|
2318
|
+
`Failed to parse 'SaleEventCustomerLink' from JSON`,
|
|
2319
|
+
);
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
/** @internal */
|
|
2323
|
+
export const SaleEventPartner$inboundSchema: z.ZodType<
|
|
2324
|
+
SaleEventPartner,
|
|
2325
|
+
z.ZodTypeDef,
|
|
2326
|
+
unknown
|
|
2327
|
+
> = z.object({
|
|
2328
|
+
id: z.string(),
|
|
2329
|
+
name: z.string(),
|
|
2330
|
+
email: z.string(),
|
|
2331
|
+
image: z.nullable(z.string()).optional(),
|
|
2332
|
+
});
|
|
2333
|
+
|
|
2334
|
+
/** @internal */
|
|
2335
|
+
export type SaleEventPartner$Outbound = {
|
|
2336
|
+
id: string;
|
|
2337
|
+
name: string;
|
|
2338
|
+
email: string;
|
|
2339
|
+
image?: string | null | undefined;
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2342
|
+
/** @internal */
|
|
2343
|
+
export const SaleEventPartner$outboundSchema: z.ZodType<
|
|
2344
|
+
SaleEventPartner$Outbound,
|
|
2345
|
+
z.ZodTypeDef,
|
|
2346
|
+
SaleEventPartner
|
|
2347
|
+
> = z.object({
|
|
2348
|
+
id: z.string(),
|
|
2349
|
+
name: z.string(),
|
|
2350
|
+
email: z.string(),
|
|
2351
|
+
image: z.nullable(z.string()).optional(),
|
|
2352
|
+
});
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* @internal
|
|
2356
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2357
|
+
*/
|
|
2358
|
+
export namespace SaleEventPartner$ {
|
|
2359
|
+
/** @deprecated use `SaleEventPartner$inboundSchema` instead. */
|
|
2360
|
+
export const inboundSchema = SaleEventPartner$inboundSchema;
|
|
2361
|
+
/** @deprecated use `SaleEventPartner$outboundSchema` instead. */
|
|
2362
|
+
export const outboundSchema = SaleEventPartner$outboundSchema;
|
|
2363
|
+
/** @deprecated use `SaleEventPartner$Outbound` instead. */
|
|
2364
|
+
export type Outbound = SaleEventPartner$Outbound;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
export function saleEventPartnerToJSON(
|
|
2368
|
+
saleEventPartner: SaleEventPartner,
|
|
2369
|
+
): string {
|
|
2370
|
+
return JSON.stringify(
|
|
2371
|
+
SaleEventPartner$outboundSchema.parse(saleEventPartner),
|
|
2372
|
+
);
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
export function saleEventPartnerFromJSON(
|
|
2376
|
+
jsonString: string,
|
|
2377
|
+
): SafeParseResult<SaleEventPartner, SDKValidationError> {
|
|
2378
|
+
return safeParse(
|
|
2379
|
+
jsonString,
|
|
2380
|
+
(x) => SaleEventPartner$inboundSchema.parse(JSON.parse(x)),
|
|
2381
|
+
`Failed to parse 'SaleEventPartner' from JSON`,
|
|
2382
|
+
);
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
/** @internal */
|
|
2386
|
+
export const SaleEventType$inboundSchema: z.ZodNativeEnum<
|
|
2387
|
+
typeof SaleEventType
|
|
2388
|
+
> = z.nativeEnum(SaleEventType);
|
|
2389
|
+
|
|
2390
|
+
/** @internal */
|
|
2391
|
+
export const SaleEventType$outboundSchema: z.ZodNativeEnum<
|
|
2392
|
+
typeof SaleEventType
|
|
2393
|
+
> = SaleEventType$inboundSchema;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* @internal
|
|
2397
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2398
|
+
*/
|
|
2399
|
+
export namespace SaleEventType$ {
|
|
2400
|
+
/** @deprecated use `SaleEventType$inboundSchema` instead. */
|
|
2401
|
+
export const inboundSchema = SaleEventType$inboundSchema;
|
|
2402
|
+
/** @deprecated use `SaleEventType$outboundSchema` instead. */
|
|
2403
|
+
export const outboundSchema = SaleEventType$outboundSchema;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
/** @internal */
|
|
2407
|
+
export const SaleEventInterval$inboundSchema: z.ZodNativeEnum<
|
|
2408
|
+
typeof SaleEventInterval
|
|
2409
|
+
> = z.nativeEnum(SaleEventInterval);
|
|
2410
|
+
|
|
2411
|
+
/** @internal */
|
|
2412
|
+
export const SaleEventInterval$outboundSchema: z.ZodNativeEnum<
|
|
2413
|
+
typeof SaleEventInterval
|
|
2414
|
+
> = SaleEventInterval$inboundSchema;
|
|
2415
|
+
|
|
2416
|
+
/**
|
|
2417
|
+
* @internal
|
|
2418
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2419
|
+
*/
|
|
2420
|
+
export namespace SaleEventInterval$ {
|
|
2421
|
+
/** @deprecated use `SaleEventInterval$inboundSchema` instead. */
|
|
2422
|
+
export const inboundSchema = SaleEventInterval$inboundSchema;
|
|
2423
|
+
/** @deprecated use `SaleEventInterval$outboundSchema` instead. */
|
|
2424
|
+
export const outboundSchema = SaleEventInterval$outboundSchema;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
/** @internal */
|
|
2428
|
+
export const SaleEventDiscount$inboundSchema: z.ZodType<
|
|
2429
|
+
SaleEventDiscount,
|
|
2430
|
+
z.ZodTypeDef,
|
|
2431
|
+
unknown
|
|
2432
|
+
> = z.object({
|
|
2433
|
+
id: z.string(),
|
|
2434
|
+
couponId: z.nullable(z.string()),
|
|
2435
|
+
couponTestId: z.nullable(z.string()),
|
|
2436
|
+
amount: z.number(),
|
|
2437
|
+
type: SaleEventType$inboundSchema,
|
|
2438
|
+
duration: z.nullable(z.number()),
|
|
2439
|
+
interval: z.nullable(SaleEventInterval$inboundSchema),
|
|
2440
|
+
});
|
|
2441
|
+
|
|
2442
|
+
/** @internal */
|
|
2443
|
+
export type SaleEventDiscount$Outbound = {
|
|
2444
|
+
id: string;
|
|
2445
|
+
couponId: string | null;
|
|
2446
|
+
couponTestId: string | null;
|
|
2447
|
+
amount: number;
|
|
2448
|
+
type: string;
|
|
2449
|
+
duration: number | null;
|
|
2450
|
+
interval: string | null;
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
/** @internal */
|
|
2454
|
+
export const SaleEventDiscount$outboundSchema: z.ZodType<
|
|
2455
|
+
SaleEventDiscount$Outbound,
|
|
2456
|
+
z.ZodTypeDef,
|
|
2457
|
+
SaleEventDiscount
|
|
2458
|
+
> = z.object({
|
|
2459
|
+
id: z.string(),
|
|
2460
|
+
couponId: z.nullable(z.string()),
|
|
2461
|
+
couponTestId: z.nullable(z.string()),
|
|
2462
|
+
amount: z.number(),
|
|
2463
|
+
type: SaleEventType$outboundSchema,
|
|
2464
|
+
duration: z.nullable(z.number()),
|
|
2465
|
+
interval: z.nullable(SaleEventInterval$outboundSchema),
|
|
2466
|
+
});
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* @internal
|
|
2470
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2471
|
+
*/
|
|
2472
|
+
export namespace SaleEventDiscount$ {
|
|
2473
|
+
/** @deprecated use `SaleEventDiscount$inboundSchema` instead. */
|
|
2474
|
+
export const inboundSchema = SaleEventDiscount$inboundSchema;
|
|
2475
|
+
/** @deprecated use `SaleEventDiscount$outboundSchema` instead. */
|
|
2476
|
+
export const outboundSchema = SaleEventDiscount$outboundSchema;
|
|
2477
|
+
/** @deprecated use `SaleEventDiscount$Outbound` instead. */
|
|
2478
|
+
export type Outbound = SaleEventDiscount$Outbound;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
export function saleEventDiscountToJSON(
|
|
2482
|
+
saleEventDiscount: SaleEventDiscount,
|
|
2483
|
+
): string {
|
|
2484
|
+
return JSON.stringify(
|
|
2485
|
+
SaleEventDiscount$outboundSchema.parse(saleEventDiscount),
|
|
2486
|
+
);
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
export function saleEventDiscountFromJSON(
|
|
2490
|
+
jsonString: string,
|
|
2491
|
+
): SafeParseResult<SaleEventDiscount, SDKValidationError> {
|
|
2492
|
+
return safeParse(
|
|
2493
|
+
jsonString,
|
|
2494
|
+
(x) => SaleEventDiscount$inboundSchema.parse(JSON.parse(x)),
|
|
2495
|
+
`Failed to parse 'SaleEventDiscount' from JSON`,
|
|
2496
|
+
);
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2197
2499
|
/** @internal */
|
|
2198
2500
|
export const SaleEventCustomer$inboundSchema: z.ZodType<
|
|
2199
2501
|
SaleEventCustomer,
|
|
@@ -2205,7 +2507,13 @@ export const SaleEventCustomer$inboundSchema: z.ZodType<
|
|
|
2205
2507
|
name: z.string(),
|
|
2206
2508
|
email: z.nullable(z.string()).optional(),
|
|
2207
2509
|
avatar: z.nullable(z.string()).optional(),
|
|
2510
|
+
country: z.nullable(z.string()).optional(),
|
|
2208
2511
|
createdAt: z.string(),
|
|
2512
|
+
link: z.nullable(z.lazy(() => SaleEventCustomerLink$inboundSchema))
|
|
2513
|
+
.optional(),
|
|
2514
|
+
partner: z.nullable(z.lazy(() => SaleEventPartner$inboundSchema)).optional(),
|
|
2515
|
+
discount: z.nullable(z.lazy(() => SaleEventDiscount$inboundSchema))
|
|
2516
|
+
.optional(),
|
|
2209
2517
|
});
|
|
2210
2518
|
|
|
2211
2519
|
/** @internal */
|
|
@@ -2215,7 +2523,11 @@ export type SaleEventCustomer$Outbound = {
|
|
|
2215
2523
|
name: string;
|
|
2216
2524
|
email?: string | null | undefined;
|
|
2217
2525
|
avatar?: string | null | undefined;
|
|
2526
|
+
country?: string | null | undefined;
|
|
2218
2527
|
createdAt: string;
|
|
2528
|
+
link?: SaleEventCustomerLink$Outbound | null | undefined;
|
|
2529
|
+
partner?: SaleEventPartner$Outbound | null | undefined;
|
|
2530
|
+
discount?: SaleEventDiscount$Outbound | null | undefined;
|
|
2219
2531
|
};
|
|
2220
2532
|
|
|
2221
2533
|
/** @internal */
|
|
@@ -2229,7 +2541,13 @@ export const SaleEventCustomer$outboundSchema: z.ZodType<
|
|
|
2229
2541
|
name: z.string(),
|
|
2230
2542
|
email: z.nullable(z.string()).optional(),
|
|
2231
2543
|
avatar: z.nullable(z.string()).optional(),
|
|
2544
|
+
country: z.nullable(z.string()).optional(),
|
|
2232
2545
|
createdAt: z.string(),
|
|
2546
|
+
link: z.nullable(z.lazy(() => SaleEventCustomerLink$outboundSchema))
|
|
2547
|
+
.optional(),
|
|
2548
|
+
partner: z.nullable(z.lazy(() => SaleEventPartner$outboundSchema)).optional(),
|
|
2549
|
+
discount: z.nullable(z.lazy(() => SaleEventDiscount$outboundSchema))
|
|
2550
|
+
.optional(),
|
|
2233
2551
|
});
|
|
2234
2552
|
|
|
2235
2553
|
/**
|