@arrowsphere/api-client 3.383.0 → 3.385.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 +13 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency/conversionRules.d.ts +19 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency/conversionRules.js +52 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.d.ts +16 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.js +45 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency.d.ts +18 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency.js +47 -0
- package/build/orders/entities/orders/products/prices/productPrices.d.ts +5 -1
- package/build/orders/entities/orders/products/prices/productPrices.js +13 -2
- package/build/orders/ordersClient.d.ts +10 -1
- package/build/orders/ordersClient.js +7 -1
- package/build/supportCenter/entities/issue/issue.d.ts +3 -0
- package/build/supportCenter/entities/issue/issue.js +9 -2
- package/package.json +20 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.384.0] - 2026.07.20
|
|
7
|
+
### Added
|
|
8
|
+
- [support-center] Add `key` to `IssueType`
|
|
9
|
+
- [order] Add `customFields` to `UpdateOrderInputType`
|
|
10
|
+
|
|
11
|
+
## [3.383.1] - 2026.07.20
|
|
12
|
+
### Security
|
|
13
|
+
- Fixed security vulnerabilities in development dependencies
|
|
14
|
+
- Replaced coveralls npm package with Coveralls GitHub Action to eliminate vulnerabilities
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Updated test:coverage:report script to generate lcov output format
|
|
18
|
+
|
|
6
19
|
## [3.383.0] - 2026.07.17
|
|
7
20
|
### Added
|
|
8
21
|
- [support-center] Add `createdBy`, `dateCreationStart` and `dateCreationEnd` to `ListIssueParametersFields` enum
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
+
export declare enum ConversionRulesFields {
|
|
3
|
+
COLUMN_CURRENCY = "currency",
|
|
4
|
+
COLUMN_EXCHANGE_RATE_DATE = "exchangeRateDate",
|
|
5
|
+
COLUMN_EXCHANGE_RATE = "exchangeRate"
|
|
6
|
+
}
|
|
7
|
+
export declare type ConversionRulesType = {
|
|
8
|
+
[ConversionRulesFields.COLUMN_CURRENCY]: string;
|
|
9
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: string;
|
|
10
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE]: number;
|
|
11
|
+
};
|
|
12
|
+
export declare class ConversionRules extends AbstractEntity<ConversionRulesType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(input: ConversionRulesType);
|
|
15
|
+
get currency(): string;
|
|
16
|
+
get exchangeRateDate(): string;
|
|
17
|
+
get exchangeRate(): number;
|
|
18
|
+
toJSON(): ConversionRulesType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 _ConversionRules_currency, _ConversionRules_exchangeRateDate, _ConversionRules_exchangeRate;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ConversionRules = exports.ConversionRulesFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
17
|
+
var ConversionRulesFields;
|
|
18
|
+
(function (ConversionRulesFields) {
|
|
19
|
+
ConversionRulesFields["COLUMN_CURRENCY"] = "currency";
|
|
20
|
+
ConversionRulesFields["COLUMN_EXCHANGE_RATE_DATE"] = "exchangeRateDate";
|
|
21
|
+
ConversionRulesFields["COLUMN_EXCHANGE_RATE"] = "exchangeRate";
|
|
22
|
+
})(ConversionRulesFields = exports.ConversionRulesFields || (exports.ConversionRulesFields = {}));
|
|
23
|
+
class ConversionRules extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(input) {
|
|
25
|
+
super(input);
|
|
26
|
+
_ConversionRules_currency.set(this, void 0);
|
|
27
|
+
_ConversionRules_exchangeRateDate.set(this, void 0);
|
|
28
|
+
_ConversionRules_exchangeRate.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _ConversionRules_currency, input[ConversionRulesFields.COLUMN_CURRENCY], "f");
|
|
30
|
+
__classPrivateFieldSet(this, _ConversionRules_exchangeRateDate, input[ConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE], "f");
|
|
31
|
+
__classPrivateFieldSet(this, _ConversionRules_exchangeRate, input[ConversionRulesFields.COLUMN_EXCHANGE_RATE], "f");
|
|
32
|
+
}
|
|
33
|
+
get currency() {
|
|
34
|
+
return __classPrivateFieldGet(this, _ConversionRules_currency, "f");
|
|
35
|
+
}
|
|
36
|
+
get exchangeRateDate() {
|
|
37
|
+
return __classPrivateFieldGet(this, _ConversionRules_exchangeRateDate, "f");
|
|
38
|
+
}
|
|
39
|
+
get exchangeRate() {
|
|
40
|
+
return __classPrivateFieldGet(this, _ConversionRules_exchangeRate, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[ConversionRulesFields.COLUMN_CURRENCY]: this.currency,
|
|
45
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: this.exchangeRateDate,
|
|
46
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE]: this.exchangeRate,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ConversionRules = ConversionRules;
|
|
51
|
+
_ConversionRules_currency = new WeakMap(), _ConversionRules_exchangeRateDate = new WeakMap(), _ConversionRules_exchangeRate = new WeakMap();
|
|
52
|
+
//# sourceMappingURL=conversionRules.js.map
|
package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
+
export declare enum PreferredCurrencyValuesFields {
|
|
3
|
+
COLUMN_BUY = "buy",
|
|
4
|
+
COLUMN_SELL = "sell"
|
|
5
|
+
}
|
|
6
|
+
export declare type PreferredCurrencyValuesType = {
|
|
7
|
+
[PreferredCurrencyValuesFields.COLUMN_BUY]: number;
|
|
8
|
+
[PreferredCurrencyValuesFields.COLUMN_SELL]: number;
|
|
9
|
+
};
|
|
10
|
+
export declare class PreferredCurrencyValues extends AbstractEntity<PreferredCurrencyValuesType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(input: PreferredCurrencyValuesType);
|
|
13
|
+
get buy(): number;
|
|
14
|
+
get sell(): number;
|
|
15
|
+
toJSON(): PreferredCurrencyValuesType;
|
|
16
|
+
}
|
package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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 _PreferredCurrencyValues_buy, _PreferredCurrencyValues_sell;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PreferredCurrencyValues = exports.PreferredCurrencyValuesFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
17
|
+
var PreferredCurrencyValuesFields;
|
|
18
|
+
(function (PreferredCurrencyValuesFields) {
|
|
19
|
+
PreferredCurrencyValuesFields["COLUMN_BUY"] = "buy";
|
|
20
|
+
PreferredCurrencyValuesFields["COLUMN_SELL"] = "sell";
|
|
21
|
+
})(PreferredCurrencyValuesFields = exports.PreferredCurrencyValuesFields || (exports.PreferredCurrencyValuesFields = {}));
|
|
22
|
+
class PreferredCurrencyValues extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(input) {
|
|
24
|
+
super(input);
|
|
25
|
+
_PreferredCurrencyValues_buy.set(this, void 0);
|
|
26
|
+
_PreferredCurrencyValues_sell.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _PreferredCurrencyValues_buy, input[PreferredCurrencyValuesFields.COLUMN_BUY], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _PreferredCurrencyValues_sell, input[PreferredCurrencyValuesFields.COLUMN_SELL], "f");
|
|
29
|
+
}
|
|
30
|
+
get buy() {
|
|
31
|
+
return __classPrivateFieldGet(this, _PreferredCurrencyValues_buy, "f");
|
|
32
|
+
}
|
|
33
|
+
get sell() {
|
|
34
|
+
return __classPrivateFieldGet(this, _PreferredCurrencyValues_sell, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[PreferredCurrencyValuesFields.COLUMN_BUY]: this.buy,
|
|
39
|
+
[PreferredCurrencyValuesFields.COLUMN_SELL]: this.sell,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.PreferredCurrencyValues = PreferredCurrencyValues;
|
|
44
|
+
_PreferredCurrencyValues_buy = new WeakMap(), _PreferredCurrencyValues_sell = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=preferredCurrencyValues.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
import { ConversionRules, ConversionRulesType } from './preferredCurrency/conversionRules';
|
|
3
|
+
import { PreferredCurrencyValues, PreferredCurrencyValuesType } from './preferredCurrency/preferredCurrencyValues';
|
|
4
|
+
export declare enum PreferredCurrencyFields {
|
|
5
|
+
COLUMN_CONVERSION_RULES = "conversionRules",
|
|
6
|
+
COLUMN_VALUES = "values"
|
|
7
|
+
}
|
|
8
|
+
export declare type PreferredCurrencyType = {
|
|
9
|
+
[PreferredCurrencyFields.COLUMN_CONVERSION_RULES]: ConversionRulesType;
|
|
10
|
+
[PreferredCurrencyFields.COLUMN_VALUES]: PreferredCurrencyValuesType;
|
|
11
|
+
};
|
|
12
|
+
export declare class PreferredCurrency extends AbstractEntity<PreferredCurrencyType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(input: PreferredCurrencyType);
|
|
15
|
+
get conversionRules(): ConversionRules;
|
|
16
|
+
get values(): PreferredCurrencyValues;
|
|
17
|
+
toJSON(): PreferredCurrencyType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _PreferredCurrency_conversionRules, _PreferredCurrency_values;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PreferredCurrency = exports.PreferredCurrencyFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
+
const conversionRules_1 = require("./preferredCurrency/conversionRules");
|
|
18
|
+
const preferredCurrencyValues_1 = require("./preferredCurrency/preferredCurrencyValues");
|
|
19
|
+
var PreferredCurrencyFields;
|
|
20
|
+
(function (PreferredCurrencyFields) {
|
|
21
|
+
PreferredCurrencyFields["COLUMN_CONVERSION_RULES"] = "conversionRules";
|
|
22
|
+
PreferredCurrencyFields["COLUMN_VALUES"] = "values";
|
|
23
|
+
})(PreferredCurrencyFields = exports.PreferredCurrencyFields || (exports.PreferredCurrencyFields = {}));
|
|
24
|
+
class PreferredCurrency extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(input) {
|
|
26
|
+
super(input);
|
|
27
|
+
_PreferredCurrency_conversionRules.set(this, void 0);
|
|
28
|
+
_PreferredCurrency_values.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _PreferredCurrency_conversionRules, new conversionRules_1.ConversionRules(input[PreferredCurrencyFields.COLUMN_CONVERSION_RULES]), "f");
|
|
30
|
+
__classPrivateFieldSet(this, _PreferredCurrency_values, new preferredCurrencyValues_1.PreferredCurrencyValues(input[PreferredCurrencyFields.COLUMN_VALUES]), "f");
|
|
31
|
+
}
|
|
32
|
+
get conversionRules() {
|
|
33
|
+
return __classPrivateFieldGet(this, _PreferredCurrency_conversionRules, "f");
|
|
34
|
+
}
|
|
35
|
+
get values() {
|
|
36
|
+
return __classPrivateFieldGet(this, _PreferredCurrency_values, "f");
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[PreferredCurrencyFields.COLUMN_CONVERSION_RULES]: this.conversionRules.toJSON(),
|
|
41
|
+
[PreferredCurrencyFields.COLUMN_VALUES]: this.values.toJSON(),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.PreferredCurrency = PreferredCurrency;
|
|
46
|
+
_PreferredCurrency_conversionRules = new WeakMap(), _PreferredCurrency_values = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=preferredCurrency.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
import { PreferredCurrency, PreferredCurrencyType } from './preferredCurrency';
|
|
2
3
|
export declare enum ProductPricesFields {
|
|
3
4
|
COLUMN_BUY = "buy",
|
|
4
5
|
COLUMN_SELL = "sell",
|
|
@@ -6,7 +7,8 @@ export declare enum ProductPricesFields {
|
|
|
6
7
|
COLUMN_PERIODICITY = "periodicity",
|
|
7
8
|
COLUMN_TERM = "term",
|
|
8
9
|
COLUMN_PERIODICITY_CODE = "periodicityCode",
|
|
9
|
-
COLUMN_TERM_CODE = "termCode"
|
|
10
|
+
COLUMN_TERM_CODE = "termCode",
|
|
11
|
+
COLUMN_PREFERRED_CURRENCY = "preferredCurrency"
|
|
10
12
|
}
|
|
11
13
|
export declare type ProductPricesType = {
|
|
12
14
|
[ProductPricesFields.COLUMN_BUY]: number;
|
|
@@ -16,6 +18,7 @@ export declare type ProductPricesType = {
|
|
|
16
18
|
[ProductPricesFields.COLUMN_TERM]: string;
|
|
17
19
|
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: number;
|
|
18
20
|
[ProductPricesFields.COLUMN_TERM_CODE]: number;
|
|
21
|
+
[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]?: PreferredCurrencyType;
|
|
19
22
|
};
|
|
20
23
|
export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
21
24
|
#private;
|
|
@@ -27,5 +30,6 @@ export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
|
27
30
|
get term(): string;
|
|
28
31
|
get periodicityCode(): number;
|
|
29
32
|
get termCode(): number;
|
|
33
|
+
get preferredCurrency(): PreferredCurrency | undefined;
|
|
30
34
|
toJSON(): ProductPricesType;
|
|
31
35
|
}
|
|
@@ -10,10 +10,11 @@ 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 _ProductPrices_buy, _ProductPrices_sell, _ProductPrices_currency, _ProductPrices_periodicity, _ProductPrices_term, _ProductPrices_periodicityCode, _ProductPrices_termCode;
|
|
13
|
+
var _ProductPrices_buy, _ProductPrices_sell, _ProductPrices_currency, _ProductPrices_periodicity, _ProductPrices_term, _ProductPrices_periodicityCode, _ProductPrices_termCode, _ProductPrices_preferredCurrency;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.ProductPrices = exports.ProductPricesFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
+
const preferredCurrency_1 = require("./preferredCurrency");
|
|
17
18
|
var ProductPricesFields;
|
|
18
19
|
(function (ProductPricesFields) {
|
|
19
20
|
ProductPricesFields["COLUMN_BUY"] = "buy";
|
|
@@ -23,6 +24,7 @@ var ProductPricesFields;
|
|
|
23
24
|
ProductPricesFields["COLUMN_TERM"] = "term";
|
|
24
25
|
ProductPricesFields["COLUMN_PERIODICITY_CODE"] = "periodicityCode";
|
|
25
26
|
ProductPricesFields["COLUMN_TERM_CODE"] = "termCode";
|
|
27
|
+
ProductPricesFields["COLUMN_PREFERRED_CURRENCY"] = "preferredCurrency";
|
|
26
28
|
})(ProductPricesFields = exports.ProductPricesFields || (exports.ProductPricesFields = {}));
|
|
27
29
|
class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
28
30
|
constructor(productPricesInput) {
|
|
@@ -34,6 +36,7 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
34
36
|
_ProductPrices_term.set(this, void 0);
|
|
35
37
|
_ProductPrices_periodicityCode.set(this, void 0);
|
|
36
38
|
_ProductPrices_termCode.set(this, void 0);
|
|
39
|
+
_ProductPrices_preferredCurrency.set(this, void 0);
|
|
37
40
|
__classPrivateFieldSet(this, _ProductPrices_buy, productPricesInput[ProductPricesFields.COLUMN_BUY], "f");
|
|
38
41
|
__classPrivateFieldSet(this, _ProductPrices_sell, productPricesInput[ProductPricesFields.COLUMN_SELL], "f");
|
|
39
42
|
__classPrivateFieldSet(this, _ProductPrices_currency, productPricesInput[ProductPricesFields.COLUMN_CURRENCY], "f");
|
|
@@ -41,6 +44,9 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
41
44
|
__classPrivateFieldSet(this, _ProductPrices_term, productPricesInput[ProductPricesFields.COLUMN_TERM], "f");
|
|
42
45
|
__classPrivateFieldSet(this, _ProductPrices_periodicityCode, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY_CODE], "f");
|
|
43
46
|
__classPrivateFieldSet(this, _ProductPrices_termCode, productPricesInput[ProductPricesFields.COLUMN_TERM_CODE], "f");
|
|
47
|
+
__classPrivateFieldSet(this, _ProductPrices_preferredCurrency, productPricesInput[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]
|
|
48
|
+
? new preferredCurrency_1.PreferredCurrency(productPricesInput[ProductPricesFields.COLUMN_PREFERRED_CURRENCY])
|
|
49
|
+
: undefined, "f");
|
|
44
50
|
}
|
|
45
51
|
get buy() {
|
|
46
52
|
return __classPrivateFieldGet(this, _ProductPrices_buy, "f");
|
|
@@ -63,7 +69,11 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
63
69
|
get termCode() {
|
|
64
70
|
return __classPrivateFieldGet(this, _ProductPrices_termCode, "f");
|
|
65
71
|
}
|
|
72
|
+
get preferredCurrency() {
|
|
73
|
+
return __classPrivateFieldGet(this, _ProductPrices_preferredCurrency, "f");
|
|
74
|
+
}
|
|
66
75
|
toJSON() {
|
|
76
|
+
var _a;
|
|
67
77
|
return {
|
|
68
78
|
[ProductPricesFields.COLUMN_BUY]: this.buy,
|
|
69
79
|
[ProductPricesFields.COLUMN_SELL]: this.sell,
|
|
@@ -72,9 +82,10 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
72
82
|
[ProductPricesFields.COLUMN_TERM]: this.term,
|
|
73
83
|
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: this.periodicityCode,
|
|
74
84
|
[ProductPricesFields.COLUMN_TERM_CODE]: this.termCode,
|
|
85
|
+
[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]: (_a = this.preferredCurrency) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
75
86
|
};
|
|
76
87
|
}
|
|
77
88
|
}
|
|
78
89
|
exports.ProductPrices = ProductPrices;
|
|
79
|
-
_ProductPrices_buy = new WeakMap(), _ProductPrices_sell = new WeakMap(), _ProductPrices_currency = new WeakMap(), _ProductPrices_periodicity = new WeakMap(), _ProductPrices_term = new WeakMap(), _ProductPrices_periodicityCode = new WeakMap(), _ProductPrices_termCode = new WeakMap();
|
|
90
|
+
_ProductPrices_buy = new WeakMap(), _ProductPrices_sell = new WeakMap(), _ProductPrices_currency = new WeakMap(), _ProductPrices_periodicity = new WeakMap(), _ProductPrices_term = new WeakMap(), _ProductPrices_periodicityCode = new WeakMap(), _ProductPrices_termCode = new WeakMap(), _ProductPrices_preferredCurrency = new WeakMap();
|
|
80
91
|
//# sourceMappingURL=productPrices.js.map
|
|
@@ -142,11 +142,20 @@ export declare type CreateOrderProductType = {
|
|
|
142
142
|
};
|
|
143
143
|
export declare enum UpdateOrderInputFields {
|
|
144
144
|
COLUMN_PO_NUMBER = "PO_number",
|
|
145
|
-
COLUMN_END_CUSTOMER_PO_NUMBER = "end_customer_PO_number"
|
|
145
|
+
COLUMN_END_CUSTOMER_PO_NUMBER = "end_customer_PO_number",
|
|
146
|
+
COLUMN_CUSTOM_FIELDS = "customFields"
|
|
147
|
+
}
|
|
148
|
+
export declare enum UpdateOrderCustomFields {
|
|
149
|
+
COLUMN_LABEL = "label",
|
|
150
|
+
COLUMN_VALUE = "value"
|
|
146
151
|
}
|
|
147
152
|
export declare type UpdateOrderInputType = {
|
|
148
153
|
[UpdateOrderInputFields.COLUMN_PO_NUMBER]?: string;
|
|
149
154
|
[UpdateOrderInputFields.COLUMN_END_CUSTOMER_PO_NUMBER]?: string;
|
|
155
|
+
[UpdateOrderInputFields.COLUMN_CUSTOM_FIELDS]?: Array<{
|
|
156
|
+
[UpdateOrderCustomFields.COLUMN_LABEL]: string;
|
|
157
|
+
[UpdateOrderCustomFields.COLUMN_VALUE]: string;
|
|
158
|
+
}>;
|
|
150
159
|
};
|
|
151
160
|
export declare enum UpdateContributorItemOrderInputFields {
|
|
152
161
|
COLUMN_TYPE = "type",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersClient = exports.UploadAttachmentOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields = exports.UpdateContributorOrderInputFields = exports.UpdateContributorItemOrderInputFields = exports.UpdateOrderInputFields = exports.StaffTypeEnum = exports.scenarioType = exports.CreateOrderInputFields = void 0;
|
|
3
|
+
exports.OrdersClient = exports.UploadAttachmentOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields = exports.UpdateContributorOrderInputFields = exports.UpdateContributorItemOrderInputFields = exports.UpdateOrderCustomFields = exports.UpdateOrderInputFields = exports.StaffTypeEnum = exports.scenarioType = exports.CreateOrderInputFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const dataListOrders_1 = require("./entities/dataListOrders");
|
|
@@ -72,7 +72,13 @@ var UpdateOrderInputFields;
|
|
|
72
72
|
(function (UpdateOrderInputFields) {
|
|
73
73
|
UpdateOrderInputFields["COLUMN_PO_NUMBER"] = "PO_number";
|
|
74
74
|
UpdateOrderInputFields["COLUMN_END_CUSTOMER_PO_NUMBER"] = "end_customer_PO_number";
|
|
75
|
+
UpdateOrderInputFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
|
|
75
76
|
})(UpdateOrderInputFields = exports.UpdateOrderInputFields || (exports.UpdateOrderInputFields = {}));
|
|
77
|
+
var UpdateOrderCustomFields;
|
|
78
|
+
(function (UpdateOrderCustomFields) {
|
|
79
|
+
UpdateOrderCustomFields["COLUMN_LABEL"] = "label";
|
|
80
|
+
UpdateOrderCustomFields["COLUMN_VALUE"] = "value";
|
|
81
|
+
})(UpdateOrderCustomFields = exports.UpdateOrderCustomFields || (exports.UpdateOrderCustomFields = {}));
|
|
76
82
|
var UpdateContributorItemOrderInputFields;
|
|
77
83
|
(function (UpdateContributorItemOrderInputFields) {
|
|
78
84
|
UpdateContributorItemOrderInputFields["COLUMN_TYPE"] = "type";
|
|
@@ -6,6 +6,7 @@ export declare enum IssueFields {
|
|
|
6
6
|
COLUMN_DESCRIPTION = "description",
|
|
7
7
|
COLUMN_END_CUSTOMER_REF = "endCustomerRef",
|
|
8
8
|
COLUMN_ID = "id",
|
|
9
|
+
COLUMN_KEY = "key",
|
|
9
10
|
COLUMN_LANGUAGE = "language",
|
|
10
11
|
COLUMN_OFFER = "offer",
|
|
11
12
|
COLUMN_PRIORITY = "priority",
|
|
@@ -68,6 +69,7 @@ export declare type IssueAdditionalDataType = {
|
|
|
68
69
|
};
|
|
69
70
|
export declare type IssueType = {
|
|
70
71
|
[IssueFields.COLUMN_ID]?: string;
|
|
72
|
+
[IssueFields.COLUMN_KEY]?: string;
|
|
71
73
|
[IssueFields.COLUMN_TITLE]: string;
|
|
72
74
|
[IssueFields.COLUMN_DESCRIPTION]: string;
|
|
73
75
|
[IssueFields.COLUMN_TOPIC_ID]: string;
|
|
@@ -120,6 +122,7 @@ export declare class Issue extends AbstractEntity<IssueType> {
|
|
|
120
122
|
#private;
|
|
121
123
|
constructor(input: IssueType);
|
|
122
124
|
get id(): string | undefined;
|
|
125
|
+
get key(): string | undefined;
|
|
123
126
|
get title(): string;
|
|
124
127
|
get description(): string;
|
|
125
128
|
get topicId(): string;
|
|
@@ -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 _IssueOffer_sku, _IssueOffer_name, _IssueOffer_vendor, _IssueCreatedBy_email, _IssueCreatedBy_firstName, _IssueCreatedBy_lastName, _IssueCreatedBy_phone, _IssueSupportPlan_sku, _IssueSupportPlan_label, _IssueSupportPlan_sourcePortal, _IssueAdditionalData_name, _IssueAdditionalData_value, _Issue_id, _Issue_title, _Issue_description, _Issue_topic, _Issue_topicId, _Issue_endCustomerRef, _Issue_language, _Issue_offer, _Issue_priority, _Issue_status, _Issue_createdBy, _Issue_supportPlan, _Issue_program, _Issue_additionalData, _Issue_created, _Issue_updated, _Issues_list;
|
|
13
|
+
var _IssueOffer_sku, _IssueOffer_name, _IssueOffer_vendor, _IssueCreatedBy_email, _IssueCreatedBy_firstName, _IssueCreatedBy_lastName, _IssueCreatedBy_phone, _IssueSupportPlan_sku, _IssueSupportPlan_label, _IssueSupportPlan_sourcePortal, _IssueAdditionalData_name, _IssueAdditionalData_value, _Issue_id, _Issue_key, _Issue_title, _Issue_description, _Issue_topic, _Issue_topicId, _Issue_endCustomerRef, _Issue_language, _Issue_offer, _Issue_priority, _Issue_status, _Issue_createdBy, _Issue_supportPlan, _Issue_program, _Issue_additionalData, _Issue_created, _Issue_updated, _Issues_list;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Issues = exports.Issue = exports.IssueAdditionalData = exports.IssueSupportPlan = exports.IssueCreatedBy = exports.IssueOffer = exports.IssueStatusesType = exports.IssueAdditionalDataFields = exports.IssueSupportPlanFields = exports.IssueCreatedByFields = exports.IssueOfferFields = exports.IssueFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -22,6 +22,7 @@ var IssueFields;
|
|
|
22
22
|
IssueFields["COLUMN_DESCRIPTION"] = "description";
|
|
23
23
|
IssueFields["COLUMN_END_CUSTOMER_REF"] = "endCustomerRef";
|
|
24
24
|
IssueFields["COLUMN_ID"] = "id";
|
|
25
|
+
IssueFields["COLUMN_KEY"] = "key";
|
|
25
26
|
IssueFields["COLUMN_LANGUAGE"] = "language";
|
|
26
27
|
IssueFields["COLUMN_OFFER"] = "offer";
|
|
27
28
|
IssueFields["COLUMN_PRIORITY"] = "priority";
|
|
@@ -187,6 +188,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
|
|
|
187
188
|
constructor(input) {
|
|
188
189
|
super(input);
|
|
189
190
|
_Issue_id.set(this, void 0);
|
|
191
|
+
_Issue_key.set(this, void 0);
|
|
190
192
|
_Issue_title.set(this, void 0);
|
|
191
193
|
_Issue_description.set(this, void 0);
|
|
192
194
|
_Issue_topic.set(this, void 0);
|
|
@@ -203,6 +205,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
|
|
|
203
205
|
_Issue_created.set(this, void 0);
|
|
204
206
|
_Issue_updated.set(this, void 0);
|
|
205
207
|
__classPrivateFieldSet(this, _Issue_id, input[IssueFields.COLUMN_ID], "f");
|
|
208
|
+
__classPrivateFieldSet(this, _Issue_key, input[IssueFields.COLUMN_KEY], "f");
|
|
206
209
|
__classPrivateFieldSet(this, _Issue_title, input[IssueFields.COLUMN_TITLE], "f");
|
|
207
210
|
__classPrivateFieldSet(this, _Issue_description, input[IssueFields.COLUMN_DESCRIPTION], "f");
|
|
208
211
|
__classPrivateFieldSet(this, _Issue_topic, input[IssueFields.COLUMN_TOPIC], "f");
|
|
@@ -234,6 +237,9 @@ class Issue extends abstractEntity_1.AbstractEntity {
|
|
|
234
237
|
get id() {
|
|
235
238
|
return __classPrivateFieldGet(this, _Issue_id, "f");
|
|
236
239
|
}
|
|
240
|
+
get key() {
|
|
241
|
+
return __classPrivateFieldGet(this, _Issue_key, "f");
|
|
242
|
+
}
|
|
237
243
|
get title() {
|
|
238
244
|
return __classPrivateFieldGet(this, _Issue_title, "f");
|
|
239
245
|
}
|
|
@@ -283,6 +289,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
|
|
|
283
289
|
var _a, _b, _c, _d, _e, _f;
|
|
284
290
|
return {
|
|
285
291
|
[IssueFields.COLUMN_ID]: this.id,
|
|
292
|
+
[IssueFields.COLUMN_KEY]: this.key,
|
|
286
293
|
[IssueFields.COLUMN_TITLE]: this.title,
|
|
287
294
|
[IssueFields.COLUMN_DESCRIPTION]: this.description,
|
|
288
295
|
[IssueFields.COLUMN_TOPIC_ID]: this.topicId,
|
|
@@ -302,7 +309,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
|
|
|
302
309
|
}
|
|
303
310
|
}
|
|
304
311
|
exports.Issue = Issue;
|
|
305
|
-
_Issue_id = new WeakMap(), _Issue_title = new WeakMap(), _Issue_description = new WeakMap(), _Issue_topic = new WeakMap(), _Issue_topicId = new WeakMap(), _Issue_endCustomerRef = new WeakMap(), _Issue_language = new WeakMap(), _Issue_offer = new WeakMap(), _Issue_priority = new WeakMap(), _Issue_status = new WeakMap(), _Issue_createdBy = new WeakMap(), _Issue_supportPlan = new WeakMap(), _Issue_program = new WeakMap(), _Issue_additionalData = new WeakMap(), _Issue_created = new WeakMap(), _Issue_updated = new WeakMap();
|
|
312
|
+
_Issue_id = new WeakMap(), _Issue_key = new WeakMap(), _Issue_title = new WeakMap(), _Issue_description = new WeakMap(), _Issue_topic = new WeakMap(), _Issue_topicId = new WeakMap(), _Issue_endCustomerRef = new WeakMap(), _Issue_language = new WeakMap(), _Issue_offer = new WeakMap(), _Issue_priority = new WeakMap(), _Issue_status = new WeakMap(), _Issue_createdBy = new WeakMap(), _Issue_supportPlan = new WeakMap(), _Issue_program = new WeakMap(), _Issue_additionalData = new WeakMap(), _Issue_created = new WeakMap(), _Issue_updated = new WeakMap();
|
|
306
313
|
class Issues extends abstractEntity_1.AbstractEntity {
|
|
307
314
|
constructor(input) {
|
|
308
315
|
super(input);
|
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.
|
|
7
|
+
"version": "3.385.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",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:one": "mocha -r ts-node/register",
|
|
20
20
|
"test:watch": "mocha --watch -r ts-node/register \"tests/**/*.ts\"",
|
|
21
21
|
"test:coverage": "nyc --check-coverage npm run test",
|
|
22
|
-
"test:coverage:report": "nyc report --reporter=
|
|
22
|
+
"test:coverage:report": "nyc report --reporter=lcov --reporter=text"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"arrow",
|
|
@@ -34,32 +34,35 @@
|
|
|
34
34
|
"@types/validatorjs": "3.15.0",
|
|
35
35
|
"@types/chai": "4.2.15",
|
|
36
36
|
"@types/chai-as-promised": "7.1.3",
|
|
37
|
-
"@types/mocha": "
|
|
37
|
+
"@types/mocha": "^10.0.10",
|
|
38
38
|
"@types/node": "18.19.9",
|
|
39
39
|
"@types/sinon": "9.0.10",
|
|
40
40
|
"@types/sinon-chai": "3.2.5",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "
|
|
42
|
-
"@typescript-eslint/parser": "
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "8.62.0",
|
|
42
|
+
"@typescript-eslint/parser": "8.62.0",
|
|
43
43
|
"chai": "4.3.0",
|
|
44
44
|
"chai-as-promised": "7.1.1",
|
|
45
|
-
"
|
|
46
|
-
"eslint": "8.38.0",
|
|
45
|
+
"eslint": "8.57.1",
|
|
47
46
|
"eslint-config-prettier": "7.2.0",
|
|
48
47
|
"eslint-plugin-prettier": "3.3.1",
|
|
49
|
-
"eslint-plugin-tsdoc": "0.2
|
|
50
|
-
"husky": "
|
|
51
|
-
"joi": "17.
|
|
52
|
-
"lint-staged": "
|
|
53
|
-
"mocha": "
|
|
54
|
-
"mocha-suppress-logs": "0.
|
|
48
|
+
"eslint-plugin-tsdoc": "0.5.2",
|
|
49
|
+
"husky": "^9.1.7",
|
|
50
|
+
"joi": "17.13.4",
|
|
51
|
+
"lint-staged": "16.4.0",
|
|
52
|
+
"mocha": "11.7.6",
|
|
53
|
+
"mocha-suppress-logs": "0.6.0",
|
|
55
54
|
"nock": "14.0.10",
|
|
56
|
-
"nyc": "
|
|
55
|
+
"nyc": "18.0.0",
|
|
57
56
|
"prettier": "2.2.1",
|
|
58
|
-
"sinon": "
|
|
57
|
+
"sinon": "22.0.0",
|
|
59
58
|
"sinon-chai": "3.5.0",
|
|
60
|
-
"ts-node": "10.9.
|
|
59
|
+
"ts-node": "10.9.2",
|
|
61
60
|
"typescript": "4.7.4"
|
|
62
61
|
},
|
|
62
|
+
"resolutions": {
|
|
63
|
+
"mocha/diff": "^8.0.3",
|
|
64
|
+
"mocha/serialize-javascript": "^7.0.5"
|
|
65
|
+
},
|
|
63
66
|
"husky": {
|
|
64
67
|
"hooks": {
|
|
65
68
|
"pre-commit": "lint-staged"
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
"test": "tests"
|
|
80
83
|
},
|
|
81
84
|
"dependencies": {
|
|
82
|
-
"axios": "1.
|
|
85
|
+
"axios": "1.18.1",
|
|
83
86
|
"graphql": "16.8.1",
|
|
84
87
|
"graphql-request": "7.3.5",
|
|
85
88
|
"json-to-graphql-query": "2.3.0",
|