arky-sdk 0.7.5 → 0.7.7
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/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +21 -2
- package/dist/types.d.ts +21 -2
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -237,6 +237,15 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
237
237
|
find(params?: FindCustomersParams, options?: RequestOptions): Promise<any>;
|
|
238
238
|
update(params: UpdateCustomerParams, options?: RequestOptions): Promise<any>;
|
|
239
239
|
merge(params: MergeCustomersParams, options?: RequestOptions): Promise<any>;
|
|
240
|
+
revokeToken(params: {
|
|
241
|
+
id: string;
|
|
242
|
+
tokenId: string;
|
|
243
|
+
businessId?: string;
|
|
244
|
+
}, options?: RequestOptions): Promise<any>;
|
|
245
|
+
revokeAllTokens(params: {
|
|
246
|
+
id: string;
|
|
247
|
+
businessId?: string;
|
|
248
|
+
}, options?: RequestOptions): Promise<any>;
|
|
240
249
|
audiences: {
|
|
241
250
|
create(params: CreateAudienceParams, options?: RequestOptions): Promise<any>;
|
|
242
251
|
update(params: UpdateAudienceParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -237,6 +237,15 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
237
237
|
find(params?: FindCustomersParams, options?: RequestOptions): Promise<any>;
|
|
238
238
|
update(params: UpdateCustomerParams, options?: RequestOptions): Promise<any>;
|
|
239
239
|
merge(params: MergeCustomersParams, options?: RequestOptions): Promise<any>;
|
|
240
|
+
revokeToken(params: {
|
|
241
|
+
id: string;
|
|
242
|
+
tokenId: string;
|
|
243
|
+
businessId?: string;
|
|
244
|
+
}, options?: RequestOptions): Promise<any>;
|
|
245
|
+
revokeAllTokens(params: {
|
|
246
|
+
id: string;
|
|
247
|
+
businessId?: string;
|
|
248
|
+
}, options?: RequestOptions): Promise<any>;
|
|
240
249
|
audiences: {
|
|
241
250
|
create(params: CreateAudienceParams, options?: RequestOptions): Promise<any>;
|
|
242
251
|
update(params: UpdateAudienceParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.js
CHANGED
|
@@ -1199,6 +1199,20 @@ var createCustomerApi = (apiConfig) => {
|
|
|
1199
1199
|
options
|
|
1200
1200
|
);
|
|
1201
1201
|
},
|
|
1202
|
+
async revokeToken(params, options) {
|
|
1203
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1204
|
+
return apiConfig.httpClient.delete(
|
|
1205
|
+
`/v1/businesses/${businessId}/customers/${params.id}/sessions/${params.tokenId}`,
|
|
1206
|
+
options
|
|
1207
|
+
);
|
|
1208
|
+
},
|
|
1209
|
+
async revokeAllTokens(params, options) {
|
|
1210
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1211
|
+
return apiConfig.httpClient.delete(
|
|
1212
|
+
`/v1/businesses/${businessId}/customers/${params.id}/sessions`,
|
|
1213
|
+
options
|
|
1214
|
+
);
|
|
1215
|
+
},
|
|
1202
1216
|
// Audiences
|
|
1203
1217
|
audiences: {
|
|
1204
1218
|
async create(params, options) {
|