@arrowsphere/api-client 3.238.0-rc-jpb.2 → 3.238.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,12 @@
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.238.0] - 2026.01.28
7
+
8
+ ### Added
9
+
10
+ - [Bundles] Add the includeBundles argument in the SearchBodyArgument for the Catalog.
11
+
6
12
  ## [3.237.0] - 2026.01.21
7
13
 
8
14
  ### Added
@@ -63,6 +63,7 @@ export declare type SearchBodyArgument = {
63
63
  };
64
64
  export declare type SearchBodyProductArgument = SearchBodyArgument & {
65
65
  ignoreCatalogPlan?: boolean;
66
+ includeBundles?: boolean;
66
67
  };
67
68
  export declare type SearchProductFilterArgument = {
68
69
  name: string;
@@ -28,7 +28,6 @@ import { ConsumptionDailyPrediction } from '../consumption';
28
28
  import { GetScheduledTasksResult } from './entities/schedule/getScheduledTasksResult';
29
29
  import { GetScheduleTaskResult } from './entities/schedule/getScheduleTaskResult';
30
30
  import { LicenceCouponCodeHistoryResult } from './entities/history/licenceCouponCodeHistoryResult';
31
- import { GetLicenseAttachmentsResult } from './entities/attachment/GetLicenseAttachmentsResult';
32
31
  /**
33
32
  * Parameters passable to the request for refining search.
34
33
  */
@@ -139,10 +138,6 @@ export declare type BaseParameters<LicenseType, OfferType, endCustomerOrganizati
139
138
  offer?: OfferType;
140
139
  endCustomerOrganizationUnit?: endCustomerOrganizationUnitType;
141
140
  };
142
- export declare type AttachFileToLicenseParameters = {
143
- name: string;
144
- fileEncoded: string;
145
- };
146
141
  export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters, EndCustomerOrganizationUnitSortParameters>;
