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
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
* [lead](#lead) - Track a lead
|
|
9
9
|
* [sale](#sale) - Track a sale
|
|
10
|
-
* [~~customer~~](#customer) - Track a customer :warning: **Deprecated**
|
|
11
10
|
|
|
12
11
|
## lead
|
|
13
12
|
|
|
@@ -158,89 +157,6 @@ run();
|
|
|
158
157
|
|
|
159
158
|
### Errors
|
|
160
159
|
|
|
161
|
-
| Error Type | Status Code | Content Type |
|
|
162
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
163
|
-
| errors.BadRequest | 400 | application/json |
|
|
164
|
-
| errors.Unauthorized | 401 | application/json |
|
|
165
|
-
| errors.Forbidden | 403 | application/json |
|
|
166
|
-
| errors.NotFound | 404 | application/json |
|
|
167
|
-
| errors.Conflict | 409 | application/json |
|
|
168
|
-
| errors.InviteExpired | 410 | application/json |
|
|
169
|
-
| errors.UnprocessableEntity | 422 | application/json |
|
|
170
|
-
| errors.RateLimitExceeded | 429 | application/json |
|
|
171
|
-
| errors.InternalServerError | 500 | application/json |
|
|
172
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
173
|
-
|
|
174
|
-
## ~~customer~~
|
|
175
|
-
|
|
176
|
-
Track a customer for an authenticated workspace.
|
|
177
|
-
|
|
178
|
-
> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
179
|
-
|
|
180
|
-
### Example Usage
|
|
181
|
-
|
|
182
|
-
```typescript
|
|
183
|
-
import { Dub } from "dub";
|
|
184
|
-
|
|
185
|
-
const dub = new Dub({
|
|
186
|
-
token: "DUB_API_KEY",
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
async function run() {
|
|
190
|
-
const result = await dub.track.customer();
|
|
191
|
-
|
|
192
|
-
// Handle the result
|
|
193
|
-
console.log(result);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
run();
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### Standalone function
|
|
200
|
-
|
|
201
|
-
The standalone function version of this method:
|
|
202
|
-
|
|
203
|
-
```typescript
|
|
204
|
-
import { DubCore } from "dub/core.js";
|
|
205
|
-
import { trackCustomer } from "dub/funcs/trackCustomer.js";
|
|
206
|
-
|
|
207
|
-
// Use `DubCore` for best tree-shaking performance.
|
|
208
|
-
// You can create one instance of it to use across an application.
|
|
209
|
-
const dub = new DubCore({
|
|
210
|
-
token: "DUB_API_KEY",
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
async function run() {
|
|
214
|
-
const res = await trackCustomer(dub);
|
|
215
|
-
|
|
216
|
-
if (!res.ok) {
|
|
217
|
-
throw res.error;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const { value: result } = res;
|
|
221
|
-
|
|
222
|
-
// Handle the result
|
|
223
|
-
console.log(result);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
run();
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### Parameters
|
|
230
|
-
|
|
231
|
-
| Parameter | Type | Required | Description |
|
|
232
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
233
|
-
| `request` | [operations.TrackCustomerRequestBody](../../models/operations/trackcustomerrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
234
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
235
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
236
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
237
|
-
|
|
238
|
-
### Response
|
|
239
|
-
|
|
240
|
-
**Promise\<[operations.TrackCustomerResponseBody](../../models/operations/trackcustomerresponsebody.md)\>**
|
|
241
|
-
|
|
242
|
-
### Errors
|
|
243
|
-
|
|
244
160
|
| Error Type | Status Code | Content Type |
|
|
245
161
|
| -------------------------- | -------------------------- | -------------------------- |
|
|
246
162
|
| errors.BadRequest | 400 | application/json |
|
package/package.json
CHANGED
package/src/funcs/domainsList.ts
CHANGED
|
@@ -209,7 +209,7 @@ export async function domainsList(
|
|
|
209
209
|
>;
|
|
210
210
|
"~next"?: { page: number };
|
|
211
211
|
} => {
|
|
212
|
-
const page = request?.page
|
|
212
|
+
const page = request?.page ?? 1;
|
|
213
213
|
const nextPage = page + 1;
|
|
214
214
|
|
|
215
215
|
if (!responseData) {
|
|
@@ -221,7 +221,7 @@ export async function domainsList(
|
|
|
221
221
|
if (!Array.isArray(results) || !results.length) {
|
|
222
222
|
return { next: () => null };
|
|
223
223
|
}
|
|
224
|
-
const limit = request?.pageSize
|
|
224
|
+
const limit = request?.pageSize ?? 50;
|
|
225
225
|
if (results.length < limit) {
|
|
226
226
|
return { next: () => null };
|
|
227
227
|
}
|
package/src/funcs/linksList.ts
CHANGED
|
@@ -214,7 +214,7 @@ export async function linksList(
|
|
|
214
214
|
>;
|
|
215
215
|
"~next"?: { page: number };
|
|
216
216
|
} => {
|
|
217
|
-
const page = request?.page
|
|
217
|
+
const page = request?.page ?? 1;
|
|
218
218
|
const nextPage = page + 1;
|
|
219
219
|
|
|
220
220
|
if (!responseData) {
|
|
@@ -226,7 +226,7 @@ export async function linksList(
|
|
|
226
226
|
if (!Array.isArray(results) || !results.length) {
|
|
227
227
|
return { next: () => null };
|
|
228
228
|
}
|
|
229
|
-
const limit = request?.pageSize
|
|
229
|
+
const limit = request?.pageSize ?? 100;
|
|
230
230
|
if (results.length < limit) {
|
|
231
231
|
return { next: () => null };
|
|
232
232
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.46.
|
|
61
|
-
genVersion: "2.
|
|
62
|
-
userAgent: "speakeasy-sdk/typescript 0.46.
|
|
60
|
+
sdkVersion: "0.46.9",
|
|
61
|
+
genVersion: "2.484.0",
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 0.46.9 2.484.0 0.0.1 dub",
|
|
63
63
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -20,6 +20,60 @@ 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
|
+
|
|
46
|
+
export type LeadCreatedEventPartner = {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
email: string;
|
|
50
|
+
image?: string | null | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const LeadCreatedEventType = {
|
|
54
|
+
Percentage: "percentage",
|
|
55
|
+
Flat: "flat",
|
|
56
|
+
} as const;
|
|
57
|
+
export type LeadCreatedEventType = ClosedEnum<typeof LeadCreatedEventType>;
|
|
58
|
+
|
|
59
|
+
export const LeadCreatedEventInterval = {
|
|
60
|
+
Month: "month",
|
|
61
|
+
Year: "year",
|
|
62
|
+
} as const;
|
|
63
|
+
export type LeadCreatedEventInterval = ClosedEnum<
|
|
64
|
+
typeof LeadCreatedEventInterval
|
|
65
|
+
>;
|
|
66
|
+
|
|
67
|
+
export type LeadCreatedEventDiscount = {
|
|
68
|
+
id: string;
|
|
69
|
+
couponId: string | null;
|
|
70
|
+
couponTestId: string | null;
|
|
71
|
+
amount: number;
|
|
72
|
+
type: LeadCreatedEventType;
|
|
73
|
+
duration: number | null;
|
|
74
|
+
interval: LeadCreatedEventInterval | null;
|
|
75
|
+
};
|
|
76
|
+
|
|
23
77
|
export type LeadCreatedEventCustomer = {
|
|
24
78
|
/**
|
|
25
79
|
* The unique identifier of the customer in Dub.
|
|
@@ -41,10 +95,17 @@ export type LeadCreatedEventCustomer = {
|
|
|
41
95
|
* Avatar URL of the customer.
|
|
42
96
|
*/
|
|
43
97
|
avatar?: string | null | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Country of the customer.
|
|
100
|
+
*/
|
|
101
|
+
country?: string | null | undefined;
|
|
44
102
|
/**
|
|
45
103
|
* The date the customer was created.
|
|
46
104
|
*/
|
|
47
105
|
createdAt: string;
|
|
106
|
+
link?: LeadCreatedEventDataLink | null | undefined;
|
|
107
|
+
partner?: LeadCreatedEventPartner | null | undefined;
|
|
108
|
+
discount?: LeadCreatedEventDiscount | null | undefined;
|
|
48
109
|
};
|
|
49
110
|
|
|
50
111
|
export type LeadCreatedEventClick = {
|
|
@@ -497,6 +558,249 @@ export namespace LeadCreatedEventEvent$ {
|
|
|
497
558
|
export const outboundSchema = LeadCreatedEventEvent$outboundSchema;
|
|
498
559
|
}
|
|
499
560
|
|
|
561
|
+
/** @internal */
|
|
562
|
+
export const LeadCreatedEventDataLink$inboundSchema: z.ZodType<
|
|
563
|
+
LeadCreatedEventDataLink,
|
|
564
|
+
z.ZodTypeDef,
|
|
565
|
+
unknown
|
|
566
|
+
> = z.object({
|
|
567
|
+
id: z.string(),
|
|
568
|
+
domain: z.string(),
|
|
569
|
+
key: z.string(),
|
|
570
|
+
shortLink: z.string(),
|
|
571
|
+
programId: z.nullable(z.string()),
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
/** @internal */
|
|
575
|
+
export type LeadCreatedEventDataLink$Outbound = {
|
|
576
|
+
id: string;
|
|
577
|
+
domain: string;
|
|
578
|
+
key: string;
|
|
579
|
+
shortLink: string;
|
|
580
|
+
programId: string | null;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
/** @internal */
|
|
584
|
+
export const LeadCreatedEventDataLink$outboundSchema: z.ZodType<
|
|
585
|
+
LeadCreatedEventDataLink$Outbound,
|
|
586
|
+
z.ZodTypeDef,
|
|
587
|
+
LeadCreatedEventDataLink
|
|
588
|
+
> = z.object({
|
|
589
|
+
id: z.string(),
|
|
590
|
+
domain: z.string(),
|
|
591
|
+
key: z.string(),
|
|
592
|
+
shortLink: z.string(),
|
|
593
|
+
programId: z.nullable(z.string()),
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* @internal
|
|
598
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
599
|
+
*/
|
|
600
|
+
export namespace LeadCreatedEventDataLink$ {
|
|
601
|
+
/** @deprecated use `LeadCreatedEventDataLink$inboundSchema` instead. */
|
|
602
|
+
export const inboundSchema = LeadCreatedEventDataLink$inboundSchema;
|
|
603
|
+
/** @deprecated use `LeadCreatedEventDataLink$outboundSchema` instead. */
|
|
604
|
+
export const outboundSchema = LeadCreatedEventDataLink$outboundSchema;
|
|
605
|
+
/** @deprecated use `LeadCreatedEventDataLink$Outbound` instead. */
|
|
606
|
+
export type Outbound = LeadCreatedEventDataLink$Outbound;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export function leadCreatedEventDataLinkToJSON(
|
|
610
|
+
leadCreatedEventDataLink: LeadCreatedEventDataLink,
|
|
611
|
+
): string {
|
|
612
|
+
return JSON.stringify(
|
|
613
|
+
LeadCreatedEventDataLink$outboundSchema.parse(leadCreatedEventDataLink),
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export function leadCreatedEventDataLinkFromJSON(
|
|
618
|
+
jsonString: string,
|
|
619
|
+
): SafeParseResult<LeadCreatedEventDataLink, SDKValidationError> {
|
|
620
|
+
return safeParse(
|
|
621
|
+
jsonString,
|
|
622
|
+
(x) => LeadCreatedEventDataLink$inboundSchema.parse(JSON.parse(x)),
|
|
623
|
+
`Failed to parse 'LeadCreatedEventDataLink' from JSON`,
|
|
624
|
+
);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/** @internal */
|
|
628
|
+
export const LeadCreatedEventPartner$inboundSchema: z.ZodType<
|
|
629
|
+
LeadCreatedEventPartner,
|
|
630
|
+
z.ZodTypeDef,
|
|
631
|
+
unknown
|
|
632
|
+
> = z.object({
|
|
633
|
+
id: z.string(),
|
|
634
|
+
name: z.string(),
|
|
635
|
+
email: z.string(),
|
|
636
|
+
image: z.nullable(z.string()).optional(),
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
/** @internal */
|
|
640
|
+
export type LeadCreatedEventPartner$Outbound = {
|
|
641
|
+
id: string;
|
|
642
|
+
name: string;
|
|
643
|
+
email: string;
|
|
644
|
+
image?: string | null | undefined;
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
/** @internal */
|
|
648
|
+
export const LeadCreatedEventPartner$outboundSchema: z.ZodType<
|
|
649
|
+
LeadCreatedEventPartner$Outbound,
|
|
650
|
+
z.ZodTypeDef,
|
|
651
|
+
LeadCreatedEventPartner
|
|
652
|
+
> = z.object({
|
|
653
|
+
id: z.string(),
|
|
654
|
+
name: z.string(),
|
|
655
|
+
email: z.string(),
|
|
656
|
+
image: z.nullable(z.string()).optional(),
|
|
657
|
+
});
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* @internal
|
|
661
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
662
|
+
*/
|
|
663
|
+
export namespace LeadCreatedEventPartner$ {
|
|
664
|
+
/** @deprecated use `LeadCreatedEventPartner$inboundSchema` instead. */
|
|
665
|
+
export const inboundSchema = LeadCreatedEventPartner$inboundSchema;
|
|
666
|
+
/** @deprecated use `LeadCreatedEventPartner$outboundSchema` instead. */
|
|
667
|
+
export const outboundSchema = LeadCreatedEventPartner$outboundSchema;
|
|
668
|
+
/** @deprecated use `LeadCreatedEventPartner$Outbound` instead. */
|
|
669
|
+
export type Outbound = LeadCreatedEventPartner$Outbound;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export function leadCreatedEventPartnerToJSON(
|
|
673
|
+
leadCreatedEventPartner: LeadCreatedEventPartner,
|
|
674
|
+
): string {
|
|
675
|
+
return JSON.stringify(
|
|
676
|
+
LeadCreatedEventPartner$outboundSchema.parse(leadCreatedEventPartner),
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export function leadCreatedEventPartnerFromJSON(
|
|
681
|
+
jsonString: string,
|
|
682
|
+
): SafeParseResult<LeadCreatedEventPartner, SDKValidationError> {
|
|
683
|
+
return safeParse(
|
|
684
|
+
jsonString,
|
|
685
|
+
(x) => LeadCreatedEventPartner$inboundSchema.parse(JSON.parse(x)),
|
|
686
|
+
`Failed to parse 'LeadCreatedEventPartner' from JSON`,
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/** @internal */
|
|
691
|
+
export const LeadCreatedEventType$inboundSchema: z.ZodNativeEnum<
|
|
692
|
+
typeof LeadCreatedEventType
|
|
693
|
+
> = z.nativeEnum(LeadCreatedEventType);
|
|
694
|
+
|
|
695
|
+
/** @internal */
|
|
696
|
+
export const LeadCreatedEventType$outboundSchema: z.ZodNativeEnum<
|
|
697
|
+
typeof LeadCreatedEventType
|
|
698
|
+
> = LeadCreatedEventType$inboundSchema;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @internal
|
|
702
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
703
|
+
*/
|
|
704
|
+
export namespace LeadCreatedEventType$ {
|
|
705
|
+
/** @deprecated use `LeadCreatedEventType$inboundSchema` instead. */
|
|
706
|
+
export const inboundSchema = LeadCreatedEventType$inboundSchema;
|
|
707
|
+
/** @deprecated use `LeadCreatedEventType$outboundSchema` instead. */
|
|
708
|
+
export const outboundSchema = LeadCreatedEventType$outboundSchema;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/** @internal */
|
|
712
|
+
export const LeadCreatedEventInterval$inboundSchema: z.ZodNativeEnum<
|
|
713
|
+
typeof LeadCreatedEventInterval
|
|
714
|
+
> = z.nativeEnum(LeadCreatedEventInterval);
|
|
715
|
+
|
|
716
|
+
/** @internal */
|
|
717
|
+
export const LeadCreatedEventInterval$outboundSchema: z.ZodNativeEnum<
|
|
718
|
+
typeof LeadCreatedEventInterval
|
|
719
|
+
> = LeadCreatedEventInterval$inboundSchema;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* @internal
|
|
723
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
724
|
+
*/
|
|
725
|
+
export namespace LeadCreatedEventInterval$ {
|
|
726
|
+
/** @deprecated use `LeadCreatedEventInterval$inboundSchema` instead. */
|
|
727
|
+
export const inboundSchema = LeadCreatedEventInterval$inboundSchema;
|
|
728
|
+
/** @deprecated use `LeadCreatedEventInterval$outboundSchema` instead. */
|
|
729
|
+
export const outboundSchema = LeadCreatedEventInterval$outboundSchema;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/** @internal */
|
|
733
|
+
export const LeadCreatedEventDiscount$inboundSchema: z.ZodType<
|
|
734
|
+
LeadCreatedEventDiscount,
|
|
735
|
+
z.ZodTypeDef,
|
|
736
|
+
unknown
|
|
737
|
+
> = z.object({
|
|
738
|
+
id: z.string(),
|
|
739
|
+
couponId: z.nullable(z.string()),
|
|
740
|
+
couponTestId: z.nullable(z.string()),
|
|
741
|
+
amount: z.number(),
|
|
742
|
+
type: LeadCreatedEventType$inboundSchema,
|
|
743
|
+
duration: z.nullable(z.number()),
|
|
744
|
+
interval: z.nullable(LeadCreatedEventInterval$inboundSchema),
|
|
745
|
+
});
|
|
746
|
+
|
|
747
|
+
/** @internal */
|
|
748
|
+
export type LeadCreatedEventDiscount$Outbound = {
|
|
749
|
+
id: string;
|
|
750
|
+
couponId: string | null;
|
|
751
|
+
couponTestId: string | null;
|
|
752
|
+
amount: number;
|
|
753
|
+
type: string;
|
|
754
|
+
duration: number | null;
|
|
755
|
+
interval: string | null;
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
/** @internal */
|
|
759
|
+
export const LeadCreatedEventDiscount$outboundSchema: z.ZodType<
|
|
760
|
+
LeadCreatedEventDiscount$Outbound,
|
|
761
|
+
z.ZodTypeDef,
|
|
762
|
+
LeadCreatedEventDiscount
|
|
763
|
+
> = z.object({
|
|
764
|
+
id: z.string(),
|
|
765
|
+
couponId: z.nullable(z.string()),
|
|
766
|
+
couponTestId: z.nullable(z.string()),
|
|
767
|
+
amount: z.number(),
|
|
768
|
+
type: LeadCreatedEventType$outboundSchema,
|
|
769
|
+
duration: z.nullable(z.number()),
|
|
770
|
+
interval: z.nullable(LeadCreatedEventInterval$outboundSchema),
|
|
771
|
+
});
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* @internal
|
|
775
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
776
|
+
*/
|
|
777
|
+
export namespace LeadCreatedEventDiscount$ {
|
|
778
|
+
/** @deprecated use `LeadCreatedEventDiscount$inboundSchema` instead. */
|
|
779
|
+
export const inboundSchema = LeadCreatedEventDiscount$inboundSchema;
|
|
780
|
+
/** @deprecated use `LeadCreatedEventDiscount$outboundSchema` instead. */
|
|
781
|
+
export const outboundSchema = LeadCreatedEventDiscount$outboundSchema;
|
|
782
|
+
/** @deprecated use `LeadCreatedEventDiscount$Outbound` instead. */
|
|
783
|
+
export type Outbound = LeadCreatedEventDiscount$Outbound;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export function leadCreatedEventDiscountToJSON(
|
|
787
|
+
leadCreatedEventDiscount: LeadCreatedEventDiscount,
|
|
788
|
+
): string {
|
|
789
|
+
return JSON.stringify(
|
|
790
|
+
LeadCreatedEventDiscount$outboundSchema.parse(leadCreatedEventDiscount),
|
|
791
|
+
);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export function leadCreatedEventDiscountFromJSON(
|
|
795
|
+
jsonString: string,
|
|
796
|
+
): SafeParseResult<LeadCreatedEventDiscount, SDKValidationError> {
|
|
797
|
+
return safeParse(
|
|
798
|
+
jsonString,
|
|
799
|
+
(x) => LeadCreatedEventDiscount$inboundSchema.parse(JSON.parse(x)),
|
|
800
|
+
`Failed to parse 'LeadCreatedEventDiscount' from JSON`,
|
|
801
|
+
);
|
|
802
|
+
}
|
|
803
|
+
|
|
500
804
|
/** @internal */
|
|
501
805
|
export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
502
806
|
LeadCreatedEventCustomer,
|
|
@@ -508,7 +812,14 @@ export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
|
508
812
|
name: z.string(),
|
|
509
813
|
email: z.nullable(z.string()).optional(),
|
|
510
814
|
avatar: z.nullable(z.string()).optional(),
|
|
815
|
+
country: z.nullable(z.string()).optional(),
|
|
511
816
|
createdAt: z.string(),
|
|
817
|
+
link: z.nullable(z.lazy(() => LeadCreatedEventDataLink$inboundSchema))
|
|
818
|
+
.optional(),
|
|
819
|
+
partner: z.nullable(z.lazy(() => LeadCreatedEventPartner$inboundSchema))
|
|
820
|
+
.optional(),
|
|
821
|
+
discount: z.nullable(z.lazy(() => LeadCreatedEventDiscount$inboundSchema))
|
|
822
|
+
.optional(),
|
|
512
823
|
});
|
|
513
824
|
|
|
514
825
|
/** @internal */
|
|
@@ -518,7 +829,11 @@ export type LeadCreatedEventCustomer$Outbound = {
|
|
|
518
829
|
name: string;
|
|
519
830
|
email?: string | null | undefined;
|
|
520
831
|
avatar?: string | null | undefined;
|
|
832
|
+
country?: string | null | undefined;
|
|
521
833
|
createdAt: string;
|
|
834
|
+
link?: LeadCreatedEventDataLink$Outbound | null | undefined;
|
|
835
|
+
partner?: LeadCreatedEventPartner$Outbound | null | undefined;
|
|
836
|
+
discount?: LeadCreatedEventDiscount$Outbound | null | undefined;
|
|
522
837
|
};
|
|
523
838
|
|
|
524
839
|
/** @internal */
|
|
@@ -532,7 +847,14 @@ export const LeadCreatedEventCustomer$outboundSchema: z.ZodType<
|
|
|
532
847
|
name: z.string(),
|
|
533
848
|
email: z.nullable(z.string()).optional(),
|
|
534
849
|
avatar: z.nullable(z.string()).optional(),
|
|
850
|
+
country: z.nullable(z.string()).optional(),
|
|
535
851
|
createdAt: z.string(),
|
|
852
|
+
link: z.nullable(z.lazy(() => LeadCreatedEventDataLink$outboundSchema))
|
|
853
|
+
.optional(),
|
|
854
|
+
partner: z.nullable(z.lazy(() => LeadCreatedEventPartner$outboundSchema))
|
|
855
|
+
.optional(),
|
|
856
|
+
discount: z.nullable(z.lazy(() => LeadCreatedEventDiscount$outboundSchema))
|
|
857
|
+
.optional(),
|
|
536
858
|
});
|
|
537
859
|
|
|
538
860
|
/**
|