@arrowsphere/api-client 3.238.0-rc-jpb.1 → 3.238.0-rc-cpe-3

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.
@@ -97,6 +97,8 @@ export declare type ItemData = {
97
97
  initialSellPrice?: number;
98
98
  isPromotion?: boolean;
99
99
  vendorPriceBandSku?: string;
100
+ identifiersVendorName?: string;
101
+ identifiersVendorNamesSerialized?: string;
100
102
  };
101
103
  export declare type NameValueType = {
102
104
  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
  */
@@ -398,8 +397,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
398
397
  *
399
398
  */
400
399
  find(postData?: LicenseFindPayload, perPage?: number, page?: number, parameters?: Parameters): Promise<FindResult>;
401
- findAttachments(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseAttachmentsResult>>;
402
- getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
403
400
  getConfigsRaw(reference: string): Promise<FindConfig>;
404
401
  getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
405
402
  /**
@@ -427,6 +424,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
427
424
  getCredentials(licenseReference: string, parameters?: Parameters): Promise<GetResult<CredentialsResult>>;
428
425
  setPricingRate(licenseReference: string, payload: LicensePricingRate, parameters?: Parameters): Promise<void>;
429
426
  scheduleTasks(licenseReference: string, payload: ScheduleTasks, parameters?: Parameters): Promise<GetResult<ScheduleTasksResult>>;
427
+ getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
430
428
  updateScheduledTask(licenseReference: string, scheduledTaskId: number, payload: UpdateScheduledTaskRequestType, parameters?: Parameters): Promise<void>;
431
429
  getScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<GetResult<GetScheduleTaskResult>>;
432
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,15 +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 getScheduledTasks(licenseReference, parameters = {}) {
325
- this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
326
- const response = await this.get(parameters);
327
- return new getResult_1.GetResult(getScheduledTasksResult_1.GetScheduledTasksResult, response);
328
- }
329
319
  getConfigsRaw(reference) {
330
320
  this.path = `/${reference}${this.CONFIGS_PATH}`;
331
321
  return this.get();
@@ -484,6 +474,11 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
484
474
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
485
475
  return new getResult_1.GetResult(scheduleTasksResult_1.ScheduleTasksResult, await this.post(payload, parameters));
486
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
+ }
487
482
  async updateScheduledTask(licenseReference, scheduledTaskId, payload, parameters = {}) {
488
483
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
489
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.1",
7
+ "version": "3.238.0-rc-cpe-3",
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