@arrowsphere/api-client 3.83.0-rc.bdj.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,6 +3,11 @@
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] - 2024-01-04
7
+
8
+ ### Added
9
+ - [license] add patch license
10
+
6
11
  ## [3.82.0] - 2023-12-29
7
12
 
8
13
  ### Added
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);
@@ -10,7 +10,6 @@ import { AssetsData, AssetsFindResult } from './assetsFindResult';
10
10
  import { ExtraDataResult, ExtraDataType } from './extraDataGetResult';
11
11
  import { PriceBandData, PriceBandGetResult } from './priceBandGetResult';
12
12
  import { RatesGetData, RatesGetResult } from './ratesGetResult';
13
- import { RelationGetData, RelationGetResult } from './relationGetResult';
14
13
  export declare enum LicenseGetFields {
15
14
  COLUMN_LICENSE_ID = "license_id",
16
15
  COLUMN_PARENT_LICENSE_ID = "parent_license_id",
@@ -52,7 +51,7 @@ export declare enum LicenseGetFields {
52
51
  COLUMN_PRICE_BAND = "priceBand",
53
52
  COLUMN_VENDOR_CODE = "vendorCode",
54
53
  COLUMN_RATES = "rates",
55
- COLUMN_RELATION = "relation"
54
+ COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
56
55
  }
57
56
  export declare type LicenseGetData = {
58
57
  [LicenseGetFields.COLUMN_LICENSE_ID]: string;
@@ -95,7 +94,7 @@ export declare type LicenseGetData = {
95
94
  [LicenseGetFields.COLUMN_PRICE_BAND]?: PriceBandData;
96
95
  [LicenseGetFields.COLUMN_VENDOR_CODE]?: string;
97
96
  [LicenseGetFields.COLUMN_RATES]?: RatesGetData;
98
- [LicenseGetFields.COLUMN_RELATION]?: RelationGetData[];
97
+ [LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
99
98
  };
100
99
  export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
101
100
  #private;
@@ -140,6 +139,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
140
139
  get priceBand(): PriceBandGetResult | undefined;
141
140
  get vendorCode(): string | undefined;
142
141
  get rates(): RatesGetResult | undefined;
143
- get relation(): RelationGetResult[] | undefined;
142
+ get organizationUnitId(): number | undefined;
144
143
  toJSON(): LicenseGetData;
145
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, _LicenseGetResult_relation;
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");
@@ -25,7 +25,6 @@ const assetsFindResult_1 = require("./assetsFindResult");
25
25
  const extraDataGetResult_1 = require("./extraDataGetResult");
26
26
  const priceBandGetResult_1 = require("./priceBandGetResult");
27
27
  const ratesGetResult_1 = require("./ratesGetResult");
28
- const relationGetResult_1 = require("./relationGetResult");
29
28
  var LicenseGetFields;
30
29
  (function (LicenseGetFields) {
31
30
  LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
@@ -68,11 +67,11 @@ var LicenseGetFields;
68
67
  LicenseGetFields["COLUMN_PRICE_BAND"] = "priceBand";
69
68
  LicenseGetFields["COLUMN_VENDOR_CODE"] = "vendorCode";
70
69
  LicenseGetFields["COLUMN_RATES"] = "rates";
71
- LicenseGetFields["COLUMN_RELATION"] = "relation";
70
+ LicenseGetFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
72
71
  })(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
73
72
  class LicenseGetResult extends abstractEntity_1.AbstractEntity {
74
73
  constructor(licenseGetDataInput) {
75
- var _a, _b, _c;
74
+ var _a, _b;
76
75
  super(licenseGetDataInput);
77
76
  _LicenseGetResult_license_id.set(this, void 0);
78
77
  _LicenseGetResult_parent_license_id.set(this, void 0);
@@ -114,7 +113,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
114
113
  _LicenseGetResult_priceBand.set(this, void 0);
115
114
  _LicenseGetResult_vendorCode.set(this, void 0);
116
115
  _LicenseGetResult_rates.set(this, void 0);
117
- _LicenseGetResult_relation.set(this, void 0);
116
+ _LicenseGetResult_organizationUnitId.set(this, void 0);
118
117
  __classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
119
118
  __classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
120
119
  __classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
@@ -167,9 +166,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
167
166
  __classPrivateFieldSet(this, _LicenseGetResult_rates, licenseGetDataInput[LicenseGetFields.COLUMN_RATES]
168
167
  ? new ratesGetResult_1.RatesGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_RATES])
169
168
  : undefined, "f");
170
- __classPrivateFieldSet(this, _LicenseGetResult_relation, licenseGetDataInput[LicenseGetFields.COLUMN_RELATION]
171
- ? (_c = licenseGetDataInput[LicenseGetFields.COLUMN_RELATION]) === null || _c === void 0 ? void 0 : _c.map((v) => new relationGetResult_1.RelationGetResult(v))
172
- : undefined, "f");
169
+ __classPrivateFieldSet(this, _LicenseGetResult_organizationUnitId, licenseGetDataInput[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
173
170
  }
174
171
  get id() {
175
172
  return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
@@ -291,11 +288,11 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
291
288
  get rates() {
292
289
  return __classPrivateFieldGet(this, _LicenseGetResult_rates, "f");
293
290
  }
294
- get relation() {
295
- return __classPrivateFieldGet(this, _LicenseGetResult_relation, "f");
291
+ get organizationUnitId() {
292
+ return __classPrivateFieldGet(this, _LicenseGetResult_organizationUnitId, "f");
296
293
  }
297
294
  toJSON() {
298
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
295
+ var _a, _b, _c, _d, _e, _f, _g, _h;
299
296
  return {
300
297
  [LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
301
298
  [LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
@@ -338,10 +335,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
338
335
  [LicenseGetFields.COLUMN_PRICE_BAND]: (_g = this.priceBand) === null || _g === void 0 ? void 0 : _g.toJSON(),
339
336
  [LicenseGetFields.COLUMN_VENDOR_CODE]: this.vendorCode,
340
337
  [LicenseGetFields.COLUMN_RATES]: (_h = this.rates) === null || _h === void 0 ? void 0 : _h.toJSON(),
341
- [LicenseGetFields.COLUMN_RELATION]: (_j = this.relation) === null || _j === void 0 ? void 0 : _j.map((v) => v.toJSON()),
338
+ [LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]: this.organizationUnitId,
342
339
  };
343
340
  }
344
341
  }
345
342
  exports.LicenseGetResult = LicenseGetResult;
346
- _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_relation = 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();
347
344
  //# sourceMappingURL=licenseGetResult.js.map
@@ -9,7 +9,6 @@ export * from './entities/getLicense/actionsGetResult';
9
9
  export * from './entities/getLicense/buySellFindResult';
10
10
  export * from './entities/getLicense/extraDataGetResult';
11
11
  export * from './entities/getLicense/licenseGetResult';
12
- export * from './entities/getLicense/relationGetResult';
13
12
  export * from './entities/getLicense/ratesGetResult';
14
13
  export * from './entities/getLicense/licensePriceGetResult';
15
14
  export * from './entities/getLicense/orderGetResult';
@@ -25,7 +25,6 @@ __exportStar(require("./entities/getLicense/actionsGetResult"), exports);
25
25
  __exportStar(require("./entities/getLicense/buySellFindResult"), exports);
26
26
  __exportStar(require("./entities/getLicense/extraDataGetResult"), exports);
27
27
  __exportStar(require("./entities/getLicense/licenseGetResult"), exports);
28
- __exportStar(require("./entities/getLicense/relationGetResult"), exports);
29
28
  __exportStar(require("./entities/getLicense/ratesGetResult"), exports);
30
29
  __exportStar(require("./entities/getLicense/licensePriceGetResult"), exports);
31
30
  __exportStar(require("./entities/getLicense/orderGetResult"), exports);
@@ -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);
@@ -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.bdj.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",
@@ -1,16 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- export declare enum RelationGetDataFields {
3
- COLUMN_PARTNER_REF = "partnerRef",
4
- COLUMN_TYPE = "type"
5
- }
6
- export declare type RelationGetData = {
7
- [RelationGetDataFields.COLUMN_PARTNER_REF]: string;
8
- [RelationGetDataFields.COLUMN_TYPE]: string;
9
- };
10
- export declare class RelationGetResult extends AbstractEntity<RelationGetData> {
11
- #private;
12
- constructor(data: RelationGetData);
13
- get rate(): string;
14
- get type(): string;
15
- toJSON(): RelationGetData;
16
- }
@@ -1,45 +0,0 @@
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 _RelationGetResult_rate, _RelationGetResult_type;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.RelationGetResult = exports.RelationGetDataFields = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- var RelationGetDataFields;
18
- (function (RelationGetDataFields) {
19
- RelationGetDataFields["COLUMN_PARTNER_REF"] = "partnerRef";
20
- RelationGetDataFields["COLUMN_TYPE"] = "type";
21
- })(RelationGetDataFields = exports.RelationGetDataFields || (exports.RelationGetDataFields = {}));
22
- class RelationGetResult extends abstractEntity_1.AbstractEntity {
23
- constructor(data) {
24
- super(data);
25
- _RelationGetResult_rate.set(this, void 0);
26
- _RelationGetResult_type.set(this, void 0);
27
- __classPrivateFieldSet(this, _RelationGetResult_rate, data[RelationGetDataFields.COLUMN_PARTNER_REF], "f");
28
- __classPrivateFieldSet(this, _RelationGetResult_type, data[RelationGetDataFields.COLUMN_TYPE], "f");
29
- }
30
- get rate() {
31
- return __classPrivateFieldGet(this, _RelationGetResult_rate, "f");
32
- }
33
- get type() {
34
- return __classPrivateFieldGet(this, _RelationGetResult_type, "f");
35
- }
36
- toJSON() {
37
- return {
38
- [RelationGetDataFields.COLUMN_PARTNER_REF]: this.rate,
39
- [RelationGetDataFields.COLUMN_TYPE]: this.type,
40
- };
41
- }
42
- }
43
- exports.RelationGetResult = RelationGetResult;
44
- _RelationGetResult_rate = new WeakMap(), _RelationGetResult_type = new WeakMap();
45
- //# sourceMappingURL=relationGetResult.js.map