Skip to content

Commit 2d7098a

Browse files
committed
feat: Added additional options for import and initialize to support the new init command.
1 parent 32b7825 commit 2d7098a

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/messages/import-request-data-schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
},
1010
"parameters": {
1111
"type": "object"
12+
},
13+
"autoSearchAll": {
14+
"type": "boolean",
15+
"default": false,
16+
"description": "If autoSearchAll is enabled then the resource will attempt to find all instances automatically and no input parameters are required. If it can't find anything then nothing will be returned."
1217
}
1318
},
1419
"required": ["core", "parameters"]

src/messages/initialize-request-data-schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
"title": "Initialize Request Schema Data",
55
"description": "Initialize the plugin",
66
"type": "object",
7-
"properties": {},
7+
"properties": {
8+
"verbosityLevel": {
9+
"type": "number",
10+
"default": 0,
11+
"description": "Initializes the plugin to return logs at a specified verbosity level with 0 being the lowest"
12+
}
13+
},
814
"additionalProperties": false
915
}

src/types/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export interface MatchResponseData {
140140
export interface ImportRequestData {
141141
core: ResourceConfig;
142142
parameters: Record<string, unknown>;
143+
autoSearchAll?: boolean;
143144
}
144145

145146
export interface ImportResponseData {
@@ -168,7 +169,9 @@ export interface ResourceDefinition {
168169
dependencies: string[];
169170
}
170171

171-
export interface InitializeRequestData {}
172+
export interface InitializeRequestData {
173+
verbosityLevel?: number;
174+
}
172175

173176
export interface InitializeResponseData {
174177
resourceDefinitions: Array<ResourceDefinition>;

0 commit comments

Comments
 (0)