starta.apiclient 1.35.885 → 1.35.887
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.
|
@@ -13,14 +13,15 @@ export default class Orders {
|
|
|
13
13
|
executor?: string;
|
|
14
14
|
};
|
|
15
15
|
}): Promise<import("../../types").StartaResponse>;
|
|
16
|
-
isTimeSlotAvailable(organizationLogin: any, { executor, starttime, endtime, skipOrderId }: {
|
|
16
|
+
isTimeSlotAvailable(organizationLogin: any, { executor, starttime, endtime, skipOrderId, scheduleId }: {
|
|
17
17
|
executor: any;
|
|
18
18
|
starttime: any;
|
|
19
19
|
endtime: any;
|
|
20
20
|
skipOrderId: any;
|
|
21
|
+
scheduleId: any;
|
|
21
22
|
}): Promise<import("../../types").StartaResponse>;
|
|
22
23
|
get(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
23
|
-
add(organizationLogin: any, { product: { type, id, executor }, starttime, endtime, customerId, status }: {
|
|
24
|
+
add(organizationLogin: any, { product: { type, id, executor }, starttime, endtime, customerId, scheduleId, status }: {
|
|
24
25
|
product: {
|
|
25
26
|
type: any;
|
|
26
27
|
id: any;
|
|
@@ -29,9 +30,10 @@ export default class Orders {
|
|
|
29
30
|
starttime: any;
|
|
30
31
|
endtime?: any;
|
|
31
32
|
customerId: any;
|
|
33
|
+
scheduleId: any;
|
|
32
34
|
status?: OrderStatus;
|
|
33
35
|
}): Promise<import("../../types").StartaResponse>;
|
|
34
|
-
update(organizationLogin: any, orderId: any, { product: { type, id, executor }, starttime, endtime, customerId, status }: {
|
|
36
|
+
update(organizationLogin: any, orderId: any, { product: { type, id, executor }, starttime, endtime, customerId, scheduleId, status }: {
|
|
35
37
|
product: {
|
|
36
38
|
type: any;
|
|
37
39
|
id: any;
|
|
@@ -40,6 +42,7 @@ export default class Orders {
|
|
|
40
42
|
starttime: any;
|
|
41
43
|
endtime?: any;
|
|
42
44
|
customerId: any;
|
|
45
|
+
scheduleId: any;
|
|
43
46
|
status?: OrderStatus;
|
|
44
47
|
}): Promise<import("../../types").StartaResponse>;
|
|
45
48
|
delete(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
@@ -18,13 +18,14 @@ var Orders = /** @class */ (function () {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
Orders.prototype.isTimeSlotAvailable = function (organizationLogin, _a) {
|
|
21
|
-
var executor = _a.executor, starttime = _a.starttime, endtime = _a.endtime, skipOrderId = _a.skipOrderId;
|
|
21
|
+
var executor = _a.executor, starttime = _a.starttime, endtime = _a.endtime, skipOrderId = _a.skipOrderId, scheduleId = _a.scheduleId;
|
|
22
22
|
return this._requestRunner.performRequest({
|
|
23
23
|
url: "accounts/".concat(organizationLogin, "/orders/is-time-slot-available").concat((0, _helpers_1.buildQuery)({
|
|
24
24
|
executor: executor,
|
|
25
25
|
starttime: starttime,
|
|
26
26
|
endtime: endtime,
|
|
27
27
|
skipOrderId: skipOrderId,
|
|
28
|
+
scheduleId: scheduleId,
|
|
28
29
|
})),
|
|
29
30
|
method: 'GET',
|
|
30
31
|
});
|
|
@@ -36,7 +37,7 @@ var Orders = /** @class */ (function () {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
Orders.prototype.add = function (organizationLogin, _a) {
|
|
39
|
-
var _b = _a.product, type = _b.type, id = _b.id, executor = _b.executor, starttime = _a.starttime, endtime = _a.endtime, customerId = _a.customerId, _c = _a.status, status = _c === void 0 ? 'new' : _c;
|
|
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;
|
|
40
41
|
return this._requestRunner.performRequest({
|
|
41
42
|
url: "accounts/".concat(organizationLogin, "/orders"),
|
|
42
43
|
method: 'POST',
|
|
@@ -45,12 +46,13 @@ var Orders = /** @class */ (function () {
|
|
|
45
46
|
starttime: starttime,
|
|
46
47
|
endtime: endtime,
|
|
47
48
|
customerId: customerId,
|
|
49
|
+
scheduleId: scheduleId,
|
|
48
50
|
status: status,
|
|
49
51
|
},
|
|
50
52
|
});
|
|
51
53
|
};
|
|
52
54
|
Orders.prototype.update = function (organizationLogin, orderId, _a) {
|
|
53
|
-
var _b = _a.product, type = _b.type, id = _b.id, executor = _b.executor, starttime = _a.starttime, endtime = _a.endtime, customerId = _a.customerId, status = _a.status;
|
|
55
|
+
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;
|
|
54
56
|
return this._requestRunner.performRequest({
|
|
55
57
|
url: "accounts/".concat(organizationLogin, "/orders/").concat(orderId),
|
|
56
58
|
method: 'PUT',
|
|
@@ -59,6 +61,7 @@ var Orders = /** @class */ (function () {
|
|
|
59
61
|
starttime: starttime,
|
|
60
62
|
endtime: endtime,
|
|
61
63
|
customerId: customerId,
|
|
64
|
+
scheduleId: scheduleId,
|
|
62
65
|
status: status,
|
|
63
66
|
},
|
|
64
67
|
});
|
|
@@ -7,9 +7,10 @@ export default class Public {
|
|
|
7
7
|
getOrder(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
8
8
|
cancelOrder(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
9
9
|
getOrders(organizationLogin: any): Promise<import("../../types").StartaResponse>;
|
|
10
|
-
createOrder(organizationLogin: any, { customer, product, starttime }: {
|
|
10
|
+
createOrder(organizationLogin: any, { customer, product, starttime, scheduleId }: {
|
|
11
11
|
customer?: any;
|
|
12
12
|
product: any;
|
|
13
13
|
starttime: any;
|
|
14
|
+
scheduleId: any;
|
|
14
15
|
}): Promise<import("../../types").StartaResponse>;
|
|
15
16
|
}
|
|
@@ -36,11 +36,11 @@ var Public = /** @class */ (function () {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
Public.prototype.createOrder = function (organizationLogin, _a) {
|
|
39
|
-
var customer = _a.customer, product = _a.product, starttime = _a.starttime;
|
|
39
|
+
var customer = _a.customer, product = _a.product, starttime = _a.starttime, scheduleId = _a.scheduleId;
|
|
40
40
|
return this._requestRunner.performRequest({
|
|
41
41
|
url: "accounts/".concat(organizationLogin, "/public/orders"),
|
|
42
42
|
method: 'POST',
|
|
43
|
-
body: { customer: customer, product: product, starttime: starttime },
|
|
43
|
+
body: { customer: customer, product: product, starttime: starttime, scheduleId: scheduleId },
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
return Public;
|