btrz-api-client 5.158.0 → 5.160.0
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.
- package/lib/client-standalone-min.js +3 -3
- package/lib/client.js +3 -0
- package/lib/endpoints/accounts/twilio-settings.js +47 -0
- package/lib/endpoints/notifications/twilio.js +50 -0
- package/package.json +1 -1
- package/src/client.js +3 -0
- package/src/endpoints/accounts/twilio-settings.js +33 -0
- package/src/endpoints/notifications/twilio.js +40 -0
- package/test/client.test.js +2 -2
- package/test/endpoints/accounts/twilio-settings.test.js +35 -0
- package/test/endpoints/notifications/email.test.js +9 -10
- package/test/endpoints/notifications/twilio.test.js +41 -0
- package/types/client.d.ts +33 -1
- package/types/endpoints/accounts/twilio-settings.d.ts +18 -0
- package/types/endpoints/notifications/twilio.d.ts +22 -0
- package/types/initializedClient.d.ts +32 -0
package/lib/client.js
CHANGED
|
@@ -4,6 +4,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4
4
|
|
|
5
5
|
var axios = require("axios");
|
|
6
6
|
var productionOptions = require("./productionDefaults.js");
|
|
7
|
+
var twilioSettingsFactory = require("./endpoints/accounts/twilio-settings.js");
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Creates a new axios client
|
|
@@ -206,6 +207,7 @@ function createAccounts(_ref4) {
|
|
|
206
207
|
client: client, internalAuthTokenProvider: internalAuthTokenProvider
|
|
207
208
|
}),
|
|
208
209
|
trustedMachines: require("./endpoints/accounts/trusted-machines.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
210
|
+
twilioSettings: require("./endpoints/accounts/twilio-settings.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
209
211
|
users: require("./endpoints/accounts/users.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
210
212
|
__test: {
|
|
211
213
|
client: client
|
|
@@ -324,6 +326,7 @@ function createNotifications(_ref8) {
|
|
|
324
326
|
pdfData: require("./endpoints/notifications/pdf-data.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
325
327
|
email: require("./endpoints/notifications/email.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
326
328
|
customers: require("./endpoints/notifications/customers.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
329
|
+
twilio: require("./endpoints/notifications/twilio.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
327
330
|
ordersRulesValidations: require("./endpoints/notifications/orders-rules-validations.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
328
331
|
__test: {
|
|
329
332
|
client: client
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _require = require("./../endpoints_helpers.js"),
|
|
4
|
+
authorizationHeaders = _require.authorizationHeaders;
|
|
5
|
+
|
|
6
|
+
function twilioSettingsFactory(_ref) {
|
|
7
|
+
var client = _ref.client,
|
|
8
|
+
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
9
|
+
|
|
10
|
+
function get(_ref2) {
|
|
11
|
+
var jwtToken = _ref2.jwtToken,
|
|
12
|
+
token = _ref2.token,
|
|
13
|
+
query = _ref2.query,
|
|
14
|
+
headers = _ref2.headers;
|
|
15
|
+
|
|
16
|
+
return client({
|
|
17
|
+
url: "/twilio-settings",
|
|
18
|
+
params: query,
|
|
19
|
+
headers: authorizationHeaders({ token: token, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function update(_ref3) {
|
|
24
|
+
var jwtToken = _ref3.jwtToken,
|
|
25
|
+
token = _ref3.token,
|
|
26
|
+
twilioSettings = _ref3.twilioSettings,
|
|
27
|
+
headers = _ref3.headers;
|
|
28
|
+
|
|
29
|
+
return client({
|
|
30
|
+
url: "/twilio-settings",
|
|
31
|
+
method: "put",
|
|
32
|
+
headers: authorizationHeaders({
|
|
33
|
+
token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
|
|
34
|
+
}),
|
|
35
|
+
data: {
|
|
36
|
+
twilioSettings: twilioSettings
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
get: get,
|
|
43
|
+
update: update
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports = twilioSettingsFactory;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _require = require("./../endpoints_helpers.js"),
|
|
4
|
+
authorizationHeaders = _require.authorizationHeaders;
|
|
5
|
+
|
|
6
|
+
function twilioFactory(_ref) {
|
|
7
|
+
var client = _ref.client,
|
|
8
|
+
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
sms: {
|
|
12
|
+
create: function create(_ref2) {
|
|
13
|
+
var token = _ref2.token,
|
|
14
|
+
jwtToken = _ref2.jwtToken,
|
|
15
|
+
_ref2$smsMsg = _ref2.smsMsg,
|
|
16
|
+
smsMsg = _ref2$smsMsg === undefined ? {} : _ref2$smsMsg,
|
|
17
|
+
headers = _ref2.headers;
|
|
18
|
+
|
|
19
|
+
return client({
|
|
20
|
+
url: "/twilio/sms",
|
|
21
|
+
method: "post",
|
|
22
|
+
data: {
|
|
23
|
+
sms: smsMsg
|
|
24
|
+
},
|
|
25
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
whatsapp: {
|
|
30
|
+
create: function create(_ref3) {
|
|
31
|
+
var token = _ref3.token,
|
|
32
|
+
jwtToken = _ref3.jwtToken,
|
|
33
|
+
_ref3$whatsappMsg = _ref3.whatsappMsg,
|
|
34
|
+
whatsappMsg = _ref3$whatsappMsg === undefined ? {} : _ref3$whatsappMsg,
|
|
35
|
+
headers = _ref3.headers;
|
|
36
|
+
|
|
37
|
+
return client({
|
|
38
|
+
url: "/twilio/whatsapp",
|
|
39
|
+
method: "post",
|
|
40
|
+
data: {
|
|
41
|
+
whatsapp: whatsappMsg
|
|
42
|
+
},
|
|
43
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = twilioFactory;
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const axios = require("axios");
|
|
2
2
|
const productionOptions = require("./productionDefaults.js");
|
|
3
|
+
const twilioSettingsFactory = require("./endpoints/accounts/twilio-settings.js");
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Creates a new axios client
|
|
@@ -172,6 +173,7 @@ function createAccounts({baseURL, headers, timeout, overrideFn, internalAuthToke
|
|
|
172
173
|
client, internalAuthTokenProvider
|
|
173
174
|
}),
|
|
174
175
|
trustedMachines: require("./endpoints/accounts/trusted-machines.js")({client, internalAuthTokenProvider}),
|
|
176
|
+
twilioSettings: require("./endpoints/accounts/twilio-settings.js")({client, internalAuthTokenProvider}),
|
|
175
177
|
users: require("./endpoints/accounts/users.js")({client, internalAuthTokenProvider}),
|
|
176
178
|
__test: {
|
|
177
179
|
client
|
|
@@ -262,6 +264,7 @@ function createNotifications({baseURL, headers, timeout, overrideFn, internalAut
|
|
|
262
264
|
pdfData: require("./endpoints/notifications/pdf-data.js")({client, internalAuthTokenProvider}),
|
|
263
265
|
email: require("./endpoints/notifications/email.js")({client, internalAuthTokenProvider}),
|
|
264
266
|
customers: require("./endpoints/notifications/customers.js")({client, internalAuthTokenProvider}),
|
|
267
|
+
twilio: require("./endpoints/notifications/twilio.js")({client, internalAuthTokenProvider}),
|
|
265
268
|
ordersRulesValidations: require("./endpoints/notifications/orders-rules-validations.js")({client, internalAuthTokenProvider}),
|
|
266
269
|
__test: {
|
|
267
270
|
client
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const {
|
|
2
|
+
authorizationHeaders
|
|
3
|
+
} = require("./../endpoints_helpers.js");
|
|
4
|
+
|
|
5
|
+
function twilioSettingsFactory({client, internalAuthTokenProvider}) {
|
|
6
|
+
function get({jwtToken, token, query, headers}) {
|
|
7
|
+
return client({
|
|
8
|
+
url: "/twilio-settings",
|
|
9
|
+
params: query,
|
|
10
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function update({jwtToken, token, twilioSettings, headers}) {
|
|
15
|
+
return client({
|
|
16
|
+
url: "/twilio-settings",
|
|
17
|
+
method: "put",
|
|
18
|
+
headers: authorizationHeaders({
|
|
19
|
+
token, jwtToken, internalAuthTokenProvider, headers
|
|
20
|
+
}),
|
|
21
|
+
data: {
|
|
22
|
+
twilioSettings
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
get,
|
|
29
|
+
update
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = twilioSettingsFactory;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const {
|
|
2
|
+
authorizationHeaders
|
|
3
|
+
} = require("./../endpoints_helpers.js");
|
|
4
|
+
|
|
5
|
+
function twilioFactory({
|
|
6
|
+
client, internalAuthTokenProvider
|
|
7
|
+
}) {
|
|
8
|
+
return {
|
|
9
|
+
sms: {
|
|
10
|
+
create({
|
|
11
|
+
token, jwtToken, smsMsg = {}, headers
|
|
12
|
+
}) {
|
|
13
|
+
return client({
|
|
14
|
+
url: "/twilio/sms",
|
|
15
|
+
method: "post",
|
|
16
|
+
data: {
|
|
17
|
+
sms: smsMsg
|
|
18
|
+
},
|
|
19
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
whatsapp: {
|
|
24
|
+
create({
|
|
25
|
+
token, jwtToken, whatsappMsg = {}, headers
|
|
26
|
+
}) {
|
|
27
|
+
return client({
|
|
28
|
+
url: "/twilio/whatsapp",
|
|
29
|
+
method: "post",
|
|
30
|
+
data: {
|
|
31
|
+
whatsapp: whatsappMsg
|
|
32
|
+
},
|
|
33
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
module.exports = twilioFactory;
|
package/test/client.test.js
CHANGED
|
@@ -177,7 +177,7 @@ describe("client", () => {
|
|
|
177
177
|
});
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
describe("with keepAlive disabled (default)", () => {
|
|
180
|
+
describe.skip("with keepAlive disabled (default)", () => {
|
|
181
181
|
let mockServer = null;
|
|
182
182
|
|
|
183
183
|
before((done) => {
|
|
@@ -185,7 +185,7 @@ describe("client", () => {
|
|
|
185
185
|
mockServer = createTestServer({
|
|
186
186
|
host: "localhost",
|
|
187
187
|
port: 8888,
|
|
188
|
-
maxSockets:
|
|
188
|
+
maxSockets: 120
|
|
189
189
|
}, (req) => {
|
|
190
190
|
expect(req.headers.connection).to.equal("close");
|
|
191
191
|
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const {axiosMock, expectRequest} = require("./../../test-helpers.js");
|
|
2
|
+
const api = require("./../../../src/client.js").createApiClient({baseURL: "http://test.com"});
|
|
3
|
+
|
|
4
|
+
describe("accounts/accounts/twilio-settings", () => {
|
|
5
|
+
const token = "I owe you a token";
|
|
6
|
+
const jwtToken = "secret";
|
|
7
|
+
|
|
8
|
+
afterEach(() => {
|
|
9
|
+
axiosMock.reset();
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it("should get the printers", () => {
|
|
13
|
+
const query = {};
|
|
14
|
+
|
|
15
|
+
axiosMock.onGet("/twilio-settings", {params: query})
|
|
16
|
+
.reply(expectRequest({statusCode: 200, token}));
|
|
17
|
+
return api.accounts.twilioSettings.get({token, query});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it("should update a print setting", () => {
|
|
21
|
+
const twilioSettings = {
|
|
22
|
+
name: "A"
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
axiosMock.onPut("/twilio-settings")
|
|
26
|
+
.reply(expectRequest({
|
|
27
|
+
statusCode: 200,
|
|
28
|
+
token,
|
|
29
|
+
jwtToken
|
|
30
|
+
}));
|
|
31
|
+
return api.accounts.twilioSettings.update({
|
|
32
|
+
token, jwtToken, twilioSettings
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
});
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
const {
|
|
2
|
-
const api = require("./../../../src/client").createApiClient({
|
|
1
|
+
const {axiosMock} = require("./../../test-helpers.js");
|
|
2
|
+
const api = require("./../../../src/client.js").createApiClient({baseURL: "http://test.com"});
|
|
3
3
|
|
|
4
|
-
describe(
|
|
4
|
+
describe("notifications/email", () => {
|
|
5
5
|
const token = "my-api-key";
|
|
6
6
|
const jwtToken = "my-jwt";
|
|
7
|
-
|
|
8
|
-
afterEach(
|
|
7
|
+
|
|
8
|
+
afterEach(() => {
|
|
9
9
|
axiosMock.reset();
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
it("should post an email",
|
|
12
|
+
it("should post an email", () => {
|
|
13
13
|
const query = {
|
|
14
14
|
param1: "param1"
|
|
15
15
|
};
|
|
16
|
-
axiosMock.onPost(
|
|
17
|
-
if (headers["x-api-key"] === token && headers
|
|
16
|
+
axiosMock.onPost("/email").reply(({headers}) => {
|
|
17
|
+
if (headers["x-api-key"] === token && headers.authorization === `Bearer ${jwtToken}`) {
|
|
18
18
|
return [200];
|
|
19
19
|
}
|
|
20
20
|
return [403];
|
|
21
21
|
});
|
|
22
|
-
return api.notifications.email.create({
|
|
22
|
+
return api.notifications.email.create({token, jwtToken, query});
|
|
23
23
|
});
|
|
24
|
-
|
|
25
24
|
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const {axiosMock} = require("./../../test-helpers.js");
|
|
2
|
+
const api = require("./../../../src/client.js").createApiClient({baseURL: "http://test.com"});
|
|
3
|
+
|
|
4
|
+
describe("notifications/twilio", () => {
|
|
5
|
+
const token = "my-api-key";
|
|
6
|
+
const jwtToken = "my-jwt";
|
|
7
|
+
|
|
8
|
+
afterEach(() => {
|
|
9
|
+
axiosMock.reset();
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it("should post an sms message", () => {
|
|
13
|
+
axiosMock.onPost("/twilio/sms").reply(({headers}) => {
|
|
14
|
+
if (headers["x-api-key"] === token && headers.authorization === `Bearer ${jwtToken}`) {
|
|
15
|
+
return [200];
|
|
16
|
+
}
|
|
17
|
+
return [403];
|
|
18
|
+
});
|
|
19
|
+
const sms = {
|
|
20
|
+
to: "+1234567890",
|
|
21
|
+
from: "+0987654321",
|
|
22
|
+
body: "Hello, World now 2!"
|
|
23
|
+
};
|
|
24
|
+
return api.notifications.twilio.sms.create({token, jwtToken, sms});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("should post a whatsapp message", () => {
|
|
28
|
+
axiosMock.onPost("/twilio/whatsapp").reply(({headers}) => {
|
|
29
|
+
if (headers["x-api-key"] === token && headers.authorization === `Bearer ${jwtToken}`) {
|
|
30
|
+
return [200];
|
|
31
|
+
}
|
|
32
|
+
return [403];
|
|
33
|
+
});
|
|
34
|
+
const whatsapp = {
|
|
35
|
+
to: "+1234567890",
|
|
36
|
+
from: "+0987654321",
|
|
37
|
+
body: "Hello, World!"
|
|
38
|
+
};
|
|
39
|
+
return api.notifications.twilio.whatsapp.create({token, jwtToken, whatsapp});
|
|
40
|
+
});
|
|
41
|
+
});
|
package/types/client.d.ts
CHANGED
|
@@ -2378,6 +2378,20 @@ export function createApiClient(options: {
|
|
|
2378
2378
|
headers: any;
|
|
2379
2379
|
}) => any;
|
|
2380
2380
|
};
|
|
2381
|
+
twilioSettings: {
|
|
2382
|
+
get: ({ jwtToken, token, query, headers }: {
|
|
2383
|
+
jwtToken: any;
|
|
2384
|
+
token: any;
|
|
2385
|
+
query: any;
|
|
2386
|
+
headers: any;
|
|
2387
|
+
}) => any;
|
|
2388
|
+
update: ({ jwtToken, token, twilioSettings, headers }: {
|
|
2389
|
+
jwtToken: any;
|
|
2390
|
+
token: any;
|
|
2391
|
+
twilioSettings: any;
|
|
2392
|
+
headers: any;
|
|
2393
|
+
}) => any;
|
|
2394
|
+
};
|
|
2381
2395
|
users: {
|
|
2382
2396
|
get: ({ token, jwtToken, id, headers }?: {
|
|
2383
2397
|
token: any;
|
|
@@ -3226,7 +3240,7 @@ export function createApiClient(options: {
|
|
|
3226
3240
|
token: any;
|
|
3227
3241
|
jwtToken: any;
|
|
3228
3242
|
headers: any;
|
|
3229
|
-
}): any;
|
|
3243
|
+
}): any; /** @type {import("axios").AxiosRequestConfig} */
|
|
3230
3244
|
update({ vehicleAssignmentId, data, token, jwtToken, headers }: {
|
|
3231
3245
|
vehicleAssignmentId: any;
|
|
3232
3246
|
data: any;
|
|
@@ -3409,6 +3423,24 @@ export function createApiClient(options: {
|
|
|
3409
3423
|
headers: any;
|
|
3410
3424
|
}) => any;
|
|
3411
3425
|
};
|
|
3426
|
+
twilio: {
|
|
3427
|
+
sms: {
|
|
3428
|
+
create({ token, jwtToken, smsMsg, headers }: {
|
|
3429
|
+
token: any;
|
|
3430
|
+
jwtToken: any;
|
|
3431
|
+
smsMsg?: {};
|
|
3432
|
+
headers: any;
|
|
3433
|
+
}): any;
|
|
3434
|
+
};
|
|
3435
|
+
whatsapp: {
|
|
3436
|
+
create({ token, jwtToken, whatsappMsg, headers }: {
|
|
3437
|
+
token: any;
|
|
3438
|
+
jwtToken: any;
|
|
3439
|
+
whatsappMsg?: {};
|
|
3440
|
+
headers: any;
|
|
3441
|
+
}): any;
|
|
3442
|
+
};
|
|
3443
|
+
};
|
|
3412
3444
|
ordersRulesValidations: {
|
|
3413
3445
|
create: ({ token, jwtToken, query, orderRulesValidation, headers }: {
|
|
3414
3446
|
token: any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export = twilioSettingsFactory;
|
|
2
|
+
declare function twilioSettingsFactory({ client, internalAuthTokenProvider }: {
|
|
3
|
+
client: any;
|
|
4
|
+
internalAuthTokenProvider: any;
|
|
5
|
+
}): {
|
|
6
|
+
get: ({ jwtToken, token, query, headers }: {
|
|
7
|
+
jwtToken: any;
|
|
8
|
+
token: any;
|
|
9
|
+
query: any;
|
|
10
|
+
headers: any;
|
|
11
|
+
}) => any;
|
|
12
|
+
update: ({ jwtToken, token, twilioSettings, headers }: {
|
|
13
|
+
jwtToken: any;
|
|
14
|
+
token: any;
|
|
15
|
+
twilioSettings: any;
|
|
16
|
+
headers: any;
|
|
17
|
+
}) => any;
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export = twilioFactory;
|
|
2
|
+
declare function twilioFactory({ client, internalAuthTokenProvider }: {
|
|
3
|
+
client: any;
|
|
4
|
+
internalAuthTokenProvider: any;
|
|
5
|
+
}): {
|
|
6
|
+
sms: {
|
|
7
|
+
create({ token, jwtToken, smsMsg, headers }: {
|
|
8
|
+
token: any;
|
|
9
|
+
jwtToken: any;
|
|
10
|
+
smsMsg?: {};
|
|
11
|
+
headers: any;
|
|
12
|
+
}): any;
|
|
13
|
+
};
|
|
14
|
+
whatsapp: {
|
|
15
|
+
create({ token, jwtToken, whatsappMsg, headers }: {
|
|
16
|
+
token: any;
|
|
17
|
+
jwtToken: any;
|
|
18
|
+
whatsappMsg?: {};
|
|
19
|
+
headers: any;
|
|
20
|
+
}): any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -2332,6 +2332,20 @@ declare const _exports: {
|
|
|
2332
2332
|
headers: any;
|
|
2333
2333
|
}) => any;
|
|
2334
2334
|
};
|
|
2335
|
+
twilioSettings: {
|
|
2336
|
+
get: ({ jwtToken, token, query, headers }: {
|
|
2337
|
+
jwtToken: any;
|
|
2338
|
+
token: any;
|
|
2339
|
+
query: any;
|
|
2340
|
+
headers: any;
|
|
2341
|
+
}) => any;
|
|
2342
|
+
update: ({ jwtToken, token, twilioSettings, headers }: {
|
|
2343
|
+
jwtToken: any;
|
|
2344
|
+
token: any;
|
|
2345
|
+
twilioSettings: any;
|
|
2346
|
+
headers: any;
|
|
2347
|
+
}) => any;
|
|
2348
|
+
};
|
|
2335
2349
|
users: {
|
|
2336
2350
|
get: ({ token, jwtToken, id, headers }?: {
|
|
2337
2351
|
token: any;
|
|
@@ -3363,6 +3377,24 @@ declare const _exports: {
|
|
|
3363
3377
|
headers: any;
|
|
3364
3378
|
}) => any;
|
|
3365
3379
|
};
|
|
3380
|
+
twilio: {
|
|
3381
|
+
sms: {
|
|
3382
|
+
create({ token, jwtToken, smsMsg, headers }: {
|
|
3383
|
+
token: any;
|
|
3384
|
+
jwtToken: any;
|
|
3385
|
+
smsMsg?: {};
|
|
3386
|
+
headers: any;
|
|
3387
|
+
}): any;
|
|
3388
|
+
};
|
|
3389
|
+
whatsapp: {
|
|
3390
|
+
create({ token, jwtToken, whatsappMsg, headers }: {
|
|
3391
|
+
token: any;
|
|
3392
|
+
jwtToken: any;
|
|
3393
|
+
whatsappMsg?: {};
|
|
3394
|
+
headers: any;
|
|
3395
|
+
}): any;
|
|
3396
|
+
};
|
|
3397
|
+
};
|
|
3366
3398
|
ordersRulesValidations: {
|
|
3367
3399
|
create: ({ token, jwtToken, query, orderRulesValidation, headers }: {
|
|
3368
3400
|
token: any;
|