@arrowsphere/api-client 3.111.0-rc.fdi.2 → 3.111.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.111.0] - 2024.04.18
6
+ ## [3.111.0] - 2024.04.24
7
7
 
8
8
  ### Added
9
- - [License find] Add keywords endCustomerOrganizationUnit to find licenses
9
+ - [Get License] Add fields price.total.init, price.unit.init
10
10
 
11
11
  ## [3.110.0] - 2024.04.18
12
12
 
@@ -1,5 +1,5 @@
1
1
  import { AbstractEntity } from '../../../abstractEntity';
2
- import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
2
+ import { FiltersParameters, SortParameters } from '../../licensesClient';
3
3
  export declare enum EndCustomerOrganizationUnitFindResultFields {
4
4
  COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
5
5
  COLUMN_NAME = "name",
@@ -10,11 +10,6 @@ export declare type EndCustomerOrganizationUnitFindResultType = {
10
10
  [EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME]: string;
11
11
  [EndCustomerOrganizationUnitFindResultFields.COLUMN_LAST_UPDATE]: string;
12
12
  };
13
- export declare type EndCustomerOrganisationUnitDataKeywords = {
14
- [EndCustomerOrganizationUnitFindResultFields.COLUMN_ORGANIZATION_UNIT_REF]?: DataKeywords;
15
- [EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME]?: DataKeywords;
16
- [EndCustomerOrganizationUnitFindResultFields.COLUMN_LAST_UPDATE]?: DataKeywords;
17
- };
18
13
  export declare type EndCustomerOrganizationUnitSortParameters = {
19
14
  [EndCustomerOrganizationUnitFindResultFields.COLUMN_ORGANIZATION_UNIT_REF]?: SortParameters;
20
15
  [EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME]?: SortParameters;
@@ -2,12 +2,14 @@ import { AbstractEntity } from '../../../abstractEntity';
2
2
  export declare enum BuySellFields {
3
3
  COLUMN_BUY = "buy",
4
4
  COLUMN_SELL = "sell",
5
- COLUMN_LIST = "list"
5
+ COLUMN_LIST = "list",
6
+ COLUMN_INIT = "init"
6
7
  }
7
8
  export declare type BuySellData = {
8
9
  [BuySellFields.COLUMN_BUY]?: number;
9
10
  [BuySellFields.COLUMN_SELL]?: number;
10
11
  [BuySellFields.COLUMN_LIST]?: number;
12
+ [BuySellFields.COLUMN_INIT]?: number;
11
13
  };
12
14
  export declare class BuySellFindResult extends AbstractEntity<BuySellData> {
13
15
  #private;
@@ -15,5 +17,6 @@ export declare class BuySellFindResult extends AbstractEntity<BuySellData> {
15
17
  get buy(): number | undefined;
16
18
  get sell(): number | undefined;
17
19
  get list(): number | undefined;
20
+ get init(): number | undefined;
18
21
  toJSON(): BuySellData;
19
22
  }
@@ -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 _BuySellFindResult_buy, _BuySellFindResult_sell, _BuySellFindResult_list;
13
+ var _BuySellFindResult_buy, _BuySellFindResult_sell, _BuySellFindResult_list, _BuySellFindResult_init;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.BuySellFindResult = exports.BuySellFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
@@ -19,6 +19,7 @@ var BuySellFields;
19
19
  BuySellFields["COLUMN_BUY"] = "buy";
20
20
  BuySellFields["COLUMN_SELL"] = "sell";
21
21
  BuySellFields["COLUMN_LIST"] = "list";
22
+ BuySellFields["COLUMN_INIT"] = "init";
22
23
  })(BuySellFields = exports.BuySellFields || (exports.BuySellFields = {}));
23
24
  class BuySellFindResult extends abstractEntity_1.AbstractEntity {
24
25
  constructor(data) {
@@ -26,9 +27,11 @@ class BuySellFindResult extends abstractEntity_1.AbstractEntity {
26
27
  _BuySellFindResult_buy.set(this, void 0);
27
28
  _BuySellFindResult_sell.set(this, void 0);
28
29
  _BuySellFindResult_list.set(this, void 0);
30
+ _BuySellFindResult_init.set(this, void 0);
29
31
  __classPrivateFieldSet(this, _BuySellFindResult_buy, data[BuySellFields.COLUMN_BUY], "f");
30
32
  __classPrivateFieldSet(this, _BuySellFindResult_sell, data[BuySellFields.COLUMN_SELL], "f");
31
33
  __classPrivateFieldSet(this, _BuySellFindResult_list, data[BuySellFields.COLUMN_LIST], "f");
34
+ __classPrivateFieldSet(this, _BuySellFindResult_init, data[BuySellFields.COLUMN_INIT], "f");
32
35
  }
33
36
  get buy() {
34
37
  return __classPrivateFieldGet(this, _BuySellFindResult_buy, "f");
@@ -39,14 +42,18 @@ class BuySellFindResult extends abstractEntity_1.AbstractEntity {
39
42
  get list() {
40
43
  return __classPrivateFieldGet(this, _BuySellFindResult_list, "f");
41
44
  }
45
+ get init() {
46
+ return __classPrivateFieldGet(this, _BuySellFindResult_init, "f");
47
+ }
42
48
  toJSON() {
43
49
  return {
44
50
  [BuySellFields.COLUMN_BUY]: this.buy,
45
51
  [BuySellFields.COLUMN_SELL]: this.sell,
46
52
  [BuySellFields.COLUMN_LIST]: this.list,
53
+ [BuySellFields.COLUMN_INIT]: this.init,
47
54
  };
48
55
  }
49
56
  }
50
57
  exports.BuySellFindResult = BuySellFindResult;
51
- _BuySellFindResult_buy = new WeakMap(), _BuySellFindResult_sell = new WeakMap(), _BuySellFindResult_list = new WeakMap();
58
+ _BuySellFindResult_buy = new WeakMap(), _BuySellFindResult_sell = new WeakMap(), _BuySellFindResult_list = new WeakMap(), _BuySellFindResult_init = new WeakMap();
52
59
  //# sourceMappingURL=buySellFindResult.js.map
@@ -23,7 +23,7 @@ import { ScheduleTasksResult } from './entities/schedule/scheduleTasksResult';
23
23
  import { CompanyTypeEnum, RateTypeEnum } from './entities/pricingRate/getPricingRateResult';
24
24
  import { PartialResponse } from '../partialResponse';
25
25
  import { BulkBodyArgument, SpecialPriceRateActive } from './types/bulkArguments';
26
- import { EndCustomerOrganisationUnitDataKeywords, EndCustomerOrganizationUnitFiltersParameters, EndCustomerOrganizationUnitSortParameters } from './entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult';
26
+ import { EndCustomerOrganizationUnitFiltersParameters, EndCustomerOrganizationUnitSortParameters } from './entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult';
27
27
  import { ConsumptionDailyPrediction } from '../consumption';
28
28
  import { GetSchedulesTasksResult } from './entities/schedule/getSchedulesTasksResult';
29
29
  import { GetScheduledTasksResult } from './entities/schedule/getScheduledTasksResult';
@@ -145,7 +145,6 @@ export declare type DataKeywords = {
145
145
  export declare type LicenseKeywordsParameters = {
146
146
  license?: LicenceFindDataKeywords;
147
147
  offer?: OfferFindResultDataKeywords;
148
- endCustomerOrganizationUnit?: EndCustomerOrganisationUnitDataKeywords;
149
148
  };
150
149
  export declare type LicenseRawKeywordsParametersLicence = {
151
150
  [field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords | SecurityFindResultDataKeywords | undefined;
@@ -261,7 +261,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
261
261
  rawLicensePayload.keywords = {
262
262
  ...this.createKeywords(postData.keywords, 'license'),
263
263
  ...this.createKeywords(postData.keywords, 'offer'),
264
- ...this.createKeywords(postData.keywords, 'endCustomerOrganizationUnit'),
265
264
  };
266
265
  }
267
266
  if (postData.filters) {
@@ -525,7 +524,8 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
525
524
  createKeywords(parameters, keyParent) {
526
525
  let appropriateParameters;
527
526
  if (typeof parameters === 'object') {
528
- appropriateParameters = parameters[keyParent];
527
+ appropriateParameters =
528
+ keyParent === 'license' ? parameters.license : parameters.offer;
529
529
  }
530
530
  else {
531
531
  appropriateParameters = parameters;
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.111.0-rc.fdi.2",
7
+ "version": "3.111.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",