@stackbit/cms-core 0.1.29 → 0.1.30-alpha.0

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.
Files changed (82) hide show
  1. package/dist/content-store-utils.d.ts +5 -5
  2. package/dist/content-store-utils.d.ts.map +1 -1
  3. package/dist/content-store-utils.js +6 -2
  4. package/dist/content-store-utils.js.map +1 -1
  5. package/dist/content-store.d.ts +3 -3
  6. package/dist/content-store.d.ts.map +1 -1
  7. package/dist/content-store.js +1 -1
  8. package/dist/content-store.js.map +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/types/content-store-document-fields.d.ts +600 -0
  14. package/dist/types/content-store-document-fields.d.ts.map +1 -0
  15. package/dist/types/content-store-document-fields.js +3 -0
  16. package/dist/types/content-store-document-fields.js.map +1 -0
  17. package/dist/types/content-store-documents.d.ts +99 -0
  18. package/dist/types/content-store-documents.d.ts.map +1 -0
  19. package/dist/types/content-store-documents.js +3 -0
  20. package/dist/types/content-store-documents.js.map +1 -0
  21. package/dist/types/content-store-types.d.ts +75 -0
  22. package/dist/types/content-store-types.d.ts.map +1 -0
  23. package/dist/types/content-store-types.js.map +1 -0
  24. package/dist/types/content-store-update-operation.d.ts +61 -0
  25. package/dist/types/content-store-update-operation.d.ts.map +1 -0
  26. package/dist/types/content-store-update-operation.js +3 -0
  27. package/dist/types/content-store-update-operation.js.map +1 -0
  28. package/dist/types/index.d.ts +6 -0
  29. package/dist/types/index.d.ts.map +1 -0
  30. package/dist/types/index.js +18 -0
  31. package/dist/types/index.js.map +1 -0
  32. package/dist/types/search-filter.d.ts +1 -1
  33. package/dist/types/search-filter.d.ts.map +1 -1
  34. package/dist/utils/create-update-csi-docs.d.ts +1 -1
  35. package/dist/utils/create-update-csi-docs.d.ts.map +1 -1
  36. package/dist/utils/create-update-csi-docs.js +9 -5
  37. package/dist/utils/create-update-csi-docs.js.map +1 -1
  38. package/dist/utils/csi-to-store-docs-converter.d.ts +1 -1
  39. package/dist/utils/csi-to-store-docs-converter.d.ts.map +1 -1
  40. package/dist/utils/csi-to-store-docs-converter.js +20 -4
  41. package/dist/utils/csi-to-store-docs-converter.js.map +1 -1
  42. package/dist/utils/duplicate-document.d.ts +1 -1
  43. package/dist/utils/duplicate-document.d.ts.map +1 -1
  44. package/dist/utils/index.d.ts +2 -2
  45. package/dist/utils/index.d.ts.map +1 -1
  46. package/dist/utils/search-utils.d.ts +1 -1
  47. package/dist/utils/search-utils.d.ts.map +1 -1
  48. package/dist/utils/search-utils.js +16 -16
  49. package/dist/utils/search-utils.js.map +1 -1
  50. package/dist/utils/site-map.d.ts +1 -1
  51. package/dist/utils/site-map.d.ts.map +1 -1
  52. package/dist/utils/store-to-api-docs-converter.d.ts +1 -1
  53. package/dist/utils/store-to-api-docs-converter.d.ts.map +1 -1
  54. package/dist/utils/store-to-api-docs-converter.js +39 -12
  55. package/dist/utils/store-to-api-docs-converter.js.map +1 -1
  56. package/dist/utils/store-to-csi-docs-converter.d.ts +1 -1
  57. package/dist/utils/store-to-csi-docs-converter.d.ts.map +1 -1
  58. package/dist/utils/timer.d.ts +1 -1
  59. package/dist/utils/timer.d.ts.map +1 -1
  60. package/package.json +4 -4
  61. package/src/content-store-utils.ts +10 -7
  62. package/src/content-store.ts +10 -10
  63. package/src/index.ts +1 -1
  64. package/src/types/content-store-document-fields.ts +658 -0
  65. package/src/types/content-store-documents.ts +113 -0
  66. package/src/types/content-store-types.ts +96 -0
  67. package/src/types/content-store-update-operation.ts +85 -0
  68. package/src/types/index.ts +5 -0
  69. package/src/types/search-filter.ts +26 -19
  70. package/src/utils/create-update-csi-docs.ts +13 -8
  71. package/src/utils/csi-to-store-docs-converter.ts +33 -14
  72. package/src/utils/duplicate-document.ts +2 -2
  73. package/src/utils/search-utils.ts +18 -19
  74. package/src/utils/site-map.ts +1 -1
  75. package/src/utils/store-to-api-docs-converter.ts +41 -13
  76. package/src/utils/store-to-csi-docs-converter.ts +1 -1
  77. package/src/utils/timer.ts +1 -1
  78. package/dist/content-store-types.d.ts +0 -413
  79. package/dist/content-store-types.d.ts.map +0 -1
  80. package/dist/content-store-types.js.map +0 -1
  81. package/src/content-store-types.ts +0 -531
  82. /package/dist/{content-store-types.js → types/content-store-types.js} +0 -0
