@tailorkit/client-platform 0.1.0-beta.18 → 0.1.0-beta.19
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/{chunk-RFNELX3J.js → chunk-PTDO4GSQ.js} +9 -1
- package/dist/client/types.gen.d.ts +102 -0
- package/dist/index.js +1 -1
- package/dist/preview.d.ts +18 -0
- package/dist/preview.js +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,15 @@ var previewFileManifestSchema = z.object({
|
|
|
18
18
|
sha256: z.string().regex(/^[a-f0-9]{64}$/u)
|
|
19
19
|
});
|
|
20
20
|
var previewBuildManifestSchema = z.object({
|
|
21
|
-
files: z.array(previewFileManifestSchema).max(100)
|
|
21
|
+
files: z.array(previewFileManifestSchema).max(100),
|
|
22
|
+
views: z.array(
|
|
23
|
+
z.object({
|
|
24
|
+
slot: z.string().min(1).max(255),
|
|
25
|
+
path: z.string().startsWith("/").max(1024),
|
|
26
|
+
instances: z.literal(true).optional(),
|
|
27
|
+
disabled: z.literal(true).optional()
|
|
28
|
+
})
|
|
29
|
+
).max(1e3).optional()
|
|
22
30
|
}).superRefine((manifest, context) => {
|
|
23
31
|
const paths = /* @__PURE__ */ new Set();
|
|
24
32
|
let total = 0;
|
|
@@ -116,11 +116,23 @@ export type AppsListResponses = {
|
|
|
116
116
|
clientEntryFileId: string | null;
|
|
117
117
|
logoLightFileId: string | null;
|
|
118
118
|
logoDarkFileId: string | null;
|
|
119
|
+
views: Array<{
|
|
120
|
+
slot: string;
|
|
121
|
+
path: string;
|
|
122
|
+
instances?: true;
|
|
123
|
+
disabled?: true;
|
|
124
|
+
}>;
|
|
119
125
|
logoLightPath: string | null;
|
|
120
126
|
logoDarkPath: string | null;
|
|
121
127
|
createdAt: string;
|
|
122
128
|
updatedAt: string;
|
|
123
129
|
} | null;
|
|
130
|
+
views: Array<{
|
|
131
|
+
slot: string;
|
|
132
|
+
path: string;
|
|
133
|
+
instances?: true;
|
|
134
|
+
disabled?: true;
|
|
135
|
+
}>;
|
|
124
136
|
clientPath?: string;
|
|
125
137
|
logoPaths?: {
|
|
126
138
|
dark?: string;
|
|
@@ -177,11 +189,23 @@ export type AppsGetResponses = {
|
|
|
177
189
|
clientEntryFileId: string | null;
|
|
178
190
|
logoLightFileId: string | null;
|
|
179
191
|
logoDarkFileId: string | null;
|
|
192
|
+
views: Array<{
|
|
193
|
+
slot: string;
|
|
194
|
+
path: string;
|
|
195
|
+
instances?: true;
|
|
196
|
+
disabled?: true;
|
|
197
|
+
}>;
|
|
180
198
|
logoLightPath: string | null;
|
|
181
199
|
logoDarkPath: string | null;
|
|
182
200
|
createdAt: string;
|
|
183
201
|
updatedAt: string;
|
|
184
202
|
} | null;
|
|
203
|
+
views: Array<{
|
|
204
|
+
slot: string;
|
|
205
|
+
path: string;
|
|
206
|
+
instances?: true;
|
|
207
|
+
disabled?: true;
|
|
208
|
+
}>;
|
|
185
209
|
clientPath?: string;
|
|
186
210
|
logoPaths?: {
|
|
187
211
|
dark?: string;
|
|
@@ -232,11 +256,23 @@ export type AppsCreateResponses = {
|
|
|
232
256
|
clientEntryFileId: string | null;
|
|
233
257
|
logoLightFileId: string | null;
|
|
234
258
|
logoDarkFileId: string | null;
|
|
259
|
+
views: Array<{
|
|
260
|
+
slot: string;
|
|
261
|
+
path: string;
|
|
262
|
+
instances?: true;
|
|
263
|
+
disabled?: true;
|
|
264
|
+
}>;
|
|
235
265
|
logoLightPath: string | null;
|
|
236
266
|
logoDarkPath: string | null;
|
|
237
267
|
createdAt: string;
|
|
238
268
|
updatedAt: string;
|
|
239
269
|
} | null;
|
|
270
|
+
views: Array<{
|
|
271
|
+
slot: string;
|
|
272
|
+
path: string;
|
|
273
|
+
instances?: true;
|
|
274
|
+
disabled?: true;
|
|
275
|
+
}>;
|
|
240
276
|
clientPath?: string;
|
|
241
277
|
logoPaths?: {
|
|
242
278
|
dark?: string;
|
|
@@ -313,11 +349,23 @@ export type AppsUpdateResponses = {
|
|
|
313
349
|
clientEntryFileId: string | null;
|
|
314
350
|
logoLightFileId: string | null;
|
|
315
351
|
logoDarkFileId: string | null;
|
|
352
|
+
views: Array<{
|
|
353
|
+
slot: string;
|
|
354
|
+
path: string;
|
|
355
|
+
instances?: true;
|
|
356
|
+
disabled?: true;
|
|
357
|
+
}>;
|
|
316
358
|
logoLightPath: string | null;
|
|
317
359
|
logoDarkPath: string | null;
|
|
318
360
|
createdAt: string;
|
|
319
361
|
updatedAt: string;
|
|
320
362
|
} | null;
|
|
363
|
+
views: Array<{
|
|
364
|
+
slot: string;
|
|
365
|
+
path: string;
|
|
366
|
+
instances?: true;
|
|
367
|
+
disabled?: true;
|
|
368
|
+
}>;
|
|
321
369
|
clientPath?: string;
|
|
322
370
|
logoPaths?: {
|
|
323
371
|
dark?: string;
|
|
@@ -369,11 +417,23 @@ export type AppsDeployResponses = {
|
|
|
369
417
|
clientEntryFileId: string | null;
|
|
370
418
|
logoLightFileId: string | null;
|
|
371
419
|
logoDarkFileId: string | null;
|
|
420
|
+
views: Array<{
|
|
421
|
+
slot: string;
|
|
422
|
+
path: string;
|
|
423
|
+
instances?: true;
|
|
424
|
+
disabled?: true;
|
|
425
|
+
}>;
|
|
372
426
|
logoLightPath: string | null;
|
|
373
427
|
logoDarkPath: string | null;
|
|
374
428
|
createdAt: string;
|
|
375
429
|
updatedAt: string;
|
|
376
430
|
} | null;
|
|
431
|
+
views: Array<{
|
|
432
|
+
slot: string;
|
|
433
|
+
path: string;
|
|
434
|
+
instances?: true;
|
|
435
|
+
disabled?: true;
|
|
436
|
+
}>;
|
|
377
437
|
clientPath?: string;
|
|
378
438
|
logoPaths?: {
|
|
379
439
|
dark?: string;
|
|
@@ -522,6 +582,12 @@ export type DeploymentsListResponses = {
|
|
|
522
582
|
clientEntryFileId: string | null;
|
|
523
583
|
logoLightFileId: string | null;
|
|
524
584
|
logoDarkFileId: string | null;
|
|
585
|
+
views: Array<{
|
|
586
|
+
slot: string;
|
|
587
|
+
path: string;
|
|
588
|
+
instances?: true;
|
|
589
|
+
disabled?: true;
|
|
590
|
+
}>;
|
|
525
591
|
logoLightPath: string | null;
|
|
526
592
|
logoDarkPath: string | null;
|
|
527
593
|
createdAt: string;
|
|
@@ -562,6 +628,12 @@ export type DeploymentsGetResponses = {
|
|
|
562
628
|
clientEntryFileId: string | null;
|
|
563
629
|
logoLightFileId: string | null;
|
|
564
630
|
logoDarkFileId: string | null;
|
|
631
|
+
views: Array<{
|
|
632
|
+
slot: string;
|
|
633
|
+
path: string;
|
|
634
|
+
instances?: true;
|
|
635
|
+
disabled?: true;
|
|
636
|
+
}>;
|
|
565
637
|
logoLightPath: string | null;
|
|
566
638
|
logoDarkPath: string | null;
|
|
567
639
|
createdAt: string;
|
|
@@ -600,6 +672,12 @@ export type DeploymentsCreateData = {
|
|
|
600
672
|
contentType: "image/svg+xml" | "image/png" | "image/webp";
|
|
601
673
|
};
|
|
602
674
|
};
|
|
675
|
+
views?: Array<{
|
|
676
|
+
slot: string;
|
|
677
|
+
path: string;
|
|
678
|
+
instances?: true;
|
|
679
|
+
disabled?: true;
|
|
680
|
+
}>;
|
|
603
681
|
scope: {
|
|
604
682
|
name: string;
|
|
605
683
|
value: {
|
|
@@ -660,6 +738,12 @@ export type DeploymentsCreateResponses = {
|
|
|
660
738
|
clientEntryFileId: string | null;
|
|
661
739
|
logoLightFileId: string | null;
|
|
662
740
|
logoDarkFileId: string | null;
|
|
741
|
+
views: Array<{
|
|
742
|
+
slot: string;
|
|
743
|
+
path: string;
|
|
744
|
+
instances?: true;
|
|
745
|
+
disabled?: true;
|
|
746
|
+
}>;
|
|
663
747
|
logoLightPath: string | null;
|
|
664
748
|
logoDarkPath: string | null;
|
|
665
749
|
createdAt: string;
|
|
@@ -734,6 +818,12 @@ export type DeploymentsPublishResponses = {
|
|
|
734
818
|
clientEntryFileId: string | null;
|
|
735
819
|
logoLightFileId: string | null;
|
|
736
820
|
logoDarkFileId: string | null;
|
|
821
|
+
views: Array<{
|
|
822
|
+
slot: string;
|
|
823
|
+
path: string;
|
|
824
|
+
instances?: true;
|
|
825
|
+
disabled?: true;
|
|
826
|
+
}>;
|
|
737
827
|
logoLightPath: string | null;
|
|
738
828
|
logoDarkPath: string | null;
|
|
739
829
|
createdAt: string;
|
|
@@ -894,11 +984,23 @@ export type PreviewAcceptedResponses = {
|
|
|
894
984
|
clientEntryFileId: string | null;
|
|
895
985
|
logoLightFileId: string | null;
|
|
896
986
|
logoDarkFileId: string | null;
|
|
987
|
+
views: Array<{
|
|
988
|
+
slot: string;
|
|
989
|
+
path: string;
|
|
990
|
+
instances?: true;
|
|
991
|
+
disabled?: true;
|
|
992
|
+
}>;
|
|
897
993
|
logoLightPath: string | null;
|
|
898
994
|
logoDarkPath: string | null;
|
|
899
995
|
createdAt: string;
|
|
900
996
|
updatedAt: string;
|
|
901
997
|
} | null;
|
|
998
|
+
views: Array<{
|
|
999
|
+
slot: string;
|
|
1000
|
+
path: string;
|
|
1001
|
+
instances?: true;
|
|
1002
|
+
disabled?: true;
|
|
1003
|
+
}>;
|
|
902
1004
|
clientPath?: string;
|
|
903
1005
|
logoPaths?: {
|
|
904
1006
|
dark?: string;
|
package/dist/index.js
CHANGED
package/dist/preview.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export declare const previewBuildManifestSchema: z.ZodObject<{
|
|
|
16
16
|
chunks: z.ZodNumber;
|
|
17
17
|
sha256: z.ZodString;
|
|
18
18
|
}, z.core.$strip>>;
|
|
19
|
+
views: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
+
slot: z.ZodString;
|
|
21
|
+
path: z.ZodString;
|
|
22
|
+
instances: z.ZodOptional<z.ZodLiteral<true>>;
|
|
23
|
+
disabled: z.ZodOptional<z.ZodLiteral<true>>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
19
25
|
}, z.core.$strip>;
|
|
20
26
|
export declare const previewEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
27
|
type: z.ZodLiteral<"begin">;
|
|
@@ -29,6 +35,12 @@ export declare const previewEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
29
35
|
chunks: z.ZodNumber;
|
|
30
36
|
sha256: z.ZodString;
|
|
31
37
|
}, z.core.$strip>>;
|
|
38
|
+
views: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
slot: z.ZodString;
|
|
40
|
+
path: z.ZodString;
|
|
41
|
+
instances: z.ZodOptional<z.ZodLiteral<true>>;
|
|
42
|
+
disabled: z.ZodOptional<z.ZodLiteral<true>>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
32
44
|
}, z.core.$strip>;
|
|
33
45
|
}, z.core.$strip>, z.ZodObject<{
|
|
34
46
|
type: z.ZodLiteral<"chunk">;
|
|
@@ -60,6 +72,12 @@ declare const beginInput: z.ZodObject<{
|
|
|
60
72
|
chunks: z.ZodNumber;
|
|
61
73
|
sha256: z.ZodString;
|
|
62
74
|
}, z.core.$strip>>;
|
|
75
|
+
views: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
|
+
slot: z.ZodString;
|
|
77
|
+
path: z.ZodString;
|
|
78
|
+
instances: z.ZodOptional<z.ZodLiteral<true>>;
|
|
79
|
+
disabled: z.ZodOptional<z.ZodLiteral<true>>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
63
81
|
}, z.core.$strip>;
|
|
64
82
|
}, z.core.$strip>;
|
|
65
83
|
declare const uploadInput: z.ZodObject<{
|
package/dist/preview.js
CHANGED