@ynput/ayon-frontend-shared 0.2.30 → 0.2.32
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.cjs5.js +1 -1
- package/dist/_virtual/index.cjs6.js +1 -1
- package/dist/_virtual/index.es5.js +5 -2
- package/dist/_virtual/index.es5.js.map +1 -1
- package/dist/_virtual/index.es6.js +2 -5
- package/dist/_virtual/index.es6.js.map +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/shared/src/api/generated/access.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/access.es.js.map +1 -1
- package/dist/shared/src/api/generated/authentication.cjs.js +1 -1
- package/dist/shared/src/api/generated/authentication.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/authentication.es.js +9 -6
- package/dist/shared/src/api/generated/authentication.es.js.map +1 -1
- package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
- package/dist/shared/src/api/generated/folders.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/folders.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
- package/dist/shared/src/api/generated/links.cjs.js +1 -1
- package/dist/shared/src/api/generated/links.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/links.es.js +13 -5
- package/dist/shared/src/api/generated/links.es.js.map +1 -1
- package/dist/shared/src/api/generated/onboarding.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/onboarding.es.js.map +1 -1
- package/dist/shared/src/api/generated/operations.cjs.js +1 -1
- package/dist/shared/src/api/generated/operations.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/operations.es.js +16 -0
- package/dist/shared/src/api/generated/operations.es.js.map +1 -1
- package/dist/shared/src/api/generated/products.cjs.js +1 -1
- package/dist/shared/src/api/generated/products.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/products.es.js +6 -3
- package/dist/shared/src/api/generated/products.es.js.map +1 -1
- package/dist/shared/src/api/generated/projects.cjs.js +1 -1
- package/dist/shared/src/api/generated/projects.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/projects.es.js +19 -0
- package/dist/shared/src/api/generated/projects.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/generated/tasks.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/tasks.es.js.map +1 -1
- package/dist/shared/src/api/generated/users.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/users.es.js.map +1 -1
- package/dist/shared/src/api/generated/versions.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/versions.es.js.map +1 -1
- package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/views.es.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js +1 -1
- package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/listFolders.es.js +96 -59
- package/dist/shared/src/api/queries/entityLists/listFolders.es.js.map +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js.map +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js +15 -10
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js +60 -0
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js.map +1 -0
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js +332 -0
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js.map +1 -0
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js +4 -4
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js.map +1 -1
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js +37 -33
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js.map +1 -1
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js +3 -5
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js.map +1 -1
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js +4 -6
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js.map +1 -1
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js +1 -2
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js.map +1 -1
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js +0 -1
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.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 +555 -537
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +0 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +4 -5
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +92 -91
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +126 -108
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js +2 -0
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js +9 -0
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +49 -48
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +38 -9
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +74 -39
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +24 -15
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +71 -59
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js +6 -6
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js +12 -12
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js.map +1 -1
- package/dist/shared/src/util/columnConfigConverter.cjs.js +1 -1
- package/dist/shared/src/util/columnConfigConverter.cjs.js.map +1 -1
- package/dist/shared/src/util/columnConfigConverter.es.js +35 -33
- package/dist/shared/src/util/columnConfigConverter.es.js.map +1 -1
- package/dist/types/api/generated/access.d.ts +6 -0
- package/dist/types/api/generated/authentication.d.ts +6 -0
- package/dist/types/api/generated/entityLists.d.ts +7 -7
- package/dist/types/api/generated/folders.d.ts +2 -2
- package/dist/types/api/generated/graphql.d.ts +3 -1
- package/dist/types/api/generated/graphqlLinks.d.ts +21 -15
- package/dist/types/api/generated/links.d.ts +4 -0
- package/dist/types/api/generated/onboarding.d.ts +3 -0
- package/dist/types/api/generated/operations.d.ts +22 -1
- package/dist/types/api/generated/products.d.ts +23 -0
- package/dist/types/api/generated/projects.d.ts +63 -0
- package/dist/types/api/generated/representations.d.ts +1 -0
- package/dist/types/api/generated/system.d.ts +9 -2
- package/dist/types/api/generated/tasks.d.ts +1 -0
- package/dist/types/api/generated/users.d.ts +1 -1
- package/dist/types/api/generated/versions.d.ts +1 -0
- package/dist/types/api/generated/views.d.ts +50 -9
- package/dist/types/api/queries/authentication/getAuthentication.d.ts +1 -0
- package/dist/types/api/queries/overview/updateOverview.d.ts +2 -0
- package/dist/types/api/queries/project/getProject.d.ts +4 -0
- package/dist/types/components/ProjectTableSettings/RowHeightSettings.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useDynamicRowHeight.d.ts +11 -0
- package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +2 -1
- package/dist/types/containers/ProjectTreeTable/widgets/EnumCellValue.d.ts +2 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("./_commonjsHelpers.cjs.js"),r=require("../node_modules/parse-numeric-range/index.cjs.js");var s=r.__require();const t=e.getDefaultExportFromCjs(s);module.exports=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs6.js.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.es.js";
|
|
2
|
+
import { __require as e } from "../node_modules/parse-numeric-range/index.es.js";
|
|
3
|
+
var a = e();
|
|
4
|
+
const m = /* @__PURE__ */ r(a);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
m as default
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index.es5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as e } from "../node_modules/parse-numeric-range/index.es.js";
|
|
3
|
-
var a = e();
|
|
4
|
-
const m = /* @__PURE__ */ r(a);
|
|
1
|
+
var e = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
e as __module
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index.es6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("../../hast-util-to-string/index.cjs.js"),G=require("../../../_virtual/index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("../../hast-util-to-string/index.cjs.js"),G=require("../../../_virtual/index.cjs5.js");require("../../refractor/lib/common.cjs.js");require("../../refractor/lib/all.cjs.js");const W=require("../node_modules/unist-util-visit/lib/index.cjs.js"),z=require("../../refractor/lib/core.cjs.js"),B=require("../../unist-util-filter/lib/index.cjs.js");function O(){O=function(r,n){return new t(r,void 0,n)};var i=RegExp.prototype,o=new WeakMap;function t(r,n,a){var h=new RegExp(r,n);return o.set(h,a||o.get(r)),N(h,t.prototype)}function e(r,n){var a=o.get(n);return Object.keys(a).reduce(function(h,f){var s=a[f];if(typeof s=="number")h[f]=r[s];else{for(var c=0;r[s[c]]===void 0&&c+1<s.length;)c++;h[f]=r[s[c]]}return h},Object.create(null))}return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&N(r,n)}(t,RegExp),t.prototype.exec=function(r){var n=i.exec.call(this,r);if(n){n.groups=e(n,this);var a=n.indices;a&&(a.groups=e(a,this))}return n},t.prototype[Symbol.replace]=function(r,n){if(typeof n=="string"){var a=o.get(this);return i[Symbol.replace].call(this,r,n.replace(/\$<([^>]+)>/g,function(f,s){var c=a[s];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof n=="function"){var h=this;return i[Symbol.replace].call(this,r,function(){var f=arguments;return typeof f[f.length-1]!="object"&&(f=[].slice.call(f)).push(e(f,h)),n.apply(this,f)})}return i[Symbol.replace].call(this,r,n)},O.apply(this,arguments)}function N(i,o){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(i,o)}function P(i,o){(o==null||o>i.length)&&(o=i.length);for(var t=0,e=new Array(o);t<o;t++)e[t]=i[t];return e}function j(i,o){var t=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t)return(t=t.call(i)).next.bind(t);if(Array.isArray(i)||(t=function(r,n){if(r){if(typeof r=="string")return P(r,n);var a=Object.prototype.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?P(r,n):void 0}}(i))||o){t&&(i=t);var e=0;return function(){return e>=i.length?{done:!0}:{done:!1,value:i[e++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=function(i){return function(o){return o===void 0&&(o={}),function(e,r){if(r&&!e.registered(r))throw new Error('The default language "'+r+'" is not registered with refractor.')}(i,o.defaultLanguage),function(e){W.visit(e,"element",t)};function t(e,r,n){var a,h;if(n&&n.tagName==="pre"&&e.tagName==="code"){var f=(e==null||(a=e.data)==null?void 0:a.meta)||(e==null||(h=e.properties)==null?void 0:h.metastring)||"";e.properties.className?typeof e.properties.className=="boolean"?e.properties.className=[]:Array.isArray(e.properties.className)||(e.properties.className=[e.properties.className]):e.properties.className=[];var s,c,m=function(p){for(var d,l=j(p.properties.className);!(d=l()).done;){var u=d.value;if(u.slice(0,9)==="language-")return u.slice(9).toLowerCase()}return null}(e);if(!m&&o.defaultLanguage&&e.properties.className.push("language-"+(m=o.defaultLanguage)),e.properties.className.push("code-highlight"),m)try{var A,S;S=(A=m)!=null&&A.includes("diff-")?m.split("-")[1]:m,s=i.highlight(w.toString(e),S),n.properties.className=(n.properties.className||[]).concat("language-"+S)}catch(p){if(!o.ignoreMissing||!/Unknown language/.test(p.message))throw p;s=e}else s=e;s.children=(c=1,function p(d){return d.reduce(function(l,u){if(u.type==="text"){var g=u.value,v=(g.match(/\n/g)||"").length;if(v===0)u.position={start:{line:c,column:1},end:{line:c,column:1}},l.push(u);else for(var y,q=g.split(`
|
|
3
3
|
`),R=j(q.entries());!(y=R()).done;){var $=y.value,x=$[0],E=$[1];l.push({type:"text",value:x===q.length-1?E:E+`
|
|
4
4
|
`,position:{start:{line:c+x,column:1},end:{line:c+x,column:1}}})}return c+=v,l}if(Object.prototype.hasOwnProperty.call(u,"children")){var U=c;return u.children=p(u.children),l.push(u),u.position={start:{line:U,column:1},end:{line:c,column:1}},l}return l.push(u),l},[])})(s.children),s.position=s.children.length>0?{start:{line:s.children[0].position.start.line,column:0},end:{line:s.children[s.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var L,C=function(p){var d=/{([\d,-]+)}/,l=p.split(",").map(function(v){return v.trim()}).join();if(d.test(l)){var u=d.exec(l)[1],g=G(u);return function(v){return g.includes(v+1)}}return function(){return!1}}(f),M=function(p){var d=O(/showLineNumbers=(\d+)/i,{lines:1});if(d.test(p)){var l=d.exec(p);return Number(l.groups.lines)}return 1}(f),b=function(p){for(var d=new Array(p),l=0;l<p;l++)d[l]={type:"element",tagName:"span",properties:{className:[]},children:[]};return d}(s.position.end.line),T=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],k=function(){var p,d,l=L.value,u=l[0],g=l[1];g.properties.className=["code-line"];var v=B.filter(s,function(y){return y.position.start.line<=u+1&&y.position.end.line>=u+1});g.children=v.children,!f.toLowerCase().includes("showLineNumbers".toLowerCase())&&!o.showLineNumbers||T.some(function(y){return f.toLowerCase().includes(y)})||(g.properties.line=[(u+M).toString()],g.properties.className.push("line-number")),C(u)&&g.properties.className.push("highlight-line"),(m==="diff"||(p=m)!=null&&p.includes("diff-"))&&w.toString(g).substring(0,1)==="-"?g.properties.className.push("deleted"):(m==="diff"||(d=m)!=null&&d.includes("diff-"))&&w.toString(g).substring(0,1)==="+"&&g.properties.className.push("inserted")},I=j(b.entries());!(L=I()).done;)k();b.length>0&&w.toString(b[b.length-1]).trim()===""&&b.pop(),e.children=b}}}},D=_(z.refractor);exports.default=D;exports.rehypePrismGenerator=_;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toString as w } from "../../hast-util-to-string/index.es.js";
|
|
2
|
-
import G from "../../../_virtual/index.
|
|
2
|
+
import G from "../../../_virtual/index.es5.js";
|
|
3
3
|
import "../../refractor/lib/common.es.js";
|
|
4
4
|
import "../../refractor/lib/all.es.js";
|
|
5
5
|
import { visit as W } from "../node_modules/unist-util-visit/lib/index.es.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_virtual/index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_virtual/index.cjs6.js");var t;function O(){if(t)return o.__module.exports;t=1;var a={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"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̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},r=Object.keys(a).join("|"),A=new RegExp(r,"g"),i=new RegExp(r,"");function c(e){return a[e]}var u=function(e){return e.replace(A,c)},n=function(e){return!!e.match(i)};return o.__module.exports=u,o.__module.exports.has=n,o.__module.exports.remove=u,o.__module.exports}exports.__require=O;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access.cjs.js","sources":["../../../../../src/api/generated/access.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getAccessGroupSchema: build.query<GetAccessGroupSchemaApiResponse, GetAccessGroupSchemaApiArg>({\n query: () => ({ url: `/api/accessGroups/_schema` }),\n }),\n getAccessGroups: build.query<GetAccessGroupsApiResponse, GetAccessGroupsApiArg>({\n query: (queryArg) => ({ url: `/api/accessGroups/${queryArg.projectName}` }),\n }),\n getAccessGroup: build.query<GetAccessGroupApiResponse, GetAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n }),\n }),\n saveAccessGroup: build.mutation<SaveAccessGroupApiResponse, SaveAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.data,\n }),\n }),\n deleteAccessGroup: build.mutation<DeleteAccessGroupApiResponse, DeleteAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'DELETE',\n }),\n }),\n setProjectsAccess: build.mutation<SetProjectsAccessApiResponse, SetProjectsAccessApiArg>({\n query: (queryArg) => ({ url: `/api/access`, method: 'POST', body: queryArg.payload }),\n }),\n getShareOptions: build.query<GetShareOptionsApiResponse, GetShareOptionsApiArg>({\n query: (queryArg) => ({\n url: `/api/share`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetAccessGroupSchemaApiResponse = /** status 200 Successful Response */ any\nexport type GetAccessGroupSchemaApiArg = void\nexport type GetAccessGroupsApiResponse = /** status 200 Successful Response */ AccessGroupObject[]\nexport type GetAccessGroupsApiArg = {\n projectName: string\n}\nexport type GetAccessGroupApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SaveAccessGroupApiResponse = unknown\nexport type SaveAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n data: Permissions\n}\nexport type DeleteAccessGroupApiResponse = unknown\nexport type DeleteAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SetProjectsAccessApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectsAccessApiArg = {\n payload: {\n [key: string]: {\n [key: string]: string[]\n }\n }\n}\nexport type GetShareOptionsApiResponse = /** status 200 Successful Response */ ShareOptions\nexport type GetShareOptionsApiArg = {\n projectName?: string\n}\nexport type AccessGroupObject = {\n /** Name of the access group */\n name: string\n /** Whether the access group is project level */\n isProjectLevel: boolean\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type StudioManagementPermissions = {\n /** Allow users to create new projects */\n create_projects?: boolean\n /** Allow users to list all users in the studio */\n list_all_users?: boolean\n}\nexport type ProjectManagementPermissions = {\n /** Allow users to view or edit the project anatomy */\n anatomy?: number\n /** Allow users to view or assign users to project access groups */\n access?: number\n /** Allow users to view or edit the project addon settings */\n settings?: number\n}\nexport type FolderAccess = {\n access_type?: string\n /** The path of the folder to allow access to. Required for access_type 'hierarchy and 'children' */\n path?: string\n}\nexport type FolderAccessList = {\n enabled?: boolean\n access_list?: FolderAccess[]\n}\nexport type AttributeReadAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type AttributeWriteAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type EndpointsAccessList = {\n enabled?: boolean\n endpoints?: string[]\n}\nexport type Permissions = {\n studio?: StudioManagementPermissions\n project?: ProjectManagementPermissions\n /** Whitelist folders a user can create */\n create?: FolderAccessList\n /** Whitelist folders a user can read */\n read?: FolderAccessList\n /** Whitelist folders a user can update */\n update?: FolderAccessList\n /** Whitelist folders a user can publish to */\n publish?: FolderAccessList\n /** Whitelist folders a user can delete */\n delete?: FolderAccessList\n /** Whitelist attributes a user can read */\n attrib_read?: AttributeReadAccessList\n /** Whitelist attributes a user can write */\n attrib_write?: AttributeWriteAccessList\n /** Whitelist REST endpoints a user can access */\n endpoints?: EndpointsAccessList\n}\nexport type ShareOption = {\n shareType: string\n value: string\n name: string\n label: string\n attribute?: string\n}\nexport type ShareOptions = {\n options: ShareOption[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,qBAAsBA,EAAM,MAAmE,CAC7F,MAAO,KAAO,CAAE,IAAK,2BAA4B,EAAA,CAClD,EACD,gBAAiBA,EAAM,MAAyD,CAC9E,MAAQC,IAAc,CAAE,IAAK,qBAAqBA,EAAS,WAAW,EAAG,EAAA,CAC1E,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW,EAC5E,EAAA,CACD,EACD,gBAAiBD,EAAM,SAA4D,CACjF,MAAQC,IAAc,CACpB,IAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW,GAC1E,OAAQ,MACR,KAAMA,EAAS,IACjB,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CACpB,IAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW,GAC1E,OAAQ,QACV,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CAAE,IAAK,cAAe,OAAQ,OAAQ,KAAMA,EAAS,OAAQ,EAAA,CACpF,EACD,gBAAiBD,EAAM,MAAyD,CAC9E,MAAQC,IAAc,CACpB,IAAK,aACL,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"access.cjs.js","sources":["../../../../../src/api/generated/access.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getAccessGroupSchema: build.query<GetAccessGroupSchemaApiResponse, GetAccessGroupSchemaApiArg>({\n query: () => ({ url: `/api/accessGroups/_schema` }),\n }),\n getAccessGroups: build.query<GetAccessGroupsApiResponse, GetAccessGroupsApiArg>({\n query: (queryArg) => ({ url: `/api/accessGroups/${queryArg.projectName}` }),\n }),\n getAccessGroup: build.query<GetAccessGroupApiResponse, GetAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n }),\n }),\n saveAccessGroup: build.mutation<SaveAccessGroupApiResponse, SaveAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.data,\n }),\n }),\n deleteAccessGroup: build.mutation<DeleteAccessGroupApiResponse, DeleteAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'DELETE',\n }),\n }),\n setProjectsAccess: build.mutation<SetProjectsAccessApiResponse, SetProjectsAccessApiArg>({\n query: (queryArg) => ({ url: `/api/access`, method: 'POST', body: queryArg.payload }),\n }),\n getShareOptions: build.query<GetShareOptionsApiResponse, GetShareOptionsApiArg>({\n query: (queryArg) => ({\n url: `/api/share`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetAccessGroupSchemaApiResponse = /** status 200 Successful Response */ any\nexport type GetAccessGroupSchemaApiArg = void\nexport type GetAccessGroupsApiResponse = /** status 200 Successful Response */ AccessGroupObject[]\nexport type GetAccessGroupsApiArg = {\n projectName: string\n}\nexport type GetAccessGroupApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SaveAccessGroupApiResponse = unknown\nexport type SaveAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n data: Permissions\n}\nexport type DeleteAccessGroupApiResponse = unknown\nexport type DeleteAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SetProjectsAccessApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectsAccessApiArg = {\n payload: {\n [key: string]: {\n [key: string]: string[]\n }\n }\n}\nexport type GetShareOptionsApiResponse = /** status 200 Successful Response */ ShareOptions\nexport type GetShareOptionsApiArg = {\n projectName?: string\n}\nexport type AccessGroupObject = {\n /** Name of the access group */\n name: string\n /** Whether the access group is project level */\n isProjectLevel: boolean\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type StudioManagementPermissions = {\n /** Allow users to create new projects */\n create_projects?: boolean\n /** Allow users to list all users in the studio */\n list_all_users?: boolean\n}\nexport type ProjectManagementPermissions = {\n /** Allow users to view or edit the project anatomy */\n anatomy?: number\n /** Allow users to view or assign users to project access groups */\n access?: number\n /** Allow users to view or edit the project addon settings */\n settings?: number\n}\nexport type FolderAccess = {\n access_type?: string\n /** The path of the folder to allow access to. Required for access_type 'hierarchy and 'children' */\n path?: string\n}\nexport type FolderAccessList = {\n enabled?: boolean\n access_list?: FolderAccess[]\n}\nexport type AttributeReadAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type AttributeWriteAccessList = {\n enabled?: boolean\n attributes?: string[]\n fields?: string[]\n}\nexport type EndpointsAccessList = {\n enabled?: boolean\n endpoints?: string[]\n}\nexport type ProjectAdvancedPermissions = {\n /** If a user can access a task through the 'Assigned' permission, enabling this will also show all sibling tasks in the same folder. When disabled, only the assigned task is visible. */\n show_sibling_tasks?: boolean\n}\nexport type Permissions = {\n studio?: StudioManagementPermissions\n project?: ProjectManagementPermissions\n /** Whitelist folders a user can create */\n create?: FolderAccessList\n /** Whitelist folders a user can read */\n read?: FolderAccessList\n /** Whitelist folders a user can update */\n update?: FolderAccessList\n /** Whitelist folders a user can publish to */\n publish?: FolderAccessList\n /** Whitelist folders a user can delete */\n delete?: FolderAccessList\n /** Whitelist attributes a user can read */\n attrib_read?: AttributeReadAccessList\n /** Whitelist attributes a user can write */\n attrib_write?: AttributeWriteAccessList\n /** Whitelist REST endpoints a user can access */\n endpoints?: EndpointsAccessList\n advanced?: ProjectAdvancedPermissions\n}\nexport type ShareOption = {\n shareType: string\n value: string\n name: string\n label: string\n attribute?: string\n}\nexport type ShareOptions = {\n options: ShareOption[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,qBAAsBA,EAAM,MAAmE,CAC7F,MAAO,KAAO,CAAE,IAAK,2BAA4B,EAAA,CAClD,EACD,gBAAiBA,EAAM,MAAyD,CAC9E,MAAQC,IAAc,CAAE,IAAK,qBAAqBA,EAAS,WAAW,EAAG,EAAA,CAC1E,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW,EAC5E,EAAA,CACD,EACD,gBAAiBD,EAAM,SAA4D,CACjF,MAAQC,IAAc,CACpB,IAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW,GAC1E,OAAQ,MACR,KAAMA,EAAS,IACjB,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CACpB,IAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW,GAC1E,OAAQ,QACV,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CAAE,IAAK,cAAe,OAAQ,OAAQ,KAAMA,EAAS,OAAQ,EAAA,CACpF,EACD,gBAAiBD,EAAM,MAAyD,CAC9E,MAAQC,IAAc,CACpB,IAAK,aACL,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access.es.js","sources":["../../../../../src/api/generated/access.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getAccessGroupSchema: build.query<GetAccessGroupSchemaApiResponse, GetAccessGroupSchemaApiArg>({\n query: () => ({ url: `/api/accessGroups/_schema` }),\n }),\n getAccessGroups: build.query<GetAccessGroupsApiResponse, GetAccessGroupsApiArg>({\n query: (queryArg) => ({ url: `/api/accessGroups/${queryArg.projectName}` }),\n }),\n getAccessGroup: build.query<GetAccessGroupApiResponse, GetAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n }),\n }),\n saveAccessGroup: build.mutation<SaveAccessGroupApiResponse, SaveAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.data,\n }),\n }),\n deleteAccessGroup: build.mutation<DeleteAccessGroupApiResponse, DeleteAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'DELETE',\n }),\n }),\n setProjectsAccess: build.mutation<SetProjectsAccessApiResponse, SetProjectsAccessApiArg>({\n query: (queryArg) => ({ url: `/api/access`, method: 'POST', body: queryArg.payload }),\n }),\n getShareOptions: build.query<GetShareOptionsApiResponse, GetShareOptionsApiArg>({\n query: (queryArg) => ({\n url: `/api/share`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetAccessGroupSchemaApiResponse = /** status 200 Successful Response */ any\nexport type GetAccessGroupSchemaApiArg = void\nexport type GetAccessGroupsApiResponse = /** status 200 Successful Response */ AccessGroupObject[]\nexport type GetAccessGroupsApiArg = {\n projectName: string\n}\nexport type GetAccessGroupApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SaveAccessGroupApiResponse = unknown\nexport type SaveAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n data: Permissions\n}\nexport type DeleteAccessGroupApiResponse = unknown\nexport type DeleteAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SetProjectsAccessApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectsAccessApiArg = {\n payload: {\n [key: string]: {\n [key: string]: string[]\n }\n }\n}\nexport type GetShareOptionsApiResponse = /** status 200 Successful Response */ ShareOptions\nexport type GetShareOptionsApiArg = {\n projectName?: string\n}\nexport type AccessGroupObject = {\n /** Name of the access group */\n name: string\n /** Whether the access group is project level */\n isProjectLevel: boolean\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type StudioManagementPermissions = {\n /** Allow users to create new projects */\n create_projects?: boolean\n /** Allow users to list all users in the studio */\n list_all_users?: boolean\n}\nexport type ProjectManagementPermissions = {\n /** Allow users to view or edit the project anatomy */\n anatomy?: number\n /** Allow users to view or assign users to project access groups */\n access?: number\n /** Allow users to view or edit the project addon settings */\n settings?: number\n}\nexport type FolderAccess = {\n access_type?: string\n /** The path of the folder to allow access to. Required for access_type 'hierarchy and 'children' */\n path?: string\n}\nexport type FolderAccessList = {\n enabled?: boolean\n access_list?: FolderAccess[]\n}\nexport type AttributeReadAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type AttributeWriteAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type EndpointsAccessList = {\n enabled?: boolean\n endpoints?: string[]\n}\nexport type Permissions = {\n studio?: StudioManagementPermissions\n project?: ProjectManagementPermissions\n /** Whitelist folders a user can create */\n create?: FolderAccessList\n /** Whitelist folders a user can read */\n read?: FolderAccessList\n /** Whitelist folders a user can update */\n update?: FolderAccessList\n /** Whitelist folders a user can publish to */\n publish?: FolderAccessList\n /** Whitelist folders a user can delete */\n delete?: FolderAccessList\n /** Whitelist attributes a user can read */\n attrib_read?: AttributeReadAccessList\n /** Whitelist attributes a user can write */\n attrib_write?: AttributeWriteAccessList\n /** Whitelist REST endpoints a user can access */\n endpoints?: EndpointsAccessList\n}\nexport type ShareOption = {\n shareType: string\n value: string\n name: string\n label: string\n attribute?: string\n}\nexport type ShareOptions = {\n options: ShareOption[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,sBAAsBA,EAAM,MAAmE;AAAA,MAC7F,OAAO,OAAO,EAAE,KAAK,4BAA4B;AAAA,IAAA,CAClD;AAAA,IACD,iBAAiBA,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc,EAAE,KAAK,qBAAqBA,EAAS,WAAW,GAAG;AAAA,IAAA,CAC1E;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW;AAAA,MAC5E;AAAA,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,SAA4D;AAAA,MACjF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW;AAAA,QAC1E,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW;AAAA,QAC1E,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc,EAAE,KAAK,eAAe,QAAQ,QAAQ,MAAMA,EAAS,QAAQ;AAAA,IAAA,CACpF;AAAA,IACD,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"access.es.js","sources":["../../../../../src/api/generated/access.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getAccessGroupSchema: build.query<GetAccessGroupSchemaApiResponse, GetAccessGroupSchemaApiArg>({\n query: () => ({ url: `/api/accessGroups/_schema` }),\n }),\n getAccessGroups: build.query<GetAccessGroupsApiResponse, GetAccessGroupsApiArg>({\n query: (queryArg) => ({ url: `/api/accessGroups/${queryArg.projectName}` }),\n }),\n getAccessGroup: build.query<GetAccessGroupApiResponse, GetAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n }),\n }),\n saveAccessGroup: build.mutation<SaveAccessGroupApiResponse, SaveAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.data,\n }),\n }),\n deleteAccessGroup: build.mutation<DeleteAccessGroupApiResponse, DeleteAccessGroupApiArg>({\n query: (queryArg) => ({\n url: `/api/accessGroups/${queryArg.accessGroupName}/${queryArg.projectName}`,\n method: 'DELETE',\n }),\n }),\n setProjectsAccess: build.mutation<SetProjectsAccessApiResponse, SetProjectsAccessApiArg>({\n query: (queryArg) => ({ url: `/api/access`, method: 'POST', body: queryArg.payload }),\n }),\n getShareOptions: build.query<GetShareOptionsApiResponse, GetShareOptionsApiArg>({\n query: (queryArg) => ({\n url: `/api/share`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetAccessGroupSchemaApiResponse = /** status 200 Successful Response */ any\nexport type GetAccessGroupSchemaApiArg = void\nexport type GetAccessGroupsApiResponse = /** status 200 Successful Response */ AccessGroupObject[]\nexport type GetAccessGroupsApiArg = {\n projectName: string\n}\nexport type GetAccessGroupApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SaveAccessGroupApiResponse = unknown\nexport type SaveAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n data: Permissions\n}\nexport type DeleteAccessGroupApiResponse = unknown\nexport type DeleteAccessGroupApiArg = {\n accessGroupName: string\n projectName: string\n}\nexport type SetProjectsAccessApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectsAccessApiArg = {\n payload: {\n [key: string]: {\n [key: string]: string[]\n }\n }\n}\nexport type GetShareOptionsApiResponse = /** status 200 Successful Response */ ShareOptions\nexport type GetShareOptionsApiArg = {\n projectName?: string\n}\nexport type AccessGroupObject = {\n /** Name of the access group */\n name: string\n /** Whether the access group is project level */\n isProjectLevel: boolean\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type StudioManagementPermissions = {\n /** Allow users to create new projects */\n create_projects?: boolean\n /** Allow users to list all users in the studio */\n list_all_users?: boolean\n}\nexport type ProjectManagementPermissions = {\n /** Allow users to view or edit the project anatomy */\n anatomy?: number\n /** Allow users to view or assign users to project access groups */\n access?: number\n /** Allow users to view or edit the project addon settings */\n settings?: number\n}\nexport type FolderAccess = {\n access_type?: string\n /** The path of the folder to allow access to. Required for access_type 'hierarchy and 'children' */\n path?: string\n}\nexport type FolderAccessList = {\n enabled?: boolean\n access_list?: FolderAccess[]\n}\nexport type AttributeReadAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type AttributeWriteAccessList = {\n enabled?: boolean\n attributes?: string[]\n fields?: string[]\n}\nexport type EndpointsAccessList = {\n enabled?: boolean\n endpoints?: string[]\n}\nexport type ProjectAdvancedPermissions = {\n /** If a user can access a task through the 'Assigned' permission, enabling this will also show all sibling tasks in the same folder. When disabled, only the assigned task is visible. */\n show_sibling_tasks?: boolean\n}\nexport type Permissions = {\n studio?: StudioManagementPermissions\n project?: ProjectManagementPermissions\n /** Whitelist folders a user can create */\n create?: FolderAccessList\n /** Whitelist folders a user can read */\n read?: FolderAccessList\n /** Whitelist folders a user can update */\n update?: FolderAccessList\n /** Whitelist folders a user can publish to */\n publish?: FolderAccessList\n /** Whitelist folders a user can delete */\n delete?: FolderAccessList\n /** Whitelist attributes a user can read */\n attrib_read?: AttributeReadAccessList\n /** Whitelist attributes a user can write */\n attrib_write?: AttributeWriteAccessList\n /** Whitelist REST endpoints a user can access */\n endpoints?: EndpointsAccessList\n advanced?: ProjectAdvancedPermissions\n}\nexport type ShareOption = {\n shareType: string\n value: string\n name: string\n label: string\n attribute?: string\n}\nexport type ShareOptions = {\n options: ShareOption[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,sBAAsBA,EAAM,MAAmE;AAAA,MAC7F,OAAO,OAAO,EAAE,KAAK,4BAA4B;AAAA,IAAA,CAClD;AAAA,IACD,iBAAiBA,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc,EAAE,KAAK,qBAAqBA,EAAS,WAAW,GAAG;AAAA,IAAA,CAC1E;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW;AAAA,MAC5E;AAAA,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,SAA4D;AAAA,MACjF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW;AAAA,QAC1E,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,qBAAqBA,EAAS,eAAe,IAAIA,EAAS,WAAW;AAAA,QAC1E,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc,EAAE,KAAK,eAAe,QAAQ,QAAQ,MAAMA,EAAS,QAAQ;AAAA,IAAA,CACpF;AAAA,IACD,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base/client.cjs.js"),i=o.api.injectEndpoints({endpoints:e=>({login:e.mutation({query:t=>({url:"/api/auth/login",method:"POST",body:t.loginRequestModel})}),logout:e.mutation({query:()=>({url:"/api/auth/logout",method:"POST"})}),listActiveSessions:e.query({query:()=>({url:"/api/auth/sessions"})}),createSession:e.mutation({query:t=>({url:"/api/auth/sessions",method:"POST",body:t.createSessionRequest})}),getUserPools:e.query({query:()=>({url:"/api/auth/pools"})})}),overrideExisting:!1});exports.api=i;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base/client.cjs.js"),i=o.api.injectEndpoints({endpoints:e=>({login:e.mutation({query:t=>({url:"/api/auth/login",method:"POST",body:t.loginRequestModel})}),logout:e.mutation({query:()=>({url:"/api/auth/logout",method:"POST"})}),tokenAuthCallback:e.query({query:()=>({url:"/api/auth/tokenauth"})}),listActiveSessions:e.query({query:()=>({url:"/api/auth/sessions"})}),createSession:e.mutation({query:t=>({url:"/api/auth/sessions",method:"POST",body:t.createSessionRequest})}),getUserPools:e.query({query:()=>({url:"/api/auth/pools"})})}),overrideExisting:!1});exports.api=i;
|
|
2
2
|
//# sourceMappingURL=authentication.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.cjs.js","sources":["../../../../../src/api/generated/authentication.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n login: build.mutation<LoginApiResponse, LoginApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/login`,\n method: 'POST',\n body: queryArg.loginRequestModel,\n }),\n }),\n logout: build.mutation<LogoutApiResponse, LogoutApiArg>({\n query: () => ({ url: `/api/auth/logout`, method: 'POST' }),\n }),\n listActiveSessions: build.query<ListActiveSessionsApiResponse, ListActiveSessionsApiArg>({\n query: () => ({ url: `/api/auth/sessions` }),\n }),\n createSession: build.mutation<CreateSessionApiResponse, CreateSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/sessions`,\n method: 'POST',\n body: queryArg.createSessionRequest,\n }),\n }),\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type LoginApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type LoginApiArg = {\n loginRequestModel: LoginRequestModel\n}\nexport type LogoutApiResponse = /** status 200 Successful Response */ LogoutResponseModel\nexport type LogoutApiArg = void\nexport type ListActiveSessionsApiResponse = /** status 200 Successful Response */ SessionModel[]\nexport type ListActiveSessionsApiArg = void\nexport type CreateSessionApiResponse = /** status 200 Successful Response */ SessionModel\nexport type CreateSessionApiArg = {\n createSessionRequest: CreateSessionRequest\n}\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: 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 LoginResponseModel = {\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type LoginRequestModel = {\n /** Username */\n name: string\n /** Password */\n password: string\n}\nexport type LogoutResponseModel = {\n /** Text description, which may be displayed to the user */\n detail?: string\n}\nexport type LocationInfo = {\n country?: string\n subdivision?: string\n city?: string\n}\nexport type AgentInfo = {\n platform?: string\n client?: string\n device?: string\n}\nexport type ClientInfo = {\n ip: string\n languages?: string[]\n location?: LocationInfo\n agent?: AgentInfo\n site_id?: string\n}\nexport type SessionModel = {\n user: UserModel\n token: string\n created?: number\n lastUsed?: number\n isService?: boolean\n isApiKey?: boolean\n clientInfo?: ClientInfo\n}\nexport type CreateSessionRequest = {\n /** User name to create session for */\n userName?: string\n /** Message to log in event stream */\n message?: string\n}\nexport type UserPoolModel = {\n id: string\n label: string\n type: 'fixed' | 'metered'\n valid: boolean\n note: string\n exp: number\n max: number\n used: number\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,MAAOA,EAAM,SAAwC,CACnD,MAAQC,IAAc,CACpB,IAAK,kBACL,OAAQ,OACR,KAAMA,EAAS,iBACjB,EAAA,CACD,EACD,OAAQD,EAAM,SAA0C,CACtD,MAAO,KAAO,CAAE,IAAK,mBAAoB,OAAQ,MAAO,EAAA,CACzD,EACD,mBAAoBA,EAAM,MAA+D,CACvF,MAAO,KAAO,CAAE,IAAK,oBAAqB,EAAA,CAC3C,EACD,cAAeA,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,qBACL,OAAQ,OACR,KAAMA,EAAS,oBACjB,EAAA,CACD,EACD,aAAcD,EAAM,MAAmD,CACrE,MAAO,KAAO,CAAE,IAAK,iBAAkB,EACxC,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"authentication.cjs.js","sources":["../../../../../src/api/generated/authentication.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n login: build.mutation<LoginApiResponse, LoginApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/login`,\n method: 'POST',\n body: queryArg.loginRequestModel,\n }),\n }),\n logout: build.mutation<LogoutApiResponse, LogoutApiArg>({\n query: () => ({ url: `/api/auth/logout`, method: 'POST' }),\n }),\n tokenAuthCallback: build.query<TokenAuthCallbackApiResponse, TokenAuthCallbackApiArg>({\n query: () => ({ url: `/api/auth/tokenauth` }),\n }),\n listActiveSessions: build.query<ListActiveSessionsApiResponse, ListActiveSessionsApiArg>({\n query: () => ({ url: `/api/auth/sessions` }),\n }),\n createSession: build.mutation<CreateSessionApiResponse, CreateSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/sessions`,\n method: 'POST',\n body: queryArg.createSessionRequest,\n }),\n }),\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type LoginApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type LoginApiArg = {\n loginRequestModel: LoginRequestModel\n}\nexport type LogoutApiResponse = /** status 200 Successful Response */ LogoutResponseModel\nexport type LogoutApiArg = void\nexport type TokenAuthCallbackApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type TokenAuthCallbackApiArg = void\nexport type ListActiveSessionsApiResponse = /** status 200 Successful Response */ SessionModel[]\nexport type ListActiveSessionsApiArg = void\nexport type CreateSessionApiResponse = /** status 200 Successful Response */ SessionModel\nexport type CreateSessionApiArg = {\n createSessionRequest: CreateSessionRequest\n}\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: 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 LoginResponseModel = {\n /** Text message, which may be displayed to the user */\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n /** URL to redirect the user after login */\n redirectUrl?: 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 LoginRequestModel = {\n /** Username */\n name: string\n /** Password */\n password: string\n}\nexport type LogoutResponseModel = {\n /** Text description, which may be displayed to the user */\n detail?: string\n}\nexport type LocationInfo = {\n country?: string\n subdivision?: string\n city?: string\n}\nexport type AgentInfo = {\n platform?: string\n client?: string\n device?: string\n}\nexport type ClientInfo = {\n ip: string\n languages?: string[]\n location?: LocationInfo\n agent?: AgentInfo\n site_id?: string\n}\nexport type SessionModel = {\n user: UserModel\n token: string\n created?: number\n lastUsed?: number\n isService?: boolean\n isApiKey?: boolean\n clientInfo?: ClientInfo\n}\nexport type CreateSessionRequest = {\n /** User name to create session for */\n userName?: string\n /** Message to log in event stream */\n message?: string\n}\nexport type UserPoolModel = {\n id: string\n label: string\n type: 'fixed' | 'metered'\n valid: boolean\n note: string\n exp: number\n max: number\n used: number\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,MAAOA,EAAM,SAAwC,CACnD,MAAQC,IAAc,CACpB,IAAK,kBACL,OAAQ,OACR,KAAMA,EAAS,iBACjB,EAAA,CACD,EACD,OAAQD,EAAM,SAA0C,CACtD,MAAO,KAAO,CAAE,IAAK,mBAAoB,OAAQ,MAAO,EAAA,CACzD,EACD,kBAAmBA,EAAM,MAA6D,CACpF,MAAO,KAAO,CAAE,IAAK,qBAAsB,EAAA,CAC5C,EACD,mBAAoBA,EAAM,MAA+D,CACvF,MAAO,KAAO,CAAE,IAAK,oBAAqB,EAAA,CAC3C,EACD,cAAeA,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,qBACL,OAAQ,OACR,KAAMA,EAAS,oBACjB,EAAA,CACD,EACD,aAAcD,EAAM,MAAmD,CACrE,MAAO,KAAO,CAAE,IAAK,iBAAkB,EACxC,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { api as
|
|
2
|
-
const i =
|
|
1
|
+
import { api as o } from "../base/client.es.js";
|
|
2
|
+
const i = o.injectEndpoints({
|
|
3
3
|
endpoints: (e) => ({
|
|
4
4
|
login: e.mutation({
|
|
5
|
-
query: (
|
|
5
|
+
query: (t) => ({
|
|
6
6
|
url: "/api/auth/login",
|
|
7
7
|
method: "POST",
|
|
8
|
-
body:
|
|
8
|
+
body: t.loginRequestModel
|
|
9
9
|
})
|
|
10
10
|
}),
|
|
11
11
|
logout: e.mutation({
|
|
12
12
|
query: () => ({ url: "/api/auth/logout", method: "POST" })
|
|
13
13
|
}),
|
|
14
|
+
tokenAuthCallback: e.query({
|
|
15
|
+
query: () => ({ url: "/api/auth/tokenauth" })
|
|
16
|
+
}),
|
|
14
17
|
listActiveSessions: e.query({
|
|
15
18
|
query: () => ({ url: "/api/auth/sessions" })
|
|
16
19
|
}),
|
|
17
20
|
createSession: e.mutation({
|
|
18
|
-
query: (
|
|
21
|
+
query: (t) => ({
|
|
19
22
|
url: "/api/auth/sessions",
|
|
20
23
|
method: "POST",
|
|
21
|
-
body:
|
|
24
|
+
body: t.createSessionRequest
|
|
22
25
|
})
|
|
23
26
|
}),
|
|
24
27
|
getUserPools: e.query({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.es.js","sources":["../../../../../src/api/generated/authentication.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n login: build.mutation<LoginApiResponse, LoginApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/login`,\n method: 'POST',\n body: queryArg.loginRequestModel,\n }),\n }),\n logout: build.mutation<LogoutApiResponse, LogoutApiArg>({\n query: () => ({ url: `/api/auth/logout`, method: 'POST' }),\n }),\n listActiveSessions: build.query<ListActiveSessionsApiResponse, ListActiveSessionsApiArg>({\n query: () => ({ url: `/api/auth/sessions` }),\n }),\n createSession: build.mutation<CreateSessionApiResponse, CreateSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/sessions`,\n method: 'POST',\n body: queryArg.createSessionRequest,\n }),\n }),\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type LoginApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type LoginApiArg = {\n loginRequestModel: LoginRequestModel\n}\nexport type LogoutApiResponse = /** status 200 Successful Response */ LogoutResponseModel\nexport type LogoutApiArg = void\nexport type ListActiveSessionsApiResponse = /** status 200 Successful Response */ SessionModel[]\nexport type ListActiveSessionsApiArg = void\nexport type CreateSessionApiResponse = /** status 200 Successful Response */ SessionModel\nexport type CreateSessionApiArg = {\n createSessionRequest: CreateSessionRequest\n}\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: 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 LoginResponseModel = {\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type LoginRequestModel = {\n /** Username */\n name: string\n /** Password */\n password: string\n}\nexport type LogoutResponseModel = {\n /** Text description, which may be displayed to the user */\n detail?: string\n}\nexport type LocationInfo = {\n country?: string\n subdivision?: string\n city?: string\n}\nexport type AgentInfo = {\n platform?: string\n client?: string\n device?: string\n}\nexport type ClientInfo = {\n ip: string\n languages?: string[]\n location?: LocationInfo\n agent?: AgentInfo\n site_id?: string\n}\nexport type SessionModel = {\n user: UserModel\n token: string\n created?: number\n lastUsed?: number\n isService?: boolean\n isApiKey?: boolean\n clientInfo?: ClientInfo\n}\nexport type CreateSessionRequest = {\n /** User name to create session for */\n userName?: string\n /** Message to log in event stream */\n message?: string\n}\nexport type UserPoolModel = {\n id: string\n label: string\n type: 'fixed' | 'metered'\n valid: boolean\n note: string\n exp: number\n max: number\n used: number\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,OAAOA,EAAM,SAAwC;AAAA,MACnD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,QAAQD,EAAM,SAA0C;AAAA,MACtD,OAAO,OAAO,EAAE,KAAK,oBAAoB,QAAQ,OAAO;AAAA,IAAA,CACzD;AAAA,IACD,oBAAoBA,EAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,qBAAqB;AAAA,IAAA,CAC3C;AAAA,IACD,eAAeA,EAAM,SAAwD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,cAAcD,EAAM,MAAmD;AAAA,MACrE,OAAO,OAAO,EAAE,KAAK,kBAAkB;AAAA,IACxC,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"authentication.es.js","sources":["../../../../../src/api/generated/authentication.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n login: build.mutation<LoginApiResponse, LoginApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/login`,\n method: 'POST',\n body: queryArg.loginRequestModel,\n }),\n }),\n logout: build.mutation<LogoutApiResponse, LogoutApiArg>({\n query: () => ({ url: `/api/auth/logout`, method: 'POST' }),\n }),\n tokenAuthCallback: build.query<TokenAuthCallbackApiResponse, TokenAuthCallbackApiArg>({\n query: () => ({ url: `/api/auth/tokenauth` }),\n }),\n listActiveSessions: build.query<ListActiveSessionsApiResponse, ListActiveSessionsApiArg>({\n query: () => ({ url: `/api/auth/sessions` }),\n }),\n createSession: build.mutation<CreateSessionApiResponse, CreateSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/auth/sessions`,\n method: 'POST',\n body: queryArg.createSessionRequest,\n }),\n }),\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type LoginApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type LoginApiArg = {\n loginRequestModel: LoginRequestModel\n}\nexport type LogoutApiResponse = /** status 200 Successful Response */ LogoutResponseModel\nexport type LogoutApiArg = void\nexport type TokenAuthCallbackApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type TokenAuthCallbackApiArg = void\nexport type ListActiveSessionsApiResponse = /** status 200 Successful Response */ SessionModel[]\nexport type ListActiveSessionsApiArg = void\nexport type CreateSessionApiResponse = /** status 200 Successful Response */ SessionModel\nexport type CreateSessionApiArg = {\n createSessionRequest: CreateSessionRequest\n}\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: 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 LoginResponseModel = {\n /** Text message, which may be displayed to the user */\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n /** URL to redirect the user after login */\n redirectUrl?: 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 LoginRequestModel = {\n /** Username */\n name: string\n /** Password */\n password: string\n}\nexport type LogoutResponseModel = {\n /** Text description, which may be displayed to the user */\n detail?: string\n}\nexport type LocationInfo = {\n country?: string\n subdivision?: string\n city?: string\n}\nexport type AgentInfo = {\n platform?: string\n client?: string\n device?: string\n}\nexport type ClientInfo = {\n ip: string\n languages?: string[]\n location?: LocationInfo\n agent?: AgentInfo\n site_id?: string\n}\nexport type SessionModel = {\n user: UserModel\n token: string\n created?: number\n lastUsed?: number\n isService?: boolean\n isApiKey?: boolean\n clientInfo?: ClientInfo\n}\nexport type CreateSessionRequest = {\n /** User name to create session for */\n userName?: string\n /** Message to log in event stream */\n message?: string\n}\nexport type UserPoolModel = {\n id: string\n label: string\n type: 'fixed' | 'metered'\n valid: boolean\n note: string\n exp: number\n max: number\n used: number\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,OAAOA,EAAM,SAAwC;AAAA,MACnD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,QAAQD,EAAM,SAA0C;AAAA,MACtD,OAAO,OAAO,EAAE,KAAK,oBAAoB,QAAQ,OAAO;AAAA,IAAA,CACzD;AAAA,IACD,mBAAmBA,EAAM,MAA6D;AAAA,MACpF,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,oBAAoBA,EAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,qBAAqB;AAAA,IAAA,CAC3C;AAAA,IACD,eAAeA,EAAM,SAAwD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,cAAcD,EAAM,MAAmD;AAAA,MACrE,OAAO,OAAO,EAAE,KAAK,kBAAkB;AAAA,IACxC,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityLists.cjs.js","sources":["../../../../../src/api/generated/entityLists.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getEntityListAttributesDefinition: build.query<\n GetEntityListAttributesDefinitionApiResponse,\n GetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n }),\n }),\n setEntityListAttributesDefinition: build.mutation<\n SetEntityListAttributesDefinitionApiResponse,\n SetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getListEntities: build.query<GetListEntitiesApiResponse, GetListEntitiesApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/entities`,\n }),\n }),\n getEntityListFolders: build.query<GetEntityListFoldersApiResponse, GetEntityListFoldersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/entityListFolders` }),\n }),\n createEntityListFolder: build.mutation<\n CreateEntityListFolderApiResponse,\n CreateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders`,\n method: 'POST',\n body: queryArg.entityListFolderPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListFolder: build.mutation<\n DeleteEntityListFolderApiResponse,\n DeleteEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListFolder: build.mutation<\n UpdateEntityListFolderApiResponse,\n UpdateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'PATCH',\n body: queryArg.entityListFolderPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setEntityListFoldersOrder: build.mutation<\n SetEntityListFoldersOrderApiResponse,\n SetEntityListFoldersOrderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/order`,\n method: 'POST',\n body: queryArg.entityListFolderOrderModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityListItem: build.mutation<\n CreateEntityListItemApiResponse,\n CreateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'POST',\n body: queryArg.entityListItemPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItems: build.mutation<\n UpdateEntityListItemsApiResponse,\n UpdateEntityListItemsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'PATCH',\n body: queryArg.entityListMultiPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListItem: build.mutation<\n DeleteEntityListItemApiResponse,\n DeleteEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItem: build.mutation<\n UpdateEntityListItemApiResponse,\n UpdateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'PATCH',\n body: queryArg.entityListItemPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityList: build.mutation<CreateEntityListApiResponse, CreateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists`,\n method: 'POST',\n body: queryArg.entityListPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getEntityList: build.query<GetEntityListApiResponse, GetEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n }),\n }),\n deleteEntityList: build.mutation<DeleteEntityListApiResponse, DeleteEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'DELETE',\n }),\n }),\n updateEntityList: build.mutation<UpdateEntityListApiResponse, UpdateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'PATCH',\n body: queryArg.entityListPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n materializeEntityList: build.mutation<\n MaterializeEntityListApiResponse,\n MaterializeEntityListApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/materialize`,\n method: 'POST',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetEntityListAttributesDefinitionApiResponse =\n /** status 200 Successful Response */ EntityListAttributeDefinition[]\nexport type GetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n}\nexport type SetEntityListAttributesDefinitionApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n payload: EntityListAttributeDefinition[]\n}\nexport type GetListEntitiesApiResponse = /** status 200 Successful Response */ EntityListEnities\nexport type GetListEntitiesApiArg = {\n listId: string\n projectName: string\n}\nexport type GetEntityListFoldersApiResponse =\n /** status 200 Successful Response */ EntityListFoldersResponseModel\nexport type GetEntityListFoldersApiArg = {\n projectName: string\n}\nexport type CreateEntityListFolderApiResponse =\n /** status 200 Successful Response */ EntityIdResponse\nexport type CreateEntityListFolderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPostModel: EntityListFolderPostModel\n}\nexport type DeleteEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPatchModel: EntityListFolderPatchModel\n}\nexport type SetEntityListFoldersOrderApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListFoldersOrderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderOrderModel: EntityListFolderOrderModel\n}\nexport type CreateEntityListItemApiResponse = /** status 201 Successful Response */ any\nexport type CreateEntityListItemApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPostModel: EntityListItemPostModel\n}\nexport type UpdateEntityListItemsApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemsApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListMultiPatchModel: EntityListMultiPatchModel\n}\nexport type DeleteEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPatchModel: EntityListItemPatchModel\n}\nexport type CreateEntityListApiResponse = /** status 201 Successful Response */ EntityListSummary\nexport type CreateEntityListApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPostModel: EntityListPostModel\n}\nexport type GetEntityListApiResponse = /** status 200 Successful Response */ EntityListModel\nexport type GetEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type DeleteEntityListApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type UpdateEntityListApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPatchModel: EntityListPatchModel\n}\nexport type MaterializeEntityListApiResponse =\n /** status 200 Successful Response */ EntityListSummary\nexport type MaterializeEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** List of project this item is available on */\n projects?: 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 EntityListAttributeDefinition = {\n name: string\n data: AttributeData\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityListEnities = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityIds: string[]\n}\nexport type EntityListFolderData = {\n /** Hex color code */\n color?: string\n /** Icon name */\n icon?: string\n /** Folder scope */\n scope?: string[]\n}\nexport type EntityListFolderModel = {\n id: string\n label: string\n parentId?: string\n position?: number\n owner?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFoldersResponseModel = {\n folders?: EntityListFolderModel[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type EntityListFolderPostModel = {\n id?: string\n label: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderPatchModel = {\n label?: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderOrderModel = {\n order: string[]\n}\nexport type EntityListItemPostModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchModel = {\n items?: EntityListMultiPatchItemModel[]\n /** The mode of the operation. `replace` will replace all items with the provided ones. `merge` will merge the provided items with the existing ones.`delete` will delete items with matching ids from the list. */\n mode?: 'replace' | 'merge' | 'delete'\n}\nexport type EntityListItemPatchModel = {\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListSummary = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n count?: number\n}\nexport type ListAccessLevel = 0 | 10 | 20 | 30\nexport type EntityListPostModel = {\n id?: string\n /** Type of the list */\n entityListType?: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: object\n template?: object\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n items?: EntityListItemPostModel[]\n}\nexport type EntityListItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n /** Path to the folder where the item is located */\n folderPath: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n}\nexport type EntityListModel = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: object\n template?: object\n /** List tags */\n tags?: string[]\n items?: EntityListItemModel[]\n /** Name of the user who created the list */\n owner?: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n /** Whether the list is active or not */\n active: boolean\n accessLevel?: ListAccessLevel\n}\nexport type EntityListPatchModel = {\n label?: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Additional data associated with the list */\n data?: object\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,kCAAmCA,EAAM,MAGvC,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,aACrE,EAAA,CACD,EACD,kCAAmCD,EAAM,SAGvC,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,cACnE,OAAQ,MACR,KAAMA,EAAS,OACjB,EAAA,CACD,EACD,gBAAiBD,EAAM,MAAyD,CAC9E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,WACrE,EAAA,CACD,EACD,qBAAsBD,EAAM,MAAmE,CAC7F,MAAQC,IAAc,CAAE,IAAK,iBAAiBA,EAAS,WAAW,oBAAqB,EAAA,CACxF,EACD,uBAAwBD,EAAM,SAG5B,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,qBAC1C,OAAQ,OACR,KAAMA,EAAS,0BACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,g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"}
|
|
1
|
+
{"version":3,"file":"entityLists.cjs.js","sources":["../../../../../src/api/generated/entityLists.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getEntityListAttributesDefinition: build.query<\n GetEntityListAttributesDefinitionApiResponse,\n GetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n }),\n }),\n setEntityListAttributesDefinition: build.mutation<\n SetEntityListAttributesDefinitionApiResponse,\n SetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getListEntities: build.query<GetListEntitiesApiResponse, GetListEntitiesApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/entities`,\n }),\n }),\n getEntityListFolders: build.query<GetEntityListFoldersApiResponse, GetEntityListFoldersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/entityListFolders` }),\n }),\n createEntityListFolder: build.mutation<\n CreateEntityListFolderApiResponse,\n CreateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders`,\n method: 'POST',\n body: queryArg.entityListFolderPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListFolder: build.mutation<\n DeleteEntityListFolderApiResponse,\n DeleteEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListFolder: build.mutation<\n UpdateEntityListFolderApiResponse,\n UpdateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'PATCH',\n body: queryArg.entityListFolderPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setEntityListFoldersOrder: build.mutation<\n SetEntityListFoldersOrderApiResponse,\n SetEntityListFoldersOrderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/order`,\n method: 'POST',\n body: queryArg.entityListFolderOrderModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityListItem: build.mutation<\n CreateEntityListItemApiResponse,\n CreateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'POST',\n body: queryArg.entityListItemPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItems: build.mutation<\n UpdateEntityListItemsApiResponse,\n UpdateEntityListItemsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'PATCH',\n body: queryArg.entityListMultiPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListItem: build.mutation<\n DeleteEntityListItemApiResponse,\n DeleteEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItem: build.mutation<\n UpdateEntityListItemApiResponse,\n UpdateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'PATCH',\n body: queryArg.entityListItemPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityList: build.mutation<CreateEntityListApiResponse, CreateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists`,\n method: 'POST',\n body: queryArg.entityListPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getEntityList: build.query<GetEntityListApiResponse, GetEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n }),\n }),\n deleteEntityList: build.mutation<DeleteEntityListApiResponse, DeleteEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'DELETE',\n }),\n }),\n updateEntityList: build.mutation<UpdateEntityListApiResponse, UpdateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'PATCH',\n body: queryArg.entityListPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n materializeEntityList: build.mutation<\n MaterializeEntityListApiResponse,\n MaterializeEntityListApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/materialize`,\n method: 'POST',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetEntityListAttributesDefinitionApiResponse =\n /** status 200 Successful Response */ EntityListAttributeDefinition[]\nexport type GetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n}\nexport type SetEntityListAttributesDefinitionApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n payload: EntityListAttributeDefinition[]\n}\nexport type GetListEntitiesApiResponse = /** status 200 Successful Response */ EntityListEnities\nexport type GetListEntitiesApiArg = {\n listId: string\n projectName: string\n}\nexport type GetEntityListFoldersApiResponse =\n /** status 200 Successful Response */ EntityListFoldersResponseModel\nexport type GetEntityListFoldersApiArg = {\n projectName: string\n}\nexport type CreateEntityListFolderApiResponse =\n /** status 200 Successful Response */ EntityIdResponse\nexport type CreateEntityListFolderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPostModel: EntityListFolderPostModel\n}\nexport type DeleteEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPatchModel: EntityListFolderPatchModel\n}\nexport type SetEntityListFoldersOrderApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListFoldersOrderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderOrderModel: EntityListFolderOrderModel\n}\nexport type CreateEntityListItemApiResponse = /** status 201 Successful Response */ any\nexport type CreateEntityListItemApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPostModel: EntityListItemPostModel\n}\nexport type UpdateEntityListItemsApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemsApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListMultiPatchModel: EntityListMultiPatchModel\n}\nexport type DeleteEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPatchModel: EntityListItemPatchModel\n}\nexport type CreateEntityListApiResponse = /** status 201 Successful Response */ EntityListSummary\nexport type CreateEntityListApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPostModel: EntityListPostModel\n}\nexport type GetEntityListApiResponse = /** status 200 Successful Response */ EntityListModel\nexport type GetEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type DeleteEntityListApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type UpdateEntityListApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPatchModel: EntityListPatchModel\n}\nexport type MaterializeEntityListApiResponse =\n /** status 200 Successful Response */ EntityListSummary\nexport type MaterializeEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** List of project this item is available on */\n projects?: 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 EntityListAttributeDefinition = {\n name: string\n data: AttributeData\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityListEnities = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityIds: string[]\n}\nexport type EntityListFolderData = {\n /** Hex color code */\n color?: string\n /** Icon name */\n icon?: string\n /** Folder scope */\n scope?: string[]\n}\nexport type EntityListFolderModel = {\n id: string\n label: string\n parentId?: string\n position?: number\n owner?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFoldersResponseModel = {\n folders?: EntityListFolderModel[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type EntityListFolderPostModel = {\n id?: string\n label: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderPatchModel = {\n label?: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderOrderModel = {\n order: string[]\n}\nexport type EntityListItemPostModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchModel = {\n items?: EntityListMultiPatchItemModel[]\n /** The mode of the operation. `replace` will replace all items with the provided ones. `merge` will merge the provided items with the existing ones.`delete` will delete items with matching ids from the list. */\n mode?: 'replace' | 'merge' | 'delete'\n}\nexport type EntityListItemPatchModel = {\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListSummary = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n count?: number\n}\nexport type ListAccessLevel = 0 | 10 | 20 | 30\nexport type EntityListPostModel = {\n id?: string\n /** Type of the list */\n entityListType?: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: Record<string, any>\n template?: object\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n items?: EntityListItemPostModel[]\n}\nexport type EntityListItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n /** Path to the folder where the item is located */\n folderPath: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n}\nexport type EntityListModel = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: Record<string, any>\n template?: object\n /** List tags */\n tags?: string[]\n items?: EntityListItemModel[]\n /** Name of the user who created the list */\n owner?: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n /** Whether the list is active or not */\n active: boolean\n accessLevel?: ListAccessLevel\n}\nexport type EntityListPatchModel = {\n label?: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Additional data associated with the list */\n data?: Record<string, any>\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,kCAAmCA,EAAM,MAGvC,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,aACrE,EAAA,CACD,EACD,kCAAmCD,EAAM,SAGvC,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,cACnE,OAAQ,MACR,KAAMA,EAAS,OACjB,EAAA,CACD,EACD,gBAAiBD,EAAM,MAAyD,CAC9E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,WACrE,EAAA,CACD,EACD,qBAAsBD,EAAM,MAAmE,CAC7F,MAAQC,IAAc,CAAE,IAAK,iBAAiBA,EAAS,WAAW,oBAAqB,EAAA,CACxF,EACD,uBAAwBD,EAAM,SAG5B,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,qBAC1C,OAAQ,OACR,KAAMA,EAAS,0BACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAA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{"version":3,"file":"entityLists.es.js","sources":["../../../../../src/api/generated/entityLists.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getEntityListAttributesDefinition: build.query<\n GetEntityListAttributesDefinitionApiResponse,\n GetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n }),\n }),\n setEntityListAttributesDefinition: build.mutation<\n SetEntityListAttributesDefinitionApiResponse,\n SetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getListEntities: build.query<GetListEntitiesApiResponse, GetListEntitiesApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/entities`,\n }),\n }),\n getEntityListFolders: build.query<GetEntityListFoldersApiResponse, GetEntityListFoldersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/entityListFolders` }),\n }),\n createEntityListFolder: build.mutation<\n CreateEntityListFolderApiResponse,\n CreateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders`,\n method: 'POST',\n body: queryArg.entityListFolderPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListFolder: build.mutation<\n DeleteEntityListFolderApiResponse,\n DeleteEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListFolder: build.mutation<\n UpdateEntityListFolderApiResponse,\n UpdateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'PATCH',\n body: queryArg.entityListFolderPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setEntityListFoldersOrder: build.mutation<\n SetEntityListFoldersOrderApiResponse,\n SetEntityListFoldersOrderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/order`,\n method: 'POST',\n body: queryArg.entityListFolderOrderModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityListItem: build.mutation<\n CreateEntityListItemApiResponse,\n CreateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'POST',\n body: queryArg.entityListItemPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItems: build.mutation<\n UpdateEntityListItemsApiResponse,\n UpdateEntityListItemsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'PATCH',\n body: queryArg.entityListMultiPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListItem: build.mutation<\n DeleteEntityListItemApiResponse,\n DeleteEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItem: build.mutation<\n UpdateEntityListItemApiResponse,\n UpdateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'PATCH',\n body: queryArg.entityListItemPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityList: build.mutation<CreateEntityListApiResponse, CreateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists`,\n method: 'POST',\n body: queryArg.entityListPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getEntityList: build.query<GetEntityListApiResponse, GetEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n }),\n }),\n deleteEntityList: build.mutation<DeleteEntityListApiResponse, DeleteEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'DELETE',\n }),\n }),\n updateEntityList: build.mutation<UpdateEntityListApiResponse, UpdateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'PATCH',\n body: queryArg.entityListPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n materializeEntityList: build.mutation<\n MaterializeEntityListApiResponse,\n MaterializeEntityListApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/materialize`,\n method: 'POST',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetEntityListAttributesDefinitionApiResponse =\n /** status 200 Successful Response */ EntityListAttributeDefinition[]\nexport type GetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n}\nexport type SetEntityListAttributesDefinitionApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n payload: EntityListAttributeDefinition[]\n}\nexport type GetListEntitiesApiResponse = /** status 200 Successful Response */ EntityListEnities\nexport type GetListEntitiesApiArg = {\n listId: string\n projectName: string\n}\nexport type GetEntityListFoldersApiResponse =\n /** status 200 Successful Response */ EntityListFoldersResponseModel\nexport type GetEntityListFoldersApiArg = {\n projectName: string\n}\nexport type CreateEntityListFolderApiResponse =\n /** status 200 Successful Response */ EntityIdResponse\nexport type CreateEntityListFolderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPostModel: EntityListFolderPostModel\n}\nexport type DeleteEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPatchModel: EntityListFolderPatchModel\n}\nexport type SetEntityListFoldersOrderApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListFoldersOrderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderOrderModel: EntityListFolderOrderModel\n}\nexport type CreateEntityListItemApiResponse = /** status 201 Successful Response */ any\nexport type CreateEntityListItemApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPostModel: EntityListItemPostModel\n}\nexport type UpdateEntityListItemsApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemsApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListMultiPatchModel: EntityListMultiPatchModel\n}\nexport type DeleteEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPatchModel: EntityListItemPatchModel\n}\nexport type CreateEntityListApiResponse = /** status 201 Successful Response */ EntityListSummary\nexport type CreateEntityListApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPostModel: EntityListPostModel\n}\nexport type GetEntityListApiResponse = /** status 200 Successful Response */ EntityListModel\nexport type GetEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type DeleteEntityListApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type UpdateEntityListApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPatchModel: EntityListPatchModel\n}\nexport type MaterializeEntityListApiResponse =\n /** status 200 Successful Response */ EntityListSummary\nexport type MaterializeEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** List of project this item is available on */\n projects?: 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 EntityListAttributeDefinition = {\n name: string\n data: AttributeData\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityListEnities = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityIds: string[]\n}\nexport type EntityListFolderData = {\n /** Hex color code */\n color?: string\n /** Icon name */\n icon?: string\n /** Folder scope */\n scope?: string[]\n}\nexport type EntityListFolderModel = {\n id: string\n label: string\n parentId?: string\n position?: number\n owner?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFoldersResponseModel = {\n folders?: EntityListFolderModel[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type EntityListFolderPostModel = {\n id?: string\n label: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderPatchModel = {\n label?: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderOrderModel = {\n order: string[]\n}\nexport type EntityListItemPostModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchModel = {\n items?: EntityListMultiPatchItemModel[]\n /** The mode of the operation. `replace` will replace all items with the provided ones. `merge` will merge the provided items with the existing ones.`delete` will delete items with matching ids from the list. */\n mode?: 'replace' | 'merge' | 'delete'\n}\nexport type EntityListItemPatchModel = {\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListSummary = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n count?: number\n}\nexport type ListAccessLevel = 0 | 10 | 20 | 30\nexport type EntityListPostModel = {\n id?: string\n /** Type of the list */\n entityListType?: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: object\n template?: object\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n items?: EntityListItemPostModel[]\n}\nexport type EntityListItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: object\n /** Tags associated with the item */\n tags?: string[]\n /** Path to the folder where the item is located */\n folderPath: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n}\nexport type EntityListModel = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: object\n template?: object\n /** List tags */\n tags?: string[]\n items?: EntityListItemModel[]\n /** Name of the user who created the list */\n owner?: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n /** Whether the list is active or not */\n active: boolean\n accessLevel?: ListAccessLevel\n}\nexport type EntityListPatchModel = {\n label?: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Additional data associated with the list */\n data?: object\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,mCAAmCA,EAAM,MAGvC;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,mCAAmCD,EAAM,SAGvC;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,MAAmE;AAAA,MAC7F,OAAO,CAACC,OAAc,EAAE,KAAK,iBAAiBA,EAAS,WAAW,qBAAqB;AAAA,IAAA,CACxF;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,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D;AAAA,MACxE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,uBAAuBD,EAAM,SAG3B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"entityLists.es.js","sources":["../../../../../src/api/generated/entityLists.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getEntityListAttributesDefinition: build.query<\n GetEntityListAttributesDefinitionApiResponse,\n GetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n }),\n }),\n setEntityListAttributesDefinition: build.mutation<\n SetEntityListAttributesDefinitionApiResponse,\n SetEntityListAttributesDefinitionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/attributes`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getListEntities: build.query<GetListEntitiesApiResponse, GetListEntitiesApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/entities`,\n }),\n }),\n getEntityListFolders: build.query<GetEntityListFoldersApiResponse, GetEntityListFoldersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/entityListFolders` }),\n }),\n createEntityListFolder: build.mutation<\n CreateEntityListFolderApiResponse,\n CreateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders`,\n method: 'POST',\n body: queryArg.entityListFolderPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListFolder: build.mutation<\n DeleteEntityListFolderApiResponse,\n DeleteEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListFolder: build.mutation<\n UpdateEntityListFolderApiResponse,\n UpdateEntityListFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/${queryArg.folderId}`,\n method: 'PATCH',\n body: queryArg.entityListFolderPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setEntityListFoldersOrder: build.mutation<\n SetEntityListFoldersOrderApiResponse,\n SetEntityListFoldersOrderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/entityListFolders/order`,\n method: 'POST',\n body: queryArg.entityListFolderOrderModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityListItem: build.mutation<\n CreateEntityListItemApiResponse,\n CreateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'POST',\n body: queryArg.entityListItemPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItems: build.mutation<\n UpdateEntityListItemsApiResponse,\n UpdateEntityListItemsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items`,\n method: 'PATCH',\n body: queryArg.entityListMultiPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityListItem: build.mutation<\n DeleteEntityListItemApiResponse,\n DeleteEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateEntityListItem: build.mutation<\n UpdateEntityListItemApiResponse,\n UpdateEntityListItemApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/items/${queryArg.listItemId}`,\n method: 'PATCH',\n body: queryArg.entityListItemPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createEntityList: build.mutation<CreateEntityListApiResponse, CreateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists`,\n method: 'POST',\n body: queryArg.entityListPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getEntityList: build.query<GetEntityListApiResponse, GetEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n }),\n }),\n deleteEntityList: build.mutation<DeleteEntityListApiResponse, DeleteEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'DELETE',\n }),\n }),\n updateEntityList: build.mutation<UpdateEntityListApiResponse, UpdateEntityListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}`,\n method: 'PATCH',\n body: queryArg.entityListPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n materializeEntityList: build.mutation<\n MaterializeEntityListApiResponse,\n MaterializeEntityListApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/lists/${queryArg.listId}/materialize`,\n method: 'POST',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetEntityListAttributesDefinitionApiResponse =\n /** status 200 Successful Response */ EntityListAttributeDefinition[]\nexport type GetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n}\nexport type SetEntityListAttributesDefinitionApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListAttributesDefinitionApiArg = {\n listId: string\n projectName: string\n payload: EntityListAttributeDefinition[]\n}\nexport type GetListEntitiesApiResponse = /** status 200 Successful Response */ EntityListEnities\nexport type GetListEntitiesApiArg = {\n listId: string\n projectName: string\n}\nexport type GetEntityListFoldersApiResponse =\n /** status 200 Successful Response */ EntityListFoldersResponseModel\nexport type GetEntityListFoldersApiArg = {\n projectName: string\n}\nexport type CreateEntityListFolderApiResponse =\n /** status 200 Successful Response */ EntityIdResponse\nexport type CreateEntityListFolderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPostModel: EntityListFolderPostModel\n}\nexport type DeleteEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListFolderApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderPatchModel: EntityListFolderPatchModel\n}\nexport type SetEntityListFoldersOrderApiResponse = /** status 200 Successful Response */ any\nexport type SetEntityListFoldersOrderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListFolderOrderModel: EntityListFolderOrderModel\n}\nexport type CreateEntityListItemApiResponse = /** status 201 Successful Response */ any\nexport type CreateEntityListItemApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPostModel: EntityListItemPostModel\n}\nexport type UpdateEntityListItemsApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemsApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListMultiPatchModel: EntityListMultiPatchModel\n}\nexport type DeleteEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateEntityListItemApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListItemApiArg = {\n listId: string\n listItemId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListItemPatchModel: EntityListItemPatchModel\n}\nexport type CreateEntityListApiResponse = /** status 201 Successful Response */ EntityListSummary\nexport type CreateEntityListApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPostModel: EntityListPostModel\n}\nexport type GetEntityListApiResponse = /** status 200 Successful Response */ EntityListModel\nexport type GetEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type DeleteEntityListApiResponse = /** status 200 Successful Response */ any\nexport type DeleteEntityListApiArg = {\n listId: string\n projectName: string\n}\nexport type UpdateEntityListApiResponse = /** status 200 Successful Response */ any\nexport type UpdateEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n entityListPatchModel: EntityListPatchModel\n}\nexport type MaterializeEntityListApiResponse =\n /** status 200 Successful Response */ EntityListSummary\nexport type MaterializeEntityListApiArg = {\n listId: string\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** List of project this item is available on */\n projects?: 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 EntityListAttributeDefinition = {\n name: string\n data: AttributeData\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityListEnities = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityIds: string[]\n}\nexport type EntityListFolderData = {\n /** Hex color code */\n color?: string\n /** Icon name */\n icon?: string\n /** Folder scope */\n scope?: string[]\n}\nexport type EntityListFolderModel = {\n id: string\n label: string\n parentId?: string\n position?: number\n owner?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFoldersResponseModel = {\n folders?: EntityListFolderModel[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type EntityListFolderPostModel = {\n id?: string\n label: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderPatchModel = {\n label?: string\n parentId?: string\n access?: {\n [key: string]: number\n }\n data?: EntityListFolderData\n}\nexport type EntityListFolderOrderModel = {\n order: string[]\n}\nexport type EntityListItemPostModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListMultiPatchModel = {\n items?: EntityListMultiPatchItemModel[]\n /** The mode of the operation. `replace` will replace all items with the provided ones. `merge` will merge the provided items with the existing ones.`delete` will delete items with matching ids from the list. */\n mode?: 'replace' | 'merge' | 'delete'\n}\nexport type EntityListItemPatchModel = {\n /** ID of the entity in the list */\n entityId?: string\n /** Position of the item in the list */\n position?: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n}\nexport type EntityListSummary = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n count?: number\n}\nexport type ListAccessLevel = 0 | 10 | 20 | 30\nexport type EntityListPostModel = {\n id?: string\n /** Type of the list */\n entityListType?: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: Record<string, any>\n template?: object\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n items?: EntityListItemPostModel[]\n}\nexport type EntityListItemModel = {\n id?: string\n /** ID of the entity in the list */\n entityId: string\n /** Position of the item in the list */\n position: number\n /** Label of the item */\n label?: string\n /** Overrides of the listed entity attributes */\n attrib?: object\n /** Additional data associated with the item */\n data?: Record<string, any>\n /** Tags associated with the item */\n tags?: string[]\n /** Path to the folder where the item is located */\n folderPath: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n}\nexport type EntityListModel = {\n id?: string\n /** Type of the list */\n entityListType: string\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Type of the entity that can be included in the list */\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n label: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** Additional data associated with the list */\n data?: Record<string, any>\n template?: object\n /** List tags */\n tags?: string[]\n items?: EntityListItemModel[]\n /** Name of the user who created the list */\n owner?: string\n createdBy?: string\n updatedBy?: string\n createdAt?: string\n updatedAt?: string\n /** Whether the list is active or not */\n active: boolean\n accessLevel?: ListAccessLevel\n}\nexport type EntityListPatchModel = {\n label?: string\n /** Access control for the list. Can be specified for users or teams. */\n access?: {\n [key: string]: ListAccessLevel\n }\n /** List attributes */\n attrib?: object\n /** ID of the folder containing the list */\n entityListFolderId?: string\n /** Additional data associated with the list */\n data?: Record<string, any>\n /** List tags */\n tags?: string[]\n /** Name of the user who created the list */\n owner?: string\n /** Whether the list is active or not */\n active?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,mCAAmCA,EAAM,MAGvC;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,mCAAmCD,EAAM,SAGvC;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,MAAmE;AAAA,MAC7F,OAAO,CAACC,OAAc,EAAE,KAAK,iBAAiBA,EAAS,WAAW,qBAAqB;AAAA,IAAA,CACxF;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,sBAAsBA,EA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A,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,uBAAuBD,EAAM,SAG3B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.cjs.js","sources":["../../../../../src/api/generated/folders.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getFolder: build.query<GetFolderApiResponse, GetFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}`,\n }),\n }),\n deleteFolder: build.mutation<DeleteFolderApiResponse, DeleteFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n params: {\n force: queryArg.force,\n },\n }),\n }),\n updateFolder: build.mutation<UpdateFolderApiResponse, UpdateFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}`,\n method: 'PATCH',\n body: queryArg.folderPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getFolderList: build.query<GetFolderListApiResponse, GetFolderListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders`,\n params: {\n attrib: queryArg.attrib,\n },\n }),\n }),\n createFolder: build.mutation<CreateFolderApiResponse, CreateFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders`,\n method: 'POST',\n body: queryArg.folderPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getFolderHierarchy: build.query<GetFolderHierarchyApiResponse, GetFolderHierarchyApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/hierarchy`,\n params: {\n search: queryArg.search,\n types: queryArg.types,\n },\n }),\n }),\n getFolderThumbnail: build.query<GetFolderThumbnailApiResponse, GetFolderThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createFolderThumbnail: build.mutation<\n CreateFolderThumbnailApiResponse,\n CreateFolderThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}/thumbnail`,\n method: 'POST',\n headers: {\n 'content-type': queryArg['content-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetFolderApiResponse = /** status 200 Successful Response */ FolderModel\nexport type GetFolderApiArg = {\n projectName: string\n folderId: string\n}\nexport type DeleteFolderApiResponse = unknown\nexport type DeleteFolderApiArg = {\n projectName: string\n folderId: string\n /** Allow recursive deletion */\n force?: boolean\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateFolderApiResponse = unknown\nexport type UpdateFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n folderPatchModel: FolderPatchModel\n}\nexport type GetFolderListApiResponse = /** status 200 Successful Response */ FolderListModel\nexport type GetFolderListApiArg = {\n projectName: string\n /** Include folder attributes */\n attrib?: boolean\n}\nexport type CreateFolderApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateFolderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n folderPostModel: FolderPostModel\n}\nexport type GetFolderHierarchyApiResponse =\n /** status 200 Successful Response */ HierarchyResponseModel\nexport type GetFolderHierarchyApiArg = {\n projectName: string\n /** Full-text search query used to limit the result */\n search?: string\n /** Comma separated list of folder_types to show */\n types?: string\n}\nexport type GetFolderThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetFolderThumbnailApiArg = {\n projectName: string\n folderId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateFolderThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateFolderThumbnailApiArg = {\n projectName: string\n folderId: string\n 'content-type'?: string\n}\nexport type FolderAttribModel = {\n priority?: 'urgent' | 'high' | 'normal' | 'low'\n /** Frame rate */\n fps?: number\n /** Horizontal resolution */\n resolutionWidth?: number\n /** Vertical resolution */\n resolutionHeight?: number\n pixelAspect?: number\n clipIn?: number\n clipOut?: number\n frameStart?: number\n frameEnd?: number\n handleStart?: number\n handleEnd?: number\n /** Date and time when the project or task or asset was started */\n startDate?: string\n /** Deadline date and time */\n endDate?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type FolderModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n name: string\n label?: string\n folderType?: string\n /** Parent folder ID in the hierarchy */\n parentId?: string\n thumbnailId?: string\n path?: string\n attrib?: FolderAttribModel\n data?: Record<string, any>\n /** Whether the folder is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the folder */\n status?: string\n /** Tags assigned to the the folder */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: 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 FolderPatchModel = {\n name?: string\n label?: string\n folderType?: string\n /** Parent folder ID in the hierarchy */\n parentId?: string\n thumbnailId?: string\n /** Status of the folder */\n status?: string\n /** Tags assigned to the the folder */\n tags?: string[]\n attrib?: FolderAttribModel\n data?: Record<string, any>\n /** Whether the folder is active */\n active?: boolean\n}\nexport type FolderListItem = {\n id: string\n path: string\n parentId?: string\n parents: string[]\n name: string\n label?: string\n folderType: string\n hasTasks?: boolean\n hasChildren?: boolean\n hasReviewables?: boolean\n taskNames?: string[]\n tags?: string[]\n status: string\n attrib?: object\n ownAttrib?: string[]\n
|
|
1
|
+
{"version":3,"file":"folders.cjs.js","sources":["../../../../../src/api/generated/folders.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getFolder: build.query<GetFolderApiResponse, GetFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}`,\n }),\n }),\n deleteFolder: build.mutation<DeleteFolderApiResponse, DeleteFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n params: {\n force: queryArg.force,\n },\n }),\n }),\n updateFolder: build.mutation<UpdateFolderApiResponse, UpdateFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}`,\n method: 'PATCH',\n body: queryArg.folderPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getFolderList: build.query<GetFolderListApiResponse, GetFolderListApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders`,\n params: {\n attrib: queryArg.attrib,\n },\n }),\n }),\n createFolder: build.mutation<CreateFolderApiResponse, CreateFolderApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders`,\n method: 'POST',\n body: queryArg.folderPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getFolderHierarchy: build.query<GetFolderHierarchyApiResponse, GetFolderHierarchyApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/hierarchy`,\n params: {\n search: queryArg.search,\n types: queryArg.types,\n },\n }),\n }),\n getFolderThumbnail: build.query<GetFolderThumbnailApiResponse, GetFolderThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createFolderThumbnail: build.mutation<\n CreateFolderThumbnailApiResponse,\n CreateFolderThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/folders/${queryArg.folderId}/thumbnail`,\n method: 'POST',\n headers: {\n 'content-type': queryArg['content-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetFolderApiResponse = /** status 200 Successful Response */ FolderModel\nexport type GetFolderApiArg = {\n projectName: string\n folderId: string\n}\nexport type DeleteFolderApiResponse = unknown\nexport type DeleteFolderApiArg = {\n projectName: string\n folderId: string\n /** Allow recursive deletion */\n force?: boolean\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateFolderApiResponse = unknown\nexport type UpdateFolderApiArg = {\n projectName: string\n folderId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n folderPatchModel: FolderPatchModel\n}\nexport type GetFolderListApiResponse = /** status 200 Successful Response */ FolderListModel\nexport type GetFolderListApiArg = {\n projectName: string\n /** Include folder attributes */\n attrib?: boolean\n}\nexport type CreateFolderApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateFolderApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n folderPostModel: FolderPostModel\n}\nexport type GetFolderHierarchyApiResponse =\n /** status 200 Successful Response */ HierarchyResponseModel\nexport type GetFolderHierarchyApiArg = {\n projectName: string\n /** Full-text search query used to limit the result */\n search?: string\n /** Comma separated list of folder_types to show */\n types?: string\n}\nexport type GetFolderThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetFolderThumbnailApiArg = {\n projectName: string\n folderId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateFolderThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateFolderThumbnailApiArg = {\n projectName: string\n folderId: string\n 'content-type'?: string\n}\nexport type FolderAttribModel = {\n priority?: 'urgent' | 'high' | 'normal' | 'low'\n /** Frame rate */\n fps?: number\n /** Horizontal resolution */\n resolutionWidth?: number\n /** Vertical resolution */\n resolutionHeight?: number\n pixelAspect?: number\n clipIn?: number\n clipOut?: number\n frameStart?: number\n frameEnd?: number\n handleStart?: number\n handleEnd?: number\n /** Date and time when the project or task or asset was started */\n startDate?: string\n /** Deadline date and time */\n endDate?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type FolderModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n name: string\n label?: string\n folderType?: string\n /** Parent folder ID in the hierarchy */\n parentId?: string\n thumbnailId?: string\n path?: string\n hasVersions?: boolean\n attrib?: FolderAttribModel\n data?: Record<string, any>\n /** Whether the folder is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the folder */\n status?: string\n /** Tags assigned to the the folder */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: 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 FolderPatchModel = {\n name?: string\n label?: string\n folderType?: string\n /** Parent folder ID in the hierarchy */\n parentId?: string\n thumbnailId?: string\n /** Status of the folder */\n status?: string\n /** Tags assigned to the the folder */\n tags?: string[]\n attrib?: FolderAttribModel\n data?: Record<string, any>\n /** Whether the folder is active */\n active?: boolean\n}\nexport type FolderListItem = {\n id: string\n path: string\n parentId?: string\n parents: string[]\n name: string\n label?: string\n folderType: string\n hasTasks?: boolean\n hasChildren?: boolean\n hasReviewables?: boolean\n taskNames?: string[]\n tags?: string[]\n status: string\n attrib?: object\n ownAttrib?: string[]\n createdAt: string\n updatedAt: string\n}\nexport type FolderListModel = {\n detail: string\n folders: FolderListItem[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type FolderPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n name: string\n label?: string\n folderType?: string\n /** Parent folder ID in the hierarchy */\n parentId?: string\n thumbnailId?: string\n /** Status of the folder */\n status?: string\n /** Tags assigned to the the folder */\n tags?: string[]\n attrib?: FolderAttribModel\n data?: Record<string, any>\n /** Whether the folder is active */\n active?: boolean\n}\nexport type HierarchyFolderModel = {\n /** Folder ID */\n id: string\n name: string\n label: string\n status: string\n folderType?: string\n hasTasks: boolean\n taskNames: string[]\n parents: string[]\n parentId?: string\n children?: HierarchyFolderModel[]\n}\nexport type HierarchyResponseModel = {\n detail: string\n projectName: string\n hierarchy: HierarchyFolderModel[]\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,YAAYA,EAAS,QAAQ,EACzE,EAAA,CACD,EACD,aAAcD,EAAM,SAAsD,CACxE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,YAAYA,EAAS,QAAQ,GAC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