codify-schemas 1.0.15 → 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 CHANGED
@@ -1,12 +1,229 @@
1
- export { default as ConfigFileSchema } from './config-file-schema.json';
2
- export { default as ProjectSchema } from './project-schema.json';
3
- export { default as ResourceSchema } from './resource-schema.json';
4
- export { default as IpcMessageSchema } from './ipc-message-schema.json';
5
- export { default as ApplyRequestDataSchema } from './messages/apply-request-data-schema.json';
6
- export { default as ApplyResponseDataSchema } from './messages/apply-response-data-schema.json';
7
- export { default as ErrorResponseDataSchema } from './messages/error-response-data-schema.json';
8
- export { default as PlanRequestDataSchema } from './messages/plan-request-data-schema.json';
9
- export { default as PlanResponseDataSchema } from './messages/plan-response-data-schema.json';
10
- export { default as ValidateRequestDataSchema } from './messages/validate-request-data-schema.json';
11
- export { default as ValidateResponseDataSchema } from './messages/validate-response-data-schema.json';
1
+ declare const ConfigFileSchema: {
2
+ default: {
3
+ $schema: string;
4
+ $id: string;
5
+ title: string;
6
+ type: string;
7
+ items: {
8
+ $ref: string;
9
+ };
10
+ };
11
+ };
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, };
12
229
  export * from './types/index.js';
package/dist/index.js CHANGED
@@ -1,13 +1,36 @@
1
- export { default as ConfigFileSchema } from './config-file-schema.json';
2
- export { default as ProjectSchema } from './project-schema.json';
3
- export { default as ResourceSchema } from './resource-schema.json';
4
- export { default as IpcMessageSchema } from './ipc-message-schema.json';
5
- export { default as ApplyRequestDataSchema } from './messages/apply-request-data-schema.json';
6
- export { default as ApplyResponseDataSchema } from './messages/apply-response-data-schema.json';
7
- export { default as ErrorResponseDataSchema } from './messages/error-response-data-schema.json';
8
- export { default as PlanRequestDataSchema } from './messages/plan-request-data-schema.json';
9
- export { default as PlanResponseDataSchema } from './messages/plan-response-data-schema.json';
10
- export { default as ValidateRequestDataSchema } from './messages/validate-request-data-schema.json';
11
- export { default as ValidateResponseDataSchema } from './messages/validate-response-data-schema.json';
1
+ const ConfigFileSchema = await import('./config-file-schema.json', {
2
+ assert: { type: 'json' }
3
+ });
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, };
12
35
  export * from './types/index.js';
13
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,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,a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M,MAAM,CAAC,2CAA2C,EAAE;IACvF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAA;AACF,MAAM,uBAAuB,GAAG,MAAM,MAAM,CAAC,4CAA4C,EAAE;IACzF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAA;AACF,MAAM,uBAAuB,GAAG,MAAM,MAAM,CAAC,4CAA4C,EAAE;IACzF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAA;AACF,MAAM,qBAAqB,GAAG,MAAM,MAAM,CAAC,0CAA0C,EAAE;IACrF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAA;AACF,MAAM,sBAAsB,GAAG,MAAM,MAAM,CAAC,2CAA2C,EAAE;IACvF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -1,12 +1,49 @@
1
- export { default as ConfigFileSchema } from './config-file-schema.json';
2
- export { default as ProjectSchema } from './project-schema.json';
3
- export { default as ResourceSchema } from './resource-schema.json';
4
- export { default as IpcMessageSchema } from './ipc-message-schema.json';
5
- export { default as ApplyRequestDataSchema } from './messages/apply-request-data-schema.json';
6
- export { default as ApplyResponseDataSchema } from './messages/apply-response-data-schema.json'
7
- export { default as ErrorResponseDataSchema } from './messages/error-response-data-schema.json';
8
- export { default as PlanRequestDataSchema } from './messages/plan-request-data-schema.json';
9
- export { default as PlanResponseDataSchema } from './messages/plan-response-data-schema.json';
10
- export { default as ValidateRequestDataSchema } from './messages/validate-request-data-schema.json';
11
- export { default as ValidateResponseDataSchema } from './messages/validate-response-data-schema.json';
1
+ const ConfigFileSchema = await import('./config-file-schema.json', {
2
+ assert: { type: 'json'}
3
+ })
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
+
12
49
  export * from './types/index.js';