@arrowsphere/api-client 3.422.0-rc-cpe-1 → 3.423.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/cart/entities/index.d.ts +2 -0
- package/build/cart/entities/index.js +2 -0
- package/build/cart/entities/item.d.ts +4 -0
- package/build/cart/entities/item.js +15 -4
- package/build/cart/entities/itemPreferredCurrency.d.ts +18 -0
- package/build/cart/entities/itemPreferredCurrency.js +47 -0
- package/build/cart/entities/preferredCurrency/itemPreferredCurrencyValues.d.ts +22 -0
- package/build/cart/entities/preferredCurrency/itemPreferredCurrencyValues.js +61 -0
- package/build/customers/entities/invitations/contact/invitationContact.d.ts +0 -1
- package/build/licenses/entities/getLicense/actionsGetResult.d.ts +6 -0
- package/build/licenses/entities/getLicense/actionsGetResult.js +16 -2
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +3 -0
- package/build/licenses/entities/getLicense/licenseGetResult.js +9 -2
- package/build/licenses/entities/license/licenseFindResult.d.ts +7 -1
- package/build/licenses/entities/license/licenseFindResult.js +12 -2
- package/build/licenses/licensesClient.d.ts +8 -0
- package/build/licenses/licensesClient.js +8 -0
- package/build/quotes/index.d.ts +0 -13
- package/build/quotes/index.js +0 -13
- package/build/quotes/quotesClient.d.ts +0 -4
- package/build/quotes/quotesClient.js +0 -12
- package/build/shared/contact/contact.d.ts +1 -3
- package/build/shared/contact/contact.js +0 -1
- package/package.json +1 -1
- package/build/quotes/entities/Quote.d.ts +0 -50
- package/build/quotes/entities/Quote.js +0 -125
- package/build/quotes/entities/QuoteLastVersion.d.ts +0 -16
- package/build/quotes/entities/QuoteLastVersion.js +0 -45
- package/build/quotes/entities/QuoteList.d.ts +0 -9
- package/build/quotes/entities/QuoteList.js +0 -33
- package/build/quotes/entities/QuoteProduct.d.ts +0 -58
- package/build/quotes/entities/QuoteProduct.js +0 -135
- package/build/quotes/entities/QuoteProductAssets.d.ts +0 -16
- package/build/quotes/entities/QuoteProductAssets.js +0 -45
- package/build/quotes/entities/QuoteProductPriceBand.d.ts +0 -14
- package/build/quotes/entities/QuoteProductPriceBand.js +0 -39
- package/build/quotes/entities/QuoteProductPriceBandArrowsphereIdentifier.d.ts +0 -13
- package/build/quotes/entities/QuoteProductPriceBandArrowsphereIdentifier.js +0 -38
- package/build/quotes/entities/QuoteProductPriceBandErpIdentifier.d.ts +0 -13
- package/build/quotes/entities/QuoteProductPriceBandErpIdentifier.js +0 -38
- package/build/quotes/entities/QuoteProductPriceBandIdentifiers.d.ts +0 -22
- package/build/quotes/entities/QuoteProductPriceBandIdentifiers.js +0 -55
- package/build/quotes/entities/QuoteProductPriceBandVendorIdentifier.d.ts +0 -13
- package/build/quotes/entities/QuoteProductPriceBandVendorIdentifier.js +0 -38
- package/build/quotes/entities/QuoteProductPrices.d.ts +0 -31
- package/build/quotes/entities/QuoteProductPrices.js +0 -80
- package/build/quotes/entities/QuoteProductProgram.d.ts +0 -16
- package/build/quotes/entities/QuoteProductProgram.js +0 -45
- package/build/quotes/entities/QuoteProductVendor.d.ts +0 -13
- package/build/quotes/entities/QuoteProductVendor.js +0 -38
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer, _LicenseFindResult_offerArrowsphereSku, _LicenseFindResult_orderRef, _LicenseFindResult_pricebandVendorSku, _LicenseFindResult_nextRenewalDate, _LicenseFindResult_parentLineId, _LicenseFindResult_parentOrderRef, _LicenseFindResult_partnerRef, _LicenseFindResult_periodicity, _LicenseFindResult_price, _LicenseFindResult_resellerName, _LicenseFindResult_resellerRef, _LicenseFindResult_seat, _LicenseFindResult_security, _LicenseFindResult_serviceRef, _LicenseFindResult_sku, _LicenseFindResult_startDate, _LicenseFindResult_statusCode, _LicenseFindResult_statusLabel, _LicenseFindResult_subscriptionId, _LicenseFindResult_subsidiaryName, _LicenseFindResult_term, _LicenseFindResult_trial, _LicenseFindResult_type, _LicenseFindResult_uom, _LicenseFindResult_vendorCode, _LicenseFindResult_vendorName, _LicenseFindResult_vendorSubscriptionId, _LicenseFindResult_highlight, _LicenseFindResult_attributes, _LicenseFindResult_hasSeatDifference;
|
|
13
|
+
var _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer, _LicenseFindResult_offerArrowsphereSku, _LicenseFindResult_orderRef, _LicenseFindResult_pricebandVendorSku, _LicenseFindResult_nextRenewalDate, _LicenseFindResult_parentLineId, _LicenseFindResult_parentOrderRef, _LicenseFindResult_partnerRef, _LicenseFindResult_periodicity, _LicenseFindResult_price, _LicenseFindResult_resellerName, _LicenseFindResult_resellerRef, _LicenseFindResult_seat, _LicenseFindResult_security, _LicenseFindResult_serviceRef, _LicenseFindResult_sku, _LicenseFindResult_startDate, _LicenseFindResult_statusCode, _LicenseFindResult_statusLabel, _LicenseFindResult_subscriptionId, _LicenseFindResult_subsidiaryName, _LicenseFindResult_term, _LicenseFindResult_trial, _LicenseFindResult_type, _LicenseFindResult_uom, _LicenseFindResult_vendorCode, _LicenseFindResult_vendorName, _LicenseFindResult_vendorSubscriptionId, _LicenseFindResult_highlight, _LicenseFindResult_attributes, _LicenseFindResult_hasSeatDifference, _LicenseFindResult_seatSync;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseFindResult = exports.LicenseFindResultFields = void 0;
|
|
16
16
|
const activeSeatsFindResult_1 = require("./activeSeatsFindResult");
|
|
@@ -72,6 +72,7 @@ var LicenseFindResultFields;
|
|
|
72
72
|
LicenseFindResultFields["COLUMN_HIGHLIGHT"] = "highlight";
|
|
73
73
|
LicenseFindResultFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
74
74
|
LicenseFindResultFields["COLUMN_HAS_SEAT_DIFFERENCE"] = "has_seat_difference";
|
|
75
|
+
LicenseFindResultFields["COLUMN_SEAT_SYNC"] = "seatSync";
|
|
75
76
|
})(LicenseFindResultFields = exports.LicenseFindResultFields || (exports.LicenseFindResultFields = {}));
|
|
76
77
|
class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
77
78
|
/**
|
|
@@ -102,6 +103,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
102
103
|
[LicenseFindResultFields.COLUMN_VENDOR_CODE]: 'required',
|
|
103
104
|
[LicenseFindResultFields.COLUMN_HIGHLIGHT]: 'object',
|
|
104
105
|
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]: 'boolean',
|
|
106
|
+
[LicenseFindResultFields.COLUMN_SEAT_SYNC]: 'boolean',
|
|
105
107
|
};
|
|
106
108
|
_LicenseFindResult_acceptEula.set(this, void 0);
|
|
107
109
|
_LicenseFindResult_activeSeats.set(this, void 0);
|
|
@@ -151,6 +153,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
151
153
|
_LicenseFindResult_highlight.set(this, void 0);
|
|
152
154
|
_LicenseFindResult_attributes.set(this, void 0);
|
|
153
155
|
_LicenseFindResult_hasSeatDifference.set(this, void 0);
|
|
156
|
+
_LicenseFindResult_seatSync.set(this, void 0);
|
|
154
157
|
__classPrivateFieldSet(this, _LicenseFindResult_acceptEula, data[LicenseFindResultFields.COLUMN_ACCEPT_EULA], "f");
|
|
155
158
|
const activeSeats = {
|
|
156
159
|
[activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]: data[LicenseFindResultFields.COLUMN_ACTIVE_SEATS][activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE],
|
|
@@ -213,6 +216,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
213
216
|
__classPrivateFieldSet(this, _LicenseFindResult_highlight, (_d = data[LicenseFindResultFields.COLUMN_HIGHLIGHT]) !== null && _d !== void 0 ? _d : {}, "f");
|
|
214
217
|
__classPrivateFieldSet(this, _LicenseFindResult_attributes, data[LicenseFindResultFields.COLUMN_ATTRIBUTES], "f");
|
|
215
218
|
__classPrivateFieldSet(this, _LicenseFindResult_hasSeatDifference, data[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE], "f");
|
|
219
|
+
__classPrivateFieldSet(this, _LicenseFindResult_seatSync, data[LicenseFindResultFields.COLUMN_SEAT_SYNC], "f");
|
|
216
220
|
}
|
|
217
221
|
get id() {
|
|
218
222
|
return __classPrivateFieldGet(this, _LicenseFindResult_id, "f");
|
|
@@ -358,6 +362,9 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
358
362
|
get hasSeatDifference() {
|
|
359
363
|
return __classPrivateFieldGet(this, _LicenseFindResult_hasSeatDifference, "f");
|
|
360
364
|
}
|
|
365
|
+
get seatSync() {
|
|
366
|
+
return __classPrivateFieldGet(this, _LicenseFindResult_seatSync, "f");
|
|
367
|
+
}
|
|
361
368
|
/**
|
|
362
369
|
* Plain JSON object representation of the license entity.
|
|
363
370
|
* @returns {@link LicenseData}
|
|
@@ -417,9 +424,12 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
417
424
|
[LicenseFindResultFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
418
425
|
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]: this
|
|
419
426
|
.hasSeatDifference,
|
|
427
|
+
...(this.seatSync !== undefined && {
|
|
428
|
+
[LicenseFindResultFields.COLUMN_SEAT_SYNC]: this.seatSync,
|
|
429
|
+
}),
|
|
420
430
|
};
|
|
421
431
|
}
|
|
422
432
|
}
|
|
423
433
|
exports.LicenseFindResult = LicenseFindResult;
|
|
424
|
-
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(), _LicenseFindResult_offerArrowsphereSku = new WeakMap(), _LicenseFindResult_orderRef = new WeakMap(), _LicenseFindResult_pricebandVendorSku = new WeakMap(), _LicenseFindResult_nextRenewalDate = new WeakMap(), _LicenseFindResult_parentLineId = new WeakMap(), _LicenseFindResult_parentOrderRef = new WeakMap(), _LicenseFindResult_partnerRef = new WeakMap(), _LicenseFindResult_periodicity = new WeakMap(), _LicenseFindResult_price = new WeakMap(), _LicenseFindResult_resellerName = new WeakMap(), _LicenseFindResult_resellerRef = new WeakMap(), _LicenseFindResult_seat = new WeakMap(), _LicenseFindResult_security = new WeakMap(), _LicenseFindResult_serviceRef = new WeakMap(), _LicenseFindResult_sku = new WeakMap(), _LicenseFindResult_startDate = new WeakMap(), _LicenseFindResult_statusCode = new WeakMap(), _LicenseFindResult_statusLabel = new WeakMap(), _LicenseFindResult_subscriptionId = new WeakMap(), _LicenseFindResult_subsidiaryName = new WeakMap(), _LicenseFindResult_term = new WeakMap(), _LicenseFindResult_trial = new WeakMap(), _LicenseFindResult_type = new WeakMap(), _LicenseFindResult_uom = new WeakMap(), _LicenseFindResult_vendorCode = new WeakMap(), _LicenseFindResult_vendorName = new WeakMap(), _LicenseFindResult_vendorSubscriptionId = new WeakMap(), _LicenseFindResult_highlight = new WeakMap(), _LicenseFindResult_attributes = new WeakMap(), _LicenseFindResult_hasSeatDifference = new WeakMap();
|
|
434
|
+
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(), _LicenseFindResult_offerArrowsphereSku = new WeakMap(), _LicenseFindResult_orderRef = new WeakMap(), _LicenseFindResult_pricebandVendorSku = new WeakMap(), _LicenseFindResult_nextRenewalDate = new WeakMap(), _LicenseFindResult_parentLineId = new WeakMap(), _LicenseFindResult_parentOrderRef = new WeakMap(), _LicenseFindResult_partnerRef = new WeakMap(), _LicenseFindResult_periodicity = new WeakMap(), _LicenseFindResult_price = new WeakMap(), _LicenseFindResult_resellerName = new WeakMap(), _LicenseFindResult_resellerRef = new WeakMap(), _LicenseFindResult_seat = new WeakMap(), _LicenseFindResult_security = new WeakMap(), _LicenseFindResult_serviceRef = new WeakMap(), _LicenseFindResult_sku = new WeakMap(), _LicenseFindResult_startDate = new WeakMap(), _LicenseFindResult_statusCode = new WeakMap(), _LicenseFindResult_statusLabel = new WeakMap(), _LicenseFindResult_subscriptionId = new WeakMap(), _LicenseFindResult_subsidiaryName = new WeakMap(), _LicenseFindResult_term = new WeakMap(), _LicenseFindResult_trial = new WeakMap(), _LicenseFindResult_type = new WeakMap(), _LicenseFindResult_uom = new WeakMap(), _LicenseFindResult_vendorCode = new WeakMap(), _LicenseFindResult_vendorName = new WeakMap(), _LicenseFindResult_vendorSubscriptionId = new WeakMap(), _LicenseFindResult_highlight = new WeakMap(), _LicenseFindResult_attributes = new WeakMap(), _LicenseFindResult_hasSeatDifference = new WeakMap(), _LicenseFindResult_seatSync = new WeakMap();
|
|
425
435
|
//# sourceMappingURL=licenseFindResult.js.map
|
|
@@ -270,6 +270,9 @@ export declare type UpdateSeatsData = {
|
|
|
270
270
|
export declare type PutFriendlyName = {
|
|
271
271
|
[LicenseGetFields.COLUMN_FRIENDLY_NAME]: string;
|
|
272
272
|
} & ExtraInformationType;
|
|
273
|
+
export declare type PostConfigureAutoSync = {
|
|
274
|
+
[LicenseGetFields.COLUMN_SEAT_SYNC]: boolean;
|
|
275
|
+
} & ExtraInformationType;
|
|
273
276
|
export declare type PutReactivate = ExtraInformationType;
|
|
274
277
|
export declare type PutSuspend = ExtraInformationType;
|
|
275
278
|
export declare type PutCancel = ExtraInformationType;
|
|
@@ -369,6 +372,10 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
369
372
|
* The path of update friendlyName endpoint
|
|
370
373
|
*/
|
|
371
374
|
private UPDATE_FRIENDLYNAME_PATH;
|
|
375
|
+
/**
|
|
376
|
+
* The path to enable or disable the automatic seats synchronization
|
|
377
|
+
*/
|
|
378
|
+
private CONFIGURE_AUTO_SYNC_PATH;
|
|
372
379
|
/**
|
|
373
380
|
* The path of license history
|
|
374
381
|
*/
|
|
@@ -479,6 +486,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
479
486
|
reactivateLicense(licenseReference: string, payload?: PutReactivate, parameters?: Parameters): Promise<void>;
|
|
480
487
|
cancelLicense(licenseReference: string, payload?: PutCancel, parameters?: Parameters): Promise<void>;
|
|
481
488
|
updateFriendlyName(licenseReference: string, putData: PutFriendlyName, parameters?: Parameters): Promise<void>;
|
|
489
|
+
configureAutoSync(licenseReference: string, payload: PostConfigureAutoSync, parameters?: Parameters): Promise<void>;
|
|
482
490
|
getHistory(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenceHistoryResult>>;
|
|
483
491
|
getCouponCodeHistory(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenceCouponCodeHistoryResult>>;
|
|
484
492
|
cancelAutoRenew(licenseReference: string, payload?: PutCancelAutoRenew, parameters?: Parameters): Promise<void>;
|
|
@@ -186,6 +186,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
186
186
|
* The path of update friendlyName endpoint
|
|
187
187
|
*/
|
|
188
188
|
this.UPDATE_FRIENDLYNAME_PATH = '/friendlyName';
|
|
189
|
+
/**
|
|
190
|
+
* The path to enable or disable the automatic seats synchronization
|
|
191
|
+
*/
|
|
192
|
+
this.CONFIGURE_AUTO_SYNC_PATH = '/configureAutoSync';
|
|
189
193
|
/**
|
|
190
194
|
* The path of license history
|
|
191
195
|
*/
|
|
@@ -458,6 +462,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
458
462
|
this.path = `/${licenseReference}${this.UPDATE_FRIENDLYNAME_PATH}`;
|
|
459
463
|
return await this.put(putData, parameters);
|
|
460
464
|
}
|
|
465
|
+
async configureAutoSync(licenseReference, payload, parameters = {}) {
|
|
466
|
+
this.path = `/${licenseReference}${this.CONFIGURE_AUTO_SYNC_PATH}`;
|
|
467
|
+
await this.post(payload, parameters);
|
|
468
|
+
}
|
|
461
469
|
async getHistory(licenseReference, parameters = {}) {
|
|
462
470
|
this.path = `/${licenseReference}${this.GET_LICENSE_HISTORY_PATH}`;
|
|
463
471
|
return new getResult_1.GetResult(licenceHistoryResult_1.LicenceHistoryResult, await this.get(parameters));
|
package/build/quotes/index.d.ts
CHANGED
|
@@ -1,14 +1 @@
|
|
|
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/QuoteProductPriceBand';
|
|
7
|
-
export * from './entities/QuoteProductPriceBandArrowsphereIdentifier';
|
|
8
|
-
export * from './entities/QuoteProductPriceBandErpIdentifier';
|
|
9
|
-
export * from './entities/QuoteProductPriceBandIdentifiers';
|
|
10
|
-
export * from './entities/QuoteProductPriceBandVendorIdentifier';
|
|
11
|
-
export * from './entities/QuoteProductProgram';
|
|
12
|
-
export * from './entities/QuoteProductPrices';
|
|
13
|
-
export * from './entities/QuoteProductVendor';
|
|
14
|
-
export * from './entities/QuoteList';
|
package/build/quotes/index.js
CHANGED
|
@@ -15,17 +15,4 @@ 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/QuoteProductPriceBand"), exports);
|
|
23
|
-
__exportStar(require("./entities/QuoteProductPriceBandArrowsphereIdentifier"), exports);
|
|
24
|
-
__exportStar(require("./entities/QuoteProductPriceBandErpIdentifier"), exports);
|
|
25
|
-
__exportStar(require("./entities/QuoteProductPriceBandIdentifiers"), exports);
|
|
26
|
-
__exportStar(require("./entities/QuoteProductPriceBandVendorIdentifier"), exports);
|
|
27
|
-
__exportStar(require("./entities/QuoteProductProgram"), exports);
|
|
28
|
-
__exportStar(require("./entities/QuoteProductPrices"), exports);
|
|
29
|
-
__exportStar(require("./entities/QuoteProductVendor"), exports);
|
|
30
|
-
__exportStar(require("./entities/QuoteList"), exports);
|
|
31
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,8 +3,6 @@ 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';
|
|
8
6
|
export declare type RequestQuoteRequestType = {
|
|
9
7
|
agreeToReceiveCommunications: boolean;
|
|
10
8
|
agreeSharingInformation: boolean;
|
|
@@ -67,8 +65,6 @@ export declare type CreateCommentType = {
|
|
|
67
65
|
};
|
|
68
66
|
export declare class QuotesClient extends AbstractRestfulClient {
|
|
69
67
|
protected basePath: string;
|
|
70
|
-
listQuotes(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<QuoteList>>;
|
|
71
|
-
getQuote(reference: string): Promise<GetResult<Quote>>;
|
|
72
68
|
requestQuote(postData: RequestQuoteRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
|
|
73
69
|
requestQuoteForVendor(vendor: string, postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<void>;
|
|
74
70
|
deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
@@ -6,23 +6,11 @@ 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");
|
|
11
9
|
class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
12
10
|
constructor() {
|
|
13
11
|
super(...arguments);
|
|
14
12
|
this.basePath = '/quotes';
|
|
15
13
|
}
|
|
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
|
-
}
|
|
26
14
|
async requestQuote(postData, parameters = {}) {
|
|
27
15
|
this.path = '/request';
|
|
28
16
|
return new getResult_1.GetResult(QuoteRequest_1.QuoteRequest, await this.post(postData, parameters));
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export declare enum SharedContactFields {
|
|
2
2
|
COLUMN_FIRSTNAME = "firstName",
|
|
3
3
|
COLUMN_LASTNAME = "lastName",
|
|
4
|
-
COLUMN_EMAIL = "email"
|
|
5
|
-
COLUMN_PHONE = "phone"
|
|
4
|
+
COLUMN_EMAIL = "email"
|
|
6
5
|
}
|
|
7
6
|
export interface SharedContactInterface {
|
|
8
7
|
[SharedContactFields.COLUMN_FIRSTNAME]: string;
|
|
9
8
|
[SharedContactFields.COLUMN_LASTNAME]: string;
|
|
10
9
|
[SharedContactFields.COLUMN_EMAIL]: string;
|
|
11
|
-
[SharedContactFields.COLUMN_PHONE]?: string;
|
|
12
10
|
}
|
|
@@ -6,6 +6,5 @@ var SharedContactFields;
|
|
|
6
6
|
SharedContactFields["COLUMN_FIRSTNAME"] = "firstName";
|
|
7
7
|
SharedContactFields["COLUMN_LASTNAME"] = "lastName";
|
|
8
8
|
SharedContactFields["COLUMN_EMAIL"] = "email";
|
|
9
|
-
SharedContactFields["COLUMN_PHONE"] = "phone";
|
|
10
9
|
})(SharedContactFields = exports.SharedContactFields || (exports.SharedContactFields = {}));
|
|
11
10
|
//# sourceMappingURL=contact.js.map
|
package/package.json
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
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, QuoteLastVersionData } from './QuoteLastVersion';
|
|
5
|
-
import { QuoteProduct, QuoteProductData } from './QuoteProduct';
|
|
6
|
-
export declare enum QuoteFields {
|
|
7
|
-
CUSTOMER = "customer",
|
|
8
|
-
DATE_CREATION = "dateCreation",
|
|
9
|
-
DATE_END = "dateEnd",
|
|
10
|
-
DATE_UPDATE = "dateUpdate",
|
|
11
|
-
END_CUSTOMER_PO_NUMBER = "endCustomerPONumber",
|
|
12
|
-
LAST_VERSION = "lastVersion",
|
|
13
|
-
PARTNER = "partner",
|
|
14
|
-
PO_NUMBER = "ponumber",
|
|
15
|
-
PRODUCTS = "products",
|
|
16
|
-
QUOTE_REFERENCE = "quoteReference",
|
|
17
|
-
REFERENCE = "reference",
|
|
18
|
-
STATUS = "status"
|
|
19
|
-
}
|
|
20
|
-
export declare type QuoteData = {
|
|
21
|
-
[QuoteFields.CUSTOMER]?: ReferenceLinkType;
|
|
22
|
-
[QuoteFields.DATE_CREATION]: string;
|
|
23
|
-
[QuoteFields.DATE_END]?: string;
|
|
24
|
-
[QuoteFields.DATE_UPDATE]: string;
|
|
25
|
-
[QuoteFields.END_CUSTOMER_PO_NUMBER]?: string;
|
|
26
|
-
[QuoteFields.LAST_VERSION]?: QuoteLastVersionData;
|
|
27
|
-
[QuoteFields.PARTNER]?: OrderPartnerType;
|
|
28
|
-
[QuoteFields.PO_NUMBER]?: string;
|
|
29
|
-
[QuoteFields.PRODUCTS]: QuoteProductData[];
|
|
30
|
-
[QuoteFields.QUOTE_REFERENCE]: string;
|
|
31
|
-
[QuoteFields.REFERENCE]: string;
|
|
32
|
-
[QuoteFields.STATUS]: string;
|
|
33
|
-
};
|
|
34
|
-
export declare class Quote extends AbstractEntity<QuoteData> {
|
|
35
|
-
#private;
|
|
36
|
-
constructor(data: QuoteData);
|
|
37
|
-
get customer(): ReferenceLink | undefined;
|
|
38
|
-
get dateCreation(): string;
|
|
39
|
-
get dateEnd(): string | undefined;
|
|
40
|
-
get dateUpdate(): string;
|
|
41
|
-
get endCustomerPONumber(): string | undefined;
|
|
42
|
-
get lastVersion(): QuoteLastVersion | undefined;
|
|
43
|
-
get partner(): OrderPartner | undefined;
|
|
44
|
-
get ponumber(): string | undefined;
|
|
45
|
-
get products(): QuoteProduct[];
|
|
46
|
-
get quoteReference(): string;
|
|
47
|
-
get reference(): string;
|
|
48
|
-
get status(): string;
|
|
49
|
-
toJSON(): QuoteData;
|
|
50
|
-
}
|
|
@@ -1,125 +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 _Quote_customer, _Quote_dateCreation, _Quote_dateEnd, _Quote_dateUpdate, _Quote_endCustomerPONumber, _Quote_lastVersion, _Quote_partner, _Quote_ponumber, _Quote_products, _Quote_quoteReference, _Quote_reference, _Quote_status;
|
|
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["CUSTOMER"] = "customer";
|
|
24
|
-
QuoteFields["DATE_CREATION"] = "dateCreation";
|
|
25
|
-
QuoteFields["DATE_END"] = "dateEnd";
|
|
26
|
-
QuoteFields["DATE_UPDATE"] = "dateUpdate";
|
|
27
|
-
QuoteFields["END_CUSTOMER_PO_NUMBER"] = "endCustomerPONumber";
|
|
28
|
-
QuoteFields["LAST_VERSION"] = "lastVersion";
|
|
29
|
-
QuoteFields["PARTNER"] = "partner";
|
|
30
|
-
QuoteFields["PO_NUMBER"] = "ponumber";
|
|
31
|
-
QuoteFields["PRODUCTS"] = "products";
|
|
32
|
-
QuoteFields["QUOTE_REFERENCE"] = "quoteReference";
|
|
33
|
-
QuoteFields["REFERENCE"] = "reference";
|
|
34
|
-
QuoteFields["STATUS"] = "status";
|
|
35
|
-
})(QuoteFields = exports.QuoteFields || (exports.QuoteFields = {}));
|
|
36
|
-
class Quote extends abstractEntity_1.AbstractEntity {
|
|
37
|
-
constructor(data) {
|
|
38
|
-
super(data);
|
|
39
|
-
_Quote_customer.set(this, void 0);
|
|
40
|
-
_Quote_dateCreation.set(this, void 0);
|
|
41
|
-
_Quote_dateEnd.set(this, void 0);
|
|
42
|
-
_Quote_dateUpdate.set(this, void 0);
|
|
43
|
-
_Quote_endCustomerPONumber.set(this, void 0);
|
|
44
|
-
_Quote_lastVersion.set(this, void 0);
|
|
45
|
-
_Quote_partner.set(this, void 0);
|
|
46
|
-
_Quote_ponumber.set(this, void 0);
|
|
47
|
-
_Quote_products.set(this, void 0);
|
|
48
|
-
_Quote_quoteReference.set(this, void 0);
|
|
49
|
-
_Quote_reference.set(this, void 0);
|
|
50
|
-
_Quote_status.set(this, void 0);
|
|
51
|
-
const customer = data[QuoteFields.CUSTOMER];
|
|
52
|
-
__classPrivateFieldSet(this, _Quote_customer, customer ? new referenceLink_1.ReferenceLink(customer) : undefined, "f");
|
|
53
|
-
__classPrivateFieldSet(this, _Quote_dateCreation, data[QuoteFields.DATE_CREATION], "f");
|
|
54
|
-
__classPrivateFieldSet(this, _Quote_dateEnd, data[QuoteFields.DATE_END], "f");
|
|
55
|
-
__classPrivateFieldSet(this, _Quote_dateUpdate, data[QuoteFields.DATE_UPDATE], "f");
|
|
56
|
-
__classPrivateFieldSet(this, _Quote_endCustomerPONumber, data[QuoteFields.END_CUSTOMER_PO_NUMBER], "f");
|
|
57
|
-
const lastVersion = data[QuoteFields.LAST_VERSION];
|
|
58
|
-
__classPrivateFieldSet(this, _Quote_lastVersion, lastVersion
|
|
59
|
-
? new QuoteLastVersion_1.QuoteLastVersion(lastVersion)
|
|
60
|
-
: undefined, "f");
|
|
61
|
-
const partner = data[QuoteFields.PARTNER];
|
|
62
|
-
__classPrivateFieldSet(this, _Quote_partner, partner ? new partner_1.OrderPartner(partner) : undefined, "f");
|
|
63
|
-
__classPrivateFieldSet(this, _Quote_ponumber, data[QuoteFields.PO_NUMBER], "f");
|
|
64
|
-
__classPrivateFieldSet(this, _Quote_products, data[QuoteFields.PRODUCTS].map((product) => new QuoteProduct_1.QuoteProduct(product)), "f");
|
|
65
|
-
__classPrivateFieldSet(this, _Quote_quoteReference, data[QuoteFields.QUOTE_REFERENCE], "f");
|
|
66
|
-
__classPrivateFieldSet(this, _Quote_reference, data[QuoteFields.REFERENCE], "f");
|
|
67
|
-
__classPrivateFieldSet(this, _Quote_status, data[QuoteFields.STATUS], "f");
|
|
68
|
-
}
|
|
69
|
-
get customer() {
|
|
70
|
-
return __classPrivateFieldGet(this, _Quote_customer, "f");
|
|
71
|
-
}
|
|
72
|
-
get dateCreation() {
|
|
73
|
-
return __classPrivateFieldGet(this, _Quote_dateCreation, "f");
|
|
74
|
-
}
|
|
75
|
-
get dateEnd() {
|
|
76
|
-
return __classPrivateFieldGet(this, _Quote_dateEnd, "f");
|
|
77
|
-
}
|
|
78
|
-
get dateUpdate() {
|
|
79
|
-
return __classPrivateFieldGet(this, _Quote_dateUpdate, "f");
|
|
80
|
-
}
|
|
81
|
-
get endCustomerPONumber() {
|
|
82
|
-
return __classPrivateFieldGet(this, _Quote_endCustomerPONumber, "f");
|
|
83
|
-
}
|
|
84
|
-
get lastVersion() {
|
|
85
|
-
return __classPrivateFieldGet(this, _Quote_lastVersion, "f");
|
|
86
|
-
}
|
|
87
|
-
get partner() {
|
|
88
|
-
return __classPrivateFieldGet(this, _Quote_partner, "f");
|
|
89
|
-
}
|
|
90
|
-
get ponumber() {
|
|
91
|
-
return __classPrivateFieldGet(this, _Quote_ponumber, "f");
|
|
92
|
-
}
|
|
93
|
-
get products() {
|
|
94
|
-
return __classPrivateFieldGet(this, _Quote_products, "f");
|
|
95
|
-
}
|
|
96
|
-
get quoteReference() {
|
|
97
|
-
return __classPrivateFieldGet(this, _Quote_quoteReference, "f");
|
|
98
|
-
}
|
|
99
|
-
get reference() {
|
|
100
|
-
return __classPrivateFieldGet(this, _Quote_reference, "f");
|
|
101
|
-
}
|
|
102
|
-
get status() {
|
|
103
|
-
return __classPrivateFieldGet(this, _Quote_status, "f");
|
|
104
|
-
}
|
|
105
|
-
toJSON() {
|
|
106
|
-
var _a, _b, _c;
|
|
107
|
-
return {
|
|
108
|
-
[QuoteFields.CUSTOMER]: (_a = this.customer) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
109
|
-
[QuoteFields.DATE_CREATION]: this.dateCreation,
|
|
110
|
-
[QuoteFields.DATE_END]: this.dateEnd,
|
|
111
|
-
[QuoteFields.DATE_UPDATE]: this.dateUpdate,
|
|
112
|
-
[QuoteFields.END_CUSTOMER_PO_NUMBER]: this.endCustomerPONumber,
|
|
113
|
-
[QuoteFields.LAST_VERSION]: (_b = this.lastVersion) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
114
|
-
[QuoteFields.PARTNER]: (_c = this.partner) === null || _c === void 0 ? void 0 : _c.toJSON(),
|
|
115
|
-
[QuoteFields.PO_NUMBER]: this.ponumber,
|
|
116
|
-
[QuoteFields.PRODUCTS]: this.products.map((product) => product.toJSON()),
|
|
117
|
-
[QuoteFields.QUOTE_REFERENCE]: this.quoteReference,
|
|
118
|
-
[QuoteFields.REFERENCE]: this.reference,
|
|
119
|
-
[QuoteFields.STATUS]: this.status,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
exports.Quote = Quote;
|
|
124
|
-
_Quote_customer = new WeakMap(), _Quote_dateCreation = new WeakMap(), _Quote_dateEnd = new WeakMap(), _Quote_dateUpdate = new WeakMap(), _Quote_endCustomerPONumber = new WeakMap(), _Quote_lastVersion = new WeakMap(), _Quote_partner = new WeakMap(), _Quote_ponumber = new WeakMap(), _Quote_products = new WeakMap(), _Quote_quoteReference = new WeakMap(), _Quote_reference = new WeakMap(), _Quote_status = new WeakMap();
|
|
125
|
-
//# sourceMappingURL=Quote.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
export declare enum QuoteLastVersionFields {
|
|
3
|
-
DATE_UPDATE = "dateUpdate",
|
|
4
|
-
VERSION = "version"
|
|
5
|
-
}
|
|
6
|
-
export declare type QuoteLastVersionData = {
|
|
7
|
-
[QuoteLastVersionFields.DATE_UPDATE]?: string;
|
|
8
|
-
[QuoteLastVersionFields.VERSION]?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare class QuoteLastVersion extends AbstractEntity<QuoteLastVersionData> {
|
|
11
|
-
#private;
|
|
12
|
-
constructor(data: QuoteLastVersionData);
|
|
13
|
-
get dateUpdate(): string | undefined;
|
|
14
|
-
get version(): number | undefined;
|
|
15
|
-
toJSON(): QuoteLastVersionData;
|
|
16
|
-
}
|
|
@@ -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 _QuoteLastVersion_dateUpdate, _QuoteLastVersion_version;
|
|
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["DATE_UPDATE"] = "dateUpdate";
|
|
20
|
-
QuoteLastVersionFields["VERSION"] = "version";
|
|
21
|
-
})(QuoteLastVersionFields = exports.QuoteLastVersionFields || (exports.QuoteLastVersionFields = {}));
|
|
22
|
-
class QuoteLastVersion extends abstractEntity_1.AbstractEntity {
|
|
23
|
-
constructor(data) {
|
|
24
|
-
super(data);
|
|
25
|
-
_QuoteLastVersion_dateUpdate.set(this, void 0);
|
|
26
|
-
_QuoteLastVersion_version.set(this, void 0);
|
|
27
|
-
__classPrivateFieldSet(this, _QuoteLastVersion_dateUpdate, data[QuoteLastVersionFields.DATE_UPDATE], "f");
|
|
28
|
-
__classPrivateFieldSet(this, _QuoteLastVersion_version, data[QuoteLastVersionFields.VERSION], "f");
|
|
29
|
-
}
|
|
30
|
-
get dateUpdate() {
|
|
31
|
-
return __classPrivateFieldGet(this, _QuoteLastVersion_dateUpdate, "f");
|
|
32
|
-
}
|
|
33
|
-
get version() {
|
|
34
|
-
return __classPrivateFieldGet(this, _QuoteLastVersion_version, "f");
|
|
35
|
-
}
|
|
36
|
-
toJSON() {
|
|
37
|
-
return {
|
|
38
|
-
[QuoteLastVersionFields.DATE_UPDATE]: this.dateUpdate,
|
|
39
|
-
[QuoteLastVersionFields.VERSION]: this.version,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.QuoteLastVersion = QuoteLastVersion;
|
|
44
|
-
_QuoteLastVersion_dateUpdate = new WeakMap(), _QuoteLastVersion_version = new WeakMap();
|
|
45
|
-
//# sourceMappingURL=QuoteLastVersion.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +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 _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
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
import { ReferenceLink, ReferenceLinkType } from '../../orders/entities/referenceLink';
|
|
3
|
-
import { QuoteProductAssets, QuoteProductAssetsData } from './QuoteProductAssets';
|
|
4
|
-
import { QuoteProductPriceBand, QuoteProductPriceBandData } from './QuoteProductPriceBand';
|
|
5
|
-
import { QuoteProductPrices, QuoteProductPricesData } from './QuoteProductPrices';
|
|
6
|
-
import { QuoteProductProgram, QuoteProductProgramData } from './QuoteProductProgram';
|
|
7
|
-
import { QuoteProductVendor, QuoteProductVendorData } from './QuoteProductVendor';
|
|
8
|
-
export declare enum QuoteProductFields {
|
|
9
|
-
ARROW_SUB_CATEGORIES = "arrowSubCategories",
|
|
10
|
-
ASSETS = "assets",
|
|
11
|
-
CLASSIFICATION = "classification",
|
|
12
|
-
IS_ADDON = "isAddon",
|
|
13
|
-
IS_TRIAL = "isTrial",
|
|
14
|
-
LICENSE = "license",
|
|
15
|
-
NAME = "name",
|
|
16
|
-
PRICE_BAND = "priceBand",
|
|
17
|
-
PRICES = "prices",
|
|
18
|
-
PROGRAM = "program",
|
|
19
|
-
PROMOTION_ID = "promotionId",
|
|
20
|
-
QUANTITY = "quantity",
|
|
21
|
-
SKU = "sku",
|
|
22
|
-
VENDOR = "vendor"
|
|
23
|
-
}
|
|
24
|
-
export declare type QuoteProductData = {
|
|
25
|
-
[QuoteProductFields.ARROW_SUB_CATEGORIES]: string[];
|
|
26
|
-
[QuoteProductFields.ASSETS]: QuoteProductAssetsData;
|
|
27
|
-
[QuoteProductFields.CLASSIFICATION]: string;
|
|
28
|
-
[QuoteProductFields.IS_ADDON]: boolean;
|
|
29
|
-
[QuoteProductFields.IS_TRIAL]: boolean;
|
|
30
|
-
[QuoteProductFields.LICENSE]: ReferenceLinkType;
|
|
31
|
-
[QuoteProductFields.NAME]: string;
|
|
32
|
-
[QuoteProductFields.PRICE_BAND]: QuoteProductPriceBandData;
|
|
33
|
-
[QuoteProductFields.PRICES]: QuoteProductPricesData;
|
|
34
|
-
[QuoteProductFields.PROGRAM]: QuoteProductProgramData;
|
|
35
|
-
[QuoteProductFields.PROMOTION_ID]?: string;
|
|
36
|
-
[QuoteProductFields.QUANTITY]: number;
|
|
37
|
-
[QuoteProductFields.SKU]: string;
|
|
38
|
-
[QuoteProductFields.VENDOR]: QuoteProductVendorData;
|
|
39
|
-
};
|
|
40
|
-
export declare class QuoteProduct extends AbstractEntity<QuoteProductData> {
|
|
41
|
-
#private;
|
|
42
|
-
constructor(data: QuoteProductData);
|
|
43
|
-
get arrowSubCategories(): string[];
|
|
44
|
-
get assets(): QuoteProductAssets;
|
|
45
|
-
get classification(): string;
|
|
46
|
-
get isAddon(): boolean;
|
|
47
|
-
get isTrial(): boolean;
|
|
48
|
-
get license(): ReferenceLink;
|
|
49
|
-
get name(): string;
|
|
50
|
-
get priceBand(): QuoteProductPriceBand;
|
|
51
|
-
get prices(): QuoteProductPrices;
|
|
52
|
-
get program(): QuoteProductProgram;
|
|
53
|
-
get promotionId(): string | undefined;
|
|
54
|
-
get quantity(): number;
|
|
55
|
-
get sku(): string;
|
|
56
|
-
get vendor(): QuoteProductVendor;
|
|
57
|
-
toJSON(): QuoteProductData;
|
|
58
|
-
}
|