@openmeter/sdk 1.0.0-beta.221 → 1.0.0-beta.223
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 +188 -2
- package/dist/cjs/src/client/customers.d.cts +363 -1
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/entitlements.cjs +92 -1
- package/dist/cjs/src/client/entitlements.d.cts +139 -28
- package/dist/cjs/src/client/entitlements.js.map +1 -1
- package/dist/cjs/src/client/index.cjs +3 -1
- package/dist/cjs/src/client/index.d.cts +3 -2
- package/dist/cjs/src/client/index.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +2551 -1738
- package/dist/cjs/src/client/subjects.d.cts +9 -0
- package/dist/cjs/src/zod/index.cjs +1890 -1639
- package/dist/cjs/src/zod/index.d.cts +1751 -1585
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.0bedc47d.tsbuildinfo → tsconfig.07c9b9a6.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.c449a50f.tsbuildinfo → tsconfig.5c5dbdc6.tsbuildinfo} +1 -1
- package/dist/src/client/customers.d.ts +363 -1
- package/dist/src/client/customers.js +186 -1
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/entitlements.d.ts +139 -28
- package/dist/src/client/entitlements.js +89 -0
- package/dist/src/client/entitlements.js.map +1 -1
- package/dist/src/client/index.d.ts +3 -2
- package/dist/src/client/index.js +4 -2
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/schemas.d.ts +2551 -1738
- package/dist/src/client/subjects.d.ts +9 -0
- package/dist/src/zod/index.d.ts +1751 -1585
- package/dist/src/zod/index.js +1873 -1623
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerEntitlements = exports.CustomerStripe = exports.CustomerApps = exports.Customers = void 0;
|
|
3
|
+
exports.CustomerEntitlementsV2 = exports.CustomerEntitlements = exports.CustomerStripe = exports.CustomerApps = exports.Customers = void 0;
|
|
4
4
|
const utils_js_1 = require("./utils.cjs");
|
|
5
5
|
/**
|
|
6
6
|
* Customers
|
|
@@ -9,12 +9,14 @@ const utils_js_1 = require("./utils.cjs");
|
|
|
9
9
|
class Customers {
|
|
10
10
|
client;
|
|
11
11
|
apps;
|
|
12
|
+
entitlementsV1;
|
|
12
13
|
entitlements;
|
|
13
14
|
stripe;
|
|
14
15
|
constructor(client) {
|
|
15
16
|
this.client = client;
|
|
16
17
|
this.apps = new CustomerApps(client);
|
|
17
|
-
this.
|
|
18
|
+
this.entitlementsV1 = new CustomerEntitlements(client);
|
|
19
|
+
this.entitlements = new CustomerEntitlementsV2(client);
|
|
18
20
|
this.stripe = new CustomerStripe(client);
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
@@ -280,4 +282,188 @@ class CustomerEntitlements {
|
|
|
280
282
|
}
|
|
281
283
|
}
|
|
282
284
|
exports.CustomerEntitlements = CustomerEntitlements;
|
|
285
|
+
/**
|
|
286
|
+
* Customer Entitlements V2
|
|
287
|
+
*/
|
|
288
|
+
class CustomerEntitlementsV2 {
|
|
289
|
+
client;
|
|
290
|
+
constructor(client) {
|
|
291
|
+
this.client = client;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* List all entitlements for a customer
|
|
295
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
296
|
+
* @param options - Request options including query parameters
|
|
297
|
+
* @returns List of customer entitlements
|
|
298
|
+
*/
|
|
299
|
+
async list(customerIdOrKey, options) {
|
|
300
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements', {
|
|
301
|
+
params: {
|
|
302
|
+
path: { customerIdOrKey },
|
|
303
|
+
query: options?.query,
|
|
304
|
+
},
|
|
305
|
+
...options,
|
|
306
|
+
});
|
|
307
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Create a customer entitlement
|
|
311
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
312
|
+
* @param entitlement - The entitlement data to create
|
|
313
|
+
* @param options - Request options
|
|
314
|
+
* @returns The created entitlement
|
|
315
|
+
*/
|
|
316
|
+
async create(customerIdOrKey, entitlement, options) {
|
|
317
|
+
const resp = await this.client.POST('/api/v2/customers/{customerIdOrKey}/entitlements', {
|
|
318
|
+
body: entitlement,
|
|
319
|
+
params: {
|
|
320
|
+
path: { customerIdOrKey },
|
|
321
|
+
},
|
|
322
|
+
...options,
|
|
323
|
+
});
|
|
324
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Get a specific customer entitlement
|
|
328
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
329
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
330
|
+
* @param options - Request options
|
|
331
|
+
* @returns The entitlement
|
|
332
|
+
*/
|
|
333
|
+
async get(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
334
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}', {
|
|
335
|
+
params: {
|
|
336
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
337
|
+
},
|
|
338
|
+
...options,
|
|
339
|
+
});
|
|
340
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Delete a customer entitlement
|
|
344
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
345
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
346
|
+
* @param options - Request options
|
|
347
|
+
* @returns The deletion response
|
|
348
|
+
*/
|
|
349
|
+
async delete(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
350
|
+
const resp = await this.client.DELETE('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}', {
|
|
351
|
+
params: {
|
|
352
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
353
|
+
},
|
|
354
|
+
...options,
|
|
355
|
+
});
|
|
356
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Override a customer entitlement
|
|
360
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
361
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
362
|
+
* @param entitlement - The new entitlement data
|
|
363
|
+
* @param options - Request options
|
|
364
|
+
* @returns The overridden entitlement
|
|
365
|
+
*/
|
|
366
|
+
async override(customerIdOrKey, entitlementIdOrFeatureKey, entitlement, options) {
|
|
367
|
+
const resp = await this.client.PUT('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/override', {
|
|
368
|
+
body: entitlement,
|
|
369
|
+
params: {
|
|
370
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
371
|
+
},
|
|
372
|
+
...options,
|
|
373
|
+
});
|
|
374
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* List grants for a customer entitlement
|
|
378
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
379
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
380
|
+
* @param options - Request options including query parameters
|
|
381
|
+
* @returns List of entitlement grants
|
|
382
|
+
*/
|
|
383
|
+
async listGrants(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
384
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants', {
|
|
385
|
+
params: {
|
|
386
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
387
|
+
query: options?.query,
|
|
388
|
+
},
|
|
389
|
+
...options,
|
|
390
|
+
});
|
|
391
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Create a grant for a customer entitlement
|
|
395
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
396
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
397
|
+
* @param grant - The grant data to create
|
|
398
|
+
* @param options - Request options
|
|
399
|
+
* @returns The created grant
|
|
400
|
+
*/
|
|
401
|
+
async createGrant(customerIdOrKey, entitlementIdOrFeatureKey, grant, options) {
|
|
402
|
+
const resp = await this.client.POST('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants', {
|
|
403
|
+
body: grant,
|
|
404
|
+
params: {
|
|
405
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
406
|
+
},
|
|
407
|
+
...options,
|
|
408
|
+
});
|
|
409
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Get the value of a customer entitlement
|
|
413
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
414
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
415
|
+
* @param options - Request options including query parameters
|
|
416
|
+
* @returns The entitlement value
|
|
417
|
+
*/
|
|
418
|
+
async value(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
419
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value', {
|
|
420
|
+
params: {
|
|
421
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
422
|
+
query: options?.query,
|
|
423
|
+
},
|
|
424
|
+
...options,
|
|
425
|
+
});
|
|
426
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Get the history of a customer entitlement
|
|
430
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
431
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
432
|
+
* @param windowSize - The window size for the history
|
|
433
|
+
* @param options - Request options including query parameters
|
|
434
|
+
* @returns The entitlement history
|
|
435
|
+
*/
|
|
436
|
+
async history(customerIdOrKey, entitlementIdOrFeatureKey, windowSize, options) {
|
|
437
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/history', {
|
|
438
|
+
params: {
|
|
439
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
440
|
+
query: {
|
|
441
|
+
windowSize,
|
|
442
|
+
...options?.query,
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
...options,
|
|
446
|
+
});
|
|
447
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Reset the usage of a customer entitlement
|
|
451
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
452
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
453
|
+
* @param reset - The reset data
|
|
454
|
+
* @param options - Request options
|
|
455
|
+
* @returns The reset response
|
|
456
|
+
*/
|
|
457
|
+
async resetUsage(customerIdOrKey, entitlementIdOrFeatureKey, reset, options) {
|
|
458
|
+
const resp = await this.client.POST('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/reset', {
|
|
459
|
+
body: reset,
|
|
460
|
+
params: {
|
|
461
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
462
|
+
},
|
|
463
|
+
...options,
|
|
464
|
+
});
|
|
465
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
exports.CustomerEntitlementsV2 = CustomerEntitlementsV2;
|
|
283
469
|
//# sourceMappingURL=customers.js.map
|
|
@@ -8,7 +8,8 @@ import type { Client } from 'openapi-fetch';
|
|
|
8
8
|
export declare class Customers {
|
|
9
9
|
private client;
|
|
10
10
|
apps: CustomerApps;
|
|
11
|
-
|
|
11
|
+
entitlementsV1: CustomerEntitlements;
|
|
12
|
+
entitlements: CustomerEntitlementsV2;
|
|
12
13
|
stripe: CustomerStripe;
|
|
13
14
|
constructor(client: Client<paths, `${string}/${string}`>);
|
|
14
15
|
/**
|
|
@@ -249,3 +250,364 @@ export declare class CustomerEntitlements {
|
|
|
249
250
|
readonly config?: string;
|
|
250
251
|
}>;
|
|
251
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* Customer Entitlements V2
|
|
255
|
+
*/
|
|
256
|
+
export declare class CustomerEntitlementsV2 {
|
|
257
|
+
private client;
|
|
258
|
+
constructor(client: Client<paths, `${string}/${string}`>);
|
|
259
|
+
/**
|
|
260
|
+
* List all entitlements for a customer
|
|
261
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
262
|
+
* @param options - Request options including query parameters
|
|
263
|
+
* @returns List of customer entitlements
|
|
264
|
+
*/
|
|
265
|
+
list(customerIdOrKey: operations['listCustomerEntitlementsV2']['parameters']['path']['customerIdOrKey'], options?: RequestOptions & {
|
|
266
|
+
query?: operations['listCustomerEntitlementsV2']['parameters']['query'];
|
|
267
|
+
}): Promise<{
|
|
268
|
+
totalCount: number;
|
|
269
|
+
page: number;
|
|
270
|
+
pageSize: number;
|
|
271
|
+
items: import("./schemas.cjs").components["schemas"]["EntitlementV2"][];
|
|
272
|
+
}>;
|
|
273
|
+
/**
|
|
274
|
+
* Create a customer entitlement
|
|
275
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
276
|
+
* @param entitlement - The entitlement data to create
|
|
277
|
+
* @param options - Request options
|
|
278
|
+
* @returns The created entitlement
|
|
279
|
+
*/
|
|
280
|
+
create(customerIdOrKey: operations['createCustomerEntitlementV2']['parameters']['path']['customerIdOrKey'], entitlement: operations['createCustomerEntitlementV2']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<import("openapi-typescript-helpers").SuccessResponse<{
|
|
281
|
+
201: {
|
|
282
|
+
headers: {
|
|
283
|
+
[name: string]: unknown;
|
|
284
|
+
};
|
|
285
|
+
content: {
|
|
286
|
+
"application/json": import("./schemas.cjs").components["schemas"]["EntitlementV2"];
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
400: {
|
|
290
|
+
headers: {
|
|
291
|
+
[name: string]: unknown;
|
|
292
|
+
};
|
|
293
|
+
content: {
|
|
294
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["BadRequestProblemResponse"];
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
401: {
|
|
298
|
+
headers: {
|
|
299
|
+
[name: string]: unknown;
|
|
300
|
+
};
|
|
301
|
+
content: {
|
|
302
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnauthorizedProblemResponse"];
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
403: {
|
|
306
|
+
headers: {
|
|
307
|
+
[name: string]: unknown;
|
|
308
|
+
};
|
|
309
|
+
content: {
|
|
310
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ForbiddenProblemResponse"];
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
409: {
|
|
314
|
+
headers: {
|
|
315
|
+
[name: string]: unknown;
|
|
316
|
+
};
|
|
317
|
+
content: {
|
|
318
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ConflictProblemResponse"];
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
412: {
|
|
322
|
+
headers: {
|
|
323
|
+
[name: string]: unknown;
|
|
324
|
+
};
|
|
325
|
+
content: {
|
|
326
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["PreconditionFailedProblemResponse"];
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
500: {
|
|
330
|
+
headers: {
|
|
331
|
+
[name: string]: unknown;
|
|
332
|
+
};
|
|
333
|
+
content: {
|
|
334
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["InternalServerErrorProblemResponse"];
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
503: {
|
|
338
|
+
headers: {
|
|
339
|
+
[name: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
content: {
|
|
342
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ServiceUnavailableProblemResponse"];
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
default: {
|
|
346
|
+
headers: {
|
|
347
|
+
[name: string]: unknown;
|
|
348
|
+
};
|
|
349
|
+
content: {
|
|
350
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
}, `${string}/${string}`>>;
|
|
354
|
+
/**
|
|
355
|
+
* Get a specific customer entitlement
|
|
356
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
357
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
358
|
+
* @param options - Request options
|
|
359
|
+
* @returns The entitlement
|
|
360
|
+
*/
|
|
361
|
+
get(customerIdOrKey: operations['getCustomerEntitlementV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['getCustomerEntitlementV2']['parameters']['path']['entitlementIdOrFeatureKey'], options?: RequestOptions): Promise<import("openapi-typescript-helpers").SuccessResponse<{
|
|
362
|
+
200: {
|
|
363
|
+
headers: {
|
|
364
|
+
[name: string]: unknown;
|
|
365
|
+
};
|
|
366
|
+
content: {
|
|
367
|
+
"application/json": import("./schemas.cjs").components["schemas"]["EntitlementV2"];
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
400: {
|
|
371
|
+
headers: {
|
|
372
|
+
[name: string]: unknown;
|
|
373
|
+
};
|
|
374
|
+
content: {
|
|
375
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["BadRequestProblemResponse"];
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
401: {
|
|
379
|
+
headers: {
|
|
380
|
+
[name: string]: unknown;
|
|
381
|
+
};
|
|
382
|
+
content: {
|
|
383
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnauthorizedProblemResponse"];
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
403: {
|
|
387
|
+
headers: {
|
|
388
|
+
[name: string]: unknown;
|
|
389
|
+
};
|
|
390
|
+
content: {
|
|
391
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ForbiddenProblemResponse"];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
404: {
|
|
395
|
+
headers: {
|
|
396
|
+
[name: string]: unknown;
|
|
397
|
+
};
|
|
398
|
+
content: {
|
|
399
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["NotFoundProblemResponse"];
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
412: {
|
|
403
|
+
headers: {
|
|
404
|
+
[name: string]: unknown;
|
|
405
|
+
};
|
|
406
|
+
content: {
|
|
407
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["PreconditionFailedProblemResponse"];
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
500: {
|
|
411
|
+
headers: {
|
|
412
|
+
[name: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
content: {
|
|
415
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["InternalServerErrorProblemResponse"];
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
503: {
|
|
419
|
+
headers: {
|
|
420
|
+
[name: string]: unknown;
|
|
421
|
+
};
|
|
422
|
+
content: {
|
|
423
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ServiceUnavailableProblemResponse"];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
default: {
|
|
427
|
+
headers: {
|
|
428
|
+
[name: string]: unknown;
|
|
429
|
+
};
|
|
430
|
+
content: {
|
|
431
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
}, `${string}/${string}`>>;
|
|
435
|
+
/**
|
|
436
|
+
* Delete a customer entitlement
|
|
437
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
438
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
439
|
+
* @param options - Request options
|
|
440
|
+
* @returns The deletion response
|
|
441
|
+
*/
|
|
442
|
+
delete(customerIdOrKey: operations['deleteCustomerEntitlementV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['deleteCustomerEntitlementV2']['parameters']['path']['entitlementIdOrFeatureKey'], options?: RequestOptions): Promise<undefined>;
|
|
443
|
+
/**
|
|
444
|
+
* Override a customer entitlement
|
|
445
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
446
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
447
|
+
* @param entitlement - The new entitlement data
|
|
448
|
+
* @param options - Request options
|
|
449
|
+
* @returns The overridden entitlement
|
|
450
|
+
*/
|
|
451
|
+
override(customerIdOrKey: operations['overrideCustomerEntitlementV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['overrideCustomerEntitlementV2']['parameters']['path']['entitlementIdOrFeatureKey'], entitlement: operations['overrideCustomerEntitlementV2']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<import("openapi-typescript-helpers").SuccessResponse<{
|
|
452
|
+
201: {
|
|
453
|
+
headers: {
|
|
454
|
+
[name: string]: unknown;
|
|
455
|
+
};
|
|
456
|
+
content: {
|
|
457
|
+
"application/json": import("./schemas.cjs").components["schemas"]["EntitlementV2"];
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
400: {
|
|
461
|
+
headers: {
|
|
462
|
+
[name: string]: unknown;
|
|
463
|
+
};
|
|
464
|
+
content: {
|
|
465
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["BadRequestProblemResponse"];
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
401: {
|
|
469
|
+
headers: {
|
|
470
|
+
[name: string]: unknown;
|
|
471
|
+
};
|
|
472
|
+
content: {
|
|
473
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnauthorizedProblemResponse"];
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
403: {
|
|
477
|
+
headers: {
|
|
478
|
+
[name: string]: unknown;
|
|
479
|
+
};
|
|
480
|
+
content: {
|
|
481
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ForbiddenProblemResponse"];
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
404: {
|
|
485
|
+
headers: {
|
|
486
|
+
[name: string]: unknown;
|
|
487
|
+
};
|
|
488
|
+
content: {
|
|
489
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["NotFoundProblemResponse"];
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
409: {
|
|
493
|
+
headers: {
|
|
494
|
+
[name: string]: unknown;
|
|
495
|
+
};
|
|
496
|
+
content: {
|
|
497
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ConflictProblemResponse"];
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
412: {
|
|
501
|
+
headers: {
|
|
502
|
+
[name: string]: unknown;
|
|
503
|
+
};
|
|
504
|
+
content: {
|
|
505
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["PreconditionFailedProblemResponse"];
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
500: {
|
|
509
|
+
headers: {
|
|
510
|
+
[name: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
content: {
|
|
513
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["InternalServerErrorProblemResponse"];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
503: {
|
|
517
|
+
headers: {
|
|
518
|
+
[name: string]: unknown;
|
|
519
|
+
};
|
|
520
|
+
content: {
|
|
521
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["ServiceUnavailableProblemResponse"];
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
default: {
|
|
525
|
+
headers: {
|
|
526
|
+
[name: string]: unknown;
|
|
527
|
+
};
|
|
528
|
+
content: {
|
|
529
|
+
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
}, `${string}/${string}`>>;
|
|
533
|
+
/**
|
|
534
|
+
* List grants for a customer entitlement
|
|
535
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
536
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
537
|
+
* @param options - Request options including query parameters
|
|
538
|
+
* @returns List of entitlement grants
|
|
539
|
+
*/
|
|
540
|
+
listGrants(customerIdOrKey: operations['listCustomerEntitlementGrantsV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['listCustomerEntitlementGrantsV2']['parameters']['path']['entitlementIdOrFeatureKey'], options?: RequestOptions & {
|
|
541
|
+
query?: operations['listCustomerEntitlementGrantsV2']['parameters']['query'];
|
|
542
|
+
}): Promise<{
|
|
543
|
+
totalCount: number;
|
|
544
|
+
page: number;
|
|
545
|
+
pageSize: number;
|
|
546
|
+
items: import("./schemas.cjs").components["schemas"]["EntitlementGrant"][];
|
|
547
|
+
}>;
|
|
548
|
+
/**
|
|
549
|
+
* Create a grant for a customer entitlement
|
|
550
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
551
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
552
|
+
* @param grant - The grant data to create
|
|
553
|
+
* @param options - Request options
|
|
554
|
+
* @returns The created grant
|
|
555
|
+
*/
|
|
556
|
+
createGrant(customerIdOrKey: operations['createCustomerEntitlementGrantV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['createCustomerEntitlementGrantV2']['parameters']['path']['entitlementIdOrFeatureKey'], grant: operations['createCustomerEntitlementGrantV2']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
|
|
557
|
+
readonly createdAt: Date;
|
|
558
|
+
readonly updatedAt: Date;
|
|
559
|
+
readonly deletedAt?: Date;
|
|
560
|
+
amount: number;
|
|
561
|
+
priority?: number;
|
|
562
|
+
effectiveAt: Date;
|
|
563
|
+
expiration: import("./schemas.cjs").components["schemas"]["ExpirationPeriod"];
|
|
564
|
+
maxRolloverAmount?: number;
|
|
565
|
+
minRolloverAmount?: number;
|
|
566
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
567
|
+
readonly id: string;
|
|
568
|
+
readonly entitlementId: string;
|
|
569
|
+
nextRecurrence?: Date;
|
|
570
|
+
readonly expiresAt?: Date;
|
|
571
|
+
voidedAt?: Date;
|
|
572
|
+
recurrence?: import("./schemas.cjs").components["schemas"]["RecurringPeriod"];
|
|
573
|
+
}>;
|
|
574
|
+
/**
|
|
575
|
+
* Get the value of a customer entitlement
|
|
576
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
577
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
578
|
+
* @param options - Request options including query parameters
|
|
579
|
+
* @returns The entitlement value
|
|
580
|
+
*/
|
|
581
|
+
value(customerIdOrKey: operations['getCustomerEntitlementValueV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['getCustomerEntitlementValueV2']['parameters']['path']['entitlementIdOrFeatureKey'], options?: RequestOptions & {
|
|
582
|
+
query?: operations['getCustomerEntitlementValueV2']['parameters']['query'];
|
|
583
|
+
}): Promise<{
|
|
584
|
+
readonly hasAccess: boolean;
|
|
585
|
+
readonly balance?: number;
|
|
586
|
+
readonly usage?: number;
|
|
587
|
+
readonly overage?: number;
|
|
588
|
+
readonly config?: string;
|
|
589
|
+
}>;
|
|
590
|
+
/**
|
|
591
|
+
* Get the history of a customer entitlement
|
|
592
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
593
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
594
|
+
* @param windowSize - The window size for the history
|
|
595
|
+
* @param options - Request options including query parameters
|
|
596
|
+
* @returns The entitlement history
|
|
597
|
+
*/
|
|
598
|
+
history(customerIdOrKey: operations['getCustomerEntitlementHistoryV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['getCustomerEntitlementHistoryV2']['parameters']['path']['entitlementIdOrFeatureKey'], windowSize: operations['getCustomerEntitlementHistoryV2']['parameters']['query']['windowSize'], options?: RequestOptions & {
|
|
599
|
+
query?: Omit<operations['getCustomerEntitlementHistoryV2']['parameters']['query'], 'windowSize'>;
|
|
600
|
+
}): Promise<{
|
|
601
|
+
windowedHistory: import("./schemas.cjs").components["schemas"]["BalanceHistoryWindow"][];
|
|
602
|
+
burndownHistory: import("./schemas.cjs").components["schemas"]["GrantBurnDownHistorySegment"][];
|
|
603
|
+
}>;
|
|
604
|
+
/**
|
|
605
|
+
* Reset the usage of a customer entitlement
|
|
606
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
607
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
608
|
+
* @param reset - The reset data
|
|
609
|
+
* @param options - Request options
|
|
610
|
+
* @returns The reset response
|
|
611
|
+
*/
|
|
612
|
+
resetUsage(customerIdOrKey: operations['resetCustomerEntitlementUsageV2']['parameters']['path']['customerIdOrKey'], entitlementIdOrFeatureKey: operations['resetCustomerEntitlementUsageV2']['parameters']['path']['entitlementIdOrFeatureKey'], reset: operations['resetCustomerEntitlementUsageV2']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<undefined>;
|
|
613
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/client/customers.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAa9C;;;GAGG;AACH,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/client/customers.ts"],"names":[],"mappings":";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