@openmeter/sdk 1.0.0-beta-b38aafcfc33f → 1.0.0-beta-5ec9ee842280
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 +31 -31
- package/dist/cjs/src/client/customers.d.cts +15 -15
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +95 -95
- package/dist/cjs/{tsconfig.c87fb07e.tsbuildinfo → tsconfig.74443ef6.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.f457a62d.tsbuildinfo → tsconfig.931a1a9e.tsbuildinfo} +1 -1
- package/dist/src/client/customers.d.ts +15 -15
- package/dist/src/client/customers.js +31 -31
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/schemas.d.ts +95 -95
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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,21 @@ 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
|
-
async listSubscriptions(
|
|
160
|
-
const resp = await this.client.GET('/api/v1/customers/{
|
|
161
|
-
params: { path: {
|
|
159
|
+
async listSubscriptions(customerIdOrKey, query, options) {
|
|
160
|
+
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/subscriptions', {
|
|
161
|
+
params: { path: { customerIdOrKey }, query },
|
|
162
162
|
...options,
|
|
163
163
|
});
|
|
164
164
|
return (0, utils_js_1.transformResponse)(resp);
|
|
@@ -175,14 +175,14 @@ class CustomerEntitlements {
|
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
177
|
* Get the value of an entitlement for a customer
|
|
178
|
-
* @param
|
|
178
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
179
179
|
* @param featureKey - The key of the feature
|
|
180
180
|
* @param signal - An optional abort signal
|
|
181
181
|
* @returns The value of the entitlement
|
|
182
182
|
*/
|
|
183
|
-
async value(
|
|
184
|
-
const resp = await this.client.GET('/api/v1/customers/{
|
|
185
|
-
params: { path: {
|
|
183
|
+
async value(customerIdOrKey, featureKey, options) {
|
|
184
|
+
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/entitlements/{featureKey}/value', {
|
|
185
|
+
params: { path: { customerIdOrKey, featureKey } },
|
|
186
186
|
...options,
|
|
187
187
|
});
|
|
188
188
|
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,13 @@ 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
|
-
listSubscriptions(
|
|
141
|
+
delete(customerIdOrKey: operations['deleteCustomerAppData']['parameters']['path']['customerIdOrKey'], appId: operations['deleteCustomerAppData']['parameters']['path']['appId'], options?: RequestOptions): Promise<undefined>;
|
|
142
|
+
listSubscriptions(customerIdOrKey: operations['listCustomerSubscriptions']['parameters']['path']['customerIdOrKey'], query?: operations['listCustomerSubscriptions']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
143
143
|
totalCount: number;
|
|
144
144
|
page: number;
|
|
145
145
|
pageSize: number;
|
|
@@ -154,12 +154,12 @@ export declare class CustomerEntitlements {
|
|
|
154
154
|
constructor(client: Client<paths, `${string}/${string}`>);
|
|
155
155
|
/**
|
|
156
156
|
* Get the value of an entitlement for a customer
|
|
157
|
-
* @param
|
|
157
|
+
* @param customerIdOrKey - The ID or Key of the customer
|
|
158
158
|
* @param featureKey - The key of the feature
|
|
159
159
|
* @param signal - An optional abort signal
|
|
160
160
|
* @returns The value of the entitlement
|
|
161
161
|
*/
|
|
162
|
-
value(
|
|
162
|
+
value(customerIdOrKey: operations['getCustomerEntitlementValue']['parameters']['path']['customerIdOrKey'], featureKey: operations['getCustomerEntitlementValue']['parameters']['path']['featureKey'], options?: RequestOptions): Promise<{
|
|
163
163
|
readonly hasAccess: boolean;
|
|
164
164
|
readonly balance?: number;
|
|
165
165
|
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,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KAAyE,EACzE,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACnC,kDAAkD,EAClD;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE;YAC5C,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAEM,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;AAzFD,oCAyFC;AAED;;GAEG;AACH,MAAa,oBAAoB;IACX;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAI,CAAC;IAErE;;;;;;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"}
|
|
@@ -573,7 +573,35 @@ export interface paths {
|
|
|
573
573
|
patch?: never;
|
|
574
574
|
trace?: never;
|
|
575
575
|
};
|
|
576
|
-
'/api/v1/customers/{
|
|
576
|
+
'/api/v1/customers/{customerIdOrKey}': {
|
|
577
|
+
parameters: {
|
|
578
|
+
query?: never;
|
|
579
|
+
header?: never;
|
|
580
|
+
path?: never;
|
|
581
|
+
cookie?: never;
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* Get customer
|
|
585
|
+
* @description Get a customer by ID or key.
|
|
586
|
+
*/
|
|
587
|
+
get: operations['getCustomer'];
|
|
588
|
+
/**
|
|
589
|
+
* Update customer
|
|
590
|
+
* @description Update a customer by ID.
|
|
591
|
+
*/
|
|
592
|
+
put: operations['updateCustomer'];
|
|
593
|
+
post?: never;
|
|
594
|
+
/**
|
|
595
|
+
* Delete customer
|
|
596
|
+
* @description Delete a customer by ID.
|
|
597
|
+
*/
|
|
598
|
+
delete: operations['deleteCustomer'];
|
|
599
|
+
options?: never;
|
|
600
|
+
head?: never;
|
|
601
|
+
patch?: never;
|
|
602
|
+
trace?: never;
|
|
603
|
+
};
|
|
604
|
+
'/api/v1/customers/{customerIdOrKey}/apps': {
|
|
577
605
|
parameters: {
|
|
578
606
|
query?: never;
|
|
579
607
|
header?: never;
|
|
@@ -597,7 +625,7 @@ export interface paths {
|
|
|
597
625
|
patch?: never;
|
|
598
626
|
trace?: never;
|
|
599
627
|
};
|
|
600
|
-
'/api/v1/customers/{
|
|
628
|
+
'/api/v1/customers/{customerIdOrKey}/apps/{appId}': {
|
|
601
629
|
parameters: {
|
|
602
630
|
query?: never;
|
|
603
631
|
header?: never;
|
|
@@ -617,7 +645,7 @@ export interface paths {
|
|
|
617
645
|
patch?: never;
|
|
618
646
|
trace?: never;
|
|
619
647
|
};
|
|
620
|
-
'/api/v1/customers/{
|
|
648
|
+
'/api/v1/customers/{customerIdOrKey}/entitlements/{featureKey}/value': {
|
|
621
649
|
parameters: {
|
|
622
650
|
query?: never;
|
|
623
651
|
header?: never;
|
|
@@ -637,7 +665,7 @@ export interface paths {
|
|
|
637
665
|
patch?: never;
|
|
638
666
|
trace?: never;
|
|
639
667
|
};
|
|
640
|
-
'/api/v1/customers/{
|
|
668
|
+
'/api/v1/customers/{customerIdOrKey}/subscriptions': {
|
|
641
669
|
parameters: {
|
|
642
670
|
query?: never;
|
|
643
671
|
header?: never;
|
|
@@ -657,34 +685,6 @@ export interface paths {
|
|
|
657
685
|
patch?: never;
|
|
658
686
|
trace?: never;
|
|
659
687
|
};
|
|
660
|
-
'/api/v1/customers/{id}': {
|
|
661
|
-
parameters: {
|
|
662
|
-
query?: never;
|
|
663
|
-
header?: never;
|
|
664
|
-
path?: never;
|
|
665
|
-
cookie?: never;
|
|
666
|
-
};
|
|
667
|
-
/**
|
|
668
|
-
* Get customer
|
|
669
|
-
* @description Get a customer by ID.
|
|
670
|
-
*/
|
|
671
|
-
get: operations['getCustomer'];
|
|
672
|
-
/**
|
|
673
|
-
* Update customer
|
|
674
|
-
* @description Update a customer by ID.
|
|
675
|
-
*/
|
|
676
|
-
put: operations['updateCustomer'];
|
|
677
|
-
post?: never;
|
|
678
|
-
/**
|
|
679
|
-
* Delete customer
|
|
680
|
-
* @description Delete a customer by ID.
|
|
681
|
-
*/
|
|
682
|
-
delete: operations['deleteCustomer'];
|
|
683
|
-
options?: never;
|
|
684
|
-
head?: never;
|
|
685
|
-
patch?: never;
|
|
686
|
-
trace?: never;
|
|
687
|
-
};
|
|
688
688
|
'/api/v1/debug/metrics': {
|
|
689
689
|
parameters: {
|
|
690
690
|
query?: never;
|
|
@@ -12227,23 +12227,12 @@ export interface operations {
|
|
|
12227
12227
|
};
|
|
12228
12228
|
};
|
|
12229
12229
|
};
|
|
12230
|
-
|
|
12230
|
+
getCustomer: {
|
|
12231
12231
|
parameters: {
|
|
12232
|
-
query?:
|
|
12233
|
-
/** @description Page index.
|
|
12234
|
-
*
|
|
12235
|
-
* Default is 1. */
|
|
12236
|
-
page?: components['parameters']['Pagination.page'];
|
|
12237
|
-
/** @description The maximum number of items per page.
|
|
12238
|
-
*
|
|
12239
|
-
* Default is 100. */
|
|
12240
|
-
pageSize?: components['parameters']['Pagination.pageSize'];
|
|
12241
|
-
/** @description Filter customer data by app type. */
|
|
12242
|
-
type?: components['parameters']['queryCustomerList.type'];
|
|
12243
|
-
};
|
|
12232
|
+
query?: never;
|
|
12244
12233
|
header?: never;
|
|
12245
12234
|
path: {
|
|
12246
|
-
|
|
12235
|
+
customerIdOrKey: string;
|
|
12247
12236
|
};
|
|
12248
12237
|
cookie?: never;
|
|
12249
12238
|
};
|
|
@@ -12255,7 +12244,7 @@ export interface operations {
|
|
|
12255
12244
|
[name: string]: unknown;
|
|
12256
12245
|
};
|
|
12257
12246
|
content: {
|
|
12258
|
-
'application/json': components['schemas']['
|
|
12247
|
+
'application/json': components['schemas']['Customer'];
|
|
12259
12248
|
};
|
|
12260
12249
|
};
|
|
12261
12250
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12332,18 +12321,18 @@ export interface operations {
|
|
|
12332
12321
|
};
|
|
12333
12322
|
};
|
|
12334
12323
|
};
|
|
12335
|
-
|
|
12324
|
+
updateCustomer: {
|
|
12336
12325
|
parameters: {
|
|
12337
12326
|
query?: never;
|
|
12338
12327
|
header?: never;
|
|
12339
12328
|
path: {
|
|
12340
|
-
|
|
12329
|
+
customerIdOrKey: string;
|
|
12341
12330
|
};
|
|
12342
12331
|
cookie?: never;
|
|
12343
12332
|
};
|
|
12344
12333
|
requestBody: {
|
|
12345
12334
|
content: {
|
|
12346
|
-
'application/json': components['schemas']['
|
|
12335
|
+
'application/json': components['schemas']['CustomerReplaceUpdate'];
|
|
12347
12336
|
};
|
|
12348
12337
|
};
|
|
12349
12338
|
responses: {
|
|
@@ -12353,7 +12342,7 @@ export interface operations {
|
|
|
12353
12342
|
[name: string]: unknown;
|
|
12354
12343
|
};
|
|
12355
12344
|
content: {
|
|
12356
|
-
'application/json': components['schemas']['
|
|
12345
|
+
'application/json': components['schemas']['Customer'];
|
|
12357
12346
|
};
|
|
12358
12347
|
};
|
|
12359
12348
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12430,13 +12419,12 @@ export interface operations {
|
|
|
12430
12419
|
};
|
|
12431
12420
|
};
|
|
12432
12421
|
};
|
|
12433
|
-
|
|
12422
|
+
deleteCustomer: {
|
|
12434
12423
|
parameters: {
|
|
12435
12424
|
query?: never;
|
|
12436
12425
|
header?: never;
|
|
12437
12426
|
path: {
|
|
12438
|
-
|
|
12439
|
-
appId: string;
|
|
12427
|
+
customerIdOrKey: string;
|
|
12440
12428
|
};
|
|
12441
12429
|
cookie?: never;
|
|
12442
12430
|
};
|
|
@@ -12523,15 +12511,23 @@ export interface operations {
|
|
|
12523
12511
|
};
|
|
12524
12512
|
};
|
|
12525
12513
|
};
|
|
12526
|
-
|
|
12514
|
+
listCustomerAppData: {
|
|
12527
12515
|
parameters: {
|
|
12528
12516
|
query?: {
|
|
12529
|
-
|
|
12517
|
+
/** @description Page index.
|
|
12518
|
+
*
|
|
12519
|
+
* Default is 1. */
|
|
12520
|
+
page?: components['parameters']['Pagination.page'];
|
|
12521
|
+
/** @description The maximum number of items per page.
|
|
12522
|
+
*
|
|
12523
|
+
* Default is 100. */
|
|
12524
|
+
pageSize?: components['parameters']['Pagination.pageSize'];
|
|
12525
|
+
/** @description Filter customer data by app type. */
|
|
12526
|
+
type?: components['parameters']['queryCustomerList.type'];
|
|
12530
12527
|
};
|
|
12531
12528
|
header?: never;
|
|
12532
12529
|
path: {
|
|
12533
|
-
|
|
12534
|
-
featureKey: string;
|
|
12530
|
+
customerIdOrKey: string;
|
|
12535
12531
|
};
|
|
12536
12532
|
cookie?: never;
|
|
12537
12533
|
};
|
|
@@ -12543,7 +12539,7 @@ export interface operations {
|
|
|
12543
12539
|
[name: string]: unknown;
|
|
12544
12540
|
};
|
|
12545
12541
|
content: {
|
|
12546
|
-
'application/json': components['schemas']['
|
|
12542
|
+
'application/json': components['schemas']['CustomerAppDataPaginatedResponse'];
|
|
12547
12543
|
};
|
|
12548
12544
|
};
|
|
12549
12545
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12620,25 +12616,20 @@ export interface operations {
|
|
|
12620
12616
|
};
|
|
12621
12617
|
};
|
|
12622
12618
|
};
|
|
12623
|
-
|
|
12619
|
+
upsertCustomerAppData: {
|
|
12624
12620
|
parameters: {
|
|
12625
|
-
query?:
|
|
12626
|
-
/** @description Page index.
|
|
12627
|
-
*
|
|
12628
|
-
* Default is 1. */
|
|
12629
|
-
page?: components['parameters']['Pagination.page'];
|
|
12630
|
-
/** @description The maximum number of items per page.
|
|
12631
|
-
*
|
|
12632
|
-
* Default is 100. */
|
|
12633
|
-
pageSize?: components['parameters']['Pagination.pageSize'];
|
|
12634
|
-
};
|
|
12621
|
+
query?: never;
|
|
12635
12622
|
header?: never;
|
|
12636
12623
|
path: {
|
|
12637
|
-
|
|
12624
|
+
customerIdOrKey: string;
|
|
12638
12625
|
};
|
|
12639
12626
|
cookie?: never;
|
|
12640
12627
|
};
|
|
12641
|
-
requestBody
|
|
12628
|
+
requestBody: {
|
|
12629
|
+
content: {
|
|
12630
|
+
'application/json': components['schemas']['CustomerAppData'][];
|
|
12631
|
+
};
|
|
12632
|
+
};
|
|
12642
12633
|
responses: {
|
|
12643
12634
|
/** @description The request has succeeded. */
|
|
12644
12635
|
200: {
|
|
@@ -12646,7 +12637,7 @@ export interface operations {
|
|
|
12646
12637
|
[name: string]: unknown;
|
|
12647
12638
|
};
|
|
12648
12639
|
content: {
|
|
12649
|
-
'application/json': components['schemas']['
|
|
12640
|
+
'application/json': components['schemas']['CustomerAppData'][];
|
|
12650
12641
|
};
|
|
12651
12642
|
};
|
|
12652
12643
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12723,25 +12714,24 @@ export interface operations {
|
|
|
12723
12714
|
};
|
|
12724
12715
|
};
|
|
12725
12716
|
};
|
|
12726
|
-
|
|
12717
|
+
deleteCustomerAppData: {
|
|
12727
12718
|
parameters: {
|
|
12728
12719
|
query?: never;
|
|
12729
12720
|
header?: never;
|
|
12730
12721
|
path: {
|
|
12731
|
-
|
|
12722
|
+
customerIdOrKey: string;
|
|
12723
|
+
appId: string;
|
|
12732
12724
|
};
|
|
12733
12725
|
cookie?: never;
|
|
12734
12726
|
};
|
|
12735
12727
|
requestBody?: never;
|
|
12736
12728
|
responses: {
|
|
12737
|
-
/** @description
|
|
12738
|
-
|
|
12729
|
+
/** @description There is no content to send for this request, but the headers may be useful. */
|
|
12730
|
+
204: {
|
|
12739
12731
|
headers: {
|
|
12740
12732
|
[name: string]: unknown;
|
|
12741
12733
|
};
|
|
12742
|
-
content
|
|
12743
|
-
'application/json': components['schemas']['Customer'];
|
|
12744
|
-
};
|
|
12734
|
+
content?: never;
|
|
12745
12735
|
};
|
|
12746
12736
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
12747
12737
|
400: {
|
|
@@ -12817,20 +12807,19 @@ export interface operations {
|
|
|
12817
12807
|
};
|
|
12818
12808
|
};
|
|
12819
12809
|
};
|
|
12820
|
-
|
|
12810
|
+
getCustomerEntitlementValue: {
|
|
12821
12811
|
parameters: {
|
|
12822
|
-
query?:
|
|
12812
|
+
query?: {
|
|
12813
|
+
time?: Date | string;
|
|
12814
|
+
};
|
|
12823
12815
|
header?: never;
|
|
12824
12816
|
path: {
|
|
12825
|
-
|
|
12817
|
+
customerIdOrKey: string;
|
|
12818
|
+
featureKey: string;
|
|
12826
12819
|
};
|
|
12827
12820
|
cookie?: never;
|
|
12828
12821
|
};
|
|
12829
|
-
requestBody
|
|
12830
|
-
content: {
|
|
12831
|
-
'application/json': components['schemas']['CustomerReplaceUpdate'];
|
|
12832
|
-
};
|
|
12833
|
-
};
|
|
12822
|
+
requestBody?: never;
|
|
12834
12823
|
responses: {
|
|
12835
12824
|
/** @description The request has succeeded. */
|
|
12836
12825
|
200: {
|
|
@@ -12838,7 +12827,7 @@ export interface operations {
|
|
|
12838
12827
|
[name: string]: unknown;
|
|
12839
12828
|
};
|
|
12840
12829
|
content: {
|
|
12841
|
-
'application/json': components['schemas']['
|
|
12830
|
+
'application/json': components['schemas']['EntitlementValue'];
|
|
12842
12831
|
};
|
|
12843
12832
|
};
|
|
12844
12833
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12915,23 +12904,34 @@ export interface operations {
|
|
|
12915
12904
|
};
|
|
12916
12905
|
};
|
|
12917
12906
|
};
|
|
12918
|
-
|
|
12907
|
+
listCustomerSubscriptions: {
|
|
12919
12908
|
parameters: {
|
|
12920
|
-
query?:
|
|
12909
|
+
query?: {
|
|
12910
|
+
/** @description Page index.
|
|
12911
|
+
*
|
|
12912
|
+
* Default is 1. */
|
|
12913
|
+
page?: components['parameters']['Pagination.page'];
|
|
12914
|
+
/** @description The maximum number of items per page.
|
|
12915
|
+
*
|
|
12916
|
+
* Default is 100. */
|
|
12917
|
+
pageSize?: components['parameters']['Pagination.pageSize'];
|
|
12918
|
+
};
|
|
12921
12919
|
header?: never;
|
|
12922
12920
|
path: {
|
|
12923
|
-
|
|
12921
|
+
customerIdOrKey: string;
|
|
12924
12922
|
};
|
|
12925
12923
|
cookie?: never;
|
|
12926
12924
|
};
|
|
12927
12925
|
requestBody?: never;
|
|
12928
12926
|
responses: {
|
|
12929
|
-
/** @description
|
|
12930
|
-
|
|
12927
|
+
/** @description The request has succeeded. */
|
|
12928
|
+
200: {
|
|
12931
12929
|
headers: {
|
|
12932
12930
|
[name: string]: unknown;
|
|
12933
12931
|
};
|
|
12934
|
-
content
|
|
12932
|
+
content: {
|
|
12933
|
+
'application/json': components['schemas']['SubscriptionPaginatedResponse'];
|
|
12934
|
+
};
|
|
12935
12935
|
};
|
|
12936
12936
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
12937
12937
|
400: {
|