codify-schemas 1.0.20 → 1.0.21

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