-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtypes.ts
1101 lines (980 loc) · 22.6 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { FSXAContentMode, ImageMapAreaType } from './enums'
import {
FSXAProxyApi,
FSXARemoteApi,
LogLevel,
MapResponse,
ReferencedItemsInfo,
ResolvedReferencesInfo,
} from './modules'
import {
ArrayQueryOperatorEnum,
ComparisonQueryOperatorEnum,
EvaluationQueryOperatorEnum,
LogicalQueryOperatorEnum,
} from './modules/QueryBuilder'
import XMLParser from './modules/XMLParser'
export interface MasterLocale {
country: string
language: string
identifier: string
}
export interface CaaSApi_Lifespan {
start: string
end?: string
}
export interface Lifespan {
start: Date
end?: Date
}
export interface CaaSApi_Template {
fsType: 'PageTemplate' | 'SectionTemplate' | 'LinkTemplate'
name: string
identifier: string
uid: string
uidType: string
displayName: string
}
export interface CaaSApi_Option {
fsType: 'Option'
label: string
identifier: string
}
export interface CaaSApi_CMSInputCheckbox {
fsType: 'CMS_INPUT_CHECKBOX'
name: string
value: CaaSApi_Option[]
}
export interface CaaSApi_CMSInputRadioButton {
fsType: 'CMS_INPUT_RADIOBUTTON'
name: string
value: CaaSApi_Option | null
}
export interface CaaSApi_CMSInputText {
fsType: 'CMS_INPUT_TEXT'
name: string
value: string
}
export interface CaaSApi_CMSInputTextArea {
fsType: 'CMS_INPUT_TEXTAREA'
name: string
value: string
}
export interface CaaSApi_CMSInputDOM {
fsType: 'CMS_INPUT_DOM'
name: string
/**
* This contains xml
*/
value: string
}
export interface CaaSApi_CMSInputDOMTable {
fsType: 'CMS_INPUT_DOMTABLE'
name: string
/**
* This contains xml
*/
value: string
}
export interface CaaSApi_CMSInputToggle {
fsType: 'CMS_INPUT_TOGGLE'
name: string
value: boolean | null
}
export interface CaaSApi_CMSInputNumber {
fsType: 'CMS_INPUT_NUMBER'
name: string
value: number
}
export interface CaaSApi_CMSInputLink {
fsType: 'CMS_INPUT_LINK'
name: string
value: {
template: CaaSApi_Template
formData: CaaSApi_DataEntries
metaFormData: CaaSApi_DataEntries
}
}
export interface CaaSApi_CMSInputList {
fsType: 'CMS_INPUT_LIST'
name: string
value: any[]
}
export interface CaaSApi_CMSInputCombobox {
fsType: 'CMS_INPUT_COMBOBOX'
name: string
value: CaaSApi_Option | null
}
export interface CaaSApi_CMSInputRadioButton {
fsType: 'CMS_INPUT_RADIOBUTTON'
name: string
value: CaaSApi_Option | null
}
export interface CaaSApi_CMSInputDate {
fsType: 'CMS_INPUT_DATE'
name: string
value: string | null
}
export interface Point2D {
x: number
y: number
}
export interface CaaSApi_ImageMapArea {
fsType: 'Area'
areaType: ImageMapAreaType
link: {
template: CaaSApi_Template
formData: CaaSApi_DataEntries
} | null
}
export interface CaaSApi_ImageMapAreaCircle extends CaaSApi_ImageMapArea {
areaType: ImageMapAreaType.CIRCLE
radius: number
center: Point2D
}
export interface CaaSApi_ImageMapAreaRect extends CaaSApi_ImageMapArea {
areaType: ImageMapAreaType.RECT
leftTop: Point2D
rightBottom: Point2D
}
export interface CaaSApi_ImageMapAreaPoly extends CaaSApi_ImageMapArea {
areaType: ImageMapAreaType.POLY
points: Point2D[]
}
export interface CaaSApi_ImageMapMedia
extends Pick<
CaaSApi_Media,
| 'fsType'
| 'name'
| 'displayName'
| 'identifier'
| 'uid'
| 'uidType'
| 'mediaType'
> {
url: string
pictureMetaData: Omit<CaaSApi_Media_Picture_Resolution_MetaData, 'url'>
}
export interface CaaSApi_CMSImageMap {
fsType: 'CMS_INPUT_IMAGEMAP'
name: string
value: {
fsType: 'MappingMedium'
media: CaaSApi_MediaRef
areas: CaaSApi_ImageMapArea[]
resolution: {
fsType: 'Resolution'
uid: string
width: number
height: number
}
}
}
export interface CaaSApi_FSDataset {
fsType: 'FS_DATASET'
name: string
value:
| {
fsType: 'DatasetReference'
target: {
fsType: 'Dataset'
schema: string
entityType: string
identifier: string
}
}
| CaaSApi_DataEntry[]
| null
}
export interface CaaSApi_FSButton {
fsType: 'FS_BUTTON'
name: string
value: {}
}
export interface CaaSApi_Card {
fsType: 'Card'
identifier: string
uuid: string
template: CaaSApi_Template
formData: CaaSApi_DataEntries
}
export interface CaaSApi_FSCatalog {
fsType: 'FS_CATALOG'
name: string
value: CaaSApi_Card[] | null
}
export interface CaaSApi_Record {
fsType: 'Record'
identifier: string
value: Record<string, any> | null
}
export interface CaaSApi_FSIndex {
fsType: 'FS_INDEX'
name: string
dapType: string
value: CaaSApi_Record[]
}
export interface CaaSApi_SectionBaseInfo {
name: string
displayName: string
identifier: string
}
export interface CaaSApi_BaseRef {
fsType: string
name: string
identifier: string
uid: string
uidType: string
url: string
remoteProject?: string
section?: CaaSApi_SectionBaseInfo
}
export interface CaaSApi_MediaRef extends CaaSApi_BaseRef {
fsType: 'Media'
uidType: 'MEDIASTORE_LEAF'
mediaType: 'PICTURE' | 'FILE'
}
export interface CaaSApi_GCARef extends CaaSApi_BaseRef {
fsType: 'GCAPage'
uidType: 'GLOBALSTORE'
url: ''
}
export interface CaaSApi_PageRefRef extends CaaSApi_BaseRef {
fsType: 'PageRef'
uidType: 'SITESTORE_LEAF'
}
export interface CaaSApi_FSReference {
fsType: 'FS_REFERENCE'
name: string
value:
| CaaSApi_BaseRef
| CaaSApi_PageRefRef
| CaaSApi_GCARef
| CaaSApi_MediaRef
| null
}
export interface CaaSAPI_PermissionGroup {
groupName: string
groupPath: string
}
export interface CaaSAPI_PermissionActivity {
activity: string
allowed: CaaSAPI_PermissionGroup[]
forbidden: CaaSAPI_PermissionGroup[]
}
export interface CaaSApi_CMSInputPermission {
fsType: 'CMS_INPUT_PERMISSION'
name: string
value: CaaSAPI_PermissionActivity[]
}
export interface PermissionGroup extends CaaSAPI_PermissionGroup {
groupId: string
}
export interface PermissionActivity extends CaaSAPI_PermissionActivity {
allowed: PermissionGroup[]
forbidden: PermissionGroup[]
}
export interface Permission extends CaaSApi_CMSInputPermission {
type: string
value: PermissionActivity[]
}
export interface DatasetRoute {
pageRef: string
route: string
}
export type CaaSApi_DataEntry =
| CaaSApi_CMSInputCheckbox
| CaaSApi_CMSInputCombobox
| CaaSApi_CMSInputDOM
| CaaSApi_CMSInputDOMTable
| CaaSApi_CMSInputLink
| CaaSApi_CMSInputList
| CaaSApi_CMSInputNumber
| CaaSApi_CMSInputText
| CaaSApi_CMSInputTextArea
| CaaSApi_CMSInputToggle
| CaaSApi_CMSImageMap
| CaaSApi_FSButton
| CaaSApi_FSCatalog
| CaaSApi_FSDataset
| CaaSApi_FSIndex
| CaaSApi_FSReference
| CaaSApi_CMSInputRadioButton
| CaaSApi_CMSInputDate
| CaaSApi_Option
| CaaSApi_CMSInputPermission
export interface CaaSApi_DataEntries {
[key: string]: CaaSApi_DataEntry
}
export interface CaaSApi_Content2Section {
fsType: 'Content2Section'
identifier: string
schema: string
entityType: string
name: string
displayName: string
template: CaaSApi_Template
query: string | null
recordCountPerPage: number
maxPageCount: number
filterParams: {
[key: string]: any
}
ordering: {
attribute: string
ascending: boolean
}[]
}
export interface CaaSApi_Dataset {
_id: string
fsType: 'Dataset'
schema: string
entityType: string
displayName: string
identifier: string
template: CaaSApi_Template
formData: CaaSApi_DataEntries
route: string
routes: DatasetRoute[]
locale: {
language: string
country: string
}
}
export interface CaaSApi_Section {
fsType: 'Section' | 'GCASection'
name: string
displayName: string
identifier: string
template: CaaSApi_Template
formData: CaaSApi_DataEntries
displayed?: boolean
lifespan?: CaaSApi_Lifespan
}
export interface CaaSApi_SectionReference {
fsType: 'SectionReference'
name: string
displayName: string
identifier: string
template: CaaSApi_Template
formData: CaaSApi_DataEntries
displayed?: boolean
lifespan?: CaaSApi_Lifespan
}
export interface CaaSApi_Body {
fsType: 'Body' | 'GCABody'
name: string
identifier: string
children: (
| CaaSApi_Section
| CaaSApi_Content2Section
| CaaSApi_SectionReference
)[]
}
export interface CaaSApi_GCAPage {
_id: string
fsType: 'GCAPage'
name: string
displayName: string
identifier: string
uid: string
uidType: string
template: CaaSApi_Template
formData: CaaSApi_DataEntries
metaFormData: CaaSApi_DataEntries
children: CaaSApi_Body[]
}
export interface CaaSApi_ProjectProperties {
_id: string
fsType: 'ProjectProperties'
name: string
displayName: string
identifier: string
template: CaaSApi_Template
formData: CaaSApi_DataEntries
metaFormData: CaaSApi_DataEntries
projectConfiguration?: {
masterLocale: MasterLocale
}
}
export interface CaaSApi_Page {
fsType: 'Page'
name: string
displayName: string
identifier: string
uid: string
uidType: string
template: CaaSApi_Template
formData: CaaSApi_DataEntries
metaFormData: CaaSApi_DataEntries
children: CaaSApi_Body[]
}
export interface CaaSApi_PageRef {
_id: string
fsType: 'PageRef'
name: string
identifier: string
uid: string
uidType: string
url: string
page: CaaSApi_Page
displayName: string
metaFormData?: CaaSApi_DataEntries
route: string
}
export interface CaaSApi_Media_Base {
_id: string
fsType: 'Media'
name: string
displayName: string
identifier: string
uid: string
uidType: string
fileName: string
languageDependent: boolean
description: string | null
metaFormData: CaaSApi_DataEntries
changeInfo?: { revision: number }
}
export interface CaaSApi_Media_File extends CaaSApi_Media_Base {
mediaType: 'FILE'
url: string
fileMetaData: {
fileSize: number
extension: string
mimeType: string
encoding: string | null
}
}
export type CaaSApi_Media_Picture_Resolution_MetaData = {
fileSize: number
extension: string
mimeType: string
width: number
height: number
url: string
}
export interface CaaSApiMediaPictureResolutions {
[resolution: string]: CaaSApi_Media_Picture_Resolution_MetaData
}
export interface CaaSApi_Media_Picture extends CaaSApi_Media_Base {
mediaType: 'PICTURE'
resolutionsMetaData: CaaSApiMediaPictureResolutions
}
export type CaaSApi_Media = CaaSApi_Media_File | CaaSApi_Media_Picture
export interface CaasApi_FilterResponse {
_id: string
_etag: { $oid: string }
_returned: number
_embedded: {
'rh:doc': (
| CaaSApi_PageRef
| CaaSApi_Dataset
| CaaSApi_Media
| CaaSApi_GCAPage
| any
)[]
}
}
export type DataEntry = any
export interface DataEntries {
[key: string]: DataEntry
}
export type PageBodyContent = Section | Content2Section | Dataset
export interface PageBody {
type: 'PageBody'
name: string
previewId: string
children: PageBodyContent[]
}
export interface Page {
type: 'Page'
id: string
refId: string
previewId: string
name: string
layout: string
children: PageBody[]
data: DataEntries
meta: DataEntries
metaPageRef?: DataEntries
remoteProjectId?: string
route: string
}
export interface Reference {
type: 'Reference'
referenceId: string
referenceType: string
referenceRemoteProject?: string
section?: CaaSApi_SectionBaseInfo
}
export interface Option {
type: 'Option'
key: string
value: string
}
export interface Link {
type: 'Link'
template: string
data: DataEntries
meta: DataEntries
}
export interface Card {
type: 'Card'
id: string
previewId: string
template: string
data: DataEntries
}
/**
* This type is extended by ImageMapAreaCircle, ImageMapAreaRect, ImageMapAreaPoly
*/
export interface ImageMapArea {
areaType: ImageMapAreaType
link: {
template: string
data: DataEntries
} | null
}
export interface ImageMapAreaCircle extends ImageMapArea {
areaType: ImageMapAreaType.CIRCLE
radius: number
center: Point2D
}
export interface ImageMapAreaRect extends ImageMapArea {
areaType: ImageMapAreaType.RECT
leftTop: Point2D
rightBottom: Point2D
}
export interface ImageMapAreaPoly extends ImageMapArea {
areaType: ImageMapAreaType.POLY
points: Point2D[]
}
export interface ImageMap {
type: 'ImageMap'
media: Image | null
areas: ImageMapArea[]
}
export interface Media {}
export interface GCAPage {
type: 'GCAPage'
id: string
previewId: string
name: string
layout: string
children: PageBody[]
data: DataEntries
meta: DataEntries
remoteProjectId?: string
}
export interface ProjectProperties {
type: 'ProjectProperties'
id: string
previewId: string
name: string
layout: string
data: DataEntries
meta: DataEntries
remoteProjectId?: string
masterLocale?: MasterLocale
}
export interface Content2Section {
type: 'Content2Section'
sectionType: string
data: {
schema: string
entityType: string
query: string | null
recordCountPerPage: number
maxPageCount: number
filterParams: Record<string, any>
ordering: {
attribute: string
ascending: boolean
}[]
}
children: Dataset[]
}
export interface Section {
type: 'Section'
id: string
name?: string
displayName?: string
previewId: string
sectionType: string
data: DataEntries
displayed?: boolean
lifespan?: Lifespan
children: Section[]
}
export interface Dataset {
type: 'Dataset'
id: string
previewId: string
schema: string
entityType: string
template: string
children: Section[]
data: DataEntries
route: string
routes: DatasetRoute[]
remoteProjectId?: string
locale: string
}
export interface Image {
type: 'Image'
id: string
previewId: string
meta: DataEntries
description: string | null
resolutions: {
[resolution: string]: {
fileSize: number
extension: string
mimeType: string
width: number
height: number
url: string
}
}
remoteProjectId?: string
}
export interface File {
type: 'File'
id: string
previewId: string
meta: DataEntries
fileName: string
url: string
fileMetaData: {
fileSize: number
extension: string
mimeType: string
encoding: string | null
}
remoteProjectId?: string
}
export interface RegisteredDatasetQuery {
name: string
filterParams: Record<string, string>
ordering: {
attribute: string
ascending: boolean
}[]
path: NestedPath
schema: string
entityType: string
}
export type NestedPath = (string | number)[]
export type CustomMapper = (
entry: CaaSApi_DataEntry,
entryPath: NestedPath,
utils: {
api: FSXARemoteApi
xmlParser: XMLParser
registerReferencedItem: (
identifier: string,
path: NestedPath,
remoteProjectId?: string
) => string
buildPreviewId: (identifier: string, remoteProjectLocale?: string) => string
buildMediaUrl: (url: string, rev?: number) => string
mapDataEntries: (
entries: CaaSApi_DataEntries,
path: NestedPath,
remoteProjectLocale?: string,
remoteProjectId?: string
) => Promise<DataEntries>
}
) => Promise<any>
export type MappedCaasItem =
| Page
| GCAPage
| Dataset
| Image
| File
| ProjectProperties
export type CaasApi_Item =
| CaaSApi_Dataset
| CaaSApi_PageRef
| CaaSApi_Media
| CaaSApi_GCAPage
| CaaSApi_ProjectProperties
export interface FSXAConfiguration {
apiKey: string
navigationService: string
caas: string
projectId: string
tenantId: string
contentMode?: 'preview' | 'release'
customMapper?: CustomMapper
remotes?: RemoteProjectConfiguration
enableEventStream?: boolean
}
export interface ObjectMap<ValueType = any> {
[key: string]: ValueType
}
export interface StructureItem {
id: string
children: StructureItem[]
}
export interface NavigationItem {
id: string
parentIds: string[]
label: string
contentReference: string | null
caasDocumentId: string
seoRoute: string
seoRouteRegex: string | null
customData: any
permissions?: {
allowed: string[]
denied: string[]
}
}
export interface NavigationData {
idMap: {
[id: string]: NavigationItem
}
seoRouteMap: {
[route: string]: string
}
structure: StructureItem[]
pages: {
index: string
}
meta: {
identifier: {
tenantId: string
navigationId: string
languageId: string
}
}
}
export type ComparisonFilterValue = string | number | RegExp | boolean | null
export type ComparisonFilter =
| {
field: string
operator:
| ComparisonQueryOperatorEnum.GREATER_THAN
| ComparisonQueryOperatorEnum.GREATER_THAN_EQUALS
| ComparisonQueryOperatorEnum.LESS_THAN
| ComparisonQueryOperatorEnum.LESS_THAN_EQUALS
value: number | string
}
| {
field: string
operator:
| ComparisonQueryOperatorEnum.IN
| ComparisonQueryOperatorEnum.NOT_IN
value: ComparisonFilterValue[]
}
| {
field: string
operator:
| ComparisonQueryOperatorEnum.EQUALS
| ComparisonQueryOperatorEnum.NOT_EQUALS
value: ComparisonFilterValue | ComparisonFilterValue[]
}
export type LogicalFilter =
| {
operator: LogicalQueryOperatorEnum.AND
filters: (LogicalFilter | ComparisonFilter | ArrayFilter)[]
}
| {
field: string
operator: LogicalQueryOperatorEnum.NOT
filter: {
operator: ComparisonQueryOperatorEnum
value: any
}
}
| {
operator: LogicalQueryOperatorEnum.NOR
filters: (LogicalFilter | ComparisonFilter | ArrayFilter)[]
}
| {
operator: LogicalQueryOperatorEnum.OR
filters: (LogicalFilter | ComparisonFilter | ArrayFilter)[]
}
export type ArrayFilter = {
field: string
operator: ArrayQueryOperatorEnum.ALL
value: string[] | number[] | boolean[]
}
export type EvaluationFilter = {
field: string
operator: EvaluationQueryOperatorEnum.REGEX
value: string
}
export type QueryBuilderQuery =
| LogicalFilter
| ComparisonFilter
| ArrayFilter
| EvaluationFilter
export interface MappedFilter {
[key: string]:
| MappedFilter
| MappedFilter[]
| ComparisonFilterValue
| ComparisonFilterValue[]
}
export interface RichTextElement {
type:
| 'block'
| 'text'
| 'paragraph'
| 'list'
| 'listitem'
| 'linebreak'
| 'link'
| string
content: RichTextElement[] | string
data: Link | Record<string, any>
}
export type FetchNavigationParams = {
locale?: string
initialPath?: string
fetchOptions?: RequestInit
filterContext?: unknown
}
export type SortParams = {
name: string
order?: 'asc' | 'desc'
}
export type FetchByFilterParams = {
filters: QueryBuilderQuery[]
locale?: string
page?: number
pagesize?: number
additionalParams?: Record<'keys' | string, any>
remoteProject?: string
fetchOptions?: RequestInit
filterContext?: unknown
sort?: SortParams[]
normalized?: boolean
}
export type FetchElementParams = {
id: string
locale: string
additionalParams?: Record<'keys' | string, any>
remoteProject?: string
fetchOptions?: RequestInit
filterContext?: unknown
normalized?: boolean
}
export type FetchProjectPropertiesParams = {
locale: string
resolver?: string[]
fetchOptions?: RequestInit
}
export type ConnectEventStreamParams = {
remoteProject?: string
}
export interface AppContext<T = unknown> {
app?: T
fsxaApi?: FSXAApi
}
export type RemoteProjectConfiguration = {
[name: string]: {
id: string
locale: string
}
}
export type RemoteProjectConfigurationEntry =
RemoteProjectConfiguration[keyof RemoteProjectConfiguration]
export interface CaasItemFilterParams<FilterContextType> extends MapResponse {
filterContext?: FilterContextType
isKeysSet: boolean
}
export type CaasItemFilter<FilterContextType = unknown> = (