@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.21
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 +8 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +143 -33
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +143 -33
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -17
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -17
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +62 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +62 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +59 -26
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +59 -26
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +165 -48
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +165 -48
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +64 -9
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +64 -9
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +31 -7
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +31 -7
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/beta/customers/assignments.d.mts +27 -5
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/assignments.d.ts +27 -5
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/assignments.js +27 -4
- package/resources/v1/events/beta/customers/assignments.js.map +1 -1
- package/resources/v1/events/beta/customers/assignments.mjs +27 -4
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -1
- package/resources/v1/events/beta/customers/entities.d.mts +66 -10
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/entities.d.ts +66 -10
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/entities.js +64 -10
- package/resources/v1/events/beta/customers/entities.js.map +1 -1
- package/resources/v1/events/beta/customers/entities.mjs +64 -10
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.d.mts +23 -10
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.d.ts +23 -10
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.js +14 -2
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.mjs +14 -2
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -1
- package/resources/v1/events/beta/entity-types.d.mts +25 -3
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -1
- package/resources/v1/events/beta/entity-types.d.ts +25 -3
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -1
- package/resources/v1/events/beta/entity-types.js +23 -3
- package/resources/v1/events/beta/entity-types.js.map +1 -1
- package/resources/v1/events/beta/entity-types.mjs +23 -3
- package/resources/v1/events/beta/entity-types.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +13 -2
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +13 -2
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +14 -2
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +14 -2
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +7 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +7 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +62 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +62 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +156 -34
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +156 -34
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -20
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -20
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +242 -78
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +242 -78
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +24 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +14 -14
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +14 -14
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +286 -39
- package/src/resources/v1/addons/entitlements.ts +123 -10
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/credits.ts +102 -24
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +318 -57
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +129 -16
- package/src/resources/v1/customers/payment-method.ts +66 -9
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/customers/assignments.ts +56 -7
- package/src/resources/v1/events/beta/customers/entities.ts +136 -16
- package/src/resources/v1/events/beta/customers/entitlements.ts +38 -11
- package/src/resources/v1/events/beta/entity-types.ts +51 -5
- package/src/resources/v1/events/events.ts +28 -3
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +19 -0
- package/src/resources/v1/plans/entitlements.ts +123 -10
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +314 -43
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +410 -85
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +53 -5
- package/src/resources/v1/v1.ts +38 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAQL,YAAY,GACb,2BAAuB;AACxB,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAQL,YAAY,GACb,2BAAuB;AACxB,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAAE,aAAa,EAAwD,6BAAyB;AACvG,OAAO,KAAK,0BAA0B,uCAAmC;AACzE,OAAO,EAQL,uBAAuB,GACxB,uCAAmC;AAEpC,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,4BAAuB,GACrB,IAAI,0BAA0B,CAAC,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgT9F,CAAC;IA9SC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,cAAc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AO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAugGD,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC;AACxC,SAAS,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;AAC5D,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerUpdateParams, type CustomerListParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.mjs";
|
|
1
|
+
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerRetrieveParams, type CustomerUpdateParams, type CustomerListParams, type CustomerArchiveParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.mjs";
|
|
2
2
|
export { Integrations, type IntegrationListResponse, type IntegrationRetrieveParams, type IntegrationUpdateParams, type IntegrationListParams, type IntegrationLinkParams, type IntegrationUnlinkParams, type IntegrationListResponsesMyCursorIDPage, } from "./integrations.mjs";
|
|
3
|
-
export { PaymentMethod, type PaymentMethodAttachParams } from "./payment-method.mjs";
|
|
3
|
+
export { PaymentMethod, type PaymentMethodAttachParams, type PaymentMethodDetachParams, } from "./payment-method.mjs";
|
|
4
4
|
export { PromotionalEntitlements, type PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse, type PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams, type PromotionalEntitlementListResponsesMyCursorIDPage, } from "./promotional-entitlements.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -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,oCAAoC,EACzC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,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,
|
|
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,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,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,5 +1,5 @@
|
|
|
1
|
-
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerUpdateParams, type CustomerListParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.js";
|
|
1
|
+
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerRetrieveParams, type CustomerUpdateParams, type CustomerListParams, type CustomerArchiveParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.js";
|
|
2
2
|
export { Integrations, type IntegrationListResponse, type IntegrationRetrieveParams, type IntegrationUpdateParams, type IntegrationListParams, type IntegrationLinkParams, type IntegrationUnlinkParams, type IntegrationListResponsesMyCursorIDPage, } from "./integrations.js";
|
|
3
|
-
export { PaymentMethod, type PaymentMethodAttachParams } from "./payment-method.js";
|
|
3
|
+
export { PaymentMethod, type PaymentMethodAttachParams, type PaymentMethodDetachParams, } from "./payment-method.js";
|
|
4
4
|
export { PromotionalEntitlements, type PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse, type PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams, type PromotionalEntitlementListResponsesMyCursorIDPage, } from "./promotional-entitlements.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,oCAAoC,EACzC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,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,
|
|
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,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAqBqB;AApBnB,sGAAA,SAAS,OAAA;AAqBX,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,sDAI0B;AAHxB,+GAAA,aAAa,OAAA;AAIf,0EASoC;AARlC,mIAAA,uBAAuB,OAAA"}
|
|
@@ -1,6 +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
3
|
export { Integrations, } from "./integrations.mjs";
|
|
4
|
-
export { PaymentMethod } from "./payment-method.mjs";
|
|
4
|
+
export { PaymentMethod, } from "./payment-method.mjs";
|
|
5
5
|
export { PromotionalEntitlements, } from "./promotional-entitlements.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAoBV,wBAAoB;AACrB,OAAO,EACL,YAAY,GAQb,2BAAuB;AACxB,OAAO,EACL,aAAa,GAGd,6BAAyB;AAC1B,OAAO,EACL,uBAAuB,GAQxB,uCAAmC"}
|
|
@@ -45,7 +45,7 @@ export declare class Integrations extends APIResource {
|
|
|
45
45
|
* }
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
list(id: string,
|
|
48
|
+
list(id: string, params?: IntegrationListParams | null | undefined, options?: RequestOptions): PagePromise<IntegrationListResponsesMyCursorIDPage, IntegrationListResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* Links a customer to an external integration by specifying the vendor and
|
|
51
51
|
* external entity ID.
|
|
@@ -60,7 +60,7 @@ export declare class Integrations extends APIResource {
|
|
|
60
60
|
* });
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
|
-
link(id: string,
|
|
63
|
+
link(id: string, params: IntegrationLinkParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerIntegrationResponse>;
|
|
64
64
|
/**
|
|
65
65
|
* Removes the link between a customer and an external integration.
|
|
66
66
|
*
|
|
@@ -142,9 +142,20 @@ export declare namespace IntegrationListResponse {
|
|
|
142
142
|
}
|
|
143
143
|
export interface IntegrationRetrieveParams {
|
|
144
144
|
/**
|
|
145
|
-
* Customer slug
|
|
145
|
+
* Path param: Customer slug
|
|
146
146
|
*/
|
|
147
147
|
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
150
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
151
|
+
*/
|
|
152
|
+
'X-ACCOUNT-ID'?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
155
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
156
|
+
* intrinsic to the key).
|
|
157
|
+
*/
|
|
158
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
148
159
|
}
|
|
149
160
|
export interface IntegrationUpdateParams {
|
|
150
161
|
/**
|
|
@@ -155,33 +166,77 @@ export interface IntegrationUpdateParams {
|
|
|
155
166
|
* Body param: Synced entity id
|
|
156
167
|
*/
|
|
157
168
|
syncedEntityId: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
171
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
172
|
+
*/
|
|
173
|
+
'X-ACCOUNT-ID'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
176
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
177
|
+
* intrinsic to the key).
|
|
178
|
+
*/
|
|
179
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
158
180
|
}
|
|
159
181
|
export interface IntegrationListParams extends MyCursorIDPageParams {
|
|
160
182
|
/**
|
|
161
|
-
* Filter by vendor identifier. Supports comma-separated values for
|
|
162
|
-
* vendors (e.g., STRIPE,HUBSPOT)
|
|
183
|
+
* Query param: Filter by vendor identifier. Supports comma-separated values for
|
|
184
|
+
* multiple vendors (e.g., STRIPE,HUBSPOT)
|
|
163
185
|
*/
|
|
164
186
|
vendorIdentifier?: Array<'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL'>;
|
|
187
|
+
/**
|
|
188
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
189
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
190
|
+
*/
|
|
191
|
+
'X-ACCOUNT-ID'?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
194
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
195
|
+
* intrinsic to the key).
|
|
196
|
+
*/
|
|
197
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
165
198
|
}
|
|
166
199
|
export interface IntegrationLinkParams {
|
|
167
200
|
/**
|
|
168
|
-
* Integration details
|
|
201
|
+
* Body param: Integration details
|
|
169
202
|
*/
|
|
170
203
|
id: string;
|
|
171
204
|
/**
|
|
172
|
-
* Synced entity id
|
|
205
|
+
* Body param: Synced entity id
|
|
173
206
|
*/
|
|
174
207
|
syncedEntityId: string;
|
|
175
208
|
/**
|
|
176
|
-
* The vendor identifier of integration
|
|
209
|
+
* Body param: The vendor identifier of integration
|
|
177
210
|
*/
|
|
178
211
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL';
|
|
212
|
+
/**
|
|
213
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
214
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
215
|
+
*/
|
|
216
|
+
'X-ACCOUNT-ID'?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
219
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
220
|
+
* intrinsic to the key).
|
|
221
|
+
*/
|
|
222
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
179
223
|
}
|
|
180
224
|
export interface IntegrationUnlinkParams {
|
|
181
225
|
/**
|
|
182
|
-
* Customer slug
|
|
226
|
+
* Path param: Customer slug
|
|
183
227
|
*/
|
|
184
228
|
id: string;
|
|
229
|
+
/**
|
|
230
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
231
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
232
|
+
*/
|
|
233
|
+
'X-ACCOUNT-ID'?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
236
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
237
|
+
* intrinsic to the key).
|
|
238
|
+
*/
|
|
239
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
185
240
|
}
|
|
186
241
|
export declare namespace Integrations {
|
|
187
242
|
export { type IntegrationListResponse as IntegrationListResponse, type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage, type IntegrationRetrieveParams as IntegrationRetrieveParams, type IntegrationUpdateParams as IntegrationUpdateParams, type IntegrationListParams as IntegrationListParams, type IntegrationLinkParams as IntegrationLinkParams, type IntegrationUnlinkParams as IntegrationUnlinkParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;
|
|
1
|
+
{"version":3,"file":"integrations.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,2BAA2B,CAAC;IAcvD;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,2BAA2B,CAAC;IAevD;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sCAAsC,EAAE,uBAAuB,CAAC;IAmB/E;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YA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YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -45,7 +45,7 @@ export declare class Integrations extends APIResource {
|
|
|
45
45
|
* }
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
list(id: string,
|
|
48
|
+
list(id: string, params?: IntegrationListParams | null | undefined, options?: RequestOptions): PagePromise<IntegrationListResponsesMyCursorIDPage, IntegrationListResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* Links a customer to an external integration by specifying the vendor and
|
|
51
51
|
* external entity ID.
|
|
@@ -60,7 +60,7 @@ export declare class Integrations extends APIResource {
|
|
|
60
60
|
* });
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
|
-
link(id: string,
|
|
63
|
+
link(id: string, params: IntegrationLinkParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerIntegrationResponse>;
|
|
64
64
|
/**
|
|
65
65
|
* Removes the link between a customer and an external integration.
|
|
66
66
|
*
|
|
@@ -142,9 +142,20 @@ export declare namespace IntegrationListResponse {
|
|
|
142
142
|
}
|
|
143
143
|
export interface IntegrationRetrieveParams {
|
|
144
144
|
/**
|
|
145
|
-
* Customer slug
|
|
145
|
+
* Path param: Customer slug
|
|
146
146
|
*/
|
|
147
147
|
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
150
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
151
|
+
*/
|
|
152
|
+
'X-ACCOUNT-ID'?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
155
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
156
|
+
* intrinsic to the key).
|
|
157
|
+
*/
|
|
158
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
148
159
|
}
|
|
149
160
|
export interface IntegrationUpdateParams {
|
|
150
161
|
/**
|
|
@@ -155,33 +166,77 @@ export interface IntegrationUpdateParams {
|
|
|
155
166
|
* Body param: Synced entity id
|
|
156
167
|
*/
|
|
157
168
|
syncedEntityId: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
171
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
172
|
+
*/
|
|
173
|
+
'X-ACCOUNT-ID'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
176
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
177
|
+
* intrinsic to the key).
|
|
178
|
+
*/
|
|
179
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
158
180
|
}
|
|
159
181
|
export interface IntegrationListParams extends MyCursorIDPageParams {
|
|
160
182
|
/**
|
|
161
|
-
* Filter by vendor identifier. Supports comma-separated values for
|
|
162
|
-
* vendors (e.g., STRIPE,HUBSPOT)
|
|
183
|
+
* Query param: Filter by vendor identifier. Supports comma-separated values for
|
|
184
|
+
* multiple vendors (e.g., STRIPE,HUBSPOT)
|
|
163
185
|
*/
|
|
164
186
|
vendorIdentifier?: Array<'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL'>;
|
|
187
|
+
/**
|
|
188
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
189
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
190
|
+
*/
|
|
191
|
+
'X-ACCOUNT-ID'?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
194
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
195
|
+
* intrinsic to the key).
|
|
196
|
+
*/
|
|
197
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
165
198
|
}
|
|
166
199
|
export interface IntegrationLinkParams {
|
|
167
200
|
/**
|
|
168
|
-
* Integration details
|
|
201
|
+
* Body param: Integration details
|
|
169
202
|
*/
|
|
170
203
|
id: string;
|
|
171
204
|
/**
|
|
172
|
-
* Synced entity id
|
|
205
|
+
* Body param: Synced entity id
|
|
173
206
|
*/
|
|
174
207
|
syncedEntityId: string;
|
|
175
208
|
/**
|
|
176
|
-
* The vendor identifier of integration
|
|
209
|
+
* Body param: The vendor identifier of integration
|
|
177
210
|
*/
|
|
178
211
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL';
|
|
212
|
+
/**
|
|
213
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
214
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
215
|
+
*/
|
|
216
|
+
'X-ACCOUNT-ID'?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
219
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
220
|
+
* intrinsic to the key).
|
|
221
|
+
*/
|
|
222
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
179
223
|
}
|
|
180
224
|
export interface IntegrationUnlinkParams {
|
|
181
225
|
/**
|
|
182
|
-
* Customer slug
|
|
226
|
+
* Path param: Customer slug
|
|
183
227
|
*/
|
|
184
228
|
id: string;
|
|
229
|
+
/**
|
|
230
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
231
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
232
|
+
*/
|
|
233
|
+
'X-ACCOUNT-ID'?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
236
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
237
|
+
* intrinsic to the key).
|
|
238
|
+
*/
|
|
239
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
185
240
|
}
|
|
186
241
|
export declare namespace Integrations {
|
|
187
242
|
export { type IntegrationListResponse as IntegrationListResponse, type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage, type IntegrationRetrieveParams as IntegrationRetrieveParams, type IntegrationUpdateParams as IntegrationUpdateParams, type IntegrationListParams as IntegrationListParams, type IntegrationLinkParams as IntegrationLinkParams, type IntegrationUnlinkParams as IntegrationUnlinkParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,YAAa,SAA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AAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,EACZ,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,SAAS,CAAC;IAEd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Integrations = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
8
|
const path_1 = require("../../../internal/utils/path.js");
|
|
8
9
|
class Integrations extends resource_1.APIResource {
|
|
9
10
|
/**
|
|
@@ -19,8 +20,17 @@ class Integrations extends resource_1.APIResource {
|
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
22
|
retrieve(integrationID, params, options) {
|
|
22
|
-
const { id } = params;
|
|
23
|
-
return this._client.get((0, path_1.path) `/api/v1/customers/${id}/integrations/${integrationID}`,
|
|
23
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
24
|
+
return this._client.get((0, path_1.path) `/api/v1/customers/${id}/integrations/${integrationID}`, {
|
|
25
|
+
...options,
|
|
26
|
+
headers: (0, headers_1.buildHeaders)([
|
|
27
|
+
{
|
|
28
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
29
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
30
|
+
},
|
|
31
|
+
options?.headers,
|
|
32
|
+
]),
|
|
33
|
+
});
|
|
24
34
|
}
|
|
25
35
|
/**
|
|
26
36
|
* Updates a customer's integration link, such as changing the synced external
|
|
@@ -36,10 +46,17 @@ class Integrations extends resource_1.APIResource {
|
|
|
36
46
|
* ```
|
|
37
47
|
*/
|
|
38
48
|
update(integrationID, params, options) {
|
|
39
|
-
const { id, ...body } = params;
|
|
49
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
40
50
|
return this._client.patch((0, path_1.path) `/api/v1/customers/${id}/integrations/${integrationID}`, {
|
|
41
51
|
body,
|
|
42
52
|
...options,
|
|
53
|
+
headers: (0, headers_1.buildHeaders)([
|
|
54
|
+
{
|
|
55
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
56
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
57
|
+
},
|
|
58
|
+
options?.headers,
|
|
59
|
+
]),
|
|
43
60
|
});
|
|
44
61
|
}
|
|
45
62
|
/**
|
|
@@ -56,8 +73,19 @@ class Integrations extends resource_1.APIResource {
|
|
|
56
73
|
* }
|
|
57
74
|
* ```
|
|
58
75
|
*/
|
|
59
|
-
list(id,
|
|
60
|
-
|
|
76
|
+
list(id, params = {}, options) {
|
|
77
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
78
|
+
return this._client.getAPIList((0, path_1.path) `/api/v1/customers/${id}/integrations`, (pagination_1.MyCursorIDPage), {
|
|
79
|
+
query,
|
|
80
|
+
...options,
|
|
81
|
+
headers: (0, headers_1.buildHeaders)([
|
|
82
|
+
{
|
|
83
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
84
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
85
|
+
},
|
|
86
|
+
options?.headers,
|
|
87
|
+
]),
|
|
88
|
+
});
|
|
61
89
|
}
|
|
62
90
|
/**
|
|
63
91
|
* Links a customer to an external integration by specifying the vendor and
|
|
@@ -73,8 +101,19 @@ class Integrations extends resource_1.APIResource {
|
|
|
73
101
|
* });
|
|
74
102
|
* ```
|
|
75
103
|
*/
|
|
76
|
-
link(id,
|
|
77
|
-
|
|
104
|
+
link(id, params, options) {
|
|
105
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
106
|
+
return this._client.post((0, path_1.path) `/api/v1/customers/${id}/integrations`, {
|
|
107
|
+
body,
|
|
108
|
+
...options,
|
|
109
|
+
headers: (0, headers_1.buildHeaders)([
|
|
110
|
+
{
|
|
111
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
112
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
113
|
+
},
|
|
114
|
+
options?.headers,
|
|
115
|
+
]),
|
|
116
|
+
});
|
|
78
117
|
}
|
|
79
118
|
/**
|
|
80
119
|
* Removes the link between a customer and an external integration.
|
|
@@ -89,8 +128,17 @@ class Integrations extends resource_1.APIResource {
|
|
|
89
128
|
* ```
|
|
90
129
|
*/
|
|
91
130
|
unlink(integrationID, params, options) {
|
|
92
|
-
const { id } = params;
|
|
93
|
-
return this._client.delete((0, path_1.path) `/api/v1/customers/${id}/integrations/${integrationID}`,
|
|
131
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
132
|
+
return this._client.delete((0, path_1.path) `/api/v1/customers/${id}/integrations/${integrationID}`, {
|
|
133
|
+
...options,
|
|
134
|
+
headers: (0, headers_1.buildHeaders)([
|
|
135
|
+
{
|
|
136
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
137
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
138
|
+
},
|
|
139
|
+
options?.headers,
|
|
140
|
+
]),
|
|
141
|
+
});
|
|
94
142
|
}
|
|
95
143
|
}
|
|
96
144
|
exports.Integrations = Integrations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAAkG;
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,aAAqB,EACrB,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE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AO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,aAAqB,EACrB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QACtF,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,iBAAiB,aAAa,EAAE,EAAE;YACtF,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;AAlKD,oCAkKC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
5
|
import { path } from "../../../internal/utils/path.mjs";
|
|
5
6
|
export class Integrations extends APIResource {
|
|
6
7
|
/**
|
|
@@ -16,8 +17,17 @@ export class Integrations extends APIResource {
|
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
19
|
retrieve(integrationID, params, options) {
|
|
19
|
-
const { id } = params;
|
|
20
|
-
return this._client.get(path `/api/v1/customers/${id}/integrations/${integrationID}`,
|
|
20
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
21
|
+
return this._client.get(path `/api/v1/customers/${id}/integrations/${integrationID}`, {
|
|
22
|
+
...options,
|
|
23
|
+
headers: buildHeaders([
|
|
24
|
+
{
|
|
25
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
26
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
27
|
+
},
|
|
28
|
+
options?.headers,
|
|
29
|
+
]),
|
|
30
|
+
});
|
|
21
31
|
}
|
|
22
32
|
/**
|
|
23
33
|
* Updates a customer's integration link, such as changing the synced external
|
|
@@ -33,10 +43,17 @@ export class Integrations extends APIResource {
|
|
|
33
43
|
* ```
|
|
34
44
|
*/
|
|
35
45
|
update(integrationID, params, options) {
|
|
36
|
-
const { id, ...body } = params;
|
|
46
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
37
47
|
return this._client.patch(path `/api/v1/customers/${id}/integrations/${integrationID}`, {
|
|
38
48
|
body,
|
|
39
49
|
...options,
|
|
50
|
+
headers: buildHeaders([
|
|
51
|
+
{
|
|
52
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
53
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
54
|
+
},
|
|
55
|
+
options?.headers,
|
|
56
|
+
]),
|
|
40
57
|
});
|
|
41
58
|
}
|
|
42
59
|
/**
|
|
@@ -53,8 +70,19 @@ export class Integrations extends APIResource {
|
|
|
53
70
|
* }
|
|
54
71
|
* ```
|
|
55
72
|
*/
|
|
56
|
-
list(id,
|
|
57
|
-
|
|
73
|
+
list(id, params = {}, options) {
|
|
74
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
75
|
+
return this._client.getAPIList(path `/api/v1/customers/${id}/integrations`, (MyCursorIDPage), {
|
|
76
|
+
query,
|
|
77
|
+
...options,
|
|
78
|
+
headers: buildHeaders([
|
|
79
|
+
{
|
|
80
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
81
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
82
|
+
},
|
|
83
|
+
options?.headers,
|
|
84
|
+
]),
|
|
85
|
+
});
|
|
58
86
|
}
|
|
59
87
|
/**
|
|
60
88
|
* Links a customer to an external integration by specifying the vendor and
|
|
@@ -70,8 +98,19 @@ export class Integrations extends APIResource {
|
|
|
70
98
|
* });
|
|
71
99
|
* ```
|
|
72
100
|
*/
|
|
73
|
-
link(id,
|
|
74
|
-
|
|
101
|
+
link(id, params, options) {
|
|
102
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
103
|
+
return this._client.post(path `/api/v1/customers/${id}/integrations`, {
|
|
104
|
+
body,
|
|
105
|
+
...options,
|
|
106
|
+
headers: buildHeaders([
|
|
107
|
+
{
|
|
108
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
109
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
110
|
+
},
|
|
111
|
+
options?.headers,
|
|
112
|
+
]),
|
|
113
|
+
});
|
|
75
114
|
}
|
|
76
115
|
/**
|
|
77
116
|
* Removes the link between a customer and an external integration.
|
|
@@ -86,8 +125,17 @@ export class Integrations extends APIResource {
|
|
|
86
125
|
* ```
|
|
87
126
|
*/
|
|
88
127
|
unlink(integrationID, params, options) {
|
|
89
|
-
const { id } = params;
|
|
90
|
-
return this._client.delete(path `/api/v1/customers/${id}/integrations/${integrationID}`,
|
|
128
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
129
|
+
return this._client.delete(path `/api/v1/customers/${id}/integrations/${integrationID}`, {
|
|
130
|
+
...options,
|
|
131
|
+
headers: buildHeaders([
|
|
132
|
+
{
|
|
133
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
134
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
135
|
+
},
|
|
136
|
+
options?.headers,
|
|
137
|
+
]),
|
|
138
|
+
});
|
|
91
139
|
}
|
|
92
140
|
}
|
|
93
141
|
//# sourceMappingURL=integrations.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;
|
|
1
|
+
{"version":3,"file":"integrations.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,aAAqB,EACrB,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QACtF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,iBAAiB,aAAa,EAAE,EAAE;YACnF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CA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