dodopayments 2.32.0 → 2.32.2
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 +25 -0
- package/bin/migration-config.json +17 -17
- package/client.d.mts +15 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -15
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/addons.d.mts +4 -4
- package/resources/addons.d.mts.map +1 -1
- package/resources/addons.d.ts +4 -4
- package/resources/addons.d.ts.map +1 -1
- package/resources/addons.js +6 -6
- package/resources/addons.js.map +1 -1
- package/resources/addons.mjs +6 -6
- package/resources/addons.mjs.map +1 -1
- package/resources/brands.d.mts +1 -1
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +1 -1
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js +3 -3
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs +3 -3
- package/resources/brands.mjs.map +1 -1
- package/resources/credit-entitlements/balances.d.mts +69 -69
- package/resources/credit-entitlements/balances.d.mts.map +1 -1
- package/resources/credit-entitlements/balances.d.ts +69 -69
- package/resources/credit-entitlements/balances.d.ts.map +1 -1
- package/resources/credit-entitlements/balances.js +41 -41
- package/resources/credit-entitlements/balances.js.map +1 -1
- package/resources/credit-entitlements/balances.mjs +41 -41
- package/resources/credit-entitlements/balances.mjs.map +1 -1
- package/resources/credit-entitlements/credit-entitlements.d.mts +38 -38
- package/resources/credit-entitlements/credit-entitlements.d.mts.map +1 -1
- package/resources/credit-entitlements/credit-entitlements.d.ts +38 -38
- package/resources/credit-entitlements/credit-entitlements.d.ts.map +1 -1
- package/resources/credit-entitlements/credit-entitlements.js +40 -40
- package/resources/credit-entitlements/credit-entitlements.js.map +1 -1
- package/resources/credit-entitlements/credit-entitlements.mjs +40 -40
- package/resources/credit-entitlements/credit-entitlements.mjs.map +1 -1
- package/resources/credit-entitlements/index.d.mts +2 -2
- package/resources/credit-entitlements/index.d.mts.map +1 -1
- package/resources/credit-entitlements/index.d.ts +2 -2
- package/resources/credit-entitlements/index.d.ts.map +1 -1
- package/resources/customers/customers.d.mts +23 -23
- package/resources/customers/customers.d.mts.map +1 -1
- package/resources/customers/customers.d.ts +23 -23
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +16 -16
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +16 -16
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.mts +1 -1
- package/resources/customers/index.d.mts.map +1 -1
- package/resources/customers/index.d.ts +1 -1
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/wallets/index.d.mts +1 -1
- package/resources/customers/wallets/index.d.mts.map +1 -1
- package/resources/customers/wallets/index.d.ts +1 -1
- package/resources/customers/wallets/index.d.ts.map +1 -1
- package/resources/customers/wallets/ledger-entries.d.mts +8 -8
- package/resources/customers/wallets/ledger-entries.d.mts.map +1 -1
- package/resources/customers/wallets/ledger-entries.d.ts +8 -8
- package/resources/customers/wallets/ledger-entries.d.ts.map +1 -1
- package/resources/customers/wallets/ledger-entries.js +3 -3
- package/resources/customers/wallets/ledger-entries.js.map +1 -1
- package/resources/customers/wallets/ledger-entries.mjs +3 -3
- package/resources/customers/wallets/ledger-entries.mjs.map +1 -1
- package/resources/customers/wallets/wallets.d.mts +1 -1
- package/resources/customers/wallets/wallets.d.mts.map +1 -1
- package/resources/customers/wallets/wallets.d.ts +1 -1
- package/resources/customers/wallets/wallets.d.ts.map +1 -1
- package/resources/discounts.d.mts +27 -27
- package/resources/discounts.d.mts.map +1 -1
- package/resources/discounts.d.ts +27 -27
- package/resources/discounts.d.ts.map +1 -1
- package/resources/discounts.js +15 -15
- package/resources/discounts.js.map +1 -1
- package/resources/discounts.mjs +15 -15
- package/resources/discounts.mjs.map +1 -1
- package/resources/disputes.d.mts +1 -1
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +1 -1
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +3 -3
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +3 -3
- package/resources/disputes.mjs.map +1 -1
- package/resources/entitlements/entitlements.d.mts +15 -15
- package/resources/entitlements/entitlements.d.mts.map +1 -1
- package/resources/entitlements/entitlements.d.ts +15 -15
- package/resources/entitlements/entitlements.d.ts.map +1 -1
- package/resources/entitlements/entitlements.js +15 -15
- package/resources/entitlements/entitlements.js.map +1 -1
- package/resources/entitlements/entitlements.mjs +15 -15
- package/resources/entitlements/entitlements.mjs.map +1 -1
- package/resources/entitlements/files.d.mts +4 -4
- package/resources/entitlements/files.d.mts.map +1 -1
- package/resources/entitlements/files.d.ts +4 -4
- package/resources/entitlements/files.d.ts.map +1 -1
- package/resources/entitlements/files.js +6 -6
- package/resources/entitlements/files.js.map +1 -1
- package/resources/entitlements/files.mjs +6 -6
- package/resources/entitlements/files.mjs.map +1 -1
- package/resources/entitlements/index.d.mts +1 -1
- package/resources/entitlements/index.d.mts.map +1 -1
- package/resources/entitlements/index.d.ts +1 -1
- package/resources/entitlements/index.d.ts.map +1 -1
- package/resources/index.d.mts +15 -15
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/invoices/payments.d.mts +1 -1
- package/resources/invoices/payments.d.ts +1 -1
- package/resources/invoices/payments.js +4 -4
- package/resources/invoices/payments.mjs +4 -4
- package/resources/license-key-instances.d.mts +14 -14
- package/resources/license-key-instances.d.mts.map +1 -1
- package/resources/license-key-instances.d.ts +14 -14
- package/resources/license-key-instances.d.ts.map +1 -1
- package/resources/license-key-instances.js +12 -12
- package/resources/license-key-instances.js.map +1 -1
- package/resources/license-key-instances.mjs +12 -12
- package/resources/license-key-instances.mjs.map +1 -1
- package/resources/license-keys.d.mts +38 -38
- package/resources/license-keys.d.mts.map +1 -1
- package/resources/license-keys.d.ts +38 -38
- package/resources/license-keys.d.ts.map +1 -1
- package/resources/license-keys.js +16 -16
- package/resources/license-keys.js.map +1 -1
- package/resources/license-keys.mjs +16 -16
- package/resources/license-keys.mjs.map +1 -1
- package/resources/meters.d.mts +8 -8
- package/resources/meters.d.mts.map +1 -1
- package/resources/meters.d.ts +8 -8
- package/resources/meters.d.ts.map +1 -1
- package/resources/meters.js +3 -3
- package/resources/meters.js.map +1 -1
- package/resources/meters.mjs +3 -3
- package/resources/meters.mjs.map +1 -1
- package/resources/payments.d.mts +32 -32
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +32 -32
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +6 -6
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +6 -6
- package/resources/payments.mjs.map +1 -1
- package/resources/product-collections/groups/groups.d.mts +9 -9
- package/resources/product-collections/groups/groups.d.mts.map +1 -1
- package/resources/product-collections/groups/groups.d.ts +9 -9
- package/resources/product-collections/groups/groups.d.ts.map +1 -1
- package/resources/product-collections/groups/groups.js +7 -7
- package/resources/product-collections/groups/groups.js.map +1 -1
- package/resources/product-collections/groups/groups.mjs +7 -7
- package/resources/product-collections/groups/groups.mjs.map +1 -1
- package/resources/product-collections/groups/index.d.mts +2 -2
- package/resources/product-collections/groups/index.d.ts +2 -2
- package/resources/product-collections/groups/items.d.mts +12 -12
- package/resources/product-collections/groups/items.d.mts.map +1 -1
- package/resources/product-collections/groups/items.d.ts +12 -12
- package/resources/product-collections/groups/items.d.ts.map +1 -1
- package/resources/product-collections/groups/items.js +7 -7
- package/resources/product-collections/groups/items.js.map +1 -1
- package/resources/product-collections/groups/items.mjs +7 -7
- package/resources/product-collections/groups/items.mjs.map +1 -1
- package/resources/product-collections/index.d.mts +2 -2
- package/resources/product-collections/index.d.mts.map +1 -1
- package/resources/product-collections/index.d.ts +2 -2
- package/resources/product-collections/index.d.ts.map +1 -1
- package/resources/product-collections/product-collections.d.mts +15 -15
- package/resources/product-collections/product-collections.d.mts.map +1 -1
- package/resources/product-collections/product-collections.d.ts +15 -15
- package/resources/product-collections/product-collections.d.ts.map +1 -1
- package/resources/product-collections/product-collections.js +11 -11
- package/resources/product-collections/product-collections.js.map +1 -1
- package/resources/product-collections/product-collections.mjs +11 -11
- package/resources/product-collections/product-collections.mjs.map +1 -1
- package/resources/products/index.d.mts +2 -2
- package/resources/products/index.d.mts.map +1 -1
- package/resources/products/index.d.ts +2 -2
- package/resources/products/index.d.ts.map +1 -1
- package/resources/products/products.d.mts +21 -21
- package/resources/products/products.d.mts.map +1 -1
- package/resources/products/products.d.ts +21 -21
- package/resources/products/products.d.ts.map +1 -1
- package/resources/products/products.js +6 -6
- package/resources/products/products.js.map +1 -1
- package/resources/products/products.mjs +6 -6
- package/resources/products/products.mjs.map +1 -1
- package/resources/products/short-links.d.mts +11 -11
- package/resources/products/short-links.d.mts.map +1 -1
- package/resources/products/short-links.d.ts +11 -11
- package/resources/products/short-links.d.ts.map +1 -1
- package/resources/products/short-links.js +6 -6
- package/resources/products/short-links.js.map +1 -1
- package/resources/products/short-links.mjs +6 -6
- package/resources/products/short-links.mjs.map +1 -1
- package/resources/refunds.d.mts +24 -24
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +24 -24
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +6 -6
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +6 -6
- package/resources/refunds.mjs.map +1 -1
- package/resources/subscriptions.d.mts +86 -86
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +86 -86
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +23 -23
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +23 -23
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/usage-events.d.mts +61 -61
- package/resources/usage-events.d.mts.map +1 -1
- package/resources/usage-events.d.ts +61 -61
- package/resources/usage-events.d.ts.map +1 -1
- package/resources/usage-events.js +56 -56
- package/resources/usage-events.js.map +1 -1
- package/resources/usage-events.mjs +56 -56
- package/resources/usage-events.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/webhooks.d.mts +12 -12
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +12 -12
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +15 -15
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +15 -15
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +18 -18
- package/src/resources/addons.ts +13 -13
- package/src/resources/brands.ts +4 -4
- package/src/resources/credit-entitlements/balances.ts +91 -91
- package/src/resources/credit-entitlements/credit-entitlements.ts +55 -55
- package/src/resources/credit-entitlements/index.ts +3 -3
- package/src/resources/customers/customers.ts +49 -49
- package/src/resources/customers/index.ts +1 -1
- package/src/resources/customers/wallets/index.ts +1 -1
- package/src/resources/customers/wallets/ledger-entries.ts +16 -16
- package/src/resources/customers/wallets/wallets.ts +1 -1
- package/src/resources/discounts.ts +43 -43
- package/src/resources/disputes.ts +4 -4
- package/src/resources/entitlements/entitlements.ts +36 -36
- package/src/resources/entitlements/files.ts +7 -7
- package/src/resources/entitlements/index.ts +1 -1
- package/src/resources/index.ts +18 -18
- package/src/resources/invoices/payments.ts +4 -4
- package/src/resources/license-key-instances.ts +25 -25
- package/src/resources/license-keys.ts +48 -48
- package/src/resources/meters.ts +15 -15
- package/src/resources/payments.ts +59 -59
- package/src/resources/product-collections/groups/groups.ts +16 -16
- package/src/resources/product-collections/groups/index.ts +2 -2
- package/src/resources/product-collections/groups/items.ts +19 -19
- package/src/resources/product-collections/index.ts +2 -2
- package/src/resources/product-collections/product-collections.ts +32 -32
- package/src/resources/products/index.ts +2 -2
- package/src/resources/products/products.ts +33 -33
- package/src/resources/products/short-links.ts +20 -20
- package/src/resources/refunds.ts +36 -36
- package/src/resources/subscriptions.ts +130 -130
- package/src/resources/usage-events.ts +64 -64
- package/src/resources/webhooks/index.ts +1 -1
- package/src/resources/webhooks/webhooks.ts +24 -24
- 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":"disputes.d.ts","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ,8BAA2B;AAC5B,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC,
|
|
1
|
+
{"version":3,"file":"disputes.d.ts","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ,8BAA2B;AAC5B,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+CAA+C,EAAE,mBAAmB,CAAC;IAOpF,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;CAG9E;AAED,MAAM,MAAM,+CAA+C,GACzD,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;AAEnD,MAAM,W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ANGED
|
@@ -6,15 +6,15 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
8
|
class Disputes extends resource_1.APIResource {
|
|
9
|
-
retrieve(disputeID, options) {
|
|
10
|
-
return this._client.get((0, path_1.path) `/disputes/${disputeID}`, options);
|
|
11
|
-
}
|
|
12
9
|
list(query = {}, options) {
|
|
13
10
|
return this._client.getAPIList('/disputes', (pagination_1.DefaultPageNumberPagination), {
|
|
14
11
|
query,
|
|
15
12
|
...options,
|
|
16
13
|
});
|
|
17
14
|
}
|
|
15
|
+
retrieve(disputeID, options) {
|
|
16
|
+
return this._client.get((0, path_1.path) `/disputes/${disputeID}`, options);
|
|
17
|
+
}
|
|
18
18
|
}
|
|
19
19
|
exports.Disputes = Disputes;
|
|
20
20
|
//# sourceMappingURL=disputes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disputes.js","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAI4B;AAE5B,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC,
|
|
1
|
+
{"version":3,"file":"disputes.js","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAI4B;AAE5B,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,wCAAgD,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAdD,4BAcC"}
|
package/resources/disputes.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { DefaultPageNumberPagination, } from "../core/pagination.mjs";
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
export class Disputes extends APIResource {
|
|
6
|
-
retrieve(disputeID, options) {
|
|
7
|
-
return this._client.get(path `/disputes/${disputeID}`, options);
|
|
8
|
-
}
|
|
9
6
|
list(query = {}, options) {
|
|
10
7
|
return this._client.getAPIList('/disputes', (DefaultPageNumberPagination), {
|
|
11
8
|
query,
|
|
12
9
|
...options,
|
|
13
10
|
});
|
|
14
11
|
}
|
|
12
|
+
retrieve(disputeID, options) {
|
|
13
|
+
return this._client.get(path `/disputes/${disputeID}`, options);
|
|
14
|
+
}
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=disputes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disputes.mjs","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EACL,2BAA2B,GAG5B,+BAA2B;AAE5B,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC,
|
|
1
|
+
{"version":3,"file":"disputes.mjs","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EACL,2BAA2B,GAG5B,+BAA2B;AAE5B,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,2BAAgD,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -11,6 +11,10 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
11
11
|
export declare class Entitlements extends APIResource {
|
|
12
12
|
files: FilesAPI.Files;
|
|
13
13
|
grants: GrantsAPI.Grants;
|
|
14
|
+
/**
|
|
15
|
+
* GET /entitlements
|
|
16
|
+
*/
|
|
17
|
+
list(query?: EntitlementListParams | null | undefined, options?: RequestOptions): PagePromise<EntitlementsDefaultPageNumberPagination, Entitlement>;
|
|
14
18
|
/**
|
|
15
19
|
* POST /entitlements
|
|
16
20
|
*/
|
|
@@ -19,18 +23,14 @@ export declare class Entitlements extends APIResource {
|
|
|
19
23
|
* GET /entitlements/{id}
|
|
20
24
|
*/
|
|
21
25
|
retrieve(id: string, options?: RequestOptions): APIPromise<Entitlement>;
|
|
22
|
-
/**
|
|
23
|
-
* PATCH /entitlements/{id}
|
|
24
|
-
*/
|
|
25
|
-
update(id: string, body: EntitlementUpdateParams, options?: RequestOptions): APIPromise<Entitlement>;
|
|
26
|
-
/**
|
|
27
|
-
* GET /entitlements
|
|
28
|
-
*/
|
|
29
|
-
list(query?: EntitlementListParams | null | undefined, options?: RequestOptions): PagePromise<EntitlementsDefaultPageNumberPagination, Entitlement>;
|
|
30
26
|
/**
|
|
31
27
|
* DELETE /entitlements/{id} (soft-delete)
|
|
32
28
|
*/
|
|
33
29
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* PATCH /entitlements/{id}
|
|
32
|
+
*/
|
|
33
|
+
update(id: string, body: EntitlementUpdateParams, options?: RequestOptions): APIPromise<Entitlement>;
|
|
34
34
|
}
|
|
35
35
|
export type EntitlementsDefaultPageNumberPagination = DefaultPageNumberPagination<Entitlement>;
|
|
36
36
|
/**
|
|
@@ -321,6 +321,12 @@ export declare namespace IntegrationConfigResponse {
|
|
|
321
321
|
duration_interval?: SubscriptionsAPI.TimeInterval | null;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
+
export interface EntitlementListParams extends DefaultPageNumberPaginationParams {
|
|
325
|
+
/**
|
|
326
|
+
* Filter by integration type
|
|
327
|
+
*/
|
|
328
|
+
integration_type?: 'discord' | 'telegram' | 'github' | 'figma' | 'framer' | 'notion' | 'digital_files' | 'license_key';
|
|
329
|
+
}
|
|
324
330
|
export interface EntitlementCreateParams {
|
|
325
331
|
/**
|
|
326
332
|
* Platform-specific configuration (validated per integration_type)
|
|
@@ -357,14 +363,8 @@ export interface EntitlementUpdateParams {
|
|
|
357
363
|
} | null;
|
|
358
364
|
name?: string | null;
|
|
359
365
|
}
|
|
360
|
-
export interface EntitlementListParams extends DefaultPageNumberPaginationParams {
|
|
361
|
-
/**
|
|
362
|
-
* Filter by integration type
|
|
363
|
-
*/
|
|
364
|
-
integration_type?: 'discord' | 'telegram' | 'github' | 'figma' | 'framer' | 'notion' | 'digital_files' | 'license_key';
|
|
365
|
-
}
|
|
366
366
|
export declare namespace Entitlements {
|
|
367
|
-
export { type Entitlement as Entitlement, type EntitlementIntegrationType as EntitlementIntegrationType, type GitHubPermission as GitHubPermission, type IntegrationConfig as IntegrationConfig, type IntegrationConfigResponse as IntegrationConfigResponse, type EntitlementsDefaultPageNumberPagination as EntitlementsDefaultPageNumberPagination, type
|
|
367
|
+
export { type Entitlement as Entitlement, type EntitlementIntegrationType as EntitlementIntegrationType, type GitHubPermission as GitHubPermission, type IntegrationConfig as IntegrationConfig, type IntegrationConfigResponse as IntegrationConfigResponse, type EntitlementsDefaultPageNumberPagination as EntitlementsDefaultPageNumberPagination, type EntitlementListParams as EntitlementListParams, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, };
|
|
368
368
|
export { Files as Files, type FileUploadResponse as FileUploadResponse, type FileDeleteParams as FileDeleteParams, };
|
|
369
369
|
export { Grants as Grants, type EntitlementGrant as EntitlementGrant, type LicenseKeyGrant as LicenseKeyGrant, type EntitlementGrantsDefaultPageNumberPagination as EntitlementGrantsDefaultPageNumberPagination, type GrantListParams as GrantListParams, type GrantRevokeParams as GrantRevokeParams, };
|
|
370
370
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../src/resources/entitlements/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAgB;AACtE,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,gBAAgB,EAChB,4CAA4C,EAC5C,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,eAAe,EAChB,qBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ,kCAA8B;AAE/B,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../src/resources/entitlements/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,e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WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -11,6 +11,10 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
11
11
|
export declare class Entitlements extends APIResource {
|
|
12
12
|
files: FilesAPI.Files;
|
|
13
13
|
grants: GrantsAPI.Grants;
|
|
14
|
+
/**
|
|
15
|
+
* GET /entitlements
|
|
16
|
+
*/
|
|
17
|
+
list(query?: EntitlementListParams | null | undefined, options?: RequestOptions): PagePromise<EntitlementsDefaultPageNumberPagination, Entitlement>;
|
|
14
18
|
/**
|
|
15
19
|
* POST /entitlements
|
|
16
20
|
*/
|
|
@@ -19,18 +23,14 @@ export declare class Entitlements extends APIResource {
|
|
|
19
23
|
* GET /entitlements/{id}
|
|
20
24
|
*/
|
|
21
25
|
retrieve(id: string, options?: RequestOptions): APIPromise<Entitlement>;
|
|
22
|
-
/**
|
|
23
|
-
* PATCH /entitlements/{id}
|
|
24
|
-
*/
|
|
25
|
-
update(id: string, body: EntitlementUpdateParams, options?: RequestOptions): APIPromise<Entitlement>;
|
|
26
|
-
/**
|
|
27
|
-
* GET /entitlements
|
|
28
|
-
*/
|
|
29
|
-
list(query?: EntitlementListParams | null | undefined, options?: RequestOptions): PagePromise<EntitlementsDefaultPageNumberPagination, Entitlement>;
|
|
30
26
|
/**
|
|
31
27
|
* DELETE /entitlements/{id} (soft-delete)
|
|
32
28
|
*/
|
|
33
29
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* PATCH /entitlements/{id}
|
|
32
|
+
*/
|
|
33
|
+
update(id: string, body: EntitlementUpdateParams, options?: RequestOptions): APIPromise<Entitlement>;
|
|
34
34
|
}
|
|
35
35
|
export type EntitlementsDefaultPageNumberPagination = DefaultPageNumberPagination<Entitlement>;
|
|
36
36
|
/**
|
|
@@ -321,6 +321,12 @@ export declare namespace IntegrationConfigResponse {
|
|
|
321
321
|
duration_interval?: SubscriptionsAPI.TimeInterval | null;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
+
export interface EntitlementListParams extends DefaultPageNumberPaginationParams {
|
|
325
|
+
/**
|
|
326
|
+
* Filter by integration type
|
|
327
|
+
*/
|
|
328
|
+
integration_type?: 'discord' | 'telegram' | 'github' | 'figma' | 'framer' | 'notion' | 'digital_files' | 'license_key';
|
|
329
|
+
}
|
|
324
330
|
export interface EntitlementCreateParams {
|
|
325
331
|
/**
|
|
326
332
|
* Platform-specific configuration (validated per integration_type)
|
|
@@ -357,14 +363,8 @@ export interface EntitlementUpdateParams {
|
|
|
357
363
|
} | null;
|
|
358
364
|
name?: string | null;
|
|
359
365
|
}
|
|
360
|
-
export interface EntitlementListParams extends DefaultPageNumberPaginationParams {
|
|
361
|
-
/**
|
|
362
|
-
* Filter by integration type
|
|
363
|
-
*/
|
|
364
|
-
integration_type?: 'discord' | 'telegram' | 'github' | 'figma' | 'framer' | 'notion' | 'digital_files' | 'license_key';
|
|
365
|
-
}
|
|
366
366
|
export declare namespace Entitlements {
|
|
367
|
-
export { type Entitlement as Entitlement, type EntitlementIntegrationType as EntitlementIntegrationType, type GitHubPermission as GitHubPermission, type IntegrationConfig as IntegrationConfig, type IntegrationConfigResponse as IntegrationConfigResponse, type EntitlementsDefaultPageNumberPagination as EntitlementsDefaultPageNumberPagination, type
|
|
367
|
+
export { type Entitlement as Entitlement, type EntitlementIntegrationType as EntitlementIntegrationType, type GitHubPermission as GitHubPermission, type IntegrationConfig as IntegrationConfig, type IntegrationConfigResponse as IntegrationConfigResponse, type EntitlementsDefaultPageNumberPagination as EntitlementsDefaultPageNumberPagination, type EntitlementListParams as EntitlementListParams, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, };
|
|
368
368
|
export { Files as Files, type FileUploadResponse as FileUploadResponse, type FileDeleteParams as FileDeleteParams, };
|
|
369
369
|
export { Grants as Grants, type EntitlementGrant as EntitlementGrant, type LicenseKeyGrant as LicenseKeyGrant, type EntitlementGrantsDefaultPageNumberPagination as EntitlementGrantsDefaultPageNumberPagination, type GrantListParams as GrantListParams, type GrantRevokeParams as GrantRevokeParams, };
|
|
370
370
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../src/resources/entitlements/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,0BAAuB;AAClD,OAAO,KAAK,gBAAgB,4BAAyB;AACrD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAAE,mBAAgB;AACtE,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,gBAAgB,EAChB,4CAA4C,EAC5C,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,eAAe,EAChB,oBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,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EG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAE9C,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAKD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -17,6 +17,15 @@ class Entitlements extends resource_1.APIResource {
|
|
|
17
17
|
this.files = new FilesAPI.Files(this._client);
|
|
18
18
|
this.grants = new GrantsAPI.Grants(this._client);
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* GET /entitlements
|
|
22
|
+
*/
|
|
23
|
+
list(query = {}, options) {
|
|
24
|
+
return this._client.getAPIList('/entitlements', (pagination_1.DefaultPageNumberPagination), {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
20
29
|
/**
|
|
21
30
|
* POST /entitlements
|
|
22
31
|
*/
|
|
@@ -29,21 +38,6 @@ class Entitlements extends resource_1.APIResource {
|
|
|
29
38
|
retrieve(id, options) {
|
|
30
39
|
return this._client.get((0, path_1.path) `/entitlements/${id}`, options);
|
|
31
40
|
}
|
|
32
|
-
/**
|
|
33
|
-
* PATCH /entitlements/{id}
|
|
34
|
-
*/
|
|
35
|
-
update(id, body, options) {
|
|
36
|
-
return this._client.patch((0, path_1.path) `/entitlements/${id}`, { body, ...options });
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* GET /entitlements
|
|
40
|
-
*/
|
|
41
|
-
list(query = {}, options) {
|
|
42
|
-
return this._client.getAPIList('/entitlements', (pagination_1.DefaultPageNumberPagination), {
|
|
43
|
-
query,
|
|
44
|
-
...options,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
41
|
/**
|
|
48
42
|
* DELETE /entitlements/{id} (soft-delete)
|
|
49
43
|
*/
|
|
@@ -53,6 +47,12 @@ class Entitlements extends resource_1.APIResource {
|
|
|
53
47
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
54
48
|
});
|
|
55
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* PATCH /entitlements/{id}
|
|
52
|
+
*/
|
|
53
|
+
update(id, body, options) {
|
|
54
|
+
return this._client.patch((0, path_1.path) `/entitlements/${id}`, { body, ...options });
|
|
55
|
+
}
|
|
56
56
|
}
|
|
57
57
|
exports.Entitlements = Entitlements;
|
|
58
58
|
Entitlements.Files = files_1.Files;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../src/resources/entitlements/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,6DAAoC;AACpC,sCAAsE;AACtE,+DAAsC;AACtC,wCAOkB;AAElB,yDAI+B;AAC/B,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6ChE,CAAC;IA3CC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../src/resources/entitlements/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,6DAAoC;AACpC,sCAAsE;AACtE,+DAAsC;AACtC,wCAOkB;AAElB,yDAI+B;AAC/B,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6ChE,CAAC;IA3CC;;OAEG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,wCAAwC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AA/CD,oCA+CC;AAsaD,YAAY,CAAC,KAAK,GAAG,aAAK,CAAC;AAC3B,YAAY,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -13,6 +13,15 @@ export class Entitlements extends APIResource {
|
|
|
13
13
|
this.files = new FilesAPI.Files(this._client);
|
|
14
14
|
this.grants = new GrantsAPI.Grants(this._client);
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* GET /entitlements
|
|
18
|
+
*/
|
|
19
|
+
list(query = {}, options) {
|
|
20
|
+
return this._client.getAPIList('/entitlements', (DefaultPageNumberPagination), {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
16
25
|
/**
|
|
17
26
|
* POST /entitlements
|
|
18
27
|
*/
|
|
@@ -25,21 +34,6 @@ export class Entitlements extends APIResource {
|
|
|
25
34
|
retrieve(id, options) {
|
|
26
35
|
return this._client.get(path `/entitlements/${id}`, options);
|
|
27
36
|
}
|
|
28
|
-
/**
|
|
29
|
-
* PATCH /entitlements/{id}
|
|
30
|
-
*/
|
|
31
|
-
update(id, body, options) {
|
|
32
|
-
return this._client.patch(path `/entitlements/${id}`, { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* GET /entitlements
|
|
36
|
-
*/
|
|
37
|
-
list(query = {}, options) {
|
|
38
|
-
return this._client.getAPIList('/entitlements', (DefaultPageNumberPagination), {
|
|
39
|
-
query,
|
|
40
|
-
...options,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
37
|
/**
|
|
44
38
|
* DELETE /entitlements/{id} (soft-delete)
|
|
45
39
|
*/
|
|
@@ -49,6 +43,12 @@ export class Entitlements extends APIResource {
|
|
|
49
43
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
50
44
|
});
|
|
51
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* PATCH /entitlements/{id}
|
|
48
|
+
*/
|
|
49
|
+
update(id, body, options) {
|
|
50
|
+
return this._client.patch(path `/entitlements/${id}`, { body, ...options });
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
Entitlements.Files = Files;
|
|
54
54
|
Entitlements.Grants = Grants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../src/resources/entitlements/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAwC,KAAK,EAAE,oBAAgB;AACtE,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GAEP,qBAAiB;AAElB,OAAO,EACL,2BAA2B,GAG5B,kCAA8B;AAC/B,OAAO,EAAE,YAAY,EAAE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AE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAsaD,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -2,14 +2,14 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Files extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Detach a previously-attached file from a `digital_files` entitlement.
|
|
7
|
-
*/
|
|
8
|
-
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
9
5
|
/**
|
|
10
6
|
* Attach a file to a `digital_files` entitlement. Per-file size cap: 500 MiB.
|
|
11
7
|
*/
|
|
12
8
|
upload(id: string, options?: RequestOptions): APIPromise<FileUploadResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Detach a previously-attached file from a `digital_files` entitlement.
|
|
11
|
+
*/
|
|
12
|
+
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
13
13
|
}
|
|
14
14
|
export interface FileUploadResponse {
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
|
@@ -2,14 +2,14 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Files extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Detach a previously-attached file from a `digital_files` entitlement.
|
|
7
|
-
*/
|
|
8
|
-
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
9
5
|
/**
|
|
10
6
|
* Attach a file to a `digital_files` entitlement. Per-file size cap: 500 MiB.
|
|
11
7
|
*/
|
|
12
8
|
upload(id: string, options?: RequestOptions): APIPromise<FileUploadResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Detach a previously-attached file from a `digital_files` entitlement.
|
|
11
|
+
*/
|
|
12
|
+
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
13
13
|
}
|
|
14
14
|
export interface FileUploadResponse {
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
|
@@ -6,6 +6,12 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const headers_1 = require("../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
class Files extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Attach a file to a `digital_files` entitlement. Per-file size cap: 500 MiB.
|
|
11
|
+
*/
|
|
12
|
+
upload(id, options) {
|
|
13
|
+
return this._client.post((0, path_1.path) `/entitlements/${id}/files`, options);
|
|
14
|
+
}
|
|
9
15
|
/**
|
|
10
16
|
* Detach a previously-attached file from a `digital_files` entitlement.
|
|
11
17
|
*/
|
|
@@ -16,12 +22,6 @@ class Files extends resource_1.APIResource {
|
|
|
16
22
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
17
23
|
});
|
|
18
24
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Attach a file to a `digital_files` entitlement. Per-file size cap: 500 MiB.
|
|
21
|
-
*/
|
|
22
|
-
upload(id, options) {
|
|
23
|
-
return this._client.post((0, path_1.path) `/entitlements/${id}/files`, options);
|
|
24
|
-
}
|
|
25
25
|
}
|
|
26
26
|
exports.Files = Files;
|
|
27
27
|
//# sourceMappingURL=files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,UAAU,MAAM,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,UAAU,MAAM,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,sBAkBC"}
|
|
@@ -3,6 +3,12 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
export class Files extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Attach a file to a `digital_files` entitlement. Per-file size cap: 500 MiB.
|
|
8
|
+
*/
|
|
9
|
+
upload(id, options) {
|
|
10
|
+
return this._client.post(path `/entitlements/${id}/files`, options);
|
|
11
|
+
}
|
|
6
12
|
/**
|
|
7
13
|
* Detach a previously-attached file from a `digital_files` entitlement.
|
|
8
14
|
*/
|
|
@@ -13,11 +19,5 @@ export class Files extends APIResource {
|
|
|
13
19
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Attach a file to a `digital_files` entitlement. Per-file size cap: 500 MiB.
|
|
18
|
-
*/
|
|
19
|
-
upload(id, options) {
|
|
20
|
-
return this._client.post(path `/entitlements/${id}/files`, options);
|
|
21
|
-
}
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=files.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,EAAE,UAAU,MAAM,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/entitlements/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,EAAE,UAAU,MAAM,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Entitlements, type Entitlement, type EntitlementIntegrationType, type GitHubPermission, type IntegrationConfig, type IntegrationConfigResponse, type
|
|
1
|
+
export { Entitlements, type Entitlement, type EntitlementIntegrationType, type GitHubPermission, type IntegrationConfig, type IntegrationConfigResponse, type EntitlementListParams, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementsDefaultPageNumberPagination, } from "./entitlements.mjs";
|
|
2
2
|
export { Files, type FileUploadResponse, type FileDeleteParams } from "./files.mjs";
|
|
3
3
|
export { Grants, type EntitlementGrant, type LicenseKeyGrant, type GrantListParams, type GrantRevokeParams, type EntitlementGrantsDefaultPageNumberPagination, } from "./grants.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/entitlements/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/entitlements/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uCAAuC,GAC7C,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,oBAAgB;AAChF,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,4CAA4C,GAClD,qBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Entitlements, type Entitlement, type EntitlementIntegrationType, type GitHubPermission, type IntegrationConfig, type IntegrationConfigResponse, type
|
|
1
|
+
export { Entitlements, type Entitlement, type EntitlementIntegrationType, type GitHubPermission, type IntegrationConfig, type IntegrationConfigResponse, type EntitlementListParams, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementsDefaultPageNumberPagination, } from "./entitlements.js";
|
|
2
2
|
export { Files, type FileUploadResponse, type FileDeleteParams } from "./files.js";
|
|
3
3
|
export { Grants, type EntitlementGrant, type LicenseKeyGrant, type GrantListParams, type GrantRevokeParams, type EntitlementGrantsDefaultPageNumberPagination, } from "./grants.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/entitlements/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/entitlements/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uCAAuC,GAC7C,0BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,mBAAgB;AAChF,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,4CAA4C,GAClD,oBAAiB"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { Addons, type AddonResponse, type AddonUpdateImagesResponse, type
|
|
1
|
+
export { Addons, type AddonResponse, type AddonUpdateImagesResponse, type AddonListParams, type AddonCreateParams, type AddonUpdateParams, type AddonResponsesDefaultPageNumberPagination, } from "./addons.mjs";
|
|
2
2
|
export { Balances, type BalanceLedgerEntry, type BalanceRetrieveLedgerParams, type BalanceLedgerEntriesDefaultPageNumberPagination, } from "./balances.mjs";
|
|
3
3
|
export { Brands, type Brand, type BrandListResponse, type BrandUpdateImagesResponse, type BrandCreateParams, type BrandUpdateParams, } from "./brands.mjs";
|
|
4
4
|
export { CheckoutSessions, type CheckoutSessionBillingAddress, type CheckoutSessionCustomization, type CheckoutSessionFlags, type CheckoutSessionRequest, type CheckoutSessionResponse, type CheckoutSessionStatus, type CustomField, type ProductItemReq, type SubscriptionData, type ThemeConfig, type ThemeModeConfig, type CheckoutSessionPreviewResponse, type CheckoutSessionCreateParams, type CheckoutSessionPreviewParams, } from "./checkout-sessions.mjs";
|
|
5
|
-
export { CreditEntitlements, type CbbOverageBehavior, type CreditEntitlement, type
|
|
6
|
-
export { Customers, type Customer, type CustomerPortalSession, type CustomerListCreditEntitlementsResponse, type CustomerListEntitlementsResponse, type CustomerRetrievePaymentMethodsResponse, type
|
|
7
|
-
export { Discounts, type Discount, type DiscountDetail, type DiscountType, type
|
|
5
|
+
export { CreditEntitlements, type CbbOverageBehavior, type CreditEntitlement, type CreditEntitlementListParams, type CreditEntitlementCreateParams, type CreditEntitlementUpdateParams, type CreditEntitlementsDefaultPageNumberPagination, } from "./credit-entitlements/credit-entitlements.mjs";
|
|
6
|
+
export { Customers, type Customer, type CustomerPortalSession, type CustomerListCreditEntitlementsResponse, type CustomerListEntitlementsResponse, type CustomerRetrievePaymentMethodsResponse, type CustomerListParams, type CustomerCreateParams, type CustomerUpdateParams, type CustomerDeletePaymentMethodParams, type CustomersDefaultPageNumberPagination, } from "./customers/customers.mjs";
|
|
7
|
+
export { Discounts, type Discount, type DiscountDetail, type DiscountType, type DiscountListParams, type DiscountCreateParams, type DiscountUpdateParams, type DiscountsDefaultPageNumberPagination, } from "./discounts.mjs";
|
|
8
8
|
export { Disputes, type Dispute, type DisputeStage, type DisputeStatus, type GetDispute, type DisputeListResponse, type DisputeListParams, type DisputeListResponsesDefaultPageNumberPagination, } from "./disputes.mjs";
|
|
9
|
-
export { Entitlements, type Entitlement, type EntitlementIntegrationType, type GitHubPermission, type IntegrationConfig, type IntegrationConfigResponse, type
|
|
9
|
+
export { Entitlements, type Entitlement, type EntitlementIntegrationType, type GitHubPermission, type IntegrationConfig, type IntegrationConfigResponse, type EntitlementListParams, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementsDefaultPageNumberPagination, } from "./entitlements/entitlements.mjs";
|
|
10
10
|
export { Invoices } from "./invoices/invoices.mjs";
|
|
11
|
-
export { LicenseKeyInstances, type LicenseKeyInstance, type
|
|
12
|
-
export { LicenseKeys, type LicenseKey, type LicenseKeyStatus, type
|
|
11
|
+
export { LicenseKeyInstances, type LicenseKeyInstance, type LicenseKeyInstanceListParams, type LicenseKeyInstanceUpdateParams, type LicenseKeyInstancesDefaultPageNumberPagination, } from "./license-key-instances.mjs";
|
|
12
|
+
export { LicenseKeys, type LicenseKey, type LicenseKeyStatus, type LicenseKeyListParams, type LicenseKeyUpdateParams, type LicenseKeyCreateParams, type LicenseKeysDefaultPageNumberPagination, } from "./license-keys.mjs";
|
|
13
13
|
export { Licenses, type LicenseActivateResponse, type LicenseValidateResponse, type LicenseActivateParams, type LicenseDeactivateParams, type LicenseValidateParams, } from "./licenses.mjs";
|
|
14
|
-
export { Meters, type Conjunction, type FilterOperator, type FilterType, type Meter, type MeterAggregation, type MeterFilter, type
|
|
14
|
+
export { Meters, type Conjunction, type FilterOperator, type FilterType, type Meter, type MeterAggregation, type MeterFilter, type MeterListParams, type MeterCreateParams, type MetersDefaultPageNumberPagination, } from "./meters.mjs";
|
|
15
15
|
export { Misc, type CountryCode, type Currency, type TaxCategory, type MiscListSupportedCountriesResponse, } from "./misc.mjs";
|
|
16
|
-
export { Payments, type AttachExistingCustomer, type BillingAddress, type CreateNewCustomer, type CustomFieldResponse, type CustomerLimitedDetails, type CustomerRequest, type IntentStatus, type NewCustomer, type OneTimeProductCartItem, type Payment, type PaymentMethodTypes, type PaymentRefundStatus, type RefundListItem, type PaymentCreateResponse, type PaymentListResponse, type PaymentRetrieveLineItemsResponse, type
|
|
16
|
+
export { Payments, type AttachExistingCustomer, type BillingAddress, type CreateNewCustomer, type CustomFieldResponse, type CustomerLimitedDetails, type CustomerRequest, type IntentStatus, type NewCustomer, type OneTimeProductCartItem, type Payment, type PaymentMethodTypes, type PaymentRefundStatus, type RefundListItem, type PaymentCreateResponse, type PaymentListResponse, type PaymentRetrieveLineItemsResponse, type PaymentListParams, type PaymentCreateParams, type RefundListItemsDefaultPageNumberPagination, type PaymentListResponsesDefaultPageNumberPagination, } from "./payments.mjs";
|
|
17
17
|
export { Payouts, type PayoutListResponse, type PayoutListParams, type PayoutListResponsesDefaultPageNumberPagination, } from "./payouts/payouts.mjs";
|
|
18
|
-
export { ProductCollections, type ProductCollection, type ProductCollectionListResponse, type ProductCollectionUnarchiveResponse, type ProductCollectionUpdateImagesResponse, type
|
|
19
|
-
export { Products, type AddMeterToPrice, type AttachCreditEntitlement, type AttachProductEntitlement, type CbbProrationBehavior, type CreditEntitlementMappingResponse, type DigitalProductDelivery, type DigitalProductDeliveryFile, type LicenseKeyDuration, type Price, type Product, type ProductEntitlementSummary, type ProductListResponse, type ProductUpdateFilesResponse, type
|
|
20
|
-
export { Refunds, type Refund, type RefundStatus, type
|
|
21
|
-
export { Subscriptions, type AddonCartResponseItem, type AttachAddon, type CancellationFeedback, type CreditEntitlementCartResponse, type MeterCartResponseItem, type MeterCreditEntitlementCartResponse, type OnDemandSubscription, type ScheduledPlanChange, type Subscription, type SubscriptionStatus, type TimeInterval, type UpdateSubscriptionPlanReq, type SubscriptionCreateResponse, type SubscriptionListResponse, type SubscriptionChargeResponse, type SubscriptionPreviewChangePlanResponse, type SubscriptionRetrieveCreditUsageResponse, type SubscriptionRetrieveUsageHistoryResponse, type SubscriptionUpdatePaymentMethodResponse, type
|
|
22
|
-
export { UsageEvents, type Event, type EventInput, type UsageEventIngestResponse, type
|
|
18
|
+
export { ProductCollections, type ProductCollection, type ProductCollectionListResponse, type ProductCollectionUnarchiveResponse, type ProductCollectionUpdateImagesResponse, type ProductCollectionListParams, type ProductCollectionCreateParams, type ProductCollectionUpdateParams, type ProductCollectionUpdateImagesParams, type ProductCollectionListResponsesDefaultPageNumberPagination, } from "./product-collections/product-collections.mjs";
|
|
19
|
+
export { Products, type AddMeterToPrice, type AttachCreditEntitlement, type AttachProductEntitlement, type CbbProrationBehavior, type CreditEntitlementMappingResponse, type DigitalProductDelivery, type DigitalProductDeliveryFile, type LicenseKeyDuration, type Price, type Product, type ProductEntitlementSummary, type ProductListResponse, type ProductUpdateFilesResponse, type ProductListParams, type ProductCreateParams, type ProductUpdateParams, type ProductUpdateFilesParams, type ProductListResponsesDefaultPageNumberPagination, } from "./products/products.mjs";
|
|
20
|
+
export { Refunds, type Refund, type RefundStatus, type RefundListParams, type RefundCreateParams, } from "./refunds.mjs";
|
|
21
|
+
export { Subscriptions, type AddonCartResponseItem, type AttachAddon, type CancellationFeedback, type CreditEntitlementCartResponse, type MeterCartResponseItem, type MeterCreditEntitlementCartResponse, type OnDemandSubscription, type ScheduledPlanChange, type Subscription, type SubscriptionStatus, type TimeInterval, type UpdateSubscriptionPlanReq, type SubscriptionCreateResponse, type SubscriptionListResponse, type SubscriptionChargeResponse, type SubscriptionPreviewChangePlanResponse, type SubscriptionRetrieveCreditUsageResponse, type SubscriptionRetrieveUsageHistoryResponse, type SubscriptionUpdatePaymentMethodResponse, type SubscriptionListParams, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionChargeParams, type SubscriptionChangePlanParams, type SubscriptionRetrieveUsageHistoryParams, type SubscriptionUpdatePaymentMethodParams, type SubscriptionPreviewChangePlanParams, type SubscriptionListResponsesDefaultPageNumberPagination, type SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, } from "./subscriptions.mjs";
|
|
22
|
+
export { UsageEvents, type Event, type EventInput, type UsageEventIngestResponse, type UsageEventIngestParams, type UsageEventListParams, type EventsDefaultPageNumberPagination, } from "./usage-events.mjs";
|
|
23
23
|
export { WebhookEvents, type WebhookEventType, type WebhookPayload } from "./webhook-events.mjs";
|
|
24
|
-
export { Webhooks, type WebhookDetails, type WebhookRetrieveSecretResponse, type AbandonedCheckoutDetectedWebhookEvent, type AbandonedCheckoutRecoveredWebhookEvent, type CreditAddedWebhookEvent, type CreditBalanceLowWebhookEvent, type CreditDeductedWebhookEvent, type CreditExpiredWebhookEvent, type CreditManualAdjustmentWebhookEvent, type CreditOverageChargedWebhookEvent, type CreditOverageResetWebhookEvent, type CreditRolledOverWebhookEvent, type CreditRolloverForfeitedWebhookEvent, type DisputeAcceptedWebhookEvent, type DisputeCancelledWebhookEvent, type DisputeChallengedWebhookEvent, type DisputeExpiredWebhookEvent, type DisputeLostWebhookEvent, type DisputeOpenedWebhookEvent, type DisputeWonWebhookEvent, type DunningRecoveredWebhookEvent, type DunningStartedWebhookEvent, type EntitlementGrantCreatedWebhookEvent, type EntitlementGrantDeliveredWebhookEvent, type EntitlementGrantFailedWebhookEvent, type EntitlementGrantRevokedWebhookEvent, type LicenseKeyCreatedWebhookEvent, type PaymentCancelledWebhookEvent, type PaymentFailedWebhookEvent, type PaymentProcessingWebhookEvent, type PaymentSucceededWebhookEvent, type RefundFailedWebhookEvent, type RefundSucceededWebhookEvent, type SubscriptionActiveWebhookEvent, type SubscriptionCancelledWebhookEvent, type SubscriptionExpiredWebhookEvent, type SubscriptionFailedWebhookEvent, type SubscriptionOnHoldWebhookEvent, type SubscriptionPlanChangedWebhookEvent, type SubscriptionRenewedWebhookEvent, type SubscriptionUpdatedWebhookEvent, type UnsafeUnwrapWebhookEvent, type UnwrapWebhookEvent, type
|
|
24
|
+
export { Webhooks, type WebhookDetails, type WebhookRetrieveSecretResponse, type AbandonedCheckoutDetectedWebhookEvent, type AbandonedCheckoutRecoveredWebhookEvent, type CreditAddedWebhookEvent, type CreditBalanceLowWebhookEvent, type CreditDeductedWebhookEvent, type CreditExpiredWebhookEvent, type CreditManualAdjustmentWebhookEvent, type CreditOverageChargedWebhookEvent, type CreditOverageResetWebhookEvent, type CreditRolledOverWebhookEvent, type CreditRolloverForfeitedWebhookEvent, type DisputeAcceptedWebhookEvent, type DisputeCancelledWebhookEvent, type DisputeChallengedWebhookEvent, type DisputeExpiredWebhookEvent, type DisputeLostWebhookEvent, type DisputeOpenedWebhookEvent, type DisputeWonWebhookEvent, type DunningRecoveredWebhookEvent, type DunningStartedWebhookEvent, type EntitlementGrantCreatedWebhookEvent, type EntitlementGrantDeliveredWebhookEvent, type EntitlementGrantFailedWebhookEvent, type EntitlementGrantRevokedWebhookEvent, type LicenseKeyCreatedWebhookEvent, type PaymentCancelledWebhookEvent, type PaymentFailedWebhookEvent, type PaymentProcessingWebhookEvent, type PaymentSucceededWebhookEvent, type RefundFailedWebhookEvent, type RefundSucceededWebhookEvent, type SubscriptionActiveWebhookEvent, type SubscriptionCancelledWebhookEvent, type SubscriptionExpiredWebhookEvent, type SubscriptionFailedWebhookEvent, type SubscriptionOnHoldWebhookEvent, type SubscriptionPlanChangedWebhookEvent, type SubscriptionRenewedWebhookEvent, type SubscriptionUpdatedWebhookEvent, type UnsafeUnwrapWebhookEvent, type UnwrapWebhookEvent, type WebhookListParams, type WebhookCreateParams, type WebhookUpdateParams, type WebhookDetailsCursorPagePagination, } from "./webhooks/webhooks.mjs";
|
|
25
25
|
//# sourceMappingURL=index.d.mts.map
|