codify-schemas 1.0.21 → 1.0.23

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,207 +1,13 @@
1
- declare const ConfigFileSchema: {
2
- $schema: string;
3
- $id: string;
4
- title: string;
5
- type: string;
6
- items: {
7
- $ref: string;
8
- };
9
- };
10
- declare const ProjectSchema: {
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;
31
- };
32
- };
33
- };
34
- description: {
35
- description: string;
36
- type: string;
37
- };
38
- };
39
- additionalProperties: boolean;
40
- required: string[];
41
- };
42
- declare const ResourceSchema: {
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: {
61
- type: string;
62
- };
63
- uniqueItems: boolean;
64
- };
65
- };
66
- required: string[];
67
- };
68
- declare const IpcMessageSchema: {
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;
85
- };
86
- };
87
- required: string[];
88
- };
89
- declare const ApplyRequestDataSchema: {
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;
100
- };
101
- };
102
- required: string[];
103
- additionalProperties: boolean;
104
- };
105
- declare const ApplyResponseDataSchema: {
106
- $schema: string;
107
- $id: string;
108
- title: string;
109
- type: string;
110
- };
111
- declare const ErrorResponseDataSchema: {
112
- $schema: string;
113
- $id: string;
114
- title: string;
115
- type: string;
116
- properties: {
117
- reason: {
118
- description: string;
119
- type: string;
120
- };
121
- };
122
- required: string[];
123
- additionalProperties: boolean;
124
- };
125
- declare const PlanRequestDataSchema: {
126
- $schema: string;
127
- $id: string;
128
- title: string;
129
- $ref: string;
130
- };
131
- declare const PlanResponseDataSchema: {
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;
175
- };
176
- };
177
- required: string[];
178
- };
179
- };
180
- };
181
- required: string[];
182
- additionalProperties: boolean;
183
- };
184
- declare const ValidateRequestDataSchema: {
185
- $schema: string;
186
- $id: string;
187
- title: string;
188
- type: string;
189
- properties: {
190
- configs: {
191
- type: string;
192
- items: {
193
- $ref: string;
194
- };
195
- };
196
- };
197
- required: never[];
198
- additionalProperties: boolean;
199
- };
200
- declare const ValidateResponseDataSchema: {
201
- $schema: string;
202
- $id: string;
203
- title: string;
204
- type: string;
205
- };
1
+ import ConfigFileSchema from './config-file-schema.json';
2
+ import ProjectSchema from './project-schema.json';
3
+ import ResourceSchema from './resource-schema.json';
4
+ import IpcMessageSchema from './ipc-message-schema.json';
5
+ import ApplyRequestDataSchema from './messages/apply-request-data-schema.json';
6
+ import ApplyResponseDataSchema from './messages/apply-response-data-schema.json';
7
+ import ErrorResponseDataSchema from './messages/error-response-data-schema.json';
8
+ import PlanRequestDataSchema from './messages/plan-request-data-schema.json';
9
+ import PlanResponseDataSchema from './messages/plan-response-data-schema.json';
10
+ import ValidateRequestDataSchema from './messages/validate-request-data-schema.json';
11
+ import ValidateResponseDataSchema from './messages/validate-response-data-schema.json';
206
12
  export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, };
207
13
  export * from './types/index.js';
package/dist/index.js CHANGED
@@ -1,36 +1,14 @@
1
- const ConfigFileSchema = (await import('./config-file-schema.json', {
2
- assert: { type: 'json' }
3
- })).default;
4
- const ProjectSchema = (await import('./project-schema.json', {
5
- assert: { type: 'json' }
6
- })).default;
7
- const ResourceSchema = (await import('./resource-schema.json', {
8
- assert: { type: 'json' }
9
- })).default;
10
- const IpcMessageSchema = (await import('./ipc-message-schema.json', {
11
- assert: { type: 'json' }
12
- })).default;
13
- const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {
14
- assert: { type: 'json' }
15
- })).default;
16
- const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {
17
- assert: { type: 'json' }
18
- })).default;
19
- const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {
20
- assert: { type: 'json' }
21
- })).default;
22
- const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {
23
- assert: { type: 'json' }
24
- })).default;
25
- const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {
26
- assert: { type: 'json' }
27
- })).default;
28
- const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {
29
- assert: { type: 'json' }
30
- })).default;
31
- const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {
32
- assert: { type: 'json' }
33
- })).default;
1
+ import ConfigFileSchema from './config-file-schema.json' assert { type: 'json' };
2
+ import ProjectSchema from './project-schema.json' assert { type: 'json' };
3
+ import ResourceSchema from './resource-schema.json' assert { type: 'json' };
4
+ import IpcMessageSchema from './ipc-message-schema.json' assert { type: 'json' };
5
+ import ApplyRequestDataSchema from './messages/apply-request-data-schema.json' assert { type: 'json' };
6
+ import ApplyResponseDataSchema from './messages/apply-response-data-schema.json' assert { type: 'json' };
7
+ import ErrorResponseDataSchema from './messages/error-response-data-schema.json' assert { type: 'json' };
8
+ import PlanRequestDataSchema from './messages/plan-request-data-schema.json' assert { type: 'json' };
9
+ import PlanResponseDataSchema from './messages/plan-response-data-schema.json' assert { type: 'json' };
10
+ import ValidateRequestDataSchema from './messages/validate-request-data-schema.json' assert { type: 'json' };
11
+ import ValidateResponseDataSchema from './messages/validate-response-data-schema.json' assert { type: 'json' };
34
12
  export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, };
