@polar-sh/sdk 0.9.0 → 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 +0 -44
- 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 +3 -3
- package/lib/config.js +3 -3
- 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 +5 -6
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -6
- 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 +2 -2
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +2 -2
- package/models/components/ordersubscription.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 +5 -4
- package/models/components/productonetimecreate.d.ts.map +1 -1
- package/models/components/productonetimecreate.js +5 -0
- 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/productpriceonetime.d.ts +3 -2
- package/models/components/productpriceonetime.d.ts.map +1 -1
- package/models/components/productpriceonetime.js +3 -0
- package/models/components/productpriceonetime.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +5 -5
- package/models/components/productpriceonetimecustom.d.ts.map +1 -1
- package/models/components/productpriceonetimecustom.js +4 -4
- package/models/components/productpriceonetimecustom.js.map +1 -1
- package/models/components/productpriceonetimecustomcreate.d.ts +24 -0
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimecustomcreate.js +24 -1
- package/models/components/productpriceonetimecustomcreate.js.map +1 -1
- package/models/components/productpriceonetimefixed.d.ts +5 -5
- package/models/components/productpriceonetimefixed.d.ts.map +1 -1
- package/models/components/productpriceonetimefixed.js +4 -4
- package/models/components/productpriceonetimefixed.js.map +1 -1
- package/models/components/productpriceonetimefixedcreate.d.ts +29 -5
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimefixedcreate.js +28 -5
- package/models/components/productpriceonetimefixedcreate.js.map +1 -1
- 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/productpricerecurringcustom.d.ts +5 -5
- package/models/components/productpricerecurringcustom.d.ts.map +1 -1
- package/models/components/productpricerecurringcustom.js +4 -4
- package/models/components/productpricerecurringcustom.js.map +1 -1
- package/models/components/productpricerecurringfixed.d.ts +5 -5
- package/models/components/productpricerecurringfixed.d.ts.map +1 -1
- package/models/components/productpricerecurringfixed.js +4 -4
- package/models/components/productpricerecurringfixed.js.map +1 -1
- 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 +7 -2
- package/models/components/productpricerecurringinput.d.ts.map +1 -1
- package/models/components/productpricerecurringinput.js +7 -0
- package/models/components/productpricerecurringinput.js.map +1 -1
- package/models/components/productpricerecurringoutput.d.ts +7 -2
- package/models/components/productpricerecurringoutput.d.ts.map +1 -1
- package/models/components/productpricerecurringoutput.js +7 -0
- package/models/components/productpricerecurringoutput.js.map +1 -1
- 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 +7 -10
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js +15 -9
- package/models/components/productupdate.js.map +1 -1
- package/models/components/subscriptioninput.d.ts +4 -4
- package/models/components/subscriptioninput.d.ts.map +1 -1
- package/models/components/subscriptioninput.js +4 -4
- package/models/components/subscriptioninput.js.map +1 -1
- package/models/components/subscriptionoutput.d.ts +4 -4
- package/models/components/subscriptionoutput.d.ts.map +1 -1
- package/models/components/subscriptionoutput.js +4 -4
- package/models/components/subscriptionoutput.js.map +1 -1
- package/models/components/subscriptionsortproperty.d.ts +0 -6
- package/models/components/subscriptionsortproperty.d.ts.map +1 -1
- package/models/components/subscriptionsortproperty.js +0 -2
- 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 +2 -2
- package/models/components/userordersubscription.d.ts.map +1 -1
- package/models/components/userordersubscription.js +2 -2
- package/models/components/userordersubscription.js.map +1 -1
- package/models/components/usersubscription.d.ts +4 -4
- package/models/components/usersubscription.d.ts.map +1 -1
- package/models/components/usersubscription.js +4 -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/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 +3 -3
- package/src/lib/sdks.ts +26 -26
- package/src/models/components/index.ts +5 -6
- package/src/models/components/orderproduct.ts +0 -21
- package/src/models/components/ordersubscription.ts +4 -4
- package/src/models/components/productinput.ts +0 -21
- package/src/models/components/productonetimecreate.ts +16 -1
- package/src/models/components/productoutput.ts +0 -21
- package/src/models/components/productpriceonetime.ts +10 -0
- package/src/models/components/productpriceonetimecustom.ts +9 -9
- package/src/models/components/productpriceonetimecustomcreate.ts +36 -0
- package/src/models/components/productpriceonetimefixed.ts +9 -9
- package/src/models/components/productpriceonetimefixedcreate.ts +45 -9
- package/src/models/components/productpriceonetimefree.ts +164 -0
- package/src/models/components/productpriceonetimefreecreate.ts +121 -0
- package/src/models/components/productpricerecurringcustom.ts +9 -9
- package/src/models/components/productpricerecurringfixed.ts +9 -9
- 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 +18 -0
- package/src/models/components/productpricerecurringoutput.ts +18 -0
- package/src/models/components/productrecurringcreate.ts +57 -48
- package/src/models/components/productupdate.ts +41 -22
- package/src/models/components/subscriptioninput.ts +8 -8
- package/src/models/components/subscriptionoutput.ts +8 -8
- package/src/models/components/subscriptionsortproperty.ts +0 -2
- package/src/models/components/userorderproduct.ts +0 -21
- package/src/models/components/userordersubscription.ts +4 -4
- package/src/models/components/usersubscription.ts +8 -8
- package/src/models/components/usersubscriptionproduct.ts +0 -21
- 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 -94
- package/models/components/bodysubscriptionsimport.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/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 -116
- package/src/models/components/productpricerecurringcreate.ts +0 -116
- 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
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ProductPriceRecurringFreeCreate$ = exports.ProductPriceRecurringFreeCreate$outboundSchema = exports.ProductPriceRecurringFreeCreate$inboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$ = exports.ProductPriceRecurringFreeCreateAmountType$outboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema = exports.ProductPriceRecurringFreeCreateType$ = exports.ProductPriceRecurringFreeCreateType$outboundSchema = exports.ProductPriceRecurringFreeCreateType$inboundSchema = exports.ProductPriceRecurringFreeCreateAmountType = exports.ProductPriceRecurringFreeCreateType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
33
|
+
exports.ProductPriceRecurringFreeCreateType = {
|
|
34
|
+
Recurring: "recurring",
|
|
35
|
+
};
|
|
36
|
+
exports.ProductPriceRecurringFreeCreateAmountType = {
|
|
37
|
+
Free: "free",
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.ProductPriceRecurringFreeCreateType$inboundSchema = z.nativeEnum(exports.ProductPriceRecurringFreeCreateType);
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.ProductPriceRecurringFreeCreateType$outboundSchema = exports.ProductPriceRecurringFreeCreateType$inboundSchema;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
var ProductPriceRecurringFreeCreateType$;
|
|
48
|
+
(function (ProductPriceRecurringFreeCreateType$) {
|
|
49
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateType$inboundSchema` instead. */
|
|
50
|
+
ProductPriceRecurringFreeCreateType$.inboundSchema = exports.ProductPriceRecurringFreeCreateType$inboundSchema;
|
|
51
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateType$outboundSchema` instead. */
|
|
52
|
+
ProductPriceRecurringFreeCreateType$.outboundSchema = exports.ProductPriceRecurringFreeCreateType$outboundSchema;
|
|
53
|
+
})(ProductPriceRecurringFreeCreateType$ || (exports.ProductPriceRecurringFreeCreateType$ = ProductPriceRecurringFreeCreateType$ = {}));
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema = z
|
|
56
|
+
.nativeEnum(exports.ProductPriceRecurringFreeCreateAmountType);
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.ProductPriceRecurringFreeCreateAmountType$outboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
var ProductPriceRecurringFreeCreateAmountType$;
|
|
64
|
+
(function (ProductPriceRecurringFreeCreateAmountType$) {
|
|
65
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateAmountType$inboundSchema` instead. */
|
|
66
|
+
ProductPriceRecurringFreeCreateAmountType$.inboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema;
|
|
67
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateAmountType$outboundSchema` instead. */
|
|
68
|
+
ProductPriceRecurringFreeCreateAmountType$.outboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$outboundSchema;
|
|
69
|
+
})(ProductPriceRecurringFreeCreateAmountType$ || (exports.ProductPriceRecurringFreeCreateAmountType$ = ProductPriceRecurringFreeCreateAmountType$ = {}));
|
|
70
|
+
/** @internal */
|
|
71
|
+
exports.ProductPriceRecurringFreeCreate$inboundSchema = z.object({
|
|
72
|
+
type: z.literal("recurring").optional(),
|
|
73
|
+
amount_type: z.literal("free").optional(),
|
|
74
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return (0, primitives_js_1.remap)(v, {
|
|
77
|
+
"amount_type": "amountType",
|
|
78
|
+
"recurring_interval": "recurringInterval",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
/** @internal */
|
|
82
|
+
exports.ProductPriceRecurringFreeCreate$outboundSchema = z.object({
|
|
83
|
+
type: z.literal("recurring").default("recurring"),
|
|
84
|
+
amountType: z.literal("free").default("free"),
|
|
85
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return (0, primitives_js_1.remap)(v, {
|
|
88
|
+
amountType: "amount_type",
|
|
89
|
+
recurringInterval: "recurring_interval",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
+
*/
|
|
96
|
+
var ProductPriceRecurringFreeCreate$;
|
|
97
|
+
(function (ProductPriceRecurringFreeCreate$) {
|
|
98
|
+
/** @deprecated use `ProductPriceRecurringFreeCreate$inboundSchema` instead. */
|
|
99
|
+
ProductPriceRecurringFreeCreate$.inboundSchema = exports.ProductPriceRecurringFreeCreate$inboundSchema;
|
|
100
|
+
/** @deprecated use `ProductPriceRecurringFreeCreate$outboundSchema` instead. */
|
|
101
|
+
ProductPriceRecurringFreeCreate$.outboundSchema = exports.ProductPriceRecurringFreeCreate$outboundSchema;
|
|
102
|
+
})(ProductPriceRecurringFreeCreate$ || (exports.ProductPriceRecurringFreeCreate$ = ProductPriceRecurringFreeCreate$ = {}));
|
|
103
|
+
//# sourceMappingURL=productpricerecurringfreecreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringfreecreate.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringfreecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE/B,QAAA,mCAAmC,GAAG;IACjD,SAAS,EAAE,WAAW;CACd,CAAC;AAKE,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IvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACjD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC7C,iBAAiB,EAAE,+EAA4C;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;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"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
|
|
3
3
|
import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
|
|
4
|
-
|
|
4
|
+
import { ProductPriceRecurringFree, ProductPriceRecurringFree$Outbound } from "./productpricerecurringfree.js";
|
|
5
|
+
export type ProductPriceRecurringInput = (ProductPriceRecurringFree & {
|
|
6
|
+
amountType: "free";
|
|
7
|
+
}) | (ProductPriceRecurringFixed & {
|
|
5
8
|
amountType: "fixed";
|
|
6
9
|
}) | (ProductPriceRecurringCustom & {
|
|
7
10
|
amountType: "custom";
|
|
@@ -9,7 +12,9 @@ export type ProductPriceRecurringInput = (ProductPriceRecurringFixed & {
|
|
|
9
12
|
/** @internal */
|
|
10
13
|
export declare const ProductPriceRecurringInput$inboundSchema: z.ZodType<ProductPriceRecurringInput, z.ZodTypeDef, unknown>;
|
|
11
14
|
/** @internal */
|
|
12
|
-
export type ProductPriceRecurringInput$Outbound = (
|
|
15
|
+
export type ProductPriceRecurringInput$Outbound = (ProductPriceRecurringFree$Outbound & {
|
|
16
|
+
amount_type: "free";
|
|
17
|
+
}) | (ProductPriceRecurringFixed$Outbound & {
|
|
13
18
|
amount_type: "fixed";
|
|
14
19
|
}) | (ProductPriceRecurringCustom$Outbound & {
|
|
15
20
|
amount_type: "custom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpricerecurringinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"productpricerecurringinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,0BAA0B,GAClC,CAAC,yBAAyB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GACpD,CAAC,0BAA0B,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GACtD,CAAC,2BAA2B,GAAG;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAC3C,CAAC,kCAAkC,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9D,CAAC,mCAAmC,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,GAChE,CAAC,oCAAoC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAiB1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D"}
|
|
@@ -30,8 +30,12 @@ exports.ProductPriceRecurringInput$ = exports.ProductPriceRecurringInput$outboun
|
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
|
|
32
32
|
const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
|
|
33
|
+
const productpricerecurringfree_js_1 = require("./productpricerecurringfree.js");
|
|
33
34
|
/** @internal */
|
|
34
35
|
exports.ProductPriceRecurringInput$inboundSchema = z.union([
|
|
36
|
+
productpricerecurringfree_js_1.ProductPriceRecurringFree$inboundSchema.and(z.object({ amount_type: z.literal("free") }).transform((v) => ({
|
|
37
|
+
amountType: v.amount_type,
|
|
38
|
+
}))),
|
|
35
39
|
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
|
|
36
40
|
amountType: v.amount_type,
|
|
37
41
|
}))),
|
|
@@ -41,6 +45,9 @@ exports.ProductPriceRecurringInput$inboundSchema = z.union([
|
|
|
41
45
|
]);
|
|
42
46
|
/** @internal */
|
|
43
47
|
exports.ProductPriceRecurringInput$outboundSchema = z.union([
|
|
48
|
+
productpricerecurringfree_js_1.ProductPriceRecurringFree$outboundSchema.and(z.object({ amountType: z.literal("free") }).transform((v) => ({
|
|
49
|
+
amount_type: v.amountType,
|
|
50
|
+
}))),
|
|
44
51
|
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
|
|
45
52
|
amount_type: v.amountType,
|
|
46
53
|
}))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpricerecurringinput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;
|
|
1
|
+
{"version":3,"file":"productpricerecurringinput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AACzC,iFAKwC;AAOxC,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,KAAK,CAAC;IACV,sEAAuC,CAAC,GAAG,CACzC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,wEAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,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AC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
|
|
3
3
|
import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
|
|
4
|
-
|
|
4
|
+
import { ProductPriceRecurringFree, ProductPriceRecurringFree$Outbound } from "./productpricerecurringfree.js";
|
|
5
|
+
export type ProductPriceRecurringOutput = (ProductPriceRecurringFree & {
|
|
6
|
+
amountType: "free";
|
|
7
|
+
}) | (ProductPriceRecurringFixed & {
|
|
5
8
|
amountType: "fixed";
|
|
6
9
|
}) | (ProductPriceRecurringCustom & {
|
|
7
10
|
amountType: "custom";
|
|
@@ -9,7 +12,9 @@ export type ProductPriceRecurringOutput = (ProductPriceRecurringFixed & {
|
|
|
9
12
|
/** @internal */
|
|
10
13
|
export declare const ProductPriceRecurringOutput$inboundSchema: z.ZodType<ProductPriceRecurringOutput, z.ZodTypeDef, unknown>;
|
|
11
14
|
/** @internal */
|
|
12
|
-
export type ProductPriceRecurringOutput$Outbound = (
|
|
15
|
+
export type ProductPriceRecurringOutput$Outbound = (ProductPriceRecurringFree$Outbound & {
|
|
16
|
+
amount_type: "free";
|
|
17
|
+
}) | (ProductPriceRecurringFixed$Outbound & {
|
|
13
18
|
amount_type: "fixed";
|
|
14
19
|
}) | (ProductPriceRecurringCustom$Outbound & {
|
|
15
20
|
amount_type: "custom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpricerecurringoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"productpricerecurringoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,2BAA2B,GACnC,CAAC,yBAAyB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GACpD,CAAC,0BAA0B,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GACtD,CAAC,2BAA2B,GAAG;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,CAAC,kCAAkC,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9D,CAAC,mCAAmC,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,GAChE,CAAC,oCAAoC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAiB3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
|
|
@@ -30,8 +30,12 @@ exports.ProductPriceRecurringOutput$ = exports.ProductPriceRecurringOutput$outbo
|
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
|
|
32
32
|
const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
|
|
33
|
+
const productpricerecurringfree_js_1 = require("./productpricerecurringfree.js");
|
|
33
34
|
/** @internal */
|
|
34
35
|
exports.ProductPriceRecurringOutput$inboundSchema = z.union([
|
|
36
|
+
productpricerecurringfree_js_1.ProductPriceRecurringFree$inboundSchema.and(z.object({ amount_type: z.literal("free") }).transform((v) => ({
|
|
37
|
+
amountType: v.amount_type,
|
|
38
|
+
}))),
|
|
35
39
|
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
|
|
36
40
|
amountType: v.amount_type,
|
|
37
41
|
}))),
|
|
@@ -41,6 +45,9 @@ exports.ProductPriceRecurringOutput$inboundSchema = z.union([
|
|
|
41
45
|
]);
|
|
42
46
|
/** @internal */
|
|
43
47
|
exports.ProductPriceRecurringOutput$outboundSchema = z.union([
|
|
48
|
+
productpricerecurringfree_js_1.ProductPriceRecurringFree$outboundSchema.and(z.object({ amountType: z.literal("free") }).transform((v) => ({
|
|
49
|
+
amount_type: v.amountType,
|
|
50
|
+
}))),
|
|
44
51
|
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
|
|
45
52
|
amount_type: v.amountType,
|
|
46
53
|
}))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpricerecurringoutput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;
|
|
1
|
+
{"version":3,"file":"productpricerecurringoutput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AACzC,iFAKwC;AAOxC,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,sEAAuC,CAAC,GAAG,CACzC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,wEAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,0EAAyC,CAAC,GAAG,CAC3C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,uEAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC5D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;IACD,yEAAyC,CAAC,GAAG,CAC3C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;IACD,2EAA0C,CAAC,GAAG,CAC5C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ProductPriceRecurringFixedCreate, ProductPriceRecurringFixedCreate$Outbound } from "./productpricerecurringfixedcreate.js";
|
|
3
|
+
import { ProductPriceRecurringFreeCreate, ProductPriceRecurringFreeCreate$Outbound } from "./productpricerecurringfreecreate.js";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* List of available prices for this product.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
readonly Individual: "individual";
|
|
9
|
-
readonly Business: "business";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
13
|
-
*/
|
|
14
|
-
export type ProductRecurringCreateType = ClosedEnum<typeof ProductRecurringCreateType>;
|
|
7
|
+
export type ProductRecurringCreatePrices = Array<ProductPriceRecurringFixedCreate> | Array<ProductPriceRecurringFreeCreate>;
|
|
15
8
|
/**
|
|
16
9
|
* Schema to create a recurring product, i.e. a subscription.
|
|
17
10
|
*/
|
|
@@ -27,7 +20,7 @@ export type ProductRecurringCreate = {
|
|
|
27
20
|
/**
|
|
28
21
|
* List of available prices for this product.
|
|
29
22
|
*/
|
|
30
|
-
prices: Array<
|
|
23
|
+
prices: Array<ProductPriceRecurringFixedCreate> | Array<ProductPriceRecurringFreeCreate>;
|
|
31
24
|
/**
|
|
32
25
|
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
33
26
|
*/
|
|
@@ -36,34 +29,24 @@ export type ProductRecurringCreate = {
|
|
|
36
29
|
* The ID of the organization owning the product. **Required unless you use an organization token.**
|
|
37
30
|
*/
|
|
38
31
|
organizationId?: string | null | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
41
|
-
*/
|
|
42
|
-
type: ProductRecurringCreateType;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
45
|
-
*/
|
|
46
|
-
isHighlighted?: boolean | undefined;
|
|
47
32
|
};
|
|
48
33
|
/** @internal */
|
|
49
|
-
export declare const
|
|
34
|
+
export declare const ProductRecurringCreatePrices$inboundSchema: z.ZodType<ProductRecurringCreatePrices, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ProductRecurringCreatePrices$Outbound = Array<ProductPriceRecurringFixedCreate$Outbound> | Array<ProductPriceRecurringFreeCreate$Outbound>;
|
|
50
37
|
/** @internal */
|
|
51
|
-
export declare const
|
|
38
|
+
export declare const ProductRecurringCreatePrices$outboundSchema: z.ZodType<ProductRecurringCreatePrices$Outbound, z.ZodTypeDef, ProductRecurringCreatePrices>;
|
|
52
39
|
/**
|
|
53
40
|
* @internal
|
|
54
41
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
42
|
*/
|
|
56
|
-
export declare namespace
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
const inboundSchema: z.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
64
|
-
readonly Individual: "individual";
|
|
65
|
-
readonly Business: "business";
|
|
66
|
-
}>;
|
|
43
|
+
export declare namespace ProductRecurringCreatePrices$ {
|
|
44
|
+
/** @deprecated use `ProductRecurringCreatePrices$inboundSchema` instead. */
|
|
45
|
+
const inboundSchema: z.ZodType<ProductRecurringCreatePrices, z.ZodTypeDef, unknown>;
|
|
46
|
+
/** @deprecated use `ProductRecurringCreatePrices$outboundSchema` instead. */
|
|
47
|
+
const outboundSchema: z.ZodType<ProductRecurringCreatePrices$Outbound, z.ZodTypeDef, ProductRecurringCreatePrices>;
|
|
48
|
+
/** @deprecated use `ProductRecurringCreatePrices$Outbound` instead. */
|
|
49
|
+
type Outbound = ProductRecurringCreatePrices$Outbound;
|
|
67
50
|
}
|
|
68
51
|
/** @internal */
|
|
69
52
|
export declare const ProductRecurringCreate$inboundSchema: z.ZodType<ProductRecurringCreate, z.ZodTypeDef, unknown>;
|
|
@@ -71,11 +54,9 @@ export declare const ProductRecurringCreate$inboundSchema: z.ZodType<ProductRecu
|
|
|
71
54
|
export type ProductRecurringCreate$Outbound = {
|
|
72
55
|
name: string;
|
|
73
56
|
description?: string | null | undefined;
|
|
74
|
-
prices: Array<
|
|
57
|
+
prices: Array<ProductPriceRecurringFixedCreate$Outbound> | Array<ProductPriceRecurringFreeCreate$Outbound>;
|
|
75
58
|
medias?: Array<string> | null | undefined;
|
|
76
59
|
organization_id?: string | null | undefined;
|
|
77
|
-
type: string;
|
|
78
|
-
is_highlighted: boolean;
|
|
79
60
|
};
|
|
80
61
|
/** @internal */
|
|
81
62
|
export declare const ProductRecurringCreate$outboundSchema: z.ZodType<ProductRecurringCreate$Outbound, z.ZodTypeDef, ProductRecurringCreate>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productrecurringcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productrecurringcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,
|
|
1
|
+
{"version":3,"file":"productrecurringcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productrecurringcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,KAAK,CAAC,gCAAgC,CAAC,GACvC,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,EACF,KAAK,CAAC,gCAAgC,CAAC,GAC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EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CActB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD"}
|
|
@@ -26,60 +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.ProductRecurringCreate$ = exports.ProductRecurringCreate$outboundSchema = exports.ProductRecurringCreate$inboundSchema = exports.
|
|
29
|
+
exports.ProductRecurringCreate$ = exports.ProductRecurringCreate$outboundSchema = exports.ProductRecurringCreate$inboundSchema = exports.ProductRecurringCreatePrices$ = exports.ProductRecurringCreatePrices$outboundSchema = exports.ProductRecurringCreatePrices$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
* @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
35
|
-
*/
|
|
36
|
-
exports.ProductRecurringCreateType = {
|
|
37
|
-
Individual: "individual",
|
|
38
|
-
Business: "business",
|
|
39
|
-
};
|
|
32
|
+
const productpricerecurringfixedcreate_js_1 = require("./productpricerecurringfixedcreate.js");
|
|
33
|
+
const productpricerecurringfreecreate_js_1 = require("./productpricerecurringfreecreate.js");
|
|
40
34
|
/** @internal */
|
|
41
|
-
exports.
|
|
35
|
+
exports.ProductRecurringCreatePrices$inboundSchema = z.union([
|
|
36
|
+
z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema),
|
|
37
|
+
z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema),
|
|
38
|
+
]);
|
|
42
39
|
/** @internal */
|
|
43
|
-
exports.
|
|
40
|
+
exports.ProductRecurringCreatePrices$outboundSchema = z.union([
|
|
41
|
+
z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema),
|
|
42
|
+
z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema),
|
|
43
|
+
]);
|
|
44
44
|
/**
|
|
45
45
|
* @internal
|
|
46
46
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
47
|
*/
|
|
48
|
-
var
|
|
49
|
-
(function (
|
|
50
|
-
/** @deprecated use `
|
|
51
|
-
|
|
52
|
-
/** @deprecated use `
|
|
53
|
-
|
|
54
|
-
})(
|
|
48
|
+
var ProductRecurringCreatePrices$;
|
|
49
|
+
(function (ProductRecurringCreatePrices$) {
|
|
50
|
+
/** @deprecated use `ProductRecurringCreatePrices$inboundSchema` instead. */
|
|
51
|
+
ProductRecurringCreatePrices$.inboundSchema = exports.ProductRecurringCreatePrices$inboundSchema;
|
|
52
|
+
/** @deprecated use `ProductRecurringCreatePrices$outboundSchema` instead. */
|
|
53
|
+
ProductRecurringCreatePrices$.outboundSchema = exports.ProductRecurringCreatePrices$outboundSchema;
|
|
54
|
+
})(ProductRecurringCreatePrices$ || (exports.ProductRecurringCreatePrices$ = ProductRecurringCreatePrices$ = {}));
|
|
55
55
|
/** @internal */
|
|
56
56
|
exports.ProductRecurringCreate$inboundSchema = z.object({
|
|
57
57
|
name: z.string(),
|
|
58
58
|
description: z.nullable(z.string()).optional(),
|
|
59
|
-
prices: z.
|
|
59
|
+
prices: z.union([
|
|
60
|
+
z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema),
|
|
61
|
+
z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema),
|
|
62
|
+
]),
|
|
60
63
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
61
64
|
organization_id: z.nullable(z.string()).optional(),
|
|
62
|
-
type: exports.ProductRecurringCreateType$inboundSchema,
|
|
63
|
-
is_highlighted: z.boolean().default(false),
|
|
64
65
|
}).transform((v) => {
|
|
65
66
|
return (0, primitives_js_1.remap)(v, {
|
|
66
67
|
"organization_id": "organizationId",
|
|
67
|
-
"is_highlighted": "isHighlighted",
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
/** @internal */
|
|
71
71
|
exports.ProductRecurringCreate$outboundSchema = z.object({
|
|
72
72
|
name: z.string(),
|
|
73
73
|
description: z.nullable(z.string()).optional(),
|
|
74
|
-
prices: z.
|
|
74
|
+
prices: z.union([
|
|
75
|
+
z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema),
|
|
76
|
+
z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema),
|
|
77
|
+
]),
|
|
75
78
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
76
79
|
organizationId: z.nullable(z.string()).optional(),
|
|
77
|
-
type: exports.ProductRecurringCreateType$outboundSchema,
|
|
78
|
-
isHighlighted: z.boolean().default(false),
|
|
79
80
|
}).transform((v) => {
|
|
80
81
|
return (0, primitives_js_1.remap)(v, {
|
|
81
82
|
organizationId: "organization_id",
|
|
82
|
-
isHighlighted: "is_highlighted",
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
/**
|
|
@@ -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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ingproductprice.js";
|
|
3
3
|
import { ProductPriceOneTimeCustomCreate, ProductPriceOneTimeCustomCreate$Outbound } from "./productpriceonetimecustomcreate.js";
|
|
4
4
|
import { ProductPriceOneTimeFixedCreate, ProductPriceOneTimeFixedCreate$Outbound } from "./productpriceonetimefixedcreate.js";
|
|
5
|
-
import {
|
|
6
|
-
|
|
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;
|
|
7
9
|
/**
|
|
8
10
|
* Schema to update a product.
|
|
9
11
|
*/
|
|
@@ -13,10 +15,6 @@ export type ProductUpdate = {
|
|
|
13
15
|
* The description of the product.
|
|
14
16
|
*/
|
|
15
17
|
description?: string | null | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
|
-
*/
|
|
19
|
-
isHighlighted?: boolean | null | undefined;
|
|
20
18
|
/**
|
|
21
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.
|
|
22
20
|
*/
|
|
@@ -24,7 +22,7 @@ export type ProductUpdate = {
|
|
|
24
22
|
/**
|
|
25
23
|
* List of available prices for this product. If you want to keep existing prices, include them in the list as an `ExistingProductPrice` object.
|
|
26
24
|
*/
|
|
27
|
-
prices?: Array<ExistingProductPrice | ProductPriceOneTimeFixedCreate |
|
|
25
|
+
prices?: Array<ExistingProductPrice | ProductPriceOneTimeFreeCreate | ProductPriceRecurringFreeCreate | ProductPriceOneTimeFixedCreate | ProductPriceRecurringFixedCreate | ProductPriceOneTimeCustomCreate> | null | undefined;
|
|
28
26
|
/**
|
|
29
27
|
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
30
28
|
*/
|
|
@@ -33,7 +31,7 @@ export type ProductUpdate = {
|
|
|
33
31
|
/** @internal */
|
|
34
32
|
export declare const ProductUpdatePrices$inboundSchema: z.ZodType<ProductUpdatePrices, z.ZodTypeDef, unknown>;
|
|
35
33
|
/** @internal */
|
|
36
|
-
export type ProductUpdatePrices$Outbound = ExistingProductPrice$Outbound | ProductPriceOneTimeFixedCreate$Outbound |
|
|
34
|
+
export type ProductUpdatePrices$Outbound = ExistingProductPrice$Outbound | ProductPriceOneTimeFreeCreate$Outbound | ProductPriceRecurringFreeCreate$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound;
|
|
37
35
|
/** @internal */
|
|
38
36
|
export declare const ProductUpdatePrices$outboundSchema: z.ZodType<ProductUpdatePrices$Outbound, z.ZodTypeDef, ProductUpdatePrices>;
|
|
39
37
|
/**
|
|
@@ -54,9 +52,8 @@ export declare const ProductUpdate$inboundSchema: z.ZodType<ProductUpdate, z.Zod
|
|
|
54
52
|
export type ProductUpdate$Outbound = {
|
|
55
53
|
name?: string | null | undefined;
|
|
56
54
|
description?: string | null | undefined;
|
|
57
|
-
is_highlighted?: boolean | null | undefined;
|
|
58
55
|
is_archived?: boolean | null | undefined;
|
|
59
|
-
prices?: Array<ExistingProductPrice$Outbound | ProductPriceOneTimeFixedCreate$Outbound |
|
|
56
|
+
prices?: Array<ExistingProductPrice$Outbound | ProductPriceOneTimeFreeCreate$Outbound | ProductPriceRecurringFreeCreate$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound> | null | undefined;
|
|
60
57
|
medias?: Array<string> | null | undefined;
|
|
61
58
|
};
|
|
62
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,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAC7C,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;IAC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AAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EACH,KAAK,CACH,6BAA6B,GAC7B,sCAAsC,GACtC,wCAAwC,GACxC,uCAAuC,GACvC,yCAAyC,GACzC,wCAAwC,CAC3C,GACC,IAAI,GACJ,SAAS,CAAC;IACd,MAAM,CAAC,EAAE,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"}
|
|
@@ -32,19 +32,25 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
32
32
|
const existingproductprice_js_1 = require("./existingproductprice.js");
|
|
33
33
|
const productpriceonetimecustomcreate_js_1 = require("./productpriceonetimecustomcreate.js");
|
|
34
34
|
const productpriceonetimefixedcreate_js_1 = require("./productpriceonetimefixedcreate.js");
|
|
35
|
-
const
|
|
35
|
+
const productpriceonetimefreecreate_js_1 = require("./productpriceonetimefreecreate.js");
|
|
36
|
+
const productpricerecurringfixedcreate_js_1 = require("./productpricerecurringfixedcreate.js");
|
|
37
|
+
const productpricerecurringfreecreate_js_1 = require("./productpricerecurringfreecreate.js");
|
|
36
38
|
/** @internal */
|
|
37
39
|
exports.ProductUpdatePrices$inboundSchema = z.union([
|
|
38
40
|
existingproductprice_js_1.ExistingProductPrice$inboundSchema,
|
|
41
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$inboundSchema,
|
|
42
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema,
|
|
39
43
|
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
40
|
-
|
|
44
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema,
|
|
41
45
|
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
42
46
|
]);
|
|
43
47
|
/** @internal */
|
|
44
48
|
exports.ProductUpdatePrices$outboundSchema = z.union([
|
|
45
49
|
existingproductprice_js_1.ExistingProductPrice$outboundSchema,
|
|
50
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$outboundSchema,
|
|
51
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema,
|
|
46
52
|
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
47
|
-
|
|
53
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema,
|
|
48
54
|
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
49
55
|
]);
|
|
50
56
|
/**
|
|
@@ -62,18 +68,18 @@ var ProductUpdatePrices$;
|
|
|
62
68
|
exports.ProductUpdate$inboundSchema = z.object({
|
|
63
69
|
name: z.nullable(z.string()).optional(),
|
|
64
70
|
description: z.nullable(z.string()).optional(),
|
|
65
|
-
is_highlighted: z.nullable(z.boolean()).optional(),
|
|
66
71
|
is_archived: z.nullable(z.boolean()).optional(),
|
|
67
72
|
prices: z.nullable(z.array(z.union([
|
|
68
73
|
existingproductprice_js_1.ExistingProductPrice$inboundSchema,
|
|
74
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$inboundSchema,
|
|
75
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema,
|
|
69
76
|
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
70
|
-
|
|
77
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema,
|
|
71
78
|
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
72
79
|
]))).optional(),
|
|
73
80
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
74
81
|
}).transform((v) => {
|
|
75
82
|
return (0, primitives_js_1.remap)(v, {
|
|
76
|
-
"is_highlighted": "isHighlighted",
|
|
77
83
|
"is_archived": "isArchived",
|
|
78
84
|
});
|
|
79
85
|
});
|
|
@@ -81,18 +87,18 @@ exports.ProductUpdate$inboundSchema = z.object({
|
|
|
81
87
|
exports.ProductUpdate$outboundSchema = z.object({
|
|
82
88
|
name: z.nullable(z.string()).optional(),
|
|
83
89
|
description: z.nullable(z.string()).optional(),
|
|
84
|
-
isHighlighted: z.nullable(z.boolean()).optional(),
|
|
85
90
|
isArchived: z.nullable(z.boolean()).optional(),
|
|
86
91
|
prices: z.nullable(z.array(z.union([
|
|
87
92
|
existingproductprice_js_1.ExistingProductPrice$outboundSchema,
|
|
93
|
+
productpriceonetimefreecreate_js_1.ProductPriceOneTimeFreeCreate$outboundSchema,
|
|
94
|
+
productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema,
|
|
88
95
|
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
89
|
-
|
|
96
|
+
productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema,
|
|
90
97
|
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
91
98
|
]))).optional(),
|
|
92
99
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
93
100
|
}).transform((v) => {
|
|
94
101
|
return (0, primitives_js_1.remap)(v, {
|
|
95
|
-
isHighlighted: "is_highlighted",
|
|
96
102
|
isArchived: "is_archived",
|
|
97
103
|
});
|
|
98
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,6FAK8C;AAC9C,2FAK6C;AAC7C,
|
|
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;AA2C9C,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,KAAK,CAAC;IACV,4DAAkC;IAClC,8EAA2C;IAC3C,kFAA6C;IAC7C,gFAA4C;IAC5C,oFAA8C;IAC9C,kFAA6C;CAC9C,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,KAAK,CAAC;IACV,6DAAmC;IACnC,+EAA4C;IAC5C,mFAA8C;IAC9C,iFAA6C;IAC7C,qFAA+C;IAC/C,mFAA8C;CAC/C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,C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