@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,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
SubscriptionRecurringInterval,
|
|
10
|
+
SubscriptionRecurringInterval$inboundSchema,
|
|
11
|
+
SubscriptionRecurringInterval$outboundSchema,
|
|
12
|
+
} from "./subscriptionrecurringinterval.js";
|
|
13
|
+
|
|
14
|
+
export const ProductPriceRecurringFreeAmountType = {
|
|
15
|
+
Free: "free",
|
|
16
|
+
} as const;
|
|
17
|
+
export type ProductPriceRecurringFreeAmountType = ClosedEnum<
|
|
18
|
+
typeof ProductPriceRecurringFreeAmountType
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The type of the price.
|
|
23
|
+
*/
|
|
24
|
+
export const ProductPriceRecurringFreeType = {
|
|
25
|
+
Recurring: "recurring",
|
|
26
|
+
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* The type of the price.
|
|
29
|
+
*/
|
|
30
|
+
export type ProductPriceRecurringFreeType = ClosedEnum<
|
|
31
|
+
typeof ProductPriceRecurringFreeType
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A free recurring price for a product, i.e. a subscription.
|
|
36
|
+
*/
|
|
37
|
+
export type ProductPriceRecurringFree = {
|
|
38
|
+
/**
|
|
39
|
+
* Creation timestamp of the object.
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Last modification timestamp of the object.
|
|
44
|
+
*/
|
|
45
|
+
modifiedAt: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the price.
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
amountType?: "free" | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the price is archived and no longer available.
|
|
53
|
+
*/
|
|
54
|
+
isArchived: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The type of the price.
|
|
57
|
+
*/
|
|
58
|
+
type?: "recurring" | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The recurring interval of the price.
|
|
61
|
+
*/
|
|
62
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const ProductPriceRecurringFreeAmountType$inboundSchema: z.ZodNativeEnum<
|
|
67
|
+
typeof ProductPriceRecurringFreeAmountType
|
|
68
|
+
> = z.nativeEnum(ProductPriceRecurringFreeAmountType);
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ProductPriceRecurringFreeAmountType$outboundSchema:
|
|
72
|
+
z.ZodNativeEnum<typeof ProductPriceRecurringFreeAmountType> =
|
|
73
|
+
ProductPriceRecurringFreeAmountType$inboundSchema;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace ProductPriceRecurringFreeAmountType$ {
|
|
80
|
+
/** @deprecated use `ProductPriceRecurringFreeAmountType$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema =
|
|
82
|
+
ProductPriceRecurringFreeAmountType$inboundSchema;
|
|
83
|
+
/** @deprecated use `ProductPriceRecurringFreeAmountType$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema =
|
|
85
|
+
ProductPriceRecurringFreeAmountType$outboundSchema;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const ProductPriceRecurringFreeType$inboundSchema: z.ZodNativeEnum<
|
|
90
|
+
typeof ProductPriceRecurringFreeType
|
|
91
|
+
> = z.nativeEnum(ProductPriceRecurringFreeType);
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const ProductPriceRecurringFreeType$outboundSchema: z.ZodNativeEnum<
|
|
95
|
+
typeof ProductPriceRecurringFreeType
|
|
96
|
+
> = ProductPriceRecurringFreeType$inboundSchema;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
101
|
+
*/
|
|
102
|
+
export namespace ProductPriceRecurringFreeType$ {
|
|
103
|
+
/** @deprecated use `ProductPriceRecurringFreeType$inboundSchema` instead. */
|
|
104
|
+
export const inboundSchema = ProductPriceRecurringFreeType$inboundSchema;
|
|
105
|
+
/** @deprecated use `ProductPriceRecurringFreeType$outboundSchema` instead. */
|
|
106
|
+
export const outboundSchema = ProductPriceRecurringFreeType$outboundSchema;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const ProductPriceRecurringFree$inboundSchema: z.ZodType<
|
|
111
|
+
ProductPriceRecurringFree,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
unknown
|
|
114
|
+
> = z.object({
|
|
115
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
116
|
+
modified_at: z.nullable(
|
|
117
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
118
|
+
),
|
|
119
|
+
id: z.string(),
|
|
120
|
+
amount_type: z.literal("free").optional(),
|
|
121
|
+
is_archived: z.boolean(),
|
|
122
|
+
type: z.literal("recurring").optional(),
|
|
123
|
+
recurring_interval: SubscriptionRecurringInterval$inboundSchema,
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return remap$(v, {
|
|
126
|
+
"created_at": "createdAt",
|
|
127
|
+
"modified_at": "modifiedAt",
|
|
128
|
+
"amount_type": "amountType",
|
|
129
|
+
"is_archived": "isArchived",
|
|
130
|
+
"recurring_interval": "recurringInterval",
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export type ProductPriceRecurringFree$Outbound = {
|
|
136
|
+
created_at: string;
|
|
137
|
+
modified_at: string | null;
|
|
138
|
+
id: string;
|
|
139
|
+
amount_type: "free";
|
|
140
|
+
is_archived: boolean;
|
|
141
|
+
type: "recurring";
|
|
142
|
+
recurring_interval: string;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const ProductPriceRecurringFree$outboundSchema: z.ZodType<
|
|
147
|
+
ProductPriceRecurringFree$Outbound,
|
|
148
|
+
z.ZodTypeDef,
|
|
149
|
+
ProductPriceRecurringFree
|
|
150
|
+
> = z.object({
|
|
151
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
152
|
+
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
153
|
+
id: z.string(),
|
|
154
|
+
amountType: z.literal("free").default("free"),
|
|
155
|
+
isArchived: z.boolean(),
|
|
156
|
+
type: z.literal("recurring").default("recurring"),
|
|
157
|
+
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
158
|
+
}).transform((v) => {
|
|
159
|
+
return remap$(v, {
|
|
160
|
+
createdAt: "created_at",
|
|
161
|
+
modifiedAt: "modified_at",
|
|
162
|
+
amountType: "amount_type",
|
|
163
|
+
isArchived: "is_archived",
|
|
164
|
+
recurringInterval: "recurring_interval",
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
171
|
+
*/
|
|
172
|
+
export namespace ProductPriceRecurringFree$ {
|
|
173
|
+
/** @deprecated use `ProductPriceRecurringFree$inboundSchema` instead. */
|
|
174
|
+
export const inboundSchema = ProductPriceRecurringFree$inboundSchema;
|
|
175
|
+
/** @deprecated use `ProductPriceRecurringFree$outboundSchema` instead. */
|
|
176
|
+
export const outboundSchema = ProductPriceRecurringFree$outboundSchema;
|
|
177
|
+
/** @deprecated use `ProductPriceRecurringFree$Outbound` instead. */
|
|
178
|
+
export type Outbound = ProductPriceRecurringFree$Outbound;
|
|
179
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
SubscriptionRecurringInterval,
|
|
10
|
+
SubscriptionRecurringInterval$inboundSchema,
|
|
11
|
+
SubscriptionRecurringInterval$outboundSchema,
|
|
12
|
+
} from "./subscriptionrecurringinterval.js";
|
|
13
|
+
|
|
14
|
+
export const ProductPriceRecurringFreeCreateType = {
|
|
15
|
+
Recurring: "recurring",
|
|
16
|
+
} as const;
|
|
17
|
+
export type ProductPriceRecurringFreeCreateType = ClosedEnum<
|
|
18
|
+
typeof ProductPriceRecurringFreeCreateType
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export const ProductPriceRecurringFreeCreateAmountType = {
|
|
22
|
+
Free: "free",
|
|
23
|
+
} as const;
|
|
24
|
+
export type ProductPriceRecurringFreeCreateAmountType = ClosedEnum<
|
|
25
|
+
typeof ProductPriceRecurringFreeCreateAmountType
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Schema to create a free recurring product price, i.e. a subscription.
|
|
30
|
+
*/
|
|
31
|
+
export type ProductPriceRecurringFreeCreate = {
|
|
32
|
+
type?: "recurring" | undefined;
|
|
33
|
+
amountType?: "free" | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The recurring interval of the price.
|
|
36
|
+
*/
|
|
37
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ProductPriceRecurringFreeCreateType$inboundSchema: z.ZodNativeEnum<
|
|
42
|
+
typeof ProductPriceRecurringFreeCreateType
|
|
43
|
+
> = z.nativeEnum(ProductPriceRecurringFreeCreateType);
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const ProductPriceRecurringFreeCreateType$outboundSchema:
|
|
47
|
+
z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateType> =
|
|
48
|
+
ProductPriceRecurringFreeCreateType$inboundSchema;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace ProductPriceRecurringFreeCreateType$ {
|
|
55
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateType$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema =
|
|
57
|
+
ProductPriceRecurringFreeCreateType$inboundSchema;
|
|
58
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateType$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema =
|
|
60
|
+
ProductPriceRecurringFreeCreateType$outboundSchema;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ProductPriceRecurringFreeCreateAmountType$inboundSchema:
|
|
65
|
+
z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType> = z
|
|
66
|
+
.nativeEnum(ProductPriceRecurringFreeCreateAmountType);
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const ProductPriceRecurringFreeCreateAmountType$outboundSchema:
|
|
70
|
+
z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType> =
|
|
71
|
+
ProductPriceRecurringFreeCreateAmountType$inboundSchema;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
export namespace ProductPriceRecurringFreeCreateAmountType$ {
|
|
78
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateAmountType$inboundSchema` instead. */
|
|
79
|
+
export const inboundSchema =
|
|
80
|
+
ProductPriceRecurringFreeCreateAmountType$inboundSchema;
|
|
81
|
+
/** @deprecated use `ProductPriceRecurringFreeCreateAmountType$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema =
|
|
83
|
+
ProductPriceRecurringFreeCreateAmountType$outboundSchema;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const ProductPriceRecurringFreeCreate$inboundSchema: z.ZodType<
|
|
88
|
+
ProductPriceRecurringFreeCreate,
|
|
89
|
+
z.ZodTypeDef,
|
|
90
|
+
unknown
|
|
91
|
+
> = z.object({
|
|
92
|
+
type: z.literal("recurring").optional(),
|
|
93
|
+
amount_type: z.literal("free").optional(),
|
|
94
|
+
recurring_interval: SubscriptionRecurringInterval$inboundSchema,
|
|
95
|
+
}).transform((v) => {
|
|
96
|
+
return remap$(v, {
|
|
97
|
+
"amount_type": "amountType",
|
|
98
|
+
"recurring_interval": "recurringInterval",
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type ProductPriceRecurringFreeCreate$Outbound = {
|
|
104
|
+
type: "recurring";
|
|
105
|
+
amount_type: "free";
|
|
106
|
+
recurring_interval: string;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const ProductPriceRecurringFreeCreate$outboundSchema: z.ZodType<
|
|
111
|
+
ProductPriceRecurringFreeCreate$Outbound,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
ProductPriceRecurringFreeCreate
|
|
114
|
+
> = z.object({
|
|
115
|
+
type: z.literal("recurring").default("recurring"),
|
|
116
|
+
amountType: z.literal("free").default("free"),
|
|
117
|
+
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
118
|
+
}).transform((v) => {
|
|
119
|
+
return remap$(v, {
|
|
120
|
+
amountType: "amount_type",
|
|
121
|
+
recurringInterval: "recurring_interval",
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
+
*/
|
|
129
|
+
export namespace ProductPriceRecurringFreeCreate$ {
|
|
130
|
+
/** @deprecated use `ProductPriceRecurringFreeCreate$inboundSchema` instead. */
|
|
131
|
+
export const inboundSchema = ProductPriceRecurringFreeCreate$inboundSchema;
|
|
132
|
+
/** @deprecated use `ProductPriceRecurringFreeCreate$outboundSchema` instead. */
|
|
133
|
+
export const outboundSchema = ProductPriceRecurringFreeCreate$outboundSchema;
|
|
134
|
+
/** @deprecated use `ProductPriceRecurringFreeCreate$Outbound` instead. */
|
|
135
|
+
export type Outbound = ProductPriceRecurringFreeCreate$Outbound;
|
|
136
|
+
}
|
|
@@ -15,8 +15,15 @@ import {
|
|
|
15
15
|
ProductPriceRecurringFixed$Outbound,
|
|
16
16
|
ProductPriceRecurringFixed$outboundSchema,
|
|
17
17
|
} from "./productpricerecurringfixed.js";
|
|
18
|
+
import {
|
|
19
|
+
ProductPriceRecurringFree,
|
|
20
|
+
ProductPriceRecurringFree$inboundSchema,
|
|
21
|
+
ProductPriceRecurringFree$Outbound,
|
|
22
|
+
ProductPriceRecurringFree$outboundSchema,
|
|
23
|
+
} from "./productpricerecurringfree.js";
|
|
18
24
|
|
|
19
25
|
export type ProductPriceRecurringInput =
|
|
26
|
+
| (ProductPriceRecurringFree & { amountType: "free" })
|
|
20
27
|
| (ProductPriceRecurringFixed & { amountType: "fixed" })
|
|
21
28
|
| (ProductPriceRecurringCustom & { amountType: "custom" });
|
|
22
29
|
|
|
@@ -26,6 +33,11 @@ export const ProductPriceRecurringInput$inboundSchema: z.ZodType<
|
|
|
26
33
|
z.ZodTypeDef,
|
|
27
34
|
unknown
|
|
28
35
|
> = z.union([
|
|
36
|
+
ProductPriceRecurringFree$inboundSchema.and(
|
|
37
|
+
z.object({ amount_type: z.literal("free") }).transform((v) => ({
|
|
38
|
+
amountType: v.amount_type,
|
|
39
|
+
})),
|
|
40
|
+
),
|
|
29
41
|
ProductPriceRecurringFixed$inboundSchema.and(
|
|
30
42
|
z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
|
|
31
43
|
amountType: v.amount_type,
|
|
@@ -40,6 +52,7 @@ export const ProductPriceRecurringInput$inboundSchema: z.ZodType<
|
|
|
40
52
|
|
|
41
53
|
/** @internal */
|
|
42
54
|
export type ProductPriceRecurringInput$Outbound =
|
|
55
|
+
| (ProductPriceRecurringFree$Outbound & { amount_type: "free" })
|
|
43
56
|
| (ProductPriceRecurringFixed$Outbound & { amount_type: "fixed" })
|
|
44
57
|
| (ProductPriceRecurringCustom$Outbound & { amount_type: "custom" });
|
|
45
58
|
|
|
@@ -49,6 +62,11 @@ export const ProductPriceRecurringInput$outboundSchema: z.ZodType<
|
|
|
49
62
|
z.ZodTypeDef,
|
|
50
63
|
ProductPriceRecurringInput
|
|
51
64
|
> = z.union([
|
|
65
|
+
ProductPriceRecurringFree$outboundSchema.and(
|
|
66
|
+
z.object({ amountType: z.literal("free") }).transform((v) => ({
|
|
67
|
+
amount_type: v.amountType,
|
|
68
|
+
})),
|
|
69
|
+
),
|
|
52
70
|
ProductPriceRecurringFixed$outboundSchema.and(
|
|
53
71
|
z.object({ amountType: z.literal("fixed") }).transform((v) => ({
|
|
54
72
|
amount_type: v.amountType,
|
|
@@ -15,8 +15,15 @@ import {
|
|
|
15
15
|
ProductPriceRecurringFixed$Outbound,
|
|
16
16
|
ProductPriceRecurringFixed$outboundSchema,
|
|
17
17
|
} from "./productpricerecurringfixed.js";
|
|
18
|
+
import {
|
|
19
|
+
ProductPriceRecurringFree,
|
|
20
|
+
ProductPriceRecurringFree$inboundSchema,
|
|
21
|
+
ProductPriceRecurringFree$Outbound,
|
|
22
|
+
ProductPriceRecurringFree$outboundSchema,
|
|
23
|
+
} from "./productpricerecurringfree.js";
|
|
18
24
|
|
|
19
25
|
export type ProductPriceRecurringOutput =
|
|
26
|
+
| (ProductPriceRecurringFree & { amountType: "free" })
|
|
20
27
|
| (ProductPriceRecurringFixed & { amountType: "fixed" })
|
|
21
28
|
| (ProductPriceRecurringCustom & { amountType: "custom" });
|
|
22
29
|
|
|
@@ -26,6 +33,11 @@ export const ProductPriceRecurringOutput$inboundSchema: z.ZodType<
|
|
|
26
33
|
z.ZodTypeDef,
|
|
27
34
|
unknown
|
|
28
35
|
> = z.union([
|
|
36
|
+
ProductPriceRecurringFree$inboundSchema.and(
|
|
37
|
+
z.object({ amount_type: z.literal("free") }).transform((v) => ({
|
|
38
|
+
amountType: v.amount_type,
|
|
39
|
+
})),
|
|
40
|
+
),
|
|
29
41
|
ProductPriceRecurringFixed$inboundSchema.and(
|
|
30
42
|
z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
|
|
31
43
|
amountType: v.amount_type,
|
|
@@ -40,6 +52,7 @@ export const ProductPriceRecurringOutput$inboundSchema: z.ZodType<
|
|
|
40
52
|
|
|
41
53
|
/** @internal */
|
|
42
54
|
export type ProductPriceRecurringOutput$Outbound =
|
|
55
|
+
| (ProductPriceRecurringFree$Outbound & { amount_type: "free" })
|
|
43
56
|
| (ProductPriceRecurringFixed$Outbound & { amount_type: "fixed" })
|
|
44
57
|
| (ProductPriceRecurringCustom$Outbound & { amount_type: "custom" });
|
|
45
58
|
|
|
@@ -49,6 +62,11 @@ export const ProductPriceRecurringOutput$outboundSchema: z.ZodType<
|
|
|
49
62
|
z.ZodTypeDef,
|
|
50
63
|
ProductPriceRecurringOutput
|
|
51
64
|
> = z.union([
|
|
65
|
+
ProductPriceRecurringFree$outboundSchema.and(
|
|
66
|
+
z.object({ amountType: z.literal("free") }).transform((v) => ({
|
|
67
|
+
amount_type: v.amountType,
|
|
68
|
+
})),
|
|
69
|
+
),
|
|
52
70
|
ProductPriceRecurringFixed$outboundSchema.and(
|
|
53
71
|
z.object({ amountType: z.literal("fixed") }).transform((v) => ({
|
|
54
72
|
amount_type: v.amountType,
|
|
@@ -4,27 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
8
|
+
ProductPriceRecurringFixedCreate,
|
|
9
|
+
ProductPriceRecurringFixedCreate$inboundSchema,
|
|
10
|
+
ProductPriceRecurringFixedCreate$Outbound,
|
|
11
|
+
ProductPriceRecurringFixedCreate$outboundSchema,
|
|
12
|
+
} from "./productpricerecurringfixedcreate.js";
|
|
13
|
+
import {
|
|
14
|
+
ProductPriceRecurringFreeCreate,
|
|
15
|
+
ProductPriceRecurringFreeCreate$inboundSchema,
|
|
16
|
+
ProductPriceRecurringFreeCreate$Outbound,
|
|
17
|
+
ProductPriceRecurringFreeCreate$outboundSchema,
|
|
18
|
+
} from "./productpricerecurringfreecreate.js";
|
|
14
19
|
|
|
15
20
|
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export const ProductRecurringCreateType = {
|
|
19
|
-
Individual: "individual",
|
|
20
|
-
Business: "business",
|
|
21
|
-
} as const;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
21
|
+
* List of available prices for this product.
|
|
24
22
|
*/
|
|
25
|
-
export type
|
|
26
|
-
|
|
27
|
-
>;
|
|
23
|
+
export type ProductRecurringCreatePrices =
|
|
24
|
+
| Array<ProductPriceRecurringFixedCreate>
|
|
25
|
+
| Array<ProductPriceRecurringFreeCreate>;
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
28
|
* Schema to create a recurring product, i.e. a subscription.
|
|
@@ -41,7 +39,9 @@ export type ProductRecurringCreate = {
|
|
|
41
39
|
/**
|
|
42
40
|
* List of available prices for this product.
|
|
43
41
|
*/
|
|
44
|
-
prices:
|
|
42
|
+
prices:
|
|
43
|
+
| Array<ProductPriceRecurringFixedCreate>
|
|
44
|
+
| Array<ProductPriceRecurringFreeCreate>;
|
|
45
45
|
/**
|
|
46
46
|
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
47
47
|
*/
|
|
@@ -50,35 +50,44 @@ export type ProductRecurringCreate = {
|
|
|
50
50
|
* The ID of the organization owning the product. **Required unless you use an organization token.**
|
|
51
51
|
*/
|
|
52
52
|
organizationId?: string | null | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
55
|
-
*/
|
|
56
|
-
type: ProductRecurringCreateType;
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
59
|
-
*/
|
|
60
|
-
isHighlighted?: boolean | undefined;
|
|
61
53
|
};
|
|
62
54
|
|
|
63
55
|
/** @internal */
|
|
64
|
-
export const
|
|
65
|
-
|
|
66
|
-
|
|
56
|
+
export const ProductRecurringCreatePrices$inboundSchema: z.ZodType<
|
|
57
|
+
ProductRecurringCreatePrices,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.union([
|
|
61
|
+
z.array(ProductPriceRecurringFixedCreate$inboundSchema),
|
|
62
|
+
z.array(ProductPriceRecurringFreeCreate$inboundSchema),
|
|
63
|
+
]);
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type ProductRecurringCreatePrices$Outbound =
|
|
67
|
+
| Array<ProductPriceRecurringFixedCreate$Outbound>
|
|
68
|
+
| Array<ProductPriceRecurringFreeCreate$Outbound>;
|
|
67
69
|
|
|
68
70
|
/** @internal */
|
|
69
|
-
export const
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
export const ProductRecurringCreatePrices$outboundSchema: z.ZodType<
|
|
72
|
+
ProductRecurringCreatePrices$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
ProductRecurringCreatePrices
|
|
75
|
+
> = z.union([
|
|
76
|
+
z.array(ProductPriceRecurringFixedCreate$outboundSchema),
|
|
77
|
+
z.array(ProductPriceRecurringFreeCreate$outboundSchema),
|
|
78
|
+
]);
|
|
72
79
|
|
|
73
80
|
/**
|
|
74
81
|
* @internal
|
|
75
82
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
83
|
*/
|
|
77
|
-
export namespace
|
|
78
|
-
/** @deprecated use `
|
|
79
|
-
export const inboundSchema =
|
|
80
|
-
/** @deprecated use `
|
|
81
|
-
export const outboundSchema =
|
|
84
|
+
export namespace ProductRecurringCreatePrices$ {
|
|
85
|
+
/** @deprecated use `ProductRecurringCreatePrices$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema = ProductRecurringCreatePrices$inboundSchema;
|
|
87
|
+
/** @deprecated use `ProductRecurringCreatePrices$outboundSchema` instead. */
|
|
88
|
+
export const outboundSchema = ProductRecurringCreatePrices$outboundSchema;
|
|
89
|
+
/** @deprecated use `ProductRecurringCreatePrices$Outbound` instead. */
|
|
90
|
+
export type Outbound = ProductRecurringCreatePrices$Outbound;
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
/** @internal */
|
|
@@ -89,15 +98,15 @@ export const ProductRecurringCreate$inboundSchema: z.ZodType<
|
|
|
89
98
|
> = z.object({
|
|
90
99
|
name: z.string(),
|
|
91
100
|
description: z.nullable(z.string()).optional(),
|
|
92
|
-
prices: z.
|
|
101
|
+
prices: z.union([
|
|
102
|
+
z.array(ProductPriceRecurringFixedCreate$inboundSchema),
|
|
103
|
+
z.array(ProductPriceRecurringFreeCreate$inboundSchema),
|
|
104
|
+
]),
|
|
93
105
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
94
106
|
organization_id: z.nullable(z.string()).optional(),
|
|
95
|
-
type: ProductRecurringCreateType$inboundSchema,
|
|
96
|
-
is_highlighted: z.boolean().default(false),
|
|
97
107
|
}).transform((v) => {
|
|
98
108
|
return remap$(v, {
|
|
99
109
|
"organization_id": "organizationId",
|
|
100
|
-
"is_highlighted": "isHighlighted",
|
|
101
110
|
});
|
|
102
111
|
});
|
|
103
112
|
|
|
@@ -105,11 +114,11 @@ export const ProductRecurringCreate$inboundSchema: z.ZodType<
|
|
|
105
114
|
export type ProductRecurringCreate$Outbound = {
|
|
106
115
|
name: string;
|
|
107
116
|
description?: string | null | undefined;
|
|
108
|
-
prices:
|
|
117
|
+
prices:
|
|
118
|
+
| Array<ProductPriceRecurringFixedCreate$Outbound>
|
|
119
|
+
| Array<ProductPriceRecurringFreeCreate$Outbound>;
|
|
109
120
|
medias?: Array<string> | null | undefined;
|
|
110
121
|
organization_id?: string | null | undefined;
|
|
111
|
-
type: string;
|
|
112
|
-
is_highlighted: boolean;
|
|
113
122
|
};
|
|
114
123
|
|
|
115
124
|
/** @internal */
|
|
@@ -120,15 +129,15 @@ export const ProductRecurringCreate$outboundSchema: z.ZodType<
|
|
|
120
129
|
> = z.object({
|
|
121
130
|
name: z.string(),
|
|
122
131
|
description: z.nullable(z.string()).optional(),
|
|
123
|
-
prices: z.
|
|
132
|
+
prices: z.union([
|
|
133
|
+
z.array(ProductPriceRecurringFixedCreate$outboundSchema),
|
|
134
|
+
z.array(ProductPriceRecurringFreeCreate$outboundSchema),
|
|
135
|
+
]),
|
|
124
136
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
125
137
|
organizationId: z.nullable(z.string()).optional(),
|
|
126
|
-
type: ProductRecurringCreateType$outboundSchema,
|
|
127
|
-
isHighlighted: z.boolean().default(false),
|
|
128
138
|
}).transform((v) => {
|
|
129
139
|
return remap$(v, {
|
|
130
140
|
organizationId: "organization_id",
|
|
131
|
-
isHighlighted: "is_highlighted",
|
|
132
141
|
});
|
|
133
142
|
});
|
|
134
143
|
|