@arrowsphere/api-client 3.83.0-rc.fdi.1 → 3.83.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
@@ -3,10 +3,10 @@
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
5
 
6
- ## [3.83.0] - 2023-12-28
6
+ ## [3.83.0] - 2024-01-04
7
7
 
8
8
  ### Added
9
- - add organization unit endpoint for updating in mass
9
+ - [license] add patch license
10
10
 
11
11
  ## [3.82.0] - 2023-12-29
12
12
 
package/build/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './exception/';
11
11
  export * from './general/';
12
12
  export * from './getResult';
13
13
  export * from './graphqlApi';
14
+ export * from './partialResponse';
14
15
  export * from './pagination';
15
16
  export * from './licenses/';
16
17
  export * from './notifications/';
package/build/index.js CHANGED
@@ -40,6 +40,7 @@ __exportStar(require("./exception/"), exports);
40
40
  __exportStar(require("./general/"), exports);
41
41
  __exportStar(require("./getResult"), exports);
42
42
  __exportStar(require("./graphqlApi"), exports);
43
+ __exportStar(require("./partialResponse"), exports);
43
44
  __exportStar(require("./pagination"), exports);
44
45
  __exportStar(require("./licenses/"), exports);
45
46
  __exportStar(require("./notifications/"), exports);
@@ -50,7 +50,8 @@ export declare enum LicenseGetFields {
50
50
  COLUMN_EXTRA_DATA = "extraData",
51
51
  COLUMN_PRICE_BAND = "priceBand",
52
52
  COLUMN_VENDOR_CODE = "vendorCode",
53
- COLUMN_RATES = "rates"
53
+ COLUMN_RATES = "rates",
54
+ COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
54
55
  }
