codify-schemas 1.0.22 → 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,199 +1,13 @@
1
1
  import ConfigFileSchema from './config-file-schema.json';
2
- declare const ProjectSchema: {
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;
23
- };
24
- };
25
- };
26
- description: {
27
- description: string;
28
- type: string;
29
- };
30
- };
31
- additionalProperties: boolean;
32
- required: string[];
33
- };
34
- declare const ResourceSchema: {
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: {
53
- type: string;
54
- };
55
- uniqueItems: boolean;
56
- };
57
- };
58
- required: string[];
59
- };
60
- declare const IpcMessageSchema: {
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;
77
- };
78
- };
79
- required: string[];
80
- };
81
- declare const ApplyRequestDataSchema: {
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;
92
- };
93
- };
94
- required: string[];
95
- additionalProperties: boolean;
96
- };
97
- declare const ApplyResponseDataSchema: {
98
- $schema: string;
99
- $id: string;
100
- title: string;
101
- type: string;
102
- };
103
- declare const ErrorResponseDataSchema: {
104
- $schema: string;
105
- $id: string;
106
- title: string;
107
- type: string;
108
- properties: {
109
- reason: {
110
- description: string;
111
- type: string;
112
- };
113
- };
114
- required: string[];
115
- additionalProperties: boolean;
116
- };
117
- declare const PlanRequestDataSchema: {
118
- $schema: string;
119
- $id: string;
120
- title: string;
121
- $ref: string;
122
- };
123
- declare const PlanResponseDataSchema: {
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;
167
- };
168
- };
169
- required: string[];
170
- };
171
- };
172
- };
173
- required: string[];
174
- additionalProperties: boolean;
175
- };
176
- declare const ValidateRequestDataSchema: {
177
- $schema: string;
178
- $id: string;
179
- title: string;
180
- type: string;
181
- properties: {
182
- configs: {
183
- type: string;
184
- items: {
185
- $ref: string;
186
- };
187
- };
188
- };
189
- required: never[];
190
- additionalProperties: boolean;
191
- };
192
- declare const ValidateResponseDataSchema: {
193
- $schema: string;
194
- $id: string;
195
- title: string;
196
- type: string;
197
- };
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';
198
12
  export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, };
199
13
  export * from './types/index.js';
package/dist/index.js CHANGED
@@ -1,34 +1,14 @@
1
1
  import ConfigFileSchema from './config-file-schema.json' assert { type: 'json' };
2
- const ProjectSchema = (await import('./project-schema.json', {
3
- assert: { type: 'json' }
4
- })).default;
5
- const ResourceSchema = (await import('./resource-schema.json', {
6
- assert: { type: 'json' }
7
- })).default;
8
- const IpcMessageSchema = (await import('./ipc-message-schema.json', {
9
- assert: { type: 'json' }
10
- })).default;
11
- const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {
12
- assert: { type: 'json' }
13
- })).default;
14
- const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {
15
- assert: { type: 'json' }
16
- })).default;
17
- const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {
18
- assert: { type: 'json' }
19
- })).default;
20
- const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {
21
- assert: { type: 'json' }
22
- })).default;
23
- const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {
24
- assert: { type: 'json' }
25
- })).default;
26
- const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {
27
- assert: { type: 'json' }
28
- })).default;
29
- const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {
30
- assert: { type: 'json' }
31
- })).default;
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' };
32
12
  export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, };
33
13
  export * from './types/index.js';
34
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":"AACA,OAAO,gBAAgB,MAAM,2BAA2B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AAC/E,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,gBAAgB,GAAG,CAAC,MAAM,MAAM,CAAC,2BAA2B,EAAE;IAClE,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,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AgB,MAAM,2BAA2B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AAC/E,OAAO,aAAa,MAAM,uBAAuB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AACxE,OAAO,cAAc,MAAM,wBAAwB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AAC1E,OAAO,gBAAgB,MAAM,2BAA2B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AAC/E,OAAO,sBAAsB,MAAM,2CAA2C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AACrG,OAAO,uBAAuB,MAAM,4CAA4C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AACvG,OAAO,uBAAuB,MAAM,4CAA4C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AACvG,OAAO,qBAAqB,MAAM,0CAA0C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AACnG,OAAO,sBAAsB,MAAM,2CAA2C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AACrG,OAAO,yBAAyB,MAAM,8CAA8C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AAC3G,OAAO,0BAA0B,MAAM,+CAA+C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAC,CAAA;AAE7G,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.22",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -1,35 +1,15 @@
1
1
  // @ts-ignore
2
2
  import ConfigFileSchema from './config-file-schema.json' assert { type: 'json'}
3
- const ProjectSchema = (await import('./project-schema.json', {
4
- assert: { type: 'json'}
5
- })).default;
6
- const ResourceSchema = (await import('./resource-schema.json', {
7
- assert: { type: 'json'}
8
- })).default;
9
- const IpcMessageSchema = (await import('./ipc-message-schema.json', {
10
- assert: { type: 'json'}
11
- })).default;
12
- const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {
13
- assert: { type: 'json'}
14
- })).default;
15
- const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {
16
- assert: { type: 'json'}
17
- })).default;
18
- const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {
19
- assert: { type: 'json'}
20
- })).default;
21
- const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {
22
- assert: { type: 'json'}
23
- })).default;
24
- const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {
25
- assert: { type: 'json'}
26
- })).default
27
- const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {
28
- assert: { type: 'json'}
29
- })).default;
30
- const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {
31
- assert: { type: 'json'}
32
- })).default;
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'}
33
13
 
34
14
  export {
35
15
  ConfigFileSchema,