teleleo 0.1.0 → 0.2.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/CHANGELOG.md +20 -0
- package/README.md +53 -2
- package/api.md +116 -112
- package/dist/core.d.ts +5 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/errors.d.ts +11 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +11 -3
- package/dist/errors.js.map +1 -1
- package/dist/resources/call-scenarios.d.ts +12 -0
- package/dist/resources/call-scenarios.d.ts.map +1 -1
- package/dist/resources/call-scenarios.js +12 -0
- package/dist/resources/call-scenarios.js.map +1 -1
- package/dist/resources/calls.d.ts +22 -2
- package/dist/resources/calls.d.ts.map +1 -1
- package/dist/resources/calls.js +25 -1
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/contact-groups.d.ts +10 -0
- package/dist/resources/contact-groups.d.ts.map +1 -1
- package/dist/resources/contact-groups.js +10 -0
- package/dist/resources/contact-groups.js.map +1 -1
- package/dist/resources/contacts.d.ts +12 -0
- package/dist/resources/contacts.d.ts.map +1 -1
- package/dist/resources/contacts.js +12 -0
- package/dist/resources/contacts.js.map +1 -1
- package/dist/resources/dongles.d.ts +46 -2
- package/dist/resources/dongles.d.ts.map +1 -1
- package/dist/resources/dongles.js +49 -1
- package/dist/resources/dongles.js.map +1 -1
- package/dist/resources/files.d.ts +11 -3
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +11 -3
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/follow-up-sms-settings.d.ts +12 -2
- package/dist/resources/follow-up-sms-settings.d.ts.map +1 -1
- package/dist/resources/follow-up-sms-settings.js +12 -2
- package/dist/resources/follow-up-sms-settings.js.map +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/mailings.d.ts +18 -4
- package/dist/resources/mailings.d.ts.map +1 -1
- package/dist/resources/mailings.js +18 -4
- package/dist/resources/mailings.js.map +1 -1
- package/dist/resources/public-vpn.d.ts +8 -0
- package/dist/resources/public-vpn.d.ts.map +1 -1
- package/dist/resources/public-vpn.js +8 -0
- package/dist/resources/public-vpn.js.map +1 -1
- package/dist/resources/redirections.d.ts +12 -2
- package/dist/resources/redirections.d.ts.map +1 -1
- package/dist/resources/redirections.js +12 -2
- package/dist/resources/redirections.js.map +1 -1
- package/dist/resources/sip-users.d.ts +4 -0
- package/dist/resources/sip-users.d.ts.map +1 -1
- package/dist/resources/sip-users.js +4 -0
- package/dist/resources/sip-users.js.map +1 -1
- package/dist/resources/sms.d.ts +23 -5
- package/dist/resources/sms.d.ts.map +1 -1
- package/dist/resources/sms.js +23 -5
- package/dist/resources/sms.js.map +1 -1
- package/dist/resources/socks-proxies.d.ts +10 -0
- package/dist/resources/socks-proxies.d.ts.map +1 -1
- package/dist/resources/socks-proxies.js +10 -0
- package/dist/resources/socks-proxies.js.map +1 -1
- package/dist/resources/ussd.d.ts +11 -1
- package/dist/resources/ussd.d.ts.map +1 -1
- package/dist/resources/ussd.js +11 -1
- package/dist/resources/ussd.js.map +1 -1
- package/dist/types/enums.d.ts +29 -8
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +24 -7
- package/dist/types/enums.js.map +1 -1
- package/dist/types/models.d.ts +102 -15
- package/dist/types/models.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/core.ts +6 -2
- package/src/errors.ts +11 -3
- package/src/resources/call-scenarios.ts +12 -0
- package/src/resources/calls.ts +27 -2
- package/src/resources/contact-groups.ts +10 -0
- package/src/resources/contacts.ts +12 -0
- package/src/resources/dongles.ts +51 -1
- package/src/resources/files.ts +11 -3
- package/src/resources/follow-up-sms-settings.ts +12 -2
- package/src/resources/index.ts +1 -1
- package/src/resources/mailings.ts +18 -4
- package/src/resources/public-vpn.ts +8 -0
- package/src/resources/redirections.ts +12 -2
- package/src/resources/sip-users.ts +4 -0
- package/src/resources/sms.ts +23 -5
- package/src/resources/socks-proxies.ts +10 -0
- package/src/resources/ussd.ts +11 -1
- package/src/types/enums.ts +30 -8
- package/src/types/models.ts +107 -14
- package/src/version.ts +1 -1
package/dist/resources/sms.js
CHANGED
|
@@ -6,11 +6,13 @@ export class SmsResource extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* Send SMS.
|
|
8
8
|
*
|
|
9
|
-
* Sends an SMS from the modem to a phone number, now or at scheduled_at. sms_status_id 1 (Sended) means the mobile network
|
|
9
|
+
* Sends an SMS from the modem to a phone number, now or at scheduled_at. sms_status_id 1 (Sended) means the modem took it for the mobile network, not that the handset received it: delivery is confirmed by 2 (from the delivery report), and 3 means it was not delivered or no report came within about 5 minutes.
|
|
10
10
|
*
|
|
11
11
|
* @param dongleId - ID of the dongle
|
|
12
12
|
*
|
|
13
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_ERROR_INVALID_RECEIVER_NUMBER, SMS_ERROR_IDENTIFIER_INVALID_CALLBACK_URL, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS.
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_ERROR_INVALID_RECEIVER_NUMBER, SMS_ERROR_IDENTIFIER_INVALID_CALLBACK_URL, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `sms.send`.
|
|
14
16
|
*/
|
|
15
17
|
send(dongleId, params, options) {
|
|
16
18
|
return this._client
|
|
@@ -32,7 +34,9 @@ export class SmsResource extends APIResource {
|
|
|
32
34
|
*
|
|
33
35
|
* @param dongleId - ID of the dongle
|
|
34
36
|
*
|
|
35
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS.
|
|
37
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
|
|
38
|
+
*
|
|
39
|
+
* Capability the role of an organization API key needs: `sms.send`.
|
|
36
40
|
*/
|
|
37
41
|
sendToContact(dongleId, params, options) {
|
|
38
42
|
return this._client
|
|
@@ -49,7 +53,9 @@ export class SmsResource extends APIResource {
|
|
|
49
53
|
*
|
|
50
54
|
* @param dongleId - ID of the dongle
|
|
51
55
|
*
|
|
52
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS.
|
|
56
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
|
|
57
|
+
*
|
|
58
|
+
* Capability the role of an organization API key needs: `sms.send`.
|
|
53
59
|
*/
|
|
54
60
|
reply(dongleId, params, options) {
|
|
55
61
|
return this._client
|
|
@@ -69,6 +75,8 @@ export class SmsResource extends APIResource {
|
|
|
69
75
|
* Conversation view: the last SMS per phone number of the modem, newest first.
|
|
70
76
|
*
|
|
71
77
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
78
|
+
*
|
|
79
|
+
* Capability the role of an organization API key needs: `sms.view`.
|
|
72
80
|
*/
|
|
73
81
|
listThreads(params = {}, options) {
|
|
74
82
|
return this._client.getPage('/sms/thread', {
|
|
@@ -83,6 +91,8 @@ export class SmsResource extends APIResource {
|
|
|
83
91
|
* SMS of all modems of the account, incoming and outgoing. Newest first by default (created_at descending, then the id descending).
|
|
84
92
|
*
|
|
85
93
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE.
|
|
94
|
+
*
|
|
95
|
+
* Capability the role of an organization API key needs: `sms.view`.
|
|
86
96
|
*/
|
|
87
97
|
list(params = {}, options) {
|
|
88
98
|
return this._client.getPage('/sms', {
|
|
@@ -110,6 +120,8 @@ export class SmsResource extends APIResource {
|
|
|
110
120
|
* @param dongleId - Identifier in the path
|
|
111
121
|
*
|
|
112
122
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE.
|
|
123
|
+
*
|
|
124
|
+
* Capability the role of an organization API key needs: `sms.view`.
|
|
113
125
|
*/
|
|
114
126
|
listForDongle(dongleId, params = {}, options) {
|
|
115
127
|
return this._client.getPage(`/dongle/${pathParam(dongleId)}/sms`, {
|
|
@@ -136,6 +148,8 @@ export class SmsResource extends APIResource {
|
|
|
136
148
|
* @param smsId - Identifier in the path
|
|
137
149
|
*
|
|
138
150
|
* Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND.
|
|
151
|
+
*
|
|
152
|
+
* Capability the role of an organization API key needs: `sms.view`.
|
|
139
153
|
*/
|
|
140
154
|
get(dongleId, smsId, options) {
|
|
141
155
|
return this._client
|
|
@@ -150,7 +164,9 @@ export class SmsResource extends APIResource {
|
|
|
150
164
|
* @param dongleId - Identifier in the path
|
|
151
165
|
* @param smsId - Identifier in the path
|
|
152
166
|
*
|
|
153
|
-
* Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND, DONGLE_ERROR_DONGLE_NOT_FOUND, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, PARSING_DATE_TIME_EXCEPTION.
|
|
167
|
+
* Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND, DONGLE_ERROR_DONGLE_NOT_FOUND, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, PARSING_DATE_TIME_EXCEPTION.
|
|
168
|
+
*
|
|
169
|
+
* Capability the role of an organization API key needs: `sms.send`.
|
|
154
170
|
*/
|
|
155
171
|
update(dongleId, smsId, params = {}, options) {
|
|
156
172
|
return this._client
|
|
@@ -175,6 +191,8 @@ export class SmsResource extends APIResource {
|
|
|
175
191
|
* @param smsId - Identifier in the path
|
|
176
192
|
*
|
|
177
193
|
* Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND.
|
|
194
|
+
*
|
|
195
|
+
* Capability the role of an organization API key needs: `sms.send`.
|
|
178
196
|
*/
|
|
179
197
|
delete(dongleId, smsId, options) {
|
|
180
198
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/resources/sms.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAW7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,6DAA6D;AAC7D,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/resources/sms.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAW7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,6DAA6D;AAC7D,MAAM,OAAO,WAAY,SAAQ,WA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AO;aAChB,OAAO,CAAC,QAAQ,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,QAAQ,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aACxF,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -11,6 +11,8 @@ export declare class SocksProxiesResource extends APIResource {
|
|
|
11
11
|
* SOCKS5 proxies of the modems of the account. Newest first by default (created_at descending, then the id descending).
|
|
12
12
|
*
|
|
13
13
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
14
16
|
*/
|
|
15
17
|
list(params?: SocksProxiesListParams, options?: RequestOptions): PagePromise<DongleSocksProxy>;
|
|
16
18
|
/**
|
|
@@ -19,6 +21,8 @@ export declare class SocksProxiesResource extends APIResource {
|
|
|
19
21
|
* One proxy per modem; the login is generated by the server. The proxy routes traffic through the mobile network of the modem.
|
|
20
22
|
*
|
|
21
23
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, PASSWORD_TOO_SHORT_EXCEPTION, ALLOWED_IPS_NOT_VALID_EXCEPTION, DONGLE_SOCKS_PROXY_ALREADY_EXISTS_EXCEPTION.
|
|
24
|
+
*
|
|
25
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
22
26
|
*/
|
|
23
27
|
create(params: SocksProxiesCreateParams, options?: RequestOptions): Promise<DongleSocksProxy>;
|
|
24
28
|
/**
|
|
@@ -29,6 +33,8 @@ export declare class SocksProxiesResource extends APIResource {
|
|
|
29
33
|
* @param dongleSocksProxyId - Identifier in the path
|
|
30
34
|
*
|
|
31
35
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION.
|
|
36
|
+
*
|
|
37
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
32
38
|
*/
|
|
33
39
|
get(dongleSocksProxyId: number, options?: RequestOptions): Promise<DongleSocksProxy>;
|
|
34
40
|
/**
|
|
@@ -39,6 +45,8 @@ export declare class SocksProxiesResource extends APIResource {
|
|
|
39
45
|
* @param dongleSocksProxyId - Identifier in the path
|
|
40
46
|
*
|
|
41
47
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, PASSWORD_TOO_SHORT_EXCEPTION, ALLOWED_IPS_NOT_VALID_EXCEPTION.
|
|
48
|
+
*
|
|
49
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
42
50
|
*/
|
|
43
51
|
update(dongleSocksProxyId: number, params: SocksProxiesUpdateParams, options?: RequestOptions): Promise<DongleSocksProxy>;
|
|
44
52
|
/**
|
|
@@ -49,6 +57,8 @@ export declare class SocksProxiesResource extends APIResource {
|
|
|
49
57
|
* @param dongleSocksProxyId - Identifier in the path
|
|
50
58
|
*
|
|
51
59
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION.
|
|
60
|
+
*
|
|
61
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
52
62
|
*/
|
|
53
63
|
delete(dongleSocksProxyId: number, options?: RequestOptions): Promise<boolean>;
|
|
54
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socks-proxies.d.ts","sourceRoot":"","sources":["../../src/resources/socks-proxies.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,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CAAC;IAS5B;;;;;;;;;;OAUG;IACH,MAAM,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAK/E"}
|
|
@@ -9,6 +9,8 @@ export class SocksProxiesResource extends APIResource {
|
|
|
9
9
|
* SOCKS5 proxies of the modems of the account. Newest first by default (created_at descending, then the id descending).
|
|
10
10
|
*
|
|
11
11
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
12
|
+
*
|
|
13
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
12
14
|
*/
|
|
13
15
|
list(params = {}, options) {
|
|
14
16
|
return this._client.getPage('/dongle-socks-proxy', {
|
|
@@ -23,6 +25,8 @@ export class SocksProxiesResource extends APIResource {
|
|
|
23
25
|
* One proxy per modem; the login is generated by the server. The proxy routes traffic through the mobile network of the modem.
|
|
24
26
|
*
|
|
25
27
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, PASSWORD_TOO_SHORT_EXCEPTION, ALLOWED_IPS_NOT_VALID_EXCEPTION, DONGLE_SOCKS_PROXY_ALREADY_EXISTS_EXCEPTION.
|
|
28
|
+
*
|
|
29
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
26
30
|
*/
|
|
27
31
|
create(params, options) {
|
|
28
32
|
return this._client
|
|
@@ -40,6 +44,8 @@ export class SocksProxiesResource extends APIResource {
|
|
|
40
44
|
* @param dongleSocksProxyId - Identifier in the path
|
|
41
45
|
*
|
|
42
46
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION.
|
|
47
|
+
*
|
|
48
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
43
49
|
*/
|
|
44
50
|
get(dongleSocksProxyId, options) {
|
|
45
51
|
return this._client
|
|
@@ -54,6 +60,8 @@ export class SocksProxiesResource extends APIResource {
|
|
|
54
60
|
* @param dongleSocksProxyId - Identifier in the path
|
|
55
61
|
*
|
|
56
62
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, PASSWORD_TOO_SHORT_EXCEPTION, ALLOWED_IPS_NOT_VALID_EXCEPTION.
|
|
63
|
+
*
|
|
64
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
57
65
|
*/
|
|
58
66
|
update(dongleSocksProxyId, params, options) {
|
|
59
67
|
return this._client
|
|
@@ -71,6 +79,8 @@ export class SocksProxiesResource extends APIResource {
|
|
|
71
79
|
* @param dongleSocksProxyId - Identifier in the path
|
|
72
80
|
*
|
|
73
81
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION.
|
|
82
|
+
*
|
|
83
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
74
84
|
*/
|
|
75
85
|
delete(dongleSocksProxyId, options) {
|
|
76
86
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socks-proxies.js","sourceRoot":"","sources":["../../src/resources/socks-proxies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,0DAA0D;AAC1D,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD
|
|
1
|
+
{"version":3,"file":"socks-proxies.js","sourceRoot":"","sources":["../../src/resources/socks-proxies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,g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AE,uBAAuB,SAAS,CAAC,kBAAkB,CAAC,EAAE,EAAE;YACtE,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE;YACpE,OAAO;SACR,CAAC;aACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAwB,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,kBAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,QAAQ,EAAE,uBAAuB,SAAS,CAAC,kBAAkB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aACtF,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;CACF"}
|
package/dist/resources/ussd.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export declare class UssdResource extends APIResource {
|
|
|
13
13
|
* @param dongleId - Identifier in the path
|
|
14
14
|
*
|
|
15
15
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
16
|
+
*
|
|
17
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
16
18
|
*/
|
|
17
19
|
list(dongleId: number, params?: UssdListParams, options?: RequestOptions): PagePromise<Ussd>;
|
|
18
20
|
/**
|
|
@@ -22,7 +24,9 @@ export declare class UssdResource extends APIResource {
|
|
|
22
24
|
*
|
|
23
25
|
* @param dongleId - Identifier in the path
|
|
24
26
|
*
|
|
25
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_INVALID_COMMAND_FORMAT_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, USSD_LAST_USSD_NOT_PROCESSED_EXCEPTION.
|
|
27
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_INVALID_COMMAND_FORMAT_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, USSD_LAST_USSD_NOT_PROCESSED_EXCEPTION, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
|
|
28
|
+
*
|
|
29
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
26
30
|
*/
|
|
27
31
|
send(dongleId: number, params: UssdSendParams, options?: RequestOptions): Promise<Ussd>;
|
|
28
32
|
/**
|
|
@@ -34,6 +38,8 @@ export declare class UssdResource extends APIResource {
|
|
|
34
38
|
* @param ussdId - Identifier in the path
|
|
35
39
|
*
|
|
36
40
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION.
|
|
41
|
+
*
|
|
42
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
37
43
|
*/
|
|
38
44
|
get(dongleId: number, ussdId: number, options?: RequestOptions): Promise<Ussd>;
|
|
39
45
|
/**
|
|
@@ -45,6 +51,8 @@ export declare class UssdResource extends APIResource {
|
|
|
45
51
|
* @param ussdId - Identifier in the path
|
|
46
52
|
*
|
|
47
53
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION.
|
|
54
|
+
*
|
|
55
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
48
56
|
*/
|
|
49
57
|
delete(dongleId: number, ussdId: number, options?: RequestOptions): Promise<boolean>;
|
|
50
58
|
/**
|
|
@@ -55,6 +63,8 @@ export declare class UssdResource extends APIResource {
|
|
|
55
63
|
* @param dongleId - Identifier in the path
|
|
56
64
|
*
|
|
57
65
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
66
|
+
*
|
|
67
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
58
68
|
*/
|
|
59
69
|
deleteAll(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
60
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ussd.d.ts","sourceRoot":"","sources":["../../src/resources/ussd.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzE,qCAAqC;AACrC,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"ussd.d.ts","sourceRoot":"","sources":["../../src/resources/ussd.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzE,qCAAqC;AACrC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,cAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,IAAI,CAAC;IAQhG;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvF;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAM9E;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMpF;;;;;;;;;;OAUG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAGxE"}
|
package/dist/resources/ussd.js
CHANGED
|
@@ -11,6 +11,8 @@ export class UssdResource extends APIResource {
|
|
|
11
11
|
* @param dongleId - Identifier in the path
|
|
12
12
|
*
|
|
13
13
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
14
16
|
*/
|
|
15
17
|
list(dongleId, params = {}, options) {
|
|
16
18
|
return this._client.getPage(`/dongle/${pathParam(dongleId)}/ussd`, {
|
|
@@ -26,7 +28,9 @@ export class UssdResource extends APIResource {
|
|
|
26
28
|
*
|
|
27
29
|
* @param dongleId - Identifier in the path
|
|
28
30
|
*
|
|
29
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_INVALID_COMMAND_FORMAT_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, USSD_LAST_USSD_NOT_PROCESSED_EXCEPTION.
|
|
31
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_INVALID_COMMAND_FORMAT_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, USSD_LAST_USSD_NOT_PROCESSED_EXCEPTION, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
|
|
32
|
+
*
|
|
33
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
30
34
|
*/
|
|
31
35
|
send(dongleId, params, options) {
|
|
32
36
|
return this._client
|
|
@@ -42,6 +46,8 @@ export class UssdResource extends APIResource {
|
|
|
42
46
|
* @param ussdId - Identifier in the path
|
|
43
47
|
*
|
|
44
48
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION.
|
|
49
|
+
*
|
|
50
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
45
51
|
*/
|
|
46
52
|
get(dongleId, ussdId, options) {
|
|
47
53
|
return this._client
|
|
@@ -57,6 +63,8 @@ export class UssdResource extends APIResource {
|
|
|
57
63
|
* @param ussdId - Identifier in the path
|
|
58
64
|
*
|
|
59
65
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION.
|
|
66
|
+
*
|
|
67
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
60
68
|
*/
|
|
61
69
|
delete(dongleId, ussdId, options) {
|
|
62
70
|
return this._client
|
|
@@ -71,6 +79,8 @@ export class UssdResource extends APIResource {
|
|
|
71
79
|
* @param dongleId - Identifier in the path
|
|
72
80
|
*
|
|
73
81
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
82
|
+
*
|
|
83
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
74
84
|
*/
|
|
75
85
|
deleteAll(dongleId, options) {
|
|
76
86
|
return this._client.request('DELETE', `/dongle/${pathParam(dongleId)}/ussds`, { options }).then(asStatus);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ussd.js","sourceRoot":"","sources":["../../src/resources/ussd.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,qCAAqC;AACrC,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"ussd.js","sourceRoot":"","sources":["../../src/resources/ussd.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,qCAAqC;AACrC,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAAgB,EAAE,SAAyB,EAAE,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAO,WAAW,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE;YACvE,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE;YACjG,OAAO,EAAE,OAAO;YAChB,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAAgB,EAAE,MAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,MAAM,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC;aACtG,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aACvF,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAgB,EAAE,MAAc,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,QAAQ,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aAC1F,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CAAC,QAAgB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5G,CAAC;CACF"}
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -58,6 +58,21 @@ export declare const CallStatus: {
|
|
|
58
58
|
};
|
|
59
59
|
/** 1: Created, 2: Enqueued, 3: Sent, 4: Received (answered), 5: Not received, 6: Canceled, 7: Missed */
|
|
60
60
|
export type CallStatus = (typeof CallStatus)[keyof typeof CallStatus];
|
|
61
|
+
/**
|
|
62
|
+
* 1: Processing (usually a couple of minutes after the call), 2: Ready, 3: Failed (the speech could not be recognised)
|
|
63
|
+
*/
|
|
64
|
+
export declare const CallTranscriptStatus: {
|
|
65
|
+
/** Processing (usually a couple of minutes after the call) */
|
|
66
|
+
readonly PROCESSING: 1;
|
|
67
|
+
/** Ready */
|
|
68
|
+
readonly READY: 2;
|
|
69
|
+
/** Failed (the speech could not be recognised) */
|
|
70
|
+
readonly FAILED: 3;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* 1: Processing (usually a couple of minutes after the call), 2: Ready, 3: Failed (the speech could not be recognised)
|
|
74
|
+
*/
|
|
75
|
+
export type CallTranscriptStatus = (typeof CallTranscriptStatus)[keyof typeof CallTranscriptStatus];
|
|
61
76
|
/** 1: Outgoing, 2: Incoming, 3: Robotics incoming, 4: Robotics outgoing */
|
|
62
77
|
export declare const CallType: {
|
|
63
78
|
/** Outgoing */
|
|
@@ -191,28 +206,34 @@ export declare const SmsSourceType: {
|
|
|
191
206
|
/** 1: Local, 2: International, 3: Short (short code or alphanumeric sender) */
|
|
192
207
|
export type SmsSourceType = (typeof SmsSourceType)[keyof typeof SmsSourceType];
|
|
193
208
|
/**
|
|
194
|
-
* 1: Sended -
|
|
209
|
+
* 1: Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet; 2: Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0); 3: Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status); 4: Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at); 5: Enqueued - in the send queue; 6: Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it); 7: Incoming incomplete - not every part of a multipart SMS arrived
|
|
195
210
|
*/
|
|
196
211
|
export declare const SmsStatus: {
|
|
197
212
|
/**
|
|
198
|
-
* Sended -
|
|
213
|
+
* Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet
|
|
199
214
|
*/
|
|
200
215
|
readonly SENT: 1;
|
|
201
|
-
/**
|
|
216
|
+
/**
|
|
217
|
+
* Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0)
|
|
218
|
+
*/
|
|
202
219
|
readonly RECEIVED: 2;
|
|
203
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status)
|
|
222
|
+
*/
|
|
204
223
|
readonly NOT_RECEIVED: 3;
|
|
205
|
-
/** Created */
|
|
224
|
+
/** Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at) */
|
|
206
225
|
readonly CREATED: 4;
|
|
207
|
-
/** Enqueued */
|
|
226
|
+
/** Enqueued - in the send queue */
|
|
208
227
|
readonly ENQUEUED: 5;
|
|
209
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it)
|
|
230
|
+
*/
|
|
210
231
|
readonly CANCELED: 6;
|
|
211
232
|
/** Incoming incomplete - not every part of a multipart SMS arrived */
|
|
212
233
|
readonly INCOMING_INCOMPLETE: 7;
|
|
213
234
|
};
|
|
214
235
|
/**
|
|
215
|
-
* 1: Sended -
|
|
236
|
+
* 1: Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet; 2: Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0); 3: Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status); 4: Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at); 5: Enqueued - in the send queue; 6: Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it); 7: Incoming incomplete - not every part of a multipart SMS arrived
|
|
216
237
|
*/
|
|
217
238
|
export type SmsStatus = (typeof SmsStatus)[keyof typeof SmsStatus];
|
|
218
239
|
/** 1: Outgoing, 2: Incoming, 3: Auto reply, 4: Reply, 5: Delayed (scheduled), 6: Mailing, 7: Silent */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,uBAAuB;IAClC,qEAAqE;;IAErE,sGAAsG;;IAEtG,oGAAoG;;IAEpG,mEAAmE;;CAE3D,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAE7G;;GAEG;AACH,eAAO,MAAM,yBAAyB;IACpC,0EAA0E;;IAE1E,qDAAqD;;IAErD,mCAAmC;;IAEnC,qFAAqF;;CAE7E,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E,gCAAgC;AAChC,eAAO,MAAM,gBAAgB;IAC3B,6BAA6B;;CAErB,CAAC;AACX,gCAAgC;AAChC,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAExF,wGAAwG;AACxG,eAAO,MAAM,UAAU;IACrB,cAAc;;IAEd,eAAe;;IAEf,WAAW;;IAEX,0BAA0B;;IAE1B,mBAAmB;;IAEnB,eAAe;;IAEf,aAAa;;CAEL,CAAC;AACX,wGAAwG;AACxG,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,2EAA2E;AAC3E,eAAO,MAAM,QAAQ;IACnB,eAAe;;IAEf,eA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mD;AACnD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,+BAA+B;AAC/B,eAAO,MAAM,QAAQ;IACnB,eAAe;;IAEf,eAAe;;CAEP,CAAC;AACX,+BAA+B;AAC/B,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
package/dist/types/enums.js
CHANGED
|
@@ -47,6 +47,17 @@ export const CallStatus = {
|
|
|
47
47
|
/** Missed */
|
|
48
48
|
MISSED: 7,
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* 1: Processing (usually a couple of minutes after the call), 2: Ready, 3: Failed (the speech could not be recognised)
|
|
52
|
+
*/
|
|
53
|
+
export const CallTranscriptStatus = {
|
|
54
|
+
/** Processing (usually a couple of minutes after the call) */
|
|
55
|
+
PROCESSING: 1,
|
|
56
|
+
/** Ready */
|
|
57
|
+
READY: 2,
|
|
58
|
+
/** Failed (the speech could not be recognised) */
|
|
59
|
+
FAILED: 3,
|
|
60
|
+
};
|
|
50
61
|
/** 1: Outgoing, 2: Incoming, 3: Robotics incoming, 4: Robotics outgoing */
|
|
51
62
|
export const CallType = {
|
|
52
63
|
/** Outgoing */
|
|
@@ -158,22 +169,28 @@ export const SmsSourceType = {
|
|
|
158
169
|
SHORT: 3,
|
|
159
170
|
};
|
|
160
171
|
/**
|
|
161
|
-
* 1: Sended -
|
|
172
|
+
* 1: Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet; 2: Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0); 3: Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status); 4: Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at); 5: Enqueued - in the send queue; 6: Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it); 7: Incoming incomplete - not every part of a multipart SMS arrived
|
|
162
173
|
*/
|
|
163
174
|
export const SmsStatus = {
|
|
164
175
|
/**
|
|
165
|
-
* Sended -
|
|
176
|
+
* Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet
|
|
166
177
|
*/
|
|
167
178
|
SENT: 1,
|
|
168
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0)
|
|
181
|
+
*/
|
|
169
182
|
RECEIVED: 2,
|
|
170
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status)
|
|
185
|
+
*/
|
|
171
186
|
NOT_RECEIVED: 3,
|
|
172
|
-
/** Created */
|
|
187
|
+
/** Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at) */
|
|
173
188
|
CREATED: 4,
|
|
174
|
-
/** Enqueued */
|
|
189
|
+
/** Enqueued - in the send queue */
|
|
175
190
|
ENQUEUED: 5,
|
|
176
|
-
/**
|
|
191
|
+
/**
|
|
192
|
+
* Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it)
|
|
193
|
+
*/
|
|
177
194
|
CANCELED: 6,
|
|
178
195
|
/** Incoming incomplete - not every part of a multipart SMS arrived */
|
|
179
196
|
INCOMING_INCOMPLETE: 7,
|
package/dist/types/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA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