@stigg/typescript 0.1.0-beta.64 → 0.1.0-beta.66
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 +29 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +59 -0
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +59 -0
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +59 -0
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +59 -0
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +31 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +31 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +31 -0
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +31 -0
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/contracts.d.mts +30 -0
- package/resources/v1/contracts.d.mts.map +1 -1
- package/resources/v1/contracts.d.ts +30 -0
- package/resources/v1/contracts.d.ts.map +1 -1
- package/resources/v1/contracts.js +30 -0
- package/resources/v1/contracts.js.map +1 -1
- package/resources/v1/contracts.mjs +30 -0
- package/resources/v1/contracts.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +36 -0
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +36 -0
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +36 -0
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +36 -0
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/consumption.d.mts +26 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -1
- package/resources/v1/credits/consumption.d.ts +26 -0
- package/resources/v1/credits/consumption.d.ts.map +1 -1
- package/resources/v1/credits/consumption.js +26 -0
- package/resources/v1/credits/consumption.js.map +1 -1
- package/resources/v1/credits/consumption.mjs +26 -0
- package/resources/v1/credits/consumption.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +25 -0
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +25 -0
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +25 -0
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +25 -0
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +49 -0
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +49 -0
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +49 -0
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +49 -0
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +28 -0
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +28 -0
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +28 -0
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +28 -0
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/reservations.d.mts +10 -0
- package/resources/v1/credits/reservations.d.mts.map +1 -1
- package/resources/v1/credits/reservations.d.ts +10 -0
- package/resources/v1/credits/reservations.d.ts.map +1 -1
- package/resources/v1/credits/reservations.js +10 -0
- package/resources/v1/credits/reservations.js.map +1 -1
- package/resources/v1/credits/reservations.mjs +10 -0
- package/resources/v1/credits/reservations.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +198 -7
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +198 -7
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +106 -6
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +106 -6
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/entities/entities.d.mts +332 -0
- package/resources/v1/customers/entities/entities.d.mts.map +1 -0
- package/resources/v1/customers/entities/entities.d.ts +332 -0
- package/resources/v1/customers/entities/entities.d.ts.map +1 -0
- package/resources/v1/customers/entities/entities.js +139 -0
- package/resources/v1/customers/entities/entities.js.map +1 -0
- package/resources/v1/customers/entities/entities.mjs +134 -0
- package/resources/v1/customers/entities/entities.mjs.map +1 -0
- package/resources/v1/customers/entities/entitlements.d.mts +260 -0
- package/resources/v1/customers/entities/entitlements.d.mts.map +1 -0
- package/resources/v1/customers/entities/entitlements.d.ts +260 -0
- package/resources/v1/customers/entities/entitlements.d.ts.map +1 -0
- package/resources/v1/customers/entities/entitlements.js +87 -0
- package/resources/v1/customers/entities/entitlements.js.map +1 -0
- package/resources/v1/customers/entities/entitlements.mjs +83 -0
- package/resources/v1/customers/entities/entitlements.mjs.map +1 -0
- package/resources/v1/customers/entities/index.d.mts +3 -0
- package/resources/v1/customers/entities/index.d.mts.map +1 -0
- package/resources/v1/customers/entities/index.d.ts +3 -0
- package/resources/v1/customers/entities/index.d.ts.map +1 -0
- package/resources/v1/customers/entities/index.js +9 -0
- package/resources/v1/customers/entities/index.js.map +1 -0
- package/resources/v1/customers/entities/index.mjs +4 -0
- package/resources/v1/customers/entities/index.mjs.map +1 -0
- package/resources/v1/customers/entities.d.mts +2 -0
- package/resources/v1/customers/entities.d.mts.map +1 -0
- package/resources/v1/customers/entities.d.ts +2 -0
- package/resources/v1/customers/entities.d.ts.map +1 -0
- package/resources/v1/customers/entities.js +6 -0
- package/resources/v1/customers/entities.js.map +1 -0
- package/resources/v1/customers/entities.mjs +3 -0
- package/resources/v1/customers/entities.mjs.map +1 -0
- package/resources/v1/customers/index.d.mts +1 -0
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +1 -0
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +3 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -0
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +47 -0
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +47 -0
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +47 -0
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +47 -0
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +16 -0
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +16 -0
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +16 -0
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +16 -0
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +51 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +51 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/entity-types.d.mts +291 -0
- package/resources/v1/entity-types.d.mts.map +1 -0
- package/resources/v1/entity-types.d.ts +291 -0
- package/resources/v1/entity-types.d.ts.map +1 -0
- package/resources/v1/entity-types.js +128 -0
- package/resources/v1/entity-types.js.map +1 -0
- package/resources/v1/entity-types.mjs +124 -0
- package/resources/v1/entity-types.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +8 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -1
- package/resources/v1/events/beta/customers.d.ts +8 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -1
- package/resources/v1/events/beta/customers.js +8 -0
- package/resources/v1/events/beta/customers.js.map +1 -1
- package/resources/v1/events/beta/customers.mjs +8 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -1
- package/resources/v1/events/data-export/data-export.d.mts +12 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
- package/resources/v1/events/data-export/data-export.d.ts +12 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
- package/resources/v1/events/data-export/data-export.js +12 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -1
- package/resources/v1/events/data-export/data-export.mjs +12 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +26 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +26 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +26 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +26 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +21 -0
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +21 -0
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +21 -0
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +21 -0
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +43 -0
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +43 -0
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +43 -0
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +43 -0
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -0
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -0
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +31 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +31 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +31 -0
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +31 -0
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +69 -0
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +69 -0
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +69 -0
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +69 -0
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +43 -0
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +43 -0
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +43 -0
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +43 -0
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +16 -0
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +16 -0
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +16 -0
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +16 -0
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +6 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +6 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +6 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +6 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +81 -0
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +81 -0
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +13 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +13 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +13 -0
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +13 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +20 -0
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +20 -0
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +20 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +20 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -0
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -0
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +12 -33
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.ts +12 -33
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1-beta/customers/assignments.js +7 -33
- package/resources/v1-beta/customers/assignments.js.map +1 -1
- package/resources/v1-beta/customers/assignments.mjs +7 -33
- package/resources/v1-beta/customers/assignments.mjs.map +1 -1
- package/resources/v1-beta/customers/entities.d.mts +18 -55
- package/resources/v1-beta/customers/entities.d.mts.map +1 -1
- package/resources/v1-beta/customers/entities.d.ts +18 -55
- package/resources/v1-beta/customers/entities.d.ts.map +1 -1
- package/resources/v1-beta/customers/entities.js +18 -55
- package/resources/v1-beta/customers/entities.js.map +1 -1
- package/resources/v1-beta/customers/entities.mjs +18 -55
- package/resources/v1-beta/customers/entities.mjs.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.mts +7 -10
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.ts +7 -10
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v1-beta/customers/entitlements.js +2 -5
- package/resources/v1-beta/customers/entitlements.js.map +1 -1
- package/resources/v1-beta/customers/entitlements.mjs +2 -5
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -1
- package/resources/v1-beta/entity-types.d.mts +18 -28
- package/resources/v1-beta/entity-types.d.mts.map +1 -1
- package/resources/v1-beta/entity-types.d.ts +18 -28
- package/resources/v1-beta/entity-types.d.ts.map +1 -1
- package/resources/v1-beta/entity-types.js +6 -28
- package/resources/v1-beta/entity-types.js.map +1 -1
- package/resources/v1-beta/entity-types.mjs +6 -28
- package/resources/v1-beta/entity-types.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +59 -0
- package/src/resources/v1/addons/entitlements.ts +31 -0
- package/src/resources/v1/contracts.ts +30 -0
- package/src/resources/v1/coupons.ts +36 -0
- package/src/resources/v1/credits/consumption.ts +26 -0
- package/src/resources/v1/credits/credits.ts +25 -0
- package/src/resources/v1/credits/custom-currencies.ts +49 -0
- package/src/resources/v1/credits/grants.ts +28 -0
- package/src/resources/v1/credits/reservations.ts +10 -0
- package/src/resources/v1/customers/customers.ts +237 -7
- package/src/resources/v1/customers/entities/entities.ts +470 -0
- package/src/resources/v1/customers/entities/entitlements.ts +347 -0
- package/src/resources/v1/customers/entities/index.ts +22 -0
- package/src/resources/v1/customers/entities.ts +3 -0
- package/src/resources/v1/customers/index.ts +12 -0
- package/src/resources/v1/customers/integrations.ts +47 -0
- package/src/resources/v1/customers/payment-method.ts +16 -0
- package/src/resources/v1/customers/promotional-entitlements.ts +51 -0
- package/src/resources/v1/entity-types.ts +402 -0
- package/src/resources/v1/events/beta/customers.ts +8 -0
- package/src/resources/v1/events/data-export/data-export.ts +12 -0
- package/src/resources/v1/events/data-export/destinations.ts +26 -0
- package/src/resources/v1/events/events.ts +21 -0
- package/src/resources/v1/features.ts +43 -0
- package/src/resources/v1/index.ts +12 -0
- package/src/resources/v1/plans/entitlements.ts +31 -0
- package/src/resources/v1/plans/plans.ts +69 -0
- package/src/resources/v1/products.ts +43 -0
- package/src/resources/v1/subscriptions/future-update.ts +16 -0
- package/src/resources/v1/subscriptions/invoice.ts +6 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +81 -0
- package/src/resources/v1/subscriptions/usage.ts +13 -0
- package/src/resources/v1/usage.ts +20 -0
- package/src/resources/v1/v1.ts +28 -0
- package/src/resources/v1-beta/customers/assignments.ts +12 -33
- package/src/resources/v1-beta/customers/entities.ts +18 -55
- package/src/resources/v1-beta/customers/entitlements.ts +7 -10
- package/src/resources/v1-beta/entity-types.ts +21 -28
- 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
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
3
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
5
|
+
export declare class Entitlements extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Returns a cursor-paginated list of entity entitlements for the given customer.
|
|
8
|
+
* An entity entitlement ties an entity to a feature or currency with a usage limit
|
|
9
|
+
* and reset cadence.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const entitlementListResponse of client.v1.customers.entities.entitlements.list(
|
|
15
|
+
* 'id',
|
|
16
|
+
* )) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(id: string, params?: EntitlementListParams | null | undefined, options?: RequestOptions): PagePromise<EntitlementListResponsesMyCursorIDPage, EntitlementListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Batched create-or-update of entity entitlements. Existing entity entitlements
|
|
24
|
+
* matched by (entityId, featureId or currencyId, scopeEntityIds) are updated; new
|
|
25
|
+
* ones are created. On update, omitted fields (usageLimit, cadence) are preserved;
|
|
26
|
+
* on create both are required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response =
|
|
31
|
+
* await client.v1.customers.entities.entitlements.upsert(
|
|
32
|
+
* 'id',
|
|
33
|
+
* {
|
|
34
|
+
* entityEntitlements: [
|
|
35
|
+
* {
|
|
36
|
+
* entityId: 'workspace-001',
|
|
37
|
+
* featureId: 'compute-minutes',
|
|
38
|
+
* usageLimit: 1000,
|
|
39
|
+
* cadence: 'P1M',
|
|
40
|
+
* },
|
|
41
|
+
* {
|
|
42
|
+
* entityId: 'workspace-002',
|
|
43
|
+
* currencyId: 'cred-type-tokens',
|
|
44
|
+
* usageLimit: 2000,
|
|
45
|
+
* cadence: 'P1M',
|
|
46
|
+
* parentId: 'workspace-001',
|
|
47
|
+
* scopeEntityIds: ['user-1'],
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
upsert(id: string, params: EntitlementUpsertParams, options?: RequestOptions): APIPromise<EntitlementUpsertResponse>;
|
|
55
|
+
}
|
|
56
|
+
export type EntitlementListResponsesMyCursorIDPage = MyCursorIDPage<EntitlementListResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* An entity entitlement for an entity belonging to a customer. Defines how much of
|
|
59
|
+
* the feature or currency the entity may consume (`usageLimit`) and how often the
|
|
60
|
+
* counter resets (`cadence`).
|
|
61
|
+
*/
|
|
62
|
+
export interface EntitlementListResponse {
|
|
63
|
+
/**
|
|
64
|
+
* Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
/**
|
|
68
|
+
* Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
|
|
69
|
+
* `PT1M`.
|
|
70
|
+
*/
|
|
71
|
+
cadence: string;
|
|
72
|
+
/**
|
|
73
|
+
* Timestamp of when the record was created
|
|
74
|
+
*/
|
|
75
|
+
createdAt: string;
|
|
76
|
+
/**
|
|
77
|
+
* The entity ID this entity entitlement is attached to
|
|
78
|
+
*/
|
|
79
|
+
entityId: string;
|
|
80
|
+
/**
|
|
81
|
+
* Parent entity ID in the hierarchy, or `null` for a root.
|
|
82
|
+
*/
|
|
83
|
+
parentId: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Dimension-scoped sub-limit key: the set of entity IDs this limit applies to.
|
|
86
|
+
* Empty is the node-wide limit that always matches; a non-empty set only applies
|
|
87
|
+
* when every listed entity is present in the resolved set (order-insensitive).
|
|
88
|
+
*/
|
|
89
|
+
scopeEntityIds: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Timestamp of when the record was last updated
|
|
92
|
+
*/
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* Maximum usage allowed within one cadence window
|
|
96
|
+
*/
|
|
97
|
+
usageLimit: number | null;
|
|
98
|
+
/**
|
|
99
|
+
* Currency ID this entity entitlement grants (present when it grants a credit
|
|
100
|
+
* currency).
|
|
101
|
+
*/
|
|
102
|
+
currencyId?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Feature ID this entity entitlement grants (present when it grants a feature).
|
|
105
|
+
*/
|
|
106
|
+
featureId?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Entity entitlements after upsert.
|
|
110
|
+
*/
|
|
111
|
+
export interface EntitlementUpsertResponse {
|
|
112
|
+
data: Array<EntitlementUpsertResponse.Data>;
|
|
113
|
+
}
|
|
114
|
+
export declare namespace EntitlementUpsertResponse {
|
|
115
|
+
/**
|
|
116
|
+
* An entity entitlement for an entity belonging to a customer. Defines how much of
|
|
117
|
+
* the feature or currency the entity may consume (`usageLimit`) and how often the
|
|
118
|
+
* counter resets (`cadence`).
|
|
119
|
+
*/
|
|
120
|
+
interface Data {
|
|
121
|
+
/**
|
|
122
|
+
* Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
123
|
+
*/
|
|
124
|
+
id: string;
|
|
125
|
+
/**
|
|
126
|
+
* Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
|
|
127
|
+
* `PT1M`.
|
|
128
|
+
*/
|
|
129
|
+
cadence: string;
|
|
130
|
+
/**
|
|
131
|
+
* Timestamp of when the record was created
|
|
132
|
+
*/
|
|
133
|
+
createdAt: string;
|
|
134
|
+
/**
|
|
135
|
+
* The entity ID this entity entitlement is attached to
|
|
136
|
+
*/
|
|
137
|
+
entityId: string;
|
|
138
|
+
/**
|
|
139
|
+
* Parent entity ID in the hierarchy, or `null` for a root.
|
|
140
|
+
*/
|
|
141
|
+
parentId: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* Dimension-scoped sub-limit key: the set of entity IDs this limit applies to.
|
|
144
|
+
* Empty is the node-wide limit that always matches; a non-empty set only applies
|
|
145
|
+
* when every listed entity is present in the resolved set (order-insensitive).
|
|
146
|
+
*/
|
|
147
|
+
scopeEntityIds: Array<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Timestamp of when the record was last updated
|
|
150
|
+
*/
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
/**
|
|
153
|
+
* Maximum usage allowed within one cadence window
|
|
154
|
+
*/
|
|
155
|
+
usageLimit: number | null;
|
|
156
|
+
/**
|
|
157
|
+
* Currency ID this entity entitlement grants (present when it grants a credit
|
|
158
|
+
* currency).
|
|
159
|
+
*/
|
|
160
|
+
currencyId?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Feature ID this entity entitlement grants (present when it grants a feature).
|
|
163
|
+
*/
|
|
164
|
+
featureId?: string;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
export interface EntitlementListParams extends MyCursorIDPageParams {
|
|
168
|
+
/**
|
|
169
|
+
* Query param: Filter entity entitlements to a specific currency, by its ID.
|
|
170
|
+
* Mutually exclusive with `featureId`.
|
|
171
|
+
*/
|
|
172
|
+
currencyId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Query param: Filter entity entitlements to a specific entity ID
|
|
175
|
+
*/
|
|
176
|
+
entityId?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Query param: Filter entity entitlements to a specific feature, by its ID.
|
|
179
|
+
* Mutually exclusive with `currencyId`.
|
|
180
|
+
*/
|
|
181
|
+
featureId?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
184
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
185
|
+
*/
|
|
186
|
+
'X-ACCOUNT-ID'?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
189
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
190
|
+
* intrinsic to the key).
|
|
191
|
+
*/
|
|
192
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface EntitlementUpsertParams {
|
|
195
|
+
/**
|
|
196
|
+
* Body param: Entity entitlements to upsert (1–100 per request)
|
|
197
|
+
*/
|
|
198
|
+
entityEntitlements: Array<EntitlementUpsertParams.EntityEntitlement>;
|
|
199
|
+
/**
|
|
200
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
201
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
202
|
+
*/
|
|
203
|
+
'X-ACCOUNT-ID'?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
206
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
207
|
+
* intrinsic to the key).
|
|
208
|
+
*/
|
|
209
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
210
|
+
}
|
|
211
|
+
export declare namespace EntitlementUpsertParams {
|
|
212
|
+
/**
|
|
213
|
+
* A single entity entitlement to create or update. Identify the feature or
|
|
214
|
+
* currency with exactly one of `featureId` or `currencyId`. The natural key is the
|
|
215
|
+
* `(entityId, featureId or currencyId, scopeEntityIds)` triple. On create both
|
|
216
|
+
* `usageLimit` and `cadence` are required; on update they may be omitted
|
|
217
|
+
* individually to preserve the existing value.
|
|
218
|
+
*/
|
|
219
|
+
interface EntityEntitlement {
|
|
220
|
+
/**
|
|
221
|
+
* The entity ID this entity entitlement is attached to
|
|
222
|
+
*/
|
|
223
|
+
entityId: string;
|
|
224
|
+
/**
|
|
225
|
+
* Usage-reset cadence (required on create) as an ISO-8601 single-unit duration,
|
|
226
|
+
* e.g. `P1M`, `P30D`, `PT1M`.
|
|
227
|
+
*/
|
|
228
|
+
cadence?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Currency ID this entity entitlement grants (credit limits). Mutually exclusive
|
|
231
|
+
* with `featureId`.
|
|
232
|
+
*/
|
|
233
|
+
currencyId?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Feature ID this entity entitlement grants. Mutually exclusive with `currencyId`.
|
|
236
|
+
*/
|
|
237
|
+
featureId?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Parent entity ID in the hierarchy. Omit to leave the current parent untouched (a
|
|
240
|
+
* new node defaults to a root); `null` detaches to a root; an ID sets or changes
|
|
241
|
+
* the parent. Reparenting or detaching an existing node is leaf-only; place a
|
|
242
|
+
* parent before its children, or in the same batch.
|
|
243
|
+
*/
|
|
244
|
+
parentId?: string | null;
|
|
245
|
+
/**
|
|
246
|
+
* Dimension-scoped sub-limit: the set of entity IDs this limit applies to
|
|
247
|
+
* (order-insensitive, unique, at most 5). Omit or leave empty for the node-wide
|
|
248
|
+
* limit.
|
|
249
|
+
*/
|
|
250
|
+
scopeEntityIds?: Array<string>;
|
|
251
|
+
/**
|
|
252
|
+
* Maximum usage allowed within one cadence window (required on create)
|
|
253
|
+
*/
|
|
254
|
+
usageLimit?: number | null;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
export declare namespace Entitlements {
|
|
258
|
+
export { type EntitlementListResponse as EntitlementListResponse, type EntitlementUpsertResponse as EntitlementUpsertResponse, type EntitlementListResponsesMyCursorIDPage as EntitlementListResponsesMyCursorIDPage, type EntitlementListParams as EntitlementListParams, type EntitlementUpsertParams as EntitlementUpsertParams, };
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=entitlements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/customers/entities/entitlements.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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.Entitlements = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
9
|
+
class Entitlements extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a cursor-paginated list of entity entitlements for the given customer.
|
|
12
|
+
* An entity entitlement ties an entity to a feature or currency with a usage limit
|
|
13
|
+
* and reset cadence.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // Automatically fetches more pages as needed.
|
|
18
|
+
* for await (const entitlementListResponse of client.v1.customers.entities.entitlements.list(
|
|
19
|
+
* 'id',
|
|
20
|
+
* )) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(id, params = {}, options) {
|
|
26
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
27
|
+
return this._client.getAPIList((0, path_1.path) `/api/v1/customers/${id}/entities/entitlements`, (pagination_1.MyCursorIDPage), {
|
|
28
|
+
query,
|
|
29
|
+
...options,
|
|
30
|
+
headers: (0, headers_1.buildHeaders)([
|
|
31
|
+
{
|
|
32
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
33
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
34
|
+
},
|
|
35
|
+
options?.headers,
|
|
36
|
+
]),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Batched create-or-update of entity entitlements. Existing entity entitlements
|
|
41
|
+
* matched by (entityId, featureId or currencyId, scopeEntityIds) are updated; new
|
|
42
|
+
* ones are created. On update, omitted fields (usageLimit, cadence) are preserved;
|
|
43
|
+
* on create both are required.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const response =
|
|
48
|
+
* await client.v1.customers.entities.entitlements.upsert(
|
|
49
|
+
* 'id',
|
|
50
|
+
* {
|
|
51
|
+
* entityEntitlements: [
|
|
52
|
+
* {
|
|
53
|
+
* entityId: 'workspace-001',
|
|
54
|
+
* featureId: 'compute-minutes',
|
|
55
|
+
* usageLimit: 1000,
|
|
56
|
+
* cadence: 'P1M',
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* entityId: 'workspace-002',
|
|
60
|
+
* currencyId: 'cred-type-tokens',
|
|
61
|
+
* usageLimit: 2000,
|
|
62
|
+
* cadence: 'P1M',
|
|
63
|
+
* parentId: 'workspace-001',
|
|
64
|
+
* scopeEntityIds: ['user-1'],
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
upsert(id, params, options) {
|
|
72
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
73
|
+
return this._client.put((0, path_1.path) `/api/v1/customers/${id}/entities/entitlements`, {
|
|
74
|
+
body,
|
|
75
|
+
...options,
|
|
76
|
+
headers: (0, headers_1.buildHeaders)([
|
|
77
|
+
{
|
|
78
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
79
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
80
|
+
},
|
|
81
|
+
options?.headers,
|
|
82
|
+
]),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.Entitlements = Entitlements;
|
|
87
|
+
//# sourceMappingURL=entitlements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../../src/resources/v1/customers/entities/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,+DAAqG;AACrG,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAU,EACV,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,EAAE,wBAAwB,EACnD,CAAA,2BAAuC,CAAA,EACvC;YACE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CACJ,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,wBAAwB,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAzFD,oCAyFC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import { MyCursorIDPage } from "../../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
6
|
+
export class Entitlements extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a cursor-paginated list of entity entitlements for the given customer.
|
|
9
|
+
* An entity entitlement ties an entity to a feature or currency with a usage limit
|
|
10
|
+
* and reset cadence.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // Automatically fetches more pages as needed.
|
|
15
|
+
* for await (const entitlementListResponse of client.v1.customers.entities.entitlements.list(
|
|
16
|
+
* 'id',
|
|
17
|
+
* )) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(id, params = {}, options) {
|
|
23
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
24
|
+
return this._client.getAPIList(path `/api/v1/customers/${id}/entities/entitlements`, (MyCursorIDPage), {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
headers: buildHeaders([
|
|
28
|
+
{
|
|
29
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
30
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
31
|
+
},
|
|
32
|
+
options?.headers,
|
|
33
|
+
]),
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Batched create-or-update of entity entitlements. Existing entity entitlements
|
|
38
|
+
* matched by (entityId, featureId or currencyId, scopeEntityIds) are updated; new
|
|
39
|
+
* ones are created. On update, omitted fields (usageLimit, cadence) are preserved;
|
|
40
|
+
* on create both are required.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response =
|
|
45
|
+
* await client.v1.customers.entities.entitlements.upsert(
|
|
46
|
+
* 'id',
|
|
47
|
+
* {
|
|
48
|
+
* entityEntitlements: [
|
|
49
|
+
* {
|
|
50
|
+
* entityId: 'workspace-001',
|
|
51
|
+
* featureId: 'compute-minutes',
|
|
52
|
+
* usageLimit: 1000,
|
|
53
|
+
* cadence: 'P1M',
|
|
54
|
+
* },
|
|
55
|
+
* {
|
|
56
|
+
* entityId: 'workspace-002',
|
|
57
|
+
* currencyId: 'cred-type-tokens',
|
|
58
|
+
* usageLimit: 2000,
|
|
59
|
+
* cadence: 'P1M',
|
|
60
|
+
* parentId: 'workspace-001',
|
|
61
|
+
* scopeEntityIds: ['user-1'],
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* },
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
upsert(id, params, options) {
|
|
69
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
70
|
+
return this._client.put(path `/api/v1/customers/${id}/entities/entitlements`, {
|
|
71
|
+
body,
|
|
72
|
+
...options,
|
|
73
|
+
headers: buildHeaders([
|
|
74
|
+
{
|
|
75
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
76
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
77
|
+
},
|
|
78
|
+
options?.headers,
|
|
79
|
+
]),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=entitlements.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/customers/entities/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAExD,OAAO,EAAE,cAAc,EAA0C,wCAAoC;AACrG,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAU,EACV,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,qBAAqB,EAAE,wBAAwB,EACnD,CAAA,cAAuC,CAAA,EACvC;YACE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CACJ,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,wBAAwB,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Entities, type EntityRetrieveResponse, type EntityListResponse, type EntityArchiveResponse, type EntityUpsertResponse, type EntityRetrieveParams, type EntityListParams, type EntityArchiveParams, type EntityUpsertParams, type EntityListResponsesMyCursorIDPage, } from "./entities.mjs";
|
|
2
|
+
export { Entitlements, type EntitlementListResponse, type EntitlementUpsertResponse, type EntitlementListParams, type EntitlementUpsertParams, type EntitlementListResponsesMyCursorIDPage, } from "./entitlements.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/customers/entities/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,uBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,2BAAuB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Entities, type EntityRetrieveResponse, type EntityListResponse, type EntityArchiveResponse, type EntityUpsertResponse, type EntityRetrieveParams, type EntityListParams, type EntityArchiveParams, type EntityUpsertParams, type EntityListResponsesMyCursorIDPage, } from "./entities.js";
|
|
2
|
+
export { Entitlements, type EntitlementListResponse, type EntitlementUpsertResponse, type EntitlementListParams, type EntitlementUpsertParams, type EntitlementListResponsesMyCursorIDPage, } from "./entitlements.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/customers/entities/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,sBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,0BAAuB"}
|
|
@@ -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.Entitlements = exports.Entities = void 0;
|
|
5
|
+
var entities_1 = require("./entities.js");
|
|
6
|
+
Object.defineProperty(exports, "Entities", { enumerable: true, get: function () { return entities_1.Entities; } });
|
|
7
|
+
var entitlements_1 = require("./entitlements.js");
|
|
8
|
+
Object.defineProperty(exports, "Entitlements", { enumerable: true, get: function () { return entitlements_1.Entitlements; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/v1/customers/entities/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,kDAOwB;AANtB,4GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/customers/entities/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAUT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAMb,2BAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/entities.ts"],"names":[],"mappings":"AAEA,qCAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/entities.ts"],"names":[],"mappings":"AAEA,oCAAiC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./entities/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/entities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/entities.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,qCAAiC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListContractsResponse, type CustomerListInvoicesResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerRetrieveParams, type CustomerUpdateParams, type CustomerListParams, type CustomerArchiveParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListContractsParams, type CustomerListInvoicesParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams, type CustomerListResponsesMyCursorIDPage, type CustomerListInvoicesResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.mjs";
|
|
2
|
+
export { Entities, type EntityRetrieveResponse, type EntityListResponse, type EntityArchiveResponse, type EntityUpsertResponse, type EntityRetrieveParams, type EntityListParams, type EntityArchiveParams, type EntityUpsertParams, type EntityListResponsesMyCursorIDPage, } from "./entities/index.mjs";
|
|
2
3
|
export { Integrations, type IntegrationListResponse, type IntegrationRetrieveParams, type IntegrationUpdateParams, type IntegrationListParams, type IntegrationLinkParams, type IntegrationUnlinkParams, type IntegrationListResponsesMyCursorIDPage, } from "./integrations.mjs";
|
|
3
4
|
export { PaymentMethod, type PaymentMethodAttachParams, type PaymentMethodDetachParams, } from "./payment-method.mjs";
|
|
4
5
|
export { PromotionalEntitlements, type PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse, type PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams, type PromotionalEntitlementListResponsesMyCursorIDPage, } from "./promotional-entitlements.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,KAAK,2CAA2C,EAChD,KAAK,4CAA4C,GAClD,wBAAoB;AACrB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,2BAAuB;AACxB,OAAO,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,6BAAyB;AAC1B,OAAO,EACL,uBAAuB,EACvB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,iDAAiD,GACvD,uCAAmC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,KAAK,2CAA2C,EAChD,KAAK,4CAA4C,GAClD,wBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,6BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,2BAAuB;AACxB,OAAO,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,6BAAyB;AAC1B,OAAO,EACL,uBAAuB,EACvB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,iDAAiD,GACvD,uCAAmC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListContractsResponse, type CustomerListInvoicesResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerRetrieveParams, type CustomerUpdateParams, type CustomerListParams, type CustomerArchiveParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListContractsParams, type CustomerListInvoicesParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams, type CustomerListResponsesMyCursorIDPage, type CustomerListInvoicesResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.js";
|
|
2
|
+
export { Entities, type EntityRetrieveResponse, type EntityListResponse, type EntityArchiveResponse, type EntityUpsertResponse, type EntityRetrieveParams, type EntityListParams, type EntityArchiveParams, type EntityUpsertParams, type EntityListResponsesMyCursorIDPage, } from "./entities/index.js";
|
|
2
3
|
export { Integrations, type IntegrationListResponse, type IntegrationRetrieveParams, type IntegrationUpdateParams, type IntegrationListParams, type IntegrationLinkParams, type IntegrationUnlinkParams, type IntegrationListResponsesMyCursorIDPage, } from "./integrations.js";
|
|
3
4
|
export { PaymentMethod, type PaymentMethodAttachParams, type PaymentMethodDetachParams, } from "./payment-method.js";
|
|
4
5
|
export { PromotionalEntitlements, type PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse, type PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams, type PromotionalEntitlementListResponsesMyCursorIDPage, } from "./promotional-entitlements.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,KAAK,2CAA2C,EAChD,KAAK,4CAA4C,GAClD,uBAAoB;AACrB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,0BAAuB;AACxB,OAAO,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,4BAAyB;AAC1B,OAAO,EACL,uBAAuB,EACvB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,iDAAiD,GACvD,sCAAmC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,KAAK,2CAA2C,EAChD,KAAK,4CAA4C,GAClD,uBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,4BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,0BAAuB;AACxB,OAAO,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,4BAAyB;AAC1B,OAAO,EACL,uBAAuB,EACvB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,iDAAiD,GACvD,sCAAmC"}
|
|
@@ -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.PromotionalEntitlements = exports.PaymentMethod = exports.Integrations = exports.Customers = void 0;
|
|
4
|
+
exports.PromotionalEntitlements = exports.PaymentMethod = exports.Integrations = exports.Entities = exports.Customers = void 0;
|
|
5
5
|
var customers_1 = require("./customers.js");
|
|
6
6
|
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
7
|
+
var index_1 = require("./entities/index.js");
|
|
8
|
+
Object.defineProperty(exports, "Entities", { enumerable: true, get: function () { return index_1.Entities; } });
|
|
7
9
|
var integrations_1 = require("./integrations.js");
|
|
8
10
|
Object.defineProperty(exports, "Integrations", { enumerable: true, get: function () { return integrations_1.Integrations; } });
|
|
9
11
|
var payment_method_1 = require("./payment-method.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CA0BqB;AAzBnB,sGAAA,SAAS,OAAA;AA0BX,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,sDAI0B;AAHxB,+GAAA,aAAa,OAAA;AAIf,0EASoC;AARlC,mIAAA,uBAAuB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CA0BqB;AAzBnB,sGAAA,SAAS,OAAA;AA0BX,6CAW0B;AAVxB,iGAAA,QAAQ,OAAA;AAWV,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,sDAI0B;AAHxB,+GAAA,aAAa,OAAA;AAIf,0EASoC;AARlC,mIAAA,uBAAuB,OAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Customers, } from "./customers.mjs";
|
|
3
|
+
export { Entities, } from "./entities/index.mjs";
|
|
3
4
|
export { Integrations, } from "./integrations.mjs";
|
|
4
5
|
export { PaymentMethod, } from "./payment-method.mjs";
|
|
5
6
|
export { PromotionalEntitlements, } from "./promotional-entitlements.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAyBV,wBAAoB;AACrB,OAAO,EACL,YAAY,GAQb,2BAAuB;AACxB,OAAO,EACL,aAAa,GAGd,6BAAyB;AAC1B,OAAO,EACL,uBAAuB,GAQxB,uCAAmC"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAyBV,wBAAoB;AACrB,OAAO,EACL,QAAQ,GAUT,6BAAyB;AAC1B,OAAO,EACL,YAAY,GAQb,2BAAuB;AACxB,OAAO,EACL,aAAa,GAGd,6BAAyB;AAC1B,OAAO,EACL,uBAAuB,GAQxB,uCAAmC"}
|