@arrowsphere/api-client 3.181.0 → 3.182.0-rc-bdj-1

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.
@@ -120,10 +120,20 @@ export declare type CreateOrderProductType = {
120
120
  [CreateOrderInputFields.COLUMN_EAVS]?: Record<string, string>;
121
121
  };
122
122
  export declare enum UpdateOrderInputFields {
123
- COLUMN_PO_NUMBER = "PO_number"
123
+ COLUMN_PO_NUMBER = "PO_number",
124
+ COLUMN_END_CUSTOMER_PO_NUMBER = "end_customer_PO_number"
124
125
  }
125
126
  export declare type UpdateOrderInputType = {
126
127
  [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;
127
137
  };
128
138
  export declare class OrdersClient extends AbstractRestfulClient {
129
139
  /**
@@ -134,4 +144,13 @@ export declare class OrdersClient extends AbstractRestfulClient {
134
144
  getListOrders(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
135
145
  getOrder(orderReference: string, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
136
146
  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>;
137
156
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrdersClient = exports.UpdateOrderInputFields = exports.scenarioType = exports.CreateOrderInputFields = void 0;
3
+ exports.OrdersClient = exports.UpdateStaffContributorsOrderInputFields = 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");
@@ -57,7 +57,13 @@ var scenarioType;
57
57
  var UpdateOrderInputFields;
58
58
  (function (UpdateOrderInputFields) {
59
59
  UpdateOrderInputFields["COLUMN_PO_NUMBER"] = "PO_number";
60
+ UpdateOrderInputFields["COLUMN_END_CUSTOMER_PO_NUMBER"] = "end_customer_PO_number";
60
61
  })(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 = {}));
61
67
  class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
62
68
  constructor() {
63
69
  super(...arguments);
@@ -82,6 +88,42 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
82
88
  this.path = `/${orderReference}`;
83
89
  return new getResult_1.GetResult(updateOrderResult_1.UpdateOrderResult, await this.patch(payload, parameters));
84
90
  }
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
+ }
85
127
  }
86
128
  exports.OrdersClient = OrdersClient;
87
129
  //# 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.181.0",
7
+ "version": "3.182.0-rc-bdj-1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",