@polar-sh/sdk 0.8.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -50
- package/docs/sdks/benefits/README.md +4 -13
- package/docs/sdks/clients/README.md +4 -4
- package/docs/sdks/files/README.md +9 -9
- package/docs/sdks/oauth2/README.md +2 -2
- package/docs/sdks/polarsubscriptions/README.md +5 -89
- package/docs/sdks/products/README.md +2 -5
- package/docs/sdks/subscriptions/README.md +0 -164
- package/funcs/advertisementsGet.d.ts +1 -1
- package/funcs/advertisementsGet.d.ts.map +1 -1
- package/funcs/advertisementsGet.js +32 -32
- package/funcs/advertisementsGet.js.map +1 -1
- package/funcs/advertisementsList.d.ts +1 -1
- package/funcs/advertisementsList.d.ts.map +1 -1
- package/funcs/advertisementsList.js +42 -42
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/articlesCreate.d.ts +1 -1
- package/funcs/articlesCreate.d.ts.map +1 -1
- package/funcs/articlesCreate.js +30 -30
- package/funcs/articlesCreate.js.map +1 -1
- package/funcs/articlesDelete.d.ts +1 -1
- package/funcs/articlesDelete.d.ts.map +1 -1
- package/funcs/articlesDelete.js +32 -32
- package/funcs/articlesDelete.js.map +1 -1
- package/funcs/articlesGet.d.ts +1 -1
- package/funcs/articlesGet.d.ts.map +1 -1
- package/funcs/articlesGet.js +32 -32
- package/funcs/articlesGet.js.map +1 -1
- package/funcs/articlesList.d.ts +1 -1
- package/funcs/articlesList.d.ts.map +1 -1
- package/funcs/articlesList.js +46 -46
- package/funcs/articlesList.js.map +1 -1
- package/funcs/articlesPreview.d.ts +1 -1
- package/funcs/articlesPreview.d.ts.map +1 -1
- package/funcs/articlesPreview.js +32 -32
- package/funcs/articlesPreview.js.map +1 -1
- package/funcs/articlesReceivers.d.ts +1 -1
- package/funcs/articlesReceivers.d.ts.map +1 -1
- package/funcs/articlesReceivers.js +32 -32
- package/funcs/articlesReceivers.js.map +1 -1
- package/funcs/articlesSend.d.ts +1 -1
- package/funcs/articlesSend.d.ts.map +1 -1
- package/funcs/articlesSend.js +32 -32
- package/funcs/articlesSend.js.map +1 -1
- package/funcs/articlesUpdate.d.ts +1 -1
- package/funcs/articlesUpdate.d.ts.map +1 -1
- package/funcs/articlesUpdate.js +32 -32
- package/funcs/articlesUpdate.js.map +1 -1
- package/funcs/benefitsCreate.d.ts +1 -1
- package/funcs/benefitsCreate.d.ts.map +1 -1
- package/funcs/benefitsCreate.js +30 -30
- package/funcs/benefitsCreate.js.map +1 -1
- package/funcs/benefitsDelete.d.ts +1 -1
- package/funcs/benefitsDelete.d.ts.map +1 -1
- package/funcs/benefitsDelete.js +32 -32
- package/funcs/benefitsDelete.js.map +1 -1
- package/funcs/benefitsGet.d.ts +1 -1
- package/funcs/benefitsGet.d.ts.map +1 -1
- package/funcs/benefitsGet.js +32 -32
- package/funcs/benefitsGet.js.map +1 -1
- package/funcs/benefitsGrants.d.ts +1 -1
- package/funcs/benefitsGrants.d.ts.map +1 -1
- package/funcs/benefitsGrants.js +45 -45
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.d.ts +1 -1
- package/funcs/benefitsList.d.ts.map +1 -1
- package/funcs/benefitsList.js +42 -42
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/benefitsUpdate.d.ts +1 -1
- package/funcs/benefitsUpdate.d.ts.map +1 -1
- package/funcs/benefitsUpdate.js +32 -32
- package/funcs/benefitsUpdate.js.map +1 -1
- package/funcs/checkoutsCreate.d.ts +1 -1
- package/funcs/checkoutsCreate.d.ts.map +1 -1
- package/funcs/checkoutsCreate.js +30 -30
- package/funcs/checkoutsCreate.js.map +1 -1
- package/funcs/checkoutsGet.d.ts +1 -1
- package/funcs/checkoutsGet.d.ts.map +1 -1
- package/funcs/checkoutsGet.js +32 -32
- package/funcs/checkoutsGet.js.map +1 -1
- package/funcs/externalOrganizationsList.d.ts +1 -1
- package/funcs/externalOrganizationsList.d.ts.map +1 -1
- package/funcs/externalOrganizationsList.js +44 -44
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesCreate.d.ts +1 -1
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +30 -30
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +1 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +32 -32
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesList.d.ts +1 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +41 -41
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.d.ts +1 -1
- package/funcs/filesUpdate.d.ts.map +1 -1
- package/funcs/filesUpdate.js +32 -32
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/filesUploaded.d.ts +1 -1
- package/funcs/filesUploaded.d.ts.map +1 -1
- package/funcs/filesUploaded.js +32 -32
- package/funcs/filesUploaded.js.map +1 -1
- package/funcs/licenseKeysGet.d.ts +1 -1
- package/funcs/licenseKeysGet.d.ts.map +1 -1
- package/funcs/licenseKeysGet.js +32 -32
- package/funcs/licenseKeysGet.js.map +1 -1
- package/funcs/licenseKeysGetActivation.d.ts +1 -1
- package/funcs/licenseKeysGetActivation.d.ts.map +1 -1
- package/funcs/licenseKeysGetActivation.js +33 -33
- package/funcs/licenseKeysGetActivation.js.map +1 -1
- package/funcs/licenseKeysList.d.ts +1 -1
- package/funcs/licenseKeysList.d.ts.map +1 -1
- package/funcs/licenseKeysList.js +41 -41
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/licenseKeysUpdate.d.ts +1 -1
- package/funcs/licenseKeysUpdate.d.ts.map +1 -1
- package/funcs/licenseKeysUpdate.js +32 -34
- package/funcs/licenseKeysUpdate.js.map +1 -1
- package/funcs/metricsGet.d.ts +1 -1
- package/funcs/metricsGet.d.ts.map +1 -1
- package/funcs/metricsGet.js +38 -38
- package/funcs/metricsGet.js.map +1 -1
- package/funcs/metricsLimits.d.ts +1 -1
- package/funcs/metricsLimits.d.ts.map +1 -1
- package/funcs/metricsLimits.js +20 -20
- package/funcs/metricsLimits.js.map +1 -1
- package/funcs/oauth2ClientsCreate.d.ts +1 -1
- package/funcs/oauth2ClientsCreate.d.ts.map +1 -1
- package/funcs/oauth2ClientsCreate.js +30 -30
- package/funcs/oauth2ClientsCreate.js.map +1 -1
- package/funcs/oauth2ClientsDelete.d.ts +1 -1
- package/funcs/oauth2ClientsDelete.d.ts.map +1 -1
- package/funcs/oauth2ClientsDelete.js +32 -32
- package/funcs/oauth2ClientsDelete.js.map +1 -1
- package/funcs/oauth2ClientsGet.d.ts +1 -1
- package/funcs/oauth2ClientsGet.d.ts.map +1 -1
- package/funcs/oauth2ClientsGet.js +32 -32
- package/funcs/oauth2ClientsGet.js.map +1 -1
- package/funcs/oauth2ClientsList.d.ts +1 -1
- package/funcs/oauth2ClientsList.d.ts.map +1 -1
- package/funcs/oauth2ClientsList.js +40 -40
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts.map +1 -1
- package/funcs/oauth2ClientsUpdate.js +32 -32
- package/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/funcs/oauth2Introspect.d.ts +1 -1
- package/funcs/oauth2Introspect.d.ts.map +1 -1
- package/funcs/oauth2Introspect.js +29 -29
- package/funcs/oauth2Introspect.js.map +1 -1
- package/funcs/oauth2Revoke.d.ts +1 -1
- package/funcs/oauth2Revoke.d.ts.map +1 -1
- package/funcs/oauth2Revoke.js +28 -28
- package/funcs/oauth2Revoke.js.map +1 -1
- package/funcs/oauth2Token.d.ts +1 -1
- package/funcs/oauth2Token.d.ts.map +1 -1
- package/funcs/oauth2Token.js +28 -28
- package/funcs/oauth2Token.js.map +1 -1
- package/funcs/oauth2Userinfo.d.ts +1 -1
- package/funcs/oauth2Userinfo.d.ts.map +1 -1
- package/funcs/oauth2Userinfo.js +20 -20
- package/funcs/oauth2Userinfo.js.map +1 -1
- package/funcs/ordersGet.d.ts +1 -1
- package/funcs/ordersGet.d.ts.map +1 -1
- package/funcs/ordersGet.js +32 -32
- package/funcs/ordersGet.js.map +1 -1
- package/funcs/ordersInvoice.d.ts +1 -1
- package/funcs/ordersInvoice.d.ts.map +1 -1
- package/funcs/ordersInvoice.js +32 -32
- package/funcs/ordersInvoice.js.map +1 -1
- package/funcs/ordersList.d.ts +1 -1
- package/funcs/ordersList.d.ts.map +1 -1
- package/funcs/ordersList.js +44 -46
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsCreate.d.ts +1 -1
- package/funcs/organizationsCreate.d.ts.map +1 -1
- package/funcs/organizationsCreate.js +30 -30
- package/funcs/organizationsCreate.js.map +1 -1
- package/funcs/organizationsGet.d.ts +1 -1
- package/funcs/organizationsGet.d.ts.map +1 -1
- package/funcs/organizationsGet.js +32 -32
- package/funcs/organizationsGet.js.map +1 -1
- package/funcs/organizationsList.d.ts +1 -1
- package/funcs/organizationsList.d.ts.map +1 -1
- package/funcs/organizationsList.js +43 -43
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/organizationsUpdate.d.ts +1 -1
- package/funcs/organizationsUpdate.d.ts.map +1 -1
- package/funcs/organizationsUpdate.js +32 -32
- package/funcs/organizationsUpdate.js.map +1 -1
- package/funcs/productsCreate.d.ts +1 -1
- package/funcs/productsCreate.d.ts.map +1 -1
- package/funcs/productsCreate.js +30 -30
- package/funcs/productsCreate.js.map +1 -1
- package/funcs/productsGet.d.ts +1 -1
- package/funcs/productsGet.d.ts.map +1 -1
- package/funcs/productsGet.js +32 -32
- package/funcs/productsGet.js.map +1 -1
- package/funcs/productsList.d.ts +1 -1
- package/funcs/productsList.d.ts.map +1 -1
- package/funcs/productsList.js +44 -45
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsUpdate.d.ts +1 -1
- package/funcs/productsUpdate.d.ts.map +1 -1
- package/funcs/productsUpdate.js +32 -32
- package/funcs/productsUpdate.js.map +1 -1
- package/funcs/productsUpdateBenefits.d.ts +1 -1
- package/funcs/productsUpdateBenefits.d.ts.map +1 -1
- package/funcs/productsUpdateBenefits.js +32 -32
- package/funcs/productsUpdateBenefits.js.map +1 -1
- package/funcs/repositoriesGet.d.ts +1 -1
- package/funcs/repositoriesGet.d.ts.map +1 -1
- package/funcs/repositoriesGet.js +32 -32
- package/funcs/repositoriesGet.js.map +1 -1
- package/funcs/repositoriesList.d.ts +1 -1
- package/funcs/repositoriesList.d.ts.map +1 -1
- package/funcs/repositoriesList.js +46 -46
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/repositoriesUpdate.d.ts +1 -1
- package/funcs/repositoriesUpdate.d.ts.map +1 -1
- package/funcs/repositoriesUpdate.js +32 -34
- package/funcs/repositoriesUpdate.js.map +1 -1
- package/funcs/subscriptionsExport.d.ts +1 -1
- package/funcs/subscriptionsExport.d.ts.map +1 -1
- package/funcs/subscriptionsExport.js +33 -33
- package/funcs/subscriptionsExport.js.map +1 -1
- package/funcs/subscriptionsList.d.ts +1 -1
- package/funcs/subscriptionsList.d.ts.map +1 -1
- package/funcs/subscriptionsList.js +44 -45
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsCreate.js +30 -30
- package/funcs/usersAdvertisementsCreate.js.map +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts.map +1 -1
- package/funcs/usersAdvertisementsDelete.js +32 -32
- package/funcs/usersAdvertisementsDelete.js.map +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts.map +1 -1
- package/funcs/usersAdvertisementsEnable.js +32 -32
- package/funcs/usersAdvertisementsEnable.js.map +1 -1
- package/funcs/usersAdvertisementsGet.d.ts +1 -1
- package/funcs/usersAdvertisementsGet.d.ts.map +1 -1
- package/funcs/usersAdvertisementsGet.js +32 -32
- package/funcs/usersAdvertisementsGet.js.map +1 -1
- package/funcs/usersAdvertisementsList.d.ts +1 -1
- package/funcs/usersAdvertisementsList.d.ts.map +1 -1
- package/funcs/usersAdvertisementsList.js +41 -41
- package/funcs/usersAdvertisementsList.js.map +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsUpdate.js +32 -32
- package/funcs/usersAdvertisementsUpdate.js.map +1 -1
- package/funcs/usersBenefitsGet.d.ts +1 -1
- package/funcs/usersBenefitsGet.d.ts.map +1 -1
- package/funcs/usersBenefitsGet.js +32 -32
- package/funcs/usersBenefitsGet.js.map +1 -1
- package/funcs/usersBenefitsList.d.ts +1 -1
- package/funcs/usersBenefitsList.d.ts.map +1 -1
- package/funcs/usersBenefitsList.js +45 -45
- package/funcs/usersBenefitsList.js.map +1 -1
- package/funcs/usersDownloadablesGet.d.ts +1 -1
- package/funcs/usersDownloadablesGet.d.ts.map +1 -1
- package/funcs/usersDownloadablesGet.js +32 -32
- package/funcs/usersDownloadablesGet.js.map +1 -1
- package/funcs/usersDownloadablesList.d.ts +1 -1
- package/funcs/usersDownloadablesList.d.ts.map +1 -1
- package/funcs/usersDownloadablesList.js +42 -42
- package/funcs/usersDownloadablesList.js.map +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysActivate.js +30 -30
- package/funcs/usersLicenseKeysActivate.js.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.js +30 -30
- package/funcs/usersLicenseKeysDeactivate.js.map +1 -1
- package/funcs/usersLicenseKeysGet.d.ts +1 -1
- package/funcs/usersLicenseKeysGet.d.ts.map +1 -1
- package/funcs/usersLicenseKeysGet.js +32 -32
- package/funcs/usersLicenseKeysGet.js.map +1 -1
- package/funcs/usersLicenseKeysList.d.ts +1 -1
- package/funcs/usersLicenseKeysList.d.ts.map +1 -1
- package/funcs/usersLicenseKeysList.js +42 -42
- package/funcs/usersLicenseKeysList.js.map +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysValidate.js +30 -30
- package/funcs/usersLicenseKeysValidate.js.map +1 -1
- package/funcs/usersOrdersGet.d.ts +1 -1
- package/funcs/usersOrdersGet.d.ts.map +1 -1
- package/funcs/usersOrdersGet.js +32 -32
- package/funcs/usersOrdersGet.js.map +1 -1
- package/funcs/usersOrdersInvoice.d.ts +1 -1
- package/funcs/usersOrdersInvoice.d.ts.map +1 -1
- package/funcs/usersOrdersInvoice.js +32 -32
- package/funcs/usersOrdersInvoice.js.map +1 -1
- package/funcs/usersOrdersList.d.ts +1 -1
- package/funcs/usersOrdersList.d.ts.map +1 -1
- package/funcs/usersOrdersList.js +46 -46
- package/funcs/usersOrdersList.js.map +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts.map +1 -1
- package/funcs/usersSubscriptionsCancel.js +32 -32
- package/funcs/usersSubscriptionsCancel.js.map +1 -1
- package/funcs/usersSubscriptionsGet.d.ts +1 -1
- package/funcs/usersSubscriptionsGet.d.ts.map +1 -1
- package/funcs/usersSubscriptionsGet.js +32 -32
- package/funcs/usersSubscriptionsGet.js.map +1 -1
- package/funcs/usersSubscriptionsList.d.ts +1 -1
- package/funcs/usersSubscriptionsList.d.ts.map +1 -1
- package/funcs/usersSubscriptionsList.js +45 -45
- package/funcs/usersSubscriptionsList.js.map +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts.map +1 -1
- package/funcs/usersSubscriptionsUpdate.js +33 -33
- package/funcs/usersSubscriptionsUpdate.js.map +1 -1
- package/lib/config.d.ts +16 -5
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +18 -12
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +5 -8
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +36 -20
- package/lib/sdks.js.map +1 -1
- package/models/components/index.d.ts +14 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -9
- package/models/components/index.js.map +1 -1
- package/models/components/orderproduct.d.ts +0 -11
- package/models/components/orderproduct.d.ts.map +1 -1
- package/models/components/orderproduct.js +0 -7
- package/models/components/orderproduct.js.map +1 -1
- package/models/components/ordersubscription.d.ts +9 -2
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +11 -2
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/organizationfeaturesettings.d.ts +0 -5
- package/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/models/components/organizationfeaturesettings.js +0 -4
- package/models/components/organizationfeaturesettings.js.map +1 -1
- package/models/components/productinput.d.ts +0 -11
- package/models/components/productinput.d.ts.map +1 -1
- package/models/components/productinput.js +0 -7
- package/models/components/productinput.js.map +1 -1
- package/models/components/productonetimecreate.d.ts +24 -3
- package/models/components/productonetimecreate.d.ts.map +1 -1
- package/models/components/productonetimecreate.js +38 -4
- package/models/components/productonetimecreate.js.map +1 -1
- package/models/components/productoutput.d.ts +0 -11
- package/models/components/productoutput.d.ts.map +1 -1
- package/models/components/productoutput.js +0 -7
- package/models/components/productoutput.js.map +1 -1
- package/models/components/productpriceinput.d.ts +3 -11
- package/models/components/productpriceinput.d.ts.map +1 -1
- package/models/components/productpriceinput.js +5 -13
- package/models/components/productpriceinput.js.map +1 -1
- package/models/components/productpriceonetime.d.ts +5 -71
- package/models/components/productpriceonetime.d.ts.map +1 -1
- package/models/components/productpriceonetime.js +14 -57
- package/models/components/productpriceonetime.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +124 -0
- package/models/components/productpriceonetimecustom.d.ts.map +1 -0
- package/models/components/productpriceonetimecustom.js +130 -0
- package/models/components/productpriceonetimecustom.js.map +1 -0
- package/models/components/productpriceonetimecustomcreate.d.ts +95 -0
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimecustomcreate.js +114 -0
- package/models/components/productpriceonetimecustomcreate.js.map +1 -0
- package/models/components/productpriceonetimefixed.d.ts +114 -0
- package/models/components/productpriceonetimefixed.d.ts.map +1 -0
- package/models/components/productpriceonetimefixed.js +122 -0
- package/models/components/productpriceonetimefixed.js.map +1 -0
- package/models/components/productpriceonetimefixedcreate.d.ts +85 -0
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimefixedcreate.js +106 -0
- package/models/components/productpriceonetimefixedcreate.js.map +1 -0
- package/models/components/productpriceonetimefree.d.ts +104 -0
- package/models/components/productpriceonetimefree.d.ts.map +1 -0
- package/models/components/productpriceonetimefree.js +114 -0
- package/models/components/productpriceonetimefree.js.map +1 -0
- package/models/components/productpriceonetimefreecreate.d.ts +75 -0
- package/models/components/productpriceonetimefreecreate.d.ts.map +1 -0
- package/models/components/productpriceonetimefreecreate.js +98 -0
- package/models/components/productpriceonetimefreecreate.js.map +1 -0
- package/models/components/productpriceoutput.d.ts +3 -11
- package/models/components/productpriceoutput.d.ts.map +1 -1
- package/models/components/productpriceoutput.js +5 -13
- package/models/components/productpriceoutput.js.map +1 -1
- package/models/components/productpricerecurringcustom.d.ts +130 -0
- package/models/components/productpricerecurringcustom.d.ts.map +1 -0
- package/models/components/productpricerecurringcustom.js +135 -0
- package/models/components/productpricerecurringcustom.js.map +1 -0
- package/models/components/productpricerecurringfixed.d.ts +120 -0
- package/models/components/productpricerecurringfixed.d.ts.map +1 -0
- package/models/components/productpricerecurringfixed.js +128 -0
- package/models/components/productpricerecurringfixed.js.map +1 -0
- package/models/components/productpricerecurringfixedcreate.d.ts +91 -0
- package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfixedcreate.js +111 -0
- package/models/components/productpricerecurringfixedcreate.js.map +1 -0
- package/models/components/productpricerecurringfree.d.ts +110 -0
- package/models/components/productpricerecurringfree.d.ts.map +1 -0
- package/models/components/productpricerecurringfree.js +119 -0
- package/models/components/productpricerecurringfree.js.map +1 -0
- package/models/components/productpricerecurringfreecreate.d.ts +81 -0
- package/models/components/productpricerecurringfreecreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfreecreate.js +103 -0
- package/models/components/productpricerecurringfreecreate.js.map +1 -0
- package/models/components/productpricerecurringinput.d.ts +36 -0
- package/models/components/productpricerecurringinput.d.ts.map +1 -0
- package/models/components/productpricerecurringinput.js +69 -0
- package/models/components/productpricerecurringinput.js.map +1 -0
- package/models/components/productpricerecurringoutput.d.ts +36 -0
- package/models/components/productpricerecurringoutput.d.ts.map +1 -0
- package/models/components/productpricerecurringoutput.js +69 -0
- package/models/components/productpricerecurringoutput.js.map +1 -0
- package/models/components/productrecurringcreate.d.ts +17 -36
- package/models/components/productrecurringcreate.d.ts.map +1 -1
- package/models/components/productrecurringcreate.js +26 -26
- package/models/components/productrecurringcreate.js.map +1 -1
- package/models/components/productupdate.d.ts +18 -20
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js +35 -25
- package/models/components/productupdate.js.map +1 -1
- package/models/components/subscriptioninput.d.ts +11 -4
- package/models/components/subscriptioninput.d.ts.map +1 -1
- package/models/components/subscriptioninput.js +13 -4
- package/models/components/subscriptioninput.js.map +1 -1
- package/models/components/subscriptionoutput.d.ts +11 -4
- package/models/components/subscriptionoutput.d.ts.map +1 -1
- package/models/components/subscriptionoutput.js +13 -4
- package/models/components/subscriptionoutput.js.map +1 -1
- package/models/components/subscriptionrecurringinterval.d.ts +28 -0
- package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
- package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
- package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
- package/models/components/subscriptionsortproperty.d.ts +6 -12
- package/models/components/subscriptionsortproperty.d.ts.map +1 -1
- package/models/components/subscriptionsortproperty.js +2 -4
- package/models/components/subscriptionsortproperty.js.map +1 -1
- package/models/components/userorderproduct.d.ts +0 -11
- package/models/components/userorderproduct.d.ts.map +1 -1
- package/models/components/userorderproduct.js +0 -7
- package/models/components/userorderproduct.js.map +1 -1
- package/models/components/userordersubscription.d.ts +9 -2
- package/models/components/userordersubscription.d.ts.map +1 -1
- package/models/components/userordersubscription.js +11 -2
- package/models/components/userordersubscription.js.map +1 -1
- package/models/components/usersubscription.d.ts +14 -4
- package/models/components/usersubscription.d.ts.map +1 -1
- package/models/components/usersubscription.js +13 -4
- package/models/components/usersubscription.js.map +1 -1
- package/models/components/usersubscriptionproduct.d.ts +0 -11
- package/models/components/usersubscriptionproduct.d.ts.map +1 -1
- package/models/components/usersubscriptionproduct.js +0 -7
- package/models/components/usersubscriptionproduct.js.map +1 -1
- package/models/components/usersubscriptionsortproperty.d.ts +6 -6
- package/models/components/usersubscriptionsortproperty.js +2 -2
- package/models/components/usersubscriptionsortproperty.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/operations/productscreate.d.ts +2 -2
- package/models/operations/productscreate.d.ts.map +1 -1
- package/models/operations/productscreate.js +2 -2
- package/models/operations/productscreate.js.map +1 -1
- package/models/operations/productslist.d.ts +0 -27
- package/models/operations/productslist.d.ts.map +1 -1
- package/models/operations/productslist.js +1 -32
- package/models/operations/productslist.js.map +1 -1
- package/models/operations/subscriptionslist.d.ts +0 -29
- package/models/operations/subscriptionslist.d.ts.map +1 -1
- package/models/operations/subscriptionslist.js +1 -32
- package/models/operations/subscriptionslist.js.map +1 -1
- package/package.json +1 -1
- package/sdk/oauth2.js +1 -1
- package/sdk/polarsubscriptions.d.ts +0 -9
- package/sdk/polarsubscriptions.d.ts.map +1 -1
- package/sdk/polarsubscriptions.js +0 -12
- package/sdk/polarsubscriptions.js.map +1 -1
- package/sdk/sdk.js +15 -15
- package/sdk/subscriptions.d.ts +0 -15
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +0 -20
- package/sdk/subscriptions.js.map +1 -1
- package/sdk/users.js +6 -6
- package/src/funcs/advertisementsGet.ts +40 -41
- package/src/funcs/advertisementsList.ts +48 -49
- package/src/funcs/articlesCreate.ts +37 -37
- package/src/funcs/articlesDelete.ts +41 -41
- package/src/funcs/articlesGet.ts +40 -40
- package/src/funcs/articlesList.ts +52 -52
- package/src/funcs/articlesPreview.ts +41 -44
- package/src/funcs/articlesReceivers.ts +39 -40
- package/src/funcs/articlesSend.ts +41 -41
- package/src/funcs/articlesUpdate.ts +41 -44
- package/src/funcs/benefitsCreate.ts +38 -38
- package/src/funcs/benefitsDelete.ts +41 -41
- package/src/funcs/benefitsGet.ts +40 -40
- package/src/funcs/benefitsGrants.ts +52 -55
- package/src/funcs/benefitsList.ts +48 -48
- package/src/funcs/benefitsUpdate.ts +41 -44
- package/src/funcs/checkoutsCreate.ts +37 -37
- package/src/funcs/checkoutsGet.ts +39 -39
- package/src/funcs/externalOrganizationsList.ts +51 -51
- package/src/funcs/filesCreate.ts +37 -37
- package/src/funcs/filesDelete.ts +41 -41
- package/src/funcs/filesList.ts +48 -48
- package/src/funcs/filesUpdate.ts +39 -42
- package/src/funcs/filesUploaded.ts +39 -42
- package/src/funcs/licenseKeysGet.ts +41 -41
- package/src/funcs/licenseKeysGetActivation.ts +44 -44
- package/src/funcs/licenseKeysList.ts +49 -49
- package/src/funcs/licenseKeysUpdate.ts +41 -47
- package/src/funcs/metricsGet.ts +45 -45
- package/src/funcs/metricsLimits.ts +22 -22
- package/src/funcs/oauth2ClientsCreate.ts +37 -38
- package/src/funcs/oauth2ClientsDelete.ts +40 -40
- package/src/funcs/oauth2ClientsGet.ts +40 -40
- package/src/funcs/oauth2ClientsList.ts +46 -47
- package/src/funcs/oauth2ClientsUpdate.ts +40 -43
- package/src/funcs/oauth2Introspect.ts +35 -35
- package/src/funcs/oauth2Revoke.ts +35 -35
- package/src/funcs/oauth2Token.ts +35 -35
- package/src/funcs/oauth2Userinfo.ts +22 -22
- package/src/funcs/ordersGet.ts +40 -40
- package/src/funcs/ordersInvoice.ts +40 -40
- package/src/funcs/ordersList.ts +51 -53
- package/src/funcs/organizationsCreate.ts +37 -37
- package/src/funcs/organizationsGet.ts +40 -40
- package/src/funcs/organizationsList.ts +49 -50
- package/src/funcs/organizationsUpdate.ts +42 -45
- package/src/funcs/productsCreate.ts +38 -38
- package/src/funcs/productsGet.ts +40 -40
- package/src/funcs/productsList.ts +50 -51
- package/src/funcs/productsUpdate.ts +41 -44
- package/src/funcs/productsUpdateBenefits.ts +42 -45
- package/src/funcs/repositoriesGet.ts +40 -40
- package/src/funcs/repositoriesList.ts +52 -52
- package/src/funcs/repositoriesUpdate.ts +41 -47
- package/src/funcs/subscriptionsExport.ts +41 -41
- package/src/funcs/subscriptionsList.ts +50 -52
- package/src/funcs/usersAdvertisementsCreate.ts +38 -38
- package/src/funcs/usersAdvertisementsDelete.ts +42 -42
- package/src/funcs/usersAdvertisementsEnable.ts +41 -44
- package/src/funcs/usersAdvertisementsGet.ts +41 -41
- package/src/funcs/usersAdvertisementsList.ts +48 -48
- package/src/funcs/usersAdvertisementsUpdate.ts +41 -44
- package/src/funcs/usersBenefitsGet.ts +40 -40
- package/src/funcs/usersBenefitsList.ts +51 -52
- package/src/funcs/usersDownloadablesGet.ts +41 -41
- package/src/funcs/usersDownloadablesList.ts +49 -49
- package/src/funcs/usersLicenseKeysActivate.ts +39 -39
- package/src/funcs/usersLicenseKeysDeactivate.ts +38 -38
- package/src/funcs/usersLicenseKeysGet.ts +42 -42
- package/src/funcs/usersLicenseKeysList.ts +51 -51
- package/src/funcs/usersLicenseKeysValidate.ts +38 -38
- package/src/funcs/usersOrdersGet.ts +40 -40
- package/src/funcs/usersOrdersInvoice.ts +40 -41
- package/src/funcs/usersOrdersList.ts +52 -52
- package/src/funcs/usersSubscriptionsCancel.ts +42 -42
- package/src/funcs/usersSubscriptionsGet.ts +41 -41
- package/src/funcs/usersSubscriptionsList.ts +52 -52
- package/src/funcs/usersSubscriptionsUpdate.ts +42 -48
- package/src/lib/config.ts +18 -12
- package/src/lib/sdks.ts +26 -26
- package/src/models/components/index.ts +14 -9
- package/src/models/components/orderproduct.ts +0 -21
- package/src/models/components/ordersubscription.ts +23 -4
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/productinput.ts +0 -21
- package/src/models/components/productonetimecreate.ts +84 -9
- package/src/models/components/productoutput.ts +0 -21
- package/src/models/components/productpriceinput.ts +13 -29
- package/src/models/components/productpriceonetime.ts +36 -114
- package/src/models/components/productpriceonetimecustom.ts +201 -0
- package/src/models/components/productpriceonetimecustomcreate.ts +158 -0
- package/src/models/components/productpriceonetimefixed.ts +182 -0
- package/src/models/components/productpriceonetimefixedcreate.ts +139 -0
- package/src/models/components/productpriceonetimefree.ts +164 -0
- package/src/models/components/productpriceonetimefreecreate.ts +121 -0
- package/src/models/components/productpriceoutput.ts +13 -29
- package/src/models/components/productpricerecurringcustom.ts +216 -0
- package/src/models/components/productpricerecurringfixed.ts +191 -0
- package/src/models/components/productpricerecurringfixedcreate.ts +155 -0
- package/src/models/components/productpricerecurringfree.ts +179 -0
- package/src/models/components/productpricerecurringfreecreate.ts +136 -0
- package/src/models/components/productpricerecurringinput.ts +93 -0
- package/src/models/components/productpricerecurringoutput.ts +93 -0
- package/src/models/components/productrecurringcreate.ts +57 -48
- package/src/models/components/productupdate.ts +87 -51
- package/src/models/components/subscriptioninput.ts +27 -8
- package/src/models/components/subscriptionoutput.ts +27 -8
- package/src/models/components/subscriptionrecurringinterval.ts +35 -0
- package/src/models/components/subscriptionsortproperty.ts +2 -4
- package/src/models/components/userorderproduct.ts +0 -21
- package/src/models/components/userordersubscription.ts +23 -4
- package/src/models/components/usersubscription.ts +30 -8
- package/src/models/components/usersubscriptionproduct.ts +0 -21
- package/src/models/components/usersubscriptionsortproperty.ts +2 -2
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/productscreate.ts +6 -6
- package/src/models/operations/productslist.ts +0 -70
- package/src/models/operations/subscriptionslist.ts +0 -68
- package/src/sdk/oauth2.ts +1 -1
- package/src/sdk/polarsubscriptions.ts +0 -20
- package/src/sdk/sdk.ts +15 -15
- package/src/sdk/subscriptions.ts +0 -37
- package/src/sdk/users.ts +6 -6
- package/funcs/subscriptionsCreate.d.ts +0 -16
- package/funcs/subscriptionsCreate.d.ts.map +0 -1
- package/funcs/subscriptionsCreate.js +0 -96
- package/funcs/subscriptionsCreate.js.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.d.ts +0 -16
- package/funcs/subscriptionsImportSubscriptions.d.ts.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.js +0 -109
- package/funcs/subscriptionsImportSubscriptions.js.map +0 -1
- package/funcs/usersSubscriptionsCreate.d.ts +0 -18
- package/funcs/usersSubscriptionsCreate.d.ts.map +0 -1
- package/funcs/usersSubscriptionsCreate.js +0 -98
- package/funcs/usersSubscriptionsCreate.js.map +0 -1
- package/models/components/bodysubscriptionsimport.d.ts +0 -58
- package/models/components/bodysubscriptionsimport.d.ts.map +0 -1
- package/models/components/bodysubscriptionsimport.js +0 -92
- package/models/components/bodysubscriptionsimport.js.map +0 -1
- package/models/components/productpriceonetimecreate.d.ts +0 -61
- package/models/components/productpriceonetimecreate.d.ts.map +0 -1
- package/models/components/productpriceonetimecreate.js +0 -83
- package/models/components/productpriceonetimecreate.js.map +0 -1
- package/models/components/productpricerecurring.d.ts +0 -96
- package/models/components/productpricerecurring.d.ts.map +0 -1
- package/models/components/productpricerecurring.js +0 -105
- package/models/components/productpricerecurring.js.map +0 -1
- package/models/components/productpricerecurringcreate.d.ts +0 -67
- package/models/components/productpricerecurringcreate.d.ts.map +0 -1
- package/models/components/productpricerecurringcreate.js +0 -88
- package/models/components/productpricerecurringcreate.js.map +0 -1
- package/models/components/productpricerecurringinterval.d.ts +0 -28
- package/models/components/subscriptioncreateemail.d.ts +0 -36
- package/models/components/subscriptioncreateemail.d.ts.map +0 -1
- package/models/components/subscriptioncreateemail.js +0 -61
- package/models/components/subscriptioncreateemail.js.map +0 -1
- package/models/components/subscriptionsimported.d.ts +0 -28
- package/models/components/subscriptionsimported.d.ts.map +0 -1
- package/models/components/subscriptionsimported.js +0 -50
- package/models/components/subscriptionsimported.js.map +0 -1
- package/models/components/subscriptiontiertype.d.ts +0 -31
- package/models/components/subscriptiontiertype.d.ts.map +0 -1
- package/models/components/subscriptiontiertype.js +0 -51
- package/models/components/subscriptiontiertype.js.map +0 -1
- package/models/components/userfreesubscriptioncreate.d.ts +0 -33
- package/models/components/userfreesubscriptioncreate.d.ts.map +0 -1
- package/models/components/userfreesubscriptioncreate.js +0 -63
- package/models/components/userfreesubscriptioncreate.js.map +0 -1
- package/models/errors/alreadysubscribed.d.ts +0 -57
- package/models/errors/alreadysubscribed.d.ts.map +0 -1
- package/models/errors/alreadysubscribed.js +0 -88
- package/models/errors/alreadysubscribed.js.map +0 -1
- package/models/errors/freesubscriptionupgrade.d.ts +0 -57
- package/models/errors/freesubscriptionupgrade.d.ts.map +0 -1
- package/models/errors/freesubscriptionupgrade.js +0 -88
- package/models/errors/freesubscriptionupgrade.js.map +0 -1
- package/src/funcs/subscriptionsCreate.ts +0 -126
- package/src/funcs/subscriptionsImportSubscriptions.ts +0 -142
- package/src/funcs/usersSubscriptionsCreate.ts +0 -135
- package/src/models/components/bodysubscriptionsimport.ts +0 -114
- package/src/models/components/productpriceonetimecreate.ts +0 -102
- package/src/models/components/productpricerecurring.ts +0 -161
- package/src/models/components/productpricerecurringcreate.ts +0 -116
- package/src/models/components/productpricerecurringinterval.ts +0 -35
- package/src/models/components/subscriptioncreateemail.ts +0 -67
- package/src/models/components/subscriptionsimported.ts +0 -48
- package/src/models/components/subscriptiontiertype.ts +0 -34
- package/src/models/components/userfreesubscriptioncreate.ts +0 -66
- package/src/models/errors/alreadysubscribed.ts +0 -102
- package/src/models/errors/freesubscriptionupgrade.ts +0 -106
package/README.md
CHANGED
|
@@ -29,7 +29,6 @@ Read the docs at https://docs.polar.sh/api
|
|
|
29
29
|
* [Available Resources and Operations](#available-resources-and-operations)
|
|
30
30
|
* [Standalone functions](#standalone-functions)
|
|
31
31
|
* [Pagination](#pagination)
|
|
32
|
-
* [File uploads](#file-uploads)
|
|
33
32
|
* [Retries](#retries)
|
|
34
33
|
* [Error Handling](#error-handling)
|
|
35
34
|
* [Server Selection](#server-selection)
|
|
@@ -209,8 +208,6 @@ run();
|
|
|
209
208
|
### [subscriptions](docs/sdks/subscriptions/README.md)
|
|
210
209
|
|
|
211
210
|
* [list](docs/sdks/subscriptions/README.md#list) - List Subscriptions
|
|
212
|
-
* [create](docs/sdks/subscriptions/README.md#create) - Create Free Subscription
|
|
213
|
-
* [importSubscriptions](docs/sdks/subscriptions/README.md#importsubscriptions) - Import Subscriptions
|
|
214
211
|
* [export](docs/sdks/subscriptions/README.md#export) - Export Subscriptions
|
|
215
212
|
|
|
216
213
|
### [users](docs/sdks/users/README.md)
|
|
@@ -252,7 +249,6 @@ run();
|
|
|
252
249
|
#### [users.subscriptions](docs/sdks/polarsubscriptions/README.md)
|
|
253
250
|
|
|
254
251
|
* [list](docs/sdks/polarsubscriptions/README.md#list) - List Subscriptions
|
|
255
|
-
* [create](docs/sdks/polarsubscriptions/README.md#create) - Create Free Subscription
|
|
256
252
|
* [get](docs/sdks/polarsubscriptions/README.md#get) - Get Subscription
|
|
257
253
|
* [update](docs/sdks/polarsubscriptions/README.md#update) - Update Subscription
|
|
258
254
|
* [cancel](docs/sdks/polarsubscriptions/README.md#cancel) - Cancel Subscription
|
|
@@ -329,9 +325,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
329
325
|
- [repositoriesGet](docs/sdks/repositories/README.md#get)
|
|
330
326
|
- [repositoriesList](docs/sdks/repositories/README.md#list)
|
|
331
327
|
- [repositoriesUpdate](docs/sdks/repositories/README.md#update)
|
|
332
|
-
- [subscriptionsCreate](docs/sdks/subscriptions/README.md#create)
|
|
333
328
|
- [subscriptionsExport](docs/sdks/subscriptions/README.md#export)
|
|
334
|
-
- [subscriptionsImportSubscriptions](docs/sdks/subscriptions/README.md#importsubscriptions)
|
|
335
329
|
- [subscriptionsList](docs/sdks/subscriptions/README.md#list)
|
|
336
330
|
- [usersAdvertisementsCreate](docs/sdks/polaradvertisements/README.md#create)
|
|
337
331
|
- [usersAdvertisementsDelete](docs/sdks/polaradvertisements/README.md#delete)
|
|
@@ -352,7 +346,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
352
346
|
- [usersOrdersInvoice](docs/sdks/polarorders/README.md#invoice)
|
|
353
347
|
- [usersOrdersList](docs/sdks/polarorders/README.md#list)
|
|
354
348
|
- [usersSubscriptionsCancel](docs/sdks/polarsubscriptions/README.md#cancel)
|
|
355
|
-
- [usersSubscriptionsCreate](docs/sdks/polarsubscriptions/README.md#create)
|
|
356
349
|
- [usersSubscriptionsGet](docs/sdks/polarsubscriptions/README.md#get)
|
|
357
350
|
- [usersSubscriptionsList](docs/sdks/polarsubscriptions/README.md#list)
|
|
358
351
|
- [usersSubscriptionsUpdate](docs/sdks/polarsubscriptions/README.md#update)
|
|
@@ -394,43 +387,6 @@ run();
|
|
|
394
387
|
```
|
|
395
388
|
<!-- End Pagination [pagination] -->
|
|
396
389
|
|
|
397
|
-
<!-- Start File uploads [file-upload] -->
|
|
398
|
-
## File uploads
|
|
399
|
-
|
|
400
|
-
Certain SDK methods accept files as part of a multi-part request. It is possible and typically recommended to upload files as a stream rather than reading the entire contents into memory. This avoids excessive memory consumption and potentially crashing with out-of-memory errors when working with very large files. The following example demonstrates how to attach a file stream to a request.
|
|
401
|
-
|
|
402
|
-
> [!TIP]
|
|
403
|
-
>
|
|
404
|
-
> Depending on your JavaScript runtime, there are convenient utilities that return a handle to a file without reading the entire contents into memory:
|
|
405
|
-
>
|
|
406
|
-
> - **Node.js v20+:** Since v20, Node.js comes with a native `openAsBlob` function in [`node:fs`](https://nodejs.org/docs/latest-v20.x/api/fs.html#fsopenasblobpath-options).
|
|
407
|
-
> - **Bun:** The native [`Bun.file`](https://bun.sh/docs/api/file-io#reading-files-bun-file) function produces a file handle that can be used for streaming file uploads.
|
|
408
|
-
> - **Browsers:** All supported browsers return an instance to a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) when reading the value from an `<input type="file">` element.
|
|
409
|
-
> - **Node.js v18:** A file stream can be created using the `fileFrom` helper from [`fetch-blob/from.js`](https://www.npmjs.com/package/fetch-blob).
|
|
410
|
-
|
|
411
|
-
```typescript
|
|
412
|
-
import { Polar } from "@polar-sh/sdk";
|
|
413
|
-
import { openAsBlob } from "node:fs";
|
|
414
|
-
|
|
415
|
-
const polar = new Polar({
|
|
416
|
-
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
417
|
-
});
|
|
418
|
-
|
|
419
|
-
async function run() {
|
|
420
|
-
const result = await polar.subscriptions.importSubscriptions({
|
|
421
|
-
file: await openAsBlob("example.file"),
|
|
422
|
-
organizationId: "<value>",
|
|
423
|
-
});
|
|
424
|
-
|
|
425
|
-
// Handle the result
|
|
426
|
-
console.log(result);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
run();
|
|
430
|
-
|
|
431
|
-
```
|
|
432
|
-
<!-- End File uploads [file-upload] -->
|
|
433
|
-
|
|
434
390
|
<!-- Start Retries [retries] -->
|
|
435
391
|
## Retries
|
|
436
392
|
|
|
@@ -562,19 +518,20 @@ run();
|
|
|
562
518
|
<!-- Start Server Selection [server] -->
|
|
563
519
|
## Server Selection
|
|
564
520
|
|
|
565
|
-
### Select Server by
|
|
521
|
+
### Select Server by Name
|
|
566
522
|
|
|
567
|
-
You can override the default server globally by passing a server
|
|
523
|
+
You can override the default server globally by passing a server name to the `server` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
|
|
568
524
|
|
|
569
|
-
|
|
|
570
|
-
|
|
|
571
|
-
|
|
|
525
|
+
| Name | Server | Variables |
|
|
526
|
+
| ----- | ------ | --------- |
|
|
527
|
+
| `production` | `https://api.polar.sh` | None |
|
|
528
|
+
| `sandbox` | `https://sandbox-api.polar.sh` | None |
|
|
572
529
|
|
|
573
530
|
```typescript
|
|
574
531
|
import { Polar } from "@polar-sh/sdk";
|
|
575
532
|
|
|
576
533
|
const polar = new Polar({
|
|
577
|
-
|
|
534
|
+
server: "sandbox",
|
|
578
535
|
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
579
536
|
});
|
|
580
537
|
|
|
@@ -105,7 +105,7 @@ const polar = new Polar({
|
|
|
105
105
|
|
|
106
106
|
async function run() {
|
|
107
107
|
const result = await polar.benefits.create({
|
|
108
|
-
description: "
|
|
108
|
+
description: "Proactive full-range artificial intelligence",
|
|
109
109
|
properties: {
|
|
110
110
|
guildToken: "<value>",
|
|
111
111
|
roleId: "<value>",
|
|
@@ -135,11 +135,8 @@ const polar = new PolarCore({
|
|
|
135
135
|
|
|
136
136
|
async function run() {
|
|
137
137
|
const res = await benefitsCreate(polar, {
|
|
138
|
-
description: "
|
|
139
|
-
|
|
140
|
-
properties: {
|
|
141
|
-
note: "<value>",
|
|
142
|
-
},
|
|
138
|
+
description: "Cloned responsive protocol",
|
|
139
|
+
properties: {},
|
|
143
140
|
});
|
|
144
141
|
|
|
145
142
|
if (!res.ok) {
|
|
@@ -298,13 +295,7 @@ const polar = new PolarCore({
|
|
|
298
295
|
async function run() {
|
|
299
296
|
const res = await benefitsUpdate(polar, {
|
|
300
297
|
id: "<value>",
|
|
301
|
-
requestBody: {
|
|
302
|
-
properties: {
|
|
303
|
-
repositoryOwner: "polarsource",
|
|
304
|
-
repositoryName: "private_repo",
|
|
305
|
-
permission: "pull",
|
|
306
|
-
},
|
|
307
|
-
},
|
|
298
|
+
requestBody: {},
|
|
308
299
|
});
|
|
309
300
|
|
|
310
301
|
if (!res.ok) {
|
|
@@ -105,7 +105,7 @@ const polar = new Polar({
|
|
|
105
105
|
async function run() {
|
|
106
106
|
const result = await polar.oauth2.clients.create({
|
|
107
107
|
redirectUris: [
|
|
108
|
-
"
|
|
108
|
+
"https://probable-heating.com/",
|
|
109
109
|
],
|
|
110
110
|
clientName: "<value>",
|
|
111
111
|
});
|
|
@@ -134,7 +134,7 @@ const polar = new PolarCore({
|
|
|
134
134
|
async function run() {
|
|
135
135
|
const res = await oauth2ClientsCreate(polar, {
|
|
136
136
|
redirectUris: [
|
|
137
|
-
"
|
|
137
|
+
"https://brisk-seafood.net/",
|
|
138
138
|
],
|
|
139
139
|
clientName: "<value>",
|
|
140
140
|
});
|
|
@@ -269,7 +269,7 @@ async function run() {
|
|
|
269
269
|
clientId: "<value>",
|
|
270
270
|
oAuth2ClientConfigurationUpdate: {
|
|
271
271
|
redirectUris: [
|
|
272
|
-
"https://
|
|
272
|
+
"https://passionate-flu.org",
|
|
273
273
|
],
|
|
274
274
|
clientName: "<value>",
|
|
275
275
|
clientId: "<value>",
|
|
@@ -302,7 +302,7 @@ async function run() {
|
|
|
302
302
|
clientId: "<value>",
|
|
303
303
|
oAuth2ClientConfigurationUpdate: {
|
|
304
304
|
redirectUris: [
|
|
305
|
-
"https://
|
|
305
|
+
"https://juvenile-exploration.biz",
|
|
306
306
|
],
|
|
307
307
|
clientName: "<value>",
|
|
308
308
|
clientId: "<value>",
|
|
@@ -106,13 +106,13 @@ async function run() {
|
|
|
106
106
|
const result = await polar.files.create({
|
|
107
107
|
name: "<value>",
|
|
108
108
|
mimeType: "<value>",
|
|
109
|
-
size:
|
|
109
|
+
size: 638424,
|
|
110
110
|
upload: {
|
|
111
111
|
parts: [
|
|
112
112
|
{
|
|
113
|
-
number:
|
|
114
|
-
chunkStart:
|
|
115
|
-
chunkEnd:
|
|
113
|
+
number: 417458,
|
|
114
|
+
chunkStart: 134365,
|
|
115
|
+
chunkEnd: 69025,
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
118
|
},
|
|
@@ -143,13 +143,13 @@ async function run() {
|
|
|
143
143
|
const res = await filesCreate(polar, {
|
|
144
144
|
name: "<value>",
|
|
145
145
|
mimeType: "<value>",
|
|
146
|
-
size:
|
|
146
|
+
size: 816588,
|
|
147
147
|
upload: {
|
|
148
148
|
parts: [
|
|
149
149
|
{
|
|
150
|
-
number:
|
|
151
|
-
chunkStart:
|
|
152
|
-
chunkEnd:
|
|
150
|
+
number: 586220,
|
|
151
|
+
chunkStart: 752438,
|
|
152
|
+
chunkEnd: 957409,
|
|
153
153
|
},
|
|
154
154
|
],
|
|
155
155
|
},
|
|
@@ -247,7 +247,7 @@ async function run() {
|
|
|
247
247
|
path: "/sys",
|
|
248
248
|
parts: [
|
|
249
249
|
{
|
|
250
|
-
number:
|
|
250
|
+
number: 173116,
|
|
251
251
|
checksumEtag: "<value>",
|
|
252
252
|
checksumSha256Base64: "<value>",
|
|
253
253
|
},
|
|
@@ -28,7 +28,7 @@ async function run() {
|
|
|
28
28
|
clientId: "<value>",
|
|
29
29
|
clientSecret: "<value>",
|
|
30
30
|
code: "<value>",
|
|
31
|
-
redirectUri: "
|
|
31
|
+
redirectUri: "https://old-fort.name",
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
// Handle the result
|
|
@@ -57,7 +57,7 @@ async function run() {
|
|
|
57
57
|
clientId: "<value>",
|
|
58
58
|
clientSecret: "<value>",
|
|
59
59
|
code: "<value>",
|
|
60
|
-
redirectUri: "https://
|
|
60
|
+
redirectUri: "https://ajar-comparison.name",
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
if (!res.ok) {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
8
|
* [list](#list) - List Subscriptions
|
|
9
|
-
* [create](#create) - Create Free Subscription
|
|
10
9
|
* [get](#get) - Get Subscription
|
|
11
10
|
* [update](#update) - Update Subscription
|
|
12
11
|
* [cancel](#cancel) - Cancel Subscription
|
|
@@ -89,88 +88,6 @@ run();
|
|
|
89
88
|
| errors.SDKError | 4xx-5xx | */* |
|
|
90
89
|
|
|
91
90
|
|
|
92
|
-
## create
|
|
93
|
-
|
|
94
|
-
Create a subscription on a **free** tier.
|
|
95
|
-
|
|
96
|
-
If you want to subscribe to a paid tier, you need to create a checkout session.
|
|
97
|
-
|
|
98
|
-
### Example Usage
|
|
99
|
-
|
|
100
|
-
```typescript
|
|
101
|
-
import { Polar } from "@polar-sh/sdk";
|
|
102
|
-
|
|
103
|
-
const polar = new Polar({
|
|
104
|
-
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
async function run() {
|
|
108
|
-
const result = await polar.users.subscriptions.create({
|
|
109
|
-
productId: "<value>",
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
// Handle the result
|
|
113
|
-
console.log(result)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
run();
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### Standalone function
|
|
120
|
-
|
|
121
|
-
The standalone function version of this method:
|
|
122
|
-
|
|
123
|
-
```typescript
|
|
124
|
-
import { PolarCore } from "@polar-sh/sdk/core.js";
|
|
125
|
-
import { usersSubscriptionsCreate } from "@polar-sh/sdk/funcs/usersSubscriptionsCreate.js";
|
|
126
|
-
|
|
127
|
-
// Use `PolarCore` for best tree-shaking performance.
|
|
128
|
-
// You can create one instance of it to use across an application.
|
|
129
|
-
const polar = new PolarCore({
|
|
130
|
-
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
async function run() {
|
|
134
|
-
const res = await usersSubscriptionsCreate(polar, {
|
|
135
|
-
productId: "<value>",
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
if (!res.ok) {
|
|
139
|
-
throw res.error;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
const { value: result } = res;
|
|
143
|
-
|
|
144
|
-
// Handle the result
|
|
145
|
-
console.log(result)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
run();
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Parameters
|
|
152
|
-
|
|
153
|
-
| Parameter | Type | Required | Description |
|
|
154
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
155
|
-
| `request` | [components.UserFreeSubscriptionCreate](../../models/components/userfreesubscriptioncreate.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
156
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
157
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
158
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
159
|
-
|
|
160
|
-
### Response
|
|
161
|
-
|
|
162
|
-
**Promise\<[components.UserSubscription](../../models/components/usersubscription.md)\>**
|
|
163
|
-
|
|
164
|
-
### Errors
|
|
165
|
-
|
|
166
|
-
| Error Object | Status Code | Content Type |
|
|
167
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
168
|
-
| errors.AlreadySubscribed | 400 | application/json |
|
|
169
|
-
| errors.ResourceNotFound | 404 | application/json |
|
|
170
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
171
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
172
|
-
|
|
173
|
-
|
|
174
91
|
## get
|
|
175
92
|
|
|
176
93
|
Get a subscription by ID.
|
|
@@ -328,12 +245,11 @@ run();
|
|
|
328
245
|
|
|
329
246
|
### Errors
|
|
330
247
|
|
|
331
|
-
| Error Object
|
|
332
|
-
|
|
|
333
|
-
| errors.
|
|
334
|
-
| errors.
|
|
335
|
-
| errors.
|
|
336
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
248
|
+
| Error Object | Status Code | Content Type |
|
|
249
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
250
|
+
| errors.ResourceNotFound | 404 | application/json |
|
|
251
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
252
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
337
253
|
|
|
338
254
|
|
|
339
255
|
## cancel
|
|
@@ -116,10 +116,8 @@ async function run() {
|
|
|
116
116
|
prices: [
|
|
117
117
|
{
|
|
118
118
|
recurringInterval: "month",
|
|
119
|
-
priceAmount: 489382,
|
|
120
119
|
},
|
|
121
120
|
],
|
|
122
|
-
type: "individual",
|
|
123
121
|
});
|
|
124
122
|
|
|
125
123
|
// Handle the result
|
|
@@ -148,11 +146,10 @@ async function run() {
|
|
|
148
146
|
name: "<value>",
|
|
149
147
|
prices: [
|
|
150
148
|
{
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
priceAmount: 89964,
|
|
150
|
+
recurringInterval: "year",
|
|
153
151
|
},
|
|
154
152
|
],
|
|
155
|
-
type: "individual",
|
|
156
153
|
});
|
|
157
154
|
|
|
158
155
|
if (!res.ok) {
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
8
|
* [list](#list) - List Subscriptions
|
|
9
|
-
* [create](#create) - Create Free Subscription
|
|
10
|
-
* [importSubscriptions](#importsubscriptions) - Import Subscriptions
|
|
11
9
|
* [export](#export) - Export Subscriptions
|
|
12
10
|
|
|
13
11
|
## list
|
|
@@ -88,168 +86,6 @@ run();
|
|
|
88
86
|
| errors.SDKError | 4xx-5xx | */* |
|
|
89
87
|
|
|
90
88
|
|
|
91
|
-
## create
|
|
92
|
-
|
|
93
|
-
Create a subscription on the free tier for a given email.
|
|
94
|
-
|
|
95
|
-
### Example Usage
|
|
96
|
-
|
|
97
|
-
```typescript
|
|
98
|
-
import { Polar } from "@polar-sh/sdk";
|
|
99
|
-
|
|
100
|
-
const polar = new Polar({
|
|
101
|
-
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
async function run() {
|
|
105
|
-
const result = await polar.subscriptions.create({
|
|
106
|
-
email: "Jena.Nienow28@yahoo.com",
|
|
107
|
-
productId: "<value>",
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
// Handle the result
|
|
111
|
-
console.log(result)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
run();
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### Standalone function
|
|
118
|
-
|
|
119
|
-
The standalone function version of this method:
|
|
120
|
-
|
|
121
|
-
```typescript
|
|
122
|
-
import { PolarCore } from "@polar-sh/sdk/core.js";
|
|
123
|
-
import { subscriptionsCreate } from "@polar-sh/sdk/funcs/subscriptionsCreate.js";
|
|
124
|
-
|
|
125
|
-
// Use `PolarCore` for best tree-shaking performance.
|
|
126
|
-
// You can create one instance of it to use across an application.
|
|
127
|
-
const polar = new PolarCore({
|
|
128
|
-
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
async function run() {
|
|
132
|
-
const res = await subscriptionsCreate(polar, {
|
|
133
|
-
email: "Jena.Nienow28@yahoo.com",
|
|
134
|
-
productId: "<value>",
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
if (!res.ok) {
|
|
138
|
-
throw res.error;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const { value: result } = res;
|
|
142
|
-
|
|
143
|
-
// Handle the result
|
|
144
|
-
console.log(result)
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
run();
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
| Parameter | Type | Required | Description |
|
|
153
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
154
|
-
| `request` | [components.SubscriptionCreateEmail](../../models/components/subscriptioncreateemail.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
155
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
156
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
157
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
158
|
-
|
|
159
|
-
### Response
|
|
160
|
-
|
|
161
|
-
**Promise\<[components.SubscriptionOutput](../../models/components/subscriptionoutput.md)\>**
|
|
162
|
-
|
|
163
|
-
### Errors
|
|
164
|
-
|
|
165
|
-
| Error Object | Status Code | Content Type |
|
|
166
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
167
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
168
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
## importSubscriptions
|
|
172
|
-
|
|
173
|
-
Import subscriptions from a CSV file.
|
|
174
|
-
|
|
175
|
-
### Example Usage
|
|
176
|
-
|
|
177
|
-
```typescript
|
|
178
|
-
import { Polar } from "@polar-sh/sdk";
|
|
179
|
-
import { openAsBlob } from "node:fs";
|
|
180
|
-
|
|
181
|
-
const polar = new Polar({
|
|
182
|
-
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
async function run() {
|
|
186
|
-
const result = await polar.subscriptions.importSubscriptions({
|
|
187
|
-
file: await openAsBlob("example.file"),
|
|
188
|
-
organizationId: "<value>",
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
// Handle the result
|
|
192
|
-
console.log(result)
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
run();
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### Standalone function
|
|
199
|
-
|
|
200
|
-
The standalone function version of this method:
|
|
201
|
-
|
|
202
|
-
```typescript
|
|
203
|
-
import { PolarCore } from "@polar-sh/sdk/core.js";
|
|
204
|
-
import { subscriptionsImportSubscriptions } from "@polar-sh/sdk/funcs/subscriptionsImportSubscriptions.js";
|
|
205
|
-
import { openAsBlob } from "node:fs";
|
|
206
|
-
|
|
207
|
-
// Use `PolarCore` for best tree-shaking performance.
|
|
208
|
-
// You can create one instance of it to use across an application.
|
|
209
|
-
const polar = new PolarCore({
|
|
210
|
-
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
async function run() {
|
|
214
|
-
const res = await subscriptionsImportSubscriptions(polar, {
|
|
215
|
-
file: await openAsBlob("example.file"),
|
|
216
|
-
organizationId: "<value>",
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
if (!res.ok) {
|
|
220
|
-
throw res.error;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
const { value: result } = res;
|
|
224
|
-
|
|
225
|
-
// Handle the result
|
|
226
|
-
console.log(result)
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
run();
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### Parameters
|
|
233
|
-
|
|
234
|
-
| Parameter | Type | Required | Description |
|
|
235
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
236
|
-
| `request` | [components.BodySubscriptionsImport](../../models/components/bodysubscriptionsimport.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
237
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
238
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
239
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
240
|
-
|
|
241
|
-
### Response
|
|
242
|
-
|
|
243
|
-
**Promise\<[components.SubscriptionsImported](../../models/components/subscriptionsimported.md)\>**
|
|
244
|
-
|
|
245
|
-
### Errors
|
|
246
|
-
|
|
247
|
-
| Error Object | Status Code | Content Type |
|
|
248
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
249
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
250
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
251
|
-
|
|
252
|
-
|
|
253
89
|
## export
|
|
254
90
|
|
|
255
91
|
Export subscriptions as a CSV file.
|
|
@@ -13,5 +13,5 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* @remarks
|
|
14
14
|
* Get an advertisement campaign by ID.
|
|
15
15
|
*/
|
|
16
|
-
export declare function advertisementsGet(client
|
|
16
|
+
export declare function advertisementsGet(client: PolarCore, request: operations.AdvertisementsGetRequest, options?: RequestOptions): Promise<Result<components.AdvertisementCampaign, errors.ResourceNotFound | errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
17
17
|
//# sourceMappingURL=advertisementsGet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advertisementsGet.d.ts","sourceRoot":"","sources":["../src/funcs/advertisementsGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,
|
|
1
|
+
{"version":3,"file":"advertisementsGet.d.ts","sourceRoot":"","sources":["../src/funcs/advertisementsGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,qBAAqB,EAC9B,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuFA"}
|