@arrowsphere/api-client 3.412.0 → 3.413.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/build/quotes/entities/Quote.d.ts +50 -0
- package/build/quotes/entities/Quote.js +125 -0
- package/build/quotes/entities/QuoteLastVersion.d.ts +16 -0
- package/build/quotes/entities/QuoteLastVersion.js +45 -0
- package/build/quotes/entities/QuoteList.d.ts +9 -0
- package/build/quotes/entities/QuoteList.js +33 -0
- package/build/quotes/entities/QuoteProduct.d.ts +51 -0
- package/build/quotes/entities/QuoteProduct.js +120 -0
- package/build/quotes/entities/QuoteProductAssets.d.ts +16 -0
- package/build/quotes/entities/QuoteProductAssets.js +45 -0
- package/build/quotes/entities/QuoteProductIdentifiers.d.ts +21 -0
- package/build/quotes/entities/QuoteProductIdentifiers.js +49 -0
- package/build/quotes/entities/QuoteProductPrices.d.ts +31 -0
- package/build/quotes/entities/QuoteProductPrices.js +80 -0
- package/build/quotes/entities/QuoteProductProgram.d.ts +16 -0
- package/build/quotes/entities/QuoteProductProgram.js +45 -0
- package/build/quotes/index.d.ts +8 -0
- package/build/quotes/index.js +8 -0
- package/build/quotes/quotesClient.d.ts +4 -0
- package/build/quotes/quotesClient.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { OrderPartner, OrderPartnerType } from '../../orders/entities/orders/partner/partner';
|
|
3
|
+
import { ReferenceLink, ReferenceLinkType } from '../../orders/entities/referenceLink';
|
|
4
|
+
import { QuoteLastVersion, QuoteLastVersionType } from './QuoteLastVersion';
|
|
5
|
+
import { QuoteProduct, QuoteProductData } from './QuoteProduct';
|
|
6
|
+
export declare enum QuoteFields {
|
|
7
|
+
QUOTE_REFERENCE = "quoteReference",
|
|
8
|
+
REFERENCE = "reference",
|
|
9
|
+
STATUS = "status",
|
|
10
|
+
DATE_CREATION = "dateCreation",
|
|
11
|
+
DATE_UPDATE = "dateUpdate",
|
|
12
|
+
DATE_END = "dateEnd",
|
|
13
|
+
PARTNER = "partner",
|
|
14
|
+
CUSTOMER = "customer",
|
|
15
|
+
PO_NUMBER = "ponumber",
|
|
16
|
+
END_CUSTOMER_PO_NUMBER = "endCustomerPONumber",
|
|
17
|
+
LAST_VERSION = "lastVersion",
|
|
18
|
+
PRODUCTS = "products"
|
|
19
|
+
}
|
|
20
|
+
export declare type QuoteData = {
|
|
21
|
+
[QuoteFields.QUOTE_REFERENCE]: string;
|
|
22
|
+
[QuoteFields.REFERENCE]: string;
|
|
23
|
+
[QuoteFields.STATUS]: string;
|
|
24
|
+
[QuoteFields.DATE_CREATION]: string;
|
|
25
|
+
[QuoteFields.DATE_UPDATE]: string;
|
|
26
|
+
[QuoteFields.DATE_END]?: string;
|
|
27
|
+
[QuoteFields.PARTNER]?: OrderPartnerType;
|
|
28
|
+
[QuoteFields.CUSTOMER]?: ReferenceLinkType;
|
|
29
|
+
[QuoteFields.PO_NUMBER]?: string;
|
|
30
|
+
[QuoteFields.END_CUSTOMER_PO_NUMBER]?: string;
|
|
31
|
+
[QuoteFields.LAST_VERSION]?: QuoteLastVersionType;
|
|
32
|
+
[QuoteFields.PRODUCTS]: QuoteProductData[];
|
|
33
|
+
};
|
|
34
|
+
export declare class Quote extends AbstractEntity<QuoteData> {
|
|
35
|
+
#private;
|
|
36
|
+
constructor(data: QuoteData);
|
|
37
|
+
get quoteReference(): string;
|
|
38
|
+
get reference(): string;
|
|
39
|
+
get status(): string;
|
|
40
|
+
get dateCreation(): string;
|
|
41
|
+
get dateUpdate(): string;
|
|
42
|
+
get dateEnd(): string | undefined;
|
|
43
|
+
get partner(): OrderPartner | undefined;
|
|
44
|
+
get customer(): ReferenceLink | undefined;
|
|
45
|
+
get ponumber(): string | undefined;
|
|
46
|
+
get endCustomerPONumber(): string | undefined;
|
|
47
|
+
get lastVersion(): QuoteLastVersion | undefined;
|
|
48
|
+
get products(): QuoteProduct[];
|
|
49
|
+
toJSON(): QuoteData;
|
|
50
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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 _Quote_quoteReference, _Quote_reference, _Quote_status, _Quote_dateCreation, _Quote_dateUpdate, _Quote_dateEnd, _Quote_partner, _Quote_customer, _Quote_ponumber, _Quote_endCustomerPONumber, _Quote_lastVersion, _Quote_products;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Quote = exports.QuoteFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const partner_1 = require("../../orders/entities/orders/partner/partner");
|
|
18
|
+
const referenceLink_1 = require("../../orders/entities/referenceLink");
|
|
19
|
+
const QuoteLastVersion_1 = require("./QuoteLastVersion");
|
|
20
|
+
const QuoteProduct_1 = require("./QuoteProduct");
|
|
21
|
+
var QuoteFields;
|
|
22
|
+
(function (QuoteFields) {
|
|
23
|
+
QuoteFields["QUOTE_REFERENCE"] = "quoteReference";
|
|
24
|
+
QuoteFields["REFERENCE"] = "reference";
|
|
25
|
+
QuoteFields["STATUS"] = "status";
|
|
26
|
+
QuoteFields["DATE_CREATION"] = "dateCreation";
|
|
27
|
+
QuoteFields["DATE_UPDATE"] = "dateUpdate";
|
|
28
|
+
QuoteFields["DATE_END"] = "dateEnd";
|
|
29
|
+
QuoteFields["PARTNER"] = "partner";
|
|
30
|
+
QuoteFields["CUSTOMER"] = "customer";
|
|
31
|
+
QuoteFields["PO_NUMBER"] = "ponumber";
|
|
32
|
+
QuoteFields["END_CUSTOMER_PO_NUMBER"] = "endCustomerPONumber";
|
|
33
|
+
QuoteFields["LAST_VERSION"] = "lastVersion";
|
|
34
|
+
QuoteFields["PRODUCTS"] = "products";
|
|
35
|
+
})(QuoteFields = exports.QuoteFields || (exports.QuoteFields = {}));
|
|
36
|
+
class Quote extends abstractEntity_1.AbstractEntity {
|
|
37
|
+
constructor(data) {
|
|
38
|
+
super(data);
|
|
39
|
+
_Quote_quoteReference.set(this, void 0);
|
|
40
|
+
_Quote_reference.set(this, void 0);
|
|
41
|
+
_Quote_status.set(this, void 0);
|
|
42
|
+
_Quote_dateCreation.set(this, void 0);
|
|
43
|
+
_Quote_dateUpdate.set(this, void 0);
|
|
44
|
+
_Quote_dateEnd.set(this, void 0);
|
|
45
|
+
_Quote_partner.set(this, void 0);
|
|
46
|
+
_Quote_customer.set(this, void 0);
|
|
47
|
+
_Quote_ponumber.set(this, void 0);
|
|
48
|
+
_Quote_endCustomerPONumber.set(this, void 0);
|
|
49
|
+
_Quote_lastVersion.set(this, void 0);
|
|
50
|
+
_Quote_products.set(this, void 0);
|
|
51
|
+
__classPrivateFieldSet(this, _Quote_quoteReference, data[QuoteFields.QUOTE_REFERENCE], "f");
|
|
52
|
+
__classPrivateFieldSet(this, _Quote_reference, data[QuoteFields.REFERENCE], "f");
|
|
53
|
+
__classPrivateFieldSet(this, _Quote_status, data[QuoteFields.STATUS], "f");
|
|
54
|
+
__classPrivateFieldSet(this, _Quote_dateCreation, data[QuoteFields.DATE_CREATION], "f");
|
|
55
|
+
__classPrivateFieldSet(this, _Quote_dateUpdate, data[QuoteFields.DATE_UPDATE], "f");
|
|
56
|
+
__classPrivateFieldSet(this, _Quote_dateEnd, data[QuoteFields.DATE_END], "f");
|
|
57
|
+
const partner = data[QuoteFields.PARTNER];
|
|
58
|
+
__classPrivateFieldSet(this, _Quote_partner, partner ? new partner_1.OrderPartner(partner) : undefined, "f");
|
|
59
|
+
const customer = data[QuoteFields.CUSTOMER];
|
|
60
|
+
__classPrivateFieldSet(this, _Quote_customer, customer ? new referenceLink_1.ReferenceLink(customer) : undefined, "f");
|
|
61
|
+
__classPrivateFieldSet(this, _Quote_ponumber, data[QuoteFields.PO_NUMBER], "f");
|
|
62
|
+
__classPrivateFieldSet(this, _Quote_endCustomerPONumber, data[QuoteFields.END_CUSTOMER_PO_NUMBER], "f");
|
|
63
|
+
const lastVersion = data[QuoteFields.LAST_VERSION];
|
|
64
|
+
__classPrivateFieldSet(this, _Quote_lastVersion, lastVersion
|
|
65
|
+
? new QuoteLastVersion_1.QuoteLastVersion(lastVersion)
|
|
66
|
+
: undefined, "f");
|
|
67
|
+
__classPrivateFieldSet(this, _Quote_products, data[QuoteFields.PRODUCTS].map((product) => new QuoteProduct_1.QuoteProduct(product)), "f");
|
|
68
|
+
}
|
|
69
|
+
get quoteReference() {
|
|
70
|
+
return __classPrivateFieldGet(this, _Quote_quoteReference, "f");
|
|
71
|
+
}
|
|
72
|
+
get reference() {
|
|
73
|
+
return __classPrivateFieldGet(this, _Quote_reference, "f");
|
|
74
|
+
}
|
|
75
|
+
get status() {
|
|
76
|
+
return __classPrivateFieldGet(this, _Quote_status, "f");
|
|
77
|
+
}
|
|
78
|
+
get dateCreation() {
|
|
79
|
+
return __classPrivateFieldGet(this, _Quote_dateCreation, "f");
|
|
80
|
+
}
|
|
81
|
+
get dateUpdate() {
|
|
82
|
+
return __classPrivateFieldGet(this, _Quote_dateUpdate, "f");
|
|
83
|
+
}
|
|
84
|
+
get dateEnd() {
|
|
85
|
+
return __classPrivateFieldGet(this, _Quote_dateEnd, "f");
|
|
86
|
+
}
|
|
87
|
+
get partner() {
|
|
88
|
+
return __classPrivateFieldGet(this, _Quote_partner, "f");
|
|
89
|
+
}
|
|
90
|
+
get customer() {
|
|
91
|
+
return __classPrivateFieldGet(this, _Quote_customer, "f");
|
|
92
|
+
}
|
|
93
|
+
get ponumber() {
|
|
94
|
+
return __classPrivateFieldGet(this, _Quote_ponumber, "f");
|
|
95
|
+
}
|
|
96
|
+
get endCustomerPONumber() {
|
|
97
|
+
return __classPrivateFieldGet(this, _Quote_endCustomerPONumber, "f");
|
|
98
|
+
}
|
|
99
|
+
get lastVersion() {
|
|
100
|
+
return __classPrivateFieldGet(this, _Quote_lastVersion, "f");
|
|
101
|
+
}
|
|
102
|
+
get products() {
|
|
103
|
+
return __classPrivateFieldGet(this, _Quote_products, "f");
|
|
104
|
+
}
|
|
105
|
+
toJSON() {
|
|
106
|
+
var _a, _b, _c;
|
|
107
|
+
return {
|
|
108
|
+
[QuoteFields.QUOTE_REFERENCE]: this.quoteReference,
|
|
109
|
+
[QuoteFields.REFERENCE]: this.reference,
|
|
110
|
+
[QuoteFields.STATUS]: this.status,
|
|
111
|
+
[QuoteFields.DATE_CREATION]: this.dateCreation,
|
|
112
|
+
[QuoteFields.DATE_UPDATE]: this.dateUpdate,
|
|
113
|
+
[QuoteFields.DATE_END]: this.dateEnd,
|
|
114
|
+
[QuoteFields.PARTNER]: (_a = this.partner) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
115
|
+
[QuoteFields.CUSTOMER]: (_b = this.customer) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
116
|
+
[QuoteFields.PO_NUMBER]: this.ponumber,
|
|
117
|
+
[QuoteFields.END_CUSTOMER_PO_NUMBER]: this.endCustomerPONumber,
|
|
118
|
+
[QuoteFields.LAST_VERSION]: (_c = this.lastVersion) === null || _c === void 0 ? void 0 : _c.toJSON(),
|
|
119
|
+
[QuoteFields.PRODUCTS]: this.products.map((product) => product.toJSON()),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.Quote = Quote;
|
|
124
|
+
_Quote_quoteReference = new WeakMap(), _Quote_reference = new WeakMap(), _Quote_status = new WeakMap(), _Quote_dateCreation = new WeakMap(), _Quote_dateUpdate = new WeakMap(), _Quote_dateEnd = new WeakMap(), _Quote_partner = new WeakMap(), _Quote_customer = new WeakMap(), _Quote_ponumber = new WeakMap(), _Quote_endCustomerPONumber = new WeakMap(), _Quote_lastVersion = new WeakMap(), _Quote_products = new WeakMap();
|
|
125
|
+
//# sourceMappingURL=Quote.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum QuoteLastVersionFields {
|
|
3
|
+
VERSION = "version",
|
|
4
|
+
DATE_UPDATE = "dateUpdate"
|
|
5
|
+
}
|
|
6
|
+
export declare type QuoteLastVersionType = {
|
|
7
|
+
[QuoteLastVersionFields.VERSION]?: number;
|
|
8
|
+
[QuoteLastVersionFields.DATE_UPDATE]?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class QuoteLastVersion extends AbstractEntity<QuoteLastVersionType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(data: QuoteLastVersionType);
|
|
13
|
+
get version(): number | undefined;
|
|
14
|
+
get dateUpdate(): string | undefined;
|
|
15
|
+
toJSON(): QuoteLastVersionType;
|
|
16
|
+
}
|
|
@@ -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 _QuoteLastVersion_version, _QuoteLastVersion_dateUpdate;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.QuoteLastVersion = exports.QuoteLastVersionFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var QuoteLastVersionFields;
|
|
18
|
+
(function (QuoteLastVersionFields) {
|
|
19
|
+
QuoteLastVersionFields["VERSION"] = "version";
|
|
20
|
+
QuoteLastVersionFields["DATE_UPDATE"] = "dateUpdate";
|
|
21
|
+
})(QuoteLastVersionFields = exports.QuoteLastVersionFields || (exports.QuoteLastVersionFields = {}));
|
|
22
|
+
class QuoteLastVersion extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(data) {
|
|
24
|
+
super(data);
|
|
25
|
+
_QuoteLastVersion_version.set(this, void 0);
|
|
26
|
+
_QuoteLastVersion_dateUpdate.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _QuoteLastVersion_version, data[QuoteLastVersionFields.VERSION], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _QuoteLastVersion_dateUpdate, data[QuoteLastVersionFields.DATE_UPDATE], "f");
|
|
29
|
+
}
|
|
30
|
+
get version() {
|
|
31
|
+
return __classPrivateFieldGet(this, _QuoteLastVersion_version, "f");
|
|
32
|
+
}
|
|
33
|
+
get dateUpdate() {
|
|
34
|
+
return __classPrivateFieldGet(this, _QuoteLastVersion_dateUpdate, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[QuoteLastVersionFields.VERSION]: this.version,
|
|
39
|
+
[QuoteLastVersionFields.DATE_UPDATE]: this.dateUpdate,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.QuoteLastVersion = QuoteLastVersion;
|
|
44
|
+
_QuoteLastVersion_version = new WeakMap(), _QuoteLastVersion_dateUpdate = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=QuoteLastVersion.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { Quote, QuoteData } from './Quote';
|
|
3
|
+
export declare type QuoteListData = Array<QuoteData>;
|
|
4
|
+
export declare class QuoteList extends AbstractEntity<QuoteListData> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(data: QuoteListData);
|
|
7
|
+
get quotes(): Array<Quote>;
|
|
8
|
+
toJSON(): QuoteListData;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 _QuoteList_quotes;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.QuoteList = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const Quote_1 = require("./Quote");
|
|
18
|
+
class QuoteList extends abstractEntity_1.AbstractEntity {
|
|
19
|
+
constructor(data) {
|
|
20
|
+
super(data);
|
|
21
|
+
_QuoteList_quotes.set(this, void 0);
|
|
22
|
+
__classPrivateFieldSet(this, _QuoteList_quotes, data.map((quote) => new Quote_1.Quote(quote)), "f");
|
|
23
|
+
}
|
|
24
|
+
get quotes() {
|
|
25
|
+
return __classPrivateFieldGet(this, _QuoteList_quotes, "f");
|
|
26
|
+
}
|
|
27
|
+
toJSON() {
|
|
28
|
+
return this.quotes.map((quote) => quote.toJSON());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.QuoteList = QuoteList;
|
|
32
|
+
_QuoteList_quotes = new WeakMap();
|
|
33
|
+
//# sourceMappingURL=QuoteList.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { ReferenceLink, ReferenceLinkType } from '../../orders/entities/referenceLink';
|
|
3
|
+
import { QuoteProductAssets, QuoteProductAssetsData } from './QuoteProductAssets';
|
|
4
|
+
import { QuoteProductIdentifiers, QuoteProductIdentifiersData } from './QuoteProductIdentifiers';
|
|
5
|
+
import { QuoteProductPrices, QuoteProductPricesData } from './QuoteProductPrices';
|
|
6
|
+
import { QuoteProductProgram, QuoteProductProgramData } from './QuoteProductProgram';
|
|
7
|
+
export declare enum QuoteProductFields {
|
|
8
|
+
SKU = "sku",
|
|
9
|
+
QUANTITY = "quantity",
|
|
10
|
+
PRICES = "prices",
|
|
11
|
+
LICENSE = "license",
|
|
12
|
+
NAME = "name",
|
|
13
|
+
IS_ADDON = "isAddon",
|
|
14
|
+
IS_TRIAL = "isTrial",
|
|
15
|
+
CLASSIFICATION = "classification",
|
|
16
|
+
ARROW_SUB_CATEGORIES = "arrowSubCategories",
|
|
17
|
+
IDENTIFIERS = "identifiers",
|
|
18
|
+
PROGRAM = "program",
|
|
19
|
+
ASSETS = "assets"
|
|
20
|
+
}
|
|
21
|
+
export declare type QuoteProductData = {
|
|
22
|
+
[QuoteProductFields.SKU]: string;
|
|
23
|
+
[QuoteProductFields.QUANTITY]: number;
|
|
24
|
+
[QuoteProductFields.PRICES]: QuoteProductPricesData;
|
|
25
|
+
[QuoteProductFields.LICENSE]: ReferenceLinkType;
|
|
26
|
+
[QuoteProductFields.NAME]: string;
|
|
27
|
+
[QuoteProductFields.IS_ADDON]: boolean;
|
|
28
|
+
[QuoteProductFields.IS_TRIAL]: boolean;
|
|
29
|
+
[QuoteProductFields.CLASSIFICATION]: string;
|
|
30
|
+
[QuoteProductFields.ARROW_SUB_CATEGORIES]: string[];
|
|
31
|
+
[QuoteProductFields.IDENTIFIERS]: QuoteProductIdentifiersData;
|
|
32
|
+
[QuoteProductFields.PROGRAM]: QuoteProductProgramData;
|
|
33
|
+
[QuoteProductFields.ASSETS]: QuoteProductAssetsData;
|
|
34
|
+
};
|
|
35
|
+
export declare class QuoteProduct extends AbstractEntity<QuoteProductData> {
|
|
36
|
+
#private;
|
|
37
|
+
constructor(data: QuoteProductData);
|
|
38
|
+
get sku(): string;
|
|
39
|
+
get quantity(): number;
|
|
40
|
+
get prices(): QuoteProductPrices;
|
|
41
|
+
get license(): ReferenceLink;
|
|
42
|
+
get name(): string;
|
|
43
|
+
get isAddon(): boolean;
|
|
44
|
+
get isTrial(): boolean;
|
|
45
|
+
get classification(): string;
|
|
46
|
+
get arrowSubCategories(): string[];
|
|
47
|
+
get identifiers(): QuoteProductIdentifiers;
|
|
48
|
+
get program(): QuoteProductProgram;
|
|
49
|
+
get assets(): QuoteProductAssets;
|
|
50
|
+
toJSON(): QuoteProductData;
|
|
51
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
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 _QuoteProduct_sku, _QuoteProduct_quantity, _QuoteProduct_prices, _QuoteProduct_license, _QuoteProduct_name, _QuoteProduct_isAddon, _QuoteProduct_isTrial, _QuoteProduct_classification, _QuoteProduct_arrowSubCategories, _QuoteProduct_identifiers, _QuoteProduct_program, _QuoteProduct_assets;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.QuoteProduct = exports.QuoteProductFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const referenceLink_1 = require("../../orders/entities/referenceLink");
|
|
18
|
+
const QuoteProductAssets_1 = require("./QuoteProductAssets");
|
|
19
|
+
const QuoteProductIdentifiers_1 = require("./QuoteProductIdentifiers");
|
|
20
|
+
const QuoteProductPrices_1 = require("./QuoteProductPrices");
|
|
21
|
+
const QuoteProductProgram_1 = require("./QuoteProductProgram");
|
|
22
|
+
var QuoteProductFields;
|
|
23
|
+
(function (QuoteProductFields) {
|
|
24
|
+
QuoteProductFields["SKU"] = "sku";
|
|
25
|
+
QuoteProductFields["QUANTITY"] = "quantity";
|
|
26
|
+
QuoteProductFields["PRICES"] = "prices";
|
|
27
|
+
QuoteProductFields["LICENSE"] = "license";
|
|
28
|
+
QuoteProductFields["NAME"] = "name";
|
|
29
|
+
QuoteProductFields["IS_ADDON"] = "isAddon";
|
|
30
|
+
QuoteProductFields["IS_TRIAL"] = "isTrial";
|
|
31
|
+
QuoteProductFields["CLASSIFICATION"] = "classification";
|
|
32
|
+
QuoteProductFields["ARROW_SUB_CATEGORIES"] = "arrowSubCategories";
|
|
33
|
+
QuoteProductFields["IDENTIFIERS"] = "identifiers";
|
|
34
|
+
QuoteProductFields["PROGRAM"] = "program";
|
|
35
|
+
QuoteProductFields["ASSETS"] = "assets";
|
|
36
|
+
})(QuoteProductFields = exports.QuoteProductFields || (exports.QuoteProductFields = {}));
|
|
37
|
+
class QuoteProduct extends abstractEntity_1.AbstractEntity {
|
|
38
|
+
constructor(data) {
|
|
39
|
+
super(data);
|
|
40
|
+
_QuoteProduct_sku.set(this, void 0);
|
|
41
|
+
_QuoteProduct_quantity.set(this, void 0);
|
|
42
|
+
_QuoteProduct_prices.set(this, void 0);
|
|
43
|
+
_QuoteProduct_license.set(this, void 0);
|
|
44
|
+
_QuoteProduct_name.set(this, void 0);
|
|
45
|
+
_QuoteProduct_isAddon.set(this, void 0);
|
|
46
|
+
_QuoteProduct_isTrial.set(this, void 0);
|
|
47
|
+
_QuoteProduct_classification.set(this, void 0);
|
|
48
|
+
_QuoteProduct_arrowSubCategories.set(this, void 0);
|
|
49
|
+
_QuoteProduct_identifiers.set(this, void 0);
|
|
50
|
+
_QuoteProduct_program.set(this, void 0);
|
|
51
|
+
_QuoteProduct_assets.set(this, void 0);
|
|
52
|
+
__classPrivateFieldSet(this, _QuoteProduct_sku, data[QuoteProductFields.SKU], "f");
|
|
53
|
+
__classPrivateFieldSet(this, _QuoteProduct_quantity, data[QuoteProductFields.QUANTITY], "f");
|
|
54
|
+
__classPrivateFieldSet(this, _QuoteProduct_prices, new QuoteProductPrices_1.QuoteProductPrices(data[QuoteProductFields.PRICES]), "f");
|
|
55
|
+
__classPrivateFieldSet(this, _QuoteProduct_license, new referenceLink_1.ReferenceLink(data[QuoteProductFields.LICENSE]), "f");
|
|
56
|
+
__classPrivateFieldSet(this, _QuoteProduct_name, data[QuoteProductFields.NAME], "f");
|
|
57
|
+
__classPrivateFieldSet(this, _QuoteProduct_isAddon, data[QuoteProductFields.IS_ADDON], "f");
|
|
58
|
+
__classPrivateFieldSet(this, _QuoteProduct_isTrial, data[QuoteProductFields.IS_TRIAL], "f");
|
|
59
|
+
__classPrivateFieldSet(this, _QuoteProduct_classification, data[QuoteProductFields.CLASSIFICATION], "f");
|
|
60
|
+
__classPrivateFieldSet(this, _QuoteProduct_arrowSubCategories, data[QuoteProductFields.ARROW_SUB_CATEGORIES], "f");
|
|
61
|
+
__classPrivateFieldSet(this, _QuoteProduct_identifiers, new QuoteProductIdentifiers_1.QuoteProductIdentifiers(data[QuoteProductFields.IDENTIFIERS]), "f");
|
|
62
|
+
__classPrivateFieldSet(this, _QuoteProduct_program, new QuoteProductProgram_1.QuoteProductProgram(data[QuoteProductFields.PROGRAM]), "f");
|
|
63
|
+
__classPrivateFieldSet(this, _QuoteProduct_assets, new QuoteProductAssets_1.QuoteProductAssets(data[QuoteProductFields.ASSETS]), "f");
|
|
64
|
+
}
|
|
65
|
+
get sku() {
|
|
66
|
+
return __classPrivateFieldGet(this, _QuoteProduct_sku, "f");
|
|
67
|
+
}
|
|
68
|
+
get quantity() {
|
|
69
|
+
return __classPrivateFieldGet(this, _QuoteProduct_quantity, "f");
|
|
70
|
+
}
|
|
71
|
+
get prices() {
|
|
72
|
+
return __classPrivateFieldGet(this, _QuoteProduct_prices, "f");
|
|
73
|
+
}
|
|
74
|
+
get license() {
|
|
75
|
+
return __classPrivateFieldGet(this, _QuoteProduct_license, "f");
|
|
76
|
+
}
|
|
77
|
+
get name() {
|
|
78
|
+
return __classPrivateFieldGet(this, _QuoteProduct_name, "f");
|
|
79
|
+
}
|
|
80
|
+
get isAddon() {
|
|
81
|
+
return __classPrivateFieldGet(this, _QuoteProduct_isAddon, "f");
|
|
82
|
+
}
|
|
83
|
+
get isTrial() {
|
|
84
|
+
return __classPrivateFieldGet(this, _QuoteProduct_isTrial, "f");
|
|
85
|
+
}
|
|
86
|
+
get classification() {
|
|
87
|
+
return __classPrivateFieldGet(this, _QuoteProduct_classification, "f");
|
|
88
|
+
}
|
|
89
|
+
get arrowSubCategories() {
|
|
90
|
+
return __classPrivateFieldGet(this, _QuoteProduct_arrowSubCategories, "f");
|
|
91
|
+
}
|
|
92
|
+
get identifiers() {
|
|
93
|
+
return __classPrivateFieldGet(this, _QuoteProduct_identifiers, "f");
|
|
94
|
+
}
|
|
95
|
+
get program() {
|
|
96
|
+
return __classPrivateFieldGet(this, _QuoteProduct_program, "f");
|
|
97
|
+
}
|
|
98
|
+
get assets() {
|
|
99
|
+
return __classPrivateFieldGet(this, _QuoteProduct_assets, "f");
|
|
100
|
+
}
|
|
101
|
+
toJSON() {
|
|
102
|
+
return {
|
|
103
|
+
[QuoteProductFields.SKU]: this.sku,
|
|
104
|
+
[QuoteProductFields.QUANTITY]: this.quantity,
|
|
105
|
+
[QuoteProductFields.PRICES]: this.prices.toJSON(),
|
|
106
|
+
[QuoteProductFields.LICENSE]: this.license.toJSON(),
|
|
107
|
+
[QuoteProductFields.NAME]: this.name,
|
|
108
|
+
[QuoteProductFields.IS_ADDON]: this.isAddon,
|
|
109
|
+
[QuoteProductFields.IS_TRIAL]: this.isTrial,
|
|
110
|
+
[QuoteProductFields.CLASSIFICATION]: this.classification,
|
|
111
|
+
[QuoteProductFields.ARROW_SUB_CATEGORIES]: this.arrowSubCategories,
|
|
112
|
+
[QuoteProductFields.IDENTIFIERS]: this.identifiers.toJSON(),
|
|
113
|
+
[QuoteProductFields.PROGRAM]: this.program.toJSON(),
|
|
114
|
+
[QuoteProductFields.ASSETS]: this.assets.toJSON(),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.QuoteProduct = QuoteProduct;
|
|
119
|
+
_QuoteProduct_sku = new WeakMap(), _QuoteProduct_quantity = new WeakMap(), _QuoteProduct_prices = new WeakMap(), _QuoteProduct_license = new WeakMap(), _QuoteProduct_name = new WeakMap(), _QuoteProduct_isAddon = new WeakMap(), _QuoteProduct_isTrial = new WeakMap(), _QuoteProduct_classification = new WeakMap(), _QuoteProduct_arrowSubCategories = new WeakMap(), _QuoteProduct_identifiers = new WeakMap(), _QuoteProduct_program = new WeakMap(), _QuoteProduct_assets = new WeakMap();
|
|
120
|
+
//# sourceMappingURL=QuoteProduct.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum QuoteProductAssetsFields {
|
|
3
|
+
MAIN_LOGO_URL = "mainLogoUrl",
|
|
4
|
+
SQUARE_LOGO_URL = "squareLogoUrl"
|
|
5
|
+
}
|
|
6
|
+
export declare type QuoteProductAssetsData = {
|
|
7
|
+
[QuoteProductAssetsFields.MAIN_LOGO_URL]: string | null;
|
|
8
|
+
[QuoteProductAssetsFields.SQUARE_LOGO_URL]: string | null;
|
|
9
|
+
};
|
|
10
|
+
export declare class QuoteProductAssets extends AbstractEntity<QuoteProductAssetsData> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(data: QuoteProductAssetsData);
|
|
13
|
+
get mainLogoUrl(): string | null;
|
|
14
|
+
get squareLogoUrl(): string | null;
|
|
15
|
+
toJSON(): QuoteProductAssetsData;
|
|
16
|
+
}
|
|
@@ -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 _QuoteProductAssets_mainLogoUrl, _QuoteProductAssets_squareLogoUrl;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.QuoteProductAssets = exports.QuoteProductAssetsFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var QuoteProductAssetsFields;
|
|
18
|
+
(function (QuoteProductAssetsFields) {
|
|
19
|
+
QuoteProductAssetsFields["MAIN_LOGO_URL"] = "mainLogoUrl";
|
|
20
|
+
QuoteProductAssetsFields["SQUARE_LOGO_URL"] = "squareLogoUrl";
|
|
21
|
+
})(QuoteProductAssetsFields = exports.QuoteProductAssetsFields || (exports.QuoteProductAssetsFields = {}));
|
|
22
|
+
class QuoteProductAssets extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(data) {
|
|
24
|
+
super(data);
|
|
25
|
+
_QuoteProductAssets_mainLogoUrl.set(this, void 0);
|
|
26
|
+
_QuoteProductAssets_squareLogoUrl.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _QuoteProductAssets_mainLogoUrl, data[QuoteProductAssetsFields.MAIN_LOGO_URL], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _QuoteProductAssets_squareLogoUrl, data[QuoteProductAssetsFields.SQUARE_LOGO_URL], "f");
|
|
29
|
+
}
|
|
30
|
+
get mainLogoUrl() {
|
|
31
|
+
return __classPrivateFieldGet(this, _QuoteProductAssets_mainLogoUrl, "f");
|
|
32
|
+
}
|
|
33
|
+
get squareLogoUrl() {
|
|
34
|
+
return __classPrivateFieldGet(this, _QuoteProductAssets_squareLogoUrl, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[QuoteProductAssetsFields.MAIN_LOGO_URL]: this.mainLogoUrl,
|
|
39
|
+
[QuoteProductAssetsFields.SQUARE_LOGO_URL]: this.squareLogoUrl,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.QuoteProductAssets = QuoteProductAssets;
|
|
44
|
+
_QuoteProductAssets_mainLogoUrl = new WeakMap(), _QuoteProductAssets_squareLogoUrl = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=QuoteProductAssets.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum QuoteProductIdentifiersFields {
|
|
3
|
+
VENDOR = "vendor"
|
|
4
|
+
}
|
|
5
|
+
export declare enum QuoteProductIdentifiersVendorFields {
|
|
6
|
+
NAME = "name",
|
|
7
|
+
SKU = "sku"
|
|
8
|
+
}
|
|
9
|
+
export declare type QuoteProductIdentifiersVendorData = {
|
|
10
|
+
[QuoteProductIdentifiersVendorFields.NAME]: string;
|
|
11
|
+
[QuoteProductIdentifiersVendorFields.SKU]: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type QuoteProductIdentifiersData = {
|
|
14
|
+
[QuoteProductIdentifiersFields.VENDOR]: QuoteProductIdentifiersVendorData;
|
|
15
|
+
};
|
|
16
|
+
export declare class QuoteProductIdentifiers extends AbstractEntity<QuoteProductIdentifiersData> {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(data: QuoteProductIdentifiersData);
|
|
19
|
+
get vendor(): QuoteProductIdentifiersVendorData;
|
|
20
|
+
toJSON(): QuoteProductIdentifiersData;
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 _QuoteProductIdentifiers_vendor;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.QuoteProductIdentifiers = exports.QuoteProductIdentifiersVendorFields = exports.QuoteProductIdentifiersFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var QuoteProductIdentifiersFields;
|
|
18
|
+
(function (QuoteProductIdentifiersFields) {
|
|
19
|
+
QuoteProductIdentifiersFields["VENDOR"] = "vendor";
|
|
20
|
+
})(QuoteProductIdentifiersFields = exports.QuoteProductIdentifiersFields || (exports.QuoteProductIdentifiersFields = {}));
|
|
21
|
+
var QuoteProductIdentifiersVendorFields;
|
|
22
|
+
(function (QuoteProductIdentifiersVendorFields) {
|
|
23
|
+
QuoteProductIdentifiersVendorFields["NAME"] = "name";
|
|
24
|
+
QuoteProductIdentifiersVendorFields["SKU"] = "sku";
|
|
25
|
+
})(QuoteProductIdentifiersVendorFields = exports.QuoteProductIdentifiersVendorFields || (exports.QuoteProductIdentifiersVendorFields = {}));
|
|
26
|
+
class QuoteProductIdentifiers extends abstractEntity_1.AbstractEntity {
|
|
27
|
+
constructor(data) {
|
|
28
|
+
super(data);
|
|
29
|
+
_QuoteProductIdentifiers_vendor.set(this, void 0);
|
|
30
|
+
__classPrivateFieldSet(this, _QuoteProductIdentifiers_vendor, {
|
|
31
|
+
[QuoteProductIdentifiersVendorFields.NAME]: data[QuoteProductIdentifiersFields.VENDOR][QuoteProductIdentifiersVendorFields.NAME],
|
|
32
|
+
[QuoteProductIdentifiersVendorFields.SKU]: data[QuoteProductIdentifiersFields.VENDOR][QuoteProductIdentifiersVendorFields.SKU],
|
|
33
|
+
}, "f");
|
|
34
|
+
}
|
|
35
|
+
get vendor() {
|
|
36
|
+
return __classPrivateFieldGet(this, _QuoteProductIdentifiers_vendor, "f");
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[QuoteProductIdentifiersFields.VENDOR]: {
|
|
41
|
+
[QuoteProductIdentifiersVendorFields.NAME]: this.vendor.name,
|
|
42
|
+
[QuoteProductIdentifiersVendorFields.SKU]: this.vendor.sku,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.QuoteProductIdentifiers = QuoteProductIdentifiers;
|
|
48
|
+
_QuoteProductIdentifiers_vendor = new WeakMap();
|
|
49
|
+
//# sourceMappingURL=QuoteProductIdentifiers.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum QuoteProductPricesFields {
|
|
3
|
+
BUY = "buy",
|
|
4
|
+
SELL = "sell",
|
|
5
|
+
CURRENCY = "currency",
|
|
6
|
+
PERIODICITY = "periodicity",
|
|
7
|
+
PERIODICITY_CODE = "periodicityCode",
|
|
8
|
+
TERM = "term",
|
|
9
|
+
TERM_CODE = "termCode"
|
|
10
|
+
}
|
|
11
|
+
export declare type QuoteProductPricesData = {
|
|
12
|
+
[QuoteProductPricesFields.BUY]: number;
|
|
13
|
+
[QuoteProductPricesFields.SELL]: number;
|
|
14
|
+
[QuoteProductPricesFields.CURRENCY]: string;
|
|
15
|
+
[QuoteProductPricesFields.PERIODICITY]: string;
|
|
16
|
+
[QuoteProductPricesFields.PERIODICITY_CODE]: number;
|
|
17
|
+
[QuoteProductPricesFields.TERM]: string;
|
|
18
|
+
[QuoteProductPricesFields.TERM_CODE]: number;
|
|
19
|
+
};
|
|
20
|
+
export declare class QuoteProductPrices extends AbstractEntity<QuoteProductPricesData> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(data: QuoteProductPricesData);
|
|
23
|
+
get buy(): number;
|
|
24
|
+
get sell(): number;
|
|
25
|
+
get currency(): string;
|
|
26
|
+
get periodicity(): string;
|
|
27
|
+
get periodicityCode(): number;
|
|
28
|
+
get term(): string;
|
|
29
|
+
get termCode(): number;
|
|
30
|
+
toJSON(): QuoteProductPricesData;
|
|
31
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 _QuoteProductPrices_buy, _QuoteProductPrices_sell, _QuoteProductPrices_currency, _QuoteProductPrices_periodicity, _QuoteProductPrices_periodicityCode, _QuoteProductPrices_term, _QuoteProductPrices_termCode;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.QuoteProductPrices = exports.QuoteProductPricesFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var QuoteProductPricesFields;
|
|
18
|
+
(function (QuoteProductPricesFields) {
|
|
19
|
+
QuoteProductPricesFields["BUY"] = "buy";
|
|
20
|
+
QuoteProductPricesFields["SELL"] = "sell";
|
|
21
|
+
QuoteProductPricesFields["CURRENCY"] = "currency";
|
|
22
|
+
QuoteProductPricesFields["PERIODICITY"] = "periodicity";
|
|
23
|
+
QuoteProductPricesFields["PERIODICITY_CODE"] = "periodicityCode";
|
|
24
|
+
QuoteProductPricesFields["TERM"] = "term";
|
|
25
|
+
QuoteProductPricesFields["TERM_CODE"] = "termCode";
|
|
26
|
+
})(QuoteProductPricesFields = exports.QuoteProductPricesFields || (exports.QuoteProductPricesFields = {}));
|
|
27
|
+
class QuoteProductPrices extends abstractEntity_1.AbstractEntity {
|
|
28
|
+
constructor(data) {
|
|
29
|
+
super(data);
|
|
30
|
+
_QuoteProductPrices_buy.set(this, void 0);
|
|
31
|
+
_QuoteProductPrices_sell.set(this, void 0);
|
|
32
|
+
_QuoteProductPrices_currency.set(this, void 0);
|
|
33
|
+
_QuoteProductPrices_periodicity.set(this, void 0);
|
|
34
|
+
_QuoteProductPrices_periodicityCode.set(this, void 0);
|
|
35
|
+
_QuoteProductPrices_term.set(this, void 0);
|
|
36
|
+
_QuoteProductPrices_termCode.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _QuoteProductPrices_buy, data[QuoteProductPricesFields.BUY], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _QuoteProductPrices_sell, data[QuoteProductPricesFields.SELL], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _QuoteProductPrices_currency, data[QuoteProductPricesFields.CURRENCY], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _QuoteProductPrices_periodicity, data[QuoteProductPricesFields.PERIODICITY], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _QuoteProductPrices_periodicityCode, data[QuoteProductPricesFields.PERIODICITY_CODE], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _QuoteProductPrices_term, data[QuoteProductPricesFields.TERM], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _QuoteProductPrices_termCode, data[QuoteProductPricesFields.TERM_CODE], "f");
|
|
44
|
+
}
|
|
45
|
+
get buy() {
|
|
46
|
+
return __classPrivateFieldGet(this, _QuoteProductPrices_buy, "f");
|
|
47
|
+
}
|
|
48
|
+
get sell() {
|
|
49
|
+
return __classPrivateFieldGet(this, _QuoteProductPrices_sell, "f");
|
|
50
|
+
}
|
|
51
|
+
get currency() {
|
|
52
|
+
return __classPrivateFieldGet(this, _QuoteProductPrices_currency, "f");
|
|
53
|
+
}
|
|
54
|
+
get periodicity() {
|
|
55
|
+
return __classPrivateFieldGet(this, _QuoteProductPrices_periodicity, "f");
|
|
56
|
+
}
|
|
57
|
+
get periodicityCode() {
|
|
58
|
+
return __classPrivateFieldGet(this, _QuoteProductPrices_periodicityCode, "f");
|
|
59
|
+
}
|
|
60
|
+
get term() {
|
|
61
|
+
return __classPrivateFieldGet(this, _QuoteProductPrices_term, "f");
|
|
62
|
+
}
|
|
63
|
+
get termCode() {
|
|
64
|
+
return __classPrivateFieldGet(this, _QuoteProductPrices_termCode, "f");
|
|
65
|
+
}
|
|
66
|
+
toJSON() {
|
|
67
|
+
return {
|
|
68
|
+
[QuoteProductPricesFields.BUY]: this.buy,
|
|
69
|
+
[QuoteProductPricesFields.SELL]: this.sell,
|
|
70
|
+
[QuoteProductPricesFields.CURRENCY]: this.currency,
|
|
71
|
+
[QuoteProductPricesFields.PERIODICITY]: this.periodicity,
|
|
72
|
+
[QuoteProductPricesFields.PERIODICITY_CODE]: this.periodicityCode,
|
|
73
|
+
[QuoteProductPricesFields.TERM]: this.term,
|
|
74
|
+
[QuoteProductPricesFields.TERM_CODE]: this.termCode,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.QuoteProductPrices = QuoteProductPrices;
|
|
79
|
+
_QuoteProductPrices_buy = new WeakMap(), _QuoteProductPrices_sell = new WeakMap(), _QuoteProductPrices_currency = new WeakMap(), _QuoteProductPrices_periodicity = new WeakMap(), _QuoteProductPrices_periodicityCode = new WeakMap(), _QuoteProductPrices_term = new WeakMap(), _QuoteProductPrices_termCode = new WeakMap();
|
|
80
|
+
//# sourceMappingURL=QuoteProductPrices.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum QuoteProductProgramFields {
|
|
3
|
+
LEGACY_CODE = "legacyCode",
|
|
4
|
+
INTERNAL_NAME = "internalName"
|
|
5
|
+
}
|
|
6
|
+
export declare type QuoteProductProgramData = {
|
|
7
|
+
[QuoteProductProgramFields.LEGACY_CODE]: string;
|
|
8
|
+
[QuoteProductProgramFields.INTERNAL_NAME]?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class QuoteProductProgram extends AbstractEntity<QuoteProductProgramData> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(data: QuoteProductProgramData);
|
|
13
|
+
get legacyCode(): string;
|
|
14
|
+
get internalName(): string | undefined;
|
|
15
|
+
toJSON(): QuoteProductProgramData;
|
|
16
|
+
}
|
|
@@ -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 _QuoteProductProgram_legacyCode, _QuoteProductProgram_internalName;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.QuoteProductProgram = exports.QuoteProductProgramFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var QuoteProductProgramFields;
|
|
18
|
+
(function (QuoteProductProgramFields) {
|
|
19
|
+
QuoteProductProgramFields["LEGACY_CODE"] = "legacyCode";
|
|
20
|
+
QuoteProductProgramFields["INTERNAL_NAME"] = "internalName";
|
|
21
|
+
})(QuoteProductProgramFields = exports.QuoteProductProgramFields || (exports.QuoteProductProgramFields = {}));
|
|
22
|
+
class QuoteProductProgram extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(data) {
|
|
24
|
+
super(data);
|
|
25
|
+
_QuoteProductProgram_legacyCode.set(this, void 0);
|
|
26
|
+
_QuoteProductProgram_internalName.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _QuoteProductProgram_legacyCode, data[QuoteProductProgramFields.LEGACY_CODE], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _QuoteProductProgram_internalName, data[QuoteProductProgramFields.INTERNAL_NAME], "f");
|
|
29
|
+
}
|
|
30
|
+
get legacyCode() {
|
|
31
|
+
return __classPrivateFieldGet(this, _QuoteProductProgram_legacyCode, "f");
|
|
32
|
+
}
|
|
33
|
+
get internalName() {
|
|
34
|
+
return __classPrivateFieldGet(this, _QuoteProductProgram_internalName, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[QuoteProductProgramFields.LEGACY_CODE]: this.legacyCode,
|
|
39
|
+
[QuoteProductProgramFields.INTERNAL_NAME]: this.internalName,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.QuoteProductProgram = QuoteProductProgram;
|
|
44
|
+
_QuoteProductProgram_legacyCode = new WeakMap(), _QuoteProductProgram_internalName = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=QuoteProductProgram.js.map
|
package/build/quotes/index.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
1
|
export * from './quotesClient';
|
|
2
|
+
export * from './entities/Quote';
|
|
3
|
+
export * from './entities/QuoteLastVersion';
|
|
4
|
+
export * from './entities/QuoteProduct';
|
|
5
|
+
export * from './entities/QuoteProductAssets';
|
|
6
|
+
export * from './entities/QuoteProductIdentifiers';
|
|
7
|
+
export * from './entities/QuoteProductProgram';
|
|
8
|
+
export * from './entities/QuoteProductPrices';
|
|
9
|
+
export * from './entities/QuoteList';
|
package/build/quotes/index.js
CHANGED
|
@@ -15,4 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./quotesClient"), exports);
|
|
18
|
+
__exportStar(require("./entities/Quote"), exports);
|
|
19
|
+
__exportStar(require("./entities/QuoteLastVersion"), exports);
|
|
20
|
+
__exportStar(require("./entities/QuoteProduct"), exports);
|
|
21
|
+
__exportStar(require("./entities/QuoteProductAssets"), exports);
|
|
22
|
+
__exportStar(require("./entities/QuoteProductIdentifiers"), exports);
|
|
23
|
+
__exportStar(require("./entities/QuoteProductProgram"), exports);
|
|
24
|
+
__exportStar(require("./entities/QuoteProductPrices"), exports);
|
|
25
|
+
__exportStar(require("./entities/QuoteList"), exports);
|
|
18
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,6 +3,8 @@ import { GetResult } from '../getResult';
|
|
|
3
3
|
import { QuoteRequest } from './entities/QuoteRequest';
|
|
4
4
|
import { PutQuoteResult } from './entities/PutQuoteResult';
|
|
5
5
|
import { QuoteComments } from './entities/QuoteComments';
|
|
6
|
+
import { Quote } from './entities/Quote';
|
|
7
|
+
import { QuoteList } from './entities/QuoteList';
|
|
6
8
|
export declare type RequestQuoteRequestType = {
|
|
7
9
|
agreeToReceiveCommunications: boolean;
|
|
8
10
|
agreeSharingInformation: boolean;
|
|
@@ -65,6 +67,8 @@ export declare type CreateCommentType = {
|
|
|
65
67
|
};
|
|
66
68
|
export declare class QuotesClient extends AbstractRestfulClient {
|
|
67
69
|
protected basePath: string;
|
|
70
|
+
listQuotes(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<QuoteList>>;
|
|
71
|
+
getQuote(reference: string): Promise<GetResult<Quote>>;
|
|
68
72
|
requestQuote(postData: RequestQuoteRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
|
|
69
73
|
requestQuoteForVendor(vendor: string, postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<void>;
|
|
70
74
|
deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
@@ -6,11 +6,23 @@ const getResult_1 = require("../getResult");
|
|
|
6
6
|
const QuoteRequest_1 = require("./entities/QuoteRequest");
|
|
7
7
|
const PutQuoteResult_1 = require("./entities/PutQuoteResult");
|
|
8
8
|
const QuoteComments_1 = require("./entities/QuoteComments");
|
|
9
|
+
const Quote_1 = require("./entities/Quote");
|
|
10
|
+
const QuoteList_1 = require("./entities/QuoteList");
|
|
9
11
|
class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
12
14
|
this.basePath = '/quotes';
|
|
13
15
|
}
|
|
16
|
+
async listQuotes(perPage = 25, page = 1, parameters = {}) {
|
|
17
|
+
this.path = '';
|
|
18
|
+
this.setPerPage(perPage);
|
|
19
|
+
this.setPage(page);
|
|
20
|
+
return new getResult_1.GetResult(QuoteList_1.QuoteList, await this.get(parameters));
|
|
21
|
+
}
|
|
22
|
+
async getQuote(reference) {
|
|
23
|
+
this.path = `/${reference}`;
|
|
24
|
+
return new getResult_1.GetResult(Quote_1.Quote, await this.get());
|
|
25
|
+
}
|
|
14
26
|
async requestQuote(postData, parameters = {}) {
|
|
15
27
|
this.path = '/request';
|
|
16
28
|
return new getResult_1.GetResult(QuoteRequest_1.QuoteRequest, await this.post(postData, parameters));
|
package/package.json
CHANGED