@arrowsphere/api-client 3.190.0-rc-cpe-1 → 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
@@ -12,9 +12,7 @@ export declare enum ActionsGetFields {
12
12
  COLUMN_CANCEL = "cancel",
13
13
  COLUMN_CONVERSION = "conversion",
14
14
  COLUMN_PAUSE = "pause",
15
- COLUMN_UPGRADE = "upgrade",
16
- COLUMN_UPDATE_FRIENDLY_NAME = "updateFriendlyName",
17
- COLUMN_SCHEDULED_TASK = "scheduledTask"
15
+ COLUMN_UPGRADE = "upgrade"
18
16
  }
19
17
  export declare type ActionsGetData = {
20
18
  [ActionsGetFields.COLUMN_HISTORY]: string;
@@ -30,8 +28,6 @@ export declare type ActionsGetData = {
30
28
  [ActionsGetFields.COLUMN_CONVERSION]?: string;
31
29
  [ActionsGetFields.COLUMN_PAUSE]?: string;
32
30
  [ActionsGetFields.COLUMN_UPGRADE]?: string;
33
- [ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME]?: string;
34
- [ActionsGetFields.COLUMN_SCHEDULED_TASK]?: string;
35
31
  };
36
32
  export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
37
33
  #private;
@@ -49,7 +45,5 @@ export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
49
45
  get conversion(): string | undefined;
50
46
  get pause(): string | undefined;
51
47
  get upgrade(): string | undefined;
52
- get updateFriendlyName(): string | undefined;
53
- get scheduledTask(): string | undefined;
54
48
  toJSON(): ActionsGetData;
55
49
  }
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _ActionsGetResult_history, _ActionsGetResult_update, _ActionsGetResult_increaseSeats, _ActionsGetResult_decreaseSeats, _ActionsGetResult_addons_catalog, _ActionsGetResult_suspend, _ActionsGetResult_reactivate, _ActionsGetResult_autoRenewOff, _ActionsGetResult_autoRenewOn, _ActionsGetResult_cancel, _ActionsGetResult_conversion, _ActionsGetResult_pause, _ActionsGetResult_upgrade, _ActionsGetResult_updateFriendlyName, _ActionsGetResult_scheduledTask;
13
+ var _ActionsGetResult_history, _ActionsGetResult_update, _ActionsGetResult_increaseSeats, _ActionsGetResult_decreaseSeats, _ActionsGetResult_addons_catalog, _ActionsGetResult_suspend, _ActionsGetResult_reactivate, _ActionsGetResult_autoRenewOff, _ActionsGetResult_autoRenewOn, _ActionsGetResult_cancel, _ActionsGetResult_conversion, _ActionsGetResult_pause, _ActionsGetResult_upgrade;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ActionsGetResult = exports.ActionsGetFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
@@ -29,8 +29,6 @@ var ActionsGetFields;
29
29
  ActionsGetFields["COLUMN_CONVERSION"] = "conversion";
30
30
  ActionsGetFields["COLUMN_PAUSE"] = "pause";
31
31
  ActionsGetFields["COLUMN_UPGRADE"] = "upgrade";
32
- ActionsGetFields["COLUMN_UPDATE_FRIENDLY_NAME"] = "updateFriendlyName";
33
- ActionsGetFields["COLUMN_SCHEDULED_TASK"] = "scheduledTask";
34
32
  })(ActionsGetFields = exports.ActionsGetFields || (exports.ActionsGetFields = {}));
