@stigg/typescript 0.1.0-alpha.3 → 0.1.0-alpha.7
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 +61 -0
- package/README.md +9 -0
- package/client.d.mts +6 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -8
- package/client.d.ts.map +1 -1
- package/client.js +16 -21
- package/client.js.map +1 -1
- package/client.mjs +17 -22
- 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/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +55 -96
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +55 -96
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +4 -3
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +4 -3
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +170 -46
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +170 -46
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +32 -15
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +32 -15
- 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 +3 -3
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/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 +352 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.d.ts +352 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.js +25 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -0
- package/resources/v1/customers/promotional-entitlements.mjs +21 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
- package/resources/v1/events.d.mts +63 -0
- package/resources/v1/events.d.mts.map +1 -0
- package/resources/v1/events.d.ts +63 -0
- package/resources/v1/events.d.ts.map +1 -0
- package/resources/v1/events.js +16 -0
- package/resources/v1/events.js.map +1 -0
- package/resources/v1/events.mjs +12 -0
- package/resources/v1/events.mjs.map +1 -0
- package/resources/v1/index.d.mts +7 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +7 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +4 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/products.d.mts +126 -0
- package/resources/v1/products.d.mts.map +1 -0
- package/resources/v1/products.d.ts +126 -0
- package/resources/v1/products.d.ts.map +1 -0
- package/resources/v1/products.js +19 -0
- package/resources/v1/products.js.map +1 -0
- package/resources/v1/products.mjs +15 -0
- package/resources/v1/products.mjs.map +1 -0
- package/resources/v1/subscriptions/future-update.d.mts +9 -22
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +9 -22
- 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 -2
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +2 -2
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +987 -949
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +987 -949
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +39 -11
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +40 -12
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +230 -0
- package/resources/v1/usage.d.mts.map +1 -0
- package/resources/v1/usage.d.ts +230 -0
- package/resources/v1/usage.d.ts.map +1 -0
- package/resources/v1/usage.js +24 -0
- package/resources/v1/usage.js.map +1 -0
- package/resources/v1/usage.mjs +20 -0
- package/resources/v1/usage.mjs.map +1 -0
- package/resources/v1/v1.d.mts +18 -172
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +18 -172
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +12 -12
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +12 -12
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +25 -40
- 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/index.ts +1 -7
- package/src/resources/v1/coupons.ts +63 -231
- package/src/resources/v1/customers/customers.ts +234 -60
- package/src/resources/v1/customers/index.ts +13 -2
- package/src/resources/v1/customers/payment-method.ts +4 -2
- package/src/resources/v1/customers/promotional-entitlements.ts +468 -0
- package/src/resources/v1/events.ts +74 -0
- package/src/resources/v1/index.ts +28 -15
- package/src/resources/v1/products.ts +162 -0
- package/src/resources/v1/subscriptions/future-update.ts +9 -30
- package/src/resources/v1/subscriptions/index.ts +8 -11
- package/src/resources/v1/subscriptions/subscriptions.ts +2699 -2280
- package/src/resources/v1/usage.ts +284 -0
- package/src/resources/v1/v1.ts +72 -220
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/customers/usage.d.mts +0 -4
- package/resources/v1/customers/usage.d.mts.map +0 -1
- package/resources/v1/customers/usage.d.ts +0 -4
- package/resources/v1/customers/usage.d.ts.map +0 -1
- package/resources/v1/customers/usage.js +0 -9
- package/resources/v1/customers/usage.js.map +0 -1
- package/resources/v1/customers/usage.mjs +0 -5
- package/resources/v1/customers/usage.mjs.map +0 -1
- package/src/resources/v1/customers/usage.ts +0 -5
package/resources/v1/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = exports.Subscriptions = exports.Customers = exports.Coupons = void 0;
|
|
4
|
+
exports.V1 = exports.Usage = exports.Subscriptions = exports.Products = exports.Events = exports.Customers = exports.Coupons = void 0;
|
|
5
5
|
var coupons_1 = require("./coupons.js");
|
|
6
6
|
Object.defineProperty(exports, "Coupons", { enumerable: true, get: function () { return coupons_1.Coupons; } });
|
|
7
7
|
var index_1 = require("./customers/index.js");
|
|
8
8
|
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return index_1.Customers; } });
|
|
9
|
+
var events_1 = require("./events.js");
|
|
10
|
+
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
|
|
11
|
+
var products_1 = require("./products.js");
|
|
12
|
+
Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return products_1.Products; } });
|
|
9
13
|
var index_2 = require("./subscriptions/index.js");
|
|
10
14
|
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return index_2.Subscriptions; } });
|
|
15
|
+
var usage_1 = require("./usage.js");
|
|
16
|
+
Object.defineProperty(exports, "Usage", { enumerable: true, get: function () { return usage_1.Usage; } });
|
|
11
17
|
var v1_1 = require("./v1.js");
|
|
12
18
|
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
13
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,8CAa2B;AAZzB,kGAAA,SAAS,OAAA;AAaX,sCAAoF;AAA3E,gGAAA,MAAM,OAAA;AACf,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,kDAiB+B;AAhB7B,sGAAA,aAAa,OAAA;AAiBf,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v1/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Coupons, } from "./coupons.mjs";
|
|
3
3
|
export { Customers, } from "./customers/index.mjs";
|
|
4
|
+
export { Events } from "./events.mjs";
|
|
5
|
+
export { Products, } from "./products.mjs";
|
|
4
6
|
export { Subscriptions, } from "./subscriptions/index.mjs";
|
|
5
|
-
export {
|
|
7
|
+
export { Usage, } from "./usage.mjs";
|
|
8
|
+
export { V1 } from "./v1.mjs";
|
|
6
9
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAMR;OACM,EACL,SAAS,GAYV;OACM,EAAE,MAAM,EAAoD;OAC5D,EACL,QAAQ,GAIT;OACM,EACL,aAAa,GAgBd;OACM,EACL,KAAK,GAKN;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Products extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a paginated list of products in the environment.
|
|
7
|
+
*/
|
|
8
|
+
listProducts(query?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Product configuration object
|
|
13
|
+
*/
|
|
14
|
+
export interface ProductListProductsResponse {
|
|
15
|
+
/**
|
|
16
|
+
* The unique identifier for the entity
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp of when the record was created
|
|
21
|
+
*/
|
|
22
|
+
createdAt: string;
|
|
23
|
+
/**
|
|
24
|
+
* Description of the product
|
|
25
|
+
*/
|
|
26
|
+
description: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Display name of the product
|
|
29
|
+
*/
|
|
30
|
+
displayName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Metadata associated with the entity
|
|
33
|
+
*/
|
|
34
|
+
metadata: {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Indicates if multiple subscriptions to this product are allowed
|
|
39
|
+
*/
|
|
40
|
+
multipleSubscriptions: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The status of the product
|
|
43
|
+
*/
|
|
44
|
+
status: 'PUBLISHED' | 'ARCHIVED';
|
|
45
|
+
/**
|
|
46
|
+
* Timestamp of when the record was last updated
|
|
47
|
+
*/
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
/**
|
|
50
|
+
* Product behavior settings for subscription lifecycle management.
|
|
51
|
+
*/
|
|
52
|
+
productSettings?: ProductListProductsResponse.ProductSettings;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace ProductListProductsResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Product behavior settings for subscription lifecycle management.
|
|
57
|
+
*/
|
|
58
|
+
interface ProductSettings {
|
|
59
|
+
/**
|
|
60
|
+
* Time when the subscription will be cancelled
|
|
61
|
+
*/
|
|
62
|
+
subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
63
|
+
/**
|
|
64
|
+
* Setup for the end of the subscription
|
|
65
|
+
*/
|
|
66
|
+
subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
|
|
67
|
+
/**
|
|
68
|
+
* Setup for the start of the subscription
|
|
69
|
+
*/
|
|
70
|
+
subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
|
|
71
|
+
/**
|
|
72
|
+
* ID of the plan to downgrade to at the end of the billing period
|
|
73
|
+
*/
|
|
74
|
+
downgradePlanId?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Indicates if the subscription should be prorated at the end of the billing
|
|
77
|
+
* period
|
|
78
|
+
*/
|
|
79
|
+
prorateAtEndOfBillingPeriod?: boolean | null;
|
|
80
|
+
/**
|
|
81
|
+
* ID of the plan to start the subscription with
|
|
82
|
+
*/
|
|
83
|
+
subscriptionStartPlanId?: string | null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export interface ProductListProductsParams extends MyCursorIDPageParams {
|
|
87
|
+
/**
|
|
88
|
+
* Filter by entity ID
|
|
89
|
+
*/
|
|
90
|
+
id?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
93
|
+
*/
|
|
94
|
+
createdAt?: ProductListProductsParams.CreatedAt;
|
|
95
|
+
/**
|
|
96
|
+
* Filter by product status. Supports comma-separated values for multiple statuses
|
|
97
|
+
*/
|
|
98
|
+
status?: string;
|
|
99
|
+
}
|
|
100
|
+
export declare namespace ProductListProductsParams {
|
|
101
|
+
/**
|
|
102
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
103
|
+
*/
|
|
104
|
+
interface CreatedAt {
|
|
105
|
+
/**
|
|
106
|
+
* Greater than the specified createdAt value
|
|
107
|
+
*/
|
|
108
|
+
gt?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Greater than or equal to the specified createdAt value
|
|
111
|
+
*/
|
|
112
|
+
gte?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Less than the specified createdAt value
|
|
115
|
+
*/
|
|
116
|
+
lt?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Less than or equal to the specified createdAt value
|
|
119
|
+
*/
|
|
120
|
+
lte?: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export declare namespace Products {
|
|
124
|
+
export { type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductListProductsParams as ProductListProductsParams, };
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=products.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;CAMxF;AAED,MAAM,MAAM,0CAA0C,GAAG,cAAc,CAAC,2BAA2B,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IAEjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,2BAA2B,CAAC,eAAe,CAAC;CAC/D;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,UAAiB,eAAe;QAC9B;;WAEG;QACH,4BAA4B,EAAE,uBAAuB,GAAG,WAAW,GAAG,eAAe,CAAC;QAEtF;;WAEG;QACH,oBAAoB,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;QAElE;;WAEG;QACH,sBAAsB,EAAE,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;QAExE;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC;CACF;AAED,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC;IAEhD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../core/pagination.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Products extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a paginated list of products in the environment.
|
|
7
|
+
*/
|
|
8
|
+
listProducts(query?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Product configuration object
|
|
13
|
+
*/
|
|
14
|
+
export interface ProductListProductsResponse {
|
|
15
|
+
/**
|
|
16
|
+
* The unique identifier for the entity
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp of when the record was created
|
|
21
|
+
*/
|
|
22
|
+
createdAt: string;
|
|
23
|
+
/**
|
|
24
|
+
* Description of the product
|
|
25
|
+
*/
|
|
26
|
+
description: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Display name of the product
|
|
29
|
+
*/
|
|
30
|
+
displayName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Metadata associated with the entity
|
|
33
|
+
*/
|
|
34
|
+
metadata: {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Indicates if multiple subscriptions to this product are allowed
|
|
39
|
+
*/
|
|
40
|
+
multipleSubscriptions: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The status of the product
|
|
43
|
+
*/
|
|
44
|
+
status: 'PUBLISHED' | 'ARCHIVED';
|
|
45
|
+
/**
|
|
46
|
+
* Timestamp of when the record was last updated
|
|
47
|
+
*/
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
/**
|
|
50
|
+
* Product behavior settings for subscription lifecycle management.
|
|
51
|
+
*/
|
|
52
|
+
productSettings?: ProductListProductsResponse.ProductSettings;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace ProductListProductsResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Product behavior settings for subscription lifecycle management.
|
|
57
|
+
*/
|
|
58
|
+
interface ProductSettings {
|
|
59
|
+
/**
|
|
60
|
+
* Time when the subscription will be cancelled
|
|
61
|
+
*/
|
|
62
|
+
subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
63
|
+
/**
|
|
64
|
+
* Setup for the end of the subscription
|
|
65
|
+
*/
|
|
66
|
+
subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
|
|
67
|
+
/**
|
|
68
|
+
* Setup for the start of the subscription
|
|
69
|
+
*/
|
|
70
|
+
subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
|
|
71
|
+
/**
|
|
72
|
+
* ID of the plan to downgrade to at the end of the billing period
|
|
73
|
+
*/
|
|
74
|
+
downgradePlanId?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Indicates if the subscription should be prorated at the end of the billing
|
|
77
|
+
* period
|
|
78
|
+
*/
|
|
79
|
+
prorateAtEndOfBillingPeriod?: boolean | null;
|
|
80
|
+
/**
|
|
81
|
+
* ID of the plan to start the subscription with
|
|
82
|
+
*/
|
|
83
|
+
subscriptionStartPlanId?: string | null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export interface ProductListProductsParams extends MyCursorIDPageParams {
|
|
87
|
+
/**
|
|
88
|
+
* Filter by entity ID
|
|
89
|
+
*/
|
|
90
|
+
id?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
93
|
+
*/
|
|
94
|
+
createdAt?: ProductListProductsParams.CreatedAt;
|
|
95
|
+
/**
|
|
96
|
+
* Filter by product status. Supports comma-separated values for multiple statuses
|
|
97
|
+
*/
|
|
98
|
+
status?: string;
|
|
99
|
+
}
|
|
100
|
+
export declare namespace ProductListProductsParams {
|
|
101
|
+
/**
|
|
102
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
103
|
+
*/
|
|
104
|
+
interface CreatedAt {
|
|
105
|
+
/**
|
|
106
|
+
* Greater than the specified createdAt value
|
|
107
|
+
*/
|
|
108
|
+
gt?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Greater than or equal to the specified createdAt value
|
|
111
|
+
*/
|
|
112
|
+
gte?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Less than the specified createdAt value
|
|
115
|
+
*/
|
|
116
|
+
lt?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Less than or equal to the specified createdAt value
|
|
119
|
+
*/
|
|
120
|
+
lte?: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export declare namespace Products {
|
|
124
|
+
export { type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductListProductsParams as ProductListProductsParams, };
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;CAMxF;AAED,MAAM,MAAM,0CAA0C,GAAG,cAAc,CAAC,2BAA2B,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IAEjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,2BAA2B,CAAC,eAAe,CAAC;CAC/D;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,UAAiB,eAAe;QAC9B;;WAEG;QACH,4BAA4B,EAAE,uBAAuB,GAAG,WAAW,GAAG,eAAe,CAAC;QAEtF;;WAEG;QACH,oBAAoB,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;QAElE;;WAEG;QACH,sBAAsB,EAAE,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;QAExE;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC;CACF;AAED,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC;IAEhD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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.Products = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
class Products extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a paginated list of products in the environment.
|
|
10
|
+
*/
|
|
11
|
+
listProducts(query = {}, options) {
|
|
12
|
+
return this._client.getAPIList('/api/v1/products', (pagination_1.MyCursorIDPage), {
|
|
13
|
+
query,
|
|
14
|
+
...options,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Products = Products;
|
|
19
|
+
//# sourceMappingURL=products.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAA+F;AAG/F,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,2BAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAbD,4BAaC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { MyCursorIDPage } from "../../core/pagination.mjs";
|
|
4
|
+
export class Products extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a paginated list of products in the environment.
|
|
7
|
+
*/
|
|
8
|
+
listProducts(query = {}, options) {
|
|
9
|
+
return this._client.getAPIList('/api/v1/products', (MyCursorIDPage), {
|
|
10
|
+
query,
|
|
11
|
+
...options,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=products.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,cAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -3,35 +3,22 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class FutureUpdate extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Cancels a subscription update that is pending payment completion.
|
|
7
7
|
*/
|
|
8
|
-
cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<
|
|
8
|
+
cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Cancels a scheduled subscription update, such as a future downgrade or plan
|
|
11
|
+
* change.
|
|
11
12
|
*/
|
|
12
|
-
cancelSchedule(id: string, options?: RequestOptions): APIPromise<
|
|
13
|
+
cancelSchedule(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Response object
|
|
16
17
|
*/
|
|
17
|
-
export interface
|
|
18
|
-
data:
|
|
18
|
+
export interface CancelSubscription {
|
|
19
|
+
data: CancelSubscription.Data;
|
|
19
20
|
}
|
|
20
|
-
export declare namespace
|
|
21
|
-
interface Data {
|
|
22
|
-
/**
|
|
23
|
-
* Subscription ID
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Response object
|
|
30
|
-
*/
|
|
31
|
-
export interface FutureUpdateCancelScheduleResponse {
|
|
32
|
-
data: FutureUpdateCancelScheduleResponse.Data;
|
|
33
|
-
}
|
|
34
|
-
export declare namespace FutureUpdateCancelScheduleResponse {
|
|
21
|
+
export declare namespace CancelSubscription {
|
|
35
22
|
interface Data {
|
|
36
23
|
/**
|
|
37
24
|
* Subscription ID
|
|
@@ -40,6 +27,6 @@ export declare namespace FutureUpdateCancelScheduleResponse {
|
|
|
40
27
|
}
|
|
41
28
|
}
|
|
42
29
|
export declare namespace FutureUpdate {
|
|
43
|
-
export { type
|
|
30
|
+
export { type CancelSubscription as CancelSubscription };
|
|
44
31
|
}
|
|
45
32
|
//# sourceMappingURL=future-update.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,
|
|
1
|
+
{"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
@@ -3,35 +3,22 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
4
|
export declare class FutureUpdate extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Cancels a subscription update that is pending payment completion.
|
|
7
7
|
*/
|
|
8
|
-
cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<
|
|
8
|
+
cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Cancels a scheduled subscription update, such as a future downgrade or plan
|
|
11
|
+
* change.
|
|
11
12
|
*/
|
|
12
|
-
cancelSchedule(id: string, options?: RequestOptions): APIPromise<
|
|
13
|
+
cancelSchedule(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Response object
|
|
16
17
|
*/
|
|
17
|
-
export interface
|
|
18
|
-
data:
|
|
18
|
+
export interface CancelSubscription {
|
|
19
|
+
data: CancelSubscription.Data;
|
|
19
20
|
}
|
|
20
|
-
export declare namespace
|
|
21
|
-
interface Data {
|
|
22
|
-
/**
|
|
23
|
-
* Subscription ID
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Response object
|
|
30
|
-
*/
|
|
31
|
-
export interface FutureUpdateCancelScheduleResponse {
|
|
32
|
-
data: FutureUpdateCancelScheduleResponse.Data;
|
|
33
|
-
}
|
|
34
|
-
export declare namespace FutureUpdateCancelScheduleResponse {
|
|
21
|
+
export declare namespace CancelSubscription {
|
|
35
22
|
interface Data {
|
|
36
23
|
/**
|
|
37
24
|
* Subscription ID
|
|
@@ -40,6 +27,6 @@ export declare namespace FutureUpdateCancelScheduleResponse {
|
|
|
40
27
|
}
|
|
41
28
|
}
|
|
42
29
|
export declare namespace FutureUpdate {
|
|
43
|
-
export { type
|
|
30
|
+
export { type CancelSubscription as CancelSubscription };
|
|
44
31
|
}
|
|
45
32
|
//# sourceMappingURL=future-update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,
|
|
1
|
+
{"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
@@ -6,13 +6,14 @@ const resource_1 = require("../../../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
7
|
class FutureUpdate extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Cancels a subscription update that is pending payment completion.
|
|
10
10
|
*/
|
|
11
11
|
cancelPendingPayment(id, options) {
|
|
12
12
|
return this._client.delete((0, path_1.path) `/api/v1/subscriptions/${id}/future-update/pending-payment`, options);
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Cancels a scheduled subscription update, such as a future downgrade or plan
|
|
16
|
+
* change.
|
|
16
17
|
*/
|
|
17
18
|
cancelSchedule(id, options) {
|
|
18
19
|
return this._client.delete((0, path_1.path) `/api/v1/subscriptions/${id}/future-update/schedule`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,
|
|
1
|
+
{"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAfD,oCAeC"}
|
|
@@ -3,13 +3,14 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
4
|
export class FutureUpdate extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Cancels a subscription update that is pending payment completion.
|
|
7
7
|
*/
|
|
8
8
|
cancelPendingPayment(id, options) {
|
|
9
9
|
return this._client.delete(path `/api/v1/subscriptions/${id}/future-update/pending-payment`, options);
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Cancels a scheduled subscription update, such as a future downgrade or plan
|
|
13
|
+
* change.
|
|
13
14
|
*/
|
|
14
15
|
cancelSchedule(id, options) {
|
|
15
16
|
return this._client.delete(path `/api/v1/subscriptions/${id}/future-update/schedule`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,
|
|
1
|
+
{"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FutureUpdate, type
|
|
2
|
-
export { Subscriptions, type
|
|
1
|
+
export { FutureUpdate, type CancelSubscription } from "./future-update.mjs";
|
|
2
|
+
export { Subscriptions, type Subscription, type SubscriptionListResponse, type SubscriptionImportResponse, type SubscriptionPreviewResponse, type SubscriptionProvisionResponse, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionCancelParams, type SubscriptionDelegateParams, type SubscriptionImportParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionProvisionParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OACzC,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FutureUpdate, type
|
|
2
|
-
export { Subscriptions, type
|
|
1
|
+
export { FutureUpdate, type CancelSubscription } from "./future-update.js";
|
|
2
|
+
export { Subscriptions, type Subscription, type SubscriptionListResponse, type SubscriptionImportResponse, type SubscriptionPreviewResponse, type SubscriptionProvisionResponse, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionCancelParams, type SubscriptionDelegateParams, type SubscriptionImportParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionProvisionParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OACzC,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAAwE;AAA/D,6GAAA,YAAY,OAAA;AACrB,oDAiByB;AAhBvB,8GAAA,aAAa,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { FutureUpdate
|
|
2
|
+
export { FutureUpdate } from "./future-update.mjs";
|
|
3
3
|
export { Subscriptions, } from "./subscriptions.mjs";
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAA2B;OACzC,EACL,aAAa,GAgBd"}
|