@openmeter/sdk 1.0.0-beta.204 → 1.0.0-beta.206
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/billing.d.cts +8 -16
- package/dist/cjs/src/client/customers.cjs +38 -31
- package/dist/cjs/src/client/customers.d.cts +22 -15
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/entitlements.d.cts +7 -1
- package/dist/cjs/src/client/portal.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +2197 -603
- package/dist/cjs/tsconfig.0b6649c3.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.57049e40.tsbuildinfo +1 -0
- package/dist/src/client/billing.d.ts +8 -16
- package/dist/src/client/customers.d.ts +22 -15
- package/dist/src/client/customers.js +38 -31
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/entitlements.d.ts +7 -1
- package/dist/src/client/portal.js.map +1 -1
- package/dist/src/client/schemas.d.ts +2197 -603
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +21 -21
- package/dist/cjs/tsconfig.128cd867.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.48bd919c.tsbuildinfo +0 -1
|
@@ -136,7 +136,6 @@ export declare class BillingInvoices {
|
|
|
136
136
|
readonly sentToCustomerAt?: Date;
|
|
137
137
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
138
138
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
139
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
140
139
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
141
140
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
142
141
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -173,7 +172,6 @@ export declare class BillingInvoices {
|
|
|
173
172
|
readonly sentToCustomerAt?: Date;
|
|
174
173
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
175
174
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
176
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
177
175
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
178
176
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
179
177
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -209,7 +207,6 @@ export declare class BillingInvoices {
|
|
|
209
207
|
readonly sentToCustomerAt?: Date;
|
|
210
208
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
211
209
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
212
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
213
210
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
214
211
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
215
212
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -245,7 +242,6 @@ export declare class BillingInvoices {
|
|
|
245
242
|
readonly sentToCustomerAt?: Date;
|
|
246
243
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
247
244
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
248
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
249
245
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
250
246
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
251
247
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -280,7 +276,6 @@ export declare class BillingInvoices {
|
|
|
280
276
|
readonly sentToCustomerAt?: Date;
|
|
281
277
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
282
278
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
283
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
284
279
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
285
280
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
286
281
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -318,7 +313,6 @@ export declare class BillingInvoices {
|
|
|
318
313
|
readonly sentToCustomerAt?: Date;
|
|
319
314
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
320
315
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
321
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
322
316
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
323
317
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
324
318
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -353,7 +347,6 @@ export declare class BillingInvoices {
|
|
|
353
347
|
readonly sentToCustomerAt?: Date;
|
|
354
348
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
355
349
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
356
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
357
350
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
358
351
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
359
352
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -388,7 +381,6 @@ export declare class BillingInvoices {
|
|
|
388
381
|
readonly sentToCustomerAt?: Date;
|
|
389
382
|
workflow: import("./schemas.cjs").components["schemas"]["InvoiceWorkflowSettings"];
|
|
390
383
|
lines?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
391
|
-
discounts?: import("./schemas.cjs").components["schemas"]["Discount"][];
|
|
392
384
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
393
385
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
394
386
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
@@ -410,7 +402,6 @@ export declare class BillingInvoices {
|
|
|
410
402
|
readonly managedBy: import("./schemas.cjs").components["schemas"]["InvoiceLineManagedBy"];
|
|
411
403
|
readonly status: import("./schemas.cjs").components["schemas"]["InvoiceLineStatus"];
|
|
412
404
|
readonly discounts?: import("./schemas.cjs").components["schemas"]["InvoiceLineDiscount"][];
|
|
413
|
-
readonly charges?: import("./schemas.cjs").components["schemas"]["BillingLineCharge"][];
|
|
414
405
|
invoice?: import("./schemas.cjs").components["schemas"]["InvoiceReference"];
|
|
415
406
|
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
416
407
|
readonly taxes?: import("./schemas.cjs").components["schemas"]["InvoiceLineTaxItem"][];
|
|
@@ -420,10 +411,11 @@ export declare class BillingInvoices {
|
|
|
420
411
|
period: import("./schemas.cjs").components["schemas"]["Period"];
|
|
421
412
|
invoiceAt: Date;
|
|
422
413
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceLineAppExternalIds"];
|
|
423
|
-
readonly
|
|
414
|
+
readonly subscription?: import("./schemas.cjs").components["schemas"]["InvoiceLineSubscriptionReference"];
|
|
424
415
|
type: "usage_based";
|
|
425
|
-
price
|
|
426
|
-
featureKey
|
|
416
|
+
price?: import("./schemas.cjs").components["schemas"]["RateCardUsageBasedPrice"];
|
|
417
|
+
featureKey?: string;
|
|
418
|
+
rateCard?: import("./schemas.cjs").components["schemas"]["InvoiceUsageBasedRateCard"];
|
|
427
419
|
readonly quantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
428
420
|
readonly preLinePeriodQuantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
429
421
|
} | {
|
|
@@ -437,7 +429,6 @@ export declare class BillingInvoices {
|
|
|
437
429
|
readonly managedBy: import("./schemas.cjs").components["schemas"]["InvoiceLineManagedBy"];
|
|
438
430
|
readonly status: import("./schemas.cjs").components["schemas"]["InvoiceLineStatus"];
|
|
439
431
|
readonly discounts?: import("./schemas.cjs").components["schemas"]["InvoiceLineDiscount"][];
|
|
440
|
-
readonly charges?: import("./schemas.cjs").components["schemas"]["BillingLineCharge"][];
|
|
441
432
|
invoice?: import("./schemas.cjs").components["schemas"]["InvoiceReference"];
|
|
442
433
|
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
443
434
|
readonly taxes?: import("./schemas.cjs").components["schemas"]["InvoiceLineTaxItem"][];
|
|
@@ -447,11 +438,12 @@ export declare class BillingInvoices {
|
|
|
447
438
|
period: import("./schemas.cjs").components["schemas"]["Period"];
|
|
448
439
|
invoiceAt: Date;
|
|
449
440
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceLineAppExternalIds"];
|
|
450
|
-
readonly
|
|
441
|
+
readonly subscription?: import("./schemas.cjs").components["schemas"]["InvoiceLineSubscriptionReference"];
|
|
451
442
|
type: "flat_fee";
|
|
452
|
-
perUnitAmount
|
|
443
|
+
perUnitAmount?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
453
444
|
paymentTerm?: import("./schemas.cjs").components["schemas"]["PricePaymentTerm"];
|
|
454
|
-
quantity
|
|
445
|
+
quantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
446
|
+
rateCard?: import("./schemas.cjs").components["schemas"]["InvoiceFlatFeeRateCard"];
|
|
455
447
|
category?: import("./schemas.cjs").components["schemas"]["InvoiceFlatFeeCategory"];
|
|
456
448
|
})[]>;
|
|
457
449
|
}
|
|
@@ -30,15 +30,15 @@ class Customers {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Get a customer by ID
|
|
33
|
-
* @param
|
|
33
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
34
34
|
* @param signal - An optional abort signal
|
|
35
35
|
* @returns The customer
|
|
36
36
|
*/
|
|
37
|
-
async get(
|
|
38
|
-
const resp = await this.client.GET('/api/v1/customers/{
|
|
37
|
+
async get(customerIdOrKey, options) {
|
|
38
|
+
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}', {
|
|
39
39
|
params: {
|
|
40
40
|
path: {
|
|
41
|
-
|
|
41
|
+
customerIdOrKey,
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
...options,
|
|
@@ -47,17 +47,17 @@ class Customers {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Update a customer
|
|
50
|
-
* @param
|
|
50
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
51
51
|
* @param customer - The customer to update
|
|
52
52
|
* @param signal - An optional abort signal
|
|
53
53
|
* @returns The updated customer
|
|
54
54
|
*/
|
|
55
|
-
async update(
|
|
56
|
-
const resp = await this.client.PUT('/api/v1/customers/{
|
|
55
|
+
async update(customerIdOrKey, customer, options) {
|
|
56
|
+
const resp = await this.client.PUT('/api/v1/customers/{customerIdOrKey}', {
|
|
57
57
|
body: customer,
|
|
58
58
|
params: {
|
|
59
59
|
path: {
|
|
60
|
-
|
|
60
|
+
customerIdOrKey,
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
...options,
|
|
@@ -66,15 +66,15 @@ class Customers {
|
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Delete a customer
|
|
69
|
-
* @param
|
|
69
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
70
70
|
* @param signal - An optional abort signal
|
|
71
71
|
* @returns The deleted customer
|
|
72
72
|
*/
|
|
73
|
-
async delete(
|
|
74
|
-
const resp = await this.client.DELETE('/api/v1/customers/{
|
|
73
|
+
async delete(customerIdOrKey, options) {
|
|
74
|
+
const resp = await this.client.DELETE('/api/v1/customers/{customerIdOrKey}', {
|
|
75
75
|
params: {
|
|
76
76
|
path: {
|
|
77
|
-
|
|
77
|
+
customerIdOrKey,
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
...options,
|
|
@@ -108,17 +108,17 @@ class CustomerApps {
|
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* Upsert customer app data
|
|
111
|
-
* @param
|
|
111
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
112
112
|
* @param appData - The app data to upsert
|
|
113
113
|
* @param signal - An optional abort signal
|
|
114
114
|
* @returns The upserted app data
|
|
115
115
|
*/
|
|
116
|
-
async upsert(
|
|
117
|
-
const resp = await this.client.PUT('/api/v1/customers/{
|
|
116
|
+
async upsert(customerIdOrKey, appData, options) {
|
|
117
|
+
const resp = await this.client.PUT('/api/v1/customers/{customerIdOrKey}/apps', {
|
|
118
118
|
body: appData,
|
|
119
119
|
params: {
|
|
120
120
|
path: {
|
|
121
|
-
|
|
121
|
+
customerIdOrKey,
|
|
122
122
|
},
|
|
123
123
|
},
|
|
124
124
|
...options,
|
|
@@ -127,15 +127,15 @@ class CustomerApps {
|
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* List customer app data
|
|
130
|
-
* @param
|
|
130
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
131
131
|
* @param query - The query parameters
|
|
132
132
|
* @param signal - An optional abort signal
|
|
133
133
|
* @returns The list of customer app data
|
|
134
134
|
*/
|
|
135
|
-
async list(
|
|
136
|
-
const resp = await this.client.GET('/api/v1/customers/{
|
|
135
|
+
async list(customerIdOrKey, query, options) {
|
|
136
|
+
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/apps', {
|
|
137
137
|
params: {
|
|
138
|
-
path: {
|
|
138
|
+
path: { customerIdOrKey },
|
|
139
139
|
query,
|
|
140
140
|
},
|
|
141
141
|
...options,
|
|
@@ -144,21 +144,28 @@ class CustomerApps {
|
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* Delete customer app data
|
|
147
|
-
* @param
|
|
147
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
148
148
|
* @param appId - The ID of the app
|
|
149
149
|
* @param signal - An optional abort signal
|
|
150
150
|
* @returns The deleted customer app data
|
|
151
151
|
*/
|
|
152
|
-
async delete(
|
|
153
|
-
const resp = await this.client.DELETE('/api/v1/customers/{
|
|
154
|
-
params: { path: { appId,
|
|
152
|
+
async delete(customerIdOrKey, appId, options) {
|
|
153
|
+
const resp = await this.client.DELETE('/api/v1/customers/{customerIdOrKey}/apps/{appId}', {
|
|
154
|
+
params: { path: { appId, customerIdOrKey } },
|
|
155
155
|
...options,
|
|
156
156
|
});
|
|
157
157
|
return (0, utils_js_1.transformResponse)(resp);
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
/**
|
|
160
|
+
* List customer subscriptions
|
|
161
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
162
|
+
* @param query - The query parameters
|
|
163
|
+
* @param signal - An optional abort signal
|
|
164
|
+
* @returns The list of customer subscriptions
|
|
165
|
+
*/
|
|
166
|
+
async listSubscriptions(customerIdOrKey, query, options) {
|
|
167
|
+
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/subscriptions', {
|
|
168
|
+
params: { path: { customerIdOrKey }, query },
|
|
162
169
|
...options,
|
|
163
170
|
});
|
|
164
171
|
return (0, utils_js_1.transformResponse)(resp);
|
|
@@ -175,14 +182,14 @@ class CustomerEntitlements {
|
|
|
175
182
|
}
|
|
176
183
|
/**
|
|
177
184
|
* Get the value of an entitlement for a customer
|
|
178
|
-
* @param
|
|
185
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
179
186
|
* @param featureKey - The key of the feature
|
|
180
187
|
* @param signal - An optional abort signal
|
|
181
188
|
* @returns The value of the entitlement
|
|
182
189
|
*/
|
|
183
|
-
async value(
|
|
184
|
-
const resp = await this.client.GET('/api/v1/customers/{
|
|
185
|
-
params: { path: {
|
|
190
|
+
async value(customerIdOrKey, featureKey, options) {
|
|
191
|
+
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/entitlements/{featureKey}/value', {
|
|
192
|
+
params: { path: { customerIdOrKey, featureKey } },
|
|
186
193
|
...options,
|
|
187
194
|
});
|
|
188
195
|
return (0, utils_js_1.transformResponse)(resp);
|
|
@@ -33,11 +33,11 @@ export declare class Customers {
|
|
|
33
33
|
}>;
|
|
34
34
|
/**
|
|
35
35
|
* Get a customer by ID
|
|
36
|
-
* @param
|
|
36
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
37
37
|
* @param signal - An optional abort signal
|
|
38
38
|
* @returns The customer
|
|
39
39
|
*/
|
|
40
|
-
get(
|
|
40
|
+
get(customerIdOrKey: operations['getCustomer']['parameters']['path']['customerIdOrKey'], options?: RequestOptions): Promise<{
|
|
41
41
|
readonly id: string;
|
|
42
42
|
name: string;
|
|
43
43
|
description?: string;
|
|
@@ -54,12 +54,12 @@ export declare class Customers {
|
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
56
56
|
* Update a customer
|
|
57
|
-
* @param
|
|
57
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
58
58
|
* @param customer - The customer to update
|
|
59
59
|
* @param signal - An optional abort signal
|
|
60
60
|
* @returns The updated customer
|
|
61
61
|
*/
|
|
62
|
-
update(
|
|
62
|
+
update(customerIdOrKey: operations['updateCustomer']['parameters']['path']['customerIdOrKey'], customer: CustomerReplaceUpdate, options?: RequestOptions): Promise<{
|
|
63
63
|
readonly id: string;
|
|
64
64
|
name: string;
|
|
65
65
|
description?: string;
|
|
@@ -76,11 +76,11 @@ export declare class Customers {
|
|
|
76
76
|
}>;
|
|
77
77
|
/**
|
|
78
78
|
* Delete a customer
|
|
79
|
-
* @param
|
|
79
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
80
80
|
* @param signal - An optional abort signal
|
|
81
81
|
* @returns The deleted customer
|
|
82
82
|
*/
|
|
83
|
-
delete(
|
|
83
|
+
delete(customerIdOrKey: operations['deleteCustomer']['parameters']['path']['customerIdOrKey'], options?: RequestOptions): Promise<undefined>;
|
|
84
84
|
/**
|
|
85
85
|
* List customers
|
|
86
86
|
* @param signal - An optional abort signal
|
|
@@ -102,12 +102,12 @@ export declare class CustomerApps {
|
|
|
102
102
|
constructor(client: Client<paths, `${string}/${string}`>);
|
|
103
103
|
/**
|
|
104
104
|
* Upsert customer app data
|
|
105
|
-
* @param
|
|
105
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
106
106
|
* @param appData - The app data to upsert
|
|
107
107
|
* @param signal - An optional abort signal
|
|
108
108
|
* @returns The upserted app data
|
|
109
109
|
*/
|
|
110
|
-
upsert(
|
|
110
|
+
upsert(customerIdOrKey: operations['upsertCustomerAppData']['parameters']['path']['customerIdOrKey'], appData: CustomerAppData[], options?: RequestOptions): Promise<({
|
|
111
111
|
id?: string;
|
|
112
112
|
type: "stripe";
|
|
113
113
|
readonly app?: import("./schemas.cjs").components["schemas"]["StripeApp"];
|
|
@@ -120,12 +120,12 @@ export declare class CustomerApps {
|
|
|
120
120
|
})[]>;
|
|
121
121
|
/**
|
|
122
122
|
* List customer app data
|
|
123
|
-
* @param
|
|
123
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
124
124
|
* @param query - The query parameters
|
|
125
125
|
* @param signal - An optional abort signal
|
|
126
126
|
* @returns The list of customer app data
|
|
127
127
|
*/
|
|
128
|
-
list(
|
|
128
|
+
list(customerIdOrKey: operations['listCustomerAppData']['parameters']['path']['customerIdOrKey'], query?: operations['listCustomerAppData']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
129
129
|
totalCount: number;
|
|
130
130
|
page: number;
|
|
131
131
|
pageSize: number;
|
|
@@ -133,13 +133,20 @@ export declare class CustomerApps {
|
|
|
133
133
|
}>;
|
|
134
134
|
/**
|
|
135
135
|
* Delete customer app data
|
|
136
|
-
* @param
|
|
136
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
137
137
|
* @param appId - The ID of the app
|
|
138
138
|
* @param signal - An optional abort signal
|
|
139
139
|
* @returns The deleted customer app data
|
|
140
140
|
*/
|
|
141
|
-
delete(
|
|
142
|
-
|
|
141
|
+
delete(customerIdOrKey: operations['deleteCustomerAppData']['parameters']['path']['customerIdOrKey'], appId: operations['deleteCustomerAppData']['parameters']['path']['appId'], options?: RequestOptions): Promise<undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* List customer subscriptions
|
|
144
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
145
|
+
* @param query - The query parameters
|
|
146
|
+
* @param signal - An optional abort signal
|
|
147
|
+
* @returns The list of customer subscriptions
|
|
148
|
+
*/
|
|
149
|
+
listSubscriptions(customerIdOrKey: operations['listCustomerSubscriptions']['parameters']['path']['customerIdOrKey'], query?: operations['listCustomerSubscriptions']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
143
150
|
totalCount: number;
|
|
144
151
|
page: number;
|
|
145
152
|
pageSize: number;
|
|
@@ -154,12 +161,12 @@ export declare class CustomerEntitlements {
|
|
|
154
161
|
constructor(client: Client<paths, `${string}/${string}`>);
|
|
155
162
|
/**
|
|
156
163
|
* Get the value of an entitlement for a customer
|
|
157
|
-
* @param
|
|
164
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
158
165
|
* @param featureKey - The key of the feature
|
|
159
166
|
* @param signal - An optional abort signal
|
|
160
167
|
* @returns The value of the entitlement
|
|
161
168
|
*/
|
|
162
|
-
value(
|
|
169
|
+
value(customerIdOrKey: operations['getCustomerEntitlementValue']['parameters']['path']['customerIdOrKey'], featureKey: operations['getCustomerEntitlementValue']['parameters']['path']['featureKey'], options?: RequestOptions): Promise<{
|
|
163
170
|
readonly hasAccess: boolean;
|
|
164
171
|
readonly balance?: number;
|
|
165
172
|
readonly usage?: number;
|
|
@@ -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,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,
|
|
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,EAA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G,OAAO;SACX,CACF,CAAA;QAED,OAAO,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"}
|
|
@@ -200,6 +200,7 @@ export declare class Entitlements {
|
|
|
200
200
|
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
201
201
|
activeFrom: Date;
|
|
202
202
|
activeTo?: Date;
|
|
203
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
203
204
|
readonly id: string;
|
|
204
205
|
subjectKey: string;
|
|
205
206
|
featureKey: string;
|
|
@@ -217,6 +218,7 @@ export declare class Entitlements {
|
|
|
217
218
|
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
218
219
|
activeFrom: Date;
|
|
219
220
|
activeTo?: Date;
|
|
221
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
220
222
|
readonly id: string;
|
|
221
223
|
subjectKey: string;
|
|
222
224
|
featureKey: string;
|
|
@@ -231,6 +233,7 @@ export declare class Entitlements {
|
|
|
231
233
|
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
232
234
|
activeFrom: Date;
|
|
233
235
|
activeTo?: Date;
|
|
236
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
234
237
|
readonly id: string;
|
|
235
238
|
subjectKey: string;
|
|
236
239
|
featureKey: string;
|
|
@@ -244,6 +247,7 @@ export declare class Entitlements {
|
|
|
244
247
|
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
245
248
|
activeFrom: Date;
|
|
246
249
|
activeTo?: Date;
|
|
250
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
247
251
|
readonly id: string;
|
|
248
252
|
type: import("./schemas.cjs").components["schemas"]["EntitlementType"];
|
|
249
253
|
subjectKey: string;
|
|
@@ -252,14 +256,16 @@ export declare class Entitlements {
|
|
|
252
256
|
currentUsagePeriod?: import("./schemas.cjs").components["schemas"]["Period"];
|
|
253
257
|
usagePeriod?: import("./schemas.cjs").components["schemas"]["RecurringPeriod"];
|
|
254
258
|
} & {
|
|
259
|
+
readonly id: string;
|
|
255
260
|
readonly createdAt: Date;
|
|
256
261
|
readonly updatedAt: Date;
|
|
257
262
|
type: import("./schemas.cjs").components["schemas"]["EntitlementType"];
|
|
258
|
-
readonly id: string;
|
|
259
263
|
activeFrom: Date;
|
|
260
264
|
subjectKey: string;
|
|
261
265
|
featureKey: string;
|
|
262
266
|
featureId: string;
|
|
267
|
+
} & {
|
|
268
|
+
type: "boolean";
|
|
263
269
|
}))[]>;
|
|
264
270
|
/**
|
|
265
271
|
* Delete an entitlement
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.js","sourceRoot":"","sources":["../../../../src/client/portal.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAK9C;;;GAGG;AACH,MAAa,MAAM;IACG;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;
|
|
1
|
+
{"version":3,"file":"portal.js","sourceRoot":"","sources":["../../../../src/client/portal.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAK9C;;;GAGG;AACH,MAAa,MAAM;IACG;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,IAAiB,EAAE,OAAwB;QAC7D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CACf,KAA6D,EAC7D,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE;YAC1D,MAAM,EAAE,EAAE,KAAK,EAAE;YACjB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,UAAU,CACrB,IAAwF,EACxF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AArDD,wBAqDC"}
|