@arrowsphere/api-client 3.155.0 → 3.156.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.
@@ -0,0 +1,16 @@
1
+ import { AbstractEntity } from '../../../../../abstractEntity';
2
+ export declare enum OrganizationUnitTypeFields {
3
+ COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
4
+ COLUMN_NAME = "name"
5
+ }
6
+ export declare type OrganizationUnitType = {
7
+ [OrganizationUnitTypeFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
8
+ [OrganizationUnitTypeFields.COLUMN_NAME]?: string;
9
+ };
10
+ export declare class OrganizationUnit extends AbstractEntity<OrganizationUnitType> {
11
+ #private;
12
+ constructor(data: OrganizationUnit);
13
+ get organizationUnitRef(): string | undefined;
14
+ get name(): string | undefined;
15
+ toJSON(): OrganizationUnitType;
16
+ }
@@ -0,0 +1,46 @@
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 _OrganizationUnit_organizationUnitRef, _OrganizationUnit_name;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrganizationUnit = exports.OrganizationUnitTypeFields = void 0;
16
+ const abstractEntity_1 = require("../../../../../abstractEntity");
17
+ var OrganizationUnitTypeFields;
18
+ (function (OrganizationUnitTypeFields) {
19
+ OrganizationUnitTypeFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
20
+ OrganizationUnitTypeFields["COLUMN_NAME"] = "name";
21
+ })(OrganizationUnitTypeFields = exports.OrganizationUnitTypeFields || (exports.OrganizationUnitTypeFields = {}));
22
+ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
23
+ constructor(data) {
24
+ super(data);
25
+ _OrganizationUnit_organizationUnitRef.set(this, void 0);
26
+ _OrganizationUnit_name.set(this, void 0);
27
+ __classPrivateFieldSet(this, _OrganizationUnit_organizationUnitRef, data[OrganizationUnitTypeFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
28
+ __classPrivateFieldSet(this, _OrganizationUnit_name, data[OrganizationUnitTypeFields.COLUMN_NAME], "f");
29
+ }
30
+ get organizationUnitRef() {
31
+ return __classPrivateFieldGet(this, _OrganizationUnit_organizationUnitRef, "f");
32
+ }
33
+ get name() {
34
+ return __classPrivateFieldGet(this, _OrganizationUnit_name, "f");
35
+ }
36
+ toJSON() {
37
+ return {
38
+ [OrganizationUnitTypeFields.COLUMN_ORGANIZATION_UNIT_REF]: this
39
+ .organizationUnitRef,
40
+ [OrganizationUnitTypeFields.COLUMN_NAME]: this.name,
41
+ };
42
+ }
43
+ }
44
+ exports.OrganizationUnit = OrganizationUnit;
45
+ _OrganizationUnit_organizationUnitRef = new WeakMap(), _OrganizationUnit_name = new WeakMap();
46
+ //# sourceMappingURL=organizationUnit.js.map
@@ -4,6 +4,7 @@ import { ProductPrices, ProductPricesType } from './prices/productPrices';
4
4
  import { ProductProgram, ProductProgramType } from './program/productProgram';
5
5
  import { ProductIdentifiers, ProductIdentifiersType } from './identifiers/productIdentifiers';
6
6
  import { PriceBand, PriceBandType } from './priceBand/priceBand';
7
+ import { OrganizationUnit, OrganizationUnitType } from './organizationUnit/organizationUnit';
7
8
  export declare enum OrderProductsFields {
8
9
  COLUMN_SKU = "sku",
9
10
  COLUMN_QUANTITY = "quantity",
@@ -21,6 +22,7 @@ export declare enum OrderProductsFields {
21
22
  COLUMN_PROGRAM = "program",
22
23
  COLUMN_IDENTIFIERS = "identifiers",
23
24
  COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
25
+ COLUMN_ORGANIZATION_UNIT = "organizationUnit",
24
26
  COLUMN_PRICE_BAND = "priceBand"
25
27
  }
26
28
  export declare type OrderProductsType = {
@@ -40,6 +42,7 @@ export declare type OrderProductsType = {
40
42
  [OrderProductsFields.COLUMN_PROGRAM]: ProductProgramType;
41
43
  [OrderProductsFields.COLUMN_IDENTIFIERS]: ProductIdentifiersType;
42
44
  [OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
45
+ [OrderProductsFields.COLUMN_ORGANIZATION_UNIT]?: OrganizationUnitType;
43
46
  [OrderProductsFields.COLUMN_PRICE_BAND]?: PriceBandType;
44
47
  };
45
48
  export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
@@ -62,5 +65,6 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
62
65
  get identifier(): ProductIdentifiers;
63
66
  get organizationUnitRef(): string | undefined;
64
67
  get priceBand(): PriceBand | undefined;
68
+ get organizationUnit(): OrganizationUnit | undefined;
65
69
  toJSON(): OrderProductsType;
66
70
  }
@@ -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 _OrderProduct_sku, _OrderProduct_quantity, _OrderProduct_status, _OrderProduct_dateStatus, _OrderProduct_detailedStatus, _OrderProduct_isAddon, _OrderProduct_arrowSubCategories, _OrderProduct_isTrial, _OrderProduct_prices, _OrderProduct_subscription, _OrderProduct_license, _OrderProduct_name, _OrderProduct_classification, _OrderProduct_program, _OrderProduct_identifier, _OrderProduct_organizationUnitRef, _OrderProduct_priceBand;
13
+ var _OrderProduct_sku, _OrderProduct_quantity, _OrderProduct_status, _OrderProduct_dateStatus, _OrderProduct_detailedStatus, _OrderProduct_isAddon, _OrderProduct_arrowSubCategories, _OrderProduct_isTrial, _OrderProduct_prices, _OrderProduct_subscription, _OrderProduct_license, _OrderProduct_name, _OrderProduct_classification, _OrderProduct_program, _OrderProduct_identifier, _OrderProduct_organizationUnitRef, _OrderProduct_organizationUnit, _OrderProduct_priceBand;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.OrderProduct = exports.OrderProductsFields = void 0;
16
16
  const abstractEntity_1 = require("../../../../abstractEntity");
@@ -19,6 +19,7 @@ const productPrices_1 = require("./prices/productPrices");
19
19
  const productProgram_1 = require("./program/productProgram");
20
20
  const productIdentifiers_1 = require("./identifiers/productIdentifiers");
21
21
  const priceBand_1 = require("./priceBand/priceBand");
22
+ const organizationUnit_1 = require("./organizationUnit/organizationUnit");
22
23
  var OrderProductsFields;
23
24
  (function (OrderProductsFields) {
24
25
  OrderProductsFields["COLUMN_SKU"] = "sku";
@@ -37,6 +38,7 @@ var OrderProductsFields;
37
38
  OrderProductsFields["COLUMN_PROGRAM"] = "program";
38
39
  OrderProductsFields["COLUMN_IDENTIFIERS"] = "identifiers";
39
40
  OrderProductsFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
41
+ OrderProductsFields["COLUMN_ORGANIZATION_UNIT"] = "organizationUnit";
40
42
  OrderProductsFields["COLUMN_PRICE_BAND"] = "priceBand";
41
43
  })(OrderProductsFields = exports.OrderProductsFields || (exports.OrderProductsFields = {}));
42
44
  class OrderProduct extends abstractEntity_1.AbstractEntity {
@@ -59,6 +61,7 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
59
61
  _OrderProduct_program.set(this, void 0);
60
62
  _OrderProduct_identifier.set(this, void 0);
61
63
  _OrderProduct_organizationUnitRef.set(this, void 0);
64
+ _OrderProduct_organizationUnit.set(this, void 0);
62
65
  _OrderProduct_priceBand.set(this, void 0);
63
66
  __classPrivateFieldSet(this, _OrderProduct_sku, getOrderProducts[OrderProductsFields.COLUMN_SKU], "f");
64
67
  __classPrivateFieldSet(this, _OrderProduct_quantity, getOrderProducts[OrderProductsFields.COLUMN_QUANTITY], "f");
@@ -78,6 +81,9 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
78
81
  __classPrivateFieldSet(this, _OrderProduct_program, new productProgram_1.ProductProgram(getOrderProducts[OrderProductsFields.COLUMN_PROGRAM]), "f");
79
82
  __classPrivateFieldSet(this, _OrderProduct_identifier, new productIdentifiers_1.ProductIdentifiers(getOrderProducts[OrderProductsFields.COLUMN_IDENTIFIERS]), "f");
80
83
  __classPrivateFieldSet(this, _OrderProduct_organizationUnitRef, getOrderProducts[OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
84
+ __classPrivateFieldSet(this, _OrderProduct_organizationUnit, getOrderProducts[OrderProductsFields.COLUMN_ORGANIZATION_UNIT]
85
+ ? new organizationUnit_1.OrganizationUnit(getOrderProducts[OrderProductsFields.COLUMN_ORGANIZATION_UNIT])
86
+ : undefined, "f");
81
87
  __classPrivateFieldSet(this, _OrderProduct_priceBand, getOrderProducts[OrderProductsFields.COLUMN_PRICE_BAND]
82
88
  ? new priceBand_1.PriceBand(getOrderProducts[OrderProductsFields.COLUMN_PRICE_BAND])
83
89
  : undefined, "f");
@@ -133,8 +139,11 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
133
139
  get priceBand() {
134
140
  return __classPrivateFieldGet(this, _OrderProduct_priceBand, "f");
135
141
  }
142
+ get organizationUnit() {
143
+ return __classPrivateFieldGet(this, _OrderProduct_organizationUnit, "f");
144
+ }
136
145
  toJSON() {
137
- var _a, _b;
146
+ var _a, _b, _c;
138
147
  return {
139
148
  [OrderProductsFields.COLUMN_SKU]: this.sku,
140
149
  [OrderProductsFields.COLUMN_QUANTITY]: this.quantity,
@@ -153,10 +162,11 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
153
162
  [OrderProductsFields.COLUMN_IDENTIFIERS]: this.identifier.toJSON(),
154
163
  [OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]: this
155
164
  .organizationUnitRef,
156
- [OrderProductsFields.COLUMN_PRICE_BAND]: (_b = this.priceBand) === null || _b === void 0 ? void 0 : _b.toJSON(),
165
+ [OrderProductsFields.COLUMN_ORGANIZATION_UNIT]: (_b = this.organizationUnit) === null || _b === void 0 ? void 0 : _b.toJSON(),
166
+ [OrderProductsFields.COLUMN_PRICE_BAND]: (_c = this.priceBand) === null || _c === void 0 ? void 0 : _c.toJSON(),
157
167
  };
158
168
  }
159
169
  }
160
170
  exports.OrderProduct = OrderProduct;
161
- _OrderProduct_sku = new WeakMap(), _OrderProduct_quantity = new WeakMap(), _OrderProduct_status = new WeakMap(), _OrderProduct_dateStatus = new WeakMap(), _OrderProduct_detailedStatus = new WeakMap(), _OrderProduct_isAddon = new WeakMap(), _OrderProduct_arrowSubCategories = new WeakMap(), _OrderProduct_isTrial = new WeakMap(), _OrderProduct_prices = new WeakMap(), _OrderProduct_subscription = new WeakMap(), _OrderProduct_license = new WeakMap(), _OrderProduct_name = new WeakMap(), _OrderProduct_classification = new WeakMap(), _OrderProduct_program = new WeakMap(), _OrderProduct_identifier = new WeakMap(), _OrderProduct_organizationUnitRef = new WeakMap(), _OrderProduct_priceBand = new WeakMap();
171
+ _OrderProduct_sku = new WeakMap(), _OrderProduct_quantity = new WeakMap(), _OrderProduct_status = new WeakMap(), _OrderProduct_dateStatus = new WeakMap(), _OrderProduct_detailedStatus = new WeakMap(), _OrderProduct_isAddon = new WeakMap(), _OrderProduct_arrowSubCategories = new WeakMap(), _OrderProduct_isTrial = new WeakMap(), _OrderProduct_prices = new WeakMap(), _OrderProduct_subscription = new WeakMap(), _OrderProduct_license = new WeakMap(), _OrderProduct_name = new WeakMap(), _OrderProduct_classification = new WeakMap(), _OrderProduct_program = new WeakMap(), _OrderProduct_identifier = new WeakMap(), _OrderProduct_organizationUnitRef = new WeakMap(), _OrderProduct_organizationUnit = new WeakMap(), _OrderProduct_priceBand = new WeakMap();
162
172
  //# sourceMappingURL=products.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.155.0",
7
+ "version": "3.156.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",