dub 0.44.0 → 0.45.1
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 +31 -47
- package/dist/commonjs/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsRetrieve.js +9 -4
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/customersCreate.d.ts +16 -0
- package/dist/commonjs/funcs/customersCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersCreate.js +114 -0
- package/dist/commonjs/funcs/customersCreate.js.map +1 -0
- package/dist/commonjs/funcs/customersDelete.d.ts +16 -0
- package/dist/commonjs/funcs/customersDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersDelete.js +120 -0
- package/dist/commonjs/funcs/customersDelete.js.map +1 -0
- package/dist/commonjs/funcs/customersGet.d.ts +16 -0
- package/dist/commonjs/funcs/customersGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersGet.js +117 -0
- package/dist/commonjs/funcs/customersGet.js.map +1 -0
- package/dist/commonjs/funcs/customersList.d.ts +16 -0
- package/dist/commonjs/funcs/customersList.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersList.js +103 -0
- package/dist/commonjs/funcs/customersList.js.map +1 -0
- package/dist/commonjs/funcs/customersUpdate.d.ts +16 -0
- package/dist/commonjs/funcs/customersUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersUpdate.js +122 -0
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -0
- package/dist/commonjs/funcs/domainsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsCreate.js +8 -4
- package/dist/commonjs/funcs/domainsCreate.js.map +1 -1
- package/dist/commonjs/funcs/domainsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsDelete.js +8 -4
- package/dist/commonjs/funcs/domainsDelete.js.map +1 -1
- package/dist/commonjs/funcs/domainsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsList.js +8 -4
- package/dist/commonjs/funcs/domainsList.js.map +1 -1
- package/dist/commonjs/funcs/domainsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsUpdate.js +8 -4
- package/dist/commonjs/funcs/domainsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +9 -4
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/linksCount.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksCount.js +8 -4
- package/dist/commonjs/funcs/linksCount.js.map +1 -1
- package/dist/commonjs/funcs/linksCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksCreate.js +8 -4
- package/dist/commonjs/funcs/linksCreate.js.map +1 -1
- package/dist/commonjs/funcs/linksCreateMany.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksCreateMany.js +8 -4
- package/dist/commonjs/funcs/linksCreateMany.js.map +1 -1
- package/dist/commonjs/funcs/linksDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksDelete.js +8 -4
- package/dist/commonjs/funcs/linksDelete.js.map +1 -1
- package/dist/commonjs/funcs/linksDeleteMany.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksDeleteMany.js +8 -4
- package/dist/commonjs/funcs/linksDeleteMany.js.map +1 -1
- package/dist/commonjs/funcs/linksGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksGet.js +8 -4
- package/dist/commonjs/funcs/linksGet.js.map +1 -1
- package/dist/commonjs/funcs/linksList.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksList.js +8 -4
- package/dist/commonjs/funcs/linksList.js.map +1 -1
- package/dist/commonjs/funcs/linksUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksUpdate.js +8 -4
- package/dist/commonjs/funcs/linksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/linksUpdateMany.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksUpdateMany.js +8 -4
- package/dist/commonjs/funcs/linksUpdateMany.js.map +1 -1
- package/dist/commonjs/funcs/linksUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksUpsert.js +8 -4
- package/dist/commonjs/funcs/linksUpsert.js.map +1 -1
- package/dist/commonjs/funcs/metatagsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/metatagsGet.js +8 -4
- package/dist/commonjs/funcs/metatagsGet.js.map +1 -1
- package/dist/commonjs/funcs/qrCodesGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/qrCodesGet.js +8 -4
- package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
- package/dist/commonjs/funcs/tagsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsCreate.js +8 -4
- package/dist/commonjs/funcs/tagsCreate.js.map +1 -1
- package/dist/commonjs/funcs/tagsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsDelete.js +8 -4
- package/dist/commonjs/funcs/tagsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tagsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsList.js +8 -4
- package/dist/commonjs/funcs/tagsList.js.map +1 -1
- package/dist/commonjs/funcs/tagsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsUpdate.js +8 -4
- package/dist/commonjs/funcs/tagsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/trackCustomer.d.ts +2 -0
- package/dist/commonjs/funcs/trackCustomer.d.ts.map +1 -1
- package/dist/commonjs/funcs/trackCustomer.js +10 -4
- package/dist/commonjs/funcs/trackCustomer.js.map +1 -1
- package/dist/commonjs/funcs/trackLead.d.ts.map +1 -1
- package/dist/commonjs/funcs/trackLead.js +8 -4
- package/dist/commonjs/funcs/trackLead.js.map +1 -1
- package/dist/commonjs/funcs/trackSale.d.ts.map +1 -1
- package/dist/commonjs/funcs/trackSale.js +8 -4
- package/dist/commonjs/funcs/trackSale.js.map +1 -1
- package/dist/commonjs/funcs/workspacesGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/workspacesGet.js +8 -4
- package/dist/commonjs/funcs/workspacesGet.js.map +1 -1
- package/dist/commonjs/funcs/workspacesUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/workspacesUpdate.js +8 -4
- package/dist/commonjs/funcs/workspacesUpdate.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +4 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/primitives.d.ts +4 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -1
- package/dist/commonjs/lib/primitives.js +13 -1
- package/dist/commonjs/lib/primitives.js.map +1 -1
- package/dist/commonjs/lib/retries.d.ts +20 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -1
- package/dist/commonjs/lib/retries.js +51 -27
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +2 -2
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +14 -12
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +20 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +11 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +28 -6
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +10 -6
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +26 -4
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +8 -4
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +28 -6
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +10 -6
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +26 -4
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +8 -4
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/components/workspaceschema.d.ts +21 -1
- package/dist/commonjs/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/workspaceschema.js +8 -0
- package/dist/commonjs/models/components/workspaceschema.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +97 -0
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createcustomer.js +85 -0
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -0
- package/dist/commonjs/models/operations/deletecustomer.d.ts +57 -0
- package/dist/commonjs/models/operations/deletecustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletecustomer.js +69 -0
- package/dist/commonjs/models/operations/deletecustomer.js.map +1 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts +82 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcustomer.js +79 -0
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts +53 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcustomers.js +60 -0
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -0
- package/dist/commonjs/models/operations/getlinks.d.ts +1 -1
- package/dist/commonjs/models/operations/getlinkscount.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts +5 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +5 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +28 -1
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +18 -1
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +28 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +18 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/commonjs/models/operations/tracklead.d.ts +11 -4
- package/dist/commonjs/models/operations/tracklead.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tracklead.js +6 -4
- package/dist/commonjs/models/operations/tracklead.js.map +1 -1
- package/dist/commonjs/models/operations/tracksale.d.ts +11 -2
- package/dist/commonjs/models/operations/tracksale.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tracksale.js +6 -2
- package/dist/commonjs/models/operations/tracksale.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +125 -0
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatecustomer.js +116 -0
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -0
- package/dist/commonjs/sdk/customers.d.ts +40 -0
- package/dist/commonjs/sdk/customers.d.ts.map +1 -0
- package/dist/commonjs/sdk/customers.js +62 -0
- package/dist/commonjs/sdk/customers.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +7 -4
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +13 -8
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/track.d.ts +2 -0
- package/dist/commonjs/sdk/track.d.ts.map +1 -1
- package/dist/commonjs/sdk/track.js +2 -0
- package/dist/commonjs/sdk/track.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +9 -4
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/customersCreate.d.ts +16 -0
- package/dist/esm/funcs/customersCreate.d.ts.map +1 -0
- package/dist/esm/funcs/customersCreate.js +87 -0
- package/dist/esm/funcs/customersCreate.js.map +1 -0
- package/dist/esm/funcs/customersDelete.d.ts +16 -0
- package/dist/esm/funcs/customersDelete.d.ts.map +1 -0
- package/dist/esm/funcs/customersDelete.js +93 -0
- package/dist/esm/funcs/customersDelete.js.map +1 -0
- package/dist/esm/funcs/customersGet.d.ts +16 -0
- package/dist/esm/funcs/customersGet.d.ts.map +1 -0
- package/dist/esm/funcs/customersGet.js +90 -0
- package/dist/esm/funcs/customersGet.js.map +1 -0
- package/dist/esm/funcs/customersList.d.ts +16 -0
- package/dist/esm/funcs/customersList.d.ts.map +1 -0
- package/dist/esm/funcs/customersList.js +76 -0
- package/dist/esm/funcs/customersList.js.map +1 -0
- package/dist/esm/funcs/customersUpdate.d.ts +16 -0
- package/dist/esm/funcs/customersUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/customersUpdate.js +95 -0
- package/dist/esm/funcs/customersUpdate.js.map +1 -0
- package/dist/esm/funcs/domainsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/domainsCreate.js +8 -4
- package/dist/esm/funcs/domainsCreate.js.map +1 -1
- package/dist/esm/funcs/domainsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/domainsDelete.js +8 -4
- package/dist/esm/funcs/domainsDelete.js.map +1 -1
- package/dist/esm/funcs/domainsList.d.ts.map +1 -1
- package/dist/esm/funcs/domainsList.js +8 -4
- package/dist/esm/funcs/domainsList.js.map +1 -1
- package/dist/esm/funcs/domainsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/domainsUpdate.js +8 -4
- package/dist/esm/funcs/domainsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +9 -4
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/linksCount.d.ts.map +1 -1
- package/dist/esm/funcs/linksCount.js +8 -4
- package/dist/esm/funcs/linksCount.js.map +1 -1
- package/dist/esm/funcs/linksCreate.d.ts.map +1 -1
- package/dist/esm/funcs/linksCreate.js +8 -4
- package/dist/esm/funcs/linksCreate.js.map +1 -1
- package/dist/esm/funcs/linksCreateMany.d.ts.map +1 -1
- package/dist/esm/funcs/linksCreateMany.js +8 -4
- package/dist/esm/funcs/linksCreateMany.js.map +1 -1
- package/dist/esm/funcs/linksDelete.d.ts.map +1 -1
- package/dist/esm/funcs/linksDelete.js +8 -4
- package/dist/esm/funcs/linksDelete.js.map +1 -1
- package/dist/esm/funcs/linksDeleteMany.d.ts.map +1 -1
- package/dist/esm/funcs/linksDeleteMany.js +8 -4
- package/dist/esm/funcs/linksDeleteMany.js.map +1 -1
- package/dist/esm/funcs/linksGet.d.ts.map +1 -1
- package/dist/esm/funcs/linksGet.js +8 -4
- package/dist/esm/funcs/linksGet.js.map +1 -1
- package/dist/esm/funcs/linksList.d.ts.map +1 -1
- package/dist/esm/funcs/linksList.js +8 -4
- package/dist/esm/funcs/linksList.js.map +1 -1
- package/dist/esm/funcs/linksUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/linksUpdate.js +8 -4
- package/dist/esm/funcs/linksUpdate.js.map +1 -1
- package/dist/esm/funcs/linksUpdateMany.d.ts.map +1 -1
- package/dist/esm/funcs/linksUpdateMany.js +8 -4
- package/dist/esm/funcs/linksUpdateMany.js.map +1 -1
- package/dist/esm/funcs/linksUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/linksUpsert.js +8 -4
- package/dist/esm/funcs/linksUpsert.js.map +1 -1
- package/dist/esm/funcs/metatagsGet.d.ts.map +1 -1
- package/dist/esm/funcs/metatagsGet.js +8 -4
- package/dist/esm/funcs/metatagsGet.js.map +1 -1
- package/dist/esm/funcs/qrCodesGet.d.ts.map +1 -1
- package/dist/esm/funcs/qrCodesGet.js +8 -4
- package/dist/esm/funcs/qrCodesGet.js.map +1 -1
- package/dist/esm/funcs/tagsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/tagsCreate.js +8 -4
- package/dist/esm/funcs/tagsCreate.js.map +1 -1
- package/dist/esm/funcs/tagsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/tagsDelete.js +8 -4
- package/dist/esm/funcs/tagsDelete.js.map +1 -1
- package/dist/esm/funcs/tagsList.d.ts.map +1 -1
- package/dist/esm/funcs/tagsList.js +8 -4
- package/dist/esm/funcs/tagsList.js.map +1 -1
- package/dist/esm/funcs/tagsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/tagsUpdate.js +8 -4
- package/dist/esm/funcs/tagsUpdate.js.map +1 -1
- package/dist/esm/funcs/trackCustomer.d.ts +2 -0
- package/dist/esm/funcs/trackCustomer.d.ts.map +1 -1
- package/dist/esm/funcs/trackCustomer.js +10 -4
- package/dist/esm/funcs/trackCustomer.js.map +1 -1
- package/dist/esm/funcs/trackLead.d.ts.map +1 -1
- package/dist/esm/funcs/trackLead.js +8 -4
- package/dist/esm/funcs/trackLead.js.map +1 -1
- package/dist/esm/funcs/trackSale.d.ts.map +1 -1
- package/dist/esm/funcs/trackSale.js +8 -4
- package/dist/esm/funcs/trackSale.js.map +1 -1
- package/dist/esm/funcs/workspacesGet.d.ts.map +1 -1
- package/dist/esm/funcs/workspacesGet.js +8 -4
- package/dist/esm/funcs/workspacesGet.js.map +1 -1
- package/dist/esm/funcs/workspacesUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/workspacesUpdate.js +8 -4
- package/dist/esm/funcs/workspacesUpdate.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +4 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/primitives.d.ts +4 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -1
- package/dist/esm/lib/primitives.js +11 -0
- package/dist/esm/lib/primitives.js.map +1 -1
- package/dist/esm/lib/retries.d.ts +20 -0
- package/dist/esm/lib/retries.d.ts.map +1 -1
- package/dist/esm/lib/retries.js +50 -28
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +2 -2
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +14 -12
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +20 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +11 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +28 -6
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +10 -6
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +26 -4
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +8 -4
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +28 -6
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +10 -6
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +26 -4
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +8 -4
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/components/workspaceschema.d.ts +21 -1
- package/dist/esm/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/esm/models/components/workspaceschema.js +8 -0
- package/dist/esm/models/components/workspaceschema.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +97 -0
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/createcustomer.js +59 -0
- package/dist/esm/models/operations/createcustomer.js.map +1 -0
- package/dist/esm/models/operations/deletecustomer.d.ts +57 -0
- package/dist/esm/models/operations/deletecustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/deletecustomer.js +43 -0
- package/dist/esm/models/operations/deletecustomer.js.map +1 -0
- package/dist/esm/models/operations/getcustomer.d.ts +82 -0
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/getcustomer.js +53 -0
- package/dist/esm/models/operations/getcustomer.js.map +1 -0
- package/dist/esm/models/operations/getcustomers.d.ts +53 -0
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -0
- package/dist/esm/models/operations/getcustomers.js +34 -0
- package/dist/esm/models/operations/getcustomers.js.map +1 -0
- package/dist/esm/models/operations/getlinks.d.ts +1 -1
- package/dist/esm/models/operations/getlinkscount.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts +5 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +5 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +28 -1
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +17 -0
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +28 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +17 -0
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/models/operations/tracklead.d.ts +11 -4
- package/dist/esm/models/operations/tracklead.d.ts.map +1 -1
- package/dist/esm/models/operations/tracklead.js +6 -4
- package/dist/esm/models/operations/tracklead.js.map +1 -1
- package/dist/esm/models/operations/tracksale.d.ts +11 -2
- package/dist/esm/models/operations/tracksale.d.ts.map +1 -1
- package/dist/esm/models/operations/tracksale.js +6 -2
- package/dist/esm/models/operations/tracksale.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +125 -0
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/updatecustomer.js +90 -0
- package/dist/esm/models/operations/updatecustomer.js.map +1 -0
- package/dist/esm/sdk/customers.d.ts +40 -0
- package/dist/esm/sdk/customers.d.ts.map +1 -0
- package/dist/esm/sdk/customers.js +58 -0
- package/dist/esm/sdk/customers.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +7 -4
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +13 -8
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/track.d.ts +2 -0
- package/dist/esm/sdk/track.d.ts.map +1 -1
- package/dist/esm/sdk/track.js +2 -0
- package/dist/esm/sdk/track.js.map +1 -1
- package/docs/sdks/customers/README.md +421 -0
- package/docs/sdks/track/README.md +4 -2
- package/package.json +1 -1
- package/src/funcs/analyticsRetrieve.ts +12 -4
- package/src/funcs/customersCreate.ts +172 -0
- package/src/funcs/customersDelete.ts +177 -0
- package/src/funcs/customersGet.ts +173 -0
- package/src/funcs/customersList.ts +152 -0
- package/src/funcs/customersUpdate.ts +180 -0
- package/src/funcs/domainsCreate.ts +11 -4
- package/src/funcs/domainsDelete.ts +11 -4
- package/src/funcs/domainsList.ts +11 -4
- package/src/funcs/domainsUpdate.ts +11 -4
- package/src/funcs/eventsList.ts +12 -4
- package/src/funcs/linksCount.ts +11 -4
- package/src/funcs/linksCreate.ts +11 -4
- package/src/funcs/linksCreateMany.ts +11 -4
- package/src/funcs/linksDelete.ts +11 -4
- package/src/funcs/linksDeleteMany.ts +11 -4
- package/src/funcs/linksGet.ts +11 -4
- package/src/funcs/linksList.ts +11 -4
- package/src/funcs/linksUpdate.ts +11 -4
- package/src/funcs/linksUpdateMany.ts +11 -4
- package/src/funcs/linksUpsert.ts +11 -4
- package/src/funcs/metatagsGet.ts +11 -4
- package/src/funcs/qrCodesGet.ts +11 -4
- package/src/funcs/tagsCreate.ts +11 -4
- package/src/funcs/tagsDelete.ts +11 -4
- package/src/funcs/tagsList.ts +11 -4
- package/src/funcs/tagsUpdate.ts +11 -4
- package/src/funcs/trackCustomer.ts +13 -4
- package/src/funcs/trackLead.ts +11 -4
- package/src/funcs/trackSale.ts +11 -4
- package/src/funcs/workspacesGet.ts +11 -4
- package/src/funcs/workspacesUpdate.ts +11 -4
- package/src/hooks/types.ts +4 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/primitives.ts +20 -0
- package/src/lib/retries.ts +63 -31
- package/src/lib/sdks.ts +19 -15
- package/src/lib/security.ts +39 -3
- package/src/models/components/leadcreatedevent.ts +38 -12
- package/src/models/components/leadevent.ts +34 -8
- package/src/models/components/salecreatedevent.ts +38 -12
- package/src/models/components/saleevent.ts +34 -8
- package/src/models/components/workspaceschema.ts +29 -1
- package/src/models/operations/createcustomer.ts +150 -0
- package/src/models/operations/deletecustomer.ts +94 -0
- package/src/models/operations/getcustomer.ts +129 -0
- package/src/models/operations/getcustomers.ts +83 -0
- package/src/models/operations/getlinks.ts +1 -1
- package/src/models/operations/getlinkscount.ts +1 -1
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listevents.ts +43 -1
- package/src/models/operations/retrieveanalytics.ts +44 -1
- package/src/models/operations/tracklead.ts +17 -8
- package/src/models/operations/tracksale.ts +17 -4
- package/src/models/operations/updatecustomer.ts +207 -0
- package/src/sdk/customers.ts +99 -0
- package/src/sdk/sdk.ts +16 -10
- package/src/sdk/track.ts +2 -0
package/src/lib/sdks.ts
CHANGED
|
@@ -220,8 +220,8 @@ export class ClientSDK {
|
|
|
220
220
|
options: {
|
|
221
221
|
context: HookContext;
|
|
222
222
|
errorCodes: number | string | (number | string)[];
|
|
223
|
-
retryConfig
|
|
224
|
-
retryCodes
|
|
223
|
+
retryConfig: RetryConfig;
|
|
224
|
+
retryCodes: string[];
|
|
225
225
|
},
|
|
226
226
|
): Promise<
|
|
227
227
|
Result<
|
|
@@ -233,8 +233,6 @@ export class ClientSDK {
|
|
|
233
233
|
>
|
|
234
234
|
> {
|
|
235
235
|
const { context, errorCodes } = options;
|
|
236
|
-
const retryConfig = options.retryConfig || { strategy: "none" };
|
|
237
|
-
const retryCodes = options.retryCodes || [];
|
|
238
236
|
|
|
239
237
|
return retry(
|
|
240
238
|
async () => {
|
|
@@ -245,22 +243,28 @@ export class ClientSDK {
|
|
|
245
243
|
|
|
246
244
|
let response = await this.#httpClient.request(req);
|
|
247
245
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
try {
|
|
247
|
+
if (matchStatusCode(response, errorCodes)) {
|
|
248
|
+
const result = await this.#hooks.afterError(
|
|
249
|
+
context,
|
|
250
|
+
response,
|
|
251
|
+
null,
|
|
252
|
+
);
|
|
253
|
+
if (result.error) {
|
|
254
|
+
throw result.error;
|
|
255
|
+
}
|
|
256
|
+
response = result.response || response;
|
|
257
|
+
} else {
|
|
258
|
+
response = await this.#hooks.afterSuccess(context, response);
|
|
252
259
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
260
|
+
} finally {
|
|
261
|
+
await logResponse(this.#logger, response, req)
|
|
262
|
+
.catch(e => this.#logger?.log("Failed to log response:", e));
|
|
256
263
|
}
|
|
257
264
|
|
|
258
|
-
await logResponse(this.#logger, response, req)
|
|
259
|
-
.catch(e => this.#logger?.log("Failed to log response:", e));
|
|
260
|
-
|
|
261
265
|
return response;
|
|
262
266
|
},
|
|
263
|
-
{ config: retryConfig, statusCodes: retryCodes },
|
|
267
|
+
{ config: options.retryConfig, statusCodes: options.retryCodes },
|
|
264
268
|
).then(
|
|
265
269
|
(r) => OK(r),
|
|
266
270
|
(err) => {
|
package/src/lib/security.ts
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import * as components from "../models/components/index.js";
|
|
6
6
|
|
|
7
|
+
type OAuth2PasswordFlow = {
|
|
8
|
+
username: string;
|
|
9
|
+
password?: string | undefined;
|
|
10
|
+
clientID: string;
|
|
11
|
+
clientSecret?: string | undefined;
|
|
12
|
+
tokenURL: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
7
15
|
export enum SecurityErrorCode {
|
|
8
16
|
Incomplete = "incomplete",
|
|
9
17
|
UnrecognisedSecurityType = "unrecognized_security_type",
|
|
@@ -37,6 +45,7 @@ export type SecurityState = {
|
|
|
37
45
|
headers: Record<string, string>;
|
|
38
46
|
queryParams: Record<string, string>;
|
|
39
47
|
cookies: Record<string, string>;
|
|
48
|
+
oauth2: ({ type: "password" } & OAuth2PasswordFlow) | { type: "none" };
|
|
40
49
|
};
|
|
41
50
|
|
|
42
51
|
type SecurityInputBasic = {
|
|
@@ -73,7 +82,18 @@ type SecurityInputOAuth2 = {
|
|
|
73
82
|
|
|
74
83
|
type SecurityInputOAuth2ClientCredentials = {
|
|
75
84
|
type: "oauth2:client_credentials";
|
|
76
|
-
value:
|
|
85
|
+
value:
|
|
86
|
+
| { clientID?: string | undefined; clientSecret?: string | undefined }
|
|
87
|
+
| null
|
|
88
|
+
| undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
type SecurityInputOAuth2PasswordCredentials = {
|
|
92
|
+
type: "oauth2:password";
|
|
93
|
+
value:
|
|
94
|
+
| string
|
|
95
|
+
| null
|
|
96
|
+
| undefined;
|
|
77
97
|
fieldName: string;
|
|
78
98
|
};
|
|
79
99
|
|
|
@@ -89,6 +109,7 @@ export type SecurityInput =
|
|
|
89
109
|
| SecurityInputAPIKey
|
|
90
110
|
| SecurityInputOAuth2
|
|
91
111
|
| SecurityInputOAuth2ClientCredentials
|
|
112
|
+
| SecurityInputOAuth2PasswordCredentials
|
|
92
113
|
| SecurityInputOIDC
|
|
93
114
|
| SecurityInputCustom;
|
|
94
115
|
|
|
@@ -100,6 +121,7 @@ export function resolveSecurity(
|
|
|
100
121
|
headers: {},
|
|
101
122
|
queryParams: {},
|
|
102
123
|
cookies: {},
|
|
124
|
+
oauth2: { type: "none" },
|
|
103
125
|
};
|
|
104
126
|
|
|
105
127
|
const option = options.find((opts) => {
|
|
@@ -110,6 +132,12 @@ export function resolveSecurity(
|
|
|
110
132
|
return o.value.username != null || o.value.password != null;
|
|
111
133
|
} else if (o.type === "http:custom") {
|
|
112
134
|
return null;
|
|
135
|
+
} else if (o.type === "oauth2:password") {
|
|
136
|
+
return (
|
|
137
|
+
typeof o.value === "string" && !!o.value
|
|
138
|
+
);
|
|
139
|
+
} else if (o.type === "oauth2:client_credentials") {
|
|
140
|
+
return o.value.clientID != null || o.value.clientSecret != null;
|
|
113
141
|
} else if (typeof o.value === "string") {
|
|
114
142
|
return !!o.value;
|
|
115
143
|
} else {
|
|
@@ -152,6 +180,9 @@ export function resolveSecurity(
|
|
|
152
180
|
case "oauth2":
|
|
153
181
|
applyBearer(state, spec);
|
|
154
182
|
break;
|
|
183
|
+
case "oauth2:password":
|
|
184
|
+
applyBearer(state, spec);
|
|
185
|
+
break;
|
|
155
186
|
case "oauth2:client_credentials":
|
|
156
187
|
break;
|
|
157
188
|
case "openIdConnect":
|
|
@@ -179,9 +210,13 @@ function applyBasic(
|
|
|
179
210
|
|
|
180
211
|
function applyBearer(
|
|
181
212
|
state: SecurityState,
|
|
182
|
-
spec:
|
|
213
|
+
spec:
|
|
214
|
+
| SecurityInputBearer
|
|
215
|
+
| SecurityInputOAuth2
|
|
216
|
+
| SecurityInputOIDC
|
|
217
|
+
| SecurityInputOAuth2PasswordCredentials,
|
|
183
218
|
) {
|
|
184
|
-
if (spec.value
|
|
219
|
+
if (typeof spec.value !== "string" || !spec.value) {
|
|
185
220
|
return;
|
|
186
221
|
}
|
|
187
222
|
|
|
@@ -192,6 +227,7 @@ function applyBearer(
|
|
|
192
227
|
|
|
193
228
|
state.headers[spec.fieldName] = value;
|
|
194
229
|
}
|
|
230
|
+
|
|
195
231
|
export function resolveGlobalSecurity(
|
|
196
232
|
security: Partial<components.Security> | null | undefined,
|
|
197
233
|
): SecurityState | null {
|
|
@@ -18,10 +18,30 @@ export const LeadCreatedEventEvent = {
|
|
|
18
18
|
export type LeadCreatedEventEvent = ClosedEnum<typeof LeadCreatedEventEvent>;
|
|
19
19
|
|
|
20
20
|
export type LeadCreatedEventCustomer = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier of the customer in Dub.
|
|
23
|
+
*/
|
|
21
24
|
id: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the customer in the client's app.
|
|
27
|
+
*/
|
|
28
|
+
externalId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the customer.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Email of the customer.
|
|
35
|
+
*/
|
|
36
|
+
email?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Avatar URL of the customer.
|
|
39
|
+
*/
|
|
40
|
+
avatar?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The date the customer was created.
|
|
43
|
+
*/
|
|
44
|
+
createdAt: string;
|
|
25
45
|
};
|
|
26
46
|
|
|
27
47
|
export type LeadCreatedEventClick = {
|
|
@@ -483,17 +503,21 @@ export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
|
483
503
|
unknown
|
|
484
504
|
> = z.object({
|
|
485
505
|
id: z.string(),
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
506
|
+
externalId: z.string(),
|
|
507
|
+
name: z.string(),
|
|
508
|
+
email: z.nullable(z.string()).optional(),
|
|
509
|
+
avatar: z.nullable(z.string()).optional(),
|
|
510
|
+
createdAt: z.string(),
|
|
489
511
|
});
|
|
490
512
|
|
|
491
513
|
/** @internal */
|
|
492
514
|
export type LeadCreatedEventCustomer$Outbound = {
|
|
493
515
|
id: string;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
516
|
+
externalId: string;
|
|
517
|
+
name: string;
|
|
518
|
+
email?: string | null | undefined;
|
|
519
|
+
avatar?: string | null | undefined;
|
|
520
|
+
createdAt: string;
|
|
497
521
|
};
|
|
498
522
|
|
|
499
523
|
/** @internal */
|
|
@@ -503,9 +527,11 @@ export const LeadCreatedEventCustomer$outboundSchema: z.ZodType<
|
|
|
503
527
|
LeadCreatedEventCustomer
|
|
504
528
|
> = z.object({
|
|
505
529
|
id: z.string(),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
530
|
+
externalId: z.string(),
|
|
531
|
+
name: z.string(),
|
|
532
|
+
email: z.nullable(z.string()).optional(),
|
|
533
|
+
avatar: z.nullable(z.string()).optional(),
|
|
534
|
+
createdAt: z.string(),
|
|
509
535
|
});
|
|
510
536
|
|
|
511
537
|
/**
|
|
@@ -432,10 +432,30 @@ export type LeadEventLink = {
|
|
|
432
432
|
};
|
|
433
433
|
|
|
434
434
|
export type Customer = {
|
|
435
|
+
/**
|
|
436
|
+
* The unique identifier of the customer in Dub.
|
|
437
|
+
*/
|
|
435
438
|
id: string;
|
|
439
|
+
/**
|
|
440
|
+
* Unique identifier for the customer in the client's app.
|
|
441
|
+
*/
|
|
442
|
+
externalId: string;
|
|
443
|
+
/**
|
|
444
|
+
* Name of the customer.
|
|
445
|
+
*/
|
|
436
446
|
name: string;
|
|
437
|
-
|
|
438
|
-
|
|
447
|
+
/**
|
|
448
|
+
* Email of the customer.
|
|
449
|
+
*/
|
|
450
|
+
email?: string | null | undefined;
|
|
451
|
+
/**
|
|
452
|
+
* Avatar URL of the customer.
|
|
453
|
+
*/
|
|
454
|
+
avatar?: string | null | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* The date the customer was created.
|
|
457
|
+
*/
|
|
458
|
+
createdAt: string;
|
|
439
459
|
};
|
|
440
460
|
|
|
441
461
|
export type LeadEvent = {
|
|
@@ -2090,17 +2110,21 @@ export const Customer$inboundSchema: z.ZodType<
|
|
|
2090
2110
|
unknown
|
|
2091
2111
|
> = z.object({
|
|
2092
2112
|
id: z.string(),
|
|
2113
|
+
externalId: z.string(),
|
|
2093
2114
|
name: z.string(),
|
|
2094
|
-
email: z.string(),
|
|
2095
|
-
avatar: z.string(),
|
|
2115
|
+
email: z.nullable(z.string()).optional(),
|
|
2116
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2117
|
+
createdAt: z.string(),
|
|
2096
2118
|
});
|
|
2097
2119
|
|
|
2098
2120
|
/** @internal */
|
|
2099
2121
|
export type Customer$Outbound = {
|
|
2100
2122
|
id: string;
|
|
2123
|
+
externalId: string;
|
|
2101
2124
|
name: string;
|
|
2102
|
-
email
|
|
2103
|
-
avatar
|
|
2125
|
+
email?: string | null | undefined;
|
|
2126
|
+
avatar?: string | null | undefined;
|
|
2127
|
+
createdAt: string;
|
|
2104
2128
|
};
|
|
2105
2129
|
|
|
2106
2130
|
/** @internal */
|
|
@@ -2110,9 +2134,11 @@ export const Customer$outboundSchema: z.ZodType<
|
|
|
2110
2134
|
Customer
|
|
2111
2135
|
> = z.object({
|
|
2112
2136
|
id: z.string(),
|
|
2137
|
+
externalId: z.string(),
|
|
2113
2138
|
name: z.string(),
|
|
2114
|
-
email: z.string(),
|
|
2115
|
-
avatar: z.string(),
|
|
2139
|
+
email: z.nullable(z.string()).optional(),
|
|
2140
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2141
|
+
createdAt: z.string(),
|
|
2116
2142
|
});
|
|
2117
2143
|
|
|
2118
2144
|
/**
|
|
@@ -18,10 +18,30 @@ export const SaleCreatedEventEvent = {
|
|
|
18
18
|
export type SaleCreatedEventEvent = ClosedEnum<typeof SaleCreatedEventEvent>;
|
|
19
19
|
|
|
20
20
|
export type SaleCreatedEventCustomer = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier of the customer in Dub.
|
|
23
|
+
*/
|
|
21
24
|
id: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the customer in the client's app.
|
|
27
|
+
*/
|
|
28
|
+
externalId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the customer.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Email of the customer.
|
|
35
|
+
*/
|
|
36
|
+
email?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Avatar URL of the customer.
|
|
39
|
+
*/
|
|
40
|
+
avatar?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The date the customer was created.
|
|
43
|
+
*/
|
|
44
|
+
createdAt: string;
|
|
25
45
|
};
|
|
26
46
|
|
|
27
47
|
export type SaleCreatedEventClick = {
|
|
@@ -491,17 +511,21 @@ export const SaleCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
|
491
511
|
unknown
|
|
492
512
|
> = z.object({
|
|
493
513
|
id: z.string(),
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
514
|
+
externalId: z.string(),
|
|
515
|
+
name: z.string(),
|
|
516
|
+
email: z.nullable(z.string()).optional(),
|
|
517
|
+
avatar: z.nullable(z.string()).optional(),
|
|
518
|
+
createdAt: z.string(),
|
|
497
519
|
});
|
|
498
520
|
|
|
499
521
|
/** @internal */
|
|
500
522
|
export type SaleCreatedEventCustomer$Outbound = {
|
|
501
523
|
id: string;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
524
|
+
externalId: string;
|
|
525
|
+
name: string;
|
|
526
|
+
email?: string | null | undefined;
|
|
527
|
+
avatar?: string | null | undefined;
|
|
528
|
+
createdAt: string;
|
|
505
529
|
};
|
|
506
530
|
|
|
507
531
|
/** @internal */
|
|
@@ -511,9 +535,11 @@ export const SaleCreatedEventCustomer$outboundSchema: z.ZodType<
|
|
|
511
535
|
SaleCreatedEventCustomer
|
|
512
536
|
> = z.object({
|
|
513
537
|
id: z.string(),
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
538
|
+
externalId: z.string(),
|
|
539
|
+
name: z.string(),
|
|
540
|
+
email: z.nullable(z.string()).optional(),
|
|
541
|
+
avatar: z.nullable(z.string()).optional(),
|
|
542
|
+
createdAt: z.string(),
|
|
517
543
|
});
|
|
518
544
|
|
|
519
545
|
/**
|
|
@@ -432,10 +432,30 @@ export type SaleEventClick = {
|
|
|
432
432
|
};
|
|
433
433
|
|
|
434
434
|
export type SaleEventCustomer = {
|
|
435
|
+
/**
|
|
436
|
+
* The unique identifier of the customer in Dub.
|
|
437
|
+
*/
|
|
435
438
|
id: string;
|
|
439
|
+
/**
|
|
440
|
+
* Unique identifier for the customer in the client's app.
|
|
441
|
+
*/
|
|
442
|
+
externalId: string;
|
|
443
|
+
/**
|
|
444
|
+
* Name of the customer.
|
|
445
|
+
*/
|
|
436
446
|
name: string;
|
|
437
|
-
|
|
438
|
-
|
|
447
|
+
/**
|
|
448
|
+
* Email of the customer.
|
|
449
|
+
*/
|
|
450
|
+
email?: string | null | undefined;
|
|
451
|
+
/**
|
|
452
|
+
* Avatar URL of the customer.
|
|
453
|
+
*/
|
|
454
|
+
avatar?: string | null | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* The date the customer was created.
|
|
457
|
+
*/
|
|
458
|
+
createdAt: string;
|
|
439
459
|
};
|
|
440
460
|
|
|
441
461
|
/**
|
|
@@ -2135,17 +2155,21 @@ export const SaleEventCustomer$inboundSchema: z.ZodType<
|
|
|
2135
2155
|
unknown
|
|
2136
2156
|
> = z.object({
|
|
2137
2157
|
id: z.string(),
|
|
2158
|
+
externalId: z.string(),
|
|
2138
2159
|
name: z.string(),
|
|
2139
|
-
email: z.string(),
|
|
2140
|
-
avatar: z.string(),
|
|
2160
|
+
email: z.nullable(z.string()).optional(),
|
|
2161
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2162
|
+
createdAt: z.string(),
|
|
2141
2163
|
});
|
|
2142
2164
|
|
|
2143
2165
|
/** @internal */
|
|
2144
2166
|
export type SaleEventCustomer$Outbound = {
|
|
2145
2167
|
id: string;
|
|
2168
|
+
externalId: string;
|
|
2146
2169
|
name: string;
|
|
2147
|
-
email
|
|
2148
|
-
avatar
|
|
2170
|
+
email?: string | null | undefined;
|
|
2171
|
+
avatar?: string | null | undefined;
|
|
2172
|
+
createdAt: string;
|
|
2149
2173
|
};
|
|
2150
2174
|
|
|
2151
2175
|
/** @internal */
|
|
@@ -2155,9 +2179,11 @@ export const SaleEventCustomer$outboundSchema: z.ZodType<
|
|
|
2155
2179
|
SaleEventCustomer
|
|
2156
2180
|
> = z.object({
|
|
2157
2181
|
id: z.string(),
|
|
2182
|
+
externalId: z.string(),
|
|
2158
2183
|
name: z.string(),
|
|
2159
|
-
email: z.string(),
|
|
2160
|
-
avatar: z.string(),
|
|
2184
|
+
email: z.nullable(z.string()).optional(),
|
|
2185
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2186
|
+
createdAt: z.string(),
|
|
2161
2187
|
});
|
|
2162
2188
|
|
|
2163
2189
|
/**
|
|
@@ -94,7 +94,7 @@ export type WorkspaceSchema = {
|
|
|
94
94
|
*/
|
|
95
95
|
paymentFailedAt: string | null;
|
|
96
96
|
/**
|
|
97
|
-
* [BETA]: The Stripe Connect ID of the workspace.
|
|
97
|
+
* [BETA – Dub Conversions]: The Stripe Connect ID of the workspace.
|
|
98
98
|
*/
|
|
99
99
|
stripeConnectId: string | null;
|
|
100
100
|
/**
|
|
@@ -173,6 +173,22 @@ export type WorkspaceSchema = {
|
|
|
173
173
|
* The publishable key of the workspace.
|
|
174
174
|
*/
|
|
175
175
|
publishableKey: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* [BETA – Dub Partners]: The name of the connected bank account.
|
|
178
|
+
*/
|
|
179
|
+
bankAccountName: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* [BETA – Dub Partners]: The partial account number of the bank account.
|
|
182
|
+
*/
|
|
183
|
+
partialAccountNumber: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* [BETA – Dub Partners]: The routing number of the bank account.
|
|
186
|
+
*/
|
|
187
|
+
routingNumber: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* [BETA – Dub Partners]: Whether the bank account is verified.
|
|
190
|
+
*/
|
|
191
|
+
bankAccountVerified: boolean;
|
|
176
192
|
};
|
|
177
193
|
|
|
178
194
|
/** @internal */
|
|
@@ -322,6 +338,10 @@ export const WorkspaceSchema$inboundSchema: z.ZodType<
|
|
|
322
338
|
domains: z.array(z.lazy(() => Domains$inboundSchema)),
|
|
323
339
|
flags: z.record(z.boolean()).optional(),
|
|
324
340
|
publishableKey: z.nullable(z.string()),
|
|
341
|
+
bankAccountName: z.nullable(z.string()),
|
|
342
|
+
partialAccountNumber: z.nullable(z.string()),
|
|
343
|
+
routingNumber: z.nullable(z.string()),
|
|
344
|
+
bankAccountVerified: z.boolean(),
|
|
325
345
|
});
|
|
326
346
|
|
|
327
347
|
/** @internal */
|
|
@@ -355,6 +375,10 @@ export type WorkspaceSchema$Outbound = {
|
|
|
355
375
|
domains: Array<Domains$Outbound>;
|
|
356
376
|
flags?: { [k: string]: boolean } | undefined;
|
|
357
377
|
publishableKey: string | null;
|
|
378
|
+
bankAccountName: string | null;
|
|
379
|
+
partialAccountNumber: string | null;
|
|
380
|
+
routingNumber: string | null;
|
|
381
|
+
bankAccountVerified: boolean;
|
|
358
382
|
};
|
|
359
383
|
|
|
360
384
|
/** @internal */
|
|
@@ -392,6 +416,10 @@ export const WorkspaceSchema$outboundSchema: z.ZodType<
|
|
|
392
416
|
domains: z.array(z.lazy(() => Domains$outboundSchema)),
|
|
393
417
|
flags: z.record(z.boolean()).optional(),
|
|
394
418
|
publishableKey: z.nullable(z.string()),
|
|
419
|
+
bankAccountName: z.nullable(z.string()),
|
|
420
|
+
partialAccountNumber: z.nullable(z.string()),
|
|
421
|
+
routingNumber: z.nullable(z.string()),
|
|
422
|
+
bankAccountVerified: z.boolean(),
|
|
395
423
|
});
|
|
396
424
|
|
|
397
425
|
/**
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type CreateCustomerRequestBody = {
|
|
8
|
+
/**
|
|
9
|
+
* Email of the customer in the client's app.
|
|
10
|
+
*/
|
|
11
|
+
email?: string | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Name of the customer in the client's app. If not provided, a random name will be generated.
|
|
14
|
+
*/
|
|
15
|
+
name?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Avatar URL of the customer in the client's app.
|
|
18
|
+
*/
|
|
19
|
+
avatar?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the customer in the client's app.
|
|
22
|
+
*/
|
|
23
|
+
externalId: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The customer was created.
|
|
28
|
+
*/
|
|
29
|
+
export type CreateCustomerResponseBody = {
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier of the customer in Dub.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the customer in the client's app.
|
|
36
|
+
*/
|
|
37
|
+
externalId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the customer.
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Email of the customer.
|
|
44
|
+
*/
|
|
45
|
+
email?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Avatar URL of the customer.
|
|
48
|
+
*/
|
|
49
|
+
avatar?: string | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The date the customer was created.
|
|
52
|
+
*/
|
|
53
|
+
createdAt: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const CreateCustomerRequestBody$inboundSchema: z.ZodType<
|
|
58
|
+
CreateCustomerRequestBody,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
unknown
|
|
61
|
+
> = z.object({
|
|
62
|
+
email: z.nullable(z.string()).optional(),
|
|
63
|
+
name: z.nullable(z.string()).optional(),
|
|
64
|
+
avatar: z.nullable(z.string()).optional(),
|
|
65
|
+
externalId: z.string(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type CreateCustomerRequestBody$Outbound = {
|
|
70
|
+
email?: string | null | undefined;
|
|
71
|
+
name?: string | null | undefined;
|
|
72
|
+
avatar?: string | null | undefined;
|
|
73
|
+
externalId: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const CreateCustomerRequestBody$outboundSchema: z.ZodType<
|
|
78
|
+
CreateCustomerRequestBody$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
CreateCustomerRequestBody
|
|
81
|
+
> = z.object({
|
|
82
|
+
email: z.nullable(z.string()).optional(),
|
|
83
|
+
name: z.nullable(z.string()).optional(),
|
|
84
|
+
avatar: z.nullable(z.string()).optional(),
|
|
85
|
+
externalId: z.string(),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
+
*/
|
|
92
|
+
export namespace CreateCustomerRequestBody$ {
|
|
93
|
+
/** @deprecated use `CreateCustomerRequestBody$inboundSchema` instead. */
|
|
94
|
+
export const inboundSchema = CreateCustomerRequestBody$inboundSchema;
|
|
95
|
+
/** @deprecated use `CreateCustomerRequestBody$outboundSchema` instead. */
|
|
96
|
+
export const outboundSchema = CreateCustomerRequestBody$outboundSchema;
|
|
97
|
+
/** @deprecated use `CreateCustomerRequestBody$Outbound` instead. */
|
|
98
|
+
export type Outbound = CreateCustomerRequestBody$Outbound;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const CreateCustomerResponseBody$inboundSchema: z.ZodType<
|
|
103
|
+
CreateCustomerResponseBody,
|
|
104
|
+
z.ZodTypeDef,
|
|
105
|
+
unknown
|
|
106
|
+
> = z.object({
|
|
107
|
+
id: z.string(),
|
|
108
|
+
externalId: z.string(),
|
|
109
|
+
name: z.string(),
|
|
110
|
+
email: z.nullable(z.string()).optional(),
|
|
111
|
+
avatar: z.nullable(z.string()).optional(),
|
|
112
|
+
createdAt: z.string(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export type CreateCustomerResponseBody$Outbound = {
|
|
117
|
+
id: string;
|
|
118
|
+
externalId: string;
|
|
119
|
+
name: string;
|
|
120
|
+
email?: string | null | undefined;
|
|
121
|
+
avatar?: string | null | undefined;
|
|
122
|
+
createdAt: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const CreateCustomerResponseBody$outboundSchema: z.ZodType<
|
|
127
|
+
CreateCustomerResponseBody$Outbound,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
CreateCustomerResponseBody
|
|
130
|
+
> = z.object({
|
|
131
|
+
id: z.string(),
|
|
132
|
+
externalId: z.string(),
|
|
133
|
+
name: z.string(),
|
|
134
|
+
email: z.nullable(z.string()).optional(),
|
|
135
|
+
avatar: z.nullable(z.string()).optional(),
|
|
136
|
+
createdAt: z.string(),
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
|
+
*/
|
|
143
|
+
export namespace CreateCustomerResponseBody$ {
|
|
144
|
+
/** @deprecated use `CreateCustomerResponseBody$inboundSchema` instead. */
|
|
145
|
+
export const inboundSchema = CreateCustomerResponseBody$inboundSchema;
|
|
146
|
+
/** @deprecated use `CreateCustomerResponseBody$outboundSchema` instead. */
|
|
147
|
+
export const outboundSchema = CreateCustomerResponseBody$outboundSchema;
|
|
148
|
+
/** @deprecated use `CreateCustomerResponseBody$Outbound` instead. */
|
|
149
|
+
export type Outbound = CreateCustomerResponseBody$Outbound;
|
|
150
|
+
}
|