@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,14 +1,24 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as BalanceTransactionsAPI from "./balance-transactions.mjs";
|
|
4
|
+
import { BalanceTransactions } from "./balance-transactions.mjs";
|
|
3
5
|
import { CursorIDPage } from "../../../core/pagination.mjs";
|
|
4
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
5
6
|
import { path } from "../../../internal/utils/path.mjs";
|
|
6
7
|
export class Customers extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.balanceTransactions = new BalanceTransactionsAPI.BalanceTransactions(this._client);
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
13
|
* Creates a new billable customer. A customer represents the entity in your app
|
|
9
14
|
* that will be charged—typically a user, organization, or project. Hercules
|
|
10
15
|
* recommends creating a customer immediately after creating the corresponding
|
|
11
16
|
* entity in your app.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const customer = await client.commerce.customers.create();
|
|
21
|
+
* ```
|
|
12
22
|
*/
|
|
13
23
|
create(body = {}, options) {
|
|
14
24
|
return this._client.post('/v1/commerce/customers', { body, ...options });
|
|
@@ -16,6 +26,13 @@ export class Customers extends APIResource {
|
|
|
16
26
|
/**
|
|
17
27
|
* Updates an existing customer. Use this to modify contact information or billing
|
|
18
28
|
* address. Only provided fields are updated; omitted fields remain unchanged.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const customer = await client.commerce.customers.update(
|
|
33
|
+
* 'cus_1234567890',
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
19
36
|
*/
|
|
20
37
|
update(customerID, body = {}, options) {
|
|
21
38
|
return this._client.patch(path `/v1/commerce/customers/${customerID}`, { body, ...options });
|
|
@@ -23,24 +40,30 @@ export class Customers extends APIResource {
|
|
|
23
40
|
/**
|
|
24
41
|
* Retrieves a paginated list of all customers. Customers are the billable entities
|
|
25
42
|
* in your app—typically users, organizations, or projects.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* // Automatically fetches more pages as needed.
|
|
47
|
+
* for await (const customer of client.commerce.customers.list()) {
|
|
48
|
+
* // ...
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
26
51
|
*/
|
|
27
52
|
list(query = {}, options) {
|
|
28
53
|
return this._client.getAPIList('/v1/commerce/customers', (CursorIDPage), { query, ...options });
|
|
29
54
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Permanently deletes a customer. This also cancels any active subscriptions. This
|
|
32
|
-
* action cannot be undone.
|
|
33
|
-
*/
|
|
34
|
-
delete(customerID, options) {
|
|
35
|
-
return this._client.delete(path `/v1/commerce/customers/${customerID}`, {
|
|
36
|
-
...options,
|
|
37
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
55
|
/**
|
|
41
56
|
* Generates a URL to a hosted billing portal where the customer can view invoices,
|
|
42
57
|
* update payment methods, and manage billing details. Redirect the customer to the
|
|
43
58
|
* returned URL.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const response =
|
|
63
|
+
* await client.commerce.customers.billingPortal(
|
|
64
|
+
* 'cus_1234567890',
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
44
67
|
*/
|
|
45
68
|
billingPortal(customerID, body = {}, options) {
|
|
46
69
|
return this._client.post(path `/v1/commerce/customers/${customerID}/billing_portal`, { body, ...options });
|
|
@@ -49,9 +72,17 @@ export class Customers extends APIResource {
|
|
|
49
72
|
* Retrieves a customer by ID. Returns the customer object including contact
|
|
50
73
|
* information, billing address, active subscriptions, recent invoices, and saved
|
|
51
74
|
* payment methods.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const customer = await client.commerce.customers.get(
|
|
79
|
+
* 'cus_1234567890',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
52
82
|
*/
|
|
53
83
|
get(customerID, options) {
|
|
54
84
|
return this._client.get(path `/v1/commerce/customers/${customerID}`, options);
|
|
55
85
|
}
|
|
56
86
|
}
|
|
87
|
+
Customers.BalanceTransactions = BalanceTransactions;
|
|
57
88
|
//# sourceMappingURL=customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/commerce/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,sBAAsB;OAC3B,EAAE,mBAAmB,EAAE;OAEvB,EAAE,YAAY,EAAwC;OAEtD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,wBAAmB,GACjB,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2FjE,CAAC;IAzFC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAgD,EAAE,EAAE,OAAwB;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,UAAkB,EAClB,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,0BAA0B,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,YAAsB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,aAAa,CACX,UAAkB,EAClB,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,UAAU,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,UAAkB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAgfD,SAAS,CAAC,mBAAmB,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { BalanceTransactions } from "./balance-transactions.mjs";
|
|
2
|
+
export { Customers, type Customer, type CustomerAddress, type CustomerBillingPortalResponse, type CustomerGetResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerBillingPortalParams, type CustomersCursorIDPage, } from "./customers.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/commerce/customers/index.ts"],"names":[],"mappings":"OAEO,EAAE,mBAAmB,EAAE;OACvB,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,GAC3B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { BalanceTransactions } from "./balance-transactions.js";
|
|
2
|
+
export { Customers, type Customer, type CustomerAddress, type CustomerBillingPortalResponse, type CustomerGetResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerBillingPortalParams, type CustomersCursorIDPage, } from "./customers.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/commerce/customers/index.ts"],"names":[],"mappings":"OAEO,EAAE,mBAAmB,EAAE;OACvB,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,GAC3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Customers = exports.BalanceTransactions = void 0;
|
|
5
|
+
var balance_transactions_1 = require("./balance-transactions.js");
|
|
6
|
+
Object.defineProperty(exports, "BalanceTransactions", { enumerable: true, get: function () { return balance_transactions_1.BalanceTransactions; } });
|
|
7
|
+
var customers_1 = require("./customers.js");
|
|
8
|
+
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/commerce/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kEAA6D;AAApD,2HAAA,mBAAmB,OAAA;AAC5B,4CAWqB;AAVnB,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/commerce/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE;OACvB,EACL,SAAS,GAUV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../src/resources/commerce/customers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../src/resources/commerce/customers.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("
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
6
|
-
//# sourceMappingURL=
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./customers/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../src/resources/commerce/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export * from "./
|
|
3
|
-
//# sourceMappingURL=
|
|
2
|
+
export * from "./customers/index.mjs";
|
|
3
|
+
//# sourceMappingURL=customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../src/resources/commerce/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,30 +1,54 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
5
|
export declare class Features extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new feature with a lookup key. Features can be attached to multiple
|
|
8
8
|
* products to grant customers access to the same entitlement across different
|
|
9
9
|
* subscription tiers.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const feature = await client.commerce.features.create({
|
|
14
|
+
* name: 'x',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
10
17
|
*/
|
|
11
18
|
create(body: FeatureCreateParams, options?: RequestOptions): APIPromise<Feature>;
|
|
12
19
|
/**
|
|
13
20
|
* Updates an existing feature. Use this to modify metadata or active status.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const feature = await client.commerce.features.update(
|
|
25
|
+
* 'feature_id',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
14
28
|
*/
|
|
15
29
|
update(featureID: string, body?: FeatureUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
16
30
|
/**
|
|
17
31
|
* Retrieves a paginated list of features. Features are reusable entitlements that
|
|
18
32
|
* can be attached to multiple products.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* // Automatically fetches more pages as needed.
|
|
37
|
+
* for await (const feature of client.commerce.features.list()) {
|
|
38
|
+
* // ...
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
19
41
|
*/
|
|
20
42
|
list(query?: FeatureListParams | null | undefined, options?: RequestOptions): PagePromise<FeaturesCursorIDPage, Feature>;
|
|
21
|
-
/**
|
|
22
|
-
* Deletes a feature. This will also remove all product attachments for this
|
|
23
|
-
* feature.
|
|
24
|
-
*/
|
|
25
|
-
delete(featureID: string, options?: RequestOptions): APIPromise<void>;
|
|
26
43
|
/**
|
|
27
44
|
* Retrieves a feature by ID.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const feature = await client.commerce.features.get(
|
|
49
|
+
* 'feature_id',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
28
52
|
*/
|
|
29
53
|
get(featureID: string, options?: RequestOptions): APIPromise<Feature>;
|
|
30
54
|
}
|
|
@@ -35,7 +59,7 @@ export type FeaturesCursorIDPage = CursorIDPage<Feature>;
|
|
|
35
59
|
*/
|
|
36
60
|
export interface Feature {
|
|
37
61
|
/**
|
|
38
|
-
* Unique identifier for the
|
|
62
|
+
* Unique identifier for the feature
|
|
39
63
|
*/
|
|
40
64
|
id: string;
|
|
41
65
|
/**
|
|
@@ -50,10 +74,6 @@ export interface Feature {
|
|
|
50
74
|
* Description of what this feature provides
|
|
51
75
|
*/
|
|
52
76
|
description: string | null;
|
|
53
|
-
/**
|
|
54
|
-
* The lookup key used to check access (e.g., 'feature.pro_features')
|
|
55
|
-
*/
|
|
56
|
-
lookup_key: string;
|
|
57
77
|
/**
|
|
58
78
|
* Human-readable name for the feature
|
|
59
79
|
*/
|
|
@@ -70,11 +90,6 @@ export interface Feature {
|
|
|
70
90
|
};
|
|
71
91
|
}
|
|
72
92
|
export interface FeatureCreateParams {
|
|
73
|
-
/**
|
|
74
|
-
* The lookup key used to check access. Will be prefixed with 'feature.'
|
|
75
|
-
* automatically.
|
|
76
|
-
*/
|
|
77
|
-
lookup_key: string;
|
|
78
93
|
/**
|
|
79
94
|
* Human-readable name for the feature
|
|
80
95
|
*/
|
|
@@ -119,7 +134,7 @@ export interface FeatureListParams extends CursorIDPageParams {
|
|
|
119
134
|
/**
|
|
120
135
|
* Filter by active status
|
|
121
136
|
*/
|
|
122
|
-
active?:
|
|
137
|
+
active?: boolean;
|
|
123
138
|
}
|
|
124
139
|
export declare namespace Features {
|
|
125
140
|
export { type Feature as Feature, type FeaturesCursorIDPage as FeaturesCursorIDPage, type FeatureCreateParams as FeatureCreateParams, type FeatureUpdateParams as FeatureUpdateParams, type FeatureListParams as FeatureListParams, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.mts","sourceRoot":"","sources":["../../src/resources/commerce/features.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OACtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;;;;;;;OASG;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;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,OAAO,CAAC;IAI7C;;;;;;;;;OASG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGtE;AAED,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;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;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,30 +1,54 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
5
|
export declare class Features extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new feature with a lookup key. Features can be attached to multiple
|
|
8
8
|
* products to grant customers access to the same entitlement across different
|
|
9
9
|
* subscription tiers.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const feature = await client.commerce.features.create({
|
|
14
|
+
* name: 'x',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
10
17
|
*/
|
|
11
18
|
create(body: FeatureCreateParams, options?: RequestOptions): APIPromise<Feature>;
|
|
12
19
|
/**
|
|
13
20
|
* Updates an existing feature. Use this to modify metadata or active status.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const feature = await client.commerce.features.update(
|
|
25
|
+
* 'feature_id',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
14
28
|
*/
|
|
15
29
|
update(featureID: string, body?: FeatureUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
16
30
|
/**
|
|
17
31
|
* Retrieves a paginated list of features. Features are reusable entitlements that
|
|
18
32
|
* can be attached to multiple products.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* // Automatically fetches more pages as needed.
|
|
37
|
+
* for await (const feature of client.commerce.features.list()) {
|
|
38
|
+
* // ...
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
19
41
|
*/
|
|
20
42
|
list(query?: FeatureListParams | null | undefined, options?: RequestOptions): PagePromise<FeaturesCursorIDPage, Feature>;
|
|
21
|
-
/**
|
|
22
|
-
* Deletes a feature. This will also remove all product attachments for this
|
|
23
|
-
* feature.
|
|
24
|
-
*/
|
|
25
|
-
delete(featureID: string, options?: RequestOptions): APIPromise<void>;
|
|
26
43
|
/**
|
|
27
44
|
* Retrieves a feature by ID.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const feature = await client.commerce.features.get(
|
|
49
|
+
* 'feature_id',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
28
52
|
*/
|
|
29
53
|
get(featureID: string, options?: RequestOptions): APIPromise<Feature>;
|
|
30
54
|
}
|
|
@@ -35,7 +59,7 @@ export type FeaturesCursorIDPage = CursorIDPage<Feature>;
|
|
|
35
59
|
*/
|
|
36
60
|
export interface Feature {
|
|
37
61
|
/**
|
|
38
|
-
* Unique identifier for the
|
|
62
|
+
* Unique identifier for the feature
|
|
39
63
|
*/
|
|
40
64
|
id: string;
|
|
41
65
|
/**
|
|
@@ -50,10 +74,6 @@ export interface Feature {
|
|
|
50
74
|
* Description of what this feature provides
|
|
51
75
|
*/
|
|
52
76
|
description: string | null;
|
|
53
|
-
/**
|
|
54
|
-
* The lookup key used to check access (e.g., 'feature.pro_features')
|
|
55
|
-
*/
|
|
56
|
-
lookup_key: string;
|
|
57
77
|
/**
|
|
58
78
|
* Human-readable name for the feature
|
|
59
79
|
*/
|
|
@@ -70,11 +90,6 @@ export interface Feature {
|
|
|
70
90
|
};
|
|
71
91
|
}
|
|
72
92
|
export interface FeatureCreateParams {
|
|
73
|
-
/**
|
|
74
|
-
* The lookup key used to check access. Will be prefixed with 'feature.'
|
|
75
|
-
* automatically.
|
|
76
|
-
*/
|
|
77
|
-
lookup_key: string;
|
|
78
93
|
/**
|
|
79
94
|
* Human-readable name for the feature
|
|
80
95
|
*/
|
|
@@ -119,7 +134,7 @@ export interface FeatureListParams extends CursorIDPageParams {
|
|
|
119
134
|
/**
|
|
120
135
|
* Filter by active status
|
|
121
136
|
*/
|
|
122
|
-
active?:
|
|
137
|
+
active?: boolean;
|
|
123
138
|
}
|
|
124
139
|
export declare namespace Features {
|
|
125
140
|
export { type Feature as Feature, type FeaturesCursorIDPage as FeaturesCursorIDPage, type FeatureCreateParams as FeatureCreateParams, type FeatureUpdateParams as FeatureUpdateParams, type FeatureListParams as FeatureListParams, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/resources/commerce/features.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OACtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;;;;;;;OASG;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;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,OAAO,CAAC;IAI7C;;;;;;;;;OASG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGtE;AAED,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;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;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -2,21 +2,34 @@
|
|
|
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.Features = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const pagination_1 = require("
|
|
7
|
-
const
|
|
8
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
8
|
class Features extends resource_1.APIResource {
|
|
10
9
|
/**
|
|
11
10
|
* Creates a new feature with a lookup key. Features can be attached to multiple
|
|
12
11
|
* products to grant customers access to the same entitlement across different
|
|
13
12
|
* subscription tiers.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const feature = await client.commerce.features.create({
|
|
17
|
+
* name: 'x',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
14
20
|
*/
|
|
15
21
|
create(body, options) {
|
|
16
22
|
return this._client.post('/v1/commerce/features', { body, ...options });
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
19
25
|
* Updates an existing feature. Use this to modify metadata or active status.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const feature = await client.commerce.features.update(
|
|
30
|
+
* 'feature_id',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
20
33
|
*/
|
|
21
34
|
update(featureID, body = {}, options) {
|
|
22
35
|
return this._client.patch((0, path_1.path) `/v1/commerce/features/${featureID}`, { body, ...options });
|
|
@@ -24,22 +37,27 @@ class Features extends resource_1.APIResource {
|
|
|
24
37
|
/**
|
|
25
38
|
* Retrieves a paginated list of features. Features are reusable entitlements that
|
|
26
39
|
* can be attached to multiple products.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* // Automatically fetches more pages as needed.
|
|
44
|
+
* for await (const feature of client.commerce.features.list()) {
|
|
45
|
+
* // ...
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
27
48
|
*/
|
|
28
49
|
list(query = {}, options) {
|
|
29
50
|
return this._client.getAPIList('/v1/commerce/features', (pagination_1.CursorIDPage), { query, ...options });
|
|
30
51
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Deletes a feature. This will also remove all product attachments for this
|
|
33
|
-
* feature.
|
|
34
|
-
*/
|
|
35
|
-
delete(featureID, options) {
|
|
36
|
-
return this._client.delete((0, path_1.path) `/v1/commerce/features/${featureID}`, {
|
|
37
|
-
...options,
|
|
38
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
52
|
/**
|
|
42
53
|
* Retrieves a feature by ID.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const feature = await client.commerce.features.get(
|
|
58
|
+
* 'feature_id',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
43
61
|
*/
|
|
44
62
|
get(featureID, options) {
|
|
45
63
|
return this._client.get((0, path_1.path) `/v1/commerce/features/${featureID}`, options);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/resources/commerce/features.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA2F;AAE3F,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,SAAiB,EACjB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAA,yBAAqB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,SAAiB,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAnED,4BAmEC"}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { CursorIDPage } from "
|
|
4
|
-
import {
|
|
5
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorIDPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
5
|
export class Features extends APIResource {
|
|
7
6
|
/**
|
|
8
7
|
* Creates a new feature with a lookup key. Features can be attached to multiple
|
|
9
8
|
* products to grant customers access to the same entitlement across different
|
|
10
9
|
* subscription tiers.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const feature = await client.commerce.features.create({
|
|
14
|
+
* name: 'x',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
11
17
|
*/
|
|
12
18
|
create(body, options) {
|
|
13
19
|
return this._client.post('/v1/commerce/features', { body, ...options });
|
|
14
20
|
}
|
|
15
21
|
/**
|
|
16
22
|
* Updates an existing feature. Use this to modify metadata or active status.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const feature = await client.commerce.features.update(
|
|
27
|
+
* 'feature_id',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
17
30
|
*/
|
|
18
31
|
update(featureID, body = {}, options) {
|
|
19
32
|
return this._client.patch(path `/v1/commerce/features/${featureID}`, { body, ...options });
|
|
@@ -21,22 +34,27 @@ export class Features extends APIResource {
|
|
|
21
34
|
/**
|
|
22
35
|
* Retrieves a paginated list of features. Features are reusable entitlements that
|
|
23
36
|
* can be attached to multiple products.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* // Automatically fetches more pages as needed.
|
|
41
|
+
* for await (const feature of client.commerce.features.list()) {
|
|
42
|
+
* // ...
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
24
45
|
*/
|
|
25
46
|
list(query = {}, options) {
|
|
26
47
|
return this._client.getAPIList('/v1/commerce/features', (CursorIDPage), { query, ...options });
|
|
27
48
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Deletes a feature. This will also remove all product attachments for this
|
|
30
|
-
* feature.
|
|
31
|
-
*/
|
|
32
|
-
delete(featureID, options) {
|
|
33
|
-
return this._client.delete(path `/v1/commerce/features/${featureID}`, {
|
|
34
|
-
...options,
|
|
35
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
49
|
/**
|
|
39
50
|
* Retrieves a feature by ID.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const feature = await client.commerce.features.get(
|
|
55
|
+
* 'feature_id',
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
40
58
|
*/
|
|
41
59
|
get(featureID, options) {
|
|
42
60
|
return this._client.get(path `/v1/commerce/features/${featureID}`, options);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.mjs","sourceRoot":"","sources":["../../src/resources/commerce/features.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAwC;OAEtD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,SAAiB,EACjB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,yBAAyB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAA,YAAqB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,SAAiB,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Commerce, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce.mjs";
|
|
2
2
|
export { Coupons, type Coupon, type CouponCreateParams, type CouponUpdateParams, type CouponListParams, type CouponsCursorIDPage, } from "./coupons.mjs";
|
|
3
|
-
export { Customers, type Customer, type CustomerAddress, type CustomerBillingPortalResponse, type CustomerGetResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerBillingPortalParams, type CustomersCursorIDPage, } from "./customers.mjs";
|
|
3
|
+
export { Customers, type Customer, type CustomerAddress, type CustomerBillingPortalResponse, type CustomerGetResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerBillingPortalParams, type CustomersCursorIDPage, } from "./customers/index.mjs";
|
|
4
4
|
export { Features, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type FeatureListParams, type FeaturesCursorIDPage, } from "./features.mjs";
|
|
5
5
|
export { Products, type Product, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, type ProductsCursorIDPage, } from "./products/index.mjs";
|
|
6
|
+
export { SubscriptionGroups } from "./subscription-groups.mjs";
|
|
6
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/commerce/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,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,GAC3B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EAAE,kBAAkB,EAAE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Commerce, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce.js";
|
|
2
2
|
export { Coupons, type Coupon, type CouponCreateParams, type CouponUpdateParams, type CouponListParams, type CouponsCursorIDPage, } from "./coupons.js";
|
|
3
|
-
export { Customers, type Customer, type CustomerAddress, type CustomerBillingPortalResponse, type CustomerGetResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerBillingPortalParams, type CustomersCursorIDPage, } from "./customers.js";
|
|
3
|
+
export { Customers, type Customer, type CustomerAddress, type CustomerBillingPortalResponse, type CustomerGetResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerBillingPortalParams, type CustomersCursorIDPage, } from "./customers/index.js";
|
|
4
4
|
export { Features, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type FeatureListParams, type FeaturesCursorIDPage, } from "./features.js";
|
|
5
5
|
export { Products, type Product, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, type ProductsCursorIDPage, } from "./products/index.js";
|
|
6
|
+
export { SubscriptionGroups } from "./subscription-groups.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/commerce/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,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,GAC3B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EAAE,kBAAkB,EAAE"}
|
|
@@ -1,15 +1,17 @@
|
|
|
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.Products = exports.Features = exports.Customers = exports.Coupons = exports.Commerce = void 0;
|
|
4
|
+
exports.SubscriptionGroups = exports.Products = exports.Features = exports.Customers = exports.Coupons = exports.Commerce = void 0;
|
|
5
5
|
var commerce_1 = require("./commerce.js");
|
|
6
6
|
Object.defineProperty(exports, "Commerce", { enumerable: true, get: function () { return commerce_1.Commerce; } });
|
|
7
7
|
var coupons_1 = require("./coupons.js");
|
|
8
8
|
Object.defineProperty(exports, "Coupons", { enumerable: true, get: function () { return coupons_1.Coupons; } });
|
|
9
|
-
var
|
|
10
|
-
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return
|
|
9
|
+
var index_1 = require("./customers/index.js");
|
|
10
|
+
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return index_1.Customers; } });
|
|
11
11
|
var features_1 = require("./features.js");
|
|
12
12
|
Object.defineProperty(exports, "Features", { enumerable: true, get: function () { return features_1.Features; } });
|
|
13
|
-
var
|
|
14
|
-
Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return
|
|
13
|
+
var index_2 = require("./products/index.js");
|
|
14
|
+
Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return index_2.Products; } });
|
|
15
|
+
var subscription_groups_1 = require("./subscription-groups.js");
|
|
16
|
+
Object.defineProperty(exports, "SubscriptionGroups", { enumerable: true, get: function () { return subscription_groups_1.SubscriptionGroups; } });
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/commerce/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,8CAW2B;AAVzB,kGAAA,SAAS,OAAA;AAWX,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,6CAO0B;AANxB,iGAAA,QAAQ,OAAA;AAOV,gEAA2D;AAAlD,yHAAA,kBAAkB,OAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Commerce, } from "./commerce.mjs";
|
|
3
3
|
export { Coupons, } from "./coupons.mjs";
|
|
4
|
-
export { Customers, } from "./customers.mjs";
|
|
4
|
+
export { Customers, } from "./customers/index.mjs";
|
|
5
5
|
export { Features, } from "./features.mjs";
|
|
6
6
|
export { Products, } from "./products/index.mjs";
|
|
7
|
+
export { SubscriptionGroups } from "./subscription-groups.mjs";
|
|
7
8
|
//# sourceMappingURL=index.mjs.map
|