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