@arrowsphere/api-client 3.381.0-rc-cpe-1 → 3.382.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,18 @@
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.382.0] - 2026.07.10
7
+ ### Added
8
+ - [order] Add `bundleArrowSphereSku` and `bundleUuid` to `OrderProductsType` structure
9
+
10
+ ## [3.381.0] - 2026.07.07
11
+ ### Added
12
+ - [cart] Add the `changeCustomer` endpoint.
13
+
14
+ ## [3.380.1] - 2026.06.30
15
+ ### Fixed
16
+ - [partners] Fix custom billing field sorting: send `perPage`, `sortBy` and `orderBy` query parameters as is camelCase
17
+
6
18
  ## [3.380.0] - 2026.06.26
7
19
  ### Added
8
20
  - [register] Add `bundleUuid` and `bundleArrowSphereSku` to `CreateOrderInputFields` structure
@@ -15,6 +15,7 @@ export declare enum ItemRequestFields {
15
15
  ITEM_ID = "itemId",
16
16
  OFFER_NAME = "offerName",
17
17
  PRICE_BAND_ARROWSPHERE_SKU = "priceBandArrowsphereSku",
18
+ PRICE_BAND_VENDOR_SKU = "pricebandVendorSku",
18
19
  PRICES = "prices",
19
20
  PRICES_WITHOUT_PROMOTION = "pricesWithoutPromotion",
20
21
  QUANTITY = "quantity",
@@ -35,6 +36,7 @@ export declare type ItemAdditionalDataRequestType = {
35
36
  export declare type ItemRequestType = {
36
37
  [ItemRequestFields.OFFER_NAME]: string;
37
38
  [ItemRequestFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
39
+ [ItemRequestFields.PRICE_BAND_VENDOR_SKU]?: string;
38
40
  [ItemRequestFields.QUANTITY]: number;
39
41
  [ItemRequestFields.ADDITIONAL_DATA]?: ItemAdditionalDataRequestType[];
40
42
  [ItemRequestFields.USERNAME]?: string;
@@ -47,6 +49,9 @@ export declare type ItemBundleRequestType = {
47
49
  [ItemRequestFields.ADDITIONAL_DATA]?: ItemAdditionalDataRequestType[];
48
50
  };
49
51
  export declare type ItemAddRequestType = ItemRequestType | ItemBundleRequestType;
52
+ export declare type ChangeCustomerRequestType = {
53
+ customerRef: string;
54
+ };
50
55
  export declare type ItemUpdateRequestType = {
51
56
  [ItemRequestFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
52
57
  [ItemRequestFields.QUANTITY]: number;
@@ -55,6 +60,7 @@ export declare type ItemUpdateRequestType = {
55
60
  export declare class CartClient extends AbstractRestfulClient {
56
61
  protected basePath: string;
57
62
  addItem(postData: ItemAddRequestType, parameters?: Parameters): Promise<GetResult<Item>>;
63
+ changeCustomer(postData: ChangeCustomerRequestType, parameters?: Parameters): Promise<GetResult<ItemList>>;
58
64
  checkPromotion(parameters?: Parameters): Promise<GetResult<GetPromotionCartListResult>>;
59
65
  checkPrerequisites(itemId: string, parameters?: Parameters): Promise<GetResult<GetPrerequisitesListResult>>;
60
66
  updateItem(itemId: string, postData: ItemUpdateRequestType, parameters?: Parameters): Promise<GetResult<Item>>;
@@ -19,6 +19,7 @@ var ItemRequestFields;
19
19
  ItemRequestFields["ITEM_ID"] = "itemId";
20
20
  ItemRequestFields["OFFER_NAME"] = "offerName";
21
21
  ItemRequestFields["PRICE_BAND_ARROWSPHERE_SKU"] = "priceBandArrowsphereSku";
22
+ ItemRequestFields["PRICE_BAND_VENDOR_SKU"] = "pricebandVendorSku";
22
23
  ItemRequestFields["PRICES"] = "prices";
23
24
  ItemRequestFields["PRICES_WITHOUT_PROMOTION"] = "pricesWithoutPromotion";
24
25
  ItemRequestFields["QUANTITY"] = "quantity";
@@ -38,6 +39,12 @@ class CartClient extends abstractRestfulClient_1.AbstractRestfulClient {
38
39
  async addItem(postData, parameters = {}) {
39
40
  return new getResult_1.GetResult(entities_1.Item, await this.post(postData, parameters));
40
41
  }
42
+ async changeCustomer(postData, parameters = {}) {
43
+ var _a;
44
+ this.path =
45
+ '/changeCustomer/?withPrices=' + ((_a = parameters.withPrices) !== null && _a !== void 0 ? _a : false);
46
+ return new getResult_1.GetResult(entities_1.ItemList, await this.post(postData));
47
+ }
41
48
  async checkPromotion(parameters = {}) {
42
49
  this.path = '/check-promotion';
43
50
  return new getResult_1.GetResult(promotionList_1.GetPromotionCartListResult, await this.get(parameters));
@@ -24,6 +24,7 @@ export declare enum ItemFields {
24
24
  ITEM_ID = "itemId",
25
25
  OFFER_NAME = "offerName",
26
26
  PRICE_BAND_ARROWSPHERE_SKU = "priceBandArrowsphereSku",
27
+ PRICE_BAND_VENDOR_SKU = "pricebandVendorSku",
27
28
  PRICES = "prices",
28
29
  PRICES_WITHOUT_PROMOTION = "pricesWithoutPromotion",
29
30
  QUANTITY = "quantity",
@@ -40,6 +41,7 @@ export declare type ItemType = {
40
41
  [ItemFields.ITEM_ID]: string;
41
42
  [ItemFields.OFFER_NAME]: string;
42
43
  [ItemFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
44
+ [ItemFields.PRICE_BAND_VENDOR_SKU]?: string;
43
45
  [ItemFields.PRICES]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
44
46
  [ItemFields.PRICES_WITHOUT_PROMOTION]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
45
47
  [ItemFields.QUANTITY]: number;
@@ -60,6 +62,7 @@ export declare class Item extends AbstractEntity<ItemType> {
60
62
  get itemId(): string;
61
63
  get offerName(): string;
62
64
  get priceBandArrowsphereSku(): string;
65
+ get pricebandVendorSku(): string | undefined;
63
66
  get prices(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
64
67
  get pricesWithoutPromotion(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
65
68
  get quantity(): number;
@@ -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 _Item_additionalData, _Item_cotermPrices, _Item_cotermPricesWithoutPromotion, _Item_currency, _Item_isAddon, _Item_isBundle, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_prices, _Item_pricesWithoutPromotion, _Item_quantity, _Item_rules, _Item_bundleArrowSphereSku, _Item_basePriceBands;
13
+ var _Item_additionalData, _Item_cotermPrices, _Item_cotermPricesWithoutPromotion, _Item_currency, _Item_isAddon, _Item_isBundle, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_pricebandVendorSku, _Item_prices, _Item_pricesWithoutPromotion, _Item_quantity, _Item_rules, _Item_bundleArrowSphereSku, _Item_basePriceBands;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Item = exports.ItemFields = exports.ItemAdditionalDataFields = void 0;
16
16
  const abstractEntity_1 = require("../../abstractEntity");
@@ -33,6 +33,7 @@ var ItemFields;
33
33
  ItemFields["ITEM_ID"] = "itemId";
34
34
  ItemFields["OFFER_NAME"] = "offerName";
35
35
  ItemFields["PRICE_BAND_ARROWSPHERE_SKU"] = "priceBandArrowsphereSku";
36
+ ItemFields["PRICE_BAND_VENDOR_SKU"] = "pricebandVendorSku";
36
37
  ItemFields["PRICES"] = "prices";
37
38
  ItemFields["PRICES_WITHOUT_PROMOTION"] = "pricesWithoutPromotion";
38
39
  ItemFields["QUANTITY"] = "quantity";
@@ -52,6 +53,7 @@ class Item extends abstractEntity_1.AbstractEntity {
52
53
  _Item_itemId.set(this, void 0);
53
54
  _Item_offerName.set(this, void 0);
54
55
  _Item_priceBandArrowsphereSku.set(this, void 0);
56
+ _Item_pricebandVendorSku.set(this, void 0);
55
57
  _Item_prices.set(this, void 0);
56
58
  _Item_pricesWithoutPromotion.set(this, void 0);
57
59
  _Item_quantity.set(this, void 0);
@@ -68,6 +70,7 @@ class Item extends abstractEntity_1.AbstractEntity {
68
70
  __classPrivateFieldSet(this, _Item_itemId, itemResponse[ItemFields.ITEM_ID], "f");
69
71
  __classPrivateFieldSet(this, _Item_offerName, itemResponse[ItemFields.OFFER_NAME], "f");
70
72
  __classPrivateFieldSet(this, _Item_priceBandArrowsphereSku, itemResponse[ItemFields.PRICE_BAND_ARROWSPHERE_SKU], "f");
73
+ __classPrivateFieldSet(this, _Item_pricebandVendorSku, itemResponse[ItemFields.PRICE_BAND_VENDOR_SKU], "f");
71
74
  __classPrivateFieldSet(this, _Item_prices, itemResponse[ItemFields.PRICES], "f");
72
75
  __classPrivateFieldSet(this, _Item_pricesWithoutPromotion, itemResponse[ItemFields.PRICES_WITHOUT_PROMOTION], "f");
73
76
  __classPrivateFieldSet(this, _Item_quantity, itemResponse[ItemFields.QUANTITY], "f");
@@ -105,6 +108,9 @@ class Item extends abstractEntity_1.AbstractEntity {
105
108
  get priceBandArrowsphereSku() {
106
109
  return __classPrivateFieldGet(this, _Item_priceBandArrowsphereSku, "f");
107
110
  }
111
+ get pricebandVendorSku() {
112
+ return __classPrivateFieldGet(this, _Item_pricebandVendorSku, "f");
113
+ }
108
114
  get prices() {
109
115
  return __classPrivateFieldGet(this, _Item_prices, "f");
110
116
  }
@@ -137,6 +143,7 @@ class Item extends abstractEntity_1.AbstractEntity {
137
143
  [ItemFields.ITEM_ID]: this.itemId,
138
144
  [ItemFields.OFFER_NAME]: this.offerName,
139
145
  [ItemFields.PRICE_BAND_ARROWSPHERE_SKU]: this.priceBandArrowsphereSku,
146
+ [ItemFields.PRICE_BAND_VENDOR_SKU]: this.pricebandVendorSku,
140
147
  [ItemFields.PRICES]: this.prices,
141
148
  [ItemFields.PRICES_WITHOUT_PROMOTION]: this.pricesWithoutPromotion,
142
149
  [ItemFields.QUANTITY]: this.quantity,
@@ -147,5 +154,5 @@ class Item extends abstractEntity_1.AbstractEntity {
147
154
  }
148
155
  }
149
156
  exports.Item = Item;
150
- _Item_additionalData = new WeakMap(), _Item_cotermPrices = new WeakMap(), _Item_cotermPricesWithoutPromotion = new WeakMap(), _Item_currency = new WeakMap(), _Item_isAddon = new WeakMap(), _Item_isBundle = new WeakMap(), _Item_isTrial = new WeakMap(), _Item_itemId = new WeakMap(), _Item_offerName = new WeakMap(), _Item_priceBandArrowsphereSku = new WeakMap(), _Item_prices = new WeakMap(), _Item_pricesWithoutPromotion = new WeakMap(), _Item_quantity = new WeakMap(), _Item_rules = new WeakMap(), _Item_bundleArrowSphereSku = new WeakMap(), _Item_basePriceBands = new WeakMap();
157
+ _Item_additionalData = new WeakMap(), _Item_cotermPrices = new WeakMap(), _Item_cotermPricesWithoutPromotion = new WeakMap(), _Item_currency = new WeakMap(), _Item_isAddon = new WeakMap(), _Item_isBundle = new WeakMap(), _Item_isTrial = new WeakMap(), _Item_itemId = new WeakMap(), _Item_offerName = new WeakMap(), _Item_priceBandArrowsphereSku = new WeakMap(), _Item_pricebandVendorSku = new WeakMap(), _Item_prices = new WeakMap(), _Item_pricesWithoutPromotion = new WeakMap(), _Item_quantity = new WeakMap(), _Item_rules = new WeakMap(), _Item_bundleArrowSphereSku = new WeakMap(), _Item_basePriceBands = new WeakMap();
151
158
  //# sourceMappingURL=item.js.map
@@ -1,4 +1 @@
1
1
  export * from './monitoringClient';
2
- export * from './entities/alert/alert';
3
- export * from './entities/alert/createAlert';
4
- export * from './entities/alert/listAlert';
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./monitoringClient"), exports);
18
- __exportStar(require("./entities/alert/alert"), exports);
19
- __exportStar(require("./entities/alert/createAlert"), exports);
20
- __exportStar(require("./entities/alert/listAlert"), exports);
21
18
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,4 @@
1
- import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
2
- import { Alert, AlertFields, AlertFilters, AlertFormatEnum, AlertFrequencyEnum } from './entities/alert/alert';
3
- import { CreateAlert } from './entities/alert/createAlert';
4
- import { GetResult } from '../getResult';
5
- import { AlertList } from './entities/alert/listAlert';
1
+ import { AbstractRestfulClient } from '../abstractRestfulClient';
6
2
  export declare type ReportMonitoringType = {
7
3
  body: {
8
4
  [keys in string]: string | number | null;
@@ -11,15 +7,6 @@ export declare type ReportMonitoringType = {
11
7
  userAgent: string;
12
8
  type: string;
13
9
  };
14
- export declare type CreateAlertPayload = {
15
- [AlertFields.COLUMN_CATEGORY_ID]: number;
16
- [AlertFields.COLUMN_NAME]: string;
17
- [AlertFields.COLUMN_FREQUENCY]: AlertFrequencyEnum;
18
- [AlertFields.COLUMN_RECIPIENT]: string;
19
- [AlertFields.COLUMN_FORMAT]: AlertFormatEnum;
20
- [AlertFields.COLUMN_FILTERS]: AlertFilters;
21
- };
22
- export declare type UpdateAlertPayload = Partial<Omit<CreateAlertPayload, AlertFields.COLUMN_CATEGORY_ID>>;
23
10
  export declare class MonitoringClient extends AbstractRestfulClient {
24
11
  /**
25
12
  * The base path of the API
@@ -29,14 +16,5 @@ export declare class MonitoringClient extends AbstractRestfulClient {
29
16
  * The path of the report endpoint
30
17
  */
31
18
  private REPORT_PATH;
32
- /**
33
- * The path of the alert endpoint
34
- */
35
- private ALERT_PATH;
36
19
  sendReport(report: ReportMonitoringType): Promise<void>;
37
- createAlert(payload: CreateAlertPayload): Promise<GetResult<CreateAlert>>;
38
- listAlerts(parameters?: Parameters): Promise<GetResult<AlertList>>;
39
- getAlert(alertId: number): Promise<GetResult<Alert>>;
40
- updateAlert(alertId: number, payload: UpdateAlertPayload): Promise<GetResult<Alert>>;
41
- deleteAlert(alertId: number): Promise<void>;
42
20
  }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MonitoringClient = void 0;
4
4
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
- const alert_1 = require("./entities/alert/alert");
6
5
  class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
7
6
  constructor() {
8
7
  super(...arguments);
@@ -14,35 +13,11 @@ class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
14
13
  * The path of the report endpoint
15
14
  */
16
15
  this.REPORT_PATH = '/report';
17
- /**
18
- * The path of the alert endpoint
19
- */
20
- this.ALERT_PATH = '/alerts';
21
16
  }
22
17
  sendReport(report) {
23
18
  this.path = this.REPORT_PATH;
24
19
  return this.post(report);
25
20
  }
26
- createAlert(payload) {
27
- this.path = this.ALERT_PATH;
28
- return this.post(payload);
29
- }
30
- listAlerts(parameters = {}) {
31
- this.path = this.ALERT_PATH;
32
- return this.get(parameters);
33
- }
34
- getAlert(alertId) {
35
- this.path = this.ALERT_PATH + `/${alertId}`;
36
- return this.get();
37
- }
38
- updateAlert(alertId, payload) {
39
- this.path = this.ALERT_PATH + `/${alertId}`;
40
- return this.patch(payload);
41
- }
42
- deleteAlert(alertId) {
43
- this.path = this.ALERT_PATH + `/${alertId}`;
44
- return this.delete();
45
- }
46
21
  }
47
22
  exports.MonitoringClient = MonitoringClient;
48
23
  //# sourceMappingURL=monitoringClient.js.map
@@ -8,55 +8,59 @@ import { OrganizationUnit, OrganizationUnitType } from './organizationUnit/organ
8
8
  import { Family, FamilyType } from './family/family';
9
9
  import { BusinessRuleEffectType, PricingRules } from './pricingRules/pricingRules';
10
10
  export declare enum OrderProductsFields {
11
- COLUMN_SKU = "sku",
12
- COLUMN_QUANTITY = "quantity",
13
- COLUMN_STATUS = "status",
11
+ COLUMN_ARROWSUBCATEGORIES = "arrowSubCategories",
12
+ COLUMN_BUNDLE_ARROW_SKU = "bundleArrowSphereSku",
13
+ COLUMN_BUNDLE_UUID = "bundleUuid",
14
+ COLUMN_CLASSIFICATION = "classification",
14
15
  COLUMN_CREATION_DATE = "creationDate",
15
16
  COLUMN_DATESTATUS = "dateStatus",
16
17
  COLUMN_DETAILEDSTATUS = "detailedStatus",
17
18
  COLUMN_FAMILY = "family",
19
+ COLUMN_IDENTIFIERS = "identifiers",
18
20
  COLUMN_IS_ADDON = "isAddon",
19
- COLUMN_ARROWSUBCATEGORIES = "arrowSubCategories",
20
21
  COLUMN_IS_TRIAL = "isTrial",
21
- COLUMN_PRICES = "prices",
22
- COLUMN_SUBSCRIPTION = "subscription",
23
22
  COLUMN_LICENSE = "license",
24
23
  COLUMN_NAME = "name",
25
- COLUMN_CLASSIFICATION = "classification",
26
- COLUMN_PROGRAM = "program",
27
- COLUMN_IDENTIFIERS = "identifiers",
28
- COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
29
24
  COLUMN_ORGANIZATION_UNIT = "organizationUnit",
25
+ COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
26
+ COLUMN_PRICES = "prices",
30
27
  COLUMN_PRICE_BAND = "priceBand",
31
28
  COLUMN_PRICING_RULES = "pricingRules",
29
+ COLUMN_PROGRAM = "program",
32
30
  COLUMN_PROGRAM_NAME = "programName",
31
+ COLUMN_QUANTITY = "quantity",
32
+ COLUMN_SKU = "sku",
33
33
  COLUMN_SOURCE = "source",
34
+ COLUMN_STATUS = "status",
35
+ COLUMN_SUBSCRIPTION = "subscription",
34
36
  COLUMN_VENDOR_NAME = "vendorName"
35
37
  }
36
38
  export declare type OrderProductsType = {
37
- [OrderProductsFields.COLUMN_SKU]: string;
38
- [OrderProductsFields.COLUMN_QUANTITY]: number;
39
- [OrderProductsFields.COLUMN_STATUS]: string;
39
+ [OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]?: Array<string>;
40
+ [OrderProductsFields.COLUMN_BUNDLE_ARROW_SKU]?: string;
41
+ [OrderProductsFields.COLUMN_BUNDLE_UUID]?: string;
42
+ [OrderProductsFields.COLUMN_CLASSIFICATION]: string;
40
43
  [OrderProductsFields.COLUMN_CREATION_DATE]?: string;
41
44
  [OrderProductsFields.COLUMN_DATESTATUS]: string;
42
45
  [OrderProductsFields.COLUMN_DETAILEDSTATUS]: string;
43
46
  [OrderProductsFields.COLUMN_FAMILY]: FamilyType;
47
+ [OrderProductsFields.COLUMN_IDENTIFIERS]: ProductIdentifiersType;
44
48
  [OrderProductsFields.COLUMN_IS_ADDON]: boolean;
45
- [OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]?: Array<string>;
46
49
  [OrderProductsFields.COLUMN_IS_TRIAL]: boolean;
47
- [OrderProductsFields.COLUMN_PRICES]: ProductPricesType;
48
- [OrderProductsFields.COLUMN_SUBSCRIPTION]?: ReferenceLinkType;
49
50
  [OrderProductsFields.COLUMN_LICENSE]: ReferenceLinkType;
50
51
  [OrderProductsFields.COLUMN_NAME]: string;
51
- [OrderProductsFields.COLUMN_CLASSIFICATION]: string;
52
- [OrderProductsFields.COLUMN_PROGRAM]: ProductProgramType;
53
- [OrderProductsFields.COLUMN_IDENTIFIERS]: ProductIdentifiersType;
54
- [OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
55
52
  [OrderProductsFields.COLUMN_ORGANIZATION_UNIT]?: OrganizationUnitType;
53
+ [OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
54
+ [OrderProductsFields.COLUMN_PRICES]: ProductPricesType;
56
55
  [OrderProductsFields.COLUMN_PRICE_BAND]?: PriceBandData;
57
56
  [OrderProductsFields.COLUMN_PRICING_RULES]: Array<BusinessRuleEffectType>;
57
+ [OrderProductsFields.COLUMN_PROGRAM]: ProductProgramType;
58
58
  [OrderProductsFields.COLUMN_PROGRAM_NAME]?: string;
59
+ [OrderProductsFields.COLUMN_QUANTITY]: number;
60
+ [OrderProductsFields.COLUMN_SKU]: string;
59
61
  [OrderProductsFields.COLUMN_SOURCE]?: string;
62
+ [OrderProductsFields.COLUMN_STATUS]: string;
63
+ [OrderProductsFields.COLUMN_SUBSCRIPTION]?: ReferenceLinkType;
60
64
  [OrderProductsFields.COLUMN_VENDOR_NAME]?: string;
61
65
  };
62
66
  export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
@@ -24,29 +24,31 @@ const family_1 = require("./family/family");
24
24
  const pricingRules_1 = require("./pricingRules/pricingRules");
25
25
  var OrderProductsFields;
26
26
  (function (OrderProductsFields) {
27
- OrderProductsFields["COLUMN_SKU"] = "sku";
28
- OrderProductsFields["COLUMN_QUANTITY"] = "quantity";
29
- OrderProductsFields["COLUMN_STATUS"] = "status";
27
+ OrderProductsFields["COLUMN_ARROWSUBCATEGORIES"] = "arrowSubCategories";
28
+ OrderProductsFields["COLUMN_BUNDLE_ARROW_SKU"] = "bundleArrowSphereSku";
29
+ OrderProductsFields["COLUMN_BUNDLE_UUID"] = "bundleUuid";
30
+ OrderProductsFields["COLUMN_CLASSIFICATION"] = "classification";
30
31
  OrderProductsFields["COLUMN_CREATION_DATE"] = "creationDate";
31
32
  OrderProductsFields["COLUMN_DATESTATUS"] = "dateStatus";
32
33
  OrderProductsFields["COLUMN_DETAILEDSTATUS"] = "detailedStatus";
33
34
  OrderProductsFields["COLUMN_FAMILY"] = "family";
35
+ OrderProductsFields["COLUMN_IDENTIFIERS"] = "identifiers";
34
36
  OrderProductsFields["COLUMN_IS_ADDON"] = "isAddon";
35
- OrderProductsFields["COLUMN_ARROWSUBCATEGORIES"] = "arrowSubCategories";
36
37
  OrderProductsFields["COLUMN_IS_TRIAL"] = "isTrial";
37
- OrderProductsFields["COLUMN_PRICES"] = "prices";
38
- OrderProductsFields["COLUMN_SUBSCRIPTION"] = "subscription";
39
38
  OrderProductsFields["COLUMN_LICENSE"] = "license";
40
39
  OrderProductsFields["COLUMN_NAME"] = "name";
41
- OrderProductsFields["COLUMN_CLASSIFICATION"] = "classification";
42
- OrderProductsFields["COLUMN_PROGRAM"] = "program";
43
- OrderProductsFields["COLUMN_IDENTIFIERS"] = "identifiers";
44
- OrderProductsFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
45
40
  OrderProductsFields["COLUMN_ORGANIZATION_UNIT"] = "organizationUnit";
41
+ OrderProductsFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
42
+ OrderProductsFields["COLUMN_PRICES"] = "prices";
46
43
  OrderProductsFields["COLUMN_PRICE_BAND"] = "priceBand";
47
44
  OrderProductsFields["COLUMN_PRICING_RULES"] = "pricingRules";
45
+ OrderProductsFields["COLUMN_PROGRAM"] = "program";
48
46
  OrderProductsFields["COLUMN_PROGRAM_NAME"] = "programName";
47
+ OrderProductsFields["COLUMN_QUANTITY"] = "quantity";
48
+ OrderProductsFields["COLUMN_SKU"] = "sku";
49
49
  OrderProductsFields["COLUMN_SOURCE"] = "source";
50
+ OrderProductsFields["COLUMN_STATUS"] = "status";
51
+ OrderProductsFields["COLUMN_SUBSCRIPTION"] = "subscription";
50
52
  OrderProductsFields["COLUMN_VENDOR_NAME"] = "vendorName";
51
53
  })(OrderProductsFields = exports.OrderProductsFields || (exports.OrderProductsFields = {}));
52
54
  class OrderProduct extends abstractEntity_1.AbstractEntity {
@@ -144,9 +144,9 @@ export declare enum GetCustomFieldListFiltersFields {
144
144
  COLUMN_CREATED_BY = "createdBy",
145
145
  COLUMN_CREATED_AT = "createdAt",
146
146
  COLUMN_PAGE = "page",
147
- COLUMN_PER_PAGE = "per_page",
148
- COLUMN_SORT_BY = "sort_by",
149
- COLUMN_ORDER_BY = "order_by"
147
+ COLUMN_PER_PAGE = "perPage",
148
+ COLUMN_SORT_BY = "sortBy",
149
+ COLUMN_ORDER_BY = "orderBy"
150
150
  }
151
151
  export declare enum CustomFieldSortByEnum {
152
152
  LABEL = "label",
@@ -90,9 +90,9 @@ var GetCustomFieldListFiltersFields;
90
90
  GetCustomFieldListFiltersFields["COLUMN_CREATED_BY"] = "createdBy";
91
91
  GetCustomFieldListFiltersFields["COLUMN_CREATED_AT"] = "createdAt";
92
92
  GetCustomFieldListFiltersFields["COLUMN_PAGE"] = "page";
93
- GetCustomFieldListFiltersFields["COLUMN_PER_PAGE"] = "per_page";
94
- GetCustomFieldListFiltersFields["COLUMN_SORT_BY"] = "sort_by";
95
- GetCustomFieldListFiltersFields["COLUMN_ORDER_BY"] = "order_by";
93
+ GetCustomFieldListFiltersFields["COLUMN_PER_PAGE"] = "perPage";
94
+ GetCustomFieldListFiltersFields["COLUMN_SORT_BY"] = "sortBy";
95
+ GetCustomFieldListFiltersFields["COLUMN_ORDER_BY"] = "orderBy";
96
96
  })(GetCustomFieldListFiltersFields = exports.GetCustomFieldListFiltersFields || (exports.GetCustomFieldListFiltersFields = {}));
97
97
  var CustomFieldSortByEnum;
98
98
  (function (CustomFieldSortByEnum) {
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.381.0-rc-cpe-1",
7
+ "version": "3.382.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,69 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- export declare enum AlertFrequencyEnum {
3
- DAILY = "Daily",
4
- MONTHLY = "Monthly",
5
- WEEKLY = "Weekly",
6
- ONE_TIME = "One time"
7
- }
8
- export declare enum AlertFormatEnum {
9
- CSV = "csv",
10
- XLSX = "xlsx"
11
- }
12
- export declare enum RenewalAlertWhenEnum {
13
- END_OF_MONTH = "End of the month",
14
- IN_TWO_MONTH = "In 2 Months",
15
- IN_A_YEAR = "In a Year",
16
- EXPIRED = "Expired"
17
- }
18
- export declare enum AlertFields {
19
- COLUMN_ID = "id",
20
- COLUMN_CATEGORY_ID = "categoryId",
21
- COLUMN_NAME = "name",
22
- COLUMN_FREQUENCY = "frequency",
23
- COLUMN_RECIPIENT = "recipient",
24
- COLUMN_FORMAT = "format",
25
- COLUMN_FILTERS = "filters"
26
- }
27
- export declare type AlertType = {
28
- [AlertFields.COLUMN_ID]: number;
29
- [AlertFields.COLUMN_CATEGORY_ID]: number;
30
- [AlertFields.COLUMN_NAME]: string;
31
- [AlertFields.COLUMN_FREQUENCY]: AlertFrequencyEnum;
32
- [AlertFields.COLUMN_RECIPIENT]: string;
33
- [AlertFields.COLUMN_FORMAT]: AlertFormatEnum;
34
- [AlertFields.COLUMN_FILTERS]: AlertFilters;
35
- };
36
- export declare enum AlertFiltersFields {
37
- COLUMN_RENEWAL = "renewal"
38
- }
39
- export declare type AlertFilters = {
40
- [AlertFiltersFields.COLUMN_RENEWAL]: RenewalFilters;
41
- };
42
- export declare enum FiltersFields {
43
- COLUMN_END_CUSTOMERS = "endCustomers",
44
- COLUMN_VENDOR = "vendor",
45
- COLUMN_WHEN = "when",
46
- COLUMN_CLASSIFICATION = "classification",
47
- COLUMN_ONLY_AUTO_RENEWAL = "onlyAutoRenewal",
48
- COLUMN_ONLY_PRICE_CHANGE = "onlyPriceChange"
49
- }
50
- export declare type RenewalFilters = {
51
- [FiltersFields.COLUMN_END_CUSTOMERS]?: string[];
52
- [FiltersFields.COLUMN_VENDOR]?: string;
53
- [FiltersFields.COLUMN_WHEN]?: RenewalAlertWhenEnum;
54
- [FiltersFields.COLUMN_CLASSIFICATION]?: string;
55
- [FiltersFields.COLUMN_ONLY_AUTO_RENEWAL]?: boolean;
56
- [FiltersFields.COLUMN_ONLY_PRICE_CHANGE]?: boolean;
57
- };
58
- export declare class Alert extends AbstractEntity<AlertType> {
59
- #private;
60
- constructor(data: AlertType);
61
- get id(): number;
62
- get categoryId(): number;
63
- get name(): string;
64
- get frequency(): AlertFrequencyEnum;
65
- get recipient(): string;
66
- get format(): AlertFormatEnum;
67
- get filters(): AlertFilters;
68
- toJSON(): AlertType;
69
- }
@@ -1,112 +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 _Alert_id, _Alert_categoryId, _Alert_name, _Alert_frequency, _Alert_recipient, _Alert_format, _Alert_filters;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.Alert = exports.FiltersFields = exports.AlertFiltersFields = exports.AlertFields = exports.RenewalAlertWhenEnum = exports.AlertFormatEnum = exports.AlertFrequencyEnum = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- var AlertFrequencyEnum;
18
- (function (AlertFrequencyEnum) {
19
- AlertFrequencyEnum["DAILY"] = "Daily";
20
- AlertFrequencyEnum["MONTHLY"] = "Monthly";
21
- AlertFrequencyEnum["WEEKLY"] = "Weekly";
22
- AlertFrequencyEnum["ONE_TIME"] = "One time";
23
- })(AlertFrequencyEnum = exports.AlertFrequencyEnum || (exports.AlertFrequencyEnum = {}));
24
- var AlertFormatEnum;
25
- (function (AlertFormatEnum) {
26
- AlertFormatEnum["CSV"] = "csv";
27
- AlertFormatEnum["XLSX"] = "xlsx";
28
- })(AlertFormatEnum = exports.AlertFormatEnum || (exports.AlertFormatEnum = {}));
29
- var RenewalAlertWhenEnum;
30
- (function (RenewalAlertWhenEnum) {
31
- RenewalAlertWhenEnum["END_OF_MONTH"] = "End of the month";
32
- RenewalAlertWhenEnum["IN_TWO_MONTH"] = "In 2 Months";
33
- RenewalAlertWhenEnum["IN_A_YEAR"] = "In a Year";
34
- RenewalAlertWhenEnum["EXPIRED"] = "Expired";
35
- })(RenewalAlertWhenEnum = exports.RenewalAlertWhenEnum || (exports.RenewalAlertWhenEnum = {}));
36
- var AlertFields;
37
- (function (AlertFields) {
38
- AlertFields["COLUMN_ID"] = "id";
39
- AlertFields["COLUMN_CATEGORY_ID"] = "categoryId";
40
- AlertFields["COLUMN_NAME"] = "name";
41
- AlertFields["COLUMN_FREQUENCY"] = "frequency";
42
- AlertFields["COLUMN_RECIPIENT"] = "recipient";
43
- AlertFields["COLUMN_FORMAT"] = "format";
44
- AlertFields["COLUMN_FILTERS"] = "filters";
45
- })(AlertFields = exports.AlertFields || (exports.AlertFields = {}));
46
- var AlertFiltersFields;
47
- (function (AlertFiltersFields) {
48
- AlertFiltersFields["COLUMN_RENEWAL"] = "renewal";
49
- })(AlertFiltersFields = exports.AlertFiltersFields || (exports.AlertFiltersFields = {}));
50
- var FiltersFields;
51
- (function (FiltersFields) {
52
- FiltersFields["COLUMN_END_CUSTOMERS"] = "endCustomers";
53
- FiltersFields["COLUMN_VENDOR"] = "vendor";
54
- FiltersFields["COLUMN_WHEN"] = "when";
55
- FiltersFields["COLUMN_CLASSIFICATION"] = "classification";
56
- FiltersFields["COLUMN_ONLY_AUTO_RENEWAL"] = "onlyAutoRenewal";
57
- FiltersFields["COLUMN_ONLY_PRICE_CHANGE"] = "onlyPriceChange";
58
- })(FiltersFields = exports.FiltersFields || (exports.FiltersFields = {}));
59
- class Alert extends abstractEntity_1.AbstractEntity {
60
- constructor(data) {
61
- super(data);
62
- _Alert_id.set(this, void 0);
63
- _Alert_categoryId.set(this, void 0);
64
- _Alert_name.set(this, void 0);
65
- _Alert_frequency.set(this, void 0);
66
- _Alert_recipient.set(this, void 0);
67
- _Alert_format.set(this, void 0);
68
- _Alert_filters.set(this, void 0);
69
- __classPrivateFieldSet(this, _Alert_id, data.id, "f");
70
- __classPrivateFieldSet(this, _Alert_categoryId, data.categoryId, "f");
71
- __classPrivateFieldSet(this, _Alert_name, data.name, "f");
72
- __classPrivateFieldSet(this, _Alert_frequency, data.frequency, "f");
73
- __classPrivateFieldSet(this, _Alert_recipient, data.recipient, "f");
74
- __classPrivateFieldSet(this, _Alert_format, data.format, "f");
75
- __classPrivateFieldSet(this, _Alert_filters, data.filters, "f");
76
- }
77
- get id() {
78
- return __classPrivateFieldGet(this, _Alert_id, "f");
79
- }
80
- get categoryId() {
81
- return __classPrivateFieldGet(this, _Alert_categoryId, "f");
82
- }
83
- get name() {
84
- return __classPrivateFieldGet(this, _Alert_name, "f");
85
- }
86
- get frequency() {
87
- return __classPrivateFieldGet(this, _Alert_frequency, "f");
88
- }
89
- get recipient() {
90
- return __classPrivateFieldGet(this, _Alert_recipient, "f");
91
- }
92
- get format() {
93
- return __classPrivateFieldGet(this, _Alert_format, "f");
94
- }
95
- get filters() {
96
- return __classPrivateFieldGet(this, _Alert_filters, "f");
97
- }
98
- toJSON() {
99
- return {
100
- [AlertFields.COLUMN_ID]: this.id,
101
- [AlertFields.COLUMN_CATEGORY_ID]: this.categoryId,
102
- [AlertFields.COLUMN_NAME]: this.name,
103
- [AlertFields.COLUMN_FREQUENCY]: this.frequency,
104
- [AlertFields.COLUMN_RECIPIENT]: this.recipient,
105
- [AlertFields.COLUMN_FORMAT]: this.format,
106
- [AlertFields.COLUMN_FILTERS]: this.filters,
107
- };
108
- }
109
- }
110
- exports.Alert = Alert;
111
- _Alert_id = new WeakMap(), _Alert_categoryId = new WeakMap(), _Alert_name = new WeakMap(), _Alert_frequency = new WeakMap(), _Alert_recipient = new WeakMap(), _Alert_format = new WeakMap(), _Alert_filters = new WeakMap();
112
- //# sourceMappingURL=alert.js.map
@@ -1,13 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- export declare enum CreateAlertFields {
3
- COLUMN_ALERT_ID = "alertId"
4
- }
5
- export declare type CreateAlertType = {
6
- [CreateAlertFields.COLUMN_ALERT_ID]: number;
7
- };
8
- export declare class CreateAlert extends AbstractEntity<CreateAlertType> {
9
- #private;
10
- constructor(data: CreateAlertType);
11
- get alertId(): number;
12
- toJSON(): CreateAlertType;
13
- }
@@ -1,38 +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 _CreateAlert_alertId;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.CreateAlert = exports.CreateAlertFields = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- var CreateAlertFields;
18
- (function (CreateAlertFields) {
19
- CreateAlertFields["COLUMN_ALERT_ID"] = "alertId";
20
- })(CreateAlertFields = exports.CreateAlertFields || (exports.CreateAlertFields = {}));
21
- class CreateAlert extends abstractEntity_1.AbstractEntity {
22
- constructor(data) {
23
- super(data);
24
- _CreateAlert_alertId.set(this, void 0);
25
- __classPrivateFieldSet(this, _CreateAlert_alertId, data.alertId, "f");
26
- }
27
- get alertId() {
28
- return __classPrivateFieldGet(this, _CreateAlert_alertId, "f");
29
- }
30
- toJSON() {
31
- return {
32
- [CreateAlertFields.COLUMN_ALERT_ID]: this.alertId,
33
- };
34
- }
35
- }
36
- exports.CreateAlert = CreateAlert;
37
- _CreateAlert_alertId = new WeakMap();
38
- //# sourceMappingURL=createAlert.js.map
@@ -1,9 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- import { Alert, AlertType } from './alert';
3
- export declare type AlertListType = Array<AlertType>;
4
- export declare class AlertList extends AbstractEntity<AlertListType> {
5
- #private;
6
- constructor(data: Array<AlertType>);
7
- get alertList(): Array<Alert>;
8
- toJSON(): AlertListType;
9
- }
@@ -1,33 +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 _AlertList_alertList;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.AlertList = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- const alert_1 = require("./alert");
18
- class AlertList extends abstractEntity_1.AbstractEntity {
19
- constructor(data) {
20
- super(data);
21
- _AlertList_alertList.set(this, void 0);
22
- __classPrivateFieldSet(this, _AlertList_alertList, data.map((alert) => new alert_1.Alert(alert)), "f");
23
- }
24
- get alertList() {
25
- return __classPrivateFieldGet(this, _AlertList_alertList, "f");
26
- }
27
- toJSON() {
28
- return this.alertList.map((alert) => alert.toJSON());
29
- }
30
- }
31
- exports.AlertList = AlertList;
32
- _AlertList_alertList = new WeakMap();
33
- //# sourceMappingURL=listAlert.js.map