@arrowsphere/api-client 3.182.0-rc-bdj-5 → 3.182.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 CHANGED
@@ -3,6 +3,11 @@
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.182.0] - 2025.03.21
7
+
8
+ ### Added
9
+ - [order] add end customer po number property in create/update/get orders
10
+
6
11
  ## [3.181.0] - 2025.03.14
7
12
 
8
13
  ### Updated
@@ -2,11 +2,8 @@ export * from './types/graphqlApiQueries';
2
2
  export * from './types/graphqlApiSchemas';
3
3
  export * from './types/entities/contact';
4
4
  export * from './types/entities/company';
5
- export * from './types/entities/contributor';
6
5
  export * from './types/entities/country';
7
6
  export * from './types/entities/currency';
8
- export * from './types/entities/disclaimer';
9
- export * from './types/entities/eav';
10
7
  export * from './types/entities/licenseBudget';
11
8
  export * from './types/entities/order';
12
9
  export * from './types/entities/organizationUnit';
@@ -18,11 +18,8 @@ __exportStar(require("./types/graphqlApiQueries"), exports);
18
18
  __exportStar(require("./types/graphqlApiSchemas"), exports);
19
19
  __exportStar(require("./types/entities/contact"), exports);
20
20
  __exportStar(require("./types/entities/company"), exports);
21
- __exportStar(require("./types/entities/contributor"), exports);
22
21
  __exportStar(require("./types/entities/country"), exports);
23
22
  __exportStar(require("./types/entities/currency"), exports);
24
- __exportStar(require("./types/entities/disclaimer"), exports);
25
- __exportStar(require("./types/entities/eav"), exports);
26
23
  __exportStar(require("./types/entities/licenseBudget"), exports);
27
24
  __exportStar(require("./types/entities/order"), exports);
28
25
  __exportStar(require("./types/entities/organizationUnit"), exports);
@@ -1,48 +1,12 @@
1
- import { ArrowCompanyType, EndCustomerType, PartnerType } from './company';
2
- import { ContactsType } from './contact';
3
- import { GraphqlApiContributorType } from './contributor';
4
- import { GraphqlApiEavType } from './eav';
5
- import { GraphqlApiProgramType } from './program';
6
- import { ItemData, QuoteType } from './quote';
7
1
  import { SpecialPriceRateType } from './specialPriceRate';
8
2
  import { GraphqlApiUnitType } from './unit';
9
- import { UserType } from './user';
10
3
  export declare type OrdersType = {
11
4
  id?: number;
12
- arrowCompany?: ArrowCompanyType;
13
- arrowContact?: ContactsType;
14
- commitmentAmountTotal?: number;
15
- contributor?: GraphqlApiContributorType;
16
- createdAt?: string;
17
- eavs?: GraphqlApiEavType[];
18
- endCustomer?: EndCustomerType;
19
- endCustomerContact?: ContactsType;
20
- endCustomerPoNumber?: string;
21
- fulfilledAt?: string;
22
5
  items?: OrderItemsType[];
23
- partner?: PartnerType;
24
- partnerContact?: ContactsType;
25
- partnerPoNumber?: string;
26
- poNumber?: string;
27
- quote?: QuoteType;
28
- reference?: string;
29
- scheduledAt?: string;
30
- status?: GraphqlApiOrderStatusType;
31
- totalRecurringPrice?: number;
32
- updatedAt?: string;
33
- uuid?: number;
34
6
  };
35
7
  export declare type OrderItemsType = {
36
8
  id?: number;
37
- itemData?: ItemData;
38
- migratedFrom?: GraphqlApiOrderLinkType[];
39
- migratedTo?: GraphqlApiOrderLinkType[];
40
- name?: string;
41
- order?: OrdersType;
42
9
  priceRates?: SpecialPriceRateType[];
43
- program?: GraphqlApiProgramType;
44
- reference?: string;
45
- status?: GraphqlApiOrderStatusType;
46
10
  };
