@edgeiq/edgeiq-api-js 1.3.7 → 1.3.10
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/README.md +55 -55
- package/dist/__tests__/auth.test.d.ts +1 -1
- package/dist/__tests__/auth.test.js +143 -143
- package/dist/__tests__/command.test.d.ts +1 -1
- package/dist/__tests__/command.test.js +201 -201
- package/dist/__tests__/companies.test.d.ts +1 -1
- package/dist/__tests__/companies.test.js +196 -196
- package/dist/__tests__/deviceErrors.test.d.ts +1 -1
- package/dist/__tests__/deviceErrors.test.js +72 -72
- package/dist/__tests__/deviceTypes.test.d.ts +1 -1
- package/dist/__tests__/deviceTypes.test.js +172 -172
- package/dist/__tests__/devices.test.d.ts +1 -1
- package/dist/__tests__/devices.test.js +204 -204
- package/dist/__tests__/discoveredDevice.test.d.ts +1 -1
- package/dist/__tests__/discoveredDevice.test.js +126 -126
- package/dist/__tests__/ingestors.test.d.ts +1 -1
- package/dist/__tests__/ingestors.test.js +172 -172
- package/dist/__tests__/integrations.test.d.ts +1 -1
- package/dist/__tests__/integrations.test.js +211 -211
- package/dist/__tests__/notifications.test.d.ts +1 -1
- package/dist/__tests__/notifications.test.js +72 -72
- package/dist/__tests__/pollableAttributes.test.d.ts +1 -1
- package/dist/__tests__/pollableAttributes.test.js +172 -172
- package/dist/__tests__/rules.test.d.ts +1 -1
- package/dist/__tests__/rules.test.js +172 -172
- package/dist/__tests__/testConstants.d.ts +7 -0
- package/dist/__tests__/testConstants.js +14 -0
- package/dist/__tests__/translators.test.d.ts +1 -1
- package/dist/__tests__/translators.test.js +172 -172
- package/dist/__tests__/users.test.d.ts +1 -1
- package/dist/__tests__/users.test.js +208 -208
- package/dist/auth/index.d.ts +8 -8
- package/dist/auth/index.js +158 -158
- package/dist/bulkResponses/index.d.ts +8 -8
- package/dist/bulkResponses/index.js +124 -124
- package/dist/bulkResponses/models.d.ts +43 -43
- package/dist/bulkResponses/models.js +2 -2
- package/dist/commands/index.d.ts +19 -19
- package/dist/commands/index.js +344 -344
- package/dist/commands/models.d.ts +39 -42
- package/dist/commands/models.js +16 -16
- package/dist/companies/index.d.ts +7 -7
- package/dist/companies/index.js +198 -198
- package/dist/companies/models.d.ts +97 -97
- package/dist/companies/models.js +2 -2
- package/dist/constants.d.ts +141 -141
- package/dist/constants.js +157 -157
- package/dist/core/ModelClass.d.ts +13 -13
- package/dist/core/ModelClass.js +19 -19
- package/dist/core/handleResponseError.d.ts +2 -2
- package/dist/core/handleResponseError.js +167 -167
- package/dist/core/index.d.ts +19 -19
- package/dist/core/index.js +63 -63
- package/dist/deviceConfigs/index.d.ts +9 -9
- package/dist/deviceConfigs/index.js +224 -224
- package/dist/deviceConfigs/models.d.ts +38 -38
- package/dist/deviceConfigs/models.js +2 -2
- package/dist/deviceErrors/index.d.ts +8 -8
- package/dist/deviceErrors/index.js +124 -124
- package/dist/deviceErrors/models.d.ts +19 -19
- package/dist/deviceErrors/models.js +2 -2
- package/dist/deviceLocationObservations/index.d.ts +5 -5
- package/dist/deviceLocationObservations/index.js +189 -189
- package/dist/deviceLocationObservations/models.d.ts +26 -26
- package/dist/deviceLocationObservations/models.js +2 -2
- package/dist/deviceTemplates/index.d.ts +9 -9
- package/dist/deviceTemplates/index.js +226 -226
- package/dist/deviceTemplates/models.d.ts +36 -36
- package/dist/deviceTemplates/models.js +2 -2
- package/dist/deviceTransferRequests/index.d.ts +10 -10
- package/dist/deviceTransferRequests/index.js +247 -247
- package/dist/deviceTransferRequests/models.d.ts +26 -26
- package/dist/deviceTransferRequests/models.js +2 -2
- package/dist/deviceTypes/index.d.ts +20 -20
- package/dist/deviceTypes/index.js +464 -464
- package/dist/deviceTypes/models.d.ts +104 -104
- package/dist/deviceTypes/models.js +2 -2
- package/dist/devices/index.d.ts +28 -28
- package/dist/devices/index.js +612 -612
- package/dist/devices/models.d.ts +113 -113
- package/dist/devices/models.js +2 -2
- package/dist/discoveredDevices/index.d.ts +15 -15
- package/dist/discoveredDevices/index.js +361 -361
- package/dist/discoveredDevices/models.d.ts +41 -41
- package/dist/discoveredDevices/models.js +2 -2
- package/dist/downstreamSystems/index.d.ts +7 -7
- package/dist/downstreamSystems/index.js +198 -198
- package/dist/downstreamSystems/models.d.ts +17 -17
- package/dist/downstreamSystems/models.js +2 -2
- package/dist/escrowDevices/index.d.ts +9 -9
- package/dist/escrowDevices/index.js +224 -224
- package/dist/escrowDevices/models.d.ts +21 -21
- package/dist/escrowDevices/models.js +2 -2
- package/dist/example/index.d.ts +1 -0
- package/dist/example/index.js +5 -0
- package/dist/filtersParser.d.ts +5 -5
- package/dist/filtersParser.js +54 -54
- package/dist/gatewayCommands/index.d.ts +10 -10
- package/dist/gatewayCommands/index.js +261 -261
- package/dist/gatewayCommands/models.d.ts +41 -41
- package/dist/gatewayCommands/models.js +2 -2
- package/dist/helpers.d.ts +3 -3
- package/dist/helpers.js +11 -11
- package/dist/index.d.ts +61 -61
- package/dist/index.js +105 -105
- package/dist/ingestors/index.d.ts +9 -9
- package/dist/ingestors/index.js +224 -224
- package/dist/ingestors/models.d.ts +97 -97
- package/dist/ingestors/models.js +2 -2
- package/dist/integrations/index.d.ts +10 -10
- package/dist/integrations/index.js +340 -340
- package/dist/integrations/models.d.ts +75 -75
- package/dist/integrations/models.js +2 -2
- package/dist/log/models.d.ts +6 -6
- package/dist/log/models.js +2 -2
- package/dist/lwm2m/models.d.ts +31 -31
- package/dist/lwm2m/models.js +2 -2
- package/dist/models/index.d.ts +1893 -1893
- package/dist/models/index.js +2 -2
- package/dist/models.d.ts +67 -67
- package/dist/models.js +2 -2
- package/dist/notifications/index.d.ts +8 -8
- package/dist/notifications/index.js +124 -124
- package/dist/notifications/models.d.ts +19 -19
- package/dist/notifications/models.js +2 -2
- package/dist/pollableAttributes/index.d.ts +7 -7
- package/dist/pollableAttributes/index.js +198 -198
- package/dist/pollableAttributes/models.d.ts +40 -40
- package/dist/pollableAttributes/models.js +2 -2
- package/dist/regions/index.d.ts +5 -5
- package/dist/regions/index.js +173 -173
- package/dist/regions/models.d.ts +17 -17
- package/dist/regions/models.js +2 -2
- package/dist/reports/index.d.ts +8 -8
- package/dist/reports/index.js +199 -199
- package/dist/reports/models.d.ts +25 -25
- package/dist/reports/models.js +2 -2
- package/dist/rules/index.d.ts +9 -9
- package/dist/rules/index.js +224 -224
- package/dist/rules/models.d.ts +127 -127
- package/dist/rules/models.js +2 -2
- package/dist/secrets/index.d.ts +8 -8
- package/dist/secrets/index.js +199 -199
- package/dist/secrets/models.d.ts +18 -17
- package/dist/secrets/models.js +2 -2
- package/dist/softwareUpdates/index.d.ts +10 -10
- package/dist/softwareUpdates/index.js +248 -248
- package/dist/softwareUpdates/models.d.ts +30 -30
- package/dist/softwareUpdates/models.js +2 -2
- package/dist/stats/index.d.ts +9 -9
- package/dist/stats/index.js +140 -140
- package/dist/stats/models.d.ts +27 -27
- package/dist/stats/models.js +2 -2
- package/dist/systemCommandJobs/index.d.ts +5 -5
- package/dist/systemCommandJobs/index.js +173 -173
- package/dist/systemCommandJobs/models.d.ts +32 -32
- package/dist/systemCommandJobs/models.js +2 -2
- package/dist/systemCommands/index.d.ts +7 -7
- package/dist/systemCommands/index.js +198 -198
- package/dist/systemCommands/models.d.ts +32 -32
- package/dist/systemCommands/models.js +2 -2
- package/dist/testConstants.d.ts +47 -47
- package/dist/testConstants.js +311 -311
- package/dist/translators/index.d.ts +9 -9
- package/dist/translators/index.js +224 -224
- package/dist/translators/models.d.ts +21 -21
- package/dist/translators/models.js +2 -2
- package/dist/userTypes/index.d.ts +7 -7
- package/dist/userTypes/index.js +198 -198
- package/dist/userTypes/models.d.ts +79 -79
- package/dist/userTypes/models.js +2 -2
- package/dist/users/index.d.ts +12 -12
- package/dist/users/index.js +300 -300
- package/dist/users/models.d.ts +41 -41
- package/dist/users/models.js +2 -2
- package/package.json +56 -56
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
-
export interface Branding {
|
|
3
|
-
logo_url: string;
|
|
4
|
-
icon_url: string;
|
|
5
|
-
primary_color: string;
|
|
6
|
-
logo_background_color: string;
|
|
7
|
-
portal_title: string;
|
|
8
|
-
secondary_color: string;
|
|
9
|
-
sidebar_text_color: string;
|
|
10
|
-
gradient_sidbar: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface Aliases {
|
|
13
|
-
gateway: string;
|
|
14
|
-
device: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ViewAbilities {
|
|
17
|
-
dashboard: boolean;
|
|
18
|
-
gateways: boolean;
|
|
19
|
-
devices: boolean;
|
|
20
|
-
reports: boolean;
|
|
21
|
-
errors: boolean;
|
|
22
|
-
customers: boolean;
|
|
23
|
-
roles: boolean;
|
|
24
|
-
companies: boolean;
|
|
25
|
-
integrations: boolean;
|
|
26
|
-
notifications: boolean;
|
|
27
|
-
firmware: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface PortalConfiguration {
|
|
30
|
-
navigation: PortalNavigationVisibility;
|
|
31
|
-
reports_options: ReportsOptions;
|
|
32
|
-
widgets: WidgetVisibility;
|
|
33
|
-
}
|
|
34
|
-
export interface PortalNavigationVisibility {
|
|
35
|
-
action_hub_hidden: boolean;
|
|
36
|
-
onboarding_hidden: boolean;
|
|
37
|
-
overview_hidden: boolean;
|
|
38
|
-
messages_hidden: boolean;
|
|
39
|
-
alerts_hidden: boolean;
|
|
40
|
-
lifecycle_hidden: boolean;
|
|
41
|
-
devices_hidden: boolean;
|
|
42
|
-
rules_hidden: boolean;
|
|
43
|
-
software_hidden: boolean;
|
|
44
|
-
integrations_hidden: boolean;
|
|
45
|
-
users_hidden: boolean;
|
|
46
|
-
roles_hidden: boolean;
|
|
47
|
-
companies_hidden: boolean;
|
|
48
|
-
configs_hidden: boolean;
|
|
49
|
-
ingest_hidden: boolean;
|
|
50
|
-
transfers_hidden: boolean;
|
|
51
|
-
ha_groups_hidden: boolean;
|
|
52
|
-
reports_hidden: boolean;
|
|
53
|
-
secrets_hidden: boolean;
|
|
54
|
-
pollable_attributes_hidden: boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface ReportsOptions {
|
|
57
|
-
time_filter_options: TimeFilterOption[];
|
|
58
|
-
}
|
|
59
|
-
export interface TimeFilterOption {
|
|
60
|
-
display: string;
|
|
61
|
-
value: string;
|
|
62
|
-
}
|
|
63
|
-
export interface WidgetVisibility {
|
|
64
|
-
software_updates_hidden: boolean;
|
|
65
|
-
data_usage_hidden: boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface CompanyInput {
|
|
68
|
-
_id: string;
|
|
69
|
-
company_id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
view_abilities: ViewAbilities;
|
|
72
|
-
portal_configuration: PortalConfiguration;
|
|
73
|
-
website?: string;
|
|
74
|
-
branding?: Branding;
|
|
75
|
-
aliases?: Aliases;
|
|
76
|
-
metadata?: {
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
};
|
|
79
|
-
inherited_device_type_ids?: string[];
|
|
80
|
-
inherited_integration_ids?: string[];
|
|
81
|
-
inherited_ingestor_ids?: string[];
|
|
82
|
-
inherited_translator_ids?: string[];
|
|
83
|
-
inherited_rule_ids?: string[];
|
|
84
|
-
inherited_pollable_attributes_ids?: string[];
|
|
85
|
-
inherited_workflow_definition_ids?: string[];
|
|
86
|
-
device_tags?: string[];
|
|
87
|
-
}
|
|
88
|
-
export interface Company extends CompanyInput, Base {
|
|
89
|
-
}
|
|
90
|
-
export interface CompaniesFilters extends Filters {
|
|
91
|
-
name?: Filter;
|
|
92
|
-
website?: Filter;
|
|
93
|
-
}
|
|
94
|
-
export interface PaginatedCompanies {
|
|
95
|
-
companies: Company[];
|
|
96
|
-
pagination: Pagination;
|
|
97
|
-
}
|
|
1
|
+
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
+
export interface Branding {
|
|
3
|
+
logo_url: string;
|
|
4
|
+
icon_url: string;
|
|
5
|
+
primary_color: string;
|
|
6
|
+
logo_background_color: string;
|
|
7
|
+
portal_title: string;
|
|
8
|
+
secondary_color: string;
|
|
9
|
+
sidebar_text_color: string;
|
|
10
|
+
gradient_sidbar: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface Aliases {
|
|
13
|
+
gateway: string;
|
|
14
|
+
device: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ViewAbilities {
|
|
17
|
+
dashboard: boolean;
|
|
18
|
+
gateways: boolean;
|
|
19
|
+
devices: boolean;
|
|
20
|
+
reports: boolean;
|
|
21
|
+
errors: boolean;
|
|
22
|
+
customers: boolean;
|
|
23
|
+
roles: boolean;
|
|
24
|
+
companies: boolean;
|
|
25
|
+
integrations: boolean;
|
|
26
|
+
notifications: boolean;
|
|
27
|
+
firmware: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface PortalConfiguration {
|
|
30
|
+
navigation: PortalNavigationVisibility;
|
|
31
|
+
reports_options: ReportsOptions;
|
|
32
|
+
widgets: WidgetVisibility;
|
|
33
|
+
}
|
|
34
|
+
export interface PortalNavigationVisibility {
|
|
35
|
+
action_hub_hidden: boolean;
|
|
36
|
+
onboarding_hidden: boolean;
|
|
37
|
+
overview_hidden: boolean;
|
|
38
|
+
messages_hidden: boolean;
|
|
39
|
+
alerts_hidden: boolean;
|
|
40
|
+
lifecycle_hidden: boolean;
|
|
41
|
+
devices_hidden: boolean;
|
|
42
|
+
rules_hidden: boolean;
|
|
43
|
+
software_hidden: boolean;
|
|
44
|
+
integrations_hidden: boolean;
|
|
45
|
+
users_hidden: boolean;
|
|
46
|
+
roles_hidden: boolean;
|
|
47
|
+
companies_hidden: boolean;
|
|
48
|
+
configs_hidden: boolean;
|
|
49
|
+
ingest_hidden: boolean;
|
|
50
|
+
transfers_hidden: boolean;
|
|
51
|
+
ha_groups_hidden: boolean;
|
|
52
|
+
reports_hidden: boolean;
|
|
53
|
+
secrets_hidden: boolean;
|
|
54
|
+
pollable_attributes_hidden: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface ReportsOptions {
|
|
57
|
+
time_filter_options: TimeFilterOption[];
|
|
58
|
+
}
|
|
59
|
+
export interface TimeFilterOption {
|
|
60
|
+
display: string;
|
|
61
|
+
value: string;
|
|
62
|
+
}
|
|
63
|
+
export interface WidgetVisibility {
|
|
64
|
+
software_updates_hidden: boolean;
|
|
65
|
+
data_usage_hidden: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface CompanyInput {
|
|
68
|
+
_id: string;
|
|
69
|
+
company_id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
view_abilities: ViewAbilities;
|
|
72
|
+
portal_configuration: PortalConfiguration;
|
|
73
|
+
website?: string;
|
|
74
|
+
branding?: Branding;
|
|
75
|
+
aliases?: Aliases;
|
|
76
|
+
metadata?: {
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
inherited_device_type_ids?: string[];
|
|
80
|
+
inherited_integration_ids?: string[];
|
|
81
|
+
inherited_ingestor_ids?: string[];
|
|
82
|
+
inherited_translator_ids?: string[];
|
|
83
|
+
inherited_rule_ids?: string[];
|
|
84
|
+
inherited_pollable_attributes_ids?: string[];
|
|
85
|
+
inherited_workflow_definition_ids?: string[];
|
|
86
|
+
device_tags?: string[];
|
|
87
|
+
}
|
|
88
|
+
export interface Company extends CompanyInput, Base {
|
|
89
|
+
}
|
|
90
|
+
export interface CompaniesFilters extends Filters {
|
|
91
|
+
name?: Filter;
|
|
92
|
+
website?: Filter;
|
|
93
|
+
}
|
|
94
|
+
export interface PaginatedCompanies {
|
|
95
|
+
companies: Company[];
|
|
96
|
+
pagination: Pagination;
|
|
97
|
+
}
|
package/dist/companies/models.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
export declare const defaultBaseUrl = "https://api.edgeiq.io/api/v1/platform/";
|
|
2
|
-
export declare const Errors: {
|
|
3
|
-
noInstance: string;
|
|
4
|
-
instanceInitiated: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const ResponseErrorsNames: {
|
|
7
|
-
disconnected: string;
|
|
8
|
-
unauthorized: string;
|
|
9
|
-
timeout: string;
|
|
10
|
-
credentials: string;
|
|
11
|
-
issueCommand: string;
|
|
12
|
-
csvUpload: string;
|
|
13
|
-
fileUpload: string;
|
|
14
|
-
duplicatedDevice: string;
|
|
15
|
-
deviceCharacters: string;
|
|
16
|
-
duplicateKey: string;
|
|
17
|
-
uniqueConstraint: string;
|
|
18
|
-
deviceConfig: string;
|
|
19
|
-
unEditableIntegration: string;
|
|
20
|
-
integrationMissinValues: string;
|
|
21
|
-
createError: string;
|
|
22
|
-
unexpected: string;
|
|
23
|
-
deviceLocationMissingValues: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const ResponseErrorsMessages: {
|
|
26
|
-
disconnected: string;
|
|
27
|
-
unauthorized: string;
|
|
28
|
-
timeout: string;
|
|
29
|
-
credentials: string;
|
|
30
|
-
noUser: string;
|
|
31
|
-
invalidPassword: string;
|
|
32
|
-
token: string;
|
|
33
|
-
notFound: string;
|
|
34
|
-
issueCommand: string;
|
|
35
|
-
csvUpload: string;
|
|
36
|
-
fileUpload: string;
|
|
37
|
-
deviceId: (unique_id: string) => string;
|
|
38
|
-
deviceCharacters: string;
|
|
39
|
-
emailUsed: (email: string) => string;
|
|
40
|
-
uniqueConstraint: (model: string) => string;
|
|
41
|
-
unEditableIntegration: (type: string) => string;
|
|
42
|
-
integrationMissinValues: (type: string, values: string[]) => string;
|
|
43
|
-
unexpected: string;
|
|
44
|
-
invalidTokenExpiration: string;
|
|
45
|
-
};
|
|
46
|
-
export declare const ErrorParts: {
|
|
47
|
-
deviceExists: string;
|
|
48
|
-
uniqueIdError: string;
|
|
49
|
-
duplicateKey: string;
|
|
50
|
-
uniqueConstraint: string;
|
|
51
|
-
};
|
|
52
|
-
export declare const getAttachMessage: (model: string, action: string, baseModel: string) => string;
|
|
53
|
-
export declare const BaseEndpoints: {
|
|
54
|
-
auth: string;
|
|
55
|
-
bulkResponse: string;
|
|
56
|
-
notification: string;
|
|
57
|
-
command: string;
|
|
58
|
-
company: string;
|
|
59
|
-
deviceConfig: string;
|
|
60
|
-
deviceError: string;
|
|
61
|
-
deviceTransferRequest: string;
|
|
62
|
-
deviceTemplate: string;
|
|
63
|
-
deviceType: string;
|
|
64
|
-
device: string;
|
|
65
|
-
deviceLocationObservation: string;
|
|
66
|
-
discoveredDevice: string;
|
|
67
|
-
downstreamSystem: string;
|
|
68
|
-
escrowDevice: string;
|
|
69
|
-
file: string;
|
|
70
|
-
gatewayCommand: string;
|
|
71
|
-
gatewayCsvUpload: string;
|
|
72
|
-
ingestor: string;
|
|
73
|
-
integration: string;
|
|
74
|
-
integrationEvent: string;
|
|
75
|
-
pollableAttribute: string;
|
|
76
|
-
lwm2mObjectLinks: string;
|
|
77
|
-
region: string;
|
|
78
|
-
report: string;
|
|
79
|
-
rule: string;
|
|
80
|
-
secret: string;
|
|
81
|
-
softwareUpdate: string;
|
|
82
|
-
stats: string;
|
|
83
|
-
systemCommand: string;
|
|
84
|
-
systemCommandJob: string;
|
|
85
|
-
translator: string;
|
|
86
|
-
userType: string;
|
|
87
|
-
user: string;
|
|
88
|
-
logs: string;
|
|
89
|
-
};
|
|
90
|
-
export declare const Endpoints: {
|
|
91
|
-
me: string;
|
|
92
|
-
login: string;
|
|
93
|
-
apiTokenReset: string;
|
|
94
|
-
passwordResetRequest: string;
|
|
95
|
-
passwordReset: string;
|
|
96
|
-
bulkResponse: string;
|
|
97
|
-
notification: string;
|
|
98
|
-
command: string;
|
|
99
|
-
company: string;
|
|
100
|
-
deviceConfig: string;
|
|
101
|
-
deviceError: string;
|
|
102
|
-
deviceTransferRequest: string;
|
|
103
|
-
deviceTemplate: string;
|
|
104
|
-
deviceType: string;
|
|
105
|
-
device: string;
|
|
106
|
-
diviceLwm2mObjetLinks: string;
|
|
107
|
-
deviceLocationObservation: string;
|
|
108
|
-
downstreamSystem: string;
|
|
109
|
-
discoveredDevice: string;
|
|
110
|
-
escrowDevice: string;
|
|
111
|
-
gatewayCommand: string;
|
|
112
|
-
ingestor: string;
|
|
113
|
-
integration: string;
|
|
114
|
-
integrationEvent: string;
|
|
115
|
-
pollableAttribute: string;
|
|
116
|
-
region: string;
|
|
117
|
-
report: string;
|
|
118
|
-
rule: string;
|
|
119
|
-
secret: string;
|
|
120
|
-
softwareUpdate: string;
|
|
121
|
-
statsDevicesByHeartbeat: string;
|
|
122
|
-
statsDiscoveredDevicesByHeartbeat: string;
|
|
123
|
-
statsDevicesByType: string;
|
|
124
|
-
statsCellUsage: string;
|
|
125
|
-
systemCommand: string;
|
|
126
|
-
systemCommandJob: string;
|
|
127
|
-
translator: string;
|
|
128
|
-
userType: string;
|
|
129
|
-
user: string;
|
|
130
|
-
logs: string;
|
|
131
|
-
};
|
|
132
|
-
export declare const MethodsActions: {
|
|
133
|
-
post: string;
|
|
134
|
-
put: string;
|
|
135
|
-
delete: string;
|
|
136
|
-
get: string;
|
|
137
|
-
};
|
|
138
|
-
export declare const DefaultPagination: {
|
|
139
|
-
page: number;
|
|
140
|
-
itemsPerPage: number;
|
|
141
|
-
};
|
|
1
|
+
export declare const defaultBaseUrl = "https://api.edgeiq.io/api/v1/platform/";
|
|
2
|
+
export declare const Errors: {
|
|
3
|
+
noInstance: string;
|
|
4
|
+
instanceInitiated: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const ResponseErrorsNames: {
|
|
7
|
+
disconnected: string;
|
|
8
|
+
unauthorized: string;
|
|
9
|
+
timeout: string;
|
|
10
|
+
credentials: string;
|
|
11
|
+
issueCommand: string;
|
|
12
|
+
csvUpload: string;
|
|
13
|
+
fileUpload: string;
|
|
14
|
+
duplicatedDevice: string;
|
|
15
|
+
deviceCharacters: string;
|
|
16
|
+
duplicateKey: string;
|
|
17
|
+
uniqueConstraint: string;
|
|
18
|
+
deviceConfig: string;
|
|
19
|
+
unEditableIntegration: string;
|
|
20
|
+
integrationMissinValues: string;
|
|
21
|
+
createError: string;
|
|
22
|
+
unexpected: string;
|
|
23
|
+
deviceLocationMissingValues: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const ResponseErrorsMessages: {
|
|
26
|
+
disconnected: string;
|
|
27
|
+
unauthorized: string;
|
|
28
|
+
timeout: string;
|
|
29
|
+
credentials: string;
|
|
30
|
+
noUser: string;
|
|
31
|
+
invalidPassword: string;
|
|
32
|
+
token: string;
|
|
33
|
+
notFound: string;
|
|
34
|
+
issueCommand: string;
|
|
35
|
+
csvUpload: string;
|
|
36
|
+
fileUpload: string;
|
|
37
|
+
deviceId: (unique_id: string) => string;
|
|
38
|
+
deviceCharacters: string;
|
|
39
|
+
emailUsed: (email: string) => string;
|
|
40
|
+
uniqueConstraint: (model: string) => string;
|
|
41
|
+
unEditableIntegration: (type: string) => string;
|
|
42
|
+
integrationMissinValues: (type: string, values: string[]) => string;
|
|
43
|
+
unexpected: string;
|
|
44
|
+
invalidTokenExpiration: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const ErrorParts: {
|
|
47
|
+
deviceExists: string;
|
|
48
|
+
uniqueIdError: string;
|
|
49
|
+
duplicateKey: string;
|
|
50
|
+
uniqueConstraint: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const getAttachMessage: (model: string, action: string, baseModel: string) => string;
|
|
53
|
+
export declare const BaseEndpoints: {
|
|
54
|
+
auth: string;
|
|
55
|
+
bulkResponse: string;
|
|
56
|
+
notification: string;
|
|
57
|
+
command: string;
|
|
58
|
+
company: string;
|
|
59
|
+
deviceConfig: string;
|
|
60
|
+
deviceError: string;
|
|
61
|
+
deviceTransferRequest: string;
|
|
62
|
+
deviceTemplate: string;
|
|
63
|
+
deviceType: string;
|
|
64
|
+
device: string;
|
|
65
|
+
deviceLocationObservation: string;
|
|
66
|
+
discoveredDevice: string;
|
|
67
|
+
downstreamSystem: string;
|
|
68
|
+
escrowDevice: string;
|
|
69
|
+
file: string;
|
|
70
|
+
gatewayCommand: string;
|
|
71
|
+
gatewayCsvUpload: string;
|
|
72
|
+
ingestor: string;
|
|
73
|
+
integration: string;
|
|
74
|
+
integrationEvent: string;
|
|
75
|
+
pollableAttribute: string;
|
|
76
|
+
lwm2mObjectLinks: string;
|
|
77
|
+
region: string;
|
|
78
|
+
report: string;
|
|
79
|
+
rule: string;
|
|
80
|
+
secret: string;
|
|
81
|
+
softwareUpdate: string;
|
|
82
|
+
stats: string;
|
|
83
|
+
systemCommand: string;
|
|
84
|
+
systemCommandJob: string;
|
|
85
|
+
translator: string;
|
|
86
|
+
userType: string;
|
|
87
|
+
user: string;
|
|
88
|
+
logs: string;
|
|
89
|
+
};
|
|
90
|
+
export declare const Endpoints: {
|
|
91
|
+
me: string;
|
|
92
|
+
login: string;
|
|
93
|
+
apiTokenReset: string;
|
|
94
|
+
passwordResetRequest: string;
|
|
95
|
+
passwordReset: string;
|
|
96
|
+
bulkResponse: string;
|
|
97
|
+
notification: string;
|
|
98
|
+
command: string;
|
|
99
|
+
company: string;
|
|
100
|
+
deviceConfig: string;
|
|
101
|
+
deviceError: string;
|
|
102
|
+
deviceTransferRequest: string;
|
|
103
|
+
deviceTemplate: string;
|
|
104
|
+
deviceType: string;
|
|
105
|
+
device: string;
|
|
106
|
+
diviceLwm2mObjetLinks: string;
|
|
107
|
+
deviceLocationObservation: string;
|
|
108
|
+
downstreamSystem: string;
|
|
109
|
+
discoveredDevice: string;
|
|
110
|
+
escrowDevice: string;
|
|
111
|
+
gatewayCommand: string;
|
|
112
|
+
ingestor: string;
|
|
113
|
+
integration: string;
|
|
114
|
+
integrationEvent: string;
|
|
115
|
+
pollableAttribute: string;
|
|
116
|
+
region: string;
|
|
117
|
+
report: string;
|
|
118
|
+
rule: string;
|
|
119
|
+
secret: string;
|
|
120
|
+
softwareUpdate: string;
|
|
121
|
+
statsDevicesByHeartbeat: string;
|
|
122
|
+
statsDiscoveredDevicesByHeartbeat: string;
|
|
123
|
+
statsDevicesByType: string;
|
|
124
|
+
statsCellUsage: string;
|
|
125
|
+
systemCommand: string;
|
|
126
|
+
systemCommandJob: string;
|
|
127
|
+
translator: string;
|
|
128
|
+
userType: string;
|
|
129
|
+
user: string;
|
|
130
|
+
logs: string;
|
|
131
|
+
};
|
|
132
|
+
export declare const MethodsActions: {
|
|
133
|
+
post: string;
|
|
134
|
+
put: string;
|
|
135
|
+
delete: string;
|
|
136
|
+
get: string;
|
|
137
|
+
};
|
|
138
|
+
export declare const DefaultPagination: {
|
|
139
|
+
page: number;
|
|
140
|
+
itemsPerPage: number;
|
|
141
|
+
};
|