35
13
  export * from './types/index.js';
36
14
  //# 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,CAAC,MAAM,MAAM,CAAC,2BAA2B,EAAE;IAClE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAC,CAAC,OAAO,CAAC;AACZ,MAAM,aAAa,GAAG,CAAC,MAAM,MAAM,CAAC,uBAAuB,EAAE;IAC3D,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAC,CAAC,OAAO,CAAC;AACZ,MAAM,cAAc,GAAG,CAAC,MAAM,MAAM,CAAC,wBAAwB,EAAE;IAC7D,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;CACxB,CAAC,CAAC,CAAC,OAAO,CAAC;AACZ,MAAM,gB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CAAA;AAED,cAAc,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -1,36 +1,15 @@
1
- const ConfigFileSchema = (await import('./config-file-schema.json', {
2
- assert: { type: 'json'}
3
- })).default;
4
- const ProjectSchema = (await import('./project-schema.json', {
5
- assert: { type: 'json'}
6
- })).default;
7
- const ResourceSchema = (await import('./resource-schema.json', {
8
- assert: { type: 'json'}
9
- })).default;
10
- const IpcMessageSchema = (await import('./ipc-message-schema.json', {
11
- assert: { type: 'json'}
12
- })).default;
13
- const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {
14
- assert: { type: 'json'}
15
- })).default;
16
- const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {
17
- assert: { type: 'json'}
18
- })).default;
19
- const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {
20
- assert: { type: 'json'}
21
- })).default;
22
- const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {
23
- assert: { type: 'json'}
24
- })).default;
25
- const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {
26
- assert: { type: 'json'}
27
- })).default
28
- const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {
29
- assert: { type: 'json'}
30
- })).default;
31
- const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {
32
- assert: { type: 'json'}
33
- })).default;
1
+ // @ts-ignore
2
+ import ConfigFileSchema from './config-file-schema.json' assert { type: 'json'}
3
+ import ProjectSchema from './project-schema.json' assert { type: 'json'}
4
+ import ResourceSchema from './resource-schema.json' assert { type: 'json'}
5
+ import IpcMessageSchema from './ipc-message-schema.json' assert { type: 'json'}
6
+ import ApplyRequestDataSchema from './messages/apply-request-data-schema.json' assert { type: 'json'}
7
+ import ApplyResponseDataSchema from './messages/apply-response-data-schema.json' assert { type: 'json'}
8
+ import ErrorResponseDataSchema from './messages/error-response-data-schema.json' assert { type: 'json'}
9
+ import PlanRequestDataSchema from './messages/plan-request-data-schema.json' assert { type: 'json'}
10
+ import PlanResponseDataSchema from './messages/plan-response-data-schema.json' assert { type: 'json'}
11
+ import ValidateRequestDataSchema from './messages/validate-request-data-schema.json' assert { type: 'json'}
12
+ import ValidateResponseDataSchema from './messages/validate-response-data-schema.json' assert { type: 'json'}
34
13
 
35
14
  export {
36
15
  ConfigFileSchema,
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "module": "Node16",
4
- "moduleResolution": "Node16",
3
+ "module": "NodeNext",
4
+ "moduleResolution": "NodeNext",
5
5
  "sourceMap": true,
6
6
  "esModuleInterop": true,
7
7
  "resolveJsonModule": true,