@arrowsphere/api-client 3.226.0-rc-cpe-2 → 3.226.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.226.0] - 2025.11.20
7
+
8
+ ### Added
9
+
10
+ - [quote] Add field promotionType
11
+
6
12
  ## [3.225.0] - 2025.11.17
7
13
 
8
14
  ### Added
@@ -21,6 +21,7 @@ export declare type QuoteType = {
21
21
  partner?: PartnerType;
22
22
  versions?: QuoteVersion[];
23
23
  promotionCode?: string;
24
+ promotionType?: string;
24
25
  reference?: string;
25
26
  status?: string;
26
27
  totalRecurringPrice?: number;
@@ -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 { AttachmentLicense, AttachmentsLicense } from './entities/license/attachment';
32
31
  /**
33
32
  * Parameters passable to the request for refining search.
34
33
  */
@@ -288,14 +287,6 @@ export declare type RewriteRateHistoryInputType = {
288
287
  [RewriteRateHistoryInputFields.COLUMN_RATE_TYPE]: string;
289
288
  [RewriteRateHistoryInputFields.COLUMN_RATE]: number;
290
289
  };
291
- export declare enum UploadAttachmentLicenseInputFields {
292
- COLUMN_NAME = "name",
293
- COLUMN_FILE_ENCODED = "fileEncoded"
294
- }
295
- export declare type UploadAttachmentLicenseInputType = {
296
- [UploadAttachmentLicenseInputFields.COLUMN_NAME]: string;
297
- [UploadAttachmentLicenseInputFields.COLUMN_FILE_ENCODED]: string;
298
- };
299
290
  export declare class LicensesClient extends AbstractRestfulClient {
300
291
  /**
301
292
  * The base path of the API
@@ -440,9 +431,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
440
431
  getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
441
432
  saveSpecialdBid(licenseReference: string, payload: SaveSpecialBidInputType, parameters?: Parameters): Promise<void>;
442
433
  rewriteRateHistory(licenseReference: string, payload: RewriteRateHistoryInputType, parameters?: Parameters): Promise<void>;
443
- getAttachmentsLicense(licenseReference: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<AttachmentsLicense>>;
444
- deleteAttachmentLicense(licenseReference: string, name: string, parameters?: Parameters): Promise<void>;
445
- uploadAttachmentLicense(licenseReference: string, payload: UploadAttachmentLicenseInputType, parameters?: Parameters): Promise<GetResult<AttachmentLicense>>;
446
434
  private createFilters;
447
435
  private createKeywords;
448
436
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LicensesClient = exports.UploadAttachmentLicenseInputFields = exports.RewriteRateHistoryInputFields = exports.SaveSpecialBidInputFields = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
3
+ exports.LicensesClient = exports.RewriteRateHistoryInputFields = exports.SaveSpecialBidInputFields = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
4
4
  /**
5
5
  * Class LicensesClient
6
6
  */
@@ -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 attachment_1 = require("./entities/license/attachment");
26
25
  /**
27
26
  * Parameters passable to the request for refining search.
28
27
  */
@@ -147,11 +146,6 @@ var RewriteRateHistoryInputFields;
147
146
  RewriteRateHistoryInputFields["COLUMN_RATE_TYPE"] = "rateType";
148
147
  RewriteRateHistoryInputFields["COLUMN_RATE"] = "rate";
149
148
  })(RewriteRateHistoryInputFields = exports.RewriteRateHistoryInputFields || (exports.RewriteRateHistoryInputFields = {}));
150
- var UploadAttachmentLicenseInputFields;
151
- (function (UploadAttachmentLicenseInputFields) {
152
- UploadAttachmentLicenseInputFields["COLUMN_NAME"] = "name";
153
- UploadAttachmentLicenseInputFields["COLUMN_FILE_ENCODED"] = "fileEncoded";
154
- })(UploadAttachmentLicenseInputFields = exports.UploadAttachmentLicenseInputFields || (exports.UploadAttachmentLicenseInputFields = {}));
155
149
  class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
156
150
  constructor() {
157
151
  super(...arguments);
@@ -509,24 +503,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
509
503
  this.path = `/${licenseReference}${this.REWRITE_RATE_HISTORY_PATH}`;
510
504
  await this.post(payload, parameters);
511
505
  }
