@arrowsphere/api-client 3.182.0-rc-bdj-2 → 3.182.0-rc-cpe-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/graphqlApi/index.d.ts +0 -1
- package/build/graphqlApi/index.js +0 -1
- package/build/graphqlApi/types/entities/order.d.ts +0 -26
- package/build/graphqlApi/types/entities/program.d.ts +1 -5
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +0 -4
- package/build/graphqlApi/types/graphqlApiQueries.js +0 -1
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +0 -1
- package/build/orders/entities/orders/order.d.ts +3 -0
- package/build/orders/entities/orders/order.js +9 -2
- package/build/orders/ordersClient.d.ts +3 -18
- package/build/orders/ordersClient.js +2 -42
- package/package.json +1 -1
- package/build/graphqlApi/types/entities/disclaimer.d.ts +0 -8
- package/build/graphqlApi/types/entities/disclaimer.js +0 -3
|
@@ -4,7 +4,6 @@ export * from './types/entities/contact';
|
|
|
4
4
|
export * from './types/entities/company';
|
|
5
5
|
export * from './types/entities/country';
|
|
6
6
|
export * from './types/entities/currency';
|
|
7
|
-
export * from './types/entities/disclaimer';
|
|
8
7
|
export * from './types/entities/licenseBudget';
|
|
9
8
|
export * from './types/entities/order';
|
|
10
9
|
export * from './types/entities/organizationUnit';
|
|
@@ -20,7 +20,6 @@ __exportStar(require("./types/entities/contact"), exports);
|
|
|
20
20
|
__exportStar(require("./types/entities/company"), exports);
|
|
21
21
|
__exportStar(require("./types/entities/country"), exports);
|
|
22
22
|
__exportStar(require("./types/entities/currency"), exports);
|
|
23
|
-
__exportStar(require("./types/entities/disclaimer"), exports);
|
|
24
23
|
__exportStar(require("./types/entities/licenseBudget"), exports);
|
|
25
24
|
__exportStar(require("./types/entities/order"), exports);
|
|
26
25
|
__exportStar(require("./types/entities/organizationUnit"), exports);
|
|
@@ -1,34 +1,12 @@
|
|
|
1
|
-
import { ArrowCompanyType, EndCustomerType, PartnerType } from './company';
|
|
2
|
-
import { ContactsType } from './contact';
|
|
3
|
-
import { GraphqlApiProgramType } from './program';
|
|
4
|
-
import { ItemData } from './quote';
|
|
5
1
|
import { SpecialPriceRateType } from './specialPriceRate';
|
|
6
2
|
import { GraphqlApiUnitType } from './unit';
|
|
7
3
|
export declare type OrdersType = {
|
|
8
4
|
id?: number;
|
|
9
|
-
arrowCompany?: ArrowCompanyType;
|
|
10
|
-
arrowContact?: ContactsType;
|
|
11
|
-
commitmentAmountTotal?: number;
|
|
12
|
-
createdAt?: string;
|
|
13
|
-
endCustomer?: EndCustomerType;
|
|
14
|
-
endCustomerContact?: ContactsType;
|
|
15
5
|
items?: OrderItemsType[];
|
|
16
|
-
partner?: PartnerType;
|
|
17
|
-
partnerContact?: ContactsType;
|
|
18
|
-
poNumber?: string;
|
|
19
|
-
reference?: string;
|
|
20
|
-
status?: GraphqlApiOrderStatusType;
|
|
21
|
-
totalRecurringPrice?: number;
|
|
22
|
-
updatedAt?: string;
|
|
23
6
|
};
|
|
24
7
|
export declare type OrderItemsType = {
|
|
25
8
|
id?: number;
|
|
26
|
-
itemData?: ItemData;
|
|
27
|
-
name?: string;
|
|
28
9
|
priceRates?: SpecialPriceRateType[];
|
|
29
|
-
program?: GraphqlApiProgramType;
|
|
30
|
-
reference?: string;
|
|
31
|
-
status?: GraphqlApiOrderStatusType;
|
|
32
10
|
};
|
|
33
11
|
export declare type GraphqlApiOrderSoftwareType = {
|
|
34
12
|
id?: number;
|
|
@@ -36,7 +14,3 @@ export declare type GraphqlApiOrderSoftwareType = {
|
|
|
36
14
|
totalAmount?: number;
|
|
37
15
|
unit?: GraphqlApiUnitType;
|
|
38
16
|
};
|
|
39
|
-
export declare type GraphqlApiOrderStatusType = {
|
|
40
|
-
id?: number;
|
|
41
|
-
name?: string;
|
|
42
|
-
};
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { PartnerType } from './company';
|
|
2
|
-
import { GraphqlApiDisclaimerType } from './disclaimer';
|
|
3
2
|
import { SubscriptionType } from './subscription';
|
|
4
3
|
import { VendorsType } from './vendor';
|
|
5
4
|
export declare type GraphqlApiProgramType = {
|
|
6
5
|
id?: number;
|
|
7
6
|
bypassReport?: number;
|
|
8
7
|
description?: string;
|
|
9
|
-
disclaimer?: GraphqlApiDisclaimerType;
|
|
10
8
|
internalName?: string;
|
|
11
9
|
introduction?: string;
|
|
12
10
|
levels?: ProgramLevelType[];
|
|
13
11
|
name?: string;
|
|
14
12
|
subscriptionExtraFields?: SubscriptionExtraFieldType[];
|
|
15
|
-
type?: GraphqlApiProgramTypeType;
|
|
16
13
|
url?: string;
|
|
17
14
|
vendor?: VendorsType;
|
|
18
|
-
|
|
19
|
-
xacVendorCode?: string;
|
|
15
|
+
type?: GraphqlApiProgramTypeType;
|
|
20
16
|
};
|
|
21
17
|
export declare type GraphqlApiProgramTypeType = {
|
|
22
18
|
id?: number;
|
|
@@ -2,7 +2,6 @@ import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/compa
|
|
|
2
2
|
import { ContactsType } from './entities/contact';
|
|
3
3
|
import { ContinentType, CountryType } from './entities/country';
|
|
4
4
|
import { LicenseBudgetType } from './entities/licenseBudget';
|
|
5
|
-
import { OrdersType } from './entities/order';
|
|
6
5
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
7
6
|
import { PartnertagType } from './entities/partnertag';
|
|
8
7
|
import { GraphqlApiProgramType, ProgramLevelOptionGroupType, SubscribedProgramType } from './entities/program';
|
|
@@ -124,7 +123,6 @@ export declare enum SelectDataField {
|
|
|
124
123
|
END_CUSTOMER = "endCustomer",
|
|
125
124
|
LICENSE_BUDGET = "licenseBudget",
|
|
126
125
|
ORGANIZATION_UNIT = "organizationUnit",
|
|
127
|
-
ORDER = "order",
|
|
128
126
|
PARTNER = "partner",
|
|
129
127
|
PARTNERTAG = "partnertag",
|
|
130
128
|
PROGRAM = "program",
|
|
@@ -154,7 +152,6 @@ export declare type SelectAllResponseDataType = {
|
|
|
154
152
|
[SelectDataField.END_CUSTOMER]?: EndCustomerType[];
|
|
155
153
|
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType[];
|
|
156
154
|
[SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType[];
|
|
157
|
-
[SelectDataField.ORDER]?: OrdersType[];
|
|
158
155
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
159
156
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
160
157
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
|
|
@@ -233,7 +230,6 @@ export declare type SelectOneResponseDataType = {
|
|
|
233
230
|
[SelectDataField.END_CUSTOMER]?: EndCustomerType;
|
|
234
231
|
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType;
|
|
235
232
|
[SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType;
|
|
236
|
-
[SelectDataField.ORDER]?: OrdersType;
|
|
237
233
|
[SelectDataField.PARTNER]?: PartnerType;
|
|
238
234
|
[SelectDataField.PARTNERTAG]?: PartnertagType;
|
|
239
235
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType;
|
|
@@ -97,7 +97,6 @@ var SelectDataField;
|
|
|
97
97
|
SelectDataField["END_CUSTOMER"] = "endCustomer";
|
|
98
98
|
SelectDataField["LICENSE_BUDGET"] = "licenseBudget";
|
|
99
99
|
SelectDataField["ORGANIZATION_UNIT"] = "organizationUnit";
|
|
100
|
-
SelectDataField["ORDER"] = "order";
|
|
101
100
|
SelectDataField["PARTNER"] = "partner";
|
|
102
101
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
103
102
|
SelectDataField["PROGRAM"] = "program";
|
|
@@ -143,7 +143,6 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
143
143
|
[SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
|
|
144
144
|
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
|
|
145
145
|
[SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitSchema;
|
|
146
|
-
[SelectDataField.ORDER]?: OrdersSchema;
|
|
147
146
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
148
147
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
149
148
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
|
|
@@ -12,6 +12,7 @@ export declare enum OrderFields {
|
|
|
12
12
|
COLUMN_PARTNER = "partner",
|
|
13
13
|
COLUMN_CUSTOMER = "customer",
|
|
14
14
|
COLUMN_PONUMBER = "ponumber",
|
|
15
|
+
COLUMN_END_CUSTOMER_PO_NUMBER = "endCustomerPONumber",
|
|
15
16
|
COLUMN_PRODUCTS = "products",
|
|
16
17
|
COLUMN_EXTRA_INFORMATION = "extraInformation",
|
|
17
18
|
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef"
|
|
@@ -25,6 +26,7 @@ export declare type OrderType = {
|
|
|
25
26
|
[OrderFields.COLUMN_PARTNER]?: OrderPartnerType;
|
|
26
27
|
[OrderFields.COLUMN_CUSTOMER]: ReferenceLinkType;
|
|
27
28
|
[OrderFields.COLUMN_PONUMBER]: string;
|
|
29
|
+
[OrderFields.COLUMN_END_CUSTOMER_PO_NUMBER]: string;
|
|
28
30
|
[OrderFields.COLUMN_PRODUCTS]: Array<OrderProductsType>;
|
|
29
31
|
[OrderFields.COLUMN_EXTRA_INFORMATION]?: AdditionalExtraInformationType;
|
|
30
32
|
[OrderFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
@@ -40,6 +42,7 @@ export declare class Order extends AbstractEntity<OrderType> {
|
|
|
40
42
|
get partner(): OrderPartner | undefined;
|
|
41
43
|
get customer(): ReferenceLink;
|
|
42
44
|
get ponumber(): string;
|
|
45
|
+
get endCustomerPONumber(): string;
|
|
43
46
|
get products(): Array<OrderProduct>;
|
|
44
47
|
get extraInformation(): AdditionalExtraInformation | undefined;
|
|
45
48
|
get organizationUnitRef(): string | undefined;
|
|
@@ -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, _Order_organizationUnitRef;
|
|
13
|
+
var _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_endCustomerPONumber, _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");
|
|
@@ -28,6 +28,7 @@ var OrderFields;
|
|
|
28
28
|
OrderFields["COLUMN_PARTNER"] = "partner";
|
|
29
29
|
OrderFields["COLUMN_CUSTOMER"] = "customer";
|
|
30
30
|
OrderFields["COLUMN_PONUMBER"] = "ponumber";
|
|
31
|
+
OrderFields["COLUMN_END_CUSTOMER_PO_NUMBER"] = "endCustomerPONumber";
|
|
31
32
|
OrderFields["COLUMN_PRODUCTS"] = "products";
|
|
32
33
|
OrderFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
|
|
33
34
|
OrderFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
@@ -43,6 +44,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
43
44
|
_Order_partner.set(this, void 0);
|
|
44
45
|
_Order_customer.set(this, void 0);
|
|
45
46
|
_Order_ponumber.set(this, void 0);
|
|
47
|
+
_Order_endCustomerPONumber.set(this, void 0);
|
|
46
48
|
_Order_products.set(this, void 0);
|
|
47
49
|
_Order_extraInformation.set(this, void 0);
|
|
48
50
|
_Order_organizationUnitRef.set(this, void 0);
|
|
@@ -56,6 +58,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
56
58
|
: undefined, "f");
|
|
57
59
|
__classPrivateFieldSet(this, _Order_customer, new referenceLink_1.ReferenceLink(getOrderDataInput[OrderFields.COLUMN_CUSTOMER]), "f");
|
|
58
60
|
__classPrivateFieldSet(this, _Order_ponumber, getOrderDataInput[OrderFields.COLUMN_PONUMBER], "f");
|
|
61
|
+
__classPrivateFieldSet(this, _Order_endCustomerPONumber, getOrderDataInput[OrderFields.COLUMN_END_CUSTOMER_PO_NUMBER], "f");
|
|
59
62
|
__classPrivateFieldSet(this, _Order_products, getOrderDataInput[OrderFields.COLUMN_PRODUCTS].map((order) => new products_1.OrderProduct(order)), "f");
|
|
60
63
|
__classPrivateFieldSet(this, _Order_extraInformation, getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION]
|
|
61
64
|
? new shared_1.AdditionalExtraInformation(getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION])
|
|
@@ -86,6 +89,9 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
86
89
|
get ponumber() {
|
|
87
90
|
return __classPrivateFieldGet(this, _Order_ponumber, "f");
|
|
88
91
|
}
|
|
92
|
+
get endCustomerPONumber() {
|
|
93
|
+
return __classPrivateFieldGet(this, _Order_endCustomerPONumber, "f");
|
|
94
|
+
}
|
|
89
95
|
get products() {
|
|
90
96
|
return __classPrivateFieldGet(this, _Order_products, "f");
|
|
91
97
|
}
|
|
@@ -106,6 +112,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
106
112
|
[OrderFields.COLUMN_PARTNER]: (_a = this.partner) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
107
113
|
[OrderFields.COLUMN_CUSTOMER]: this.customer.toJSON(),
|
|
108
114
|
[OrderFields.COLUMN_PONUMBER]: this.ponumber,
|
|
115
|
+
[OrderFields.COLUMN_END_CUSTOMER_PO_NUMBER]: this.endCustomerPONumber,
|
|
109
116
|
[OrderFields.COLUMN_PRODUCTS]: this.products.map((order) => order.toJSON()),
|
|
110
117
|
[OrderFields.COLUMN_EXTRA_INFORMATION]: (_b = this.extraInformation) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
111
118
|
[OrderFields.COLUMN_ORGANIZATION_UNIT_REF]: this.organizationUnitRef,
|
|
@@ -113,5 +120,5 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
122
|
exports.Order = Order;
|
|
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();
|
|
123
|
+
_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_endCustomerPONumber = new WeakMap(), _Order_products = new WeakMap(), _Order_extraInformation = new WeakMap(), _Order_organizationUnitRef = new WeakMap();
|
|
117
124
|
//# sourceMappingURL=order.js.map
|
|
@@ -7,6 +7,7 @@ export declare enum CreateOrderInputFields {
|
|
|
7
7
|
COLUMN_CUSTOMER = "customer",
|
|
8
8
|
COLUMN_REFERENCE = "reference",
|
|
9
9
|
COLUMN_PO_NUMBER = "ponumber",
|
|
10
|
+
COLUMN_END_CUSTOMER_PO_NUMBER = "endCustomerPONumber",
|
|
10
11
|
COLUMN_PRODUCTS = "products",
|
|
11
12
|
COLUMN_ARROW_SPHERE_PRICE_BAND_SKU = "arrowSpherePriceBandSku",
|
|
12
13
|
COLUMN_SKU = "sku",
|
|
@@ -58,6 +59,7 @@ export declare type CreateOrderInputType = {
|
|
|
58
59
|
[CreateOrderInputFields.COLUMN_CUSTOMER]: {
|
|
59
60
|
[CreateOrderInputFields.COLUMN_REFERENCE]: string;
|
|
60
61
|
[CreateOrderInputFields.COLUMN_PO_NUMBER]?: string;
|
|
62
|
+
[CreateOrderInputFields.COLUMN_END_CUSTOMER_PO_NUMBER]?: string;
|
|
61
63
|
};
|
|
62
64
|
[CreateOrderInputFields.COLUMN_SCENARIO]?: scenarioType;
|
|
63
65
|
[CreateOrderInputFields.COLUMN_SCHEDULE_DATE]?: string;
|
|
@@ -125,15 +127,7 @@ export declare enum UpdateOrderInputFields {
|
|
|
125
127
|
}
|
|
126
128
|
export declare type UpdateOrderInputType = {
|
|
127
129
|
[UpdateOrderInputFields.COLUMN_PO_NUMBER]: string;
|
|
128
|
-
[UpdateOrderInputFields.COLUMN_END_CUSTOMER_PO_NUMBER]
|
|
129
|
-
};
|
|
130
|
-
export declare enum UpdateStaffContributorsOrderInputFields {
|
|
131
|
-
COLUMN_TYPE = "type",
|
|
132
|
-
COLUMN_CONTRIBUTOR_ID = "contributorId"
|
|
133
|
-
}
|
|
134
|
-
export declare type UpdateStaffContributorsOrderInputType = {
|
|
135
|
-
[UpdateStaffContributorsOrderInputFields.COLUMN_TYPE]: string;
|
|
136
|
-
[UpdateStaffContributorsOrderInputFields.COLUMN_CONTRIBUTOR_ID]?: string;
|
|
130
|
+
[UpdateOrderInputFields.COLUMN_END_CUSTOMER_PO_NUMBER]: string;
|
|
137
131
|
};
|
|
138
132
|
export declare class OrdersClient extends AbstractRestfulClient {
|
|
139
133
|
/**
|
|
@@ -144,13 +138,4 @@ export declare class OrdersClient extends AbstractRestfulClient {
|
|
|
144
138
|
getListOrders(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
|
|
145
139
|
getOrder(orderReference: string, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
|
|
146
140
|
updateOrder(orderReference: string, payload: UpdateOrderInputType, parameters?: Parameters): Promise<GetResult<UpdateOrderResult>>;
|
|
147
|
-
archiveOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
148
|
-
cancelOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
149
|
-
partnerValidateOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
150
|
-
rejectGradedOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
151
|
-
rejectOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
152
|
-
resubmitOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
153
|
-
updateStaffContributorsOrder(orderReference: string, payload: UpdateStaffContributorsOrderInputType, parameters?: Parameters): Promise<void>;
|
|
154
|
-
validateGradedOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
155
|
-
validateOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
156
141
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersClient = exports.
|
|
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");
|
|
@@ -11,6 +11,7 @@ var CreateOrderInputFields;
|
|
|
11
11
|
CreateOrderInputFields["COLUMN_CUSTOMER"] = "customer";
|
|
12
12
|
CreateOrderInputFields["COLUMN_REFERENCE"] = "reference";
|
|
13
13
|
CreateOrderInputFields["COLUMN_PO_NUMBER"] = "ponumber";
|
|
14
|
+
CreateOrderInputFields["COLUMN_END_CUSTOMER_PO_NUMBER"] = "endCustomerPONumber";
|
|
14
15
|
CreateOrderInputFields["COLUMN_PRODUCTS"] = "products";
|
|
15
16
|
CreateOrderInputFields["COLUMN_ARROW_SPHERE_PRICE_BAND_SKU"] = "arrowSpherePriceBandSku";
|
|
16
17
|
CreateOrderInputFields["COLUMN_SKU"] = "sku";
|
|
@@ -59,11 +60,6 @@ var UpdateOrderInputFields;
|
|
|
59
60
|
UpdateOrderInputFields["COLUMN_PO_NUMBER"] = "PO_number";
|
|
60
61
|
UpdateOrderInputFields["COLUMN_END_CUSTOMER_PO_NUMBER"] = "end_customer_PO_number";
|
|
61
62
|
})(UpdateOrderInputFields = exports.UpdateOrderInputFields || (exports.UpdateOrderInputFields = {}));
|
|
62
|
-
var UpdateStaffContributorsOrderInputFields;
|
|
63
|
-
(function (UpdateStaffContributorsOrderInputFields) {
|
|
64
|
-
UpdateStaffContributorsOrderInputFields["COLUMN_TYPE"] = "type";
|
|
65
|
-
UpdateStaffContributorsOrderInputFields["COLUMN_CONTRIBUTOR_ID"] = "contributorId";
|
|
66
|
-
})(UpdateStaffContributorsOrderInputFields = exports.UpdateStaffContributorsOrderInputFields || (exports.UpdateStaffContributorsOrderInputFields = {}));
|
|
67
63
|
class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
68
64
|
constructor() {
|
|
69
65
|
super(...arguments);
|
|
@@ -88,42 +84,6 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
88
84
|
this.path = `/${orderReference}`;
|
|
89
85
|
return new getResult_1.GetResult(updateOrderResult_1.UpdateOrderResult, await this.patch(payload, parameters));
|
|
90
86
|
}
|
|
91
|
-
async archiveOrder(orderReference, parameters = {}) {
|
|
92
|
-
this.path = `/${orderReference}/archive`;
|
|
93
|
-
await this.patch(undefined, parameters);
|
|
94
|
-
}
|
|
95
|
-
async cancelOrder(orderReference, parameters = {}) {
|
|
96
|
-
this.path = `/${orderReference}/cancel`;
|
|
97
|
-
await this.patch(undefined, parameters);
|
|
98
|
-
}
|
|
99
|
-
async partnerValidateOrder(orderReference, parameters = {}) {
|
|
100
|
-
this.path = `/${orderReference}/partnerValidate`;
|
|
101
|
-
await this.patch(undefined, parameters);
|
|
102
|
-
}
|
|
103
|
-
async rejectGradedOrder(orderReference, parameters = {}) {
|
|
104
|
-
this.path = `/${orderReference}/rejectGraded`;
|
|
105
|
-
await this.patch(undefined, parameters);
|
|
106
|
-
}
|
|
107
|
-
async rejectOrder(orderReference, parameters = {}) {
|
|
108
|
-
this.path = `/${orderReference}/reject`;
|
|
109
|
-
await this.patch(undefined, parameters);
|
|
110
|
-
}
|
|
111
|
-
async resubmitOrder(orderReference, parameters = {}) {
|
|
112
|
-
this.path = `/${orderReference}/resubmit`;
|
|
113
|
-
await this.patch(undefined, parameters);
|
|
114
|
-
}
|
|
115
|
-
async updateStaffContributorsOrder(orderReference, payload, parameters = {}) {
|
|
116
|
-
this.path = `/${orderReference}/staffContributors`;
|
|
117
|
-
await this.patch(payload, parameters);
|
|
118
|
-
}
|
|
119
|
-
async validateGradedOrder(orderReference, parameters = {}) {
|
|
120
|
-
this.path = `/${orderReference}/validateGraded`;
|
|
121
|
-
await this.patch(undefined, parameters);
|
|
122
|
-
}
|
|
123
|
-
async validateOrder(orderReference, parameters = {}) {
|
|
124
|
-
this.path = `/${orderReference}/validate`;
|
|
125
|
-
await this.patch(undefined, parameters);
|
|
126
|
-
}
|
|
127
87
|
}
|
|
128
88
|
exports.OrdersClient = OrdersClient;
|
|
129
89
|
//# sourceMappingURL=ordersClient.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.182.0-rc-
|
|
7
|
+
"version": "3.182.0-rc-cpe-2",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|