@ynput/ayon-frontend-shared 0.2.12 → 0.2.13
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/_virtual/index.cjs10.js +4 -4
- package/dist/_virtual/index.cjs4.js +4 -4
- package/dist/_virtual/index.cjs5.js +4 -4
- package/dist/_virtual/index.cjs6.js +2 -2
- package/dist/_virtual/index.cjs7.js +2 -2
- package/dist/_virtual/index.cjs8.js +4 -4
- package/dist/_virtual/index.cjs9.js +4 -4
- package/dist/_virtual/index.es10.js +4 -4
- package/dist/_virtual/index.es4.js +4 -4
- package/dist/_virtual/index.es5.js +4 -4
- package/dist/_virtual/index.es6.js +2 -2
- package/dist/_virtual/index.es7.js +2 -2
- package/dist/_virtual/index.es8.js +4 -4
- package/dist/_virtual/index.es9.js +4 -4
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js +1 -1
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.es.js +1 -1
- package/dist/node_modules/parse-numeric-range/index.cjs.js +1 -1
- package/dist/node_modules/parse-numeric-range/index.es.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +2 -2
- package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
- package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.es.js +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
- package/dist/node_modules/remove-accents/index.cjs.js +1 -1
- package/dist/node_modules/remove-accents/index.es.js +1 -1
- package/dist/node_modules/vfile/lib/index.cjs.js +1 -1
- package/dist/node_modules/vfile/lib/index.es.js +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/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/types/api/queries/users/updateUsers.d.ts +1492 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/extend/index.cjs.js");
|
|
4
|
+
var extendExports = index.__require();
|
|
5
|
+
const extend = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(extendExports);
|
|
6
|
+
module.exports = extend;
|
|
7
7
|
//# sourceMappingURL=index.cjs10.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/parse-numeric-range/index.cjs.js");
|
|
4
|
+
var parseNumericRangeExports = index.__require();
|
|
5
|
+
const n = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(parseNumericRangeExports);
|
|
6
|
+
module.exports = n;
|
|
7
7
|
//# sourceMappingURL=index.cjs4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/remove-accents/index.cjs.js");
|
|
4
|
+
var removeAccentsExports = index.__require();
|
|
5
|
+
const removeAccents = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(removeAccentsExports);
|
|
6
|
+
module.exports = removeAccents;
|
|
7
7
|
//# sourceMappingURL=index.cjs5.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var
|
|
4
|
-
exports.__module =
|
|
3
|
+
var parseNumericRange = { exports: {} };
|
|
4
|
+
exports.__module = parseNumericRange;
|
|
5
5
|
//# sourceMappingURL=index.cjs6.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var
|
|
4
|
-
exports.__module =
|
|
3
|
+
var removeAccents = { exports: {} };
|
|
4
|
+
exports.__module = removeAccents;
|
|
5
5
|
//# sourceMappingURL=index.cjs7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/parse5/lib/parser/index.cjs.js");
|
|
4
|
+
var parserExports = index.__require();
|
|
5
|
+
const Parser5 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(parserExports);
|
|
6
|
+
module.exports = Parser5;
|
|
7
7
|
//# sourceMappingURL=index.cjs8.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
3
|
-
const index = require("../node_modules/
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
module.exports =
|
|
3
|
+
const index = require("../node_modules/is-buffer/index.cjs.js");
|
|
4
|
+
var isBufferExports = index.__require();
|
|
5
|
+
const isBuffer = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(isBufferExports);
|
|
6
|
+
module.exports = isBuffer;
|
|
7
7
|
//# sourceMappingURL=index.cjs9.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireExtend } from "../node_modules/extend/index.es.js";
|
|
3
|
+
var extendExports = requireExtend();
|
|
4
|
+
const extend = /* @__PURE__ */ getDefaultExportFromCjs(extendExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
extend as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es10.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireParseNumericRange } from "../node_modules/parse-numeric-range/index.es.js";
|
|
3
|
+
var parseNumericRangeExports = requireParseNumericRange();
|
|
4
|
+
const n = /* @__PURE__ */ getDefaultExportFromCjs(parseNumericRangeExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
n as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es4.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireRemoveAccents } from "../node_modules/remove-accents/index.es.js";
|
|
3
|
+
var removeAccentsExports = requireRemoveAccents();
|
|
4
|
+
const removeAccents = /* @__PURE__ */ getDefaultExportFromCjs(removeAccentsExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
removeAccents as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es5.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireParser } from "../node_modules/parse5/lib/parser/index.es.js";
|
|
3
|
+
var parserExports = requireParser();
|
|
4
|
+
const Parser5 = /* @__PURE__ */ getDefaultExportFromCjs(parserExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
Parser5 as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es8.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireIsBuffer } from "../node_modules/is-buffer/index.es.js";
|
|
3
|
+
var isBufferExports = requireIsBuffer();
|
|
4
|
+
const isBuffer = /* @__PURE__ */ getDefaultExportFromCjs(isBufferExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
isBuffer as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es9.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/index.
|
|
3
|
+
const index = require("../../_virtual/index.cjs6.js");
|
|
4
4
|
var hasRequiredParseNumericRange;
|
|
5
5
|
function requireParseNumericRange() {
|
|
6
6
|
if (hasRequiredParseNumericRange) return index.__module.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as parseNumericRange } from "../../_virtual/index.
|
|
1
|
+
import { __module as parseNumericRange } from "../../_virtual/index.es6.js";
|
|
2
2
|
var hasRequiredParseNumericRange;
|
|
3
3
|
function requireParseNumericRange() {
|
|
4
4
|
if (hasRequiredParseNumericRange) return parseNumericRange.exports;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index$3 = require("../../../../bail/index.cjs.js");
|
|
4
|
-
const index$5 = require("../../../../../_virtual/index.
|
|
5
|
-
const index = require("../../../../../_virtual/index.
|
|
4
|
+
const index$5 = require("../../../../../_virtual/index.cjs9.js");
|
|
5
|
+
const index = require("../../../../../_virtual/index.cjs10.js");
|
|
6
6
|
const index$2 = require("../../../../is-plain-obj/index.cjs.js");
|
|
7
7
|
const index$1 = require("../../../../trough/lib/index.cjs.js");
|
|
8
8
|
const index$4 = require("../../../../vfile/lib/index.cjs.js");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bail } from "../../../../bail/index.es.js";
|
|
2
|
-
import isBuffer from "../../../../../_virtual/index.
|
|
3
|
-
import extend from "../../../../../_virtual/index.
|
|
2
|
+
import isBuffer from "../../../../../_virtual/index.es9.js";
|
|
3
|
+
import extend from "../../../../../_virtual/index.es10.js";
|
|
4
4
|
import isPlainObject from "../../../../is-plain-obj/index.es.js";
|
|
5
5
|
import { trough } from "../../../../trough/lib/index.es.js";
|
|
6
6
|
import { VFile } from "../../../../vfile/lib/index.es.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("../../../_virtual/index.
|
|
2
|
+
const index = require("../../../_virtual/index.cjs8.js");
|
|
3
3
|
const errors = require("./errors.cjs.js");
|
|
4
4
|
const index$1 = require("../../hast-util-from-parse5/lib/index.cjs.js");
|
|
5
5
|
const base = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Parser5 from "../../../_virtual/index.
|
|
1
|
+
import Parser5 from "../../../_virtual/index.es8.js";
|
|
2
2
|
import { errors } from "./errors.es.js";
|
|
3
3
|
import { fromParse5 } from "../../hast-util-from-parse5/lib/index.es.js";
|
|
4
4
|
const base = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index$1 = require("../../hast-util-to-string/index.cjs.js");
|
|
4
|
-
const index$2 = require("../../../_virtual/index.
|
|
4
|
+
const index$2 = require("../../../_virtual/index.cjs4.js");
|
|
5
5
|
require("../../refractor/lib/common.cjs.js");
|
|
6
6
|
require("../../refractor/lib/all.cjs.js");
|
|
7
7
|
const index = require("../node_modules/unist-util-visit/lib/index.cjs.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toString } from "../../hast-util-to-string/index.es.js";
|
|
2
|
-
import n from "../../../_virtual/index.
|
|
2
|
+
import n from "../../../_virtual/index.es4.js";
|
|
3
3
|
import "../../refractor/lib/common.es.js";
|
|
4
4
|
import "../../refractor/lib/all.es.js";
|
|
5
5
|
import { visit } from "../node_modules/unist-util-visit/lib/index.es.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/index.
|
|
3
|
+
const index = require("../../_virtual/index.cjs7.js");
|
|
4
4
|
var hasRequiredRemoveAccents;
|
|
5
5
|
function requireRemoveAccents() {
|
|
6
6
|
if (hasRequiredRemoveAccents) return index.__module.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as removeAccents } from "../../_virtual/index.
|
|
1
|
+
import { __module as removeAccents } from "../../_virtual/index.es7.js";
|
|
2
2
|
var hasRequiredRemoveAccents;
|
|
3
3
|
function requireRemoveAccents() {
|
|
4
4
|
if (hasRequiredRemoveAccents) return removeAccents.exports;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index$1 = require("../../../_virtual/index.
|
|
3
|
+
const index$1 = require("../../../_virtual/index.cjs9.js");
|
|
4
4
|
const minpath_browser = require("./minpath.browser.cjs.js");
|
|
5
5
|
const minproc_browser = require("./minproc.browser.cjs.js");
|
|
6
6
|
const minurl_browser = require("./minurl.browser.cjs.js");
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAM,gBAAgBA,UAAS,iBAAiB;AAAA,EAC9C,WAAW;AAAA,IACT,YAAY;AAAA,MACV,wBAAwB,CAAC,QAAQ,IAAI;AAAA,MACrC,iBAAiB,MAAM,CAAC,EAAE,MAAM,QAAQ,IAAI,OAAQ,CAAA;AAAA,IACtD;AAAA,IACA,wBAAwB;AAAA;AAAA,MAEtB,iBAAiB,CAAC,SAAS,QAAQ,EAAE,UAAU,2BAC7C,CAAC,uBAAuB,CAAC,EAAE,MAAM,QAAQ,IAAI,SAAY,GAAA,MAAM,IAAI,CAAC;AAAA,MACtE,MAAM,eAAe,EAAE,aAAa,EAAE,UAAU,gBAAgB,YAAY;AAI1E,cAAM,QAAQ;AAAA,UACZA,UAAS,KAAK,gBAAgB,kBAAkB,QAAW,CAAC,UAAU;AACpE,gBAAI,+BAAO,MAAM;AACT,oBAAA,KAAK,sBAAsB,EAAE,GAAG,MAAM,KAAK,qBAAqB,GAAG,UAAU;AAAA,YAAA;AAAA,UAEtF,CAAA;AAAA,QACH;AACI,YAAA;AACI,gBAAA;AAAA,QAAA,QACA;AAEN,gBAAM,KAAK;AAAA,QAAA;AAAA,MACb;AAAA;AAAA,IACF;AAAA,EACF;AAEJ,CAAC;AAED,MAAM,aAAa,cAA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AA6B;AAAA,QAAA;AAInD,eAAA,EAAE,MAAM,QAAQ,IAAI,CAAC,WAAgB,OAAO,IAAI,EAAE;AAAA,MAAA;AAAA,IAE5D,CAAA;AAAA,EACH;AACF,CAAC;AAEY,MAAA;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,IAAI;;;;;;;;;;;"}
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAM,gBAAgBA,eAAS,iBAAiB;AAAA,EAC9C,WAAW;AAAA,IACT,YAAY;AAAA,MACV,wBAAwB,CAAC,QAAQ,IAAI;AAAA,MACrC,iBAAiB,MAAM,CAAC,EAAE,MAAM,QAAQ,IAAI,OAAQ,CAAA;AAAA,IACtD;AAAA,IACA,wBAAwB;AAAA;AAAA,MAEtB,iBAAiB,CAAC,SAAS,QAAQ,EAAE,UAAU,2BAC7C,CAAC,uBAAuB,CAAC,EAAE,MAAM,QAAQ,IAAI,SAAY,GAAA,MAAM,IAAI,CAAC;AAAA,MACtE,MAAM,eAAe,EAAE,aAAa,EAAE,UAAU,gBAAgB,YAAY;AAI1E,cAAM,QAAQ;AAAA,UACZA,eAAS,KAAK,gBAAgB,kBAAkB,QAAW,CAAC,UAAU;AACpE,gBAAI,+BAAO,MAAM;AACT,oBAAA,KAAK,sBAAsB,EAAE,GAAG,MAAM,KAAK,qBAAqB,GAAG,UAAU;AAAA,YAAA;AAAA,UAEtF,CAAA;AAAA,QACH;AACI,YAAA;AACI,gBAAA;AAAA,QAAA,QACA;AAEN,gBAAM,KAAK;AAAA,QAAA;AAAA,MACb;AAAA;AAAA,IACF;AAAA,EACF;AAEJ,CAAC;AAED,MAAM,aAAa,cAAc,gBAAgB;AAAA,EAC/C,WAAW,CAAC,WAAW;AAAA,IACrB,YAAY,MAAM,SAAS;AAAA,MACzB,OAAO,CAAC,EAAE,MAAM,aAAa;AAAA,QAC3B,KAAK,cAAc,IAAI;AAAA,QACvB,QAAQ;AAAA,QACR,MAAM;AAAA,MAAA;AAAA,MAER,wBAAwB,CAAC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AAA,EACA;AAAA,EACA;AAAA,EACA;AACF,IAAI;"}
|
|
@@ -464,7 +464,7 @@ const TableHeadCell = ({
|
|
|
464
464
|
...getCommonPinningStyles(column),
|
|
465
465
|
width: `calc(var(--header-${header == null ? void 0 : header.id}-size) * 1px)`
|
|
466
466
|
},
|
|
467
|
-
children: header.isPlaceholder ? null : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(ProjectTreeTable_styled.TableCellContent, { className: clsx("bold"), children: [
|
|
467
|
+
children: header.isPlaceholder ? null : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(ProjectTreeTable_styled.TableCellContent, { className: clsx("bold", "header"), children: [
|
|
468
468
|
reactTable.flexRender(column.columnDef.header, header.getContext()),
|
|
469
469
|
isReadOnly && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ayonReactComponents.Icon, { icon: "lock", "data-tooltip": "You only have permission to read this column." }),
|
|
470
470
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(ProjectTreeTable_styled.HeaderButtons, { className: "actions", children: [
|