512
- async getAttachmentsLicense(licenseReference, perPage, page, parameters = {}) {
513
- this.path = `/${licenseReference}/attachment`;
514
- if (perPage) {
515
- this.setPerPage(perPage);
516
- }
517
- if (page) {
518
- this.setPage(page);
519
- }
520
- return new getResult_1.GetResult(attachment_1.AttachmentsLicense, await this.get(parameters));
521
- }
522
- async deleteAttachmentLicense(licenseReference, name, parameters = {}) {
523
- this.path = `/${licenseReference}/attachment/${name}`;
524
- await this.delete(parameters);
525
- }
526
- async uploadAttachmentLicense(licenseReference, payload, parameters = {}) {
527
- this.path = `/${licenseReference}/attachment`;
528
- return new getResult_1.GetResult(attachment_1.AttachmentLicense, await this.post(payload, parameters));
529
- }
530
506
  createFilters(parameters, keyParent) {
531
507
  let appropriateParameters;
532
508
  if (typeof parameters === 'object') {
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.226.0-rc-cpe-2",
7
+ "version": "3.226.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,34 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- export declare enum AttachmentLicenseFields {
3
- COLUMN_LAST_MODIFIED = "lastModified",
4
- COLUMN_METADATA = "metadata",
5
- COLUMN_NAME = "name",
6
- COLUMN_URL = "url"
7
- }
8
- export declare type AttachmentLicenseType = {
9
- [AttachmentLicenseFields.COLUMN_LAST_MODIFIED]: string;
10
- [AttachmentLicenseFields.COLUMN_METADATA]?: Record<string, string>;
11
- [AttachmentLicenseFields.COLUMN_NAME]: string;
12
- [AttachmentLicenseFields.COLUMN_URL]: string;
13
- };
14
- export declare enum AttachmentsLicenseFields {
15
- COLUMN_ATTACHMENTS = "attachments"
16
- }
17
- export declare type AttachmentsLicenseType = {
18
- [AttachmentsLicenseFields.COLUMN_ATTACHMENTS]: AttachmentLicenseType[];
19
- };
20
- export declare class AttachmentLicense extends AbstractEntity<AttachmentLicenseType> {
21
- #private;
22
- constructor(attachment: AttachmentLicenseType);
23
- get lastModified(): string;
24
- get metadata(): Record<string, string> | undefined;
25
- get name(): string;
26
- get url(): string;
27
- toJSON(): AttachmentLicenseType;
28
- }
29
- export declare class AttachmentsLicense extends AbstractEntity<AttachmentsLicenseType> {
30
- #private;
31
- constructor(attachments: AttachmentsLicenseType);
32
- get attachments(): AttachmentLicense[];
33
- toJSON(): AttachmentsLicenseType;
34
- }
@@ -1,80 +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 _AttachmentLicense_lastModified, _AttachmentLicense_metadata, _AttachmentLicense_name, _AttachmentLicense_url, _AttachmentsLicense_attachments;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.AttachmentsLicense = exports.AttachmentLicense = exports.AttachmentsLicenseFields = exports.AttachmentLicenseFields = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- var AttachmentLicenseFields;
18
- (function (AttachmentLicenseFields) {
19
- AttachmentLicenseFields["COLUMN_LAST_MODIFIED"] = "lastModified";
20
- AttachmentLicenseFields["COLUMN_METADATA"] = "metadata";
21
- AttachmentLicenseFields["COLUMN_NAME"] = "name";
22
- AttachmentLicenseFields["COLUMN_URL"] = "url";
23
- })(AttachmentLicenseFields = exports.AttachmentLicenseFields || (exports.AttachmentLicenseFields = {}));
24
- var AttachmentsLicenseFields;
25
- (function (AttachmentsLicenseFields) {
26
- AttachmentsLicenseFields["COLUMN_ATTACHMENTS"] = "attachments";
27
- })(AttachmentsLicenseFields = exports.AttachmentsLicenseFields || (exports.AttachmentsLicenseFields = {}));
28
- class AttachmentLicense extends abstractEntity_1.AbstractEntity {
29
- constructor(attachment) {
30
- super(attachment);
31
- _AttachmentLicense_lastModified.set(this, void 0);
32
- _AttachmentLicense_metadata.set(this, void 0);
33
- _AttachmentLicense_name.set(this, void 0);
34
- _AttachmentLicense_url.set(this, void 0);
35
- __classPrivateFieldSet(this, _AttachmentLicense_lastModified, attachment[AttachmentLicenseFields.COLUMN_LAST_MODIFIED], "f");
36
- __classPrivateFieldSet(this, _AttachmentLicense_metadata, attachment[AttachmentLicenseFields.COLUMN_METADATA], "f");
37
- __classPrivateFieldSet(this, _AttachmentLicense_name, attachment[AttachmentLicenseFields.COLUMN_NAME], "f");
38
- __classPrivateFieldSet(this, _AttachmentLicense_url, attachment[AttachmentLicenseFields.COLUMN_URL], "f");
39
- }
40
- get lastModified() {
41
- return __classPrivateFieldGet(this, _AttachmentLicense_lastModified, "f");
42
- }
43
- get metadata() {
44
- return __classPrivateFieldGet(this, _AttachmentLicense_metadata, "f");
45
- }
46
- get name() {
47
- return __classPrivateFieldGet(this, _AttachmentLicense_name, "f");
48
- }
49
- get url() {
50
- return __classPrivateFieldGet(this, _AttachmentLicense_url, "f");
51
- }
52
- toJSON() {
53
- return {
54
- [AttachmentLicenseFields.COLUMN_LAST_MODIFIED]: this.lastModified,
55
- [AttachmentLicenseFields.COLUMN_METADATA]: this.metadata,
56
- [AttachmentLicenseFields.COLUMN_NAME]: this.name,
57
- [AttachmentLicenseFields.COLUMN_URL]: this.url,
58
- };
59
- }
60
- }
61
- exports.AttachmentLicense = AttachmentLicense;
62
- _AttachmentLicense_lastModified = new WeakMap(), _AttachmentLicense_metadata = new WeakMap(), _AttachmentLicense_name = new WeakMap(), _AttachmentLicense_url = new WeakMap();
63
- class AttachmentsLicense extends abstractEntity_1.AbstractEntity {
64
- constructor(attachments) {
65
- super(attachments);
66
- _AttachmentsLicense_attachments.set(this, void 0);
67
- __classPrivateFieldSet(this, _AttachmentsLicense_attachments, attachments[AttachmentsLicenseFields.COLUMN_ATTACHMENTS].map((attachment) => new AttachmentLicense(attachment)), "f");
68
- }
69
- get attachments() {
70
- return __classPrivateFieldGet(this, _AttachmentsLicense_attachments, "f");
71
- }
72
- toJSON() {
73
- return {
74
- [AttachmentsLicenseFields.COLUMN_ATTACHMENTS]: this.attachments.map((attachment) => attachment.toJSON()),
75
- };
76
- }
77
- }
78
- exports.AttachmentsLicense = AttachmentsLicense;
79
- _AttachmentsLicense_attachments = new WeakMap();
80
- //# sourceMappingURL=attachment.js.map