@arrowsphere/api-client 3.385.0-rc-cpe-2 → 3.388.0-rc-oig-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 +14 -0
- package/build/customers/customersClient.d.ts +1 -0
- package/build/customers/entities/customers/customer.d.ts +2 -1
- package/build/customers/entities/customers/customer.js +1 -0
- package/build/graphqlApi/index.d.ts +1 -0
- package/build/graphqlApi/index.js +1 -0
- package/build/graphqlApi/types/entities/currency.d.ts +1 -0
- package/build/graphqlApi/types/entities/partnerCatalogItem.d.ts +14 -0
- package/build/graphqlApi/types/entities/partnerCatalogItem.js +3 -0
- package/build/graphqlApi/types/entities/program.d.ts +1 -0
- package/build/graphqlApi/types/entities/softwareProduct.d.ts +15 -11
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +5 -1
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +9 -0
- package/build/licenses/entities/getLicense/licensePriceGetResult.d.ts +0 -3
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +0 -1
- package/build/orders/entities/orders/products/prices/productPrices.d.ts +1 -5
- package/build/orders/entities/orders/products/prices/productPrices.js +2 -13
- package/package.json +1 -1
- package/build/licenses/entities/license/licensePreferredCurrency/licenseConversionRules.d.ts +0 -19
- package/build/licenses/entities/license/licensePreferredCurrency/licenseConversionRules.js +0 -53
- package/build/licenses/entities/license/licensePreferredCurrency/licensePreferredCurrencyValues.d.ts +0 -17
- package/build/licenses/entities/license/licensePreferredCurrency/licensePreferredCurrencyValues.js +0 -46
- package/build/licenses/entities/license/licensePreferredCurrency.d.ts +0 -18
- package/build/licenses/entities/license/licensePreferredCurrency.js +0 -47
- package/build/orders/entities/orders/products/prices/preferredCurrency/conversionRules.d.ts +0 -19
- package/build/orders/entities/orders/products/prices/preferredCurrency/conversionRules.js +0 -52
- package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.d.ts +0 -16
- package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.js +0 -45
- package/build/orders/entities/orders/products/prices/preferredCurrency.d.ts +0 -18
- package/build/orders/entities/orders/products/prices/preferredCurrency.js +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.388.0] - 2026.08.04
|
|
7
|
+
### Added
|
|
8
|
+
- [customer] Add `COLUMN_IS_RESELLER_COMPANY` key to `CustomerFields` enum
|
|
9
|
+
- [customer] Add `isResellerCompany` to `customersClient`
|
|
10
|
+
|
|
11
|
+
## [3.387.0] - 2026.08.03
|
|
12
|
+
### Added
|
|
13
|
+
- [graphql-api] Add `PartnerCatalogItem` entity with `id`, `sid`, `sellPrice`, `price`, `partner`, `currency`, `softwareProduct`, and `subscription` fields
|
|
14
|
+
- [graphql-api] Add `nonMonetary` field to `CurrencyType`
|
|
15
|
+
- [graphql-api] Add `program` field to `ProgramLevelType`
|
|
16
|
+
|
|
17
|
+
### Updated
|
|
18
|
+
- [graphql-api] Rework `SoftwareProductType` fields: replace `companyId`, `vendorName`, `programName`, `subscriptionId`, `productName`, `versionName`, `unitSymbol`, `unitIfUsernoshow`, `priority` with `arrowSku`, `name`, `version`, `versionShortName`, `buyPrice`, `dateStart`, `dateEnd`, `workgroup`, `buyCurrency`, `sellCurrency`, and `programLevel`
|
|
19
|
+
|
|
6
20
|
## [3.384.0] - 2026.07.20
|
|
7
21
|
### Added
|
|
8
22
|
- [support-center] Add `key` to `IssueType`
|
|
@@ -100,6 +100,7 @@ export declare type PostCustomerPayload = {
|
|
|
100
100
|
[CustomerFields.COLUMN_CONTACT]?: PostCustomerContact;
|
|
101
101
|
[CustomerFields.COLUMN_REGISTRATION_NUMBER]?: string;
|
|
102
102
|
[CustomerFields.COLUMN_CUSTOM_FIELDS]?: CustomerCustomFieldType[];
|
|
103
|
+
[CustomerFields.COLUMN_IS_RESELLER_COMPANY]?: boolean;
|
|
103
104
|
};
|
|
104
105
|
export declare enum PostCustomerInvitationFields {
|
|
105
106
|
COLUMN_CONTACT_ID = "contactId",
|
|
@@ -46,7 +46,8 @@ export declare enum CustomerFields {
|
|
|
46
46
|
COLUMN_RESELLER = "Reseller",
|
|
47
47
|
COLUMN_PARTNER_TAGS = "PartnerTags",
|
|
48
48
|
COLUMN_PARTNER_TAGS_LABEL = "label",
|
|
49
|
-
COLUMN_CUSTOM_FIELDS = "customFields"
|
|
49
|
+
COLUMN_CUSTOM_FIELDS = "customFields",
|
|
50
|
+
COLUMN_IS_RESELLER_COMPANY = "isResellerCompany"
|
|
50
51
|
}
|
|
51
52
|
export declare type CompanyReseller = {
|
|
52
53
|
[CustomerFields.COLUMN_REF]: string;
|
|
@@ -63,6 +63,7 @@ var CustomerFields;
|
|
|
63
63
|
CustomerFields["COLUMN_PARTNER_TAGS"] = "PartnerTags";
|
|
64
64
|
CustomerFields["COLUMN_PARTNER_TAGS_LABEL"] = "label";
|
|
65
65
|
CustomerFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
|
|
66
|
+
CustomerFields["COLUMN_IS_RESELLER_COMPANY"] = "isResellerCompany";
|
|
66
67
|
})(CustomerFields = exports.CustomerFields || (exports.CustomerFields = {}));
|
|
67
68
|
class Customer extends abstractEntity_1.AbstractEntity {
|
|
68
69
|
constructor(getCustomersDataInput) {
|
|
@@ -45,4 +45,5 @@ __exportStar(require("./types/entities/softwareProduct"), exports);
|
|
|
45
45
|
__exportStar(require("./types/entities/supportLevel"), exports);
|
|
46
46
|
__exportStar(require("./types/entities/customFieldKey"), exports);
|
|
47
47
|
__exportStar(require("./types/entities/customFieldValue"), exports);
|
|
48
|
+
__exportStar(require("./types/entities/partnerCatalogItem"), exports);
|
|
48
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CurrencyType } from './currency';
|
|
2
|
+
import { PartnerType } from './company';
|
|
3
|
+
import { SoftwareProductType } from './softwareProduct';
|
|
4
|
+
import { SubscriptionType } from './subscription';
|
|
5
|
+
export declare type PartnerCatalogItemType = {
|
|
6
|
+
id?: number;
|
|
7
|
+
sid?: number;
|
|
8
|
+
sellPrice?: number;
|
|
9
|
+
price?: number;
|
|
10
|
+
partner?: PartnerType;
|
|
11
|
+
currency?: CurrencyType;
|
|
12
|
+
softwareProduct?: SoftwareProductType;
|
|
13
|
+
subscription?: SubscriptionType;
|
|
14
|
+
};
|
|
@@ -58,6 +58,7 @@ export declare type ProgramLevelType = {
|
|
|
58
58
|
benefits?: ProgramBenefitType[];
|
|
59
59
|
requirements?: ProgramRequirementType[];
|
|
60
60
|
programLevelOptionGroups?: ProgramLevelOptionGroupType[];
|
|
61
|
+
program?: GraphqlApiProgramType;
|
|
61
62
|
};
|
|
62
63
|
export declare type ProgramBenefitType = {
|
|
63
64
|
id?: number;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
+
import { CurrencyType } from './currency';
|
|
2
|
+
import { ProgramLevelType } from './program';
|
|
3
|
+
import { WorkgroupType } from './workgroup';
|
|
1
4
|
export declare type SoftwareProductType = {
|
|
2
5
|
id?: string;
|
|
3
|
-
|
|
4
|
-
vendorName?: string;
|
|
5
|
-
programName?: string;
|
|
6
|
-
subscriptionId?: number;
|
|
7
|
-
productName?: string;
|
|
8
|
-
versionName?: string;
|
|
6
|
+
arrowSku?: string;
|
|
9
7
|
sku?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
version?: string;
|
|
10
|
+
versionShortName?: string;
|
|
11
|
+
buyPrice?: number;
|
|
12
|
+
sellPrice?: number;
|
|
13
|
+
dateStart?: string;
|
|
14
|
+
dateEnd?: string;
|
|
10
15
|
tierMin?: number;
|
|
11
16
|
tierMax?: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
priority?: number;
|
|
17
|
+
workgroup?: WorkgroupType;
|
|
18
|
+
buyCurrency?: CurrencyType;
|
|
19
|
+
sellCurrency?: CurrencyType;
|
|
20
|
+
programLevel?: ProgramLevelType;
|
|
17
21
|
};
|
|
@@ -16,6 +16,7 @@ import { WorkgroupType } from './entities/workgroup';
|
|
|
16
16
|
import { GraphqlApiSupportLevel } from './entities/supportLevel';
|
|
17
17
|
import { GraphqlApiProgramAgreementType } from './entities/programAgreement';
|
|
18
18
|
import { SoftwareProductType } from './entities/softwareProduct';
|
|
19
|
+
import { PartnerCatalogItemType } from './entities/partnerCatalogItem';
|
|
19
20
|
import { CustomFieldKeyType } from './entities/customFieldKey';
|
|
20
21
|
import { CustomFieldValueType } from './entities/customFieldValue';
|
|
21
22
|
import { ContactsSchema, ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema, SpecialPriceRateSchema } from './graphqlApiSchemas';
|
|
@@ -154,7 +155,8 @@ export declare enum SelectDataField {
|
|
|
154
155
|
WORKGROUP = "workgroup",
|
|
155
156
|
SUPPORT_LEVEL = "supportLevel",
|
|
156
157
|
PROGRAM_AGREEMENT = "programAgreement",
|
|
157
|
-
SOFTWARE_PRODUCT = "softwareProduct"
|
|
158
|
+
SOFTWARE_PRODUCT = "softwareProduct",
|
|
159
|
+
PARTNER_CATALOG_ITEM = "partnerCatalogItem"
|
|
158
160
|
}
|
|
159
161
|
export declare type SelectAllResultType = {
|
|
160
162
|
[Queries.SELECT_ALL]: {
|
|
@@ -199,6 +201,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
199
201
|
[SelectDataField.SUPPORT_LEVEL]?: GraphqlApiSupportLevel[];
|
|
200
202
|
[SelectDataField.PROGRAM_AGREEMENT]?: GraphqlApiProgramAgreementType[];
|
|
201
203
|
[SelectDataField.SOFTWARE_PRODUCT]?: SoftwareProductType[];
|
|
204
|
+
[SelectDataField.PARTNER_CATALOG_ITEM]?: PartnerCatalogItemType[];
|
|
202
205
|
};
|
|
203
206
|
export declare enum ErrorsField {
|
|
204
207
|
CODE = "code",
|
|
@@ -285,6 +288,7 @@ export declare type SelectOneResponseDataType = {
|
|
|
285
288
|
[SelectDataField.WORKGROUP]?: WorkgroupType;
|
|
286
289
|
[SelectDataField.SUPPORT_LEVEL]?: GraphqlApiSupportLevel;
|
|
287
290
|
[SelectDataField.SOFTWARE_PRODUCT]?: SoftwareProductType;
|
|
291
|
+
[SelectDataField.PARTNER_CATALOG_ITEM]?: PartnerCatalogItemType;
|
|
288
292
|
};
|
|
289
293
|
export declare enum QueryVariablesField {
|
|
290
294
|
AGGREGATOR_FILTER = "aggregatorFilter",
|
|
@@ -122,6 +122,7 @@ var SelectDataField;
|
|
|
122
122
|
SelectDataField["SUPPORT_LEVEL"] = "supportLevel";
|
|
123
123
|
SelectDataField["PROGRAM_AGREEMENT"] = "programAgreement";
|
|
124
124
|
SelectDataField["SOFTWARE_PRODUCT"] = "softwareProduct";
|
|
125
|
+
SelectDataField["PARTNER_CATALOG_ITEM"] = "partnerCatalogItem";
|
|
125
126
|
})(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
|
|
126
127
|
var ErrorsField;
|
|
127
128
|
(function (ErrorsField) {
|
|
@@ -21,6 +21,7 @@ import { GraphqlApiEavType } from './entities/eav';
|
|
|
21
21
|
import { GraphqlApiSupportLevel } from './entities/supportLevel';
|
|
22
22
|
import { GraphqlApiProgramAgreementType } from './entities/programAgreement';
|
|
23
23
|
import { SoftwareProductType } from './entities/softwareProduct';
|
|
24
|
+
import { PartnerCatalogItemType } from './entities/partnerCatalogItem';
|
|
24
25
|
import { GraphqlApiContributorRoleType, GraphqlApiStaffType } from './entities/contributor';
|
|
25
26
|
import { AttributesParameters } from '../../catalog';
|
|
26
27
|
import { CustomFieldValueType } from './entities/customFieldValue';
|
|
@@ -158,6 +159,13 @@ export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
|
|
|
158
159
|
export declare type SupportLevelSchema = Schema<GraphqlApiSupportLevel, boolean>;
|
|
159
160
|
export declare type ProgramAgreementSchema = Schema<GraphqlApiProgramAgreementType, boolean>;
|
|
160
161
|
export declare type SoftwareProductSchema = Schema<SoftwareProductType, boolean>;
|
|
162
|
+
declare type MissingFieldsOfPartnerCatalogItemSchema = {
|
|
163
|
+
partner?: PartnerSchema;
|
|
164
|
+
currency?: CurrencySchema;
|
|
165
|
+
softwareProduct?: SoftwareProductSchema;
|
|
166
|
+
subscription?: SubscriptionSchema;
|
|
167
|
+
};
|
|
168
|
+
export declare type PartnerCatalogItemSchema = Merge<Schema<PartnerCatalogItemType, boolean>, MissingFieldsOfPartnerCatalogItemSchema>;
|
|
161
169
|
export declare type CustomFieldValueSchema = Schema<CustomFieldValueType, boolean>;
|
|
162
170
|
export declare type CustomFieldKeySchema = Schema<CustomFieldKeyType, boolean>;
|
|
163
171
|
export declare type ExportResultSchema = {
|
|
@@ -198,6 +206,7 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
198
206
|
[SelectDataField.SUPPORT_LEVEL]?: SupportLevelSchema;
|
|
199
207
|
[SelectDataField.PROGRAM_AGREEMENT]?: ProgramAgreementSchema;
|
|
200
208
|
[SelectDataField.SOFTWARE_PRODUCT]?: SoftwareProductSchema;
|
|
209
|
+
[SelectDataField.PARTNER_CATALOG_ITEM]?: PartnerCatalogItemSchema;
|
|
201
210
|
};
|
|
202
211
|
export declare type SelectOneResultSchema = {
|
|
203
212
|
[SelectableField.DATA]?: SelectOneResponseDataSchema;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { BuySellData, BuySellFindResult } from './buySellFindResult';
|
|
2
2
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
|
-
import { ProductPricesFields } from '../../../orders';
|
|
4
|
-
import { LicensePreferredCurrencyType } from '../license/licensePreferredCurrency';
|
|
5
3
|
export declare enum LicensePriceGetFields {
|
|
6
4
|
COLUMN_CURRENCY = "currency",
|
|
7
5
|
COLUMN_PRICEBAND_ARROWSPHERE_SKU = "priceBandArrowsphereSku",
|
|
@@ -13,7 +11,6 @@ export declare type LicensePriceGetData = {
|
|
|
13
11
|
[LicensePriceGetFields.COLUMN_PRICEBAND_ARROWSPHERE_SKU]: string;
|
|
14
12
|
[LicensePriceGetFields.COLUMN_UNIT]: BuySellData;
|
|
15
13
|
[LicensePriceGetFields.COLUMN_TOTAL]: BuySellData;
|
|
16
|
-
[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]?: LicensePreferredCurrencyType;
|
|
17
14
|
};
|
|
18
15
|
export declare class LicensePriceGetResult extends AbstractEntity<LicensePriceGetData> {
|
|
19
16
|
#private;
|
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.LicensePriceGetResult = exports.LicensePriceGetFields = void 0;
|
|
16
16
|
const buySellFindResult_1 = require("./buySellFindResult");
|
|
17
17
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
18
|
-
const orders_1 = require("../../../orders");
|
|
19
18
|
var LicensePriceGetFields;
|
|
20
19
|
(function (LicensePriceGetFields) {
|
|
21
20
|
LicensePriceGetFields["COLUMN_CURRENCY"] = "currency";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
-
import { PreferredCurrency, PreferredCurrencyType } from './preferredCurrency';
|
|
3
2
|
export declare enum ProductPricesFields {
|
|
4
3
|
COLUMN_BUY = "buy",
|
|
5
4
|
COLUMN_SELL = "sell",
|
|
@@ -7,8 +6,7 @@ export declare enum ProductPricesFields {
|
|
|
7
6
|
COLUMN_PERIODICITY = "periodicity",
|
|
8
7
|
COLUMN_TERM = "term",
|
|
9
8
|
COLUMN_PERIODICITY_CODE = "periodicityCode",
|
|
10
|
-
COLUMN_TERM_CODE = "termCode"
|
|
11
|
-
COLUMN_PREFERRED_CURRENCY = "preferredCurrency"
|
|
9
|
+
COLUMN_TERM_CODE = "termCode"
|
|
12
10
|
}
|
|
13
11
|
export declare type ProductPricesType = {
|
|
14
12
|
[ProductPricesFields.COLUMN_BUY]: number;
|
|
@@ -18,7 +16,6 @@ export declare type ProductPricesType = {
|
|
|
18
16
|
[ProductPricesFields.COLUMN_TERM]: string;
|
|
19
17
|
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: number;
|
|
20
18
|
[ProductPricesFields.COLUMN_TERM_CODE]: number;
|
|
21
|
-
[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]?: PreferredCurrencyType;
|
|
22
19
|
};
|
|
23
20
|
export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
24
21
|
#private;
|
|
@@ -30,6 +27,5 @@ export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
|
30
27
|
get term(): string;
|
|
31
28
|
get periodicityCode(): number;
|
|
32
29
|
get termCode(): number;
|
|
33
|
-
get preferredCurrency(): PreferredCurrency | undefined;
|
|
34
30
|
toJSON(): ProductPricesType;
|
|
35
31
|
}
|
|
@@ -10,11 +10,10 @@ 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;
|
|
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");
|
|
18
17
|
var ProductPricesFields;
|
|
19
18
|
(function (ProductPricesFields) {
|
|
20
19
|
ProductPricesFields["COLUMN_BUY"] = "buy";
|
|
@@ -24,7 +23,6 @@ var ProductPricesFields;
|
|
|
24
23
|
ProductPricesFields["COLUMN_TERM"] = "term";
|
|
25
24
|
ProductPricesFields["COLUMN_PERIODICITY_CODE"] = "periodicityCode";
|
|
26
25
|
ProductPricesFields["COLUMN_TERM_CODE"] = "termCode";
|
|
27
|
-
ProductPricesFields["COLUMN_PREFERRED_CURRENCY"] = "preferredCurrency";
|
|
28
26
|
})(ProductPricesFields = exports.ProductPricesFields || (exports.ProductPricesFields = {}));
|
|
29
27
|
class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
30
28
|
constructor(productPricesInput) {
|
|
@@ -36,7 +34,6 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
36
34
|
_ProductPrices_term.set(this, void 0);
|
|
37
35
|
_ProductPrices_periodicityCode.set(this, void 0);
|
|
38
36
|
_ProductPrices_termCode.set(this, void 0);
|
|
39
|
-
_ProductPrices_preferredCurrency.set(this, void 0);
|
|
40
37
|
__classPrivateFieldSet(this, _ProductPrices_buy, productPricesInput[ProductPricesFields.COLUMN_BUY], "f");
|
|
41
38
|
__classPrivateFieldSet(this, _ProductPrices_sell, productPricesInput[ProductPricesFields.COLUMN_SELL], "f");
|
|
42
39
|
__classPrivateFieldSet(this, _ProductPrices_currency, productPricesInput[ProductPricesFields.COLUMN_CURRENCY], "f");
|
|
@@ -44,9 +41,6 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
44
41
|
__classPrivateFieldSet(this, _ProductPrices_term, productPricesInput[ProductPricesFields.COLUMN_TERM], "f");
|
|
45
42
|
__classPrivateFieldSet(this, _ProductPrices_periodicityCode, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY_CODE], "f");
|
|
46
43
|
__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");
|
|
50
44
|
}
|
|
51
45
|
get buy() {
|
|
52
46
|
return __classPrivateFieldGet(this, _ProductPrices_buy, "f");
|
|
@@ -69,11 +63,7 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
69
63
|
get termCode() {
|
|
70
64
|
return __classPrivateFieldGet(this, _ProductPrices_termCode, "f");
|
|
71
65
|
}
|
|
72
|
-
get preferredCurrency() {
|
|
73
|
-
return __classPrivateFieldGet(this, _ProductPrices_preferredCurrency, "f");
|
|
74
|
-
}
|
|
75
66
|
toJSON() {
|
|
76
|
-
var _a;
|
|
77
67
|
return {
|
|
78
68
|
[ProductPricesFields.COLUMN_BUY]: this.buy,
|
|
79
69
|
[ProductPricesFields.COLUMN_SELL]: this.sell,
|
|
@@ -82,10 +72,9 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
82
72
|
[ProductPricesFields.COLUMN_TERM]: this.term,
|
|
83
73
|
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: this.periodicityCode,
|
|
84
74
|
[ProductPricesFields.COLUMN_TERM_CODE]: this.termCode,
|
|
85
|
-
[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]: (_a = this.preferredCurrency) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
86
75
|
};
|
|
87
76
|
}
|
|
88
77
|
}
|
|
89
78
|
exports.ProductPrices = ProductPrices;
|
|
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()
|
|
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();
|
|
91
80
|
//# sourceMappingURL=productPrices.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.
|
|
7
|
+
"version": "3.388.0-rc-oig-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",
|
package/build/licenses/entities/license/licensePreferredCurrency/licenseConversionRules.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
export declare enum LicenseConversionRulesFields {
|
|
3
|
-
COLUMN_CURRENCY = "currency",
|
|
4
|
-
COLUMN_EXCHANGE_RATE_DATE = "exchangeRateDate",
|
|
5
|
-
COLUMN_EXCHANGE_RATE = "exchangeRate"
|
|
6
|
-
}
|
|
7
|
-
export declare type LicenseConversionRulesType = {
|
|
8
|
-
[LicenseConversionRulesFields.COLUMN_CURRENCY]: string;
|
|
9
|
-
[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: string;
|
|
10
|
-
[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE]: number;
|
|
11
|
-
};
|
|
12
|
-
export declare class LicenseConversionRules extends AbstractEntity<LicenseConversionRulesType> {
|
|
13
|
-
#private;
|
|
14
|
-
constructor(input: LicenseConversionRulesType);
|
|
15
|
-
get currency(): string;
|
|
16
|
-
get exchangeRateDate(): string;
|
|
17
|
-
get exchangeRate(): number;
|
|
18
|
-
toJSON(): LicenseConversionRulesType;
|
|
19
|
-
}
|
|
@@ -1,53 +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 _LicenseConversionRules_currency, _LicenseConversionRules_exchangeRateDate, _LicenseConversionRules_exchangeRate;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.LicenseConversionRules = exports.LicenseConversionRulesFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
-
var LicenseConversionRulesFields;
|
|
18
|
-
(function (LicenseConversionRulesFields) {
|
|
19
|
-
LicenseConversionRulesFields["COLUMN_CURRENCY"] = "currency";
|
|
20
|
-
LicenseConversionRulesFields["COLUMN_EXCHANGE_RATE_DATE"] = "exchangeRateDate";
|
|
21
|
-
LicenseConversionRulesFields["COLUMN_EXCHANGE_RATE"] = "exchangeRate";
|
|
22
|
-
})(LicenseConversionRulesFields = exports.LicenseConversionRulesFields || (exports.LicenseConversionRulesFields = {}));
|
|
23
|
-
class LicenseConversionRules extends abstractEntity_1.AbstractEntity {
|
|
24
|
-
constructor(input) {
|
|
25
|
-
super(input);
|
|
26
|
-
_LicenseConversionRules_currency.set(this, void 0);
|
|
27
|
-
_LicenseConversionRules_exchangeRateDate.set(this, void 0);
|
|
28
|
-
_LicenseConversionRules_exchangeRate.set(this, void 0);
|
|
29
|
-
__classPrivateFieldSet(this, _LicenseConversionRules_currency, input[LicenseConversionRulesFields.COLUMN_CURRENCY], "f");
|
|
30
|
-
__classPrivateFieldSet(this, _LicenseConversionRules_exchangeRateDate, input[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE], "f");
|
|
31
|
-
__classPrivateFieldSet(this, _LicenseConversionRules_exchangeRate, input[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE], "f");
|
|
32
|
-
}
|
|
33
|
-
get currency() {
|
|
34
|
-
return __classPrivateFieldGet(this, _LicenseConversionRules_currency, "f");
|
|
35
|
-
}
|
|
36
|
-
get exchangeRateDate() {
|
|
37
|
-
return __classPrivateFieldGet(this, _LicenseConversionRules_exchangeRateDate, "f");
|
|
38
|
-
}
|
|
39
|
-
get exchangeRate() {
|
|
40
|
-
return __classPrivateFieldGet(this, _LicenseConversionRules_exchangeRate, "f");
|
|
41
|
-
}
|
|
42
|
-
toJSON() {
|
|
43
|
-
return {
|
|
44
|
-
[LicenseConversionRulesFields.COLUMN_CURRENCY]: this.currency,
|
|
45
|
-
[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: this
|
|
46
|
-
.exchangeRateDate,
|
|
47
|
-
[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE]: this.exchangeRate,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.LicenseConversionRules = LicenseConversionRules;
|
|
52
|
-
_LicenseConversionRules_currency = new WeakMap(), _LicenseConversionRules_exchangeRateDate = new WeakMap(), _LicenseConversionRules_exchangeRate = new WeakMap();
|
|
53
|
-
//# sourceMappingURL=licenseConversionRules.js.map
|
package/build/licenses/entities/license/licensePreferredCurrency/licensePreferredCurrencyValues.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
import { BuySellData, BuySellFindResult } from '../../getLicense/buySellFindResult';
|
|
3
|
-
export declare enum LicensePreferredCurrencyValuesFields {
|
|
4
|
-
COLUMN_UNIT = "unit",
|
|
5
|
-
COLUMN_TOTAL = "total"
|
|
6
|
-
}
|
|
7
|
-
export declare type LicensePreferredCurrencyValuesType = {
|
|
8
|
-
[LicensePreferredCurrencyValuesFields.COLUMN_UNIT]: BuySellData;
|
|
9
|
-
[LicensePreferredCurrencyValuesFields.COLUMN_TOTAL]: BuySellData;
|
|
10
|
-
};
|
|
11
|
-
export declare class LicensePreferredCurrencyValues extends AbstractEntity<LicensePreferredCurrencyValuesType> {
|
|
12
|
-
#private;
|
|
13
|
-
constructor(input: LicensePreferredCurrencyValuesType);
|
|
14
|
-
get unit(): BuySellFindResult;
|
|
15
|
-
get total(): BuySellFindResult;
|
|
16
|
-
toJSON(): LicensePreferredCurrencyValuesType;
|
|
17
|
-
}
|
package/build/licenses/entities/license/licensePreferredCurrency/licensePreferredCurrencyValues.js
DELETED
|
@@ -1,46 +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 _LicensePreferredCurrencyValues_unit, _LicensePreferredCurrencyValues_total;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.LicensePreferredCurrencyValues = exports.LicensePreferredCurrencyValuesFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
-
const buySellFindResult_1 = require("../../getLicense/buySellFindResult");
|
|
18
|
-
var LicensePreferredCurrencyValuesFields;
|
|
19
|
-
(function (LicensePreferredCurrencyValuesFields) {
|
|
20
|
-
LicensePreferredCurrencyValuesFields["COLUMN_UNIT"] = "unit";
|
|
21
|
-
LicensePreferredCurrencyValuesFields["COLUMN_TOTAL"] = "total";
|
|
22
|
-
})(LicensePreferredCurrencyValuesFields = exports.LicensePreferredCurrencyValuesFields || (exports.LicensePreferredCurrencyValuesFields = {}));
|
|
23
|
-
class LicensePreferredCurrencyValues extends abstractEntity_1.AbstractEntity {
|
|
24
|
-
constructor(input) {
|
|
25
|
-
super(input);
|
|
26
|
-
_LicensePreferredCurrencyValues_unit.set(this, void 0);
|
|
27
|
-
_LicensePreferredCurrencyValues_total.set(this, void 0);
|
|
28
|
-
__classPrivateFieldSet(this, _LicensePreferredCurrencyValues_unit, new buySellFindResult_1.BuySellFindResult(input[LicensePreferredCurrencyValuesFields.COLUMN_UNIT]), "f");
|
|
29
|
-
__classPrivateFieldSet(this, _LicensePreferredCurrencyValues_total, new buySellFindResult_1.BuySellFindResult(input[LicensePreferredCurrencyValuesFields.COLUMN_TOTAL]), "f");
|
|
30
|
-
}
|
|
31
|
-
get unit() {
|
|
32
|
-
return __classPrivateFieldGet(this, _LicensePreferredCurrencyValues_unit, "f");
|
|
33
|
-
}
|
|
34
|
-
get total() {
|
|
35
|
-
return __classPrivateFieldGet(this, _LicensePreferredCurrencyValues_total, "f");
|
|
36
|
-
}
|
|
37
|
-
toJSON() {
|
|
38
|
-
return {
|
|
39
|
-
[LicensePreferredCurrencyValuesFields.COLUMN_UNIT]: this.unit.toJSON(),
|
|
40
|
-
[LicensePreferredCurrencyValuesFields.COLUMN_TOTAL]: this.total.toJSON(),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.LicensePreferredCurrencyValues = LicensePreferredCurrencyValues;
|
|
45
|
-
_LicensePreferredCurrencyValues_unit = new WeakMap(), _LicensePreferredCurrencyValues_total = new WeakMap();
|
|
46
|
-
//# sourceMappingURL=licensePreferredCurrencyValues.js.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
import { LicenseConversionRules, LicenseConversionRulesType } from './licensePreferredCurrency/licenseConversionRules';
|
|
3
|
-
import { LicensePreferredCurrencyValues, LicensePreferredCurrencyValuesType } from './licensePreferredCurrency/licensePreferredCurrencyValues';
|
|
4
|
-
export declare enum LicensePreferredCurrencyFields {
|
|
5
|
-
COLUMN_CONVERSION_RULES = "conversionRules",
|
|
6
|
-
COLUMN_VALUES = "values"
|
|
7
|
-
}
|
|
8
|
-
export declare type LicensePreferredCurrencyType = {
|
|
9
|
-
[LicensePreferredCurrencyFields.COLUMN_CONVERSION_RULES]: LicenseConversionRulesType;
|
|
10
|
-
[LicensePreferredCurrencyFields.COLUMN_VALUES]: LicensePreferredCurrencyValuesType;
|
|
11
|
-
};
|
|
12
|
-
export declare class LicensePreferredCurrency extends AbstractEntity<LicensePreferredCurrencyType> {
|
|
13
|
-
#private;
|
|
14
|
-
constructor(input: LicensePreferredCurrencyType);
|
|
15
|
-
get conversionRules(): LicenseConversionRules;
|
|
16
|
-
get values(): LicensePreferredCurrencyValues;
|
|
17
|
-
toJSON(): LicensePreferredCurrencyType;
|
|
18
|
-
}
|
|
@@ -1,47 +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 _LicensePreferredCurrency_conversionRules, _LicensePreferredCurrency_values;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.LicensePreferredCurrency = exports.LicensePreferredCurrencyFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
const licenseConversionRules_1 = require("./licensePreferredCurrency/licenseConversionRules");
|
|
18
|
-
const licensePreferredCurrencyValues_1 = require("./licensePreferredCurrency/licensePreferredCurrencyValues");
|
|
19
|
-
var LicensePreferredCurrencyFields;
|
|
20
|
-
(function (LicensePreferredCurrencyFields) {
|
|
21
|
-
LicensePreferredCurrencyFields["COLUMN_CONVERSION_RULES"] = "conversionRules";
|
|
22
|
-
LicensePreferredCurrencyFields["COLUMN_VALUES"] = "values";
|
|
23
|
-
})(LicensePreferredCurrencyFields = exports.LicensePreferredCurrencyFields || (exports.LicensePreferredCurrencyFields = {}));
|
|
24
|
-
class LicensePreferredCurrency extends abstractEntity_1.AbstractEntity {
|
|
25
|
-
constructor(input) {
|
|
26
|
-
super(input);
|
|
27
|
-
_LicensePreferredCurrency_conversionRules.set(this, void 0);
|
|
28
|
-
_LicensePreferredCurrency_values.set(this, void 0);
|
|
29
|
-
__classPrivateFieldSet(this, _LicensePreferredCurrency_conversionRules, new licenseConversionRules_1.LicenseConversionRules(input[LicensePreferredCurrencyFields.COLUMN_CONVERSION_RULES]), "f");
|
|
30
|
-
__classPrivateFieldSet(this, _LicensePreferredCurrency_values, new licensePreferredCurrencyValues_1.LicensePreferredCurrencyValues(input[LicensePreferredCurrencyFields.COLUMN_VALUES]), "f");
|
|
31
|
-
}
|
|
32
|
-
get conversionRules() {
|
|
33
|
-
return __classPrivateFieldGet(this, _LicensePreferredCurrency_conversionRules, "f");
|
|
34
|
-
}
|
|
35
|
-
get values() {
|
|
36
|
-
return __classPrivateFieldGet(this, _LicensePreferredCurrency_values, "f");
|
|
37
|
-
}
|
|
38
|
-
toJSON() {
|
|
39
|
-
return {
|
|
40
|
-
[LicensePreferredCurrencyFields.COLUMN_CONVERSION_RULES]: this.conversionRules.toJSON(),
|
|
41
|
-
[LicensePreferredCurrencyFields.COLUMN_VALUES]: this.values.toJSON(),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.LicensePreferredCurrency = LicensePreferredCurrency;
|
|
46
|
-
_LicensePreferredCurrency_conversionRules = new WeakMap(), _LicensePreferredCurrency_values = new WeakMap();
|
|
47
|
-
//# sourceMappingURL=licensePreferredCurrency.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,52 +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 _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
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,45 +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 _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
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,47 +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 _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
|