@ynput/ayon-frontend-shared 0.7.5 → 0.8.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 (74) hide show
  1. package/dist/DetailsPanel.es.js +471 -469
  2. package/dist/Feed.es.js +1 -1
  3. package/dist/ListTable.es.js +20 -20
  4. package/dist/NewEntity.es.js +7 -7
  5. package/dist/ProjectTreeTable.es.js +2523 -2502
  6. package/dist/ProjectsTable.es.js +5 -5
  7. package/dist/Slicer.es.js +28 -25
  8. package/dist/Views.es.js +150 -151
  9. package/dist/api.es.js +166 -165
  10. package/dist/chunks/Actions.es.js +9 -10
  11. package/dist/chunks/ColumnDropIndicator.es.js +4 -4
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +4 -5
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +2 -2
  14. package/dist/chunks/DetailsDialog.es.js +3 -3
  15. package/dist/chunks/EmptyPlaceholder.es.js +7 -7
  16. package/dist/chunks/EntityPath.es.js +38 -39
  17. package/dist/chunks/EntityPickerDialog.es.js +482 -462
  18. package/dist/chunks/EntityTooltip.es.js +18 -19
  19. package/dist/chunks/Feed.es.js +1382 -1355
  20. package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
  21. package/dist/chunks/FilterErrorActions.es.js +3 -4
  22. package/dist/chunks/GroupSettingsFallback.es.js +4 -4
  23. package/dist/chunks/Menu.es.js +242 -240
  24. package/dist/chunks/MetaWidget.es.js +1948 -1875
  25. package/dist/chunks/ProjectFoldersContext.es.js +237 -0
  26. package/dist/chunks/RepresentationsList.es.js +1 -1
  27. package/dist/chunks/ReviewablesSelector.es.js +1260 -1190
  28. package/dist/chunks/SimpleTable.es.js +303 -297
  29. package/dist/chunks/Slicer.es.js +420 -413
  30. package/dist/chunks/TableExportContextInstance.es.js +622 -378
  31. package/dist/chunks/TableSettingsFallback.es.js +3 -4
  32. package/dist/chunks/ThumbnailSimple.es.js +114 -99
  33. package/dist/chunks/ThumbnailUploaderContext.es.js +48 -0
  34. package/dist/chunks/VideoPlayer.es.js +8 -9
  35. package/dist/chunks/Watchers.es.js +929 -872
  36. package/dist/chunks/{ColumnDropIndicator.styled.es.js → addonColumnTags.es.js} +60 -47
  37. package/dist/chunks/expandRelativeDates.es.js +1 -1
  38. package/dist/chunks/getThumbnailUrl.es.js +33 -21
  39. package/dist/chunks/getUris.es.js +1580 -1610
  40. package/dist/chunks/queryFilterToClientFilter.es.js +1 -1
  41. package/dist/chunks/realtimeUpdatesUtils.es.js +15 -15
  42. package/dist/chunks/searchTerms.es.js +773 -696
  43. package/dist/chunks/useAttributeEnums.es.js +22 -22
  44. package/dist/chunks/useDateRangeFilter.es.js +1 -1
  45. package/dist/chunks/useHierarchySelection.es.js +3 -4
  46. package/dist/chunks/useLoadModule.es.js +3 -4
  47. package/dist/components.es.js +1391 -1253
  48. package/dist/context.es.js +645 -668
  49. package/dist/hooks.es.js +193 -171
  50. package/dist/index.es.js +4 -4
  51. package/dist/types/Actions.d.ts +10 -8
  52. package/dist/types/DetailsPanel.d.ts +54 -76
  53. package/dist/types/EntityPickerDialog.d.ts +51 -2
  54. package/dist/types/Feed.d.ts +24 -24
  55. package/dist/types/ListTable.d.ts +33 -27
  56. package/dist/types/NewEntity.d.ts +26 -39
  57. package/dist/types/ProjectTreeTable.d.ts +318 -212
  58. package/dist/types/ProjectsTable.d.ts +6 -6
  59. package/dist/types/RepresentationsList.d.ts +4 -0
  60. package/dist/types/Slicer.d.ts +63 -246
  61. package/dist/types/Views.d.ts +71 -298
  62. package/dist/types/api.d.ts +3164 -2363
  63. package/dist/types/components.d.ts +537 -497
  64. package/dist/types/context.d.ts +293 -572
  65. package/dist/types/hooks.d.ts +76 -47
  66. package/dist/types/index.d.ts +6 -0
  67. package/dist/types/util.d.ts +141 -120
  68. package/dist/util.es.js +71 -68
  69. package/package.json +6 -6
  70. package/dist/chunks/EntityUpdatesContext.es.js +0 -61
  71. package/dist/chunks/PlayableIcon.es.js +0 -5020
  72. package/dist/chunks/ProjectContext.es.js +0 -158
  73. package/dist/chunks/useQueryArgumentChangeLoading.es.js +0 -11
  74. package/dist/chunks/viewUpdateHelper.es.js +0 -153
