@polar-sh/sdk 0.41.0 → 0.41.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/dist/commonjs/funcs/customerPortalOrganizationsGet.d.ts +2 -2
- package/dist/commonjs/funcs/customerPortalOrganizationsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrganizationsGet.js +2 -2
- package/dist/commonjs/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +1 -0
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/benefitcustomsubscriber.d.ts +3 -3
- package/dist/commonjs/models/components/benefitcustomsubscriber.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitcustomsubscriber.js +3 -3
- package/dist/commonjs/models/components/benefitcustomsubscriber.js.map +1 -1
- package/dist/commonjs/models/components/benefitcycledevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitcycledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitcycledevent.js +4 -0
- package/dist/commonjs/models/components/benefitcycledevent.js.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordsubscriber.d.ts +3 -3
- package/dist/commonjs/models/components/benefitdiscordsubscriber.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordsubscriber.js +3 -3
- package/dist/commonjs/models/components/benefitdiscordsubscriber.js.map +1 -1
- package/dist/commonjs/models/components/benefitdownloadablessubscriber.d.ts +3 -3
- package/dist/commonjs/models/components/benefitdownloadablessubscriber.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitdownloadablessubscriber.js +3 -3
- package/dist/commonjs/models/components/benefitdownloadablessubscriber.js.map +1 -1
- package/dist/commonjs/models/components/benefitgithubrepositorysubscriber.d.ts +3 -3
- package/dist/commonjs/models/components/benefitgithubrepositorysubscriber.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgithubrepositorysubscriber.js +3 -3
- package/dist/commonjs/models/components/benefitgithubrepositorysubscriber.js.map +1 -1
- package/dist/commonjs/models/components/benefitgrantedevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitgrantedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrantedevent.js +4 -0
- package/dist/commonjs/models/components/benefitgrantedevent.js.map +1 -1
- package/dist/commonjs/models/components/benefitlicensekeyssubscriber.d.ts +3 -3
- package/dist/commonjs/models/components/benefitlicensekeyssubscriber.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitlicensekeyssubscriber.js +3 -3
- package/dist/commonjs/models/components/benefitlicensekeyssubscriber.js.map +1 -1
- package/dist/commonjs/models/components/benefitmetercreditsubscriber.d.ts +3 -3
- package/dist/commonjs/models/components/benefitmetercreditsubscriber.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitmetercreditsubscriber.js +3 -3
- package/dist/commonjs/models/components/benefitmetercreditsubscriber.js.map +1 -1
- package/dist/commonjs/models/components/benefitrevokedevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitrevokedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitrevokedevent.js +4 -0
- package/dist/commonjs/models/components/benefitrevokedevent.js.map +1 -1
- package/dist/commonjs/models/components/benefitsubscriberorganization.d.ts +65 -0
- package/dist/commonjs/models/components/benefitsubscriberorganization.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitsubscriberorganization.js +101 -0
- package/dist/commonjs/models/components/benefitsubscriberorganization.js.map +1 -0
- package/dist/commonjs/models/components/benefitupdatedevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitupdatedevent.js +4 -0
- package/dist/commonjs/models/components/benefitupdatedevent.js.map +1 -1
- package/dist/commonjs/models/components/checkoutorganization.d.ts +65 -0
- package/dist/commonjs/models/components/checkoutorganization.d.ts.map +1 -0
- package/dist/commonjs/models/components/checkoutorganization.js +101 -0
- package/dist/commonjs/models/components/checkoutorganization.js.map +1 -0
- package/dist/commonjs/models/components/checkoutpublic.d.ts +3 -3
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +3 -3
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +3 -3
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +3 -3
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/customercreatedevent.d.ts +5 -0
- package/dist/commonjs/models/components/customercreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/customercreatedevent.js +4 -0
- package/dist/commonjs/models/components/customercreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/customerdeletedevent.d.ts +5 -0
- package/dist/commonjs/models/components/customerdeletedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerdeletedevent.js +4 -0
- package/dist/commonjs/models/components/customerdeletedevent.js.map +1 -1
- package/dist/commonjs/models/components/customerorderproduct.d.ts +3 -3
- package/dist/commonjs/models/components/customerorderproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorderproduct.js +3 -3
- package/dist/commonjs/models/components/customerorderproduct.js.map +1 -1
- package/dist/commonjs/models/components/customerorganization.d.ts +38 -9
- package/dist/commonjs/models/components/customerorganization.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorganization.js +34 -6
- package/dist/commonjs/models/components/customerorganization.js.map +1 -1
- package/dist/commonjs/models/components/customerorganizationdata.d.ts +36 -0
- package/dist/commonjs/models/components/customerorganizationdata.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerorganizationdata.js +73 -0
- package/dist/commonjs/models/components/customerorganizationdata.js.map +1 -0
- package/dist/commonjs/models/components/customersubscriptionproduct.d.ts +3 -3
- package/dist/commonjs/models/components/customersubscriptionproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscriptionproduct.js +3 -3
- package/dist/commonjs/models/components/customersubscriptionproduct.js.map +1 -1
- package/dist/commonjs/models/components/customerupdatedevent.d.ts +5 -0
- package/dist/commonjs/models/components/customerupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdatedevent.js +4 -0
- package/dist/commonjs/models/components/customerupdatedevent.js.map +1 -1
- package/dist/commonjs/models/components/metercreditevent.d.ts +5 -0
- package/dist/commonjs/models/components/metercreditevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/metercreditevent.js +4 -0
- package/dist/commonjs/models/components/metercreditevent.js.map +1 -1
- package/dist/commonjs/models/components/meterresetevent.d.ts +5 -0
- package/dist/commonjs/models/components/meterresetevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/meterresetevent.js +4 -0
- package/dist/commonjs/models/components/meterresetevent.js.map +1 -1
- package/dist/commonjs/models/components/orderpaidevent.d.ts +5 -0
- package/dist/commonjs/models/components/orderpaidevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderpaidevent.js +4 -0
- package/dist/commonjs/models/components/orderpaidevent.js.map +1 -1
- package/dist/commonjs/models/components/orderrefundedevent.d.ts +5 -0
- package/dist/commonjs/models/components/orderrefundedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderrefundedevent.js +4 -0
- package/dist/commonjs/models/components/orderrefundedevent.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +9 -1
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +9 -0
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/organizationstatus.d.ts +6 -3
- package/dist/commonjs/models/components/organizationstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationstatus.js +2 -1
- package/dist/commonjs/models/components/organizationstatus.js.map +1 -1
- package/dist/commonjs/models/components/subscriptioncycledevent.d.ts +5 -0
- package/dist/commonjs/models/components/subscriptioncycledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptioncycledevent.js +4 -0
- package/dist/commonjs/models/components/subscriptioncycledevent.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.d.ts +5 -0
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.js +4 -0
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionrevokedevent.d.ts +5 -0
- package/dist/commonjs/models/components/subscriptionrevokedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionrevokedevent.js +4 -0
- package/dist/commonjs/models/components/subscriptionrevokedevent.js.map +1 -1
- package/dist/commonjs/models/components/userevent.d.ts +5 -0
- package/dist/commonjs/models/components/userevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/userevent.js +4 -0
- package/dist/commonjs/models/components/userevent.js.map +1 -1
- package/dist/commonjs/models/operations/eventslist.d.ts +6 -1
- package/dist/commonjs/models/operations/eventslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/eventslist.js +2 -0
- package/dist/commonjs/models/operations/eventslist.js.map +1 -1
- package/dist/commonjs/sdk/polarorganizations.d.ts +2 -2
- package/dist/commonjs/sdk/polarorganizations.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalOrganizationsGet.d.ts +2 -2
- package/dist/esm/funcs/customerPortalOrganizationsGet.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalOrganizationsGet.js +2 -2
- package/dist/esm/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/dist/esm/funcs/eventsList.js +1 -0
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/benefitcustomsubscriber.d.ts +3 -3
- package/dist/esm/models/components/benefitcustomsubscriber.d.ts.map +1 -1
- package/dist/esm/models/components/benefitcustomsubscriber.js +3 -3
- package/dist/esm/models/components/benefitcustomsubscriber.js.map +1 -1
- package/dist/esm/models/components/benefitcycledevent.d.ts +5 -0
- package/dist/esm/models/components/benefitcycledevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitcycledevent.js +4 -0
- package/dist/esm/models/components/benefitcycledevent.js.map +1 -1
- package/dist/esm/models/components/benefitdiscordsubscriber.d.ts +3 -3
- package/dist/esm/models/components/benefitdiscordsubscriber.d.ts.map +1 -1
- package/dist/esm/models/components/benefitdiscordsubscriber.js +3 -3
- package/dist/esm/models/components/benefitdiscordsubscriber.js.map +1 -1
- package/dist/esm/models/components/benefitdownloadablessubscriber.d.ts +3 -3
- package/dist/esm/models/components/benefitdownloadablessubscriber.d.ts.map +1 -1
- package/dist/esm/models/components/benefitdownloadablessubscriber.js +3 -3
- package/dist/esm/models/components/benefitdownloadablessubscriber.js.map +1 -1
- package/dist/esm/models/components/benefitgithubrepositorysubscriber.d.ts +3 -3
- package/dist/esm/models/components/benefitgithubrepositorysubscriber.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgithubrepositorysubscriber.js +3 -3
- package/dist/esm/models/components/benefitgithubrepositorysubscriber.js.map +1 -1
- package/dist/esm/models/components/benefitgrantedevent.d.ts +5 -0
- package/dist/esm/models/components/benefitgrantedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrantedevent.js +4 -0
- package/dist/esm/models/components/benefitgrantedevent.js.map +1 -1
- package/dist/esm/models/components/benefitlicensekeyssubscriber.d.ts +3 -3
- package/dist/esm/models/components/benefitlicensekeyssubscriber.d.ts.map +1 -1
- package/dist/esm/models/components/benefitlicensekeyssubscriber.js +3 -3
- package/dist/esm/models/components/benefitlicensekeyssubscriber.js.map +1 -1
- package/dist/esm/models/components/benefitmetercreditsubscriber.d.ts +3 -3
- package/dist/esm/models/components/benefitmetercreditsubscriber.d.ts.map +1 -1
- package/dist/esm/models/components/benefitmetercreditsubscriber.js +3 -3
- package/dist/esm/models/components/benefitmetercreditsubscriber.js.map +1 -1
- package/dist/esm/models/components/benefitrevokedevent.d.ts +5 -0
- package/dist/esm/models/components/benefitrevokedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitrevokedevent.js +4 -0
- package/dist/esm/models/components/benefitrevokedevent.js.map +1 -1
- package/dist/esm/models/components/benefitsubscriberorganization.d.ts +65 -0
- package/dist/esm/models/components/benefitsubscriberorganization.d.ts.map +1 -0
- package/dist/esm/models/components/benefitsubscriberorganization.js +63 -0
- package/dist/esm/models/components/benefitsubscriberorganization.js.map +1 -0
- package/dist/esm/models/components/benefitupdatedevent.d.ts +5 -0
- package/dist/esm/models/components/benefitupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitupdatedevent.js +4 -0
- package/dist/esm/models/components/benefitupdatedevent.js.map +1 -1
- package/dist/esm/models/components/checkoutorganization.d.ts +65 -0
- package/dist/esm/models/components/checkoutorganization.d.ts.map +1 -0
- package/dist/esm/models/components/checkoutorganization.js +63 -0
- package/dist/esm/models/components/checkoutorganization.js.map +1 -0
- package/dist/esm/models/components/checkoutpublic.d.ts +3 -3
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +3 -3
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +3 -3
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +3 -3
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/customercreatedevent.d.ts +5 -0
- package/dist/esm/models/components/customercreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/customercreatedevent.js +4 -0
- package/dist/esm/models/components/customercreatedevent.js.map +1 -1
- package/dist/esm/models/components/customerdeletedevent.d.ts +5 -0
- package/dist/esm/models/components/customerdeletedevent.d.ts.map +1 -1
- package/dist/esm/models/components/customerdeletedevent.js +4 -0
- package/dist/esm/models/components/customerdeletedevent.js.map +1 -1
- package/dist/esm/models/components/customerorderproduct.d.ts +3 -3
- package/dist/esm/models/components/customerorderproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customerorderproduct.js +3 -3
- package/dist/esm/models/components/customerorderproduct.js.map +1 -1
- package/dist/esm/models/components/customerorganization.d.ts +38 -9
- package/dist/esm/models/components/customerorganization.d.ts.map +1 -1
- package/dist/esm/models/components/customerorganization.js +34 -6
- package/dist/esm/models/components/customerorganization.js.map +1 -1
- package/dist/esm/models/components/customerorganizationdata.d.ts +36 -0
- package/dist/esm/models/components/customerorganizationdata.d.ts.map +1 -0
- package/dist/esm/models/components/customerorganizationdata.js +35 -0
- package/dist/esm/models/components/customerorganizationdata.js.map +1 -0
- package/dist/esm/models/components/customersubscriptionproduct.d.ts +3 -3
- package/dist/esm/models/components/customersubscriptionproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscriptionproduct.js +3 -3
- package/dist/esm/models/components/customersubscriptionproduct.js.map +1 -1
- package/dist/esm/models/components/customerupdatedevent.d.ts +5 -0
- package/dist/esm/models/components/customerupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdatedevent.js +4 -0
- package/dist/esm/models/components/customerupdatedevent.js.map +1 -1
- package/dist/esm/models/components/metercreditevent.d.ts +5 -0
- package/dist/esm/models/components/metercreditevent.d.ts.map +1 -1
- package/dist/esm/models/components/metercreditevent.js +4 -0
- package/dist/esm/models/components/metercreditevent.js.map +1 -1
- package/dist/esm/models/components/meterresetevent.d.ts +5 -0
- package/dist/esm/models/components/meterresetevent.d.ts.map +1 -1
- package/dist/esm/models/components/meterresetevent.js +4 -0
- package/dist/esm/models/components/meterresetevent.js.map +1 -1
- package/dist/esm/models/components/orderpaidevent.d.ts +5 -0
- package/dist/esm/models/components/orderpaidevent.d.ts.map +1 -1
- package/dist/esm/models/components/orderpaidevent.js +4 -0
- package/dist/esm/models/components/orderpaidevent.js.map +1 -1
- package/dist/esm/models/components/orderrefundedevent.d.ts +5 -0
- package/dist/esm/models/components/orderrefundedevent.d.ts.map +1 -1
- package/dist/esm/models/components/orderrefundedevent.js +4 -0
- package/dist/esm/models/components/orderrefundedevent.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +9 -1
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +9 -0
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/organizationstatus.d.ts +6 -3
- package/dist/esm/models/components/organizationstatus.d.ts.map +1 -1
- package/dist/esm/models/components/organizationstatus.js +2 -1
- package/dist/esm/models/components/organizationstatus.js.map +1 -1
- package/dist/esm/models/components/subscriptioncycledevent.d.ts +5 -0
- package/dist/esm/models/components/subscriptioncycledevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptioncycledevent.js +4 -0
- package/dist/esm/models/components/subscriptioncycledevent.js.map +1 -1
- package/dist/esm/models/components/subscriptionproductupdatedevent.d.ts +5 -0
- package/dist/esm/models/components/subscriptionproductupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionproductupdatedevent.js +4 -0
- package/dist/esm/models/components/subscriptionproductupdatedevent.js.map +1 -1
- package/dist/esm/models/components/subscriptionrevokedevent.d.ts +5 -0
- package/dist/esm/models/components/subscriptionrevokedevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionrevokedevent.js +4 -0
- package/dist/esm/models/components/subscriptionrevokedevent.js.map +1 -1
- package/dist/esm/models/components/userevent.d.ts +5 -0
- package/dist/esm/models/components/userevent.d.ts.map +1 -1
- package/dist/esm/models/components/userevent.js +4 -0
- package/dist/esm/models/components/userevent.js.map +1 -1
- package/dist/esm/models/operations/eventslist.d.ts +6 -1
- package/dist/esm/models/operations/eventslist.d.ts.map +1 -1
- package/dist/esm/models/operations/eventslist.js +2 -0
- package/dist/esm/models/operations/eventslist.js.map +1 -1
- package/dist/esm/sdk/polarorganizations.d.ts +2 -2
- package/dist/esm/sdk/polarorganizations.d.ts.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customerPortalOrganizationsGet.ts +7 -7
- package/src/funcs/eventsList.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/benefitcustomsubscriber.ts +9 -9
- package/src/models/components/benefitcycledevent.ts +9 -0
- package/src/models/components/benefitdiscordsubscriber.ts +9 -9
- package/src/models/components/benefitdownloadablessubscriber.ts +9 -9
- package/src/models/components/benefitgithubrepositorysubscriber.ts +9 -9
- package/src/models/components/benefitgrantedevent.ts +9 -0
- package/src/models/components/benefitlicensekeyssubscriber.ts +9 -9
- package/src/models/components/benefitmetercreditsubscriber.ts +9 -9
- package/src/models/components/benefitrevokedevent.ts +9 -0
- package/src/models/components/benefitsubscriberorganization.ts +141 -0
- package/src/models/components/benefitupdatedevent.ts +9 -0
- package/src/models/components/checkoutorganization.ts +139 -0
- package/src/models/components/checkoutpublic.ts +10 -10
- package/src/models/components/checkoutpublicconfirmed.ts +10 -10
- package/src/models/components/customercreatedevent.ts +9 -0
- package/src/models/components/customerdeletedevent.ts +9 -0
- package/src/models/components/customerorderproduct.ts +10 -10
- package/src/models/components/customerorganization.ts +76 -22
- package/src/models/components/customerorganizationdata.ts +85 -0
- package/src/models/components/customersubscriptionproduct.ts +10 -10
- package/src/models/components/customerupdatedevent.ts +9 -0
- package/src/models/components/metercreditevent.ts +9 -0
- package/src/models/components/meterresetevent.ts +9 -0
- package/src/models/components/orderpaidevent.ts +9 -0
- package/src/models/components/orderrefundedevent.ts +9 -0
- package/src/models/components/organization.ts +21 -1
- package/src/models/components/organizationstatus.ts +2 -1
- package/src/models/components/subscriptioncycledevent.ts +9 -0
- package/src/models/components/subscriptionproductupdatedevent.ts +9 -0
- package/src/models/components/subscriptionrevokedevent.ts +9 -0
- package/src/models/components/userevent.ts +9 -0
- package/src/models/operations/eventslist.ts +8 -1
- package/src/sdk/polarorganizations.ts +2 -2
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
BenefitPublic$Outbound,
|
|
14
14
|
BenefitPublic$outboundSchema,
|
|
15
15
|
} from "./benefitpublic.js";
|
|
16
|
+
import {
|
|
17
|
+
CustomerOrganization,
|
|
18
|
+
CustomerOrganization$inboundSchema,
|
|
19
|
+
CustomerOrganization$Outbound,
|
|
20
|
+
CustomerOrganization$outboundSchema,
|
|
21
|
+
} from "./customerorganization.js";
|
|
16
22
|
import {
|
|
17
23
|
LegacyRecurringProductPrice,
|
|
18
24
|
LegacyRecurringProductPrice$inboundSchema,
|
|
19
25
|
LegacyRecurringProductPrice$Outbound,
|
|
20
26
|
LegacyRecurringProductPrice$outboundSchema,
|
|
21
27
|
} from "./legacyrecurringproductprice.js";
|
|
22
|
-
import {
|
|
23
|
-
Organization,
|
|
24
|
-
Organization$inboundSchema,
|
|
25
|
-
Organization$Outbound,
|
|
26
|
-
Organization$outboundSchema,
|
|
27
|
-
} from "./organization.js";
|
|
28
28
|
import {
|
|
29
29
|
ProductMediaFileRead,
|
|
30
30
|
ProductMediaFileRead$inboundSchema,
|
|
@@ -113,7 +113,7 @@ export type CustomerSubscriptionProduct = {
|
|
|
113
113
|
* List of medias associated to the product.
|
|
114
114
|
*/
|
|
115
115
|
medias: Array<ProductMediaFileRead>;
|
|
116
|
-
organization:
|
|
116
|
+
organization: CustomerOrganization;
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/** @internal */
|
|
@@ -203,7 +203,7 @@ export const CustomerSubscriptionProduct$inboundSchema: z.ZodType<
|
|
|
203
203
|
),
|
|
204
204
|
benefits: z.array(BenefitPublic$inboundSchema),
|
|
205
205
|
medias: z.array(ProductMediaFileRead$inboundSchema),
|
|
206
|
-
organization:
|
|
206
|
+
organization: CustomerOrganization$inboundSchema,
|
|
207
207
|
}).transform((v) => {
|
|
208
208
|
return remap$(v, {
|
|
209
209
|
"created_at": "createdAt",
|
|
@@ -235,7 +235,7 @@ export type CustomerSubscriptionProduct$Outbound = {
|
|
|
235
235
|
prices: Array<LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound>;
|
|
236
236
|
benefits: Array<BenefitPublic$Outbound>;
|
|
237
237
|
medias: Array<ProductMediaFileRead$Outbound>;
|
|
238
|
-
organization:
|
|
238
|
+
organization: CustomerOrganization$Outbound;
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
/** @internal */
|
|
@@ -264,7 +264,7 @@ export const CustomerSubscriptionProduct$outboundSchema: z.ZodType<
|
|
|
264
264
|
),
|
|
265
265
|
benefits: z.array(BenefitPublic$outboundSchema),
|
|
266
266
|
medias: z.array(ProductMediaFileRead$outboundSchema),
|
|
267
|
-
organization:
|
|
267
|
+
organization: CustomerOrganization$outboundSchema,
|
|
268
268
|
}).transform((v) => {
|
|
269
269
|
return remap$(v, {
|
|
270
270
|
createdAt: "created_at",
|
|
@@ -52,6 +52,10 @@ export type CustomerUpdatedEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const CustomerUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("customer.updated"),
|
|
81
86
|
metadata: CustomerUpdatedMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const CustomerUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type CustomerUpdatedEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "customer.updated";
|
|
102
109
|
metadata: CustomerUpdatedMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const CustomerUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("customer.updated"),
|
|
120
128
|
metadata: CustomerUpdatedMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const CustomerUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -52,6 +52,10 @@ export type MeterCreditEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const MeterCreditEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("meter.credited"),
|
|
81
86
|
metadata: MeterCreditedMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const MeterCreditEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type MeterCreditEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "meter.credited";
|
|
102
109
|
metadata: MeterCreditedMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const MeterCreditEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("meter.credited"),
|
|
120
128
|
metadata: MeterCreditedMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const MeterCreditEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -52,6 +52,10 @@ export type MeterResetEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const MeterResetEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("meter.reset"),
|
|
81
86
|
metadata: MeterResetMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const MeterResetEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type MeterResetEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "meter.reset";
|
|
102
109
|
metadata: MeterResetMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const MeterResetEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("meter.reset"),
|
|
120
128
|
metadata: MeterResetMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const MeterResetEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -52,6 +52,10 @@ export type OrderPaidEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const OrderPaidEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("order.paid"),
|
|
81
86
|
metadata: OrderPaidMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const OrderPaidEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type OrderPaidEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "order.paid";
|
|
102
109
|
metadata: OrderPaidMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const OrderPaidEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("order.paid"),
|
|
120
128
|
metadata: OrderPaidMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const OrderPaidEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -52,6 +52,10 @@ export type OrderRefundedEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const OrderRefundedEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("order.refunded"),
|
|
81
86
|
metadata: OrderRefundedMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const OrderRefundedEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type OrderRefundedEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "order.refunded";
|
|
102
109
|
metadata: OrderRefundedMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const OrderRefundedEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("order.refunded"),
|
|
120
128
|
metadata: OrderRefundedMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const OrderRefundedEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -42,6 +42,11 @@ import {
|
|
|
42
42
|
OrganizationSubscriptionSettings$Outbound,
|
|
43
43
|
OrganizationSubscriptionSettings$outboundSchema,
|
|
44
44
|
} from "./organizationsubscriptionsettings.js";
|
|
45
|
+
import {
|
|
46
|
+
SubscriptionProrationBehavior,
|
|
47
|
+
SubscriptionProrationBehavior$inboundSchema,
|
|
48
|
+
SubscriptionProrationBehavior$outboundSchema,
|
|
49
|
+
} from "./subscriptionprorationbehavior.js";
|
|
45
50
|
|
|
46
51
|
export type Organization = {
|
|
47
52
|
/**
|
|
@@ -53,7 +58,7 @@ export type Organization = {
|
|
|
53
58
|
*/
|
|
54
59
|
modifiedAt: Date | null;
|
|
55
60
|
/**
|
|
56
|
-
* The
|
|
61
|
+
* The ID of the object.
|
|
57
62
|
*/
|
|
58
63
|
id: string;
|
|
59
64
|
/**
|
|
@@ -68,6 +73,11 @@ export type Organization = {
|
|
|
68
73
|
* Avatar URL shown in checkout, customer portal, emails etc.
|
|
69
74
|
*/
|
|
70
75
|
avatarUrl: string | null;
|
|
76
|
+
prorationBehavior: SubscriptionProrationBehavior;
|
|
77
|
+
/**
|
|
78
|
+
* Whether customers can update their subscriptions from the customer portal.
|
|
79
|
+
*/
|
|
80
|
+
allowCustomerUpdates: boolean;
|
|
71
81
|
/**
|
|
72
82
|
* Public support email.
|
|
73
83
|
*/
|
|
@@ -108,6 +118,8 @@ export const Organization$inboundSchema: z.ZodType<
|
|
|
108
118
|
name: z.string(),
|
|
109
119
|
slug: z.string(),
|
|
110
120
|
avatar_url: z.nullable(z.string()),
|
|
121
|
+
proration_behavior: SubscriptionProrationBehavior$inboundSchema,
|
|
122
|
+
allow_customer_updates: z.boolean(),
|
|
111
123
|
email: z.nullable(z.string()),
|
|
112
124
|
website: z.nullable(z.string()),
|
|
113
125
|
socials: z.array(OrganizationSocialLink$inboundSchema),
|
|
@@ -124,6 +136,8 @@ export const Organization$inboundSchema: z.ZodType<
|
|
|
124
136
|
"created_at": "createdAt",
|
|
125
137
|
"modified_at": "modifiedAt",
|
|
126
138
|
"avatar_url": "avatarUrl",
|
|
139
|
+
"proration_behavior": "prorationBehavior",
|
|
140
|
+
"allow_customer_updates": "allowCustomerUpdates",
|
|
127
141
|
"details_submitted_at": "detailsSubmittedAt",
|
|
128
142
|
"feature_settings": "featureSettings",
|
|
129
143
|
"subscription_settings": "subscriptionSettings",
|
|
@@ -140,6 +154,8 @@ export type Organization$Outbound = {
|
|
|
140
154
|
name: string;
|
|
141
155
|
slug: string;
|
|
142
156
|
avatar_url: string | null;
|
|
157
|
+
proration_behavior: string;
|
|
158
|
+
allow_customer_updates: boolean;
|
|
143
159
|
email: string | null;
|
|
144
160
|
website: string | null;
|
|
145
161
|
socials: Array<OrganizationSocialLink$Outbound>;
|
|
@@ -163,6 +179,8 @@ export const Organization$outboundSchema: z.ZodType<
|
|
|
163
179
|
name: z.string(),
|
|
164
180
|
slug: z.string(),
|
|
165
181
|
avatarUrl: z.nullable(z.string()),
|
|
182
|
+
prorationBehavior: SubscriptionProrationBehavior$outboundSchema,
|
|
183
|
+
allowCustomerUpdates: z.boolean(),
|
|
166
184
|
email: z.nullable(z.string()),
|
|
167
185
|
website: z.nullable(z.string()),
|
|
168
186
|
socials: z.array(OrganizationSocialLink$outboundSchema),
|
|
@@ -177,6 +195,8 @@ export const Organization$outboundSchema: z.ZodType<
|
|
|
177
195
|
createdAt: "created_at",
|
|
178
196
|
modifiedAt: "modified_at",
|
|
179
197
|
avatarUrl: "avatar_url",
|
|
198
|
+
prorationBehavior: "proration_behavior",
|
|
199
|
+
allowCustomerUpdates: "allow_customer_updates",
|
|
180
200
|
detailsSubmittedAt: "details_submitted_at",
|
|
181
201
|
featureSettings: "feature_settings",
|
|
182
202
|
subscriptionSettings: "subscription_settings",
|
|
@@ -8,7 +8,8 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
export const OrganizationStatus = {
|
|
9
9
|
Created: "created",
|
|
10
10
|
OnboardingStarted: "onboarding_started",
|
|
11
|
-
|
|
11
|
+
InitialReview: "initial_review",
|
|
12
|
+
OngoingReview: "ongoing_review",
|
|
12
13
|
Denied: "denied",
|
|
13
14
|
Active: "active",
|
|
14
15
|
} as const;
|
|
@@ -52,6 +52,10 @@ export type SubscriptionCycledEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const SubscriptionCycledEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("subscription.cycled"),
|
|
81
86
|
metadata: SubscriptionCycledMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const SubscriptionCycledEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type SubscriptionCycledEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "subscription.cycled";
|
|
102
109
|
metadata: SubscriptionCycledMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const SubscriptionCycledEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("subscription.cycled"),
|
|
120
128
|
metadata: SubscriptionCycledMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const SubscriptionCycledEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -52,6 +52,10 @@ export type SubscriptionProductUpdatedEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const SubscriptionProductUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("subscription.product_updated"),
|
|
81
86
|
metadata: SubscriptionProductUpdatedMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const SubscriptionProductUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type SubscriptionProductUpdatedEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "subscription.product_updated";
|
|
102
109
|
metadata: SubscriptionProductUpdatedMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const SubscriptionProductUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("subscription.product_updated"),
|
|
120
128
|
metadata: SubscriptionProductUpdatedMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const SubscriptionProductUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -52,6 +52,10 @@ export type SubscriptionRevokedEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const SubscriptionRevokedEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
source: z.literal("system"),
|
|
80
85
|
name: z.literal("subscription.revoked"),
|
|
81
86
|
metadata: SubscriptionRevokedMetadata$inboundSchema,
|
|
@@ -85,6 +90,7 @@ export const SubscriptionRevokedEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type SubscriptionRevokedEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
source: "system";
|
|
101
108
|
name: "subscription.revoked";
|
|
102
109
|
metadata: SubscriptionRevokedMetadata$Outbound;
|
|
@@ -115,6 +122,7 @@ export const SubscriptionRevokedEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
source: z.literal("system"),
|
|
119
127
|
name: z.literal("subscription.revoked"),
|
|
120
128
|
metadata: SubscriptionRevokedMetadata$outboundSchema,
|
|
@@ -124,6 +132,7 @@ export const SubscriptionRevokedEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -52,6 +52,10 @@ export type UserEvent = {
|
|
|
52
52
|
* Number of direct child events linked to this event.
|
|
53
53
|
*/
|
|
54
54
|
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
55
59
|
/**
|
|
56
60
|
* The name of the event.
|
|
57
61
|
*/
|
|
@@ -76,6 +80,7 @@ export const UserEvent$inboundSchema: z.ZodType<
|
|
|
76
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
77
81
|
external_customer_id: z.nullable(z.string()),
|
|
78
82
|
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
79
84
|
name: z.string(),
|
|
80
85
|
source: z.literal("user"),
|
|
81
86
|
metadata: z.record(EventMetadataOutput$inboundSchema),
|
|
@@ -85,6 +90,7 @@ export const UserEvent$inboundSchema: z.ZodType<
|
|
|
85
90
|
"customer_id": "customerId",
|
|
86
91
|
"external_customer_id": "externalCustomerId",
|
|
87
92
|
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
@@ -97,6 +103,7 @@ export type UserEvent$Outbound = {
|
|
|
97
103
|
customer: Customer$Outbound | null;
|
|
98
104
|
external_customer_id: string | null;
|
|
99
105
|
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
100
107
|
name: string;
|
|
101
108
|
source: "user";
|
|
102
109
|
metadata: { [k: string]: EventMetadataOutput$Outbound };
|
|
@@ -115,6 +122,7 @@ export const UserEvent$outboundSchema: z.ZodType<
|
|
|
115
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
116
123
|
externalCustomerId: z.nullable(z.string()),
|
|
117
124
|
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
118
126
|
name: z.string(),
|
|
119
127
|
source: z.literal("user"),
|
|
120
128
|
metadata: z.record(EventMetadataOutput$outboundSchema),
|
|
@@ -124,6 +132,7 @@ export const UserEvent$outboundSchema: z.ZodType<
|
|
|
124
132
|
customerId: "customer_id",
|
|
125
133
|
externalCustomerId: "external_customer_id",
|
|
126
134
|
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -97,9 +97,13 @@ export type EventsListRequest = {
|
|
|
97
97
|
*/
|
|
98
98
|
query?: string | null | undefined;
|
|
99
99
|
/**
|
|
100
|
-
* Filter events by parent event ID. When not specified, returns root events only.
|
|
100
|
+
* Filter events by parent event ID when hierarchical is set to true. When not specified or null, returns root events only.
|
|
101
101
|
*/
|
|
102
102
|
parentId?: string | null | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* When true, filters by parent_id (root events if not specified). When false, returns all events regardless of hierarchy.
|
|
105
|
+
*/
|
|
106
|
+
hierarchical?: boolean | undefined;
|
|
103
107
|
/**
|
|
104
108
|
* Page number, defaults to 1.
|
|
105
109
|
*/
|
|
@@ -406,6 +410,7 @@ export const EventsListRequest$inboundSchema: z.ZodType<
|
|
|
406
410
|
).optional(),
|
|
407
411
|
query: z.nullable(z.string()).optional(),
|
|
408
412
|
parent_id: z.nullable(z.string()).optional(),
|
|
413
|
+
hierarchical: z.boolean().default(false),
|
|
409
414
|
page: z.number().int().default(1),
|
|
410
415
|
limit: z.number().int().default(10),
|
|
411
416
|
sorting: z.nullable(z.array(EventSortProperty$inboundSchema)).optional(),
|
|
@@ -435,6 +440,7 @@ export type EventsListRequest$Outbound = {
|
|
|
435
440
|
source?: string | Array<string> | null | undefined;
|
|
436
441
|
query?: string | null | undefined;
|
|
437
442
|
parent_id?: string | null | undefined;
|
|
443
|
+
hierarchical: boolean;
|
|
438
444
|
page: number;
|
|
439
445
|
limit: number;
|
|
440
446
|
sorting?: Array<string> | null | undefined;
|
|
@@ -463,6 +469,7 @@ export const EventsListRequest$outboundSchema: z.ZodType<
|
|
|
463
469
|
).optional(),
|
|
464
470
|
query: z.nullable(z.string()).optional(),
|
|
465
471
|
parentId: z.nullable(z.string()).optional(),
|
|
472
|
+
hierarchical: z.boolean().default(false),
|
|
466
473
|
page: z.number().int().default(1),
|
|
467
474
|
limit: z.number().int().default(10),
|
|
468
475
|
sorting: z.nullable(z.array(EventSortProperty$outboundSchema)).optional(),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { customerPortalOrganizationsGet } from "../funcs/customerPortalOrganizationsGet.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
-
import {
|
|
7
|
+
import { CustomerOrganizationData } from "../models/components/customerorganizationdata.js";
|
|
8
8
|
import { CustomerPortalOrganizationsGetRequest } from "../models/operations/customerportalorganizationsget.js";
|
|
9
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ export class PolarOrganizations extends ClientSDK {
|
|
|
18
18
|
async get(
|
|
19
19
|
request: CustomerPortalOrganizationsGetRequest,
|
|
20
20
|
options?: RequestOptions,
|
|
21
|
-
): Promise<
|
|
21
|
+
): Promise<CustomerOrganizationData> {
|
|
22
22
|
return unwrapAsync(customerPortalOrganizationsGet(
|
|
23
23
|
this,
|
|
24
24
|
request,
|