@arrowsphere/api-client 3.225.0-rc-abo-4 → 3.225.0-rc-cpe-1

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,6 @@
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.225.0] - 2025.11.06
7
- ### Added
8
- - [license] add endpoint to get license dynamic attributes mapping
9
-
10
6
  ## [3.224.0] - 2025.11.05
11
7
 
12
8
  ### Added
@@ -64,8 +64,7 @@ export declare enum LicenseGetFields {
64
64
  COLUMN_MARKET_SEGMENT = "marketSegment",
65
65
  COLUMN_CONFIGS = "configs",
66
66
  COLUMN_WARNINGS = "warnings",
67
- COLUMN_END_DATE = "endDate",
68
- COLUMN_ATTRIBUTES = "attributes"
67
+ COLUMN_END_DATE = "endDate"
69
68
  }
70
69
  export declare type LicenseGetData = {
71
70
  [LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION]?: Record<string, unknown>;
@@ -119,7 +118,6 @@ export declare type LicenseGetData = {
119
118
  [LicenseGetFields.COLUMN_CONFIGS]?: Array<ConfigFindResultData> | null;
120
119
  [LicenseGetFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
121
120
  [LicenseGetFields.COLUMN_END_DATE]: string;
122
- [LicenseGetFields.COLUMN_ATTRIBUTES]: Record<string, string>;
123
121
  };
124
122
  export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
125
123
  #private;
@@ -175,6 +173,5 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
175
173
  get configs(): Array<ConfigFindResult> | null | undefined;
176
174
  get warnings(): Array<WarningFindResult> | null | undefined;
177
175
  get endDate(): string;
178
- get attributes(): Record<string, string>;
179
176
  toJSON(): LicenseGetData;
180
177
  }
@@ -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 _LicenseGetResult_additionalInformation, _LicenseGetResult_classification, _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings, _LicenseGetResult_endDate, _LicenseGetResult_attributes;
13
+ var _LicenseGetResult_additionalInformation, _LicenseGetResult_classification, _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings, _LicenseGetResult_endDate;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LicenseGetResult = exports.LicenseGetFields = void 0;
16
16
  const actionsGetResult_1 = require("./actionsGetResult");
@@ -81,11 +81,10 @@ var LicenseGetFields;
81
81
  LicenseGetFields["COLUMN_CONFIGS"] = "configs";
82
82
  LicenseGetFields["COLUMN_WARNINGS"] = "warnings";
83
83
  LicenseGetFields["COLUMN_END_DATE"] = "endDate";
84
- LicenseGetFields["COLUMN_ATTRIBUTES"] = "attributes";
85
84
  })(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
86
85
  class LicenseGetResult extends abstractEntity_1.AbstractEntity {
87
86
  constructor(licenseGetDataInput) {
88
- var _a, _b, _c, _d, _e, _f, _g;
87
+ var _a, _b, _c, _d, _e, _f;
89
88
  super(licenseGetDataInput);
90
89
  _LicenseGetResult_additionalInformation.set(this, void 0);
91
90
  _LicenseGetResult_classification.set(this, void 0);
@@ -138,7 +137,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
138
137
  _LicenseGetResult_configs.set(this, void 0);
139
138
  _LicenseGetResult_warnings.set(this, void 0);
140
139
  _LicenseGetResult_endDate.set(this, void 0);
141
- _LicenseGetResult_attributes.set(this, void 0);
142
140
  __classPrivateFieldSet(this, _LicenseGetResult_additionalInformation, licenseGetDataInput[LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION], "f");
143
141
  __classPrivateFieldSet(this, _LicenseGetResult_classification, licenseGetDataInput[LicenseGetFields.COLUMN_CLASSIFICATION], "f");
144
142
  __classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
@@ -204,7 +202,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
204
202
  __classPrivateFieldSet(this, _LicenseGetResult_configs, (_d = licenseGetDataInput[LicenseGetFields.COLUMN_CONFIGS]) === null || _d === void 0 ? void 0 : _d.map((configData) => new configFindResult_1.ConfigFindResult(configData)), "f");
205
203
  __classPrivateFieldSet(this, _LicenseGetResult_warnings, (_e = licenseGetDataInput[LicenseGetFields.COLUMN_WARNINGS]) === null || _e === void 0 ? void 0 : _e.map((warningData) => new warningFindResult_1.WarningFindResult(warningData)), "f");
206
204
  __classPrivateFieldSet(this, _LicenseGetResult_endDate, (_f = licenseGetDataInput[LicenseGetFields.COLUMN_END_DATE]) !== null && _f !== void 0 ? _f : '', "f");
207
- __classPrivateFieldSet(this, _LicenseGetResult_attributes, (_g = licenseGetDataInput[LicenseGetFields.COLUMN_ATTRIBUTES]) !== null && _g !== void 0 ? _g : '', "f");
208
205
  }
209
206
  get classification() {
210
207
  return __classPrivateFieldGet(this, _LicenseGetResult_classification, "f");
@@ -362,9 +359,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
362
359
  get endDate() {
363
360
  return __classPrivateFieldGet(this, _LicenseGetResult_endDate, "f");
364
361
  }
365
- get attributes() {
366
- return __classPrivateFieldGet(this, _LicenseGetResult_attributes, "f");
367
- }
368
362
  toJSON() {
369
363
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
370
364
  return {
@@ -421,10 +415,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
421
415
  [LicenseGetFields.COLUMN_CONFIGS]: (_k = this.configs) === null || _k === void 0 ? void 0 : _k.map((config) => config.toJSON()),
422
416
  [LicenseGetFields.COLUMN_WARNINGS]: (_l = this.warnings) === null || _l === void 0 ? void 0 : _l.map((warning) => warning.toJSON()),
423
417
  [LicenseGetFields.COLUMN_END_DATE]: this.endDate,
424
- [LicenseGetFields.COLUMN_ATTRIBUTES]: this.attributes,
425
418
  };
426
419
  }
427
420
  }
428
421
  exports.LicenseGetResult = LicenseGetResult;
429
- _LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap(), _LicenseGetResult_endDate = new WeakMap(), _LicenseGetResult_attributes = new WeakMap();
422
+ _LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap(), _LicenseGetResult_endDate = new WeakMap();
430
423
  //# sourceMappingURL=licenseGetResult.js.map
@@ -0,0 +1,34 @@
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
+ }
@@ -0,0 +1,80 @@
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
@@ -61,8 +61,7 @@ export declare enum LicenseFindResultFields {
61
61
  COLUMN_VENDOR_CODE = "vendor_code",
62
62
  COLUMN_VENDOR_NAME = "vendor_name",
63
63
  COLUMN_VENDOR_SUBSCRIPTION_ID = "vendor_subscription_id",
64
- COLUMN_HIGHLIGHT = "highlight",
65
- COLUMN_ATTRIBUTES = "attributes"
64
+ COLUMN_HIGHLIGHT = "highlight"
66
65
  }
67
66
  /**
68
67
  * License data fields and their corresponding types
@@ -114,7 +113,6 @@ export declare type LicenseFindResultData = {
114
113
  [LicenseFindResultFields.COLUMN_VENDOR_NAME]: string;
115
114
  [LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]: string | null;
116
115
  [LicenseFindResultFields.COLUMN_HIGHLIGHT]?: Highlight;
117
- [LicenseFindResultFields.COLUMN_ATTRIBUTES]?: Record<string, string>;
118
116
  };
119
117
  export declare type LicenceFindDataKeywords = {
120
118
  [LicenseFindResultFields.COLUMN_ACCEPT_EULA]?: DataKeywords;
@@ -70,7 +70,6 @@ var LicenseFindResultFields;
70
70
  LicenseFindResultFields["COLUMN_VENDOR_NAME"] = "vendor_name";
71
71
  LicenseFindResultFields["COLUMN_VENDOR_SUBSCRIPTION_ID"] = "vendor_subscription_id";
72
72
  LicenseFindResultFields["COLUMN_HIGHLIGHT"] = "highlight";
73
- LicenseFindResultFields["COLUMN_ATTRIBUTES"] = "attributes";
74
73
  })(LicenseFindResultFields = exports.LicenseFindResultFields || (exports.LicenseFindResultFields = {}));
75
74
  class LicenseFindResult extends abstractEntity_1.AbstractEntity {
76
75
  /**
@@ -49,4 +49,3 @@ export * from './licenseRequestClient';
49
49
  export * from './licensesClient';
50
50
  export * from './licensesEventClient';
51
51
  export * from './types/bulkArguments';
52
- export * from './entities/license/dynamicMappingResult';
@@ -65,5 +65,4 @@ __exportStar(require("./licenseRequestClient"), exports);
65
65
  __exportStar(require("./licensesClient"), exports);
66
66
  __exportStar(require("./licensesEventClient"), exports);
67
67
  __exportStar(require("./types/bulkArguments"), exports);
68
- __exportStar(require("./entities/license/dynamicMappingResult"), exports);
69
68
  //# sourceMappingURL=index.js.map
@@ -28,7 +28,7 @@ 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 { DynamicAttributesMappingResult } from './entities/license/dynamicMappingResult';
31
+ import { AttachmentLicense, AttachmentsLicense } from './entities/license/attachment';
32
32
  /**
33
33
  * Parameters passable to the request for refining search.
34
34
  */
@@ -288,6 +288,14 @@ export declare type RewriteRateHistoryInputType = {
288
288
  [RewriteRateHistoryInputFields.COLUMN_RATE_TYPE]: string;
289
289
  [RewriteRateHistoryInputFields.COLUMN_RATE]: number;
290
290
  };
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
+ };
291
299
  export declare class LicensesClient extends AbstractRestfulClient {
292
300
  /**
293
301
  * The base path of the API
@@ -432,7 +440,9 @@ export declare class LicensesClient extends AbstractRestfulClient {
432
440
  getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
433
441
  saveSpecialdBid(licenseReference: string, payload: SaveSpecialBidInputType, parameters?: Parameters): Promise<void>;
434
442
  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>>;
435
446
  private createFilters;
436
447
  private createKeywords;
437
- getLicenseDynamicAttributesMapping(parameters?: Parameters): Promise<GetResult<DynamicAttributesMappingResult>>;
438
448
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LicensesClient = exports.RewriteRateHistoryInputFields = exports.SaveSpecialBidInputFields = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
3
+ exports.LicensesClient = exports.UploadAttachmentLicenseInputFields = exports.RewriteRateHistoryInputFields = exports.SaveSpecialBidInputFields = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
4
4
  /**
5
5
  * Class LicensesClient
6
6
  */
@@ -22,7 +22,7 @@ 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 dynamicMappingResult_1 = require("./entities/license/dynamicMappingResult");
25
+ const attachment_1 = require("./entities/license/attachment");
26
26
  /**
27
27
  * Parameters passable to the request for refining search.
28
28
  */
@@ -147,6 +147,11 @@ var RewriteRateHistoryInputFields;
147
147
  RewriteRateHistoryInputFields["COLUMN_RATE_TYPE"] = "rateType";
148
148
  RewriteRateHistoryInputFields["COLUMN_RATE"] = "rate";
149
149
  })(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 = {}));
