@polar-sh/sdk 0.8.2 → 0.10.0
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 +7 -50
- package/docs/sdks/benefits/README.md +4 -13
- package/docs/sdks/clients/README.md +4 -4
- package/docs/sdks/files/README.md +9 -9
- package/docs/sdks/oauth2/README.md +2 -2
- package/docs/sdks/polarsubscriptions/README.md +5 -89
- package/docs/sdks/products/README.md +2 -5
- package/docs/sdks/subscriptions/README.md +0 -164
- package/funcs/advertisementsGet.d.ts +1 -1
- package/funcs/advertisementsGet.d.ts.map +1 -1
- package/funcs/advertisementsGet.js +32 -32
- package/funcs/advertisementsGet.js.map +1 -1
- package/funcs/advertisementsList.d.ts +1 -1
- package/funcs/advertisementsList.d.ts.map +1 -1
- package/funcs/advertisementsList.js +42 -42
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/articlesCreate.d.ts +1 -1
- package/funcs/articlesCreate.d.ts.map +1 -1
- package/funcs/articlesCreate.js +30 -30
- package/funcs/articlesCreate.js.map +1 -1
- package/funcs/articlesDelete.d.ts +1 -1
- package/funcs/articlesDelete.d.ts.map +1 -1
- package/funcs/articlesDelete.js +32 -32
- package/funcs/articlesDelete.js.map +1 -1
- package/funcs/articlesGet.d.ts +1 -1
- package/funcs/articlesGet.d.ts.map +1 -1
- package/funcs/articlesGet.js +32 -32
- package/funcs/articlesGet.js.map +1 -1
- package/funcs/articlesList.d.ts +1 -1
- package/funcs/articlesList.d.ts.map +1 -1
- package/funcs/articlesList.js +46 -46
- package/funcs/articlesList.js.map +1 -1
- package/funcs/articlesPreview.d.ts +1 -1
- package/funcs/articlesPreview.d.ts.map +1 -1
- package/funcs/articlesPreview.js +32 -32
- package/funcs/articlesPreview.js.map +1 -1
- package/funcs/articlesReceivers.d.ts +1 -1
- package/funcs/articlesReceivers.d.ts.map +1 -1
- package/funcs/articlesReceivers.js +32 -32
- package/funcs/articlesReceivers.js.map +1 -1
- package/funcs/articlesSend.d.ts +1 -1
- package/funcs/articlesSend.d.ts.map +1 -1
- package/funcs/articlesSend.js +32 -32
- package/funcs/articlesSend.js.map +1 -1
- package/funcs/articlesUpdate.d.ts +1 -1
- package/funcs/articlesUpdate.d.ts.map +1 -1
- package/funcs/articlesUpdate.js +32 -32
- package/funcs/articlesUpdate.js.map +1 -1
- package/funcs/benefitsCreate.d.ts +1 -1
- package/funcs/benefitsCreate.d.ts.map +1 -1
- package/funcs/benefitsCreate.js +30 -30
- package/funcs/benefitsCreate.js.map +1 -1
- package/funcs/benefitsDelete.d.ts +1 -1
- package/funcs/benefitsDelete.d.ts.map +1 -1
- package/funcs/benefitsDelete.js +32 -32
- package/funcs/benefitsDelete.js.map +1 -1
- package/funcs/benefitsGet.d.ts +1 -1
- package/funcs/benefitsGet.d.ts.map +1 -1
- package/funcs/benefitsGet.js +32 -32
- package/funcs/benefitsGet.js.map +1 -1
- package/funcs/benefitsGrants.d.ts +1 -1
- package/funcs/benefitsGrants.d.ts.map +1 -1
- package/funcs/benefitsGrants.js +45 -45
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.d.ts +1 -1
- package/funcs/benefitsList.d.ts.map +1 -1
- package/funcs/benefitsList.js +42 -42
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/benefitsUpdate.d.ts +1 -1
- package/funcs/benefitsUpdate.d.ts.map +1 -1
- package/funcs/benefitsUpdate.js +32 -32
- package/funcs/benefitsUpdate.js.map +1 -1
- package/funcs/checkoutsCreate.d.ts +1 -1
- package/funcs/checkoutsCreate.d.ts.map +1 -1
- package/funcs/checkoutsCreate.js +30 -30
- package/funcs/checkoutsCreate.js.map +1 -1
- package/funcs/checkoutsGet.d.ts +1 -1
- package/funcs/checkoutsGet.d.ts.map +1 -1
- package/funcs/checkoutsGet.js +32 -32
- package/funcs/checkoutsGet.js.map +1 -1
- package/funcs/externalOrganizationsList.d.ts +1 -1
- package/funcs/externalOrganizationsList.d.ts.map +1 -1
- package/funcs/externalOrganizationsList.js +44 -44
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesCreate.d.ts +1 -1
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +30 -30
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +1 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +32 -32
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesList.d.ts +1 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +41 -41
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.d.ts +1 -1
- package/funcs/filesUpdate.d.ts.map +1 -1
- package/funcs/filesUpdate.js +32 -32
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/filesUploaded.d.ts +1 -1
- package/funcs/filesUploaded.d.ts.map +1 -1
- package/funcs/filesUploaded.js +32 -32
- package/funcs/filesUploaded.js.map +1 -1
- package/funcs/licenseKeysGet.d.ts +1 -1
- package/funcs/licenseKeysGet.d.ts.map +1 -1
- package/funcs/licenseKeysGet.js +32 -32
- package/funcs/licenseKeysGet.js.map +1 -1
- package/funcs/licenseKeysGetActivation.d.ts +1 -1
- package/funcs/licenseKeysGetActivation.d.ts.map +1 -1
- package/funcs/licenseKeysGetActivation.js +33 -33
- package/funcs/licenseKeysGetActivation.js.map +1 -1
- package/funcs/licenseKeysList.d.ts +1 -1
- package/funcs/licenseKeysList.d.ts.map +1 -1
- package/funcs/licenseKeysList.js +41 -41
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/licenseKeysUpdate.d.ts +1 -1
- package/funcs/licenseKeysUpdate.d.ts.map +1 -1
- package/funcs/licenseKeysUpdate.js +32 -34
- package/funcs/licenseKeysUpdate.js.map +1 -1
- package/funcs/metricsGet.d.ts +1 -1
- package/funcs/metricsGet.d.ts.map +1 -1
- package/funcs/metricsGet.js +38 -38
- package/funcs/metricsGet.js.map +1 -1
- package/funcs/metricsLimits.d.ts +1 -1
- package/funcs/metricsLimits.d.ts.map +1 -1
- package/funcs/metricsLimits.js +20 -20
- package/funcs/metricsLimits.js.map +1 -1
- package/funcs/oauth2ClientsCreate.d.ts +1 -1
- package/funcs/oauth2ClientsCreate.d.ts.map +1 -1
- package/funcs/oauth2ClientsCreate.js +30 -30
- package/funcs/oauth2ClientsCreate.js.map +1 -1
- package/funcs/oauth2ClientsDelete.d.ts +1 -1
- package/funcs/oauth2ClientsDelete.d.ts.map +1 -1
- package/funcs/oauth2ClientsDelete.js +32 -32
- package/funcs/oauth2ClientsDelete.js.map +1 -1
- package/funcs/oauth2ClientsGet.d.ts +1 -1
- package/funcs/oauth2ClientsGet.d.ts.map +1 -1
- package/funcs/oauth2ClientsGet.js +32 -32
- package/funcs/oauth2ClientsGet.js.map +1 -1
- package/funcs/oauth2ClientsList.d.ts +1 -1
- package/funcs/oauth2ClientsList.d.ts.map +1 -1
- package/funcs/oauth2ClientsList.js +40 -40
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts.map +1 -1
- package/funcs/oauth2ClientsUpdate.js +32 -32
- package/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/funcs/oauth2Introspect.d.ts +1 -1
- package/funcs/oauth2Introspect.d.ts.map +1 -1
- package/funcs/oauth2Introspect.js +29 -29
- package/funcs/oauth2Introspect.js.map +1 -1
- package/funcs/oauth2Revoke.d.ts +1 -1
- package/funcs/oauth2Revoke.d.ts.map +1 -1
- package/funcs/oauth2Revoke.js +28 -28
- package/funcs/oauth2Revoke.js.map +1 -1
- package/funcs/oauth2Token.d.ts +1 -1
- package/funcs/oauth2Token.d.ts.map +1 -1
- package/funcs/oauth2Token.js +28 -28
- package/funcs/oauth2Token.js.map +1 -1
- package/funcs/oauth2Userinfo.d.ts +1 -1
- package/funcs/oauth2Userinfo.d.ts.map +1 -1
- package/funcs/oauth2Userinfo.js +20 -20
- package/funcs/oauth2Userinfo.js.map +1 -1
- package/funcs/ordersGet.d.ts +1 -1
- package/funcs/ordersGet.d.ts.map +1 -1
- package/funcs/ordersGet.js +32 -32
- package/funcs/ordersGet.js.map +1 -1
- package/funcs/ordersInvoice.d.ts +1 -1
- package/funcs/ordersInvoice.d.ts.map +1 -1
- package/funcs/ordersInvoice.js +32 -32
- package/funcs/ordersInvoice.js.map +1 -1
- package/funcs/ordersList.d.ts +1 -1
- package/funcs/ordersList.d.ts.map +1 -1
- package/funcs/ordersList.js +44 -46
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsCreate.d.ts +1 -1
- package/funcs/organizationsCreate.d.ts.map +1 -1
- package/funcs/organizationsCreate.js +30 -30
- package/funcs/organizationsCreate.js.map +1 -1
- package/funcs/organizationsGet.d.ts +1 -1
- package/funcs/organizationsGet.d.ts.map +1 -1
- package/funcs/organizationsGet.js +32 -32
- package/funcs/organizationsGet.js.map +1 -1
- package/funcs/organizationsList.d.ts +1 -1
- package/funcs/organizationsList.d.ts.map +1 -1
- package/funcs/organizationsList.js +43 -43
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/organizationsUpdate.d.ts +1 -1
- package/funcs/organizationsUpdate.d.ts.map +1 -1
- package/funcs/organizationsUpdate.js +32 -32
- package/funcs/organizationsUpdate.js.map +1 -1
- package/funcs/productsCreate.d.ts +1 -1
- package/funcs/productsCreate.d.ts.map +1 -1
- package/funcs/productsCreate.js +30 -30
- package/funcs/productsCreate.js.map +1 -1
- package/funcs/productsGet.d.ts +1 -1
- package/funcs/productsGet.d.ts.map +1 -1
- package/funcs/productsGet.js +32 -32
- package/funcs/productsGet.js.map +1 -1
- package/funcs/productsList.d.ts +1 -1
- package/funcs/productsList.d.ts.map +1 -1
- package/funcs/productsList.js +44 -45
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsUpdate.d.ts +1 -1
- package/funcs/productsUpdate.d.ts.map +1 -1
- package/funcs/productsUpdate.js +32 -32
- package/funcs/productsUpdate.js.map +1 -1
- package/funcs/productsUpdateBenefits.d.ts +1 -1
- package/funcs/productsUpdateBenefits.d.ts.map +1 -1
- package/funcs/productsUpdateBenefits.js +32 -32
- package/funcs/productsUpdateBenefits.js.map +1 -1
- package/funcs/repositoriesGet.d.ts +1 -1
- package/funcs/repositoriesGet.d.ts.map +1 -1
- package/funcs/repositoriesGet.js +32 -32
- package/funcs/repositoriesGet.js.map +1 -1
- package/funcs/repositoriesList.d.ts +1 -1
- package/funcs/repositoriesList.d.ts.map +1 -1
- package/funcs/repositoriesList.js +46 -46
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/repositoriesUpdate.d.ts +1 -1
- package/funcs/repositoriesUpdate.d.ts.map +1 -1
- package/funcs/repositoriesUpdate.js +32 -34
- package/funcs/repositoriesUpdate.js.map +1 -1
- package/funcs/subscriptionsExport.d.ts +1 -1
- package/funcs/subscriptionsExport.d.ts.map +1 -1
- package/funcs/subscriptionsExport.js +33 -33
- package/funcs/subscriptionsExport.js.map +1 -1
- package/funcs/subscriptionsList.d.ts +1 -1
- package/funcs/subscriptionsList.d.ts.map +1 -1
- package/funcs/subscriptionsList.js +44 -45
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsCreate.js +30 -30
- package/funcs/usersAdvertisementsCreate.js.map +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts.map +1 -1
- package/funcs/usersAdvertisementsDelete.js +32 -32
- package/funcs/usersAdvertisementsDelete.js.map +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts.map +1 -1
- package/funcs/usersAdvertisementsEnable.js +32 -32
- package/funcs/usersAdvertisementsEnable.js.map +1 -1
- package/funcs/usersAdvertisementsGet.d.ts +1 -1
- package/funcs/usersAdvertisementsGet.d.ts.map +1 -1
- package/funcs/usersAdvertisementsGet.js +32 -32
- package/funcs/usersAdvertisementsGet.js.map +1 -1
- package/funcs/usersAdvertisementsList.d.ts +1 -1
- package/funcs/usersAdvertisementsList.d.ts.map +1 -1
- package/funcs/usersAdvertisementsList.js +41 -41
- package/funcs/usersAdvertisementsList.js.map +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsUpdate.js +32 -32
- package/funcs/usersAdvertisementsUpdate.js.map +1 -1
- package/funcs/usersBenefitsGet.d.ts +1 -1
- package/funcs/usersBenefitsGet.d.ts.map +1 -1
- package/funcs/usersBenefitsGet.js +32 -32
- package/funcs/usersBenefitsGet.js.map +1 -1
- package/funcs/usersBenefitsList.d.ts +1 -1
- package/funcs/usersBenefitsList.d.ts.map +1 -1
- package/funcs/usersBenefitsList.js +45 -45
- package/funcs/usersBenefitsList.js.map +1 -1
- package/funcs/usersDownloadablesGet.d.ts +1 -1
- package/funcs/usersDownloadablesGet.d.ts.map +1 -1
- package/funcs/usersDownloadablesGet.js +32 -32
- package/funcs/usersDownloadablesGet.js.map +1 -1
- package/funcs/usersDownloadablesList.d.ts +1 -1
- package/funcs/usersDownloadablesList.d.ts.map +1 -1
- package/funcs/usersDownloadablesList.js +42 -42
- package/funcs/usersDownloadablesList.js.map +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysActivate.js +30 -30
- package/funcs/usersLicenseKeysActivate.js.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.js +30 -30
- package/funcs/usersLicenseKeysDeactivate.js.map +1 -1
- package/funcs/usersLicenseKeysGet.d.ts +1 -1
- package/funcs/usersLicenseKeysGet.d.ts.map +1 -1
- package/funcs/usersLicenseKeysGet.js +32 -32
- package/funcs/usersLicenseKeysGet.js.map +1 -1
- package/funcs/usersLicenseKeysList.d.ts +1 -1
- package/funcs/usersLicenseKeysList.d.ts.map +1 -1
- package/funcs/usersLicenseKeysList.js +42 -42
- package/funcs/usersLicenseKeysList.js.map +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysValidate.js +30 -30
- package/funcs/usersLicenseKeysValidate.js.map +1 -1
- package/funcs/usersOrdersGet.d.ts +1 -1
- package/funcs/usersOrdersGet.d.ts.map +1 -1
- package/funcs/usersOrdersGet.js +32 -32
- package/funcs/usersOrdersGet.js.map +1 -1
- package/funcs/usersOrdersInvoice.d.ts +1 -1
- package/funcs/usersOrdersInvoice.d.ts.map +1 -1
- package/funcs/usersOrdersInvoice.js +32 -32
- package/funcs/usersOrdersInvoice.js.map +1 -1
- package/funcs/usersOrdersList.d.ts +1 -1
- package/funcs/usersOrdersList.d.ts.map +1 -1
- package/funcs/usersOrdersList.js +46 -46
- package/funcs/usersOrdersList.js.map +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts.map +1 -1
- package/funcs/usersSubscriptionsCancel.js +32 -32
- package/funcs/usersSubscriptionsCancel.js.map +1 -1
- package/funcs/usersSubscriptionsGet.d.ts +1 -1
- package/funcs/usersSubscriptionsGet.d.ts.map +1 -1
- package/funcs/usersSubscriptionsGet.js +32 -32
- package/funcs/usersSubscriptionsGet.js.map +1 -1
- package/funcs/usersSubscriptionsList.d.ts +1 -1
- package/funcs/usersSubscriptionsList.d.ts.map +1 -1
- package/funcs/usersSubscriptionsList.js +45 -45
- package/funcs/usersSubscriptionsList.js.map +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts.map +1 -1
- package/funcs/usersSubscriptionsUpdate.js +33 -33
- package/funcs/usersSubscriptionsUpdate.js.map +1 -1
- package/lib/config.d.ts +16 -5
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +18 -12
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +5 -8
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +36 -20
- package/lib/sdks.js.map +1 -1
- package/models/components/index.d.ts +14 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -9
- package/models/components/index.js.map +1 -1
- package/models/components/orderproduct.d.ts +0 -11
- package/models/components/orderproduct.d.ts.map +1 -1
- package/models/components/orderproduct.js +0 -7
- package/models/components/orderproduct.js.map +1 -1
- package/models/components/ordersubscription.d.ts +9 -2
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +11 -2
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/organizationfeaturesettings.d.ts +0 -5
- package/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/models/components/organizationfeaturesettings.js +0 -4
- package/models/components/organizationfeaturesettings.js.map +1 -1
- package/models/components/productinput.d.ts +0 -11
- package/models/components/productinput.d.ts.map +1 -1
- package/models/components/productinput.js +0 -7
- package/models/components/productinput.js.map +1 -1
- package/models/components/productonetimecreate.d.ts +24 -3
- package/models/components/productonetimecreate.d.ts.map +1 -1
- package/models/components/productonetimecreate.js +38 -4
- package/models/components/productonetimecreate.js.map +1 -1
- package/models/components/productoutput.d.ts +0 -11
- package/models/components/productoutput.d.ts.map +1 -1
- package/models/components/productoutput.js +0 -7
- package/models/components/productoutput.js.map +1 -1
- package/models/components/productpriceinput.d.ts +3 -11
- package/models/components/productpriceinput.d.ts.map +1 -1
- package/models/components/productpriceinput.js +5 -13
- package/models/components/productpriceinput.js.map +1 -1
- package/models/components/productpriceonetime.d.ts +5 -71
- package/models/components/productpriceonetime.d.ts.map +1 -1
- package/models/components/productpriceonetime.js +14 -57
- package/models/components/productpriceonetime.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +124 -0
- package/models/components/productpriceonetimecustom.d.ts.map +1 -0
- package/models/components/productpriceonetimecustom.js +130 -0
- package/models/components/productpriceonetimecustom.js.map +1 -0
- package/models/components/productpriceonetimecustomcreate.d.ts +95 -0
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimecustomcreate.js +114 -0
- package/models/components/productpriceonetimecustomcreate.js.map +1 -0
- package/models/components/productpriceonetimefixed.d.ts +114 -0
- package/models/components/productpriceonetimefixed.d.ts.map +1 -0
- package/models/components/productpriceonetimefixed.js +122 -0
- package/models/components/productpriceonetimefixed.js.map +1 -0
- package/models/components/productpriceonetimefixedcreate.d.ts +85 -0
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimefixedcreate.js +106 -0
- package/models/components/productpriceonetimefixedcreate.js.map +1 -0
- package/models/components/productpriceonetimefree.d.ts +104 -0
- package/models/components/productpriceonetimefree.d.ts.map +1 -0
- package/models/components/productpriceonetimefree.js +114 -0
- package/models/components/productpriceonetimefree.js.map +1 -0
- package/models/components/productpriceonetimefreecreate.d.ts +75 -0
- package/models/components/productpriceonetimefreecreate.d.ts.map +1 -0
- package/models/components/productpriceonetimefreecreate.js +98 -0
- package/models/components/productpriceonetimefreecreate.js.map +1 -0
- package/models/components/productpriceoutput.d.ts +3 -11
- package/models/components/productpriceoutput.d.ts.map +1 -1
- package/models/components/productpriceoutput.js +5 -13
- package/models/components/productpriceoutput.js.map +1 -1
- package/models/components/productpricerecurringcustom.d.ts +130 -0
- package/models/components/productpricerecurringcustom.d.ts.map +1 -0
- package/models/components/productpricerecurringcustom.js +135 -0
- package/models/components/productpricerecurringcustom.js.map +1 -0
- package/models/components/productpricerecurringfixed.d.ts +120 -0
- package/models/components/productpricerecurringfixed.d.ts.map +1 -0
- package/models/components/productpricerecurringfixed.js +128 -0
- package/models/components/productpricerecurringfixed.js.map +1 -0
- package/models/components/productpricerecurringfixedcreate.d.ts +91 -0
- package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfixedcreate.js +111 -0
- package/models/components/productpricerecurringfixedcreate.js.map +1 -0
- package/models/components/productpricerecurringfree.d.ts +110 -0
- package/models/components/productpricerecurringfree.d.ts.map +1 -0
- package/models/components/productpricerecurringfree.js +119 -0
- package/models/components/productpricerecurringfree.js.map +1 -0
- package/models/components/productpricerecurringfreecreate.d.ts +81 -0
- package/models/components/productpricerecurringfreecreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfreecreate.js +103 -0
- package/models/components/productpricerecurringfreecreate.js.map +1 -0
- package/models/components/productpricerecurringinput.d.ts +36 -0
- package/models/components/productpricerecurringinput.d.ts.map +1 -0
- package/models/components/productpricerecurringinput.js +69 -0
- package/models/components/productpricerecurringinput.js.map +1 -0
- package/models/components/productpricerecurringoutput.d.ts +36 -0
- package/models/components/productpricerecurringoutput.d.ts.map +1 -0
- package/models/components/productpricerecurringoutput.js +69 -0
- package/models/components/productpricerecurringoutput.js.map +1 -0
- package/models/components/productrecurringcreate.d.ts +17 -36
- package/models/components/productrecurringcreate.d.ts.map +1 -1
- package/models/components/productrecurringcreate.js +26 -26
- package/models/components/productrecurringcreate.js.map +1 -1
- package/models/components/productupdate.d.ts +18 -20
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js +35 -25
- package/models/components/productupdate.js.map +1 -1
- package/models/components/subscriptioninput.d.ts +11 -4
- package/models/components/subscriptioninput.d.ts.map +1 -1
- package/models/components/subscriptioninput.js +13 -4
- package/models/components/subscriptioninput.js.map +1 -1
- package/models/components/subscriptionoutput.d.ts +11 -4
- package/models/components/subscriptionoutput.d.ts.map +1 -1
- package/models/components/subscriptionoutput.js +13 -4
- package/models/components/subscriptionoutput.js.map +1 -1
- package/models/components/subscriptionrecurringinterval.d.ts +28 -0
- package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
- package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
- package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
- package/models/components/subscriptionsortproperty.d.ts +6 -12
- package/models/components/subscriptionsortproperty.d.ts.map +1 -1
- package/models/components/subscriptionsortproperty.js +2 -4
- package/models/components/subscriptionsortproperty.js.map +1 -1
- package/models/components/userorderproduct.d.ts +0 -11
- package/models/components/userorderproduct.d.ts.map +1 -1
- package/models/components/userorderproduct.js +0 -7
- package/models/components/userorderproduct.js.map +1 -1
- package/models/components/userordersubscription.d.ts +9 -2
- package/models/components/userordersubscription.d.ts.map +1 -1
- package/models/components/userordersubscription.js +11 -2
- package/models/components/userordersubscription.js.map +1 -1
- package/models/components/usersubscription.d.ts +14 -4
- package/models/components/usersubscription.d.ts.map +1 -1
- package/models/components/usersubscription.js +13 -4
- package/models/components/usersubscription.js.map +1 -1
- package/models/components/usersubscriptionproduct.d.ts +0 -11
- package/models/components/usersubscriptionproduct.d.ts.map +1 -1
- package/models/components/usersubscriptionproduct.js +0 -7
- package/models/components/usersubscriptionproduct.js.map +1 -1
- package/models/components/usersubscriptionsortproperty.d.ts +6 -6
- package/models/components/usersubscriptionsortproperty.js +2 -2
- package/models/components/usersubscriptionsortproperty.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/operations/productscreate.d.ts +2 -2
- package/models/operations/productscreate.d.ts.map +1 -1
- package/models/operations/productscreate.js +2 -2
- package/models/operations/productscreate.js.map +1 -1
- package/models/operations/productslist.d.ts +0 -27
- package/models/operations/productslist.d.ts.map +1 -1
- package/models/operations/productslist.js +1 -32
- package/models/operations/productslist.js.map +1 -1
- package/models/operations/subscriptionslist.d.ts +0 -29
- package/models/operations/subscriptionslist.d.ts.map +1 -1
- package/models/operations/subscriptionslist.js +1 -32
- package/models/operations/subscriptionslist.js.map +1 -1
- package/package.json +1 -1
- package/sdk/oauth2.js +1 -1
- package/sdk/polarsubscriptions.d.ts +0 -9
- package/sdk/polarsubscriptions.d.ts.map +1 -1
- package/sdk/polarsubscriptions.js +0 -12
- package/sdk/polarsubscriptions.js.map +1 -1
- package/sdk/sdk.js +15 -15
- package/sdk/subscriptions.d.ts +0 -15
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +0 -20
- package/sdk/subscriptions.js.map +1 -1
- package/sdk/users.js +6 -6
- package/src/funcs/advertisementsGet.ts +40 -41
- package/src/funcs/advertisementsList.ts +48 -49
- package/src/funcs/articlesCreate.ts +37 -37
- package/src/funcs/articlesDelete.ts +41 -41
- package/src/funcs/articlesGet.ts +40 -40
- package/src/funcs/articlesList.ts +52 -52
- package/src/funcs/articlesPreview.ts +41 -44
- package/src/funcs/articlesReceivers.ts +39 -40
- package/src/funcs/articlesSend.ts +41 -41
- package/src/funcs/articlesUpdate.ts +41 -44
- package/src/funcs/benefitsCreate.ts +38 -38
- package/src/funcs/benefitsDelete.ts +41 -41
- package/src/funcs/benefitsGet.ts +40 -40
- package/src/funcs/benefitsGrants.ts +52 -55
- package/src/funcs/benefitsList.ts +48 -48
- package/src/funcs/benefitsUpdate.ts +41 -44
- package/src/funcs/checkoutsCreate.ts +37 -37
- package/src/funcs/checkoutsGet.ts +39 -39
- package/src/funcs/externalOrganizationsList.ts +51 -51
- package/src/funcs/filesCreate.ts +37 -37
- package/src/funcs/filesDelete.ts +41 -41
- package/src/funcs/filesList.ts +48 -48
- package/src/funcs/filesUpdate.ts +39 -42
- package/src/funcs/filesUploaded.ts +39 -42
- package/src/funcs/licenseKeysGet.ts +41 -41
- package/src/funcs/licenseKeysGetActivation.ts +44 -44
- package/src/funcs/licenseKeysList.ts +49 -49
- package/src/funcs/licenseKeysUpdate.ts +41 -47
- package/src/funcs/metricsGet.ts +45 -45
- package/src/funcs/metricsLimits.ts +22 -22
- package/src/funcs/oauth2ClientsCreate.ts +37 -38
- package/src/funcs/oauth2ClientsDelete.ts +40 -40
- package/src/funcs/oauth2ClientsGet.ts +40 -40
- package/src/funcs/oauth2ClientsList.ts +46 -47
- package/src/funcs/oauth2ClientsUpdate.ts +40 -43
- package/src/funcs/oauth2Introspect.ts +35 -35
- package/src/funcs/oauth2Revoke.ts +35 -35
- package/src/funcs/oauth2Token.ts +35 -35
- package/src/funcs/oauth2Userinfo.ts +22 -22
- package/src/funcs/ordersGet.ts +40 -40
- package/src/funcs/ordersInvoice.ts +40 -40
- package/src/funcs/ordersList.ts +51 -53
- package/src/funcs/organizationsCreate.ts +37 -37
- package/src/funcs/organizationsGet.ts +40 -40
- package/src/funcs/organizationsList.ts +49 -50
- package/src/funcs/organizationsUpdate.ts +42 -45
- package/src/funcs/productsCreate.ts +38 -38
- package/src/funcs/productsGet.ts +40 -40
- package/src/funcs/productsList.ts +50 -51
- package/src/funcs/productsUpdate.ts +41 -44
- package/src/funcs/productsUpdateBenefits.ts +42 -45
- package/src/funcs/repositoriesGet.ts +40 -40
- package/src/funcs/repositoriesList.ts +52 -52
- package/src/funcs/repositoriesUpdate.ts +41 -47
- package/src/funcs/subscriptionsExport.ts +41 -41
- package/src/funcs/subscriptionsList.ts +50 -52
- package/src/funcs/usersAdvertisementsCreate.ts +38 -38
- package/src/funcs/usersAdvertisementsDelete.ts +42 -42
- package/src/funcs/usersAdvertisementsEnable.ts +41 -44
- package/src/funcs/usersAdvertisementsGet.ts +41 -41
- package/src/funcs/usersAdvertisementsList.ts +48 -48
- package/src/funcs/usersAdvertisementsUpdate.ts +41 -44
- package/src/funcs/usersBenefitsGet.ts +40 -40
- package/src/funcs/usersBenefitsList.ts +51 -52
- package/src/funcs/usersDownloadablesGet.ts +41 -41
- package/src/funcs/usersDownloadablesList.ts +49 -49
- package/src/funcs/usersLicenseKeysActivate.ts +39 -39
- package/src/funcs/usersLicenseKeysDeactivate.ts +38 -38
- package/src/funcs/usersLicenseKeysGet.ts +42 -42
- package/src/funcs/usersLicenseKeysList.ts +51 -51
- package/src/funcs/usersLicenseKeysValidate.ts +38 -38
- package/src/funcs/usersOrdersGet.ts +40 -40
- package/src/funcs/usersOrdersInvoice.ts +40 -41
- package/src/funcs/usersOrdersList.ts +52 -52
- package/src/funcs/usersSubscriptionsCancel.ts +42 -42
- package/src/funcs/usersSubscriptionsGet.ts +41 -41
- package/src/funcs/usersSubscriptionsList.ts +52 -52
- package/src/funcs/usersSubscriptionsUpdate.ts +42 -48
- package/src/lib/config.ts +18 -12
- package/src/lib/sdks.ts +26 -26
- package/src/models/components/index.ts +14 -9
- package/src/models/components/orderproduct.ts +0 -21
- package/src/models/components/ordersubscription.ts +23 -4
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/productinput.ts +0 -21
- package/src/models/components/productonetimecreate.ts +84 -9
- package/src/models/components/productoutput.ts +0 -21
- package/src/models/components/productpriceinput.ts +13 -29
- package/src/models/components/productpriceonetime.ts +36 -114
- package/src/models/components/productpriceonetimecustom.ts +201 -0
- package/src/models/components/productpriceonetimecustomcreate.ts +158 -0
- package/src/models/components/productpriceonetimefixed.ts +182 -0
- package/src/models/components/productpriceonetimefixedcreate.ts +139 -0
- package/src/models/components/productpriceonetimefree.ts +164 -0
- package/src/models/components/productpriceonetimefreecreate.ts +121 -0
- package/src/models/components/productpriceoutput.ts +13 -29
- package/src/models/components/productpricerecurringcustom.ts +216 -0
- package/src/models/components/productpricerecurringfixed.ts +191 -0
- package/src/models/components/productpricerecurringfixedcreate.ts +155 -0
- package/src/models/components/productpricerecurringfree.ts +179 -0
- package/src/models/components/productpricerecurringfreecreate.ts +136 -0
- package/src/models/components/productpricerecurringinput.ts +93 -0
- package/src/models/components/productpricerecurringoutput.ts +93 -0
- package/src/models/components/productrecurringcreate.ts +57 -48
- package/src/models/components/productupdate.ts +87 -51
- package/src/models/components/subscriptioninput.ts +27 -8
- package/src/models/components/subscriptionoutput.ts +27 -8
- package/src/models/components/subscriptionrecurringinterval.ts +35 -0
- package/src/models/components/subscriptionsortproperty.ts +2 -4
- package/src/models/components/userorderproduct.ts +0 -21
- package/src/models/components/userordersubscription.ts +23 -4
- package/src/models/components/usersubscription.ts +30 -8
- package/src/models/components/usersubscriptionproduct.ts +0 -21
- package/src/models/components/usersubscriptionsortproperty.ts +2 -2
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/productscreate.ts +6 -6
- package/src/models/operations/productslist.ts +0 -70
- package/src/models/operations/subscriptionslist.ts +0 -68
- package/src/sdk/oauth2.ts +1 -1
- package/src/sdk/polarsubscriptions.ts +0 -20
- package/src/sdk/sdk.ts +15 -15
- package/src/sdk/subscriptions.ts +0 -37
- package/src/sdk/users.ts +6 -6
- package/funcs/subscriptionsCreate.d.ts +0 -16
- package/funcs/subscriptionsCreate.d.ts.map +0 -1
- package/funcs/subscriptionsCreate.js +0 -96
- package/funcs/subscriptionsCreate.js.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.d.ts +0 -16
- package/funcs/subscriptionsImportSubscriptions.d.ts.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.js +0 -109
- package/funcs/subscriptionsImportSubscriptions.js.map +0 -1
- package/funcs/usersSubscriptionsCreate.d.ts +0 -18
- package/funcs/usersSubscriptionsCreate.d.ts.map +0 -1
- package/funcs/usersSubscriptionsCreate.js +0 -98
- package/funcs/usersSubscriptionsCreate.js.map +0 -1
- package/models/components/bodysubscriptionsimport.d.ts +0 -58
- package/models/components/bodysubscriptionsimport.d.ts.map +0 -1
- package/models/components/bodysubscriptionsimport.js +0 -92
- package/models/components/bodysubscriptionsimport.js.map +0 -1
- package/models/components/productpriceonetimecreate.d.ts +0 -61
- package/models/components/productpriceonetimecreate.d.ts.map +0 -1
- package/models/components/productpriceonetimecreate.js +0 -83
- package/models/components/productpriceonetimecreate.js.map +0 -1
- package/models/components/productpricerecurring.d.ts +0 -96
- package/models/components/productpricerecurring.d.ts.map +0 -1
- package/models/components/productpricerecurring.js +0 -105
- package/models/components/productpricerecurring.js.map +0 -1
- package/models/components/productpricerecurringcreate.d.ts +0 -67
- package/models/components/productpricerecurringcreate.d.ts.map +0 -1
- package/models/components/productpricerecurringcreate.js +0 -88
- package/models/components/productpricerecurringcreate.js.map +0 -1
- package/models/components/productpricerecurringinterval.d.ts +0 -28
- package/models/components/subscriptioncreateemail.d.ts +0 -36
- package/models/components/subscriptioncreateemail.d.ts.map +0 -1
- package/models/components/subscriptioncreateemail.js +0 -61
- package/models/components/subscriptioncreateemail.js.map +0 -1
- package/models/components/subscriptionsimported.d.ts +0 -28
- package/models/components/subscriptionsimported.d.ts.map +0 -1
- package/models/components/subscriptionsimported.js +0 -50
- package/models/components/subscriptionsimported.js.map +0 -1
- package/models/components/subscriptiontiertype.d.ts +0 -31
- package/models/components/subscriptiontiertype.d.ts.map +0 -1
- package/models/components/subscriptiontiertype.js +0 -51
- package/models/components/subscriptiontiertype.js.map +0 -1
- package/models/components/userfreesubscriptioncreate.d.ts +0 -33
- package/models/components/userfreesubscriptioncreate.d.ts.map +0 -1
- package/models/components/userfreesubscriptioncreate.js +0 -63
- package/models/components/userfreesubscriptioncreate.js.map +0 -1
- package/models/errors/alreadysubscribed.d.ts +0 -57
- package/models/errors/alreadysubscribed.d.ts.map +0 -1
- package/models/errors/alreadysubscribed.js +0 -88
- package/models/errors/alreadysubscribed.js.map +0 -1
- package/models/errors/freesubscriptionupgrade.d.ts +0 -57
- package/models/errors/freesubscriptionupgrade.d.ts.map +0 -1
- package/models/errors/freesubscriptionupgrade.js +0 -88
- package/models/errors/freesubscriptionupgrade.js.map +0 -1
- package/src/funcs/subscriptionsCreate.ts +0 -126
- package/src/funcs/subscriptionsImportSubscriptions.ts +0 -142
- package/src/funcs/usersSubscriptionsCreate.ts +0 -135
- package/src/models/components/bodysubscriptionsimport.ts +0 -114
- package/src/models/components/productpriceonetimecreate.ts +0 -102
- package/src/models/components/productpricerecurring.ts +0 -161
- package/src/models/components/productpricerecurringcreate.ts +0 -116
- package/src/models/components/productpricerecurringinterval.ts +0 -35
- package/src/models/components/subscriptioncreateemail.ts +0 -67
- package/src/models/components/subscriptionsimported.ts +0 -48
- package/src/models/components/subscriptiontiertype.ts +0 -34
- package/src/models/components/userfreesubscriptioncreate.ts +0 -66
- package/src/models/errors/alreadysubscribed.ts +0 -102
- package/src/models/errors/freesubscriptionupgrade.ts +0 -106
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"subscriptionrecurringinterval.js","sourceRoot":"","sources":["../../src/models/components/subscriptionrecurringinterval.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,6BAA6B,GAAG;IAC3C,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC;AAKX,gBAAgB;AACH,QAAA,2CAA2C,GAEpD,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAAC,CAAC;AAEhD,gBAAgB;AACH,QAAA,4CAA4C,GAErD,mDAA2C,CAAC;AAEhD;;;GAGG;AACH,IAAiB,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAC7E,CAAC,EALgB,8BAA8B,8CAA9B,8BAA8B,QAK9C"}
|
|
@@ -9,10 +9,8 @@ export declare const SubscriptionSortProperty: {
|
|
|
9
9
|
readonly MinusStartedAt: "-started_at";
|
|
10
10
|
readonly CurrentPeriodEnd: "current_period_end";
|
|
11
11
|
readonly MinusCurrentPeriodEnd: "-current_period_end";
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly SubscriptionTierType: "subscription_tier_type";
|
|
15
|
-
readonly MinusSubscriptionTierType: "-subscription_tier_type";
|
|
12
|
+
readonly Amount: "amount";
|
|
13
|
+
readonly MinusAmount: "-amount";
|
|
16
14
|
readonly Product: "product";
|
|
17
15
|
readonly MinusProduct: "-product";
|
|
18
16
|
};
|
|
@@ -36,10 +34,8 @@ export declare namespace SubscriptionSortProperty$ {
|
|
|
36
34
|
readonly MinusStartedAt: "-started_at";
|
|
37
35
|
readonly CurrentPeriodEnd: "current_period_end";
|
|
38
36
|
readonly MinusCurrentPeriodEnd: "-current_period_end";
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly SubscriptionTierType: "subscription_tier_type";
|
|
42
|
-
readonly MinusSubscriptionTierType: "-subscription_tier_type";
|
|
37
|
+
readonly Amount: "amount";
|
|
38
|
+
readonly MinusAmount: "-amount";
|
|
43
39
|
readonly Product: "product";
|
|
44
40
|
readonly MinusProduct: "-product";
|
|
45
41
|
}>;
|
|
@@ -53,10 +49,8 @@ export declare namespace SubscriptionSortProperty$ {
|
|
|
53
49
|
readonly MinusStartedAt: "-started_at";
|
|
54
50
|
readonly CurrentPeriodEnd: "current_period_end";
|
|
55
51
|
readonly MinusCurrentPeriodEnd: "-current_period_end";
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly SubscriptionTierType: "subscription_tier_type";
|
|
59
|
-
readonly MinusSubscriptionTierType: "-subscription_tier_type";
|
|
52
|
+
readonly Amount: "amount";
|
|
53
|
+
readonly MinusAmount: "-amount";
|
|
60
54
|
readonly Product: "product";
|
|
61
55
|
readonly MinusProduct: "-product";
|
|
62
56
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionsortproperty.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionsortproperty.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"subscriptionsortproperty.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionsortproperty.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CAa3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,aAAa,CAClE,OAAO,wBAAwB,CACS,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,wBAAwB,CACS,CAAC;AAE3C;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa;;;;;;;;;;;;;MAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc;;;;;;;;;;;;;MAA0C,CAAC;CACvE"}
|
|
@@ -37,10 +37,8 @@ exports.SubscriptionSortProperty = {
|
|
|
37
37
|
MinusStartedAt: "-started_at",
|
|
38
38
|
CurrentPeriodEnd: "current_period_end",
|
|
39
39
|
MinusCurrentPeriodEnd: "-current_period_end",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
SubscriptionTierType: "subscription_tier_type",
|
|
43
|
-
MinusSubscriptionTierType: "-subscription_tier_type",
|
|
40
|
+
Amount: "amount",
|
|
41
|
+
MinusAmount: "-amount",
|
|
44
42
|
Product: "product",
|
|
45
43
|
MinusProduct: "-product",
|
|
46
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionsortproperty.js","sourceRoot":"","sources":["../../src/models/components/subscriptionsortproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,aAAa;IAC7B,gBAAgB,EAAE,oBAAoB;IACtC,qBAAqB,EAAE,qBAAqB;IAC5C,
|
|
1
|
+
{"version":3,"file":"subscriptionsortproperty.js","sourceRoot":"","sources":["../../src/models/components/subscriptionsortproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,aAAa;IAC7B,gBAAgB,EAAE,oBAAoB;IACtC,qBAAqB,EAAE,qBAAqB;IAC5C,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,UAAU;CAChB,CAAC;AAKX,gBAAgB;AACH,QAAA,sCAAsC,GAE/C,CAAC,CAAC,UAAU,CAAC,gCAAwB,CAAC,CAAC;AAE3C,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,8CAAsC,CAAC;AAE3C;;;GAGG;AACH,IAAiB,yBAAyB,CAKzC;AALD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AACxE,CAAC,EALgB,yBAAyB,yCAAzB,yBAAyB,QAKzC"}
|
|
@@ -3,7 +3,6 @@ import { BenefitArticles, BenefitArticles$Outbound } from "./benefitarticles.js"
|
|
|
3
3
|
import { BenefitBase, BenefitBase$Outbound } from "./benefitbase.js";
|
|
4
4
|
import { ProductMediaFileReadOutput, ProductMediaFileReadOutput$Outbound } from "./productmediafilereadoutput.js";
|
|
5
5
|
import { ProductPriceOutput, ProductPriceOutput$Outbound } from "./productpriceoutput.js";
|
|
6
|
-
import { SubscriptionTierType } from "./subscriptiontiertype.js";
|
|
7
6
|
export type Benefits = BenefitBase | BenefitArticles;
|
|
8
7
|
export type UserOrderProduct = {
|
|
9
8
|
/**
|
|
@@ -38,14 +37,6 @@ export type UserOrderProduct = {
|
|
|
38
37
|
* The ID of the organization owning the product.
|
|
39
38
|
*/
|
|
40
39
|
organizationId: string;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
43
|
-
*/
|
|
44
|
-
type: SubscriptionTierType | null;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
47
|
-
*/
|
|
48
|
-
isHighlighted: boolean | null;
|
|
49
40
|
/**
|
|
50
41
|
* List of available prices for this product.
|
|
51
42
|
*/
|
|
@@ -89,8 +80,6 @@ export type UserOrderProduct$Outbound = {
|
|
|
89
80
|
is_recurring: boolean;
|
|
90
81
|
is_archived: boolean;
|
|
91
82
|
organization_id: string;
|
|
92
|
-
type: string | null;
|
|
93
|
-
is_highlighted: boolean | null;
|
|
94
83
|
prices: Array<ProductPriceOutput$Outbound>;
|
|
95
84
|
benefits: Array<BenefitBase$Outbound | BenefitArticles$Outbound>;
|
|
96
85
|
medias: Array<ProductMediaFileReadOutput$Outbound>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userorderproduct.d.ts","sourceRoot":"","sources":["../../src/models/components/userorderproduct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"userorder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,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD"}
|
|
@@ -33,7 +33,6 @@ const benefitarticles_js_1 = require("./benefitarticles.js");
|
|
|
33
33
|
const benefitbase_js_1 = require("./benefitbase.js");
|
|
34
34
|
const productmediafilereadoutput_js_1 = require("./productmediafilereadoutput.js");
|
|
35
35
|
const productpriceoutput_js_1 = require("./productpriceoutput.js");
|
|
36
|
-
const subscriptiontiertype_js_1 = require("./subscriptiontiertype.js");
|
|
37
36
|
/** @internal */
|
|
38
37
|
exports.Benefits$inboundSchema = z.union([benefitbase_js_1.BenefitBase$inboundSchema, benefitarticles_js_1.BenefitArticles$inboundSchema]);
|
|
39
38
|
/** @internal */
|
|
@@ -59,8 +58,6 @@ exports.UserOrderProduct$inboundSchema = z.object({
|
|
|
59
58
|
is_recurring: z.boolean(),
|
|
60
59
|
is_archived: z.boolean(),
|
|
61
60
|
organization_id: z.string(),
|
|
62
|
-
type: z.nullable(subscriptiontiertype_js_1.SubscriptionTierType$inboundSchema),
|
|
63
|
-
is_highlighted: z.nullable(z.boolean()),
|
|
64
61
|
prices: z.array(productpriceoutput_js_1.ProductPriceOutput$inboundSchema),
|
|
65
62
|
benefits: z.array(z.union([benefitbase_js_1.BenefitBase$inboundSchema, benefitarticles_js_1.BenefitArticles$inboundSchema])),
|
|
66
63
|
medias: z.array(productmediafilereadoutput_js_1.ProductMediaFileReadOutput$inboundSchema),
|
|
@@ -71,7 +68,6 @@ exports.UserOrderProduct$inboundSchema = z.object({
|
|
|
71
68
|
"is_recurring": "isRecurring",
|
|
72
69
|
"is_archived": "isArchived",
|
|
73
70
|
"organization_id": "organizationId",
|
|
74
|
-
"is_highlighted": "isHighlighted",
|
|
75
71
|
});
|
|
76
72
|
});
|
|
77
73
|
/** @internal */
|
|
@@ -84,8 +80,6 @@ exports.UserOrderProduct$outboundSchema = z.object({
|
|
|
84
80
|
isRecurring: z.boolean(),
|
|
85
81
|
isArchived: z.boolean(),
|
|
86
82
|
organizationId: z.string(),
|
|
87
|
-
type: z.nullable(subscriptiontiertype_js_1.SubscriptionTierType$outboundSchema),
|
|
88
|
-
isHighlighted: z.nullable(z.boolean()),
|
|
89
83
|
prices: z.array(productpriceoutput_js_1.ProductPriceOutput$outboundSchema),
|
|
90
84
|
benefits: z.array(z.union([benefitbase_js_1.BenefitBase$outboundSchema, benefitarticles_js_1.BenefitArticles$outboundSchema])),
|
|
91
85
|
medias: z.array(productmediafilereadoutput_js_1.ProductMediaFileReadOutput$outboundSchema),
|
|
@@ -96,7 +90,6 @@ exports.UserOrderProduct$outboundSchema = z.object({
|
|
|
96
90
|
isRecurring: "is_recurring",
|
|
97
91
|
isArchived: "is_archived",
|
|
98
92
|
organizationId: "organization_id",
|
|
99
|
-
isHighlighted: "is_highlighted",
|
|
100
93
|
});
|
|
101
94
|
});
|
|
102
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userorderproduct.js","sourceRoot":"","sources":["../../src/models/components/userorderproduct.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,6DAK8B;AAC9B,qDAK0B;AAC1B,mFAKyC;AACzC,mEAKiC;
|
|
1
|
+
{"version":3,"file":"userorderproduct.js","sourceRoot":"","sources":["../../src/models/components/userorderproduct.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,6DAK8B;AAC9B,qDAK0B;AAC1B,mFAKyC;AACzC,mEAKiC;AAmDjC,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,KAAK,CAAC,CAAC,0CAAyB,EAAE,kDAA6B,CAAC,CAAC,CAAC;AAKxE,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,KAAK,CAAC,CAAC,2CAA0B,EAAE,mDAA8B,CAAC,CAAC,CAAC;AA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,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
2
3
|
import { SubscriptionStatus } from "./subscriptionstatus.js";
|
|
3
4
|
export type UserOrderSubscription = {
|
|
4
5
|
/**
|
|
@@ -13,6 +14,9 @@ export type UserOrderSubscription = {
|
|
|
13
14
|
* The ID of the object.
|
|
14
15
|
*/
|
|
15
16
|
id: string;
|
|
17
|
+
amount: number | null;
|
|
18
|
+
currency: string | null;
|
|
19
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
16
20
|
status: SubscriptionStatus;
|
|
17
21
|
currentPeriodStart: Date;
|
|
18
22
|
currentPeriodEnd: Date | null;
|
|
@@ -21,7 +25,7 @@ export type UserOrderSubscription = {
|
|
|
21
25
|
endedAt: Date | null;
|
|
22
26
|
userId: string;
|
|
23
27
|
productId: string;
|
|
24
|
-
priceId: string
|
|
28
|
+
priceId: string;
|
|
25
29
|
};
|
|
26
30
|
/** @internal */
|
|
27
31
|
export declare const UserOrderSubscription$inboundSchema: z.ZodType<UserOrderSubscription, z.ZodTypeDef, unknown>;
|
|
@@ -30,6 +34,9 @@ export type UserOrderSubscription$Outbound = {
|
|
|
30
34
|
created_at: string;
|
|
31
35
|
modified_at: string | null;
|
|
32
36
|
id: string;
|
|
37
|
+
amount: number | null;
|
|
38
|
+
currency: string | null;
|
|
39
|
+
recurring_interval: string;
|
|
33
40
|
status: string;
|
|
34
41
|
current_period_start: string;
|
|
35
42
|
current_period_end: string | null;
|
|
@@ -38,7 +45,7 @@ export type UserOrderSubscription$Outbound = {
|
|
|
38
45
|
ended_at: string | null;
|
|
39
46
|
user_id: string;
|
|
40
47
|
product_id: string;
|
|
41
|
-
price_id: string
|
|
48
|
+
price_id: string;
|
|
42
49
|
};
|
|
43
50
|
/** @internal */
|
|
44
51
|
export declare const UserOrderSubscription$outboundSchema: z.ZodType<UserOrderSubscription$Outbound, z.ZodTypeDef, UserOrderSubscription>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userordersubscription.d.ts","sourceRoot":"","sources":["../../src/models/components/userordersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,CAAC;IAC3B,kBAAkB,EAAE,IAAI,CAAC;IACzB,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"userordersubscription.d.ts","sourceRoot":"","sources":["../../src/models/components/userordersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AAEjC,MA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CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CA+BrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD"}
|
|
@@ -29,12 +29,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.UserOrderSubscription$ = exports.UserOrderSubscription$outboundSchema = exports.UserOrderSubscription$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
32
33
|
const subscriptionstatus_js_1 = require("./subscriptionstatus.js");
|
|
33
34
|
/** @internal */
|
|
34
35
|
exports.UserOrderSubscription$inboundSchema = z.object({
|
|
35
36
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
36
37
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
37
38
|
id: z.string(),
|
|
39
|
+
amount: z.nullable(z.number().int()),
|
|
40
|
+
currency: z.nullable(z.string()),
|
|
41
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
38
42
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
39
43
|
current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
40
44
|
current_period_end: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
@@ -43,11 +47,12 @@ exports.UserOrderSubscription$inboundSchema = z.object({
|
|
|
43
47
|
ended_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
44
48
|
user_id: z.string(),
|
|
45
49
|
product_id: z.string(),
|
|
46
|
-
price_id: z.
|
|
50
|
+
price_id: z.string(),
|
|
47
51
|
}).transform((v) => {
|
|
48
52
|
return (0, primitives_js_1.remap)(v, {
|
|
49
53
|
"created_at": "createdAt",
|
|
50
54
|
"modified_at": "modifiedAt",
|
|
55
|
+
"recurring_interval": "recurringInterval",
|
|
51
56
|
"current_period_start": "currentPeriodStart",
|
|
52
57
|
"current_period_end": "currentPeriodEnd",
|
|
53
58
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -63,6 +68,9 @@ exports.UserOrderSubscription$outboundSchema = z.object({
|
|
|
63
68
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
64
69
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
65
70
|
id: z.string(),
|
|
71
|
+
amount: z.nullable(z.number().int()),
|
|
72
|
+
currency: z.nullable(z.string()),
|
|
73
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
66
74
|
status: subscriptionstatus_js_1.SubscriptionStatus$outboundSchema,
|
|
67
75
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
68
76
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -71,11 +79,12 @@ exports.UserOrderSubscription$outboundSchema = z.object({
|
|
|
71
79
|
endedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
72
80
|
userId: z.string(),
|
|
73
81
|
productId: z.string(),
|
|
74
|
-
priceId: z.
|
|
82
|
+
priceId: z.string(),
|
|
75
83
|
}).transform((v) => {
|
|
76
84
|
return (0, primitives_js_1.remap)(v, {
|
|
77
85
|
createdAt: "created_at",
|
|
78
86
|
modifiedAt: "modified_at",
|
|
87
|
+
recurringInterval: "recurring_interval",
|
|
79
88
|
currentPeriodStart: "current_period_start",
|
|
80
89
|
currentPeriodEnd: "current_period_end",
|
|
81
90
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userordersubscription.js","sourceRoot":"","sources":["../../src/models/components/userordersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAIiC;
|
|
1
|
+
{"version":3,"file":"userordersubscription.js","sourceRoot":"","sources":["../../src/models/components/userordersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,yFAI4C;AAC5C,mEAIiC;AA6BjC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAClE;IACD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;IACpC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,kBAAkB,EAAE,8EAA2C;IAC/D,MAA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D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,iBAAiB,EAAE,oBAAoB;QACvC,kBAAkB,EAAE,sBAAsB;QAC1C,gBAAgB,EAAE,oBAAoB;QACtC,iBAAiB,EAAE,sBAAsB;QACzC,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAU;QACnB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductPriceOutput, ProductPriceOutput$Outbound } from "./productpriceoutput.js";
|
|
3
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
3
4
|
import { SubscriptionStatus } from "./subscriptionstatus.js";
|
|
4
5
|
import { UserSubscriptionProduct, UserSubscriptionProduct$Outbound } from "./usersubscriptionproduct.js";
|
|
5
6
|
export type UserSubscription = {
|
|
@@ -11,7 +12,13 @@ export type UserSubscription = {
|
|
|
11
12
|
* Last modification timestamp of the object.
|
|
12
13
|
*/
|
|
13
14
|
modifiedAt: Date | null;
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the object.
|
|
17
|
+
*/
|
|
14
18
|
id: string;
|
|
19
|
+
amount: number | null;
|
|
20
|
+
currency: string | null;
|
|
21
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
15
22
|
status: SubscriptionStatus;
|
|
16
23
|
currentPeriodStart: Date;
|
|
17
24
|
currentPeriodEnd: Date | null;
|
|
@@ -20,9 +27,9 @@ export type UserSubscription = {
|
|
|
20
27
|
endedAt: Date | null;
|
|
21
28
|
userId: string;
|
|
22
29
|
productId: string;
|
|
23
|
-
priceId: string
|
|
30
|
+
priceId: string;
|
|
24
31
|
product: UserSubscriptionProduct;
|
|
25
|
-
price: ProductPriceOutput
|
|
32
|
+
price: ProductPriceOutput;
|
|
26
33
|
};
|
|
27
34
|
/** @internal */
|
|
28
35
|
export declare const UserSubscription$inboundSchema: z.ZodType<UserSubscription, z.ZodTypeDef, unknown>;
|
|
@@ -31,6 +38,9 @@ export type UserSubscription$Outbound = {
|
|
|
31
38
|
created_at: string;
|
|
32
39
|
modified_at: string | null;
|
|
33
40
|
id: string;
|
|
41
|
+
amount: number | null;
|
|
42
|
+
currency: string | null;
|
|
43
|
+
recurring_interval: string;
|
|
34
44
|
status: string;
|
|
35
45
|
current_period_start: string;
|
|
36
46
|
current_period_end: string | null;
|
|
@@ -39,9 +49,9 @@ export type UserSubscription$Outbound = {
|
|
|
39
49
|
ended_at: string | null;
|
|
40
50
|
user_id: string;
|
|
41
51
|
product_id: string;
|
|
42
|
-
price_id: string
|
|
52
|
+
price_id: string;
|
|
43
53
|
product: UserSubscriptionProduct$Outbound;
|
|
44
|
-
price: ProductPriceOutput$Outbound
|
|
54
|
+
price: ProductPriceOutput$Outbound;
|
|
45
55
|
};
|
|
46
56
|
/** @internal */
|
|
47
57
|
export declare const UserSubscription$outboundSchema: z.ZodType<UserSubscription$Outbound, z.ZodTypeDef, UserSubscription>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersubscription.d.ts","sourceRoot":"","sources":["../../src/models/components/usersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,CAAC;IAC3B,kBAAkB,EAAE,IAAI,CAAC;IACzB,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"usersubscription.d.ts","sourceRoot":"","sources":["../../src/models/components/usersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAA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9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,gCAAgC,CAAC;IAC1C,KAAK,EAAE,2BAA2B,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAiChB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD"}
|
|
@@ -30,6 +30,7 @@ exports.UserSubscription$ = exports.UserSubscription$outboundSchema = exports.Us
|
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const productpriceoutput_js_1 = require("./productpriceoutput.js");
|
|
33
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
33
34
|
const subscriptionstatus_js_1 = require("./subscriptionstatus.js");
|
|
34
35
|
const usersubscriptionproduct_js_1 = require("./usersubscriptionproduct.js");
|
|
35
36
|
/** @internal */
|
|
@@ -37,6 +38,9 @@ exports.UserSubscription$inboundSchema = z.object({
|
|
|
37
38
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
38
39
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
39
40
|
id: z.string(),
|
|
41
|
+
amount: z.nullable(z.number().int()),
|
|
42
|
+
currency: z.nullable(z.string()),
|
|
43
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
40
44
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
41
45
|
current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
42
46
|
current_period_end: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
@@ -45,13 +49,14 @@ exports.UserSubscription$inboundSchema = z.object({
|
|
|
45
49
|
ended_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
46
50
|
user_id: z.string(),
|
|
47
51
|
product_id: z.string(),
|
|
48
|
-
price_id: z.
|
|
52
|
+
price_id: z.string(),
|
|
49
53
|
product: usersubscriptionproduct_js_1.UserSubscriptionProduct$inboundSchema,
|
|
50
|
-
price:
|
|
54
|
+
price: productpriceoutput_js_1.ProductPriceOutput$inboundSchema,
|
|
51
55
|
}).transform((v) => {
|
|
52
56
|
return (0, primitives_js_1.remap)(v, {
|
|
53
57
|
"created_at": "createdAt",
|
|
54
58
|
"modified_at": "modifiedAt",
|
|
59
|
+
"recurring_interval": "recurringInterval",
|
|
55
60
|
"current_period_start": "currentPeriodStart",
|
|
56
61
|
"current_period_end": "currentPeriodEnd",
|
|
57
62
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -67,6 +72,9 @@ exports.UserSubscription$outboundSchema = z.object({
|
|
|
67
72
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
68
73
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
69
74
|
id: z.string(),
|
|
75
|
+
amount: z.nullable(z.number().int()),
|
|
76
|
+
currency: z.nullable(z.string()),
|
|
77
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
70
78
|
status: subscriptionstatus_js_1.SubscriptionStatus$outboundSchema,
|
|
71
79
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
72
80
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -75,13 +83,14 @@ exports.UserSubscription$outboundSchema = z.object({
|
|
|
75
83
|
endedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
76
84
|
userId: z.string(),
|
|
77
85
|
productId: z.string(),
|
|
78
|
-
priceId: z.
|
|
86
|
+
priceId: z.string(),
|
|
79
87
|
product: usersubscriptionproduct_js_1.UserSubscriptionProduct$outboundSchema,
|
|
80
|
-
price:
|
|
88
|
+
price: productpriceoutput_js_1.ProductPriceOutput$outboundSchema,
|
|
81
89
|
}).transform((v) => {
|
|
82
90
|
return (0, primitives_js_1.remap)(v, {
|
|
83
91
|
createdAt: "created_at",
|
|
84
92
|
modifiedAt: "modified_at",
|
|
93
|
+
recurringInterval: "recurring_interval",
|
|
85
94
|
currentPeriodStart: "current_period_start",
|
|
86
95
|
currentPeriodEnd: "current_period_end",
|
|
87
96
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersubscription.js","sourceRoot":"","sources":["../../src/models/components/usersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAKiC;AACjC,mEAIiC;AACjC,6EAKsC;
|
|
1
|
+
{"version":3,"file":"usersubscription.js","sourceRoot":"","sources":["../../src/models/components/usersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAKiC;AACjC,yFAI4C;AAC5C,mEAIiC;AACjC,6EAKsC;AA+BtC,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CA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B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC"}
|
|
@@ -3,7 +3,6 @@ import { BenefitArticles, BenefitArticles$Outbound } from "./benefitarticles.js"
|
|
|
3
3
|
import { BenefitBase, BenefitBase$Outbound } from "./benefitbase.js";
|
|
4
4
|
import { ProductMediaFileReadOutput, ProductMediaFileReadOutput$Outbound } from "./productmediafilereadoutput.js";
|
|
5
5
|
import { ProductPriceOutput, ProductPriceOutput$Outbound } from "./productpriceoutput.js";
|
|
6
|
-
import { SubscriptionTierType } from "./subscriptiontiertype.js";
|
|
7
6
|
export type UserSubscriptionProductBenefits = BenefitBase | BenefitArticles;
|
|
8
7
|
export type UserSubscriptionProduct = {
|
|
9
8
|
/**
|
|
@@ -38,14 +37,6 @@ export type UserSubscriptionProduct = {
|
|
|
38
37
|
* The ID of the organization owning the product.
|
|
39
38
|
*/
|
|
40
39
|
organizationId: string;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
43
|
-
*/
|
|
44
|
-
type: SubscriptionTierType | null;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
47
|
-
*/
|
|
48
|
-
isHighlighted: boolean | null;
|
|
49
40
|
/**
|
|
50
41
|
* List of available prices for this product.
|
|
51
42
|
*/
|
|
@@ -89,8 +80,6 @@ export type UserSubscriptionProduct$Outbound = {
|
|
|
89
80
|
is_recurring: boolean;
|
|
90
81
|
is_archived: boolean;
|
|
91
82
|
organization_id: string;
|
|
92
|
-
type: string | null;
|
|
93
|
-
is_highlighted: boolean | null;
|
|
94
83
|
prices: Array<ProductPriceOutput$Outbound>;
|
|
95
84
|
benefits: Array<BenefitBase$Outbound | BenefitArticles$Outbound>;
|
|
96
85
|
medias: Array<ProductMediaFileReadOutput$Outbound>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersubscriptionproduct.d.ts","sourceRoot":"","sources":["../../src/models/components/usersubscriptionproduct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"usersubscriptionproduct.d.ts","sourceRoot":"","sources":["../../src/models/components/usersubscriptionproduct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,+BAA+B,GAAG,WAAW,GAAG,eAAe,CAAC;AAE5E,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAA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AAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GAAG,wBAAwB,CAAC,CAAC;IACjE,MAAM,EAAE,KAAK,CAAC,mCAAmC,CAAC,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAuBvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD"}
|
|
@@ -33,7 +33,6 @@ const benefitarticles_js_1 = require("./benefitarticles.js");
|
|
|
33
33
|
const benefitbase_js_1 = require("./benefitbase.js");
|
|
34
34
|
const productmediafilereadoutput_js_1 = require("./productmediafilereadoutput.js");
|
|
35
35
|
const productpriceoutput_js_1 = require("./productpriceoutput.js");
|
|
36
|
-
const subscriptiontiertype_js_1 = require("./subscriptiontiertype.js");
|
|
37
36
|
/** @internal */
|
|
38
37
|
exports.UserSubscriptionProductBenefits$inboundSchema = z.union([benefitbase_js_1.BenefitBase$inboundSchema, benefitarticles_js_1.BenefitArticles$inboundSchema]);
|
|
39
38
|
/** @internal */
|
|
@@ -59,8 +58,6 @@ exports.UserSubscriptionProduct$inboundSchema = z.object({
|
|
|
59
58
|
is_recurring: z.boolean(),
|
|
60
59
|
is_archived: z.boolean(),
|
|
61
60
|
organization_id: z.string(),
|
|
62
|
-
type: z.nullable(subscriptiontiertype_js_1.SubscriptionTierType$inboundSchema),
|
|
63
|
-
is_highlighted: z.nullable(z.boolean()),
|
|
64
61
|
prices: z.array(productpriceoutput_js_1.ProductPriceOutput$inboundSchema),
|
|
65
62
|
benefits: z.array(z.union([benefitbase_js_1.BenefitBase$inboundSchema, benefitarticles_js_1.BenefitArticles$inboundSchema])),
|
|
66
63
|
medias: z.array(productmediafilereadoutput_js_1.ProductMediaFileReadOutput$inboundSchema),
|
|
@@ -71,7 +68,6 @@ exports.UserSubscriptionProduct$inboundSchema = z.object({
|
|
|
71
68
|
"is_recurring": "isRecurring",
|
|
72
69
|
"is_archived": "isArchived",
|
|
73
70
|
"organization_id": "organizationId",
|
|
74
|
-
"is_highlighted": "isHighlighted",
|
|
75
71
|
});
|
|
76
72
|
});
|
|
77
73
|
/** @internal */
|
|
@@ -84,8 +80,6 @@ exports.UserSubscriptionProduct$outboundSchema = z.object({
|
|
|
84
80
|
isRecurring: z.boolean(),
|
|
85
81
|
isArchived: z.boolean(),
|
|
86
82
|
organizationId: z.string(),
|
|
87
|
-
type: z.nullable(subscriptiontiertype_js_1.SubscriptionTierType$outboundSchema),
|
|
88
|
-
isHighlighted: z.nullable(z.boolean()),
|
|
89
83
|
prices: z.array(productpriceoutput_js_1.ProductPriceOutput$outboundSchema),
|
|
90
84
|
benefits: z.array(z.union([benefitbase_js_1.BenefitBase$outboundSchema, benefitarticles_js_1.BenefitArticles$outboundSchema])),
|
|
91
85
|
medias: z.array(productmediafilereadoutput_js_1.ProductMediaFileReadOutput$outboundSchema),
|
|
@@ -96,7 +90,6 @@ exports.UserSubscriptionProduct$outboundSchema = z.object({
|
|
|
96
90
|
isRecurring: "is_recurring",
|
|
97
91
|
isArchived: "is_archived",
|
|
98
92
|
organizationId: "organization_id",
|
|
99
|
-
isHighlighted: "is_highlighted",
|
|
100
93
|
});
|
|
101
94
|
});
|
|
102
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersubscriptionproduct.js","sourceRoot":"","sources":["../../src/models/components/usersubscriptionproduct.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,6DAK8B;AAC9B,qDAK0B;AAC1B,mFAKyC;AACzC,mEAKiC;
|
|
1
|
+
{"version":3,"file":"usersubscriptionproduct.js","sourceRoot":"","sources":["../../src/models/components/usersubscriptionproduct.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,6DAK8B;AAC9B,qDAK0B;AAC1B,mFAKyC;AACzC,mEAKiC;AAmDjC,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,KAAK,CAAC,CAAC,0CAAyB,EAAE,kDAA6B,CAAC,CAAC,CAAC;AAOxE,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,KAAK,CAAC,CAAC,2CAA0B,EAAE,mDAA8B,CAAC,CAAC,CAAC;AAE1E;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD;AAED,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SA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E,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yDAAiC,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,KAAK,CAAC,CAAC,2CAA0B,EAAE,mDAA8B,CAAC,CAAC,CACtE;IACD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yEAAyC,CAAC;CAC3D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC"}
|
|
@@ -3,8 +3,8 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
export declare const UserSubscriptionSortProperty: {
|
|
4
4
|
readonly StartedAt: "started_at";
|
|
5
5
|
readonly MinusStartedAt: "-started_at";
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
6
|
+
readonly Amount: "amount";
|
|
7
|
+
readonly MinusAmount: "-amount";
|
|
8
8
|
readonly Status: "status";
|
|
9
9
|
readonly MinusStatus: "-status";
|
|
10
10
|
readonly Organization: "organization";
|
|
@@ -26,8 +26,8 @@ export declare namespace UserSubscriptionSortProperty$ {
|
|
|
26
26
|
const inboundSchema: z.ZodNativeEnum<{
|
|
27
27
|
readonly StartedAt: "started_at";
|
|
28
28
|
readonly MinusStartedAt: "-started_at";
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
29
|
+
readonly Amount: "amount";
|
|
30
|
+
readonly MinusAmount: "-amount";
|
|
31
31
|
readonly Status: "status";
|
|
32
32
|
readonly MinusStatus: "-status";
|
|
33
33
|
readonly Organization: "organization";
|
|
@@ -39,8 +39,8 @@ export declare namespace UserSubscriptionSortProperty$ {
|
|
|
39
39
|
const outboundSchema: z.ZodNativeEnum<{
|
|
40
40
|
readonly StartedAt: "started_at";
|
|
41
41
|
readonly MinusStartedAt: "-started_at";
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
42
|
+
readonly Amount: "amount";
|
|
43
|
+
readonly MinusAmount: "-amount";
|
|
44
44
|
readonly Status: "status";
|
|
45
45
|
readonly MinusStatus: "-status";
|
|
46
46
|
readonly Organization: "organization";
|
|
@@ -31,8 +31,8 @@ const z = __importStar(require("zod"));
|
|
|
31
31
|
exports.UserSubscriptionSortProperty = {
|
|
32
32
|
StartedAt: "started_at",
|
|
33
33
|
MinusStartedAt: "-started_at",
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
Amount: "amount",
|
|
35
|
+
MinusAmount: "-amount",
|
|
36
36
|
Status: "status",
|
|
37
37
|
MinusStatus: "-status",
|
|
38
38
|
Organization: "organization",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersubscriptionsortproperty.js","sourceRoot":"","sources":["../../src/models/components/usersubscriptionsortproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,4BAA4B,GAAG;IAC1C,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,aAAa;IAC7B,
|
|
1
|
+
{"version":3,"file":"usersubscriptionsortproperty.js","sourceRoot":"","sources":["../../src/models/components/usersubscriptionsortproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,4BAA4B,GAAG;IAC1C,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,aAAa;IAC7B,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,eAAe;IAClC,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,UAAU;CAChB,CAAC;AAKX,gBAAgB;AACH,QAAA,0CAA0C,GAEnD,CAAC,CAAC,UAAU,CAAC,oCAA4B,CAAC,CAAC;AAE/C,gBAAgB;AACH,QAAA,2CAA2C,GAEpD,kDAA0C,CAAC;AAE/C;;;GAGG;AACH,IAAiB,6BAA6B,CAK7C;AALD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAC5E,CAAC,EALgB,6BAA6B,6CAA7B,6BAA6B,QAK7C"}
|