@@ -0,0 +1,600 @@
1
+ import * as CSITypes from '@stackbit/types';
2
+ export declare type DocumentField = DocumentStringLikeField | DocumentMarkdownField | DocumentNumberField | DocumentBooleanField | DocumentJsonField | DocumentStyleField | DocumentRichTextField | DocumentImageField | DocumentFileField | DocumentObjectField | DocumentModelField | DocumentReferenceField | DocumentCrossReferenceField | DocumentListField;
3
+ export declare type DocumentFieldNonLocalized = DocumentStringLikeFieldNonLocalized | DocumentMarkdownFieldNonLocalized | DocumentNumberFieldNonLocalized | DocumentBooleanFieldNonLocalized | DocumentJsonFieldNonLocalized | DocumentStyleFieldNonLocalized | DocumentRichTextFieldNonLocalized | DocumentImageFieldNonLocalized | DocumentFileFieldNonLocalized | DocumentObjectFieldNonLocalized | DocumentModelFieldNonLocalized | DocumentReferenceFieldNonLocalized | DocumentCrossReferenceFieldNonLocalized | DocumentListFieldNonLocalized;
4
+ export declare type DocumentFieldLocalized = DocumentStringLikeFieldLocalized | DocumentMarkdownFieldLocalized | DocumentNumberFieldLocalized | DocumentBooleanFieldLocalized | DocumentJsonFieldLocalized | DocumentStyleFieldLocalized | DocumentRichTextFieldLocalized | DocumentImageFieldLocalized | DocumentFileFieldLocalized | DocumentObjectFieldLocalized | DocumentModelFieldLocalized | DocumentReferenceFieldLocalized | DocumentCrossReferenceFieldLocalized | DocumentListFieldLocalized;
5
+ export declare type DocumentFieldAPI = DocumentStringLikeFieldAPI | DocumentMarkdownFieldAPI | DocumentNumberFieldAPI | DocumentBooleanFieldAPI | DocumentJsonFieldAPI | DocumentStyleFieldAPI | DocumentRichTextFieldAPI | DocumentImageFieldAPI | DocumentFileFieldAPI | DocumentObjectFieldAPI | DocumentModelFieldAPI | DocumentReferenceFieldAPI | DocumentCrossReferenceFieldAPI | DocumentListFieldAPI;
6
+ export declare type DocumentFieldBaseProps = DocumentFieldBasePropsForDocumentField<DocumentFieldNonLocalized>;
7
+ export declare type DocumentFieldSpecificProps = DocumentFieldSpecificPropsForDocumentField<DocumentFieldLocalized>;
8
+ /**
9
+ * Utility Types
10
+ */
11
+ declare type FieldType = CSITypes.FieldType;
12
+ export declare type ExtractByType<Union extends {
13
+ type: FieldType | 'unresolved_reference';
14
+ }, Type extends FieldType | 'unresolved_reference'> = Union extends {
15
+ type: Type;
16
+ } ? Union : never;
17
+ export declare type DocumentFieldForType<Type extends FieldType> = ExtractByType<DocumentField, Type>;
18
+ export declare type DocumentFieldNonLocalizedForType<Type extends FieldType> = ExtractByType<DocumentFieldNonLocalized, Type>;
19
+ export declare type DocumentFieldLocalizedForType<Type extends FieldType> = ExtractByType<DocumentFieldLocalized, Type>;
20
+ export declare type DocumentFieldAPIForType<Type extends FieldType | 'unresolved_reference'> = ExtractByType<DocumentFieldAPI, Type>;
21
+ export declare type DocumentFieldBasePropsForType<Type extends FieldType> = ExtractByType<DocumentFieldBaseProps, Type>;
22
+ export declare type DocumentFieldBasePropsForDocumentField<DocField extends DocumentField> = DocField extends {
23
+ isUnset?: false;
24
+ localized?: false;
25
+ } ? Omit<DocField, keyof DocumentFieldSpecificPropsForDocumentField<DocumentFieldLocalizedForType<DocField['type']>> | 'localized' | 'isUnset'> : never;
26
+ export declare type DocumentFieldSpecificPropsForDocumentField<DocField extends DocumentFieldLocalized> = DocField extends {
27
+ locales: Record<string, infer Props>;
28
+ } ? Omit<Props, 'locale'> : never;
29
+ /**
30
+ * string-like fields (e.g., string, url, slug, text, html, enum, date, datetime, color)
31
+ * The 'markdown' is not included, although it is a string field, because it has
32
+ * the `multiElement` and `isUnset` fields.
33
+ * The 'file' also has `isUnset` field and should have its own type anyway.
34
+ */
35
+ declare type DocumentStringLikeFieldTypes = Exclude<CSITypes.DocumentStringLikeFieldTypes, 'markdown' | 'file'>;
36
+ export declare type DocumentStringLikeField = DocumentStringLikeFieldForType<DocumentStringLikeFieldTypes>;
37
+ export declare type DocumentStringLikeFieldNonLocalized = DistributeDocumentStringLikeFieldNonLocalized<DocumentStringLikeFieldTypes>;
38
+ export declare type DocumentStringLikeFieldLocalized = DistributeDocumentStringFieldLocalized<DocumentStringLikeFieldTypes>;
39
+ export declare type DocumentStringLikeFieldAPI = DistributeDocumentStringFieldAPI<DocumentStringLikeFieldTypes>;
40
+ export declare type DocumentStringLikeFieldForType<Type> = Type extends DocumentStringLikeFieldTypes ? DocumentStringLikeFieldNonLocalizedForType<Type> | DocumentStringLikeFieldLocalizedForType<Type> : never;
41
+ export declare type DistributeDocumentStringLikeFieldNonLocalized<Type> = Type extends DocumentStringLikeFieldTypes ? DocumentStringLikeFieldNonLocalizedForType<Type> : never;
42
+ export declare type DistributeDocumentStringFieldLocalized<Type> = Type extends DocumentStringLikeFieldTypes ? DocumentStringLikeFieldLocalizedForType<Type> : never;
43
+ export declare type DistributeDocumentStringFieldAPI<Type> = Type extends DocumentStringLikeFieldTypes ? DocumentStringLikeFieldAPIForType<Type> : never;
44
+ export interface DocumentStringLikeFieldNonLocalizedForType<Type extends DocumentStringLikeFieldTypes> {
45
+ type: Type;
46
+ label?: string;
47
+ localized?: false;
48
+ value?: string;
49
+ }
50
+ export interface DocumentStringLikeFieldLocalizedForType<Type extends DocumentStringLikeFieldTypes> {
51
+ type: Type;
52
+ label?: string;
53
+ localized: true;
54
+ locales: Record<string, {
55
+ locale: string;
56
+ value: string;
57
+ }>;
58
+ }
59
+ export declare type DocumentStringLikeFieldAPIForType<Type extends DocumentStringLikeFieldTypes> = {
60
+ type: Type;
61
+ label?: string;
62
+ description?: string;
63
+ value?: string | null;
64
+ } & ({
65
+ localized?: false;
66
+ } | {
67
+ localized: true;
68
+ locale: string;
69
+ });
70
+ /**
71
+ * markdown
72
+ */
73
+ export declare type DocumentMarkdownField = DocumentMarkdownFieldNonLocalized | DocumentMarkdownFieldLocalized;
74
+ export declare type DocumentMarkdownFieldNonLocalized = {
75
+ type: 'markdown';
76
+ label?: string;
77
+ localized?: false;
78
+ multiElement?: boolean;
79
+ value?: string;
80
+ } & ({
81
+ isUnset: true;
82
+ value?: never;
83
+ } | {
84
+ isUnset?: false;
85
+ value: string;
86
+ });
87
+ export interface DocumentMarkdownFieldLocalized {
88
+ type: 'markdown';
89
+ label?: string;
90
+ localized: true;
91
+ locales: Record<string, {
92
+ locale: string;
93
+ multiElement?: boolean;
94
+ value: string;
95
+ }>;
96
+ }
97
+ export declare type DocumentMarkdownFieldAPI = {
98
+ type: 'markdown';
99
+ multiElement?: boolean;
100
+ label?: string;
101
+ description?: string;
102
+ value?: string | null;
103
+ } & ({
104
+ isUnset: true;
105
+ value?: null;
106
+ } | {
107
+ isUnset?: false;
108
+ value: string;
109
+ }) & ({
110
+ localized?: false;
111
+ } | {
112
+ localized: true;
113
+ locale: string;
114
+ });
115
+ /**
116
+ * number
117
+ */
118
+ export declare type DocumentNumberField = DocumentNumberFieldNonLocalized | DocumentNumberFieldLocalized;
119
+ export interface DocumentNumberFieldNonLocalized {
120
+ type: 'number';
121
+ label?: string;
122
+ localized?: false;
123
+ value?: number;
124
+ }
125
+ export interface DocumentNumberFieldLocalized {
126
+ type: 'number';
127
+ label?: string;
128
+ localized: true;
129
+ locales: Record<string, {
130
+ locale: string;
131
+ value: number;
132
+ }>;
133
+ }
134
+ export declare type DocumentNumberFieldAPI = {
135
+ type: 'number';
136
+ value?: number | null;
137
+ label?: string;
138
+ description?: string;
139
+ } & ({
140
+ localized?: false;
141
+ } | {
142
+ localized: true;
143
+ locale: string;
144
+ });
145
+ /**
146
+ * boolean
147
+ */
148
+ export declare type DocumentBooleanField = DocumentBooleanFieldNonLocalized | DocumentBooleanFieldLocalized;
149
+ export interface DocumentBooleanFieldNonLocalized {
150
+ type: 'boolean';
151
+ label?: string;
152
+ localized?: false;
153
+ value?: boolean;
154
+ }
155
+ export interface DocumentBooleanFieldLocalized {
156
+ type: 'boolean';
157
+ label?: string;
158
+ localized: true;
159
+ locales: Record<string, {
160
+ locale: string;
161
+ value: boolean;
162
+ }>;
163
+ }
164
+ export declare type DocumentBooleanFieldAPI = {
165
+ type: 'boolean';
166
+ value?: boolean | null;
167
+ label?: string;
168
+ description?: string;
169
+ } & ({
170
+ localized?: false;
171
+ } | {
172
+ localized: true;
173
+ locale: string;
174
+ });
175
+ /**
176
+ * json
177
+ */
178
+ export declare type DocumentJsonField = DocumentJsonFieldNonLocalized | DocumentJsonFieldLocalized;
179
+ export declare type DocumentJsonFieldNonLocalized = {
180
+ type: 'json';
181
+ label?: string;
182
+ localized?: false;
183
+ value?: any;
184
+ } & ({
185
+ isUnset: true;
186
+ value?: never;
187
+ } | {
188
+ isUnset?: false;
189
+ value: any;
190
+ });
191
+ export interface DocumentJsonFieldLocalized {
192
+ type: 'json';
193
+ label?: string;
194
+ localized: true;
195
+ locales: Record<string, {
196
+ locale: string;
197
+ value: any;
198
+ }>;
199
+ }
200
+ export declare type DocumentJsonFieldAPI = {
201
+ type: 'json';
202
+ label?: string;
203
+ description?: string;
204
+ value?: any;
205
+ } & ({
206
+ isUnset: true;
207
+ value?: null;
208
+ } | {
209
+ isUnset?: false;
210
+ value: any;
211
+ }) & ({
212
+ localized?: false;
213
+ } | {
214
+ localized: true;
215
+ locale: string;
216
+ });
217
+ /**
218
+ * style
219
+ */
220
+ export declare type DocumentStyleField = DocumentStyleFieldNonLocalized | DocumentStyleFieldLocalized;
221
+ export declare type DocumentStyleFieldValue = Record<string, Partial<Record<CSITypes.StyleProps, any>>>;
222
+ export interface DocumentStyleFieldNonLocalized {
223
+ type: 'style';
224
+ label?: string;
225
+ localized?: false;
226
+ value?: DocumentStyleFieldValue;
227
+ }
228
+ export interface DocumentStyleFieldLocalized {
229
+ type: 'style';
230
+ label?: string;
231
+ localized: true;
232
+ locales: Record<string, {
233
+ locale: string;
234
+ value: DocumentStyleFieldValue;
235
+ }>;
236
+ }
237
+ export declare type DocumentStyleFieldAPI = {
238
+ type: 'style';
239
+ value?: DocumentStyleFieldValue | null;
240
+ label?: string;
241
+ description?: string;
242
+ } & ({
243
+ localized?: false;
244
+ } | {
245
+ localized: true;
246
+ locale: string;
247
+ });
248
+ /**
249
+ * richText
250
+ */
251
+ export declare type DocumentRichTextField = DocumentRichTextFieldNonLocalized | DocumentRichTextFieldLocalized;
252
+ export declare type DocumentRichTextFieldValue = any;
253
+ export declare type DocumentRichTextFieldNonLocalized = {
254
+ type: 'richText';
255
+ label?: string;
256
+ localized?: false;
257
+ hint?: string;
258
+ multiElement?: boolean;
259
+ value?: DocumentRichTextFieldValue;
260
+ } & ({
261
+ isUnset: true;
262
+ value?: never;
263
+ } | {
264
+ isUnset?: false;
265
+ value: DocumentRichTextFieldValue;
266
+ });
267
+ export interface DocumentRichTextFieldLocalized {
268
+ type: 'richText';
269
+ label?: string;
270
+ localized: true;
271
+ locales: Record<string, {
272
+ locale: string;
273
+ hint?: string;
274
+ multiElement?: boolean;
275
+ value: DocumentRichTextFieldValue;
276
+ }>;
277
+ }
278
+ export declare type DocumentRichTextFieldAPI = {
279
+ type: 'richText';
280
+ hint?: string;
281
+ multiElement?: boolean;
282
+ label?: string;
283
+ description?: string;
284
+ value?: DocumentRichTextFieldValue | null;
285
+ } & ({
286
+ isUnset: true;
287
+ value?: null;
288
+ } | {
289
+ isUnset?: false;
290
+ value: DocumentRichTextFieldValue;
291
+ }) & ({
292
+ localized?: false;
293
+ } | {
294
+ localized: true;
295
+ locale: string;
296
+ });
297
+ /**
298
+ * image
299
+ */
300
+ export declare type DocumentImageField = DocumentImageFieldNonLocalized | DocumentImageFieldLocalized;
301
+ export declare type DocumentImageFieldNonLocalized = {
302
+ type: 'image';
303
+ label?: string;
304
+ localized?: false;
305
+ source?: string;
306
+ sourceData?: any;
307
+ } & ({
308
+ isUnset: true;
309
+ } | {
310
+ isUnset?: false;
311
+ fields: ImageFields;
312
+ });
313
+ export interface DocumentImageFieldLocalized {
314
+ type: 'image';
315
+ label?: string;
316
+ source?: string;
317
+ sourceData?: any;
318
+ localized: true;
319
+ locales: Record<string, {
320
+ locale: string;
321
+ fields: ImageFields;
322
+ }>;
323
+ }
324
+ export declare type ImageFields = {
325
+ title: DocumentStringLikeFieldForType<'string'>;
326
+ url: DocumentStringLikeFieldForType<'string'>;
327
+ };
328
+ export declare type DocumentImageFieldAPI = {
329
+ type: 'image';
330
+ source?: string;
331
+ sourceData?: any;
332
+ label?: string;
333
+ description?: string;
334
+ } & ({
335
+ isUnset: true;
336
+ } | {
337
+ isUnset?: false;
338
+ fields: ImageFieldsAPI;
339
+ }) & ({
340
+ localized?: false;
341
+ } | {
342
+ localized: true;
343
+ locale: string;
344
+ });
345
+ export declare type ImageFieldsAPI = {
346
+ title: DocumentFieldAPIForType<'string'>;
347
+ url: DocumentFieldAPIForType<'string'>;
348
+ };
349
+ /**
350
+ * file
351
+ */
352
+ export declare type DocumentFileField = DocumentFileFieldNonLocalized | DocumentFileFieldLocalized;
353
+ export declare type DocumentFileFieldNonLocalized = {
354
+ type: 'file';
355
+ label?: string;
356
+ localized?: false;
357
+ value?: any;
358
+ } & ({
359
+ isUnset: true;
360
+ value?: never;
361
+ } | {
362
+ isUnset?: false;
363
+ value: any;
364
+ });
365
+ export interface DocumentFileFieldLocalized {
366
+ type: 'file';
367
+ label?: string;
368
+ localized: true;
369
+ locales: Record<string, {
370
+ locale: string;
371
+ value: any;
372
+ }>;
373
+ }
374
+ export declare type DocumentFileFieldAPI = {
375
+ type: 'file';
376
+ label?: string;
377
+ description?: string;
378
+ value?: any;
379
+ } & ({
380
+ isUnset: true;
381
+ value?: null;
382
+ } | {
383
+ isUnset?: false;
384
+ value: any;
385
+ }) & ({
386
+ localized?: false;
387
+ } | {
388
+ localized: true;
389
+ locale: string;
390
+ });
391
+ /**
392
+ * object
393
+ */
394
+ export declare type DocumentObjectField = DocumentObjectFieldNonLocalized | DocumentObjectFieldLocalized;
395
+ export declare type DocumentObjectFieldNonLocalized = {
396
+ type: 'object';
397
+ label?: string;
398
+ localized?: false;
399
+ } & ({
400
+ isUnset: true;
401
+ } | {
402
+ isUnset?: false;
403
+ srcObjectLabel: string;
404
+ fields: Record<string, DocumentField>;
405
+ });
406
+ export interface DocumentObjectFieldLocalized {
407
+ type: 'object';
408
+ label?: string;
409
+ localized: true;
410
+ locales: Record<string, {
411
+ locale: string;
412
+ srcObjectLabel: string;
413
+ fields: Record<string, DocumentField>;
414
+ }>;
415
+ }
416
+ export declare type DocumentObjectFieldAPI = {
417
+ type: 'object';
418
+ label?: string;
419
+ description?: string;
420
+ } & ({
421
+ isUnset: true;
422
+ } | {
423
+ isUnset?: false;
424
+ srcObjectLabel: string;
425
+ fields: Record<string, DocumentFieldAPI>;
426
+ }) & ({
427
+ localized?: false;
428
+ } | {
429
+ localized: true;
430
+ locale: string;
431
+ });
432
+ /**
433
+ * model
434
+ */
435
+ export declare type DocumentModelField = DocumentModelFieldNonLocalized | DocumentModelFieldLocalized;
436
+ export declare type DocumentModelFieldNonLocalized = {
437
+ type: 'model';
438
+ label?: string;
439
+ localized?: false;
440
+ } & ({
441
+ isUnset: true;
442
+ } | {
443
+ isUnset?: false;
444
+ srcObjectLabel: string;
445
+ srcModelName: string;
446
+ srcModelLabel: string;
447
+ fields: Record<string, DocumentField>;
448
+ });
449
+ export interface DocumentModelFieldLocalized {
450
+ type: 'model';
451
+ label?: string;
452
+ localized: true;
453
+ locales: Record<string, {
454
+ locale: string;
455
+ srcObjectLabel: string;
456
+ srcModelName: string;
457
+ srcModelLabel: string;
458
+ fields: Record<string, DocumentField>;
459
+ }>;
460
+ }
461
+ export declare type DocumentModelFieldAPI = {
462
+ type: 'object';
463
+ label?: string;
464
+ description?: string;
465
+ } & ({
466
+ isUnset: true;
467
+ } | {
468
+ isUnset?: false;
469
+ srcObjectLabel: string;
470
+ srcModelName: string;
471
+ srcModelLabel: string;
472
+ fields: Record<string, DocumentFieldAPI>;
473
+ }) & ({
474
+ localized?: false;
475
+ } | {
476
+ localized: true;
477
+ locale: string;
478
+ });
479
+ /**
480
+ * reference
481
+ */
482
+ export declare type DocumentReferenceField = DocumentReferenceFieldNonLocalized | DocumentReferenceFieldLocalized;
483
+ export declare type DocumentReferenceFieldNonLocalized = {
484
+ type: 'reference';
485
+ refType: 'document' | 'asset';
486
+ label?: string;
487
+ localized?: false;
488
+ } & ({
489
+ isUnset: true;
490
+ } | {
491
+ isUnset?: false;
492
+ refId: string;
493
+ });
494
+ export interface DocumentReferenceFieldLocalized {
495
+ type: 'reference';
496
+ refType: 'document' | 'asset';
497
+ label?: string;
498
+ localized: true;
499
+ locales: Record<string, {
500
+ locale: string;
501
+ refId: string;
502
+ }>;
503
+ }
504
+ export declare type DocumentReferenceFieldAPI = {
505
+ type: 'unresolved_reference';
506
+ refType: 'object' | 'image';
507
+ label?: string;
508
+ description?: string;
509
+ } & ({
510
+ isUnset: true;
511
+ } | {
512
+ isUnset?: false;
513
+ refId: string;
514
+ }) & ({
515
+ localized?: false;
516
+ } | {
517
+ localized: true;
518
+ locale: string;
519
+ });
520
+ /**
521
+ * cross-reference
522
+ */
523
+ export declare type DocumentCrossReferenceField = DocumentCrossReferenceFieldNonLocalized | DocumentCrossReferenceFieldLocalized;
524
+ export declare type DocumentCrossReferenceFieldNonLocalized = {
525
+ type: 'cross-reference';
526
+ refType: 'document' | 'asset';
527
+ label?: string;
528
+ localized?: false;
529
+ } & ({
530
+ isUnset: true;
531
+ } | {
532
+ isUnset?: false;
533
+ refId: string;
534
+ refSrcType: string;
535
+ refProjectId: string;
536
+ });
537
+ export interface DocumentCrossReferenceFieldLocalized {
538
+ type: 'cross-reference';
539
+ refType: 'document' | 'asset';
540
+ label?: string;
541
+ localized: true;
542
+ locales: Record<string, {
543
+ locale: string;
544
+ refId: string;
545
+ refSrcType: string;
546
+ refProjectId: string;
547
+ }>;
548
+ }
549
+ export declare type DocumentCrossReferenceFieldAPI = {
550
+ type: 'cross-reference';
551
+ refType: 'document' | 'asset';
552
+ label?: string;
553
+ description?: string;
554
+ } & ({
555
+ isUnset: true;
556
+ } | {
557
+ isUnset?: false;
558
+ refId: string;
559
+ refSrcType: string;
560
+ refProjectId: string;
561
+ }) & ({
562
+ localized?: false;
563
+ } | {
564
+ localized: true;
565
+ locale: string;
566
+ });
567
+ /**
568
+ * list
569
+ */
570
+ export declare type DocumentListField = DocumentListFieldNonLocalized | DocumentListFieldLocalized;
571
+ export declare type DocumentListFieldItems = Exclude<DocumentFieldNonLocalized, DocumentListFieldNonLocalized>;
572
+ export interface DocumentListFieldNonLocalized {
573
+ type: 'list';
574
+ label?: string;
575
+ localized?: false;
576
+ items: DocumentListFieldItems[];
577
+ }
578
+ export interface DocumentListFieldLocalized {
579
+ type: 'list';
580
+ label?: string;
581
+ localized: true;
582
+ locales: Record<string, {
583
+ locale: string;
584
+ items: DocumentListFieldItems[];
585
+ }>;
586
+ }
587
+ export declare type DocumentListFieldItemsAPI = Exclude<DocumentFieldAPI, DocumentListFieldAPI>;
588
+ export declare type DocumentListFieldAPI = {
589
+ type: 'list';
590
+ label?: string;
591
+ description?: string;
592
+ items: DocumentListFieldItemsAPI[];
593
+ } & ({
594
+ localized?: false;
595
+ } | {
596
+ localized: true;
597
+ locale: string;
598
+ });
599
+ export {};
600
+ //# sourceMappingURL=content-store-document-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-store-document-fields.d.ts","sourceRoot":"","sources":["../../src/types/content-store-document-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,oBAAY,aAAa,GACnB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,kBAAkB,GAClB,iBAAiB,GACjB,mBAAmB,GACnB,kBAAkB,GAClB,sBAAsB,GACtB,2BAA2B,GAC3B,iBAAiB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E,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=content-store-document-fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-store-document-fields.js","sourceRoot":"","sources":["../../src/types/content-store-document-fields.ts"],"names":[],"mappings":""}