47
11
  export declare type GraphqlApiOrderSoftwareType = {
48
12
  id?: number;
@@ -50,20 +14,3 @@ export declare type GraphqlApiOrderSoftwareType = {
50
14
  totalAmount?: number;
51
15
  unit?: GraphqlApiUnitType;
52
16
  };
53
- export declare type GraphqlApiOrderStatusType = {
54
- id?: number;
55
- name?: string;
56
- };
57
- export declare type GraphqlApiOrderLinkType = {
58
- from?: OrderItemsType;
59
- migratedAt?: string;
60
- to?: OrderItemsType;
61
- };
62
- export declare type GraphqlApiOrderHistoryType = {
63
- id?: number;
64
- action?: string;
65
- createdAt?: string;
66
- description?: string;
67
- order?: OrdersType;
68
- user?: UserType;
69
- };
@@ -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
- vendorReference?: string;
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 { GraphqlApiOrderHistoryType, 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,8 +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
- ORDER_HISTORY = "orderHistory",
129
126
  PARTNER = "partner",
130
127
  PARTNERTAG = "partnertag",
131
128
  PROGRAM = "program",
@@ -155,8 +152,6 @@ export declare type SelectAllResponseDataType = {
155
152
  [SelectDataField.END_CUSTOMER]?: EndCustomerType[];
156
153
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType[];
157
154
  [SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType[];
158
- [SelectDataField.ORDER]?: OrdersType[];
159
- [SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType[];
160
155
  [SelectDataField.PARTNER]?: PartnerType[];
161
156
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
162
157
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
@@ -235,8 +230,6 @@ export declare type SelectOneResponseDataType = {
235
230
  [SelectDataField.END_CUSTOMER]?: EndCustomerType;
236
231
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType;
237
232
  [SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType;
238
- [SelectDataField.ORDER]?: OrdersType;
239
- [SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType;
240
233
  [SelectDataField.PARTNER]?: PartnerType;
241
234
  [SelectDataField.PARTNERTAG]?: PartnertagType;
242
235
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType;
@@ -97,8 +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
- SelectDataField["ORDER_HISTORY"] = "orderHistory";
102
100
  SelectDataField["PARTNER"] = "partner";
103
101
  SelectDataField["PARTNERTAG"] = "partnertag";
104
102
  SelectDataField["PROGRAM"] = "program";
@@ -7,7 +7,7 @@ import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from
7
7
  import { ContactsType } from './entities/contact';
8
8
  import { SubscriptionType } from './entities/subscription';
9
9
  import { SpecialPriceRateType } from './entities/specialPriceRate';
10
- import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, OrderItemsType, OrdersType } from './entities/order';
10
+ import { OrderItemsType, OrdersType } from './entities/order';
11
11
  import { GraphqlApiProgramType, ProgramBenefitType, ProgramLevelType, ProgramRequirementType, ProgramLevelOptionGroupType, ProgramLevelOptionType, SubscribedProgramType, SubscriptionExtraFieldType } from './entities/program';
12
12
  import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
13
13
  import { UserHistoryType, UserType } from './entities/user';
@@ -17,7 +17,6 @@ import { ItemData, QuoteItemType, QuoteType } from './entities/quote';
17
17
  import { QuoteVersion } from './entities/quoteVersion';
18
18
  import { Comment } from './entities/comment';
19
19
  import { GraphqlApiReportItemType, GraphqlApiReportStatusType, GraphqlApiReportType } from './entities/report';
20
- import { GraphqlApiEavType } from './entities/eav';
21
20
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
22
21
  declare type MissingFieldsOfCompanySchema = {
23
22
  contacts?: ContactsSchema;
@@ -43,12 +42,9 @@ declare type MissingFieldsOfEndCustomerSchema = {
43
42
  country?: CountrySchema;
44
43
  };
45
44
  declare type MissingFieldsOfOrderItemSchema = {
46
- migratedFrom?: GraphqlApiOrderLinkSchema;
47
- migratedTo?: GraphqlApiOrderLinkSchema;
48
45
  priceRates?: SpecialPriceRateSchema;
49
46
  };
50
47
  declare type MissingFieldsOfOrdersSchema = {
51
- eavs?: GraphqlApiEavSchema;
52
48
  items?: OrderItemsSchema;
53
49
  };
54
50
  declare type MissingFieldsOfContactSchema = {
@@ -105,9 +101,6 @@ export declare type ContinentSchema = Schema<ContinentType, boolean>;
105
101
  export declare type CountrySchema = Merge<Schema<CountryType, boolean>, MissingFieldsOfCountrySchema>;
106
102
  export declare type CurrencySchema = Schema<CurrencyType, boolean>;
107
103
  export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
108
- export declare type GraphqlApiEavSchema = Schema<GraphqlApiEavType, boolean>;
109
- export declare type GraphqlApiOrderHistorySchema = Schema<GraphqlApiOrderHistoryType, boolean>;
110
- export declare type GraphqlApiOrderLinkSchema = Schema<GraphqlApiOrderLinkType, boolean>;
111
104
  export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
112
105
  export declare type BaseCompanySchema = Schema<BaseCompanyType, boolean>;
113
106
  export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
@@ -150,8 +143,6 @@ export declare type SelectAllResponseDataSchema = {
150
143
  [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
151
144
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
152
145
  [SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitSchema;
153
- [SelectDataField.ORDER]?: OrdersSchema;
154
- [SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType;
155
146
  [SelectDataField.PARTNER]?: PartnerSchema;
156
147
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
157
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"
@@ -24,7 +25,8 @@ export declare type OrderType = {
24
25
  [OrderFields.COLUMN_ORDER_REFERENCE]: string;
25
26
  [OrderFields.COLUMN_PARTNER]?: OrderPartnerType;
26
27
  [OrderFields.COLUMN_CUSTOMER]: ReferenceLinkType;
27
- [OrderFields.COLUMN_PONUMBER]: string;
28
+ [OrderFields.COLUMN_PONUMBER]: string | null;
29
+ [OrderFields.COLUMN_END_CUSTOMER_PO_NUMBER]?: string | null;
28
30
  [OrderFields.COLUMN_PRODUCTS]: Array<OrderProductsType>;
29
31
  [OrderFields.COLUMN_EXTRA_INFORMATION]?: AdditionalExtraInformationType;
30
32
  [OrderFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
@@ -39,7 +41,8 @@ export declare class Order extends AbstractEntity<OrderType> {
39
41
  get order_reference(): string;
40
42
  get partner(): OrderPartner | undefined;
41
43
  get customer(): ReferenceLink;
42
- get ponumber(): string;
44
+ get ponumber(): string | null;
45
+ get endCustomerPONumber(): string | null | undefined;
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
@@ -1,6 +1,5 @@
1
1
  export * from './entities/dataListOrders';
2
2
  export * from './entities/orders/order';
3
- export * from './entities/orders/updateOrderResult';
4
3
  export * from './entities/orders/partner/partner';
5
4
  export * from './entities/orders/products/identifiers/vendor/identifiersVendor';
6
5
  export * from './entities/orders/products/identifiers/productIdentifiers';
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities/dataListOrders"), exports);
18
18
  __exportStar(require("./entities/orders/order"), exports);
19
- __exportStar(require("./entities/orders/updateOrderResult"), exports);
20
19
  __exportStar(require("./entities/orders/partner/partner"), exports);
21
20
  __exportStar(require("./entities/orders/products/identifiers/vendor/identifiersVendor"), exports);
22
21
  __exportStar(require("./entities/orders/products/identifiers/productIdentifiers"), exports);
@@ -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]?: string;
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.UpdateStaffContributorsOrderInputFields = exports.UpdateOrderInputFields = 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");
@@ -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-bdj-5",
7
+ "version": "3.182.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -1,17 +0,0 @@
1
- import { WorkgroupType } from './workgroup';
2
- export declare type GraphqlApiContributorType = {
3
- id?: number;
4
- icst?: GraphqlApiStaffType;
5
- isr?: GraphqlApiStaffType;
6
- fcst?: GraphqlApiStaffType;
7
- fsr?: GraphqlApiStaffType;
8
- sor?: GraphqlApiStaffType;
9
- };
10
- export declare type GraphqlApiStaffType = {
11
- id?: number;
12
- firstname?: string;
13
- internalId?: string;
14
- lastname?: string;
15
- locked?: boolean;
16
- workgroup?: WorkgroupType;
17
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=contributor.js.map
@@ -1,8 +0,0 @@
1
- import { GraphqlApiProgramType } from './program';
2
- import { WorkgroupType } from './workgroup';
3
- export declare type GraphqlApiDisclaimerType = {
4
- id?: number;
5
- content?: string;
6
- program?: GraphqlApiProgramType;
7
- workgroup?: WorkgroupType;
8
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=disclaimer.js.map
@@ -1,7 +0,0 @@
1
- export declare type GraphqlApiEavType = {
2
- id?: number;
3
- name?: string;
4
- resourceId?: number;
5
- type?: string;
6
- value?: string;
7
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=eav.js.map