@edgeiq/edgeiq-api-js 1.13.9 → 1.14.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/dist/__tests__/simEvents.types.test.d.ts +1 -0
- package/dist/__tests__/simEvents.types.test.js +97 -0
- package/dist/__tests__/simEvents.types.test.js.map +1 -0
- package/dist/__tests__/sims.test.d.ts +1 -0
- package/dist/__tests__/sims.test.js +93 -0
- package/dist/__tests__/sims.test.js.map +1 -0
- package/dist/bulkResponses/models.d.ts +3 -2
- package/dist/commandExecutions/index.d.ts +2 -2
- package/dist/commands/models.d.ts +2 -2
- package/dist/companies/models.d.ts +10 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -1
- package/dist/deviceConfigs/models.d.ts +6 -6
- package/dist/deviceEvents/models.d.ts +1 -1
- package/dist/deviceLocationObservations/index.d.ts +1 -1
- package/dist/deviceLocationObservations/models.d.ts +1 -1
- package/dist/deviceTypes/models.d.ts +2 -2
- package/dist/devices/index.js.map +1 -1
- package/dist/devices/models.d.ts +6 -5
- package/dist/filtersParser.d.ts +2 -2
- package/dist/fleets/models.d.ts +6 -6
- package/dist/gatewayCommands/models.d.ts +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/ingestors/models.d.ts +3 -3
- package/dist/integrations/models.d.ts +5 -3
- package/dist/lwm2m/index.d.ts +1 -1
- package/dist/models/index.d.ts +40 -40
- package/dist/models.d.ts +2 -2
- package/dist/networkInterfaceReports/index.d.ts +3 -3
- package/dist/pollableAttributes/models.d.ts +2 -2
- package/dist/regions/index.d.ts +1 -1
- package/dist/retryOptions/models.d.ts +1 -1
- package/dist/rules/models.d.ts +11 -11
- package/dist/settingsApplicationRecord/index.d.ts +1 -1
- package/dist/settingsApplicationRecord/models.d.ts +1 -1
- package/dist/simEvents/models.d.ts +14 -0
- package/dist/simEvents/models.js +2 -0
- package/dist/simEvents/models.js.map +1 -0
- package/dist/sims/index.d.ts +7 -0
- package/dist/sims/index.js +69 -0
- package/dist/sims/index.js.map +1 -0
- package/dist/sims/models.d.ts +34 -0
- package/dist/sims/models.js +2 -0
- package/dist/sims/models.js.map +1 -0
- package/dist/softwareUpdates/models.d.ts +1 -1
- package/dist/softwareVersions/index.d.ts +1 -1
- package/dist/softwareVersions/models.d.ts +1 -1
- package/dist/stats/index.d.ts +4 -4
- package/dist/systemCommandJobs/index.d.ts +1 -1
- package/dist/systemCommandJobs/models.d.ts +1 -1
- package/dist/systemCommands/models.d.ts +1 -1
- package/dist/testConstants.d.ts +5 -1
- package/dist/testConstants.js +15 -4
- package/dist/testConstants.js.map +1 -1
- package/dist/timeseries/models.d.ts +2 -2
- package/dist/translators/models.d.ts +1 -1
- package/dist/userEvents/index.d.ts +1 -1
- package/dist/userEvents/models.d.ts +1 -1
- package/dist/userTypes/models.d.ts +1 -1
- package/dist/workflowDefinitions/index.d.ts +1 -1
- package/dist/workflowExecutions/index.d.ts +1 -1
- package/dist/workflows/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
2
|
import { RetryOptions } from '../retryOptions/models';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type GatewayCommandType = 'activate_cloud_native_device' | 'backup' | 'data_restriction' | 'deactivate_cloud_native_device' | 'disable_data_restriction' | 'enable_data_restriction' | 'greengrass_initialize' | 'awsiot_attach_thing_groups' | 'awsiot_detach_thing_groups' | 'cancel_password_change' | 'file_from_device' | 'file_to_device' | 'heartbeat' | 'log_level' | 'log_upload' | 'lwm2m_request' | 'lwm2m_file' | 'network_connectivity_info' | 'network_connectivity_latency_test' | 'network_connectivity_performance_test' | 'restore_backup' | 'reboot' | 'reset' | 'send_config' | 'setting' | 'setting_fetch' | 'software_update' | 'software_version' | 'status';
|
|
4
|
+
export type CommandType = 'download' | 'fileupload' | 'filedownload' | 'execute' | 'observe' | 'observe_stop' | 'read' | 'upload' | 'write';
|
|
5
5
|
export interface CommandSchedule {
|
|
6
6
|
start_datetime: string;
|
|
7
7
|
end_datetime: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export { Rules } from './rules';
|
|
|
31
31
|
export { Secrets } from './secrets';
|
|
32
32
|
export { Settings } from './settings';
|
|
33
33
|
export { SettingApplicationRecords } from './settingsApplicationRecord';
|
|
34
|
+
export { Sims } from './sims';
|
|
34
35
|
export { SoftwareUpdates } from './softwareUpdates';
|
|
35
36
|
export { SoftwareVersions } from './softwareVersions';
|
|
36
37
|
export { Stats } from './stats';
|
|
@@ -80,6 +81,8 @@ export * from './rules/models';
|
|
|
80
81
|
export * from './secrets/models';
|
|
81
82
|
export * from './settings/models';
|
|
82
83
|
export * from './settingsApplicationRecord/models';
|
|
84
|
+
export * from './simEvents/models';
|
|
85
|
+
export * from './sims/models';
|
|
83
86
|
export * from './stats/models';
|
|
84
87
|
export * from './softwareUpdates/models';
|
|
85
88
|
export * from './softwareVersions/models';
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ export { Rules } from './rules';
|
|
|
31
31
|
export { Secrets } from './secrets';
|
|
32
32
|
export { Settings } from './settings';
|
|
33
33
|
export { SettingApplicationRecords } from './settingsApplicationRecord';
|
|
34
|
+
export { Sims } from './sims';
|
|
34
35
|
export { SoftwareUpdates } from './softwareUpdates';
|
|
35
36
|
export { SoftwareVersions } from './softwareVersions';
|
|
36
37
|
export { Stats } from './stats';
|
|
@@ -80,6 +81,8 @@ export * from './rules/models';
|
|
|
80
81
|
export * from './secrets/models';
|
|
81
82
|
export * from './settings/models';
|
|
82
83
|
export * from './settingsApplicationRecord/models';
|
|
84
|
+
export * from './simEvents/models';
|
|
85
|
+
export * from './sims/models';
|
|
83
86
|
export * from './stats/models';
|
|
84
87
|
export * from './softwareUpdates/models';
|
|
85
88
|
export * from './softwareVersions/models';
|
package/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Ac,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type ListenerType = 'shell_polling' | 'icmp_polling' | 'snmp_polling' | 'tcp_server' | 'tcp_client' | 'udp_server' | 'udp_client' | 'http_server' | 'http_client' | 'dev' | 'tcp_modbus' | 'opcua' | 'bacnet' | 'dbus_signal' | 'cloud' | 'cloud_polling_inmarsat' | 'cloud_polling_inmarsat_oauth' | 'cloud_polling_orbcomm' | 'cloud_gcp_pubsub_jci' | 'cloud_polling_assetlink';
|
|
3
|
+
export type IngestorType = 'edge' | 'cloud';
|
|
4
|
+
export type HandlerType = 'fixed' | 'delimited' | 'router' | 'dbus' | 'passthrough';
|
|
5
5
|
export interface ListenerParam {
|
|
6
6
|
address?: string;
|
|
7
7
|
request_type?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type IntegrationType = 'aws_device_integrations' | 'azure_device_integrations' | 'gcp_cloud_native_device_integrations' | 'gs_cloud_native_device_integrations' | 'inmarsat_cloud_native_device_integrations' | 'inmarsat_oauth_cloud_native_device_integrations' | 'orbcomm_cloud_native_device_integrations' | 'postmark_rule_action_integrations' | 'smtp_rule_action_integrations' | 'twilio_rule_action_integrations' | 'generic_username_password_integrations' | 'generic_token_integrations' | 'anthropic_integrations' | 'openai_integrations' | 'cmp_token';
|
|
3
|
+
export type GreengrassVersion = '' | 'v1' | 'v2';
|
|
4
4
|
export interface IntegrationInput {
|
|
5
5
|
name: string;
|
|
6
6
|
company_id: string;
|
|
@@ -51,6 +51,8 @@ export interface IntegrationInput {
|
|
|
51
51
|
gcp_project_id?: string;
|
|
52
52
|
gcp_service_account_key_secret_id?: string;
|
|
53
53
|
base_url?: string;
|
|
54
|
+
cmp_provider?: string;
|
|
55
|
+
cmp_account_id?: string;
|
|
54
56
|
}
|
|
55
57
|
export interface Integration extends IntegrationInput, Base {
|
|
56
58
|
readable_type?: string;
|
|
@@ -64,7 +66,7 @@ export interface PaginatedIntegrations {
|
|
|
64
66
|
integrations: Integration[];
|
|
65
67
|
pagination: Pagination;
|
|
66
68
|
}
|
|
67
|
-
export
|
|
69
|
+
export type IntegrationEventType = 'info' | 'error';
|
|
68
70
|
export interface IntegrationEvent extends Base {
|
|
69
71
|
type: IntegrationEventType;
|
|
70
72
|
message: string;
|
package/dist/lwm2m/index.d.ts
CHANGED
package/dist/models/index.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
1
|
+
export type AbilityType = string;
|
|
2
|
+
export type ActionType = string;
|
|
3
|
+
export type AppConfigType = string;
|
|
4
|
+
export type BodyType = string;
|
|
5
|
+
export type BulkRequestType = string;
|
|
6
|
+
export type BulkResponseStatusType = string;
|
|
7
|
+
export type DeviceClass = string;
|
|
8
|
+
export type DeviceEventType = string;
|
|
9
|
+
export type DeviceErrorType = string;
|
|
10
|
+
export type DeviceIntegrationActionType = string;
|
|
11
|
+
export type DType = string;
|
|
12
|
+
export type GatewayCommandType = string;
|
|
13
|
+
export type GeometryType = string;
|
|
14
|
+
export type HandlerType = string;
|
|
15
|
+
export type HealthProbeType = string;
|
|
16
|
+
export type HeartbeatStatusType = string;
|
|
17
|
+
export type IDType = string;
|
|
18
|
+
export type IngestorType = string;
|
|
19
|
+
export type IntegrationArchetype = string;
|
|
20
|
+
export type IntegrationType = string;
|
|
21
|
+
export type ListenerType = string;
|
|
22
|
+
export type LocationTransitionDirectionType = string;
|
|
23
|
+
export type ModelType = string;
|
|
24
|
+
export type OriginType = string;
|
|
25
|
+
export type ProvisionStatusType = string;
|
|
26
|
+
export type RestartPolicyTriggerType = string;
|
|
27
|
+
export type ReportType = string;
|
|
28
|
+
export type RuleConditionType = string;
|
|
29
|
+
export type SenderType = string;
|
|
30
|
+
export type SystemCommandJobStatusType = string;
|
|
31
|
+
export type TranslatorType = string;
|
|
32
|
+
export type UpstreamActionType = string;
|
|
33
|
+
export type ValueType = string;
|
|
34
|
+
export type BulkStatus = string;
|
|
35
|
+
export type DeviceHealthStatus = string;
|
|
36
|
+
export type DeviceLocationObservationVia = string;
|
|
37
|
+
export type DeviceTransferRequestStatus = string;
|
|
38
|
+
export type LogLevel = string;
|
|
39
|
+
export type RetryInterval = string;
|
|
40
|
+
export type Status = number;
|
|
41
41
|
export interface Lwm2mStateObject {
|
|
42
42
|
[index: string]: unknown;
|
|
43
43
|
}
|
package/dist/models.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ export interface PaginationFilter {
|
|
|
11
11
|
itemsPerPage: number;
|
|
12
12
|
order_by?: string;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type FilterOperatorType = 'eq' | 'ne' | 'like' | 'notlike' | 'ilike' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin' | 'incany' | 'incall';
|
|
15
15
|
export interface Filter {
|
|
16
16
|
operator: FilterOperatorType;
|
|
17
17
|
value: string | number | boolean | string[] | number[];
|
|
18
18
|
key?: string;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type ExecutionStatus = 'initiated' | 'info' | 'success' | 'error';
|
|
21
21
|
export interface Filters {
|
|
22
22
|
_id?: Filter;
|
|
23
23
|
company_id?: Filter;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NetworkInterfaceSummary, NetworkInterfaceInfo, NetworkInterfaceLatencyReport, NetworkInterfacePerformanceReport, NetworkInterfaceReport } from './models';
|
|
2
2
|
declare const NetworkInterfaceReports: {
|
|
3
3
|
getDeviceNetworkInterfaceReport: (id: string) => Promise<NetworkInterfaceReport>;
|
|
4
|
-
getDeviceNetworkInterfaceInfo: (device_id: string, interface_name?: string
|
|
5
|
-
getDeviceNetworkInterfaceLatency: (device_id: string, interface_name?: string
|
|
6
|
-
getDeviceNetworkInterfacePerformance: (device_id: string, interface_name?: string
|
|
4
|
+
getDeviceNetworkInterfaceInfo: (device_id: string, interface_name?: string) => Promise<NetworkInterfaceInfo>;
|
|
5
|
+
getDeviceNetworkInterfaceLatency: (device_id: string, interface_name?: string) => Promise<NetworkInterfaceLatencyReport>;
|
|
6
|
+
getDeviceNetworkInterfacePerformance: (device_id: string, interface_name?: string) => Promise<NetworkInterfacePerformanceReport>;
|
|
7
7
|
getDeviceNetworkConnectivity: (device_id: string) => Promise<{
|
|
8
8
|
[key: string]: NetworkInterfaceSummary;
|
|
9
9
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type PollableAttributeType = 'snmp_mib';
|
|
3
|
+
export type PollableAttributeDataType = 'snmp_mib_integer' | 'snmp_mib_octet_string';
|
|
4
4
|
export interface Attribute {
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
package/dist/regions/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModelInterface } from '../core/ModelClass';
|
|
2
2
|
import { Region, RegionInput, RegionsFilters, PaginatedRegions } from './models';
|
|
3
|
-
|
|
3
|
+
type RegionsInterface = BaseModelInterface<Region, RegionInput, RegionsFilters, PaginatedRegions>;
|
|
4
4
|
export declare const Regions: RegionsInterface;
|
|
5
5
|
export {};
|
package/dist/rules/models.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Lwm2mRequest } from '../gatewayCommands/models';
|
|
2
2
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
3
|
+
export type RuleConditionType = 'true' | 'false' | 'equal' | 'not_equal' | 'less_than' | 'less_than_equal' | 'greater_than' | 'greater_than_equal' | 'in' | 'not_in' | 'moving_average' | 'value_changed' | 'device_error' | 'status_changed' | 'heartbeat_status_changed' | 'device_location_transition' | 'and' | 'or' | 'contains' | 'device_created' | 'device_deleted' | 'device_joined_fleet' | 'device_left_fleet' | 'devices_changed' | 'fleet_created' | 'fleet_updated' | 'fleet_deleted' | 'fleet_action_triggered' | 'fleet_action_completed';
|
|
4
|
+
export type FleetActionStatus = 'success' | 'partial' | 'failed';
|
|
5
|
+
export type DeviceErrorType = 'system' | 'rule_action' | 'config' | 'aws_iot' | 'aws_greengrass_iot' | 'azure_iot' | 'bluemix_iot';
|
|
6
|
+
export type RuleActionType = 'aws_iot' | 'aws_iot_publish' | 'azure_iot' | 'create_device_health_status_event' | 'create_device_location_observation' | 'disable_data_restriction' | 'email' | 'enable_data_restriction' | 'greengrass_restart' | 'http_request' | 'mqtt' | 'notification' | 'relay' | 'sms' | 'tcp' | 'update_device_metadata' | 'workflow' | 'gateway_command';
|
|
7
|
+
export type RuleActionBodyType = 'html' | 'text';
|
|
8
|
+
export type LocationVia = 'gps' | 'cell_tower' | 'bluetooth' | 'wifi' | 'other';
|
|
9
|
+
export type GeneratedAtFormat = 'rfc3339' | 'unix_timestamp';
|
|
10
|
+
export type LocationTransitionDirectionType = 'arriving' | 'leaving';
|
|
11
|
+
export type DerivedValuesTypes = 'count' | 'min' | 'max' | 'avg' | 'sum' | 'convert_indexed_keys';
|
|
12
|
+
export type WhereConditionTypes = 'where' | 'or_where';
|
|
13
|
+
export type WhereConditionOperators = 'equal' | 'not_equal' | 'greater_than' | 'greater_than_equal' | 'less_than' | 'less_than_equal' | 'in' | 'not_in' | 'starts_with' | 'ends_with' | 'contains' | 'strict_contains' | 'length_equals' | 'length_not_equals' | 'length_greater_than' | 'length_greater_than_equal' | 'length_less_than' | 'length_less_than_equal';
|
|
14
14
|
export interface CredentialData {
|
|
15
15
|
type?: string;
|
|
16
16
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaginationFilter } from '../models';
|
|
2
2
|
import { SettingsApplicationRecordFilters, PaginatedSettingsApplicationRecord } from './models';
|
|
3
3
|
declare const SettingApplicationRecords: {
|
|
4
|
-
list(filters?: SettingsApplicationRecordFilters
|
|
4
|
+
list(filters?: SettingsApplicationRecordFilters, pagination?: PaginationFilter): Promise<PaginatedSettingsApplicationRecord>;
|
|
5
5
|
};
|
|
6
6
|
export { SettingApplicationRecords };
|
|
@@ -4,7 +4,7 @@ import { Command } from '../commands/models';
|
|
|
4
4
|
import { CommandExecution } from '../commandExecutions/models';
|
|
5
5
|
import { Device } from '../devices/models';
|
|
6
6
|
import { Setting } from '../settings/models';
|
|
7
|
-
export
|
|
7
|
+
export type SettingsApplicationRecordType = 'sent' | 'reported';
|
|
8
8
|
export interface SettingsApplicationRecord extends Base {
|
|
9
9
|
setting_id: string;
|
|
10
10
|
gateway_command_id: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface SimEvent {
|
|
2
|
+
id: string;
|
|
3
|
+
created_at: string;
|
|
4
|
+
sim_id: string;
|
|
5
|
+
device_id: string;
|
|
6
|
+
company_id: string;
|
|
7
|
+
event_type: SimEventType;
|
|
8
|
+
event_data: Record<string, unknown>;
|
|
9
|
+
previous_value: string;
|
|
10
|
+
new_value: string;
|
|
11
|
+
source: string;
|
|
12
|
+
workflow_execution_id: string;
|
|
13
|
+
}
|
|
14
|
+
export type SimEventType = 'assign' | 'unassign' | 'activate' | 'deactivate' | 'sync' | 'status_change' | 'change_rate_plan';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/simEvents/models.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseModelInterface } from '../core/ModelClass';
|
|
2
|
+
import { Sim, SimInput, SimsFilters, PaginatedSims } from './models';
|
|
3
|
+
interface SimsInterface extends BaseModelInterface<Sim, SimInput, SimsFilters, PaginatedSims> {
|
|
4
|
+
update(sim: Sim): Promise<Sim>;
|
|
5
|
+
}
|
|
6
|
+
export declare const Sims: SimsInterface;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { EdgeIQAPI } from '..';
|
|
11
|
+
import { Endpoints } from '../constants';
|
|
12
|
+
import { BaseModelClass } from '../core/ModelClass';
|
|
13
|
+
import { parseFilters } from '../filtersParser';
|
|
14
|
+
import { getReturnDeleteMessage } from '../helpers';
|
|
15
|
+
export const Sims = class extends BaseModelClass {
|
|
16
|
+
static create(sim) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
this.logAction(`Creating SIM with ICCID: ${sim.iccid}`);
|
|
19
|
+
const axios = EdgeIQAPI.getAxios();
|
|
20
|
+
const data = JSON.stringify(sim);
|
|
21
|
+
const result = yield axios.post(Endpoints.sim, data);
|
|
22
|
+
return result === null || result === void 0 ? void 0 : result.data;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static update(sim) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
this.logAction(`Updating SIM with id: ${sim._id}`);
|
|
28
|
+
const axios = EdgeIQAPI.getAxios();
|
|
29
|
+
const data = JSON.stringify(sim);
|
|
30
|
+
const result = yield axios.put(`${Endpoints.sim}/${sim._id}`, data);
|
|
31
|
+
return result === null || result === void 0 ? void 0 : result.data;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
static list(filters, pagination) {
|
|
35
|
+
var _a, _b, _c, _d;
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
this.logAction(`Listing SIMs with following filters: ${filters !== null && filters !== void 0 ? filters : '{}'}.\n And pagination ${pagination !== null && pagination !== void 0 ? pagination : '{}'}`);
|
|
38
|
+
const axios = EdgeIQAPI.getAxios();
|
|
39
|
+
const result = yield axios.get(Endpoints.sim, {
|
|
40
|
+
params: parseFilters(filters, pagination),
|
|
41
|
+
});
|
|
42
|
+
return {
|
|
43
|
+
sims: (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.resources,
|
|
44
|
+
pagination: {
|
|
45
|
+
page: (_b = result === null || result === void 0 ? void 0 : result.data) === null || _b === void 0 ? void 0 : _b.page,
|
|
46
|
+
itemsPerPage: (_c = result === null || result === void 0 ? void 0 : result.data) === null || _c === void 0 ? void 0 : _c.per_page,
|
|
47
|
+
total: (_d = result === null || result === void 0 ? void 0 : result.data) === null || _d === void 0 ? void 0 : _d.total,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
static getOneById(id) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
this.logAction(`Getting SIM with id: ${id}`);
|
|
55
|
+
const axios = EdgeIQAPI.getAxios();
|
|
56
|
+
const result = yield axios.get(`${Endpoints.sim}/${id}`);
|
|
57
|
+
return result === null || result === void 0 ? void 0 : result.data;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
static delete(id) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
this.logAction(`Deleting SIM with id ${id}`);
|
|
63
|
+
const axios = EdgeIQAPI.getAxios();
|
|
64
|
+
yield axios.delete(`${Endpoints.sim}/${id}`);
|
|
65
|
+
return getReturnDeleteMessage('sim');
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sims/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA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AM,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;YAC7C,OAAO,sBAAsB,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;KAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
+
export type SimStatus = 'inactive' | 'active' | 'suspended' | 'deactivated' | 'retired';
|
|
3
|
+
export interface SimInput {
|
|
4
|
+
device_id: string;
|
|
5
|
+
integration_id?: string;
|
|
6
|
+
iccid: string;
|
|
7
|
+
msisdn?: string;
|
|
8
|
+
sim_status?: SimStatus;
|
|
9
|
+
communication_plan?: string;
|
|
10
|
+
rate_plan?: string;
|
|
11
|
+
sim_metadata?: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
export interface Sim extends Base, SimInput {
|
|
14
|
+
ctd_data_usage: number;
|
|
15
|
+
ctd_sms_usage: number;
|
|
16
|
+
included_usage: number;
|
|
17
|
+
overage_limit_reached: boolean;
|
|
18
|
+
sim_barred: boolean;
|
|
19
|
+
last_sync_at?: string;
|
|
20
|
+
sim_status: SimStatus;
|
|
21
|
+
}
|
|
22
|
+
export interface SimsFilters extends Filters {
|
|
23
|
+
iccid?: Filter;
|
|
24
|
+
msisdn?: Filter;
|
|
25
|
+
device_id?: Filter;
|
|
26
|
+
integration_id?: Filter;
|
|
27
|
+
sim_status?: Filter;
|
|
28
|
+
sim_barred?: Filter;
|
|
29
|
+
overage_limit_reached?: Filter;
|
|
30
|
+
}
|
|
31
|
+
export interface PaginatedSims {
|
|
32
|
+
sims: Sim[];
|
|
33
|
+
pagination: Pagination;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/sims/models.ts"],"names":[],"mappings":""}
|
|
@@ -24,7 +24,7 @@ export interface PaginatedSoftwareUpdates {
|
|
|
24
24
|
softwareUpdates: SoftwareUpdate[];
|
|
25
25
|
pagination: Pagination;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type IssueSoftwareUpdateCommandType = 'software_update';
|
|
28
28
|
export interface IssueSoftwareUpdateInput {
|
|
29
29
|
ids: Array<string>;
|
|
30
30
|
software_update_id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginationFilter } from '..';
|
|
2
2
|
import { PaginatedSoftwareVersions, SoftwareVersion, SoftwareVersionsFilters } from './models';
|
|
3
3
|
declare const SoftwareVersions: {
|
|
4
|
-
list: (filters?: SoftwareVersionsFilters
|
|
4
|
+
list: (filters?: SoftwareVersionsFilters, pagination?: PaginationFilter) => Promise<PaginatedSoftwareVersions>;
|
|
5
5
|
listDistinctVersions: () => Promise<SoftwareVersion[]>;
|
|
6
6
|
};
|
|
7
7
|
export { SoftwareVersions };
|
package/dist/stats/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DevicesFilters } from '..';
|
|
2
2
|
import { CumulativeCellUsage, DevicesCountByHeartbeat, DevicesCountByType, NormalizedHeartbeatStats } from './models';
|
|
3
3
|
declare const Stats: {
|
|
4
|
-
devicesByHeartbeat: (filters?: DevicesFilters
|
|
5
|
-
normalizedDevicesByHeartbeat: (filters?: DevicesFilters
|
|
6
|
-
discoveredDevicesByHeartbeat: (filters?: DevicesFilters
|
|
7
|
-
devicesByType: (filters?: DevicesFilters
|
|
4
|
+
devicesByHeartbeat: (filters?: DevicesFilters) => Promise<DevicesCountByHeartbeat>;
|
|
5
|
+
normalizedDevicesByHeartbeat: (filters?: DevicesFilters) => Promise<NormalizedHeartbeatStats>;
|
|
6
|
+
discoveredDevicesByHeartbeat: (filters?: DevicesFilters) => Promise<DevicesCountByHeartbeat>;
|
|
7
|
+
devicesByType: (filters?: DevicesFilters) => Promise<DevicesCountByType>;
|
|
8
8
|
cellUsage: () => Promise<CumulativeCellUsage>;
|
|
9
9
|
};
|
|
10
10
|
export { Stats };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModelInterface } from '../core/ModelClass';
|
|
2
2
|
import { SystemCommandJob, SystemCommandJobInput, SystemCommandJobsFilters, PaginatedSystemCommandJobs } from './models';
|
|
3
|
-
|
|
3
|
+
type SystemCommandJobsInterface = BaseModelInterface<SystemCommandJob, SystemCommandJobInput, SystemCommandJobsFilters, PaginatedSystemCommandJobs>;
|
|
4
4
|
export declare const SystemCommandJobs: SystemCommandJobsInterface;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
-
export
|
|
2
|
+
export type SystemCommandJobStatusType = 'sent' | 'complete' | 'timeout';
|
|
3
3
|
export interface SystemCommandJobInput {
|
|
4
4
|
status: SystemCommandJobStatusType;
|
|
5
5
|
template_variables: {
|
package/dist/testConstants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntegrationInput, Company, CompanyInput, CommandInput, Device, DeviceInput, DiscoveredDeviceInput, DeviceType, DeviceTypeInput, User, UserInput, Integration, Ingestor, IngestorInput, PollableAttribute, PollableAttributeInput, Translator, TranslatorInput, Rule, RuleInput, FileInput, ScheduledJobInput, ScheduledJob } from '.';
|
|
1
|
+
import { IntegrationInput, Company, CompanyInput, CommandInput, Device, DeviceInput, DiscoveredDeviceInput, DeviceType, DeviceTypeInput, User, UserInput, Integration, Ingestor, IngestorInput, PollableAttribute, PollableAttributeInput, Translator, TranslatorInput, Rule, RuleInput, FileInput, ScheduledJobInput, ScheduledJob, Sim, SimInput } from '.';
|
|
2
2
|
import { Notification } from './notifications/models';
|
|
3
3
|
export declare const stageURL: {
|
|
4
4
|
url: string;
|
|
@@ -52,3 +52,7 @@ export declare const TestFile: FileInput;
|
|
|
52
52
|
export declare const NewTestScheduledJob = "New Test Schedule";
|
|
53
53
|
export declare const TestScheduledJob: ScheduledJobInput;
|
|
54
54
|
export declare const EmptyScheduledJob: ScheduledJob;
|
|
55
|
+
export declare const TestSim: Omit<SimInput, 'device_id'>;
|
|
56
|
+
export declare const TestSim2: Omit<SimInput, 'device_id'>;
|
|
57
|
+
export declare const EmptySim: Sim;
|
|
58
|
+
export declare const NewSimCommunicationPlan = "EIQSDK Test Plan Updated";
|
package/dist/testConstants.js
CHANGED
|
@@ -70,15 +70,16 @@ const portaleConfig = {
|
|
|
70
70
|
};
|
|
71
71
|
const uiConfiguration = {
|
|
72
72
|
navigation_visibility: {
|
|
73
|
+
automation_hidden: false,
|
|
74
|
+
billing_hidden: false,
|
|
75
|
+
configuration_hidden: false,
|
|
73
76
|
dashboard_hidden: false,
|
|
77
|
+
data_management_hidden: false,
|
|
74
78
|
devices_hidden: false,
|
|
75
|
-
configuration_hidden: false,
|
|
76
|
-
software_hidden: false,
|
|
77
79
|
integrations_hidden: false,
|
|
78
|
-
data_management_hidden: false,
|
|
79
|
-
automation_hidden: false,
|
|
80
80
|
messages_hidden: false,
|
|
81
81
|
scheduled_jobs_hidden: false,
|
|
82
|
+
software_hidden: false,
|
|
82
83
|
workflows_hidden: false,
|
|
83
84
|
},
|
|
84
85
|
};
|
|
@@ -391,4 +392,14 @@ export const TestScheduledJob = {
|
|
|
391
392
|
company_id: parentCompanyId,
|
|
392
393
|
};
|
|
393
394
|
export const EmptyScheduledJob = Object.assign(Object.assign(Object.assign({}, TestScheduledJob), baseModel), { last_run_time: '', next_run_time: '' });
|
|
395
|
+
export const TestSim = {
|
|
396
|
+
iccid: '8901260123456789012',
|
|
397
|
+
msisdn: '+15551234567',
|
|
398
|
+
sim_status: 'inactive',
|
|
399
|
+
communication_plan: 'EIQSDK Test Plan',
|
|
400
|
+
rate_plan: 'EIQSDK Test Rate',
|
|
401
|
+
};
|
|
402
|
+
export const TestSim2 = Object.assign(Object.assign({}, TestSim), { iccid: '8901260987654321098', msisdn: '+15559876543' });
|
|
403
|
+
export const EmptySim = Object.assign(Object.assign({}, baseModel), { device_id: '', iccid: '', sim_status: 'inactive', ctd_data_usage: 0, ctd_sms_usage: 0, included_usage: 0, overage_limit_reached: false, sim_barred: false });
|
|
404
|
+
export const NewSimCommunicationPlan = 'EIQSDK Test Plan Updated';
|
|
394
405
|
//# sourceMappingURL=testConstants.js.map
|