@usehercules/sdk 1.11.0 → 1.12.1
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/CHANGELOG.md +28 -0
- package/README.md +13 -12
- package/client.d.mts +12 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -3
- package/client.d.ts.map +1 -1
- package/client.js +12 -3
- package/client.js.map +1 -1
- package/client.mjs +12 -3
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/{beta/commerce → commerce}/commerce.d.mts +38 -21
- package/resources/commerce/commerce.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/commerce.d.ts +38 -21
- package/resources/commerce/commerce.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/commerce.js +36 -4
- package/resources/commerce/commerce.js.map +1 -0
- package/resources/{beta/commerce → commerce}/commerce.mjs +35 -3
- package/resources/commerce/commerce.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.d.mts +34 -10
- package/resources/commerce/coupons.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.d.ts +34 -10
- package/resources/commerce/coupons.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.js +32 -14
- package/resources/commerce/coupons.js.map +1 -0
- package/resources/{beta/commerce → commerce}/coupons.mjs +32 -14
- package/resources/commerce/coupons.mjs.map +1 -0
- package/resources/commerce/customers/balance-transactions.d.mts +4 -0
- package/resources/commerce/customers/balance-transactions.d.mts.map +1 -0
- package/resources/commerce/customers/balance-transactions.d.ts +4 -0
- package/resources/commerce/customers/balance-transactions.d.ts.map +1 -0
- package/resources/commerce/customers/balance-transactions.js +9 -0
- package/resources/commerce/customers/balance-transactions.js.map +1 -0
- package/resources/commerce/customers/balance-transactions.mjs +5 -0
- package/resources/commerce/customers/balance-transactions.mjs.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.d.mts +51 -12
- package/resources/commerce/customers/customers.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.d.ts +51 -12
- package/resources/commerce/customers/customers.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.js +43 -11
- package/resources/commerce/customers/customers.js.map +1 -0
- package/resources/{beta/commerce → commerce/customers}/customers.mjs +42 -11
- package/resources/commerce/customers/customers.mjs.map +1 -0
- package/resources/commerce/customers/index.d.mts +3 -0
- package/resources/commerce/customers/index.d.mts.map +1 -0
- package/resources/commerce/customers/index.d.ts +3 -0
- package/resources/commerce/customers/index.d.ts.map +1 -0
- package/resources/commerce/customers/index.js +9 -0
- package/resources/commerce/customers/index.js.map +1 -0
- package/resources/commerce/customers/index.mjs +4 -0
- package/resources/commerce/customers/index.mjs.map +1 -0
- package/resources/commerce/customers.d.mts +2 -0
- package/resources/commerce/customers.d.mts.map +1 -0
- package/resources/commerce/customers.d.ts +2 -0
- package/resources/commerce/customers.d.ts.map +1 -0
- package/resources/{beta.js → commerce/customers.js} +3 -3
- package/resources/commerce/customers.js.map +1 -0
- package/resources/{beta.mjs → commerce/customers.mjs} +2 -2
- package/resources/commerce/customers.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/features.d.mts +35 -20
- package/resources/commerce/features.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/features.d.ts +35 -20
- package/resources/commerce/features.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/features.js +32 -14
- package/resources/commerce/features.js.map +1 -0
- package/resources/{beta/commerce → commerce}/features.mjs +32 -14
- package/resources/commerce/features.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/index.d.mts +2 -1
- package/resources/commerce/index.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/index.d.ts +2 -1
- package/resources/commerce/index.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/index.js +7 -5
- package/resources/commerce/index.js.map +1 -0
- package/resources/{beta/commerce → commerce}/index.mjs +2 -1
- package/resources/commerce/index.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/products/index.d.mts +2 -2
- package/resources/commerce/products/index.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/index.d.ts +2 -2
- package/resources/commerce/products/index.d.ts.map +1 -0
- package/resources/commerce/products/index.js.map +1 -0
- package/resources/commerce/products/index.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.d.mts +45 -55
- package/resources/commerce/products/products.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.d.ts +45 -55
- package/resources/commerce/products/products.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.js +34 -11
- package/resources/commerce/products/products.js.map +1 -0
- package/resources/{beta/commerce → commerce}/products/products.mjs +33 -10
- package/resources/commerce/products/products.mjs.map +1 -0
- package/resources/commerce/products/resources.d.mts +174 -0
- package/resources/commerce/products/resources.d.mts.map +1 -0
- package/resources/commerce/products/resources.d.ts +174 -0
- package/resources/commerce/products/resources.d.ts.map +1 -0
- package/resources/commerce/products/resources.js +65 -0
- package/resources/commerce/products/resources.js.map +1 -0
- package/resources/commerce/products/resources.mjs +61 -0
- package/resources/commerce/products/resources.mjs.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.d.mts +43 -53
- package/resources/commerce/products/variants.d.mts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.d.ts +43 -53
- package/resources/commerce/products/variants.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.js +39 -11
- package/resources/commerce/products/variants.js.map +1 -0
- package/resources/{beta/commerce → commerce}/products/variants.mjs +39 -11
- package/resources/commerce/products/variants.mjs.map +1 -0
- package/resources/commerce/products.d.mts.map +1 -0
- package/resources/commerce/products.d.ts.map +1 -0
- package/resources/{beta/commerce → commerce}/products.js +1 -1
- package/resources/commerce/products.js.map +1 -0
- package/resources/commerce/products.mjs.map +1 -0
- package/resources/commerce/subscription-groups.d.mts +4 -0
- package/resources/commerce/subscription-groups.d.mts.map +1 -0
- package/resources/commerce/subscription-groups.d.ts +4 -0
- package/resources/commerce/subscription-groups.d.ts.map +1 -0
- package/resources/commerce/subscription-groups.js +9 -0
- package/resources/commerce/subscription-groups.js.map +1 -0
- package/resources/commerce/subscription-groups.mjs +5 -0
- package/resources/commerce/subscription-groups.mjs.map +1 -0
- package/resources/commerce.d.mts.map +1 -0
- package/resources/{beta/commerce.d.ts.map → commerce.d.ts.map} +1 -1
- package/resources/{beta/commerce.js → commerce.js} +1 -1
- package/resources/commerce.js.map +1 -0
- package/resources/commerce.mjs.map +1 -0
- package/resources/{beta/content → content}/assets.d.mts +5 -5
- package/resources/content/assets.d.mts.map +1 -0
- package/resources/{beta/content → content}/assets.d.ts +5 -5
- package/resources/content/assets.d.ts.map +1 -0
- package/resources/{beta/content → content}/assets.js +4 -4
- package/resources/content/assets.js.map +1 -0
- package/resources/{beta/content → content}/assets.mjs +4 -4
- package/resources/content/assets.mjs.map +1 -0
- package/resources/{beta/content → content}/content.d.mts +4 -1
- package/resources/content/content.d.mts.map +1 -0
- package/resources/{beta/content → content}/content.d.ts +4 -1
- package/resources/content/content.d.ts.map +1 -0
- package/resources/{beta/content → content}/content.js +5 -2
- package/resources/content/content.js.map +1 -0
- package/resources/{beta/content → content}/content.mjs +4 -1
- package/resources/content/content.mjs.map +1 -0
- package/resources/{beta/content → content}/entries.d.mts +5 -5
- package/resources/content/entries.d.mts.map +1 -0
- package/resources/{beta/content → content}/entries.d.ts +5 -5
- package/resources/content/entries.d.ts.map +1 -0
- package/resources/{beta/content → content}/entries.js +3 -3
- package/resources/content/entries.js.map +1 -0
- package/resources/{beta/content → content}/entries.mjs +3 -3
- package/resources/content/entries.mjs.map +1 -0
- package/resources/content/index.d.mts.map +1 -0
- package/resources/content/index.d.ts.map +1 -0
- package/resources/content/index.js.map +1 -0
- package/resources/content/index.mjs.map +1 -0
- package/resources/{beta/content → content}/locales.d.mts +6 -6
- package/resources/content/locales.d.mts.map +1 -0
- package/resources/{beta/content → content}/locales.d.ts +6 -6
- package/resources/content/locales.d.ts.map +1 -0
- package/resources/{beta/content → content}/locales.js +4 -4
- package/resources/content/locales.js.map +1 -0
- package/resources/{beta/content → content}/locales.mjs +4 -4
- package/resources/content/locales.mjs.map +1 -0
- package/resources/{beta/content → content}/models/fields.d.mts +6 -6
- package/resources/content/models/fields.d.mts.map +1 -0
- package/resources/{beta/content → content}/models/fields.d.ts +6 -6
- package/resources/content/models/fields.d.ts.map +1 -0
- package/resources/{beta/content → content}/models/fields.js +3 -3
- package/resources/content/models/fields.js.map +1 -0
- package/resources/{beta/content → content}/models/fields.mjs +3 -3
- package/resources/content/models/fields.mjs.map +1 -0
- package/resources/content/models/index.d.mts.map +1 -0
- package/resources/content/models/index.d.ts.map +1 -0
- package/resources/content/models/index.js.map +1 -0
- package/resources/content/models/index.mjs.map +1 -0
- package/resources/{beta/content → content}/models/models.d.mts +10 -10
- package/resources/content/models/models.d.mts.map +1 -0
- package/resources/{beta/content → content}/models/models.d.ts +10 -10
- package/resources/content/models/models.d.ts.map +1 -0
- package/resources/{beta/content → content}/models/models.js +4 -4
- package/resources/content/models/models.js.map +1 -0
- package/resources/{beta/content → content}/models/models.mjs +3 -3
- package/resources/content/models/models.mjs.map +1 -0
- package/resources/content/models.d.mts.map +1 -0
- package/resources/content/models.d.ts.map +1 -0
- package/resources/{beta/content → content}/models.js +1 -1
- package/resources/content/models.js.map +1 -0
- package/resources/content/models.mjs.map +1 -0
- package/resources/content/releases/index.d.mts.map +1 -0
- package/resources/content/releases/index.d.ts.map +1 -0
- package/resources/content/releases/index.js.map +1 -0
- package/resources/content/releases/index.mjs.map +1 -0
- package/resources/{beta/content → content}/releases/items.d.mts +3 -3
- package/resources/content/releases/items.d.mts.map +1 -0
- package/resources/{beta/content → content}/releases/items.d.ts +3 -3
- package/resources/content/releases/items.d.ts.map +1 -0
- package/resources/{beta/content → content}/releases/items.js +3 -3
- package/resources/content/releases/items.js.map +1 -0
- package/resources/{beta/content → content}/releases/items.mjs +3 -3
- package/resources/content/releases/items.mjs.map +1 -0
- package/resources/{beta/content → content}/releases/releases.d.mts +6 -6
- package/resources/content/releases/releases.d.mts.map +1 -0
- package/resources/{beta/content → content}/releases/releases.d.ts +6 -6
- package/resources/content/releases/releases.d.ts.map +1 -0
- package/resources/{beta/content → content}/releases/releases.js +5 -5
- package/resources/content/releases/releases.js.map +1 -0
- package/resources/{beta/content → content}/releases/releases.mjs +4 -4
- package/resources/content/releases/releases.mjs.map +1 -0
- package/resources/content/releases.d.mts.map +1 -0
- package/resources/content/releases.d.ts.map +1 -0
- package/resources/{beta/content → content}/releases.js +1 -1
- package/resources/content/releases.js.map +1 -0
- package/resources/content/releases.mjs.map +1 -0
- package/resources/{beta/content.d.mts.map → content.d.mts.map} +1 -1
- package/resources/{beta/content.d.ts.map → content.d.ts.map} +1 -1
- package/resources/{beta/content.js → content.js} +1 -1
- package/resources/content.js.map +1 -0
- package/resources/content.mjs.map +1 -0
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +31 -4
- package/src/resources/{beta/commerce → commerce}/commerce.ts +51 -33
- package/src/resources/{beta/commerce → commerce}/coupons.ts +35 -18
- package/src/resources/commerce/customers/balance-transactions.ts +5 -0
- package/src/resources/{beta/commerce → commerce/customers}/customers.ts +57 -19
- package/src/resources/commerce/customers/index.ts +15 -0
- package/src/resources/{beta.ts → commerce/customers.ts} +1 -1
- package/src/resources/{beta/commerce → commerce}/features.ts +36 -30
- package/src/resources/{beta/commerce → commerce}/index.ts +2 -1
- package/src/resources/{beta/commerce → commerce}/products/index.ts +1 -2
- package/src/resources/{beta/commerce → commerce}/products/products.ts +44 -66
- package/src/resources/commerce/products/resources.ts +226 -0
- package/src/resources/{beta/commerce → commerce}/products/variants.ts +43 -66
- package/src/resources/commerce/subscription-groups.ts +5 -0
- package/src/resources/{beta/content → content}/assets.ts +7 -7
- package/src/resources/{beta/content → content}/content.ts +4 -1
- package/src/resources/{beta/content → content}/entries.ts +6 -6
- package/src/resources/{beta/content → content}/locales.ts +8 -8
- package/src/resources/{beta/content → content}/models/fields.ts +8 -8
- package/src/resources/{beta/content → content}/models/models.ts +11 -11
- package/src/resources/{beta/content → content}/releases/items.ts +5 -5
- package/src/resources/{beta/content → content}/releases/releases.ts +8 -8
- package/src/resources/index.ts +10 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/beta.d.mts +0 -14
- package/resources/beta/beta.d.mts.map +0 -1
- package/resources/beta/beta.d.ts +0 -14
- package/resources/beta/beta.d.ts.map +0 -1
- package/resources/beta/beta.js +0 -21
- package/resources/beta/beta.js.map +0 -1
- package/resources/beta/beta.mjs +0 -16
- package/resources/beta/beta.mjs.map +0 -1
- package/resources/beta/commerce/commerce.d.mts.map +0 -1
- package/resources/beta/commerce/commerce.d.ts.map +0 -1
- package/resources/beta/commerce/commerce.js.map +0 -1
- package/resources/beta/commerce/commerce.mjs.map +0 -1
- package/resources/beta/commerce/coupons.d.mts.map +0 -1
- package/resources/beta/commerce/coupons.d.ts.map +0 -1
- package/resources/beta/commerce/coupons.js.map +0 -1
- package/resources/beta/commerce/coupons.mjs.map +0 -1
- package/resources/beta/commerce/customers.d.mts.map +0 -1
- package/resources/beta/commerce/customers.d.ts.map +0 -1
- package/resources/beta/commerce/customers.js.map +0 -1
- package/resources/beta/commerce/customers.mjs.map +0 -1
- package/resources/beta/commerce/features.d.mts.map +0 -1
- package/resources/beta/commerce/features.d.ts.map +0 -1
- package/resources/beta/commerce/features.js.map +0 -1
- package/resources/beta/commerce/features.mjs.map +0 -1
- package/resources/beta/commerce/index.d.mts.map +0 -1
- package/resources/beta/commerce/index.d.ts.map +0 -1
- package/resources/beta/commerce/index.js.map +0 -1
- package/resources/beta/commerce/index.mjs.map +0 -1
- package/resources/beta/commerce/products/index.d.mts.map +0 -1
- package/resources/beta/commerce/products/index.d.ts.map +0 -1
- package/resources/beta/commerce/products/index.js.map +0 -1
- package/resources/beta/commerce/products/index.mjs.map +0 -1
- package/resources/beta/commerce/products/products.d.mts.map +0 -1
- package/resources/beta/commerce/products/products.d.ts.map +0 -1
- package/resources/beta/commerce/products/products.js.map +0 -1
- package/resources/beta/commerce/products/products.mjs.map +0 -1
- package/resources/beta/commerce/products/resources.d.mts +0 -161
- package/resources/beta/commerce/products/resources.d.mts.map +0 -1
- package/resources/beta/commerce/products/resources.d.ts +0 -161
- package/resources/beta/commerce/products/resources.d.ts.map +0 -1
- package/resources/beta/commerce/products/resources.js +0 -41
- package/resources/beta/commerce/products/resources.js.map +0 -1
- package/resources/beta/commerce/products/resources.mjs +0 -37
- package/resources/beta/commerce/products/resources.mjs.map +0 -1
- package/resources/beta/commerce/products/variants.d.mts.map +0 -1
- package/resources/beta/commerce/products/variants.d.ts.map +0 -1
- package/resources/beta/commerce/products/variants.js.map +0 -1
- package/resources/beta/commerce/products/variants.mjs.map +0 -1
- package/resources/beta/commerce/products.d.mts.map +0 -1
- package/resources/beta/commerce/products.d.ts.map +0 -1
- package/resources/beta/commerce/products.js.map +0 -1
- package/resources/beta/commerce/products.mjs.map +0 -1
- package/resources/beta/commerce.d.mts.map +0 -1
- package/resources/beta/commerce.js.map +0 -1
- package/resources/beta/commerce.mjs.map +0 -1
- package/resources/beta/content/assets.d.mts.map +0 -1
- package/resources/beta/content/assets.d.ts.map +0 -1
- package/resources/beta/content/assets.js.map +0 -1
- package/resources/beta/content/assets.mjs.map +0 -1
- package/resources/beta/content/content.d.mts.map +0 -1
- package/resources/beta/content/content.d.ts.map +0 -1
- package/resources/beta/content/content.js.map +0 -1
- package/resources/beta/content/content.mjs.map +0 -1
- package/resources/beta/content/entries.d.mts.map +0 -1
- package/resources/beta/content/entries.d.ts.map +0 -1
- package/resources/beta/content/entries.js.map +0 -1
- package/resources/beta/content/entries.mjs.map +0 -1
- package/resources/beta/content/index.d.mts.map +0 -1
- package/resources/beta/content/index.d.ts.map +0 -1
- package/resources/beta/content/index.js.map +0 -1
- package/resources/beta/content/index.mjs.map +0 -1
- package/resources/beta/content/locales.d.mts.map +0 -1
- package/resources/beta/content/locales.d.ts.map +0 -1
- package/resources/beta/content/locales.js.map +0 -1
- package/resources/beta/content/locales.mjs.map +0 -1
- package/resources/beta/content/models/fields.d.mts.map +0 -1
- package/resources/beta/content/models/fields.d.ts.map +0 -1
- package/resources/beta/content/models/fields.js.map +0 -1
- package/resources/beta/content/models/fields.mjs.map +0 -1
- package/resources/beta/content/models/index.d.mts.map +0 -1
- package/resources/beta/content/models/index.d.ts.map +0 -1
- package/resources/beta/content/models/index.js.map +0 -1
- package/resources/beta/content/models/index.mjs.map +0 -1
- package/resources/beta/content/models/models.d.mts.map +0 -1
- package/resources/beta/content/models/models.d.ts.map +0 -1
- package/resources/beta/content/models/models.js.map +0 -1
- package/resources/beta/content/models/models.mjs.map +0 -1
- package/resources/beta/content/models.d.mts.map +0 -1
- package/resources/beta/content/models.d.ts.map +0 -1
- package/resources/beta/content/models.js.map +0 -1
- package/resources/beta/content/models.mjs.map +0 -1
- package/resources/beta/content/releases/index.d.mts.map +0 -1
- package/resources/beta/content/releases/index.d.ts.map +0 -1
- package/resources/beta/content/releases/index.js.map +0 -1
- package/resources/beta/content/releases/index.mjs.map +0 -1
- package/resources/beta/content/releases/items.d.mts.map +0 -1
- package/resources/beta/content/releases/items.d.ts.map +0 -1
- package/resources/beta/content/releases/items.js.map +0 -1
- package/resources/beta/content/releases/items.mjs.map +0 -1
- package/resources/beta/content/releases/releases.d.mts.map +0 -1
- package/resources/beta/content/releases/releases.d.ts.map +0 -1
- package/resources/beta/content/releases/releases.js.map +0 -1
- package/resources/beta/content/releases/releases.mjs.map +0 -1
- package/resources/beta/content/releases.d.mts.map +0 -1
- package/resources/beta/content/releases.d.ts.map +0 -1
- package/resources/beta/content/releases.js.map +0 -1
- package/resources/beta/content/releases.mjs.map +0 -1
- package/resources/beta/content.js.map +0 -1
- package/resources/beta/content.mjs.map +0 -1
- package/resources/beta/index.d.mts +0 -4
- package/resources/beta/index.d.mts.map +0 -1
- package/resources/beta/index.d.ts +0 -4
- package/resources/beta/index.d.ts.map +0 -1
- package/resources/beta/index.js +0 -11
- package/resources/beta/index.js.map +0 -1
- package/resources/beta/index.mjs +0 -5
- package/resources/beta/index.mjs.map +0 -1
- package/resources/beta.d.mts +0 -2
- package/resources/beta.d.mts.map +0 -1
- package/resources/beta.d.ts +0 -2
- package/resources/beta.d.ts.map +0 -1
- package/resources/beta.js.map +0 -1
- package/resources/beta.mjs.map +0 -1
- package/src/resources/beta/beta.ts +0 -37
- package/src/resources/beta/commerce/products/resources.ts +0 -214
- package/src/resources/beta/index.ts +0 -13
- /package/resources/{beta/commerce → commerce}/products/index.js +0 -0
- /package/resources/{beta/commerce → commerce}/products/index.mjs +0 -0
- /package/resources/{beta/commerce → commerce}/products.d.mts +0 -0
- /package/resources/{beta/commerce → commerce}/products.d.ts +0 -0
- /package/resources/{beta/commerce → commerce}/products.mjs +0 -0
- /package/resources/{beta/commerce.d.mts → commerce.d.mts} +0 -0
- /package/resources/{beta/commerce.d.ts → commerce.d.ts} +0 -0
- /package/resources/{beta/commerce.mjs → commerce.mjs} +0 -0
- /package/resources/{beta/content → content}/index.d.mts +0 -0
- /package/resources/{beta/content → content}/index.d.ts +0 -0
- /package/resources/{beta/content → content}/index.js +0 -0
- /package/resources/{beta/content → content}/index.mjs +0 -0
- /package/resources/{beta/content → content}/models/index.d.mts +0 -0
- /package/resources/{beta/content → content}/models/index.d.ts +0 -0
- /package/resources/{beta/content → content}/models/index.js +0 -0
- /package/resources/{beta/content → content}/models/index.mjs +0 -0
- /package/resources/{beta/content → content}/models.d.mts +0 -0
- /package/resources/{beta/content → content}/models.d.ts +0 -0
- /package/resources/{beta/content → content}/models.mjs +0 -0
- /package/resources/{beta/content → content}/releases/index.d.mts +0 -0
- /package/resources/{beta/content → content}/releases/index.d.ts +0 -0
- /package/resources/{beta/content → content}/releases/index.js +0 -0
- /package/resources/{beta/content → content}/releases/index.mjs +0 -0
- /package/resources/{beta/content → content}/releases.d.mts +0 -0
- /package/resources/{beta/content → content}/releases.d.ts +0 -0
- /package/resources/{beta/content → content}/releases.mjs +0 -0
- /package/resources/{beta/content.d.mts → content.d.mts} +0 -0
- /package/resources/{beta/content.d.ts → content.d.ts} +0 -0
- /package/resources/{beta/content.mjs → content.mjs} +0 -0
- /package/src/resources/{beta/commerce → commerce}/products.ts +0 -0
- /package/src/resources/{beta/commerce.ts → commerce.ts} +0 -0
- /package/src/resources/{beta/content → content}/index.ts +0 -0
- /package/src/resources/{beta/content → content}/models/index.ts +0 -0
- /package/src/resources/{beta/content → content}/models.ts +0 -0
- /package/src/resources/{beta/content → content}/releases/index.ts +0 -0
- /package/src/resources/{beta/content → content}/releases.ts +0 -0
- /package/src/resources/{beta/content.ts → content.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as FieldsAPI from "./fields.mjs";
|
|
4
4
|
import { Fields } from "./fields.mjs";
|
|
5
|
-
import { CursorIDPage } from "
|
|
6
|
-
import { path } from "
|
|
5
|
+
import { CursorIDPage } from "../../../core/pagination.mjs";
|
|
6
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
7
|
export class Models extends APIResource {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../../src/resources/content/models/models.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAA2D,MAAM,EAAE;OAEnE,EAAE,YAAY,EAAwC;OAEtD,EAAE,IAAI,E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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/resources/content/models.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./models/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/resources/content/models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../src/resources/content/models.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE;OACpD,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE;OACpD,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA2E;AAAlE,8FAAA,KAAK,OAAA;AACd,0CASoB;AARlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAA6C;OACpD,EACL,QAAQ,GAQT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as ReleasesAPI from "./releases.mjs";
|
|
3
|
-
import { APIPromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
export declare class Items extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Adds an entry or asset to a release with a specified action (publish or
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.d.mts","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC;IAI1G;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3F"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as ReleasesAPI from "./releases.js";
|
|
3
|
-
import { APIPromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
export declare class Items extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Adds an entry or asset to a release with a specified action (publish or
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC;IAI1G;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3F"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Items = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const headers_1 = require("
|
|
7
|
-
const path_1 = require("
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
class Items extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Adds an entry or asset to a release with a specified action (publish or
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAiB,EAAE,IAAmB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wBAAwB,UAAU,UAAU,MAAM,EAAE,EAAE;YACnF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,sBAmBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { buildHeaders } from "
|
|
4
|
-
import { path } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
export class Items extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Adds an entry or asset to a release with a specified action (publish or
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAiB,EAAE,IAAmB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,UAAU,UAAU,MAAM,EAAE,EAAE;YACnF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as ItemsAPI from "./items.mjs";
|
|
3
3
|
import { ItemAddParams, ItemRemoveParams, Items } from "./items.mjs";
|
|
4
|
-
import { APIPromise } from "
|
|
5
|
-
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "
|
|
6
|
-
import { RequestOptions } from "
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
7
|
export declare class Releases extends APIResource {
|
|
8
8
|
items: ItemsAPI.Items;
|
|
9
9
|
/**
|
|
@@ -46,7 +46,7 @@ export type ReleasesCursorIDPage = CursorIDPage<Release>;
|
|
|
46
46
|
*/
|
|
47
47
|
export interface Release {
|
|
48
48
|
/**
|
|
49
|
-
* Unique identifier for the
|
|
49
|
+
* Unique identifier for the release
|
|
50
50
|
*/
|
|
51
51
|
id: string;
|
|
52
52
|
/**
|
|
@@ -91,7 +91,7 @@ export interface Release {
|
|
|
91
91
|
*/
|
|
92
92
|
export interface ReleaseItem {
|
|
93
93
|
/**
|
|
94
|
-
* Unique identifier for the
|
|
94
|
+
* Unique identifier for the release item
|
|
95
95
|
*/
|
|
96
96
|
id: string;
|
|
97
97
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.d.mts","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE;OAC1C,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAItB;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,OAAO,CAAC;IAI7C;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrE;;OAEG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIrE;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC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WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;CACzD;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3G"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as ItemsAPI from "./items.js";
|
|
3
3
|
import { ItemAddParams, ItemRemoveParams, Items } from "./items.js";
|
|
4
|
-
import { APIPromise } from "
|
|
5
|
-
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "
|
|
6
|
-
import { RequestOptions } from "
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
7
|
export declare class Releases extends APIResource {
|
|
8
8
|
items: ItemsAPI.Items;
|
|
9
9
|
/**
|
|
@@ -46,7 +46,7 @@ export type ReleasesCursorIDPage = CursorIDPage<Release>;
|
|
|
46
46
|
*/
|
|
47
47
|
export interface Release {
|
|
48
48
|
/**
|
|
49
|
-
* Unique identifier for the
|
|
49
|
+
* Unique identifier for the release
|
|
50
50
|
*/
|
|
51
51
|
id: string;
|
|
52
52
|
/**
|
|
@@ -91,7 +91,7 @@ export interface Release {
|
|
|
91
91
|
*/
|
|
92
92
|
export interface ReleaseItem {
|
|
93
93
|
/**
|
|
94
|
-
* Unique identifier for the
|
|
94
|
+
* Unique identifier for the release item
|
|
95
95
|
*/
|
|
96
96
|
id: string;
|
|
97
97
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.d.ts","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE;OAC1C,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAItB;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CA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AE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;CACzD;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3G"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Releases = void 0;
|
|
5
|
-
const tslib_1 = require("
|
|
6
|
-
const resource_1 = require("
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const ItemsAPI = tslib_1.__importStar(require("./items.js"));
|
|
8
8
|
const items_1 = require("./items.js");
|
|
9
|
-
const pagination_1 = require("
|
|
10
|
-
const headers_1 = require("
|
|
11
|
-
const path_1 = require("
|
|
9
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
10
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
11
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
12
12
|
class Releases extends resource_1.APIResource {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.js","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAAiE;AAEjE,4DAA8F;AAC9F,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgE3D,CAAC;IA9DC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,wBAAwB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC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
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as ItemsAPI from "./items.mjs";
|
|
4
4
|
import { Items } from "./items.mjs";
|
|
5
|
-
import { CursorIDPage } from "
|
|
6
|
-
import { buildHeaders } from "
|
|
7
|
-
import { path } from "
|
|
5
|
+
import { CursorIDPage } from "../../../core/pagination.mjs";
|
|
6
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
7
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
8
8
|
export class Releases extends APIResource {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.mjs","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAmC,KAAK,EAAE;OAE1C,EAAE,YAAY,EAAwC;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgE3D,CAAC;IA9DC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wBAAwB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,YAAqB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,SAAS,EAAE,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,SAAiB,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,SAAiB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,SAAS,UAAU,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,IAA2B,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,SAAS,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AAiID,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.d.mts","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.d.ts","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./releases/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=releases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.js","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releases.mjs","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.mts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./content/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.mjs","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Commerce, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce/commerce.mjs";
|
|
2
|
+
export { Content } from "./content/content.mjs";
|
|
2
3
|
export { PushNotifications, type PushNotificationEnableResponse, type PushNotificationIdentifyResponse, type PushNotificationSendResponse, type PushNotificationSubscribeResponse, type PushNotificationUnsubscribeResponse, type PushNotificationIdentifyParams, type PushNotificationSendParams, type PushNotificationSubscribeParams, type PushNotificationUnsubscribeParams, } from "./push-notifications/push-notifications.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Commerce, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce/commerce.js";
|
|
2
|
+
export { Content } from "./content/content.js";
|
|
2
3
|
export { PushNotifications, type PushNotificationEnableResponse, type PushNotificationIdentifyResponse, type PushNotificationSendResponse, type PushNotificationSubscribeResponse, type PushNotificationUnsubscribeResponse, type PushNotificationIdentifyParams, type PushNotificationSendParams, type PushNotificationSubscribeParams, type PushNotificationUnsubscribeParams, } from "./push-notifications/push-notifications.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
package/resources/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.PushNotifications = exports.
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
4
|
+
exports.PushNotifications = exports.Content = exports.Commerce = void 0;
|
|
5
|
+
var commerce_1 = require("./commerce/commerce.js");
|
|
6
|
+
Object.defineProperty(exports, "Commerce", { enumerable: true, get: function () { return commerce_1.Commerce; } });
|
|
7
|
+
var content_1 = require("./content/content.js");
|
|
8
|
+
Object.defineProperty(exports, "Content", { enumerable: true, get: function () { return content_1.Content; } });
|
|
7
9
|
var push_notifications_1 = require("./push-notifications/push-notifications.js");
|
|
8
10
|
Object.defineProperty(exports, "PushNotifications", { enumerable: true, get: function () { return push_notifications_1.PushNotifications; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAQ6B;AAP3B,oGAAA,QAAQ,OAAA;AAQV,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,iFAWiD;AAV/C,uHAAA,iBAAiB,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export {
|
|
2
|
+
export { Commerce, } from "./commerce/commerce.mjs";
|
|
3
|
+
export { Content } from "./content/content.mjs";
|
|
3
4
|
export { PushNotifications, } from "./push-notifications/push-notifications.mjs";
|
|
4
5
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAOT;OACM,EAAE,OAAO,EAAE;OACX,EACL,iBAAiB,GAUlB"}
|
package/src/client.ts
CHANGED
|
@@ -19,7 +19,16 @@ import { AbstractPage, type CursorIDPageParams, CursorIDPageResponse } from './c
|
|
|
19
19
|
import * as Uploads from './core/uploads';
|
|
20
20
|
import * as API from './resources/index';
|
|
21
21
|
import { APIPromise } from './core/api-promise';
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
Commerce,
|
|
24
|
+
CommerceCancelParams,
|
|
25
|
+
CommerceCancelResponse,
|
|
26
|
+
CommerceCheckParams,
|
|
27
|
+
CommerceCheckResponse,
|
|
28
|
+
CommerceCheckoutParams,
|
|
29
|
+
CommerceCheckoutResponse,
|
|
30
|
+
} from './resources/commerce/commerce';
|
|
31
|
+
import { Content } from './resources/content/content';
|
|
23
32
|
import {
|
|
24
33
|
PushNotificationEnableResponse,
|
|
25
34
|
PushNotificationIdentifyParams,
|
|
@@ -750,11 +759,19 @@ export class Hercules {
|
|
|
750
759
|
|
|
751
760
|
static toFile = Uploads.toFile;
|
|
752
761
|
|
|
753
|
-
|
|
762
|
+
/**
|
|
763
|
+
* Commerce APIs are currently in beta.
|
|
764
|
+
*/
|
|
765
|
+
commerce: API.Commerce = new API.Commerce(this);
|
|
766
|
+
/**
|
|
767
|
+
* Content APIs are currently in beta.
|
|
768
|
+
*/
|
|
769
|
+
content: API.Content = new API.Content(this);
|
|
754
770
|
pushNotifications: API.PushNotifications = new API.PushNotifications(this);
|
|
755
771
|
}
|
|
756
772
|
|
|
757
|
-
Hercules.
|
|
773
|
+
Hercules.Commerce = Commerce;
|
|
774
|
+
Hercules.Content = Content;
|
|
758
775
|
Hercules.PushNotifications = PushNotifications;
|
|
759
776
|
|
|
760
777
|
export declare namespace Hercules {
|
|
@@ -763,7 +780,17 @@ export declare namespace Hercules {
|
|
|
763
780
|
export import CursorIDPage = Pagination.CursorIDPage;
|
|
764
781
|
export { type CursorIDPageParams as CursorIDPageParams, type CursorIDPageResponse as CursorIDPageResponse };
|
|
765
782
|
|
|
766
|
-
export {
|
|
783
|
+
export {
|
|
784
|
+
Commerce as Commerce,
|
|
785
|
+
type CommerceCancelResponse as CommerceCancelResponse,
|
|
786
|
+
type CommerceCheckResponse as CommerceCheckResponse,
|
|
787
|
+
type CommerceCheckoutResponse as CommerceCheckoutResponse,
|
|
788
|
+
type CommerceCancelParams as CommerceCancelParams,
|
|
789
|
+
type CommerceCheckParams as CommerceCheckParams,
|
|
790
|
+
type CommerceCheckoutParams as CommerceCheckoutParams,
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
export { Content as Content };
|
|
767
794
|
|
|
768
795
|
export {
|
|
769
796
|
PushNotifications as PushNotifications,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as CouponsAPI from './coupons';
|
|
5
5
|
import {
|
|
6
6
|
Coupon,
|
|
@@ -10,7 +10,18 @@ import {
|
|
|
10
10
|
Coupons,
|
|
11
11
|
CouponsCursorIDPage,
|
|
12
12
|
} from './coupons';
|
|
13
|
-
import * as
|
|
13
|
+
import * as FeaturesAPI from './features';
|
|
14
|
+
import {
|
|
15
|
+
Feature,
|
|
16
|
+
FeatureCreateParams,
|
|
17
|
+
FeatureListParams,
|
|
18
|
+
FeatureUpdateParams,
|
|
19
|
+
Features,
|
|
20
|
+
FeaturesCursorIDPage,
|
|
21
|
+
} from './features';
|
|
22
|
+
import * as SubscriptionGroupsAPI from './subscription-groups';
|
|
23
|
+
import { SubscriptionGroups } from './subscription-groups';
|
|
24
|
+
import * as CustomersAPI from './customers/customers';
|
|
14
25
|
import {
|
|
15
26
|
Customer,
|
|
16
27
|
CustomerAddress,
|
|
@@ -22,16 +33,7 @@ import {
|
|
|
22
33
|
CustomerUpdateParams,
|
|
23
34
|
Customers,
|
|
24
35
|
CustomersCursorIDPage,
|
|
25
|
-
} from './customers';
|
|
26
|
-
import * as FeaturesAPI from './features';
|
|
27
|
-
import {
|
|
28
|
-
Feature,
|
|
29
|
-
FeatureCreateParams,
|
|
30
|
-
FeatureListParams,
|
|
31
|
-
FeatureUpdateParams,
|
|
32
|
-
Features,
|
|
33
|
-
FeaturesCursorIDPage,
|
|
34
|
-
} from './features';
|
|
36
|
+
} from './customers/customers';
|
|
35
37
|
import * as ProductsAPI from './products/products';
|
|
36
38
|
import {
|
|
37
39
|
Product,
|
|
@@ -41,19 +43,33 @@ import {
|
|
|
41
43
|
Products,
|
|
42
44
|
ProductsCursorIDPage,
|
|
43
45
|
} from './products/products';
|
|
44
|
-
import { APIPromise } from '
|
|
45
|
-
import { RequestOptions } from '
|
|
46
|
+
import { APIPromise } from '../../core/api-promise';
|
|
47
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
46
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Commerce APIs are currently in beta.
|
|
51
|
+
*/
|
|
47
52
|
export class Commerce extends APIResource {
|
|
48
53
|
customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
|
|
49
54
|
products: ProductsAPI.Products = new ProductsAPI.Products(this._client);
|
|
50
55
|
coupons: CouponsAPI.Coupons = new CouponsAPI.Coupons(this._client);
|
|
51
56
|
features: FeaturesAPI.Features = new FeaturesAPI.Features(this._client);
|
|
57
|
+
subscriptionGroups: SubscriptionGroupsAPI.SubscriptionGroups = new SubscriptionGroupsAPI.SubscriptionGroups(
|
|
58
|
+
this._client,
|
|
59
|
+
);
|
|
52
60
|
|
|
53
61
|
/**
|
|
54
62
|
* Cancels a customer's subscription. By default, the subscription remains active
|
|
55
63
|
* until the end of the current billing period. Set cancellation_timing to
|
|
56
64
|
* 'immediate' to cancel immediately.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const response = await client.commerce.cancel({
|
|
69
|
+
* customer_id: 'cus_1234567890',
|
|
70
|
+
* subscription_id: 'sub_1234567890',
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
57
73
|
*/
|
|
58
74
|
cancel(body: CommerceCancelParams, options?: RequestOptions): APIPromise<CommerceCancelResponse> {
|
|
59
75
|
return this._client.post('/v1/commerce/cancel', { body, ...options });
|
|
@@ -64,6 +80,14 @@ export class Commerce extends APIResource {
|
|
|
64
80
|
* features in your app based on the customer's active subscription and the
|
|
65
81
|
* entitlements attached to their product. Hercules recommends calling this before
|
|
66
82
|
* allowing access to premium features.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const response = await client.commerce.check({
|
|
87
|
+
* customer_id: 'cus_1234567890',
|
|
88
|
+
* resource_id: 'feat_1234567890',
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
67
91
|
*/
|
|
68
92
|
check(body: CommerceCheckParams, options?: RequestOptions): APIPromise<CommerceCheckResponse> {
|
|
69
93
|
return this._client.post('/v1/commerce/check', { body, ...options });
|
|
@@ -73,6 +97,15 @@ export class Commerce extends APIResource {
|
|
|
73
97
|
* Creates a checkout session for a customer to subscribe to a product. Returns a
|
|
74
98
|
* URL to redirect the customer to for payment. After successful payment, the
|
|
75
99
|
* customer is subscribed to the product and gains access to its entitlements.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* const response = await client.commerce.checkout({
|
|
104
|
+
* customer_id: 'cus_1234567890',
|
|
105
|
+
* line_items: [{ variant_id: 'var_1234567890' }],
|
|
106
|
+
* success_url: 'https://example.com',
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
76
109
|
*/
|
|
77
110
|
checkout(body: CommerceCheckoutParams, options?: RequestOptions): APIPromise<CommerceCheckoutResponse> {
|
|
78
111
|
return this._client.post('/v1/commerce/checkout', { body, ...options });
|
|
@@ -105,25 +138,13 @@ export interface CommerceCancelResponse {
|
|
|
105
138
|
}
|
|
106
139
|
|
|
107
140
|
/**
|
|
108
|
-
* Check resource access response.
|
|
109
|
-
* what means.
|
|
141
|
+
* Check resource access response.
|
|
110
142
|
*/
|
|
111
143
|
export interface CommerceCheckResponse {
|
|
112
|
-
/**
|
|
113
|
-
* How the customer has access: through a subscription, one-time purchase, manual
|
|
114
|
-
* grant, or no access
|
|
115
|
-
*/
|
|
116
|
-
access_type: 'subscription' | 'one_time_purchase' | 'manual_grant' | 'none';
|
|
117
|
-
|
|
118
144
|
/**
|
|
119
145
|
* Whether the customer has access to the resource
|
|
120
146
|
*/
|
|
121
147
|
has_access: boolean;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* The resource ID that was checked
|
|
125
|
-
*/
|
|
126
|
-
resource_id: string;
|
|
127
148
|
}
|
|
128
149
|
|
|
129
150
|
/**
|
|
@@ -234,12 +255,6 @@ export interface CommerceCheckoutParams {
|
|
|
234
255
|
*/
|
|
235
256
|
success_url: string;
|
|
236
257
|
|
|
237
|
-
/**
|
|
238
|
-
* Optional custom ID for the subscription or payment. If not provided, one will be
|
|
239
|
-
* generated.
|
|
240
|
-
*/
|
|
241
|
-
id?: string;
|
|
242
|
-
|
|
243
258
|
/**
|
|
244
259
|
* URL to redirect on cancel
|
|
245
260
|
*/
|
|
@@ -298,6 +313,7 @@ Commerce.Customers = Customers;
|
|
|
298
313
|
Commerce.Products = Products;
|
|
299
314
|
Commerce.Coupons = Coupons;
|
|
300
315
|
Commerce.Features = Features;
|
|
316
|
+
Commerce.SubscriptionGroups = SubscriptionGroups;
|
|
301
317
|
|
|
302
318
|
export declare namespace Commerce {
|
|
303
319
|
export {
|
|
@@ -348,4 +364,6 @@ export declare namespace Commerce {
|
|
|
348
364
|
type FeatureUpdateParams as FeatureUpdateParams,
|
|
349
365
|
type FeatureListParams as FeatureListParams,
|
|
350
366
|
};
|
|
367
|
+
|
|
368
|
+
export { SubscriptionGroups as SubscriptionGroups };
|
|
351
369
|
}
|