@arrowsphere/api-client 3.1.0 → 3.3.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 +31 -0
- package/build/abstractClient.d.ts +2 -0
- package/build/abstractClient.js +2 -0
- package/build/customers/entities/invitations/contact/invitationContact.d.ts +12 -9
- package/build/customers/entities/invitations/contact/invitationContact.js +17 -15
- package/build/index.d.ts +4 -2
- package/build/index.js +4 -2
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +1 -1
- package/build/licenses/entities/license/licenseFindResult.d.ts +6 -6
- package/build/licenses/entities/license/licenseFindResult.js +9 -10
- package/build/orders/entities/dataListOrders.d.ts +14 -0
- package/build/orders/entities/dataListOrders.js +41 -0
- package/build/orders/entities/orders/order.d.ts +40 -0
- package/build/orders/entities/orders/order.js +102 -0
- package/build/orders/entities/orders/partner/partner.d.ts +17 -0
- package/build/orders/entities/orders/partner/partner.js +47 -0
- package/build/orders/entities/orders/products/prices/productPrices.d.ts +25 -0
- package/build/orders/entities/orders/products/prices/productPrices.js +68 -0
- package/build/orders/entities/orders/products/products.d.ts +45 -0
- package/build/orders/entities/orders/products/products.js +113 -0
- package/build/orders/entities/referenceLink.d.ts +16 -0
- package/build/orders/entities/referenceLink.js +47 -0
- package/build/orders/index.d.ts +7 -0
- package/build/orders/index.js +20 -0
- package/build/orders/ordersClient.d.ts +53 -0
- package/build/orders/ordersClient.js +52 -0
- package/build/publicApiClient.d.ts +6 -0
- package/build/publicApiClient.js +10 -0
- package/build/shared/contact/contact.d.ts +10 -0
- package/build/shared/contact/contact.js +10 -0
- package/build/shared/index.d.ts +1 -0
- package/build/shared/index.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,37 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.3.0] - 2022-04-27
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- OrderProduct:
|
|
11
|
+
- Add fields isAddon, isTrial, arrowSubCategories
|
|
12
|
+
- Create object ProductPrices:
|
|
13
|
+
- Add field term
|
|
14
|
+
|
|
15
|
+
## [3.2.1] - 2022-04-06
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- OrderClient :
|
|
20
|
+
- Update type CreateOrderInputType, Fields subscription was optional
|
|
21
|
+
- Update type CreateOrderInputType, Add Fields discount and uplift
|
|
22
|
+
- Endpoint List Order :
|
|
23
|
+
- add Pagination
|
|
24
|
+
- Fields Partner was optional
|
|
25
|
+
- Endpoint Get Order :
|
|
26
|
+
- Update generated URL
|
|
27
|
+
- Fields Partner was optional
|
|
28
|
+
|
|
29
|
+
## [3.2.0] - 2022-04-01
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- Add endpoint create order
|
|
34
|
+
- Add endpoint list order
|
|
35
|
+
- Add endpoint get an order
|
|
36
|
+
|
|
6
37
|
## [3.1.0] - 2022-03-21
|
|
7
38
|
|
|
8
39
|
### Changed
|
|
@@ -6,6 +6,8 @@ export declare enum ParameterKeys {
|
|
|
6
6
|
API_KEY = "apiKey",
|
|
7
7
|
PAGE = "page",
|
|
8
8
|
PER_PAGE = "per_page",
|
|
9
|
+
SORT_BY = "sort_by",
|
|
10
|
+
ORDER_BY = "order_by",
|
|
9
11
|
PER_PAGE_CAMEL = "perPage"
|
|
10
12
|
}
|
|
11
13
|
export declare type Parameters = Record<string, string | string[] | undefined>;
|
package/build/abstractClient.js
CHANGED
|
@@ -17,6 +17,8 @@ var ParameterKeys;
|
|
|
17
17
|
ParameterKeys["API_KEY"] = "apiKey";
|
|
18
18
|
ParameterKeys["PAGE"] = "page";
|
|
19
19
|
ParameterKeys["PER_PAGE"] = "per_page";
|
|
20
|
+
ParameterKeys["SORT_BY"] = "sort_by";
|
|
21
|
+
ParameterKeys["ORDER_BY"] = "order_by";
|
|
20
22
|
ParameterKeys["PER_PAGE_CAMEL"] = "perPage";
|
|
21
23
|
})(ParameterKeys = exports.ParameterKeys || (exports.ParameterKeys = {}));
|
|
22
24
|
class AbstractClient {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
COLUMN_LASTNAME = "lastName",
|
|
5
|
-
COLUMN_EMAIL = "email",
|
|
2
|
+
import { SharedContactFields, SharedContactInterface } from '../../../../shared/contact/contact';
|
|
3
|
+
declare enum InvitationContactEnum {
|
|
6
4
|
COLUMN_USERNAME = "username"
|
|
7
5
|
}
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
export declare const InvitationContactFields: {
|
|
7
|
+
COLUMN_FIRSTNAME: SharedContactFields.COLUMN_FIRSTNAME;
|
|
8
|
+
COLUMN_LASTNAME: SharedContactFields.COLUMN_LASTNAME;
|
|
9
|
+
COLUMN_EMAIL: SharedContactFields.COLUMN_EMAIL;
|
|
10
|
+
COLUMN_USERNAME: InvitationContactEnum.COLUMN_USERNAME;
|
|
13
11
|
};
|
|
12
|
+
interface InvitationContactInterface {
|
|
13
|
+
[InvitationContactFields.COLUMN_USERNAME]: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type InvitationContactType = InvitationContactInterface & SharedContactInterface;
|
|
14
16
|
export declare class InvitationContact extends AbstractEntity<InvitationContactType> {
|
|
15
17
|
#private;
|
|
16
18
|
constructor(getCustomersContactDataInput: InvitationContactType);
|
|
@@ -20,3 +22,4 @@ export declare class InvitationContact extends AbstractEntity<InvitationContactT
|
|
|
20
22
|
get email(): string;
|
|
21
23
|
toJSON(): InvitationContactType;
|
|
22
24
|
}
|
|
25
|
+
export {};
|
|
@@ -16,13 +16,15 @@ var _username, _firstname, _lastname, _email;
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.InvitationContact = exports.InvitationContactFields = void 0;
|
|
18
18
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
const contact_1 = require("../../../../shared/contact/contact");
|
|
20
|
+
var InvitationContactEnum;
|
|
21
|
+
(function (InvitationContactEnum) {
|
|
22
|
+
InvitationContactEnum["COLUMN_USERNAME"] = "username";
|
|
23
|
+
})(InvitationContactEnum || (InvitationContactEnum = {}));
|
|
24
|
+
exports.InvitationContactFields = {
|
|
25
|
+
...InvitationContactEnum,
|
|
26
|
+
...contact_1.SharedContactFields,
|
|
27
|
+
};
|
|
26
28
|
class InvitationContact extends abstractEntity_1.AbstractEntity {
|
|
27
29
|
constructor(getCustomersContactDataInput) {
|
|
28
30
|
super(getCustomersContactDataInput);
|
|
@@ -30,10 +32,10 @@ class InvitationContact extends abstractEntity_1.AbstractEntity {
|
|
|
30
32
|
_firstname.set(this, void 0);
|
|
31
33
|
_lastname.set(this, void 0);
|
|
32
34
|
_email.set(this, void 0);
|
|
33
|
-
__classPrivateFieldSet(this, _firstname, getCustomersContactDataInput[
|
|
34
|
-
__classPrivateFieldSet(this, _username, getCustomersContactDataInput[InvitationContactFields.COLUMN_USERNAME]);
|
|
35
|
-
__classPrivateFieldSet(this, _lastname, getCustomersContactDataInput[
|
|
36
|
-
__classPrivateFieldSet(this, _email, getCustomersContactDataInput[
|
|
35
|
+
__classPrivateFieldSet(this, _firstname, getCustomersContactDataInput[contact_1.SharedContactFields.COLUMN_FIRSTNAME]);
|
|
36
|
+
__classPrivateFieldSet(this, _username, getCustomersContactDataInput[exports.InvitationContactFields.COLUMN_USERNAME]);
|
|
37
|
+
__classPrivateFieldSet(this, _lastname, getCustomersContactDataInput[contact_1.SharedContactFields.COLUMN_LASTNAME]);
|
|
38
|
+
__classPrivateFieldSet(this, _email, getCustomersContactDataInput[contact_1.SharedContactFields.COLUMN_EMAIL]);
|
|
37
39
|
}
|
|
38
40
|
get username() {
|
|
39
41
|
return __classPrivateFieldGet(this, _username);
|
|
@@ -49,10 +51,10 @@ class InvitationContact extends abstractEntity_1.AbstractEntity {
|
|
|
49
51
|
}
|
|
50
52
|
toJSON() {
|
|
51
53
|
return {
|
|
52
|
-
[InvitationContactFields.COLUMN_USERNAME]: this.username,
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
54
|
+
[exports.InvitationContactFields.COLUMN_USERNAME]: this.username,
|
|
55
|
+
[contact_1.SharedContactFields.COLUMN_FIRSTNAME]: this.firstName,
|
|
56
|
+
[contact_1.SharedContactFields.COLUMN_LASTNAME]: this.lastName,
|
|
57
|
+
[contact_1.SharedContactFields.COLUMN_EMAIL]: this.email,
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ export * from './abstractEntity';
|
|
|
4
4
|
export * from './abstractClient';
|
|
5
5
|
export * from './abstractGraphQLClient';
|
|
6
6
|
export * from './catalog/';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './customers/';
|
|
8
8
|
export * from './general/';
|
|
9
|
+
export * from './licenses/';
|
|
10
|
+
export * from './orders/';
|
|
11
|
+
export * from './shared/';
|
|
9
12
|
export * from './subscriptions/';
|
|
10
|
-
export * from './customers/';
|
|
11
13
|
export * from './getResult';
|
package/build/index.js
CHANGED
|
@@ -16,9 +16,11 @@ __exportStar(require("./abstractEntity"), exports);
|
|
|
16
16
|
__exportStar(require("./abstractClient"), exports);
|
|
17
17
|
__exportStar(require("./abstractGraphQLClient"), exports);
|
|
18
18
|
__exportStar(require("./catalog/"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./customers/"), exports);
|
|
20
20
|
__exportStar(require("./general/"), exports);
|
|
21
|
+
__exportStar(require("./licenses/"), exports);
|
|
22
|
+
__exportStar(require("./orders/"), exports);
|
|
23
|
+
__exportStar(require("./shared/"), exports);
|
|
21
24
|
__exportStar(require("./subscriptions/"), exports);
|
|
22
|
-
__exportStar(require("./customers/"), exports);
|
|
23
25
|
__exportStar(require("./getResult"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -44,7 +44,7 @@ class LicensePriceGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
44
44
|
}
|
|
45
45
|
toJSON() {
|
|
46
46
|
return {
|
|
47
|
-
[LicensePriceGetFields.COLUMN_CURRENCY]:
|
|
47
|
+
[LicensePriceGetFields.COLUMN_CURRENCY]: this.currency,
|
|
48
48
|
[LicensePriceGetFields.COLUMN_UNIT]: this.unit.toJSON(),
|
|
49
49
|
[LicensePriceGetFields.COLUMN_TOTAL]: this.total.toJSON(),
|
|
50
50
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ActiveSeatsFindResultData, ActiveSeatsFindResultDataKeywords, ActiveSeatsFindResultDataSortParameters, ActiveSeatsFindResult, ActiveSeatsFindResultDataFiltersParameters } from './activeSeatsFindResult';
|
|
2
2
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
3
|
import { Rules } from 'validatorjs';
|
|
4
|
-
import { ConfigFindResultData, ConfigFindResultDataFiltersParameters, ConfigFindResultDataKeywords, ConfigFindResultDataSortParameters } from './configFindResult';
|
|
4
|
+
import { ConfigFindResult, ConfigFindResultData, ConfigFindResultDataFiltersParameters, ConfigFindResultDataKeywords, ConfigFindResultDataSortParameters } from './configFindResult';
|
|
5
5
|
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
6
|
-
import { WarningFindResultData, WarningFindResultDataFiltersParameters, WarningFindResultDataKeywords, WarningFindResultDataSortParameters } from './warningFindResult';
|
|
6
|
+
import { WarningFindResult, WarningFindResultData, WarningFindResultDataFiltersParameters, WarningFindResultDataKeywords, WarningFindResultDataSortParameters } from './warningFindResult';
|
|
7
7
|
import { PriceFindResult, PriceFindResultData, PriceFindResultDataFiltersParameters, PriceFindResultDataKeywords, PriceFindResutDataSortParameters } from './priceFindResult';
|
|
8
8
|
/**
|
|
9
9
|
* Highlight response object.
|
|
@@ -67,8 +67,8 @@ export declare type LicenseFindResultData = {
|
|
|
67
67
|
[LicenseFindResultFields.COLUMN_BASE_SEAT]: number;
|
|
68
68
|
[LicenseFindResultFields.COLUMN_CATEGORY]: string;
|
|
69
69
|
[LicenseFindResultFields.COLUMN_CLOUD_TYPE]: string;
|
|
70
|
-
[LicenseFindResultFields.COLUMN_CONFIGS]
|
|
71
|
-
[LicenseFindResultFields.COLUMN_WARNINGS]
|
|
70
|
+
[LicenseFindResultFields.COLUMN_CONFIGS]?: Array<ConfigFindResultData> | null;
|
|
71
|
+
[LicenseFindResultFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
|
|
72
72
|
[LicenseFindResultFields.COLUMN_CUSTOMER_NAME]: string;
|
|
73
73
|
[LicenseFindResultFields.COLUMN_CUSTOMER_REF]: string;
|
|
74
74
|
[LicenseFindResultFields.COLUMN_END_DATE]: string;
|
|
@@ -245,8 +245,8 @@ export declare class LicenseFindResult extends AbstractEntity<LicenseFindResultD
|
|
|
245
245
|
get baseSeat(): number;
|
|
246
246
|
get category(): string;
|
|
247
247
|
get classification(): string;
|
|
248
|
-
get configs(): Array<
|
|
249
|
-
get warnings(): Array<
|
|
248
|
+
get configs(): Array<ConfigFindResult> | null | undefined;
|
|
249
|
+
get warnings(): Array<WarningFindResult> | null | undefined;
|
|
250
250
|
get customerName(): string;
|
|
251
251
|
get customerRef(): string;
|
|
252
252
|
get endDate(): string;
|
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.LicenseFindResult = exports.LicenseFindResultFields = void 0;
|
|
18
18
|
const activeSeatsFindResult_1 = require("./activeSeatsFindResult");
|
|
19
19
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
20
|
+
const configFindResult_1 = require("./configFindResult");
|
|
21
|
+
const warningFindResult_1 = require("./warningFindResult");
|
|
20
22
|
const priceFindResult_1 = require("./priceFindResult");
|
|
21
23
|
/**
|
|
22
24
|
* Fields that can be present in License response and request data.
|
|
@@ -72,7 +74,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
72
74
|
* @param data - License find result data from the response.
|
|
73
75
|
*/
|
|
74
76
|
constructor(data) {
|
|
75
|
-
var _a;
|
|
77
|
+
var _a, _b, _c;
|
|
76
78
|
super(data);
|
|
77
79
|
this.VALIDATION_RULES = {
|
|
78
80
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]: 'present|boolean',
|
|
@@ -145,12 +147,8 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
145
147
|
__classPrivateFieldSet(this, _baseSeat, data[LicenseFindResultFields.COLUMN_BASE_SEAT]);
|
|
146
148
|
__classPrivateFieldSet(this, _category, data[LicenseFindResultFields.COLUMN_CATEGORY]);
|
|
147
149
|
__classPrivateFieldSet(this, _classification, data[LicenseFindResultFields.COLUMN_CLOUD_TYPE]);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
if (typeof data[LicenseFindResultFields.COLUMN_WARNINGS] !== 'undefined') {
|
|
152
|
-
__classPrivateFieldSet(this, _warnings, data === null || data === void 0 ? void 0 : data[LicenseFindResultFields.COLUMN_WARNINGS]);
|
|
153
|
-
}
|
|
150
|
+
__classPrivateFieldSet(this, _configs, (_a = data[LicenseFindResultFields.COLUMN_CONFIGS]) === null || _a === void 0 ? void 0 : _a.map((configData) => new configFindResult_1.ConfigFindResult(configData)));
|
|
151
|
+
__classPrivateFieldSet(this, _warnings, (_b = data[LicenseFindResultFields.COLUMN_WARNINGS]) === null || _b === void 0 ? void 0 : _b.map((warningData) => new warningFindResult_1.WarningFindResult(warningData)));
|
|
154
152
|
__classPrivateFieldSet(this, _customerName, data[LicenseFindResultFields.COLUMN_CUSTOMER_NAME]);
|
|
155
153
|
__classPrivateFieldSet(this, _customerRef, data[LicenseFindResultFields.COLUMN_CUSTOMER_REF]);
|
|
156
154
|
__classPrivateFieldSet(this, _endDate, data[LicenseFindResultFields.COLUMN_END_DATE]);
|
|
@@ -190,7 +188,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
190
188
|
__classPrivateFieldSet(this, _vendorCode, data[LicenseFindResultFields.COLUMN_VENDOR_CODE]);
|
|
191
189
|
__classPrivateFieldSet(this, _vendorName, data[LicenseFindResultFields.COLUMN_VENDOR_NAME]);
|
|
192
190
|
__classPrivateFieldSet(this, _vendorSubscriptionId, data[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]);
|
|
193
|
-
__classPrivateFieldSet(this, _highlight, (
|
|
191
|
+
__classPrivateFieldSet(this, _highlight, (_c = data[LicenseFindResultFields.COLUMN_HIGHLIGHT]) !== null && _c !== void 0 ? _c : {});
|
|
194
192
|
}
|
|
195
193
|
get id() {
|
|
196
194
|
return __classPrivateFieldGet(this, _id);
|
|
@@ -320,6 +318,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
320
318
|
* @returns {@link LicenseData}
|
|
321
319
|
*/
|
|
322
320
|
toJSON() {
|
|
321
|
+
var _a, _b;
|
|
323
322
|
return {
|
|
324
323
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]: this.acceptEula,
|
|
325
324
|
[LicenseFindResultFields.COLUMN_ACTIVE_SEATS]: this.activeSeats.toJSON(),
|
|
@@ -327,8 +326,8 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
327
326
|
[LicenseFindResultFields.COLUMN_BASE_SEAT]: this.baseSeat,
|
|
328
327
|
[LicenseFindResultFields.COLUMN_CATEGORY]: this.category,
|
|
329
328
|
[LicenseFindResultFields.COLUMN_CLOUD_TYPE]: this.classification,
|
|
330
|
-
[LicenseFindResultFields.COLUMN_CONFIGS]: this.configs,
|
|
331
|
-
[LicenseFindResultFields.COLUMN_WARNINGS]: this.warnings,
|
|
329
|
+
[LicenseFindResultFields.COLUMN_CONFIGS]: (_a = this.configs) === null || _a === void 0 ? void 0 : _a.map((config) => config.toJSON()),
|
|
330
|
+
[LicenseFindResultFields.COLUMN_WARNINGS]: (_b = this.warnings) === null || _b === void 0 ? void 0 : _b.map((warning) => warning.toJSON()),
|
|
332
331
|
[LicenseFindResultFields.COLUMN_CUSTOMER_NAME]: this.customerName,
|
|
333
332
|
[LicenseFindResultFields.COLUMN_CUSTOMER_REF]: this.customerRef,
|
|
334
333
|
[LicenseFindResultFields.COLUMN_END_DATE]: this.endDate,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { Order, OrderType } from './orders/order';
|
|
3
|
+
export declare enum DataListOrdersFields {
|
|
4
|
+
COLUMN_ORDERS = "orders"
|
|
5
|
+
}
|
|
6
|
+
export declare type DataListOrdersType = {
|
|
7
|
+
[DataListOrdersFields.COLUMN_ORDERS]: Array<OrderType>;
|
|
8
|
+
};
|
|
9
|
+
export declare class DataListOrders extends AbstractEntity<DataListOrdersType> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(listOrderDataInput: DataListOrdersType);
|
|
12
|
+
get orders(): Array<Order>;
|
|
13
|
+
toJSON(): DataListOrdersType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _orders;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.DataListOrders = exports.DataListOrdersFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
19
|
+
const order_1 = require("./orders/order");
|
|
20
|
+
var DataListOrdersFields;
|
|
21
|
+
(function (DataListOrdersFields) {
|
|
22
|
+
DataListOrdersFields["COLUMN_ORDERS"] = "orders";
|
|
23
|
+
})(DataListOrdersFields = exports.DataListOrdersFields || (exports.DataListOrdersFields = {}));
|
|
24
|
+
class DataListOrders extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(listOrderDataInput) {
|
|
26
|
+
super(listOrderDataInput);
|
|
27
|
+
_orders.set(this, void 0);
|
|
28
|
+
__classPrivateFieldSet(this, _orders, listOrderDataInput[DataListOrdersFields.COLUMN_ORDERS].map((order) => new order_1.Order(order)));
|
|
29
|
+
}
|
|
30
|
+
get orders() {
|
|
31
|
+
return __classPrivateFieldGet(this, _orders);
|
|
32
|
+
}
|
|
33
|
+
toJSON() {
|
|
34
|
+
return {
|
|
35
|
+
[DataListOrdersFields.COLUMN_ORDERS]: this.orders.map((order) => order.toJSON()),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.DataListOrders = DataListOrders;
|
|
40
|
+
_orders = new WeakMap();
|
|
41
|
+
//# sourceMappingURL=dataListOrders.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
import { OrderProduct, OrderProductsType } from './products/products';
|
|
3
|
+
import { OrderPartner, OrderPartnerType } from './partner/partner';
|
|
4
|
+
import { ReferenceLink, ReferenceLinkType } from '../referenceLink';
|
|
5
|
+
export declare enum OrderFields {
|
|
6
|
+
COLUMN_REFERENCE = "reference",
|
|
7
|
+
COLUMN_STATUS = "status",
|
|
8
|
+
COLUMN_DATESTATUS = "dateStatus",
|
|
9
|
+
COLUMN_DATECREATION = "dateCreation",
|
|
10
|
+
COLUMN_ORDER_REFERENCE = "order_reference",
|
|
11
|
+
COLUMN_PARTNER = "partner",
|
|
12
|
+
COLUMN_CUSTOMER = "customer",
|
|
13
|
+
COLUMN_PONUMBER = "ponumber",
|
|
14
|
+
COLUMN_PRODUCTS = "products"
|
|
15
|
+
}
|
|
16
|
+
export declare type OrderType = {
|
|
17
|
+
[OrderFields.COLUMN_REFERENCE]: string;
|
|
18
|
+
[OrderFields.COLUMN_STATUS]: string;
|
|
19
|
+
[OrderFields.COLUMN_DATESTATUS]: string;
|
|
20
|
+
[OrderFields.COLUMN_DATECREATION]: string;
|
|
21
|
+
[OrderFields.COLUMN_ORDER_REFERENCE]: string;
|
|
22
|
+
[OrderFields.COLUMN_PARTNER]?: OrderPartnerType;
|
|
23
|
+
[OrderFields.COLUMN_CUSTOMER]: ReferenceLinkType;
|
|
24
|
+
[OrderFields.COLUMN_PONUMBER]: string;
|
|
25
|
+
[OrderFields.COLUMN_PRODUCTS]: Array<OrderProductsType>;
|
|
26
|
+
};
|
|
27
|
+
export declare class Order extends AbstractEntity<OrderType> {
|
|
28
|
+
#private;
|
|
29
|
+
constructor(getOrderDataInput: OrderType);
|
|
30
|
+
get reference(): string;
|
|
31
|
+
get status(): string;
|
|
32
|
+
get dateStatus(): string;
|
|
33
|
+
get dateCreation(): string;
|
|
34
|
+
get order_reference(): string;
|
|
35
|
+
get partner(): OrderPartner | undefined;
|
|
36
|
+
get customer(): ReferenceLink;
|
|
37
|
+
get ponumber(): string;
|
|
38
|
+
get products(): Array<OrderProduct>;
|
|
39
|
+
toJSON(): OrderType;
|
|
40
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _reference, _status, _dateStatus, _dateCreation, _order_reference, _partner, _customer, _ponumber, _products;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Order = exports.OrderFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
const products_1 = require("./products/products");
|
|
20
|
+
const partner_1 = require("./partner/partner");
|
|
21
|
+
const referenceLink_1 = require("../referenceLink");
|
|
22
|
+
var OrderFields;
|
|
23
|
+
(function (OrderFields) {
|
|
24
|
+
OrderFields["COLUMN_REFERENCE"] = "reference";
|
|
25
|
+
OrderFields["COLUMN_STATUS"] = "status";
|
|
26
|
+
OrderFields["COLUMN_DATESTATUS"] = "dateStatus";
|
|
27
|
+
OrderFields["COLUMN_DATECREATION"] = "dateCreation";
|
|
28
|
+
OrderFields["COLUMN_ORDER_REFERENCE"] = "order_reference";
|
|
29
|
+
OrderFields["COLUMN_PARTNER"] = "partner";
|
|
30
|
+
OrderFields["COLUMN_CUSTOMER"] = "customer";
|
|
31
|
+
OrderFields["COLUMN_PONUMBER"] = "ponumber";
|
|
32
|
+
OrderFields["COLUMN_PRODUCTS"] = "products";
|
|
33
|
+
})(OrderFields = exports.OrderFields || (exports.OrderFields = {}));
|
|
34
|
+
class Order extends abstractEntity_1.AbstractEntity {
|
|
35
|
+
constructor(getOrderDataInput) {
|
|
36
|
+
super(getOrderDataInput);
|
|
37
|
+
_reference.set(this, void 0);
|
|
38
|
+
_status.set(this, void 0);
|
|
39
|
+
_dateStatus.set(this, void 0);
|
|
40
|
+
_dateCreation.set(this, void 0);
|
|
41
|
+
_order_reference.set(this, void 0);
|
|
42
|
+
_partner.set(this, void 0);
|
|
43
|
+
_customer.set(this, void 0);
|
|
44
|
+
_ponumber.set(this, void 0);
|
|
45
|
+
_products.set(this, void 0);
|
|
46
|
+
__classPrivateFieldSet(this, _reference, getOrderDataInput[OrderFields.COLUMN_REFERENCE]);
|
|
47
|
+
__classPrivateFieldSet(this, _status, getOrderDataInput[OrderFields.COLUMN_STATUS]);
|
|
48
|
+
__classPrivateFieldSet(this, _dateStatus, getOrderDataInput[OrderFields.COLUMN_DATESTATUS]);
|
|
49
|
+
__classPrivateFieldSet(this, _dateCreation, getOrderDataInput[OrderFields.COLUMN_DATECREATION]);
|
|
50
|
+
__classPrivateFieldSet(this, _order_reference, getOrderDataInput[OrderFields.COLUMN_ORDER_REFERENCE]);
|
|
51
|
+
__classPrivateFieldSet(this, _partner, getOrderDataInput[OrderFields.COLUMN_PARTNER]
|
|
52
|
+
? new partner_1.OrderPartner(getOrderDataInput[OrderFields.COLUMN_PARTNER])
|
|
53
|
+
: undefined);
|
|
54
|
+
__classPrivateFieldSet(this, _customer, new referenceLink_1.ReferenceLink(getOrderDataInput[OrderFields.COLUMN_CUSTOMER]));
|
|
55
|
+
__classPrivateFieldSet(this, _ponumber, getOrderDataInput[OrderFields.COLUMN_PONUMBER]);
|
|
56
|
+
__classPrivateFieldSet(this, _products, getOrderDataInput[OrderFields.COLUMN_PRODUCTS].map((order) => new products_1.OrderProduct(order)));
|
|
57
|
+
}
|
|
58
|
+
get reference() {
|
|
59
|
+
return __classPrivateFieldGet(this, _reference);
|
|
60
|
+
}
|
|
61
|
+
get status() {
|
|
62
|
+
return __classPrivateFieldGet(this, _status);
|
|
63
|
+
}
|
|
64
|
+
get dateStatus() {
|
|
65
|
+
return __classPrivateFieldGet(this, _dateStatus);
|
|
66
|
+
}
|
|
67
|
+
get dateCreation() {
|
|
68
|
+
return __classPrivateFieldGet(this, _dateCreation);
|
|
69
|
+
}
|
|
70
|
+
get order_reference() {
|
|
71
|
+
return __classPrivateFieldGet(this, _order_reference);
|
|
72
|
+
}
|
|
73
|
+
get partner() {
|
|
74
|
+
return __classPrivateFieldGet(this, _partner);
|
|
75
|
+
}
|
|
76
|
+
get customer() {
|
|
77
|
+
return __classPrivateFieldGet(this, _customer);
|
|
78
|
+
}
|
|
79
|
+
get ponumber() {
|
|
80
|
+
return __classPrivateFieldGet(this, _ponumber);
|
|
81
|
+
}
|
|
82
|
+
get products() {
|
|
83
|
+
return __classPrivateFieldGet(this, _products);
|
|
84
|
+
}
|
|
85
|
+
toJSON() {
|
|
86
|
+
var _a;
|
|
87
|
+
return {
|
|
88
|
+
[OrderFields.COLUMN_REFERENCE]: this.reference,
|
|
89
|
+
[OrderFields.COLUMN_STATUS]: this.status,
|
|
90
|
+
[OrderFields.COLUMN_DATESTATUS]: this.dateStatus,
|
|
91
|
+
[OrderFields.COLUMN_DATECREATION]: this.dateCreation,
|
|
92
|
+
[OrderFields.COLUMN_ORDER_REFERENCE]: this.order_reference,
|
|
93
|
+
[OrderFields.COLUMN_PARTNER]: (_a = this.partner) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
94
|
+
[OrderFields.COLUMN_CUSTOMER]: this.customer.toJSON(),
|
|
95
|
+
[OrderFields.COLUMN_PONUMBER]: this.ponumber,
|
|
96
|
+
[OrderFields.COLUMN_PRODUCTS]: this.products.map((order) => order.toJSON()),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.Order = Order;
|
|
101
|
+
_reference = new WeakMap(), _status = new WeakMap(), _dateStatus = new WeakMap(), _dateCreation = new WeakMap(), _order_reference = new WeakMap(), _partner = new WeakMap(), _customer = new WeakMap(), _ponumber = new WeakMap(), _products = new WeakMap();
|
|
102
|
+
//# sourceMappingURL=order.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
import { SharedContactInterface } from '../../../../shared/contact/contact';
|
|
3
|
+
export declare enum OrderPartnerFields {
|
|
4
|
+
COLUMN_COMPANYNAME = "companyName",
|
|
5
|
+
COLUMN_CONTACT = "contact"
|
|
6
|
+
}
|
|
7
|
+
export declare type OrderPartnerType = {
|
|
8
|
+
[OrderPartnerFields.COLUMN_COMPANYNAME]: string;
|
|
9
|
+
[OrderPartnerFields.COLUMN_CONTACT]: SharedContactInterface;
|
|
10
|
+
};
|
|
11
|
+
export declare class OrderPartner extends AbstractEntity<OrderPartnerType> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(getOrderPartnerDataInput: OrderPartnerType);
|
|
14
|
+
get companyName(): string;
|
|
15
|
+
get contact(): SharedContactInterface;
|
|
16
|
+
toJSON(): OrderPartnerType;
|
|
17
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _companyName, _contact;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.OrderPartner = exports.OrderPartnerFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
|
+
var OrderPartnerFields;
|
|
20
|
+
(function (OrderPartnerFields) {
|
|
21
|
+
OrderPartnerFields["COLUMN_COMPANYNAME"] = "companyName";
|
|
22
|
+
OrderPartnerFields["COLUMN_CONTACT"] = "contact";
|
|
23
|
+
})(OrderPartnerFields = exports.OrderPartnerFields || (exports.OrderPartnerFields = {}));
|
|
24
|
+
class OrderPartner extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(getOrderPartnerDataInput) {
|
|
26
|
+
super(getOrderPartnerDataInput);
|
|
27
|
+
_companyName.set(this, void 0);
|
|
28
|
+
_contact.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _companyName, getOrderPartnerDataInput[OrderPartnerFields.COLUMN_COMPANYNAME]);
|
|
30
|
+
__classPrivateFieldSet(this, _contact, getOrderPartnerDataInput[OrderPartnerFields.COLUMN_CONTACT]);
|
|
31
|
+
}
|
|
32
|
+
get companyName() {
|
|
33
|
+
return __classPrivateFieldGet(this, _companyName);
|
|
34
|
+
}
|
|
35
|
+
get contact() {
|
|
36
|
+
return __classPrivateFieldGet(this, _contact);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[OrderPartnerFields.COLUMN_COMPANYNAME]: this.companyName,
|
|
41
|
+
[OrderPartnerFields.COLUMN_CONTACT]: this.contact,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.OrderPartner = OrderPartner;
|
|
46
|
+
_companyName = new WeakMap(), _contact = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=partner.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
export declare enum ProductPricesFields {
|
|
3
|
+
COLUMN_BUY = "buy",
|
|
4
|
+
COLUMN_SELL = "sell",
|
|
5
|
+
COLUMN_CURRENCY = "currency",
|
|
6
|
+
COLUMN_PERIODICITY = "periodicity",
|
|
7
|
+
COLUMN_TERM = "term"
|
|
8
|
+
}
|
|
9
|
+
export declare type ProductPricesType = {
|
|
10
|
+
[ProductPricesFields.COLUMN_BUY]: number;
|
|
11
|
+
[ProductPricesFields.COLUMN_SELL]: number;
|
|
12
|
+
[ProductPricesFields.COLUMN_CURRENCY]: string;
|
|
13
|
+
[ProductPricesFields.COLUMN_PERIODICITY]: string;
|
|
14
|
+
[ProductPricesFields.COLUMN_TERM]: string;
|
|
15
|
+
};
|
|
16
|
+
export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(productPricesInput: ProductPricesType);
|
|
19
|
+
get buy(): number;
|
|
20
|
+
get sell(): number;
|
|
21
|
+
get currency(): string;
|
|
22
|
+
get periodicity(): string;
|
|
23
|
+
get term(): string;
|
|
24
|
+
toJSON(): ProductPricesType;
|
|
25
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _buy, _sell, _currency, _periodicity, _term;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ProductPrices = exports.ProductPricesFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
19
|
+
var ProductPricesFields;
|
|
20
|
+
(function (ProductPricesFields) {
|
|
21
|
+
ProductPricesFields["COLUMN_BUY"] = "buy";
|
|
22
|
+
ProductPricesFields["COLUMN_SELL"] = "sell";
|
|
23
|
+
ProductPricesFields["COLUMN_CURRENCY"] = "currency";
|
|
24
|
+
ProductPricesFields["COLUMN_PERIODICITY"] = "periodicity";
|
|
25
|
+
ProductPricesFields["COLUMN_TERM"] = "term";
|
|
26
|
+
})(ProductPricesFields = exports.ProductPricesFields || (exports.ProductPricesFields = {}));
|
|
27
|
+
class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
28
|
+
constructor(productPricesInput) {
|
|
29
|
+
super(productPricesInput);
|
|
30
|
+
_buy.set(this, void 0);
|
|
31
|
+
_sell.set(this, void 0);
|
|
32
|
+
_currency.set(this, void 0);
|
|
33
|
+
_periodicity.set(this, void 0);
|
|
34
|
+
_term.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _buy, productPricesInput[ProductPricesFields.COLUMN_BUY]);
|
|
36
|
+
__classPrivateFieldSet(this, _sell, productPricesInput[ProductPricesFields.COLUMN_SELL]);
|
|
37
|
+
__classPrivateFieldSet(this, _currency, productPricesInput[ProductPricesFields.COLUMN_CURRENCY]);
|
|
38
|
+
__classPrivateFieldSet(this, _periodicity, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY]);
|
|
39
|
+
__classPrivateFieldSet(this, _term, productPricesInput[ProductPricesFields.COLUMN_TERM]);
|
|
40
|
+
}
|
|
41
|
+
get buy() {
|
|
42
|
+
return __classPrivateFieldGet(this, _buy);
|
|
43
|
+
}
|
|
44
|
+
get sell() {
|
|
45
|
+
return __classPrivateFieldGet(this, _sell);
|
|
46
|
+
}
|
|
47
|
+
get currency() {
|
|
48
|
+
return __classPrivateFieldGet(this, _currency);
|
|
49
|
+
}
|
|
50
|
+
get periodicity() {
|
|
51
|
+
return __classPrivateFieldGet(this, _periodicity);
|
|
52
|
+
}
|
|
53
|
+
get term() {
|
|
54
|
+
return __classPrivateFieldGet(this, _term);
|
|
55
|
+
}
|
|
56
|
+
toJSON() {
|
|
57
|
+
return {
|
|
58
|
+
[ProductPricesFields.COLUMN_BUY]: this.buy,
|
|
59
|
+
[ProductPricesFields.COLUMN_SELL]: this.sell,
|
|
60
|
+
[ProductPricesFields.COLUMN_CURRENCY]: this.currency,
|
|
61
|
+
[ProductPricesFields.COLUMN_PERIODICITY]: this.periodicity,
|
|
62
|
+
[ProductPricesFields.COLUMN_TERM]: this.term,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.ProductPrices = ProductPrices;
|
|
67
|
+
_buy = new WeakMap(), _sell = new WeakMap(), _currency = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap();
|
|
68
|
+
//# sourceMappingURL=productPrices.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
import { ReferenceLink, ReferenceLinkType } from '../../referenceLink';
|
|
3
|
+
import { ProductPrices, ProductPricesType } from './prices/productPrices';
|
|
4
|
+
export declare enum OrderProductsFields {
|
|
5
|
+
COLUMN_SKU = "sku",
|
|
6
|
+
COLUMN_QUANTITY = "quantity",
|
|
7
|
+
COLUMN_STATUS = "status",
|
|
8
|
+
COLUMN_DATESTATUS = "dateStatus",
|
|
9
|
+
COLUMN_DETAILEDSTATUS = "detailedStatus",
|
|
10
|
+
COLUMN_IS_ADDON = "isAddon",
|
|
11
|
+
COLUMN_ARROWSUBCATEGORIES = "arrowSubCategories",
|
|
12
|
+
COLUMN_IS_TRIAL = "isTrial",
|
|
13
|
+
COLUMN_PRICES = "prices",
|
|
14
|
+
COLUMN_SUBSCRIPTION = "subscription",
|
|
15
|
+
COLUMN_LICENSE = "license"
|
|
16
|
+
}
|
|
17
|
+
export declare type OrderProductsType = {
|
|
18
|
+
[OrderProductsFields.COLUMN_SKU]: string;
|
|
19
|
+
[OrderProductsFields.COLUMN_QUANTITY]: number;
|
|
20
|
+
[OrderProductsFields.COLUMN_STATUS]: string;
|
|
21
|
+
[OrderProductsFields.COLUMN_DATESTATUS]: string;
|
|
22
|
+
[OrderProductsFields.COLUMN_DETAILEDSTATUS]: string;
|
|
23
|
+
[OrderProductsFields.COLUMN_IS_ADDON]: boolean;
|
|
24
|
+
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]?: Array<string>;
|
|
25
|
+
[OrderProductsFields.COLUMN_IS_TRIAL]: boolean;
|
|
26
|
+
[OrderProductsFields.COLUMN_PRICES]: ProductPricesType;
|
|
27
|
+
[OrderProductsFields.COLUMN_SUBSCRIPTION]: ReferenceLinkType;
|
|
28
|
+
[OrderProductsFields.COLUMN_LICENSE]: ReferenceLinkType;
|
|
29
|
+
};
|
|
30
|
+
export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
31
|
+
#private;
|
|
32
|
+
constructor(getOrderProducts: OrderProductsType);
|
|
33
|
+
get sku(): string;
|
|
34
|
+
get quantity(): number;
|
|
35
|
+
get status(): string;
|
|
36
|
+
get dateStatus(): string;
|
|
37
|
+
get detailedStatus(): string;
|
|
38
|
+
get isAddon(): boolean;
|
|
39
|
+
get arrowSubCategories(): Array<string> | undefined;
|
|
40
|
+
get isTrial(): boolean;
|
|
41
|
+
get prices(): ProductPrices;
|
|
42
|
+
get subscription(): ReferenceLink;
|
|
43
|
+
get license(): ReferenceLink;
|
|
44
|
+
toJSON(): OrderProductsType;
|
|
45
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _sku, _quantity, _status, _dateStatus, _detailedStatus, _isAddon, _arrowSubCategories, _isTrial, _prices, _subscription, _license;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.OrderProduct = exports.OrderProductsFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
|
+
const referenceLink_1 = require("../../referenceLink");
|
|
20
|
+
const productPrices_1 = require("./prices/productPrices");
|
|
21
|
+
var OrderProductsFields;
|
|
22
|
+
(function (OrderProductsFields) {
|
|
23
|
+
OrderProductsFields["COLUMN_SKU"] = "sku";
|
|
24
|
+
OrderProductsFields["COLUMN_QUANTITY"] = "quantity";
|
|
25
|
+
OrderProductsFields["COLUMN_STATUS"] = "status";
|
|
26
|
+
OrderProductsFields["COLUMN_DATESTATUS"] = "dateStatus";
|
|
27
|
+
OrderProductsFields["COLUMN_DETAILEDSTATUS"] = "detailedStatus";
|
|
28
|
+
OrderProductsFields["COLUMN_IS_ADDON"] = "isAddon";
|
|
29
|
+
OrderProductsFields["COLUMN_ARROWSUBCATEGORIES"] = "arrowSubCategories";
|
|
30
|
+
OrderProductsFields["COLUMN_IS_TRIAL"] = "isTrial";
|
|
31
|
+
OrderProductsFields["COLUMN_PRICES"] = "prices";
|
|
32
|
+
OrderProductsFields["COLUMN_SUBSCRIPTION"] = "subscription";
|
|
33
|
+
OrderProductsFields["COLUMN_LICENSE"] = "license";
|
|
34
|
+
})(OrderProductsFields = exports.OrderProductsFields || (exports.OrderProductsFields = {}));
|
|
35
|
+
class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
36
|
+
constructor(getOrderProducts) {
|
|
37
|
+
var _a;
|
|
38
|
+
super(getOrderProducts);
|
|
39
|
+
_sku.set(this, void 0);
|
|
40
|
+
_quantity.set(this, void 0);
|
|
41
|
+
_status.set(this, void 0);
|
|
42
|
+
_dateStatus.set(this, void 0);
|
|
43
|
+
_detailedStatus.set(this, void 0);
|
|
44
|
+
_isAddon.set(this, void 0);
|
|
45
|
+
_arrowSubCategories.set(this, void 0);
|
|
46
|
+
_isTrial.set(this, void 0);
|
|
47
|
+
_prices.set(this, void 0);
|
|
48
|
+
_subscription.set(this, void 0);
|
|
49
|
+
_license.set(this, void 0);
|
|
50
|
+
__classPrivateFieldSet(this, _sku, getOrderProducts[OrderProductsFields.COLUMN_SKU]);
|
|
51
|
+
__classPrivateFieldSet(this, _quantity, getOrderProducts[OrderProductsFields.COLUMN_QUANTITY]);
|
|
52
|
+
__classPrivateFieldSet(this, _status, getOrderProducts[OrderProductsFields.COLUMN_STATUS]);
|
|
53
|
+
__classPrivateFieldSet(this, _dateStatus, getOrderProducts[OrderProductsFields.COLUMN_DATESTATUS]);
|
|
54
|
+
__classPrivateFieldSet(this, _detailedStatus, getOrderProducts[OrderProductsFields.COLUMN_DETAILEDSTATUS]);
|
|
55
|
+
__classPrivateFieldSet(this, _isAddon, getOrderProducts[OrderProductsFields.COLUMN_IS_ADDON]);
|
|
56
|
+
__classPrivateFieldSet(this, _arrowSubCategories, (_a = getOrderProducts[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]) !== null && _a !== void 0 ? _a : undefined);
|
|
57
|
+
__classPrivateFieldSet(this, _isTrial, getOrderProducts[OrderProductsFields.COLUMN_IS_TRIAL]);
|
|
58
|
+
__classPrivateFieldSet(this, _prices, new productPrices_1.ProductPrices(getOrderProducts[OrderProductsFields.COLUMN_PRICES]));
|
|
59
|
+
__classPrivateFieldSet(this, _subscription, new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_SUBSCRIPTION]));
|
|
60
|
+
__classPrivateFieldSet(this, _license, new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_LICENSE]));
|
|
61
|
+
}
|
|
62
|
+
get sku() {
|
|
63
|
+
return __classPrivateFieldGet(this, _sku);
|
|
64
|
+
}
|
|
65
|
+
get quantity() {
|
|
66
|
+
return __classPrivateFieldGet(this, _quantity);
|
|
67
|
+
}
|
|
68
|
+
get status() {
|
|
69
|
+
return __classPrivateFieldGet(this, _status);
|
|
70
|
+
}
|
|
71
|
+
get dateStatus() {
|
|
72
|
+
return __classPrivateFieldGet(this, _dateStatus);
|
|
73
|
+
}
|
|
74
|
+
get detailedStatus() {
|
|
75
|
+
return __classPrivateFieldGet(this, _detailedStatus);
|
|
76
|
+
}
|
|
77
|
+
get isAddon() {
|
|
78
|
+
return __classPrivateFieldGet(this, _isAddon);
|
|
79
|
+
}
|
|
80
|
+
get arrowSubCategories() {
|
|
81
|
+
return __classPrivateFieldGet(this, _arrowSubCategories);
|
|
82
|
+
}
|
|
83
|
+
get isTrial() {
|
|
84
|
+
return __classPrivateFieldGet(this, _isTrial);
|
|
85
|
+
}
|
|
86
|
+
get prices() {
|
|
87
|
+
return __classPrivateFieldGet(this, _prices);
|
|
88
|
+
}
|
|
89
|
+
get subscription() {
|
|
90
|
+
return __classPrivateFieldGet(this, _subscription);
|
|
91
|
+
}
|
|
92
|
+
get license() {
|
|
93
|
+
return __classPrivateFieldGet(this, _license);
|
|
94
|
+
}
|
|
95
|
+
toJSON() {
|
|
96
|
+
return {
|
|
97
|
+
[OrderProductsFields.COLUMN_SKU]: this.sku,
|
|
98
|
+
[OrderProductsFields.COLUMN_QUANTITY]: this.quantity,
|
|
99
|
+
[OrderProductsFields.COLUMN_STATUS]: this.status,
|
|
100
|
+
[OrderProductsFields.COLUMN_DATESTATUS]: this.dateStatus,
|
|
101
|
+
[OrderProductsFields.COLUMN_DETAILEDSTATUS]: this.detailedStatus,
|
|
102
|
+
[OrderProductsFields.COLUMN_IS_ADDON]: this.isAddon,
|
|
103
|
+
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]: this.arrowSubCategories,
|
|
104
|
+
[OrderProductsFields.COLUMN_IS_TRIAL]: this.isTrial,
|
|
105
|
+
[OrderProductsFields.COLUMN_PRICES]: this.prices.toJSON(),
|
|
106
|
+
[OrderProductsFields.COLUMN_SUBSCRIPTION]: this.subscription.toJSON(),
|
|
107
|
+
[OrderProductsFields.COLUMN_LICENSE]: this.license.toJSON(),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.OrderProduct = OrderProduct;
|
|
112
|
+
_sku = new WeakMap(), _quantity = new WeakMap(), _status = new WeakMap(), _dateStatus = new WeakMap(), _detailedStatus = new WeakMap(), _isAddon = new WeakMap(), _arrowSubCategories = new WeakMap(), _isTrial = new WeakMap(), _prices = new WeakMap(), _subscription = new WeakMap(), _license = new WeakMap();
|
|
113
|
+
//# sourceMappingURL=products.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum ReferenceLinkFields {
|
|
3
|
+
COLUMN_REFERENCE = "reference",
|
|
4
|
+
COLUMN_LINK = "link"
|
|
5
|
+
}
|
|
6
|
+
export declare type ReferenceLinkType = {
|
|
7
|
+
[ReferenceLinkFields.COLUMN_REFERENCE]: string;
|
|
8
|
+
[ReferenceLinkFields.COLUMN_LINK]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class ReferenceLink extends AbstractEntity<ReferenceLinkType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(referenceLinkInput: ReferenceLinkType);
|
|
13
|
+
get reference(): string;
|
|
14
|
+
get link(): string;
|
|
15
|
+
toJSON(): ReferenceLinkType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _reference, _link;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ReferenceLink = exports.ReferenceLinkFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
19
|
+
var ReferenceLinkFields;
|
|
20
|
+
(function (ReferenceLinkFields) {
|
|
21
|
+
ReferenceLinkFields["COLUMN_REFERENCE"] = "reference";
|
|
22
|
+
ReferenceLinkFields["COLUMN_LINK"] = "link";
|
|
23
|
+
})(ReferenceLinkFields = exports.ReferenceLinkFields || (exports.ReferenceLinkFields = {}));
|
|
24
|
+
class ReferenceLink extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(referenceLinkInput) {
|
|
26
|
+
super(referenceLinkInput);
|
|
27
|
+
_reference.set(this, void 0);
|
|
28
|
+
_link.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _reference, referenceLinkInput[ReferenceLinkFields.COLUMN_REFERENCE]);
|
|
30
|
+
__classPrivateFieldSet(this, _link, referenceLinkInput[ReferenceLinkFields.COLUMN_LINK]);
|
|
31
|
+
}
|
|
32
|
+
get reference() {
|
|
33
|
+
return __classPrivateFieldGet(this, _reference);
|
|
34
|
+
}
|
|
35
|
+
get link() {
|
|
36
|
+
return __classPrivateFieldGet(this, _link);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[ReferenceLinkFields.COLUMN_REFERENCE]: this.reference,
|
|
41
|
+
[ReferenceLinkFields.COLUMN_LINK]: this.link,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ReferenceLink = ReferenceLink;
|
|
46
|
+
_reference = new WeakMap(), _link = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=referenceLink.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './entities/orders/products/prices/productPrices';
|
|
2
|
+
export * from './entities/orders/products/products';
|
|
3
|
+
export * from './entities/orders/partner/partner';
|
|
4
|
+
export * from './entities/orders/order';
|
|
5
|
+
export * from './entities/dataListOrders';
|
|
6
|
+
export * from './entities/referenceLink';
|
|
7
|
+
export * from './ordersClient';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./entities/orders/products/prices/productPrices"), exports);
|
|
14
|
+
__exportStar(require("./entities/orders/products/products"), exports);
|
|
15
|
+
__exportStar(require("./entities/orders/partner/partner"), exports);
|
|
16
|
+
__exportStar(require("./entities/orders/order"), exports);
|
|
17
|
+
__exportStar(require("./entities/dataListOrders"), exports);
|
|
18
|
+
__exportStar(require("./entities/referenceLink"), exports);
|
|
19
|
+
__exportStar(require("./ordersClient"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { AbstractClient, Parameters } from '../abstractClient';
|
|
2
|
+
import { GetResult } from '../getResult';
|
|
3
|
+
import { DataListOrders } from './entities/dataListOrders';
|
|
4
|
+
import { ReferenceLink } from './entities/referenceLink';
|
|
5
|
+
export declare enum CreateOrderInputFields {
|
|
6
|
+
COLUMN_CUSTOMER = "customer",
|
|
7
|
+
COLUMN_REFERENCE = "reference",
|
|
8
|
+
COLUMN_PO_NUMBER = "ponumber",
|
|
9
|
+
COLUMN_PRODUCTS = "products",
|
|
10
|
+
COLUMN_SKU = "sku",
|
|
11
|
+
COLUMN_QUANTITY = "quantity",
|
|
12
|
+
COLUMN_SUBSCRIPTION = "subscription",
|
|
13
|
+
COLUMN_PARENT_LICENSE_ID = "parentLicenseId",
|
|
14
|
+
COLUMN_PARENT_SKU = "parentSku",
|
|
15
|
+
COLUMN_PERIODICITY = "periodicity",
|
|
16
|
+
COLUMN_TERM = "term",
|
|
17
|
+
COLUMN_DISCOUNT = "discount",
|
|
18
|
+
COLUMN_UPLIFT = "uplift"
|
|
19
|
+
}
|
|
20
|
+
export declare type CreateOrderInputType = {
|
|
21
|
+
[CreateOrderInputFields.COLUMN_CUSTOMER]: {
|
|
22
|
+
[CreateOrderInputFields.COLUMN_REFERENCE]: string;
|
|
23
|
+
[CreateOrderInputFields.COLUMN_PO_NUMBER]?: string;
|
|
24
|
+
};
|
|
25
|
+
[CreateOrderInputFields.COLUMN_PRODUCTS]: Array<{
|
|
26
|
+
[CreateOrderInputFields.COLUMN_SKU]: string;
|
|
27
|
+
[CreateOrderInputFields.COLUMN_QUANTITY]: number;
|
|
28
|
+
[CreateOrderInputFields.COLUMN_SUBSCRIPTION]?: {
|
|
29
|
+
[CreateOrderInputFields.COLUMN_REFERENCE]: string;
|
|
30
|
+
};
|
|
31
|
+
[CreateOrderInputFields.COLUMN_PARENT_LICENSE_ID]?: string;
|
|
32
|
+
[CreateOrderInputFields.COLUMN_PARENT_SKU]?: string;
|
|
33
|
+
[CreateOrderInputFields.COLUMN_PERIODICITY]?: string;
|
|
34
|
+
[CreateOrderInputFields.COLUMN_TERM]?: string;
|
|
35
|
+
[CreateOrderInputFields.COLUMN_DISCOUNT]?: number;
|
|
36
|
+
[CreateOrderInputFields.COLUMN_UPLIFT]?: number;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
export declare class OrdersClient extends AbstractClient {
|
|
40
|
+
/**
|
|
41
|
+
* The base path of the Orders API
|
|
42
|
+
*
|
|
43
|
+
* TODO: Actually we use php endpoint and we need to add "/index.php/api" before "/orders" remove "/index.php/api" when endpoint is available in nodejs
|
|
44
|
+
*/
|
|
45
|
+
private ROOT_PATH;
|
|
46
|
+
/**
|
|
47
|
+
* The base path of the API
|
|
48
|
+
*/
|
|
49
|
+
protected basePath: string;
|
|
50
|
+
create(postData: CreateOrderInputType, parameters?: Parameters): Promise<GetResult<ReferenceLink>>;
|
|
51
|
+
getListOrders(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
|
|
52
|
+
getOrder(orderReference: string, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrdersClient = exports.CreateOrderInputFields = void 0;
|
|
4
|
+
const abstractClient_1 = require("../abstractClient");
|
|
5
|
+
const getResult_1 = require("../getResult");
|
|
6
|
+
const dataListOrders_1 = require("./entities/dataListOrders");
|
|
7
|
+
const referenceLink_1 = require("./entities/referenceLink");
|
|
8
|
+
var CreateOrderInputFields;
|
|
9
|
+
(function (CreateOrderInputFields) {
|
|
10
|
+
CreateOrderInputFields["COLUMN_CUSTOMER"] = "customer";
|
|
11
|
+
CreateOrderInputFields["COLUMN_REFERENCE"] = "reference";
|
|
12
|
+
CreateOrderInputFields["COLUMN_PO_NUMBER"] = "ponumber";
|
|
13
|
+
CreateOrderInputFields["COLUMN_PRODUCTS"] = "products";
|
|
14
|
+
CreateOrderInputFields["COLUMN_SKU"] = "sku";
|
|
15
|
+
CreateOrderInputFields["COLUMN_QUANTITY"] = "quantity";
|
|
16
|
+
CreateOrderInputFields["COLUMN_SUBSCRIPTION"] = "subscription";
|
|
17
|
+
CreateOrderInputFields["COLUMN_PARENT_LICENSE_ID"] = "parentLicenseId";
|
|
18
|
+
CreateOrderInputFields["COLUMN_PARENT_SKU"] = "parentSku";
|
|
19
|
+
CreateOrderInputFields["COLUMN_PERIODICITY"] = "periodicity";
|
|
20
|
+
CreateOrderInputFields["COLUMN_TERM"] = "term";
|
|
21
|
+
CreateOrderInputFields["COLUMN_DISCOUNT"] = "discount";
|
|
22
|
+
CreateOrderInputFields["COLUMN_UPLIFT"] = "uplift";
|
|
23
|
+
})(CreateOrderInputFields = exports.CreateOrderInputFields || (exports.CreateOrderInputFields = {}));
|
|
24
|
+
class OrdersClient extends abstractClient_1.AbstractClient {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
/**
|
|
28
|
+
* The base path of the Orders API
|
|
29
|
+
*
|
|
30
|
+
* TODO: Actually we use php endpoint and we need to add "/index.php/api" before "/orders" remove "/index.php/api" when endpoint is available in nodejs
|
|
31
|
+
*/
|
|
32
|
+
this.ROOT_PATH = '/index.php/api/orders';
|
|
33
|
+
/**
|
|
34
|
+
* The base path of the API
|
|
35
|
+
*/
|
|
36
|
+
this.basePath = this.ROOT_PATH;
|
|
37
|
+
}
|
|
38
|
+
async create(postData, parameters = {}) {
|
|
39
|
+
return new getResult_1.GetResult(referenceLink_1.ReferenceLink, await this.post(postData, parameters));
|
|
40
|
+
}
|
|
41
|
+
async getListOrders(perPage = 25, page = 1, parameters = {}) {
|
|
42
|
+
this.setPerPage(perPage);
|
|
43
|
+
this.setPage(page);
|
|
44
|
+
return new getResult_1.GetResult(dataListOrders_1.DataListOrders, await this.get(parameters));
|
|
45
|
+
}
|
|
46
|
+
async getOrder(orderReference, parameters = {}) {
|
|
47
|
+
this.path = `/${orderReference}`;
|
|
48
|
+
return new getResult_1.GetResult(dataListOrders_1.DataListOrders, await this.get(parameters));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.OrdersClient = OrdersClient;
|
|
52
|
+
//# sourceMappingURL=ordersClient.js.map
|
|
@@ -3,6 +3,7 @@ import { CheckDomainClient, WhoAmIClient } from './general';
|
|
|
3
3
|
import { LicensesClient } from './licenses/licensesClient';
|
|
4
4
|
import { SubscriptionsClient } from './subscriptions/subscriptionsClient';
|
|
5
5
|
import { CustomersClient } from './customers/customersClient';
|
|
6
|
+
import { OrdersClient } from './orders';
|
|
6
7
|
/**
|
|
7
8
|
* Public API Client class, should be the main entry point for your calls
|
|
8
9
|
*/
|
|
@@ -33,5 +34,10 @@ export declare class PublicApiClient extends AbstractClient {
|
|
|
33
34
|
* @returns {@link SubscriptionsClient}
|
|
34
35
|
*/
|
|
35
36
|
getSubscriptionsClient(): SubscriptionsClient;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new {@link OrdersClient} instance and returns it
|
|
39
|
+
* @returns {@link OrdersClient}
|
|
40
|
+
*/
|
|
41
|
+
getOrdersClient(): OrdersClient;
|
|
36
42
|
}
|
|
37
43
|
export default PublicApiClient;
|
package/build/publicApiClient.js
CHANGED
|
@@ -6,6 +6,7 @@ const general_1 = require("./general");
|
|
|
6
6
|
const licensesClient_1 = require("./licenses/licensesClient");
|
|
7
7
|
const subscriptionsClient_1 = require("./subscriptions/subscriptionsClient");
|
|
8
8
|
const customersClient_1 = require("./customers/customersClient");
|
|
9
|
+
const orders_1 = require("./orders");
|
|
9
10
|
/**
|
|
10
11
|
* Public API Client class, should be the main entry point for your calls
|
|
11
12
|
*/
|
|
@@ -58,6 +59,15 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
58
59
|
.setUrl(this.url)
|
|
59
60
|
.setApiKey(this.apiKey);
|
|
60
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Creates a new {@link OrdersClient} instance and returns it
|
|
64
|
+
* @returns {@link OrdersClient}
|
|
65
|
+
*/
|
|
66
|
+
getOrdersClient() {
|
|
67
|
+
return new orders_1.OrdersClient(this.client)
|
|
68
|
+
.setUrl(this.url)
|
|
69
|
+
.setApiKey(this.apiKey);
|
|
70
|
+
}
|
|
61
71
|
}
|
|
62
72
|
exports.PublicApiClient = PublicApiClient;
|
|
63
73
|
exports.default = PublicApiClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum SharedContactFields {
|
|
2
|
+
COLUMN_FIRSTNAME = "firstName",
|
|
3
|
+
COLUMN_LASTNAME = "lastName",
|
|
4
|
+
COLUMN_EMAIL = "email"
|
|
5
|
+
}
|
|
6
|
+
export interface SharedContactInterface {
|
|
7
|
+
[SharedContactFields.COLUMN_FIRSTNAME]: string;
|
|
8
|
+
[SharedContactFields.COLUMN_LASTNAME]: string;
|
|
9
|
+
[SharedContactFields.COLUMN_EMAIL]: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SharedContactFields = void 0;
|
|
4
|
+
var SharedContactFields;
|
|
5
|
+
(function (SharedContactFields) {
|
|
6
|
+
SharedContactFields["COLUMN_FIRSTNAME"] = "firstName";
|
|
7
|
+
SharedContactFields["COLUMN_LASTNAME"] = "lastName";
|
|
8
|
+
SharedContactFields["COLUMN_EMAIL"] = "email";
|
|
9
|
+
})(SharedContactFields = exports.SharedContactFields || (exports.SharedContactFields = {}));
|
|
10
|
+
//# sourceMappingURL=contact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './contact/contact';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./contact/contact"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED