@arrowsphere/api-client 3.189.0 → 3.190.0-rc-bdj-1
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.
|
@@ -110,6 +110,12 @@ export interface APIResponseError {
|
|
|
110
110
|
export declare type PatchCustomerContactPayload = {
|
|
111
111
|
[Property in keyof PostCustomerContactPayload]?: PostCustomerContactPayload[Property];
|
|
112
112
|
};
|
|
113
|
+
export declare enum CustomerAnonymizeContactsPayloadFields {
|
|
114
|
+
COLUMN_CONTACTS = "contacts"
|
|
115
|
+
}
|
|
116
|
+
export declare type CustomerAnonymizeContactsPayload = {
|
|
117
|
+
[CustomerAnonymizeContactsPayloadFields.COLUMN_CONTACTS]: number[];
|
|
118
|
+
};
|
|
113
119
|
export declare class CustomersClient extends AbstractRestfulClient {
|
|
114
120
|
/**
|
|
115
121
|
* The base path of the API
|
|
@@ -134,4 +140,5 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
134
140
|
cancelCustomerMigration(customerReference: string, program: string): Promise<void | APIResponseError>;
|
|
135
141
|
postCustomerProvision(customerReference: string, payload: PostCustomerMigrationPayload): Promise<void>;
|
|
136
142
|
getCustomerProvision(customerReference: string, program: string): Promise<GetResult<CustomerProvision>>;
|
|
143
|
+
anonymizeContacts(customerReference: string, payload: CustomerAnonymizeContactsPayload, parameters?: Parameters): Promise<void>;
|
|
137
144
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomersClient = exports.PostCustomerInvitationFields = exports.CustomerContactPayloadFields = exports.CustomerMigrationPayloadFields = exports.CustomerMigrationAttributeFields = void 0;
|
|
3
|
+
exports.CustomersClient = exports.CustomerAnonymizeContactsPayloadFields = exports.PostCustomerInvitationFields = exports.CustomerContactPayloadFields = exports.CustomerMigrationPayloadFields = exports.CustomerMigrationAttributeFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const dataCustomers_1 = require("./entities/dataCustomers");
|
|
@@ -38,6 +38,10 @@ var PostCustomerInvitationFields;
|
|
|
38
38
|
PostCustomerInvitationFields["COLUMN_CONTACT_ID"] = "contactId";
|
|
39
39
|
PostCustomerInvitationFields["COLUMN_POLICY"] = "policy";
|
|
40
40
|
})(PostCustomerInvitationFields = exports.PostCustomerInvitationFields || (exports.PostCustomerInvitationFields = {}));
|
|
41
|
+
var CustomerAnonymizeContactsPayloadFields;
|
|
42
|
+
(function (CustomerAnonymizeContactsPayloadFields) {
|
|
43
|
+
CustomerAnonymizeContactsPayloadFields["COLUMN_CONTACTS"] = "contacts";
|
|
44
|
+
})(CustomerAnonymizeContactsPayloadFields = exports.CustomerAnonymizeContactsPayloadFields || (exports.CustomerAnonymizeContactsPayloadFields = {}));
|
|
41
45
|
class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
42
46
|
constructor() {
|
|
43
47
|
super(...arguments);
|
|
@@ -123,6 +127,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
123
127
|
this.path = `/${customerReference}/provision`;
|
|
124
128
|
return new getResult_1.GetResult(customerProvision_1.CustomerProvision, await this.get({ program }));
|
|
125
129
|
}
|
|
130
|
+
async anonymizeContacts(customerReference, payload, parameters = {}) {
|
|
131
|
+
this.path = `/${customerReference}/contact/anonymize`;
|
|
132
|
+
await this.patch(payload, parameters);
|
|
133
|
+
}
|
|
126
134
|
}
|
|
127
135
|
exports.CustomersClient = CustomersClient;
|
|
128
136
|
//# sourceMappingURL=customersClient.js.map
|
package/package.json
CHANGED