starta.apiclient 1.37.2345 → 1.37.2373
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StartaRequestRunner } from '../types';
|
|
2
|
+
export default class Agenda {
|
|
3
|
+
private _requestRunner;
|
|
4
|
+
constructor(requestRunner: StartaRequestRunner);
|
|
5
|
+
updateOrdersStatus(): Promise<import("../types").StartaResponse>;
|
|
6
|
+
notifyCustomers(): Promise<import("../types").StartaResponse>;
|
|
7
|
+
ordersNotifyOrgs(): Promise<import("../types").StartaResponse>;
|
|
8
|
+
ordersAutocancel(): Promise<import("../types").StartaResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var Agenda = /** @class */ (function () {
|
|
4
|
+
function Agenda(requestRunner) {
|
|
5
|
+
this._requestRunner = requestRunner;
|
|
6
|
+
}
|
|
7
|
+
Agenda.prototype.updateOrdersStatus = function () {
|
|
8
|
+
return this._requestRunner.performRequest({
|
|
9
|
+
url: 'agenda/orders-status-next',
|
|
10
|
+
method: 'PUT',
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Agenda.prototype.notifyCustomers = function () {
|
|
14
|
+
return this._requestRunner.performRequest({
|
|
15
|
+
url: 'agenda/orders-customers-notify',
|
|
16
|
+
method: 'PUT',
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
Agenda.prototype.ordersNotifyOrgs = function () {
|
|
20
|
+
return this._requestRunner.performRequest({
|
|
21
|
+
url: 'agenda/orders-organizations-notify',
|
|
22
|
+
method: 'PUT',
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
Agenda.prototype.ordersAutocancel = function () {
|
|
26
|
+
return this._requestRunner.performRequest({
|
|
27
|
+
url: 'agenda/orders-autocancel',
|
|
28
|
+
method: 'PUT',
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
return Agenda;
|
|
32
|
+
}());
|
|
33
|
+
exports.default = Agenda;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import ServiceCategories from './serviceCategories';
|
|
|
15
15
|
import LogItems from './logItems';
|
|
16
16
|
import MarketingCampaigns from './marketingCampaigns';
|
|
17
17
|
import Links from './links';
|
|
18
|
+
import Agenda from './agenda';
|
|
18
19
|
export default class StartaApiClient {
|
|
19
20
|
private _requestRunner;
|
|
20
21
|
constructor(requestRunner: StartaRequestRunner);
|
|
@@ -36,4 +37,5 @@ export default class StartaApiClient {
|
|
|
36
37
|
get chats(): Chats;
|
|
37
38
|
get marketingCampaigns(): MarketingCampaigns;
|
|
38
39
|
get links(): Links;
|
|
40
|
+
get agenda(): Agenda;
|
|
39
41
|
}
|
package/lib/services/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var serviceCategories_1 = require("./serviceCategories");
|
|
|
16
16
|
var logItems_1 = require("./logItems");
|
|
17
17
|
var marketingCampaigns_1 = require("./marketingCampaigns");
|
|
18
18
|
var links_1 = require("./links");
|
|
19
|
+
var agenda_1 = require("./agenda");
|
|
19
20
|
var StartaApiClient = /** @class */ (function () {
|
|
20
21
|
function StartaApiClient(requestRunner) {
|
|
21
22
|
this._requestRunner = requestRunner;
|
|
@@ -145,6 +146,13 @@ var StartaApiClient = /** @class */ (function () {
|
|
|
145
146
|
enumerable: false,
|
|
146
147
|
configurable: true
|
|
147
148
|
});
|
|
149
|
+
Object.defineProperty(StartaApiClient.prototype, "agenda", {
|
|
150
|
+
get: function () {
|
|
151
|
+
return new agenda_1.default(this._requestRunner);
|
|
152
|
+
},
|
|
153
|
+
enumerable: false,
|
|
154
|
+
configurable: true
|
|
155
|
+
});
|
|
148
156
|
return StartaApiClient;
|
|
149
157
|
}());
|
|
150
158
|
exports.default = StartaApiClient;
|
package/lib/services/system.d.ts
CHANGED
package/lib/services/system.js
CHANGED
|
@@ -40,18 +40,6 @@ var EmailConfirmations = /** @class */ (function () {
|
|
|
40
40
|
method: 'GET',
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
EmailConfirmations.prototype.updateOrdersStatus = function () {
|
|
44
|
-
return this._requestRunner.performRequest({
|
|
45
|
-
url: "orders/status",
|
|
46
|
-
method: 'PUT',
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
EmailConfirmations.prototype.notifyCustomers = function () {
|
|
50
|
-
return this._requestRunner.performRequest({
|
|
51
|
-
url: "customers/notifications",
|
|
52
|
-
method: 'PUT',
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
43
|
return EmailConfirmations;
|
|
56
44
|
}());
|
|
57
45
|
exports.default = EmailConfirmations;
|