@arrowsphere/api-client 3.102.0-rc.bdj.1 → 3.102.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ ## [3.101.0] - 2024.03.19
6
+
7
+ ### Added
8
+
9
+ - [customer/contact] add organization object in customer contact payload
10
+
11
+ ### Updated
12
+
13
+ - Add sommes configs for IDE
5
14
 
6
15
  ## [3.101.0] - 2024.03.19
7
16
 
@@ -1,5 +1,6 @@
1
1
  import { AbstractEntity } from '../../../../abstractEntity';
2
- import { CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
2
+ import { CustomerContactXcpInvitation, CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
3
+ import { CustomerContactOrganizationUnit, CustomerContactOrganizationUnitType } from './customerContactOrganizationUnit';
3
4
  export declare type CustomerContactRoleType = CustomerContactRoleEnum | string;
4
5
  export declare enum CustomerContactRoleEnum {
5
6
  PRIMARY = "primary",
@@ -26,7 +27,8 @@ export declare enum CustomerContactFields {
26
27
  COLUMN_ROLE = "role",
27
28
  COLUMN_IS_ACTIVE = "isActive",
28
29
  COLUMN_XCP_INVITATION = "xcpInvitation",
29
- COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
30
+ COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
31
+ COLUMN_ORGANIZATION_UNITS = "organizationUnits"
30
32
  }
31
33
  export declare type CustomerContactType = {
32
34
  [CustomerContactFields.COLUMN_REFERENCE]: string;
@@ -40,6 +42,7 @@ export declare type CustomerContactType = {
40
42
  [CustomerContactFields.COLUMN_IS_ACTIVE]: boolean;
41
43
  [CustomerContactFields.COLUMN_XCP_INVITATION]?: CustomerContactXcpInvitationType;
42
44
  [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
45
+ [CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: CustomerContactOrganizationUnitType[] | [];
43
46
  };
44
47
  export declare class CustomerContact extends AbstractEntity<CustomerContactType> {
45
48
  #private;
@@ -53,7 +56,8 @@ export declare class CustomerContact extends AbstractEntity<CustomerContactType>
53
56
  get type(): string;
54
57
  get role(): string;
55
58
  get isActive(): boolean;
56
- get xcpInvitation(): CustomerContactXcpInvitationType | undefined;
59
+ get xcpInvitation(): CustomerContactXcpInvitation | undefined;
57
60
  get organizationUnitId(): number | undefined;
61
+ get organizationUnits(): CustomerContactOrganizationUnit[] | [];
58
62
  toJSON(): CustomerContactType;
59
63
  }
@@ -10,11 +10,12 @@ 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 _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation, _CustomerContact_organizationUnitId;
13
+ var _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation, _CustomerContact_organizationUnitId, _CustomerContact_organizationUnits;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CustomerContact = exports.CustomerContactFields = exports.CustomerContactTypeEnum = exports.CustomerContactRoleEnum = void 0;
16
16
  const abstractEntity_1 = require("../../../../abstractEntity");
17
17
  const customerContactXcpInvitation_1 = require("./customerContactXcpInvitation");
18
+ const customerContactOrganizationUnit_1 = require("./customerContactOrganizationUnit");
18
19
  var CustomerContactRoleEnum;
19
20
  (function (CustomerContactRoleEnum) {
20
21
  CustomerContactRoleEnum["PRIMARY"] = "primary";
@@ -43,6 +44,7 @@ var CustomerContactFields;
43
44
  CustomerContactFields["COLUMN_IS_ACTIVE"] = "isActive";
44
45
  CustomerContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
45
46
  CustomerContactFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
47
+ CustomerContactFields["COLUMN_ORGANIZATION_UNITS"] = "organizationUnits";
46
48
  })(CustomerContactFields = exports.CustomerContactFields || (exports.CustomerContactFields = {}));
47
49
  class CustomerContact extends abstractEntity_1.AbstractEntity {
48
50
  constructor(getCustomerContactDataInput) {
@@ -58,6 +60,7 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
58
60
  _CustomerContact_isActive.set(this, void 0);
59
61
  _CustomerContact_xcpInvitation.set(this, void 0);
60
62
  _CustomerContact_organizationUnitId.set(this, void 0);
63
+ _CustomerContact_organizationUnits.set(this, void 0);
61
64
  __classPrivateFieldSet(this, _CustomerContact_reference, getCustomerContactDataInput[CustomerContactFields.COLUMN_REFERENCE], "f");
62
65
  __classPrivateFieldSet(this, _CustomerContact_firstName, getCustomerContactDataInput[CustomerContactFields.COLUMN_FIRST_NAME], "f");
63
66
  __classPrivateFieldSet(this, _CustomerContact_lastName, getCustomerContactDataInput[CustomerContactFields.COLUMN_LAST_NAME], "f");
@@ -71,6 +74,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
71
74
  ? new customerContactXcpInvitation_1.CustomerContactXcpInvitation(getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION])
72
75
  : undefined, "f");
73
76
  __classPrivateFieldSet(this, _CustomerContact_organizationUnitId, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
77
+ __classPrivateFieldSet(this, _CustomerContact_organizationUnits, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNITS].map((organizationUnit) => {
78
+ return new customerContactOrganizationUnit_1.CustomerContactOrganizationUnit(organizationUnit);
79
+ }), "f");
74
80
  }
75
81
  get reference() {
76
82
  return __classPrivateFieldGet(this, _CustomerContact_reference, "f");
@@ -105,6 +111,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
105
111
  get organizationUnitId() {
106
112
  return __classPrivateFieldGet(this, _CustomerContact_organizationUnitId, "f");
107
113
  }
114
+ get organizationUnits() {
115
+ return __classPrivateFieldGet(this, _CustomerContact_organizationUnits, "f");
116
+ }
108
117
  toJSON() {
109
118
  return {
110
119
  [CustomerContactFields.COLUMN_REFERENCE]: this.reference,
@@ -119,9 +128,12 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
119
128
  [CustomerContactFields.COLUMN_XCP_INVITATION]: this.xcpInvitation,
120
129
  [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]: this
121
130
  .organizationUnitId,
131
+ [CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: this.organizationUnits.map((organizationUnit) => {
132
+ return organizationUnit.toJSON();
133
+ }),
122
134
  };
123
135
  }
124
136
  }
125
137
  exports.CustomerContact = CustomerContact;
126
- _CustomerContact_reference = new WeakMap(), _CustomerContact_firstName = new WeakMap(), _CustomerContact_lastName = new WeakMap(), _CustomerContact_email = new WeakMap(), _CustomerContact_phone = new WeakMap(), _CustomerContact_username = new WeakMap(), _CustomerContact_type = new WeakMap(), _CustomerContact_role = new WeakMap(), _CustomerContact_isActive = new WeakMap(), _CustomerContact_xcpInvitation = new WeakMap(), _CustomerContact_organizationUnitId = new WeakMap();
138
+ _CustomerContact_reference = new WeakMap(), _CustomerContact_firstName = new WeakMap(), _CustomerContact_lastName = new WeakMap(), _CustomerContact_email = new WeakMap(), _CustomerContact_phone = new WeakMap(), _CustomerContact_username = new WeakMap(), _CustomerContact_type = new WeakMap(), _CustomerContact_role = new WeakMap(), _CustomerContact_isActive = new WeakMap(), _CustomerContact_xcpInvitation = new WeakMap(), _CustomerContact_organizationUnitId = new WeakMap(), _CustomerContact_organizationUnits = new WeakMap();
127
139
  //# sourceMappingURL=customerContact.js.map
@@ -0,0 +1,16 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum CustomerContactOrganizationUnitFields {
3
+ COLUMN_ID = "id",
4
+ COLUMN_NAME = "name"
5
+ }
6
+ export declare type CustomerContactOrganizationUnitType = {
7
+ [CustomerContactOrganizationUnitFields.COLUMN_ID]: number;
8
+ [CustomerContactOrganizationUnitFields.COLUMN_NAME]: string;
9
+ };
10
+ export declare class CustomerContactOrganizationUnit extends AbstractEntity<CustomerContactOrganizationUnitType> {
11
+ #private;
12
+ constructor(getCustomerContactOrganizationUnitDataInput: CustomerContactOrganizationUnitType);
13
+ get id(): number;
14
+ get name(): string;
15
+ toJSON(): CustomerContactOrganizationUnitType;
16
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _CustomerContactOrganizationUnit_id, _CustomerContactOrganizationUnit_name;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CustomerContactOrganizationUnit = exports.CustomerContactOrganizationUnitFields = void 0;
16
+ const abstractEntity_1 = require("../../../../abstractEntity");
17
+ var CustomerContactOrganizationUnitFields;
18
+ (function (CustomerContactOrganizationUnitFields) {
19
+ CustomerContactOrganizationUnitFields["COLUMN_ID"] = "id";
20
+ CustomerContactOrganizationUnitFields["COLUMN_NAME"] = "name";
21
+ })(CustomerContactOrganizationUnitFields = exports.CustomerContactOrganizationUnitFields || (exports.CustomerContactOrganizationUnitFields = {}));
22
+ class CustomerContactOrganizationUnit extends abstractEntity_1.AbstractEntity {
23
+ constructor(getCustomerContactOrganizationUnitDataInput) {
24
+ super(getCustomerContactOrganizationUnitDataInput);
25
+ _CustomerContactOrganizationUnit_id.set(this, void 0);
26
+ _CustomerContactOrganizationUnit_name.set(this, void 0);
27
+ __classPrivateFieldSet(this, _CustomerContactOrganizationUnit_id, getCustomerContactOrganizationUnitDataInput[CustomerContactOrganizationUnitFields.COLUMN_ID], "f");
28
+ __classPrivateFieldSet(this, _CustomerContactOrganizationUnit_name, getCustomerContactOrganizationUnitDataInput[CustomerContactOrganizationUnitFields.COLUMN_NAME], "f");
29
+ }
30
+ get id() {
31
+ return __classPrivateFieldGet(this, _CustomerContactOrganizationUnit_id, "f");
32
+ }
33
+ get name() {
34
+ return __classPrivateFieldGet(this, _CustomerContactOrganizationUnit_name, "f");
35
+ }
36
+ toJSON() {
37
+ return {
38
+ [CustomerContactOrganizationUnitFields.COLUMN_ID]: this.id,
39
+ [CustomerContactOrganizationUnitFields.COLUMN_NAME]: this.name,
40
+ };
41
+ }
42
+ }
43
+ exports.CustomerContactOrganizationUnit = CustomerContactOrganizationUnit;
44
+ _CustomerContactOrganizationUnit_id = new WeakMap(), _CustomerContactOrganizationUnit_name = new WeakMap();
45
+ //# sourceMappingURL=customerContactOrganizationUnit.js.map
@@ -220,17 +220,6 @@ export declare enum SaveBillingCommentsInputFields {
220
220
  COLUMN_COMMENT_ONE = "comment1",
221
221
  COLUMN_COMMENT_TWO = "comment2"
222
222
  }
223
- export declare enum SaveSpecialBidInputFields {
224
- COLUMN_ARW_RATE_VALUE = "arwRateValue",
225
- COLUMN_MSP_RATE_VALUE = "mspRateValue"
226
- }
227
- export declare enum RewriteRateHistoryInputFields {
228
- COLUMN_COMPANY_TYPE = "companyType",
229
- COLUMN_DATE_END = "dateEnd",
230
- COLUMN_DATE_START = "dateStart",
231
- COLUMN_RATE_TYPE = "rateType",
232
- COLUMN_RATE_VALUE = "rateValue"
233
- }
234
223
  export declare type SaveBillingCommentsInputType = {
235
224
  [SaveBillingCommentsInputFields.COLUMN_COMMENT_ONE]?: string | null;
236
225
  [SaveBillingCommentsInputFields.COLUMN_COMMENT_TWO]?: string | null;
@@ -251,17 +240,6 @@ export declare type GetLicensePricingRate = {
251
240
  companyType: CompanyTypeEnum;
252
241
  activeTime: SpecialPriceRateActive;
253
242
  };
254
- export declare type SaveSpecialBidInputType = {
255
- [SaveSpecialBidInputFields.COLUMN_ARW_RATE_VALUE]: number;
256
- [SaveSpecialBidInputFields.COLUMN_MSP_RATE_VALUE]?: number;
257
- };
258
- export declare type RewriteRateHistoryInputType = {
259
- [RewriteRateHistoryInputFields.COLUMN_COMPANY_TYPE]: CompanyTypeEnum;
260
- [RewriteRateHistoryInputFields.COLUMN_DATE_END]?: string;
261
- [RewriteRateHistoryInputFields.COLUMN_DATE_START]: string;
262
- [RewriteRateHistoryInputFields.COLUMN_RATE_TYPE]: string;
263
- [RewriteRateHistoryInputFields.COLUMN_RATE_VALUE]: number;
264
- };
265
243
  export declare class LicensesClient extends AbstractRestfulClient {
266
244
  /**
267
245
  * The base path of the API
@@ -315,14 +293,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
315
293
  * The path to save the license order eavs
316
294
  */
317
295
  private SAVE_BILLING_COMMENTS_PATH;
318
- /**
319
- * The path to save the license special bid
320
- */
321
- private SAVE_SPECIAL_BID_PATH;
322
- /**
323
- * The path to rewrite the license rate history
324
- */
325
- private REWRITE_RATE_HISTORY_PATH;
326
296
  /**
327
297
  * The path of license all available skus
328
298
  */
@@ -395,8 +365,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
395
365
  setPricingRate(licenseReference: string, payload: LicensePricingRate, parameters?: Parameters): Promise<void>;
396
366
  scheduleTasks(licenseReference: string, payload: ScheduleTasks, parameters?: Parameters): Promise<GetResult<ScheduleTasksResult>>;
397
367
  getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
398
- saveSpecialdBid(licenseReference: string, payload: SaveSpecialBidInputType, parameters?: Parameters): Promise<void>;
399
- rewriteRateHistory(licenseReference: string, payload: RewriteRateHistoryInputType, parameters?: Parameters): Promise<void>;
400
368
  private createFilters;
401
369
  private createKeywords;
402
370
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LicensesClient = exports.RewriteRateHistoryInputFields = exports.SaveSpecialBidInputFields = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
3
+ exports.LicensesClient = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
4
4
  /**
5
5
  * Class LicensesClient
6
6
  */
@@ -122,19 +122,6 @@ var SaveBillingCommentsInputFields;
122
122
  SaveBillingCommentsInputFields["COLUMN_COMMENT_ONE"] = "comment1";
123
123
  SaveBillingCommentsInputFields["COLUMN_COMMENT_TWO"] = "comment2";
124
124
  })(SaveBillingCommentsInputFields = exports.SaveBillingCommentsInputFields || (exports.SaveBillingCommentsInputFields = {}));
125
- var SaveSpecialBidInputFields;
126
- (function (SaveSpecialBidInputFields) {
127
- SaveSpecialBidInputFields["COLUMN_ARW_RATE_VALUE"] = "arwRateValue";
128
- SaveSpecialBidInputFields["COLUMN_MSP_RATE_VALUE"] = "mspRateValue";
129
- })(SaveSpecialBidInputFields = exports.SaveSpecialBidInputFields || (exports.SaveSpecialBidInputFields = {}));
130
- var RewriteRateHistoryInputFields;
131
- (function (RewriteRateHistoryInputFields) {
132
- RewriteRateHistoryInputFields["COLUMN_COMPANY_TYPE"] = "companyType";
133
- RewriteRateHistoryInputFields["COLUMN_DATE_END"] = "dateEnd";
134
- RewriteRateHistoryInputFields["COLUMN_DATE_START"] = "dateStart";
135
- RewriteRateHistoryInputFields["COLUMN_RATE_TYPE"] = "rateType";
136
- RewriteRateHistoryInputFields["COLUMN_RATE_VALUE"] = "rateValue";
137
- })(RewriteRateHistoryInputFields = exports.RewriteRateHistoryInputFields || (exports.RewriteRateHistoryInputFields = {}));
138
125
  class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
139
126
  constructor() {
140
127
  super(...arguments);
@@ -190,14 +177,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
190
177
  * The path to save the license order eavs
191
178
  */
192
179
  this.SAVE_BILLING_COMMENTS_PATH = '/billingComments';
193
- /**
194
- * The path to save the license special bid
195
- */
196
- this.SAVE_SPECIAL_BID_PATH = '/special-bid';
197
- /**
198
- * The path to rewrite the license rate history
199
- */
200
- this.REWRITE_RATE_HISTORY_PATH = '/rewrite-rate-history';
201
180
  /**
202
181
  * The path of license all available skus
203
182
  */
@@ -435,14 +414,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
435
414
  this.path = `/${licenseReference}/predictions/daily`;
436
415
  return new getResult_1.GetResult(consumption_1.ConsumptionDailyPrediction, await this.get(parameters));
437
416
  }
438
- async saveSpecialdBid(licenseReference, payload, parameters = {}) {
439
- this.path = `/${licenseReference}${this.SAVE_SPECIAL_BID_PATH}`;
440
- await this.post(payload, parameters);
441
- }
442
- async rewriteRateHistory(licenseReference, payload, parameters = {}) {
443
- this.path = `/${licenseReference}${this.REWRITE_RATE_HISTORY_PATH}`;
444
- await this.post(payload, parameters);
445
- }
446
417
  createFilters(parameters, keyParent) {
447
418
  let appropriateParameters;
448
419
  if (typeof parameters === 'object') {
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.102.0-rc.bdj.1",
7
+ "version": "3.102.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",