@arrowsphere/api-client 3.36.1-rc.fdi.3 → 3.37.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,10 +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.36.1] - 2023-06-12
6
+ ## [3.37.0] - 2023-06-12
7
7
 
8
8
  ### Changed
9
9
 
10
+ - Add extra information order
10
11
  - Fix path for notification Endpoint
11
12
 
12
13
  ## [3.36.0] - 2023-06-09
@@ -0,0 +1,18 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum OrderExtraInformationFields {
3
+ COLUMN_PROGRAMS = "programs"
4
+ }
5
+ export declare type OrderExtraInformationItemType = {
6
+ [key: string]: {
7
+ [name: string]: string;
8
+ };
9
+ };
10
+ export declare type OrderExtraInformationType = {
11
+ [OrderExtraInformationFields.COLUMN_PROGRAMS]: OrderExtraInformationItemType;
12
+ };
13
+ export declare class OrderExtraInformation extends AbstractEntity<OrderExtraInformationType> {
14
+ #private;
15
+ constructor(input: OrderExtraInformationType);
16
+ get programs(): OrderExtraInformationItemType;
17
+ toJSON(): OrderExtraInformationType;
18
+ }
@@ -0,0 +1,38 @@
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 _OrderExtraInformation_programs;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrderExtraInformation = exports.OrderExtraInformationFields = void 0;
16
+ const abstractEntity_1 = require("../../../../abstractEntity");
17
+ var OrderExtraInformationFields;
18
+ (function (OrderExtraInformationFields) {
19
+ OrderExtraInformationFields["COLUMN_PROGRAMS"] = "programs";
20
+ })(OrderExtraInformationFields = exports.OrderExtraInformationFields || (exports.OrderExtraInformationFields = {}));
21
+ class OrderExtraInformation extends abstractEntity_1.AbstractEntity {
22
+ constructor(input) {
23
+ super(input);
24
+ _OrderExtraInformation_programs.set(this, void 0);
25
+ __classPrivateFieldSet(this, _OrderExtraInformation_programs, input[OrderExtraInformationFields.COLUMN_PROGRAMS], "f");
26
+ }
27
+ get programs() {
28
+ return __classPrivateFieldGet(this, _OrderExtraInformation_programs, "f");
29
+ }
30
+ toJSON() {
31
+ return {
32
+ [OrderExtraInformationFields.COLUMN_PROGRAMS]: this.programs,
33
+ };
34
+ }
35
+ }
36
+ exports.OrderExtraInformation = OrderExtraInformation;
37
+ _OrderExtraInformation_programs = new WeakMap();
38
+ //# sourceMappingURL=extraInformation.js.map
@@ -2,6 +2,7 @@ import { AbstractEntity } from '../../../abstractEntity';
2
2
  import { OrderProduct, OrderProductsType } from './products/products';
3
3
  import { OrderPartner, OrderPartnerType } from './partner/partner';
4
4
  import { ReferenceLink, ReferenceLinkType } from '../referenceLink';
