@ynput/ayon-frontend-shared 0.2.12 → 0.2.14
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/DetailsPanel.cjs.js +1 -0
- package/dist/DetailsPanel.cjs.js.map +1 -1
- package/dist/DetailsPanel.es.js +1 -0
- package/dist/DetailsPanel.es.js.map +1 -1
- package/dist/Slicer.cjs.js +2 -0
- package/dist/Slicer.cjs.js.map +1 -1
- package/dist/Slicer.es.js +3 -1
- package/dist/Slicer.es.js.map +1 -1
- package/dist/components.cjs.js +6 -0
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +7 -1
- package/dist/components.es.js.map +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -0
- package/dist/index.es.js.map +1 -1
- package/dist/shared/src/api/generated/actions.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/actions.es.js.map +1 -1
- package/dist/shared/src/api/generated/system.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/system.es.js.map +1 -1
- package/dist/shared/src/api/queries/users/updateUsers.cjs.js +4 -9
- package/dist/shared/src/api/queries/users/updateUsers.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/users/updateUsers.es.js +4 -9
- package/dist/shared/src/api/queries/users/updateUsers.es.js.map +1 -1
- package/dist/shared/src/components/EntityThumbnailUploader/EntityThumbnailUploader.cjs.js +1 -0
- package/dist/shared/src/components/EntityThumbnailUploader/EntityThumbnailUploader.cjs.js.map +1 -1
- package/dist/shared/src/components/EntityThumbnailUploader/EntityThumbnailUploader.es.js +1 -0
- package/dist/shared/src/components/EntityThumbnailUploader/EntityThumbnailUploader.es.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js +1 -0
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js +1 -0
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js +1 -0
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js +1 -0
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js +1 -0
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js +1 -0
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js.map +1 -1
- package/dist/shared/src/components/SearchFilter/filterDates.cjs.js +167 -0
- package/dist/shared/src/components/SearchFilter/filterDates.cjs.js.map +1 -0
- package/dist/shared/src/components/SearchFilter/filterDates.es.js +167 -0
- package/dist/shared/src/components/SearchFilter/filterDates.es.js.map +1 -0
- package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.cjs.js +548 -0
- package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.cjs.js.map +1 -0
- package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.es.js +548 -0
- package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.es.js.map +1 -0
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js +19 -3
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js.map +1 -1
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js +20 -4
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js.map +1 -1
- package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js +1 -0
- package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js +1 -0
- package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js.map +1 -1
- package/dist/shared/src/containers/Actions/Actions.cjs.js +1 -0
- package/dist/shared/src/containers/Actions/Actions.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/Actions.es.js +1 -0
- package/dist/shared/src/containers/Actions/Actions.es.js.map +1 -1
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js +1 -0
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js +1 -0
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.es.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.es.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.es.js +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/hooks/useAnnotationsSync.cjs.js +4 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/hooks/useAnnotationsSync.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/hooks/useAnnotationsSync.es.js +4 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/hooks/useAnnotationsSync.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/hooks/useAnnotationsUpload.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/hooks/useAnnotationsUpload.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.cjs.js +21 -11
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.es.js +21 -11
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.styled.cjs.js +6 -0
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.styled.es.js +6 -0
- package/dist/shared/src/containers/Feed/components/FileUploadCard/FileUploadCard.styled.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/FilesGrid/FilesGrid.cjs.js +3 -3
- package/dist/shared/src/containers/Feed/components/FilesGrid/FilesGrid.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/FilesGrid/FilesGrid.es.js +3 -3
- package/dist/shared/src/containers/Feed/components/FilesGrid/FilesGrid.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/helpers/mergeAnnotationAttachments.cjs.js +2 -1
- package/dist/shared/src/containers/Feed/helpers/mergeAnnotationAttachments.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/helpers/mergeAnnotationAttachments.es.js +2 -1
- package/dist/shared/src/containers/Feed/helpers/mergeAnnotationAttachments.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +2 -0
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +2 -0
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js +1 -0
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js.map +1 -1
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js +1 -0
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js.map +1 -1
- package/dist/shared/src/containers/Slicer/useFiltersWithHierarchy.cjs.js +37 -0
- package/dist/shared/src/containers/Slicer/useFiltersWithHierarchy.cjs.js.map +1 -0
- package/dist/shared/src/containers/Slicer/useFiltersWithHierarchy.es.js +37 -0
- package/dist/shared/src/containers/Slicer/useFiltersWithHierarchy.es.js.map +1 -0
- package/dist/types/api/generated/actions.d.ts +1 -1
- package/dist/types/api/generated/system.d.ts +1 -0
- package/dist/types/api/queries/users/updateUsers.d.ts +1492 -0
- package/dist/types/components/SearchFilter/filterDates.d.ts +56 -0
- package/dist/types/components/SearchFilter/index.d.ts +2 -0
- package/dist/types/components/SearchFilter/useBuildFilterOptions.d.ts +30 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useAnnotationsSync.d.ts +1 -1
- package/dist/types/containers/Feed/components/CommentInput/hooks/useAnnotationsUpload.d.ts +1 -1
- package/dist/types/containers/Feed/components/FileUploadCard/FileUploadCard.d.ts +4 -3
- package/dist/types/containers/Slicer/index.d.ts +1 -0
- package/dist/types/containers/Slicer/useFiltersWithHierarchy.d.ts +10 -0
- package/package.json +1 -1
package/dist/DetailsPanel.cjs.js
CHANGED
|
@@ -168,6 +168,7 @@ require("./shared/src/components/SettingsPanel/SettingsPanel.cjs.js");
|
|
|
168
168
|
require("./shared/src/components/SettingsPanel/SettingsPanelItemTemplate.cjs.js");
|
|
169
169
|
require("./shared/src/components/AttributeEditor/components/MinMaxField.cjs.js");
|
|
170
170
|
require("./shared/src/components/EnumEditor/EnumEditor.styled.cjs.js");
|
|
171
|
+
require("./shared/src/components/SearchFilter/filterDates.cjs.js");
|
|
171
172
|
require("./shared/src/containers/DetailsPanel/FeedFilters/FeedFilters.styled.cjs.js");
|
|
172
173
|
const DetailsPanelHeader_styled = require("./shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.styled.cjs.js");
|
|
173
174
|
exports.DetailsPanel = DetailsPanel.DetailsPanel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPanel.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DetailsPanel.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/DetailsPanel.es.js
CHANGED
|
@@ -166,6 +166,7 @@ import "./shared/src/components/SettingsPanel/SettingsPanel.es.js";
|
|
|
166
166
|
import "./shared/src/components/SettingsPanel/SettingsPanelItemTemplate.es.js";
|
|
167
167
|
import "./shared/src/components/AttributeEditor/components/MinMaxField.es.js";
|
|
168
168
|
import "./shared/src/components/EnumEditor/EnumEditor.styled.es.js";
|
|
169
|
+
import "./shared/src/components/SearchFilter/filterDates.es.js";
|
|
169
170
|
import "./shared/src/containers/DetailsPanel/FeedFilters/FeedFilters.styled.es.js";
|
|
170
171
|
import { AssigneeSelect, CloseButton, Content, ContentRow, Footer, Grid, Header, HeaderContainer, LabelWrapper, Playable, PriorityEnumDropdown, StatusSelect, TagsSelect, ThumbnailWrapper, Title } from "./shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.styled.es.js";
|
|
171
172
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPanel.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DetailsPanel.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Slicer.cjs.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const createFilterFromSlicer = require("./shared/src/containers/Slicer/createFilterFromSlicer.cjs.js");
|
|
4
|
+
const useFiltersWithHierarchy = require("./shared/src/containers/Slicer/useFiltersWithHierarchy.cjs.js");
|
|
4
5
|
exports.createFilterFromSlicer = createFilterFromSlicer.createFilterFromSlicer;
|
|
6
|
+
exports.useFiltersWithHierarchy = useFiltersWithHierarchy.useFiltersWithHierarchy;
|
|
5
7
|
//# sourceMappingURL=Slicer.cjs.js.map
|
package/dist/Slicer.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slicer.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slicer.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/Slicer.es.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createFilterFromSlicer } from "./shared/src/containers/Slicer/createFilterFromSlicer.es.js";
|
|
2
|
+
import { useFiltersWithHierarchy } from "./shared/src/containers/Slicer/useFiltersWithHierarchy.es.js";
|
|
2
3
|
export {
|
|
3
|
-
createFilterFromSlicer
|
|
4
|
+
createFilterFromSlicer,
|
|
5
|
+
useFiltersWithHierarchy
|
|
4
6
|
};
|
|
5
7
|
//# sourceMappingURL=Slicer.es.js.map
|
package/dist/Slicer.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slicer.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slicer.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/components.cjs.js
CHANGED
|
@@ -25,6 +25,8 @@ const SettingsPanel = require("./shared/src/components/SettingsPanel/SettingsPan
|
|
|
25
25
|
const SettingsPanelItemTemplate = require("./shared/src/components/SettingsPanel/SettingsPanelItemTemplate.cjs.js");
|
|
26
26
|
const AttributeEditor = require("./shared/src/components/AttributeEditor/AttributeEditor.cjs.js");
|
|
27
27
|
const EnumEditor = require("./shared/src/components/EnumEditor/EnumEditor.cjs.js");
|
|
28
|
+
const useBuildFilterOptions = require("./shared/src/components/SearchFilter/useBuildFilterOptions.cjs.js");
|
|
29
|
+
const filterDates = require("./shared/src/components/SearchFilter/filterDates.cjs.js");
|
|
28
30
|
exports.UserImage = UserImage.UserImage;
|
|
29
31
|
exports.ThumbnailSimple = ThumbnailSimple.ThumbnailSimple;
|
|
30
32
|
exports.EmptyPlaceholder = EmptyPlaceholder.EmptyPlaceholder;
|
|
@@ -54,4 +56,8 @@ exports.SettingsPanel = SettingsPanel.SettingsPanel;
|
|
|
54
56
|
exports.SettingsPanelItemTemplate = SettingsPanelItemTemplate.SettingsPanelItemTemplate;
|
|
55
57
|
exports.AttributeEditor = AttributeEditor.AttributeEditor;
|
|
56
58
|
exports.EnumEditor = EnumEditor.EnumEditor;
|
|
59
|
+
exports.useBuildFilterOptions = useBuildFilterOptions.useBuildFilterOptions;
|
|
60
|
+
exports.NO_DATE = filterDates.NO_DATE;
|
|
61
|
+
exports.dateOptions = filterDates.dateOptions;
|
|
62
|
+
exports.filterDateFunctions = filterDates.filterDateFunctions;
|
|
57
63
|
//# sourceMappingURL=components.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/components.es.js
CHANGED
|
@@ -23,6 +23,8 @@ import { SettingOption, SettingsPanel } from "./shared/src/components/SettingsPa
|
|
|
23
23
|
import { SettingsPanelItemTemplate } from "./shared/src/components/SettingsPanel/SettingsPanelItemTemplate.es.js";
|
|
24
24
|
import { AttributeEditor } from "./shared/src/components/AttributeEditor/AttributeEditor.es.js";
|
|
25
25
|
import { EnumEditor } from "./shared/src/components/EnumEditor/EnumEditor.es.js";
|
|
26
|
+
import { useBuildFilterOptions } from "./shared/src/components/SearchFilter/useBuildFilterOptions.es.js";
|
|
27
|
+
import { NO_DATE, dateOptions, filterDateFunctions } from "./shared/src/components/SearchFilter/filterDates.es.js";
|
|
26
28
|
export {
|
|
27
29
|
AttributeEditor,
|
|
28
30
|
CustomizeButton,
|
|
@@ -36,6 +38,7 @@ export {
|
|
|
36
38
|
EntityThumbnailUploader,
|
|
37
39
|
EnumEditor,
|
|
38
40
|
FileThumbnail,
|
|
41
|
+
NO_DATE,
|
|
39
42
|
Placeholder,
|
|
40
43
|
ProjectTableSettings,
|
|
41
44
|
ReviewableCard,
|
|
@@ -52,6 +55,9 @@ export {
|
|
|
52
55
|
ThumbnailUploader,
|
|
53
56
|
UserImage,
|
|
54
57
|
Watchers,
|
|
55
|
-
|
|
58
|
+
dateOptions,
|
|
59
|
+
filterDateFunctions,
|
|
60
|
+
getGroupedReviewables,
|
|
61
|
+
useBuildFilterOptions
|
|
56
62
|
};
|
|
57
63
|
//# sourceMappingURL=components.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -172,6 +172,7 @@ require("./shared/src/components/SettingsPanel/SettingsPanel.cjs.js");
|
|
|
172
172
|
require("./shared/src/components/SettingsPanel/SettingsPanelItemTemplate.cjs.js");
|
|
173
173
|
require("./shared/src/components/AttributeEditor/components/MinMaxField.cjs.js");
|
|
174
174
|
require("./shared/src/components/EnumEditor/EnumEditor.styled.cjs.js");
|
|
175
|
+
require("./shared/src/components/SearchFilter/filterDates.cjs.js");
|
|
175
176
|
exports.UserImage = UserImage.UserImage;
|
|
176
177
|
exports.ThumbnailSimple = ThumbnailSimple.ThumbnailSimple;
|
|
177
178
|
exports.EmptyPlaceholder = EmptyPlaceholder.EmptyPlaceholder;
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.es.js
CHANGED
|
@@ -170,6 +170,7 @@ import "./shared/src/components/SettingsPanel/SettingsPanel.es.js";
|
|
|
170
170
|
import "./shared/src/components/SettingsPanel/SettingsPanelItemTemplate.es.js";
|
|
171
171
|
import "./shared/src/components/AttributeEditor/components/MinMaxField.es.js";
|
|
172
172
|
import "./shared/src/components/EnumEditor/EnumEditor.styled.es.js";
|
|
173
|
+
import "./shared/src/components/SearchFilter/filterDates.es.js";
|
|
173
174
|
export {
|
|
174
175
|
EmptyPlaceholder,
|
|
175
176
|
ThumbnailSimple,
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.cjs.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile' | 'list'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":["api"],"mappings":";;;AACM,MAAA,iBAAiBA,WAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;;"}
|
|
1
|
+
{"version":3,"file":"actions.cjs.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile' | 'list' | 'project'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":["api"],"mappings":";;;AACM,MAAA,iBAAiBA,WAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.es.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile' | 'list'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":[],"mappings":";AACM,MAAA,iBAAiB,IAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"actions.es.js","sources":["../../../../../src/api/generated/actions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listAvailableActionsForContext: build.mutation<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n query: (queryArg) => ({\n url: `/api/actions/list`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n mode: queryArg.mode,\n },\n }),\n }),\n listAllActions: build.query<ListAllActionsApiResponse, ListAllActionsApiArg>({\n query: () => ({ url: `/api/actions/manage` }),\n }),\n configureAction: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/config`,\n method: 'POST',\n body: queryArg.actionConfig,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n executeAction: build.mutation<ExecuteActionApiResponse, ExecuteActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/execute`,\n method: 'POST',\n body: queryArg.actionContext,\n params: {\n addonName: queryArg.addonName,\n addonVersion: queryArg.addonVersion,\n variant: queryArg.variant,\n identifier: queryArg.identifier,\n },\n }),\n }),\n takeAction: build.query<TakeActionApiResponse, TakeActionApiArg>({\n query: (queryArg) => ({ url: `/api/actions/take/${queryArg.token}` }),\n }),\n abortAction: build.mutation<AbortActionApiResponse, AbortActionApiArg>({\n query: (queryArg) => ({\n url: `/api/actions/abort/${queryArg.token}`,\n method: 'POST',\n body: queryArg.abortRequestModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListAvailableActionsForContextApiResponse =\n /** status 200 Successful Response */ AvailableActionsListModel\nexport type ListAvailableActionsForContextApiArg = {\n mode?: 'simple' | 'dynamic' | 'all'\n actionContext: ActionContext\n}\nexport type ListAllActionsApiResponse = /** status 200 Successful Response */ BaseActionManifest[]\nexport type ListAllActionsApiArg = void\nexport type ConfigureActionApiResponse = /** status 200 Successful Response */ object\nexport type ConfigureActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionConfig: ActionConfig\n}\nexport type ExecuteActionApiResponse = /** status 200 Successful Response */ ExecuteResponseModel\nexport type ExecuteActionApiArg = {\n addonName: string\n addonVersion: string\n variant?: string\n identifier: string\n actionContext: ActionContext\n}\nexport type TakeActionApiResponse = /** status 200 Successful Response */ TakeResponseModel\nexport type TakeActionApiArg = {\n token: string\n}\nexport type AbortActionApiResponse = /** status 200 Successful Response */ any\nexport type AbortActionApiArg = {\n token: string\n abortRequestModel: AbortRequestModel\n}\nexport type IconModel = {\n type?: 'material-symbols' | 'url'\n /** The name of the icon (for type material-symbols) */\n name?: string\n /** The color of the icon (for type material-symbols) */\n color?: string\n /** The URL of the icon (for type url) */\n url?: string\n}\nexport type FormSelectOption = {\n value: string\n label: string\n icon?: string\n color?: string\n}\nexport type SimpleFormField = {\n type: 'text' | 'boolean' | 'select' | 'multiselect' | 'hidden' | 'integer' | 'float' | 'label'\n name: string\n label?: string\n placeholder?: any\n value?: string | number | number | boolean | string[]\n regex?: string\n multiline?: boolean\n syntax?: string\n options?: FormSelectOption[]\n highlight?: 'info' | 'warning' | 'error'\n min?: number | number\n max?: number | number\n}\nexport type BaseActionManifest = {\n /** The identifier of the action */\n identifier: string\n /** Human-friendly name of the action */\n label: string\n /** The label of the group the action belongs to */\n groupLabel?: string\n /** Action category */\n category?: string\n /** The order of the action */\n order?: number\n /** An icon for the action */\n icon?: IconModel\n /** List of fields to be displayed in the action settings */\n configFields?: SimpleFormField[]\n /** Sort icon to the top */\n featured?: boolean\n /** The name of the addon providing the action */\n addonName?: string\n /** The version of the addon providing the action */\n addonVersion?: string\n /** The settings variant of the addon */\n variant?: string\n}\nexport type AvailableActionsListModel = {\n /** The list of available actions */\n actions?: BaseActionManifest[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ActionContext = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile' | 'list' | 'project'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n}\nexport type ActionConfig = {\n /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */\n projectName?: string\n /** The type of the entity. If not specified, project-lever or global actions are used. */\n entityType?: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n /** List of subtypes present in the entity list */\n entitySubtypes?: string[]\n /** The IDs of the entities */\n entityIds?: string[]\n /** The data from the form */\n formData?: object\n /** The configuration of the action within the given context */\n value?: object\n}\nexport type ExecuteResponseModel = {\n /** The type of response */\n type?: 'form' | 'launcher' | 'navigate' | 'query' | 'redirect' | 'simple'\n /** Payload is still parsed even if the action failed, but the message is highlighted as an error.If the action execution is broken beyond repair, Raise an exception instead of returning a response. */\n success?: boolean\n /** The message to display */\n message?: string\n /** The payload of the response. Payload model is parsed by the client and its schema, is based on the type of action. */\n payload?: object\n}\nexport type TakeResponseModel = {\n eventId: string\n actionIdentifier: string\n args?: string[]\n context: ActionContext\n addonName: string\n addonVersion: string\n variant: string\n /** The user who initiated the action */\n userName: string\n}\nexport type AbortRequestModel = {\n message?: string\n}\n"],"names":[],"mappings":";AACM,MAAA,iBAAiB,IAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,gCAAgC,MAAM,SAGpC;AAAA,MACA,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgB,MAAM,MAAuD;AAAA,MAC3E,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,iBAAiB,MAAM,SAA4D;AAAA,MACjF,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,eAAe,MAAM,SAAwD;AAAA,MAC3E,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,QACf,QAAQ;AAAA,UACN,WAAW,SAAS;AAAA,UACpB,cAAc,SAAS;AAAA,UACvB,SAAS,SAAS;AAAA,UAClB,YAAY,SAAS;AAAA,QAAA;AAAA,MAEzB;AAAA,IAAA,CACD;AAAA,IACD,YAAY,MAAM,MAA+C;AAAA,MAC/D,OAAO,CAAC,cAAc,EAAE,KAAK,qBAAqB,SAAS,KAAK,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,aAAa,MAAM,SAAoD;AAAA,MACrE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,sBAAsB,SAAS,KAAK;AAAA,QACzC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.cjs.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n freelancer?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n}\nexport type AttributeData = {\n /** Type of attribute value */\n type:\n | 'string'\n | 'integer'\n | 'float'\n | 'boolean'\n | 'datetime'\n | 'list_of_strings'\n | 'list_of_integers'\n | 'list_of_any'\n | 'list_of_submodels'\n | 'dict'\n /** Nice, human readable title of the attribute */\n title?: string\n description?: string\n /** Example value of the field. */\n example?: any\n /** Default value for the attribute. Do not set for list types. */\n default?: any\n gt?: number | number\n ge?: number | number\n lt?: number | number\n le?: number | number\n minLength?: number\n maxLength?: number\n /** Minimum number of items in list type. */\n minItems?: number\n /** Only for list types. Maximum number of items in the list. */\n maxItems?: number\n /** Only for string types. The value must match this regex. */\n regex?: string\n /** List of enum items used for displaying select widgets */\n enum?: AttributeEnumItem[]\n /** Inherit the attribute value from the parent entity. */\n inherit?: boolean\n}\nexport type AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n )[]\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n data: AttributeData\n}\nexport type SsoOption = {\n name: string\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":["api"],"mappings":";;;AACM,MAAA,iBAAiBA,WAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,qBAAqB,MAAM,MAAiE;AAAA,MAC1F,OAAO,OAAO,EAAE,KAAK,uBAAuB;AAAA,IAAA,CAC7C;AAAA,IACD,UAAU,MAAM,MAA2C;AAAA,MACzD,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,UAAU,SAAS;AAAA,UACnB,UAAU,SAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,aAAa,MAAM,MAAiD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsB,MAAM,MAAmE;AAAA,MAC7F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,QAAQ,SAAS;AAAA,UACjB,WAAW,SAAS;AAAA,QAAA;AAAA,MAExB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,eAAe;AAAA,IAAA,CACrC;AAAA,IACD,WAAW,MAAM,MAA6C;AAAA,MAC5D,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,YAAY,MAAM,SAAkD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,gBAAgB,SAAS,UAAU;AAAA,QACxC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,cAAc,MAAM,SAAsD;AAAA,MACxE,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,IAAI,QAAQ,SAAS;AAAA,IAAA,CACtF;AAAA,IACD,sBAAsB,MAAM,SAG1B;AAAA,MACA,OAAO,OAAO,EAAE,KAAK,uBAAuB,QAAQ,OAAO;AAAA,IAAA,CAC5D;AAAA,IACD,oBAAoB,MAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,8BAA8B;AAAA,IAAA,CACpD;AAAA,IACD,oBAAoB,MAAM,SAAkE;AAAA,MAC1F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;;"}
|
|
1
|
+
{"version":3,"file":"system.cjs.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n freelancer?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n}\nexport type AttributeData = {\n /** Type of attribute value */\n type:\n | 'string'\n | 'integer'\n | 'float'\n | 'boolean'\n | 'datetime'\n | 'list_of_strings'\n | 'list_of_integers'\n | 'list_of_any'\n | 'list_of_submodels'\n | 'dict'\n /** Nice, human readable title of the attribute */\n title?: string\n description?: string\n /** Example value of the field. */\n example?: any\n /** Default value for the attribute. Do not set for list types. */\n default?: any\n gt?: number | number\n ge?: number | number\n lt?: number | number\n le?: number | number\n minLength?: number\n maxLength?: number\n /** Minimum number of items in list type. */\n minItems?: number\n /** Only for list types. Maximum number of items in the list. */\n maxItems?: number\n /** Only for string types. The value must match this regex. */\n regex?: string\n /** List of enum items used for displaying select widgets */\n enum?: AttributeEnumItem[]\n /** Inherit the attribute value from the parent entity. */\n inherit?: boolean\n}\nexport type AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n )[]\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n data: AttributeData\n}\nexport type SsoOption = {\n name: string\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n disableChangelog?: boolean\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":["api"],"mappings":";;;AACM,MAAA,iBAAiBA,WAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,qBAAqB,MAAM,MAAiE;AAAA,MAC1F,OAAO,OAAO,EAAE,KAAK,uBAAuB;AAAA,IAAA,CAC7C;AAAA,IACD,UAAU,MAAM,MAA2C;AAAA,MACzD,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,UAAU,SAAS;AAAA,UACnB,UAAU,SAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,aAAa,MAAM,MAAiD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsB,MAAM,MAAmE;AAAA,MAC7F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,QAAQ,SAAS;AAAA,UACjB,WAAW,SAAS;AAAA,QAAA;AAAA,MAExB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,eAAe;AAAA,IAAA,CACrC;AAAA,IACD,WAAW,MAAM,MAA6C;AAAA,MAC5D,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,YAAY,MAAM,SAAkD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,gBAAgB,SAAS,UAAU;AAAA,QACxC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,cAAc,MAAM,SAAsD;AAAA,MACxE,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,IAAI,QAAQ,SAAS;AAAA,IAAA,CACtF;AAAA,IACD,sBAAsB,MAAM,SAG1B;AAAA,MACA,OAAO,OAAO,EAAE,KAAK,uBAAuB,QAAQ,OAAO;AAAA,IAAA,CAC5D;AAAA,IACD,oBAAoB,MAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,8BAA8B;AAAA,IAAA,CACpD;AAAA,IACD,oBAAoB,MAAM,SAAkE;AAAA,MAC1F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.es.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n freelancer?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n}\nexport type AttributeData = {\n /** Type of attribute value */\n type:\n | 'string'\n | 'integer'\n | 'float'\n | 'boolean'\n | 'datetime'\n | 'list_of_strings'\n | 'list_of_integers'\n | 'list_of_any'\n | 'list_of_submodels'\n | 'dict'\n /** Nice, human readable title of the attribute */\n title?: string\n description?: string\n /** Example value of the field. */\n example?: any\n /** Default value for the attribute. Do not set for list types. */\n default?: any\n gt?: number | number\n ge?: number | number\n lt?: number | number\n le?: number | number\n minLength?: number\n maxLength?: number\n /** Minimum number of items in list type. */\n minItems?: number\n /** Only for list types. Maximum number of items in the list. */\n maxItems?: number\n /** Only for string types. The value must match this regex. */\n regex?: string\n /** List of enum items used for displaying select widgets */\n enum?: AttributeEnumItem[]\n /** Inherit the attribute value from the parent entity. */\n inherit?: boolean\n}\nexport type AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n )[]\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n data: AttributeData\n}\nexport type SsoOption = {\n name: string\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":[],"mappings":";AACM,MAAA,iBAAiB,IAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,qBAAqB,MAAM,MAAiE;AAAA,MAC1F,OAAO,OAAO,EAAE,KAAK,uBAAuB;AAAA,IAAA,CAC7C;AAAA,IACD,UAAU,MAAM,MAA2C;AAAA,MACzD,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,UAAU,SAAS;AAAA,UACnB,UAAU,SAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,aAAa,MAAM,MAAiD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsB,MAAM,MAAmE;AAAA,MAC7F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,QAAQ,SAAS;AAAA,UACjB,WAAW,SAAS;AAAA,QAAA;AAAA,MAExB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,eAAe;AAAA,IAAA,CACrC;AAAA,IACD,WAAW,MAAM,MAA6C;AAAA,MAC5D,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,YAAY,MAAM,SAAkD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,gBAAgB,SAAS,UAAU;AAAA,QACxC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,cAAc,MAAM,SAAsD;AAAA,MACxE,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,IAAI,QAAQ,SAAS;AAAA,IAAA,CACtF;AAAA,IACD,sBAAsB,MAAM,SAG1B;AAAA,MACA,OAAO,OAAO,EAAE,KAAK,uBAAuB,QAAQ,OAAO;AAAA,IAAA,CAC5D;AAAA,IACD,oBAAoB,MAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,8BAA8B;AAAA,IAAA,CACpD;AAAA,IACD,oBAAoB,MAAM,SAAkE;AAAA,MAC1F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"system.es.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n freelancer?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n}\nexport type AttributeData = {\n /** Type of attribute value */\n type:\n | 'string'\n | 'integer'\n | 'float'\n | 'boolean'\n | 'datetime'\n | 'list_of_strings'\n | 'list_of_integers'\n | 'list_of_any'\n | 'list_of_submodels'\n | 'dict'\n /** Nice, human readable title of the attribute */\n title?: string\n description?: string\n /** Example value of the field. */\n example?: any\n /** Default value for the attribute. Do not set for list types. */\n default?: any\n gt?: number | number\n ge?: number | number\n lt?: number | number\n le?: number | number\n minLength?: number\n maxLength?: number\n /** Minimum number of items in list type. */\n minItems?: number\n /** Only for list types. Maximum number of items in the list. */\n maxItems?: number\n /** Only for string types. The value must match this regex. */\n regex?: string\n /** List of enum items used for displaying select widgets */\n enum?: AttributeEnumItem[]\n /** Inherit the attribute value from the parent entity. */\n inherit?: boolean\n}\nexport type AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n )[]\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n data: AttributeData\n}\nexport type SsoOption = {\n name: string\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n disableChangelog?: boolean\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":[],"mappings":";AACM,MAAA,iBAAiB,IAAI,gBAAgB;AAAA,EACzC,WAAW,CAAC,WAAW;AAAA,IACrB,qBAAqB,MAAM,MAAiE;AAAA,MAC1F,OAAO,OAAO,EAAE,KAAK,uBAAuB;AAAA,IAAA,CAC7C;AAAA,IACD,UAAU,MAAM,MAA2C;AAAA,MACzD,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,UAAU,SAAS;AAAA,UACnB,UAAU,SAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,aAAa,MAAM,MAAiD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,MAAM,SAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsB,MAAM,MAAmE;AAAA,MAC7F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,QAAQ,SAAS;AAAA,UACjB,WAAW,SAAS;AAAA,QAAA;AAAA,MAExB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,kBAAkB,MAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,eAAe;AAAA,IAAA,CACrC;AAAA,IACD,WAAW,MAAM,MAA6C;AAAA,MAC5D,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,YAAY,MAAM,SAAkD;AAAA,MAClE,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK,gBAAgB,SAAS,UAAU;AAAA,QACxC,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,cAAc,MAAM,SAAsD;AAAA,MACxE,OAAO,CAAC,cAAc,EAAE,KAAK,gBAAgB,SAAS,UAAU,IAAI,QAAQ,SAAS;AAAA,IAAA,CACtF;AAAA,IACD,sBAAsB,MAAM,SAG1B;AAAA,MACA,OAAO,OAAO,EAAE,KAAK,uBAAuB,QAAQ,OAAO;AAAA,IAAA,CAC5D;AAAA,IACD,oBAAoB,MAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,8BAA8B;AAAA,IAAA,CACpD;AAAA,IACD,oBAAoB,MAAM,SAAkE;AAAA,MAC1F,OAAO,CAAC,cAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,SAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
@@ -37,6 +37,10 @@ require("../../generated/workfiles.cjs.js");
|
|
|
37
37
|
require("../../generated/ynputCloud.cjs.js");
|
|
38
38
|
const updateUserApi = users.api.enhanceEndpoints({
|
|
39
39
|
endpoints: {
|
|
40
|
+
deleteUser: {
|
|
41
|
+
transformErrorResponse: (res) => res.data,
|
|
42
|
+
invalidatesTags: () => [{ type: "user", id: "LIST" }]
|
|
43
|
+
},
|
|
40
44
|
setFrontendPreferences: {
|
|
41
45
|
// @ts-expect-error - disableInvalidations is not in the api
|
|
42
46
|
invalidatesTags: (_result, _error, { userName, disableInvalidations }) => !disableInvalidations ? [{ type: "user", id: userName }, "info"] : [],
|
|
@@ -105,14 +109,6 @@ const updateUser = updateUserApi.injectEndpoints({
|
|
|
105
109
|
transformErrorResponse: (res) => res.data,
|
|
106
110
|
invalidatesTags: [{ type: "user", id: "LIST" }]
|
|
107
111
|
}),
|
|
108
|
-
deleteUser: build.mutation({
|
|
109
|
-
query: ({ user }) => ({
|
|
110
|
-
url: `/api/users/${user}`,
|
|
111
|
-
method: "DELETE"
|
|
112
|
-
}),
|
|
113
|
-
transformErrorResponse: (res) => res.data,
|
|
114
|
-
invalidatesTags: () => [{ type: "user", id: "LIST" }]
|
|
115
|
-
}),
|
|
116
112
|
updateUserAPIKey: build.mutation({
|
|
117
113
|
query: ({ name, apiKey }) => ({
|
|
118
114
|
url: `/api/users/${name}/password`,
|
|
@@ -159,7 +155,6 @@ const {
|
|
|
159
155
|
useUpdateUserPasswordMutation,
|
|
160
156
|
useAddUserMutation,
|
|
161
157
|
useDeleteUserMutation,
|
|
162
|
-
// move to enhanced
|
|
163
158
|
useUpdateUserAPIKeyMutation,
|
|
164
159
|
useInvalidateUserSessionMutation,
|
|
165
160
|
useSetFrontendPreferencesMutation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateUsers.cjs.js","sources":["../../../../../../src/api/queries/users/updateUsers.ts"],"sourcesContent":["import { FetchBaseQueryError } from '@reduxjs/toolkit/query'\nimport { usersApi } from '@shared/api/generated'\n\nconst updateUserApi = usersApi.enhanceEndpoints({\n endpoints: {\n setFrontendPreferences: {\n // @ts-expect-error - disableInvalidations is not in the api\n invalidatesTags: (_result, _error, { userName, disableInvalidations }) =>\n !disableInvalidations ? [{ type: 'user', id: userName }, 'info'] : [],\n async onQueryStarted({ patchData }, { dispatch, queryFulfilled, getState }) {\n // get current preferences\n\n // optimistic update the user cache\n const patch = dispatch(\n usersApi.util.updateQueryData('getCurrentUser', undefined, (draft) => {\n if (draft?.data) {\n draft.data.frontendPreferences = { ...draft.data.frontendPreferences, ...patchData }\n }\n }),\n )\n try {\n await queryFulfilled\n } catch {\n // rollback the optimistic update if the query fails\n patch.undo()\n }\n }, // onQueryStarted\n },\n },\n})\n\nconst updateUser = updateUserApi.injectEndpoints({\n endpoints: (build) => ({\n updateUser: build.mutation({\n query: ({ name, patch }) => ({\n url: `/api/users/${name}`,\n method: 'PATCH',\n body: patch,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n { type: 'userPool', id: 'LIST' },\n { type: 'feedback', id: 'LIST' },\n 'info',\n ],\n }),\n updateUserName: build.mutation({\n query: ({ name, newName }) => ({\n url: `/api/users/${name}/rename`,\n method: 'PATCH',\n body: { newName },\n }),\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n ],\n transformErrorResponse: (res) => res.data,\n }),\n updateUserPassword: build.mutation({\n query: ({ name, password }) => ({\n url: `/api/users/${name}/password`,\n method: 'PATCH',\n body: { password },\n }),\n invalidatesTags: () => ['user'],\n transformErrorResponse: (res) => res.data,\n }),\n addUser: build.mutation({\n query: ({ name, user }) => ({\n url: `/api/users/${name}`,\n method: 'PUT',\n body: user,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: [{ type: 'user', id: 'LIST' }],\n }),\n
|
|
1
|
+
{"version":3,"file":"updateUsers.cjs.js","sources":["../../../../../../src/api/queries/users/updateUsers.ts"],"sourcesContent":["import { FetchBaseQueryError } from '@reduxjs/toolkit/query'\nimport { usersApi } from '@shared/api/generated'\n\nconst updateUserApi = usersApi.enhanceEndpoints({\n endpoints: {\n deleteUser: {\n transformErrorResponse: (res) => res.data,\n invalidatesTags: () => [{ type: 'user', id: 'LIST' }],\n },\n setFrontendPreferences: {\n // @ts-expect-error - disableInvalidations is not in the api\n invalidatesTags: (_result, _error, { userName, disableInvalidations }) =>\n !disableInvalidations ? [{ type: 'user', id: userName }, 'info'] : [],\n async onQueryStarted({ patchData }, { dispatch, queryFulfilled, getState }) {\n // get current preferences\n\n // optimistic update the user cache\n const patch = dispatch(\n usersApi.util.updateQueryData('getCurrentUser', undefined, (draft) => {\n if (draft?.data) {\n draft.data.frontendPreferences = { ...draft.data.frontendPreferences, ...patchData }\n }\n }),\n )\n try {\n await queryFulfilled\n } catch {\n // rollback the optimistic update if the query fails\n patch.undo()\n }\n }, // onQueryStarted\n },\n },\n})\n\nconst updateUser = updateUserApi.injectEndpoints({\n endpoints: (build) => ({\n updateUser: build.mutation({\n query: ({ name, patch }) => ({\n url: `/api/users/${name}`,\n method: 'PATCH',\n body: patch,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n { type: 'userPool', id: 'LIST' },\n { type: 'feedback', id: 'LIST' },\n 'info',\n ],\n }),\n updateUserName: build.mutation({\n query: ({ name, newName }) => ({\n url: `/api/users/${name}/rename`,\n method: 'PATCH',\n body: { newName },\n }),\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n ],\n transformErrorResponse: (res) => res.data,\n }),\n updateUserPassword: build.mutation({\n query: ({ name, password }) => ({\n url: `/api/users/${name}/password`,\n method: 'PATCH',\n body: { password },\n }),\n invalidatesTags: () => ['user'],\n transformErrorResponse: (res) => res.data,\n }),\n addUser: build.mutation({\n query: ({ name, user }) => ({\n url: `/api/users/${name}`,\n method: 'PUT',\n body: user,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: [{ type: 'user', id: 'LIST' }],\n }),\n updateUserAPIKey: build.mutation({\n query: ({ name, apiKey }) => ({\n url: `/api/users/${name}/password`,\n method: 'PATCH',\n body: { apiKey },\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: () => [{ type: 'user', id: 'LIST' }],\n }),\n invalidateUserSession: build.mutation({\n query: ({ name, token }) => ({\n url: `/api/users/${name}/sessions/${token}`,\n method: 'DELETE',\n }),\n invalidatesTags: (_res, _err, { token }) => [{ type: 'session', id: token }],\n }),\n }),\n overrideExisting: true,\n})\n\nconst updateUser2 = updateUser.injectEndpoints({\n endpoints: (build) => ({\n // update multiple users at once\n updateUsers: build.mutation<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n any[],\n { name: string; patch: object }[]\n >({\n //\n queryFn: async (updates, { dispatch }) => {\n const results = await Promise.all(\n updates.map(({ name, patch }: { name: string; patch: object }) => {\n return dispatch(updateUser.endpoints.updateUser.initiate({ name, patch }))\n }),\n )\n\n // Check if any of the results have an error\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const firstError = results.find((result: any) => result.error)\n if (firstError) {\n return { error: firstError.error as FetchBaseQueryError }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return { data: results.map((result: any) => result.data) }\n },\n }),\n }),\n})\n\nexport const {\n useUpdateUserMutation,\n useUpdateUsersMutation,\n useUpdateUserNameMutation,\n useUpdateUserPasswordMutation,\n useAddUserMutation,\n useDeleteUserMutation,\n useUpdateUserAPIKeyMutation,\n useInvalidateUserSessionMutation,\n useSetFrontendPreferencesMutation,\n} = updateUser2\nexport { updateUser2 as userQueries }\n"],"names":["usersApi"],"mappings":"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"}
|
|
@@ -35,6 +35,10 @@ import "../../generated/workfiles.es.js";
|
|
|
35
35
|
import "../../generated/ynputCloud.es.js";
|
|
36
36
|
const updateUserApi = injectedRtkApi.enhanceEndpoints({
|
|
37
37
|
endpoints: {
|
|
38
|
+
deleteUser: {
|
|
39
|
+
transformErrorResponse: (res) => res.data,
|
|
40
|
+
invalidatesTags: () => [{ type: "user", id: "LIST" }]
|
|
41
|
+
},
|
|
38
42
|
setFrontendPreferences: {
|
|
39
43
|
// @ts-expect-error - disableInvalidations is not in the api
|
|
40
44
|
invalidatesTags: (_result, _error, { userName, disableInvalidations }) => !disableInvalidations ? [{ type: "user", id: userName }, "info"] : [],
|
|
@@ -103,14 +107,6 @@ const updateUser = updateUserApi.injectEndpoints({
|
|
|
103
107
|
transformErrorResponse: (res) => res.data,
|
|
104
108
|
invalidatesTags: [{ type: "user", id: "LIST" }]
|
|
105
109
|
}),
|
|
106
|
-
deleteUser: build.mutation({
|
|
107
|
-
query: ({ user }) => ({
|
|
108
|
-
url: `/api/users/${user}`,
|
|
109
|
-
method: "DELETE"
|
|
110
|
-
}),
|
|
111
|
-
transformErrorResponse: (res) => res.data,
|
|
112
|
-
invalidatesTags: () => [{ type: "user", id: "LIST" }]
|
|
113
|
-
}),
|
|
114
110
|
updateUserAPIKey: build.mutation({
|
|
115
111
|
query: ({ name, apiKey }) => ({
|
|
116
112
|
url: `/api/users/${name}/password`,
|
|
@@ -157,7 +153,6 @@ const {
|
|
|
157
153
|
useUpdateUserPasswordMutation,
|
|
158
154
|
useAddUserMutation,
|
|
159
155
|
useDeleteUserMutation,
|
|
160
|
-
// move to enhanced
|
|
161
156
|
useUpdateUserAPIKeyMutation,
|
|
162
157
|
useInvalidateUserSessionMutation,
|
|
163
158
|
useSetFrontendPreferencesMutation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateUsers.es.js","sources":["../../../../../../src/api/queries/users/updateUsers.ts"],"sourcesContent":["import { FetchBaseQueryError } from '@reduxjs/toolkit/query'\nimport { usersApi } from '@shared/api/generated'\n\nconst updateUserApi = usersApi.enhanceEndpoints({\n endpoints: {\n setFrontendPreferences: {\n // @ts-expect-error - disableInvalidations is not in the api\n invalidatesTags: (_result, _error, { userName, disableInvalidations }) =>\n !disableInvalidations ? [{ type: 'user', id: userName }, 'info'] : [],\n async onQueryStarted({ patchData }, { dispatch, queryFulfilled, getState }) {\n // get current preferences\n\n // optimistic update the user cache\n const patch = dispatch(\n usersApi.util.updateQueryData('getCurrentUser', undefined, (draft) => {\n if (draft?.data) {\n draft.data.frontendPreferences = { ...draft.data.frontendPreferences, ...patchData }\n }\n }),\n )\n try {\n await queryFulfilled\n } catch {\n // rollback the optimistic update if the query fails\n patch.undo()\n }\n }, // onQueryStarted\n },\n },\n})\n\nconst updateUser = updateUserApi.injectEndpoints({\n endpoints: (build) => ({\n updateUser: build.mutation({\n query: ({ name, patch }) => ({\n url: `/api/users/${name}`,\n method: 'PATCH',\n body: patch,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n { type: 'userPool', id: 'LIST' },\n { type: 'feedback', id: 'LIST' },\n 'info',\n ],\n }),\n updateUserName: build.mutation({\n query: ({ name, newName }) => ({\n url: `/api/users/${name}/rename`,\n method: 'PATCH',\n body: { newName },\n }),\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n ],\n transformErrorResponse: (res) => res.data,\n }),\n updateUserPassword: build.mutation({\n query: ({ name, password }) => ({\n url: `/api/users/${name}/password`,\n method: 'PATCH',\n body: { password },\n }),\n invalidatesTags: () => ['user'],\n transformErrorResponse: (res) => res.data,\n }),\n addUser: build.mutation({\n query: ({ name, user }) => ({\n url: `/api/users/${name}`,\n method: 'PUT',\n body: user,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: [{ type: 'user', id: 'LIST' }],\n }),\n
|
|
1
|
+
{"version":3,"file":"updateUsers.es.js","sources":["../../../../../../src/api/queries/users/updateUsers.ts"],"sourcesContent":["import { FetchBaseQueryError } from '@reduxjs/toolkit/query'\nimport { usersApi } from '@shared/api/generated'\n\nconst updateUserApi = usersApi.enhanceEndpoints({\n endpoints: {\n deleteUser: {\n transformErrorResponse: (res) => res.data,\n invalidatesTags: () => [{ type: 'user', id: 'LIST' }],\n },\n setFrontendPreferences: {\n // @ts-expect-error - disableInvalidations is not in the api\n invalidatesTags: (_result, _error, { userName, disableInvalidations }) =>\n !disableInvalidations ? [{ type: 'user', id: userName }, 'info'] : [],\n async onQueryStarted({ patchData }, { dispatch, queryFulfilled, getState }) {\n // get current preferences\n\n // optimistic update the user cache\n const patch = dispatch(\n usersApi.util.updateQueryData('getCurrentUser', undefined, (draft) => {\n if (draft?.data) {\n draft.data.frontendPreferences = { ...draft.data.frontendPreferences, ...patchData }\n }\n }),\n )\n try {\n await queryFulfilled\n } catch {\n // rollback the optimistic update if the query fails\n patch.undo()\n }\n }, // onQueryStarted\n },\n },\n})\n\nconst updateUser = updateUserApi.injectEndpoints({\n endpoints: (build) => ({\n updateUser: build.mutation({\n query: ({ name, patch }) => ({\n url: `/api/users/${name}`,\n method: 'PATCH',\n body: patch,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n { type: 'userPool', id: 'LIST' },\n { type: 'feedback', id: 'LIST' },\n 'info',\n ],\n }),\n updateUserName: build.mutation({\n query: ({ name, newName }) => ({\n url: `/api/users/${name}/rename`,\n method: 'PATCH',\n body: { newName },\n }),\n invalidatesTags: (_result, _error, { name }) => [\n { type: 'user', id: name },\n { type: 'user', id: 'LIST' },\n ],\n transformErrorResponse: (res) => res.data,\n }),\n updateUserPassword: build.mutation({\n query: ({ name, password }) => ({\n url: `/api/users/${name}/password`,\n method: 'PATCH',\n body: { password },\n }),\n invalidatesTags: () => ['user'],\n transformErrorResponse: (res) => res.data,\n }),\n addUser: build.mutation({\n query: ({ name, user }) => ({\n url: `/api/users/${name}`,\n method: 'PUT',\n body: user,\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: [{ type: 'user', id: 'LIST' }],\n }),\n updateUserAPIKey: build.mutation({\n query: ({ name, apiKey }) => ({\n url: `/api/users/${name}/password`,\n method: 'PATCH',\n body: { apiKey },\n }),\n transformErrorResponse: (res) => res.data,\n invalidatesTags: () => [{ type: 'user', id: 'LIST' }],\n }),\n invalidateUserSession: build.mutation({\n query: ({ name, token }) => ({\n url: `/api/users/${name}/sessions/${token}`,\n method: 'DELETE',\n }),\n invalidatesTags: (_res, _err, { token }) => [{ type: 'session', id: token }],\n }),\n }),\n overrideExisting: true,\n})\n\nconst updateUser2 = updateUser.injectEndpoints({\n endpoints: (build) => ({\n // update multiple users at once\n updateUsers: build.mutation<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n any[],\n { name: string; patch: object }[]\n >({\n //\n queryFn: async (updates, { dispatch }) => {\n const results = await Promise.all(\n updates.map(({ name, patch }: { name: string; patch: object }) => {\n return dispatch(updateUser.endpoints.updateUser.initiate({ name, patch }))\n }),\n )\n\n // Check if any of the results have an error\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const firstError = results.find((result: any) => result.error)\n if (firstError) {\n return { error: firstError.error as FetchBaseQueryError }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return { data: results.map((result: any) => result.data) }\n },\n }),\n }),\n})\n\nexport const {\n useUpdateUserMutation,\n useUpdateUsersMutation,\n useUpdateUserNameMutation,\n useUpdateUserPasswordMutation,\n useAddUserMutation,\n useDeleteUserMutation,\n useUpdateUserAPIKeyMutation,\n useInvalidateUserSessionMutation,\n useSetFrontendPreferencesMutation,\n} = updateUser2\nexport { updateUser2 as userQueries }\n"],"names":["usersApi"],"mappings":"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"}
|
|
@@ -171,6 +171,7 @@ require("../SettingsPanel/SettingsPanel.cjs.js");
|
|
|
171
171
|
require("../SettingsPanel/SettingsPanelItemTemplate.cjs.js");
|
|
172
172
|
require("../AttributeEditor/components/MinMaxField.cjs.js");
|
|
173
173
|
require("../EnumEditor/EnumEditor.styled.cjs.js");
|
|
174
|
+
require("../SearchFilter/filterDates.cjs.js");
|
|
174
175
|
const EntityThumbnailUploader = ({
|
|
175
176
|
children = [],
|
|
176
177
|
entityType,
|
package/dist/shared/src/components/EntityThumbnailUploader/EntityThumbnailUploader.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityThumbnailUploader.cjs.js","sources":["../../../../../src/components/EntityThumbnailUploader/EntityThumbnailUploader.tsx"],"sourcesContent":["import { useRef, useState } from 'react'\nimport clsx from 'clsx'\n\nimport { ThumbnailUploader } from '@shared/components'\nimport { ThumbnailWrapper } from '@shared/containers'\nimport { useUpdateEntitiesMutation } from '@shared/api'\nimport * as Styled from './EntityThumbnailUploader.styled'\nimport { ThumbnailUploadProvider } from '../../context/ThumbnailUploaderContext'\n\ntype Operation = {\n id: string\n projectName: string\n currentAssignees: any[]\n data: { updatedAt: string }\n}\nexport type EntityThumbnailUploaderProps = {\n entityType: string\n entities: any[]\n isCompact?: boolean\n projectName: any\n children?: JSX.Element | JSX.Element[]\n onUploaded?: (operations: Operation[]) => void\n resetFileUploadState?: () => void\n}\n\nexport const EntityThumbnailUploader = ({\n children = [],\n entityType,\n entities = [],\n isCompact = false,\n onUploaded,\n}: EntityThumbnailUploaderProps) => {\n const [isDraggingFile, setIsDraggingFile] = useState(false)\n const [isUploadingFile, setIsUploadingFile] = useState(false)\n\n const [updateEntities] = useUpdateEntitiesMutation()\n\n const handleThumbnailUpload = async (thumbnails: any[] = []) => {\n // always set isDraggingFile to false\n setIsDraggingFile(false)\n setIsUploadingFile(false)\n\n // check something was actually uploaded\n if (!entities.length) {\n return\n }\n\n // patching the updatedAt will force a refresh of the thumbnail url\n const newUpdatedAt = new Date().toISOString()\n\n let operations: Operation[] = []\n let versionPatches = []\n\n for (const entity of thumbnails) {\n const entityToPatch = entities.find((e) => e.id === entity.id)\n if (!entityToPatch) continue\n const thumbnailId = entity.thumbnailId\n const currentAssignees = entity.users || []\n\n operations.push({\n id: entityToPatch.id,\n projectName: entityToPatch.projectName,\n data: { updatedAt: newUpdatedAt },\n currentAssignees,\n })\n\n const versionPatch = {\n productId: entityToPatch.productId,\n versionUpdatedAt: newUpdatedAt,\n versionThumbnailId: thumbnailId,\n }\n\n versionPatches.push(versionPatch)\n }\n\n try {\n await updateEntities({ operations, entityType })\n onUploaded && onUploaded(operations)\n } catch (error) {\n console.error('Error uploading thumbnail:', error)\n }\n }\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n return (\n <ThumbnailUploadProvider\n entities={entities}\n handleThumbnailUpload={handleThumbnailUpload}\n inputRef={inputRef}\n >\n <Styled.DragAndDropWrapper\n className={clsx({ isCompact })}\n onDragEnter={() => setIsDraggingFile(true)}\n >\n <ThumbnailWrapper>\n <div>{children}</div>\n </ThumbnailWrapper>\n <ThumbnailUploader\n entities={entities}\n inputRef={inputRef}\n className={clsx('thumbnail-uploader', { hidden: !isDraggingFile && !isUploadingFile })}\n onUploadInProgress={() => setIsUploadingFile(true)}\n onFinish={handleThumbnailUpload}\n onDragLeave={() => setIsDraggingFile(false)}\n onDragOver={(e) => e.preventDefault()}\n />\n </Styled.DragAndDropWrapper>\n </ThumbnailUploadProvider>\n )\n}\n"],"names":["useState","useUpdateEntitiesMutation","useRef","jsx","ThumbnailUploadProvider","jsxs","Styled.DragAndDropWrapper","ThumbnailWrapper","ThumbnailUploader"],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityThumbnailUploader.cjs.js","sources":["../../../../../src/components/EntityThumbnailUploader/EntityThumbnailUploader.tsx"],"sourcesContent":["import { useRef, useState } from 'react'\nimport clsx from 'clsx'\n\nimport { ThumbnailUploader } from '@shared/components'\nimport { ThumbnailWrapper } from '@shared/containers'\nimport { useUpdateEntitiesMutation } from '@shared/api'\nimport * as Styled from './EntityThumbnailUploader.styled'\nimport { ThumbnailUploadProvider } from '../../context/ThumbnailUploaderContext'\n\ntype Operation = {\n id: string\n projectName: string\n currentAssignees: any[]\n data: { updatedAt: string }\n}\nexport type EntityThumbnailUploaderProps = {\n entityType: string\n entities: any[]\n isCompact?: boolean\n projectName: any\n children?: JSX.Element | JSX.Element[]\n onUploaded?: (operations: Operation[]) => void\n resetFileUploadState?: () => void\n}\n\nexport const EntityThumbnailUploader = ({\n children = [],\n entityType,\n entities = [],\n isCompact = false,\n onUploaded,\n}: EntityThumbnailUploaderProps) => {\n const [isDraggingFile, setIsDraggingFile] = useState(false)\n const [isUploadingFile, setIsUploadingFile] = useState(false)\n\n const [updateEntities] = useUpdateEntitiesMutation()\n\n const handleThumbnailUpload = async (thumbnails: any[] = []) => {\n // always set isDraggingFile to false\n setIsDraggingFile(false)\n setIsUploadingFile(false)\n\n // check something was actually uploaded\n if (!entities.length) {\n return\n }\n\n // patching the updatedAt will force a refresh of the thumbnail url\n const newUpdatedAt = new Date().toISOString()\n\n let operations: Operation[] = []\n let versionPatches = []\n\n for (const entity of thumbnails) {\n const entityToPatch = entities.find((e) => e.id === entity.id)\n if (!entityToPatch) continue\n const thumbnailId = entity.thumbnailId\n const currentAssignees = entity.users || []\n\n operations.push({\n id: entityToPatch.id,\n projectName: entityToPatch.projectName,\n data: { updatedAt: newUpdatedAt },\n currentAssignees,\n })\n\n const versionPatch = {\n productId: entityToPatch.productId,\n versionUpdatedAt: newUpdatedAt,\n versionThumbnailId: thumbnailId,\n }\n\n versionPatches.push(versionPatch)\n }\n\n try {\n await updateEntities({ operations, entityType })\n onUploaded && onUploaded(operations)\n } catch (error) {\n console.error('Error uploading thumbnail:', error)\n }\n }\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n return (\n <ThumbnailUploadProvider\n entities={entities}\n handleThumbnailUpload={handleThumbnailUpload}\n inputRef={inputRef}\n >\n <Styled.DragAndDropWrapper\n className={clsx({ isCompact })}\n onDragEnter={() => setIsDraggingFile(true)}\n >\n <ThumbnailWrapper>\n <div>{children}</div>\n </ThumbnailWrapper>\n <ThumbnailUploader\n entities={entities}\n inputRef={inputRef}\n className={clsx('thumbnail-uploader', { hidden: !isDraggingFile && !isUploadingFile })}\n onUploadInProgress={() => setIsUploadingFile(true)}\n onFinish={handleThumbnailUpload}\n onDragLeave={() => setIsDraggingFile(false)}\n onDragOver={(e) => e.preventDefault()}\n />\n </Styled.DragAndDropWrapper>\n </ThumbnailUploadProvider>\n )\n}\n"],"names":["useState","useUpdateEntitiesMutation","useRef","jsx","ThumbnailUploadProvider","jsxs","Styled.DragAndDropWrapper","ThumbnailWrapper","ThumbnailUploader"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBO,MAAM,0BAA0B,CAAC;AAAA,EACtC,WAAW,CAAC;AAAA,EACZ;AAAA,EACA,WAAW,CAAC;AAAA,EACZ,YAAY;AAAA,EACZ;AACF,MAAoC;AAClC,QAAM,CAAC,gBAAgB,iBAAiB,IAAIA,MAAAA,SAAS,KAAK;AAC1D,QAAM,CAAC,iBAAiB,kBAAkB,IAAIA,MAAAA,SAAS,KAAK;AAEtD,QAAA,CAAC,cAAc,IAAIC,uCAA0B;AAEnD,QAAM,wBAAwB,OAAO,aAAoB,OAAO;AAE9D,sBAAkB,KAAK;AACvB,uBAAmB,KAAK;AAGpB,QAAA,CAAC,SAAS,QAAQ;AACpB;AAAA,IAAA;AAIF,UAAM,gBAAe,oBAAI,KAAK,GAAE,YAAY;AAE5C,QAAI,aAA0B,CAAC;AAG/B,eAAW,UAAU,YAAY;AACzB,YAAA,gBAAgB,SAAS,KAAK,CAAC,MAAM,EAAE,OAAO,OAAO,EAAE;AAC7D,UAAI,CAAC,cAAe;AACA,aAAO;AACrB,YAAA,mBAAmB,OAAO,SAAS,CAAC;AAE1C,iBAAW,KAAK;AAAA,QACd,IAAI,cAAc;AAAA,QAClB,aAAa,cAAc;AAAA,QAC3B,MAAM,EAAE,WAAW,aAAa;AAAA,QAChC;AAAA,MAAA,CACD;AAEoB,OAAA;AAAA,QACnB,WAAW,cAAc;AAAA,MAG3B;AAAA,IAEgC;AAG9B,QAAA;AACF,YAAM,eAAe,EAAE,YAAY,YAAY;AAC/C,oBAAc,WAAW,UAAU;AAAA,aAC5B,OAAO;AACN,cAAA,MAAM,8BAA8B,KAAK;AAAA,IAAA;AAAA,EAErD;AAEM,QAAA,WAAWC,aAAyB,IAAI;AAG5C,SAAAC,2BAAA,kBAAA;AAAA,IAACC,yBAAA;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MAEA,UAAAC,2BAAA,kBAAA;AAAA,QAACC,+BAAO;AAAA,QAAP;AAAA,UACC,WAAW,KAAK,EAAE,WAAW;AAAA,UAC7B,aAAa,MAAM,kBAAkB,IAAI;AAAA,UAEzC,UAAA;AAAA,YAAAH,iDAACI,0BAAAA,kBACC,EAAA,UAAAJ,2BAAAA,kBAAAA,IAAC,OAAK,EAAA,SAAS,CAAA,GACjB;AAAA,YACAA,2BAAA,kBAAA;AAAA,cAACK,kBAAA;AAAA,cAAA;AAAA,gBACC;AAAA,gBACA;AAAA,gBACA,WAAW,KAAK,sBAAsB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,iBAAiB;AAAA,gBACrF,oBAAoB,MAAM,mBAAmB,IAAI;AAAA,gBACjD,UAAU;AAAA,gBACV,aAAa,MAAM,kBAAkB,KAAK;AAAA,gBAC1C,YAAY,CAAC,MAAM,EAAE,eAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACtC;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF;AAEJ;;"}
|
|
@@ -169,6 +169,7 @@ import "../SettingsPanel/SettingsPanel.es.js";
|
|
|
169
169
|
import "../SettingsPanel/SettingsPanelItemTemplate.es.js";
|
|
170
170
|
import "../AttributeEditor/components/MinMaxField.es.js";
|
|
171
171
|
import "../EnumEditor/EnumEditor.styled.es.js";
|
|
172
|
+
import "../SearchFilter/filterDates.es.js";
|
|
172
173
|
const EntityThumbnailUploader = ({
|
|
173
174
|
children = [],
|
|
174
175
|
entityType,
|