@stigg/typescript 0.1.0-alpha.4 → 0.1.0-alpha.8
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 +86 -0
- package/README.md +9 -0
- package/client.d.mts +4 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -6
- package/client.d.ts.map +1 -1
- package/client.js +23 -21
- package/client.js.map +1 -1
- package/client.mjs +23 -21
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/v1/coupons.d.mts +74 -8
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +74 -8
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +16 -3
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +16 -3
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +74 -10
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +74 -10
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +18 -7
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +18 -7
- 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.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +4 -2
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +4 -2
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +4 -2
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +4 -2
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +159 -11
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +159 -11
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +15 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +15 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/addons/addons.d.mts +605 -0
- package/resources/v1/events/addons/addons.d.mts.map +1 -0
- package/resources/v1/events/addons/addons.d.ts +605 -0
- package/resources/v1/events/addons/addons.d.ts.map +1 -0
- package/resources/v1/events/addons/addons.js +60 -0
- package/resources/v1/events/addons/addons.js.map +1 -0
- package/resources/v1/events/addons/addons.mjs +55 -0
- package/resources/v1/events/addons/addons.mjs.map +1 -0
- package/resources/v1/events/addons/draft.d.mts +121 -0
- package/resources/v1/events/addons/draft.d.mts.map +1 -0
- package/resources/v1/events/addons/draft.d.ts +121 -0
- package/resources/v1/events/addons/draft.d.ts.map +1 -0
- package/resources/v1/events/addons/draft.js +22 -0
- package/resources/v1/events/addons/draft.js.map +1 -0
- package/resources/v1/events/addons/draft.mjs +18 -0
- package/resources/v1/events/addons/draft.mjs.map +1 -0
- package/resources/v1/events/addons/index.d.mts +3 -0
- package/resources/v1/events/addons/index.d.mts.map +1 -0
- package/resources/v1/events/addons/index.d.ts +3 -0
- package/resources/v1/events/addons/index.d.ts.map +1 -0
- package/resources/v1/events/addons/index.js +9 -0
- package/resources/v1/events/addons/index.js.map +1 -0
- package/resources/v1/events/addons/index.mjs +4 -0
- package/resources/v1/events/addons/index.mjs.map +1 -0
- package/resources/v1/events/addons.d.mts +2 -0
- package/resources/v1/events/addons.d.mts.map +1 -0
- package/resources/v1/events/addons.d.ts +2 -0
- package/resources/v1/events/addons.d.ts.map +1 -0
- package/resources/v1/events/addons.js +6 -0
- package/resources/v1/events/addons.js.map +1 -0
- package/resources/v1/events/addons.mjs +3 -0
- package/resources/v1/events/addons.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +75 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +75 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +32 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +27 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/features.d.mts +856 -0
- package/resources/v1/events/features.d.mts.map +1 -0
- package/resources/v1/events/features.d.ts +856 -0
- package/resources/v1/events/features.d.ts.map +1 -0
- package/resources/v1/events/features.js +51 -0
- package/resources/v1/events/features.js.map +1 -0
- package/resources/v1/events/features.mjs +47 -0
- package/resources/v1/events/features.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +5 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +5 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +13 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +6 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events/plans.d.mts +348 -0
- package/resources/v1/events/plans.d.mts.map +1 -0
- package/resources/v1/events/plans.d.ts +348 -0
- package/resources/v1/events/plans.d.ts.map +1 -0
- package/resources/v1/events/plans.js +30 -0
- package/resources/v1/events/plans.js.map +1 -0
- package/resources/v1/events/plans.mjs +26 -0
- package/resources/v1/events/plans.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -61
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -61
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -11
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -9
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/index.d.mts +4 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +4 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -5
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/products.d.mts +672 -0
- package/resources/v1/products.d.mts.map +1 -0
- package/resources/v1/products.d.ts +672 -0
- package/resources/v1/products.d.ts.map +1 -0
- package/resources/v1/products.js +52 -0
- package/resources/v1/products.js.map +1 -0
- package/resources/v1/products.mjs +48 -0
- package/resources/v1/products.mjs.map +1 -0
- package/resources/v1/subscriptions/future-update.d.mts +3 -2
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +3 -2
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +3 -2
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +3 -2
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +2 -0
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +2 -0
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js +5 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +2 -0
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +34 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
- package/resources/v1/subscriptions/invoice.d.ts +34 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
- package/resources/v1/subscriptions/invoice.js +17 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -0
- package/resources/v1/subscriptions/invoice.mjs +13 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -0
- package/resources/v1/subscriptions/subscriptions.d.mts +166 -34
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +166 -34
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +28 -10
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +28 -10
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +98 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -0
- package/resources/v1/subscriptions/usage.d.ts +98 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -0
- package/resources/v1/subscriptions/usage.js +24 -0
- package/resources/v1/subscriptions/usage.js.map +1 -0
- package/resources/v1/subscriptions/usage.mjs +20 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -0
- package/resources/v1/usage.d.mts +3 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +3 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +3 -2
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +3 -2
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +10 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +10 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +6 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +6 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +31 -26
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/resources/v1/coupons.ts +89 -9
- package/src/resources/v1/customers/customers.ts +107 -12
- package/src/resources/v1/customers/index.ts +8 -2
- package/src/resources/v1/customers/payment-method.ts +4 -2
- package/src/resources/v1/customers/promotional-entitlements.ts +221 -18
- package/src/resources/v1/events/addons/addons.ts +761 -0
- package/src/resources/v1/events/addons/draft.ts +151 -0
- package/src/resources/v1/events/addons/index.ts +17 -0
- package/src/resources/v1/events/addons.ts +3 -0
- package/src/resources/v1/events/events.ts +160 -0
- package/src/resources/v1/events/features.ts +1066 -0
- package/src/resources/v1/events/index.ts +39 -0
- package/src/resources/v1/events/plans.ts +429 -0
- package/src/resources/v1/events.ts +1 -71
- package/src/resources/v1/index.ts +19 -1
- package/src/resources/v1/products.ts +829 -0
- package/src/resources/v1/subscriptions/future-update.ts +3 -2
- package/src/resources/v1/subscriptions/index.ts +7 -0
- package/src/resources/v1/subscriptions/invoice.ts +42 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +235 -36
- package/src/resources/v1/subscriptions/usage.ts +126 -0
- package/src/resources/v1/usage.ts +3 -2
- package/src/resources/v1/v1.ts +42 -2
- 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
|
@@ -2,27 +2,36 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as FutureUpdateAPI from "./future-update.mjs";
|
|
4
4
|
import { FutureUpdate } from "./future-update.mjs";
|
|
5
|
+
import * as InvoiceAPI from "./invoice.mjs";
|
|
6
|
+
import { Invoice } from "./invoice.mjs";
|
|
7
|
+
import * as UsageAPI from "./usage.mjs";
|
|
8
|
+
import { Usage } from "./usage.mjs";
|
|
5
9
|
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
6
10
|
import { path } from "../../../internal/utils/path.mjs";
|
|
7
11
|
export class Subscriptions extends APIResource {
|
|
8
12
|
constructor() {
|
|
9
13
|
super(...arguments);
|
|
10
14
|
this.futureUpdate = new FutureUpdateAPI.FutureUpdate(this._client);
|
|
15
|
+
this.usage = new UsageAPI.Usage(this._client);
|
|
16
|
+
this.invoice = new InvoiceAPI.Invoice(this._client);
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
|
-
*
|
|
19
|
+
* Retrieves a subscription by its unique identifier, including plan details,
|
|
20
|
+
* billing period, status, and add-ons.
|
|
14
21
|
*/
|
|
15
22
|
retrieve(id, options) {
|
|
16
23
|
return this._client.get(path `/api/v1/subscriptions/${id}`, options);
|
|
17
24
|
}
|
|
18
25
|
/**
|
|
19
|
-
*
|
|
26
|
+
* Updates an active subscription's properties including billing period, add-ons,
|
|
27
|
+
* unit quantities, and discounts.
|
|
20
28
|
*/
|
|
21
29
|
update(id, body, options) {
|
|
22
30
|
return this._client.patch(path `/api/v1/subscriptions/${id}`, { body, ...options });
|
|
23
31
|
}
|
|
24
32
|
/**
|
|
25
|
-
*
|
|
33
|
+
* Retrieves a paginated list of subscriptions, with optional filters for customer,
|
|
34
|
+
* status, and plan.
|
|
26
35
|
*/
|
|
27
36
|
list(query = {}, options) {
|
|
28
37
|
return this._client.getAPIList('/api/v1/subscriptions', (MyCursorIDPage), {
|
|
@@ -31,47 +40,56 @@ export class Subscriptions extends APIResource {
|
|
|
31
40
|
});
|
|
32
41
|
}
|
|
33
42
|
/**
|
|
34
|
-
*
|
|
43
|
+
* Cancels an active subscription, either immediately or at a specified time such
|
|
44
|
+
* as end of billing period.
|
|
35
45
|
*/
|
|
36
46
|
cancel(id, body, options) {
|
|
37
47
|
return this._client.post(path `/api/v1/subscriptions/${id}/cancel`, { body, ...options });
|
|
38
48
|
}
|
|
39
49
|
/**
|
|
40
|
-
*
|
|
50
|
+
* Delegates the payment responsibility of a subscription to a different customer.
|
|
51
|
+
* The delegated customer will be billed for this subscription.
|
|
41
52
|
*/
|
|
42
53
|
delegate(id, body, options) {
|
|
43
54
|
return this._client.post(path `/api/v1/subscriptions/${id}/delegate`, { body, ...options });
|
|
44
55
|
}
|
|
45
56
|
/**
|
|
46
|
-
*
|
|
57
|
+
* Imports multiple subscriptions in bulk. Used for migrating subscription data
|
|
58
|
+
* from external systems.
|
|
47
59
|
*/
|
|
48
60
|
import(body, options) {
|
|
49
61
|
return this._client.post('/api/v1/subscriptions/import', { body, ...options });
|
|
50
62
|
}
|
|
51
63
|
/**
|
|
52
|
-
*
|
|
64
|
+
* Migrates a subscription to the latest published version of its plan or add-ons.
|
|
65
|
+
* Handles prorated charges or credits automatically.
|
|
53
66
|
*/
|
|
54
67
|
migrate(id, body, options) {
|
|
55
68
|
return this._client.post(path `/api/v1/subscriptions/${id}/migrate`, { body, ...options });
|
|
56
69
|
}
|
|
57
70
|
/**
|
|
58
|
-
*
|
|
71
|
+
* Previews the pricing impact of creating or updating a subscription without
|
|
72
|
+
* making changes. Returns estimated costs, taxes, and proration details.
|
|
59
73
|
*/
|
|
60
74
|
preview(body, options) {
|
|
61
75
|
return this._client.post('/api/v1/subscriptions/preview', { body, ...options });
|
|
62
76
|
}
|
|
63
77
|
/**
|
|
64
|
-
*
|
|
78
|
+
* Creates a new subscription for an existing customer. When payment is required
|
|
79
|
+
* and no payment method exists, returns a checkout URL.
|
|
65
80
|
*/
|
|
66
81
|
provision(body, options) {
|
|
67
82
|
return this._client.post('/api/v1/subscriptions', { body, ...options });
|
|
68
83
|
}
|
|
69
84
|
/**
|
|
70
|
-
*
|
|
85
|
+
* Transfers a subscription to a different resource ID. Used for multi-resource
|
|
86
|
+
* products where subscriptions apply to specific entities like websites or apps.
|
|
71
87
|
*/
|
|
72
88
|
transfer(id, body, options) {
|
|
73
89
|
return this._client.post(path `/api/v1/subscriptions/${id}/transfer`, { body, ...options });
|
|
74
90
|
}
|
|
75
91
|
}
|
|
76
92
|
Subscriptions.FutureUpdate = FutureUpdate;
|
|
93
|
+
Subscriptions.Usage = Usage;
|
|
94
|
+
Subscriptions.Invoice = Invoice;
|
|
77
95
|
//# sourceMappingURL=subscriptions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAA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AC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,yBAAyB,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AA4tHD,aAAa,CAAC,YAAY,GAAG,YAAY,CAAC;AAC1C,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC;AAC5B,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Usage extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Immediately charges usage for a subscription via the billing integration.
|
|
7
|
+
* Calculates usage since the last charge and creates an invoice.
|
|
8
|
+
*/
|
|
9
|
+
chargeUsage(id: string, body: UsageChargeUsageParams, options?: RequestOptions): APIPromise<UsageChargeUsageResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
12
|
+
* provider.
|
|
13
|
+
*/
|
|
14
|
+
sync(id: string, options?: RequestOptions): APIPromise<UsageSyncResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Response object
|
|
18
|
+
*/
|
|
19
|
+
export interface UsageChargeUsageResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Result of charging subscription usage including the billing period and charged
|
|
22
|
+
* items.
|
|
23
|
+
*/
|
|
24
|
+
data: UsageChargeUsageResponse.Data;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace UsageChargeUsageResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Result of charging subscription usage including the billing period and charged
|
|
29
|
+
* items.
|
|
30
|
+
*/
|
|
31
|
+
interface Data {
|
|
32
|
+
/**
|
|
33
|
+
* The invoice ID in the billing integration
|
|
34
|
+
*/
|
|
35
|
+
invoiceBillingId: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* End of the usage billing period
|
|
38
|
+
*/
|
|
39
|
+
periodEnd: string;
|
|
40
|
+
/**
|
|
41
|
+
* Start of the usage billing period
|
|
42
|
+
*/
|
|
43
|
+
periodStart: string;
|
|
44
|
+
/**
|
|
45
|
+
* The subscription ID for which usage was charged
|
|
46
|
+
*/
|
|
47
|
+
subscriptionId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Usage items that were charged
|
|
50
|
+
*/
|
|
51
|
+
usageCharged: Array<Data.UsageCharged>;
|
|
52
|
+
}
|
|
53
|
+
namespace Data {
|
|
54
|
+
/**
|
|
55
|
+
* A single usage item that was charged.
|
|
56
|
+
*/
|
|
57
|
+
interface UsageCharged {
|
|
58
|
+
/**
|
|
59
|
+
* The feature ID for which usage was charged
|
|
60
|
+
*/
|
|
61
|
+
featureId: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The number of units charged
|
|
64
|
+
*/
|
|
65
|
+
usageAmount: number;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Response object
|
|
71
|
+
*/
|
|
72
|
+
export interface UsageSyncResponse {
|
|
73
|
+
/**
|
|
74
|
+
* Result of triggering a subscription usage sync.
|
|
75
|
+
*/
|
|
76
|
+
data: UsageSyncResponse.Data;
|
|
77
|
+
}
|
|
78
|
+
export declare namespace UsageSyncResponse {
|
|
79
|
+
/**
|
|
80
|
+
* Result of triggering a subscription usage sync.
|
|
81
|
+
*/
|
|
82
|
+
interface Data {
|
|
83
|
+
/**
|
|
84
|
+
* Whether usage was synced to the billing provider
|
|
85
|
+
*/
|
|
86
|
+
triggered: boolean;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export interface UsageChargeUsageParams {
|
|
90
|
+
/**
|
|
91
|
+
* Cutoff date for usage calculation. If not provided, the current time is used.
|
|
92
|
+
*/
|
|
93
|
+
untilDate?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace Usage {
|
|
96
|
+
export { type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, };
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=usage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG1E;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC;CACrC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACxC;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,YAAY;YAC3B;;eAEG;YACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;YAEzB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;SACrB;KACF;CACF;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC;CAC9B;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;KACpB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Usage extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Immediately charges usage for a subscription via the billing integration.
|
|
7
|
+
* Calculates usage since the last charge and creates an invoice.
|
|
8
|
+
*/
|
|
9
|
+
chargeUsage(id: string, body: UsageChargeUsageParams, options?: RequestOptions): APIPromise<UsageChargeUsageResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
12
|
+
* provider.
|
|
13
|
+
*/
|
|
14
|
+
sync(id: string, options?: RequestOptions): APIPromise<UsageSyncResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Response object
|
|
18
|
+
*/
|
|
19
|
+
export interface UsageChargeUsageResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Result of charging subscription usage including the billing period and charged
|
|
22
|
+
* items.
|
|
23
|
+
*/
|
|
24
|
+
data: UsageChargeUsageResponse.Data;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace UsageChargeUsageResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Result of charging subscription usage including the billing period and charged
|
|
29
|
+
* items.
|
|
30
|
+
*/
|
|
31
|
+
interface Data {
|
|
32
|
+
/**
|
|
33
|
+
* The invoice ID in the billing integration
|
|
34
|
+
*/
|
|
35
|
+
invoiceBillingId: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* End of the usage billing period
|
|
38
|
+
*/
|
|
39
|
+
periodEnd: string;
|
|
40
|
+
/**
|
|
41
|
+
* Start of the usage billing period
|
|
42
|
+
*/
|
|
43
|
+
periodStart: string;
|
|
44
|
+
/**
|
|
45
|
+
* The subscription ID for which usage was charged
|
|
46
|
+
*/
|
|
47
|
+
subscriptionId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Usage items that were charged
|
|
50
|
+
*/
|
|
51
|
+
usageCharged: Array<Data.UsageCharged>;
|
|
52
|
+
}
|
|
53
|
+
namespace Data {
|
|
54
|
+
/**
|
|
55
|
+
* A single usage item that was charged.
|
|
56
|
+
*/
|
|
57
|
+
interface UsageCharged {
|
|
58
|
+
/**
|
|
59
|
+
* The feature ID for which usage was charged
|
|
60
|
+
*/
|
|
61
|
+
featureId: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The number of units charged
|
|
64
|
+
*/
|
|
65
|
+
usageAmount: number;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Response object
|
|
71
|
+
*/
|
|
72
|
+
export interface UsageSyncResponse {
|
|
73
|
+
/**
|
|
74
|
+
* Result of triggering a subscription usage sync.
|
|
75
|
+
*/
|
|
76
|
+
data: UsageSyncResponse.Data;
|
|
77
|
+
}
|
|
78
|
+
export declare namespace UsageSyncResponse {
|
|
79
|
+
/**
|
|
80
|
+
* Result of triggering a subscription usage sync.
|
|
81
|
+
*/
|
|
82
|
+
interface Data {
|
|
83
|
+
/**
|
|
84
|
+
* Whether usage was synced to the billing provider
|
|
85
|
+
*/
|
|
86
|
+
triggered: boolean;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export interface UsageChargeUsageParams {
|
|
90
|
+
/**
|
|
91
|
+
* Cutoff date for usage calculation. If not provided, the current time is used.
|
|
92
|
+
*/
|
|
93
|
+
untilDate?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace Usage {
|
|
96
|
+
export { type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, };
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG1E;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC;CACrC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACxC;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,YAAY;YAC3B;;eAEG;YACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;YAEzB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;SACrB;KACF;CACF;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC;CAC9B;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;KACpB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Usage = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Usage extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Immediately charges usage for a subscription via the billing integration.
|
|
10
|
+
* Calculates usage since the last charge and creates an invoice.
|
|
11
|
+
*/
|
|
12
|
+
chargeUsage(id, body, options) {
|
|
13
|
+
return this._client.post((0, path_1.path) `/api/v1/subscriptions/${id}/usage/charge`, { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
17
|
+
* provider.
|
|
18
|
+
*/
|
|
19
|
+
sync(id, options) {
|
|
20
|
+
return this._client.post((0, path_1.path) `/api/v1/subscriptions/${id}/usage/sync`, options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.Usage = Usage;
|
|
24
|
+
//# sourceMappingURL=usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,WAAW,CACT,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AApBD,sBAoBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
export class Usage extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Immediately charges usage for a subscription via the billing integration.
|
|
7
|
+
* Calculates usage since the last charge and creates an invoice.
|
|
8
|
+
*/
|
|
9
|
+
chargeUsage(id, body, options) {
|
|
10
|
+
return this._client.post(path `/api/v1/subscriptions/${id}/usage/charge`, { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
14
|
+
* provider.
|
|
15
|
+
*/
|
|
16
|
+
sync(id, options) {
|
|
17
|
+
return this._client.post(path `/api/v1/subscriptions/${id}/usage/sync`, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=usage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,WAAW,CACT,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,yBAAyB,EAAE,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,yBAAyB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF"}
|
package/resources/v1/usage.d.mts
CHANGED
|
@@ -3,11 +3,12 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Usage extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Retrieves historical usage data for a customer's metered feature over time.
|
|
7
7
|
*/
|
|
8
8
|
history(featureID: string, params: UsageHistoryParams, options?: RequestOptions): APIPromise<UsageHistoryResponse>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Reports usage measurements for metered features. The reported usage is used to
|
|
11
|
+
* track, limit, and bill customer consumption.
|
|
11
12
|
*/
|
|
12
13
|
report(body: UsageReportParams, options?: RequestOptions): APIPromise<UsageReportResponse>;
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKnC
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKnC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;CACjC;AAED,yBAAiB,oBAAoB,CAAC;IACpC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE5B;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC5B;IAED,UA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C7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/v1/usage.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Usage extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Retrieves historical usage data for a customer's metered feature over time.
|
|
7
7
|
*/
|
|
8
8
|
history(featureID: string, params: UsageHistoryParams, options?: RequestOptions): APIPromise<UsageHistoryResponse>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Reports usage measurements for metered features. The reported usage is used to
|
|
11
|
+
* track, limit, and bill customer consumption.
|
|
11
12
|
*/
|
|
12
13
|
report(body: UsageReportParams, options?: RequestOptions): APIPromise<UsageReportResponse>;
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKnC
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKn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C,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;KAClC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/v1/usage.js
CHANGED
|
@@ -6,14 +6,15 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
class Usage extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Retrieves historical usage data for a customer's metered feature over time.
|
|
10
10
|
*/
|
|
11
11
|
history(featureID, params, options) {
|
|
12
12
|
const { customerId, ...query } = params;
|
|
13
13
|
return this._client.get((0, path_1.path) `/api/v1/usage/${customerId}/history/${featureID}`, { query, ...options });
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Reports usage measurements for metered features. The reported usage is used to
|
|
17
|
+
* track, limit, and bill customer consumption.
|
|
17
18
|
*/
|
|
18
19
|
report(body, options) {
|
|
19
20
|
return this._client.post('/api/v1/usage', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAiB,EACjB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAiB,EACjB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AApBD,sBAoBC"}
|
package/resources/v1/usage.mjs
CHANGED
|
@@ -3,14 +3,15 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
4
|
export class Usage extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Retrieves historical usage data for a customer's metered feature over time.
|
|
7
7
|
*/
|
|
8
8
|
history(featureID, params, options) {
|
|
9
9
|
const { customerId, ...query } = params;
|
|
10
10
|
return this._client.get(path `/api/v1/usage/${customerId}/history/${featureID}`, { query, ...options });
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Reports usage measurements for metered features. The reported usage is used to
|
|
14
|
+
* track, limit, and bill customer consumption.
|
|
14
15
|
*/
|
|
15
16
|
report(body, options) {
|
|
16
17
|
return this._client.post('/api/v1/usage', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAiB,EACjB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,UAAU,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAiB,EACjB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,UAAU,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF"}
|
package/resources/v1/v1.d.mts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as CouponsAPI from "./coupons.mjs";
|
|
3
|
-
import { Coupon, CouponCreateParams, CouponListParams, CouponListResponse, CouponListResponsesMyCursorIDPage, Coupons } from "./coupons.mjs";
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
3
|
+
import { Coupon, CouponCreateParams, CouponListParams, CouponListResponse, CouponListResponsesMyCursorIDPage, CouponUpdateCouponParams, Coupons } from "./coupons.mjs";
|
|
4
|
+
import * as ProductsAPI from "./products.mjs";
|
|
5
|
+
import { ProductArchiveProductResponse, ProductCreateProductParams, ProductCreateProductResponse, ProductDuplicateProductParams, ProductDuplicateProductResponse, ProductListProductsParams, ProductListProductsResponse, ProductListProductsResponsesMyCursorIDPage, ProductUnarchiveProductResponse, ProductUpdateProductParams, ProductUpdateProductResponse, Products } from "./products.mjs";
|
|
6
6
|
import * as UsageAPI from "./usage.mjs";
|
|
7
7
|
import { Usage, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.mjs";
|
|
8
8
|
import * as CustomersAPI from "./customers/customers.mjs";
|
|
9
|
-
import { CustomerImportParams, CustomerImportResponse, CustomerListParams, CustomerListResponse, CustomerListResponsesMyCursorIDPage, CustomerProvisionParams, CustomerResponse, CustomerUpdateParams, Customers } from "./customers/customers.mjs";
|
|
9
|
+
import { CustomerImportParams, CustomerImportResponse, CustomerListParams, CustomerListResourcesParams, CustomerListResourcesResponse, CustomerListResourcesResponsesMyCursorIDPage, CustomerListResponse, CustomerListResponsesMyCursorIDPage, CustomerProvisionParams, CustomerResponse, CustomerUpdateParams, Customers } from "./customers/customers.mjs";
|
|
10
|
+
import * as EventsAPI from "./events/events.mjs";
|
|
11
|
+
import { EventReportParams, EventReportResponse, Events } from "./events/events.mjs";
|
|
10
12
|
import * as SubscriptionsAPI from "./subscriptions/subscriptions.mjs";
|
|
11
13
|
import { Subscription, SubscriptionCancelParams, SubscriptionDelegateParams, SubscriptionImportParams, SubscriptionImportResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionListResponsesMyCursorIDPage, SubscriptionMigrateParams, SubscriptionPreviewParams, SubscriptionPreviewResponse, SubscriptionProvisionParams, SubscriptionProvisionResponse, SubscriptionTransferParams, SubscriptionUpdateParams, Subscriptions } from "./subscriptions/subscriptions.mjs";
|
|
12
14
|
export declare class V1 extends APIResource {
|
|
@@ -15,12 +17,14 @@ export declare class V1 extends APIResource {
|
|
|
15
17
|
coupons: CouponsAPI.Coupons;
|
|
16
18
|
events: EventsAPI.Events;
|
|
17
19
|
usage: UsageAPI.Usage;
|
|
20
|
+
products: ProductsAPI.Products;
|
|
18
21
|
}
|
|
19
22
|
export declare namespace V1 {
|
|
20
|
-
export { Customers as Customers, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
23
|
+
export { Customers as Customers, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
21
24
|
export { Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
|
|
22
|
-
export { Coupons as Coupons, type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
|
|
25
|
+
export { Coupons as Coupons, type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
23
26
|
export { Events as Events, type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams, };
|
|
24
27
|
export { Usage as Usage, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
28
|
+
export { Products as Products, type ProductArchiveProductResponse as ProductArchiveProductResponse, type ProductCreateProductResponse as ProductCreateProductResponse, type ProductDuplicateProductResponse as ProductDuplicateProductResponse, type ProductListProductsResponse as ProductListProductsResponse, type ProductUnarchiveProductResponse as ProductUnarchiveProductResponse, type ProductUpdateProductResponse as ProductUpdateProductResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
25
29
|
}
|
|
26
30
|
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,OAAO,EACR;OACM,KAAK,
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,wBAAwB,EACxB,OAAO,EACR;OACM,KAAK,WAAW;OAChB,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,+BAA+B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,QAAQ,EACT;OACM,KAAK,QAAQ;OACb,EACL,KAAK,EACL,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACpB;OACM,KAAK,YAAY;OACjB,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,4CAA4C,EAC5C,oBAAoB,EACpB,mCAAmC,EACnC,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,SAAS,E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AA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/v1.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as CouponsAPI from "./coupons.js";
|
|
3
|
-
import { Coupon, CouponCreateParams, CouponListParams, CouponListResponse, CouponListResponsesMyCursorIDPage, Coupons } from "./coupons.js";
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
3
|
+
import { Coupon, CouponCreateParams, CouponListParams, CouponListResponse, CouponListResponsesMyCursorIDPage, CouponUpdateCouponParams, Coupons } from "./coupons.js";
|
|
4
|
+
import * as ProductsAPI from "./products.js";
|
|
5
|
+
import { ProductArchiveProductResponse, ProductCreateProductParams, ProductCreateProductResponse, ProductDuplicateProductParams, ProductDuplicateProductResponse, ProductListProductsParams, ProductListProductsResponse, ProductListProductsResponsesMyCursorIDPage, ProductUnarchiveProductResponse, ProductUpdateProductParams, ProductUpdateProductResponse, Products } from "./products.js";
|
|
6
6
|
import * as UsageAPI from "./usage.js";
|
|
7
7
|
import { Usage, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.js";
|
|
8
8
|
import * as CustomersAPI from "./customers/customers.js";
|
|
9
|
-
import { CustomerImportParams, CustomerImportResponse, CustomerListParams, CustomerListResponse, CustomerListResponsesMyCursorIDPage, CustomerProvisionParams, CustomerResponse, CustomerUpdateParams, Customers } from "./customers/customers.js";
|
|
9
|
+
import { CustomerImportParams, CustomerImportResponse, CustomerListParams, CustomerListResourcesParams, CustomerListResourcesResponse, CustomerListResourcesResponsesMyCursorIDPage, CustomerListResponse, CustomerListResponsesMyCursorIDPage, CustomerProvisionParams, CustomerResponse, CustomerUpdateParams, Customers } from "./customers/customers.js";
|
|
10
|
+
import * as EventsAPI from "./events/events.js";
|
|
11
|
+
import { EventReportParams, EventReportResponse, Events } from "./events/events.js";
|
|
10
12
|
import * as SubscriptionsAPI from "./subscriptions/subscriptions.js";
|
|
11
13
|
import { Subscription, SubscriptionCancelParams, SubscriptionDelegateParams, SubscriptionImportParams, SubscriptionImportResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionListResponsesMyCursorIDPage, SubscriptionMigrateParams, SubscriptionPreviewParams, SubscriptionPreviewResponse, SubscriptionProvisionParams, SubscriptionProvisionResponse, SubscriptionTransferParams, SubscriptionUpdateParams, Subscriptions } from "./subscriptions/subscriptions.js";
|
|
12
14
|
export declare class V1 extends APIResource {
|
|
@@ -15,12 +17,14 @@ export declare class V1 extends APIResource {
|
|
|
15
17
|
coupons: CouponsAPI.Coupons;
|
|
16
18
|
events: EventsAPI.Events;
|
|
17
19
|
usage: UsageAPI.Usage;
|
|
20
|
+
products: ProductsAPI.Products;
|
|
18
21
|
}
|
|
19
22
|
export declare namespace V1 {
|
|
20
|
-
export { Customers as Customers, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
23
|
+
export { Customers as Customers, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
21
24
|
export { Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
|
|
22
|
-
export { Coupons as Coupons, type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
|
|
25
|
+
export { Coupons as Coupons, type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
23
26
|
export { Events as Events, type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams, };
|
|
24
27
|
export { Usage as Usage, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
28
|
+
export { Products as Products, type ProductArchiveProductResponse as ProductArchiveProductResponse, type ProductCreateProductResponse as ProductCreateProductResponse, type ProductDuplicateProductResponse as ProductDuplicateProductResponse, type ProductListProductsResponse as ProductListProductsResponse, type ProductUnarchiveProductResponse as ProductUnarchiveProductResponse, type ProductUpdateProductResponse as ProductUpdateProductResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
25
29
|
}
|
|
26
30
|
//# sourceMappingURL=v1.d.ts.map
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,OAAO,EACR;OACM,KAAK,
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,wBAAwB,EACxB,OAAO,EACR;OACM,KAAK,WAAW;OAChB,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,+BAA+B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,QAAQ,EACT;OACM,KAAK,QAAQ;OACb,EACL,KAAK,EACL,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACpB;OACM,KAAK,YAAY;OACjB,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,4CAA4C,EAC5C,oBAAoB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