@ynput/ayon-frontend-shared 0.2.31 → 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.
Files changed (154) hide show
  1. package/dist/_virtual/index.cjs10.js +1 -1
  2. package/dist/_virtual/index.cjs5.js +1 -1
  3. package/dist/_virtual/index.cjs6.js +1 -1
  4. package/dist/_virtual/index.cjs8.js +1 -1
  5. package/dist/_virtual/index.cjs9.js +1 -1
  6. package/dist/_virtual/index.es10.js +5 -5
  7. package/dist/_virtual/index.es5.js +5 -2
  8. package/dist/_virtual/index.es5.js.map +1 -1
  9. package/dist/_virtual/index.es6.js +2 -5
  10. package/dist/_virtual/index.es6.js.map +1 -1
  11. package/dist/_virtual/index.es8.js +3 -3
  12. package/dist/_virtual/index.es9.js +5 -5
  13. package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +1 -1
  14. package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js.map +1 -1
  15. package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
  16. package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js +1 -1
  17. package/dist/node_modules/rehype/node_modules/vfile/lib/index.es.js +1 -1
  18. package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
  19. package/dist/node_modules/rehype-parse/lib/index.cjs.js.map +1 -1
  20. package/dist/node_modules/rehype-parse/lib/index.es.js +1 -1
  21. package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
  22. package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
  23. package/dist/node_modules/remove-accents/index.cjs.js +1 -1
  24. package/dist/node_modules/remove-accents/index.es.js +1 -1
  25. package/dist/shared/src/api/generated/access.cjs.js.map +1 -1
  26. package/dist/shared/src/api/generated/access.es.js.map +1 -1
  27. package/dist/shared/src/api/generated/authentication.cjs.js +1 -1
  28. package/dist/shared/src/api/generated/authentication.cjs.js.map +1 -1
  29. package/dist/shared/src/api/generated/authentication.es.js +9 -6
  30. package/dist/shared/src/api/generated/authentication.es.js.map +1 -1
  31. package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
  32. package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
  33. package/dist/shared/src/api/generated/folders.cjs.js.map +1 -1
  34. package/dist/shared/src/api/generated/folders.es.js.map +1 -1
  35. package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
  36. package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
  37. package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
  38. package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
  39. package/dist/shared/src/api/generated/links.cjs.js +1 -1
  40. package/dist/shared/src/api/generated/links.cjs.js.map +1 -1
  41. package/dist/shared/src/api/generated/links.es.js +13 -5
  42. package/dist/shared/src/api/generated/links.es.js.map +1 -1
  43. package/dist/shared/src/api/generated/onboarding.cjs.js.map +1 -1
  44. package/dist/shared/src/api/generated/onboarding.es.js.map +1 -1
  45. package/dist/shared/src/api/generated/operations.cjs.js +1 -1
  46. package/dist/shared/src/api/generated/operations.cjs.js.map +1 -1
  47. package/dist/shared/src/api/generated/operations.es.js +16 -0
  48. package/dist/shared/src/api/generated/operations.es.js.map +1 -1
  49. package/dist/shared/src/api/generated/products.cjs.js +1 -1
  50. package/dist/shared/src/api/generated/products.cjs.js.map +1 -1
  51. package/dist/shared/src/api/generated/products.es.js +6 -3
  52. package/dist/shared/src/api/generated/products.es.js.map +1 -1
  53. package/dist/shared/src/api/generated/projects.cjs.js +1 -1
  54. package/dist/shared/src/api/generated/projects.cjs.js.map +1 -1
  55. package/dist/shared/src/api/generated/projects.es.js +19 -0
  56. package/dist/shared/src/api/generated/projects.es.js.map +1 -1
  57. package/dist/shared/src/api/generated/system.cjs.js.map +1 -1
  58. package/dist/shared/src/api/generated/system.es.js.map +1 -1
  59. package/dist/shared/src/api/generated/tasks.cjs.js.map +1 -1
  60. package/dist/shared/src/api/generated/tasks.es.js.map +1 -1
  61. package/dist/shared/src/api/generated/users.cjs.js.map +1 -1
  62. package/dist/shared/src/api/generated/users.es.js.map +1 -1
  63. package/dist/shared/src/api/generated/versions.cjs.js.map +1 -1
  64. package/dist/shared/src/api/generated/versions.es.js.map +1 -1
  65. package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
  66. package/dist/shared/src/api/generated/views.es.js.map +1 -1
  67. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js +1 -1
  68. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js.map +1 -1
  69. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js +15 -10
  70. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js.map +1 -1
  71. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js +60 -0
  72. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js.map +1 -0
  73. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js +332 -0
  74. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js.map +1 -0
  75. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js +4 -4
  76. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js.map +1 -1
  77. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js +37 -33
  78. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js.map +1 -1
  79. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js +3 -5
  80. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js.map +1 -1
  81. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js +4 -6
  82. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js.map +1 -1
  83. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js +1 -2
  84. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js.map +1 -1
  85. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js +0 -1
  86. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js.map +1 -1
  87. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
  88. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
  89. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +555 -537
  90. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
  91. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +0 -1
  92. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
  93. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +4 -5
  94. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
  95. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  96. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  97. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +92 -91
  98. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  99. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.cjs.js.map +1 -1
  100. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.es.js.map +1 -1
  101. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +1 -1
  102. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js.map +1 -1
  103. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +126 -108
  104. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js.map +1 -1
  105. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js +2 -0
  106. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js.map +1 -0
  107. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js +9 -0
  108. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js.map +1 -0
  109. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
  110. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
  111. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +49 -48
  112. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
  113. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +38 -9
  114. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
  115. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +74 -39
  116. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
  117. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +24 -15
  118. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
  119. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +71 -59
  120. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
  121. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js +6 -6
  122. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js.map +1 -1
  123. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js +12 -12
  124. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js.map +1 -1
  125. package/dist/shared/src/util/columnConfigConverter.cjs.js +1 -1
  126. package/dist/shared/src/util/columnConfigConverter.cjs.js.map +1 -1
  127. package/dist/shared/src/util/columnConfigConverter.es.js +35 -33
  128. package/dist/shared/src/util/columnConfigConverter.es.js.map +1 -1
  129. package/dist/types/api/generated/access.d.ts +6 -0
  130. package/dist/types/api/generated/authentication.d.ts +6 -0
  131. package/dist/types/api/generated/entityLists.d.ts +7 -7
  132. package/dist/types/api/generated/folders.d.ts +2 -2
  133. package/dist/types/api/generated/graphql.d.ts +3 -1
  134. package/dist/types/api/generated/graphqlLinks.d.ts +21 -15
  135. package/dist/types/api/generated/links.d.ts +4 -0
  136. package/dist/types/api/generated/onboarding.d.ts +3 -0
  137. package/dist/types/api/generated/operations.d.ts +22 -1
  138. package/dist/types/api/generated/products.d.ts +23 -0
  139. package/dist/types/api/generated/projects.d.ts +63 -0
  140. package/dist/types/api/generated/representations.d.ts +1 -0
  141. package/dist/types/api/generated/system.d.ts +9 -2
  142. package/dist/types/api/generated/tasks.d.ts +1 -0
  143. package/dist/types/api/generated/users.d.ts +1 -1
  144. package/dist/types/api/generated/versions.d.ts +1 -0
  145. package/dist/types/api/generated/views.d.ts +50 -9
  146. package/dist/types/api/queries/authentication/getAuthentication.d.ts +1 -0
  147. package/dist/types/api/queries/overview/updateOverview.d.ts +2 -0
  148. package/dist/types/api/queries/project/getProject.d.ts +4 -0
  149. package/dist/types/components/ProjectTableSettings/RowHeightSettings.d.ts +3 -0
  150. package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +4 -0
  151. package/dist/types/containers/ProjectTreeTable/hooks/useDynamicRowHeight.d.ts +11 -0
  152. package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +2 -1
  153. package/dist/types/containers/ProjectTreeTable/widgets/EnumCellValue.d.ts +2 -1
  154. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"projects.es.js","sources":["../../../../../src/api/generated/projects.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n deleteProjectActivity: build.mutation<\n DeleteProjectActivityApiResponse,\n DeleteProjectActivityApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/activities/${queryArg.activityId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectFile: build.query<GetProjectFileApiResponse, GetProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n }),\n }),\n deleteProjectFile: build.mutation<DeleteProjectFileApiResponse, DeleteProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'DELETE',\n }),\n }),\n getProjectFileHead: build.mutation<GetProjectFileHeadApiResponse, GetProjectFileHeadApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'HEAD',\n }),\n }),\n getProjectFileInfo: build.query<GetProjectFileInfoApiResponse, GetProjectFileInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/info`,\n }),\n }),\n getProjectFilePayload: build.query<\n GetProjectFilePayloadApiResponse,\n GetProjectFilePayloadApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/payload`,\n }),\n }),\n getProjectFileThumbnail: build.query<\n GetProjectFileThumbnailApiResponse,\n GetProjectFileThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/thumbnail`,\n }),\n }),\n getProjectFileStill: build.query<GetProjectFileStillApiResponse, GetProjectFileStillApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/still`,\n params: {\n t: queryArg.t,\n },\n }),\n }),\n getProjectEntityCounts: build.query<\n GetProjectEntityCountsApiResponse,\n GetProjectEntityCountsApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/entities` }),\n }),\n getProjectHealth: build.query<GetProjectHealthApiResponse, GetProjectHealthApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/health` }),\n }),\n getProjectActivity: build.query<GetProjectActivityApiResponse, GetProjectActivityApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/dashboard/activity`,\n params: {\n days: queryArg.days,\n },\n }),\n }),\n getProjectTeams: build.query<GetProjectTeamsApiResponse, GetProjectTeamsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/users` }),\n }),\n getProjectAnatomy: build.query<GetProjectAnatomyApiResponse, GetProjectAnatomyApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/anatomy` }),\n }),\n setProjectAnatomy: build.mutation<SetProjectAnatomyApiResponse, SetProjectAnatomyApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/anatomy`,\n method: 'POST',\n body: queryArg.anatomy,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setProjectBundle: build.mutation<SetProjectBundleApiResponse, SetProjectBundleApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/bundles`,\n method: 'POST',\n body: queryArg.projectBundleModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n listProjects: build.query<ListProjectsApiResponse, ListProjectsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n params: {\n page: queryArg.page,\n length: queryArg.length,\n library: queryArg.library,\n active: queryArg.active,\n order: queryArg.order,\n desc: queryArg.desc,\n name: queryArg.name,\n },\n }),\n }),\n deployProject: build.mutation<DeployProjectApiResponse, DeployProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n method: 'POST',\n body: queryArg.deployProjectRequestModel,\n }),\n }),\n getProject: build.query<GetProjectApiResponse, GetProjectApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}` }),\n }),\n createProject: build.mutation<CreateProjectApiResponse, CreateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.projectPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteProject: build.mutation<DeleteProjectApiResponse, DeleteProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProject: build.mutation<UpdateProjectApiResponse, UpdateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PATCH',\n body: queryArg.projectPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectStats: build.query<GetProjectStatsApiResponse, GetProjectStatsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/stats` }),\n }),\n getProjectRootsOverrides: build.query<\n GetProjectRootsOverridesApiResponse,\n GetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/roots` }),\n }),\n setProjectRootsOverrides: build.mutation<\n SetProjectRootsOverridesApiResponse,\n SetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/roots/${queryArg.siteId}`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getProjectSiteRoots: build.query<GetProjectSiteRootsApiResponse, GetProjectSiteRootsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/siteRoots`,\n headers: {\n 'x-ayon-site-id': queryArg['x-ayon-site-id'],\n },\n params: {\n platform: queryArg.platform,\n },\n }),\n }),\n getProjectTags: build.query<GetProjectTagsApiResponse, GetProjectTagsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/tags` }),\n }),\n getProjectUsers: build.query<GetProjectUsersApiResponse, GetProjectUsersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/users` }),\n }),\n updateProjectUser: build.mutation<UpdateProjectUserApiResponse, UpdateProjectUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.accessGroups,\n }),\n }),\n getProjectEntityUris: build.mutation<\n GetProjectEntityUrisApiResponse,\n GetProjectEntityUrisApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/uris`,\n method: 'POST',\n body: queryArg.getUrisRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type DeleteProjectActivityApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectActivityApiArg = {\n projectName: string\n activityId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type GetProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type DeleteProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileHeadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileHeadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileInfoApiResponse = /** status 200 Successful Response */ FileInfo\nexport type GetProjectFileInfoApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFilePayloadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFilePayloadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileThumbnailApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileStillApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileStillApiArg = {\n projectName: string\n fileId: string\n t?: number\n}\nexport type GetProjectEntityCountsApiResponse = /** status 200 Successful Response */ EntityCounts\nexport type GetProjectEntityCountsApiArg = {\n projectName: string\n}\nexport type GetProjectHealthApiResponse = /** status 200 Successful Response */ Health\nexport type GetProjectHealthApiArg = {\n projectName: string\n}\nexport type GetProjectActivityApiResponse =\n /** status 200 Successful Response */ ActivityResponseModel\nexport type GetProjectActivityApiArg = {\n projectName: string\n /** Number of days to retrieve activity for */\n days?: number\n}\nexport type GetProjectTeamsApiResponse =\n /** status 200 Successful Response */ ProjectTeamsResponseModel\nexport type GetProjectTeamsApiArg = {\n projectName: string\n}\nexport type GetProjectAnatomyApiResponse = /** status 200 Successful Response */ Anatomy\nexport type GetProjectAnatomyApiArg = {\n projectName: string\n}\nexport type SetProjectAnatomyApiResponse = unknown\nexport type SetProjectAnatomyApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n anatomy: Anatomy\n}\nexport type SetProjectBundleApiResponse = unknown\nexport type SetProjectBundleApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectBundleModel: ProjectBundleModel\n}\nexport type ListProjectsApiResponse =\n /** status 200 Successful Response */ ListProjectsResponseModel\nexport type ListProjectsApiArg = {\n page?: number\n /** If not provided, the result will not be limited */\n length?: number\n /** If not provided, return projects regardless the flag */\n library?: boolean\n /** If not provided, return projects regardless the flag */\n active?: boolean\n order?: 'name' | 'createdAt' | 'updatedAt'\n desc?: boolean\n /** Limit the result to project with the matching name,\n or its part. % character may be used as a wildcard */\n name?: string\n}\nexport type DeployProjectApiResponse = /** status 201 Successful Response */ any\nexport type DeployProjectApiArg = {\n deployProjectRequestModel: DeployProjectRequestModel\n}\nexport type GetProjectApiResponse = /** status 200 Successful Response */ ProjectModel\nexport type GetProjectApiArg = {\n projectName: string\n}\nexport type CreateProjectApiResponse = /** status 201 Successful Response */ any\nexport type CreateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPostModel: ProjectPostModel\n}\nexport type DeleteProjectApiResponse = unknown\nexport type DeleteProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProjectApiResponse = unknown\nexport type UpdateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPatchModel: ProjectPatchModel\n}\nexport type GetProjectStatsApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectStatsApiArg = {\n projectName: string\n}\nexport type GetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ {\n [key: string]: {\n [key: string]: string\n }\n}\nexport type GetProjectRootsOverridesApiArg = {\n projectName: string\n}\nexport type SetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectRootsOverridesApiArg = {\n siteId: string\n projectName: string\n payload: {\n [key: string]: string\n }\n}\nexport type GetProjectSiteRootsApiResponse = /** status 200 Successful Response */ {\n [key: string]: string\n}\nexport type GetProjectSiteRootsApiArg = {\n projectName: string\n platform?: 'windows' | 'linux' | 'darwin'\n /** Site ID may be specified either as a query parameter (`site_id` or `site`) or in a header. */\n 'x-ayon-site-id'?: string\n}\nexport type GetProjectTagsApiResponse = /** status 200 Successful Response */ ProjectTagsModel\nexport type GetProjectTagsApiArg = {\n projectName: string\n}\nexport type GetProjectUsersApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type GetProjectUsersApiArg = {\n projectName: string\n}\nexport type UpdateProjectUserApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type UpdateProjectUserApiArg = {\n projectName: string\n userName: string\n accessGroups: string[]\n}\nexport type GetProjectEntityUrisApiResponse = /** status 200 Successful Response */ GetUrisResponse\nexport type GetProjectEntityUrisApiArg = {\n projectName: string\n getUrisRequest: GetUrisRequest\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type FileInfo = {\n size: number\n filename?: string\n contentType?: string\n}\nexport type EntityCounts = {\n /** Number of folders */\n folders: number\n /** Number of products */\n products: number\n /** Number of versions */\n versions: number\n /** Number of representations */\n representations: number\n /** Number of tasks */\n tasks: number\n /** Number of workfiles */\n workfiles: number\n}\nexport type HealthCompletion = {\n /** Percentage of tasks completed */\n percentage: number\n /** Number of days tasks are not completed after due date */\n behind: number\n /** Number of days tasks are completed before due date */\n ahead: number\n}\nexport type HealthStorageUsage = {\n /** Storage quota */\n quota: number\n /** Storage used */\n used: number\n}\nexport type HealthTasks = {\n /** Total number of tasks */\n total: number\n /** Number of completed tasks */\n completed: number\n /** Number of overdue tasks */\n overdue: number\n}\nexport type Health = {\n /** Task completion */\n completion: HealthCompletion\n /** Storage usage */\n storageUsage: HealthStorageUsage\n /** Task statistics */\n tasks: HealthTasks\n /** Task status statistics */\n statuses: {\n [key: string]: number\n }\n}\nexport type ActivityResponseModel = {\n /** Activity per day normalized to 0-100 */\n activity: number[]\n}\nexport type ProjectTeamsResponseModel = {\n /** Number of active team members */\n teamSizeActive?: number\n /** Total number of team members */\n teamSizeTotal?: number\n /** Number of active users */\n usersWithAccessActive?: number\n /** Total number of users */\n usersWithAccessTotal?: number\n /** Number of users per role */\n roles: {\n [key: string]: number\n }\n}\nexport type EntityNaming = {\n /** How to capitalize the entity names */\n capitalization?: 'lower' | 'upper' | 'keep' | 'pascal' | 'camel'\n /** Character to separate different parts of the name */\n separator?: '' | '_' | '-' | '.'\n}\nexport type Root = {\n name: string\n windows?: string\n linux?: string\n darwin?: string\n}\nexport type WorkTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type PublishTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type HeroTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type DeliveryTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type StagingDirectory = {\n name: string\n directory?: string\n}\nexport type CustomTemplate = {\n name: string\n value?: string\n}\nexport type Templates = {\n version_padding?: number\n version?: string\n frame_padding?: number\n frame?: string\n work?: WorkTemplate[]\n publish?: PublishTemplate[]\n hero?: HeroTemplate[]\n delivery?: DeliveryTemplate[]\n staging?: StagingDirectory[]\n others?: CustomTemplate[]\n}\nexport type ProjectAttribModel = {\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 FolderType = {\n name: string\n original_name?: string\n shortName?: string\n icon?: string\n}\nexport type TaskType = {\n name: string\n original_name?: string\n shortName?: string\n color?: string\n icon?: string\n}\nexport type LinkType = {\n link_type: string\n input_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n output_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n color?: string\n style?: 'solid' | 'dashed'\n}\nexport type Status = {\n name: string\n original_name?: string\n shortName?: string\n state?: 'not_started' | 'in_progress' | 'done' | 'blocked'\n icon?: string\n color?: string\n /** Limit the status to specific entity types. */\n scope?: string[]\n}\nexport type Tag = {\n name: string\n original_name?: string\n color?: string\n}\nexport type Anatomy = {\n /** Settings for automatic entity name generation */\n entity_naming?: EntityNaming\n /** Setup root paths for the project */\n roots?: Root[]\n /** Path templates configuration */\n templates?: Templates\n /** Attributes configuration */\n attributes?: ProjectAttribModel\n /** Folder types configuration */\n folder_types?: FolderType[]\n /** Task types configuration */\n task_types?: TaskType[]\n /** Link types configuration */\n link_types?: LinkType[]\n /** Statuses configuration */\n statuses?: Status[]\n /** Tags configuration */\n tags?: Tag[]\n}\nexport type ProjectBundleModel = {\n production?: string\n staging?: string\n}\nexport type ListProjectsItemModel = {\n name: string\n code: string\n active: boolean\n createdAt: string\n updatedAt: string\n}\nexport type ListProjectsResponseModel = {\n detail?: string\n /** Total count of projects (regardless the pagination) */\n count?: number\n /** List of projects */\n projects?: ListProjectsItemModel[]\n}\nexport type DeployProjectRequestModel = {\n /** Project name */\n name: string\n /** Project code */\n code: string\n /** Project anatomy */\n anatomy: Anatomy\n /** Library project */\n library?: boolean\n /** Assign default users to the project */\n assignUsers?: boolean\n}\nexport type LinkTypeModel = {\n /** Name of the link type */\n name: string\n /** Type of the link */\n linkType: string\n /** Input entity type */\n inputType: string\n /** Output entity type */\n outputType: string\n /** Additional link type data */\n data?: Record<string, any>\n}\nexport type ProjectAttribModel2 = {\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 ProjectModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project 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 ProjectPostModel = {\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectPatchModel = {\n code?: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectTagsModel = {\n folders?: string[]\n tasks?: string[]\n products?: string[]\n versions?: string[]\n representations?: string[]\n workfiles?: string[]\n}\nexport type UriResponseItem = {\n id: string\n uri: string\n}\nexport type GetUrisResponse = {\n uris?: UriResponseItem[]\n}\nexport type GetUrisRequest = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n ids?: string[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,uBAAuBA,EAAM,SAG3B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,eAAeA,EAAS,UAAU;AAAA,QAC5E,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,oBAAoBD,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,oBAAoBD,EAAM,MAA+D;AAAA,MACvF,OAAO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,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,SAAS;AAAA,UACP,kBAAkBA,EAAS,gBAAgB;AAAA,QAC7C;AAAA,QACA,QAAQ;AAAA,UACN,UAAUA,EAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc,EAAE,KAAK,iBAAiBA,EAAS,WAAW,QAAQ;AAAA,IAAA,CAC3E;AAAA,IACD,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc,EAAE,KAAK,iBAAiBA,EAAS,WAAW,SAAS;AAAA,IAAA,CAC5E;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,QAAQ;AAAA,QACrE,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,SAG1B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"projects.es.js","sources":["../../../../../src/api/generated/projects.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n deleteProjectActivity: build.mutation<\n DeleteProjectActivityApiResponse,\n DeleteProjectActivityApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/activities/${queryArg.activityId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectFile: build.query<GetProjectFileApiResponse, GetProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n }),\n }),\n deleteProjectFile: build.mutation<DeleteProjectFileApiResponse, DeleteProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'DELETE',\n }),\n }),\n getProjectFileHead: build.mutation<GetProjectFileHeadApiResponse, GetProjectFileHeadApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'HEAD',\n }),\n }),\n getProjectFileInfo: build.query<GetProjectFileInfoApiResponse, GetProjectFileInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/info`,\n }),\n }),\n getProjectFilePayload: build.query<\n GetProjectFilePayloadApiResponse,\n GetProjectFilePayloadApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/payload`,\n }),\n }),\n getProjectFileThumbnail: build.query<\n GetProjectFileThumbnailApiResponse,\n GetProjectFileThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/thumbnail`,\n }),\n }),\n getProjectFileStill: build.query<GetProjectFileStillApiResponse, GetProjectFileStillApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/still`,\n params: {\n t: queryArg.t,\n },\n }),\n }),\n getProjectEntityCounts: build.query<\n GetProjectEntityCountsApiResponse,\n GetProjectEntityCountsApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/entities` }),\n }),\n getProjectHealth: build.query<GetProjectHealthApiResponse, GetProjectHealthApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/health` }),\n }),\n getProjectActivity: build.query<GetProjectActivityApiResponse, GetProjectActivityApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/dashboard/activity`,\n params: {\n days: queryArg.days,\n },\n }),\n }),\n getProjectTeams: build.query<GetProjectTeamsApiResponse, GetProjectTeamsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/users` }),\n }),\n getProjectAnatomy: build.query<GetProjectAnatomyApiResponse, GetProjectAnatomyApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/anatomy` }),\n }),\n setProjectAnatomy: build.mutation<SetProjectAnatomyApiResponse, SetProjectAnatomyApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/anatomy`,\n method: 'POST',\n body: queryArg.anatomy,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setProjectBundle: build.mutation<SetProjectBundleApiResponse, SetProjectBundleApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/bundles`,\n method: 'POST',\n body: queryArg.projectBundleModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n listProjects: build.query<ListProjectsApiResponse, ListProjectsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n params: {\n page: queryArg.page,\n length: queryArg.length,\n library: queryArg.library,\n active: queryArg.active,\n order: queryArg.order,\n desc: queryArg.desc,\n name: queryArg.name,\n },\n }),\n }),\n deployProject: build.mutation<DeployProjectApiResponse, DeployProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n method: 'POST',\n body: queryArg.deployProjectRequestModel,\n }),\n }),\n listGuestUsers: build.query<ListGuestUsersApiResponse, ListGuestUsersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/guests` }),\n }),\n addGuestUser: build.mutation<AddGuestUserApiResponse, AddGuestUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/guests`,\n method: 'POST',\n body: queryArg.addGuestUserModel,\n }),\n }),\n removeGuestUser: build.mutation<RemoveGuestUserApiResponse, RemoveGuestUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/guests/${queryArg.email}`,\n method: 'DELETE',\n }),\n }),\n getProductTypes: build.query<GetProductTypesApiResponse, GetProductTypesApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/productTypes` }),\n }),\n getProject: build.query<GetProjectApiResponse, GetProjectApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}` }),\n }),\n createProject: build.mutation<CreateProjectApiResponse, CreateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.projectPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteProject: build.mutation<DeleteProjectApiResponse, DeleteProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProject: build.mutation<UpdateProjectApiResponse, UpdateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PATCH',\n body: queryArg.projectPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectStats: build.query<GetProjectStatsApiResponse, GetProjectStatsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/stats` }),\n }),\n getProjectRootsOverrides: build.query<\n GetProjectRootsOverridesApiResponse,\n GetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/roots` }),\n }),\n setProjectRootsOverrides: build.mutation<\n SetProjectRootsOverridesApiResponse,\n SetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/roots/${queryArg.siteId}`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getProjectSiteRoots: build.query<GetProjectSiteRootsApiResponse, GetProjectSiteRootsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/siteRoots`,\n headers: {\n 'x-ayon-site-id': queryArg['x-ayon-site-id'],\n },\n params: {\n platform: queryArg.platform,\n },\n }),\n }),\n getProjectTags: build.query<GetProjectTagsApiResponse, GetProjectTagsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/tags` }),\n }),\n getProjectUsers: build.query<GetProjectUsersApiResponse, GetProjectUsersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/users` }),\n }),\n updateProjectUser: build.mutation<UpdateProjectUserApiResponse, UpdateProjectUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.accessGroups,\n }),\n }),\n getProjectEntityUris: build.mutation<\n GetProjectEntityUrisApiResponse,\n GetProjectEntityUrisApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/uris`,\n method: 'POST',\n body: queryArg.getUrisRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type DeleteProjectActivityApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectActivityApiArg = {\n projectName: string\n activityId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type GetProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type DeleteProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileHeadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileHeadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileInfoApiResponse = /** status 200 Successful Response */ FileInfo\nexport type GetProjectFileInfoApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFilePayloadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFilePayloadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileThumbnailApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileStillApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileStillApiArg = {\n projectName: string\n fileId: string\n t?: number\n}\nexport type GetProjectEntityCountsApiResponse = /** status 200 Successful Response */ EntityCounts\nexport type GetProjectEntityCountsApiArg = {\n projectName: string\n}\nexport type GetProjectHealthApiResponse = /** status 200 Successful Response */ Health\nexport type GetProjectHealthApiArg = {\n projectName: string\n}\nexport type GetProjectActivityApiResponse =\n /** status 200 Successful Response */ ActivityResponseModel\nexport type GetProjectActivityApiArg = {\n projectName: string\n /** Number of days to retrieve activity for */\n days?: number\n}\nexport type GetProjectTeamsApiResponse =\n /** status 200 Successful Response */ ProjectTeamsResponseModel\nexport type GetProjectTeamsApiArg = {\n projectName: string\n}\nexport type GetProjectAnatomyApiResponse = /** status 200 Successful Response */ Anatomy\nexport type GetProjectAnatomyApiArg = {\n projectName: string\n}\nexport type SetProjectAnatomyApiResponse = unknown\nexport type SetProjectAnatomyApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n anatomy: Anatomy\n}\nexport type SetProjectBundleApiResponse = unknown\nexport type SetProjectBundleApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectBundleModel: ProjectBundleModel\n}\nexport type ListProjectsApiResponse =\n /** status 200 Successful Response */ ListProjectsResponseModel\nexport type ListProjectsApiArg = {\n page?: number\n /** If not provided, the result will not be limited */\n length?: number\n /** If not provided, return projects regardless the flag */\n library?: boolean\n /** If not provided, return projects regardless the flag */\n active?: boolean\n order?: 'name' | 'createdAt' | 'updatedAt'\n desc?: boolean\n /** Limit the result to project with the matching name,\n or its part. % character may be used as a wildcard */\n name?: string\n}\nexport type DeployProjectApiResponse = /** status 201 Successful Response */ any\nexport type DeployProjectApiArg = {\n deployProjectRequestModel: DeployProjectRequestModel\n}\nexport type ListGuestUsersApiResponse = /** status 200 Successful Response */ GuestUsersListModel\nexport type ListGuestUsersApiArg = {\n projectName: string\n}\nexport type AddGuestUserApiResponse = /** status 200 Successful Response */ any\nexport type AddGuestUserApiArg = {\n projectName: string\n addGuestUserModel: AddGuestUserModel\n}\nexport type RemoveGuestUserApiResponse = /** status 200 Successful Response */ any\nexport type RemoveGuestUserApiArg = {\n email: string\n projectName: string\n}\nexport type GetProductTypesApiResponse = /** status 200 Successful Response */ ProductTypesList\nexport type GetProductTypesApiArg = {\n projectName: string\n}\nexport type GetProjectApiResponse = /** status 200 Successful Response */ ProjectModel\nexport type GetProjectApiArg = {\n projectName: string\n}\nexport type CreateProjectApiResponse = /** status 201 Successful Response */ any\nexport type CreateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPostModel: ProjectPostModel\n}\nexport type DeleteProjectApiResponse = unknown\nexport type DeleteProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProjectApiResponse = unknown\nexport type UpdateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPatchModel: ProjectPatchModel\n}\nexport type GetProjectStatsApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectStatsApiArg = {\n projectName: string\n}\nexport type GetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ {\n [key: string]: {\n [key: string]: string\n }\n}\nexport type GetProjectRootsOverridesApiArg = {\n projectName: string\n}\nexport type SetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectRootsOverridesApiArg = {\n siteId: string\n projectName: string\n payload: {\n [key: string]: string\n }\n}\nexport type GetProjectSiteRootsApiResponse = /** status 200 Successful Response */ {\n [key: string]: string\n}\nexport type GetProjectSiteRootsApiArg = {\n projectName: string\n platform?: 'windows' | 'linux' | 'darwin'\n /** Site ID may be specified either as a query parameter (`site_id` or `site`) or in a header. */\n 'x-ayon-site-id'?: string\n}\nexport type GetProjectTagsApiResponse = /** status 200 Successful Response */ ProjectTagsModel\nexport type GetProjectTagsApiArg = {\n projectName: string\n}\nexport type GetProjectUsersApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type GetProjectUsersApiArg = {\n projectName: string\n}\nexport type UpdateProjectUserApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type UpdateProjectUserApiArg = {\n projectName: string\n userName: string\n accessGroups: string[]\n}\nexport type GetProjectEntityUrisApiResponse = /** status 200 Successful Response */ GetUrisResponse\nexport type GetProjectEntityUrisApiArg = {\n projectName: string\n getUrisRequest: GetUrisRequest\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type FileInfo = {\n size: number\n filename?: string\n contentType?: string\n}\nexport type EntityCounts = {\n /** Number of folders */\n folders: number\n /** Number of products */\n products: number\n /** Number of versions */\n versions: number\n /** Number of representations */\n representations: number\n /** Number of tasks */\n tasks: number\n /** Number of workfiles */\n workfiles: number\n}\nexport type HealthCompletion = {\n /** Percentage of tasks completed */\n percentage: number\n /** Number of days tasks are not completed after due date */\n behind: number\n /** Number of days tasks are completed before due date */\n ahead: number\n}\nexport type HealthStorageUsage = {\n /** Storage quota */\n quota: number\n /** Storage used */\n used: number\n}\nexport type HealthTasks = {\n /** Total number of tasks */\n total: number\n /** Number of completed tasks */\n completed: number\n /** Number of overdue tasks */\n overdue: number\n}\nexport type Health = {\n /** Task completion */\n completion: HealthCompletion\n /** Storage usage */\n storageUsage: HealthStorageUsage\n /** Task statistics */\n tasks: HealthTasks\n /** Task status statistics */\n statuses: {\n [key: string]: number\n }\n}\nexport type ActivityResponseModel = {\n /** Activity per day normalized to 0-100 */\n activity: number[]\n}\nexport type ProjectTeamsResponseModel = {\n /** Number of active team members */\n teamSizeActive?: number\n /** Total number of team members */\n teamSizeTotal?: number\n /** Number of active users */\n usersWithAccessActive?: number\n /** Total number of users */\n usersWithAccessTotal?: number\n /** Number of users per role */\n roles: {\n [key: string]: number\n }\n}\nexport type EntityNaming = {\n /** How to capitalize the entity names */\n capitalization?: 'lower' | 'upper' | 'keep' | 'pascal' | 'camel'\n /** Character to separate different parts of the name */\n separator?: '' | '_' | '-' | '.'\n}\nexport type Root = {\n name: string\n windows?: string\n linux?: string\n darwin?: string\n}\nexport type WorkTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type PublishTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type HeroTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type DeliveryTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type StagingDirectory = {\n name: string\n directory?: string\n}\nexport type CustomTemplate = {\n name: string\n value?: string\n}\nexport type Templates = {\n version_padding?: number\n version?: string\n frame_padding?: number\n frame?: string\n work?: WorkTemplate[]\n publish?: PublishTemplate[]\n hero?: HeroTemplate[]\n delivery?: DeliveryTemplate[]\n staging?: StagingDirectory[]\n others?: CustomTemplate[]\n}\nexport type ProjectAttribModel = {\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 FolderType = {\n name: string\n original_name?: string\n shortName?: string\n icon?: string\n}\nexport type TaskType = {\n name: string\n original_name?: string\n shortName?: string\n color?: string\n icon?: string\n}\nexport type LinkType = {\n link_type: string\n input_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n output_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n color?: string\n style?: 'solid' | 'dashed'\n}\nexport type Status = {\n name: string\n original_name?: string\n shortName?: string\n state?: 'not_started' | 'in_progress' | 'done' | 'blocked'\n icon?: string\n color?: string\n /** Limit the status to specific entity types. */\n scope?: string[]\n}\nexport type Tag = {\n name: string\n original_name?: string\n color?: string\n}\nexport type DefaultProductBaseType = {\n color?: string\n icon?: string\n}\nexport type ProductBaseType = {\n name?: string\n color?: string\n icon?: string\n}\nexport type ProductBaseTypes = {\n /** Default appearance for product types */\n default?: DefaultProductBaseType\n definitions?: ProductBaseType[]\n}\nexport type Anatomy = {\n /** Settings for automatic entity name generation */\n entity_naming?: EntityNaming\n /** Setup root paths for the project */\n roots?: Root[]\n /** Path templates configuration */\n templates?: Templates\n /** Attributes configuration */\n attributes?: ProjectAttribModel\n /** Folder types configuration */\n folder_types?: FolderType[]\n /** Task types configuration */\n task_types?: TaskType[]\n /** Link types configuration */\n link_types?: LinkType[]\n /** Statuses configuration */\n statuses?: Status[]\n /** Tags configuration */\n tags?: Tag[]\n product_base_types?: ProductBaseTypes\n}\nexport type ProjectBundleModel = {\n production?: string\n staging?: string\n}\nexport type ListProjectsItemModel = {\n name: string\n code: string\n active: boolean\n createdAt: string\n updatedAt: string\n}\nexport type ListProjectsResponseModel = {\n detail?: string\n /** Total count of projects (regardless the pagination) */\n count?: number\n /** List of projects */\n projects?: ListProjectsItemModel[]\n}\nexport type DeployProjectRequestModel = {\n /** Project name */\n name: string\n /** Project code */\n code: string\n /** Project anatomy */\n anatomy: Anatomy\n /** Library project */\n library?: boolean\n /** Assign default users to the project */\n assignUsers?: boolean\n}\nexport type GuestUserModel = {\n email: string\n fullName?: string\n status?: 'pending' | 'active'\n}\nexport type GuestUsersListModel = {\n users?: GuestUserModel[]\n}\nexport type AddGuestUserModel = {\n email: string\n fullName?: string\n}\nexport type ProductTypeListItem = {\n name: string\n baseType?: string\n color?: string\n icon?: string\n}\nexport type DefaultProductType = {\n color: string\n icon: string\n}\nexport type ProductTypesList = {\n productTypes?: ProductTypeListItem[]\n default: DefaultProductType\n}\nexport type LinkTypeModel = {\n /** Name of the link type */\n name: string\n /** Type of the link */\n linkType: string\n /** Input entity type */\n inputType: string\n /** Output entity type */\n outputType: string\n /** Additional link type data */\n data?: Record<string, any>\n}\nexport type ProjectAttribModel2 = {\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 ProjectModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project 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 ProjectPostModel = {\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectPatchModel = {\n code?: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectTagsModel = {\n folders?: string[]\n tasks?: string[]\n products?: string[]\n versions?: string[]\n representations?: string[]\n workfiles?: string[]\n}\nexport type UriResponseItem = {\n id: string\n uri: string\n}\nexport type GetUrisResponse = {\n uris?: UriResponseItem[]\n}\nexport type GetUrisRequest = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n ids?: string[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,uBAAuBA,EAAM,SAG3B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,eAAeA,EAAS,UAAU;AAAA,QAC5E,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,oBAAoBD,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,oBAAoBD,EAAM,MAA+D;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,u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WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"system.cjs.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** 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 AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n | 'list'\n )[]\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n data: AttributeData\n}\nexport type SsoOption = {\n name: string\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n /** If set, the changelog will not be shown to the user */\n disableChangelog?: boolean\n /** Password authentication will not be shown on the login page */\n hidePasswordAuth?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,oBAAqBA,EAAM,MAAiE,CAC1F,MAAO,KAAO,CAAE,IAAK,sBAAuB,EAAA,CAC7C,EACD,SAAUA,EAAM,MAA2C,CACzD,MAAQC,IAAc,CACpB,IAAK,oBACL,OAAQ,CACN,SAAUA,EAAS,SACnB,SAAUA,EAAS,QAAA,CAEvB,EAAA,CACD,EACD,YAAaD,EAAM,MAAiD,CAClE,MAAQC,IAAc,CACpB,IAAK,YACL,OAAQ,CACN,KAAMA,EAAS,IAAA,CAEnB,EAAA,CACD,EACD,qBAAsBD,EAAM,MAAmE,CAC7F,MAAQC,IAAc,CACpB,IAAK,eACL,OAAQ,CACN,OAAQA,EAAS,OACjB,UAAWA,EAAS,SAAA,CAExB,EAAA,CACD,EACD,iBAAkBD,EAAM,MAA2D,CACjF,MAAO,KAAO,CAAE,IAAK,qBAAsB,EAAA,CAC5C,EACD,iBAAkBA,EAAM,MAA2D,CACjF,MAAO,KAAO,CAAE,IAAK,cAAe,EAAA,CACrC,EACD,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CAAE,IAAK,gBAAgBA,EAAS,UAAU,EAAG,EAAA,CACpE,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,gBAAgBA,EAAS,UAAU,GACxC,OAAQ,MACR,KAAMA,EAAS,MACjB,EAAA,CACD,EACD,aAAcD,EAAM,SAAsD,CACxE,MAAQC,IAAc,CAAE,IAAK,gBAAgBA,EAAS,UAAU,GAAI,OAAQ,QAAS,EAAA,CACtF,EACD,qBAAsBD,EAAM,SAG1B,CACA,MAAO,KAAO,CAAE,IAAK,sBAAuB,OAAQ,MAAO,EAAA,CAC5D,EACD,mBAAoBA,EAAM,MAA+D,CACvF,MAAO,KAAO,CAAE,IAAK,6BAA8B,EAAA,CACpD,EACD,mBAAoBA,EAAM,SAAkE,CAC1F,MAAQC,IAAc,CACpB,IAAK,8BACL,OAAQ,OACR,KAAMA,EAAS,oBACjB,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"system.cjs.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** 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 AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n | 'list'\n )[]\n data: AttributeData\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n}\nexport type SsoOption = {\n /** Unique name of the SSO provider */\n name: string\n /** If True, the provider will not be shown in the UI */\n hidden?: boolean\n /** Nice human-readable title of the provider */\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n /** If set, the changelog will not be shown to the user */\n disableChangelog?: boolean\n /** Password authentication will not be shown on the login page */\n hidePasswordAuth?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n dependencyPackages?: {\n [key: string]: string\n }\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,oBAAqBA,EAAM,MAAiE,CAC1F,MAAO,KAAO,CAAE,IAAK,sBAAuB,EAAA,CAC7C,EACD,SAAUA,EAAM,MAA2C,CACzD,MAAQC,IAAc,CACpB,IAAK,oBACL,OAAQ,CACN,SAAUA,EAAS,SACnB,SAAUA,EAAS,QAAA,CAEvB,EAAA,CACD,EACD,YAAaD,EAAM,MAAiD,CAClE,MAAQC,IAAc,CACpB,IAAK,YACL,OAAQ,CACN,KAAMA,EAAS,IAAA,CAEnB,EAAA,CACD,EACD,qBAAsBD,EAAM,MAAmE,CAC7F,MAAQC,IAAc,CACpB,IAAK,eACL,OAAQ,CACN,OAAQA,EAAS,OACjB,UAAWA,EAAS,SAAA,CAExB,EAAA,CACD,EACD,iBAAkBD,EAAM,MAA2D,CACjF,MAAO,KAAO,CAAE,IAAK,qBAAsB,EAAA,CAC5C,EACD,iBAAkBA,EAAM,MAA2D,CACjF,MAAO,KAAO,CAAE,IAAK,cAAe,EAAA,CACrC,EACD,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CAAE,IAAK,gBAAgBA,EAAS,UAAU,EAAG,EAAA,CACpE,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,gBAAgBA,EAAS,UAAU,GACxC,OAAQ,MACR,KAAMA,EAAS,MACjB,EAAA,CACD,EACD,aAAcD,EAAM,SAAsD,CACxE,MAAQC,IAAc,CAAE,IAAK,gBAAgBA,EAAS,UAAU,GAAI,OAAQ,QAAS,EAAA,CACtF,EACD,qBAAsBD,EAAM,SAG1B,CACA,MAAO,KAAO,CAAE,IAAK,sBAAuB,OAAQ,MAAO,EAAA,CAC5D,EACD,mBAAoBA,EAAM,MAA+D,CACvF,MAAO,KAAO,CAAE,IAAK,6BAA8B,EAAA,CACpD,EACD,mBAAoBA,EAAM,SAAkE,CAC1F,MAAQC,IAAc,CACpB,IAAK,8BACL,OAAQ,OACR,KAAMA,EAAS,oBACjB,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"system.es.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** 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 AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n | 'list'\n )[]\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n data: AttributeData\n}\nexport type SsoOption = {\n name: string\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n /** If set, the changelog will not be shown to the user */\n disableChangelog?: boolean\n /** Password authentication will not be shown on the login page */\n hidePasswordAuth?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,qBAAqBA,EAAM,MAAiE;AAAA,MAC1F,OAAO,OAAO,EAAE,KAAK,uBAAuB;AAAA,IAAA,CAC7C;AAAA,IACD,UAAUA,EAAM,MAA2C;AAAA,MACzD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,UAAUA,EAAS;AAAA,UACnB,UAAUA,EAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,aAAaD,EAAM,MAAiD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,MAAMA,EAAS;AAAA,QAAA;AAAA,MAEnB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,MAAmE;AAAA,MAC7F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,QAAQA,EAAS;AAAA,UACjB,WAAWA,EAAS;AAAA,QAAA;AAAA,MAExB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,sBAAsB;AAAA,IAAA,CAC5C;AAAA,IACD,kBAAkBA,EAAM,MAA2D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,eAAe;AAAA,IAAA,CACrC;AAAA,IACD,WAAWA,EAAM,MAA6C;AAAA,MAC5D,OAAO,CAACC,OAAc,EAAE,KAAK,gBAAgBA,EAAS,UAAU,GAAG;AAAA,IAAA,CACpE;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,gBAAgBA,EAAS,UAAU;AAAA,QACxC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,cAAcD,EAAM,SAAsD;AAAA,MACxE,OAAO,CAACC,OAAc,EAAE,KAAK,gBAAgBA,EAAS,UAAU,IAAI,QAAQ,SAAS;AAAA,IAAA,CACtF;AAAA,IACD,sBAAsBD,EAAM,SAG1B;AAAA,MACA,OAAO,OAAO,EAAE,KAAK,uBAAuB,QAAQ,OAAO;AAAA,IAAA,CAC5D;AAAA,IACD,oBAAoBA,EAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,8BAA8B;AAAA,IAAA,CACpD;AAAA,IACD,oBAAoBA,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"system.es.js","sources":["../../../../../src/api/generated/system.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listFrontendModules: build.query<ListFrontendModulesApiResponse, ListFrontendModulesApiArg>({\n query: () => ({ url: `/api/frontendModules` }),\n }),\n getSites: build.query<GetSitesApiResponse, GetSitesApiArg>({\n query: (queryArg) => ({\n url: `/api/system/sites`,\n params: {\n platform: queryArg.platform,\n hostname: queryArg.hostname,\n },\n }),\n }),\n getSiteInfo: build.query<GetSiteInfoApiResponse, GetSiteInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/info`,\n params: {\n full: queryArg.full,\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n getSystemMetrics: build.query<GetSystemMetricsApiResponse, GetSystemMetricsApiArg>({\n query: () => ({ url: `/api/metrics/system` }),\n }),\n getListOfSecrets: build.query<GetListOfSecretsApiResponse, GetListOfSecretsApiArg>({\n query: () => ({ url: `/api/secrets` }),\n }),\n getSecret: build.query<GetSecretApiResponse, GetSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}` }),\n }),\n saveSecret: build.mutation<SaveSecretApiResponse, SaveSecretApiArg>({\n query: (queryArg) => ({\n url: `/api/secrets/${queryArg.secretName}`,\n method: 'PUT',\n body: queryArg.secret,\n }),\n }),\n deleteSecret: build.mutation<DeleteSecretApiResponse, DeleteSecretApiArg>({\n query: (queryArg) => ({ url: `/api/secrets/${queryArg.secretName}`, method: 'DELETE' }),\n }),\n requestServerRestart: build.mutation<\n RequestServerRestartApiResponse,\n RequestServerRestartApiArg\n >({\n query: () => ({ url: `/api/system/restart`, method: 'POST' }),\n }),\n getRestartRequired: build.query<GetRestartRequiredApiResponse, GetRestartRequiredApiArg>({\n query: () => ({ url: `/api/system/restartRequired` }),\n }),\n setRestartRequired: build.mutation<SetRestartRequiredApiResponse, SetRestartRequiredApiArg>({\n query: (queryArg) => ({\n url: `/api/system/restartRequired`,\n method: 'POST',\n body: queryArg.restartRequiredModel,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListFrontendModulesApiResponse =\n /** status 200 Successful Response */ FrontendModuleListItem[]\nexport type ListFrontendModulesApiArg = void\nexport type GetSitesApiResponse = /** status 200 Successful Response */ SiteInfo[]\nexport type GetSitesApiArg = {\n platform?: 'windows' | 'linux' | 'darwin'\n hostname?: string\n}\nexport type GetSiteInfoApiResponse = /** status 200 Successful Response */ InfoResponseModel\nexport type GetSiteInfoApiArg = {\n /** Include frontend-related information */\n full?: boolean\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type GetSystemMetricsApiResponse = /** status 200 Successful Response */ any\nexport type GetSystemMetricsApiArg = void\nexport type GetListOfSecretsApiResponse = /** status 200 Successful Response */ Secret[]\nexport type GetListOfSecretsApiArg = void\nexport type GetSecretApiResponse = /** status 200 Successful Response */ Secret\nexport type GetSecretApiArg = {\n secretName: string\n}\nexport type SaveSecretApiResponse = unknown\nexport type SaveSecretApiArg = {\n secretName: string\n secret: Secret\n}\nexport type DeleteSecretApiResponse = unknown\nexport type DeleteSecretApiArg = {\n secretName: string\n}\nexport type RequestServerRestartApiResponse = unknown\nexport type RequestServerRestartApiArg = void\nexport type GetRestartRequiredApiResponse =\n /** status 200 Successful Response */ RestartRequiredModel\nexport type GetRestartRequiredApiArg = void\nexport type SetRestartRequiredApiResponse = /** status 200 Successful Response */ any\nexport type SetRestartRequiredApiArg = {\n restartRequiredModel: RestartRequiredModel\n}\nexport type FrontendModuleListItem = {\n addonName: string\n addonVersion: string\n modules: {\n [key: string]: string[]\n }\n}\nexport type SiteInfo = {\n id: string\n platform: 'windows' | 'linux' | 'darwin'\n hostname: string\n version: string\n users: string[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type AttributeEnumItem = {\n value: string | number | number | boolean\n label: string\n icon?: string\n color?: string\n /** 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 AttributeModel = {\n name: string\n /** Default order */\n position: number\n /** List of entity types the attribute is available on */\n scope?: (\n | ('folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile')\n | ('project' | 'user')\n | 'list'\n )[]\n data: AttributeData\n /** Is attribute builtin. Built-in attributes cannot be removed. */\n builtin?: boolean\n}\nexport type SsoOption = {\n /** Unique name of the SSO provider */\n name: string\n /** If True, the provider will not be shown in the UI */\n hidden?: boolean\n /** Nice human-readable title of the provider */\n title?: string\n icon?: string\n color?: string\n textColor?: string\n redirectKey?: string\n url: string\n args?: {\n [key: string]: string\n }\n callback: string\n}\nexport type InfoResponseModel = {\n /** Instance specific message to be displayed in the login page */\n motd?: string\n /** URL of the background image for the login page */\n loginPageBackground?: string\n /** URL of the brand logo for the login page */\n loginPageBrand?: string\n /** Information about the current release */\n releaseInfo?: ReleaseInfo\n /** Version of the Ayon API */\n version?: string\n /** Time (seconds) since the server was started */\n uptime?: number\n /** No admin user exists, display 'Create admin user' form */\n noAdminUser?: boolean\n onboarding?: boolean\n /** If set, the changelog will not be shown to the user */\n disableChangelog?: boolean\n /** Password authentication will not be shown on the login page */\n hidePasswordAuth?: boolean\n passwordRecoveryAvailable?: boolean\n user?: UserModel\n attributes?: AttributeModel[]\n sites?: SiteInfo[]\n ssoOptions?: SsoOption[]\n extras?: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n dependencyPackages?: {\n [key: string]: string\n }\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\nexport type Secret = {\n name?: string\n value?: string\n}\nexport type RestartRequiredModel = {\n /** Whether the server requires a restart */\n required: boolean\n /** The reason for the restart */\n reason?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,qBAAqBA,EAAM,MAAiE;AAAA,MAC1F,OAAO,OAAO,EAAE,KAAK,uBAAuB;AAAA,IAAA,CAC7C;AAAA,IACD,UAAUA,EAAM,MAA2C;AAAA,MACzD,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,IACD,oBAAoBA,EAAM,MAA+D;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,8BAA8B;AAAA,IAAA,CACpD;AAAA,IACD,oBAAoBA,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.cjs.js","sources":["../../../../../src/api/generated/tasks.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getTask: build.query<GetTaskApiResponse, GetTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n }),\n }),\n deleteTask: build.mutation<DeleteTaskApiResponse, DeleteTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateTask: build.mutation<UpdateTaskApiResponse, UpdateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'PATCH',\n body: queryArg.taskPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createTask: build.mutation<CreateTaskApiResponse, CreateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks`,\n method: 'POST',\n body: queryArg.taskPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n assignUsersToTask: build.mutation<AssignUsersToTaskApiResponse, AssignUsersToTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/assign`,\n method: 'POST',\n body: queryArg.assignUsersRequestModel,\n }),\n }),\n queryTasksFolders: build.mutation<QueryTasksFoldersApiResponse, QueryTasksFoldersApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasksFolders`,\n method: 'POST',\n body: queryArg.tasksFoldersQuery,\n }),\n }),\n getTaskThumbnail: build.query<GetTaskThumbnailApiResponse, GetTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createTaskThumbnail: build.mutation<CreateTaskThumbnailApiResponse, CreateTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/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 GetTaskApiResponse = /** status 200 Successful Response */ TaskModel\nexport type GetTaskApiArg = {\n projectName: string\n taskId: string\n}\nexport type DeleteTaskApiResponse = unknown\nexport type DeleteTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateTaskApiResponse = unknown\nexport type UpdateTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPatchModel: TaskPatchModel\n}\nexport type CreateTaskApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateTaskApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPostModel: TaskPostModel\n}\nexport type AssignUsersToTaskApiResponse = unknown\nexport type AssignUsersToTaskApiArg = {\n projectName: string\n taskId: string\n assignUsersRequestModel: AssignUsersRequestModel\n}\nexport type QueryTasksFoldersApiResponse =\n /** status 200 Successful Response */ TasksFoldersResponse\nexport type QueryTasksFoldersApiArg = {\n projectName: string\n tasksFoldersQuery: TasksFoldersQuery\n}\nexport type GetTaskThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateTaskThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n 'content-type'?: string\n}\nexport type TaskAttribModel = {\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 TaskModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\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 TaskPatchModel = {\n name?: string\n label?: string\n taskType?: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type TaskPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type AssignUsersRequestModel = {\n /** What to do with the list of users */\n mode: 'add' | 'remove' | 'set'\n /** List of user names */\n users: string[]\n}\nexport type TasksFoldersResponse = {\n /** List of folder ids containing tasks matching the query */\n folderIds?: string[]\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type TasksFoldersQuery = {\n /** Filter object used to resolve the tasks */\n filter?: QueryFilter\n /** 'fulltext' search used to resolve the tasks */\n search?: string\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,QAASA,EAAM,MAAyC,CACtD,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,EACrE,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,GACnE,OAAQ,SACR,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,GACnE,OAAQ,QACR,KAAMA,EAAS,eACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,SAC1C,OAAQ,OACR,KAAMA,EAAS,cACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,UACnE,OAAQ,OACR,KAAMA,EAAS,uBACjB,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,gBAC1C,OAAQ,OACR,KAAMA,EAAS,iBACjB,EAAA,CACD,EACD,iBAAkBD,EAAM,MAA2D,CACjF,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,aACnE,OAAQ,CACN,YAAaA,EAAS,YACtB,SAAUA,EAAS,QAAA,CAEvB,EAAA,CACD,EACD,oBAAqBD,EAAM,SAAoE,CAC7F,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,aACnE,OAAQ,OACR,QAAS,CACP,eAAgBA,EAAS,cAAc,CAAA,CAE3C,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"tasks.cjs.js","sources":["../../../../../src/api/generated/tasks.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getTask: build.query<GetTaskApiResponse, GetTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n }),\n }),\n deleteTask: build.mutation<DeleteTaskApiResponse, DeleteTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateTask: build.mutation<UpdateTaskApiResponse, UpdateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'PATCH',\n body: queryArg.taskPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createTask: build.mutation<CreateTaskApiResponse, CreateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks`,\n method: 'POST',\n body: queryArg.taskPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n assignUsersToTask: build.mutation<AssignUsersToTaskApiResponse, AssignUsersToTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/assign`,\n method: 'POST',\n body: queryArg.assignUsersRequestModel,\n }),\n }),\n queryTasksFolders: build.mutation<QueryTasksFoldersApiResponse, QueryTasksFoldersApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasksFolders`,\n method: 'POST',\n body: queryArg.tasksFoldersQuery,\n }),\n }),\n getTaskThumbnail: build.query<GetTaskThumbnailApiResponse, GetTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createTaskThumbnail: build.mutation<CreateTaskThumbnailApiResponse, CreateTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/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 GetTaskApiResponse = /** status 200 Successful Response */ TaskModel\nexport type GetTaskApiArg = {\n projectName: string\n taskId: string\n}\nexport type DeleteTaskApiResponse = unknown\nexport type DeleteTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateTaskApiResponse = unknown\nexport type UpdateTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPatchModel: TaskPatchModel\n}\nexport type CreateTaskApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateTaskApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPostModel: TaskPostModel\n}\nexport type AssignUsersToTaskApiResponse = unknown\nexport type AssignUsersToTaskApiArg = {\n projectName: string\n taskId: string\n assignUsersRequestModel: AssignUsersRequestModel\n}\nexport type QueryTasksFoldersApiResponse =\n /** status 200 Successful Response */ TasksFoldersResponse\nexport type QueryTasksFoldersApiArg = {\n projectName: string\n tasksFoldersQuery: TasksFoldersQuery\n}\nexport type GetTaskThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateTaskThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n 'content-type'?: string\n}\nexport type TaskAttribModel = {\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 TaskModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n path?: string\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\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 TaskPatchModel = {\n name?: string\n label?: string\n taskType?: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type TaskPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type AssignUsersRequestModel = {\n /** What to do with the list of users */\n mode: 'add' | 'remove' | 'set'\n /** List of user names */\n users: string[]\n}\nexport type TasksFoldersResponse = {\n /** List of folder ids containing tasks matching the query */\n folderIds?: string[]\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type TasksFoldersQuery = {\n /** Filter object used to resolve the tasks */\n filter?: QueryFilter\n /** 'fulltext' search used to resolve the tasks */\n search?: string\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,QAASA,EAAM,MAAyC,CACtD,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,EACrE,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,GACnE,OAAQ,SACR,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,GACnE,OAAQ,QACR,KAAMA,EAAS,eACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,SAC1C,OAAQ,OACR,KAAMA,EAAS,cACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,UACnE,OAAQ,OACR,KAAMA,EAAS,uBACjB,EAAA,CACD,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,gBAC1C,OAAQ,OACR,KAAMA,EAAS,iBACjB,EAAA,CACD,EACD,iBAAkBD,EAAM,MAA2D,CACjF,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,aACnE,OAAQ,CACN,YAAaA,EAAS,YACtB,SAAUA,EAAS,QAAA,CAEvB,EAAA,CACD,EACD,oBAAqBD,EAAM,SAAoE,CAC7F,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM,aACnE,OAAQ,OACR,QAAS,CACP,eAAgBA,EAAS,cAAc,CAAA,CAE3C,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.es.js","sources":["../../../../../src/api/generated/tasks.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getTask: build.query<GetTaskApiResponse, GetTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n }),\n }),\n deleteTask: build.mutation<DeleteTaskApiResponse, DeleteTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateTask: build.mutation<UpdateTaskApiResponse, UpdateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'PATCH',\n body: queryArg.taskPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createTask: build.mutation<CreateTaskApiResponse, CreateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks`,\n method: 'POST',\n body: queryArg.taskPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n assignUsersToTask: build.mutation<AssignUsersToTaskApiResponse, AssignUsersToTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/assign`,\n method: 'POST',\n body: queryArg.assignUsersRequestModel,\n }),\n }),\n queryTasksFolders: build.mutation<QueryTasksFoldersApiResponse, QueryTasksFoldersApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasksFolders`,\n method: 'POST',\n body: queryArg.tasksFoldersQuery,\n }),\n }),\n getTaskThumbnail: build.query<GetTaskThumbnailApiResponse, GetTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createTaskThumbnail: build.mutation<CreateTaskThumbnailApiResponse, CreateTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/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 GetTaskApiResponse = /** status 200 Successful Response */ TaskModel\nexport type GetTaskApiArg = {\n projectName: string\n taskId: string\n}\nexport type DeleteTaskApiResponse = unknown\nexport type DeleteTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateTaskApiResponse = unknown\nexport type UpdateTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPatchModel: TaskPatchModel\n}\nexport type CreateTaskApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateTaskApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPostModel: TaskPostModel\n}\nexport type AssignUsersToTaskApiResponse = unknown\nexport type AssignUsersToTaskApiArg = {\n projectName: string\n taskId: string\n assignUsersRequestModel: AssignUsersRequestModel\n}\nexport type QueryTasksFoldersApiResponse =\n /** status 200 Successful Response */ TasksFoldersResponse\nexport type QueryTasksFoldersApiArg = {\n projectName: string\n tasksFoldersQuery: TasksFoldersQuery\n}\nexport type GetTaskThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateTaskThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n 'content-type'?: string\n}\nexport type TaskAttribModel = {\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 TaskModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\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 TaskPatchModel = {\n name?: string\n label?: string\n taskType?: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type TaskPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type AssignUsersRequestModel = {\n /** What to do with the list of users */\n mode: 'add' | 'remove' | 'set'\n /** List of user names */\n users: string[]\n}\nexport type TasksFoldersResponse = {\n /** List of folder ids containing tasks matching the query */\n folderIds?: string[]\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type TasksFoldersQuery = {\n /** Filter object used to resolve the tasks */\n filter?: QueryFilter\n /** 'fulltext' search used to resolve the tasks */\n search?: string\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,SAASA,EAAM,MAAyC;AAAA,MACtD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,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,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,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,YAAYD,EAAM,SAAkD;AAAA,MAClE,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,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,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,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,MAA2D;AAAA,MACjF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,UACN,aAAaA,EAAS;AAAA,UACtB,UAAUA,EAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,qBAAqBD,EAAM,SAAoE;AAAA,MAC7F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgBA,EAAS,cAAc;AAAA,QAAA;AAAA,MAE3C;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"tasks.es.js","sources":["../../../../../src/api/generated/tasks.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getTask: build.query<GetTaskApiResponse, GetTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n }),\n }),\n deleteTask: build.mutation<DeleteTaskApiResponse, DeleteTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateTask: build.mutation<UpdateTaskApiResponse, UpdateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}`,\n method: 'PATCH',\n body: queryArg.taskPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createTask: build.mutation<CreateTaskApiResponse, CreateTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks`,\n method: 'POST',\n body: queryArg.taskPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n assignUsersToTask: build.mutation<AssignUsersToTaskApiResponse, AssignUsersToTaskApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/assign`,\n method: 'POST',\n body: queryArg.assignUsersRequestModel,\n }),\n }),\n queryTasksFolders: build.mutation<QueryTasksFoldersApiResponse, QueryTasksFoldersApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasksFolders`,\n method: 'POST',\n body: queryArg.tasksFoldersQuery,\n }),\n }),\n getTaskThumbnail: build.query<GetTaskThumbnailApiResponse, GetTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createTaskThumbnail: build.mutation<CreateTaskThumbnailApiResponse, CreateTaskThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/tasks/${queryArg.taskId}/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 GetTaskApiResponse = /** status 200 Successful Response */ TaskModel\nexport type GetTaskApiArg = {\n projectName: string\n taskId: string\n}\nexport type DeleteTaskApiResponse = unknown\nexport type DeleteTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateTaskApiResponse = unknown\nexport type UpdateTaskApiArg = {\n projectName: string\n taskId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPatchModel: TaskPatchModel\n}\nexport type CreateTaskApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateTaskApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n taskPostModel: TaskPostModel\n}\nexport type AssignUsersToTaskApiResponse = unknown\nexport type AssignUsersToTaskApiArg = {\n projectName: string\n taskId: string\n assignUsersRequestModel: AssignUsersRequestModel\n}\nexport type QueryTasksFoldersApiResponse =\n /** status 200 Successful Response */ TasksFoldersResponse\nexport type QueryTasksFoldersApiArg = {\n projectName: string\n tasksFoldersQuery: TasksFoldersQuery\n}\nexport type GetTaskThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateTaskThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateTaskThumbnailApiArg = {\n projectName: string\n taskId: string\n 'content-type'?: string\n}\nexport type TaskAttribModel = {\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 TaskModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n path?: string\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\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 TaskPatchModel = {\n name?: string\n label?: string\n taskType?: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type TaskPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n name: string\n label?: string\n taskType: string\n thumbnailId?: string\n /** List of users assigned to the task */\n assignees?: string[]\n /** Folder ID */\n folderId?: string\n /** Status of the task */\n status?: string\n /** Tags assigned to the the task */\n tags?: string[]\n attrib?: TaskAttribModel\n data?: Record<string, any>\n /** Whether the task is active */\n active?: boolean\n}\nexport type AssignUsersRequestModel = {\n /** What to do with the list of users */\n mode: 'add' | 'remove' | 'set'\n /** List of user names */\n users: string[]\n}\nexport type TasksFoldersResponse = {\n /** List of folder ids containing tasks matching the query */\n folderIds?: string[]\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type TasksFoldersQuery = {\n /** Filter object used to resolve the tasks */\n filter?: QueryFilter\n /** 'fulltext' search used to resolve the tasks */\n search?: string\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,SAASA,EAAM,MAAyC;AAAA,MACtD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,MACrE;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,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,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,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,YAAYD,EAAM,SAAkD;AAAA,MAClE,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,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,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,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,MAA2D;AAAA,MACjF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,UACN,aAAaA,EAAS;AAAA,UACtB,UAAUA,EAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,qBAAqBD,EAAM,SAAoE;AAAA,MAC7F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgBA,EAAS,cAAc;AAAA,QAAA;AAAA,MAE3C;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"users.cjs.js","sources":["../../../../../src/api/generated/users.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n getUserApiKeys: build.query<GetUserApiKeysApiResponse, GetUserApiKeysApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/apikeys` }),\n }),\n createUserApiKey: build.mutation<CreateUserApiKeyApiResponse, CreateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys`,\n method: 'POST',\n body: queryArg.apiKeyPostModel,\n }),\n }),\n deleteUserApiKey: build.mutation<DeleteUserApiKeyApiResponse, DeleteUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'DELETE',\n }),\n }),\n updateUserApiKey: build.mutation<UpdateUserApiKeyApiResponse, UpdateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'PATCH',\n body: queryArg.apiKeyPatchModel,\n }),\n }),\n getAvatar: build.query<GetAvatarApiResponse, GetAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar` }),\n }),\n uploadAvatar: build.mutation<UploadAvatarApiResponse, UploadAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'PUT' }),\n }),\n deleteAvatar: build.mutation<DeleteAvatarApiResponse, DeleteAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'DELETE' }),\n }),\n passwordResetRequest: build.mutation<\n PasswordResetRequestApiResponse,\n PasswordResetRequestApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/passwordResetRequest`,\n method: 'POST',\n body: queryArg.passwordResetRequestModel,\n }),\n }),\n passwordReset: build.mutation<PasswordResetApiResponse, PasswordResetApiArg>({\n query: (queryArg) => ({\n url: `/api/users/passwordReset`,\n method: 'POST',\n body: queryArg.passwordResetModel,\n }),\n }),\n getMyPermissions: build.query<GetMyPermissionsApiResponse, GetMyPermissionsApiArg>({\n query: () => ({ url: `/api/users/me/permissions` }),\n }),\n getMyProjectPermissions: build.query<\n GetMyProjectPermissionsApiResponse,\n GetMyProjectPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/me/permissions/${queryArg.projectName}` }),\n }),\n getUserStudioPermissions: build.query<\n GetUserStudioPermissionsApiResponse,\n GetUserStudioPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/permissions` }),\n }),\n getUserProjectPermissions: build.query<\n GetUserProjectPermissionsApiResponse,\n GetUserProjectPermissionsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/permissions/${queryArg.projectName}`,\n }),\n }),\n getCurrentUser: build.query<GetCurrentUserApiResponse, GetCurrentUserApiArg>({\n query: () => ({ url: `/api/users/me` }),\n }),\n getUser: build.query<GetUserApiResponse, GetUserApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}` }),\n }),\n createUser: build.mutation<CreateUserApiResponse, CreateUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PUT',\n body: queryArg.newUserModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteUser: build.mutation<DeleteUserApiResponse, DeleteUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n patchUser: build.mutation<PatchUserApiResponse, PatchUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.userPatchModel,\n }),\n }),\n changePassword: build.mutation<ChangePasswordApiResponse, ChangePasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/password`,\n method: 'PATCH',\n body: queryArg.changePasswordRequestModel,\n }),\n }),\n checkPassword: build.mutation<CheckPasswordApiResponse, CheckPasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/checkPassword`,\n method: 'POST',\n body: queryArg.checkPasswordRequestModel,\n }),\n }),\n changeUserName: build.mutation<ChangeUserNameApiResponse, ChangeUserNameApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/rename`,\n method: 'PATCH',\n body: queryArg.changeUserNameRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getUserSessions: build.query<GetUserSessionsApiResponse, GetUserSessionsApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/sessions` }),\n }),\n deleteUserSession: build.mutation<DeleteUserSessionApiResponse, DeleteUserSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/sessions/${queryArg.sessionId}`,\n method: 'DELETE',\n }),\n }),\n assignAccessGroups: build.mutation<AssignAccessGroupsApiResponse, AssignAccessGroupsApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/accessGroups`,\n method: 'PATCH',\n body: queryArg.assignAccessGroupsRequestModel,\n }),\n }),\n setFrontendPreferences: build.mutation<\n SetFrontendPreferencesApiResponse,\n SetFrontendPreferencesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/frontendPreferences`,\n method: 'PATCH',\n body: queryArg.patchData,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type GetUserApiKeysApiResponse = /** status 200 Successful Response */ ApiKeyModel[]\nexport type GetUserApiKeysApiArg = {\n userName: string\n}\nexport type CreateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiKeyApiArg = {\n userName: string\n apiKeyPostModel: ApiKeyPostModel\n}\nexport type DeleteUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiKeyApiArg = {\n userName: string\n entityId: string\n}\nexport type UpdateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type UpdateUserApiKeyApiArg = {\n userName: string\n entityId: string\n apiKeyPatchModel: ApiKeyPatchModel\n}\nexport type GetAvatarApiResponse = /** status 200 Successful Response */ any\nexport type GetAvatarApiArg = {\n userName: string\n}\nexport type UploadAvatarApiResponse = /** status 200 Successful Response */ any\nexport type UploadAvatarApiArg = {\n userName: string\n}\nexport type DeleteAvatarApiResponse = /** status 200 Successful Response */ any\nexport type DeleteAvatarApiArg = {\n userName: string\n}\nexport type PasswordResetRequestApiResponse = /** status 200 Successful Response */ any\nexport type PasswordResetRequestApiArg = {\n passwordResetRequestModel: PasswordResetRequestModel\n}\nexport type PasswordResetApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type PasswordResetApiArg = {\n passwordResetModel: PasswordResetModel\n}\nexport type GetMyPermissionsApiResponse = /** status 200 Successful Response */ UserPermissionsModel\nexport type GetMyPermissionsApiArg = void\nexport type GetMyProjectPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetMyProjectPermissionsApiArg = {\n projectName: string\n}\nexport type GetUserStudioPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetUserStudioPermissionsApiArg = {\n userName: string\n}\nexport type GetUserProjectPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetUserProjectPermissionsApiArg = {\n projectName: string\n userName: string\n}\nexport type GetCurrentUserApiResponse = /** status 200 Successful Response */ UserModel\nexport type GetCurrentUserApiArg = void\nexport type GetUserApiResponse = /** status 200 Successful Response */\n | UserModel\n | {\n [key: string]: string\n }\nexport type GetUserApiArg = {\n userName: string\n}\nexport type CreateUserApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n newUserModel: NewUserModel\n}\nexport type DeleteUserApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type PatchUserApiResponse = /** status 200 Successful Response */ any\nexport type PatchUserApiArg = {\n userName: string\n userPatchModel: UserPatchModel\n}\nexport type ChangePasswordApiResponse = /** status 200 Successful Response */ any\nexport type ChangePasswordApiArg = {\n userName: string\n changePasswordRequestModel: ChangePasswordRequestModel\n}\nexport type CheckPasswordApiResponse = /** status 200 Successful Response */ any\nexport type CheckPasswordApiArg = {\n userName: string\n checkPasswordRequestModel: CheckPasswordRequestModel\n}\nexport type ChangeUserNameApiResponse = /** status 200 Successful Response */ any\nexport type ChangeUserNameApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n changeUserNameRequestModel: ChangeUserNameRequestModel\n}\nexport type GetUserSessionsApiResponse =\n /** status 200 Successful Response */ UserSessionsResponseModel\nexport type GetUserSessionsApiArg = {\n userName: string\n}\nexport type DeleteUserSessionApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserSessionApiArg = {\n sessionId: string\n userName: string\n}\nexport type AssignAccessGroupsApiResponse = /** status 200 Successful Response */ any\nexport type AssignAccessGroupsApiArg = {\n userName: string\n assignAccessGroupsRequestModel: AssignAccessGroupsRequestModel\n}\nexport type SetFrontendPreferencesApiResponse = /** status 200 Successful Response */ any\nexport type SetFrontendPreferencesApiArg = {\n userName: string\n patchData: object\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}\nexport type ApiKeyModel = {\n id: string\n label: string\n preview: string\n created: number\n expires?: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ApiKeyPostModel = {\n label: string\n key: string\n expires?: number\n}\nexport type ApiKeyPatchModel = {\n label?: string\n expires?: number\n}\nexport type PasswordResetRequestModel = {\n email: string\n url: string\n}\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 PasswordResetModel = {\n token: string\n password?: string\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 fields?: string[]\n attributes?: 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 UserPermissionsModel = {\n user_level?: 'admin' | 'manager' | 'user'\n /** Permissions for the studio */\n studio?: StudioManagementPermissions\n /** Permissions for individual projects */\n projects?: {\n [key: string]: Permissions\n }\n}\nexport type NewUserModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n /** Password for the new user */\n password?: string\n /** API Key for the new service user */\n apiKey?: string\n}\nexport type UserPatchModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n}\nexport type ChangePasswordRequestModel = {\n /** New password */\n password?: string\n /** API Key to set to a service user */\n apiKey?: string\n}\nexport type CheckPasswordRequestModel = {\n password: string\n}\nexport type ChangeUserNameRequestModel = {\n /** New user name */\n newName: 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 UserSessionModel = {\n token: string\n isService: boolean\n lastUsed: number\n clientInfo?: ClientInfo\n}\nexport type UserSessionsResponseModel = {\n sessions: UserSessionModel[]\n}\nexport type AccessGroupsOnProject = {\n /** Project name */\n project: string\n /** List of access groups on the project */\n accessGroups: string[]\n}\nexport type AssignAccessGroupsRequestModel = {\n /** List of access groups to assign */\n accessGroups?: AccessGroupsOnProject[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,aAAcA,EAAM,MAAmD,CACrE,MAAO,KAAO,CAAE,IAAK,iBAAkB,EAAA,CACxC,EACD,eAAgBA,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CAAE,IAAK,cAAcA,EAAS,QAAQ,UAAW,EAAA,CACxE,EACD,iBAAkBD,EAAM,SAA8D,CAC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IAAc,CAAE,IAAK,cAAcA,EAAS,QAAQ,WAAY,EAAA,CACzE,EACD,kBAAmBD,EAAM,SAAgE,CACvF,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,aAAaA,EAAS,SAAS,GACnE,OAAQ,QACV,EAAA,CACD,EACD,mBAAoBD,EAAM,SAAkE,CAC1F,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,gBACpC,OAAQ,QACR,KAAMA,EAAS,8BACjB,EAAA,CACD,EACD,uBAAwBD,EAAM,SAG5B,CACA,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,uBACpC,OAAQ,QACR,KAAMA,EAAS,SACjB,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"users.cjs.js","sources":["../../../../../src/api/generated/users.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n getUserApiKeys: build.query<GetUserApiKeysApiResponse, GetUserApiKeysApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/apikeys` }),\n }),\n createUserApiKey: build.mutation<CreateUserApiKeyApiResponse, CreateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys`,\n method: 'POST',\n body: queryArg.apiKeyPostModel,\n }),\n }),\n deleteUserApiKey: build.mutation<DeleteUserApiKeyApiResponse, DeleteUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'DELETE',\n }),\n }),\n updateUserApiKey: build.mutation<UpdateUserApiKeyApiResponse, UpdateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'PATCH',\n body: queryArg.apiKeyPatchModel,\n }),\n }),\n getAvatar: build.query<GetAvatarApiResponse, GetAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar` }),\n }),\n uploadAvatar: build.mutation<UploadAvatarApiResponse, UploadAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'PUT' }),\n }),\n deleteAvatar: build.mutation<DeleteAvatarApiResponse, DeleteAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'DELETE' }),\n }),\n passwordResetRequest: build.mutation<\n PasswordResetRequestApiResponse,\n PasswordResetRequestApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/passwordResetRequest`,\n method: 'POST',\n body: queryArg.passwordResetRequestModel,\n }),\n }),\n passwordReset: build.mutation<PasswordResetApiResponse, PasswordResetApiArg>({\n query: (queryArg) => ({\n url: `/api/users/passwordReset`,\n method: 'POST',\n body: queryArg.passwordResetModel,\n }),\n }),\n getMyPermissions: build.query<GetMyPermissionsApiResponse, GetMyPermissionsApiArg>({\n query: () => ({ url: `/api/users/me/permissions` }),\n }),\n getMyProjectPermissions: build.query<\n GetMyProjectPermissionsApiResponse,\n GetMyProjectPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/me/permissions/${queryArg.projectName}` }),\n }),\n getUserStudioPermissions: build.query<\n GetUserStudioPermissionsApiResponse,\n GetUserStudioPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/permissions` }),\n }),\n getUserProjectPermissions: build.query<\n GetUserProjectPermissionsApiResponse,\n GetUserProjectPermissionsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/permissions/${queryArg.projectName}`,\n }),\n }),\n getCurrentUser: build.query<GetCurrentUserApiResponse, GetCurrentUserApiArg>({\n query: () => ({ url: `/api/users/me` }),\n }),\n getUser: build.query<GetUserApiResponse, GetUserApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}` }),\n }),\n createUser: build.mutation<CreateUserApiResponse, CreateUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PUT',\n body: queryArg.newUserModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteUser: build.mutation<DeleteUserApiResponse, DeleteUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n patchUser: build.mutation<PatchUserApiResponse, PatchUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.userPatchModel,\n }),\n }),\n changePassword: build.mutation<ChangePasswordApiResponse, ChangePasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/password`,\n method: 'PATCH',\n body: queryArg.changePasswordRequestModel,\n }),\n }),\n checkPassword: build.mutation<CheckPasswordApiResponse, CheckPasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/checkPassword`,\n method: 'POST',\n body: queryArg.checkPasswordRequestModel,\n }),\n }),\n changeUserName: build.mutation<ChangeUserNameApiResponse, ChangeUserNameApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/rename`,\n method: 'PATCH',\n body: queryArg.changeUserNameRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getUserSessions: build.query<GetUserSessionsApiResponse, GetUserSessionsApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/sessions` }),\n }),\n deleteUserSession: build.mutation<DeleteUserSessionApiResponse, DeleteUserSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/sessions/${queryArg.sessionId}`,\n method: 'DELETE',\n }),\n }),\n assignAccessGroups: build.mutation<AssignAccessGroupsApiResponse, AssignAccessGroupsApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/accessGroups`,\n method: 'PATCH',\n body: queryArg.assignAccessGroupsRequestModel,\n }),\n }),\n setFrontendPreferences: build.mutation<\n SetFrontendPreferencesApiResponse,\n SetFrontendPreferencesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/frontendPreferences`,\n method: 'PATCH',\n body: queryArg.patchData,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type GetUserApiKeysApiResponse = /** status 200 Successful Response */ ApiKeyModel[]\nexport type GetUserApiKeysApiArg = {\n userName: string\n}\nexport type CreateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiKeyApiArg = {\n userName: string\n apiKeyPostModel: ApiKeyPostModel\n}\nexport type DeleteUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiKeyApiArg = {\n userName: string\n entityId: string\n}\nexport type UpdateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type UpdateUserApiKeyApiArg = {\n userName: string\n entityId: string\n apiKeyPatchModel: ApiKeyPatchModel\n}\nexport type GetAvatarApiResponse = /** status 200 Successful Response */ any\nexport type GetAvatarApiArg = {\n userName: string\n}\nexport type UploadAvatarApiResponse = /** status 200 Successful Response */ any\nexport type UploadAvatarApiArg = {\n userName: string\n}\nexport type DeleteAvatarApiResponse = /** status 200 Successful Response */ any\nexport type DeleteAvatarApiArg = {\n userName: string\n}\nexport type PasswordResetRequestApiResponse = /** status 200 Successful Response */ any\nexport type PasswordResetRequestApiArg = {\n passwordResetRequestModel: PasswordResetRequestModel\n}\nexport type PasswordResetApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type PasswordResetApiArg = {\n passwordResetModel: PasswordResetModel\n}\nexport type GetMyPermissionsApiResponse = /** status 200 Successful Response */ UserPermissionsModel\nexport type GetMyPermissionsApiArg = void\nexport type GetMyProjectPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetMyProjectPermissionsApiArg = {\n projectName: string\n}\nexport type GetUserStudioPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetUserStudioPermissionsApiArg = {\n userName: string\n}\nexport type GetUserProjectPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetUserProjectPermissionsApiArg = {\n projectName: string\n userName: string\n}\nexport type GetCurrentUserApiResponse = /** status 200 Successful Response */ UserModel\nexport type GetCurrentUserApiArg = void\nexport type GetUserApiResponse = /** status 200 Successful Response */\n | UserModel\n | {\n [key: string]: string\n }\nexport type GetUserApiArg = {\n userName: string\n}\nexport type CreateUserApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n newUserModel: NewUserModel\n}\nexport type DeleteUserApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type PatchUserApiResponse = /** status 200 Successful Response */ any\nexport type PatchUserApiArg = {\n userName: string\n userPatchModel: UserPatchModel\n}\nexport type ChangePasswordApiResponse = /** status 200 Successful Response */ any\nexport type ChangePasswordApiArg = {\n userName: string\n changePasswordRequestModel: ChangePasswordRequestModel\n}\nexport type CheckPasswordApiResponse = /** status 200 Successful Response */ any\nexport type CheckPasswordApiArg = {\n userName: string\n checkPasswordRequestModel: CheckPasswordRequestModel\n}\nexport type ChangeUserNameApiResponse = /** status 200 Successful Response */ any\nexport type ChangeUserNameApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n changeUserNameRequestModel: ChangeUserNameRequestModel\n}\nexport type GetUserSessionsApiResponse =\n /** status 200 Successful Response */ UserSessionsResponseModel\nexport type GetUserSessionsApiArg = {\n userName: string\n}\nexport type DeleteUserSessionApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserSessionApiArg = {\n sessionId: string\n userName: string\n}\nexport type AssignAccessGroupsApiResponse = /** status 200 Successful Response */ any\nexport type AssignAccessGroupsApiArg = {\n userName: string\n assignAccessGroupsRequestModel: AssignAccessGroupsRequestModel\n}\nexport type SetFrontendPreferencesApiResponse = /** status 200 Successful Response */ any\nexport type SetFrontendPreferencesApiArg = {\n userName: string\n patchData: object\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}\nexport type ApiKeyModel = {\n id: string\n label: string\n preview: string\n created: number\n expires?: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ApiKeyPostModel = {\n label: string\n key: string\n expires?: number\n}\nexport type ApiKeyPatchModel = {\n label?: string\n expires?: number\n}\nexport type PasswordResetRequestModel = {\n email: string\n url: string\n}\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 PasswordResetModel = {\n token: string\n password?: string\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 UserPermissionsModel = {\n user_level?: 'admin' | 'manager' | 'user'\n /** Permissions for the studio */\n studio?: StudioManagementPermissions\n /** Permissions for individual projects */\n projects?: {\n [key: string]: Permissions\n }\n}\nexport type NewUserModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n /** Password for the new user */\n password?: string\n /** API Key for the new service user */\n apiKey?: string\n}\nexport type UserPatchModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n}\nexport type ChangePasswordRequestModel = {\n /** New password */\n password?: string\n /** API Key to set to a service user */\n apiKey?: string\n}\nexport type CheckPasswordRequestModel = {\n password: string\n}\nexport type ChangeUserNameRequestModel = {\n /** New user name */\n newName: 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 UserSessionModel = {\n token: string\n isService: boolean\n lastUsed: number\n clientInfo?: ClientInfo\n}\nexport type UserSessionsResponseModel = {\n sessions: UserSessionModel[]\n}\nexport type AccessGroupsOnProject = {\n /** Project name */\n project: string\n /** List of access groups on the project */\n accessGroups: string[]\n}\nexport type AssignAccessGroupsRequestModel = {\n /** List of access groups to assign */\n accessGroups?: AccessGroupsOnProject[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,aAAcA,EAAM,MAAmD,CACrE,MAAO,KAAO,CAAE,IAAK,iBAAkB,EAAA,CACxC,EACD,eAAgBA,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CAAE,IAAK,cAAcA,EAAS,QAAQ,UAAW,EAAA,CACxE,EACD,iBAAkBD,EAAM,SAA8D,CACpF,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,OACR,KAAMA,EAAS,eACjB,EAAA,CACD,EACD,iBAAkBD,EAAM,SAA8D,CACpF,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,YAAYA,EAAS,QAAQ,GACjE,OAAQ,QACV,EAAA,CACD,EACD,iBAAkBD,EAAM,SAA8D,CACpF,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,YAAYA,EAAS,QAAQ,GACjE,OAAQ,QACR,KAAMA,EAAS,gBACjB,EAAA,CACD,EACD,UAAWD,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CAAE,IAAK,cAAcA,EAAS,QAAQ,SAAU,EAAA,CACvE,EACD,aAAcD,EAAM,SAAsD,CACxE,MAAQC,IAAc,CAAE,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