@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":"productrecurringcreate.js","sourceRoot":"","sources":["../../src/models/components/productrecurringcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;
|
|
1
|
+
{"version":3,"file":"productrecurringcreate.js","sourceRoot":"","sources":["../../src/models/components/productrecurringcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,+FAK+C;AAC/C,6FAK8C;AAqC9C,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,KAAK,CAAC,oFAA8C,CAAC;IACvD,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC;CACvD,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,KAAK,CAAC,qFAA+C,CAAC;IACxD,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC;CACxD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C;AAED,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC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C,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ExistingProductPrice, ExistingProductPrice$Outbound } from "./existingproductprice.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { ProductPriceOneTimeCustomCreate, ProductPriceOneTimeCustomCreate$Outbound } from "./productpriceonetimecustomcreate.js";
|
|
4
|
+
import { ProductPriceOneTimeFixedCreate, ProductPriceOneTimeFixedCreate$Outbound } from "./productpriceonetimefixedcreate.js";
|
|
5
|
+
import { ProductPriceOneTimeFreeCreate, ProductPriceOneTimeFreeCreate$Outbound } from "./productpriceonetimefreecreate.js";
|
|
6
|
+
import { ProductPriceRecurringFixedCreate, ProductPriceRecurringFixedCreate$Outbound } from "./productpricerecurringfixedcreate.js";
|
|
7
|
+
import { ProductPriceRecurringFreeCreate, ProductPriceRecurringFreeCreate$Outbound } from "./productpricerecurringfreecreate.js";
|
|
8
|
+
export type ProductUpdatePrices = ExistingProductPrice | ProductPriceOneTimeFreeCreate | ProductPriceRecurringFreeCreate | ProductPriceOneTimeFixedCreate | ProductPriceRecurringFixedCreate | ProductPriceOneTimeCustomCreate;
|
|
6
9
|
/**
|
|
7
10
|
* Schema to update a product.
|
|
8
11
|
*/
|
|
@@ -12,10 +15,6 @@ export type ProductUpdate = {
|
|
|
12
15
|
* The description of the product.
|
|
13
16
|
*/
|
|
14
17
|
description?: string | null | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
17
|
-
*/
|
|
18
|
-
isHighlighted?: boolean | null | undefined;
|
|
19
18
|
/**
|
|
20
19
|
* Whether the product is archived. If `true`, the product won't be available for purchase anymore. Existing customers will still have access to their benefits, and subscriptions will continue normally.
|
|
21
20
|
*/
|
|
@@ -23,29 +22,29 @@ export type ProductUpdate = {
|
|
|
23
22
|
/**
|
|
24
23
|
* List of available prices for this product. If you want to keep existing prices, include them in the list as an `ExistingProductPrice` object.
|
|
25
24
|
*/
|
|
26
|
-
prices?: Array<ExistingProductPrice |
|
|
25
|
+
prices?: Array<ExistingProductPrice | ProductPriceOneTimeFreeCreate | ProductPriceRecurringFreeCreate | ProductPriceOneTimeFixedCreate | ProductPriceRecurringFixedCreate | ProductPriceOneTimeCustomCreate> | null | undefined;
|
|
27
26
|
/**
|
|
28
27
|
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
29
28
|
*/
|
|
30
29
|
medias?: Array<string> | null | undefined;
|
|
31
30
|
};
|
|
32
31
|
/** @internal */
|
|
33
|
-
export declare const
|
|
32
|
+
export declare const ProductUpdatePrices$inboundSchema: z.ZodType<ProductUpdatePrices, z.ZodTypeDef, unknown>;
|
|
34
33
|
/** @internal */
|
|
35
|
-
export type
|
|
34
|
+
export type ProductUpdatePrices$Outbound = ExistingProductPrice$Outbound | ProductPriceOneTimeFreeCreate$Outbound | ProductPriceRecurringFreeCreate$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound;
|
|
36
35
|
/** @internal */
|
|
37
|
-
export declare const
|
|
36
|
+
export declare const ProductUpdatePrices$outboundSchema: z.ZodType<ProductUpdatePrices$Outbound, z.ZodTypeDef, ProductUpdatePrices>;
|
|
38
37
|
/**
|
|
39
38
|
* @internal
|
|
40
39
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
40
|
*/
|
|
42
|
-
export declare namespace
|
|
43
|
-
/** @deprecated use `
|
|
44
|
-
const inboundSchema: z.ZodType<
|
|
45
|
-
/** @deprecated use `
|
|
46
|
-
const outboundSchema: z.ZodType<
|
|
47
|
-
/** @deprecated use `
|
|
48
|
-
type Outbound =
|
|
41
|
+
export declare namespace ProductUpdatePrices$ {
|
|
42
|
+
/** @deprecated use `ProductUpdatePrices$inboundSchema` instead. */
|
|
43
|
+
const inboundSchema: z.ZodType<ProductUpdatePrices, z.ZodTypeDef, unknown>;
|
|
44
|
+
/** @deprecated use `ProductUpdatePrices$outboundSchema` instead. */
|
|
45
|
+
const outboundSchema: z.ZodType<ProductUpdatePrices$Outbound, z.ZodTypeDef, ProductUpdatePrices>;
|
|
46
|
+
/** @deprecated use `ProductUpdatePrices$Outbound` instead. */
|
|
47
|
+
type Outbound = ProductUpdatePrices$Outbound;
|
|
49
48
|
}
|
|
50
49
|
/** @internal */
|
|
51
50
|
export declare const ProductUpdate$inboundSchema: z.ZodType<ProductUpdate, z.ZodTypeDef, unknown>;
|
|
@@ -53,9 +52,8 @@ export declare const ProductUpdate$inboundSchema: z.ZodType<ProductUpdate, z.Zod
|
|
|
53
52
|
export type ProductUpdate$Outbound = {
|
|
54
53
|
name?: string | null | undefined;
|
|
55
54
|
description?: string | null | undefined;
|
|
56
|
-
is_highlighted?: boolean | null | undefined;
|
|
57
55
|
is_archived?: boolean | null | undefined;
|
|
58
|
-
prices?: Array<ExistingProductPrice$Outbound |
|
|
56
|
+
prices?: Array<ExistingProductPrice$Outbound | ProductPriceOneTimeFreeCreate$Outbound | ProductPriceRecurringFreeCreate$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound> | null | undefined;
|
|
59
57
|
medias?: Array<string> | null | undefined;
|
|
60
58
|
};
|
|
61
59
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"productupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAC3B,oBAAoB,GACpB,6BAA6B,GAC7B,+BAA+B,GAC/B,8BAA8B,GAC9B,gCAAgC,GAChC,+BAA+B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EACH,KAAK,CACH,oBAAoB,GACpB,6BAA6B,GAC7B,+BAA+B,GAC/B,8BAA8B,GAC9B,gCAAgC,GAChC,+BAA+B,CAClC,GACC,IAAI,GACJ,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AAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAsBb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C"}
|
|
@@ -26,51 +26,60 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ProductUpdate$ = exports.ProductUpdate$outboundSchema = exports.ProductUpdate$inboundSchema = exports.
|
|
29
|
+
exports.ProductUpdate$ = exports.ProductUpdate$outboundSchema = exports.ProductUpdate$inboundSchema = exports.ProductUpdatePrices$ = exports.ProductUpdatePrices$outboundSchema = exports.ProductUpdatePrices$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const existingproductprice_js_1 = require("./existingproductprice.js");
|
|
33
|
-
const
|
|
34
|
-
const
|
|
33
|
+
const productpriceonetimecustomcreate_js_1 = require("./productpriceonetimecustomcreate.js");
|
|
34
|
+
const productpriceonetimefixedcreate_js_1 = require("./productpriceonetimefixedcreate.js");
|
|
35
|
+
const productpriceonetimefreecreate_js_1 = require("./productpriceonetimefreecreate.js");
|
|
36
|
+
const productpricerecurringfixedcreate_js_1 = require("./productpricerecurringfixedcreate.js");
|
|
37
|
+
const productpricerecurringfreecreate_js_1 = require("./productpricerecurringfreecreate.js");
|
|
35
38
|
/** @internal */
|
|
36
|
-
exports.
|
|
37
|
-
.union([
|
|
39
|
+
exports.ProductUpdatePrices$inboundSchema = z.union([
|
|
38
40
|
existingproductprice_js_1.ExistingProductPrice$inboundSchema,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$inboundSchema,
|
|
42
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema,
|
|
43
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
44
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema,
|
|
45
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
41
46
|
]);
|
|
42
47
|
/** @internal */
|
|
43
|
-
exports.
|
|
48
|
+
exports.ProductUpdatePrices$outboundSchema = z.union([
|
|
44
49
|
existingproductprice_js_1.ExistingProductPrice$outboundSchema,
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$outboundSchema,
|
|
51
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema,
|
|
52
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
53
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema,
|
|
54
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
47
55
|
]);
|
|
48
56
|
/**
|
|
49
57
|
* @internal
|
|
50
58
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
59
|
*/
|
|
52
|
-
var
|
|
53
|
-
(function (
|
|
54
|
-
/** @deprecated use `
|
|
55
|
-
|
|
56
|
-
/** @deprecated use `
|
|
57
|
-
|
|
58
|
-
})(
|
|
60
|
+
var ProductUpdatePrices$;
|
|
61
|
+
(function (ProductUpdatePrices$) {
|
|
62
|
+
/** @deprecated use `ProductUpdatePrices$inboundSchema` instead. */
|
|
63
|
+
ProductUpdatePrices$.inboundSchema = exports.ProductUpdatePrices$inboundSchema;
|
|
64
|
+
/** @deprecated use `ProductUpdatePrices$outboundSchema` instead. */
|
|
65
|
+
ProductUpdatePrices$.outboundSchema = exports.ProductUpdatePrices$outboundSchema;
|
|
66
|
+
})(ProductUpdatePrices$ || (exports.ProductUpdatePrices$ = ProductUpdatePrices$ = {}));
|
|
59
67
|
/** @internal */
|
|
60
68
|
exports.ProductUpdate$inboundSchema = z.object({
|
|
61
69
|
name: z.nullable(z.string()).optional(),
|
|
62
70
|
description: z.nullable(z.string()).optional(),
|
|
63
|
-
is_highlighted: z.nullable(z.boolean()).optional(),
|
|
64
71
|
is_archived: z.nullable(z.boolean()).optional(),
|
|
65
72
|
prices: z.nullable(z.array(z.union([
|
|
66
73
|
existingproductprice_js_1.ExistingProductPrice$inboundSchema,
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$inboundSchema,
|
|
75
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema,
|
|
76
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
77
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema,
|
|
78
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
69
79
|
]))).optional(),
|
|
70
80
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
71
81
|
}).transform((v) => {
|
|
72
82
|
return (0, primitives_js_1.remap)(v, {
|
|
73
|
-
"is_highlighted": "isHighlighted",
|
|
74
83
|
"is_archived": "isArchived",
|
|
75
84
|
});
|
|
76
85
|
});
|
|
@@ -78,17 +87,18 @@ exports.ProductUpdate$inboundSchema = z.object({
|
|
|
78
87
|
exports.ProductUpdate$outboundSchema = z.object({
|
|
79
88
|
name: z.nullable(z.string()).optional(),
|
|
80
89
|
description: z.nullable(z.string()).optional(),
|
|
81
|
-
isHighlighted: z.nullable(z.boolean()).optional(),
|
|
82
90
|
isArchived: z.nullable(z.boolean()).optional(),
|
|
83
91
|
prices: z.nullable(z.array(z.union([
|
|
84
92
|
existingproductprice_js_1.ExistingProductPrice$outboundSchema,
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$outboundSchema,
|
|
94
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema,
|
|
95
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
96
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema,
|
|
97
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
87
98
|
]))).optional(),
|
|
88
99
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
89
100
|
}).transform((v) => {
|
|
90
101
|
return (0, primitives_js_1.remap)(v, {
|
|
91
|
-
isHighlighted: "is_highlighted",
|
|
92
102
|
isArchived: "is_archived",
|
|
93
103
|
});
|
|
94
104
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productupdate.js","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uEAKmC;AACnC,
|
|
1
|
+
{"version":3,"file":"productupdate.js","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uEAKmC;AACnC,6FAK8C;AAC9C,2FAK6C;AAC7C,yFAK4C;AAC5C,+FAK+C;AAC/C,6FAK8C;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QAO9B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductInput, ProductInput$Outbound } from "./productinput.js";
|
|
3
3
|
import { ProductPriceInput, ProductPriceInput$Outbound } from "./productpriceinput.js";
|
|
4
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
4
5
|
import { SubscriptionStatus } from "./subscriptionstatus.js";
|
|
5
6
|
import { SubscriptionUser, SubscriptionUser$Outbound } from "./subscriptionuser.js";
|
|
6
7
|
export type SubscriptionInput = {
|
|
@@ -16,6 +17,9 @@ export type SubscriptionInput = {
|
|
|
16
17
|
* The ID of the object.
|
|
17
18
|
*/
|
|
18
19
|
id: string;
|
|
20
|
+
amount: number | null;
|
|
21
|
+
currency: string | null;
|
|
22
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
19
23
|
status: SubscriptionStatus;
|
|
20
24
|
currentPeriodStart: Date;
|
|
21
25
|
currentPeriodEnd: Date | null;
|
|
@@ -24,13 +28,13 @@ export type SubscriptionInput = {
|
|
|
24
28
|
endedAt: Date | null;
|
|
25
29
|
userId: string;
|
|
26
30
|
productId: string;
|
|
27
|
-
priceId: string
|
|
31
|
+
priceId: string;
|
|
28
32
|
user: SubscriptionUser;
|
|
29
33
|
/**
|
|
30
34
|
* A product.
|
|
31
35
|
*/
|
|
32
36
|
product: ProductInput;
|
|
33
|
-
price: ProductPriceInput
|
|
37
|
+
price: ProductPriceInput;
|
|
34
38
|
};
|
|
35
39
|
/** @internal */
|
|
36
40
|
export declare const SubscriptionInput$inboundSchema: z.ZodType<SubscriptionInput, z.ZodTypeDef, unknown>;
|
|
@@ -39,6 +43,9 @@ export type SubscriptionInput$Outbound = {
|
|
|
39
43
|
created_at: string;
|
|
40
44
|
modified_at: string | null;
|
|
41
45
|
id: string;
|
|
46
|
+
amount: number | null;
|
|
47
|
+
currency: string | null;
|
|
48
|
+
recurring_interval: string;
|
|
42
49
|
status: string;
|
|
43
50
|
current_period_start: string;
|
|
44
51
|
current_period_end: string | null;
|
|
@@ -47,10 +54,10 @@ export type SubscriptionInput$Outbound = {
|
|
|
47
54
|
ended_at: string | null;
|
|
48
55
|
user_id: string;
|
|
49
56
|
product_id: string;
|
|
50
|
-
price_id: string
|
|
57
|
+
price_id: string;
|
|
51
58
|
user: SubscriptionUser$Outbound;
|
|
52
59
|
product: ProductInput$Outbound;
|
|
53
|
-
price: ProductPriceInput$Outbound
|
|
60
|
+
price: ProductPriceInput$Outbound;
|
|
54
61
|
};
|
|
55
62
|
/** @internal */
|
|
56
63
|
export declare const SubscriptionInput$outboundSchema: z.ZodType<SubscriptionInput$Outbound, z.ZodTypeDef, SubscriptionInput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptioninput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;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":"subscriptioninput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;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,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD,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,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,YAAY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+31,7 @@ const z = __importStar(require("zod"));
|
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const productinput_js_1 = require("./productinput.js");
|
|
33
33
|
const productpriceinput_js_1 = require("./productpriceinput.js");
|
|
34
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
34
35
|
const subscriptionstatus_js_1 = require("./subscriptionstatus.js");
|
|
35
36
|
const subscriptionuser_js_1 = require("./subscriptionuser.js");
|
|
36
37
|
/** @internal */
|
|
@@ -38,6 +39,9 @@ exports.SubscriptionInput$inboundSchema = z.object({
|
|
|
38
39
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
39
40
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
40
41
|
id: z.string(),
|
|
42
|
+
amount: z.nullable(z.number().int()),
|
|
43
|
+
currency: z.nullable(z.string()),
|
|
44
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
41
45
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
42
46
|
current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
47
|
current_period_end: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
@@ -46,14 +50,15 @@ exports.SubscriptionInput$inboundSchema = z.object({
|
|
|
46
50
|
ended_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
47
51
|
user_id: z.string(),
|
|
48
52
|
product_id: z.string(),
|
|
49
|
-
price_id: z.
|
|
53
|
+
price_id: z.string(),
|
|
50
54
|
user: subscriptionuser_js_1.SubscriptionUser$inboundSchema,
|
|
51
55
|
product: productinput_js_1.ProductInput$inboundSchema,
|
|
52
|
-
price:
|
|
56
|
+
price: productpriceinput_js_1.ProductPriceInput$inboundSchema,
|
|
53
57
|
}).transform((v) => {
|
|
54
58
|
return (0, primitives_js_1.remap)(v, {
|
|
55
59
|
"created_at": "createdAt",
|
|
56
60
|
"modified_at": "modifiedAt",
|
|
61
|
+
"recurring_interval": "recurringInterval",
|
|
57
62
|
"current_period_start": "currentPeriodStart",
|
|
58
63
|
"current_period_end": "currentPeriodEnd",
|
|
59
64
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -69,6 +74,9 @@ exports.SubscriptionInput$outboundSchema = z.object({
|
|
|
69
74
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
70
75
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
71
76
|
id: z.string(),
|
|
77
|
+
amount: z.nullable(z.number().int()),
|
|
78
|
+
currency: z.nullable(z.string()),
|
|
79
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
72
80
|
status: subscriptionstatus_js_1.SubscriptionStatus$outboundSchema,
|
|
73
81
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
74
82
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -77,14 +85,15 @@ exports.SubscriptionInput$outboundSchema = z.object({
|
|
|
77
85
|
endedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
78
86
|
userId: z.string(),
|
|
79
87
|
productId: z.string(),
|
|
80
|
-
priceId: z.
|
|
88
|
+
priceId: z.string(),
|
|
81
89
|
user: subscriptionuser_js_1.SubscriptionUser$outboundSchema,
|
|
82
90
|
product: productinput_js_1.ProductInput$outboundSchema,
|
|
83
|
-
price:
|
|
91
|
+
price: productpriceinput_js_1.ProductPriceInput$outboundSchema,
|
|
84
92
|
}).transform((v) => {
|
|
85
93
|
return (0, primitives_js_1.remap)(v, {
|
|
86
94
|
createdAt: "created_at",
|
|
87
95
|
modifiedAt: "modified_at",
|
|
96
|
+
recurringInterval: "recurring_interval",
|
|
88
97
|
currentPeriodStart: "current_period_start",
|
|
89
98
|
currentPeriodEnd: "current_period_end",
|
|
90
99
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptioninput.js","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uDAK2B;AAC3B,iEAKgC;AAChC,mEAIiC;AACjC,+DAK+B;
|
|
1
|
+
{"version":3,"file":"subscriptioninput.js","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uDAK2B;AAC3B,iEAKgC;AAChC,yFAI4C;AAC5C,mEAIiC;AACjC,+DAK+B;AAmC/B,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,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,MAAM,EAAE,wDAAgC;IACxC,oBAAoB,EAAE,CAAC,CAAC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C,WAAW,EAAE,CAAC,CAAC;IAC/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;IACnB,IAAI,EAAE,qDAA+B;IACrC,OAAO,EAAE,6CAA2B;IACpC,KAAK,EAAE,uDAAgC;CACxC,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,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductOutput, ProductOutput$Outbound } from "./productoutput.js";
|
|
3
3
|
import { ProductPriceOutput, ProductPriceOutput$Outbound } from "./productpriceoutput.js";
|
|
4
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
4
5
|
import { SubscriptionStatus } from "./subscriptionstatus.js";
|
|
5
6
|
import { SubscriptionUser, SubscriptionUser$Outbound } from "./subscriptionuser.js";
|
|
6
7
|
export type SubscriptionOutput = {
|
|
@@ -16,6 +17,9 @@ export type SubscriptionOutput = {
|
|
|
16
17
|
* The ID of the object.
|
|
17
18
|
*/
|
|
18
19
|
id: string;
|
|
20
|
+
amount: number | null;
|
|
21
|
+
currency: string | null;
|
|
22
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
19
23
|
status: SubscriptionStatus;
|
|
20
24
|
currentPeriodStart: Date;
|
|
21
25
|
currentPeriodEnd: Date | null;
|
|
@@ -24,13 +28,13 @@ export type SubscriptionOutput = {
|
|
|
24
28
|
endedAt: Date | null;
|
|
25
29
|
userId: string;
|
|
26
30
|
productId: string;
|
|
27
|
-
priceId: string
|
|
31
|
+
priceId: string;
|
|
28
32
|
user: SubscriptionUser;
|
|
29
33
|
/**
|
|
30
34
|
* A product.
|
|
31
35
|
*/
|
|
32
36
|
product: ProductOutput;
|
|
33
|
-
price: ProductPriceOutput
|
|
37
|
+
price: ProductPriceOutput;
|
|
34
38
|
};
|
|
35
39
|
/** @internal */
|
|
36
40
|
export declare const SubscriptionOutput$inboundSchema: z.ZodType<SubscriptionOutput, z.ZodTypeDef, unknown>;
|
|
@@ -39,6 +43,9 @@ export type SubscriptionOutput$Outbound = {
|
|
|
39
43
|
created_at: string;
|
|
40
44
|
modified_at: string | null;
|
|
41
45
|
id: string;
|
|
46
|
+
amount: number | null;
|
|
47
|
+
currency: string | null;
|
|
48
|
+
recurring_interval: string;
|
|
42
49
|
status: string;
|
|
43
50
|
current_period_start: string;
|
|
44
51
|
current_period_end: string | null;
|
|
@@ -47,10 +54,10 @@ export type SubscriptionOutput$Outbound = {
|
|
|
47
54
|
ended_at: string | null;
|
|
48
55
|
user_id: string;
|
|
49
56
|
product_id: string;
|
|
50
|
-
price_id: string
|
|
57
|
+
price_id: string;
|
|
51
58
|
user: SubscriptionUser$Outbound;
|
|
52
59
|
product: ProductOutput$Outbound;
|
|
53
|
-
price: ProductPriceOutput$Outbound
|
|
60
|
+
price: ProductPriceOutput$Outbound;
|
|
54
61
|
};
|
|
55
62
|
/** @internal */
|
|
56
63
|
export declare const SubscriptionOutput$outboundSchema: z.ZodType<SubscriptionOutput$Outbound, z.ZodTypeDef, SubscriptionOutput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;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":"subscriptionoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionoutput.ts"],"names":[],"m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AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,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,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,sBAAsB,CAAC;IAChC,KAAK,EAAE,2BAA2B,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAkClB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD"}
|
|
@@ -31,6 +31,7 @@ const z = __importStar(require("zod"));
|
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const productoutput_js_1 = require("./productoutput.js");
|
|
33
33
|
const productpriceoutput_js_1 = require("./productpriceoutput.js");
|
|
34
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
34
35
|
const subscriptionstatus_js_1 = require("./subscriptionstatus.js");
|
|
35
36
|
const subscriptionuser_js_1 = require("./subscriptionuser.js");
|
|
36
37
|
/** @internal */
|
|
@@ -38,6 +39,9 @@ exports.SubscriptionOutput$inboundSchema = z.object({
|
|
|
38
39
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
39
40
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
40
41
|
id: z.string(),
|
|
42
|
+
amount: z.nullable(z.number().int()),
|
|
43
|
+
currency: z.nullable(z.string()),
|
|
44
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
41
45
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
42
46
|
current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
47
|
current_period_end: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
@@ -46,14 +50,15 @@ exports.SubscriptionOutput$inboundSchema = z.object({
|
|
|
46
50
|
ended_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
47
51
|
user_id: z.string(),
|
|
48
52
|
product_id: z.string(),
|
|
49
|
-
price_id: z.
|
|
53
|
+
price_id: z.string(),
|
|
50
54
|
user: subscriptionuser_js_1.SubscriptionUser$inboundSchema,
|
|
51
55
|
product: productoutput_js_1.ProductOutput$inboundSchema,
|
|
52
|
-
price:
|
|
56
|
+
price: productpriceoutput_js_1.ProductPriceOutput$inboundSchema,
|
|
53
57
|
}).transform((v) => {
|
|
54
58
|
return (0, primitives_js_1.remap)(v, {
|
|
55
59
|
"created_at": "createdAt",
|
|
56
60
|
"modified_at": "modifiedAt",
|
|
61
|
+
"recurring_interval": "recurringInterval",
|
|
57
62
|
"current_period_start": "currentPeriodStart",
|
|
58
63
|
"current_period_end": "currentPeriodEnd",
|
|
59
64
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -69,6 +74,9 @@ exports.SubscriptionOutput$outboundSchema = z.object({
|
|
|
69
74
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
70
75
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
71
76
|
id: z.string(),
|
|
77
|
+
amount: z.nullable(z.number().int()),
|
|
78
|
+
currency: z.nullable(z.string()),
|
|
79
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
72
80
|
status: subscriptionstatus_js_1.SubscriptionStatus$outboundSchema,
|
|
73
81
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
74
82
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -77,14 +85,15 @@ exports.SubscriptionOutput$outboundSchema = z.object({
|
|
|
77
85
|
endedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
78
86
|
userId: z.string(),
|
|
79
87
|
productId: z.string(),
|
|
80
|
-
priceId: z.
|
|
88
|
+
priceId: z.string(),
|
|
81
89
|
user: subscriptionuser_js_1.SubscriptionUser$outboundSchema,
|
|
82
90
|
product: productoutput_js_1.ProductOutput$outboundSchema,
|
|
83
|
-
price:
|
|
91
|
+
price: productpriceoutput_js_1.ProductPriceOutput$outboundSchema,
|
|
84
92
|
}).transform((v) => {
|
|
85
93
|
return (0, primitives_js_1.remap)(v, {
|
|
86
94
|
createdAt: "created_at",
|
|
87
95
|
modifiedAt: "modified_at",
|
|
96
|
+
recurringInterval: "recurring_interval",
|
|
88
97
|
currentPeriodStart: "current_period_start",
|
|
89
98
|
currentPeriodEnd: "current_period_end",
|
|
90
99
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionoutput.js","sourceRoot":"","sources":["../../src/models/components/subscriptionoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAC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C7D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,qDAA+B;IACrC,OAAO,EAAE,+CAA4B;IACrC,KAAK,EAAE,yDAAiC;CACzC,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,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const SubscriptionRecurringInterval: {
|
|
4
|
+
readonly Month: "month";
|
|
5
|
+
readonly Year: "year";
|
|
6
|
+
};
|
|
7
|
+
export type SubscriptionRecurringInterval = ClosedEnum<typeof SubscriptionRecurringInterval>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const SubscriptionRecurringInterval$inboundSchema: z.ZodNativeEnum<typeof SubscriptionRecurringInterval>;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const SubscriptionRecurringInterval$outboundSchema: z.ZodNativeEnum<typeof SubscriptionRecurringInterval>;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace SubscriptionRecurringInterval$ {
|
|
17
|
+
/** @deprecated use `SubscriptionRecurringInterval$inboundSchema` instead. */
|
|
18
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
19
|
+
readonly Month: "month";
|
|
20
|
+
readonly Year: "year";
|
|
21
|
+
}>;
|
|
22
|
+
/** @deprecated use `SubscriptionRecurringInterval$outboundSchema` instead. */
|
|
23
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
24
|
+
readonly Month: "month";
|
|
25
|
+
readonly Year: "year";
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=subscriptionrecurringinterval.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"subscriptionrecurringinterval.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionrecurringinterval.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,6BAA6B;;;CAGhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,aAAa,CACvE,OAAO,6BAA6B,CACS,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,6BAA6B,CACS,CAAC;AAEhD;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa;;;MAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc;;;MAA+C,CAAC;CAC5E"}
|
package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js}
RENAMED
|
@@ -26,25 +26,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.SubscriptionRecurringInterval$ = exports.SubscriptionRecurringInterval$outboundSchema = exports.SubscriptionRecurringInterval$inboundSchema = exports.SubscriptionRecurringInterval = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.SubscriptionRecurringInterval = {
|
|
32
32
|
Month: "month",
|
|
33
33
|
Year: "year",
|
|
34
34
|
};
|
|
35
35
|
/** @internal */
|
|
36
|
-
exports.
|
|
36
|
+
exports.SubscriptionRecurringInterval$inboundSchema = z.nativeEnum(exports.SubscriptionRecurringInterval);
|
|
37
37
|
/** @internal */
|
|
38
|
-
exports.
|
|
38
|
+
exports.SubscriptionRecurringInterval$outboundSchema = exports.SubscriptionRecurringInterval$inboundSchema;
|
|
39
39
|
/**
|
|
40
40
|
* @internal
|
|
41
41
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
44
|
-
(function (
|
|
45
|
-
/** @deprecated use `
|
|
46
|
-
|
|
47
|
-
/** @deprecated use `
|
|
48
|
-
|
|
49
|
-
})(
|
|
50
|
-
//# sourceMappingURL=
|
|
43
|
+
var SubscriptionRecurringInterval$;
|
|
44
|
+
(function (SubscriptionRecurringInterval$) {
|
|
45
|
+
/** @deprecated use `SubscriptionRecurringInterval$inboundSchema` instead. */
|
|
46
|
+
SubscriptionRecurringInterval$.inboundSchema = exports.SubscriptionRecurringInterval$inboundSchema;
|
|
47
|
+
/** @deprecated use `SubscriptionRecurringInterval$outboundSchema` instead. */
|
|
48
|
+
SubscriptionRecurringInterval$.outboundSchema = exports.SubscriptionRecurringInterval$outboundSchema;
|
|
49
|
+
})(SubscriptionRecurringInterval$ || (exports.SubscriptionRecurringInterval$ = SubscriptionRecurringInterval$ = {}));
|
|
50
|
+
//# sourceMappingURL=subscriptionrecurringinterval.js.map
|