@arrowsphere/api-client 3.223.0-rc.fdi.1 → 3.223.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,11 +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.223.0] - 2025.09.30
6
+ ## [3.223.0] - 2025.10.16
7
7
 
8
- ### Updated
8
+ ### Added
9
9
 
10
- - [order] Add fields `attributes` and `brand` in IdentityProduct of OrderProduct
10
+ - [License schedules tasks] Add ExtraInformationType in post/update/delete scheduled tasks payload
11
11
 
12
12
  ## [3.222.0] - 2025.09.25
13
13
 
@@ -192,13 +192,13 @@ export declare abstract class AbstractRestfulClient extends AbstractHttpClient {
192
192
  protected patch<T>(payload?: Payload, parameters?: Parameters, headers?: Headers, options?: Options): Promise<T>;
193
193
  /**
194
194
  * Sends a DELETE request
195
- * @param payload - Payload to be sent in the POST body
196
195
  * @param parameters - Query parameters to be sent in the request
197
196
  * @param headers - Headers to be sent in the request
198
197
  * @param options - Options to send
198
+ * @param payload - Payload to be sent in the POST body
199
199
  * @returns Promise\<T\>
200
200
  */
201
- protected delete(parameters?: Parameters, headers?: Headers, options?: Options): Promise<void>;
201
+ protected delete(parameters?: Parameters, headers?: Headers, options?: Options, payload?: Payload): Promise<void>;
202
202
  /**
203
203
  * Generates the full url for request
204
204
  * @param parameters - Parameters to serialize
@@ -307,15 +307,16 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
307
307
  }
308
308
  /**
309
309
  * Sends a DELETE request
310
- * @param payload - Payload to be sent in the POST body
311
310
  * @param parameters - Query parameters to be sent in the request
312
311
  * @param headers - Headers to be sent in the request
313
312
  * @param options - Options to send
313
+ * @param payload - Payload to be sent in the POST body
314
314
  * @returns Promise\<T\>
315
315
  */
316
- async delete(parameters = {}, headers = {}, options = {}) {
316
+ async delete(parameters = {}, headers = {}, options = {}, payload = {}) {
317
317
  const url = this.generateUrl(parameters, options);
318
318
  const config = {
319
+ data: payload,
319
320
  headers: this.prepareHeaders(headers),
320
321
  };
321
322
  try {
@@ -327,6 +328,7 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
327
328
  const { mustRetry } = await this.handleError(error);
328
329
  if (mustRetry) {
329
330
  const config = {
331
+ data: payload,
330
332
  headers: this.prepareHeaders(headers),
331
333
  };
332
334
  const response = await this.client.delete(url, config);
@@ -257,13 +257,14 @@ export declare type SaveBillingCommentsInputType = {
257
257
  [SaveBillingCommentsInputFields.COLUMN_COMMENT_ONE]?: string | null;
258
258
  [SaveBillingCommentsInputFields.COLUMN_COMMENT_TWO]?: string | null;
259
259
  };
260
+ export declare type DeleteScheduledTaskType = ExtraInformationType;
260
261
  export declare type ScheduleTasks = {
261
262
  coterminosityDate?: string;
262
263
  periodicity?: number;
263
264
  term?: number;
264
265
  seats?: number;
265
266
  executionDate: string;
266
- };
267
+ } & ExtraInformationType;
267
268
  export declare type UpdateScheduledTaskRequestType = Omit<ScheduleTasks, 'executionDate'>;
268
269
  export declare type LicensePricingRate = {
269
270
  rateType: RateTypeEnum;
@@ -426,7 +427,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
426
427
  getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
427
428
  updateScheduledTask(licenseReference: string, scheduledTaskId: number, payload: UpdateScheduledTaskRequestType, parameters?: Parameters): Promise<void>;
428
429
  getScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<GetResult<GetScheduleTaskResult>>;
429
- deleteScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<void>;
430
+ deleteScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters, payload?: DeleteScheduledTaskType): Promise<void>;
430
431
  getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
431
432
  saveSpecialdBid(licenseReference: string, payload: SaveSpecialBidInputType, parameters?: Parameters): Promise<void>;
432
433
  rewriteRateHistory(licenseReference: string, payload: RewriteRateHistoryInputType, parameters?: Parameters): Promise<void>;
@@ -487,9 +487,9 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
487
487
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
488
488
  return new getResult_1.GetResult(getScheduleTaskResult_1.GetScheduleTaskResult, await this.get(parameters));
489
489
  }
490
- async deleteScheduledTask(licenseReference, scheduledTaskId, parameters = {}) {
490
+ async deleteScheduledTask(licenseReference, scheduledTaskId, parameters = {}, payload = {}) {
491
491
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
492
- return this.delete(parameters);
492
+ return this.delete(parameters, {}, {}, payload);
493
493
  }
494
494
  async getLicenseDailyPredictions(licenseReference, parameters = {}) {
495
495
  this.path = `/${licenseReference}/predictions/daily`;
@@ -1,20 +1,13 @@
1
- import { VendorAttributes, VendorAttributesType } from './vendorAttributes';
2
1
  import { AbstractEntity } from '../../../../../../abstractEntity';
3
2
  export declare enum IdentifiersVendorFields {
4
- COLUMN_SKU = "sku",
5
- COLUMN_ATTRIBUTES = "attributes",
6
- COLUMN_BRAND = "brand"
3
+ COLUMN_SKU = "sku"
7
4
  }
8
5
  export declare type IdentifiersVendorType = {
9
6
  [IdentifiersVendorFields.COLUMN_SKU]: string;
10
- [IdentifiersVendorFields.COLUMN_ATTRIBUTES]: VendorAttributesType;
11
- [IdentifiersVendorFields.COLUMN_BRAND]: string;
12
7
  };
13
8
  export declare class IdentifiersVendor extends AbstractEntity<IdentifiersVendorType> {
14
9
  #private;
15
10
  constructor(vendor: IdentifiersVendorType);
16
11
  get sku(): string;
17
- get attributes(): VendorAttributes;
18
- get brand(): string;
19
12
  toJSON(): IdentifiersVendorType;
20
13
  }
@@ -10,44 +10,29 @@ 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 _IdentifiersVendor_sku, _IdentifiersVendor_attributes, _IdentifiersVendor_brand;
13
+ var _IdentifiersVendor_sku;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.IdentifiersVendor = exports.IdentifiersVendorFields = void 0;
16
- const vendorAttributes_1 = require("./vendorAttributes");
17
16
  const abstractEntity_1 = require("../../../../../../abstractEntity");
18
17
  var IdentifiersVendorFields;
19
18
  (function (IdentifiersVendorFields) {
20
19
  IdentifiersVendorFields["COLUMN_SKU"] = "sku";
21
- IdentifiersVendorFields["COLUMN_ATTRIBUTES"] = "attributes";
22
- IdentifiersVendorFields["COLUMN_BRAND"] = "brand";
23
20
  })(IdentifiersVendorFields = exports.IdentifiersVendorFields || (exports.IdentifiersVendorFields = {}));
24
21
  class IdentifiersVendor extends abstractEntity_1.AbstractEntity {
25
22
  constructor(vendor) {
26
23
  super(vendor);
27
24
  _IdentifiersVendor_sku.set(this, void 0);
28
- _IdentifiersVendor_attributes.set(this, void 0);
29
- _IdentifiersVendor_brand.set(this, void 0);
30
25
  __classPrivateFieldSet(this, _IdentifiersVendor_sku, vendor[IdentifiersVendorFields.COLUMN_SKU], "f");
31
- __classPrivateFieldSet(this, _IdentifiersVendor_attributes, new vendorAttributes_1.VendorAttributes(vendor[IdentifiersVendorFields.COLUMN_ATTRIBUTES]), "f");
32
- __classPrivateFieldSet(this, _IdentifiersVendor_brand, vendor[IdentifiersVendorFields.COLUMN_BRAND], "f");
33
26
  }
34
27
  get sku() {
35
28
  return __classPrivateFieldGet(this, _IdentifiersVendor_sku, "f");
36
29
  }
37
- get attributes() {
38
- return __classPrivateFieldGet(this, _IdentifiersVendor_attributes, "f");
39
- }
40
- get brand() {
41
- return __classPrivateFieldGet(this, _IdentifiersVendor_brand, "f");
42
- }
43
30
  toJSON() {
44
31
  return {
45
32
  [IdentifiersVendorFields.COLUMN_SKU]: this.sku,
46
- [IdentifiersVendorFields.COLUMN_ATTRIBUTES]: this.attributes.toJSON(),
47
- [IdentifiersVendorFields.COLUMN_BRAND]: this.brand,
48
33
  };
49
34
  }
50
35
  }
51
36
  exports.IdentifiersVendor = IdentifiersVendor;
52
- _IdentifiersVendor_sku = new WeakMap(), _IdentifiersVendor_attributes = new WeakMap(), _IdentifiersVendor_brand = new WeakMap();
37
+ _IdentifiersVendor_sku = new WeakMap();
53
38
  //# sourceMappingURL=identifiersVendor.js.map
@@ -4,7 +4,6 @@ export * from './entities/orders/order';
4
4
  export * from './entities/orders/updateOrderResult';
5
5
  export * from './entities/orders/partner/partner';
6
6
  export * from './entities/orders/products/identifiers/vendor/identifiersVendor';
7
- export * from './entities/orders/products/identifiers/vendor/vendorAttributes';
8
7
  export * from './entities/orders/products/identifiers/productIdentifiers';
9
8
  export * from './entities/orders/products/prices/productPrices';
10
9
  export * from './entities/orders/products/program/productProgram';
@@ -20,7 +20,6 @@ __exportStar(require("./entities/orders/order"), exports);
20
20
  __exportStar(require("./entities/orders/updateOrderResult"), exports);
21
21
  __exportStar(require("./entities/orders/partner/partner"), exports);
22
22
  __exportStar(require("./entities/orders/products/identifiers/vendor/identifiersVendor"), exports);
23
- __exportStar(require("./entities/orders/products/identifiers/vendor/vendorAttributes"), exports);
24
23
  __exportStar(require("./entities/orders/products/identifiers/productIdentifiers"), exports);
25
24
  __exportStar(require("./entities/orders/products/prices/productPrices"), exports);
26
25
  __exportStar(require("./entities/orders/products/program/productProgram"), exports);
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.223.0-rc.fdi.1",
7
+ "version": "3.223.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,13 +0,0 @@
1
- import { AbstractEntity } from '../../../../../../abstractEntity';
2
- export declare enum VendorAttributesFields {
3
- COLUMN_CAN_SWITCH_AUTO_RENEW = "canSwitchAutoRenew"
4
- }
5
- export declare type VendorAttributesType = {
6
- [VendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW]?: boolean;
7
- };
8
- export declare class VendorAttributes extends AbstractEntity<VendorAttributesType> {
9
- #private;
10
- constructor(attributes: VendorAttributesType);
11
- get canSwitchAutoRenew(): boolean | undefined;
12
- toJSON(): VendorAttributesType;
13
- }
@@ -1,39 +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 _VendorAttributes_canSwitchAutoRenew;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.VendorAttributes = exports.VendorAttributesFields = void 0;
16
- const abstractEntity_1 = require("../../../../../../abstractEntity");
17
- var VendorAttributesFields;
18
- (function (VendorAttributesFields) {
19
- VendorAttributesFields["COLUMN_CAN_SWITCH_AUTO_RENEW"] = "canSwitchAutoRenew";
20
- })(VendorAttributesFields = exports.VendorAttributesFields || (exports.VendorAttributesFields = {}));
21
- class VendorAttributes extends abstractEntity_1.AbstractEntity {
22
- constructor(attributes) {
23
- super(attributes);
24
- _VendorAttributes_canSwitchAutoRenew.set(this, void 0);
25
- __classPrivateFieldSet(this, _VendorAttributes_canSwitchAutoRenew, attributes[VendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW], "f");
26
- }
27
- get canSwitchAutoRenew() {
28
- return __classPrivateFieldGet(this, _VendorAttributes_canSwitchAutoRenew, "f");
29
- }
30
- toJSON() {
31
- return {
32
- [VendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW]: this
33
- .canSwitchAutoRenew,
34
- };
35
- }
36
- }
37
- exports.VendorAttributes = VendorAttributes;
38
- _VendorAttributes_canSwitchAutoRenew = new WeakMap();
39
- //# sourceMappingURL=vendorAttributes.js.map