teleleo 0.2.0 → 0.3.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 +27 -0
- package/README.md +71 -11
- package/api.md +16 -2
- package/dist/client.d.ts +3 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -2
- package/dist/client.js.map +1 -1
- package/dist/core.d.ts +9 -2
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +19 -6
- package/dist/core.js.map +1 -1
- package/dist/errors.d.ts +14 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +14 -4
- package/dist/errors.js.map +1 -1
- package/dist/resources/call-scenarios.d.ts +3 -3
- package/dist/resources/call-scenarios.js +3 -3
- package/dist/resources/calls.d.ts +5 -5
- package/dist/resources/calls.js +5 -5
- package/dist/resources/contact-groups.d.ts +5 -5
- package/dist/resources/contact-groups.js +5 -5
- package/dist/resources/contacts.d.ts +6 -6
- package/dist/resources/contacts.js +6 -6
- package/dist/resources/dongles.d.ts +43 -15
- package/dist/resources/dongles.d.ts.map +1 -1
- package/dist/resources/dongles.js +56 -14
- package/dist/resources/dongles.js.map +1 -1
- package/dist/resources/files.d.ts +4 -4
- package/dist/resources/files.js +4 -4
- package/dist/resources/follow-up-sms-settings.d.ts +2 -2
- package/dist/resources/follow-up-sms-settings.js +2 -2
- package/dist/resources/index.d.ts +6 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +3 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/mailings.d.ts +7 -7
- package/dist/resources/mailings.js +7 -7
- package/dist/resources/plans.d.ts +20 -0
- package/dist/resources/plans.d.ts.map +1 -0
- package/dist/resources/plans.js +22 -0
- package/dist/resources/plans.js.map +1 -0
- package/dist/resources/public-vpn.d.ts +3 -1
- package/dist/resources/public-vpn.d.ts.map +1 -1
- package/dist/resources/public-vpn.js +3 -1
- package/dist/resources/public-vpn.js.map +1 -1
- package/dist/resources/redirections.d.ts +3 -3
- package/dist/resources/redirections.js +3 -3
- package/dist/resources/sip-users.d.ts +2 -2
- package/dist/resources/sip-users.js +2 -2
- package/dist/resources/sms.d.ts +6 -6
- package/dist/resources/sms.js +6 -6
- package/dist/resources/socks-proxies.d.ts +3 -3
- package/dist/resources/socks-proxies.js +3 -3
- package/dist/resources/ussd.d.ts +4 -4
- package/dist/resources/ussd.js +4 -4
- package/dist/types/enums.d.ts +5 -3
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +4 -2
- package/dist/types/enums.js.map +1 -1
- package/dist/types/models.d.ts +92 -10
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/params.d.ts +32 -5
- package/dist/types/params.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/client.ts +5 -2
- package/src/core.ts +41 -10
- package/src/errors.ts +14 -4
- package/src/resources/call-scenarios.ts +3 -3
- package/src/resources/calls.ts +5 -5
- package/src/resources/contact-groups.ts +5 -5
- package/src/resources/contacts.ts +6 -6
- package/src/resources/dongles.ts +68 -14
- package/src/resources/files.ts +4 -4
- package/src/resources/follow-up-sms-settings.ts +2 -2
- package/src/resources/index.ts +7 -0
- package/src/resources/mailings.ts +7 -7
- package/src/resources/plans.ts +25 -0
- package/src/resources/public-vpn.ts +3 -1
- package/src/resources/redirections.ts +3 -3
- package/src/resources/sip-users.ts +2 -2
- package/src/resources/sms.ts +6 -6
- package/src/resources/socks-proxies.ts +3 -3
- package/src/resources/ussd.ts +4 -4
- package/src/types/enums.ts +5 -3
- package/src/types/models.ts +95 -10
- package/src/types/params.ts +35 -5
- package/src/version.ts +1 -1
|
@@ -10,7 +10,7 @@ export declare class CallsResource extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* Calls of the account, newest first by default. Both the caller and the receiver filters match a fragment of the number.
|
|
12
12
|
*
|
|
13
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
14
14
|
*
|
|
15
15
|
* Capability the role of an organization API key needs: `call.view`.
|
|
16
16
|
*/
|
|
@@ -22,7 +22,7 @@ export declare class CallsResource extends APIResource {
|
|
|
22
22
|
*
|
|
23
23
|
* @param callId - Identifier in the path
|
|
24
24
|
*
|
|
25
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CALL_TRANSCRIPT_NOT_FOUND_EXCEPTION.
|
|
25
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CALL_TRANSCRIPT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
26
26
|
*
|
|
27
27
|
* Capability the role of an organization API key needs: `call.view`.
|
|
28
28
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class CallsResource extends APIResource {
|
|
|
34
34
|
*
|
|
35
35
|
* @param dongleId - Identifier in the path
|
|
36
36
|
*
|
|
37
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, CALL_ERROR_IDENTIFIER_EMPTY_FIELDS, CALL_ERROR_INVALID_RECEIVER_NUMBER, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND.
|
|
37
|
+
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, CALL_ERROR_IDENTIFIER_EMPTY_FIELDS, CALL_ERROR_INVALID_RECEIVER_NUMBER, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
38
38
|
*
|
|
39
39
|
* Capability the role of an organization API key needs: `call.make`.
|
|
40
40
|
*/
|
|
@@ -47,7 +47,7 @@ export declare class CallsResource extends APIResource {
|
|
|
47
47
|
* @param dongleId - Identifier in the path
|
|
48
48
|
* @param callId - Identifier in the path
|
|
49
49
|
*
|
|
50
|
-
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND.
|
|
50
|
+
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
51
51
|
*
|
|
52
52
|
* Capability the role of an organization API key needs: `call.view`.
|
|
53
53
|
*/
|
|
@@ -60,7 +60,7 @@ export declare class CallsResource extends APIResource {
|
|
|
60
60
|
* @param dongleId - Identifier in the path
|
|
61
61
|
* @param callId - Identifier in the path
|
|
62
62
|
*
|
|
63
|
-
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND.
|
|
63
|
+
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
64
64
|
*
|
|
65
65
|
* Capability the role of an organization API key needs: `call.make`.
|
|
66
66
|
*/
|
package/dist/resources/calls.js
CHANGED
|
@@ -8,7 +8,7 @@ export class CallsResource extends APIResource {
|
|
|
8
8
|
*
|
|
9
9
|
* Calls of the account, newest first by default. Both the caller and the receiver filters match a fragment of the number.
|
|
10
10
|
*
|
|
11
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
11
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
12
12
|
*
|
|
13
13
|
* Capability the role of an organization API key needs: `call.view`.
|
|
14
14
|
*/
|
|
@@ -43,7 +43,7 @@ export class CallsResource extends APIResource {
|
|
|
43
43
|
*
|
|
44
44
|
* @param callId - Identifier in the path
|
|
45
45
|
*
|
|
46
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CALL_TRANSCRIPT_NOT_FOUND_EXCEPTION.
|
|
46
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CALL_TRANSCRIPT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
47
47
|
*
|
|
48
48
|
* Capability the role of an organization API key needs: `call.view`.
|
|
49
49
|
*/
|
|
@@ -59,7 +59,7 @@ export class CallsResource extends APIResource {
|
|
|
59
59
|
*
|
|
60
60
|
* @param dongleId - Identifier in the path
|
|
61
61
|
*
|
|
62
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, CALL_ERROR_IDENTIFIER_EMPTY_FIELDS, CALL_ERROR_INVALID_RECEIVER_NUMBER, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND.
|
|
62
|
+
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, CALL_ERROR_IDENTIFIER_EMPTY_FIELDS, CALL_ERROR_INVALID_RECEIVER_NUMBER, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
63
63
|
*
|
|
64
64
|
* Capability the role of an organization API key needs: `call.make`.
|
|
65
65
|
*/
|
|
@@ -79,7 +79,7 @@ export class CallsResource extends APIResource {
|
|
|
79
79
|
* @param dongleId - Identifier in the path
|
|
80
80
|
* @param callId - Identifier in the path
|
|
81
81
|
*
|
|
82
|
-
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND.
|
|
82
|
+
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
83
83
|
*
|
|
84
84
|
* Capability the role of an organization API key needs: `call.view`.
|
|
85
85
|
*/
|
|
@@ -96,7 +96,7 @@ export class CallsResource extends APIResource {
|
|
|
96
96
|
* @param dongleId - Identifier in the path
|
|
97
97
|
* @param callId - Identifier in the path
|
|
98
98
|
*
|
|
99
|
-
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND.
|
|
99
|
+
* Error codes (`errorMessage`): CALL_ERROR_ERROR_CALL_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
100
100
|
*
|
|
101
101
|
* Capability the role of an organization API key needs: `call.make`.
|
|
102
102
|
*/
|
|
@@ -10,7 +10,7 @@ export declare class ContactGroupsResource extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* Contact groups of the account. Newest first by default (the id descending).
|
|
12
12
|
*
|
|
13
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
14
14
|
*
|
|
15
15
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ export declare class ContactGroupsResource extends APIResource {
|
|
|
20
20
|
*
|
|
21
21
|
* Creates a contact group with the given contacts.
|
|
22
22
|
*
|
|
23
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
|
|
23
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
24
24
|
*
|
|
25
25
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
26
26
|
*/
|
|
@@ -32,7 +32,7 @@ export declare class ContactGroupsResource extends APIResource {
|
|
|
32
32
|
*
|
|
33
33
|
* @param contactGroupId - Identifier in the path
|
|
34
34
|
*
|
|
35
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION.
|
|
35
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
36
36
|
*
|
|
37
37
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
38
38
|
*/
|
|
@@ -44,7 +44,7 @@ export declare class ContactGroupsResource extends APIResource {
|
|
|
44
44
|
*
|
|
45
45
|
* @param contactGroupId - Identifier in the path
|
|
46
46
|
*
|
|
47
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
|
|
47
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
48
48
|
*
|
|
49
49
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
50
50
|
*/
|
|
@@ -56,7 +56,7 @@ export declare class ContactGroupsResource extends APIResource {
|
|
|
56
56
|
*
|
|
57
57
|
* @param contactGroupId - Identifier in the path
|
|
58
58
|
*
|
|
59
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP.
|
|
59
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
60
60
|
*
|
|
61
61
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
62
62
|
*/
|
|
@@ -8,7 +8,7 @@ export class ContactGroupsResource extends APIResource {
|
|
|
8
8
|
*
|
|
9
9
|
* Contact groups of the account. Newest first by default (the id descending).
|
|
10
10
|
*
|
|
11
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
11
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
12
12
|
*
|
|
13
13
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
14
14
|
*/
|
|
@@ -32,7 +32,7 @@ export class ContactGroupsResource extends APIResource {
|
|
|
32
32
|
*
|
|
33
33
|
* Creates a contact group with the given contacts.
|
|
34
34
|
*
|
|
35
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
|
|
35
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
36
36
|
*
|
|
37
37
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
38
38
|
*/
|
|
@@ -51,7 +51,7 @@ export class ContactGroupsResource extends APIResource {
|
|
|
51
51
|
*
|
|
52
52
|
* @param contactGroupId - Identifier in the path
|
|
53
53
|
*
|
|
54
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION.
|
|
54
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
55
55
|
*
|
|
56
56
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
57
57
|
*/
|
|
@@ -67,7 +67,7 @@ export class ContactGroupsResource extends APIResource {
|
|
|
67
67
|
*
|
|
68
68
|
* @param contactGroupId - Identifier in the path
|
|
69
69
|
*
|
|
70
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
|
|
70
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
71
71
|
*
|
|
72
72
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
73
73
|
*/
|
|
@@ -86,7 +86,7 @@ export class ContactGroupsResource extends APIResource {
|
|
|
86
86
|
*
|
|
87
87
|
* @param contactGroupId - Identifier in the path
|
|
88
88
|
*
|
|
89
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP.
|
|
89
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
90
90
|
*
|
|
91
91
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
92
92
|
*/
|
|
@@ -10,7 +10,7 @@ export declare class ContactsResource extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* Contacts of the account. Filters combine with AND. Newest first by default (the id descending).
|
|
12
12
|
*
|
|
13
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
14
14
|
*
|
|
15
15
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ export declare class ContactsResource extends APIResource {
|
|
|
20
20
|
*
|
|
21
21
|
* Creates a contact. The phone number is normalised to E.164; a number that already belongs to a contact of the account is refused.
|
|
22
22
|
*
|
|
23
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
|
|
23
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
24
24
|
*
|
|
25
25
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
26
26
|
*/
|
|
@@ -32,7 +32,7 @@ export declare class ContactsResource extends APIResource {
|
|
|
32
32
|
*
|
|
33
33
|
* @param contactId - Identifier in the path
|
|
34
34
|
*
|
|
35
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION.
|
|
35
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
36
36
|
*
|
|
37
37
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
38
38
|
*/
|
|
@@ -44,7 +44,7 @@ export declare class ContactsResource extends APIResource {
|
|
|
44
44
|
*
|
|
45
45
|
* @param contactId - Identifier in the path
|
|
46
46
|
*
|
|
47
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
|
|
47
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
48
48
|
*
|
|
49
49
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
50
50
|
*/
|
|
@@ -56,7 +56,7 @@ export declare class ContactsResource extends APIResource {
|
|
|
56
56
|
*
|
|
57
57
|
* @param contactId - Identifier in the path
|
|
58
58
|
*
|
|
59
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT.
|
|
59
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
60
60
|
*
|
|
61
61
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
62
62
|
*/
|
|
@@ -66,7 +66,7 @@ export declare class ContactsResource extends APIResource {
|
|
|
66
66
|
*
|
|
67
67
|
* Bulk creation of contacts from the body; duplicates by phone number are skipped.
|
|
68
68
|
*
|
|
69
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST.
|
|
69
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
70
70
|
*
|
|
71
71
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
72
72
|
*/
|
|
@@ -8,7 +8,7 @@ export class ContactsResource extends APIResource {
|
|
|
8
8
|
*
|
|
9
9
|
* Contacts of the account. Filters combine with AND. Newest first by default (the id descending).
|
|
10
10
|
*
|
|
11
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
11
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
12
12
|
*
|
|
13
13
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
14
14
|
*/
|
|
@@ -36,7 +36,7 @@ export class ContactsResource extends APIResource {
|
|
|
36
36
|
*
|
|
37
37
|
* Creates a contact. The phone number is normalised to E.164; a number that already belongs to a contact of the account is refused.
|
|
38
38
|
*
|
|
39
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
|
|
39
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
40
40
|
*
|
|
41
41
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
42
42
|
*/
|
|
@@ -60,7 +60,7 @@ export class ContactsResource extends APIResource {
|
|
|
60
60
|
*
|
|
61
61
|
* @param contactId - Identifier in the path
|
|
62
62
|
*
|
|
63
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION.
|
|
63
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
64
64
|
*
|
|
65
65
|
* Capability the role of an organization API key needs: `contact.view`.
|
|
66
66
|
*/
|
|
@@ -76,7 +76,7 @@ export class ContactsResource extends APIResource {
|
|
|
76
76
|
*
|
|
77
77
|
* @param contactId - Identifier in the path
|
|
78
78
|
*
|
|
79
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
|
|
79
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
80
80
|
*
|
|
81
81
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
82
82
|
*/
|
|
@@ -100,7 +100,7 @@ export class ContactsResource extends APIResource {
|
|
|
100
100
|
*
|
|
101
101
|
* @param contactId - Identifier in the path
|
|
102
102
|
*
|
|
103
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT.
|
|
103
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
104
104
|
*
|
|
105
105
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
106
106
|
*/
|
|
@@ -112,7 +112,7 @@ export class ContactsResource extends APIResource {
|
|
|
112
112
|
*
|
|
113
113
|
* Bulk creation of contacts from the body; duplicates by phone number are skipped.
|
|
114
114
|
*
|
|
115
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST.
|
|
115
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
116
116
|
*
|
|
117
117
|
* Capability the role of an organization API key needs: `contact.manage`.
|
|
118
118
|
*/
|
|
@@ -2,7 +2,7 @@ import type { RequestOptions } from '../core.js';
|
|
|
2
2
|
import type { PagePromise } from '../pagination.js';
|
|
3
3
|
import { APIResource } from '../resource.js';
|
|
4
4
|
import type { Dongle, DongleListItem, DongleNetworkInfo, DongleSimIdentifiers, DongleStatistic, DongleWifiClientList } from '../types/models.js';
|
|
5
|
-
import type { DonglesEnableWifiExtenderParams, DonglesListParams, DonglesListStatisticsParams, DonglesSetNumberParams, DonglesSetWifiCredentialsParams, DonglesUpdateOfflineNotificationParams, DonglesUpdateParams } from '../types/params.js';
|
|
5
|
+
import type { DonglesEnableWifiExtenderParams, DonglesListParams, DonglesListStatisticsParams, DonglesSetNumberParams, DonglesSetWifiCredentialsParams, DonglesUpdateOfflineNotificationParams, DonglesUpdateParams, DonglesUpdateUsbGatewayParams, DonglesUpdateWifiIsolationParams } from '../types/params.js';
|
|
6
6
|
/** Modems of the account and their commands: reboot, Wi-Fi, Wi-Fi extender, number, network info. */
|
|
7
7
|
export declare class DonglesResource extends APIResource {
|
|
8
8
|
/**
|
|
@@ -18,11 +18,11 @@ export declare class DonglesResource extends APIResource {
|
|
|
18
18
|
/**
|
|
19
19
|
* Reboot modem.
|
|
20
20
|
*
|
|
21
|
-
* 200 means the reboot is accepted, not done: dongle_online_status becomes 7 (REBOOTING) at once and goes back to an online or offline status when the modem returns. A repeated call while a reboot is in progress (about 180 s for the API stage, then the SMS stage) is a no-op that also answers 200. The reboot is accepted regardless of the subscription
|
|
21
|
+
* 200 means the reboot is accepted, not done: dongle_online_status becomes 7 (REBOOTING) at once and goes back to an online or offline status when the modem returns. A repeated call while a reboot is in progress (about 180 s for the API stage, then the SMS stage) is a no-op that also answers 200. The reboot is accepted regardless of the online state (the subscription is needed, see Subscription); track progress through dongle_online_status in GET /dongle or GET /dongle/{dongle_id}.
|
|
22
22
|
*
|
|
23
23
|
* @param dongleId - Identifier in the path
|
|
24
24
|
*
|
|
25
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
25
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
26
26
|
*
|
|
27
27
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
28
28
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
34
34
|
*
|
|
35
35
|
* @param dongleId - ID of the dongle
|
|
36
36
|
*
|
|
37
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_OFFLINE_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_BUSY_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_UNAVAILABLE_EXCEPTION.
|
|
37
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_OFFLINE_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_BUSY_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_UNAVAILABLE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
38
38
|
*
|
|
39
39
|
* Capability the role of an organization API key needs: `network.view`.
|
|
40
40
|
*
|
|
@@ -48,7 +48,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
48
48
|
*
|
|
49
49
|
* @param dongleId - ID of the dongle
|
|
50
50
|
*
|
|
51
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
51
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
52
52
|
*
|
|
53
53
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
54
54
|
*/
|
|
@@ -60,7 +60,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
60
60
|
*
|
|
61
61
|
* @param dongleId - ID of the dongle
|
|
62
62
|
*
|
|
63
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
63
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
64
64
|
*
|
|
65
65
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
66
66
|
*/
|
|
@@ -72,7 +72,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
72
72
|
*
|
|
73
73
|
* @param dongleId - ID of the dongle
|
|
74
74
|
*
|
|
75
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION.
|
|
75
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
76
76
|
*
|
|
77
77
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
78
78
|
*/
|
|
@@ -96,7 +96,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
96
96
|
*
|
|
97
97
|
* @param dongleId - ID of the dongle
|
|
98
98
|
*
|
|
99
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
99
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
100
100
|
*
|
|
101
101
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
102
102
|
*/
|
|
@@ -120,11 +120,39 @@ export declare class DonglesResource extends APIResource {
|
|
|
120
120
|
*
|
|
121
121
|
* @param dongleId - ID of the dongle
|
|
122
122
|
*
|
|
123
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND.
|
|
123
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
124
124
|
*
|
|
125
125
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
126
126
|
*/
|
|
127
127
|
updateOfflineNotification(dongleId: number, params: DonglesUpdateOfflineNotificationParams, options?: RequestOptions): Promise<boolean>;
|
|
128
|
+
/**
|
|
129
|
+
* Set Wi-Fi isolation.
|
|
130
|
+
*
|
|
131
|
+
* Turns the Wi-Fi isolation of the modem on or off: devices on its Wi-Fi do not see each other or the computer on USB. The modem is asked for its mode first, and the mode is sent to it in the same request only when it reports another one. When the modem cannot be reached, answers an error, or loses the answer and then does not report the new mode, the mode stays as it was and the answer is 400 DONGLE_WIFI_API_EXCEPTION. On a loaded modem the request takes up to 45 seconds. Shown as dongle_setting.is_wifi_isolation_enabled in GET /dongle. Available from modem firmware 5.1.0; with older firmware the mode is only saved and the answer is 200: the modem gets it when it connects with 5.1.0 or newer.
|
|
132
|
+
*
|
|
133
|
+
* @param dongleId - ID of the dongle
|
|
134
|
+
*
|
|
135
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_SETTING_NOT_FOUND, DONGLE_WIFI_API_EXCEPTION.
|
|
136
|
+
*
|
|
137
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
138
|
+
*
|
|
139
|
+
* Needs modem firmware 5.1.0 or later.
|
|
140
|
+
*/
|
|
141
|
+
updateWifiIsolation(dongleId: number, params: DonglesUpdateWifiIsolationParams, options?: RequestOptions): Promise<boolean>;
|
|
142
|
+
/**
|
|
143
|
+
* Set USB gateway mode.
|
|
144
|
+
*
|
|
145
|
+
* Makes the modem the gateway of the computer plugged into it over USB, or not; off by default; shown as dongle_setting.is_usb_gateway_enabled in GET /dongle. The value is sent to the modem at once: if the modem cannot be reached or rejects the command, the saved value is put back (400 DONGLE_SETTING_API_EXCEPTION); if the firmware of the modem cannot turn the gateway off, it is put back too (400 DONGLE_SETTING_USB_GATEWAY_NOT_SUPPORTED). The modem takes the setting with a reboot: after a change it reboots to apply it, even while a reboot is already in progress (dongle_online_status 7 while it reboots). A value equal to the saved one is checked with the modem; it is sent, and applied by a reboot, only when the modem reports another one. When the modem cannot be reached for that check, the answer is 400 DONGLE_SETTING_API_EXCEPTION as well. The modem reports the mode it has saved, not the one in effect: to apply a mode it has saved, reboot it (POST /dongle/{dongle_id}/reboot). Available from modem firmware 5.1.0; older firmware answers 400 DONGLE_SETTING_API_EXCEPTION.
|
|
146
|
+
*
|
|
147
|
+
* @param dongleId - ID of the dongle
|
|
148
|
+
*
|
|
149
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_SETTING_NOT_FOUND, DONGLE_SETTING_API_EXCEPTION, DONGLE_SETTING_USB_GATEWAY_NOT_SUPPORTED.
|
|
150
|
+
*
|
|
151
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
152
|
+
*
|
|
153
|
+
* Needs modem firmware 5.1.0 or later.
|
|
154
|
+
*/
|
|
155
|
+
updateUsbGateway(dongleId: number, params: DonglesUpdateUsbGatewayParams, options?: RequestOptions): Promise<boolean>;
|
|
128
156
|
/**
|
|
129
157
|
* Set modem number.
|
|
130
158
|
*
|
|
@@ -132,7 +160,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
132
160
|
*
|
|
133
161
|
* @param dongleId - ID of the dongle
|
|
134
162
|
*
|
|
135
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION.
|
|
163
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
136
164
|
*
|
|
137
165
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
138
166
|
*/
|
|
@@ -152,11 +180,11 @@ export declare class DonglesResource extends APIResource {
|
|
|
152
180
|
/**
|
|
153
181
|
* Update modem.
|
|
154
182
|
*
|
|
155
|
-
* Only the listed body fields are read; unknown fields are ignored. An omitted field keeps its value. The billing fields tariff_package_id, is_tariff_package_enabled, order_dongle_id, is_deleted and is_active and the field imei_fake are outside the public API: a body with any of them is refused as a whole with 403 PUBLIC_API_FIELD_FORBIDDEN.
|
|
183
|
+
* Only the listed body fields are read; unknown fields are ignored. An omitted field keeps its value. The billing fields tariff_package_id, is_tariff_package_enabled, order_dongle_id, is_deleted and is_active and the field imei_fake are outside the public API: a body with any of them is refused as a whole with 403 PUBLIC_API_FIELD_FORBIDDEN, whatever the role of the key. Switching dongle_call_type_id to 1 (SIP) takes the call scenario off the modem first: a modem that does not take it off answers 400 DONGLE_ERROR_CALL_SCENARIO_NOT_REMOVED, and nothing is changed.
|
|
156
184
|
*
|
|
157
185
|
* @param dongleId - Identifier in the path
|
|
158
186
|
*
|
|
159
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, PUBLIC_API_FIELD_FORBIDDEN.
|
|
187
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_ERROR_CALL_SCENARIO_NOT_REMOVED, PUBLIC_API_FIELD_FORBIDDEN, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
160
188
|
*
|
|
161
189
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
162
190
|
*/
|
|
@@ -168,7 +196,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
168
196
|
*
|
|
169
197
|
* @param dongleId - Identifier in the path
|
|
170
198
|
*
|
|
171
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
199
|
+
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
172
200
|
*
|
|
173
201
|
* Capability the role of an organization API key needs: `device.view`.
|
|
174
202
|
*/
|
|
@@ -180,7 +208,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
180
208
|
*
|
|
181
209
|
* @param dongleId - Identifier in the path
|
|
182
210
|
*
|
|
183
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
211
|
+
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
184
212
|
*
|
|
185
213
|
* Capability the role of an organization API key needs: `device.view`.
|
|
186
214
|
*/
|
|
@@ -192,7 +220,7 @@ export declare class DonglesResource extends APIResource {
|
|
|
192
220
|
*
|
|
193
221
|
* @param dongleId - Identifier in the path
|
|
194
222
|
*
|
|
195
|
-
* Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND.
|
|
223
|
+
* Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
196
224
|
*
|
|
197
225
|
* Capability the role of an organization API key needs: `device.view`.
|
|
198
226
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dongles.d.ts","sourceRoot":"","sources":["../../src/resources/dongles.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,EACV,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,+BAA+B,EAC/B,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,EACtB,+BAA+B,EAC/B,sCAAsC,EACtC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"dongles.d.ts","sourceRoot":"","sources":["../../src/resources/dongles.ts"],"names":[],"mappings":"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"}
|
|
@@ -35,11 +35,11 @@ export class DonglesResource extends APIResource {
|
|
|
35
35
|
/**
|
|
36
36
|
* Reboot modem.
|
|
37
37
|
*
|
|
38
|
-
* 200 means the reboot is accepted, not done: dongle_online_status becomes 7 (REBOOTING) at once and goes back to an online or offline status when the modem returns. A repeated call while a reboot is in progress (about 180 s for the API stage, then the SMS stage) is a no-op that also answers 200. The reboot is accepted regardless of the subscription
|
|
38
|
+
* 200 means the reboot is accepted, not done: dongle_online_status becomes 7 (REBOOTING) at once and goes back to an online or offline status when the modem returns. A repeated call while a reboot is in progress (about 180 s for the API stage, then the SMS stage) is a no-op that also answers 200. The reboot is accepted regardless of the online state (the subscription is needed, see Subscription); track progress through dongle_online_status in GET /dongle or GET /dongle/{dongle_id}.
|
|
39
39
|
*
|
|
40
40
|
* @param dongleId - Identifier in the path
|
|
41
41
|
*
|
|
42
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
42
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
43
43
|
*
|
|
44
44
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
45
45
|
*/
|
|
@@ -53,7 +53,7 @@ export class DonglesResource extends APIResource {
|
|
|
53
53
|
*
|
|
54
54
|
* @param dongleId - ID of the dongle
|
|
55
55
|
*
|
|
56
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_OFFLINE_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_BUSY_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_UNAVAILABLE_EXCEPTION.
|
|
56
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_OFFLINE_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_BUSY_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_UNAVAILABLE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
57
57
|
*
|
|
58
58
|
* Capability the role of an organization API key needs: `network.view`.
|
|
59
59
|
*
|
|
@@ -71,7 +71,7 @@ export class DonglesResource extends APIResource {
|
|
|
71
71
|
*
|
|
72
72
|
* @param dongleId - ID of the dongle
|
|
73
73
|
*
|
|
74
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
74
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
75
75
|
*
|
|
76
76
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
77
77
|
*/
|
|
@@ -87,7 +87,7 @@ export class DonglesResource extends APIResource {
|
|
|
87
87
|
*
|
|
88
88
|
* @param dongleId - ID of the dongle
|
|
89
89
|
*
|
|
90
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
90
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
91
91
|
*
|
|
92
92
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
93
93
|
*/
|
|
@@ -103,7 +103,7 @@ export class DonglesResource extends APIResource {
|
|
|
103
103
|
*
|
|
104
104
|
* @param dongleId - ID of the dongle
|
|
105
105
|
*
|
|
106
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION.
|
|
106
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
107
107
|
*
|
|
108
108
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
109
109
|
*/
|
|
@@ -141,7 +141,7 @@ export class DonglesResource extends APIResource {
|
|
|
141
141
|
*
|
|
142
142
|
* @param dongleId - ID of the dongle
|
|
143
143
|
*
|
|
144
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
144
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
145
145
|
*
|
|
146
146
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
147
147
|
*/
|
|
@@ -173,7 +173,7 @@ export class DonglesResource extends APIResource {
|
|
|
173
173
|
*
|
|
174
174
|
* @param dongleId - ID of the dongle
|
|
175
175
|
*
|
|
176
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND.
|
|
176
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
177
177
|
*
|
|
178
178
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
179
179
|
*/
|
|
@@ -185,6 +185,48 @@ export class DonglesResource extends APIResource {
|
|
|
185
185
|
})
|
|
186
186
|
.then(asStatus);
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* Set Wi-Fi isolation.
|
|
190
|
+
*
|
|
191
|
+
* Turns the Wi-Fi isolation of the modem on or off: devices on its Wi-Fi do not see each other or the computer on USB. The modem is asked for its mode first, and the mode is sent to it in the same request only when it reports another one. When the modem cannot be reached, answers an error, or loses the answer and then does not report the new mode, the mode stays as it was and the answer is 400 DONGLE_WIFI_API_EXCEPTION. On a loaded modem the request takes up to 45 seconds. Shown as dongle_setting.is_wifi_isolation_enabled in GET /dongle. Available from modem firmware 5.1.0; with older firmware the mode is only saved and the answer is 200: the modem gets it when it connects with 5.1.0 or newer.
|
|
192
|
+
*
|
|
193
|
+
* @param dongleId - ID of the dongle
|
|
194
|
+
*
|
|
195
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_SETTING_NOT_FOUND, DONGLE_WIFI_API_EXCEPTION.
|
|
196
|
+
*
|
|
197
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
198
|
+
*
|
|
199
|
+
* Needs modem firmware 5.1.0 or later.
|
|
200
|
+
*/
|
|
201
|
+
updateWifiIsolation(dongleId, params, options) {
|
|
202
|
+
return this._client
|
|
203
|
+
.request('PUT', `/dongle/${pathParam(dongleId)}/setting/wifi-isolation`, {
|
|
204
|
+
body: { is_enabled: params.is_enabled },
|
|
205
|
+
options,
|
|
206
|
+
})
|
|
207
|
+
.then(asStatus);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Set USB gateway mode.
|
|
211
|
+
*
|
|
212
|
+
* Makes the modem the gateway of the computer plugged into it over USB, or not; off by default; shown as dongle_setting.is_usb_gateway_enabled in GET /dongle. The value is sent to the modem at once: if the modem cannot be reached or rejects the command, the saved value is put back (400 DONGLE_SETTING_API_EXCEPTION); if the firmware of the modem cannot turn the gateway off, it is put back too (400 DONGLE_SETTING_USB_GATEWAY_NOT_SUPPORTED). The modem takes the setting with a reboot: after a change it reboots to apply it, even while a reboot is already in progress (dongle_online_status 7 while it reboots). A value equal to the saved one is checked with the modem; it is sent, and applied by a reboot, only when the modem reports another one. When the modem cannot be reached for that check, the answer is 400 DONGLE_SETTING_API_EXCEPTION as well. The modem reports the mode it has saved, not the one in effect: to apply a mode it has saved, reboot it (POST /dongle/{dongle_id}/reboot). Available from modem firmware 5.1.0; older firmware answers 400 DONGLE_SETTING_API_EXCEPTION.
|
|
213
|
+
*
|
|
214
|
+
* @param dongleId - ID of the dongle
|
|
215
|
+
*
|
|
216
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_SETTING_NOT_FOUND, DONGLE_SETTING_API_EXCEPTION, DONGLE_SETTING_USB_GATEWAY_NOT_SUPPORTED.
|
|
217
|
+
*
|
|
218
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
219
|
+
*
|
|
220
|
+
* Needs modem firmware 5.1.0 or later.
|
|
221
|
+
*/
|
|
222
|
+
updateUsbGateway(dongleId, params, options) {
|
|
223
|
+
return this._client
|
|
224
|
+
.request('PUT', `/dongle/${pathParam(dongleId)}/setting/usb-gateway`, {
|
|
225
|
+
body: { is_enabled: params.is_enabled },
|
|
226
|
+
options,
|
|
227
|
+
})
|
|
228
|
+
.then(asStatus);
|
|
229
|
+
}
|
|
188
230
|
/**
|
|
189
231
|
* Set modem number.
|
|
190
232
|
*
|
|
@@ -192,7 +234,7 @@ export class DonglesResource extends APIResource {
|
|
|
192
234
|
*
|
|
193
235
|
* @param dongleId - ID of the dongle
|
|
194
236
|
*
|
|
195
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION.
|
|
237
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
196
238
|
*
|
|
197
239
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
198
240
|
*/
|
|
@@ -220,11 +262,11 @@ export class DonglesResource extends APIResource {
|
|
|
220
262
|
/**
|
|
221
263
|
* Update modem.
|
|
222
264
|
*
|
|
223
|
-
* Only the listed body fields are read; unknown fields are ignored. An omitted field keeps its value. The billing fields tariff_package_id, is_tariff_package_enabled, order_dongle_id, is_deleted and is_active and the field imei_fake are outside the public API: a body with any of them is refused as a whole with 403 PUBLIC_API_FIELD_FORBIDDEN.
|
|
265
|
+
* Only the listed body fields are read; unknown fields are ignored. An omitted field keeps its value. The billing fields tariff_package_id, is_tariff_package_enabled, order_dongle_id, is_deleted and is_active and the field imei_fake are outside the public API: a body with any of them is refused as a whole with 403 PUBLIC_API_FIELD_FORBIDDEN, whatever the role of the key. Switching dongle_call_type_id to 1 (SIP) takes the call scenario off the modem first: a modem that does not take it off answers 400 DONGLE_ERROR_CALL_SCENARIO_NOT_REMOVED, and nothing is changed.
|
|
224
266
|
*
|
|
225
267
|
* @param dongleId - Identifier in the path
|
|
226
268
|
*
|
|
227
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, PUBLIC_API_FIELD_FORBIDDEN.
|
|
269
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_ERROR_CALL_SCENARIO_NOT_REMOVED, PUBLIC_API_FIELD_FORBIDDEN, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
228
270
|
*
|
|
229
271
|
* Capability the role of an organization API key needs: `device.manage`.
|
|
230
272
|
*/
|
|
@@ -248,7 +290,7 @@ export class DonglesResource extends APIResource {
|
|
|
248
290
|
*
|
|
249
291
|
* @param dongleId - Identifier in the path
|
|
250
292
|
*
|
|
251
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
293
|
+
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
252
294
|
*
|
|
253
295
|
* Capability the role of an organization API key needs: `device.view`.
|
|
254
296
|
*/
|
|
@@ -264,7 +306,7 @@ export class DonglesResource extends APIResource {
|
|
|
264
306
|
*
|
|
265
307
|
* @param dongleId - Identifier in the path
|
|
266
308
|
*
|
|
267
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
309
|
+
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
268
310
|
*
|
|
269
311
|
* Capability the role of an organization API key needs: `device.view`.
|
|
270
312
|
*/
|
|
@@ -280,7 +322,7 @@ export class DonglesResource extends APIResource {
|
|
|
280
322
|
*
|
|
281
323
|
* @param dongleId - Identifier in the path
|
|
282
324
|
*
|
|
283
|
-
* Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND.
|
|
325
|
+
* Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
284
326
|
*
|
|
285
327
|
* Capability the role of an organization API key needs: `device.view`.
|
|
286
328
|
*/
|