dub 0.71.5 → 0.71.6
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 +2 -0
- package/dist/commonjs/funcs/bountiesApproveSubmission.js.map +1 -1
- package/dist/commonjs/funcs/bountiesListSubmissions.js.map +1 -1
- package/dist/commonjs/funcs/bountiesRejectSubmission.js.map +1 -1
- package/dist/commonjs/funcs/commissionsList.d.ts +4 -1
- package/dist/commonjs/funcs/commissionsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/commissionsList.js +38 -7
- package/dist/commonjs/funcs/commissionsList.js.map +1 -1
- package/dist/commonjs/funcs/commissionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/commissionsUpdateMany.d.ts +18 -0
- package/dist/commonjs/funcs/commissionsUpdateMany.d.ts.map +1 -0
- package/dist/commonjs/funcs/commissionsUpdateMany.js +134 -0
- package/dist/commonjs/funcs/commissionsUpdateMany.js.map +1 -0
- package/dist/commonjs/funcs/customersDelete.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersList.d.ts +4 -1
- package/dist/commonjs/funcs/customersList.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersList.js +38 -7
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/domainsDelete.js.map +1 -1
- package/dist/commonjs/funcs/domainsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/embedTokensReferrals.d.ts +1 -1
- package/dist/commonjs/funcs/embedTokensReferrals.js +1 -1
- package/dist/commonjs/funcs/foldersDelete.js.map +1 -1
- package/dist/commonjs/funcs/foldersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/linksDelete.js.map +1 -1
- package/dist/commonjs/funcs/linksList.js +2 -0
- package/dist/commonjs/funcs/linksList.js.map +1 -1
- package/dist/commonjs/funcs/linksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/partnersList.js +1 -0
- package/dist/commonjs/funcs/partnersList.js.map +1 -1
- package/dist/commonjs/funcs/tagsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tagsUpdate.js.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/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +0 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +8 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +20 -10
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +4 -4
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +2 -2
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts +72 -0
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.js +51 -2
- package/dist/commonjs/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +4 -4
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +2 -2
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/operations/approvebountysubmission.d.ts +4 -0
- package/dist/commonjs/models/operations/approvebountysubmission.d.ts.map +1 -1
- package/dist/commonjs/models/operations/approvebountysubmission.js +1 -0
- package/dist/commonjs/models/operations/approvebountysubmission.js.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatecommissions.d.ts +58 -0
- package/dist/commonjs/models/operations/bulkupdatecommissions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/bulkupdatecommissions.js +83 -0
- package/dist/commonjs/models/operations/bulkupdatecommissions.js.map +1 -0
- package/dist/commonjs/models/operations/createpartner.d.ts +58 -6
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +35 -2
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/createpartnerlink.d.ts +1 -6
- package/dist/commonjs/models/operations/createpartnerlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartnerlink.js +0 -1
- package/dist/commonjs/models/operations/createpartnerlink.js.map +1 -1
- package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts +1 -6
- package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createreferralsembedtoken.js +0 -1
- package/dist/commonjs/models/operations/createreferralsembedtoken.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +18 -2
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +17 -2
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/getlinks.d.ts +12 -2
- package/dist/commonjs/models/operations/getlinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getlinks.js +3 -1
- package/dist/commonjs/models/operations/getlinks.js.map +1 -1
- package/dist/commonjs/models/operations/gettags.d.ts +1 -1
- package/dist/commonjs/models/operations/gettags.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettags.js +1 -1
- package/dist/commonjs/models/operations/gettags.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listbountysubmissions.d.ts +5 -1
- package/dist/commonjs/models/operations/listbountysubmissions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listbountysubmissions.js +2 -1
- package/dist/commonjs/models/operations/listbountysubmissions.js.map +1 -1
- package/dist/commonjs/models/operations/listcommissions.d.ts +18 -2
- package/dist/commonjs/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcommissions.js +17 -2
- package/dist/commonjs/models/operations/listcommissions.js.map +1 -1
- package/dist/commonjs/models/operations/listdomains.d.ts +1 -1
- package/dist/commonjs/models/operations/listdomains.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listdomains.js +1 -1
- package/dist/commonjs/models/operations/listdomains.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +1 -1
- package/dist/commonjs/models/operations/listfolders.d.ts +1 -1
- package/dist/commonjs/models/operations/listfolders.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listfolders.js +1 -1
- package/dist/commonjs/models/operations/listfolders.js.map +1 -1
- package/dist/commonjs/models/operations/listpartners.d.ts +63 -1
- package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpartners.js +36 -2
- package/dist/commonjs/models/operations/listpartners.js.map +1 -1
- package/dist/commonjs/models/operations/listpayouts.d.ts +20 -1
- package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpayouts.js +14 -2
- package/dist/commonjs/models/operations/listpayouts.js.map +1 -1
- package/dist/commonjs/models/operations/rejectbountysubmission.d.ts +4 -0
- package/dist/commonjs/models/operations/rejectbountysubmission.d.ts.map +1 -1
- package/dist/commonjs/models/operations/rejectbountysubmission.js +1 -0
- package/dist/commonjs/models/operations/rejectbountysubmission.js.map +1 -1
- package/dist/commonjs/models/operations/tracksale.d.ts +1 -1
- package/dist/commonjs/models/operations/updatecommission.d.ts +28 -8
- package/dist/commonjs/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecommission.js +7 -3
- package/dist/commonjs/models/operations/updatecommission.js.map +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts +1 -6
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.js +0 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/commonjs/sdk/commissions.d.ts +11 -1
- package/dist/commonjs/sdk/commissions.d.ts.map +1 -1
- package/dist/commonjs/sdk/commissions.js +12 -1
- package/dist/commonjs/sdk/commissions.js.map +1 -1
- package/dist/commonjs/sdk/customers.d.ts +4 -1
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/commonjs/sdk/customers.js +2 -1
- package/dist/commonjs/sdk/customers.js.map +1 -1
- package/dist/commonjs/sdk/embedtokens.d.ts +1 -1
- package/dist/commonjs/sdk/embedtokens.js +1 -1
- package/dist/esm/funcs/bountiesApproveSubmission.js.map +1 -1
- package/dist/esm/funcs/bountiesListSubmissions.js.map +1 -1
- package/dist/esm/funcs/bountiesRejectSubmission.js.map +1 -1
- package/dist/esm/funcs/commissionsList.d.ts +4 -1
- package/dist/esm/funcs/commissionsList.d.ts.map +1 -1
- package/dist/esm/funcs/commissionsList.js +35 -7
- package/dist/esm/funcs/commissionsList.js.map +1 -1
- package/dist/esm/funcs/commissionsUpdate.js.map +1 -1
- package/dist/esm/funcs/commissionsUpdateMany.d.ts +18 -0
- package/dist/esm/funcs/commissionsUpdateMany.d.ts.map +1 -0
- package/dist/esm/funcs/commissionsUpdateMany.js +98 -0
- package/dist/esm/funcs/commissionsUpdateMany.js.map +1 -0
- package/dist/esm/funcs/customersDelete.js.map +1 -1
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersList.d.ts +4 -1
- package/dist/esm/funcs/customersList.d.ts.map +1 -1
- package/dist/esm/funcs/customersList.js +35 -7
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/domainsDelete.js.map +1 -1
- package/dist/esm/funcs/domainsUpdate.js.map +1 -1
- package/dist/esm/funcs/embedTokensReferrals.d.ts +1 -1
- package/dist/esm/funcs/embedTokensReferrals.js +1 -1
- package/dist/esm/funcs/foldersDelete.js.map +1 -1
- package/dist/esm/funcs/foldersUpdate.js.map +1 -1
- package/dist/esm/funcs/linksDelete.js.map +1 -1
- package/dist/esm/funcs/linksList.js +2 -0
- package/dist/esm/funcs/linksList.js.map +1 -1
- package/dist/esm/funcs/linksUpdate.js.map +1 -1
- package/dist/esm/funcs/partnersList.js +1 -0
- package/dist/esm/funcs/partnersList.js.map +1 -1
- package/dist/esm/funcs/tagsDelete.js.map +1 -1
- package/dist/esm/funcs/tagsUpdate.js.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/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +0 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +8 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +20 -10
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +4 -4
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +2 -2
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.d.ts +72 -0
- package/dist/esm/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.js +47 -0
- package/dist/esm/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +4 -4
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +2 -2
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/operations/approvebountysubmission.d.ts +4 -0
- package/dist/esm/models/operations/approvebountysubmission.d.ts.map +1 -1
- package/dist/esm/models/operations/approvebountysubmission.js +1 -0
- package/dist/esm/models/operations/approvebountysubmission.js.map +1 -1
- package/dist/esm/models/operations/bulkupdatecommissions.d.ts +58 -0
- package/dist/esm/models/operations/bulkupdatecommissions.d.ts.map +1 -0
- package/dist/esm/models/operations/bulkupdatecommissions.js +45 -0
- package/dist/esm/models/operations/bulkupdatecommissions.js.map +1 -0
- package/dist/esm/models/operations/createpartner.d.ts +58 -6
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +33 -1
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/createpartnerlink.d.ts +1 -6
- package/dist/esm/models/operations/createpartnerlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartnerlink.js +0 -1
- package/dist/esm/models/operations/createpartnerlink.js.map +1 -1
- package/dist/esm/models/operations/createreferralsembedtoken.d.ts +1 -6
- package/dist/esm/models/operations/createreferralsembedtoken.d.ts.map +1 -1
- package/dist/esm/models/operations/createreferralsembedtoken.js +0 -1
- package/dist/esm/models/operations/createreferralsembedtoken.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +18 -2
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +15 -1
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/getlinks.d.ts +12 -2
- package/dist/esm/models/operations/getlinks.d.ts.map +1 -1
- package/dist/esm/models/operations/getlinks.js +3 -1
- package/dist/esm/models/operations/getlinks.js.map +1 -1
- package/dist/esm/models/operations/gettags.d.ts +1 -1
- package/dist/esm/models/operations/gettags.d.ts.map +1 -1
- package/dist/esm/models/operations/gettags.js +1 -1
- package/dist/esm/models/operations/gettags.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listbountysubmissions.d.ts +5 -1
- package/dist/esm/models/operations/listbountysubmissions.d.ts.map +1 -1
- package/dist/esm/models/operations/listbountysubmissions.js +2 -1
- package/dist/esm/models/operations/listbountysubmissions.js.map +1 -1
- package/dist/esm/models/operations/listcommissions.d.ts +18 -2
- package/dist/esm/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/esm/models/operations/listcommissions.js +15 -1
- package/dist/esm/models/operations/listcommissions.js.map +1 -1
- package/dist/esm/models/operations/listdomains.d.ts +1 -1
- package/dist/esm/models/operations/listdomains.d.ts.map +1 -1
- package/dist/esm/models/operations/listdomains.js +1 -1
- package/dist/esm/models/operations/listdomains.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +1 -1
- package/dist/esm/models/operations/listfolders.d.ts +1 -1
- package/dist/esm/models/operations/listfolders.d.ts.map +1 -1
- package/dist/esm/models/operations/listfolders.js +1 -1
- package/dist/esm/models/operations/listfolders.js.map +1 -1
- package/dist/esm/models/operations/listpartners.d.ts +63 -1
- package/dist/esm/models/operations/listpartners.d.ts.map +1 -1
- package/dist/esm/models/operations/listpartners.js +34 -1
- package/dist/esm/models/operations/listpartners.js.map +1 -1
- package/dist/esm/models/operations/listpayouts.d.ts +20 -1
- package/dist/esm/models/operations/listpayouts.d.ts.map +1 -1
- package/dist/esm/models/operations/listpayouts.js +13 -1
- package/dist/esm/models/operations/listpayouts.js.map +1 -1
- package/dist/esm/models/operations/rejectbountysubmission.d.ts +4 -0
- package/dist/esm/models/operations/rejectbountysubmission.d.ts.map +1 -1
- package/dist/esm/models/operations/rejectbountysubmission.js +1 -0
- package/dist/esm/models/operations/rejectbountysubmission.js.map +1 -1
- package/dist/esm/models/operations/tracksale.d.ts +1 -1
- package/dist/esm/models/operations/updatecommission.d.ts +28 -8
- package/dist/esm/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecommission.js +7 -3
- package/dist/esm/models/operations/updatecommission.js.map +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.d.ts +1 -6
- package/dist/esm/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.js +0 -1
- package/dist/esm/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/esm/sdk/commissions.d.ts +11 -1
- package/dist/esm/sdk/commissions.d.ts.map +1 -1
- package/dist/esm/sdk/commissions.js +12 -1
- package/dist/esm/sdk/commissions.js.map +1 -1
- package/dist/esm/sdk/customers.d.ts +4 -1
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/dist/esm/sdk/customers.js +2 -1
- package/dist/esm/sdk/customers.js.map +1 -1
- package/dist/esm/sdk/embedtokens.d.ts +1 -1
- package/dist/esm/sdk/embedtokens.js +1 -1
- package/jsr.json +1 -1
- package/package.json +4 -2
- package/src/funcs/bountiesApproveSubmission.ts +0 -1
- package/src/funcs/bountiesListSubmissions.ts +0 -1
- package/src/funcs/bountiesRejectSubmission.ts +0 -1
- package/src/funcs/commissionsList.ts +117 -44
- package/src/funcs/commissionsUpdate.ts +0 -1
- package/src/funcs/commissionsUpdateMany.ts +221 -0
- package/src/funcs/customersDelete.ts +0 -1
- package/src/funcs/customersGet.ts +0 -1
- package/src/funcs/customersList.ts +117 -44
- package/src/funcs/customersUpdate.ts +0 -1
- package/src/funcs/domainsDelete.ts +0 -1
- package/src/funcs/domainsUpdate.ts +0 -1
- package/src/funcs/embedTokensReferrals.ts +1 -1
- package/src/funcs/foldersDelete.ts +0 -1
- package/src/funcs/foldersUpdate.ts +0 -1
- package/src/funcs/linksDelete.ts +0 -1
- package/src/funcs/linksList.ts +2 -0
- package/src/funcs/linksUpdate.ts +0 -1
- package/src/funcs/partnersList.ts +1 -0
- package/src/funcs/tagsDelete.ts +0 -1
- package/src/funcs/tagsUpdate.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/matchers.ts +3 -2
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +15 -4
- package/src/lib/url.ts +16 -14
- package/src/models/components/leadcreatedevent.ts +4 -4
- package/src/models/components/partnerenrolledevent.ts +118 -0
- package/src/models/components/salecreatedevent.ts +4 -4
- package/src/models/operations/approvebountysubmission.ts +5 -0
- package/src/models/operations/bulkupdatecommissions.ts +112 -0
- package/src/models/operations/createpartner.ts +94 -7
- package/src/models/operations/createpartnerlink.ts +1 -7
- package/src/models/operations/createreferralsembedtoken.ts +1 -7
- package/src/models/operations/getcustomers.ts +43 -3
- package/src/models/operations/getlinks.ts +15 -3
- package/src/models/operations/gettags.ts +2 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listbountysubmissions.ts +7 -2
- package/src/models/operations/listcommissions.ts +43 -3
- package/src/models/operations/listdomains.ts +2 -2
- package/src/models/operations/listevents.ts +1 -1
- package/src/models/operations/listfolders.ts +2 -2
- package/src/models/operations/listpartners.ts +96 -2
- package/src/models/operations/listpayouts.ts +29 -2
- package/src/models/operations/rejectbountysubmission.ts +5 -0
- package/src/models/operations/tracksale.ts +1 -1
- package/src/models/operations/updatecommission.ts +33 -10
- package/src/models/operations/upsertpartnerlink.ts +1 -7
- package/src/sdk/commissions.ts +23 -2
- package/src/sdk/customers.ts +5 -2
- package/src/sdk/embedtokens.ts +1 -1
|
@@ -23,10 +23,6 @@ export type CreatePartnerLinkTestVariants = {
|
|
|
23
23
|
* Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
|
|
24
24
|
*/
|
|
25
25
|
export type CreatePartnerLinkLinkProps = {
|
|
26
|
-
/**
|
|
27
|
-
* The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`.
|
|
28
|
-
*/
|
|
29
|
-
keyLength?: number | undefined;
|
|
30
26
|
/**
|
|
31
27
|
* The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.
|
|
32
28
|
*/
|
|
@@ -36,7 +32,7 @@ export type CreatePartnerLinkLinkProps = {
|
|
|
36
32
|
*/
|
|
37
33
|
tenantId?: string | null | undefined;
|
|
38
34
|
/**
|
|
39
|
-
*
|
|
35
|
+
* Path prefix for each default referral link slug (e.g. `/c/` → `https://{domain}/c/{identity}`). If the group has multiple default links, a short random suffix is appended to the identity segment for uniqueness (e.g. `c/jane-a7f2`).
|
|
40
36
|
*/
|
|
41
37
|
prefix?: string | undefined;
|
|
42
38
|
/**
|
|
@@ -208,7 +204,6 @@ export function createPartnerLinkTestVariantsToJSON(
|
|
|
208
204
|
|
|
209
205
|
/** @internal */
|
|
210
206
|
export type CreatePartnerLinkLinkProps$Outbound = {
|
|
211
|
-
keyLength?: number | undefined;
|
|
212
207
|
externalId?: string | null | undefined;
|
|
213
208
|
tenantId?: string | null | undefined;
|
|
214
209
|
prefix?: string | undefined;
|
|
@@ -242,7 +237,6 @@ export const CreatePartnerLinkLinkProps$outboundSchema: z.ZodType<
|
|
|
242
237
|
z.ZodTypeDef,
|
|
243
238
|
CreatePartnerLinkLinkProps
|
|
244
239
|
> = z.object({
|
|
245
|
-
keyLength: z.number().optional(),
|
|
246
240
|
externalId: z.nullable(z.string()).optional(),
|
|
247
241
|
tenantId: z.nullable(z.string()).optional(),
|
|
248
242
|
prefix: z.string().optional(),
|
|
@@ -26,10 +26,6 @@ export type CreateReferralsEmbedTokenTestVariants = {
|
|
|
26
26
|
* Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
|
|
27
27
|
*/
|
|
28
28
|
export type CreateReferralsEmbedTokenLinkProps = {
|
|
29
|
-
/**
|
|
30
|
-
* The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`.
|
|
31
|
-
*/
|
|
32
|
-
keyLength?: number | undefined;
|
|
33
29
|
/**
|
|
34
30
|
* The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.
|
|
35
31
|
*/
|
|
@@ -39,7 +35,7 @@ export type CreateReferralsEmbedTokenLinkProps = {
|
|
|
39
35
|
*/
|
|
40
36
|
tenantId?: string | null | undefined;
|
|
41
37
|
/**
|
|
42
|
-
*
|
|
38
|
+
* Path prefix for each default referral link slug (e.g. `/c/` → `https://{domain}/c/{identity}`). If the group has multiple default links, a short random suffix is appended to the identity segment for uniqueness (e.g. `c/jane-a7f2`).
|
|
43
39
|
*/
|
|
44
40
|
prefix?: string | undefined;
|
|
45
41
|
/**
|
|
@@ -244,7 +240,6 @@ export function createReferralsEmbedTokenTestVariantsToJSON(
|
|
|
244
240
|
|
|
245
241
|
/** @internal */
|
|
246
242
|
export type CreateReferralsEmbedTokenLinkProps$Outbound = {
|
|
247
|
-
keyLength?: number | undefined;
|
|
248
243
|
externalId?: string | null | undefined;
|
|
249
244
|
tenantId?: string | null | undefined;
|
|
250
245
|
prefix?: string | undefined;
|
|
@@ -278,7 +273,6 @@ export const CreateReferralsEmbedTokenLinkProps$outboundSchema: z.ZodType<
|
|
|
278
273
|
z.ZodTypeDef,
|
|
279
274
|
CreateReferralsEmbedTokenLinkProps
|
|
280
275
|
> = z.object({
|
|
281
|
-
keyLength: z.number().optional(),
|
|
282
276
|
externalId: z.nullable(z.string()).optional(),
|
|
283
277
|
tenantId: z.nullable(z.string()).optional(),
|
|
284
278
|
prefix: z.string().optional(),
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -80,7 +81,15 @@ export type GetCustomersRequest = {
|
|
|
80
81
|
*/
|
|
81
82
|
sortOrder?: GetCustomersQueryParamSortOrder | undefined;
|
|
82
83
|
/**
|
|
83
|
-
*
|
|
84
|
+
* If specified, the query only searches for results before this cursor. Mutually exclusive with `startingAfter`.
|
|
85
|
+
*/
|
|
86
|
+
endingBefore?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* If specified, the query only searches for results after this cursor. Mutually exclusive with `endingBefore`.
|
|
89
|
+
*/
|
|
90
|
+
startingAfter?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* DEPRECATED. Use `startingAfter` instead.
|
|
84
93
|
*/
|
|
85
94
|
page?: number | undefined;
|
|
86
95
|
/**
|
|
@@ -207,6 +216,10 @@ export type GetCustomersResponseBody = {
|
|
|
207
216
|
discount?: Discount | null | undefined;
|
|
208
217
|
};
|
|
209
218
|
|
|
219
|
+
export type GetCustomersResponse = {
|
|
220
|
+
result: Array<GetCustomersResponseBody>;
|
|
221
|
+
};
|
|
222
|
+
|
|
210
223
|
/** @internal */
|
|
211
224
|
export const GetCustomersQueryParamSortBy$outboundSchema: z.ZodNativeEnum<
|
|
212
225
|
typeof GetCustomersQueryParamSortBy
|
|
@@ -229,7 +242,9 @@ export type GetCustomersRequest$Outbound = {
|
|
|
229
242
|
includeExpandedFields?: boolean | undefined;
|
|
230
243
|
sortBy: string;
|
|
231
244
|
sortOrder: string;
|
|
232
|
-
|
|
245
|
+
endingBefore?: string | undefined;
|
|
246
|
+
startingAfter?: string | undefined;
|
|
247
|
+
page?: number | undefined;
|
|
233
248
|
pageSize: number;
|
|
234
249
|
};
|
|
235
250
|
|
|
@@ -249,7 +264,9 @@ export const GetCustomersRequest$outboundSchema: z.ZodType<
|
|
|
249
264
|
includeExpandedFields: z.boolean().optional(),
|
|
250
265
|
sortBy: GetCustomersQueryParamSortBy$outboundSchema.default("createdAt"),
|
|
251
266
|
sortOrder: GetCustomersQueryParamSortOrder$outboundSchema.default("desc"),
|
|
252
|
-
|
|
267
|
+
endingBefore: z.string().optional(),
|
|
268
|
+
startingAfter: z.string().optional(),
|
|
269
|
+
page: z.number().optional(),
|
|
253
270
|
pageSize: z.number().default(100),
|
|
254
271
|
});
|
|
255
272
|
|
|
@@ -372,3 +389,26 @@ export function getCustomersResponseBodyFromJSON(
|
|
|
372
389
|
`Failed to parse 'GetCustomersResponseBody' from JSON`,
|
|
373
390
|
);
|
|
374
391
|
}
|
|
392
|
+
|
|
393
|
+
/** @internal */
|
|
394
|
+
export const GetCustomersResponse$inboundSchema: z.ZodType<
|
|
395
|
+
GetCustomersResponse,
|
|
396
|
+
z.ZodTypeDef,
|
|
397
|
+
unknown
|
|
398
|
+
> = z.object({
|
|
399
|
+
Result: z.array(z.lazy(() => GetCustomersResponseBody$inboundSchema)),
|
|
400
|
+
}).transform((v) => {
|
|
401
|
+
return remap$(v, {
|
|
402
|
+
"Result": "result",
|
|
403
|
+
});
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
export function getCustomersResponseFromJSON(
|
|
407
|
+
jsonString: string,
|
|
408
|
+
): SafeParseResult<GetCustomersResponse, SDKValidationError> {
|
|
409
|
+
return safeParse(
|
|
410
|
+
jsonString,
|
|
411
|
+
(x) => GetCustomersResponse$inboundSchema.parse(JSON.parse(x)),
|
|
412
|
+
`Failed to parse 'GetCustomersResponse' from JSON`,
|
|
413
|
+
);
|
|
414
|
+
}
|
|
@@ -118,7 +118,15 @@ export type GetLinksRequest = {
|
|
|
118
118
|
*/
|
|
119
119
|
sort?: Sort | undefined;
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* If specified, the query only searches for results before this cursor. Mutually exclusive with `startingAfter`.
|
|
122
|
+
*/
|
|
123
|
+
endingBefore?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* If specified, the query only searches for results after this cursor. Mutually exclusive with `endingBefore`.
|
|
126
|
+
*/
|
|
127
|
+
startingAfter?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* DEPRECATED. Use `startingAfter` instead.
|
|
122
130
|
*/
|
|
123
131
|
page?: number | undefined;
|
|
124
132
|
/**
|
|
@@ -195,7 +203,9 @@ export type GetLinksRequest$Outbound = {
|
|
|
195
203
|
sortBy: string;
|
|
196
204
|
sortOrder: string;
|
|
197
205
|
sort: string;
|
|
198
|
-
|
|
206
|
+
endingBefore?: string | undefined;
|
|
207
|
+
startingAfter?: string | undefined;
|
|
208
|
+
page?: number | undefined;
|
|
199
209
|
pageSize: number;
|
|
200
210
|
};
|
|
201
211
|
|
|
@@ -218,7 +228,9 @@ export const GetLinksRequest$outboundSchema: z.ZodType<
|
|
|
218
228
|
sortBy: SortBy$outboundSchema.default("createdAt"),
|
|
219
229
|
sortOrder: SortOrder$outboundSchema.default("desc"),
|
|
220
230
|
sort: Sort$outboundSchema.default("createdAt"),
|
|
221
|
-
|
|
231
|
+
endingBefore: z.string().optional(),
|
|
232
|
+
startingAfter: z.string().optional(),
|
|
233
|
+
page: z.number().optional(),
|
|
222
234
|
pageSize: z.number().default(100),
|
|
223
235
|
});
|
|
224
236
|
|
|
@@ -92,7 +92,7 @@ export type GetTagsRequest$Outbound = {
|
|
|
92
92
|
sortOrder: string;
|
|
93
93
|
search?: string | undefined;
|
|
94
94
|
ids?: string | Array<string> | undefined;
|
|
95
|
-
page
|
|
95
|
+
page?: number | undefined;
|
|
96
96
|
pageSize: number;
|
|
97
97
|
};
|
|
98
98
|
|
|
@@ -106,7 +106,7 @@ export const GetTagsRequest$outboundSchema: z.ZodType<
|
|
|
106
106
|
sortOrder: GetTagsQueryParamSortOrder$outboundSchema.default("asc"),
|
|
107
107
|
search: z.string().optional(),
|
|
108
108
|
ids: z.union([z.string(), z.array(z.string())]).optional(),
|
|
109
|
-
page: z.number().
|
|
109
|
+
page: z.number().optional(),
|
|
110
110
|
pageSize: z.number().default(100),
|
|
111
111
|
});
|
|
112
112
|
|
|
@@ -6,6 +6,7 @@ export * from "./approvebountysubmission.js";
|
|
|
6
6
|
export * from "./banpartner.js";
|
|
7
7
|
export * from "./bulkcreatelinks.js";
|
|
8
8
|
export * from "./bulkdeletelinks.js";
|
|
9
|
+
export * from "./bulkupdatecommissions.js";
|
|
9
10
|
export * from "./bulkupdatelinks.js";
|
|
10
11
|
export * from "./checkdomainstatus.js";
|
|
11
12
|
export * from "./createdomain.js";
|
|
@@ -180,6 +180,10 @@ export type ListBountySubmissionsResponseBody = {
|
|
|
180
180
|
* The note for rejecting the submission
|
|
181
181
|
*/
|
|
182
182
|
rejectionNote: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* The period number for this submission (1-indexed)
|
|
185
|
+
*/
|
|
186
|
+
periodNumber: number;
|
|
183
187
|
};
|
|
184
188
|
|
|
185
189
|
/** @internal */
|
|
@@ -207,7 +211,7 @@ export type ListBountySubmissionsRequest$Outbound = {
|
|
|
207
211
|
partnerId?: string | undefined;
|
|
208
212
|
sortBy: string;
|
|
209
213
|
sortOrder: string;
|
|
210
|
-
page
|
|
214
|
+
page?: number | undefined;
|
|
211
215
|
pageSize: number;
|
|
212
216
|
};
|
|
213
217
|
|
|
@@ -227,7 +231,7 @@ export const ListBountySubmissionsRequest$outboundSchema: z.ZodType<
|
|
|
227
231
|
sortOrder: ListBountySubmissionsQueryParamSortOrder$outboundSchema.default(
|
|
228
232
|
"asc",
|
|
229
233
|
),
|
|
230
|
-
page: z.number().
|
|
234
|
+
page: z.number().optional(),
|
|
231
235
|
pageSize: z.number().default(100),
|
|
232
236
|
});
|
|
233
237
|
|
|
@@ -285,6 +289,7 @@ export const ListBountySubmissionsResponseBody$inboundSchema: z.ZodType<
|
|
|
285
289
|
reviewedAt: z.nullable(z.string()),
|
|
286
290
|
rejectionReason: z.nullable(z.string()),
|
|
287
291
|
rejectionNote: z.nullable(z.string()),
|
|
292
|
+
periodNumber: z.number().int(),
|
|
288
293
|
});
|
|
289
294
|
|
|
290
295
|
export function listBountySubmissionsResponseBodyFromJSON(
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -134,7 +135,15 @@ export type ListCommissionsRequest = {
|
|
|
134
135
|
end?: string | undefined;
|
|
135
136
|
timezone?: string | undefined;
|
|
136
137
|
/**
|
|
137
|
-
*
|
|
138
|
+
* If specified, the query only searches for results before this cursor. Mutually exclusive with `startingAfter`.
|
|
139
|
+
*/
|
|
140
|
+
endingBefore?: string | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* If specified, the query only searches for results after this cursor. Mutually exclusive with `endingBefore`.
|
|
143
|
+
*/
|
|
144
|
+
startingAfter?: string | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* DEPRECATED. Use `startingAfter` instead.
|
|
138
147
|
*/
|
|
139
148
|
page?: number | undefined;
|
|
140
149
|
/**
|
|
@@ -267,6 +276,10 @@ export type ListCommissionsResponseBody = {
|
|
|
267
276
|
customer?: ListCommissionsCustomer | null | undefined;
|
|
268
277
|
};
|
|
269
278
|
|
|
279
|
+
export type ListCommissionsResponse = {
|
|
280
|
+
result: Array<ListCommissionsResponseBody>;
|
|
281
|
+
};
|
|
282
|
+
|
|
270
283
|
/** @internal */
|
|
271
284
|
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
272
285
|
Type,
|
|
@@ -308,7 +321,9 @@ export type ListCommissionsRequest$Outbound = {
|
|
|
308
321
|
start?: string | undefined;
|
|
309
322
|
end?: string | undefined;
|
|
310
323
|
timezone?: string | undefined;
|
|
311
|
-
|
|
324
|
+
endingBefore?: string | undefined;
|
|
325
|
+
startingAfter?: string | undefined;
|
|
326
|
+
page?: number | undefined;
|
|
312
327
|
pageSize: number;
|
|
313
328
|
};
|
|
314
329
|
|
|
@@ -332,7 +347,9 @@ export const ListCommissionsRequest$outboundSchema: z.ZodType<
|
|
|
332
347
|
start: z.string().optional(),
|
|
333
348
|
end: z.string().optional(),
|
|
334
349
|
timezone: z.string().optional(),
|
|
335
|
-
|
|
350
|
+
endingBefore: z.string().optional(),
|
|
351
|
+
startingAfter: z.string().optional(),
|
|
352
|
+
page: z.number().optional(),
|
|
336
353
|
pageSize: z.number().default(100),
|
|
337
354
|
});
|
|
338
355
|
|
|
@@ -441,3 +458,26 @@ export function listCommissionsResponseBodyFromJSON(
|
|
|
441
458
|
`Failed to parse 'ListCommissionsResponseBody' from JSON`,
|
|
442
459
|
);
|
|
443
460
|
}
|
|
461
|
+
|
|
462
|
+
/** @internal */
|
|
463
|
+
export const ListCommissionsResponse$inboundSchema: z.ZodType<
|
|
464
|
+
ListCommissionsResponse,
|
|
465
|
+
z.ZodTypeDef,
|
|
466
|
+
unknown
|
|
467
|
+
> = z.object({
|
|
468
|
+
Result: z.array(z.lazy(() => ListCommissionsResponseBody$inboundSchema)),
|
|
469
|
+
}).transform((v) => {
|
|
470
|
+
return remap$(v, {
|
|
471
|
+
"Result": "result",
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
export function listCommissionsResponseFromJSON(
|
|
476
|
+
jsonString: string,
|
|
477
|
+
): SafeParseResult<ListCommissionsResponse, SDKValidationError> {
|
|
478
|
+
return safeParse(
|
|
479
|
+
jsonString,
|
|
480
|
+
(x) => ListCommissionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
481
|
+
`Failed to parse 'ListCommissionsResponse' from JSON`,
|
|
482
|
+
);
|
|
483
|
+
}
|
|
@@ -36,7 +36,7 @@ export type ListDomainsResponse = {
|
|
|
36
36
|
export type ListDomainsRequest$Outbound = {
|
|
37
37
|
archived: boolean;
|
|
38
38
|
search?: string | undefined;
|
|
39
|
-
page
|
|
39
|
+
page?: number | undefined;
|
|
40
40
|
pageSize: number;
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -48,7 +48,7 @@ export const ListDomainsRequest$outboundSchema: z.ZodType<
|
|
|
48
48
|
> = z.object({
|
|
49
49
|
archived: z.boolean().default(false),
|
|
50
50
|
search: z.string().optional(),
|
|
51
|
-
page: z.number().
|
|
51
|
+
page: z.number().optional(),
|
|
52
52
|
pageSize: z.number().default(50),
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -278,7 +278,7 @@ export type ResponseBodyPaymentProcessor = ClosedEnum<
|
|
|
278
278
|
|
|
279
279
|
export type ResponseBodySale = {
|
|
280
280
|
/**
|
|
281
|
-
* The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `
|
|
281
|
+
* The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1580` JPY). Learn more: https://d.to/currency
|
|
282
282
|
*/
|
|
283
283
|
amount: number;
|
|
284
284
|
/**
|
|
@@ -22,7 +22,7 @@ export type ListFoldersRequest = {
|
|
|
22
22
|
/** @internal */
|
|
23
23
|
export type ListFoldersRequest$Outbound = {
|
|
24
24
|
search?: string | undefined;
|
|
25
|
-
page
|
|
25
|
+
page?: number | undefined;
|
|
26
26
|
pageSize: number;
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -33,7 +33,7 @@ export const ListFoldersRequest$outboundSchema: z.ZodType<
|
|
|
33
33
|
ListFoldersRequest
|
|
34
34
|
> = z.object({
|
|
35
35
|
search: z.string().optional(),
|
|
36
|
-
page: z.number().
|
|
36
|
+
page: z.number().optional(),
|
|
37
37
|
pageSize: z.number().default(50),
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -68,6 +68,10 @@ export type ListPartnersQueryParamSortOrder = ClosedEnum<
|
|
|
68
68
|
>;
|
|
69
69
|
|
|
70
70
|
export type ListPartnersRequest = {
|
|
71
|
+
/**
|
|
72
|
+
* A filter on the list based on the partner's `groupId` field.
|
|
73
|
+
*/
|
|
74
|
+
groupId?: string | undefined;
|
|
71
75
|
/**
|
|
72
76
|
* A filter on the list based on the partner's `status` field.
|
|
73
77
|
*/
|
|
@@ -106,6 +110,19 @@ export type ListPartnersRequest = {
|
|
|
106
110
|
pageSize?: number | undefined;
|
|
107
111
|
};
|
|
108
112
|
|
|
113
|
+
/**
|
|
114
|
+
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|
|
115
|
+
*/
|
|
116
|
+
export const DefaultPayoutMethod = {
|
|
117
|
+
Connect: "connect",
|
|
118
|
+
Stablecoin: "stablecoin",
|
|
119
|
+
Paypal: "paypal",
|
|
120
|
+
} as const;
|
|
121
|
+
/**
|
|
122
|
+
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|
|
123
|
+
*/
|
|
124
|
+
export type DefaultPayoutMethod = ClosedEnum<typeof DefaultPayoutMethod>;
|
|
125
|
+
|
|
109
126
|
/**
|
|
110
127
|
* The status of the partner's enrollment in the program.
|
|
111
128
|
*/
|
|
@@ -294,6 +311,40 @@ export type ReferralFormData = {
|
|
|
294
311
|
>;
|
|
295
312
|
};
|
|
296
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Preset reason when the application was rejected.
|
|
316
|
+
*/
|
|
317
|
+
export const ListPartnersRejectionReason = {
|
|
318
|
+
NeedsMoreDetail: "needsMoreDetail",
|
|
319
|
+
DoesNotMeetRequirements: "doesNotMeetRequirements",
|
|
320
|
+
NotTheRightFit: "notTheRightFit",
|
|
321
|
+
Other: "other",
|
|
322
|
+
} as const;
|
|
323
|
+
/**
|
|
324
|
+
* Preset reason when the application was rejected.
|
|
325
|
+
*/
|
|
326
|
+
export type ListPartnersRejectionReason = ClosedEnum<
|
|
327
|
+
typeof ListPartnersRejectionReason
|
|
328
|
+
>;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Linked program application, including review outcome when applicable.
|
|
332
|
+
*/
|
|
333
|
+
export type Application = {
|
|
334
|
+
/**
|
|
335
|
+
* Preset reason when the application was rejected.
|
|
336
|
+
*/
|
|
337
|
+
rejectionReason: ListPartnersRejectionReason | null;
|
|
338
|
+
/**
|
|
339
|
+
* Free-form note when the application was rejected.
|
|
340
|
+
*/
|
|
341
|
+
rejectionNote: string | null;
|
|
342
|
+
/**
|
|
343
|
+
* When the application was approved or rejected.
|
|
344
|
+
*/
|
|
345
|
+
reviewedAt: string | null;
|
|
346
|
+
};
|
|
347
|
+
|
|
297
348
|
export type ListPartnersResponseBody = {
|
|
298
349
|
/**
|
|
299
350
|
* The partner's unique ID on Dub.
|
|
@@ -323,6 +374,10 @@ export type ListPartnersResponseBody = {
|
|
|
323
374
|
* The partner's country (required for tax purposes).
|
|
324
375
|
*/
|
|
325
376
|
country: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|
|
379
|
+
*/
|
|
380
|
+
defaultPayoutMethod: DefaultPayoutMethod | null;
|
|
326
381
|
/**
|
|
327
382
|
* The partner's PayPal email (for receiving payouts via PayPal).
|
|
328
383
|
*/
|
|
@@ -385,6 +440,10 @@ export type ListPartnersResponseBody = {
|
|
|
385
440
|
*/
|
|
386
441
|
bannedReason?: BannedReason | null | undefined;
|
|
387
442
|
referralFormData?: ReferralFormData | null | undefined;
|
|
443
|
+
/**
|
|
444
|
+
* Linked program application, including review outcome when applicable.
|
|
445
|
+
*/
|
|
446
|
+
application?: Application | null | undefined;
|
|
388
447
|
/**
|
|
389
448
|
* The total number of clicks on the partner's links
|
|
390
449
|
*/
|
|
@@ -476,6 +535,7 @@ export const ListPartnersQueryParamSortOrder$outboundSchema: z.ZodNativeEnum<
|
|
|
476
535
|
|
|
477
536
|
/** @internal */
|
|
478
537
|
export type ListPartnersRequest$Outbound = {
|
|
538
|
+
groupId?: string | undefined;
|
|
479
539
|
status?: string | undefined;
|
|
480
540
|
country?: string | undefined;
|
|
481
541
|
sortBy: string;
|
|
@@ -483,7 +543,7 @@ export type ListPartnersRequest$Outbound = {
|
|
|
483
543
|
email?: string | undefined;
|
|
484
544
|
tenantId?: string | undefined;
|
|
485
545
|
search?: string | undefined;
|
|
486
|
-
page
|
|
546
|
+
page?: number | undefined;
|
|
487
547
|
pageSize: number;
|
|
488
548
|
};
|
|
489
549
|
|
|
@@ -493,6 +553,7 @@ export const ListPartnersRequest$outboundSchema: z.ZodType<
|
|
|
493
553
|
z.ZodTypeDef,
|
|
494
554
|
ListPartnersRequest
|
|
495
555
|
> = z.object({
|
|
556
|
+
groupId: z.string().optional(),
|
|
496
557
|
status: ListPartnersQueryParamStatus$outboundSchema.optional(),
|
|
497
558
|
country: z.string().optional(),
|
|
498
559
|
sortBy: ListPartnersQueryParamSortBy$outboundSchema.default(
|
|
@@ -502,7 +563,7 @@ export const ListPartnersRequest$outboundSchema: z.ZodType<
|
|
|
502
563
|
email: z.string().optional(),
|
|
503
564
|
tenantId: z.string().optional(),
|
|
504
565
|
search: z.string().optional(),
|
|
505
|
-
page: z.number().
|
|
566
|
+
page: z.number().optional(),
|
|
506
567
|
pageSize: z.number().default(100),
|
|
507
568
|
});
|
|
508
569
|
|
|
@@ -514,6 +575,11 @@ export function listPartnersRequestToJSON(
|
|
|
514
575
|
);
|
|
515
576
|
}
|
|
516
577
|
|
|
578
|
+
/** @internal */
|
|
579
|
+
export const DefaultPayoutMethod$inboundSchema: z.ZodNativeEnum<
|
|
580
|
+
typeof DefaultPayoutMethod
|
|
581
|
+
> = z.nativeEnum(DefaultPayoutMethod);
|
|
582
|
+
|
|
517
583
|
/** @internal */
|
|
518
584
|
export const ListPartnersStatus$inboundSchema: z.ZodNativeEnum<
|
|
519
585
|
typeof ListPartnersStatus
|
|
@@ -849,6 +915,32 @@ export function referralFormDataFromJSON(
|
|
|
849
915
|
);
|
|
850
916
|
}
|
|
851
917
|
|
|
918
|
+
/** @internal */
|
|
919
|
+
export const ListPartnersRejectionReason$inboundSchema: z.ZodNativeEnum<
|
|
920
|
+
typeof ListPartnersRejectionReason
|
|
921
|
+
> = z.nativeEnum(ListPartnersRejectionReason);
|
|
922
|
+
|
|
923
|
+
/** @internal */
|
|
924
|
+
export const Application$inboundSchema: z.ZodType<
|
|
925
|
+
Application,
|
|
926
|
+
z.ZodTypeDef,
|
|
927
|
+
unknown
|
|
928
|
+
> = z.object({
|
|
929
|
+
rejectionReason: z.nullable(ListPartnersRejectionReason$inboundSchema),
|
|
930
|
+
rejectionNote: z.nullable(z.string()),
|
|
931
|
+
reviewedAt: z.nullable(z.string()),
|
|
932
|
+
});
|
|
933
|
+
|
|
934
|
+
export function applicationFromJSON(
|
|
935
|
+
jsonString: string,
|
|
936
|
+
): SafeParseResult<Application, SDKValidationError> {
|
|
937
|
+
return safeParse(
|
|
938
|
+
jsonString,
|
|
939
|
+
(x) => Application$inboundSchema.parse(JSON.parse(x)),
|
|
940
|
+
`Failed to parse 'Application' from JSON`,
|
|
941
|
+
);
|
|
942
|
+
}
|
|
943
|
+
|
|
852
944
|
/** @internal */
|
|
853
945
|
export const ListPartnersResponseBody$inboundSchema: z.ZodType<
|
|
854
946
|
ListPartnersResponseBody,
|
|
@@ -862,6 +954,7 @@ export const ListPartnersResponseBody$inboundSchema: z.ZodType<
|
|
|
862
954
|
image: z.nullable(z.string()),
|
|
863
955
|
description: z.nullable(z.string()).optional(),
|
|
864
956
|
country: z.nullable(z.string()),
|
|
957
|
+
defaultPayoutMethod: z.nullable(DefaultPayoutMethod$inboundSchema),
|
|
865
958
|
paypalEmail: z.nullable(z.string()),
|
|
866
959
|
stripeConnectId: z.nullable(z.string()),
|
|
867
960
|
payoutsEnabledAt: z.nullable(z.string()),
|
|
@@ -883,6 +976,7 @@ export const ListPartnersResponseBody$inboundSchema: z.ZodType<
|
|
|
883
976
|
bannedReason: z.nullable(BannedReason$inboundSchema).optional(),
|
|
884
977
|
referralFormData: z.nullable(z.lazy(() => ReferralFormData$inboundSchema))
|
|
885
978
|
.optional(),
|
|
979
|
+
application: z.nullable(z.lazy(() => Application$inboundSchema)).optional(),
|
|
886
980
|
totalClicks: z.number().default(0),
|
|
887
981
|
totalLeads: z.number().default(0),
|
|
888
982
|
totalConversions: z.number().default(0),
|
|
@@ -115,6 +115,21 @@ export const Method = {
|
|
|
115
115
|
} as const;
|
|
116
116
|
export type Method = ClosedEnum<typeof Method>;
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|
|
120
|
+
*/
|
|
121
|
+
export const ListPayoutsDefaultPayoutMethod = {
|
|
122
|
+
Connect: "connect",
|
|
123
|
+
Stablecoin: "stablecoin",
|
|
124
|
+
Paypal: "paypal",
|
|
125
|
+
} as const;
|
|
126
|
+
/**
|
|
127
|
+
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|
|
128
|
+
*/
|
|
129
|
+
export type ListPayoutsDefaultPayoutMethod = ClosedEnum<
|
|
130
|
+
typeof ListPayoutsDefaultPayoutMethod
|
|
131
|
+
>;
|
|
132
|
+
|
|
118
133
|
export type ListPayoutsPartner = {
|
|
119
134
|
/**
|
|
120
135
|
* The partner's unique ID on Dub.
|
|
@@ -132,6 +147,10 @@ export type ListPayoutsPartner = {
|
|
|
132
147
|
* The partner's avatar image.
|
|
133
148
|
*/
|
|
134
149
|
image: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|
|
152
|
+
*/
|
|
153
|
+
defaultPayoutMethod: ListPayoutsDefaultPayoutMethod | null;
|
|
135
154
|
/**
|
|
136
155
|
* The date when the partner enabled payouts.
|
|
137
156
|
*/
|
|
@@ -167,6 +186,7 @@ export type ListPayoutsResponseBody = {
|
|
|
167
186
|
periodStart: string | null;
|
|
168
187
|
periodEnd: string | null;
|
|
169
188
|
createdAt: string;
|
|
189
|
+
updatedAt?: string | undefined;
|
|
170
190
|
initiatedAt: string | null;
|
|
171
191
|
paidAt: string | null;
|
|
172
192
|
failureReason?: string | null | undefined;
|
|
@@ -200,7 +220,7 @@ export type ListPayoutsRequest$Outbound = {
|
|
|
200
220
|
invoiceId?: string | undefined;
|
|
201
221
|
sortBy: string;
|
|
202
222
|
sortOrder: string;
|
|
203
|
-
page
|
|
223
|
+
page?: number | undefined;
|
|
204
224
|
pageSize: number;
|
|
205
225
|
};
|
|
206
226
|
|
|
@@ -216,7 +236,7 @@ export const ListPayoutsRequest$outboundSchema: z.ZodType<
|
|
|
216
236
|
invoiceId: z.string().optional(),
|
|
217
237
|
sortBy: ListPayoutsQueryParamSortBy$outboundSchema.default("amount"),
|
|
218
238
|
sortOrder: ListPayoutsQueryParamSortOrder$outboundSchema.default("desc"),
|
|
219
|
-
page: z.number().
|
|
239
|
+
page: z.number().optional(),
|
|
220
240
|
pageSize: z.number().default(100),
|
|
221
241
|
});
|
|
222
242
|
|
|
@@ -242,6 +262,11 @@ export const ListPayoutsMode$inboundSchema: z.ZodNativeEnum<
|
|
|
242
262
|
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
243
263
|
.nativeEnum(Method);
|
|
244
264
|
|
|
265
|
+
/** @internal */
|
|
266
|
+
export const ListPayoutsDefaultPayoutMethod$inboundSchema: z.ZodNativeEnum<
|
|
267
|
+
typeof ListPayoutsDefaultPayoutMethod
|
|
268
|
+
> = z.nativeEnum(ListPayoutsDefaultPayoutMethod);
|
|
269
|
+
|
|
245
270
|
/** @internal */
|
|
246
271
|
export const ListPayoutsPartner$inboundSchema: z.ZodType<
|
|
247
272
|
ListPayoutsPartner,
|
|
@@ -252,6 +277,7 @@ export const ListPayoutsPartner$inboundSchema: z.ZodType<
|
|
|
252
277
|
name: z.string(),
|
|
253
278
|
email: z.nullable(z.string()),
|
|
254
279
|
image: z.nullable(z.string()),
|
|
280
|
+
defaultPayoutMethod: z.nullable(ListPayoutsDefaultPayoutMethod$inboundSchema),
|
|
255
281
|
payoutsEnabledAt: z.nullable(z.string()),
|
|
256
282
|
country: z.nullable(z.string()),
|
|
257
283
|
groupId: z.nullable(z.string()).optional(),
|
|
@@ -302,6 +328,7 @@ export const ListPayoutsResponseBody$inboundSchema: z.ZodType<
|
|
|
302
328
|
periodStart: z.nullable(z.string()),
|
|
303
329
|
periodEnd: z.nullable(z.string()),
|
|
304
330
|
createdAt: z.string(),
|
|
331
|
+
updatedAt: z.string().optional(),
|
|
305
332
|
initiatedAt: z.nullable(z.string()),
|
|
306
333
|
paidAt: z.nullable(z.string()),
|
|
307
334
|
failureReason: z.nullable(z.string()).optional(),
|
|
@@ -142,6 +142,10 @@ export type RejectBountySubmissionResponseBody = {
|
|
|
142
142
|
* The note for rejecting the submission
|
|
143
143
|
*/
|
|
144
144
|
rejectionNote: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* The period number for this submission (1-indexed)
|
|
147
|
+
*/
|
|
148
|
+
periodNumber: number;
|
|
145
149
|
};
|
|
146
150
|
|
|
147
151
|
/** @internal */
|
|
@@ -257,6 +261,7 @@ export const RejectBountySubmissionResponseBody$inboundSchema: z.ZodType<
|
|
|
257
261
|
reviewedAt: z.nullable(z.string()),
|
|
258
262
|
rejectionReason: z.nullable(z.string()),
|
|
259
263
|
rejectionNote: z.nullable(z.string()),
|
|
264
|
+
periodNumber: z.number().int(),
|
|
260
265
|
});
|
|
261
266
|
|
|
262
267
|
export function rejectBountySubmissionResponseBodyFromJSON(
|