@edgeiq/edgeiq-api-js 1.11.11 → 1.12.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/devices/index.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ interface DevicesInterface extends BaseModelInterface<Device, DeviceInput, Devic
|
|
|
44
44
|
bulkExecuteWorkflow(workflowId: string, ids: string[]): Promise<BulkActionResponse>;
|
|
45
45
|
revokeCertificate(id: string, certificateId: string, revoke: boolean): Promise<string>;
|
|
46
46
|
getExportColumns(): Promise<DeviceExportColumnn[]>;
|
|
47
|
-
getDeviceUptime(id: string, start
|
|
48
|
-
getDeviceUptimeHistory(id: string, start
|
|
47
|
+
getDeviceUptime(id: string, start?: string, end?: string): Promise<DeviceUptime>;
|
|
48
|
+
getDeviceUptimeHistory(id: string, start?: string, end?: string): Promise<DeviceUptimeHistory>;
|
|
49
49
|
}
|
|
50
50
|
export declare const Devices: DevicesInterface;
|
|
51
51
|
export {};
|
package/dist/devices/index.js
CHANGED
|
@@ -688,7 +688,7 @@ export const Devices = class extends BaseModelClass {
|
|
|
688
688
|
try {
|
|
689
689
|
this.logAction('Getting device uptime');
|
|
690
690
|
const axios = EdgeIQAPI.getAxios();
|
|
691
|
-
const result = yield axios.get(`${Endpoints.device}/${id}/uptime?start=${start}&end=${end}`);
|
|
691
|
+
const result = yield axios.get(`${Endpoints.device}/${id}/uptime${start || end ? '?' : ''}${start ? `created_at_gte=${start}` : ''}${start && end ? '&' : ''}${end ? `created_at_lte=${end}` : ''}`);
|
|
692
692
|
return result === null || result === void 0 ? void 0 : result.data;
|
|
693
693
|
}
|
|
694
694
|
catch (error) {
|
|
@@ -704,7 +704,7 @@ export const Devices = class extends BaseModelClass {
|
|
|
704
704
|
try {
|
|
705
705
|
this.logAction('Getting device uptime');
|
|
706
706
|
const axios = EdgeIQAPI.getAxios();
|
|
707
|
-
const result = yield axios.get(`${Endpoints.device}/${id}/uptime_history?start=${start}&end=${end}`);
|
|
707
|
+
const result = yield axios.get(`${Endpoints.device}/${id}/uptime_history${start || end ? '?' : ''}${start ? `created_at_gte=${start}` : ''}${start && end ? '&' : ''}${end ? `created_at_lte=${end}` : ''}`);
|
|
708
708
|
return result === null || result === void 0 ? void 0 : result.data;
|
|
709
709
|
}
|
|
710
710
|
catch (error) {
|
|
@@ -235,6 +235,12 @@ const checkRequiredValuesByType = (integration) => {
|
|
|
235
235
|
'password',
|
|
236
236
|
]);
|
|
237
237
|
}
|
|
238
|
+
if (integration.type === 'anthropic_integrations') {
|
|
239
|
+
missingValues = getRequiredValues(integration, ['token']);
|
|
240
|
+
}
|
|
241
|
+
if (integration.type === 'openai_integrations') {
|
|
242
|
+
missingValues = getRequiredValues(integration, ['token', 'base_url']);
|
|
243
|
+
}
|
|
238
244
|
if (integration.type === 'twilio_rule_action_integrations') {
|
|
239
245
|
missingValues = getRequiredValues(integration, ['sid', 'token', 'from']);
|
|
240
246
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
|
-
export declare type IntegrationType = 'aws_device_integrations' | 'azure_device_integrations' | 'gcp_cloud_native_device_integrations' | 'gs_cloud_native_device_integrations' | 'inmarsat_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';
|
|
2
|
+
export declare type IntegrationType = 'aws_device_integrations' | 'azure_device_integrations' | 'gcp_cloud_native_device_integrations' | 'gs_cloud_native_device_integrations' | 'inmarsat_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';
|
|
3
3
|
export declare type GreengrassVersion = '' | 'v1' | 'v2';
|
|
4
4
|
export interface IntegrationInput {
|
|
5
5
|
name: string;
|
|
@@ -48,6 +48,7 @@ export interface IntegrationInput {
|
|
|
48
48
|
identification_token?: string;
|
|
49
49
|
gcp_project_id?: string;
|
|
50
50
|
gcp_service_account_key_secret_id?: string;
|
|
51
|
+
base_url?: string;
|
|
51
52
|
}
|
|
52
53
|
export interface Integration extends IntegrationInput, Base {
|
|
53
54
|
readable_type?: string;
|
package/dist/models/index.d.ts
CHANGED