147
142
  export declare type LicenseCompareParameters = {
148
143
  [field: string]: unknown;
@@ -402,9 +397,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
402
397
  *
403
398
  */
404
399
  find(postData?: LicenseFindPayload, perPage?: number, page?: number, parameters?: Parameters): Promise<FindResult>;
405
- findAttachments(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseAttachmentsResult>>;
406
- attachFileToLicense(licenseReference: string, parameters: AttachFileToLicenseParameters): Promise<any>;
407
- getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
408
400
  getConfigsRaw(reference: string): Promise<FindConfig>;
409
401
  getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
410
402
  /**
@@ -432,6 +424,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
432
424
  getCredentials(licenseReference: string, parameters?: Parameters): Promise<GetResult<CredentialsResult>>;
433
425
  setPricingRate(licenseReference: string, payload: LicensePricingRate, parameters?: Parameters): Promise<void>;
434
426
  scheduleTasks(licenseReference: string, payload: ScheduleTasks, parameters?: Parameters): Promise<GetResult<ScheduleTasksResult>>;
427
+ getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
435
428
  updateScheduledTask(licenseReference: string, scheduledTaskId: number, payload: UpdateScheduledTaskRequestType, parameters?: Parameters): Promise<void>;
436
429
  getScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<GetResult<GetScheduleTaskResult>>;
437
430
  deleteScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters, payload?: DeleteScheduledTaskType): Promise<void>;
@@ -22,7 +22,6 @@ const consumption_1 = require("../consumption");
22
22
  const getScheduledTasksResult_1 = require("./entities/schedule/getScheduledTasksResult");
23
23
  const getScheduleTaskResult_1 = require("./entities/schedule/getScheduleTaskResult");
24
24
  const licenceCouponCodeHistoryResult_1 = require("./entities/history/licenceCouponCodeHistoryResult");
25
- const GetLicenseAttachmentsResult_1 = require("./entities/attachment/GetLicenseAttachmentsResult");
26
25
  /**
27
26
  * Parameters passable to the request for refining search.
28
27
  */
@@ -317,19 +316,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
317
316
  const response = await this.findRaw(rawLicensePayload, parameters);
318
317
  return new findResult_1.FindResult(response, this, rawLicensePayload, parameters);
319
318
  }
320
- async findAttachments(licenseReference, parameters = {}) {
321
- this.path = `/${licenseReference}/attachment`;
322
- return new getResult_1.GetResult(GetLicenseAttachmentsResult_1.GetLicenseAttachmentsResult, await this.get(parameters));
323
- }
324
- async attachFileToLicense(licenseReference, parameters) {
325
- this.path = `/${licenseReference}/attachment`;
326
- return await this.post(parameters);
327
- }
328
- async getScheduledTasks(licenseReference, parameters = {}) {
329
- this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
330
- const response = await this.get(parameters);
331
- return new getResult_1.GetResult(getScheduledTasksResult_1.GetScheduledTasksResult, response);
332
- }
333
319
  getConfigsRaw(reference) {
334
320
  this.path = `/${reference}${this.CONFIGS_PATH}`;
335
321
  return this.get();
@@ -488,6 +474,11 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
488
474
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
489
475
  return new getResult_1.GetResult(scheduleTasksResult_1.ScheduleTasksResult, await this.post(payload, parameters));
490
476
  }
477
+ async getScheduledTasks(licenseReference, parameters = {}) {
478
+ this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
479
+ const response = await this.get(parameters);
480
+ return new getResult_1.GetResult(getScheduledTasksResult_1.GetScheduledTasksResult, response);
481
+ }
491
482
  async updateScheduledTask(licenseReference, scheduledTaskId, payload, parameters = {}) {
492
483
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
493
484
  return await this.patch(payload, 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.238.0-rc-jpb.2",
7
+ "version": "3.238.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,22 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- export declare enum GetLicenseAttachmentResultFields {
3
- COLUMN_NAME = "name",
4
- COLUMN_LAST_MODIFIED = "lastModified",
5
- COLUMN_URL = "url",
6
- COLUMN_METADATA = "metadata"
7
- }
8
- export declare type GetLicenseAttachmentResultData = {
9
- [GetLicenseAttachmentResultFields.COLUMN_NAME]: string;
10
- [GetLicenseAttachmentResultFields.COLUMN_LAST_MODIFIED]: string;
11
- [GetLicenseAttachmentResultFields.COLUMN_URL]: string;
12
- [GetLicenseAttachmentResultFields.COLUMN_METADATA]?: Record<string, string>;
13
- };
14
- export declare class GetLicenseAttachmentResult extends AbstractEntity<GetLicenseAttachmentResultData> {
15
- #private;
16
- constructor(input: GetLicenseAttachmentResultData);
17
- get name(): string;
18
- get lastModified(): string;
19
- get url(): string;
20
- get metadata(): Record<string, string> | undefined;
21
- toJSON(): GetLicenseAttachmentResultData;
22
- }
@@ -1,60 +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 _GetLicenseAttachmentResult_name, _GetLicenseAttachmentResult_lastModified, _GetLicenseAttachmentResult_url, _GetLicenseAttachmentResult_metadata;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.GetLicenseAttachmentResult = exports.GetLicenseAttachmentResultFields = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- var GetLicenseAttachmentResultFields;
18
- (function (GetLicenseAttachmentResultFields) {
19
- GetLicenseAttachmentResultFields["COLUMN_NAME"] = "name";
20
- GetLicenseAttachmentResultFields["COLUMN_LAST_MODIFIED"] = "lastModified";
21
- GetLicenseAttachmentResultFields["COLUMN_URL"] = "url";
22
- GetLicenseAttachmentResultFields["COLUMN_METADATA"] = "metadata";
23
- })(GetLicenseAttachmentResultFields = exports.GetLicenseAttachmentResultFields || (exports.GetLicenseAttachmentResultFields = {}));
24
- class GetLicenseAttachmentResult extends abstractEntity_1.AbstractEntity {
25
- constructor(input) {
26
- super(input);
27
- _GetLicenseAttachmentResult_name.set(this, void 0);
28
- _GetLicenseAttachmentResult_lastModified.set(this, void 0);
29
- _GetLicenseAttachmentResult_url.set(this, void 0);
30
- _GetLicenseAttachmentResult_metadata.set(this, void 0);
31
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_name, input[GetLicenseAttachmentResultFields.COLUMN_NAME], "f");
32
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_lastModified, input[GetLicenseAttachmentResultFields.COLUMN_LAST_MODIFIED], "f");
33
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_url, input[GetLicenseAttachmentResultFields.COLUMN_URL], "f");
34
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_metadata, input[GetLicenseAttachmentResultFields.COLUMN_METADATA], "f");
35
- }
36
- get name() {
37
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_name, "f");
38
- }
39
- get lastModified() {
40
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_lastModified, "f");
41
- }
42
- get url() {
43
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_url, "f");
44
- }
45
- get metadata() {
46
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_metadata, "f");
47
- }
48
- toJSON() {
49
- return {
50
- [GetLicenseAttachmentResultFields.COLUMN_NAME]: this.name,
51
- [GetLicenseAttachmentResultFields.COLUMN_LAST_MODIFIED]: this
52
- .lastModified,
53
- [GetLicenseAttachmentResultFields.COLUMN_URL]: this.url,
54
- [GetLicenseAttachmentResultFields.COLUMN_METADATA]: this.metadata,
55
- };
56
- }
57
- }
58
- exports.GetLicenseAttachmentResult = GetLicenseAttachmentResult;
59
- _GetLicenseAttachmentResult_name = new WeakMap(), _GetLicenseAttachmentResult_lastModified = new WeakMap(), _GetLicenseAttachmentResult_url = new WeakMap(), _GetLicenseAttachmentResult_metadata = new WeakMap();
60
- //# sourceMappingURL=GetLicenseAttachmentResult.js.map
@@ -1,14 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- import { GetLicenseAttachmentResult, GetLicenseAttachmentResultData } from './GetLicenseAttachmentResult';
3
- export declare enum GetLicenseAttachmentsResultFields {
4
- COLUMN_ATTACHMENTS = "attachements"
5
- }
6
- export declare type GetLicenseAttachmentsResultData = {
7
- [GetLicenseAttachmentsResultFields.COLUMN_ATTACHMENTS]: GetLicenseAttachmentResultData[];
8
- };
9
- export declare class GetLicenseAttachmentsResult extends AbstractEntity<GetLicenseAttachmentsResultData> {
10
- #private;
11
- constructor(input: GetLicenseAttachmentsResultData);
12
- getLicenseAttachments(): GetLicenseAttachmentResult[];
13
- toJSON(): GetLicenseAttachmentsResultData;
14
- }
@@ -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 _GetLicenseAttachmentsResult_attachments;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.GetLicenseAttachmentsResult = exports.GetLicenseAttachmentsResultFields = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- const GetLicenseAttachmentResult_1 = require("./GetLicenseAttachmentResult");
18
- var GetLicenseAttachmentsResultFields;
19
- (function (GetLicenseAttachmentsResultFields) {
20
- GetLicenseAttachmentsResultFields["COLUMN_ATTACHMENTS"] = "attachements";
21
- })(GetLicenseAttachmentsResultFields = exports.GetLicenseAttachmentsResultFields || (exports.GetLicenseAttachmentsResultFields = {}));
22
- class GetLicenseAttachmentsResult extends abstractEntity_1.AbstractEntity {
23
- constructor(input) {
24
- super(input);
25
- _GetLicenseAttachmentsResult_attachments.set(this, void 0);
26
- __classPrivateFieldSet(this, _GetLicenseAttachmentsResult_attachments, input[GetLicenseAttachmentsResultFields.COLUMN_ATTACHMENTS].map((result) => new GetLicenseAttachmentResult_1.GetLicenseAttachmentResult(result)), "f");
27
- }
28
- getLicenseAttachments() {
29
- return __classPrivateFieldGet(this, _GetLicenseAttachmentsResult_attachments, "f");
30
- }
31
- toJSON() {
32
- return {
33
- [GetLicenseAttachmentsResultFields.COLUMN_ATTACHMENTS]: __classPrivateFieldGet(this, _GetLicenseAttachmentsResult_attachments, "f").map((result) => result.toJSON()),
34
- };
35
- }
36
- }
37
- exports.GetLicenseAttachmentsResult = GetLicenseAttachmentsResult;
38
- _GetLicenseAttachmentsResult_attachments = new WeakMap();
39
- //# sourceMappingURL=GetLicenseAttachmentsResult.js.map
@@ -1,6 +0,0 @@
1
- export declare type AttachmentObject = {
2
- name: string;
3
- lastModified: string;
4
- url: string;
5
- metadata?: Record<string, string>;
6
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=AttachmentObject.js.map