@arrowsphere/api-client 3.388.0 → 3.389.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,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.389.0] - 2026.08.10
7
+ ### Added
8
+ - [catalog] Add `offer` field of type `OfferLightType` to `PriceBandType`
9
+ - [licenses] Add `Attributes` entity with `name` and nullable `value` fields
10
+
6
11
  ## [3.388.0] - 2026.08.04
7
12
  ### Added
8
13
  - [customer] Add `COLUMN_IS_RESELLER_COMPANY` key to `CustomerFields` enum
@@ -186,6 +186,7 @@ export declare type PriceBandType = {
186
186
  isBuyable?: boolean;
187
187
  marketplace?: string;
188
188
  name?: string;
189
+ offer?: OfferLightType;
189
190
  orderingType?: string;
190
191
  prices?: PricesType;
191
192
  saleConstraints?: PriceBandSaleConstraintsType;
@@ -194,6 +195,19 @@ export declare type PriceBandType = {
194
195
  promotionsPrices?: Array<PromotionPricesFull>;
195
196
  vendor?: VendorType;
196
197
  };
198
+ export declare type OfferLightType = {
199
+ identifiers?: IdentifiersType;
200
+ name?: string;
201
+ classification?: string;
202
+ arrowCategories?: string[];
203
+ arrowSubCategories?: string[];
204
+ lastUpdate?: string;
205
+ isAddon?: boolean;
206
+ hasAddons?: boolean;
207
+ environmentAvailability?: string;
208
+ isEnabled?: boolean;
209
+ isTrial?: boolean;
210
+ };
197
211
  export declare type PriceBandActionFlagsType = {
198
212
  canBeCancelled?: boolean;
199
213
  canBeReactivated?: boolean;
@@ -66,6 +66,7 @@ class OfferFindResult extends abstractEntity_1.AbstractEntity {
66
66
  [priceBandFindResult_1.PriceBandFindResultFields.COLUMN_PRICES]: data[OfferFindResultFields.COLUMN_PRICE_BAND][priceBandFindResult_1.PriceBandFindResultFields.COLUMN_PRICES],
67
67
  [priceBandFindResult_1.PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS]: data[OfferFindResultFields.COLUMN_PRICE_BAND][priceBandFindResult_1.PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS],
68
68
  [priceBandFindResult_1.PriceBandFindResultFields.COLUMN_IDENTIFIERS]: data[OfferFindResultFields.COLUMN_PRICE_BAND][priceBandFindResult_1.PriceBandFindResultFields.COLUMN_IDENTIFIERS],
69
+ [priceBandFindResult_1.PriceBandFindResultFields.COLUMN_ATTRIBUTES]: data[OfferFindResultFields.COLUMN_PRICE_BAND][priceBandFindResult_1.PriceBandFindResultFields.COLUMN_ATTRIBUTES],
69
70
  };
70
71
  __classPrivateFieldSet(this, _OfferFindResult_priceBand, new priceBandFindResult_1.PriceBandFindResult(priceBand), "f");
71
72
  __classPrivateFieldSet(this, _OfferFindResult_arrowSubCategories, data[OfferFindResultFields.COLUMN_ARROW_SUB_CATEGORIES], "f");
@@ -6,6 +6,7 @@ import { BillingFindResult, BillingFindResultData, BillingFindResultDataFiltersP
6
6
  import { PriceBandPriceFindResult, PriceBandPriceFindResultData, PriceBandPriceFindResultDataFiltersParameters, PriceBandPriceFindResultDataKeywords, PriceBandPriceFindResultDataSortParameters } from './priceband/priceBandPriceFindResult';
7
7
  import { SaleConstraintsFindResult, SaleConstraintsFindResultData, SaleConstraintsFindResultDataFiltersParameters, SaleConstraintsFindResultDataKeywords, SaleConstraintsFindResultDataSortParameters } from './priceband/saleConstraintsFindResult';
8
8
  import { IdentifiersFindResult, IdentifiersFindResultData, IdentifiersFindResultDataFiltersParameters, IdentifiersFindResultDataKeywords, IdentifiersFindResultDataSortParameters } from './priceband/identifiersFindResult';
9
+ import { Attributes, AttributesData, AttributesDataKeywords, AttributesDataSortParameters, AttributesDataFiltersParameters } from './priceband/attributes';
9
10
  export declare enum PriceBandFindResultFields {
10
11
  COLUMN_ACTION_FLAGS = "actionFlags",
11
12
  COLUMN_BILLING = "billing",
@@ -14,7 +15,8 @@ export declare enum PriceBandFindResultFields {
14
15
  COLUMN_MARKETPLACE = "marketplace",
15
16
  COLUMN_PRICES = "prices",
16
17
  COLUMN_SALE_CONSTRAINTS = "saleConstraints",
17
- COLUMN_IDENTIFIERS = "identifiers"
18
+ COLUMN_IDENTIFIERS = "identifiers",
19
+ COLUMN_ATTRIBUTES = "attributes"
18
20
  }
19
21
  export declare type PriceBandFindResultData = {
20
22
  [PriceBandFindResultFields.COLUMN_ACTION_FLAGS]: PriceBandActionFlagsFindResultData;
@@ -25,6 +27,7 @@ export declare type PriceBandFindResultData = {
25
27
  [PriceBandFindResultFields.COLUMN_PRICES]: PriceBandPriceFindResultData;
26
28
  [PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS]: SaleConstraintsFindResultData;
27
29
  [PriceBandFindResultFields.COLUMN_IDENTIFIERS]: IdentifiersFindResultData;
30
+ [PriceBandFindResultFields.COLUMN_ATTRIBUTES]?: AttributesData[] | undefined | null;
28
31
  };
29
32
  export declare type PriceBandFindResultDataKeywords = {
30
33
  [PriceBandFindResultFields.COLUMN_ACTION_FLAGS]?: PriceBandActionFlagsFindResultDataKeywords;
@@ -35,6 +38,7 @@ export declare type PriceBandFindResultDataKeywords = {
35
38
  [PriceBandFindResultFields.COLUMN_PRICES]?: PriceBandPriceFindResultDataKeywords;
36
39
  [PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS]?: SaleConstraintsFindResultDataKeywords;
37
40
  [PriceBandFindResultFields.COLUMN_IDENTIFIERS]?: IdentifiersFindResultDataKeywords;
41
+ [PriceBandFindResultFields.COLUMN_ATTRIBUTES]?: AttributesDataKeywords;
38
42
  };
39
43
  export declare type PriceBandFindResultDataSortParameters = {
40
44
  [PriceBandFindResultFields.COLUMN_ACTION_FLAGS]?: PriceBandActionFlagsDataFindResultSortParameters;
@@ -45,6 +49,7 @@ export declare type PriceBandFindResultDataSortParameters = {
45
49
  [PriceBandFindResultFields.COLUMN_PRICES]?: PriceBandPriceFindResultDataSortParameters;
46
50
  [PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS]?: SaleConstraintsFindResultDataSortParameters;
47
51
  [PriceBandFindResultFields.COLUMN_IDENTIFIERS]?: IdentifiersFindResultDataSortParameters;
52
+ [PriceBandFindResultFields.COLUMN_ATTRIBUTES]?: AttributesDataSortParameters;
48
53
  };
49
54
  export declare type PriceBandFindResultDataFiltersParameters = {
50
55
  [PriceBandFindResultFields.COLUMN_ACTION_FLAGS]?: PriceBandActionFlagsFindResultDataFiltersParameters;
@@ -55,6 +60,7 @@ export declare type PriceBandFindResultDataFiltersParameters = {
55
60
  [PriceBandFindResultFields.COLUMN_PRICES]?: PriceBandPriceFindResultDataFiltersParameters;
56
61
  [PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS]?: SaleConstraintsFindResultDataFiltersParameters;
57
62
  [PriceBandFindResultFields.COLUMN_IDENTIFIERS]?: IdentifiersFindResultDataFiltersParameters;
63
+ [PriceBandFindResultFields.COLUMN_ATTRIBUTES]?: AttributesDataFiltersParameters;
58
64
  };
59
65
  export declare class PriceBandFindResult extends AbstractEntity<PriceBandFindResultData> {
60
66
  #private;
@@ -68,5 +74,6 @@ export declare class PriceBandFindResult extends AbstractEntity<PriceBandFindRes
68
74
  get prices(): PriceBandPriceFindResult;
69
75
  get saleConstraints(): SaleConstraintsFindResult;
70
76
  get identifiers(): IdentifiersFindResult;
77
+ get attributes(): Attributes[];
71
78
  toJSON(): PriceBandFindResultData;
72
79
  }
@@ -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 _PriceBandFindResult_actionFlags, _PriceBandFindResult_billing, _PriceBandFindResult_currency, _PriceBandFindResult_isEnabled, _PriceBandFindResult_marketplace, _PriceBandFindResult_prices, _PriceBandFindResult_saleConstraints, _PriceBandFindResult_identifiers;
13
+ var _PriceBandFindResult_actionFlags, _PriceBandFindResult_billing, _PriceBandFindResult_currency, _PriceBandFindResult_isEnabled, _PriceBandFindResult_marketplace, _PriceBandFindResult_prices, _PriceBandFindResult_saleConstraints, _PriceBandFindResult_identifiers, _PriceBandFindResult_attributes;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.PriceBandFindResult = exports.PriceBandFindResultFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
@@ -20,6 +20,7 @@ const priceBandPriceFindResult_1 = require("./priceband/priceBandPriceFindResult
20
20
  const saleConstraintsFindResult_1 = require("./priceband/saleConstraintsFindResult");
21
21
  const identifiersFindResult_1 = require("./priceband/identifiersFindResult");
22
22
  const arrowsphereFindResult_1 = require("./priceband/identifiers/arrowsphereFindResult");
23
+ const attributes_1 = require("./priceband/attributes");
23
24
  var PriceBandFindResultFields;
24
25
  (function (PriceBandFindResultFields) {
25
26
  PriceBandFindResultFields["COLUMN_ACTION_FLAGS"] = "actionFlags";
@@ -30,9 +31,11 @@ var PriceBandFindResultFields;
30
31
  PriceBandFindResultFields["COLUMN_PRICES"] = "prices";
31
32
  PriceBandFindResultFields["COLUMN_SALE_CONSTRAINTS"] = "saleConstraints";
32
33
  PriceBandFindResultFields["COLUMN_IDENTIFIERS"] = "identifiers";
34
+ PriceBandFindResultFields["COLUMN_ATTRIBUTES"] = "attributes";
33
35
  })(PriceBandFindResultFields = exports.PriceBandFindResultFields || (exports.PriceBandFindResultFields = {}));
34
36
  class PriceBandFindResult extends abstractEntity_1.AbstractEntity {
35
37
  constructor(data) {
38
+ var _a, _b;
36
39
  super(data);
37
40
  this.VALIDATION_RULES = {
38
41
  [PriceBandFindResultFields.COLUMN_ACTION_FLAGS]: 'required|array',
@@ -43,6 +46,7 @@ class PriceBandFindResult extends abstractEntity_1.AbstractEntity {
43
46
  [PriceBandFindResultFields.COLUMN_PRICES]: 'required|array',
44
47
  [PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS]: 'required|array',
45
48
  [PriceBandFindResultFields.COLUMN_IDENTIFIERS]: 'required|array',
49
+ [PriceBandFindResultFields.COLUMN_ATTRIBUTES]: 'array',
46
50
  };
47
51
  _PriceBandFindResult_actionFlags.set(this, void 0);
48
52
  _PriceBandFindResult_billing.set(this, void 0);
@@ -52,6 +56,7 @@ class PriceBandFindResult extends abstractEntity_1.AbstractEntity {
52
56
  _PriceBandFindResult_prices.set(this, void 0);
53
57
  _PriceBandFindResult_saleConstraints.set(this, void 0);
54
58
  _PriceBandFindResult_identifiers.set(this, void 0);
59
+ _PriceBandFindResult_attributes.set(this, void 0);
55
60
  const actionFlags = {
56
61
  [priceBandActionFlagsFindResult_1.PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED]: data[PriceBandFindResultFields.COLUMN_ACTION_FLAGS][priceBandActionFlagsFindResult_1.PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED],
57
62
  [priceBandActionFlagsFindResult_1.PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED]: data[PriceBandFindResultFields.COLUMN_ACTION_FLAGS][priceBandActionFlagsFindResult_1.PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED],
@@ -86,6 +91,7 @@ class PriceBandFindResult extends abstractEntity_1.AbstractEntity {
86
91
  },
87
92
  };
88
93
  __classPrivateFieldSet(this, _PriceBandFindResult_identifiers, new identifiersFindResult_1.IdentifiersFindResult(identifiers), "f");
94
+ __classPrivateFieldSet(this, _PriceBandFindResult_attributes, (_b = (_a = data[PriceBandFindResultFields.COLUMN_ATTRIBUTES]) === null || _a === void 0 ? void 0 : _a.map((attr) => new attributes_1.Attributes(attr))) !== null && _b !== void 0 ? _b : [], "f");
89
95
  }
90
96
  get actionFlags() {
91
97
  return __classPrivateFieldGet(this, _PriceBandFindResult_actionFlags, "f");
@@ -111,6 +117,9 @@ class PriceBandFindResult extends abstractEntity_1.AbstractEntity {
111
117
  get identifiers() {
112
118
  return __classPrivateFieldGet(this, _PriceBandFindResult_identifiers, "f");
113
119
  }
120
+ get attributes() {
121
+ return __classPrivateFieldGet(this, _PriceBandFindResult_attributes, "f");
122
+ }
114
123
  toJSON() {
115
124
  return {
116
125
  [PriceBandFindResultFields.COLUMN_ACTION_FLAGS]: this.actionFlags.toJSON(),
@@ -121,9 +130,10 @@ class PriceBandFindResult extends abstractEntity_1.AbstractEntity {
121
130
  [PriceBandFindResultFields.COLUMN_PRICES]: this.prices.toJSON(),
122
131
  [PriceBandFindResultFields.COLUMN_SALE_CONSTRAINTS]: this.saleConstraints.toJSON(),
123
132
  [PriceBandFindResultFields.COLUMN_IDENTIFIERS]: this.identifiers.toJSON(),
133
+ [PriceBandFindResultFields.COLUMN_ATTRIBUTES]: this.attributes.map((attr) => attr.toJSON()),
124
134
  };
125
135
  }
126
136
  }
127
137
  exports.PriceBandFindResult = PriceBandFindResult;
128
- _PriceBandFindResult_actionFlags = new WeakMap(), _PriceBandFindResult_billing = new WeakMap(), _PriceBandFindResult_currency = new WeakMap(), _PriceBandFindResult_isEnabled = new WeakMap(), _PriceBandFindResult_marketplace = new WeakMap(), _PriceBandFindResult_prices = new WeakMap(), _PriceBandFindResult_saleConstraints = new WeakMap(), _PriceBandFindResult_identifiers = new WeakMap();
138
+ _PriceBandFindResult_actionFlags = new WeakMap(), _PriceBandFindResult_billing = new WeakMap(), _PriceBandFindResult_currency = new WeakMap(), _PriceBandFindResult_isEnabled = new WeakMap(), _PriceBandFindResult_marketplace = new WeakMap(), _PriceBandFindResult_prices = new WeakMap(), _PriceBandFindResult_saleConstraints = new WeakMap(), _PriceBandFindResult_identifiers = new WeakMap(), _PriceBandFindResult_attributes = new WeakMap();
129
139
  //# sourceMappingURL=priceBandFindResult.js.map
@@ -0,0 +1,33 @@
1
+ import { DataKeywords, FiltersParameters, SortParameters } from '../../../licensesClient';
2
+ import { AbstractEntity } from '../../../../abstractEntity';
3
+ export declare enum AttributesFields {
4
+ COLUMN_NAME = "name",
5
+ COLUMN_VALUE = "value"
6
+ }
7
+ export declare type AttributesData = {
8
+ [AttributesFields.COLUMN_NAME]: string;
9
+ [AttributesFields.COLUMN_VALUE]?: string | null;
10
+ };
11
+ export declare type AttributesDataKeywords = {
12
+ [AttributesFields.COLUMN_NAME]?: DataKeywords;
13
+ [AttributesFields.COLUMN_VALUE]?: DataKeywords;
14
+ };
15
+ export declare type AttributesDataSortParameters = {
16
+ [AttributesFields.COLUMN_NAME]?: SortParameters;
17
+ [AttributesFields.COLUMN_VALUE]?: SortParameters;
18
+ };
19
+ export declare type AttributesDataFiltersParameters = {
20
+ [AttributesFields.COLUMN_NAME]?: FiltersParameters;
21
+ [AttributesFields.COLUMN_VALUE]?: FiltersParameters;
22
+ };
23
+ export declare class Attributes extends AbstractEntity<AttributesData> {
24
+ #private;
25
+ protected VALIDATION_RULES: {
26
+ name: string;
27
+ value: string;
28
+ };
29
+ constructor(data: AttributesData);
30
+ get name(): string;
31
+ get value(): string | null | undefined;
32
+ toJSON(): AttributesData;
33
+ }
@@ -0,0 +1,49 @@
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 _Attributes_name, _Attributes_value;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Attributes = exports.AttributesFields = void 0;
16
+ const abstractEntity_1 = require("../../../../abstractEntity");
17
+ var AttributesFields;
18
+ (function (AttributesFields) {
19
+ AttributesFields["COLUMN_NAME"] = "name";
20
+ AttributesFields["COLUMN_VALUE"] = "value";
21
+ })(AttributesFields = exports.AttributesFields || (exports.AttributesFields = {}));
22
+ class Attributes extends abstractEntity_1.AbstractEntity {
23
+ constructor(data) {
24
+ super(data);
25
+ this.VALIDATION_RULES = {
26
+ [AttributesFields.COLUMN_NAME]: 'required|string',
27
+ [AttributesFields.COLUMN_VALUE]: 'string',
28
+ };
29
+ _Attributes_name.set(this, void 0);
30
+ _Attributes_value.set(this, void 0);
31
+ __classPrivateFieldSet(this, _Attributes_name, data[AttributesFields.COLUMN_NAME], "f");
32
+ __classPrivateFieldSet(this, _Attributes_value, data[AttributesFields.COLUMN_VALUE], "f");
33
+ }
34
+ get name() {
35
+ return __classPrivateFieldGet(this, _Attributes_name, "f");
36
+ }
37
+ get value() {
38
+ return __classPrivateFieldGet(this, _Attributes_value, "f");
39
+ }
40
+ toJSON() {
41
+ return {
42
+ [AttributesFields.COLUMN_NAME]: this.name,
43
+ [AttributesFields.COLUMN_VALUE]: this.value,
44
+ };
45
+ }
46
+ }
47
+ exports.Attributes = Attributes;
48
+ _Attributes_name = new WeakMap(), _Attributes_value = new WeakMap();
49
+ //# sourceMappingURL=attributes.js.map
@@ -33,6 +33,7 @@ export * from './entities/license/securityFindResult';
33
33
  export * from './entities/license/upgradeResult';
34
34
  export * from './entities/license/warningFindResult';
35
35
  export * from './entities/offer/actionFlagsFindResult';
36
+ export * from './entities/offer/priceband/attributes';
36
37
  export * from './entities/offer/offerFindResult';
37
38
  export * from './entities/offer/priceBandFindResult';
38
39
  export * from './entities/offer/priceband/billingFindResult';
@@ -49,6 +49,7 @@ __exportStar(require("./entities/license/securityFindResult"), exports);
49
49
  __exportStar(require("./entities/license/upgradeResult"), exports);
50
50
  __exportStar(require("./entities/license/warningFindResult"), exports);
51
51
  __exportStar(require("./entities/offer/actionFlagsFindResult"), exports);
52
+ __exportStar(require("./entities/offer/priceband/attributes"), exports);
52
53
  __exportStar(require("./entities/offer/offerFindResult"), exports);
53
54
  __exportStar(require("./entities/offer/priceBandFindResult"), exports);
54
55
  __exportStar(require("./entities/offer/priceband/billingFindResult"), 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.388.0",
7
+ "version": "3.389.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",