@edgeiq/edgeiq-api-js 1.2.11 → 1.2.14
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/commands/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { BaseModelInterface } from '../core/ModelClass';
|
|
|
2
2
|
import { BulkActionResponse } from '../models';
|
|
3
3
|
import { Command, CommandInput, CommandsFilters, PaginatedCommands } from './models';
|
|
4
4
|
interface CommandsInterface extends BaseModelInterface<Command, CommandInput, CommandsFilters, PaginatedCommands> {
|
|
5
|
+
update(command: Command): Promise<Command>;
|
|
5
6
|
deleteMultiple(ids: string[]): Promise<BulkActionResponse>;
|
|
6
7
|
assignToDevice(commandId: string, deviceId: string): Promise<string>;
|
|
7
8
|
assignToDeviceType(commandId: string, deviceTypeId: string): Promise<string>;
|
|
@@ -6,6 +6,17 @@ export interface Attribute {
|
|
|
6
6
|
value: string;
|
|
7
7
|
data_type: PollableAttributeDataType;
|
|
8
8
|
}
|
|
9
|
+
export interface MIBObject {
|
|
10
|
+
name: string;
|
|
11
|
+
OID: string;
|
|
12
|
+
type: string;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
objects?: MIBObject[];
|
|
15
|
+
}
|
|
16
|
+
export interface MIB {
|
|
17
|
+
identity: string;
|
|
18
|
+
objects?: MIBObject[];
|
|
19
|
+
}
|
|
9
20
|
export interface PollableAttributeInput {
|
|
10
21
|
type: PollableAttributeType;
|
|
11
22
|
name: string;
|
|
@@ -15,6 +26,7 @@ export interface PollableAttributeInput {
|
|
|
15
26
|
[key: string]: unknown;
|
|
16
27
|
};
|
|
17
28
|
attributes: Attribute[];
|
|
29
|
+
mib?: MIB;
|
|
18
30
|
}
|
|
19
31
|
export interface PollableAttribute extends PollableAttributeInput, Base {
|
|
20
32
|
}
|
package/dist/secrets/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BaseModelInterface } from '../core/ModelClass';
|
|
2
|
+
import { BulkActionResponse } from '../models';
|
|
2
3
|
import { Secret, SecretInput, SecretsFilters, PaginatedSecrets } from './models';
|
|
3
|
-
|
|
4
|
+
interface SecretsInterface extends BaseModelInterface<Secret, SecretInput, SecretsFilters, PaginatedSecrets> {
|
|
5
|
+
deleteMultiple(ids: string[]): Promise<BulkActionResponse>;
|
|
6
|
+
}
|
|
4
7
|
export declare const Secrets: SecretsInterface;
|
|
5
8
|
export {};
|
package/dist/secrets/index.js
CHANGED
|
@@ -169,5 +169,31 @@ exports.Secrets = (function (_super) {
|
|
|
169
169
|
});
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
+
class_1.deleteMultiple = function (ids) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
174
|
+
var axios, result, error_5;
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
switch (_a.label) {
|
|
177
|
+
case 0:
|
|
178
|
+
_a.trys.push([0, 2, , 3]);
|
|
179
|
+
this.logAction("Deleting secrets with id " + ids.join(', '));
|
|
180
|
+
axios = __1.EdgeIQAPI.getAxios();
|
|
181
|
+
return [4, axios.delete(constants_1.Endpoints.secret + "/bulk", {
|
|
182
|
+
data: { ids: ids },
|
|
183
|
+
})];
|
|
184
|
+
case 1:
|
|
185
|
+
result = _a.sent();
|
|
186
|
+
return [2, result === null || result === void 0 ? void 0 : result.data];
|
|
187
|
+
case 2:
|
|
188
|
+
error_5 = _a.sent();
|
|
189
|
+
if ((0, helpers_1.isApiError)(error_5)) {
|
|
190
|
+
throw error_5;
|
|
191
|
+
}
|
|
192
|
+
throw error_5;
|
|
193
|
+
case 3: return [2];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
};
|
|
172
198
|
return class_1;
|
|
173
199
|
}(ModelClass_1.BaseModelClass));
|
package/dist/secrets/models.d.ts
CHANGED