@openmeter/sdk 1.0.0-beta-191a59448a86 → 1.0.0-beta-e825c32fe22d
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/dist/cjs/src/client/customers.cjs +17 -0
- package/dist/cjs/src/client/customers.d.cts +11 -0
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/events.cjs +19 -7
- package/dist/cjs/src/client/events.d.cts +15 -4
- package/dist/cjs/src/client/events.js.map +1 -1
- package/dist/cjs/src/client/plans.cjs +127 -50
- package/dist/cjs/src/client/plans.d.cts +114 -24
- package/dist/cjs/src/client/plans.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +11 -11
- package/dist/cjs/src/client/subscriptions.cjs +16 -0
- package/dist/cjs/src/client/subscriptions.d.cts +8 -0
- package/dist/cjs/src/client/subscriptions.js.map +1 -1
- package/dist/cjs/src/zod/index.cjs +11 -11
- package/dist/cjs/src/zod/index.d.cts +11 -11
- package/dist/cjs/{tsconfig.d2b5ca69.tsbuildinfo → tsconfig.030fce72.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.f0875bf1.tsbuildinfo → tsconfig.89581efe.tsbuildinfo} +1 -1
- package/dist/src/client/customers.d.ts +11 -0
- package/dist/src/client/customers.js +17 -0
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/events.d.ts +15 -4
- package/dist/src/client/events.js +19 -7
- package/dist/src/client/events.js.map +1 -1
- package/dist/src/client/plans.d.ts +114 -24
- package/dist/src/client/plans.js +124 -48
- package/dist/src/client/plans.js.map +1 -1
- package/dist/src/client/schemas.d.ts +11 -11
- package/dist/src/client/subscriptions.d.ts +8 -0
- package/dist/src/client/subscriptions.js +16 -0
- package/dist/src/client/subscriptions.js.map +1 -1
- package/dist/src/zod/index.d.ts +11 -11
- package/dist/src/zod/index.js +11 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -95,6 +95,23 @@ class Customers {
|
|
|
95
95
|
});
|
|
96
96
|
return (0, utils_js_1.transformResponse)(resp);
|
|
97
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Get customer access
|
|
100
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
101
|
+
* @param options - Optional request options
|
|
102
|
+
* @returns The customer access information
|
|
103
|
+
*/
|
|
104
|
+
async getAccess(customerIdOrKey, options) {
|
|
105
|
+
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/access', {
|
|
106
|
+
params: {
|
|
107
|
+
path: {
|
|
108
|
+
customerIdOrKey,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
...options,
|
|
112
|
+
});
|
|
113
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
114
|
+
}
|
|
98
115
|
}
|
|
99
116
|
exports.Customers = Customers;
|
|
100
117
|
/**
|
|
@@ -95,6 +95,17 @@ export declare class Customers {
|
|
|
95
95
|
pageSize: number;
|
|
96
96
|
items: import("./schemas.cjs").components["schemas"]["Customer"][];
|
|
97
97
|
}>;
|
|
98
|
+
/**
|
|
99
|
+
* Get customer access
|
|
100
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
101
|
+
* @param options - Optional request options
|
|
102
|
+
* @returns The customer access information
|
|
103
|
+
*/
|
|
104
|
+
getAccess(customerIdOrKey: operations['getCustomerAccess']['parameters']['path']['customerIdOrKey'], options?: RequestOptions): Promise<{
|
|
105
|
+
readonly entitlements: {
|
|
106
|
+
[key: string]: import("./schemas.cjs").components["schemas"]["EntitlementValue"];
|
|
107
|
+
};
|
|
108
|
+
}>;
|
|
98
109
|
}
|
|
99
110
|
/**
|
|
100
111
|
* Customer Apps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/client/customers.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAW9C;;;GAGG;AACH,MAAa,SAAS;IAIA;IAHb,IAAI,CAAc;IAClB,YAAY,C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,CAAC,MAAM,CACnC,qCAAqC,EACrC;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,eAAe;iBAChB;aACF;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI,CACf,KAA0D,EAC1D,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE;YACtD,MAAM,EAAE;gBACN,KAAK;aACN;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/client/customers.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAW9C;;;GAGG;AACH,MAAa,SAAS;IAIA;IAHb,IAAI,CAAc;IAClB,YAAY,CAAsB;IAEzC,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACtD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,QAAwB,EAAE,OAAwB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE;YACvD,IAAI,EAAE,QAAQ;YACd,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,eAAmF,EACnF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,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IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,iBAAiB,CAC5B,eAAiG,EACjG,KAAsE,EACtE,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,mDAAmD,EACnD;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE;YAC5C,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAtGD,oCAsGC;AAED;;GAEG;AACH,MAAa,oBAAoB;IACX;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;;OAMG;IACI,KAAK,CAAC,KAAK,CAChB,eAAmG,EACnG,UAAyF,EACzF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,qEAAqE,EACrE;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE;YACjD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAzBD,oDAyBC"}
|
|
@@ -30,16 +30,28 @@ class Events {
|
|
|
30
30
|
return (0, utils_js_1.transformResponse)(resp);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* List
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
33
|
+
* List events
|
|
34
|
+
* @param params - The query parameters
|
|
35
|
+
* @param options - Optional request options
|
|
36
36
|
* @returns The events
|
|
37
37
|
*/
|
|
38
|
-
async list(
|
|
38
|
+
async list(params, options) {
|
|
39
39
|
const resp = await this.client.GET('/api/v1/events', {
|
|
40
|
-
params: {
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
params: { query: params },
|
|
41
|
+
...options,
|
|
42
|
+
});
|
|
43
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* List events (V2)
|
|
47
|
+
* @description List ingested events with advanced filtering and cursor pagination.
|
|
48
|
+
* @param params - The query parameters
|
|
49
|
+
* @param options - Optional request options
|
|
50
|
+
* @returns The events
|
|
51
|
+
*/
|
|
52
|
+
async listV2(params, options) {
|
|
53
|
+
const resp = await this.client.GET('/api/v2/events', {
|
|
54
|
+
params: { query: params },
|
|
43
55
|
...options,
|
|
44
56
|
});
|
|
45
57
|
return (0, utils_js_1.transformResponse)(resp);
|
|
@@ -16,17 +16,28 @@ export declare class Events {
|
|
|
16
16
|
*/
|
|
17
17
|
ingest(events: Event | Event[], options?: RequestOptions): Promise<undefined>;
|
|
18
18
|
/**
|
|
19
|
-
* List
|
|
20
|
-
* @param
|
|
21
|
-
* @param
|
|
19
|
+
* List events
|
|
20
|
+
* @param params - The query parameters
|
|
21
|
+
* @param options - Optional request options
|
|
22
22
|
* @returns The events
|
|
23
23
|
*/
|
|
24
|
-
list(
|
|
24
|
+
list(params?: operations['listEvents']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
25
25
|
event: import("./schemas.cjs").components["schemas"]["Event"];
|
|
26
26
|
validationError?: string;
|
|
27
27
|
ingestedAt: Date;
|
|
28
28
|
storedAt: Date;
|
|
29
29
|
}[]>;
|
|
30
|
+
/**
|
|
31
|
+
* List events (V2)
|
|
32
|
+
* @description List ingested events with advanced filtering and cursor pagination.
|
|
33
|
+
* @param params - The query parameters
|
|
34
|
+
* @param options - Optional request options
|
|
35
|
+
* @returns The events
|
|
36
|
+
*/
|
|
37
|
+
listV2(params?: operations['listEventsV2']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
38
|
+
items: import("./schemas.cjs").components["schemas"]["IngestedEvent"][];
|
|
39
|
+
nextCursor?: string;
|
|
40
|
+
}>;
|
|
30
41
|
}
|
|
31
42
|
/**
|
|
32
43
|
* Sets the defaults for an event
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/client/events.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/client/events.ts"],"names":[],"mappings":";;;AA6EA,kDAQC;AArFD,yCAA8C;AAK9C;;;GAGG;AACH,MAAa,MAAM;IACG;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,MAAuB,EAAE,OAAwB;QACnE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,GAAG,CAC5B,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC,CACrE,CAAA;QAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACpD,IAAI;YACJ,OAAO,EAAE;gBACP,cAAc,EAAE,oCAAoC;aACrD;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CACf,MAAwD,EACxD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,EAAE;YACnD,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;YACzB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,MAA0D,EAC1D,OAAwB;QAExB,MAAM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,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAA;IAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5B,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,CAAA;IACtC,CAAC;IAED,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;IACnC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;IAEnC,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC3E,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAA;AAC5G,CAAC"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Plans = void 0;
|
|
3
|
+
exports.PlanAddons = exports.Plans = void 0;
|
|
4
4
|
const utils_js_1 = require("./utils.cjs");
|
|
5
|
+
/**
|
|
6
|
+
* Plans
|
|
7
|
+
* Manage customer subscription plans and addon assignments.
|
|
8
|
+
*/
|
|
5
9
|
class Plans {
|
|
6
10
|
client;
|
|
11
|
+
addons;
|
|
7
12
|
constructor(client) {
|
|
8
13
|
this.client = client;
|
|
14
|
+
this.addons = new PlanAddons(this.client);
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* Create a plan
|
|
12
18
|
* @param plan - The plan to create
|
|
13
|
-
* @param
|
|
19
|
+
* @param options - Optional request options
|
|
14
20
|
* @returns The created plan
|
|
15
21
|
*/
|
|
16
22
|
async create(plan, options) {
|
|
@@ -21,17 +27,17 @@ class Plans {
|
|
|
21
27
|
return (0, utils_js_1.transformResponse)(resp);
|
|
22
28
|
}
|
|
23
29
|
/**
|
|
24
|
-
* Get a plan by ID
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
30
|
+
* Get a plan by ID
|
|
31
|
+
* @param planId - The ID of the plan to retrieve
|
|
32
|
+
* @param params - Optional query parameters
|
|
33
|
+
* @param options - Optional request options
|
|
27
34
|
* @returns The plan
|
|
28
35
|
*/
|
|
29
|
-
async get(
|
|
36
|
+
async get(planId, params, options) {
|
|
30
37
|
const resp = await this.client.GET('/api/v1/plans/{planId}', {
|
|
31
38
|
params: {
|
|
32
|
-
path: {
|
|
33
|
-
|
|
34
|
-
},
|
|
39
|
+
path: { planId },
|
|
40
|
+
query: params,
|
|
35
41
|
},
|
|
36
42
|
...options,
|
|
37
43
|
});
|
|
@@ -39,89 +45,160 @@ class Plans {
|
|
|
39
45
|
}
|
|
40
46
|
/**
|
|
41
47
|
* List plans
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @returns
|
|
48
|
+
* @param params - Optional parameters for listing plans
|
|
49
|
+
* @param options - Optional request options
|
|
50
|
+
* @returns A list of plans
|
|
45
51
|
*/
|
|
46
|
-
async list(
|
|
52
|
+
async list(params, options) {
|
|
47
53
|
const resp = await this.client.GET('/api/v1/plans', {
|
|
48
|
-
params: {
|
|
49
|
-
query,
|
|
50
|
-
},
|
|
54
|
+
params: { query: params },
|
|
51
55
|
...options,
|
|
52
56
|
});
|
|
53
57
|
return (0, utils_js_1.transformResponse)(resp);
|
|
54
58
|
}
|
|
55
59
|
/**
|
|
56
60
|
* Update a plan
|
|
57
|
-
* @param
|
|
58
|
-
* @param plan - The plan to update
|
|
59
|
-
* @param
|
|
61
|
+
* @param planId - The ID of the plan to update
|
|
62
|
+
* @param plan - The plan data to update
|
|
63
|
+
* @param options - Optional request options
|
|
60
64
|
* @returns The updated plan
|
|
61
65
|
*/
|
|
62
|
-
async update(
|
|
66
|
+
async update(planId, plan, options) {
|
|
63
67
|
const resp = await this.client.PUT('/api/v1/plans/{planId}', {
|
|
64
68
|
body: plan,
|
|
65
|
-
params: {
|
|
66
|
-
path: {
|
|
67
|
-
planId: id,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
69
|
+
params: { path: { planId } },
|
|
70
70
|
...options,
|
|
71
71
|
});
|
|
72
72
|
return (0, utils_js_1.transformResponse)(resp);
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* Delete a plan
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
78
|
-
* @returns
|
|
75
|
+
* Delete a plan by ID
|
|
76
|
+
* @param planId - The ID of the plan to delete
|
|
77
|
+
* @param options - Optional request options
|
|
78
|
+
* @returns void or standard error response structure
|
|
79
79
|
*/
|
|
80
|
-
async delete(
|
|
80
|
+
async delete(planId, options) {
|
|
81
81
|
const resp = await this.client.DELETE('/api/v1/plans/{planId}', {
|
|
82
|
-
params: {
|
|
83
|
-
path: {
|
|
84
|
-
planId: id,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
82
|
+
params: { path: { planId } },
|
|
87
83
|
...options,
|
|
88
84
|
});
|
|
89
85
|
return (0, utils_js_1.transformResponse)(resp);
|
|
90
86
|
}
|
|
91
87
|
/**
|
|
92
88
|
* Archive a plan
|
|
93
|
-
* @param
|
|
94
|
-
* @param
|
|
89
|
+
* @param planId - The ID of the plan to archive
|
|
90
|
+
* @param options - Optional request options
|
|
95
91
|
* @returns The archived plan
|
|
96
92
|
*/
|
|
97
|
-
async archive(
|
|
93
|
+
async archive(planId, options) {
|
|
98
94
|
const resp = await this.client.POST('/api/v1/plans/{planId}/archive', {
|
|
99
|
-
params: {
|
|
100
|
-
path: {
|
|
101
|
-
planId: id,
|
|
102
|
-
},
|
|
103
|
-
},
|
|
95
|
+
params: { path: { planId } },
|
|
104
96
|
...options,
|
|
105
97
|
});
|
|
106
98
|
return (0, utils_js_1.transformResponse)(resp);
|
|
107
99
|
}
|
|
108
100
|
/**
|
|
109
101
|
* Publish a plan
|
|
110
|
-
* @param
|
|
111
|
-
* @param
|
|
102
|
+
* @param planId - The ID of the plan to publish
|
|
103
|
+
* @param options - Optional request options
|
|
112
104
|
* @returns The published plan
|
|
113
105
|
*/
|
|
114
|
-
async publish(
|
|
106
|
+
async publish(planId, options) {
|
|
115
107
|
const resp = await this.client.POST('/api/v1/plans/{planId}/publish', {
|
|
108
|
+
params: { path: { planId } },
|
|
109
|
+
...options,
|
|
110
|
+
});
|
|
111
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.Plans = Plans;
|
|
115
|
+
/**
|
|
116
|
+
* Plan Addons
|
|
117
|
+
* Manage addon assignments for plans.
|
|
118
|
+
*/
|
|
119
|
+
class PlanAddons {
|
|
120
|
+
client;
|
|
121
|
+
constructor(client) {
|
|
122
|
+
this.client = client;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* List plan addons
|
|
126
|
+
* @param planId - The ID of the plan
|
|
127
|
+
* @param params - Optional query parameters
|
|
128
|
+
* @param options - Optional request options
|
|
129
|
+
* @returns A list of plan addons
|
|
130
|
+
*/
|
|
131
|
+
async list(planId, params, options) {
|
|
132
|
+
const resp = await this.client.GET('/api/v1/plans/{planId}/addons', {
|
|
116
133
|
params: {
|
|
117
|
-
path: {
|
|
118
|
-
|
|
119
|
-
},
|
|
134
|
+
path: { planId },
|
|
135
|
+
query: params,
|
|
120
136
|
},
|
|
121
137
|
...options,
|
|
122
138
|
});
|
|
123
139
|
return (0, utils_js_1.transformResponse)(resp);
|
|
124
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Create a plan addon
|
|
143
|
+
* @param planId - The ID of the plan
|
|
144
|
+
* @param planAddon - The plan addon to create
|
|
145
|
+
* @param options - Optional request options
|
|
146
|
+
* @returns The created plan addon
|
|
147
|
+
*/
|
|
148
|
+
async create(planId, planAddon, options) {
|
|
149
|
+
const resp = await this.client.POST('/api/v1/plans/{planId}/addons', {
|
|
150
|
+
body: planAddon,
|
|
151
|
+
params: { path: { planId } },
|
|
152
|
+
...options,
|
|
153
|
+
});
|
|
154
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get a plan addon by ID
|
|
158
|
+
* @param planId - The ID of the plan
|
|
159
|
+
* @param planAddonId - The ID of the plan addon
|
|
160
|
+
* @param options - Optional request options
|
|
161
|
+
* @returns The plan addon
|
|
162
|
+
*/
|
|
163
|
+
async get(planId, planAddonId, options) {
|
|
164
|
+
const resp = await this.client.GET('/api/v1/plans/{planId}/addons/{planAddonId}', {
|
|
165
|
+
params: {
|
|
166
|
+
path: { planAddonId, planId },
|
|
167
|
+
},
|
|
168
|
+
...options,
|
|
169
|
+
});
|
|
170
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Update a plan addon
|
|
174
|
+
* @param planId - The ID of the plan
|
|
175
|
+
* @param planAddonId - The ID of the plan addon to update
|
|
176
|
+
* @param planAddon - The plan addon data to update
|
|
177
|
+
* @param options - Optional request options
|
|
178
|
+
* @returns The updated plan addon
|
|
179
|
+
*/
|
|
180
|
+
async update(planId, planAddonId, planAddon, options) {
|
|
181
|
+
const resp = await this.client.PUT('/api/v1/plans/{planId}/addons/{planAddonId}', {
|
|
182
|
+
body: planAddon,
|
|
183
|
+
params: { path: { planAddonId, planId } },
|
|
184
|
+
...options,
|
|
185
|
+
});
|
|
186
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Delete a plan addon by ID
|
|
190
|
+
* @param planId - The ID of the plan
|
|
191
|
+
* @param planAddonId - The ID of the plan addon to delete
|
|
192
|
+
* @param options - Optional request options
|
|
193
|
+
* @returns void or standard error response structure
|
|
194
|
+
*/
|
|
195
|
+
async delete(planId, planAddonId, options) {
|
|
196
|
+
const resp = await this.client.DELETE('/api/v1/plans/{planId}/addons/{planAddonId}', {
|
|
197
|
+
params: { path: { planAddonId, planId } },
|
|
198
|
+
...options,
|
|
199
|
+
});
|
|
200
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
201
|
+
}
|
|
125
202
|
}
|
|
126
|
-
exports.
|
|
203
|
+
exports.PlanAddons = PlanAddons;
|
|
127
204
|
//# sourceMappingURL=plans.js.map
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import type { RequestOptions } from './common.cjs';
|
|
2
2
|
import type { operations, paths, PlanCreate, PlanReplaceUpdate } from './schemas.cjs';
|
|
3
3
|
import type { Client } from 'openapi-fetch';
|
|
4
|
+
/**
|
|
5
|
+
* Plans
|
|
6
|
+
* Manage customer subscription plans and addon assignments.
|
|
7
|
+
*/
|
|
4
8
|
export declare class Plans {
|
|
5
9
|
private client;
|
|
10
|
+
addons: PlanAddons;
|
|
6
11
|
constructor(client: Client<paths, `${string}/${string}`>);
|
|
7
12
|
/**
|
|
8
13
|
* Create a plan
|
|
9
14
|
* @param plan - The plan to create
|
|
10
|
-
* @param
|
|
15
|
+
* @param options - Optional request options
|
|
11
16
|
* @returns The created plan
|
|
12
17
|
*/
|
|
13
18
|
create(plan: PlanCreate, options?: RequestOptions): Promise<{
|
|
@@ -31,12 +36,13 @@ export declare class Plans {
|
|
|
31
36
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
32
37
|
}>;
|
|
33
38
|
/**
|
|
34
|
-
* Get a plan by ID
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
39
|
+
* Get a plan by ID
|
|
40
|
+
* @param planId - The ID of the plan to retrieve
|
|
41
|
+
* @param params - Optional query parameters
|
|
42
|
+
* @param options - Optional request options
|
|
37
43
|
* @returns The plan
|
|
38
44
|
*/
|
|
39
|
-
get(
|
|
45
|
+
get(planId: operations['getPlan']['parameters']['path']['planId'], params?: operations['getPlan']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
40
46
|
readonly id: string;
|
|
41
47
|
name: string;
|
|
42
48
|
description?: string;
|
|
@@ -58,11 +64,11 @@ export declare class Plans {
|
|
|
58
64
|
}>;
|
|
59
65
|
/**
|
|
60
66
|
* List plans
|
|
61
|
-
* @param
|
|
62
|
-
* @param
|
|
63
|
-
* @returns
|
|
67
|
+
* @param params - Optional parameters for listing plans
|
|
68
|
+
* @param options - Optional request options
|
|
69
|
+
* @returns A list of plans
|
|
64
70
|
*/
|
|
65
|
-
list(
|
|
71
|
+
list(params?: operations['listPlans']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
66
72
|
totalCount: number;
|
|
67
73
|
page: number;
|
|
68
74
|
pageSize: number;
|
|
@@ -70,12 +76,12 @@ export declare class Plans {
|
|
|
70
76
|
}>;
|
|
71
77
|
/**
|
|
72
78
|
* Update a plan
|
|
73
|
-
* @param
|
|
74
|
-
* @param plan - The plan to update
|
|
75
|
-
* @param
|
|
79
|
+
* @param planId - The ID of the plan to update
|
|
80
|
+
* @param plan - The plan data to update
|
|
81
|
+
* @param options - Optional request options
|
|
76
82
|
* @returns The updated plan
|
|
77
83
|
*/
|
|
78
|
-
update(
|
|
84
|
+
update(planId: operations['updatePlan']['parameters']['path']['planId'], plan: PlanReplaceUpdate, options?: RequestOptions): Promise<{
|
|
79
85
|
readonly id: string;
|
|
80
86
|
name: string;
|
|
81
87
|
description?: string;
|
|
@@ -96,19 +102,19 @@ export declare class Plans {
|
|
|
96
102
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
97
103
|
}>;
|
|
98
104
|
/**
|
|
99
|
-
* Delete a plan
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
102
|
-
* @returns
|
|
105
|
+
* Delete a plan by ID
|
|
106
|
+
* @param planId - The ID of the plan to delete
|
|
107
|
+
* @param options - Optional request options
|
|
108
|
+
* @returns void or standard error response structure
|
|
103
109
|
*/
|
|
104
|
-
delete(
|
|
110
|
+
delete(planId: operations['deletePlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<undefined>;
|
|
105
111
|
/**
|
|
106
112
|
* Archive a plan
|
|
107
|
-
* @param
|
|
108
|
-
* @param
|
|
113
|
+
* @param planId - The ID of the plan to archive
|
|
114
|
+
* @param options - Optional request options
|
|
109
115
|
* @returns The archived plan
|
|
110
116
|
*/
|
|
111
|
-
archive(
|
|
117
|
+
archive(planId: operations['archivePlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<{
|
|
112
118
|
readonly id: string;
|
|
113
119
|
name: string;
|
|
114
120
|
description?: string;
|
|
@@ -130,11 +136,11 @@ export declare class Plans {
|
|
|
130
136
|
}>;
|
|
131
137
|
/**
|
|
132
138
|
* Publish a plan
|
|
133
|
-
* @param
|
|
134
|
-
* @param
|
|
139
|
+
* @param planId - The ID of the plan to publish
|
|
140
|
+
* @param options - Optional request options
|
|
135
141
|
* @returns The published plan
|
|
136
142
|
*/
|
|
137
|
-
publish(
|
|
143
|
+
publish(planId: operations['publishPlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<{
|
|
138
144
|
readonly id: string;
|
|
139
145
|
name: string;
|
|
140
146
|
description?: string;
|
|
@@ -155,3 +161,87 @@ export declare class Plans {
|
|
|
155
161
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
156
162
|
}>;
|
|
157
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Plan Addons
|
|
166
|
+
* Manage addon assignments for plans.
|
|
167
|
+
*/
|
|
168
|
+
export declare class PlanAddons {
|
|
169
|
+
private client;
|
|
170
|
+
constructor(client: Client<paths, `${string}/${string}`>);
|
|
171
|
+
/**
|
|
172
|
+
* List plan addons
|
|
173
|
+
* @param planId - The ID of the plan
|
|
174
|
+
* @param params - Optional query parameters
|
|
175
|
+
* @param options - Optional request options
|
|
176
|
+
* @returns A list of plan addons
|
|
177
|
+
*/
|
|
178
|
+
list(planId: operations['listPlanAddons']['parameters']['path']['planId'], params?: operations['listPlanAddons']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
179
|
+
totalCount: number;
|
|
180
|
+
page: number;
|
|
181
|
+
pageSize: number;
|
|
182
|
+
items: import("./schemas.cjs").components["schemas"]["PlanAddon"][];
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Create a plan addon
|
|
186
|
+
* @param planId - The ID of the plan
|
|
187
|
+
* @param planAddon - The plan addon to create
|
|
188
|
+
* @param options - Optional request options
|
|
189
|
+
* @returns The created plan addon
|
|
190
|
+
*/
|
|
191
|
+
create(planId: operations['createPlanAddon']['parameters']['path']['planId'], planAddon: operations['createPlanAddon']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
|
|
192
|
+
readonly createdAt: Date;
|
|
193
|
+
readonly updatedAt: Date;
|
|
194
|
+
readonly deletedAt?: Date;
|
|
195
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
196
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
197
|
+
readonly addon: import("./schemas.cjs").components["schemas"]["Addon"];
|
|
198
|
+
fromPlanPhase: string;
|
|
199
|
+
maxQuantity?: number;
|
|
200
|
+
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
201
|
+
}>;
|
|
202
|
+
/**
|
|
203
|
+
* Get a plan addon by ID
|
|
204
|
+
* @param planId - The ID of the plan
|
|
205
|
+
* @param planAddonId - The ID of the plan addon
|
|
206
|
+
* @param options - Optional request options
|
|
207
|
+
* @returns The plan addon
|
|
208
|
+
*/
|
|
209
|
+
get(planId: operations['getPlanAddon']['parameters']['path']['planId'], planAddonId: operations['getPlanAddon']['parameters']['path']['planAddonId'], options?: RequestOptions): Promise<{
|
|
210
|
+
readonly createdAt: Date;
|
|
211
|
+
readonly updatedAt: Date;
|
|
212
|
+
readonly deletedAt?: Date;
|
|
213
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
214
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
215
|
+
readonly addon: import("./schemas.cjs").components["schemas"]["Addon"];
|
|
216
|
+
fromPlanPhase: string;
|
|
217
|
+
maxQuantity?: number;
|
|
218
|
+
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
219
|
+
}>;
|
|
220
|
+
/**
|
|
221
|
+
* Update a plan addon
|
|
222
|
+
* @param planId - The ID of the plan
|
|
223
|
+
* @param planAddonId - The ID of the plan addon to update
|
|
224
|
+
* @param planAddon - The plan addon data to update
|
|
225
|
+
* @param options - Optional request options
|
|
226
|
+
* @returns The updated plan addon
|
|
227
|
+
*/
|
|
228
|
+
update(planId: operations['updatePlanAddon']['parameters']['path']['planId'], planAddonId: operations['updatePlanAddon']['parameters']['path']['planAddonId'], planAddon: operations['updatePlanAddon']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
|
|
229
|
+
readonly createdAt: Date;
|
|
230
|
+
readonly updatedAt: Date;
|
|
231
|
+
readonly deletedAt?: Date;
|
|
232
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
233
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
234
|
+
readonly addon: import("./schemas.cjs").components["schemas"]["Addon"];
|
|
235
|
+
fromPlanPhase: string;
|
|
236
|
+
maxQuantity?: number;
|
|
237
|
+
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
238
|
+
}>;
|
|
239
|
+
/**
|
|
240
|
+
* Delete a plan addon by ID
|
|
241
|
+
* @param planId - The ID of the plan
|
|
242
|
+
* @param planAddonId - The ID of the plan addon to delete
|
|
243
|
+
* @param options - Optional request options
|
|
244
|
+
* @returns void or standard error response structure
|
|
245
|
+
*/
|
|
246
|
+
delete(planId: operations['deletePlanAddon']['parameters']['path']['planId'], planAddonId: operations['deletePlanAddon']['parameters']['path']['planAddonId'], options?: RequestOptions): Promise<undefined>;
|
|
247
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../../../../src/client/plans.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAU9C,MAAa,KAAK;
|
|
1
|
+
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../../../../src/client/plans.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAU9C;;;GAGG;AACH,MAAa,KAAK;IAGI;IAFb,MAAM,CAAY;IAEzB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC3C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,IAAgB,EAAE,OAAwB;QAC5D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE;YACnD,IAAI,EAAE,IAAI;YACV,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,MAA6D,EAC7D,MAAqD,EACrD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAC3D,MAAM,EAAE;gBACN,IAAI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