@arrowsphere/api-client 3.184.0-rc-bdj-3 → 3.184.0-rc-bdj-5
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.
|
@@ -137,6 +137,20 @@ export declare type UpdateContributorOrderInputType = {
|
|
|
137
137
|
[UpdateContributorOrderInputFields.COLUMN_TYPE]: string;
|
|
138
138
|
[UpdateContributorOrderInputFields.COLUMN_CONTRIBUTOR_ID]: number;
|
|
139
139
|
};
|
|
140
|
+
export declare enum UpdateAdditionalInformationItemOrderInputFields {
|
|
141
|
+
COLUMN_NAME = "name",
|
|
142
|
+
COLUMN_VALUE = "value"
|
|
143
|
+
}
|
|
144
|
+
export declare type UpdateAdditionalInformationItemOrderInputType = {
|
|
145
|
+
[UpdateAdditionalInformationItemOrderInputFields.COLUMN_NAME]: string;
|
|
146
|
+
[UpdateAdditionalInformationItemOrderInputFields.COLUMN_VALUE]: string;
|
|
147
|
+
};
|
|
148
|
+
export declare enum UpdateAdditionalInformationOrderInputFields {
|
|
149
|
+
COLUMN_DATA = "data"
|
|
150
|
+
}
|
|
151
|
+
export declare type UpdateAdditionalInformationOrderInputType = {
|
|
152
|
+
[UpdateAdditionalInformationOrderInputFields.COLUMN_DATA]: UpdateAdditionalInformationItemOrderInputType[];
|
|
153
|
+
};
|
|
140
154
|
export declare class OrdersClient extends AbstractRestfulClient {
|
|
141
155
|
/**
|
|
142
156
|
* The base path of the API
|
|
@@ -152,4 +166,5 @@ export declare class OrdersClient extends AbstractRestfulClient {
|
|
|
152
166
|
resubmitOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
153
167
|
validateOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
154
168
|
updateStaffContributorsOrder(orderReference: string, payload: UpdateContributorOrderInputType, parameters?: Parameters): Promise<void>;
|
|
169
|
+
updateAdditionalInformationOrder(orderReference: string, payload: UpdateAdditionalInformationOrderInputType, parameters?: Parameters): Promise<void>;
|
|
155
170
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersClient = exports.UpdateContributorOrderInputFields = exports.UpdateOrderInputFields = exports.scenarioType = exports.CreateOrderInputFields = void 0;
|
|
3
|
+
exports.OrdersClient = exports.UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields = exports.UpdateContributorOrderInputFields = 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");
|
|
@@ -65,6 +65,15 @@ var UpdateContributorOrderInputFields;
|
|
|
65
65
|
UpdateContributorOrderInputFields["COLUMN_TYPE"] = "type";
|
|
66
66
|
UpdateContributorOrderInputFields["COLUMN_CONTRIBUTOR_ID"] = "contributorId";
|
|
67
67
|
})(UpdateContributorOrderInputFields = exports.UpdateContributorOrderInputFields || (exports.UpdateContributorOrderInputFields = {}));
|
|
68
|
+
var UpdateAdditionalInformationItemOrderInputFields;
|
|
69
|
+
(function (UpdateAdditionalInformationItemOrderInputFields) {
|
|
70
|
+
UpdateAdditionalInformationItemOrderInputFields["COLUMN_NAME"] = "name";
|
|
71
|
+
UpdateAdditionalInformationItemOrderInputFields["COLUMN_VALUE"] = "value";
|
|
72
|
+
})(UpdateAdditionalInformationItemOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields || (exports.UpdateAdditionalInformationItemOrderInputFields = {}));
|
|
73
|
+
var UpdateAdditionalInformationOrderInputFields;
|
|
74
|
+
(function (UpdateAdditionalInformationOrderInputFields) {
|
|
75
|
+
UpdateAdditionalInformationOrderInputFields["COLUMN_DATA"] = "data";
|
|
76
|
+
})(UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields || (exports.UpdateAdditionalInformationOrderInputFields = {}));
|
|
68
77
|
class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
69
78
|
constructor() {
|
|
70
79
|
super(...arguments);
|
|
@@ -113,6 +122,10 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
113
122
|
this.path = `/${orderReference}/contributor`;
|
|
114
123
|
await this.patch(payload, parameters);
|
|
115
124
|
}
|
|
125
|
+
async updateAdditionalInformationOrder(orderReference, payload, parameters = {}) {
|
|
126
|
+
this.path = `/${orderReference}/additionalInformation`;
|
|
127
|
+
await this.patch(payload, parameters);
|
|
128
|
+
}
|
|
116
129
|
}
|
|
117
130
|
exports.OrdersClient = OrdersClient;
|
|
118
131
|
//# 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.184.0-rc-bdj-
|
|
7
|
+
"version": "3.184.0-rc-bdj-5",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|