@vcp-dev/contracts 0.9.3 → 0.9.4
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 +7 -6
- package/dist/index.js +1 -1
- package/dist/media-library.d.ts +75 -0
- package/dist/site-deletion-blockers.d.ts +38 -0
- package/dist/site-edit-source.d.ts +6 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-publish-domain.d.ts +98 -0
- package/dist/site-publish-workflow.d.ts +448 -4
- package/dist/workspace-design-apply.d.ts +56 -0
- package/package.json +1 -1
|
@@ -19,12 +19,47 @@ export declare const SitePublishQualityTaskStatusSchema: z.ZodEnum<{
|
|
|
19
19
|
running: "running";
|
|
20
20
|
}>;
|
|
21
21
|
export type SitePublishQualityTaskStatus = z.infer<typeof SitePublishQualityTaskStatusSchema>;
|
|
22
|
+
export declare const SitePublishRepairTaskStatusSchema: z.ZodEnum<{
|
|
23
|
+
failed: "failed";
|
|
24
|
+
succeeded: "succeeded";
|
|
25
|
+
pending: "pending";
|
|
26
|
+
running: "running";
|
|
27
|
+
}>;
|
|
28
|
+
export type SitePublishRepairTaskStatus = z.infer<typeof SitePublishRepairTaskStatusSchema>;
|
|
22
29
|
export declare const QualityRunningStatusSchema: z.ZodEnum<{
|
|
23
30
|
pending: "pending";
|
|
24
31
|
running: "running";
|
|
25
32
|
completed: "completed";
|
|
26
33
|
}>;
|
|
27
34
|
export type QualityRunningStatus = z.infer<typeof QualityRunningStatusSchema>;
|
|
35
|
+
export declare const VcpQualityRemediationItemSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
quality_task_id: z.ZodNumber;
|
|
38
|
+
item_code: z.ZodString;
|
|
39
|
+
status: z.ZodEnum<{
|
|
40
|
+
failed: "failed";
|
|
41
|
+
succeeded: "succeeded";
|
|
42
|
+
pending: "pending";
|
|
43
|
+
running: "running";
|
|
44
|
+
}>;
|
|
45
|
+
is_repaired: z.ZodBoolean;
|
|
46
|
+
total_score: z.ZodNumber;
|
|
47
|
+
score: z.ZodNumber;
|
|
48
|
+
check_result: z.ZodNullable<z.ZodUnknown>;
|
|
49
|
+
remediation_items: z.ZodNullable<z.ZodUnknown>;
|
|
50
|
+
result_text: z.ZodString;
|
|
51
|
+
created_at: z.ZodString;
|
|
52
|
+
updated_at: z.ZodString;
|
|
53
|
+
item_name: z.ZodString;
|
|
54
|
+
dimension_code: z.ZodEnum<{
|
|
55
|
+
trust: "trust";
|
|
56
|
+
reach: "reach";
|
|
57
|
+
convert: "convert";
|
|
58
|
+
safe: "safe";
|
|
59
|
+
}>;
|
|
60
|
+
group_code: z.ZodString;
|
|
61
|
+
auto_fix: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strict>;
|
|
28
63
|
export declare const VcpQualityResultSchema: z.ZodObject<{
|
|
29
64
|
quality_info: z.ZodObject<{
|
|
30
65
|
id: z.ZodNumber;
|
|
@@ -50,7 +85,6 @@ export declare const VcpQualityResultSchema: z.ZodObject<{
|
|
|
50
85
|
updated_at: z.ZodString;
|
|
51
86
|
}, z.core.$strict>;
|
|
52
87
|
quality_detail: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
53
|
-
remediation_items: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
54
88
|
summary: z.ZodObject<{
|
|
55
89
|
final_score: z.ZodNumber;
|
|
56
90
|
pass_score: z.ZodNumber;
|
|
@@ -69,6 +103,7 @@ export declare const VcpQualityResultSchema: z.ZodObject<{
|
|
|
69
103
|
description: z.ZodString;
|
|
70
104
|
tips: z.ZodString;
|
|
71
105
|
score: z.ZodNumber;
|
|
106
|
+
repaired_score: z.ZodNumber;
|
|
72
107
|
total_score: z.ZodNumber;
|
|
73
108
|
pass_score: z.ZodNumber;
|
|
74
109
|
running_status: z.ZodEnum<{
|
|
@@ -77,6 +112,34 @@ export declare const VcpQualityResultSchema: z.ZodObject<{
|
|
|
77
112
|
completed: "completed";
|
|
78
113
|
}>;
|
|
79
114
|
problem_group_count: z.ZodNumber;
|
|
115
|
+
remediation_items: z.ZodArray<z.ZodObject<{
|
|
116
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
quality_task_id: z.ZodNumber;
|
|
118
|
+
item_code: z.ZodString;
|
|
119
|
+
status: z.ZodEnum<{
|
|
120
|
+
failed: "failed";
|
|
121
|
+
succeeded: "succeeded";
|
|
122
|
+
pending: "pending";
|
|
123
|
+
running: "running";
|
|
124
|
+
}>;
|
|
125
|
+
is_repaired: z.ZodBoolean;
|
|
126
|
+
total_score: z.ZodNumber;
|
|
127
|
+
score: z.ZodNumber;
|
|
128
|
+
check_result: z.ZodNullable<z.ZodUnknown>;
|
|
129
|
+
remediation_items: z.ZodNullable<z.ZodUnknown>;
|
|
130
|
+
result_text: z.ZodString;
|
|
131
|
+
created_at: z.ZodString;
|
|
132
|
+
updated_at: z.ZodString;
|
|
133
|
+
item_name: z.ZodString;
|
|
134
|
+
dimension_code: z.ZodEnum<{
|
|
135
|
+
trust: "trust";
|
|
136
|
+
reach: "reach";
|
|
137
|
+
convert: "convert";
|
|
138
|
+
safe: "safe";
|
|
139
|
+
}>;
|
|
140
|
+
group_code: z.ZodString;
|
|
141
|
+
auto_fix: z.ZodBoolean;
|
|
142
|
+
}, z.core.$strict>>;
|
|
80
143
|
groups: z.ZodArray<z.ZodObject<{
|
|
81
144
|
group_code: z.ZodString;
|
|
82
145
|
name: z.ZodString;
|
|
@@ -94,6 +157,57 @@ export declare const VcpQualityResultSchema: z.ZodObject<{
|
|
|
94
157
|
}, z.core.$strict>]>;
|
|
95
158
|
}, z.core.$strict>;
|
|
96
159
|
export type VcpQualityResult = z.infer<typeof VcpQualityResultSchema>;
|
|
160
|
+
export declare const SitePublishRepairInputItemSchema: z.ZodObject<{
|
|
161
|
+
item_code: z.ZodString;
|
|
162
|
+
remediation_items: z.ZodNullable<z.ZodUnknown>;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
export type SitePublishRepairInputItem = z.infer<typeof SitePublishRepairInputItemSchema>;
|
|
165
|
+
export declare const SitePublishRepairResultItemSchema: z.ZodObject<{
|
|
166
|
+
item_code: z.ZodString;
|
|
167
|
+
repair_status: z.ZodEnum<{
|
|
168
|
+
failed: "failed";
|
|
169
|
+
succeeded: "succeeded";
|
|
170
|
+
}>;
|
|
171
|
+
message: z.ZodOptional<z.ZodString>;
|
|
172
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
173
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
export type SitePublishRepairResultItem = z.infer<typeof SitePublishRepairResultItemSchema>;
|
|
176
|
+
export declare const SitePublishRepairResultSchema: z.ZodObject<{
|
|
177
|
+
items: z.ZodArray<z.ZodObject<{
|
|
178
|
+
item_code: z.ZodString;
|
|
179
|
+
repair_status: z.ZodEnum<{
|
|
180
|
+
failed: "failed";
|
|
181
|
+
succeeded: "succeeded";
|
|
182
|
+
}>;
|
|
183
|
+
message: z.ZodOptional<z.ZodString>;
|
|
184
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
185
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
186
|
+
}, z.core.$strict>>;
|
|
187
|
+
}, z.core.$strict>;
|
|
188
|
+
export type SitePublishRepairResult = z.infer<typeof SitePublishRepairResultSchema>;
|
|
189
|
+
export declare const SitePublishRepairTaskSnapshotSchema: z.ZodObject<{
|
|
190
|
+
task_code: z.ZodString;
|
|
191
|
+
status: z.ZodEnum<{
|
|
192
|
+
failed: "failed";
|
|
193
|
+
succeeded: "succeeded";
|
|
194
|
+
pending: "pending";
|
|
195
|
+
running: "running";
|
|
196
|
+
}>;
|
|
197
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
items: z.ZodArray<z.ZodObject<{
|
|
199
|
+
item_code: z.ZodString;
|
|
200
|
+
repair_status: z.ZodEnum<{
|
|
201
|
+
failed: "failed";
|
|
202
|
+
succeeded: "succeeded";
|
|
203
|
+
}>;
|
|
204
|
+
message: z.ZodOptional<z.ZodString>;
|
|
205
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
206
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
207
|
+
}, z.core.$strict>>;
|
|
208
|
+
}, z.core.$strict>>;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
export type SitePublishRepairTaskSnapshot = z.infer<typeof SitePublishRepairTaskSnapshotSchema>;
|
|
97
211
|
export declare const SitePublishWorkflowRecordSchema: z.ZodObject<{
|
|
98
212
|
id: z.ZodUUID;
|
|
99
213
|
tenant_id: z.ZodString;
|
|
@@ -116,6 +230,13 @@ export declare const SitePublishWorkflowRecordSchema: z.ZodObject<{
|
|
|
116
230
|
pending: "pending";
|
|
117
231
|
running: "running";
|
|
118
232
|
}>;
|
|
233
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
234
|
+
repair_task_status: z.ZodEnum<{
|
|
235
|
+
failed: "failed";
|
|
236
|
+
succeeded: "succeeded";
|
|
237
|
+
pending: "pending";
|
|
238
|
+
running: "running";
|
|
239
|
+
}>;
|
|
119
240
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
120
241
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
121
242
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -145,7 +266,6 @@ export declare const UpdateSitePublishWorkflowStepRequestSchema: z.ZodObject<{
|
|
|
145
266
|
publish: "publish";
|
|
146
267
|
}>;
|
|
147
268
|
skip_domain_binding: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
-
skip_quality_check: z.ZodOptional<z.ZodBoolean>;
|
|
149
269
|
}, z.core.$strict>;
|
|
150
270
|
export type UpdateSitePublishWorkflowStepRequest = z.infer<typeof UpdateSitePublishWorkflowStepRequestSchema>;
|
|
151
271
|
export declare const SitePublishWorkflowRevisionRequestSchema: z.ZodObject<{
|
|
@@ -177,6 +297,13 @@ export declare const SitePublishWorkflowActiveResponseSchema: z.ZodObject<{
|
|
|
177
297
|
pending: "pending";
|
|
178
298
|
running: "running";
|
|
179
299
|
}>;
|
|
300
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
301
|
+
repair_task_status: z.ZodEnum<{
|
|
302
|
+
failed: "failed";
|
|
303
|
+
succeeded: "succeeded";
|
|
304
|
+
pending: "pending";
|
|
305
|
+
running: "running";
|
|
306
|
+
}>;
|
|
180
307
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
181
308
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
182
309
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -223,6 +350,13 @@ export declare const SitePublishWorkflowMutationDataSchema: z.ZodObject<{
|
|
|
223
350
|
pending: "pending";
|
|
224
351
|
running: "running";
|
|
225
352
|
}>;
|
|
353
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
354
|
+
repair_task_status: z.ZodEnum<{
|
|
355
|
+
failed: "failed";
|
|
356
|
+
succeeded: "succeeded";
|
|
357
|
+
pending: "pending";
|
|
358
|
+
running: "running";
|
|
359
|
+
}>;
|
|
226
360
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
227
361
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
228
362
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -268,6 +402,13 @@ export declare const SitePublishWorkflowMutationResponseSchema: z.ZodObject<{
|
|
|
268
402
|
pending: "pending";
|
|
269
403
|
running: "running";
|
|
270
404
|
}>;
|
|
405
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
406
|
+
repair_task_status: z.ZodEnum<{
|
|
407
|
+
failed: "failed";
|
|
408
|
+
succeeded: "succeeded";
|
|
409
|
+
pending: "pending";
|
|
410
|
+
running: "running";
|
|
411
|
+
}>;
|
|
271
412
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
272
413
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
273
414
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -314,6 +455,13 @@ export declare const SitePublishWorkflowPublishDataSchema: z.ZodObject<{
|
|
|
314
455
|
pending: "pending";
|
|
315
456
|
running: "running";
|
|
316
457
|
}>;
|
|
458
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
459
|
+
repair_task_status: z.ZodEnum<{
|
|
460
|
+
failed: "failed";
|
|
461
|
+
succeeded: "succeeded";
|
|
462
|
+
pending: "pending";
|
|
463
|
+
running: "running";
|
|
464
|
+
}>;
|
|
317
465
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
318
466
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
319
467
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -392,6 +540,13 @@ export declare const SitePublishWorkflowPublishResponseSchema: z.ZodObject<{
|
|
|
392
540
|
pending: "pending";
|
|
393
541
|
running: "running";
|
|
394
542
|
}>;
|
|
543
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
544
|
+
repair_task_status: z.ZodEnum<{
|
|
545
|
+
failed: "failed";
|
|
546
|
+
succeeded: "succeeded";
|
|
547
|
+
pending: "pending";
|
|
548
|
+
running: "running";
|
|
549
|
+
}>;
|
|
395
550
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
396
551
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
397
552
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -471,6 +626,13 @@ export declare const SitePublishWorkflowQualityDataSchema: z.ZodObject<{
|
|
|
471
626
|
pending: "pending";
|
|
472
627
|
running: "running";
|
|
473
628
|
}>;
|
|
629
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
630
|
+
repair_task_status: z.ZodEnum<{
|
|
631
|
+
failed: "failed";
|
|
632
|
+
succeeded: "succeeded";
|
|
633
|
+
pending: "pending";
|
|
634
|
+
running: "running";
|
|
635
|
+
}>;
|
|
474
636
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
475
637
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
476
638
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -515,7 +677,6 @@ export declare const SitePublishWorkflowQualityDataSchema: z.ZodObject<{
|
|
|
515
677
|
updated_at: z.ZodString;
|
|
516
678
|
}, z.core.$strict>;
|
|
517
679
|
quality_detail: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
518
|
-
remediation_items: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
519
680
|
summary: z.ZodObject<{
|
|
520
681
|
final_score: z.ZodNumber;
|
|
521
682
|
pass_score: z.ZodNumber;
|
|
@@ -534,6 +695,115 @@ export declare const SitePublishWorkflowQualityDataSchema: z.ZodObject<{
|
|
|
534
695
|
description: z.ZodString;
|
|
535
696
|
tips: z.ZodString;
|
|
536
697
|
score: z.ZodNumber;
|
|
698
|
+
repaired_score: z.ZodNumber;
|
|
699
|
+
total_score: z.ZodNumber;
|
|
700
|
+
pass_score: z.ZodNumber;
|
|
701
|
+
running_status: z.ZodEnum<{
|
|
702
|
+
pending: "pending";
|
|
703
|
+
running: "running";
|
|
704
|
+
completed: "completed";
|
|
705
|
+
}>;
|
|
706
|
+
problem_group_count: z.ZodNumber;
|
|
707
|
+
remediation_items: z.ZodArray<z.ZodObject<{
|
|
708
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
709
|
+
quality_task_id: z.ZodNumber;
|
|
710
|
+
item_code: z.ZodString;
|
|
711
|
+
status: z.ZodEnum<{
|
|
712
|
+
failed: "failed";
|
|
713
|
+
succeeded: "succeeded";
|
|
714
|
+
pending: "pending";
|
|
715
|
+
running: "running";
|
|
716
|
+
}>;
|
|
717
|
+
is_repaired: z.ZodBoolean;
|
|
718
|
+
total_score: z.ZodNumber;
|
|
719
|
+
score: z.ZodNumber;
|
|
720
|
+
check_result: z.ZodNullable<z.ZodUnknown>;
|
|
721
|
+
remediation_items: z.ZodNullable<z.ZodUnknown>;
|
|
722
|
+
result_text: z.ZodString;
|
|
723
|
+
created_at: z.ZodString;
|
|
724
|
+
updated_at: z.ZodString;
|
|
725
|
+
item_name: z.ZodString;
|
|
726
|
+
dimension_code: z.ZodEnum<{
|
|
727
|
+
trust: "trust";
|
|
728
|
+
reach: "reach";
|
|
729
|
+
convert: "convert";
|
|
730
|
+
safe: "safe";
|
|
731
|
+
}>;
|
|
732
|
+
group_code: z.ZodString;
|
|
733
|
+
auto_fix: z.ZodBoolean;
|
|
734
|
+
}, z.core.$strict>>;
|
|
735
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
736
|
+
group_code: z.ZodString;
|
|
737
|
+
name: z.ZodString;
|
|
738
|
+
score: z.ZodNumber;
|
|
739
|
+
total_score: z.ZodNumber;
|
|
740
|
+
pass_score: z.ZodNumber;
|
|
741
|
+
running_status: z.ZodEnum<{
|
|
742
|
+
pending: "pending";
|
|
743
|
+
running: "running";
|
|
744
|
+
completed: "completed";
|
|
745
|
+
}>;
|
|
746
|
+
result_text: z.ZodString;
|
|
747
|
+
}, z.core.$strict>>;
|
|
748
|
+
}, z.core.$strict>>;
|
|
749
|
+
}, z.core.$strict>]>;
|
|
750
|
+
}, z.core.$strict>>;
|
|
751
|
+
repair_result: z.ZodOptional<z.ZodObject<{
|
|
752
|
+
items: z.ZodArray<z.ZodObject<{
|
|
753
|
+
item_code: z.ZodString;
|
|
754
|
+
repair_status: z.ZodEnum<{
|
|
755
|
+
failed: "failed";
|
|
756
|
+
succeeded: "succeeded";
|
|
757
|
+
}>;
|
|
758
|
+
message: z.ZodOptional<z.ZodString>;
|
|
759
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
760
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
761
|
+
}, z.core.$strict>>;
|
|
762
|
+
}, z.core.$strict>>;
|
|
763
|
+
final_quality_result: z.ZodOptional<z.ZodObject<{
|
|
764
|
+
quality_info: z.ZodObject<{
|
|
765
|
+
id: z.ZodNumber;
|
|
766
|
+
task_code: z.ZodString;
|
|
767
|
+
scene_code: z.ZodEnum<{
|
|
768
|
+
site_publish: "site_publish";
|
|
769
|
+
vcp_published_pages: "vcp_published_pages";
|
|
770
|
+
content_publish: "content_publish";
|
|
771
|
+
}>;
|
|
772
|
+
tenant_id: z.ZodString;
|
|
773
|
+
vcp_site_id: z.ZodUUID;
|
|
774
|
+
cms_site_id: z.ZodString;
|
|
775
|
+
checked_url: z.ZodString;
|
|
776
|
+
quality_params: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
777
|
+
status: z.ZodEnum<{
|
|
778
|
+
failed: "failed";
|
|
779
|
+
succeeded: "succeeded";
|
|
780
|
+
pending: "pending";
|
|
781
|
+
running: "running";
|
|
782
|
+
}>;
|
|
783
|
+
error_info: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
784
|
+
created_at: z.ZodString;
|
|
785
|
+
updated_at: z.ZodString;
|
|
786
|
+
}, z.core.$strict>;
|
|
787
|
+
quality_detail: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
788
|
+
summary: z.ZodObject<{
|
|
789
|
+
final_score: z.ZodNumber;
|
|
790
|
+
pass_score: z.ZodNumber;
|
|
791
|
+
group_count: z.ZodNumber;
|
|
792
|
+
problem_group_count: z.ZodNumber;
|
|
793
|
+
}, z.core.$strict>;
|
|
794
|
+
dimensions: z.ZodArray<z.ZodObject<{
|
|
795
|
+
dimension_code: z.ZodEnum<{
|
|
796
|
+
trust: "trust";
|
|
797
|
+
reach: "reach";
|
|
798
|
+
convert: "convert";
|
|
799
|
+
safe: "safe";
|
|
800
|
+
}>;
|
|
801
|
+
name: z.ZodString;
|
|
802
|
+
alias_en: z.ZodString;
|
|
803
|
+
description: z.ZodString;
|
|
804
|
+
tips: z.ZodString;
|
|
805
|
+
score: z.ZodNumber;
|
|
806
|
+
repaired_score: z.ZodNumber;
|
|
537
807
|
total_score: z.ZodNumber;
|
|
538
808
|
pass_score: z.ZodNumber;
|
|
539
809
|
running_status: z.ZodEnum<{
|
|
@@ -542,6 +812,34 @@ export declare const SitePublishWorkflowQualityDataSchema: z.ZodObject<{
|
|
|
542
812
|
completed: "completed";
|
|
543
813
|
}>;
|
|
544
814
|
problem_group_count: z.ZodNumber;
|
|
815
|
+
remediation_items: z.ZodArray<z.ZodObject<{
|
|
816
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
817
|
+
quality_task_id: z.ZodNumber;
|
|
818
|
+
item_code: z.ZodString;
|
|
819
|
+
status: z.ZodEnum<{
|
|
820
|
+
failed: "failed";
|
|
821
|
+
succeeded: "succeeded";
|
|
822
|
+
pending: "pending";
|
|
823
|
+
running: "running";
|
|
824
|
+
}>;
|
|
825
|
+
is_repaired: z.ZodBoolean;
|
|
826
|
+
total_score: z.ZodNumber;
|
|
827
|
+
score: z.ZodNumber;
|
|
828
|
+
check_result: z.ZodNullable<z.ZodUnknown>;
|
|
829
|
+
remediation_items: z.ZodNullable<z.ZodUnknown>;
|
|
830
|
+
result_text: z.ZodString;
|
|
831
|
+
created_at: z.ZodString;
|
|
832
|
+
updated_at: z.ZodString;
|
|
833
|
+
item_name: z.ZodString;
|
|
834
|
+
dimension_code: z.ZodEnum<{
|
|
835
|
+
trust: "trust";
|
|
836
|
+
reach: "reach";
|
|
837
|
+
convert: "convert";
|
|
838
|
+
safe: "safe";
|
|
839
|
+
}>;
|
|
840
|
+
group_code: z.ZodString;
|
|
841
|
+
auto_fix: z.ZodBoolean;
|
|
842
|
+
}, z.core.$strict>>;
|
|
545
843
|
groups: z.ZodArray<z.ZodObject<{
|
|
546
844
|
group_code: z.ZodString;
|
|
547
845
|
name: z.ZodString;
|
|
@@ -586,6 +884,13 @@ export declare const SitePublishWorkflowQualityResponseSchema: z.ZodObject<{
|
|
|
586
884
|
pending: "pending";
|
|
587
885
|
running: "running";
|
|
588
886
|
}>;
|
|
887
|
+
repair_task_code: z.ZodNullable<z.ZodString>;
|
|
888
|
+
repair_task_status: z.ZodEnum<{
|
|
889
|
+
failed: "failed";
|
|
890
|
+
succeeded: "succeeded";
|
|
891
|
+
pending: "pending";
|
|
892
|
+
running: "running";
|
|
893
|
+
}>;
|
|
589
894
|
publish_deployment_id: z.ZodNullable<z.ZodUUID>;
|
|
590
895
|
domain_hostname: z.ZodNullable<z.ZodString>;
|
|
591
896
|
domain_operation_type: z.ZodNullable<z.ZodEnum<{
|
|
@@ -630,7 +935,6 @@ export declare const SitePublishWorkflowQualityResponseSchema: z.ZodObject<{
|
|
|
630
935
|
updated_at: z.ZodString;
|
|
631
936
|
}, z.core.$strict>;
|
|
632
937
|
quality_detail: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
633
|
-
remediation_items: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
634
938
|
summary: z.ZodObject<{
|
|
635
939
|
final_score: z.ZodNumber;
|
|
636
940
|
pass_score: z.ZodNumber;
|
|
@@ -649,6 +953,7 @@ export declare const SitePublishWorkflowQualityResponseSchema: z.ZodObject<{
|
|
|
649
953
|
description: z.ZodString;
|
|
650
954
|
tips: z.ZodString;
|
|
651
955
|
score: z.ZodNumber;
|
|
956
|
+
repaired_score: z.ZodNumber;
|
|
652
957
|
total_score: z.ZodNumber;
|
|
653
958
|
pass_score: z.ZodNumber;
|
|
654
959
|
running_status: z.ZodEnum<{
|
|
@@ -657,6 +962,142 @@ export declare const SitePublishWorkflowQualityResponseSchema: z.ZodObject<{
|
|
|
657
962
|
completed: "completed";
|
|
658
963
|
}>;
|
|
659
964
|
problem_group_count: z.ZodNumber;
|
|
965
|
+
remediation_items: z.ZodArray<z.ZodObject<{
|
|
966
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
967
|
+
quality_task_id: z.ZodNumber;
|
|
968
|
+
item_code: z.ZodString;
|
|
969
|
+
status: z.ZodEnum<{
|
|
970
|
+
failed: "failed";
|
|
971
|
+
succeeded: "succeeded";
|
|
972
|
+
pending: "pending";
|
|
973
|
+
running: "running";
|
|
974
|
+
}>;
|
|
975
|
+
is_repaired: z.ZodBoolean;
|
|
976
|
+
total_score: z.ZodNumber;
|
|
977
|
+
score: z.ZodNumber;
|
|
978
|
+
check_result: z.ZodNullable<z.ZodUnknown>;
|
|
979
|
+
remediation_items: z.ZodNullable<z.ZodUnknown>;
|
|
980
|
+
result_text: z.ZodString;
|
|
981
|
+
created_at: z.ZodString;
|
|
982
|
+
updated_at: z.ZodString;
|
|
983
|
+
item_name: z.ZodString;
|
|
984
|
+
dimension_code: z.ZodEnum<{
|
|
985
|
+
trust: "trust";
|
|
986
|
+
reach: "reach";
|
|
987
|
+
convert: "convert";
|
|
988
|
+
safe: "safe";
|
|
989
|
+
}>;
|
|
990
|
+
group_code: z.ZodString;
|
|
991
|
+
auto_fix: z.ZodBoolean;
|
|
992
|
+
}, z.core.$strict>>;
|
|
993
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
994
|
+
group_code: z.ZodString;
|
|
995
|
+
name: z.ZodString;
|
|
996
|
+
score: z.ZodNumber;
|
|
997
|
+
total_score: z.ZodNumber;
|
|
998
|
+
pass_score: z.ZodNumber;
|
|
999
|
+
running_status: z.ZodEnum<{
|
|
1000
|
+
pending: "pending";
|
|
1001
|
+
running: "running";
|
|
1002
|
+
completed: "completed";
|
|
1003
|
+
}>;
|
|
1004
|
+
result_text: z.ZodString;
|
|
1005
|
+
}, z.core.$strict>>;
|
|
1006
|
+
}, z.core.$strict>>;
|
|
1007
|
+
}, z.core.$strict>]>;
|
|
1008
|
+
}, z.core.$strict>>;
|
|
1009
|
+
repair_result: z.ZodOptional<z.ZodObject<{
|
|
1010
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1011
|
+
item_code: z.ZodString;
|
|
1012
|
+
repair_status: z.ZodEnum<{
|
|
1013
|
+
failed: "failed";
|
|
1014
|
+
succeeded: "succeeded";
|
|
1015
|
+
}>;
|
|
1016
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1019
|
+
}, z.core.$strict>>;
|
|
1020
|
+
}, z.core.$strict>>;
|
|
1021
|
+
final_quality_result: z.ZodOptional<z.ZodObject<{
|
|
1022
|
+
quality_info: z.ZodObject<{
|
|
1023
|
+
id: z.ZodNumber;
|
|
1024
|
+
task_code: z.ZodString;
|
|
1025
|
+
scene_code: z.ZodEnum<{
|
|
1026
|
+
site_publish: "site_publish";
|
|
1027
|
+
vcp_published_pages: "vcp_published_pages";
|
|
1028
|
+
content_publish: "content_publish";
|
|
1029
|
+
}>;
|
|
1030
|
+
tenant_id: z.ZodString;
|
|
1031
|
+
vcp_site_id: z.ZodUUID;
|
|
1032
|
+
cms_site_id: z.ZodString;
|
|
1033
|
+
checked_url: z.ZodString;
|
|
1034
|
+
quality_params: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1035
|
+
status: z.ZodEnum<{
|
|
1036
|
+
failed: "failed";
|
|
1037
|
+
succeeded: "succeeded";
|
|
1038
|
+
pending: "pending";
|
|
1039
|
+
running: "running";
|
|
1040
|
+
}>;
|
|
1041
|
+
error_info: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1042
|
+
created_at: z.ZodString;
|
|
1043
|
+
updated_at: z.ZodString;
|
|
1044
|
+
}, z.core.$strict>;
|
|
1045
|
+
quality_detail: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
1046
|
+
summary: z.ZodObject<{
|
|
1047
|
+
final_score: z.ZodNumber;
|
|
1048
|
+
pass_score: z.ZodNumber;
|
|
1049
|
+
group_count: z.ZodNumber;
|
|
1050
|
+
problem_group_count: z.ZodNumber;
|
|
1051
|
+
}, z.core.$strict>;
|
|
1052
|
+
dimensions: z.ZodArray<z.ZodObject<{
|
|
1053
|
+
dimension_code: z.ZodEnum<{
|
|
1054
|
+
trust: "trust";
|
|
1055
|
+
reach: "reach";
|
|
1056
|
+
convert: "convert";
|
|
1057
|
+
safe: "safe";
|
|
1058
|
+
}>;
|
|
1059
|
+
name: z.ZodString;
|
|
1060
|
+
alias_en: z.ZodString;
|
|
1061
|
+
description: z.ZodString;
|
|
1062
|
+
tips: z.ZodString;
|
|
1063
|
+
score: z.ZodNumber;
|
|
1064
|
+
repaired_score: z.ZodNumber;
|
|
1065
|
+
total_score: z.ZodNumber;
|
|
1066
|
+
pass_score: z.ZodNumber;
|
|
1067
|
+
running_status: z.ZodEnum<{
|
|
1068
|
+
pending: "pending";
|
|
1069
|
+
running: "running";
|
|
1070
|
+
completed: "completed";
|
|
1071
|
+
}>;
|
|
1072
|
+
problem_group_count: z.ZodNumber;
|
|
1073
|
+
remediation_items: z.ZodArray<z.ZodObject<{
|
|
1074
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1075
|
+
quality_task_id: z.ZodNumber;
|
|
1076
|
+
item_code: z.ZodString;
|
|
1077
|
+
status: z.ZodEnum<{
|
|
1078
|
+
failed: "failed";
|
|
1079
|
+
succeeded: "succeeded";
|
|
1080
|
+
pending: "pending";
|
|
1081
|
+
running: "running";
|
|
1082
|
+
}>;
|
|
1083
|
+
is_repaired: z.ZodBoolean;
|
|
1084
|
+
total_score: z.ZodNumber;
|
|
1085
|
+
score: z.ZodNumber;
|
|
1086
|
+
check_result: z.ZodNullable<z.ZodUnknown>;
|
|
1087
|
+
remediation_items: z.ZodNullable<z.ZodUnknown>;
|
|
1088
|
+
result_text: z.ZodString;
|
|
1089
|
+
created_at: z.ZodString;
|
|
1090
|
+
updated_at: z.ZodString;
|
|
1091
|
+
item_name: z.ZodString;
|
|
1092
|
+
dimension_code: z.ZodEnum<{
|
|
1093
|
+
trust: "trust";
|
|
1094
|
+
reach: "reach";
|
|
1095
|
+
convert: "convert";
|
|
1096
|
+
safe: "safe";
|
|
1097
|
+
}>;
|
|
1098
|
+
group_code: z.ZodString;
|
|
1099
|
+
auto_fix: z.ZodBoolean;
|
|
1100
|
+
}, z.core.$strict>>;
|
|
660
1101
|
groups: z.ZodArray<z.ZodObject<{
|
|
661
1102
|
group_code: z.ZodString;
|
|
662
1103
|
name: z.ZodString;
|
|
@@ -678,3 +1119,6 @@ export declare const SitePublishWorkflowQualityResponseSchema: z.ZodObject<{
|
|
|
678
1119
|
message: z.ZodString;
|
|
679
1120
|
}, z.core.$strict>;
|
|
680
1121
|
export type SitePublishWorkflowQualityResponse = z.infer<typeof SitePublishWorkflowQualityResponseSchema>;
|
|
1122
|
+
export declare function getSitePublishRepairItems(qualityResult: VcpQualityResult): SitePublishRepairInputItem[];
|
|
1123
|
+
export declare function isSitePublishRepairResultSuccessful(expectedItems: readonly SitePublishRepairInputItem[], repairResult: SitePublishRepairResult): boolean;
|
|
1124
|
+
export declare function buildFinalSitePublishQualityResult(qualityResult: VcpQualityResult, repairResult?: SitePublishRepairResult): VcpQualityResult | null;
|
|
@@ -20,5 +20,61 @@ export declare const WorkspaceDesignApplyResponseSchema: z.ZodObject<{
|
|
|
20
20
|
ok: z.ZodLiteral<true>;
|
|
21
21
|
design_plan_version: z.ZodNumber;
|
|
22
22
|
snapshot_id: z.ZodUUID;
|
|
23
|
+
site_design_context: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
24
|
+
visualDirection: z.ZodString;
|
|
25
|
+
brandFeeling: z.ZodString;
|
|
26
|
+
paletteIntent: z.ZodString;
|
|
27
|
+
typographyIntent: z.ZodString;
|
|
28
|
+
density: z.ZodEnum<{
|
|
29
|
+
compact: "compact";
|
|
30
|
+
comfortable: "comfortable";
|
|
31
|
+
airy: "airy";
|
|
32
|
+
editorial: "editorial";
|
|
33
|
+
}>;
|
|
34
|
+
motionLevel: z.ZodEnum<{
|
|
35
|
+
none: "none";
|
|
36
|
+
subtle: "subtle";
|
|
37
|
+
moderate: "moderate";
|
|
38
|
+
expressive: "expressive";
|
|
39
|
+
}>;
|
|
40
|
+
motionPreset: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
subtle: "subtle";
|
|
42
|
+
moderate: "moderate";
|
|
43
|
+
expressive: "expressive";
|
|
44
|
+
}>>;
|
|
45
|
+
mediaStrategy: z.ZodString;
|
|
46
|
+
compositionRules: z.ZodArray<z.ZodString>;
|
|
47
|
+
avoidPatterns: z.ZodArray<z.ZodString>;
|
|
48
|
+
fonts: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
heading: z.ZodString;
|
|
50
|
+
body: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
colorSeeds: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
primary: z.ZodString;
|
|
54
|
+
accent: z.ZodString;
|
|
55
|
+
foreground: z.ZodOptional<z.ZodString>;
|
|
56
|
+
neutral: z.ZodOptional<z.ZodString>;
|
|
57
|
+
supporting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
surfaceMode: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
light: "light";
|
|
61
|
+
dark: "dark";
|
|
62
|
+
}>>;
|
|
63
|
+
radius: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
none: "none";
|
|
65
|
+
sm: "sm";
|
|
66
|
+
md: "md";
|
|
67
|
+
lg: "lg";
|
|
68
|
+
xl: "xl";
|
|
69
|
+
}>>;
|
|
70
|
+
imagePalette: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
background: z.ZodOptional<z.ZodString>;
|
|
72
|
+
foreground: z.ZodOptional<z.ZodString>;
|
|
73
|
+
card: z.ZodOptional<z.ZodString>;
|
|
74
|
+
muted: z.ZodOptional<z.ZodString>;
|
|
75
|
+
border: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
changed_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
79
|
}, z.core.$strip>;
|
|
24
80
|
export type WorkspaceDesignApplyResponse = z.infer<typeof WorkspaceDesignApplyResponseSchema>;
|