starta.apiclient 1.37.975 → 1.37.997
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.
|
@@ -20,7 +20,7 @@ export default class Orders {
|
|
|
20
20
|
scheduleId: any;
|
|
21
21
|
}): Promise<import("../../types").StartaResponse>;
|
|
22
22
|
get(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
23
|
-
add(organizationLogin: any, { product: { type, id, executor }, starttime, endtime, customerId, scheduleId, status, repeatSettings }: {
|
|
23
|
+
add(organizationLogin: any, { product: { type, id, executor }, starttime, endtime, customerId, price, duration, scheduleId, status, repeatSettings }: {
|
|
24
24
|
product: {
|
|
25
25
|
type: any;
|
|
26
26
|
id: any;
|
|
@@ -29,11 +29,13 @@ export default class Orders {
|
|
|
29
29
|
starttime?: any;
|
|
30
30
|
endtime?: any;
|
|
31
31
|
customerId: any;
|
|
32
|
+
price?: any;
|
|
33
|
+
duration?: any;
|
|
32
34
|
scheduleId?: any;
|
|
33
35
|
status?: OrderStatus;
|
|
34
36
|
repeatSettings?: OrderRepeatSettings;
|
|
35
37
|
}): Promise<import("../../types").StartaResponse>;
|
|
36
|
-
update(organizationLogin: any, orderId: any, { product: { type, id, executor }, starttime, endtime, customerId, scheduleId, status, repeatSettings }: {
|
|
38
|
+
update(organizationLogin: any, orderId: any, { product: { type, id, executor }, starttime, endtime, customerId, price, duration, scheduleId, status, repeatSettings }: {
|
|
37
39
|
product: {
|
|
38
40
|
type: any;
|
|
39
41
|
id: any;
|
|
@@ -42,6 +44,8 @@ export default class Orders {
|
|
|
42
44
|
starttime?: any;
|
|
43
45
|
endtime?: any;
|
|
44
46
|
customerId: any;
|
|
47
|
+
price?: any;
|
|
48
|
+
duration?: any;
|
|
45
49
|
scheduleId?: any;
|
|
46
50
|
status?: OrderStatus;
|
|
47
51
|
repeatSettings?: OrderRepeatSettings;
|
|
@@ -37,7 +37,7 @@ var Orders = /** @class */ (function () {
|
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
39
|
Orders.prototype.add = function (organizationLogin, _a) {
|
|
40
|
-
var _b = _a.product, type = _b.type, id = _b.id, executor = _b.executor, starttime = _a.starttime, endtime = _a.endtime, customerId = _a.customerId, scheduleId = _a.scheduleId, _c = _a.status, status = _c === void 0 ? 'new' : _c, repeatSettings = _a.repeatSettings;
|
|
40
|
+
var _b = _a.product, type = _b.type, id = _b.id, executor = _b.executor, starttime = _a.starttime, endtime = _a.endtime, customerId = _a.customerId, price = _a.price, duration = _a.duration, scheduleId = _a.scheduleId, _c = _a.status, status = _c === void 0 ? 'new' : _c, repeatSettings = _a.repeatSettings;
|
|
41
41
|
return this._requestRunner.performRequest({
|
|
42
42
|
url: "accounts/".concat(organizationLogin, "/orders"),
|
|
43
43
|
method: 'POST',
|
|
@@ -46,6 +46,8 @@ var Orders = /** @class */ (function () {
|
|
|
46
46
|
starttime: starttime,
|
|
47
47
|
endtime: endtime,
|
|
48
48
|
customerId: customerId,
|
|
49
|
+
price: price,
|
|
50
|
+
duration: duration,
|
|
49
51
|
scheduleId: scheduleId,
|
|
50
52
|
status: status,
|
|
51
53
|
repeatSettings: repeatSettings,
|
|
@@ -53,7 +55,7 @@ var Orders = /** @class */ (function () {
|
|
|
53
55
|
});
|
|
54
56
|
};
|
|
55
57
|
Orders.prototype.update = function (organizationLogin, orderId, _a) {
|
|
56
|
-
var _b = _a.product, type = _b.type, id = _b.id, executor = _b.executor, starttime = _a.starttime, endtime = _a.endtime, customerId = _a.customerId, scheduleId = _a.scheduleId, status = _a.status, repeatSettings = _a.repeatSettings;
|
|
58
|
+
var _b = _a.product, type = _b.type, id = _b.id, executor = _b.executor, starttime = _a.starttime, endtime = _a.endtime, customerId = _a.customerId, price = _a.price, duration = _a.duration, scheduleId = _a.scheduleId, status = _a.status, repeatSettings = _a.repeatSettings;
|
|
57
59
|
return this._requestRunner.performRequest({
|
|
58
60
|
url: "accounts/".concat(organizationLogin, "/orders/").concat(orderId),
|
|
59
61
|
method: 'PUT',
|
|
@@ -62,6 +64,8 @@ var Orders = /** @class */ (function () {
|
|
|
62
64
|
starttime: starttime,
|
|
63
65
|
endtime: endtime,
|
|
64
66
|
customerId: customerId,
|
|
67
|
+
price: price,
|
|
68
|
+
duration: duration,
|
|
65
69
|
scheduleId: scheduleId,
|
|
66
70
|
status: status,
|
|
67
71
|
repeatSettings: repeatSettings,
|