codify-schemas 1.0.20 → 1.0.22
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/index.d.ts +155 -185
- package/dist/index.js +21 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -23
- package/tsconfig.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,229 +1,199 @@
|
|
|
1
|
-
|
|
2
|
-
default: {
|
|
3
|
-
$schema: string;
|
|
4
|
-
$id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
type: string;
|
|
7
|
-
items: {
|
|
8
|
-
$ref: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
1
|
+
import ConfigFileSchema from './config-file-schema.json';
|
|
12
2
|
declare const ProjectSchema: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
type: string;
|
|
34
|
-
};
|
|
3
|
+
$schema: string;
|
|
4
|
+
$id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
type: string;
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
description: string;
|
|
10
|
+
type: string;
|
|
11
|
+
const: string;
|
|
12
|
+
};
|
|
13
|
+
version: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
pattern: string;
|
|
17
|
+
};
|
|
18
|
+
plugins: {
|
|
19
|
+
type: string;
|
|
20
|
+
patternProperties: {
|
|
21
|
+
".*": {
|
|
22
|
+
type: string;
|
|
35
23
|
};
|
|
36
24
|
};
|
|
37
|
-
description: {
|
|
38
|
-
description: string;
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
25
|
};
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
description: {
|
|
27
|
+
description: string;
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
44
30
|
};
|
|
31
|
+
additionalProperties: boolean;
|
|
32
|
+
required: string[];
|
|
45
33
|
};
|
|
46
34
|
declare const ResourceSchema: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
35
|
+
$schema: string;
|
|
36
|
+
$id: string;
|
|
37
|
+
title: string;
|
|
38
|
+
type: string;
|
|
39
|
+
properties: {
|
|
40
|
+
type: {
|
|
41
|
+
description: string;
|
|
42
|
+
type: string;
|
|
43
|
+
pattern: string;
|
|
44
|
+
};
|
|
45
|
+
name: {
|
|
46
|
+
description: string;
|
|
47
|
+
type: string;
|
|
48
|
+
pattern: string;
|
|
49
|
+
};
|
|
50
|
+
dependsOn: {
|
|
51
|
+
type: string;
|
|
52
|
+
items: {
|
|
64
53
|
type: string;
|
|
65
|
-
items: {
|
|
66
|
-
type: string;
|
|
67
|
-
};
|
|
68
|
-
uniqueItems: boolean;
|
|
69
54
|
};
|
|
55
|
+
uniqueItems: boolean;
|
|
70
56
|
};
|
|
71
|
-
required: string[];
|
|
72
57
|
};
|
|
58
|
+
required: string[];
|
|
73
59
|
};
|
|
74
60
|
declare const IpcMessageSchema: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
description: string;
|
|
92
|
-
};
|
|
61
|
+
$schema: string;
|
|
62
|
+
$id: string;
|
|
63
|
+
title: string;
|
|
64
|
+
type: string;
|
|
65
|
+
properties: {
|
|
66
|
+
cmd: {
|
|
67
|
+
description: string;
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
status: {
|
|
71
|
+
description: string;
|
|
72
|
+
type: string;
|
|
73
|
+
enum: string[];
|
|
74
|
+
};
|
|
75
|
+
data: {
|
|
76
|
+
description: string;
|
|
93
77
|
};
|
|
94
|
-
required: string[];
|
|
95
78
|
};
|
|
79
|
+
required: string[];
|
|
96
80
|
};
|
|
97
81
|
declare const ApplyRequestDataSchema: {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
format: string;
|
|
109
|
-
};
|
|
82
|
+
$schema: string;
|
|
83
|
+
$id: string;
|
|
84
|
+
title: string;
|
|
85
|
+
description: string;
|
|
86
|
+
type: string;
|
|
87
|
+
properties: {
|
|
88
|
+
planId: {
|
|
89
|
+
description: string;
|
|
90
|
+
type: string;
|
|
91
|
+
format: string;
|
|
110
92
|
};
|
|
111
|
-
required: string[];
|
|
112
|
-
additionalProperties: boolean;
|
|
113
93
|
};
|
|
94
|
+
required: string[];
|
|
95
|
+
additionalProperties: boolean;
|
|
114
96
|
};
|
|
115
97
|
declare const ApplyResponseDataSchema: {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
type: string;
|
|
121
|
-
};
|
|
98
|
+
$schema: string;
|
|
99
|
+
$id: string;
|
|
100
|
+
title: string;
|
|
101
|
+
type: string;
|
|
122
102
|
};
|
|
123
103
|
declare const ErrorResponseDataSchema: {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
type: string;
|
|
133
|
-
};
|
|
104
|
+
$schema: string;
|
|
105
|
+
$id: string;
|
|
106
|
+
title: string;
|
|
107
|
+
type: string;
|
|
108
|
+
properties: {
|
|
109
|
+
reason: {
|
|
110
|
+
description: string;
|
|
111
|
+
type: string;
|
|
134
112
|
};
|
|
135
|
-
required: string[];
|
|
136
|
-
additionalProperties: boolean;
|
|
137
113
|
};
|
|
114
|
+
required: string[];
|
|
115
|
+
additionalProperties: boolean;
|
|
138
116
|
};
|
|
139
117
|
declare const PlanRequestDataSchema: {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
$ref: string;
|
|
145
|
-
};
|
|
118
|
+
$schema: string;
|
|
119
|
+
$id: string;
|
|
120
|
+
title: string;
|
|
121
|
+
$ref: string;
|
|
146
122
|
};
|
|
147
123
|
declare const PlanResponseDataSchema: {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
description: string;
|
|
192
|
-
};
|
|
124
|
+
$schema: string;
|
|
125
|
+
$id: string;
|
|
126
|
+
title: string;
|
|
127
|
+
type: string;
|
|
128
|
+
properties: {
|
|
129
|
+
planId: {
|
|
130
|
+
description: string;
|
|
131
|
+
type: string;
|
|
132
|
+
format: string;
|
|
133
|
+
};
|
|
134
|
+
operation: {
|
|
135
|
+
description: string;
|
|
136
|
+
type: string;
|
|
137
|
+
enum: string[];
|
|
138
|
+
};
|
|
139
|
+
resourceType: {
|
|
140
|
+
description: string;
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
resourceName: {
|
|
144
|
+
description: string;
|
|
145
|
+
type: string[];
|
|
146
|
+
};
|
|
147
|
+
parameters: {
|
|
148
|
+
description: string;
|
|
149
|
+
type: string;
|
|
150
|
+
items: {
|
|
151
|
+
type: string;
|
|
152
|
+
properties: {
|
|
153
|
+
name: {
|
|
154
|
+
description: string;
|
|
155
|
+
type: string;
|
|
156
|
+
};
|
|
157
|
+
operation: {
|
|
158
|
+
description: string;
|
|
159
|
+
type: string;
|
|
160
|
+
enum: string[];
|
|
161
|
+
};
|
|
162
|
+
previousValue: {
|
|
163
|
+
description: string;
|
|
164
|
+
};
|
|
165
|
+
newValue: {
|
|
166
|
+
description: string;
|
|
193
167
|
};
|
|
194
|
-
required: string[];
|
|
195
168
|
};
|
|
169
|
+
required: string[];
|
|
196
170
|
};
|
|
197
171
|
};
|
|
198
|
-
required: string[];
|
|
199
|
-
additionalProperties: boolean;
|
|
200
172
|
};
|
|
173
|
+
required: string[];
|
|
174
|
+
additionalProperties: boolean;
|
|
201
175
|
};
|
|
202
176
|
declare const ValidateRequestDataSchema: {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
$ref: string;
|
|
213
|
-
};
|
|
177
|
+
$schema: string;
|
|
178
|
+
$id: string;
|
|
179
|
+
title: string;
|
|
180
|
+
type: string;
|
|
181
|
+
properties: {
|
|
182
|
+
configs: {
|
|
183
|
+
type: string;
|
|
184
|
+
items: {
|
|
185
|
+
$ref: string;
|
|
214
186
|
};
|
|
215
187
|
};
|
|
216
|
-
required: never[];
|
|
217
|
-
additionalProperties: boolean;
|
|
218
188
|
};
|
|
189
|
+
required: never[];
|
|
190
|
+
additionalProperties: boolean;
|
|
219
191
|
};
|
|
220
192
|
declare const ValidateResponseDataSchema: {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
type: string;
|
|
226
|
-
};
|
|
193
|
+
$schema: string;
|
|
194
|
+
$id: string;
|
|
195
|
+
title: string;
|
|
196
|
+
type: string;
|
|
227
197
|
};
|
|
228
198
|
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, };
|
|
229
199
|
export * from './types/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import ConfigFileSchema from './config-file-schema.json' assert { type: 'json' };
|
|
2
|
+
const ProjectSchema = (await import('./project-schema.json', {
|
|
2
3
|
assert: { type: 'json' }
|
|
3
|
-
});
|
|
4
|
-
const
|
|
4
|
+
})).default;
|
|
5
|
+
const ResourceSchema = (await import('./resource-schema.json', {
|
|
5
6
|
assert: { type: 'json' }
|
|
6
|
-
});
|
|
7
|
-
const
|
|
7
|
+
})).default;
|
|
8
|
+
const IpcMessageSchema = (await import('./ipc-message-schema.json', {
|
|
8
9
|
assert: { type: 'json' }
|
|
9
|
-
});
|
|
10
|
-
const
|
|
10
|
+
})).default;
|
|
11
|
+
const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {
|
|
11
12
|
assert: { type: 'json' }
|
|
12
|
-
});
|
|
13
|
-
const
|
|
13
|
+
})).default;
|
|
14
|
+
const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {
|
|
14
15
|
assert: { type: 'json' }
|
|
15
|
-
});
|
|
16
|
-
const
|
|
16
|
+
})).default;
|
|
17
|
+
const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {
|
|
17
18
|
assert: { type: 'json' }
|
|
18
|
-
});
|
|
19
|
-
const
|
|
19
|
+
})).default;
|
|
20
|
+
const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {
|
|
20
21
|
assert: { type: 'json' }
|
|
21
|
-
});
|
|
22
|
-
const
|
|
22
|
+
})).default;
|
|
23
|
+
const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {
|
|
23
24
|
assert: { type: 'json' }
|
|
24
|
-
});
|
|
25
|
-
const
|
|
25
|
+
})).default;
|
|
26
|
+
const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {
|
|
26
27
|
assert: { type: 'json' }
|
|
27
|
-
});
|
|
28
|
-
const
|
|
28
|
+
})).default;
|
|
29
|
+
const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {
|
|
29
30
|
assert: { type: 'json' }
|
|
30
|
-
});
|
|
31
|
-
const ValidateResponseDataSchema = await import('./messages/validate-response-data-schema.json', {
|
|
32
|
-
assert: { type: 'json' }
|
|
33
|
-
});
|
|
31
|
+
})).default;
|
|
34
32
|
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, };
|
|
35
33
|
export * from './types/index.js';
|
|
36
34
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,gBAAgB,MAAM,2BAA2B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AAC/E,MAAM,aAAa,GAAG,CAAC,MAAM,MAAM,CAAC,uBAAuB,EAAE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,MAAM,EAAC;CACxB,CAAC,CAAC,CAAC,OAAO,CAAC;AACZ,MAAM,0BAA0B,GAAG,CAAC,MAAM,MAAM,CAAC,+CAA+C,EAAE;IAChG,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAC,CAAC,OAAO,CAAC;AAEZ,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,CAAA;AAED,cAAc,kBAAkB,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import ConfigFileSchema from './config-file-schema.json' assert { type: 'json'}
|
|
3
|
+
const ProjectSchema = (await import('./project-schema.json', {
|
|
2
4
|
assert: { type: 'json'}
|
|
3
|
-
})
|
|
4
|
-
const
|
|
5
|
+
})).default;
|
|
6
|
+
const ResourceSchema = (await import('./resource-schema.json', {
|
|
5
7
|
assert: { type: 'json'}
|
|
6
|
-
})
|
|
7
|
-
const
|
|
8
|
+
})).default;
|
|
9
|
+
const IpcMessageSchema = (await import('./ipc-message-schema.json', {
|
|
8
10
|
assert: { type: 'json'}
|
|
9
|
-
})
|
|
10
|
-
const
|
|
11
|
+
})).default;
|
|
12
|
+
const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {
|
|
11
13
|
assert: { type: 'json'}
|
|
12
|
-
})
|
|
13
|
-
const
|
|
14
|
+
})).default;
|
|
15
|
+
const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {
|
|
14
16
|
assert: { type: 'json'}
|
|
15
|
-
})
|
|
16
|
-
const
|
|
17
|
+
})).default;
|
|
18
|
+
const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {
|
|
17
19
|
assert: { type: 'json'}
|
|
18
|
-
})
|
|
19
|
-
const
|
|
20
|
+
})).default;
|
|
21
|
+
const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {
|
|
20
22
|
assert: { type: 'json'}
|
|
21
|
-
})
|
|
22
|
-
const
|
|
23
|
+
})).default;
|
|
24
|
+
const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {
|
|
23
25
|
assert: { type: 'json'}
|
|
24
|
-
})
|
|
25
|
-
const
|
|
26
|
+
})).default
|
|
27
|
+
const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {
|
|
26
28
|
assert: { type: 'json'}
|
|
27
|
-
})
|
|
28
|
-
const
|
|
29
|
+
})).default;
|
|
30
|
+
const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {
|
|
29
31
|
assert: { type: 'json'}
|
|
30
|
-
})
|
|
31
|
-
const ValidateResponseDataSchema = await import('./messages/validate-response-data-schema.json', {
|
|
32
|
-
assert: { type: 'json'}
|
|
33
|
-
})
|
|
32
|
+
})).default;
|
|
34
33
|
|
|
35
34
|
export {
|
|
36
35
|
ConfigFileSchema,
|