55
56
  export declare type LicenseGetData = {
56
57
  [LicenseGetFields.COLUMN_LICENSE_ID]: string;
@@ -93,6 +94,7 @@ export declare type LicenseGetData = {
93
94
  [LicenseGetFields.COLUMN_PRICE_BAND]?: PriceBandData;
94
95
  [LicenseGetFields.COLUMN_VENDOR_CODE]?: string;
95
96
  [LicenseGetFields.COLUMN_RATES]?: RatesGetData;
97
+ [LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
96
98
  };
97
99
  export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
98
100
  #private;
@@ -137,5 +139,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
137
139
  get priceBand(): PriceBandGetResult | undefined;
138
140
  get vendorCode(): string | undefined;
139
141
  get rates(): RatesGetResult | undefined;
142
+ get organizationUnitId(): number | undefined;
140
143
  toJSON(): LicenseGetData;
141
144
  }
@@ -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 _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_rates;
13
+ var _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LicenseGetResult = exports.LicenseGetFields = void 0;
16
16
  const actionsGetResult_1 = require("./actionsGetResult");
@@ -67,6 +67,7 @@ var LicenseGetFields;
67
67
  LicenseGetFields["COLUMN_PRICE_BAND"] = "priceBand";
68
68
  LicenseGetFields["COLUMN_VENDOR_CODE"] = "vendorCode";
69
69
  LicenseGetFields["COLUMN_RATES"] = "rates";
70
+ LicenseGetFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
70
71
  })(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
71
72
  class LicenseGetResult extends abstractEntity_1.AbstractEntity {
72
73
  constructor(licenseGetDataInput) {
@@ -112,6 +113,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
112
113
  _LicenseGetResult_priceBand.set(this, void 0);
113
114
  _LicenseGetResult_vendorCode.set(this, void 0);
114
115
  _LicenseGetResult_rates.set(this, void 0);
116
+ _LicenseGetResult_organizationUnitId.set(this, void 0);
115
117
  __classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
116
118
  __classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
117
119
  __classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
@@ -164,6 +166,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
164
166
  __classPrivateFieldSet(this, _LicenseGetResult_rates, licenseGetDataInput[LicenseGetFields.COLUMN_RATES]
165
167
  ? new ratesGetResult_1.RatesGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_RATES])
166
168
  : undefined, "f");
169
+ __classPrivateFieldSet(this, _LicenseGetResult_organizationUnitId, licenseGetDataInput[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
167
170
  }
168
171
  get id() {
169
172
  return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
@@ -285,6 +288,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
285
288
  get rates() {
286
289
  return __classPrivateFieldGet(this, _LicenseGetResult_rates, "f");
287
290
  }
291
+ get organizationUnitId() {
292
+ return __classPrivateFieldGet(this, _LicenseGetResult_organizationUnitId, "f");
293
+ }
288
294
  toJSON() {
289
295
  var _a, _b, _c, _d, _e, _f, _g, _h;
290
296
  return {
@@ -329,9 +335,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
329
335
  [LicenseGetFields.COLUMN_PRICE_BAND]: (_g = this.priceBand) === null || _g === void 0 ? void 0 : _g.toJSON(),
330
336
  [LicenseGetFields.COLUMN_VENDOR_CODE]: this.vendorCode,
331
337
  [LicenseGetFields.COLUMN_RATES]: (_h = this.rates) === null || _h === void 0 ? void 0 : _h.toJSON(),
338
+ [LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]: this.organizationUnitId,
332
339
  };
333
340
  }
334
341
  }
335
342
  exports.LicenseGetResult = LicenseGetResult;
336
- _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_rates = new WeakMap();
343
+ _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap();
337
344
  //# sourceMappingURL=licenseGetResult.js.map
@@ -21,6 +21,7 @@ import { LicenseConversionSkuResult } from './entities/license/licenseConversion
21
21
  import { CredentialsResult } from './entities/license/credentialsResult';
22
22
  import { ScheduleTasksResult } from './entities/schedule/scheduleTasksResult';
23
23
  import { GetPricingRateResult, RateTypeEnum } from './entities/pricingRate/getPricingRateResult';
24
+ import { PartialResponse } from '../partialResponse';
24
25
  /**
25
26
  * Parameters passable to the request for refining search.
26
27
  */
@@ -186,6 +187,11 @@ export declare type LicenseFindRawPayload = {
186
187
  };
187
188
  [LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
188
189
  };
190
+ export declare type UpdateLicenseData = {
191
+ [LicenseGetFields.COLUMN_FRIENDLY_NAME]?: string;
192
+ [LicenseGetFields.COLUMN_SEATS]?: number;
193
+ [LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
194
+ } & ExtraInformationType;
189
195
  export declare type UpdateSeatsData = {
190
196
  [LicenseGetFields.COLUMN_SEATS]: number;
191
197
  } & ExtraInformationType;
@@ -321,6 +327,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
321
327
  updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
322
328
  updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
323
329
  getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
330
+ updateLicense(licenseReference: string, payload: UpdateLicenseData, parameters?: Parameters): Promise<void | PartialResponse>;
324
331
  updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
325
332
  suspendLicense(licenseReference: string, payload?: PutSuspend, parameters?: Parameters): Promise<void>;
326
333
  reactivateLicense(licenseReference: string, payload?: PutReactivate, parameters?: Parameters): Promise<void>;
@@ -16,6 +16,8 @@ const licenseConversionSkuResult_1 = require("./entities/license/licenseConversi
16
16
  const credentialsResult_1 = require("./entities/license/credentialsResult");
17
17
  const scheduleTasksResult_1 = require("./entities/schedule/scheduleTasksResult");
18
18
  const getPricingRateResult_1 = require("./entities/pricingRate/getPricingRateResult");
19
+ const partialResponse_1 = require("../partialResponse");
20
+ const http2_1 = require("http2");
19
21
  /**
20
22
  * Parameters passable to the request for refining search.
21
23
  */
@@ -283,6 +285,13 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
283
285
  this.path = `/${licenseReference}`;
284
286
  return new getResult_1.GetResult(getLicenseResult_1.GetLicenseResult, await this.get(parameters));
285
287
  }
288
+ async updateLicense(licenseReference, payload, parameters = {}) {
289
+ this.path = `/${licenseReference}`;
290
+ const response = await this.patch(payload, parameters);
291
+ if (response && response.status == http2_1.constants.HTTP_STATUS_PARTIAL_CONTENT) {
292
+ return new partialResponse_1.PartialResponse(response);
293
+ }
294
+ }
286
295
  updateSeats(licenseReference, putData, parameters = {}) {
287
296
  this.path = `/${licenseReference}${this.SEATS_PATH}`;
288
297
  return this.put(putData, parameters);
@@ -8,14 +8,6 @@ export declare enum OrganizationUnitPayloadFields {
8
8
  export declare type OrganizationUnitPayloadType = {
9
9
  [OrganizationUnitPayloadFields.COLUMN_NAME]: string;
10
10
  };
11
- export declare enum OrganizationUnitClientActionFields {
12
- ACTION_ATTACH = "attach",
13
- ACTION_DETACH = "detach"
14
- }
15
- export declare type OrganizationUnitClientActionType = {
16
- licenses: string[];
17
- users: string[];
18
- };
19
11
  export declare class OrganizationUnitClient extends AbstractRestfulClient {
20
12
  protected basePath: string;
21
13
  getList(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<OrganizationUnitList>>;
@@ -23,5 +15,4 @@ export declare class OrganizationUnitClient extends AbstractRestfulClient {
23
15
  getOne(organizationUnitRef: string, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
24
16
  update(organizationUnitRef: string, payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
25
17
  deleteOne(organizationUnitRef: string, parameters?: Parameters): Promise<void>;
26
- patchAll(action: OrganizationUnitClientActionFields, organizationUnitId: number, payload: OrganizationUnitClientActionType, parameters?: Parameters): Promise<void>;
27
18
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrganizationUnitClient = exports.OrganizationUnitClientActionFields = exports.OrganizationUnitPayloadFields = void 0;
3
+ exports.OrganizationUnitClient = exports.OrganizationUnitPayloadFields = void 0;
4
4
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const organizationUnit_1 = require("./entities/organizationUnit");
@@ -9,11 +9,6 @@ var OrganizationUnitPayloadFields;
9
9
  (function (OrganizationUnitPayloadFields) {
10
10
  OrganizationUnitPayloadFields["COLUMN_NAME"] = "name";
11
11
  })(OrganizationUnitPayloadFields = exports.OrganizationUnitPayloadFields || (exports.OrganizationUnitPayloadFields = {}));
12
- var OrganizationUnitClientActionFields;
13
- (function (OrganizationUnitClientActionFields) {
14
- OrganizationUnitClientActionFields["ACTION_ATTACH"] = "attach";
15
- OrganizationUnitClientActionFields["ACTION_DETACH"] = "detach";
16
- })(OrganizationUnitClientActionFields = exports.OrganizationUnitClientActionFields || (exports.OrganizationUnitClientActionFields = {}));
17
12
  class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClient {
18
13
  constructor() {
19
14
  super(...arguments);
@@ -39,11 +34,6 @@ class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClie
39
34
  this.path = `/${organizationUnitRef}`;
40
35
  return await this.delete(parameters);
41
36
  }
42
- async patchAll(action, organizationUnitId, payload, parameters = {}) {
43
- this.basePath = '/organizationUnit';
44
- this.path = `/${action}/${organizationUnitId}`;
45
- return await this.patch(payload, parameters);
46
- }
47
37
  }
48
38
  exports.OrganizationUnitClient = OrganizationUnitClient;
49
39
  //# sourceMappingURL=organizationUnitClient.js.map
@@ -0,0 +1,25 @@
1
+ import { AbstractEntity } from './abstractEntity';
2
+ /**
3
+ * Filter data values
4
+ */
5
+ export declare enum PartialResponseFields {
6
+ COLUMN_STATUS = "status",
7
+ COLUMN_ERROR = "error",
8
+ COLUMN_MESSAGES = "messages"
9
+ }
10
+ /**
11
+ * Filter data
12
+ */
13
+ export declare type PartialResponseData = {
14
+ [PartialResponseFields.COLUMN_STATUS]: number;
15
+ [PartialResponseFields.COLUMN_ERROR]: string;
16
+ [PartialResponseFields.COLUMN_MESSAGES]: string[];
17
+ };
18
+ export declare class PartialResponse extends AbstractEntity<PartialResponseData> {
19
+ #private;
20
+ constructor(data: PartialResponseData);
21
+ get status(): number;
22
+ get error(): string;
23
+ get messages(): string[];
24
+ toJSON(): PartialResponseData;
25
+ }
@@ -0,0 +1,55 @@
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 _PartialResponse_status, _PartialResponse_error, _PartialResponse_messages;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PartialResponse = exports.PartialResponseFields = void 0;
16
+ const abstractEntity_1 = require("./abstractEntity");
17
+ /**
18
+ * Filter data values
19
+ */
20
+ var PartialResponseFields;
21
+ (function (PartialResponseFields) {
22
+ PartialResponseFields["COLUMN_STATUS"] = "status";
23
+ PartialResponseFields["COLUMN_ERROR"] = "error";
24
+ PartialResponseFields["COLUMN_MESSAGES"] = "messages";
25
+ })(PartialResponseFields = exports.PartialResponseFields || (exports.PartialResponseFields = {}));
26
+ class PartialResponse extends abstractEntity_1.AbstractEntity {
27
+ constructor(data) {
28
+ super(data);
29
+ _PartialResponse_status.set(this, void 0);
30
+ _PartialResponse_error.set(this, void 0);
31
+ _PartialResponse_messages.set(this, void 0);
32
+ __classPrivateFieldSet(this, _PartialResponse_status, data['status'], "f");
33
+ __classPrivateFieldSet(this, _PartialResponse_error, data['error'], "f");
34
+ __classPrivateFieldSet(this, _PartialResponse_messages, data['messages'], "f");
35
+ }
36
+ get status() {
37
+ return __classPrivateFieldGet(this, _PartialResponse_status, "f");
38
+ }
39
+ get error() {
40
+ return __classPrivateFieldGet(this, _PartialResponse_error, "f");
41
+ }
42
+ get messages() {
43
+ return __classPrivateFieldGet(this, _PartialResponse_messages, "f");
44
+ }
45
+ toJSON() {
46
+ return {
47
+ [PartialResponseFields.COLUMN_STATUS]: this.status,
48
+ [PartialResponseFields.COLUMN_ERROR]: this.error,
49
+ [PartialResponseFields.COLUMN_MESSAGES]: this.messages,
50
+ };
51
+ }
52
+ }
53
+ exports.PartialResponse = PartialResponse;
54
+ _PartialResponse_status = new WeakMap(), _PartialResponse_error = new WeakMap(), _PartialResponse_messages = new WeakMap();
55
+ //# sourceMappingURL=partialResponse.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.83.0-rc.fdi.1",
7
+ "version": "3.83.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",