150
155
  class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
151
156
  constructor() {
152
157
  super(...arguments);
@@ -504,6 +509,24 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
504
509
  this.path = `/${licenseReference}${this.REWRITE_RATE_HISTORY_PATH}`;
505
510
  await this.post(payload, parameters);
506
511
  }
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
+ }
507
530
  createFilters(parameters, keyParent) {
508
531
  let appropriateParameters;
509
532
  if (typeof parameters === 'object') {
@@ -571,10 +594,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
571
594
  return acc;
572
595
  }, {});
573
596
  }
574
- async getLicenseDynamicAttributesMapping(parameters = {}) {
575
- this.path = '/license-mapping';
576
- return new getResult_1.GetResult(dynamicMappingResult_1.DynamicAttributesMappingResult, await this.get(parameters));
577
- }
578
597
  }
579
598
  exports.LicensesClient = LicensesClient;
580
599
  //# sourceMappingURL=licensesClient.js.map
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.225.0-rc-abo-4",
7
+ "version": "3.225.0-rc-cpe-1",
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,8 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- export declare type DynamicAttributesMappingResultData = {
3
- [key: string]: string;
4
- };
5
- export declare class DynamicAttributesMappingResult extends AbstractEntity<DynamicAttributesMappingResultData> {
6
- constructor(data: DynamicAttributesMappingResultData);
7
- toJSON(): DynamicAttributesMappingResultData;
8
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DynamicAttributesMappingResult = void 0;
4
- const abstractEntity_1 = require("../../../abstractEntity");
5
- class DynamicAttributesMappingResult extends abstractEntity_1.AbstractEntity {
6
- constructor(data) {
7
- super(data);
8
- }
9
- toJSON() {
10
- return this.entityDataInput;
11
- }
12
- }
13
- exports.DynamicAttributesMappingResult = DynamicAttributesMappingResult;
14
- //# sourceMappingURL=dynamicMappingResult.js.map