35
33
  class ActionsGetResult extends abstractEntity_1.AbstractEntity {
36
34
  constructor(data) {
@@ -48,8 +46,6 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
48
46
  _ActionsGetResult_conversion.set(this, void 0);
49
47
  _ActionsGetResult_pause.set(this, void 0);
50
48
  _ActionsGetResult_upgrade.set(this, void 0);
51
- _ActionsGetResult_updateFriendlyName.set(this, void 0);
52
- _ActionsGetResult_scheduledTask.set(this, void 0);
53
49
  __classPrivateFieldSet(this, _ActionsGetResult_history, data[ActionsGetFields.COLUMN_HISTORY], "f");
54
50
  __classPrivateFieldSet(this, _ActionsGetResult_update, data[ActionsGetFields.COLUMN_UPDATE], "f");
55
51
  __classPrivateFieldSet(this, _ActionsGetResult_increaseSeats, data[ActionsGetFields.COLUMN_INCREASE_SEATS], "f");
@@ -63,8 +59,6 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
63
59
  __classPrivateFieldSet(this, _ActionsGetResult_conversion, data[ActionsGetFields.COLUMN_CONVERSION], "f");
64
60
  __classPrivateFieldSet(this, _ActionsGetResult_pause, data[ActionsGetFields.COLUMN_PAUSE], "f");
65
61
  __classPrivateFieldSet(this, _ActionsGetResult_upgrade, data[ActionsGetFields.COLUMN_UPGRADE], "f");
66
- __classPrivateFieldSet(this, _ActionsGetResult_updateFriendlyName, data[ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME], "f");
67
- __classPrivateFieldSet(this, _ActionsGetResult_scheduledTask, data[ActionsGetFields.COLUMN_SCHEDULED_TASK], "f");
68
62
  }
69
63
  get history() {
70
64
  return __classPrivateFieldGet(this, _ActionsGetResult_history, "f");
@@ -105,12 +99,6 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
105
99
  get upgrade() {
106
100
  return __classPrivateFieldGet(this, _ActionsGetResult_upgrade, "f");
107
101
  }
108
- get updateFriendlyName() {
109
- return __classPrivateFieldGet(this, _ActionsGetResult_updateFriendlyName, "f");
110
- }
111
- get scheduledTask() {
112
- return __classPrivateFieldGet(this, _ActionsGetResult_scheduledTask, "f");
113
- }
114
102
  toJSON() {
115
103
  return {
116
104
  [ActionsGetFields.COLUMN_HISTORY]: this.history,
@@ -126,11 +114,9 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
126
114
  [ActionsGetFields.COLUMN_CONVERSION]: this.conversion,
127
115
  [ActionsGetFields.COLUMN_PAUSE]: this.pause,
128
116
  [ActionsGetFields.COLUMN_UPGRADE]: this.upgrade,
129
- [ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME]: this.updateFriendlyName,
130
- [ActionsGetFields.COLUMN_SCHEDULED_TASK]: this.scheduledTask,
131
117
  };
132
118
  }
133
119
  }
134
120
  exports.ActionsGetResult = ActionsGetResult;
135
- _ActionsGetResult_history = new WeakMap(), _ActionsGetResult_update = new WeakMap(), _ActionsGetResult_increaseSeats = new WeakMap(), _ActionsGetResult_decreaseSeats = new WeakMap(), _ActionsGetResult_addons_catalog = new WeakMap(), _ActionsGetResult_suspend = new WeakMap(), _ActionsGetResult_reactivate = new WeakMap(), _ActionsGetResult_autoRenewOff = new WeakMap(), _ActionsGetResult_autoRenewOn = new WeakMap(), _ActionsGetResult_cancel = new WeakMap(), _ActionsGetResult_conversion = new WeakMap(), _ActionsGetResult_pause = new WeakMap(), _ActionsGetResult_upgrade = new WeakMap(), _ActionsGetResult_updateFriendlyName = new WeakMap(), _ActionsGetResult_scheduledTask = new WeakMap();
121
+ _ActionsGetResult_history = new WeakMap(), _ActionsGetResult_update = new WeakMap(), _ActionsGetResult_increaseSeats = new WeakMap(), _ActionsGetResult_decreaseSeats = new WeakMap(), _ActionsGetResult_addons_catalog = new WeakMap(), _ActionsGetResult_suspend = new WeakMap(), _ActionsGetResult_reactivate = new WeakMap(), _ActionsGetResult_autoRenewOff = new WeakMap(), _ActionsGetResult_autoRenewOn = new WeakMap(), _ActionsGetResult_cancel = new WeakMap(), _ActionsGetResult_conversion = new WeakMap(), _ActionsGetResult_pause = new WeakMap(), _ActionsGetResult_upgrade = new WeakMap();
136
122
  //# sourceMappingURL=actionsGetResult.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.190.0-rc-cpe-1",
7
+ "version": "3.190.0-rc-bdj-1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",