@polar-sh/sdk 0.40.3 → 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/README.md +1 -1
- 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 +2 -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 +10 -0
- package/dist/commonjs/models/components/benefitcycledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitcycledevent.js +8 -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 +10 -0
- package/dist/commonjs/models/components/benefitgrantedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrantedevent.js +8 -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 +10 -0
- package/dist/commonjs/models/components/benefitrevokedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitrevokedevent.js +8 -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 +10 -0
- package/dist/commonjs/models/components/benefitupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitupdatedevent.js +8 -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/customercreate.d.ts +0 -3
- package/dist/commonjs/models/components/customercreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customercreate.js.map +1 -1
- package/dist/commonjs/models/components/customercreatedevent.d.ts +10 -0
- package/dist/commonjs/models/components/customercreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/customercreatedevent.js +8 -0
- package/dist/commonjs/models/components/customercreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/customerdeletedevent.d.ts +10 -0
- package/dist/commonjs/models/components/customerdeletedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerdeletedevent.js +8 -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/customerupdate.d.ts +0 -3
- package/dist/commonjs/models/components/customerupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdate.js.map +1 -1
- package/dist/commonjs/models/components/customerupdatedevent.d.ts +10 -0
- package/dist/commonjs/models/components/customerupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdatedevent.js +8 -0
- package/dist/commonjs/models/components/customerupdatedevent.js.map +1 -1
- package/dist/commonjs/models/components/customerupdateexternalid.d.ts +0 -3
- package/dist/commonjs/models/components/customerupdateexternalid.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdateexternalid.js.map +1 -1
- package/dist/commonjs/models/components/eventcreatecustomer.d.ts +10 -0
- package/dist/commonjs/models/components/eventcreatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/eventcreatecustomer.js +8 -0
- package/dist/commonjs/models/components/eventcreatecustomer.js.map +1 -1
- package/dist/commonjs/models/components/eventcreateexternalcustomer.d.ts +10 -0
- package/dist/commonjs/models/components/eventcreateexternalcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/eventcreateexternalcustomer.js +8 -0
- package/dist/commonjs/models/components/eventcreateexternalcustomer.js.map +1 -1
- package/dist/commonjs/models/components/eventsingestresponse.d.ts +5 -0
- package/dist/commonjs/models/components/eventsingestresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/eventsingestresponse.js +2 -0
- package/dist/commonjs/models/components/eventsingestresponse.js.map +1 -1
- package/dist/commonjs/models/components/metercreditevent.d.ts +10 -0
- package/dist/commonjs/models/components/metercreditevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/metercreditevent.js +8 -0
- package/dist/commonjs/models/components/metercreditevent.js.map +1 -1
- package/dist/commonjs/models/components/meterresetevent.d.ts +10 -0
- package/dist/commonjs/models/components/meterresetevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/meterresetevent.js +8 -0
- package/dist/commonjs/models/components/meterresetevent.js.map +1 -1
- package/dist/commonjs/models/components/orderpaidevent.d.ts +10 -0
- package/dist/commonjs/models/components/orderpaidevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderpaidevent.js +8 -0
- package/dist/commonjs/models/components/orderpaidevent.js.map +1 -1
- package/dist/commonjs/models/components/orderrefundedevent.d.ts +10 -0
- package/dist/commonjs/models/components/orderrefundedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderrefundedevent.js +8 -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 +10 -0
- package/dist/commonjs/models/components/subscriptioncycledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptioncycledevent.js +8 -0
- package/dist/commonjs/models/components/subscriptioncycledevent.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.d.ts +10 -0
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.js +8 -0
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionrevokedevent.d.ts +10 -0
- package/dist/commonjs/models/components/subscriptionrevokedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionrevokedevent.js +8 -0
- package/dist/commonjs/models/components/subscriptionrevokedevent.js.map +1 -1
- package/dist/commonjs/models/components/userevent.d.ts +10 -0
- package/dist/commonjs/models/components/userevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/userevent.js +8 -0
- package/dist/commonjs/models/components/userevent.js.map +1 -1
- package/dist/commonjs/models/operations/eventslist.d.ts +10 -0
- package/dist/commonjs/models/operations/eventslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/eventslist.js +6 -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 +2 -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 +10 -0
- package/dist/esm/models/components/benefitcycledevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitcycledevent.js +8 -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 +10 -0
- package/dist/esm/models/components/benefitgrantedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrantedevent.js +8 -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 +10 -0
- package/dist/esm/models/components/benefitrevokedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitrevokedevent.js +8 -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 +10 -0
- package/dist/esm/models/components/benefitupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitupdatedevent.js +8 -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/customercreate.d.ts +0 -3
- package/dist/esm/models/components/customercreate.d.ts.map +1 -1
- package/dist/esm/models/components/customercreate.js.map +1 -1
- package/dist/esm/models/components/customercreatedevent.d.ts +10 -0
- package/dist/esm/models/components/customercreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/customercreatedevent.js +8 -0
- package/dist/esm/models/components/customercreatedevent.js.map +1 -1
- package/dist/esm/models/components/customerdeletedevent.d.ts +10 -0
- package/dist/esm/models/components/customerdeletedevent.d.ts.map +1 -1
- package/dist/esm/models/components/customerdeletedevent.js +8 -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/customerupdate.d.ts +0 -3
- package/dist/esm/models/components/customerupdate.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdate.js.map +1 -1
- package/dist/esm/models/components/customerupdatedevent.d.ts +10 -0
- package/dist/esm/models/components/customerupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdatedevent.js +8 -0
- package/dist/esm/models/components/customerupdatedevent.js.map +1 -1
- package/dist/esm/models/components/customerupdateexternalid.d.ts +0 -3
- package/dist/esm/models/components/customerupdateexternalid.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdateexternalid.js.map +1 -1
- package/dist/esm/models/components/eventcreatecustomer.d.ts +10 -0
- package/dist/esm/models/components/eventcreatecustomer.d.ts.map +1 -1
- package/dist/esm/models/components/eventcreatecustomer.js +8 -0
- package/dist/esm/models/components/eventcreatecustomer.js.map +1 -1
- package/dist/esm/models/components/eventcreateexternalcustomer.d.ts +10 -0
- package/dist/esm/models/components/eventcreateexternalcustomer.d.ts.map +1 -1
- package/dist/esm/models/components/eventcreateexternalcustomer.js +8 -0
- package/dist/esm/models/components/eventcreateexternalcustomer.js.map +1 -1
- package/dist/esm/models/components/eventsingestresponse.d.ts +5 -0
- package/dist/esm/models/components/eventsingestresponse.d.ts.map +1 -1
- package/dist/esm/models/components/eventsingestresponse.js +2 -0
- package/dist/esm/models/components/eventsingestresponse.js.map +1 -1
- package/dist/esm/models/components/metercreditevent.d.ts +10 -0
- package/dist/esm/models/components/metercreditevent.d.ts.map +1 -1
- package/dist/esm/models/components/metercreditevent.js +8 -0
- package/dist/esm/models/components/metercreditevent.js.map +1 -1
- package/dist/esm/models/components/meterresetevent.d.ts +10 -0
- package/dist/esm/models/components/meterresetevent.d.ts.map +1 -1
- package/dist/esm/models/components/meterresetevent.js +8 -0
- package/dist/esm/models/components/meterresetevent.js.map +1 -1
- package/dist/esm/models/components/orderpaidevent.d.ts +10 -0
- package/dist/esm/models/components/orderpaidevent.d.ts.map +1 -1
- package/dist/esm/models/components/orderpaidevent.js +8 -0
- package/dist/esm/models/components/orderpaidevent.js.map +1 -1
- package/dist/esm/models/components/orderrefundedevent.d.ts +10 -0
- package/dist/esm/models/components/orderrefundedevent.d.ts.map +1 -1
- package/dist/esm/models/components/orderrefundedevent.js +8 -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 +10 -0
- package/dist/esm/models/components/subscriptioncycledevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptioncycledevent.js +8 -0
- package/dist/esm/models/components/subscriptioncycledevent.js.map +1 -1
- package/dist/esm/models/components/subscriptionproductupdatedevent.d.ts +10 -0
- package/dist/esm/models/components/subscriptionproductupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionproductupdatedevent.js +8 -0
- package/dist/esm/models/components/subscriptionproductupdatedevent.js.map +1 -1
- package/dist/esm/models/components/subscriptionrevokedevent.d.ts +10 -0
- package/dist/esm/models/components/subscriptionrevokedevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionrevokedevent.js +8 -0
- package/dist/esm/models/components/subscriptionrevokedevent.js.map +1 -1
- package/dist/esm/models/components/userevent.d.ts +10 -0
- package/dist/esm/models/components/userevent.d.ts.map +1 -1
- package/dist/esm/models/components/userevent.js +8 -0
- package/dist/esm/models/components/userevent.js.map +1 -1
- package/dist/esm/models/operations/eventslist.d.ts +10 -0
- package/dist/esm/models/operations/eventslist.d.ts.map +1 -1
- package/dist/esm/models/operations/eventslist.js +6 -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 +2 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/benefitcustomsubscriber.ts +9 -9
- package/src/models/components/benefitcycledevent.ts +18 -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 +18 -0
- package/src/models/components/benefitlicensekeyssubscriber.ts +9 -9
- package/src/models/components/benefitmetercreditsubscriber.ts +9 -9
- package/src/models/components/benefitrevokedevent.ts +18 -0
- package/src/models/components/benefitsubscriberorganization.ts +141 -0
- package/src/models/components/benefitupdatedevent.ts +18 -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/customercreate.ts +0 -3
- package/src/models/components/customercreatedevent.ts +18 -0
- package/src/models/components/customerdeletedevent.ts +18 -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/customerupdate.ts +0 -3
- package/src/models/components/customerupdatedevent.ts +18 -0
- package/src/models/components/customerupdateexternalid.ts +0 -3
- package/src/models/components/eventcreatecustomer.ts +18 -0
- package/src/models/components/eventcreateexternalcustomer.ts +18 -0
- package/src/models/components/eventsingestresponse.ts +7 -0
- package/src/models/components/metercreditevent.ts +18 -0
- package/src/models/components/meterresetevent.ts +18 -0
- package/src/models/components/orderpaidevent.ts +18 -0
- package/src/models/components/orderrefundedevent.ts +18 -0
- package/src/models/components/organization.ts +21 -1
- package/src/models/components/organizationstatus.ts +2 -1
- package/src/models/components/subscriptioncycledevent.ts +18 -0
- package/src/models/components/subscriptionproductupdatedevent.ts +18 -0
- package/src/models/components/subscriptionrevokedevent.ts +18 -0
- package/src/models/components/userevent.ts +18 -0
- package/src/models/operations/eventslist.ts +16 -0
- package/src/sdk/polarorganizations.ts +2 -2
- package/.devcontainer/README.md +0 -35
- package/docs/sdks/benefitgrants/README.md +0 -88
- package/docs/sdks/benefits/README.md +0 -500
- package/docs/sdks/checkoutlinks/README.md +0 -407
- package/docs/sdks/checkouts/README.md +0 -600
- package/docs/sdks/clients/README.md +0 -331
- package/docs/sdks/customermeters/README.md +0 -166
- package/docs/sdks/customers/README.md +0 -1036
- package/docs/sdks/customerseats/README.md +0 -441
- package/docs/sdks/customersession/README.md +0 -79
- package/docs/sdks/customersessions/README.md +0 -84
- package/docs/sdks/customfields/README.md +0 -417
- package/docs/sdks/discounts/README.md +0 -409
- package/docs/sdks/downloadables/README.md +0 -83
- package/docs/sdks/events/README.md +0 -324
- package/docs/sdks/files/README.md +0 -460
- package/docs/sdks/licensekeys/README.md +0 -576
- package/docs/sdks/meters/README.md +0 -437
- package/docs/sdks/metrics/README.md +0 -165
- package/docs/sdks/oauth2/README.md +0 -371
- package/docs/sdks/orders/README.md +0 -489
- package/docs/sdks/organizations/README.md +0 -322
- package/docs/sdks/payments/README.md +0 -166
- package/docs/sdks/polarbenefitgrants/README.md +0 -250
- package/docs/sdks/polarcustomermeters/README.md +0 -164
- package/docs/sdks/polarcustomers/README.md +0 -482
- package/docs/sdks/polarlicensekeys/README.md +0 -406
- package/docs/sdks/polarorders/README.md +0 -574
- package/docs/sdks/polarorganizations/README.md +0 -79
- package/docs/sdks/polarsubscriptions/README.md +0 -326
- package/docs/sdks/polarwallets/README.md +0 -164
- package/docs/sdks/products/README.md +0 -441
- package/docs/sdks/refunds/README.md +0 -171
- package/docs/sdks/seats/README.md +0 -379
- package/docs/sdks/subscriptions/README.md +0 -493
- package/docs/sdks/wallets/README.md +0 -256
- package/docs/sdks/webhooks/README.md +0 -650
- package/examples/README.md +0 -31
|
@@ -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",
|
|
@@ -44,9 +44,6 @@ export type CustomerUpdate = {
|
|
|
44
44
|
* The email address of the customer. This must be unique within the organization.
|
|
45
45
|
*/
|
|
46
46
|
email?: string | null | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* The name of the customer.
|
|
49
|
-
*/
|
|
50
47
|
name?: string | null | undefined;
|
|
51
48
|
billingAddress?: AddressInput | null | undefined;
|
|
52
49
|
taxId?: Array<string | TaxIDFormat | null> | null | undefined;
|
|
@@ -48,6 +48,14 @@ export type CustomerUpdatedEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
51
59
|
/**
|
|
52
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
61
|
*/
|
|
@@ -71,6 +79,8 @@ export const CustomerUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
71
79
|
customer_id: z.nullable(z.string()),
|
|
72
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
81
|
external_customer_id: z.nullable(z.string()),
|
|
82
|
+
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
74
84
|
source: z.literal("system"),
|
|
75
85
|
name: z.literal("customer.updated"),
|
|
76
86
|
metadata: CustomerUpdatedMetadata$inboundSchema,
|
|
@@ -79,6 +89,8 @@ export const CustomerUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
79
89
|
"organization_id": "organizationId",
|
|
80
90
|
"customer_id": "customerId",
|
|
81
91
|
"external_customer_id": "externalCustomerId",
|
|
92
|
+
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
82
94
|
});
|
|
83
95
|
});
|
|
84
96
|
|
|
@@ -90,6 +102,8 @@ export type CustomerUpdatedEvent$Outbound = {
|
|
|
90
102
|
customer_id: string | null;
|
|
91
103
|
customer: Customer$Outbound | null;
|
|
92
104
|
external_customer_id: string | null;
|
|
105
|
+
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
93
107
|
source: "system";
|
|
94
108
|
name: "customer.updated";
|
|
95
109
|
metadata: CustomerUpdatedMetadata$Outbound;
|
|
@@ -107,6 +121,8 @@ export const CustomerUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
107
121
|
customerId: z.nullable(z.string()),
|
|
108
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
123
|
externalCustomerId: z.nullable(z.string()),
|
|
124
|
+
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
110
126
|
source: z.literal("system"),
|
|
111
127
|
name: z.literal("customer.updated"),
|
|
112
128
|
metadata: CustomerUpdatedMetadata$outboundSchema,
|
|
@@ -115,6 +131,8 @@ export const CustomerUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
115
131
|
organizationId: "organization_id",
|
|
116
132
|
customerId: "customer_id",
|
|
117
133
|
externalCustomerId: "external_customer_id",
|
|
134
|
+
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
118
136
|
});
|
|
119
137
|
});
|
|
120
138
|
|
|
@@ -48,9 +48,6 @@ export type CustomerUpdateExternalID = {
|
|
|
48
48
|
* The email address of the customer. This must be unique within the organization.
|
|
49
49
|
*/
|
|
50
50
|
email?: string | null | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* The name of the customer.
|
|
53
|
-
*/
|
|
54
51
|
name?: string | null | undefined;
|
|
55
52
|
billingAddress?: AddressInput | null | undefined;
|
|
56
53
|
taxId?: Array<string | TaxIDFormat | null> | null | undefined;
|
|
@@ -27,6 +27,14 @@ export type EventCreateCustomer = {
|
|
|
27
27
|
* The ID of the organization owning the event. **Required unless you use an organization token.**
|
|
28
28
|
*/
|
|
29
29
|
organizationId?: string | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Your unique identifier for this event. Useful for deduplication and parent-child relationships.
|
|
32
|
+
*/
|
|
33
|
+
externalId?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the parent event. Can be either a Polar event ID (UUID) or an external event ID.
|
|
36
|
+
*/
|
|
37
|
+
parentId?: string | null | undefined;
|
|
30
38
|
metadata?: { [k: string]: EventMetadataInput } | undefined;
|
|
31
39
|
/**
|
|
32
40
|
* ID of the customer in your Polar organization associated with the event.
|
|
@@ -44,11 +52,15 @@ export const EventCreateCustomer$inboundSchema: z.ZodType<
|
|
|
44
52
|
.optional(),
|
|
45
53
|
name: z.string(),
|
|
46
54
|
organization_id: z.nullable(z.string()).optional(),
|
|
55
|
+
external_id: z.nullable(z.string()).optional(),
|
|
56
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
47
57
|
metadata: z.record(EventMetadataInput$inboundSchema).optional(),
|
|
48
58
|
customer_id: z.string(),
|
|
49
59
|
}).transform((v) => {
|
|
50
60
|
return remap$(v, {
|
|
51
61
|
"organization_id": "organizationId",
|
|
62
|
+
"external_id": "externalId",
|
|
63
|
+
"parent_id": "parentId",
|
|
52
64
|
"customer_id": "customerId",
|
|
53
65
|
});
|
|
54
66
|
});
|
|
@@ -58,6 +70,8 @@ export type EventCreateCustomer$Outbound = {
|
|
|
58
70
|
timestamp?: string | undefined;
|
|
59
71
|
name: string;
|
|
60
72
|
organization_id?: string | null | undefined;
|
|
73
|
+
external_id?: string | null | undefined;
|
|
74
|
+
parent_id?: string | null | undefined;
|
|
61
75
|
metadata?: { [k: string]: EventMetadataInput$Outbound } | undefined;
|
|
62
76
|
customer_id: string;
|
|
63
77
|
};
|
|
@@ -71,11 +85,15 @@ export const EventCreateCustomer$outboundSchema: z.ZodType<
|
|
|
71
85
|
timestamp: z.date().transform(v => v.toISOString()).optional(),
|
|
72
86
|
name: z.string(),
|
|
73
87
|
organizationId: z.nullable(z.string()).optional(),
|
|
88
|
+
externalId: z.nullable(z.string()).optional(),
|
|
89
|
+
parentId: z.nullable(z.string()).optional(),
|
|
74
90
|
metadata: z.record(EventMetadataInput$outboundSchema).optional(),
|
|
75
91
|
customerId: z.string(),
|
|
76
92
|
}).transform((v) => {
|
|
77
93
|
return remap$(v, {
|
|
78
94
|
organizationId: "organization_id",
|
|
95
|
+
externalId: "external_id",
|
|
96
|
+
parentId: "parent_id",
|
|
79
97
|
customerId: "customer_id",
|
|
80
98
|
});
|
|
81
99
|
});
|
|
@@ -27,6 +27,14 @@ export type EventCreateExternalCustomer = {
|
|
|
27
27
|
* The ID of the organization owning the event. **Required unless you use an organization token.**
|
|
28
28
|
*/
|
|
29
29
|
organizationId?: string | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Your unique identifier for this event. Useful for deduplication and parent-child relationships.
|
|
32
|
+
*/
|
|
33
|
+
externalId?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the parent event. Can be either a Polar event ID (UUID) or an external event ID.
|
|
36
|
+
*/
|
|
37
|
+
parentId?: string | null | undefined;
|
|
30
38
|
metadata?: { [k: string]: EventMetadataInput } | undefined;
|
|
31
39
|
/**
|
|
32
40
|
* ID of the customer in your system associated with the event.
|
|
@@ -44,11 +52,15 @@ export const EventCreateExternalCustomer$inboundSchema: z.ZodType<
|
|
|
44
52
|
.optional(),
|
|
45
53
|
name: z.string(),
|
|
46
54
|
organization_id: z.nullable(z.string()).optional(),
|
|
55
|
+
external_id: z.nullable(z.string()).optional(),
|
|
56
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
47
57
|
metadata: z.record(EventMetadataInput$inboundSchema).optional(),
|
|
48
58
|
external_customer_id: z.string(),
|
|
49
59
|
}).transform((v) => {
|
|
50
60
|
return remap$(v, {
|
|
51
61
|
"organization_id": "organizationId",
|
|
62
|
+
"external_id": "externalId",
|
|
63
|
+
"parent_id": "parentId",
|
|
52
64
|
"external_customer_id": "externalCustomerId",
|
|
53
65
|
});
|
|
54
66
|
});
|
|
@@ -58,6 +70,8 @@ export type EventCreateExternalCustomer$Outbound = {
|
|
|
58
70
|
timestamp?: string | undefined;
|
|
59
71
|
name: string;
|
|
60
72
|
organization_id?: string | null | undefined;
|
|
73
|
+
external_id?: string | null | undefined;
|
|
74
|
+
parent_id?: string | null | undefined;
|
|
61
75
|
metadata?: { [k: string]: EventMetadataInput$Outbound } | undefined;
|
|
62
76
|
external_customer_id: string;
|
|
63
77
|
};
|
|
@@ -71,11 +85,15 @@ export const EventCreateExternalCustomer$outboundSchema: z.ZodType<
|
|
|
71
85
|
timestamp: z.date().transform(v => v.toISOString()).optional(),
|
|
72
86
|
name: z.string(),
|
|
73
87
|
organizationId: z.nullable(z.string()).optional(),
|
|
88
|
+
externalId: z.nullable(z.string()).optional(),
|
|
89
|
+
parentId: z.nullable(z.string()).optional(),
|
|
74
90
|
metadata: z.record(EventMetadataInput$outboundSchema).optional(),
|
|
75
91
|
externalCustomerId: z.string(),
|
|
76
92
|
}).transform((v) => {
|
|
77
93
|
return remap$(v, {
|
|
78
94
|
organizationId: "organization_id",
|
|
95
|
+
externalId: "external_id",
|
|
96
|
+
parentId: "parent_id",
|
|
79
97
|
externalCustomerId: "external_customer_id",
|
|
80
98
|
});
|
|
81
99
|
});
|
|
@@ -12,6 +12,10 @@ export type EventsIngestResponse = {
|
|
|
12
12
|
* Number of events inserted.
|
|
13
13
|
*/
|
|
14
14
|
inserted: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of duplicate events skipped.
|
|
17
|
+
*/
|
|
18
|
+
duplicates?: number | undefined;
|
|
15
19
|
};
|
|
16
20
|
|
|
17
21
|
/** @internal */
|
|
@@ -21,11 +25,13 @@ export const EventsIngestResponse$inboundSchema: z.ZodType<
|
|
|
21
25
|
unknown
|
|
22
26
|
> = z.object({
|
|
23
27
|
inserted: z.number().int(),
|
|
28
|
+
duplicates: z.number().int().default(0),
|
|
24
29
|
});
|
|
25
30
|
|
|
26
31
|
/** @internal */
|
|
27
32
|
export type EventsIngestResponse$Outbound = {
|
|
28
33
|
inserted: number;
|
|
34
|
+
duplicates: number;
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
/** @internal */
|
|
@@ -35,6 +41,7 @@ export const EventsIngestResponse$outboundSchema: z.ZodType<
|
|
|
35
41
|
EventsIngestResponse
|
|
36
42
|
> = z.object({
|
|
37
43
|
inserted: z.number().int(),
|
|
44
|
+
duplicates: z.number().int().default(0),
|
|
38
45
|
});
|
|
39
46
|
|
|
40
47
|
/**
|
|
@@ -48,6 +48,14 @@ export type MeterCreditEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
51
59
|
/**
|
|
52
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
61
|
*/
|
|
@@ -71,6 +79,8 @@ export const MeterCreditEvent$inboundSchema: z.ZodType<
|
|
|
71
79
|
customer_id: z.nullable(z.string()),
|
|
72
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
81
|
external_customer_id: z.nullable(z.string()),
|
|
82
|
+
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
74
84
|
source: z.literal("system"),
|
|
75
85
|
name: z.literal("meter.credited"),
|
|
76
86
|
metadata: MeterCreditedMetadata$inboundSchema,
|
|
@@ -79,6 +89,8 @@ export const MeterCreditEvent$inboundSchema: z.ZodType<
|
|
|
79
89
|
"organization_id": "organizationId",
|
|
80
90
|
"customer_id": "customerId",
|
|
81
91
|
"external_customer_id": "externalCustomerId",
|
|
92
|
+
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
82
94
|
});
|
|
83
95
|
});
|
|
84
96
|
|
|
@@ -90,6 +102,8 @@ export type MeterCreditEvent$Outbound = {
|
|
|
90
102
|
customer_id: string | null;
|
|
91
103
|
customer: Customer$Outbound | null;
|
|
92
104
|
external_customer_id: string | null;
|
|
105
|
+
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
93
107
|
source: "system";
|
|
94
108
|
name: "meter.credited";
|
|
95
109
|
metadata: MeterCreditedMetadata$Outbound;
|
|
@@ -107,6 +121,8 @@ export const MeterCreditEvent$outboundSchema: z.ZodType<
|
|
|
107
121
|
customerId: z.nullable(z.string()),
|
|
108
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
123
|
externalCustomerId: z.nullable(z.string()),
|
|
124
|
+
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
110
126
|
source: z.literal("system"),
|
|
111
127
|
name: z.literal("meter.credited"),
|
|
112
128
|
metadata: MeterCreditedMetadata$outboundSchema,
|
|
@@ -115,6 +131,8 @@ export const MeterCreditEvent$outboundSchema: z.ZodType<
|
|
|
115
131
|
organizationId: "organization_id",
|
|
116
132
|
customerId: "customer_id",
|
|
117
133
|
externalCustomerId: "external_customer_id",
|
|
134
|
+
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
118
136
|
});
|
|
119
137
|
});
|
|
120
138
|
|
|
@@ -48,6 +48,14 @@ export type MeterResetEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
51
59
|
/**
|
|
52
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
61
|
*/
|
|
@@ -71,6 +79,8 @@ export const MeterResetEvent$inboundSchema: z.ZodType<
|
|
|
71
79
|
customer_id: z.nullable(z.string()),
|
|
72
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
81
|
external_customer_id: z.nullable(z.string()),
|
|
82
|
+
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
74
84
|
source: z.literal("system"),
|
|
75
85
|
name: z.literal("meter.reset"),
|
|
76
86
|
metadata: MeterResetMetadata$inboundSchema,
|
|
@@ -79,6 +89,8 @@ export const MeterResetEvent$inboundSchema: z.ZodType<
|
|
|
79
89
|
"organization_id": "organizationId",
|
|
80
90
|
"customer_id": "customerId",
|
|
81
91
|
"external_customer_id": "externalCustomerId",
|
|
92
|
+
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
82
94
|
});
|
|
83
95
|
});
|
|
84
96
|
|
|
@@ -90,6 +102,8 @@ export type MeterResetEvent$Outbound = {
|
|
|
90
102
|
customer_id: string | null;
|
|
91
103
|
customer: Customer$Outbound | null;
|
|
92
104
|
external_customer_id: string | null;
|
|
105
|
+
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
93
107
|
source: "system";
|
|
94
108
|
name: "meter.reset";
|
|
95
109
|
metadata: MeterResetMetadata$Outbound;
|
|
@@ -107,6 +121,8 @@ export const MeterResetEvent$outboundSchema: z.ZodType<
|
|
|
107
121
|
customerId: z.nullable(z.string()),
|
|
108
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
123
|
externalCustomerId: z.nullable(z.string()),
|
|
124
|
+
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
110
126
|
source: z.literal("system"),
|
|
111
127
|
name: z.literal("meter.reset"),
|
|
112
128
|
metadata: MeterResetMetadata$outboundSchema,
|
|
@@ -115,6 +131,8 @@ export const MeterResetEvent$outboundSchema: z.ZodType<
|
|
|
115
131
|
organizationId: "organization_id",
|
|
116
132
|
customerId: "customer_id",
|
|
117
133
|
externalCustomerId: "external_customer_id",
|
|
134
|
+
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
118
136
|
});
|
|
119
137
|
});
|
|
120
138
|
|
|
@@ -48,6 +48,14 @@ export type OrderPaidEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
51
59
|
/**
|
|
52
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
61
|
*/
|
|
@@ -71,6 +79,8 @@ export const OrderPaidEvent$inboundSchema: z.ZodType<
|
|
|
71
79
|
customer_id: z.nullable(z.string()),
|
|
72
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
81
|
external_customer_id: z.nullable(z.string()),
|
|
82
|
+
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
74
84
|
source: z.literal("system"),
|
|
75
85
|
name: z.literal("order.paid"),
|
|
76
86
|
metadata: OrderPaidMetadata$inboundSchema,
|
|
@@ -79,6 +89,8 @@ export const OrderPaidEvent$inboundSchema: z.ZodType<
|
|
|
79
89
|
"organization_id": "organizationId",
|
|
80
90
|
"customer_id": "customerId",
|
|
81
91
|
"external_customer_id": "externalCustomerId",
|
|
92
|
+
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
82
94
|
});
|
|
83
95
|
});
|
|
84
96
|
|
|
@@ -90,6 +102,8 @@ export type OrderPaidEvent$Outbound = {
|
|
|
90
102
|
customer_id: string | null;
|
|
91
103
|
customer: Customer$Outbound | null;
|
|
92
104
|
external_customer_id: string | null;
|
|
105
|
+
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
93
107
|
source: "system";
|
|
94
108
|
name: "order.paid";
|
|
95
109
|
metadata: OrderPaidMetadata$Outbound;
|
|
@@ -107,6 +121,8 @@ export const OrderPaidEvent$outboundSchema: z.ZodType<
|
|
|
107
121
|
customerId: z.nullable(z.string()),
|
|
108
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
123
|
externalCustomerId: z.nullable(z.string()),
|
|
124
|
+
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
110
126
|
source: z.literal("system"),
|
|
111
127
|
name: z.literal("order.paid"),
|
|
112
128
|
metadata: OrderPaidMetadata$outboundSchema,
|
|
@@ -115,6 +131,8 @@ export const OrderPaidEvent$outboundSchema: z.ZodType<
|
|
|
115
131
|
organizationId: "organization_id",
|
|
116
132
|
customerId: "customer_id",
|
|
117
133
|
externalCustomerId: "external_customer_id",
|
|
134
|
+
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
118
136
|
});
|
|
119
137
|
});
|
|
120
138
|
|
|
@@ -48,6 +48,14 @@ export type OrderRefundedEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
51
59
|
/**
|
|
52
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
61
|
*/
|
|
@@ -71,6 +79,8 @@ export const OrderRefundedEvent$inboundSchema: z.ZodType<
|
|
|
71
79
|
customer_id: z.nullable(z.string()),
|
|
72
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
81
|
external_customer_id: z.nullable(z.string()),
|
|
82
|
+
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
74
84
|
source: z.literal("system"),
|
|
75
85
|
name: z.literal("order.refunded"),
|
|
76
86
|
metadata: OrderRefundedMetadata$inboundSchema,
|
|
@@ -79,6 +89,8 @@ export const OrderRefundedEvent$inboundSchema: z.ZodType<
|
|
|
79
89
|
"organization_id": "organizationId",
|
|
80
90
|
"customer_id": "customerId",
|
|
81
91
|
"external_customer_id": "externalCustomerId",
|
|
92
|
+
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
82
94
|
});
|
|
83
95
|
});
|
|
84
96
|
|
|
@@ -90,6 +102,8 @@ export type OrderRefundedEvent$Outbound = {
|
|
|
90
102
|
customer_id: string | null;
|
|
91
103
|
customer: Customer$Outbound | null;
|
|
92
104
|
external_customer_id: string | null;
|
|
105
|
+
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
93
107
|
source: "system";
|
|
94
108
|
name: "order.refunded";
|
|
95
109
|
metadata: OrderRefundedMetadata$Outbound;
|
|
@@ -107,6 +121,8 @@ export const OrderRefundedEvent$outboundSchema: z.ZodType<
|
|
|
107
121
|
customerId: z.nullable(z.string()),
|
|
108
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
123
|
externalCustomerId: z.nullable(z.string()),
|
|
124
|
+
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
110
126
|
source: z.literal("system"),
|
|
111
127
|
name: z.literal("order.refunded"),
|
|
112
128
|
metadata: OrderRefundedMetadata$outboundSchema,
|
|
@@ -115,6 +131,8 @@ export const OrderRefundedEvent$outboundSchema: z.ZodType<
|
|
|
115
131
|
organizationId: "organization_id",
|
|
116
132
|
customerId: "customer_id",
|
|
117
133
|
externalCustomerId: "external_customer_id",
|
|
134
|
+
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
118
136
|
});
|
|
119
137
|
});
|
|
120
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;
|
|
@@ -48,6 +48,14 @@ export type SubscriptionCycledEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the parent event.
|
|
57
|
+
*/
|
|
58
|
+
parentId?: string | null | undefined;
|
|
51
59
|
/**
|
|
52
60
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
61
|
*/
|
|
@@ -71,6 +79,8 @@ export const SubscriptionCycledEvent$inboundSchema: z.ZodType<
|
|
|
71
79
|
customer_id: z.nullable(z.string()),
|
|
72
80
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
81
|
external_customer_id: z.nullable(z.string()),
|
|
82
|
+
child_count: z.number().int().default(0),
|
|
83
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
74
84
|
source: z.literal("system"),
|
|
75
85
|
name: z.literal("subscription.cycled"),
|
|
76
86
|
metadata: SubscriptionCycledMetadata$inboundSchema,
|
|
@@ -79,6 +89,8 @@ export const SubscriptionCycledEvent$inboundSchema: z.ZodType<
|
|
|
79
89
|
"organization_id": "organizationId",
|
|
80
90
|
"customer_id": "customerId",
|
|
81
91
|
"external_customer_id": "externalCustomerId",
|
|
92
|
+
"child_count": "childCount",
|
|
93
|
+
"parent_id": "parentId",
|
|
82
94
|
});
|
|
83
95
|
});
|
|
84
96
|
|
|
@@ -90,6 +102,8 @@ export type SubscriptionCycledEvent$Outbound = {
|
|
|
90
102
|
customer_id: string | null;
|
|
91
103
|
customer: Customer$Outbound | null;
|
|
92
104
|
external_customer_id: string | null;
|
|
105
|
+
child_count: number;
|
|
106
|
+
parent_id?: string | null | undefined;
|
|
93
107
|
source: "system";
|
|
94
108
|
name: "subscription.cycled";
|
|
95
109
|
metadata: SubscriptionCycledMetadata$Outbound;
|
|
@@ -107,6 +121,8 @@ export const SubscriptionCycledEvent$outboundSchema: z.ZodType<
|
|
|
107
121
|
customerId: z.nullable(z.string()),
|
|
108
122
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
123
|
externalCustomerId: z.nullable(z.string()),
|
|
124
|
+
childCount: z.number().int().default(0),
|
|
125
|
+
parentId: z.nullable(z.string()).optional(),
|
|
110
126
|
source: z.literal("system"),
|
|
111
127
|
name: z.literal("subscription.cycled"),
|
|
112
128
|
metadata: SubscriptionCycledMetadata$outboundSchema,
|
|
@@ -115,6 +131,8 @@ export const SubscriptionCycledEvent$outboundSchema: z.ZodType<
|
|
|
115
131
|
organizationId: "organization_id",
|
|
116
132
|
customerId: "customer_id",
|
|
117
133
|
externalCustomerId: "external_customer_id",
|
|
134
|
+
childCount: "child_count",
|
|
135
|
+
parentId: "parent_id",
|
|
118
136
|
});
|
|
119
137
|
});
|
|
120
138
|
|