dub 0.46.6 → 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/components/workspaceschema.d.ts +5 -0
- package/dist/commonjs/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/workspaceschema.js +2 -0
- package/dist/commonjs/models/components/workspaceschema.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/components/workspaceschema.d.ts +5 -0
- package/dist/esm/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/esm/models/components/workspaceschema.js +2 -0
- package/dist/esm/models/components/workspaceschema.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/components/workspaceschema.ts +7 -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
|
@@ -26,6 +26,29 @@ export type CreateCustomerRequestBody = {
|
|
|
26
26
|
externalId: string;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
export type CreateCustomerLink = {
|
|
30
|
+
/**
|
|
31
|
+
* The unique ID of the short link.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* 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).
|
|
36
|
+
*/
|
|
37
|
+
domain: string;
|
|
38
|
+
/**
|
|
39
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
40
|
+
*/
|
|
41
|
+
key: string;
|
|
42
|
+
/**
|
|
43
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
44
|
+
*/
|
|
45
|
+
shortLink: string;
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the program the short link is associated with.
|
|
48
|
+
*/
|
|
49
|
+
programId: string | null;
|
|
50
|
+
};
|
|
51
|
+
|
|
29
52
|
/**
|
|
30
53
|
* The customer was created.
|
|
31
54
|
*/
|
|
@@ -50,10 +73,15 @@ export type CreateCustomerResponseBody = {
|
|
|
50
73
|
* Avatar URL of the customer.
|
|
51
74
|
*/
|
|
52
75
|
avatar?: string | null | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Country of the customer.
|
|
78
|
+
*/
|
|
79
|
+
country?: string | null | undefined;
|
|
53
80
|
/**
|
|
54
81
|
* The date the customer was created.
|
|
55
82
|
*/
|
|
56
83
|
createdAt: string;
|
|
84
|
+
link?: CreateCustomerLink | null | undefined;
|
|
57
85
|
};
|
|
58
86
|
|
|
59
87
|
/** @internal */
|
|
@@ -119,6 +147,72 @@ export function createCustomerRequestBodyFromJSON(
|
|
|
119
147
|
);
|
|
120
148
|
}
|
|
121
149
|
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const CreateCustomerLink$inboundSchema: z.ZodType<
|
|
152
|
+
CreateCustomerLink,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
unknown
|
|
155
|
+
> = z.object({
|
|
156
|
+
id: z.string(),
|
|
157
|
+
domain: z.string(),
|
|
158
|
+
key: z.string(),
|
|
159
|
+
shortLink: z.string(),
|
|
160
|
+
programId: z.nullable(z.string()),
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export type CreateCustomerLink$Outbound = {
|
|
165
|
+
id: string;
|
|
166
|
+
domain: string;
|
|
167
|
+
key: string;
|
|
168
|
+
shortLink: string;
|
|
169
|
+
programId: string | null;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
/** @internal */
|
|
173
|
+
export const CreateCustomerLink$outboundSchema: z.ZodType<
|
|
174
|
+
CreateCustomerLink$Outbound,
|
|
175
|
+
z.ZodTypeDef,
|
|
176
|
+
CreateCustomerLink
|
|
177
|
+
> = z.object({
|
|
178
|
+
id: z.string(),
|
|
179
|
+
domain: z.string(),
|
|
180
|
+
key: z.string(),
|
|
181
|
+
shortLink: z.string(),
|
|
182
|
+
programId: z.nullable(z.string()),
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
188
|
+
*/
|
|
189
|
+
export namespace CreateCustomerLink$ {
|
|
190
|
+
/** @deprecated use `CreateCustomerLink$inboundSchema` instead. */
|
|
191
|
+
export const inboundSchema = CreateCustomerLink$inboundSchema;
|
|
192
|
+
/** @deprecated use `CreateCustomerLink$outboundSchema` instead. */
|
|
193
|
+
export const outboundSchema = CreateCustomerLink$outboundSchema;
|
|
194
|
+
/** @deprecated use `CreateCustomerLink$Outbound` instead. */
|
|
195
|
+
export type Outbound = CreateCustomerLink$Outbound;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export function createCustomerLinkToJSON(
|
|
199
|
+
createCustomerLink: CreateCustomerLink,
|
|
200
|
+
): string {
|
|
201
|
+
return JSON.stringify(
|
|
202
|
+
CreateCustomerLink$outboundSchema.parse(createCustomerLink),
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function createCustomerLinkFromJSON(
|
|
207
|
+
jsonString: string,
|
|
208
|
+
): SafeParseResult<CreateCustomerLink, SDKValidationError> {
|
|
209
|
+
return safeParse(
|
|
210
|
+
jsonString,
|
|
211
|
+
(x) => CreateCustomerLink$inboundSchema.parse(JSON.parse(x)),
|
|
212
|
+
`Failed to parse 'CreateCustomerLink' from JSON`,
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
122
216
|
/** @internal */
|
|
123
217
|
export const CreateCustomerResponseBody$inboundSchema: z.ZodType<
|
|
124
218
|
CreateCustomerResponseBody,
|
|
@@ -130,7 +224,9 @@ export const CreateCustomerResponseBody$inboundSchema: z.ZodType<
|
|
|
130
224
|
name: z.string(),
|
|
131
225
|
email: z.nullable(z.string()).optional(),
|
|
132
226
|
avatar: z.nullable(z.string()).optional(),
|
|
227
|
+
country: z.nullable(z.string()).optional(),
|
|
133
228
|
createdAt: z.string(),
|
|
229
|
+
link: z.nullable(z.lazy(() => CreateCustomerLink$inboundSchema)).optional(),
|
|
134
230
|
});
|
|
135
231
|
|
|
136
232
|
/** @internal */
|
|
@@ -140,7 +236,9 @@ export type CreateCustomerResponseBody$Outbound = {
|
|
|
140
236
|
name: string;
|
|
141
237
|
email?: string | null | undefined;
|
|
142
238
|
avatar?: string | null | undefined;
|
|
239
|
+
country?: string | null | undefined;
|
|
143
240
|
createdAt: string;
|
|
241
|
+
link?: CreateCustomerLink$Outbound | null | undefined;
|
|
144
242
|
};
|
|
145
243
|
|
|
146
244
|
/** @internal */
|
|
@@ -154,7 +252,9 @@ export const CreateCustomerResponseBody$outboundSchema: z.ZodType<
|
|
|
154
252
|
name: z.string(),
|
|
155
253
|
email: z.nullable(z.string()).optional(),
|
|
156
254
|
avatar: z.nullable(z.string()).optional(),
|
|
255
|
+
country: z.nullable(z.string()).optional(),
|
|
157
256
|
createdAt: z.string(),
|
|
257
|
+
link: z.nullable(z.lazy(() => CreateCustomerLink$outboundSchema)).optional(),
|
|
158
258
|
});
|
|
159
259
|
|
|
160
260
|
/**
|
|
@@ -14,6 +14,29 @@ export type GetCustomerRequest = {
|
|
|
14
14
|
id: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
export type GetCustomerLink = {
|
|
18
|
+
/**
|
|
19
|
+
* The unique ID of the short link.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* 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).
|
|
24
|
+
*/
|
|
25
|
+
domain: string;
|
|
26
|
+
/**
|
|
27
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
28
|
+
*/
|
|
29
|
+
key: string;
|
|
30
|
+
/**
|
|
31
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
32
|
+
*/
|
|
33
|
+
shortLink: string;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the program the short link is associated with.
|
|
36
|
+
*/
|
|
37
|
+
programId: string | null;
|
|
38
|
+
};
|
|
39
|
+
|
|
17
40
|
/**
|
|
18
41
|
* The customer object.
|
|
19
42
|
*/
|
|
@@ -38,10 +61,15 @@ export type GetCustomerResponseBody = {
|
|
|
38
61
|
* Avatar URL of the customer.
|
|
39
62
|
*/
|
|
40
63
|
avatar?: string | null | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Country of the customer.
|
|
66
|
+
*/
|
|
67
|
+
country?: string | null | undefined;
|
|
41
68
|
/**
|
|
42
69
|
* The date the customer was created.
|
|
43
70
|
*/
|
|
44
71
|
createdAt: string;
|
|
72
|
+
link?: GetCustomerLink | null | undefined;
|
|
45
73
|
};
|
|
46
74
|
|
|
47
75
|
/** @internal */
|
|
@@ -98,6 +126,70 @@ export function getCustomerRequestFromJSON(
|
|
|
98
126
|
);
|
|
99
127
|
}
|
|
100
128
|
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const GetCustomerLink$inboundSchema: z.ZodType<
|
|
131
|
+
GetCustomerLink,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
unknown
|
|
134
|
+
> = z.object({
|
|
135
|
+
id: z.string(),
|
|
136
|
+
domain: z.string(),
|
|
137
|
+
key: z.string(),
|
|
138
|
+
shortLink: z.string(),
|
|
139
|
+
programId: z.nullable(z.string()),
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export type GetCustomerLink$Outbound = {
|
|
144
|
+
id: string;
|
|
145
|
+
domain: string;
|
|
146
|
+
key: string;
|
|
147
|
+
shortLink: string;
|
|
148
|
+
programId: string | null;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export const GetCustomerLink$outboundSchema: z.ZodType<
|
|
153
|
+
GetCustomerLink$Outbound,
|
|
154
|
+
z.ZodTypeDef,
|
|
155
|
+
GetCustomerLink
|
|
156
|
+
> = z.object({
|
|
157
|
+
id: z.string(),
|
|
158
|
+
domain: z.string(),
|
|
159
|
+
key: z.string(),
|
|
160
|
+
shortLink: z.string(),
|
|
161
|
+
programId: z.nullable(z.string()),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
167
|
+
*/
|
|
168
|
+
export namespace GetCustomerLink$ {
|
|
169
|
+
/** @deprecated use `GetCustomerLink$inboundSchema` instead. */
|
|
170
|
+
export const inboundSchema = GetCustomerLink$inboundSchema;
|
|
171
|
+
/** @deprecated use `GetCustomerLink$outboundSchema` instead. */
|
|
172
|
+
export const outboundSchema = GetCustomerLink$outboundSchema;
|
|
173
|
+
/** @deprecated use `GetCustomerLink$Outbound` instead. */
|
|
174
|
+
export type Outbound = GetCustomerLink$Outbound;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function getCustomerLinkToJSON(
|
|
178
|
+
getCustomerLink: GetCustomerLink,
|
|
179
|
+
): string {
|
|
180
|
+
return JSON.stringify(GetCustomerLink$outboundSchema.parse(getCustomerLink));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function getCustomerLinkFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<GetCustomerLink, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => GetCustomerLink$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'GetCustomerLink' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
101
193
|
/** @internal */
|
|
102
194
|
export const GetCustomerResponseBody$inboundSchema: z.ZodType<
|
|
103
195
|
GetCustomerResponseBody,
|
|
@@ -109,7 +201,9 @@ export const GetCustomerResponseBody$inboundSchema: z.ZodType<
|
|
|
109
201
|
name: z.string(),
|
|
110
202
|
email: z.nullable(z.string()).optional(),
|
|
111
203
|
avatar: z.nullable(z.string()).optional(),
|
|
204
|
+
country: z.nullable(z.string()).optional(),
|
|
112
205
|
createdAt: z.string(),
|
|
206
|
+
link: z.nullable(z.lazy(() => GetCustomerLink$inboundSchema)).optional(),
|
|
113
207
|
});
|
|
114
208
|
|
|
115
209
|
/** @internal */
|
|
@@ -119,7 +213,9 @@ export type GetCustomerResponseBody$Outbound = {
|
|
|
119
213
|
name: string;
|
|
120
214
|
email?: string | null | undefined;
|
|
121
215
|
avatar?: string | null | undefined;
|
|
216
|
+
country?: string | null | undefined;
|
|
122
217
|
createdAt: string;
|
|
218
|
+
link?: GetCustomerLink$Outbound | null | undefined;
|
|
123
219
|
};
|
|
124
220
|
|
|
125
221
|
/** @internal */
|
|
@@ -133,7 +229,9 @@ export const GetCustomerResponseBody$outboundSchema: z.ZodType<
|
|
|
133
229
|
name: z.string(),
|
|
134
230
|
email: z.nullable(z.string()).optional(),
|
|
135
231
|
avatar: z.nullable(z.string()).optional(),
|
|
232
|
+
country: z.nullable(z.string()).optional(),
|
|
136
233
|
createdAt: z.string(),
|
|
234
|
+
link: z.nullable(z.lazy(() => GetCustomerLink$outboundSchema)).optional(),
|
|
137
235
|
});
|
|
138
236
|
|
|
139
237
|
/**
|
|
@@ -7,6 +7,29 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
|
+
export type Link = {
|
|
11
|
+
/**
|
|
12
|
+
* The unique ID of the short link.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* 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).
|
|
17
|
+
*/
|
|
18
|
+
domain: string;
|
|
19
|
+
/**
|
|
20
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
21
|
+
*/
|
|
22
|
+
key: string;
|
|
23
|
+
/**
|
|
24
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
25
|
+
*/
|
|
26
|
+
shortLink: string;
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the program the short link is associated with.
|
|
29
|
+
*/
|
|
30
|
+
programId: string | null;
|
|
31
|
+
};
|
|
32
|
+
|
|
10
33
|
export type ResponseBody = {
|
|
11
34
|
/**
|
|
12
35
|
* The unique identifier of the customer in Dub.
|
|
@@ -28,12 +51,73 @@ export type ResponseBody = {
|
|
|
28
51
|
* Avatar URL of the customer.
|
|
29
52
|
*/
|
|
30
53
|
avatar?: string | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Country of the customer.
|
|
56
|
+
*/
|
|
57
|
+
country?: string | null | undefined;
|
|
31
58
|
/**
|
|
32
59
|
* The date the customer was created.
|
|
33
60
|
*/
|
|
34
61
|
createdAt: string;
|
|
62
|
+
link?: Link | null | undefined;
|
|
35
63
|
};
|
|
36
64
|
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const Link$inboundSchema: z.ZodType<Link, z.ZodTypeDef, unknown> = z
|
|
67
|
+
.object({
|
|
68
|
+
id: z.string(),
|
|
69
|
+
domain: z.string(),
|
|
70
|
+
key: z.string(),
|
|
71
|
+
shortLink: z.string(),
|
|
72
|
+
programId: z.nullable(z.string()),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type Link$Outbound = {
|
|
77
|
+
id: string;
|
|
78
|
+
domain: string;
|
|
79
|
+
key: string;
|
|
80
|
+
shortLink: string;
|
|
81
|
+
programId: string | null;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const Link$outboundSchema: z.ZodType<Link$Outbound, z.ZodTypeDef, Link> =
|
|
86
|
+
z.object({
|
|
87
|
+
id: z.string(),
|
|
88
|
+
domain: z.string(),
|
|
89
|
+
key: z.string(),
|
|
90
|
+
shortLink: z.string(),
|
|
91
|
+
programId: z.nullable(z.string()),
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
+
*/
|
|
98
|
+
export namespace Link$ {
|
|
99
|
+
/** @deprecated use `Link$inboundSchema` instead. */
|
|
100
|
+
export const inboundSchema = Link$inboundSchema;
|
|
101
|
+
/** @deprecated use `Link$outboundSchema` instead. */
|
|
102
|
+
export const outboundSchema = Link$outboundSchema;
|
|
103
|
+
/** @deprecated use `Link$Outbound` instead. */
|
|
104
|
+
export type Outbound = Link$Outbound;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function linkToJSON(link: Link): string {
|
|
108
|
+
return JSON.stringify(Link$outboundSchema.parse(link));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function linkFromJSON(
|
|
112
|
+
jsonString: string,
|
|
113
|
+
): SafeParseResult<Link, SDKValidationError> {
|
|
114
|
+
return safeParse(
|
|
115
|
+
jsonString,
|
|
116
|
+
(x) => Link$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
+
`Failed to parse 'Link' from JSON`,
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
37
121
|
/** @internal */
|
|
38
122
|
export const ResponseBody$inboundSchema: z.ZodType<
|
|
39
123
|
ResponseBody,
|
|
@@ -45,7 +129,9 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
45
129
|
name: z.string(),
|
|
46
130
|
email: z.nullable(z.string()).optional(),
|
|
47
131
|
avatar: z.nullable(z.string()).optional(),
|
|
132
|
+
country: z.nullable(z.string()).optional(),
|
|
48
133
|
createdAt: z.string(),
|
|
134
|
+
link: z.nullable(z.lazy(() => Link$inboundSchema)).optional(),
|
|
49
135
|
});
|
|
50
136
|
|
|
51
137
|
/** @internal */
|
|
@@ -55,7 +141,9 @@ export type ResponseBody$Outbound = {
|
|
|
55
141
|
name: string;
|
|
56
142
|
email?: string | null | undefined;
|
|
57
143
|
avatar?: string | null | undefined;
|
|
144
|
+
country?: string | null | undefined;
|
|
58
145
|
createdAt: string;
|
|
146
|
+
link?: Link$Outbound | null | undefined;
|
|
59
147
|
};
|
|
60
148
|
|
|
61
149
|
/** @internal */
|
|
@@ -69,7 +157,9 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
69
157
|
name: z.string(),
|
|
70
158
|
email: z.nullable(z.string()).optional(),
|
|
71
159
|
avatar: z.nullable(z.string()).optional(),
|
|
160
|
+
country: z.nullable(z.string()).optional(),
|
|
72
161
|
createdAt: z.string(),
|
|
162
|
+
link: z.nullable(z.lazy(() => Link$outboundSchema)).optional(),
|
|
73
163
|
});
|
|
74
164
|
|
|
75
165
|
/**
|
|
@@ -25,7 +25,6 @@ export * from "./getworkspace.js";
|
|
|
25
25
|
export * from "./listdomains.js";
|
|
26
26
|
export * from "./listevents.js";
|
|
27
27
|
export * from "./retrieveanalytics.js";
|
|
28
|
-
export * from "./trackcustomer.js";
|
|
29
28
|
export * from "./tracklead.js";
|
|
30
29
|
export * from "./tracksale.js";
|
|
31
30
|
export * from "./updatecustomer.js";
|
|
@@ -35,6 +35,29 @@ export type UpdateCustomerRequest = {
|
|
|
35
35
|
requestBody?: UpdateCustomerRequestBody | undefined;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
+
export type UpdateCustomerLink = {
|
|
39
|
+
/**
|
|
40
|
+
* The unique ID of the short link.
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* 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).
|
|
45
|
+
*/
|
|
46
|
+
domain: string;
|
|
47
|
+
/**
|
|
48
|
+
* The short link slug. If not provided, a random 7-character slug will be generated.
|
|
49
|
+
*/
|
|
50
|
+
key: string;
|
|
51
|
+
/**
|
|
52
|
+
* The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
53
|
+
*/
|
|
54
|
+
shortLink: string;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the program the short link is associated with.
|
|
57
|
+
*/
|
|
58
|
+
programId: string | null;
|
|
59
|
+
};
|
|
60
|
+
|
|
38
61
|
/**
|
|
39
62
|
* The customer was updated.
|
|
40
63
|
*/
|
|
@@ -59,10 +82,15 @@ export type UpdateCustomerResponseBody = {
|
|
|
59
82
|
* Avatar URL of the customer.
|
|
60
83
|
*/
|
|
61
84
|
avatar?: string | null | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Country of the customer.
|
|
87
|
+
*/
|
|
88
|
+
country?: string | null | undefined;
|
|
62
89
|
/**
|
|
63
90
|
* The date the customer was created.
|
|
64
91
|
*/
|
|
65
92
|
createdAt: string;
|
|
93
|
+
link?: UpdateCustomerLink | null | undefined;
|
|
66
94
|
};
|
|
67
95
|
|
|
68
96
|
/** @internal */
|
|
@@ -194,6 +222,72 @@ export function updateCustomerRequestFromJSON(
|
|
|
194
222
|
);
|
|
195
223
|
}
|
|
196
224
|
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const UpdateCustomerLink$inboundSchema: z.ZodType<
|
|
227
|
+
UpdateCustomerLink,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
unknown
|
|
230
|
+
> = z.object({
|
|
231
|
+
id: z.string(),
|
|
232
|
+
domain: z.string(),
|
|
233
|
+
key: z.string(),
|
|
234
|
+
shortLink: z.string(),
|
|
235
|
+
programId: z.nullable(z.string()),
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
/** @internal */
|
|
239
|
+
export type UpdateCustomerLink$Outbound = {
|
|
240
|
+
id: string;
|
|
241
|
+
domain: string;
|
|
242
|
+
key: string;
|
|
243
|
+
shortLink: string;
|
|
244
|
+
programId: string | null;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const UpdateCustomerLink$outboundSchema: z.ZodType<
|
|
249
|
+
UpdateCustomerLink$Outbound,
|
|
250
|
+
z.ZodTypeDef,
|
|
251
|
+
UpdateCustomerLink
|
|
252
|
+
> = z.object({
|
|
253
|
+
id: z.string(),
|
|
254
|
+
domain: z.string(),
|
|
255
|
+
key: z.string(),
|
|
256
|
+
shortLink: z.string(),
|
|
257
|
+
programId: z.nullable(z.string()),
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @internal
|
|
262
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
263
|
+
*/
|
|
264
|
+
export namespace UpdateCustomerLink$ {
|
|
265
|
+
/** @deprecated use `UpdateCustomerLink$inboundSchema` instead. */
|
|
266
|
+
export const inboundSchema = UpdateCustomerLink$inboundSchema;
|
|
267
|
+
/** @deprecated use `UpdateCustomerLink$outboundSchema` instead. */
|
|
268
|
+
export const outboundSchema = UpdateCustomerLink$outboundSchema;
|
|
269
|
+
/** @deprecated use `UpdateCustomerLink$Outbound` instead. */
|
|
270
|
+
export type Outbound = UpdateCustomerLink$Outbound;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function updateCustomerLinkToJSON(
|
|
274
|
+
updateCustomerLink: UpdateCustomerLink,
|
|
275
|
+
): string {
|
|
276
|
+
return JSON.stringify(
|
|
277
|
+
UpdateCustomerLink$outboundSchema.parse(updateCustomerLink),
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export function updateCustomerLinkFromJSON(
|
|
282
|
+
jsonString: string,
|
|
283
|
+
): SafeParseResult<UpdateCustomerLink, SDKValidationError> {
|
|
284
|
+
return safeParse(
|
|
285
|
+
jsonString,
|
|
286
|
+
(x) => UpdateCustomerLink$inboundSchema.parse(JSON.parse(x)),
|
|
287
|
+
`Failed to parse 'UpdateCustomerLink' from JSON`,
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
197
291
|
/** @internal */
|
|
198
292
|
export const UpdateCustomerResponseBody$inboundSchema: z.ZodType<
|
|
199
293
|
UpdateCustomerResponseBody,
|
|
@@ -205,7 +299,9 @@ export const UpdateCustomerResponseBody$inboundSchema: z.ZodType<
|
|
|
205
299
|
name: z.string(),
|
|
206
300
|
email: z.nullable(z.string()).optional(),
|
|
207
301
|
avatar: z.nullable(z.string()).optional(),
|
|
302
|
+
country: z.nullable(z.string()).optional(),
|
|
208
303
|
createdAt: z.string(),
|
|
304
|
+
link: z.nullable(z.lazy(() => UpdateCustomerLink$inboundSchema)).optional(),
|
|
209
305
|
});
|
|
210
306
|
|
|
211
307
|
/** @internal */
|
|
@@ -215,7 +311,9 @@ export type UpdateCustomerResponseBody$Outbound = {
|
|
|
215
311
|
name: string;
|
|
216
312
|
email?: string | null | undefined;
|
|
217
313
|
avatar?: string | null | undefined;
|
|
314
|
+
country?: string | null | undefined;
|
|
218
315
|
createdAt: string;
|
|
316
|
+
link?: UpdateCustomerLink$Outbound | null | undefined;
|
|
219
317
|
};
|
|
220
318
|
|
|
221
319
|
/** @internal */
|
|
@@ -229,7 +327,9 @@ export const UpdateCustomerResponseBody$outboundSchema: z.ZodType<
|
|
|
229
327
|
name: z.string(),
|
|
230
328
|
email: z.nullable(z.string()).optional(),
|
|
231
329
|
avatar: z.nullable(z.string()).optional(),
|
|
330
|
+
country: z.nullable(z.string()).optional(),
|
|
232
331
|
createdAt: z.string(),
|
|
332
|
+
link: z.nullable(z.lazy(() => UpdateCustomerLink$outboundSchema)).optional(),
|
|
233
333
|
});
|
|
234
334
|
|
|
235
335
|
/**
|
package/src/sdk/track.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { trackCustomer } from "../funcs/trackCustomer.js";
|
|
6
5
|
import { trackLead } from "../funcs/trackLead.js";
|
|
7
6
|
import { trackSale } from "../funcs/trackSale.js";
|
|
8
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -43,23 +42,4 @@ export class Track extends ClientSDK {
|
|
|
43
42
|
options,
|
|
44
43
|
));
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Track a customer
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* Track a customer for an authenticated workspace.
|
|
52
|
-
*
|
|
53
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
54
|
-
*/
|
|
55
|
-
async customer(
|
|
56
|
-
request?: operations.TrackCustomerRequestBody | undefined,
|
|
57
|
-
options?: RequestOptions,
|
|
58
|
-
): Promise<operations.TrackCustomerResponseBody> {
|
|
59
|
-
return unwrapAsync(trackCustomer(
|
|
60
|
-
this,
|
|
61
|
-
request,
|
|
62
|
-
options,
|
|
63
|
-
));
|
|
64
|
-
}
|
|
65
45
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DubCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Track a customer
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Track a customer for an authenticated workspace.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
16
|
-
*/
|
|
17
|
-
export declare function trackCustomer(client: DubCore, request?: operations.TrackCustomerRequestBody | undefined, options?: RequestOptions): Promise<Result<operations.TrackCustomerResponseBody, errors.BadRequest | errors.Unauthorized | errors.Forbidden | errors.NotFound | errors.Conflict | errors.InviteExpired | errors.UnprocessableEntity | errors.RateLimitExceeded | errors.InternalServerError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
18
|
-
//# sourceMappingURL=trackCustomer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trackCustomer.d.ts","sourceRoot":"","sources":["../../../src/funcs/trackCustomer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,wBAAwB,GAAG,SAAS,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAsHA"}
|