5
+ import { OrderExtraInformation, OrderExtraInformationType } from './extraInformation/extraInformation';
5
6
  export declare enum OrderFields {
6
7
  COLUMN_REFERENCE = "reference",
7
8
  COLUMN_STATUS = "status",
@@ -11,7 +12,8 @@ export declare enum OrderFields {
11
12
  COLUMN_PARTNER = "partner",
12
13
  COLUMN_CUSTOMER = "customer",
13
14
  COLUMN_PONUMBER = "ponumber",
14
- COLUMN_PRODUCTS = "products"
15
+ COLUMN_PRODUCTS = "products",
16
+ COLUMN_EXTRA_INFORMATION = "extraInformation"
15
17
  }
16
18
  export declare type OrderType = {
17
19
  [OrderFields.COLUMN_REFERENCE]: string;
@@ -23,6 +25,7 @@ export declare type OrderType = {
23
25
  [OrderFields.COLUMN_CUSTOMER]: ReferenceLinkType;
24
26
  [OrderFields.COLUMN_PONUMBER]: string;
25
27
  [OrderFields.COLUMN_PRODUCTS]: Array<OrderProductsType>;
28
+ [OrderFields.COLUMN_EXTRA_INFORMATION]?: OrderExtraInformationType;
26
29
  };
27
30
  export declare class Order extends AbstractEntity<OrderType> {
28
31
  #private;
@@ -36,5 +39,6 @@ export declare class Order extends AbstractEntity<OrderType> {
36
39
  get customer(): ReferenceLink;
37
40
  get ponumber(): string;
38
41
  get products(): Array<OrderProduct>;
42
+ get extraInformation(): OrderExtraInformation | undefined;
39
43
  toJSON(): OrderType;
40
44
  }
@@ -10,13 +10,14 @@ 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 _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_products;
13
+ var _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_products, _Order_extraInformation;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Order = exports.OrderFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
17
17
  const products_1 = require("./products/products");
18
18
  const partner_1 = require("./partner/partner");
19
19
  const referenceLink_1 = require("../referenceLink");
20
+ const extraInformation_1 = require("./extraInformation/extraInformation");
20
21
  var OrderFields;
21
22
  (function (OrderFields) {
22
23
  OrderFields["COLUMN_REFERENCE"] = "reference";
@@ -28,6 +29,7 @@ var OrderFields;
28
29
  OrderFields["COLUMN_CUSTOMER"] = "customer";
29
30
  OrderFields["COLUMN_PONUMBER"] = "ponumber";
30
31
  OrderFields["COLUMN_PRODUCTS"] = "products";
32
+ OrderFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
31
33
  })(OrderFields = exports.OrderFields || (exports.OrderFields = {}));
32
34
  class Order extends abstractEntity_1.AbstractEntity {
33
35
  constructor(getOrderDataInput) {
@@ -41,6 +43,7 @@ class Order extends abstractEntity_1.AbstractEntity {
41
43
  _Order_customer.set(this, void 0);
42
44
  _Order_ponumber.set(this, void 0);
43
45
  _Order_products.set(this, void 0);
46
+ _Order_extraInformation.set(this, void 0);
44
47
  __classPrivateFieldSet(this, _Order_reference, getOrderDataInput[OrderFields.COLUMN_REFERENCE], "f");
45
48
  __classPrivateFieldSet(this, _Order_status, getOrderDataInput[OrderFields.COLUMN_STATUS], "f");
46
49
  __classPrivateFieldSet(this, _Order_dateStatus, getOrderDataInput[OrderFields.COLUMN_DATESTATUS], "f");
@@ -52,6 +55,9 @@ class Order extends abstractEntity_1.AbstractEntity {
52
55
  __classPrivateFieldSet(this, _Order_customer, new referenceLink_1.ReferenceLink(getOrderDataInput[OrderFields.COLUMN_CUSTOMER]), "f");
53
56
  __classPrivateFieldSet(this, _Order_ponumber, getOrderDataInput[OrderFields.COLUMN_PONUMBER], "f");
54
57
  __classPrivateFieldSet(this, _Order_products, getOrderDataInput[OrderFields.COLUMN_PRODUCTS].map((order) => new products_1.OrderProduct(order)), "f");
58
+ __classPrivateFieldSet(this, _Order_extraInformation, getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION]
59
+ ? new extraInformation_1.OrderExtraInformation(getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION])
60
+ : undefined, "f");
55
61
  }
56
62
  get reference() {
57
63
  return __classPrivateFieldGet(this, _Order_reference, "f");
@@ -80,8 +86,11 @@ class Order extends abstractEntity_1.AbstractEntity {
80
86
  get products() {
81
87
  return __classPrivateFieldGet(this, _Order_products, "f");
82
88
  }
89
+ get extraInformation() {
90
+ return __classPrivateFieldGet(this, _Order_extraInformation, "f");
91
+ }
83
92
  toJSON() {
84
- var _a;
93
+ var _a, _b;
85
94
  return {
86
95
  [OrderFields.COLUMN_REFERENCE]: this.reference,
87
96
  [OrderFields.COLUMN_STATUS]: this.status,
@@ -92,9 +101,10 @@ class Order extends abstractEntity_1.AbstractEntity {
92
101
  [OrderFields.COLUMN_CUSTOMER]: this.customer.toJSON(),
93
102
  [OrderFields.COLUMN_PONUMBER]: this.ponumber,
94
103
  [OrderFields.COLUMN_PRODUCTS]: this.products.map((order) => order.toJSON()),
104
+ [OrderFields.COLUMN_EXTRA_INFORMATION]: (_b = this.extraInformation) === null || _b === void 0 ? void 0 : _b.toJSON(),
95
105
  };
96
106
  }
97
107
  }
98
108
  exports.Order = Order;
99
- _Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_products = new WeakMap();
109
+ _Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_products = new WeakMap(), _Order_extraInformation = new WeakMap();
100
110
  //# sourceMappingURL=order.js.map
@@ -6,5 +6,6 @@ export * from './entities/orders/products/identifiers/productIdentifiers';
6
6
  export * from './entities/orders/products/prices/productPrices';
7
7
  export * from './entities/orders/products/program/productProgram';
8
8
  export * from './entities/orders/products/products';
9
+ export * from './entities/orders/extraInformation/extraInformation';
9
10
  export * from './entities/referenceLink';
10
11
  export * from './ordersClient';
@@ -22,6 +22,7 @@ __exportStar(require("./entities/orders/products/identifiers/productIdentifiers"
22
22
  __exportStar(require("./entities/orders/products/prices/productPrices"), exports);
23
23
  __exportStar(require("./entities/orders/products/program/productProgram"), exports);
24
24
  __exportStar(require("./entities/orders/products/products"), exports);
25
+ __exportStar(require("./entities/orders/extraInformation/extraInformation"), exports);
25
26
  __exportStar(require("./entities/referenceLink"), exports);
26
27
  __exportStar(require("./ordersClient"), exports);
27
28
  //# sourceMappingURL=index.js.map
@@ -33,7 +33,8 @@ export declare enum CreateOrderInputFields {
33
33
  COLUMN_PRICE_END_CUSTOMER = "endCustomer",
34
34
  COLUMN_PRICE_CURRENCY = "currency",
35
35
  COLUMN_PRICE_UNIT = "unitPrice",
36
- COLUMN_PRICE_EXCHANGE_RATE = "exchangeRate"
36
+ COLUMN_PRICE_EXCHANGE_RATE = "exchangeRate",
37
+ COLUMN_EXTRA_INFORMATION = "extraInformation"
37
38
  }
38
39
  export declare enum scenarioType {
39
40
  INJECTION = "injection",
@@ -90,6 +91,13 @@ export declare type CreateOrderInputType = {
90
91
  };
91
92
  };
92
93
  }>;
94
+ [CreateOrderInputFields.COLUMN_EXTRA_INFORMATION]?: {
95
+ programs: {
96
+ [key: string]: {
97
+ [name: string]: string;
98
+ };
99
+ };
100
+ };
93
101
  };
94
102
  export declare class OrdersClient extends AbstractRestfulClient {
95
103
  /**
@@ -38,6 +38,7 @@ var CreateOrderInputFields;
38
38
  CreateOrderInputFields["COLUMN_PRICE_CURRENCY"] = "currency";
39
39
  CreateOrderInputFields["COLUMN_PRICE_UNIT"] = "unitPrice";
40
40
  CreateOrderInputFields["COLUMN_PRICE_EXCHANGE_RATE"] = "exchangeRate";
41
+ CreateOrderInputFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
41
42
  })(CreateOrderInputFields = exports.CreateOrderInputFields || (exports.CreateOrderInputFields = {}));
42
43
  var scenarioType;
43
44
  (function (scenarioType) {
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.36.1-rc.fdi.3",
7
+ "version": "3.37.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",