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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type DeleteCustomerRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the customer in Dub.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The customer was deleted.
|
|
16
|
+
*/
|
|
17
|
+
export type DeleteCustomerResponseBody = {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier of the customer in Dub.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const DeleteCustomerRequest$inboundSchema: z.ZodType<
|
|
26
|
+
DeleteCustomerRequest,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
id: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type DeleteCustomerRequest$Outbound = {
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const DeleteCustomerRequest$outboundSchema: z.ZodType<
|
|
40
|
+
DeleteCustomerRequest$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
DeleteCustomerRequest
|
|
43
|
+
> = z.object({
|
|
44
|
+
id: z.string(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace DeleteCustomerRequest$ {
|
|
52
|
+
/** @deprecated use `DeleteCustomerRequest$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = DeleteCustomerRequest$inboundSchema;
|
|
54
|
+
/** @deprecated use `DeleteCustomerRequest$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = DeleteCustomerRequest$outboundSchema;
|
|
56
|
+
/** @deprecated use `DeleteCustomerRequest$Outbound` instead. */
|
|
57
|
+
export type Outbound = DeleteCustomerRequest$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const DeleteCustomerResponseBody$inboundSchema: z.ZodType<
|
|
62
|
+
DeleteCustomerResponseBody,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
id: z.string(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type DeleteCustomerResponseBody$Outbound = {
|
|
71
|
+
id: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const DeleteCustomerResponseBody$outboundSchema: z.ZodType<
|
|
76
|
+
DeleteCustomerResponseBody$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
DeleteCustomerResponseBody
|
|
79
|
+
> = z.object({
|
|
80
|
+
id: z.string(),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace DeleteCustomerResponseBody$ {
|
|
88
|
+
/** @deprecated use `DeleteCustomerResponseBody$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = DeleteCustomerResponseBody$inboundSchema;
|
|
90
|
+
/** @deprecated use `DeleteCustomerResponseBody$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = DeleteCustomerResponseBody$outboundSchema;
|
|
92
|
+
/** @deprecated use `DeleteCustomerResponseBody$Outbound` instead. */
|
|
93
|
+
export type Outbound = DeleteCustomerResponseBody$Outbound;
|
|
94
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type GetCustomerRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the customer in Dub.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The customer object.
|
|
16
|
+
*/
|
|
17
|
+
export type GetCustomerResponseBody = {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier of the customer in Dub.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the customer in the client's app.
|
|
24
|
+
*/
|
|
25
|
+
externalId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Name of the customer.
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Email of the customer.
|
|
32
|
+
*/
|
|
33
|
+
email?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Avatar URL of the customer.
|
|
36
|
+
*/
|
|
37
|
+
avatar?: string | null | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The date the customer was created.
|
|
40
|
+
*/
|
|
41
|
+
createdAt: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const GetCustomerRequest$inboundSchema: z.ZodType<
|
|
46
|
+
GetCustomerRequest,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
id: z.string(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type GetCustomerRequest$Outbound = {
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const GetCustomerRequest$outboundSchema: z.ZodType<
|
|
60
|
+
GetCustomerRequest$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
GetCustomerRequest
|
|
63
|
+
> = z.object({
|
|
64
|
+
id: z.string(),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
export namespace GetCustomerRequest$ {
|
|
72
|
+
/** @deprecated use `GetCustomerRequest$inboundSchema` instead. */
|
|
73
|
+
export const inboundSchema = GetCustomerRequest$inboundSchema;
|
|
74
|
+
/** @deprecated use `GetCustomerRequest$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema = GetCustomerRequest$outboundSchema;
|
|
76
|
+
/** @deprecated use `GetCustomerRequest$Outbound` instead. */
|
|
77
|
+
export type Outbound = GetCustomerRequest$Outbound;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const GetCustomerResponseBody$inboundSchema: z.ZodType<
|
|
82
|
+
GetCustomerResponseBody,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
id: z.string(),
|
|
87
|
+
externalId: z.string(),
|
|
88
|
+
name: z.string(),
|
|
89
|
+
email: z.nullable(z.string()).optional(),
|
|
90
|
+
avatar: z.nullable(z.string()).optional(),
|
|
91
|
+
createdAt: z.string(),
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type GetCustomerResponseBody$Outbound = {
|
|
96
|
+
id: string;
|
|
97
|
+
externalId: string;
|
|
98
|
+
name: string;
|
|
99
|
+
email?: string | null | undefined;
|
|
100
|
+
avatar?: string | null | undefined;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const GetCustomerResponseBody$outboundSchema: z.ZodType<
|
|
106
|
+
GetCustomerResponseBody$Outbound,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
GetCustomerResponseBody
|
|
109
|
+
> = z.object({
|
|
110
|
+
id: z.string(),
|
|
111
|
+
externalId: z.string(),
|
|
112
|
+
name: z.string(),
|
|
113
|
+
email: z.nullable(z.string()).optional(),
|
|
114
|
+
avatar: z.nullable(z.string()).optional(),
|
|
115
|
+
createdAt: z.string(),
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
121
|
+
*/
|
|
122
|
+
export namespace GetCustomerResponseBody$ {
|
|
123
|
+
/** @deprecated use `GetCustomerResponseBody$inboundSchema` instead. */
|
|
124
|
+
export const inboundSchema = GetCustomerResponseBody$inboundSchema;
|
|
125
|
+
/** @deprecated use `GetCustomerResponseBody$outboundSchema` instead. */
|
|
126
|
+
export const outboundSchema = GetCustomerResponseBody$outboundSchema;
|
|
127
|
+
/** @deprecated use `GetCustomerResponseBody$Outbound` instead. */
|
|
128
|
+
export type Outbound = GetCustomerResponseBody$Outbound;
|
|
129
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type ResponseBody = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the customer in Dub.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for the customer in the client's app.
|
|
14
|
+
*/
|
|
15
|
+
externalId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Name of the customer.
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* Email of the customer.
|
|
22
|
+
*/
|
|
23
|
+
email?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Avatar URL of the customer.
|
|
26
|
+
*/
|
|
27
|
+
avatar?: string | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The date the customer was created.
|
|
30
|
+
*/
|
|
31
|
+
createdAt: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ResponseBody$inboundSchema: z.ZodType<
|
|
36
|
+
ResponseBody,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
id: z.string(),
|
|
41
|
+
externalId: z.string(),
|
|
42
|
+
name: z.string(),
|
|
43
|
+
email: z.nullable(z.string()).optional(),
|
|
44
|
+
avatar: z.nullable(z.string()).optional(),
|
|
45
|
+
createdAt: z.string(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type ResponseBody$Outbound = {
|
|
50
|
+
id: string;
|
|
51
|
+
externalId: string;
|
|
52
|
+
name: string;
|
|
53
|
+
email?: string | null | undefined;
|
|
54
|
+
avatar?: string | null | undefined;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const ResponseBody$outboundSchema: z.ZodType<
|
|
60
|
+
ResponseBody$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
ResponseBody
|
|
63
|
+
> = z.object({
|
|
64
|
+
id: z.string(),
|
|
65
|
+
externalId: z.string(),
|
|
66
|
+
name: z.string(),
|
|
67
|
+
email: z.nullable(z.string()).optional(),
|
|
68
|
+
avatar: z.nullable(z.string()).optional(),
|
|
69
|
+
createdAt: z.string(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace ResponseBody$ {
|
|
77
|
+
/** @deprecated use `ResponseBody$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = ResponseBody$inboundSchema;
|
|
79
|
+
/** @deprecated use `ResponseBody$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = ResponseBody$outboundSchema;
|
|
81
|
+
/** @deprecated use `ResponseBody$Outbound` instead. */
|
|
82
|
+
export type Outbound = ResponseBody$Outbound;
|
|
83
|
+
}
|
|
@@ -36,7 +36,7 @@ export type GetLinksRequest = {
|
|
|
36
36
|
*/
|
|
37
37
|
domain?: string | undefined;
|
|
38
38
|
/**
|
|
39
|
-
* The tag ID to filter the links by.
|
|
39
|
+
* Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
|
40
40
|
*/
|
|
41
41
|
tagId?: string | undefined;
|
|
42
42
|
/**
|
|
@@ -41,7 +41,7 @@ export type GetLinksCountRequest = {
|
|
|
41
41
|
*/
|
|
42
42
|
domain?: string | undefined;
|
|
43
43
|
/**
|
|
44
|
-
* The tag ID to filter the links by.
|
|
44
|
+
* Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
|
45
45
|
*/
|
|
46
46
|
tagId?: string | undefined;
|
|
47
47
|
/**
|
|
@@ -5,12 +5,16 @@
|
|
|
5
5
|
export * from "./bulkcreatelinks.js";
|
|
6
6
|
export * from "./bulkdeletelinks.js";
|
|
7
7
|
export * from "./bulkupdatelinks.js";
|
|
8
|
+
export * from "./createcustomer.js";
|
|
8
9
|
export * from "./createdomain.js";
|
|
9
10
|
export * from "./createlink.js";
|
|
10
11
|
export * from "./createtag.js";
|
|
12
|
+
export * from "./deletecustomer.js";
|
|
11
13
|
export * from "./deletedomain.js";
|
|
12
14
|
export * from "./deletelink.js";
|
|
13
15
|
export * from "./deletetag.js";
|
|
16
|
+
export * from "./getcustomer.js";
|
|
17
|
+
export * from "./getcustomers.js";
|
|
14
18
|
export * from "./getlinkinfo.js";
|
|
15
19
|
export * from "./getlinks.js";
|
|
16
20
|
export * from "./getlinkscount.js";
|
|
@@ -23,6 +27,7 @@ export * from "./retrieveanalytics.js";
|
|
|
23
27
|
export * from "./trackcustomer.js";
|
|
24
28
|
export * from "./tracklead.js";
|
|
25
29
|
export * from "./tracksale.js";
|
|
30
|
+
export * from "./updatecustomer.js";
|
|
26
31
|
export * from "./updatedomain.js";
|
|
27
32
|
export * from "./updatelink.js";
|
|
28
33
|
export * from "./updatetag.js";
|
|
@@ -48,6 +48,11 @@ export const QueryParamTrigger = {
|
|
|
48
48
|
*/
|
|
49
49
|
export type QueryParamTrigger = ClosedEnum<typeof QueryParamTrigger>;
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* The tag IDs to retrieve analytics for.
|
|
53
|
+
*/
|
|
54
|
+
export type ListEventsQueryParamTagIds = string | Array<string>;
|
|
55
|
+
|
|
51
56
|
export const Order = {
|
|
52
57
|
Asc: "asc",
|
|
53
58
|
Desc: "desc",
|
|
@@ -137,9 +142,13 @@ export type ListEventsRequest = {
|
|
|
137
142
|
*/
|
|
138
143
|
url?: string | undefined;
|
|
139
144
|
/**
|
|
140
|
-
* The tag ID to retrieve analytics for.
|
|
145
|
+
* Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for.
|
|
141
146
|
*/
|
|
142
147
|
tagId?: string | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* The tag IDs to retrieve analytics for.
|
|
150
|
+
*/
|
|
151
|
+
tagIds?: string | Array<string> | undefined;
|
|
143
152
|
/**
|
|
144
153
|
* Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
145
154
|
*/
|
|
@@ -225,6 +234,36 @@ export namespace QueryParamTrigger$ {
|
|
|
225
234
|
export const outboundSchema = QueryParamTrigger$outboundSchema;
|
|
226
235
|
}
|
|
227
236
|
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const ListEventsQueryParamTagIds$inboundSchema: z.ZodType<
|
|
239
|
+
ListEventsQueryParamTagIds,
|
|
240
|
+
z.ZodTypeDef,
|
|
241
|
+
unknown
|
|
242
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
243
|
+
|
|
244
|
+
/** @internal */
|
|
245
|
+
export type ListEventsQueryParamTagIds$Outbound = string | Array<string>;
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const ListEventsQueryParamTagIds$outboundSchema: z.ZodType<
|
|
249
|
+
ListEventsQueryParamTagIds$Outbound,
|
|
250
|
+
z.ZodTypeDef,
|
|
251
|
+
ListEventsQueryParamTagIds
|
|
252
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @internal
|
|
256
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
257
|
+
*/
|
|
258
|
+
export namespace ListEventsQueryParamTagIds$ {
|
|
259
|
+
/** @deprecated use `ListEventsQueryParamTagIds$inboundSchema` instead. */
|
|
260
|
+
export const inboundSchema = ListEventsQueryParamTagIds$inboundSchema;
|
|
261
|
+
/** @deprecated use `ListEventsQueryParamTagIds$outboundSchema` instead. */
|
|
262
|
+
export const outboundSchema = ListEventsQueryParamTagIds$outboundSchema;
|
|
263
|
+
/** @deprecated use `ListEventsQueryParamTagIds$Outbound` instead. */
|
|
264
|
+
export type Outbound = ListEventsQueryParamTagIds$Outbound;
|
|
265
|
+
}
|
|
266
|
+
|
|
228
267
|
/** @internal */
|
|
229
268
|
export const Order$inboundSchema: z.ZodNativeEnum<typeof Order> = z.nativeEnum(
|
|
230
269
|
Order,
|
|
@@ -290,6 +329,7 @@ export const ListEventsRequest$inboundSchema: z.ZodType<
|
|
|
290
329
|
refererUrl: z.string().optional(),
|
|
291
330
|
url: z.string().optional(),
|
|
292
331
|
tagId: z.string().optional(),
|
|
332
|
+
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
293
333
|
qr: z.boolean().optional(),
|
|
294
334
|
root: z.boolean().optional(),
|
|
295
335
|
page: z.number().default(1),
|
|
@@ -320,6 +360,7 @@ export type ListEventsRequest$Outbound = {
|
|
|
320
360
|
refererUrl?: string | undefined;
|
|
321
361
|
url?: string | undefined;
|
|
322
362
|
tagId?: string | undefined;
|
|
363
|
+
tagIds?: string | Array<string> | undefined;
|
|
323
364
|
qr?: boolean | undefined;
|
|
324
365
|
root?: boolean | undefined;
|
|
325
366
|
page: number;
|
|
@@ -354,6 +395,7 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
|
|
|
354
395
|
refererUrl: z.string().optional(),
|
|
355
396
|
url: z.string().optional(),
|
|
356
397
|
tagId: z.string().optional(),
|
|
398
|
+
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
357
399
|
qr: z.boolean().optional(),
|
|
358
400
|
root: z.boolean().optional(),
|
|
359
401
|
page: z.number().default(1),
|
|
@@ -74,6 +74,11 @@ export const Trigger = {
|
|
|
74
74
|
*/
|
|
75
75
|
export type Trigger = ClosedEnum<typeof Trigger>;
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* The tag IDs to retrieve analytics for.
|
|
79
|
+
*/
|
|
80
|
+
export type RetrieveAnalyticsQueryParamTagIds = string | Array<string>;
|
|
81
|
+
|
|
77
82
|
export type RetrieveAnalyticsRequest = {
|
|
78
83
|
/**
|
|
79
84
|
* The type of event to retrieve analytics for. Defaults to `clicks`.
|
|
@@ -156,9 +161,13 @@ export type RetrieveAnalyticsRequest = {
|
|
|
156
161
|
*/
|
|
157
162
|
url?: string | undefined;
|
|
158
163
|
/**
|
|
159
|
-
* The tag ID to retrieve analytics for.
|
|
164
|
+
* Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for.
|
|
160
165
|
*/
|
|
161
166
|
tagId?: string | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* The tag IDs to retrieve analytics for.
|
|
169
|
+
*/
|
|
170
|
+
tagIds?: string | Array<string> | undefined;
|
|
162
171
|
/**
|
|
163
172
|
* Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
164
173
|
*/
|
|
@@ -266,6 +275,37 @@ export namespace Trigger$ {
|
|
|
266
275
|
export const outboundSchema = Trigger$outboundSchema;
|
|
267
276
|
}
|
|
268
277
|
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const RetrieveAnalyticsQueryParamTagIds$inboundSchema: z.ZodType<
|
|
280
|
+
RetrieveAnalyticsQueryParamTagIds,
|
|
281
|
+
z.ZodTypeDef,
|
|
282
|
+
unknown
|
|
283
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
284
|
+
|
|
285
|
+
/** @internal */
|
|
286
|
+
export type RetrieveAnalyticsQueryParamTagIds$Outbound = string | Array<string>;
|
|
287
|
+
|
|
288
|
+
/** @internal */
|
|
289
|
+
export const RetrieveAnalyticsQueryParamTagIds$outboundSchema: z.ZodType<
|
|
290
|
+
RetrieveAnalyticsQueryParamTagIds$Outbound,
|
|
291
|
+
z.ZodTypeDef,
|
|
292
|
+
RetrieveAnalyticsQueryParamTagIds
|
|
293
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @internal
|
|
297
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
298
|
+
*/
|
|
299
|
+
export namespace RetrieveAnalyticsQueryParamTagIds$ {
|
|
300
|
+
/** @deprecated use `RetrieveAnalyticsQueryParamTagIds$inboundSchema` instead. */
|
|
301
|
+
export const inboundSchema = RetrieveAnalyticsQueryParamTagIds$inboundSchema;
|
|
302
|
+
/** @deprecated use `RetrieveAnalyticsQueryParamTagIds$outboundSchema` instead. */
|
|
303
|
+
export const outboundSchema =
|
|
304
|
+
RetrieveAnalyticsQueryParamTagIds$outboundSchema;
|
|
305
|
+
/** @deprecated use `RetrieveAnalyticsQueryParamTagIds$Outbound` instead. */
|
|
306
|
+
export type Outbound = RetrieveAnalyticsQueryParamTagIds$Outbound;
|
|
307
|
+
}
|
|
308
|
+
|
|
269
309
|
/** @internal */
|
|
270
310
|
export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
|
|
271
311
|
RetrieveAnalyticsRequest,
|
|
@@ -293,6 +333,7 @@ export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
|
|
|
293
333
|
refererUrl: z.string().optional(),
|
|
294
334
|
url: z.string().optional(),
|
|
295
335
|
tagId: z.string().optional(),
|
|
336
|
+
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
296
337
|
qr: z.boolean().optional(),
|
|
297
338
|
root: z.boolean().optional(),
|
|
298
339
|
});
|
|
@@ -320,6 +361,7 @@ export type RetrieveAnalyticsRequest$Outbound = {
|
|
|
320
361
|
refererUrl?: string | undefined;
|
|
321
362
|
url?: string | undefined;
|
|
322
363
|
tagId?: string | undefined;
|
|
364
|
+
tagIds?: string | Array<string> | undefined;
|
|
323
365
|
qr?: boolean | undefined;
|
|
324
366
|
root?: boolean | undefined;
|
|
325
367
|
};
|
|
@@ -351,6 +393,7 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
|
|
|
351
393
|
refererUrl: z.string().optional(),
|
|
352
394
|
url: z.string().optional(),
|
|
353
395
|
tagId: z.string().optional(),
|
|
396
|
+
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
354
397
|
qr: z.boolean().optional(),
|
|
355
398
|
root: z.boolean().optional(),
|
|
356
399
|
});
|
|
@@ -16,7 +16,13 @@ export type TrackLeadRequestBody = {
|
|
|
16
16
|
/**
|
|
17
17
|
* This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
externalId?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
24
|
+
*/
|
|
25
|
+
customerId?: string | null | undefined;
|
|
20
26
|
/**
|
|
21
27
|
* Name of the customer in the client's app.
|
|
22
28
|
*/
|
|
@@ -40,10 +46,10 @@ export type Click = {
|
|
|
40
46
|
};
|
|
41
47
|
|
|
42
48
|
export type Customer = {
|
|
43
|
-
id: string;
|
|
44
49
|
name: string | null;
|
|
45
50
|
email: string | null;
|
|
46
51
|
avatar: string | null;
|
|
52
|
+
externalId: string | null;
|
|
47
53
|
};
|
|
48
54
|
|
|
49
55
|
/**
|
|
@@ -62,7 +68,8 @@ export const TrackLeadRequestBody$inboundSchema: z.ZodType<
|
|
|
62
68
|
> = z.object({
|
|
63
69
|
clickId: z.string(),
|
|
64
70
|
eventName: z.string(),
|
|
65
|
-
|
|
71
|
+
externalId: z.string().default(""),
|
|
72
|
+
customerId: z.nullable(z.string()).default(null),
|
|
66
73
|
customerName: z.nullable(z.string()).default(null),
|
|
67
74
|
customerEmail: z.nullable(z.string()).default(null),
|
|
68
75
|
customerAvatar: z.nullable(z.string()).default(null),
|
|
@@ -73,7 +80,8 @@ export const TrackLeadRequestBody$inboundSchema: z.ZodType<
|
|
|
73
80
|
export type TrackLeadRequestBody$Outbound = {
|
|
74
81
|
clickId: string;
|
|
75
82
|
eventName: string;
|
|
76
|
-
|
|
83
|
+
externalId: string;
|
|
84
|
+
customerId: string | null;
|
|
77
85
|
customerName: string | null;
|
|
78
86
|
customerEmail: string | null;
|
|
79
87
|
customerAvatar: string | null;
|
|
@@ -88,7 +96,8 @@ export const TrackLeadRequestBody$outboundSchema: z.ZodType<
|
|
|
88
96
|
> = z.object({
|
|
89
97
|
clickId: z.string(),
|
|
90
98
|
eventName: z.string(),
|
|
91
|
-
|
|
99
|
+
externalId: z.string().default(""),
|
|
100
|
+
customerId: z.nullable(z.string()).default(null),
|
|
92
101
|
customerName: z.nullable(z.string()).default(null),
|
|
93
102
|
customerEmail: z.nullable(z.string()).default(null),
|
|
94
103
|
customerAvatar: z.nullable(z.string()).default(null),
|
|
@@ -147,18 +156,18 @@ export const Customer$inboundSchema: z.ZodType<
|
|
|
147
156
|
z.ZodTypeDef,
|
|
148
157
|
unknown
|
|
149
158
|
> = z.object({
|
|
150
|
-
id: z.string(),
|
|
151
159
|
name: z.nullable(z.string()),
|
|
152
160
|
email: z.nullable(z.string()),
|
|
153
161
|
avatar: z.nullable(z.string()),
|
|
162
|
+
externalId: z.nullable(z.string()),
|
|
154
163
|
});
|
|
155
164
|
|
|
156
165
|
/** @internal */
|
|
157
166
|
export type Customer$Outbound = {
|
|
158
|
-
id: string;
|
|
159
167
|
name: string | null;
|
|
160
168
|
email: string | null;
|
|
161
169
|
avatar: string | null;
|
|
170
|
+
externalId: string | null;
|
|
162
171
|
};
|
|
163
172
|
|
|
164
173
|
/** @internal */
|
|
@@ -167,10 +176,10 @@ export const Customer$outboundSchema: z.ZodType<
|
|
|
167
176
|
z.ZodTypeDef,
|
|
168
177
|
Customer
|
|
169
178
|
> = z.object({
|
|
170
|
-
id: z.string(),
|
|
171
179
|
name: z.nullable(z.string()),
|
|
172
180
|
email: z.nullable(z.string()),
|
|
173
181
|
avatar: z.nullable(z.string()),
|
|
182
|
+
externalId: z.nullable(z.string()),
|
|
174
183
|
});
|
|
175
184
|
|
|
176
185
|
/**
|
|
@@ -22,7 +22,13 @@ export type TrackSaleRequestBody = {
|
|
|
22
22
|
/**
|
|
23
23
|
* This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
externalId?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
|
|
28
|
+
*
|
|
29
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
30
|
+
*/
|
|
31
|
+
customerId?: string | null | undefined;
|
|
26
32
|
/**
|
|
27
33
|
* The amount of the sale. Should be passed in cents.
|
|
28
34
|
*/
|
|
@@ -54,6 +60,7 @@ export type TrackSaleCustomer = {
|
|
|
54
60
|
name: string | null;
|
|
55
61
|
email: string | null;
|
|
56
62
|
avatar: string | null;
|
|
63
|
+
externalId: string | null;
|
|
57
64
|
};
|
|
58
65
|
|
|
59
66
|
export type Sale = {
|
|
@@ -100,7 +107,8 @@ export const TrackSaleRequestBody$inboundSchema: z.ZodType<
|
|
|
100
107
|
z.ZodTypeDef,
|
|
101
108
|
unknown
|
|
102
109
|
> = z.object({
|
|
103
|
-
|
|
110
|
+
externalId: z.string().default(""),
|
|
111
|
+
customerId: z.nullable(z.string()).default(null),
|
|
104
112
|
amount: z.number().int(),
|
|
105
113
|
paymentProcessor: PaymentProcessor$inboundSchema,
|
|
106
114
|
eventName: z.string().default("Purchase"),
|
|
@@ -111,7 +119,8 @@ export const TrackSaleRequestBody$inboundSchema: z.ZodType<
|
|
|
111
119
|
|
|
112
120
|
/** @internal */
|
|
113
121
|
export type TrackSaleRequestBody$Outbound = {
|
|
114
|
-
|
|
122
|
+
externalId: string;
|
|
123
|
+
customerId: string | null;
|
|
115
124
|
amount: number;
|
|
116
125
|
paymentProcessor: string;
|
|
117
126
|
eventName: string;
|
|
@@ -126,7 +135,8 @@ export const TrackSaleRequestBody$outboundSchema: z.ZodType<
|
|
|
126
135
|
z.ZodTypeDef,
|
|
127
136
|
TrackSaleRequestBody
|
|
128
137
|
> = z.object({
|
|
129
|
-
|
|
138
|
+
externalId: z.string().default(""),
|
|
139
|
+
customerId: z.nullable(z.string()).default(null),
|
|
130
140
|
amount: z.number().int(),
|
|
131
141
|
paymentProcessor: PaymentProcessor$outboundSchema,
|
|
132
142
|
eventName: z.string().default("Purchase"),
|
|
@@ -158,6 +168,7 @@ export const TrackSaleCustomer$inboundSchema: z.ZodType<
|
|
|
158
168
|
name: z.nullable(z.string()),
|
|
159
169
|
email: z.nullable(z.string()),
|
|
160
170
|
avatar: z.nullable(z.string()),
|
|
171
|
+
externalId: z.nullable(z.string()),
|
|
161
172
|
});
|
|
162
173
|
|
|
163
174
|
/** @internal */
|
|
@@ -166,6 +177,7 @@ export type TrackSaleCustomer$Outbound = {
|
|
|
166
177
|
name: string | null;
|
|
167
178
|
email: string | null;
|
|
168
179
|
avatar: string | null;
|
|
180
|
+
externalId: string | null;
|
|
169
181
|
};
|
|
170
182
|
|
|
171
183
|
/** @internal */
|
|
@@ -178,6 +190,7 @@ export const TrackSaleCustomer$outboundSchema: z.ZodType<
|
|
|
178
190
|
name: z.nullable(z.string()),
|
|
179
191
|
email: z.nullable(z.string()),
|
|
180
192
|
avatar: z.nullable(z.string()),
|
|
193
|
+
externalId: z.nullable(z.string()),
|
|
181
194
|
});
|
|
182
195
|
|
|
183
196
|
/**
|