@@ -31,6 +31,13 @@ declare type BooleanCalc = 'checked' | 'notChecked';
31
31
 
32
32
  export declare type CollapsedViewState = Record<string, boolean>;
33
33
 
34
+ /**
35
+ * Settings stored in a view, per page (`viewType`).
36
+ *
37
+ * The backend treats `settings` as a free-form object (`GenericViewModel`), so the shape of each
38
+ * page's settings is owned here and is not part of the generated API types. Keep these in step
39
+ * with what the pages read and write.
40
+ */
34
41
  declare type ColumnItemModel = {
35
42
  name: string;
36
43
  visible?: boolean;
@@ -57,8 +64,8 @@ declare type ColumnsConfig = {
57
64
 
58
65
  declare type CreateViewApiArg = {
59
66
  viewType: string;
60
- projectName?: string;
61
- payload: OverviewViewPostModel | TaskProgressViewPostModel | ListsViewPostModel | ReviewsViewPostModel | VersionsViewPostModel | GenericViewPostModel;
67
+ projectName?: string | null;
68
+ genericViewPostModel: GenericViewPostModel;
62
69
  };
63
70
 
64
71
  export declare type CustomViews = {
@@ -70,7 +77,7 @@ export declare type CustomViews = {
70
77
  declare type DeleteViewApiArg = {
71
78
  viewType: string;
72
79
  viewId: string;
73
- projectName?: string;
80
+ projectName?: string | null;
74
81
  };
75
82
 
76
83
  export declare type EditingViewState = string | true | null;
@@ -89,7 +96,7 @@ declare type EnumCalc = 'values' | 'fill';
89
96
 
90
97
  export declare const generateViewId: () => string;
91
98
 
92
- export declare const generateWorkingView: (settings?: CreateViewApiArg["payload"]["settings"]) => CreateViewApiArg["payload"];
99
+ export declare const generateWorkingView: (settings?: GenericViewPostModel["settings"]) => GenericViewPostModel;
93
100
 
94
101
  declare type GenericViewModel = {
95
102
  /** Unique identifier for the view within the given scope. */
@@ -106,16 +113,22 @@ declare type GenericViewModel = {
106
113
  working: boolean;
107
114
  position: number;
108
115
  accessLevel: number;
109
- settings: object;
110
- access: object;
111
116
  viewType: string;
117
+ settings: {
118
+ [key: string]: any;
119
+ };
120
+ access: {
121
+ [key: string]: any;
122
+ };
112
123
  };
113
124
 
114
125
  declare type GenericViewPatchModel = {
115
- label?: string;
116
- owner?: string;
117
- settings?: object;
118
- viewType: string;
126
+ label?: string | null;
127
+ owner?: string | null;
128
+ viewType?: string | null;
129
+ settings?: {
130
+ [key: string]: any;
131
+ } | null;
119
132
  };
120
133
 
121
134
  declare type GenericViewPostModel = {
@@ -125,19 +138,17 @@ declare type GenericViewPostModel = {
125
138
  label: string;
126
139
  /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
127
140
  working?: boolean;
128
- settings: object;
129
- viewType: string;
141
+ viewType?: string | null;
142
+ settings: {
143
+ [key: string]: any;
144
+ };
130
145
  };
131
146
 
132
147
  declare type GetBaseViewApiArg = {
133
148
  viewType: string;
134
- projectName?: string;
149
+ projectName?: string | null;
135
150
  };
136
151
 
137
- declare type GetBaseViewApiResponse =
138
- /** status 200 Successful Response */
139
- OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel | VersionsViewModel | GenericViewModel;
140
-
141
152
  export declare type GetCustomViews = {
142
153
  viewsList: ViewListItemModelExtended[];
143
154
  onEdit: (viewId: string) => void;
@@ -149,22 +160,18 @@ export declare const getCustomViewsFallback: (props: GetCustomViews) => CustomVi
149
160
 
150
161
  declare type GetDefaultViewApiArg = {
151
162
  viewType: string;
152
- projectName?: string;
163
+ projectName?: string | null;
153
164
  };
154
165
 
155
- declare type GetDefaultViewApiResponse =
156
- /** status 200 Successful Response */
157
- OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel | VersionsViewModel | GenericViewModel;
166
+ declare type GetDefaultViewApiResponse = GenericViewModel;
158
167
 
159
168
  declare type GetViewApiArg = {
160
169
  viewType: string;
161
170
  viewId: string;
162
- projectName?: string;
171
+ projectName?: string | null;
163
172
  };
164
173
 
165
- declare type GetViewApiResponse =
166
- /** status 200 Successful Response */
167
- OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel | VersionsViewModel | GenericViewModel;
174
+ declare type GetViewApiResponse = GenericViewModel;
168
175
 
169
176
  /**
170
177
  * Get the portal container element by viewType
@@ -178,12 +185,10 @@ export declare const getViewsPortalId: (viewType: ViewType) => string;
178
185
 
179
186
  declare type GetWorkingViewApiArg = {
180
187
  viewType: string;
181
- projectName?: string;
188
+ projectName?: string | null;
182
189
  };
183
190
 
184
- declare type GetWorkingViewApiResponse =
185
- /** status 200 Successful Response */
186
- OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel | VersionsViewModel | GenericViewModel;
191
+ declare type GetWorkingViewApiResponse = GenericViewModel;
187
192
 
188
193
  export declare const isViewStudioScope: (viewId: string | undefined, viewsList: ViewListItemModel[]) => boolean;
189
194
 
@@ -192,52 +197,6 @@ export declare interface LatestSettingsResult {
192
197
  workingViewId?: string;
193
198
  }
194
199
 
195
- declare type ListsSettings = {
196
- rowHeight?: number;
197
- sortBy?: string | string[];
198
- sortDesc?: boolean;
199
- filter?: QueryFilter_5;
200
- columns?: ColumnItemModel[];
201
- };
202
-
203
- declare type ListsViewModel = {
204
- /** Unique identifier for the view within the given scope. */
205
- id?: string;
206
- /** Human-readable name of the view. */
207
- label: string;
208
- /** Determines whether the view is only available for the given project or for all projects (studio). */
209
- scope: 'project' | 'studio';
210
- /** Name of the user who created the view. Owners have full control over the view, */
211
- owner: string;
212
- /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
213
- visibility: 'public' | 'private';
214
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
215
- working: boolean;
216
- position: number;
217
- accessLevel: number;
218
- settings: ListsSettings;
219
- access: object;
220
- viewType?: 'lists';
221
- };
222
-
223
- declare type ListsViewPatchModel = {
224
- label?: string;
225
- owner?: string;
226
- settings?: ListsSettings;
227
- viewType?: 'lists';
228
- };
229
-
230
- declare type ListsViewPostModel = {
231
- /** Unique identifier for the view within the given scope. */
232
- id?: string;
233
- /** Human-readable name of the view. */
234
- label: string;
235
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
236
- working?: boolean;
237
- settings: ListsSettings;
238
- viewType?: 'lists';
239
- };
240
-
241
200
  export declare type ListsViewSettings = {
242
201
  filters: QueryFilter;
243
202
  onUpdateFilters: (filters: QueryFilter) => void;
@@ -249,7 +208,7 @@ export declare type ListsViewSettings = {
249
208
 
250
209
  declare type ListViewsApiArg = {
251
210
  viewType: string;
252
- projectName?: string;
211
+ projectName?: string | null;
253
212
  };
254
213
 
255
214
  declare type MainCalc = 'count' | 'breakdown';
@@ -266,50 +225,12 @@ declare type OverviewSettings = {
266
225
  showEmptyGroups?: boolean;
267
226
  sortBy?: string | string[];
268
227
  sortDesc?: boolean;
269
- filter?: QueryFilter_5;
270
- folderFilter?: QueryFilter_5;
228
+ filter?: QueryFilter_2;
229
+ folderFilter?: QueryFilter_2;
271
230
  sliceType?: string;
272
231
  columns?: ColumnItemModel[];
273
232
  };
274
233
 
275
- declare type OverviewViewModel = {
276
- /** Unique identifier for the view within the given scope. */
277
- id?: string;
278
- /** Human-readable name of the view. */
279
- label: string;
280
- /** Determines whether the view is only available for the given project or for all projects (studio). */
281
- scope: 'project' | 'studio';
282
- /** Name of the user who created the view. Owners have full control over the view, */
283
- owner: string;
284
- /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
285
- visibility: 'public' | 'private';
286
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
287
- working: boolean;
288
- position: number;
289
- accessLevel: number;
290
- settings: OverviewSettings;
291
- access: object;
292
- viewType?: 'overview';
293
- };
294
-
295
- declare type OverviewViewPatchModel = {
296
- label?: string;
297
- owner?: string;
298
- settings?: OverviewSettings;
299
- viewType?: 'overview';
300
- };
301
-
302
- declare type OverviewViewPostModel = {
303
- /** Unique identifier for the view within the given scope. */
304
- id?: string;
305
- /** Human-readable name of the view. */
306
- label: string;
307
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
308
- working?: boolean;
309
- settings: OverviewSettings;
310
- viewType?: 'overview';
311
- };
312
-
313
234
  export declare type PathKeys<T> = T extends SettingsObject ? {
314
235
  [K in keyof T & string]: NonNullable<T[K]> extends readonly any[] ? K : NonNullable<T[K]> extends SettingsObject ? K | `${K}.${PathKeys<NonNullable<T[K]>>}` : K;
315
236
  }[keyof T & string] : never;
@@ -383,13 +304,13 @@ declare type QueryCondition = {
383
304
  operator?: 'eq' | 'like' | 'notlike' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
384
305
  };
385
306
 
386
- declare type QueryCondition_5 = {
307
+ declare type QueryCondition_2 = {
387
308
  /** Path to the key separated by slashes */
388
309
  key: string;
389
310
  /** Value to compare against */
390
- value?: string | number | number | boolean | string[] | number[] | number[];
391
- /** Comparison operator */
392
- operator?: 'eq' | 'like' | 'notlike' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
311
+ value?: string | number | number | boolean | string[] | number[] | number[] | null;
312
+ /** Comparison operator. like and notlike perform case-insensitive substring matching. One surrounding pair of % is treated as a substring wrapper; %, _ and backslashes within it are literal. */
313
+ operator?: 'eq' | 'like' | 'notlike' | 're' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
393
314
  };
394
315
 
395
316
  declare type QueryFilter = {
@@ -399,9 +320,9 @@ declare type QueryFilter = {
399
320
  operator?: 'and' | 'or';
400
321
  };
401
322
 
402
- declare type QueryFilter_5 = {
323
+ declare type QueryFilter_2 = {
403
324
  /** List of conditions to be evaluated */
404
- conditions?: (QueryCondition_5 | QueryFilter_5)[];
325
+ conditions?: (QueryCondition_2 | QueryFilter_2)[];
405
326
  /** Operator to use when joining conditions */
406
327
  operator?: 'and' | 'or';
407
328
  };
@@ -434,61 +355,13 @@ declare type Return_3 = {
434
355
  onUpdateSliceType: (sliceType: string) => void;
435
356
  };
436
357
 
437
- declare type ReviewsSettings = {
438
- rowHeight?: number;
439
- sortBy?: string | string[];
440
- sortDesc?: boolean;
441
- filter?: QueryFilter_5;
442
- columns?: ColumnItemModel[];
443
- gridHeight?: number;
444
- displayStyle?: 'cards' | 'table' | 'playlist';
445
- };
446
-
447
- declare type ReviewsViewModel = {
448
- /** Unique identifier for the view within the given scope. */
449
- id?: string;
450
- /** Human-readable name of the view. */
451
- label: string;
452
- /** Determines whether the view is only available for the given project or for all projects (studio). */
453
- scope: 'project' | 'studio';
454
- /** Name of the user who created the view. Owners have full control over the view, */
455
- owner: string;
456
- /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
457
- visibility: 'public' | 'private';
458
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
459
- working: boolean;
460
- position: number;
461
- accessLevel: number;
462
- settings: ReviewsSettings;
463
- access: object;
464
- viewType?: 'reviews';
465
- };
466
-
467
- declare type ReviewsViewPatchModel = {
468
- label?: string;
469
- owner?: string;
470
- settings?: ReviewsSettings;
471
- viewType?: 'reviews';
472
- };
473
-
474
- declare type ReviewsViewPostModel = {
475
- /** Unique identifier for the view within the given scope. */
476
- id?: string;
477
- /** Human-readable name of the view. */
478
- label: string;
479
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
480
- working?: boolean;
481
- settings: ReviewsSettings;
482
- viewType?: 'reviews';
483
- };
484
-
485
358
  declare type RowScope = 'all' | 'primary' | 'secondary' | 'none';
486
359
 
487
360
  export declare type SelectedViewState = ViewData | undefined;
488
361
 
489
362
  declare type SetDefaultViewApiArg = {
490
363
  viewType: string;
491
- projectName?: string;
364
+ projectName?: string | null;
492
365
  setDefaultViewRequestModel: SetDefaultViewRequestModel;
493
366
  };
494
367
 
@@ -503,7 +376,7 @@ declare type ShareOption = {
503
376
  value: string;
504
377
  name: string;
505
378
  label: string;
506
- attribute?: string;
379
+ attribute?: string | null;
507
380
  };
508
381
 
509
382
  declare type SummaryCalc = NumberCalc | BooleanCalc | TextCalc | EnumCalc | MainCalc;
@@ -515,50 +388,6 @@ declare interface TableGroupBy {
515
388
  id: string;
516
389
  }
517
390
 
518
- declare type TaskProgressSettings = {
519
- filter?: QueryFilter_5;
520
- sliceType?: string;
521
- columns?: ColumnItemModel[];
522
- };
523
-
524
- declare type TaskProgressViewModel = {
525
- /** Unique identifier for the view within the given scope. */
526
- id?: string;
527
- /** Human-readable name of the view. */
528
- label: string;
529
- /** Determines whether the view is only available for the given project or for all projects (studio). */
530
- scope: 'project' | 'studio';
531
- /** Name of the user who created the view. Owners have full control over the view, */
532
- owner: string;
533
- /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
534
- visibility: 'public' | 'private';
535
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
536
- working: boolean;
537
- position: number;
538
- accessLevel: number;
539
- settings: TaskProgressSettings;
540
- access: object;
541
- viewType?: 'taskProgress';
542
- };
543
-
544
- declare type TaskProgressViewPatchModel = {
545
- label?: string;
546
- owner?: string;
547
- settings?: TaskProgressSettings;
548
- viewType?: 'taskProgress';
549
- };
550
-
551
- declare type TaskProgressViewPostModel = {
552
- /** Unique identifier for the view within the given scope. */
553
- id?: string;
554
- /** Human-readable name of the view. */
555
- label: string;
556
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
557
- working?: boolean;
558
- settings: TaskProgressSettings;
559
- viewType?: 'taskProgress';
560
- };
561
-
562
391
  declare type TextCalc = 'filled' | 'notFilled';
563
392
 
564
393
  declare interface UpdateOptions {
@@ -569,8 +398,8 @@ declare interface UpdateOptions {
569
398
  declare type UpdateViewApiArg = {
570
399
  viewType: string;
571
400
  viewId: string;
572
- projectName?: string;
573
- payload: OverviewViewPatchModel | TaskProgressViewPatchModel | ListsViewPatchModel | ReviewsViewPatchModel | VersionsViewPatchModel | GenericViewPatchModel;
401
+ projectName?: string | null;
402
+ genericViewPatchModel: GenericViewPatchModel;
574
403
  };
575
404
 
576
405
  export declare const updateViewSettings: (updatedSettings: any, localStateSetter: (value: any) => void, newLocalValue: any, options: UpdateOptions | undefined, viewContext: ViewsContextValue, onApplyViewChanges: (arg: any, viewId?: string) => Promise<EntityIdResponse | void>, getLatest: () => LatestSettingsResult, markCacheDirty: () => void) => Promise<void>;
@@ -603,21 +432,20 @@ export declare const usePrefetchViews: ({ viewType, projectName, }: {
603
432
  projectName?: string;
604
433
  }) => void;
605
434
 
606
- declare type UserAttribModel = {
607
- fullName?: string;
608
- email?: string;
609
- avatarUrl?: string;
610
- developerMode?: boolean;
611
- };
612
-
613
435
  declare type UserModel = {
614
- /** Name is an unique id of the {entity_name} */
436
+ /** Unique name of the user */
615
437
  name: string;
616
- uiExposureLevel?: number;
617
- attrib?: UserAttribModel;
618
- data?: Record<string, any>;
619
- /** Whether the user is active */
438
+ uiExposureLevel?: number | null;
439
+ /** Attribute values of the entity */
440
+ attrib?: {
441
+ [key: string]: any;
442
+ };
443
+ data?: {
444
+ [key: string]: any;
445
+ };
446
+ /** Whether the entity is active */
620
447
  active?: boolean;
448
+ /** List of attributes explicitly set on the entity itself (not inherited) */
621
449
  ownAttrib?: string[];
622
450
  /** Time of creation */
623
451
  createdAt?: string;
@@ -634,7 +462,7 @@ export declare const useSelectedView: ({ viewType, projectName }: Props_5) => Re
634
462
  export declare const useTaskProgressViewSettings: () => Return_2;
635
463
 
636
464
  declare type UseViewMutations = {
637
- onCreateView: (payload: CreateViewApiArg['payload'], isStudioScope: boolean) => Promise<void>;
465
+ onCreateView: (payload: GenericViewPostModel, isStudioScope: boolean) => Promise<void>;
638
466
  onDeleteView: (viewId: string, isStudioScope: boolean) => Promise<void>;
639
467
  onUpdateView: (viewId: string, payload: Partial<ViewData>, isStudioScope: boolean) => Promise<void>;
640
468
  onResetWorkingView: (args?: {
@@ -673,61 +501,6 @@ export declare const useViewUpdateHelper: () => {
673
501
  markCacheDirty: () => void;
674
502
  };
675
503
 
676
- declare type VersionsSettings = {
677
- showProducts?: boolean;
678
- rowHeight?: number;
679
- showGrid?: boolean;
680
- gridHeight?: number;
681
- featuredVersionOrder?: string[];
682
- slicerType?: string;
683
- groupBy?: string;
684
- groupSortByDesc?: boolean;
685
- showEmptyGroups?: boolean;
686
- latestPerFolder?: boolean;
687
- sortBy?: string | string[];
688
- sortDesc?: boolean;
689
- filter?: QueryFilter_5;
690
- columns?: ColumnItemModel[];
691
- };
692
-
693
- declare type VersionsViewModel = {
694
- /** Unique identifier for the view within the given scope. */
695
- id?: string;
696
- /** Human-readable name of the view. */
697
- label: string;
698
- /** Determines whether the view is only available for the given project or for all projects (studio). */
699
- scope: 'project' | 'studio';
700
- /** Name of the user who created the view. Owners have full control over the view, */
701
- owner: string;
702
- /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */
703
- visibility: 'public' | 'private';
704
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
705
- working: boolean;
706
- position: number;
707
- accessLevel: number;
708
- settings: VersionsSettings;
709
- access: object;
710
- viewType?: 'versions';
711
- };
712
-
713
- declare type VersionsViewPatchModel = {
714
- label?: string;
715
- owner?: string;
716
- settings?: VersionsSettings;
717
- viewType?: 'versions';
718
- };
719
-
720
- declare type VersionsViewPostModel = {
721
- /** Unique identifier for the view within the given scope. */
722
- id?: string;
723
- /** Human-readable name of the view. */
724
- label: string;
725
- /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */
726
- working?: boolean;
727
- settings: VersionsSettings;
728
- viewType?: 'versions';
729
- };
730
-
731
504
  export declare const VIEW_DIVIDER: "_divider_";
732
505
 
733
506
  export declare type ViewData = GetDefaultViewApiResponse;
@@ -905,15 +678,15 @@ declare const viewsQueries: Api<BaseQueryFn<string | {
905
678
  getWorkingView: QueryDefinition<GetWorkingViewApiArg, BaseQueryFn<string | {
906
679
  document: string | DocumentNode;
907
680
  variables?: any;
908
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetWorkingViewApiResponse, "restApi", unknown>;
681
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
909
682
  getBaseView: QueryDefinition<GetBaseViewApiArg, BaseQueryFn<string | {
910
683
  document: string | DocumentNode;
911
684
  variables?: any;
912
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetBaseViewApiResponse, "restApi", unknown>;
685
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
913
686
  getDefaultView: QueryDefinition<GetDefaultViewApiArg, BaseQueryFn<string | {
914
687
  document: string | DocumentNode;
915
688
  variables?: any;
916
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetDefaultViewApiResponse, "restApi", unknown>;
689
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
917
690
  setDefaultView: MutationDefinition<SetDefaultViewApiArg, BaseQueryFn<string | {
918
691
  document: string | DocumentNode;
919
692
  variables?: any;
@@ -921,12 +694,12 @@ declare const viewsQueries: Api<BaseQueryFn<string | {
921
694
  getView: QueryDefinition<GetViewApiArg, BaseQueryFn<string | {
922
695
  document: string | DocumentNode;
923
696
  variables?: any;
924
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetViewApiResponse, "restApi", unknown>;
925
- deleteView: MutationDefinition<DeleteViewApiArg, BaseQueryFn<string | {
697
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
698
+ updateView: MutationDefinition<UpdateViewApiArg, BaseQueryFn<string | {
926
699
  document: string | DocumentNode;
927
700
  variables?: any;
928
701
  } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, any, "restApi", unknown>;
929
- updateView: MutationDefinition<UpdateViewApiArg, BaseQueryFn<string | {
702
+ deleteView: MutationDefinition<DeleteViewApiArg, BaseQueryFn<string | {
930
703
  document: string | DocumentNode;
931
704
  variables?: any;
932
705
  } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, any, "restApi", unknown>;
@@ -942,15 +715,15 @@ declare const viewsQueries: Api<BaseQueryFn<string | {
942
715
  getWorkingView: QueryDefinition<GetWorkingViewApiArg, BaseQueryFn<string | {
943
716
  document: string | DocumentNode;
944
717
  variables?: any;
945
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetWorkingViewApiResponse, "restApi", unknown>;
718
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
946
719
  getBaseView: QueryDefinition<GetBaseViewApiArg, BaseQueryFn<string | {
947
720
  document: string | DocumentNode;
948
721
  variables?: any;
949
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetBaseViewApiResponse, "restApi", unknown>;
722
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
950
723
  getDefaultView: QueryDefinition<GetDefaultViewApiArg, BaseQueryFn<string | {
951
724
  document: string | DocumentNode;
952
725
  variables?: any;
953
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetDefaultViewApiResponse, "restApi", unknown>;
726
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
954
727
  setDefaultView: MutationDefinition<SetDefaultViewApiArg, BaseQueryFn<string | {
955
728
  document: string | DocumentNode;
956
729
  variables?: any;
@@ -958,12 +731,12 @@ declare const viewsQueries: Api<BaseQueryFn<string | {
958
731
  getView: QueryDefinition<GetViewApiArg, BaseQueryFn<string | {
959
732
  document: string | DocumentNode;
960
733
  variables?: any;
961
- } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GetViewApiResponse, "restApi", unknown>;
962
- deleteView: MutationDefinition<DeleteViewApiArg, BaseQueryFn<string | {
734
+ } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, GenericViewModel, "restApi", unknown>;
735
+ updateView: MutationDefinition<UpdateViewApiArg, BaseQueryFn<string | {
963
736
  document: string | DocumentNode;
964
737
  variables?: any;
965
738
  } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, any, "restApi", unknown>;
966
- updateView: MutationDefinition<UpdateViewApiArg, BaseQueryFn<string | {
739
+ deleteView: MutationDefinition<DeleteViewApiArg, BaseQueryFn<string | {
967
740
  document: string | DocumentNode;
968
741
  variables?: any;
969
742
  } | FetchArgs, unknown, FetchBaseQueryError, {} | Partial<Pick< ClientError, "response" | "request">>>, string, any, "restApi", unknown>;