@openmeter/sdk 1.0.0-beta.220 → 1.0.0-beta.222
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/events.d.cts +1 -0
- 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 +2532 -1707
- package/dist/cjs/src/zod/index.cjs +1808 -1522
- package/dist/cjs/src/zod/index.d.cts +2352 -2172
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.ed1bfe74.tsbuildinfo → tsconfig.58b58bc1.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.f862b9eb.tsbuildinfo → tsconfig.7bcc7f9f.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/events.d.ts +1 -0
- 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 +2532 -1707
- package/dist/src/zod/index.d.ts +2352 -2172
- package/dist/src/zod/index.js +1791 -1506
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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.js").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.js").components["schemas"]["EntitlementV2"];
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
400: {
|
|
290
|
+
headers: {
|
|
291
|
+
[name: string]: unknown;
|
|
292
|
+
};
|
|
293
|
+
content: {
|
|
294
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["BadRequestProblemResponse"];
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
401: {
|
|
298
|
+
headers: {
|
|
299
|
+
[name: string]: unknown;
|
|
300
|
+
};
|
|
301
|
+
content: {
|
|
302
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["UnauthorizedProblemResponse"];
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
403: {
|
|
306
|
+
headers: {
|
|
307
|
+
[name: string]: unknown;
|
|
308
|
+
};
|
|
309
|
+
content: {
|
|
310
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ForbiddenProblemResponse"];
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
409: {
|
|
314
|
+
headers: {
|
|
315
|
+
[name: string]: unknown;
|
|
316
|
+
};
|
|
317
|
+
content: {
|
|
318
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ConflictProblemResponse"];
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
412: {
|
|
322
|
+
headers: {
|
|
323
|
+
[name: string]: unknown;
|
|
324
|
+
};
|
|
325
|
+
content: {
|
|
326
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["PreconditionFailedProblemResponse"];
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
500: {
|
|
330
|
+
headers: {
|
|
331
|
+
[name: string]: unknown;
|
|
332
|
+
};
|
|
333
|
+
content: {
|
|
334
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["InternalServerErrorProblemResponse"];
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
503: {
|
|
338
|
+
headers: {
|
|
339
|
+
[name: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
content: {
|
|
342
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ServiceUnavailableProblemResponse"];
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
default: {
|
|
346
|
+
headers: {
|
|
347
|
+
[name: string]: unknown;
|
|
348
|
+
};
|
|
349
|
+
content: {
|
|
350
|
+
"application/problem+json": import("./schemas.js").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.js").components["schemas"]["EntitlementV2"];
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
400: {
|
|
371
|
+
headers: {
|
|
372
|
+
[name: string]: unknown;
|
|
373
|
+
};
|
|
374
|
+
content: {
|
|
375
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["BadRequestProblemResponse"];
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
401: {
|
|
379
|
+
headers: {
|
|
380
|
+
[name: string]: unknown;
|
|
381
|
+
};
|
|
382
|
+
content: {
|
|
383
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["UnauthorizedProblemResponse"];
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
403: {
|
|
387
|
+
headers: {
|
|
388
|
+
[name: string]: unknown;
|
|
389
|
+
};
|
|
390
|
+
content: {
|
|
391
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ForbiddenProblemResponse"];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
404: {
|
|
395
|
+
headers: {
|
|
396
|
+
[name: string]: unknown;
|
|
397
|
+
};
|
|
398
|
+
content: {
|
|
399
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["NotFoundProblemResponse"];
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
412: {
|
|
403
|
+
headers: {
|
|
404
|
+
[name: string]: unknown;
|
|
405
|
+
};
|
|
406
|
+
content: {
|
|
407
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["PreconditionFailedProblemResponse"];
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
500: {
|
|
411
|
+
headers: {
|
|
412
|
+
[name: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
content: {
|
|
415
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["InternalServerErrorProblemResponse"];
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
503: {
|
|
419
|
+
headers: {
|
|
420
|
+
[name: string]: unknown;
|
|
421
|
+
};
|
|
422
|
+
content: {
|
|
423
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ServiceUnavailableProblemResponse"];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
default: {
|
|
427
|
+
headers: {
|
|
428
|
+
[name: string]: unknown;
|
|
429
|
+
};
|
|
430
|
+
content: {
|
|
431
|
+
"application/problem+json": import("./schemas.js").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.js").components["schemas"]["EntitlementV2"];
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
400: {
|
|
461
|
+
headers: {
|
|
462
|
+
[name: string]: unknown;
|
|
463
|
+
};
|
|
464
|
+
content: {
|
|
465
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["BadRequestProblemResponse"];
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
401: {
|
|
469
|
+
headers: {
|
|
470
|
+
[name: string]: unknown;
|
|
471
|
+
};
|
|
472
|
+
content: {
|
|
473
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["UnauthorizedProblemResponse"];
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
403: {
|
|
477
|
+
headers: {
|
|
478
|
+
[name: string]: unknown;
|
|
479
|
+
};
|
|
480
|
+
content: {
|
|
481
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ForbiddenProblemResponse"];
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
404: {
|
|
485
|
+
headers: {
|
|
486
|
+
[name: string]: unknown;
|
|
487
|
+
};
|
|
488
|
+
content: {
|
|
489
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["NotFoundProblemResponse"];
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
409: {
|
|
493
|
+
headers: {
|
|
494
|
+
[name: string]: unknown;
|
|
495
|
+
};
|
|
496
|
+
content: {
|
|
497
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ConflictProblemResponse"];
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
412: {
|
|
501
|
+
headers: {
|
|
502
|
+
[name: string]: unknown;
|
|
503
|
+
};
|
|
504
|
+
content: {
|
|
505
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["PreconditionFailedProblemResponse"];
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
500: {
|
|
509
|
+
headers: {
|
|
510
|
+
[name: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
content: {
|
|
513
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["InternalServerErrorProblemResponse"];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
503: {
|
|
517
|
+
headers: {
|
|
518
|
+
[name: string]: unknown;
|
|
519
|
+
};
|
|
520
|
+
content: {
|
|
521
|
+
"application/problem+json": import("./schemas.js").components["schemas"]["ServiceUnavailableProblemResponse"];
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
default: {
|
|
525
|
+
headers: {
|
|
526
|
+
[name: string]: unknown;
|
|
527
|
+
};
|
|
528
|
+
content: {
|
|
529
|
+
"application/problem+json": import("./schemas.js").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.js").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.js").components["schemas"]["ExpirationPeriod"];
|
|
564
|
+
maxRolloverAmount?: number;
|
|
565
|
+
minRolloverAmount?: number;
|
|
566
|
+
metadata?: import("./schemas.js").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.js").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.js").components["schemas"]["BalanceHistoryWindow"][];
|
|
602
|
+
burndownHistory: import("./schemas.js").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
|
+
}
|
|
@@ -6,12 +6,14 @@ import { transformResponse } from './utils.js';
|
|
|
6
6
|
export class Customers {
|
|
7
7
|
client;
|
|
8
8
|
apps;
|
|
9
|
+
entitlementsV1;
|
|
9
10
|
entitlements;
|
|
10
11
|
stripe;
|
|
11
12
|
constructor(client) {
|
|
12
13
|
this.client = client;
|
|
13
14
|
this.apps = new CustomerApps(client);
|
|
14
|
-
this.
|
|
15
|
+
this.entitlementsV1 = new CustomerEntitlements(client);
|
|
16
|
+
this.entitlements = new CustomerEntitlementsV2(client);
|
|
15
17
|
this.stripe = new CustomerStripe(client);
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
@@ -273,4 +275,187 @@ export class CustomerEntitlements {
|
|
|
273
275
|
return transformResponse(resp);
|
|
274
276
|
}
|
|
275
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Customer Entitlements V2
|
|
280
|
+
*/
|
|
281
|
+
export class CustomerEntitlementsV2 {
|
|
282
|
+
client;
|
|
283
|
+
constructor(client) {
|
|
284
|
+
this.client = client;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* List all entitlements for a customer
|
|
288
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
289
|
+
* @param options - Request options including query parameters
|
|
290
|
+
* @returns List of customer entitlements
|
|
291
|
+
*/
|
|
292
|
+
async list(customerIdOrKey, options) {
|
|
293
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements', {
|
|
294
|
+
params: {
|
|
295
|
+
path: { customerIdOrKey },
|
|
296
|
+
query: options?.query,
|
|
297
|
+
},
|
|
298
|
+
...options,
|
|
299
|
+
});
|
|
300
|
+
return transformResponse(resp);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Create a customer entitlement
|
|
304
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
305
|
+
* @param entitlement - The entitlement data to create
|
|
306
|
+
* @param options - Request options
|
|
307
|
+
* @returns The created entitlement
|
|
308
|
+
*/
|
|
309
|
+
async create(customerIdOrKey, entitlement, options) {
|
|
310
|
+
const resp = await this.client.POST('/api/v2/customers/{customerIdOrKey}/entitlements', {
|
|
311
|
+
body: entitlement,
|
|
312
|
+
params: {
|
|
313
|
+
path: { customerIdOrKey },
|
|
314
|
+
},
|
|
315
|
+
...options,
|
|
316
|
+
});
|
|
317
|
+
return transformResponse(resp);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Get a specific customer entitlement
|
|
321
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
322
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
323
|
+
* @param options - Request options
|
|
324
|
+
* @returns The entitlement
|
|
325
|
+
*/
|
|
326
|
+
async get(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
327
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}', {
|
|
328
|
+
params: {
|
|
329
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
330
|
+
},
|
|
331
|
+
...options,
|
|
332
|
+
});
|
|
333
|
+
return transformResponse(resp);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Delete a customer entitlement
|
|
337
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
338
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
339
|
+
* @param options - Request options
|
|
340
|
+
* @returns The deletion response
|
|
341
|
+
*/
|
|
342
|
+
async delete(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
343
|
+
const resp = await this.client.DELETE('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}', {
|
|
344
|
+
params: {
|
|
345
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
346
|
+
},
|
|
347
|
+
...options,
|
|
348
|
+
});
|
|
349
|
+
return transformResponse(resp);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Override a customer entitlement
|
|
353
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
354
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
355
|
+
* @param entitlement - The new entitlement data
|
|
356
|
+
* @param options - Request options
|
|
357
|
+
* @returns The overridden entitlement
|
|
358
|
+
*/
|
|
359
|
+
async override(customerIdOrKey, entitlementIdOrFeatureKey, entitlement, options) {
|
|
360
|
+
const resp = await this.client.PUT('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/override', {
|
|
361
|
+
body: entitlement,
|
|
362
|
+
params: {
|
|
363
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
364
|
+
},
|
|
365
|
+
...options,
|
|
366
|
+
});
|
|
367
|
+
return transformResponse(resp);
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* List grants for a customer entitlement
|
|
371
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
372
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
373
|
+
* @param options - Request options including query parameters
|
|
374
|
+
* @returns List of entitlement grants
|
|
375
|
+
*/
|
|
376
|
+
async listGrants(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
377
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants', {
|
|
378
|
+
params: {
|
|
379
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
380
|
+
query: options?.query,
|
|
381
|
+
},
|
|
382
|
+
...options,
|
|
383
|
+
});
|
|
384
|
+
return transformResponse(resp);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Create a grant for a customer entitlement
|
|
388
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
389
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
390
|
+
* @param grant - The grant data to create
|
|
391
|
+
* @param options - Request options
|
|
392
|
+
* @returns The created grant
|
|
393
|
+
*/
|
|
394
|
+
async createGrant(customerIdOrKey, entitlementIdOrFeatureKey, grant, options) {
|
|
395
|
+
const resp = await this.client.POST('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants', {
|
|
396
|
+
body: grant,
|
|
397
|
+
params: {
|
|
398
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
399
|
+
},
|
|
400
|
+
...options,
|
|
401
|
+
});
|
|
402
|
+
return transformResponse(resp);
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Get the value of a customer entitlement
|
|
406
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
407
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
408
|
+
* @param options - Request options including query parameters
|
|
409
|
+
* @returns The entitlement value
|
|
410
|
+
*/
|
|
411
|
+
async value(customerIdOrKey, entitlementIdOrFeatureKey, options) {
|
|
412
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value', {
|
|
413
|
+
params: {
|
|
414
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
415
|
+
query: options?.query,
|
|
416
|
+
},
|
|
417
|
+
...options,
|
|
418
|
+
});
|
|
419
|
+
return transformResponse(resp);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Get the history of a customer entitlement
|
|
423
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
424
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
425
|
+
* @param windowSize - The window size for the history
|
|
426
|
+
* @param options - Request options including query parameters
|
|
427
|
+
* @returns The entitlement history
|
|
428
|
+
*/
|
|
429
|
+
async history(customerIdOrKey, entitlementIdOrFeatureKey, windowSize, options) {
|
|
430
|
+
const resp = await this.client.GET('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/history', {
|
|
431
|
+
params: {
|
|
432
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
433
|
+
query: {
|
|
434
|
+
windowSize,
|
|
435
|
+
...options?.query,
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
...options,
|
|
439
|
+
});
|
|
440
|
+
return transformResponse(resp);
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Reset the usage of a customer entitlement
|
|
444
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
445
|
+
* @param entitlementIdOrFeatureKey - The ID or feature key of the entitlement
|
|
446
|
+
* @param reset - The reset data
|
|
447
|
+
* @param options - Request options
|
|
448
|
+
* @returns The reset response
|
|
449
|
+
*/
|
|
450
|
+
async resetUsage(customerIdOrKey, entitlementIdOrFeatureKey, reset, options) {
|
|
451
|
+
const resp = await this.client.POST('/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/reset', {
|
|
452
|
+
body: reset,
|
|
453
|
+
params: {
|
|
454
|
+
path: { customerIdOrKey, entitlementIdOrFeatureKey },
|
|
455
|
+
},
|
|
456
|
+
...options,
|
|
457
|
+
});
|
|
458
|
+
return transformResponse(resp);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
276
461
|
//# sourceMappingURL=customers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/client/customers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAa9C;;;GAGG;AACH,MAAM,OAAO,SAAS;
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/client/customers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAa9C;;;GAGG;AACH,MAAM,OAAO,SAAS;IAMA;IALb,IAAI,CAAc;IAClB,cAAc,CAAsB;IACpC,YAAY,CAAwB;IACpC,MAAM,CAAgB;IAE7B,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;QACpC,IAAI,CAAC,cAAc,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAA;QACtD,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAsB,CAAC,MAAM,CAAC,CAAA;QACtD,IAAI,CAAC,MAAM,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAA;IAC1C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,QAAwB,E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