@arrowsphere/api-client 3.145.1-rc.sba.1 → 3.147.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 +17 -0
- package/build/graphqlApi/types/entities/quote.d.ts +12 -0
- package/build/graphqlApi/types/entities/user.d.ts +0 -5
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +1 -3
- package/build/orders/entities/orders/order.d.ts +4 -1
- package/build/orders/entities/orders/order.js +9 -2
- package/build/orders/entities/orders/updateOrderResult.d.ts +9 -0
- package/build/orders/entities/orders/updateOrderResult.js +31 -0
- package/build/orders/ordersClient.d.ts +8 -0
- package/build/orders/ordersClient.js +10 -1
- package/build/organisationUnit/entities/organizationUnit.d.ts +4 -1
- package/build/organisationUnit/entities/organizationUnit.js +9 -2
- package/build/quotes/quotesClient.d.ts +1 -0
- package/build/quotes/quotesClient.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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.147.0] - 2024.010.09
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [quotes] add endpoints to reopen a quote
|
|
10
|
+
|
|
11
|
+
## [3.146.0] - 2024.10.08
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- [quote] Added customTermAndDate, partnerBuyPrice and partnerCotermBuyPrice in itemData
|
|
15
|
+
|
|
16
|
+
## [3.145.0] - 2024.10.07
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- [orders] Added organizationUnitRef property in order entity
|
|
20
|
+
- [orders] Added endpoint to update an order
|
|
21
|
+
- [organization unit] Added countOrders in organizationUnit entity
|
|
22
|
+
|
|
6
23
|
## [3.144.0] - 2024.10.03
|
|
7
24
|
|
|
8
25
|
### Added
|
|
@@ -49,9 +49,21 @@ export declare type ItemData = {
|
|
|
49
49
|
partnerRateType?: string;
|
|
50
50
|
arrowBuyPrice?: number;
|
|
51
51
|
arrowCotermBuyPrice?: number;
|
|
52
|
+
/**
|
|
53
|
+
* this field will be delete shortly
|
|
54
|
+
* Use 'partnerBuyPrice' instead.
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
52
57
|
resellerBuyPrice?: number;
|
|
58
|
+
/**
|
|
59
|
+
* this field will be delete shortly
|
|
60
|
+
* Use 'partnerCotermBuyPrice' instead.
|
|
61
|
+
* @deprecated
|
|
62
|
+
*/
|
|
53
63
|
resellerCotermBuyPrice?: number;
|
|
54
64
|
endCustomerBuyPrice?: number;
|
|
65
|
+
partnerCotermBuyPrice?: number;
|
|
66
|
+
partnerBuyPrice?: number;
|
|
55
67
|
endCustomerCotermBuyPrice?: number;
|
|
56
68
|
billingTerm?: number;
|
|
57
69
|
billingCycle?: number;
|
|
@@ -4,7 +4,6 @@ export declare type UserType = {
|
|
|
4
4
|
id?: number;
|
|
5
5
|
allowDirectLogin?: boolean;
|
|
6
6
|
contact?: ContactsType;
|
|
7
|
-
role?: UserRole;
|
|
8
7
|
userTags?: PartnertagType[];
|
|
9
8
|
validatedAt?: string;
|
|
10
9
|
};
|
|
@@ -16,7 +15,3 @@ export declare type UserHistoryType = {
|
|
|
16
15
|
impactedUser?: UserType;
|
|
17
16
|
originatorUser?: UserType;
|
|
18
17
|
};
|
|
19
|
-
export declare type UserRole = {
|
|
20
|
-
id?: number;
|
|
21
|
-
name?: string;
|
|
22
|
-
};
|
|
@@ -11,7 +11,7 @@ import { OrderItemsType, OrdersType } from './entities/order';
|
|
|
11
11
|
import { VendorsType } from './entities/vendor';
|
|
12
12
|
import { GraphqlApiProgramType, SubscribedProgramType } from './entities/program';
|
|
13
13
|
import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
|
|
14
|
-
import { UserHistoryType,
|
|
14
|
+
import { UserHistoryType, UserType } from './entities/user';
|
|
15
15
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
16
16
|
import { CurrencyType } from './entities/currency';
|
|
17
17
|
import { ItemData, QuoteItemType, QuoteType } from './entities/quote';
|
|
@@ -52,7 +52,6 @@ declare type MissingFieldsOfContactSchema = {
|
|
|
52
52
|
declare type MissingFieldsOfUserSchema = {
|
|
53
53
|
contact?: ContactsSchema;
|
|
54
54
|
userTags?: PartnertagSchema;
|
|
55
|
-
role?: UserRoleSchema;
|
|
56
55
|
};
|
|
57
56
|
declare type MissingFieldsOfLicenseBudgetSchema = {
|
|
58
57
|
notifications?: LicenseBudgetNotificationSchema;
|
|
@@ -81,7 +80,6 @@ declare type MissingFieldsOfCountrySchema = {
|
|
|
81
80
|
continent?: ContinentSchema;
|
|
82
81
|
};
|
|
83
82
|
export declare type ItemDataSchema = Schema<ItemData, boolean>;
|
|
84
|
-
export declare type UserRoleSchema = Schema<UserRole, boolean>;
|
|
85
83
|
export declare type QuoteSchema = Merge<Schema<QuoteType, boolean>, MissingFieldsOfQuoteSchema>;
|
|
86
84
|
export declare type ContactsSchema = Merge<Schema<ContactsType, boolean>, MissingFieldsOfContactSchema>;
|
|
87
85
|
export declare type UserSchema = Merge<Schema<UserType, boolean>, MissingFieldsOfUserSchema>;
|
|
@@ -13,7 +13,8 @@ export declare enum OrderFields {
|
|
|
13
13
|
COLUMN_CUSTOMER = "customer",
|
|
14
14
|
COLUMN_PONUMBER = "ponumber",
|
|
15
15
|
COLUMN_PRODUCTS = "products",
|
|
16
|
-
COLUMN_EXTRA_INFORMATION = "extraInformation"
|
|
16
|
+
COLUMN_EXTRA_INFORMATION = "extraInformation",
|
|
17
|
+
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef"
|
|
17
18
|
}
|
|
18
19
|
export declare type OrderType = {
|
|
19
20
|
[OrderFields.COLUMN_REFERENCE]: string;
|
|
@@ -26,6 +27,7 @@ export declare type OrderType = {
|
|
|
26
27
|
[OrderFields.COLUMN_PONUMBER]: string;
|
|
27
28
|
[OrderFields.COLUMN_PRODUCTS]: Array<OrderProductsType>;
|
|
28
29
|
[OrderFields.COLUMN_EXTRA_INFORMATION]?: AdditionalExtraInformationType;
|
|
30
|
+
[OrderFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
29
31
|
};
|
|
30
32
|
export declare class Order extends AbstractEntity<OrderType> {
|
|
31
33
|
#private;
|
|
@@ -40,5 +42,6 @@ export declare class Order extends AbstractEntity<OrderType> {
|
|
|
40
42
|
get ponumber(): string;
|
|
41
43
|
get products(): Array<OrderProduct>;
|
|
42
44
|
get extraInformation(): AdditionalExtraInformation | undefined;
|
|
45
|
+
get organizationUnitRef(): string | undefined;
|
|
43
46
|
toJSON(): OrderType;
|
|
44
47
|
}
|
|
@@ -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 _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_products, _Order_extraInformation;
|
|
13
|
+
var _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_products, _Order_extraInformation, _Order_organizationUnitRef;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Order = exports.OrderFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -30,6 +30,7 @@ var OrderFields;
|
|
|
30
30
|
OrderFields["COLUMN_PONUMBER"] = "ponumber";
|
|
31
31
|
OrderFields["COLUMN_PRODUCTS"] = "products";
|
|
32
32
|
OrderFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
|
|
33
|
+
OrderFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
33
34
|
})(OrderFields = exports.OrderFields || (exports.OrderFields = {}));
|
|
34
35
|
class Order extends abstractEntity_1.AbstractEntity {
|
|
35
36
|
constructor(getOrderDataInput) {
|
|
@@ -44,6 +45,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
44
45
|
_Order_ponumber.set(this, void 0);
|
|
45
46
|
_Order_products.set(this, void 0);
|
|
46
47
|
_Order_extraInformation.set(this, void 0);
|
|
48
|
+
_Order_organizationUnitRef.set(this, void 0);
|
|
47
49
|
__classPrivateFieldSet(this, _Order_reference, getOrderDataInput[OrderFields.COLUMN_REFERENCE], "f");
|
|
48
50
|
__classPrivateFieldSet(this, _Order_status, getOrderDataInput[OrderFields.COLUMN_STATUS], "f");
|
|
49
51
|
__classPrivateFieldSet(this, _Order_dateStatus, getOrderDataInput[OrderFields.COLUMN_DATESTATUS], "f");
|
|
@@ -58,6 +60,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
58
60
|
__classPrivateFieldSet(this, _Order_extraInformation, getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION]
|
|
59
61
|
? new shared_1.AdditionalExtraInformation(getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION])
|
|
60
62
|
: undefined, "f");
|
|
63
|
+
__classPrivateFieldSet(this, _Order_organizationUnitRef, getOrderDataInput[OrderFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
|
|
61
64
|
}
|
|
62
65
|
get reference() {
|
|
63
66
|
return __classPrivateFieldGet(this, _Order_reference, "f");
|
|
@@ -89,6 +92,9 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
89
92
|
get extraInformation() {
|
|
90
93
|
return __classPrivateFieldGet(this, _Order_extraInformation, "f");
|
|
91
94
|
}
|
|
95
|
+
get organizationUnitRef() {
|
|
96
|
+
return __classPrivateFieldGet(this, _Order_organizationUnitRef, "f");
|
|
97
|
+
}
|
|
92
98
|
toJSON() {
|
|
93
99
|
var _a, _b;
|
|
94
100
|
return {
|
|
@@ -102,9 +108,10 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
102
108
|
[OrderFields.COLUMN_PONUMBER]: this.ponumber,
|
|
103
109
|
[OrderFields.COLUMN_PRODUCTS]: this.products.map((order) => order.toJSON()),
|
|
104
110
|
[OrderFields.COLUMN_EXTRA_INFORMATION]: (_b = this.extraInformation) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
111
|
+
[OrderFields.COLUMN_ORGANIZATION_UNIT_REF]: this.organizationUnitRef,
|
|
105
112
|
};
|
|
106
113
|
}
|
|
107
114
|
}
|
|
108
115
|
exports.Order = Order;
|
|
109
|
-
_Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_products = new WeakMap(), _Order_extraInformation = new WeakMap();
|
|
116
|
+
_Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_products = new WeakMap(), _Order_extraInformation = new WeakMap(), _Order_organizationUnitRef = new WeakMap();
|
|
110
117
|
//# sourceMappingURL=order.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare type UpdateOrderResultData = {
|
|
3
|
+
message: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class UpdateOrderResult extends AbstractEntity<UpdateOrderResultData> {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(data: UpdateOrderResultData);
|
|
8
|
+
toJSON(): UpdateOrderResultData;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 _UpdateOrderResult_message;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateOrderResult = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
class UpdateOrderResult extends abstractEntity_1.AbstractEntity {
|
|
18
|
+
constructor(data) {
|
|
19
|
+
super(data);
|
|
20
|
+
_UpdateOrderResult_message.set(this, void 0);
|
|
21
|
+
__classPrivateFieldSet(this, _UpdateOrderResult_message, data.message, "f");
|
|
22
|
+
}
|
|
23
|
+
toJSON() {
|
|
24
|
+
return {
|
|
25
|
+
message: __classPrivateFieldGet(this, _UpdateOrderResult_message, "f"),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.UpdateOrderResult = UpdateOrderResult;
|
|
30
|
+
_UpdateOrderResult_message = new WeakMap();
|
|
31
|
+
//# sourceMappingURL=updateOrderResult.js.map
|
|
@@ -2,6 +2,7 @@ import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
|
|
|
2
2
|
import { GetResult } from '../getResult';
|
|
3
3
|
import { DataListOrders } from './entities/dataListOrders';
|
|
4
4
|
import { ReferenceLink } from './entities/referenceLink';
|
|
5
|
+
import { UpdateOrderResult } from './entities/orders/updateOrderResult';
|
|
5
6
|
export declare enum CreateOrderInputFields {
|
|
6
7
|
COLUMN_CUSTOMER = "customer",
|
|
7
8
|
COLUMN_REFERENCE = "reference",
|
|
@@ -117,6 +118,12 @@ export declare type CreateOrderProductType = {
|
|
|
117
118
|
};
|
|
118
119
|
[CreateOrderInputFields.COLUMN_EAVS]?: Record<string, string>;
|
|
119
120
|
};
|
|
121
|
+
export declare enum UpdateOrderInputFields {
|
|
122
|
+
COLUMN_PO_NUMBER = "PO_number"
|
|
123
|
+
}
|
|
124
|
+
export declare type UpdateOrderInputType = {
|
|
125
|
+
[UpdateOrderInputFields.COLUMN_PO_NUMBER]: string;
|
|
126
|
+
};
|
|
120
127
|
export declare class OrdersClient extends AbstractRestfulClient {
|
|
121
128
|
/**
|
|
122
129
|
* The base path of the API
|
|
@@ -125,4 +132,5 @@ export declare class OrdersClient extends AbstractRestfulClient {
|
|
|
125
132
|
create(postData: CreateOrderInputType, parameters?: Parameters): Promise<GetResult<ReferenceLink>>;
|
|
126
133
|
getListOrders(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
|
|
127
134
|
getOrder(orderReference: string, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
|
|
135
|
+
updateOrder(orderReference: string, payload: UpdateOrderInputType, parameters?: Parameters): Promise<GetResult<UpdateOrderResult>>;
|
|
128
136
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersClient = exports.scenarioType = exports.CreateOrderInputFields = void 0;
|
|
3
|
+
exports.OrdersClient = exports.UpdateOrderInputFields = exports.scenarioType = exports.CreateOrderInputFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const dataListOrders_1 = require("./entities/dataListOrders");
|
|
7
7
|
const referenceLink_1 = require("./entities/referenceLink");
|
|
8
|
+
const updateOrderResult_1 = require("./entities/orders/updateOrderResult");
|
|
8
9
|
var CreateOrderInputFields;
|
|
9
10
|
(function (CreateOrderInputFields) {
|
|
10
11
|
CreateOrderInputFields["COLUMN_CUSTOMER"] = "customer";
|
|
@@ -53,6 +54,10 @@ var scenarioType;
|
|
|
53
54
|
scenarioType["RECONCILIATION"] = "reconciliation";
|
|
54
55
|
scenarioType["PROVISION"] = "provision";
|
|
55
56
|
})(scenarioType = exports.scenarioType || (exports.scenarioType = {}));
|
|
57
|
+
var UpdateOrderInputFields;
|
|
58
|
+
(function (UpdateOrderInputFields) {
|
|
59
|
+
UpdateOrderInputFields["COLUMN_PO_NUMBER"] = "PO_number";
|
|
60
|
+
})(UpdateOrderInputFields = exports.UpdateOrderInputFields || (exports.UpdateOrderInputFields = {}));
|
|
56
61
|
class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
57
62
|
constructor() {
|
|
58
63
|
super(...arguments);
|
|
@@ -73,6 +78,10 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
73
78
|
this.path = `/${orderReference}`;
|
|
74
79
|
return new getResult_1.GetResult(dataListOrders_1.DataListOrders, await this.get(parameters));
|
|
75
80
|
}
|
|
81
|
+
async updateOrder(orderReference, payload, parameters = {}) {
|
|
82
|
+
this.path = `/${orderReference}`;
|
|
83
|
+
return new getResult_1.GetResult(updateOrderResult_1.UpdateOrderResult, await this.patch(payload, parameters));
|
|
84
|
+
}
|
|
76
85
|
}
|
|
77
86
|
exports.OrdersClient = OrdersClient;
|
|
78
87
|
//# sourceMappingURL=ordersClient.js.map
|
|
@@ -5,7 +5,8 @@ export declare enum OrganizationUnitFields {
|
|
|
5
5
|
COLUMN_NAME = "name",
|
|
6
6
|
COLUMN_COUNT_USERS = "countUsers",
|
|
7
7
|
COLUMN_COUNT_CUSTOMERS = "countCustomers",
|
|
8
|
-
COLUMN_COUNT_LICENSES = "countLicenses"
|
|
8
|
+
COLUMN_COUNT_LICENSES = "countLicenses",
|
|
9
|
+
COLUMN_COUNT_ORDERS = "countOrders"
|
|
9
10
|
}
|
|
10
11
|
export declare type OrganizationUnitType = {
|
|
11
12
|
[OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF]: string;
|
|
@@ -14,6 +15,7 @@ export declare type OrganizationUnitType = {
|
|
|
14
15
|
[OrganizationUnitFields.COLUMN_COUNT_USERS]?: number;
|
|
15
16
|
[OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS]?: number;
|
|
16
17
|
[OrganizationUnitFields.COLUMN_COUNT_LICENSES]?: number;
|
|
18
|
+
[OrganizationUnitFields.COLUMN_COUNT_ORDERS]?: number;
|
|
17
19
|
};
|
|
18
20
|
export declare class OrganizationUnit extends AbstractEntity<OrganizationUnitType> {
|
|
19
21
|
#private;
|
|
@@ -24,5 +26,6 @@ export declare class OrganizationUnit extends AbstractEntity<OrganizationUnitTyp
|
|
|
24
26
|
get countUsers(): number | undefined;
|
|
25
27
|
get countCustomers(): number | undefined;
|
|
26
28
|
get countLicenses(): number | undefined;
|
|
29
|
+
get countOrders(): number | undefined;
|
|
27
30
|
toJSON(): OrganizationUnitType;
|
|
28
31
|
}
|
|
@@ -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 _OrganizationUnit_organizationUnitRef, _OrganizationUnit_companyRef, _OrganizationUnit_name, _OrganizationUnit_countUsers, _OrganizationUnit_countCustomers, _OrganizationUnit_countLicenses;
|
|
13
|
+
var _OrganizationUnit_organizationUnitRef, _OrganizationUnit_companyRef, _OrganizationUnit_name, _OrganizationUnit_countUsers, _OrganizationUnit_countCustomers, _OrganizationUnit_countLicenses, _OrganizationUnit_countOrders;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OrganizationUnit = exports.OrganizationUnitFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -22,6 +22,7 @@ var OrganizationUnitFields;
|
|
|
22
22
|
OrganizationUnitFields["COLUMN_COUNT_USERS"] = "countUsers";
|
|
23
23
|
OrganizationUnitFields["COLUMN_COUNT_CUSTOMERS"] = "countCustomers";
|
|
24
24
|
OrganizationUnitFields["COLUMN_COUNT_LICENSES"] = "countLicenses";
|
|
25
|
+
OrganizationUnitFields["COLUMN_COUNT_ORDERS"] = "countOrders";
|
|
25
26
|
})(OrganizationUnitFields = exports.OrganizationUnitFields || (exports.OrganizationUnitFields = {}));
|
|
26
27
|
class OrganizationUnit extends abstractEntity_1.AbstractEntity {
|
|
27
28
|
constructor(organizationUnitInput) {
|
|
@@ -32,12 +33,14 @@ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
|
|
|
32
33
|
_OrganizationUnit_countUsers.set(this, void 0);
|
|
33
34
|
_OrganizationUnit_countCustomers.set(this, void 0);
|
|
34
35
|
_OrganizationUnit_countLicenses.set(this, void 0);
|
|
36
|
+
_OrganizationUnit_countOrders.set(this, void 0);
|
|
35
37
|
__classPrivateFieldSet(this, _OrganizationUnit_organizationUnitRef, organizationUnitInput[OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
|
|
36
38
|
__classPrivateFieldSet(this, _OrganizationUnit_companyRef, organizationUnitInput[OrganizationUnitFields.COLUMN_COMPANY_REF], "f");
|
|
37
39
|
__classPrivateFieldSet(this, _OrganizationUnit_name, organizationUnitInput[OrganizationUnitFields.COLUMN_NAME], "f");
|
|
38
40
|
__classPrivateFieldSet(this, _OrganizationUnit_countUsers, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_USERS], "f");
|
|
39
41
|
__classPrivateFieldSet(this, _OrganizationUnit_countCustomers, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS], "f");
|
|
40
42
|
__classPrivateFieldSet(this, _OrganizationUnit_countLicenses, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_LICENSES], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _OrganizationUnit_countOrders, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_ORDERS], "f");
|
|
41
44
|
}
|
|
42
45
|
get organizationUnitRef() {
|
|
43
46
|
return __classPrivateFieldGet(this, _OrganizationUnit_organizationUnitRef, "f");
|
|
@@ -57,6 +60,9 @@ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
|
|
|
57
60
|
get countLicenses() {
|
|
58
61
|
return __classPrivateFieldGet(this, _OrganizationUnit_countLicenses, "f");
|
|
59
62
|
}
|
|
63
|
+
get countOrders() {
|
|
64
|
+
return __classPrivateFieldGet(this, _OrganizationUnit_countOrders, "f");
|
|
65
|
+
}
|
|
60
66
|
toJSON() {
|
|
61
67
|
return {
|
|
62
68
|
[OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF]: this
|
|
@@ -66,9 +72,10 @@ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
|
|
|
66
72
|
[OrganizationUnitFields.COLUMN_COUNT_USERS]: this.countUsers,
|
|
67
73
|
[OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS]: this.countCustomers,
|
|
68
74
|
[OrganizationUnitFields.COLUMN_COUNT_LICENSES]: this.countLicenses,
|
|
75
|
+
[OrganizationUnitFields.COLUMN_COUNT_ORDERS]: this.countOrders,
|
|
69
76
|
};
|
|
70
77
|
}
|
|
71
78
|
}
|
|
72
79
|
exports.OrganizationUnit = OrganizationUnit;
|
|
73
|
-
_OrganizationUnit_organizationUnitRef = new WeakMap(), _OrganizationUnit_companyRef = new WeakMap(), _OrganizationUnit_name = new WeakMap(), _OrganizationUnit_countUsers = new WeakMap(), _OrganizationUnit_countCustomers = new WeakMap(), _OrganizationUnit_countLicenses = new WeakMap();
|
|
80
|
+
_OrganizationUnit_organizationUnitRef = new WeakMap(), _OrganizationUnit_companyRef = new WeakMap(), _OrganizationUnit_name = new WeakMap(), _OrganizationUnit_countUsers = new WeakMap(), _OrganizationUnit_countCustomers = new WeakMap(), _OrganizationUnit_countLicenses = new WeakMap(), _OrganizationUnit_countOrders = new WeakMap();
|
|
74
81
|
//# sourceMappingURL=organizationUnit.js.map
|
|
@@ -65,6 +65,7 @@ export declare class QuotesClient extends AbstractRestfulClient {
|
|
|
65
65
|
requestQuoteForVendor(vendor: string, postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<void>;
|
|
66
66
|
deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
67
67
|
validateQuote(quoteReference: string, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
68
|
+
reopenQuote(quoteReference: string, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
68
69
|
createQuote(postData: CreateQuoteRequestType, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
69
70
|
publishQuote(quoteReference: string, postData: PublishQuoteRequestType, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
70
71
|
addCommentToQuote(quoteReference: string, postData: CreateCommentType, parameters?: Parameters): Promise<GetResult<QuoteComments>>;
|
|
@@ -27,6 +27,10 @@ class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
27
27
|
this.path = `/${quoteReference}/validate`;
|
|
28
28
|
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.get(parameters));
|
|
29
29
|
}
|
|
30
|
+
async reopenQuote(quoteReference, parameters = {}) {
|
|
31
|
+
this.path = `/${quoteReference}/reopen`;
|
|
32
|
+
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.get(parameters));
|
|
33
|
+
}
|
|
30
34
|
async createQuote(postData, parameters = {}) {
|
|
31
35
|
this.path = '';
|
|
32
36
|
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.post(postData, parameters));
|
package/package.json
CHANGED