@arrowsphere/api-client 3.184.0-rc-bdj-3 → 3.184.0-rc-bdj-4
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,14 @@ export declare type UpdateContributorOrderInputType = {
|
|
|
137
137
|
[UpdateContributorOrderInputFields.COLUMN_TYPE]: string;
|
|
138
138
|
[UpdateContributorOrderInputFields.COLUMN_CONTRIBUTOR_ID]: number;
|
|
139
139
|
};
|
|
140
|
+
export declare enum UpdateAdditionalInformationOrderInputFields {
|
|
141
|
+
COLUMN_NAME = "name",
|
|
142
|
+
COLUMN_VALUE = "value"
|
|
143
|
+
}
|
|
144
|
+
export declare type UpdateAdditionalInformationOrderInputType = {
|
|
145
|
+
[UpdateContributorOrderInputFields.COLUMN_TYPE]: string;
|
|
146
|
+
[UpdateContributorOrderInputFields.COLUMN_CONTRIBUTOR_ID]: number;
|
|
147
|
+
};
|
|
140
148
|
export declare class OrdersClient extends AbstractRestfulClient {
|
|
141
149
|
/**
|
|
142
150
|
* The base path of the API
|
|
@@ -152,4 +160,5 @@ export declare class OrdersClient extends AbstractRestfulClient {
|
|
|
152
160
|
resubmitOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
153
161
|
validateOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
154
162
|
updateStaffContributorsOrder(orderReference: string, payload: UpdateContributorOrderInputType, parameters?: Parameters): Promise<void>;
|
|
163
|
+
updateAdditionalInformationOrder(orderReference: string, payload: UpdateAdditionalInformationOrderInputType[], parameters?: Parameters): Promise<void>;
|
|
155
164
|
}
|
|
@@ -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.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,11 @@ var UpdateContributorOrderInputFields;
|
|
|
65
65
|
UpdateContributorOrderInputFields["COLUMN_TYPE"] = "type";
|
|
66
66
|
UpdateContributorOrderInputFields["COLUMN_CONTRIBUTOR_ID"] = "contributorId";
|
|
67
67
|
})(UpdateContributorOrderInputFields = exports.UpdateContributorOrderInputFields || (exports.UpdateContributorOrderInputFields = {}));
|
|
68
|
+
var UpdateAdditionalInformationOrderInputFields;
|
|
69
|
+
(function (UpdateAdditionalInformationOrderInputFields) {
|
|
70
|
+
UpdateAdditionalInformationOrderInputFields["COLUMN_NAME"] = "name";
|
|
71
|
+
UpdateAdditionalInformationOrderInputFields["COLUMN_VALUE"] = "value";
|
|
72
|
+
})(UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields || (exports.UpdateAdditionalInformationOrderInputFields = {}));
|
|
68
73
|
class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
69
74
|
constructor() {
|
|
70
75
|
super(...arguments);
|
|
@@ -113,6 +118,10 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
113
118
|
this.path = `/${orderReference}/contributor`;
|
|
114
119
|
await this.patch(payload, parameters);
|
|
115
120
|
}
|
|
121
|
+
async updateAdditionalInformationOrder(orderReference, payload, parameters = {}) {
|
|
122
|
+
this.path = `/${orderReference}/additionalInformation`;
|
|
123
|
+
await this.patch(payload, parameters);
|
|
124
|
+
}
|
|
116
125
|
}
|
|
117
126
|
exports.OrdersClient = OrdersClient;
|
|
118
127
|
//# 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-4",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|