@ynput/ayon-frontend-shared 0.2.30 → 0.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/_virtual/index.cjs5.js +1 -1
  2. package/dist/_virtual/index.cjs6.js +1 -1
  3. package/dist/_virtual/index.es5.js +5 -2
  4. package/dist/_virtual/index.es5.js.map +1 -1
  5. package/dist/_virtual/index.es6.js +2 -5
  6. package/dist/_virtual/index.es6.js.map +1 -1
  7. package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
  8. package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
  9. package/dist/node_modules/remove-accents/index.cjs.js +1 -1
  10. package/dist/node_modules/remove-accents/index.es.js +1 -1
  11. package/dist/shared/src/api/generated/access.cjs.js.map +1 -1
  12. package/dist/shared/src/api/generated/access.es.js.map +1 -1
  13. package/dist/shared/src/api/generated/authentication.cjs.js +1 -1
  14. package/dist/shared/src/api/generated/authentication.cjs.js.map +1 -1
  15. package/dist/shared/src/api/generated/authentication.es.js +9 -6
  16. package/dist/shared/src/api/generated/authentication.es.js.map +1 -1
  17. package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
  18. package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
  19. package/dist/shared/src/api/generated/folders.cjs.js.map +1 -1
  20. package/dist/shared/src/api/generated/folders.es.js.map +1 -1
  21. package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
  22. package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
  23. package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
  24. package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
  25. package/dist/shared/src/api/generated/links.cjs.js +1 -1
  26. package/dist/shared/src/api/generated/links.cjs.js.map +1 -1
  27. package/dist/shared/src/api/generated/links.es.js +13 -5
  28. package/dist/shared/src/api/generated/links.es.js.map +1 -1
  29. package/dist/shared/src/api/generated/onboarding.cjs.js.map +1 -1
  30. package/dist/shared/src/api/generated/onboarding.es.js.map +1 -1
  31. package/dist/shared/src/api/generated/operations.cjs.js +1 -1
  32. package/dist/shared/src/api/generated/operations.cjs.js.map +1 -1
  33. package/dist/shared/src/api/generated/operations.es.js +16 -0
  34. package/dist/shared/src/api/generated/operations.es.js.map +1 -1
  35. package/dist/shared/src/api/generated/products.cjs.js +1 -1
  36. package/dist/shared/src/api/generated/products.cjs.js.map +1 -1
  37. package/dist/shared/src/api/generated/products.es.js +6 -3
  38. package/dist/shared/src/api/generated/products.es.js.map +1 -1
  39. package/dist/shared/src/api/generated/projects.cjs.js +1 -1
  40. package/dist/shared/src/api/generated/projects.cjs.js.map +1 -1
  41. package/dist/shared/src/api/generated/projects.es.js +19 -0
  42. package/dist/shared/src/api/generated/projects.es.js.map +1 -1
  43. package/dist/shared/src/api/generated/system.cjs.js.map +1 -1
  44. package/dist/shared/src/api/generated/system.es.js.map +1 -1
  45. package/dist/shared/src/api/generated/tasks.cjs.js.map +1 -1
  46. package/dist/shared/src/api/generated/tasks.es.js.map +1 -1
  47. package/dist/shared/src/api/generated/users.cjs.js.map +1 -1
  48. package/dist/shared/src/api/generated/users.es.js.map +1 -1
  49. package/dist/shared/src/api/generated/versions.cjs.js.map +1 -1
  50. package/dist/shared/src/api/generated/versions.es.js.map +1 -1
  51. package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
  52. package/dist/shared/src/api/generated/views.es.js.map +1 -1
  53. package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js +1 -1
  54. package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js.map +1 -1
  55. package/dist/shared/src/api/queries/entityLists/listFolders.es.js +96 -59
  56. package/dist/shared/src/api/queries/entityLists/listFolders.es.js.map +1 -1
  57. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js +1 -1
  58. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js.map +1 -1
  59. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js +15 -10
  60. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js.map +1 -1
  61. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js +60 -0
  62. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js.map +1 -0
  63. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js +332 -0
  64. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js.map +1 -0
  65. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js +4 -4
  66. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js.map +1 -1
  67. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js +37 -33
  68. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js.map +1 -1
  69. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js +3 -5
  70. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js.map +1 -1
  71. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js +4 -6
  72. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js.map +1 -1
  73. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js +1 -2
  74. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js.map +1 -1
  75. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js +0 -1
  76. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js.map +1 -1
  77. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
  78. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
  79. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +555 -537
  80. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
  81. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +0 -1
  82. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
  83. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +4 -5
  84. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
  85. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  86. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  87. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +92 -91
  88. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  89. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.cjs.js.map +1 -1
  90. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.es.js.map +1 -1
  91. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +1 -1
  92. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js.map +1 -1
  93. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +126 -108
  94. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js.map +1 -1
  95. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js +2 -0
  96. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js.map +1 -0
  97. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js +9 -0
  98. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js.map +1 -0
  99. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
  100. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
  101. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +49 -48
  102. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
  103. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +38 -9
  104. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
  105. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +74 -39
  106. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
  107. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +24 -15
  108. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
  109. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +71 -59
  110. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
  111. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js +6 -6
  112. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js.map +1 -1
  113. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js +12 -12
  114. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js.map +1 -1
  115. package/dist/shared/src/util/columnConfigConverter.cjs.js +1 -1
  116. package/dist/shared/src/util/columnConfigConverter.cjs.js.map +1 -1
  117. package/dist/shared/src/util/columnConfigConverter.es.js +35 -33
  118. package/dist/shared/src/util/columnConfigConverter.es.js.map +1 -1
  119. package/dist/types/api/generated/access.d.ts +6 -0
  120. package/dist/types/api/generated/authentication.d.ts +6 -0
  121. package/dist/types/api/generated/entityLists.d.ts +7 -7
  122. package/dist/types/api/generated/folders.d.ts +2 -2
  123. package/dist/types/api/generated/graphql.d.ts +3 -1
  124. package/dist/types/api/generated/graphqlLinks.d.ts +21 -15
  125. package/dist/types/api/generated/links.d.ts +4 -0
  126. package/dist/types/api/generated/onboarding.d.ts +3 -0
  127. package/dist/types/api/generated/operations.d.ts +22 -1
  128. package/dist/types/api/generated/products.d.ts +23 -0
  129. package/dist/types/api/generated/projects.d.ts +63 -0
  130. package/dist/types/api/generated/representations.d.ts +1 -0
  131. package/dist/types/api/generated/system.d.ts +9 -2
  132. package/dist/types/api/generated/tasks.d.ts +1 -0
  133. package/dist/types/api/generated/users.d.ts +1 -1
  134. package/dist/types/api/generated/versions.d.ts +1 -0
  135. package/dist/types/api/generated/views.d.ts +50 -9
  136. package/dist/types/api/queries/authentication/getAuthentication.d.ts +1 -0
  137. package/dist/types/api/queries/overview/updateOverview.d.ts +2 -0
  138. package/dist/types/api/queries/project/getProject.d.ts +4 -0
  139. package/dist/types/components/ProjectTableSettings/RowHeightSettings.d.ts +3 -0
  140. package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +4 -0
  141. package/dist/types/containers/ProjectTreeTable/hooks/useDynamicRowHeight.d.ts +11 -0
  142. package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +2 -1
  143. package/dist/types/containers/ProjectTreeTable/widgets/EnumCellValue.d.ts +2 -1
  144. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"users.es.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":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,cAAcA,EAAM,MAAmD;AAAA,MACrE,OAAO,OAAO,EAAE,KAAK,kBAAkB;AAAA,IAAA,CACxC;AAAA,IACD,gBAAgBA,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc,EAAE,KAAK,cAAcA,EAAS,QAAQ,WAAW;AAAA,IAAA,CACxE;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,YAAYA,EAAS,QAAQ;AAAA,QACjE,QAA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AAA,CACD;AAAA,IACD,eAAeD,EAAM,SAAwD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,SAA0D;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,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,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc,EAAE,KAAK,cAAcA,EAAS,QAAQ,YAAY;AAAA,IAAA,CACzE;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,aAAaA,EAAS,SAAS;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,oBAAoBD,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"users.es.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":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,cAAcA,EAAM,MAAmD;AAAA,MACrE,OAAO,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,oBAAoBD,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"versions.cjs.js","sources":["../../../../../src/api/generated/versions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getVersionThumbnail: build.query<GetVersionThumbnailApiResponse, GetVersionThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createVersionThumbnail: build.mutation<\n CreateVersionThumbnailApiResponse,\n CreateVersionThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n method: 'POST',\n headers: {\n 'content-type': queryArg['content-type'],\n },\n }),\n }),\n getVersion: build.query<GetVersionApiResponse, GetVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n }),\n }),\n deleteVersion: build.mutation<DeleteVersionApiResponse, DeleteVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateVersion: build.mutation<UpdateVersionApiResponse, UpdateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'PATCH',\n body: queryArg.versionPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createVersion: build.mutation<CreateVersionApiResponse, CreateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions`,\n method: 'POST',\n body: queryArg.versionPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetVersionThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateVersionThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n 'content-type'?: string\n}\nexport type GetVersionApiResponse = /** status 200 Successful Response */ VersionModel\nexport type GetVersionApiArg = {\n projectName: string\n versionId: string\n}\nexport type DeleteVersionApiResponse = unknown\nexport type DeleteVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateVersionApiResponse = unknown\nexport type UpdateVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPatchModel: VersionPatchModel\n}\nexport type CreateVersionApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateVersionApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPostModel: VersionPostModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\nexport type VersionAttribModel = {\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 intent?: string\n machine?: string\n source?: string\n comment?: string\n site?: string\n families?: string[]\n colorSpace?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type VersionModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type VersionPatchModel = {\n /** Version number */\n version?: number\n /** ID of the parent product */\n productId?: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type VersionPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,oBAAqBA,EAAM,MAAiE,CAC1F,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,aACzE,OAAQ,CACN,YAAaA,EAAS,YACtB,SAAUA,EAAS,QAAA,CAEvB,EAAA,CACD,EACD,uBAAwBD,EAAM,SAG5B,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,aACzE,OAAQ,OACR,QAAS,CACP,eAAgBA,EAAS,cAAc,CAAA,CAE3C,EAAA,CACD,EACD,WAAYD,EAAM,MAA+C,CAC/D,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,EAC3E,EAAA,CACD,EACD,cAAeD,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,GACzE,OAAQ,SACR,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,cAAeD,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,GACzE,OAAQ,QACR,KAAMA,EAAS,kBACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,cAAeD,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,YAC1C,OAAQ,OACR,KAAMA,EAAS,iBACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"versions.cjs.js","sources":["../../../../../src/api/generated/versions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getVersionThumbnail: build.query<GetVersionThumbnailApiResponse, GetVersionThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createVersionThumbnail: build.mutation<\n CreateVersionThumbnailApiResponse,\n CreateVersionThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n method: 'POST',\n headers: {\n 'content-type': queryArg['content-type'],\n },\n }),\n }),\n getVersion: build.query<GetVersionApiResponse, GetVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n }),\n }),\n deleteVersion: build.mutation<DeleteVersionApiResponse, DeleteVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateVersion: build.mutation<UpdateVersionApiResponse, UpdateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'PATCH',\n body: queryArg.versionPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createVersion: build.mutation<CreateVersionApiResponse, CreateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions`,\n method: 'POST',\n body: queryArg.versionPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetVersionThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateVersionThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n 'content-type'?: string\n}\nexport type GetVersionApiResponse = /** status 200 Successful Response */ VersionModel\nexport type GetVersionApiArg = {\n projectName: string\n versionId: string\n}\nexport type DeleteVersionApiResponse = unknown\nexport type DeleteVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateVersionApiResponse = unknown\nexport type UpdateVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPatchModel: VersionPatchModel\n}\nexport type CreateVersionApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateVersionApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPostModel: VersionPostModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\nexport type VersionAttribModel = {\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 intent?: string\n machine?: string\n source?: string\n comment?: string\n site?: string\n families?: string[]\n colorSpace?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type VersionModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n path?: string\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type VersionPatchModel = {\n /** Version number */\n version?: number\n /** ID of the parent product */\n productId?: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type VersionPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,oBAAqBA,EAAM,MAAiE,CAC1F,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,aACzE,OAAQ,CACN,YAAaA,EAAS,YACtB,SAAUA,EAAS,QAAA,CAEvB,EAAA,CACD,EACD,uBAAwBD,EAAM,SAG5B,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,aACzE,OAAQ,OACR,QAAS,CACP,eAAgBA,EAAS,cAAc,CAAA,CAE3C,EAAA,CACD,EACD,WAAYD,EAAM,MAA+C,CAC/D,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,EAC3E,EAAA,CACD,EACD,cAAeD,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,GACzE,OAAQ,SACR,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,cAAeD,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS,GACzE,OAAQ,QACR,KAAMA,EAAS,kBACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,cAAeD,EAAM,SAAwD,CAC3E,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,YAC1C,OAAQ,OACR,KAAMA,EAAS,iBACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"versions.es.js","sources":["../../../../../src/api/generated/versions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getVersionThumbnail: build.query<GetVersionThumbnailApiResponse, GetVersionThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createVersionThumbnail: build.mutation<\n CreateVersionThumbnailApiResponse,\n CreateVersionThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n method: 'POST',\n headers: {\n 'content-type': queryArg['content-type'],\n },\n }),\n }),\n getVersion: build.query<GetVersionApiResponse, GetVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n }),\n }),\n deleteVersion: build.mutation<DeleteVersionApiResponse, DeleteVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateVersion: build.mutation<UpdateVersionApiResponse, UpdateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'PATCH',\n body: queryArg.versionPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createVersion: build.mutation<CreateVersionApiResponse, CreateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions`,\n method: 'POST',\n body: queryArg.versionPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetVersionThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateVersionThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n 'content-type'?: string\n}\nexport type GetVersionApiResponse = /** status 200 Successful Response */ VersionModel\nexport type GetVersionApiArg = {\n projectName: string\n versionId: string\n}\nexport type DeleteVersionApiResponse = unknown\nexport type DeleteVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateVersionApiResponse = unknown\nexport type UpdateVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPatchModel: VersionPatchModel\n}\nexport type CreateVersionApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateVersionApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPostModel: VersionPostModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\nexport type VersionAttribModel = {\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 intent?: string\n machine?: string\n source?: string\n comment?: string\n site?: string\n families?: string[]\n colorSpace?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type VersionModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type VersionPatchModel = {\n /** Version number */\n version?: number\n /** ID of the parent product */\n productId?: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type VersionPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\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,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS;AAAA,QACzE,QAAQ;AAAA,UACN,aAAaA,EAAS;AAAA,UACtB,UAAUA,EAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,wBAAwBD,E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}
1
+ {"version":3,"file":"versions.es.js","sources":["../../../../../src/api/generated/versions.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getVersionThumbnail: build.query<GetVersionThumbnailApiResponse, GetVersionThumbnailApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n params: {\n placeholder: queryArg.placeholder,\n original: queryArg.original,\n },\n }),\n }),\n createVersionThumbnail: build.mutation<\n CreateVersionThumbnailApiResponse,\n CreateVersionThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}/thumbnail`,\n method: 'POST',\n headers: {\n 'content-type': queryArg['content-type'],\n },\n }),\n }),\n getVersion: build.query<GetVersionApiResponse, GetVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n }),\n }),\n deleteVersion: build.mutation<DeleteVersionApiResponse, DeleteVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateVersion: build.mutation<UpdateVersionApiResponse, UpdateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions/${queryArg.versionId}`,\n method: 'PATCH',\n body: queryArg.versionPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createVersion: build.mutation<CreateVersionApiResponse, CreateVersionApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/versions`,\n method: 'POST',\n body: queryArg.versionPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetVersionThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n placeholder?: 'empty' | 'none'\n original?: boolean\n}\nexport type CreateVersionThumbnailApiResponse =\n /** status 201 Successful Response */ CreateThumbnailResponseModel\nexport type CreateVersionThumbnailApiArg = {\n projectName: string\n versionId: string\n 'content-type'?: string\n}\nexport type GetVersionApiResponse = /** status 200 Successful Response */ VersionModel\nexport type GetVersionApiArg = {\n projectName: string\n versionId: string\n}\nexport type DeleteVersionApiResponse = unknown\nexport type DeleteVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateVersionApiResponse = unknown\nexport type UpdateVersionApiArg = {\n projectName: string\n versionId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPatchModel: VersionPatchModel\n}\nexport type CreateVersionApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateVersionApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n versionPostModel: VersionPostModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateThumbnailResponseModel = {\n id: string\n}\nexport type VersionAttribModel = {\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 intent?: string\n machine?: string\n source?: string\n comment?: string\n site?: string\n families?: string[]\n colorSpace?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type VersionModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n path?: string\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type VersionPatchModel = {\n /** Version number */\n version?: number\n /** ID of the parent product */\n productId?: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type VersionPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Version number */\n version: number\n /** ID of the parent product */\n productId: string\n taskId?: string\n thumbnailId?: string\n author?: string\n /** Status of the version */\n status?: string\n /** Tags assigned to the the version */\n tags?: string[]\n attrib?: VersionAttribModel\n data?: Record<string, any>\n /** Whether the version is active */\n active?: boolean\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,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS;AAAA,QACzE,QAAQ;AAAA,UACN,aAAaA,EAAS;AAAA,UACtB,UAAUA,EAAS;AAAA,QAAA;AAAA,MAEvB;AAAA,IAAA,CACD;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS;AAAA,QACzE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgBA,EAAS,cAAc;AAAA,QAAA;AAAA,MAE3C;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,MAA+C;AAAA,MAC/D,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS;AAAA,MAC3E;AAAA,IAAA,CACD;AAAA,IACD,eAAeD,EAAM,SAAwD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS;AAAA,QACzE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,eAAeD,EAAM,SAAwD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,aAAaA,EAAS,SAAS;AAAA,QACzE,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,eAAeD,EAAM,SAAwD;AAAA,MAC3E,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,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"views.cjs.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload: OverviewViewPostModel | TaskProgressViewPostModel | ListsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload: OverviewViewPatchModel | TaskProgressViewPatchModel | ListsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: 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 ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n viewType?: 'lists'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,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E3B,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"views.cjs.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload:\n | OverviewViewPostModel\n | TaskProgressViewPostModel\n | ListsViewPostModel\n | ReviewsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload:\n | OverviewViewPatchModel\n | TaskProgressViewPatchModel\n | ListsViewPatchModel\n | ReviewsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: 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 ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n rowHeight?: number\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n rowHeight?: number\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type ReviewsSettings = {\n rowHeight?: number\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ReviewsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ReviewsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n access: object\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n access: object\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n access: object\n viewType?: 'lists'\n}\nexport type ReviewsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ReviewsSettings\n access: object\n viewType?: 'reviews'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,OACR,KAAMA,EAAS,QACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,SAA0D,CAC9E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,OACR,KAAMA,EAAS,2BACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,QAASD,EAAM,MAAyC,CACtD,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,SACR,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,QACR,KAAMA,EAAS,QACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"views.es.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload: OverviewViewPostModel | TaskProgressViewPostModel | ListsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload: OverviewViewPatchModel | TaskProgressViewPatchModel | ListsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: 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 ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n viewType?: 'lists'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,WAAWA,EAAM,MAA6C;AAAA,MAC5D,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,SAA0D;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,SAASD,EAAM,MAAyC;AAAA,MACtD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,QACR,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"views.es.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload:\n | OverviewViewPostModel\n | TaskProgressViewPostModel\n | ListsViewPostModel\n | ReviewsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload:\n | OverviewViewPatchModel\n | TaskProgressViewPatchModel\n | ListsViewPatchModel\n | ReviewsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: 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 ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n rowHeight?: number\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n rowHeight?: number\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type ReviewsSettings = {\n rowHeight?: number\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ReviewsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ReviewsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n access: object\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n access: object\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n access: object\n viewType?: 'lists'\n}\nexport type ReviewsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ReviewsSettings\n access: object\n viewType?: 'reviews'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,WAAWA,EAAM,MAA6C;AAAA,MAC5D,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,SAA0D;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,SAASD,EAAM,MAAyC;AAAA,MACtD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,QACR,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./getLists.cjs.js");require("lodash");require("react-toastify");const p=require("../../../util/getEntityId.cjs.js");require("../../../util/pubsub.cjs.js");const y={type:"entityListFolder",id:"LIST"},u=t=>{var e;return((e=t.data)==null?void 0:e.detail)||"Unknown lists folder error"},l=c.getListsApiEnhanced.enhanceEndpoints({endpoints:{getEntityListFolders:{transformResponse:t=>t.folders||[],transformErrorResponse:u,providesTags:t=>t?[y,...t.map(e=>({type:"entityListFolder",id:e.id}))]:[y]},createEntityListFolder:{async onQueryStarted({projectName:t,entityListFolderPostModel:e},{dispatch:i,queryFulfilled:d}){const r=i(l.util.updateQueryData("getEntityListFolders",{projectName:t},n=>{const s={...e,id:e.id||p.getEntityId()};n.push(s)}));try{await d}catch{r.undo()}},transformErrorResponse:u,invalidatesTags:[y]},deleteEntityListFolder:{async onQueryStarted({projectName:t,folderId:e},{dispatch:i,queryFulfilled:d}){const r=i(l.util.updateQueryData("getEntityListFolders",{projectName:t},n=>{const s=n.findIndex(o=>o.id===e);s!==-1&&n.splice(s,1)}));try{await d}catch{r.undo()}},transformErrorResponse:u,invalidatesTags:(t,e,i)=>[{type:"entityListFolder",id:i.folderId},{type:"entityList",id:i.folderId}]},updateEntityListFolder:{async onQueryStarted({projectName:t,folderId:e,entityListFolderPatchModel:i},{dispatch:d,queryFulfilled:r}){const n=d(l.util.updateQueryData("getEntityListFolders",{projectName:t},s=>{const o=s.findIndex(a=>a.id===e);if(o!==-1){const a=s[o];Object.assign(a,{...a,...i,data:{...a.data,...i.data}})}}));try{await r}catch{n.undo()}},transformErrorResponse:u,invalidatesTags:(t,e,i)=>[{type:"entityListFolder",id:i.folderId}]}}}),{useGetEntityListFoldersQuery:L,useCreateEntityListFolderMutation:E,useDeleteEntityListFolderMutation:F,useUpdateEntityListFolderMutation:g}=l;exports.useCreateEntityListFolderMutation=E;exports.useDeleteEntityListFolderMutation=F;exports.useGetEntityListFoldersQuery=L;exports.useUpdateEntityListFolderMutation=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../base/client.cjs.js");require("../../generated/graphql.cjs.js");require("../../generated/graphqlLinks.cjs.js");require("../../generated/access.cjs.js");require("../../generated/actions.cjs.js");require("../../generated/activityFeed.cjs.js");require("../../generated/addons.cjs.js");require("../../generated/anatomy.cjs.js");require("../../generated/attributes.cjs.js");require("../../generated/authentication.cjs.js");require("../../generated/bundles.cjs.js");require("../../generated/configuration.cjs.js");require("../../generated/desktop.cjs.js");const y=require("../../generated/entityLists.cjs.js");require("../../generated/events.cjs.js");require("../../generated/files.cjs.js");require("../../generated/folders.cjs.js");require("../../generated/inbox.cjs.js");require("../../generated/links.cjs.js");require("../../generated/market.cjs.js");require("../../generated/onboarding.cjs.js");require("../../generated/operations.cjs.js");require("../../generated/products.cjs.js");require("../../generated/projectDashboard.cjs.js");require("../../generated/projects.cjs.js");require("../../generated/reviewables.cjs.js");require("../../generated/services.cjs.js");require("../../generated/system.cjs.js");require("../../generated/tasks.cjs.js");require("../../generated/teams.cjs.js");require("../../generated/thumbnails.cjs.js");require("../../generated/uRIs.cjs.js");require("../../generated/users.cjs.js");require("../../generated/versions.cjs.js");require("../../generated/workfiles.cjs.js");require("../../generated/ynputCloud.cjs.js");require("../../generated/grouping.cjs.js");require("../../generated/views.cjs.js");require("lodash");require("react-toastify");const c=require("../../../util/getEntityId.cjs.js");require("../../../util/pubsub.cjs.js");const q={type:"entityListFolder",id:"LIST"},o=e=>{var t;return((t=e.data)==null?void 0:t.detail)||"Unknown lists folder error"},l=y.api.enhanceEndpoints({endpoints:{getEntityListFolders:{transformResponse:e=>e.folders||[],transformErrorResponse:o,providesTags:e=>e?[q,...e.map(t=>({type:"entityListFolder",id:t.id}))]:[q]},createEntityListFolder:{async onQueryStarted({projectName:e,entityListFolderPostModel:t},{dispatch:r,queryFulfilled:s}){const n=r(l.util.updateQueryData("getEntityListFolders",{projectName:e},u=>{const i={...t,id:t.id||c.getEntityId()};u.push(i)}));try{await s}catch{n.undo()}},transformErrorResponse:o,invalidatesTags:[q]},deleteEntityListFolder:{async onQueryStarted({projectName:e,folderId:t},{dispatch:r,queryFulfilled:s}){const n=r(l.util.updateQueryData("getEntityListFolders",{projectName:e},u=>{const i=u.findIndex(a=>a.id===t);i!==-1&&u.splice(i,1)}));try{await s}catch{n.undo()}},transformErrorResponse:o,invalidatesTags:(e,t,r)=>[{type:"entityListFolder",id:r.folderId},{type:"entityList",id:r.folderId}]},updateEntityListFolder:{async onQueryStarted({projectName:e,folderId:t,entityListFolderPatchModel:r},{dispatch:s,queryFulfilled:n}){const u=s(l.util.updateQueryData("getEntityListFolders",{projectName:e},i=>{const a=i.findIndex(d=>d.id===t);if(a!==-1){const d=i[a];Object.assign(d,{...d,...r,data:{...d.data,...r.data}})}}));try{await n}catch{u.undo()}},transformErrorResponse:o,invalidatesTags:(e,t,r)=>[{type:"entityListFolder",id:r.folderId}]}}}),{useGetEntityListFoldersQuery:p,useCreateEntityListFolderMutation:L,useDeleteEntityListFolderMutation:E,useUpdateEntityListFolderMutation:F}=l;exports.useCreateEntityListFolderMutation=L;exports.useDeleteEntityListFolderMutation=E;exports.useGetEntityListFoldersQuery=p;exports.useUpdateEntityListFolderMutation=F;
2
2
  //# sourceMappingURL=listFolders.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"listFolders.cjs.js","sources":["../../../../../../src/api/queries/entityLists/listFolders.ts"],"sourcesContent":["import { EntityListFoldersResponseModel } from '@shared/api/generated'\nimport { getListsApiEnhanced as listsApi } from './getLists'\n\nconst LIST_FOLDER_LIST_TAG = { type: 'entityListFolder' as const, id: 'LIST' }\n\n// QUERY TYPE RESULTS\n\ntype GetEntityListFoldersResult = NonNullable<EntityListFoldersResponseModel['folders']>\n\n// REDEFINE TYPES\nimport { DefinitionsFromApi, OverrideResultType, TagTypesFromApi } from '@reduxjs/toolkit/query'\nimport { getEntityId } from '@shared/util'\ntype Definitions = DefinitionsFromApi<typeof listsApi>\ntype TagTypes = TagTypesFromApi<typeof listsApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'getEntityListFolders'> & {\n getEntityListFolders: OverrideResultType<\n Definitions['getEntityListFolders'],\n GetEntityListFoldersResult\n >\n}\n\nconst transformErrorResponse = (error: any) => error.data?.detail || 'Unknown lists folder error'\n\nconst enhancedListsFoldersApi = listsApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n getEntityListFolders: {\n transformResponse: (response: EntityListFoldersResponseModel) => response.folders || [],\n transformErrorResponse,\n providesTags: (result) =>\n result\n ? [\n LIST_FOLDER_LIST_TAG,\n ...result.map((folder) => ({ type: 'entityListFolder', id: folder.id })),\n ]\n : [LIST_FOLDER_LIST_TAG],\n },\n createEntityListFolder: {\n async onQueryStarted(\n { projectName, entityListFolderPostModel },\n { dispatch, queryFulfilled },\n ) {\n // Optimistically add the new folder to the cache\n const patchResult = dispatch(\n enhancedListsFoldersApi.util.updateQueryData(\n 'getEntityListFolders',\n { projectName },\n (draft) => {\n // Create the optimistic folder with a temporary ID if none provided\n const newFolder = {\n ...entityListFolderPostModel,\n id: entityListFolderPostModel.id || getEntityId(),\n }\n draft.push(newFolder)\n },\n ),\n )\n\n try {\n await queryFulfilled\n } catch {\n // Undo the optimistic update if the mutation fails\n patchResult.undo()\n }\n },\n transformErrorResponse,\n invalidatesTags: [LIST_FOLDER_LIST_TAG],\n },\n deleteEntityListFolder: {\n async onQueryStarted({ projectName, folderId }, { dispatch, queryFulfilled }) {\n // Optimistically remove the folder from the cache\n const patchResult = dispatch(\n enhancedListsFoldersApi.util.updateQueryData(\n 'getEntityListFolders',\n { projectName },\n (draft) => {\n const folderIndex = draft.findIndex((folder) => folder.id === folderId)\n if (folderIndex !== -1) {\n draft.splice(folderIndex, 1)\n }\n },\n ),\n )\n\n try {\n await queryFulfilled\n } catch {\n // Undo the optimistic update if the mutation fails\n patchResult.undo()\n }\n },\n transformErrorResponse,\n invalidatesTags: (_r, _e, arg) => [\n { type: 'entityListFolder', id: arg.folderId },\n { type: 'entityList', id: arg.folderId },\n ],\n },\n updateEntityListFolder: {\n async onQueryStarted(\n { projectName, folderId, entityListFolderPatchModel },\n { dispatch, queryFulfilled },\n ) {\n // Optimistically update the folder in the cache\n const patchResult = dispatch(\n enhancedListsFoldersApi.util.updateQueryData(\n 'getEntityListFolders',\n { projectName },\n (draft) => {\n const folderIndex = draft.findIndex((folder) => folder.id === folderId)\n if (folderIndex !== -1) {\n const folder = draft[folderIndex]\n // Update the folder with the patch data\n Object.assign(folder, {\n ...folder,\n ...entityListFolderPatchModel,\n data: {\n ...folder.data,\n ...entityListFolderPatchModel.data,\n },\n })\n }\n },\n ),\n )\n\n try {\n await queryFulfilled\n } catch {\n // Undo the optimistic update if the mutation fails\n patchResult.undo()\n }\n },\n transformErrorResponse,\n invalidatesTags: (_r, _e, arg) => [{ type: 'entityListFolder', id: arg.folderId }],\n },\n },\n})\n\nexport const {\n useGetEntityListFoldersQuery,\n useCreateEntityListFolderMutation,\n useDeleteEntityListFolderMutation,\n useUpdateEntityListFolderMutation,\n} = enhancedListsFoldersApi\n"],"names":["LIST_FOLDER_LIST_TAG","transformErrorResponse","error","_a","enhancedListsFoldersApi","listsApi","response","result","folder","projectName","entityListFolderPostModel","dispatch","queryFulfilled","patchResult","draft","newFolder","getEntityId","folderId","folderIndex","_r","_e","arg","entityListFolderPatchModel","useGetEntityListFoldersQuery","useCreateEntityListFolderMutation","useDeleteEntityListFolderMutation","useUpdateEntityListFolderMutation"],"mappings":"4PAGA,MAAMA,EAAuB,CAAE,KAAM,mBAA6B,GAAI,MAAO,EAmBvEC,EAA0BC,GAAe,OAAA,QAAAC,EAAAD,EAAM,OAAN,YAAAC,EAAY,SAAU,8BAE/DC,EAA0BC,sBAAS,iBAA+C,CACtF,UAAW,CACT,qBAAsB,CACpB,kBAAoBC,GAA6CA,EAAS,SAAW,CAAC,EACtF,uBAAAL,EACA,aAAeM,GACbA,EACI,CACEP,EACA,GAAGO,EAAO,IAAKC,IAAY,CAAE,KAAM,mBAAoB,GAAIA,EAAO,IAAK,CACzE,EACA,CAACR,CAAoB,CAC7B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E,GAAIC,IAAgB,GAAI,CAChB,MAAAV,EAASM,EAAMI,CAAW,EAEhC,OAAO,OAAOV,EAAQ,CACpB,GAAGA,EACH,GAAGc,EACH,KAAM,CACJ,GAAGd,EAAO,KACV,GAAGc,EAA2B,IAAA,CAChC,CACD,CAAA,CACH,CACF,CAEJ,EAEI,GAAA,CACI,MAAAV,CAAA,MACA,CAENC,EAAY,KAAK,CAAA,CAErB,EACA,uBAAAZ,EACA,gBAAiB,CAACkB,EAAIC,EAAIC,IAAQ,CAAC,CAAE,KAAM,mBAAoB,GAAIA,EAAI,QAAU,CAAA,CAAA,CACnF,CAEJ,CAAC,EAEY,CACX,6BAAAE,EACA,kCAAAC,EACA,kCAAAC,EACA,kCAAAC,CACF,EAAItB"}
1
+ {"version":3,"file":"listFolders.cjs.js","sources":["../../../../../../src/api/queries/entityLists/listFolders.ts"],"sourcesContent":["import { entityListsApi, EntityListFoldersResponseModel } from '@shared/api/generated'\n\nconst LIST_FOLDER_LIST_TAG = { type: 'entityListFolder' as const, id: 'LIST' }\n\n// QUERY TYPE RESULTS\n\ntype GetEntityListFoldersResult = NonNullable<EntityListFoldersResponseModel['folders']>\n\n// REDEFINE TYPES\nimport { DefinitionsFromApi, OverrideResultType, TagTypesFromApi } from '@reduxjs/toolkit/query'\nimport { getEntityId } from '@shared/util'\ntype Definitions = DefinitionsFromApi<typeof entityListsApi>\ntype TagTypes = TagTypesFromApi<typeof entityListsApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'getEntityListFolders'> & {\n getEntityListFolders: OverrideResultType<\n Definitions['getEntityListFolders'],\n GetEntityListFoldersResult\n >\n}\n\nconst transformErrorResponse = (error: any) => error.data?.detail || 'Unknown lists folder error'\n\nconst enhancedListsFoldersApi = entityListsApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n getEntityListFolders: {\n transformResponse: (response: EntityListFoldersResponseModel) => response.folders || [],\n transformErrorResponse,\n providesTags: (result) =>\n result\n ? [\n LIST_FOLDER_LIST_TAG,\n ...result.map((folder) => ({ type: 'entityListFolder', id: folder.id })),\n ]\n : [LIST_FOLDER_LIST_TAG],\n },\n createEntityListFolder: {\n async onQueryStarted(\n { projectName, entityListFolderPostModel },\n { dispatch, queryFulfilled },\n ) {\n // Optimistically add the new folder to the cache\n const patchResult = dispatch(\n enhancedListsFoldersApi.util.updateQueryData(\n 'getEntityListFolders',\n { projectName },\n (draft) => {\n // Create the optimistic folder with a temporary ID if none provided\n const newFolder = {\n ...entityListFolderPostModel,\n id: entityListFolderPostModel.id || getEntityId(),\n }\n draft.push(newFolder)\n },\n ),\n )\n\n try {\n await queryFulfilled\n } catch {\n // Undo the optimistic update if the mutation fails\n patchResult.undo()\n }\n },\n transformErrorResponse,\n invalidatesTags: [LIST_FOLDER_LIST_TAG],\n },\n deleteEntityListFolder: {\n async onQueryStarted({ projectName, folderId }, { dispatch, queryFulfilled }) {\n // Optimistically remove the folder from the cache\n const patchResult = dispatch(\n enhancedListsFoldersApi.util.updateQueryData(\n 'getEntityListFolders',\n { projectName },\n (draft) => {\n const folderIndex = draft.findIndex((folder) => folder.id === folderId)\n if (folderIndex !== -1) {\n draft.splice(folderIndex, 1)\n }\n },\n ),\n )\n\n try {\n await queryFulfilled\n } catch {\n // Undo the optimistic update if the mutation fails\n patchResult.undo()\n }\n },\n transformErrorResponse,\n invalidatesTags: (_r, _e, arg) => [\n { type: 'entityListFolder', id: arg.folderId },\n { type: 'entityList', id: arg.folderId },\n ],\n },\n updateEntityListFolder: {\n async onQueryStarted(\n { projectName, folderId, entityListFolderPatchModel },\n { dispatch, queryFulfilled },\n ) {\n // Optimistically update the folder in the cache\n const patchResult = dispatch(\n enhancedListsFoldersApi.util.updateQueryData(\n 'getEntityListFolders',\n { projectName },\n (draft) => {\n const folderIndex = draft.findIndex((folder) => folder.id === folderId)\n if (folderIndex !== -1) {\n const folder = draft[folderIndex]\n // Update the folder with the patch data\n Object.assign(folder, {\n ...folder,\n ...entityListFolderPatchModel,\n data: {\n ...folder.data,\n ...entityListFolderPatchModel.data,\n },\n })\n }\n },\n ),\n )\n\n try {\n await queryFulfilled\n } catch {\n // Undo the optimistic update if the mutation fails\n patchResult.undo()\n }\n },\n transformErrorResponse,\n invalidatesTags: (_r, _e, arg) => [{ type: 'entityListFolder', id: arg.folderId }],\n },\n },\n})\n\nexport const {\n useGetEntityListFoldersQuery,\n useCreateEntityListFolderMutation,\n useDeleteEntityListFolderMutation,\n useUpdateEntityListFolderMutation,\n} = enhancedListsFoldersApi\n"],"names":["LIST_FOLDER_LIST_TAG","transformErrorResponse","error","_a","enhancedListsFoldersApi","entityListsApi","response","result","folder","projectName","entityListFolderPostModel","dispatch","queryFulfilled","patchResult","draft","newFolder","getEntityId","folderId","folderIndex","_r","_e","arg","entityListFolderPatchModel","useGetEntityListFoldersQuery","useCreateEntityListFolderMutation","useDeleteEntityListFolderMutation","useUpdateEntityListFolderMutation"],"mappings":"6zDAEA,MAAMA,EAAuB,CAAE,KAAM,mBAA6B,GAAI,MAAO,EAmBvEC,EAA0BC,GAAe,OAAA,QAAAC,EAAAD,EAAM,OAAN,YAAAC,EAAY,SAAU,8BAE/DC,EAA0BC,MAAe,iBAA+C,CAC5F,UAAW,CACT,qBAAsB,CACpB,kBAAoBC,GAA6CA,EAAS,SAAW,CAAC,EACtF,uBAAAL,EACA,aAAeM,GACbA,EACI,CACEP,EACA,GAAGO,EAAO,IAAKC,IAAY,CAAE,KAAM,mBAAoB,GAAIA,EAAO,IAAK,CACzE,EACA,CAACR,CAAoB,CAC7B,EACA,uBAAwB,CACtB,MAAM,eACJ,CAAE,YAAAS,EAAa,0BAAAC,CACf,EAAA,CAAE,SAAAC,EAAU,eAAAC,GACZ,CAEA,MAAMC,EAAcF,EAClBP,EAAwB,KAAK,gBAC3B,uBACA,CAAE,YAAAK,CAAY,EACbK,GAAU,CAET,MAAMC,EAAY,CAChB,GAAGL,EACH,GAAIA,EAA0B,IAAMM,EAAY,YAAA,CAClD,E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uBAAAZ,EACA,gBAAiB,CAACkB,EAAIC,EAAIC,IAAQ,CAAC,CAAE,KAAM,mBAAoB,GAAIA,EAAI,QAAU,CAAA,CAAA,CACnF,CAEJ,CAAC,EAEY,CACX,6BAAAE,EACA,kCAAAC,EACA,kCAAAC,EACA,kCAAAC,CACF,EAAItB"}
@@ -1,85 +1,122 @@
1
- import { getListsApiEnhanced as c } from "./getLists.es.js";
1
+ import "../../base/client.es.js";
2
+ import "../../generated/graphql.es.js";
3
+ import "../../generated/graphqlLinks.es.js";
4
+ import "../../generated/access.es.js";
5
+ import "../../generated/actions.es.js";
6
+ import "../../generated/activityFeed.es.js";
7
+ import "../../generated/addons.es.js";
8
+ import "../../generated/anatomy.es.js";
9
+ import "../../generated/attributes.es.js";
10
+ import "../../generated/authentication.es.js";
11
+ import "../../generated/bundles.es.js";
12
+ import "../../generated/configuration.es.js";
13
+ import "../../generated/desktop.es.js";
14
+ import { api as y } from "../../generated/entityLists.es.js";
15
+ import "../../generated/events.es.js";
16
+ import "../../generated/files.es.js";
17
+ import "../../generated/folders.es.js";
18
+ import "../../generated/inbox.es.js";
19
+ import "../../generated/links.es.js";
20
+ import "../../generated/market.es.js";
21
+ import "../../generated/onboarding.es.js";
22
+ import "../../generated/operations.es.js";
23
+ import "../../generated/products.es.js";
24
+ import "../../generated/projectDashboard.es.js";
25
+ import "../../generated/projects.es.js";
26
+ import "../../generated/reviewables.es.js";
27
+ import "../../generated/services.es.js";
28
+ import "../../generated/system.es.js";
29
+ import "../../generated/tasks.es.js";
30
+ import "../../generated/teams.es.js";
31
+ import "../../generated/thumbnails.es.js";
32
+ import "../../generated/uRIs.es.js";
33
+ import "../../generated/users.es.js";
34
+ import "../../generated/versions.es.js";
35
+ import "../../generated/workfiles.es.js";
36
+ import "../../generated/ynputCloud.es.js";
37
+ import "../../generated/grouping.es.js";
38
+ import "../../generated/views.es.js";
2
39
  import "lodash";
3
40
  import "react-toastify";
4
- import { getEntityId as u } from "../../../util/getEntityId.es.js";
41
+ import { getEntityId as c } from "../../../util/getEntityId.es.js";
5
42
  import "../../../util/pubsub.es.js";
6
- const p = { type: "entityListFolder", id: "LIST" }, l = (t) => {
7
- var e;
8
- return ((e = t.data) == null ? void 0 : e.detail) || "Unknown lists folder error";
9
- }, y = c.enhanceEndpoints({
43
+ const l = { type: "entityListFolder", id: "LIST" }, a = (t) => {
44
+ var i;
45
+ return ((i = t.data) == null ? void 0 : i.detail) || "Unknown lists folder error";
46
+ }, m = y.enhanceEndpoints({
10
47
  endpoints: {
11
48
  getEntityListFolders: {
12
49
  transformResponse: (t) => t.folders || [],
13
- transformErrorResponse: l,
50
+ transformErrorResponse: a,
14
51
  providesTags: (t) => t ? [
15
- p,
16
- ...t.map((e) => ({ type: "entityListFolder", id: e.id }))
17
- ] : [p]
52
+ l,
53
+ ...t.map((i) => ({ type: "entityListFolder", id: i.id }))
54
+ ] : [l]
18
55
  },
19
56
  createEntityListFolder: {
20
- async onQueryStarted({ projectName: t, entityListFolderPostModel: e }, { dispatch: i, queryFulfilled: d }) {
21
- const o = i(
22
- y.util.updateQueryData(
57
+ async onQueryStarted({ projectName: t, entityListFolderPostModel: i }, { dispatch: o, queryFulfilled: p }) {
58
+ const n = o(
59
+ m.util.updateQueryData(
23
60
  "getEntityListFolders",
24
61
  { projectName: t },
25
- (s) => {
26
- const n = {
27
- ...e,
28
- id: e.id || u()
62
+ (r) => {
63
+ const e = {
64
+ ...i,
65
+ id: i.id || c()
29
66
  };
30
- s.push(n);
67
+ r.push(e);
31
68
  }
32
69
  )
33
70
  );
34
71
  try {
35
- await d;
72
+ await p;
36
73
  } catch {
37
- o.undo();
74
+ n.undo();
38
75
  }
39
76
  },
40
- transformErrorResponse: l,
41
- invalidatesTags: [p]
77
+ transformErrorResponse: a,
78
+ invalidatesTags: [l]
42
79
  },
43
80
  deleteEntityListFolder: {
44
- async onQueryStarted({ projectName: t, folderId: e }, { dispatch: i, queryFulfilled: d }) {
45
- const o = i(
46
- y.util.updateQueryData(
81
+ async onQueryStarted({ projectName: t, folderId: i }, { dispatch: o, queryFulfilled: p }) {
82
+ const n = o(
83
+ m.util.updateQueryData(
47
84
  "getEntityListFolders",
48
85
  { projectName: t },
49
- (s) => {
50
- const n = s.findIndex((r) => r.id === e);
51
- n !== -1 && s.splice(n, 1);
86
+ (r) => {
87
+ const e = r.findIndex((d) => d.id === i);
88
+ e !== -1 && r.splice(e, 1);
52
89
  }
53
90
  )
54
91
  );
55
92
  try {
56
- await d;
93
+ await p;
57
94
  } catch {
58
- o.undo();
95
+ n.undo();
59
96
  }
60
97
  },
61
- transformErrorResponse: l,
62
- invalidatesTags: (t, e, i) => [
63
- { type: "entityListFolder", id: i.folderId },
64
- { type: "entityList", id: i.folderId }
98
+ transformErrorResponse: a,
99
+ invalidatesTags: (t, i, o) => [
100
+ { type: "entityListFolder", id: o.folderId },
101
+ { type: "entityList", id: o.folderId }
65
102
  ]
66
103
  },
67
104
  updateEntityListFolder: {
68
- async onQueryStarted({ projectName: t, folderId: e, entityListFolderPatchModel: i }, { dispatch: d, queryFulfilled: o }) {
69
- const s = d(
70
- y.util.updateQueryData(
105
+ async onQueryStarted({ projectName: t, folderId: i, entityListFolderPatchModel: o }, { dispatch: p, queryFulfilled: n }) {
106
+ const r = p(
107
+ m.util.updateQueryData(
71
108
  "getEntityListFolders",
72
109
  { projectName: t },
73
- (n) => {
74
- const r = n.findIndex((a) => a.id === e);
75
- if (r !== -1) {
76
- const a = n[r];
77
- Object.assign(a, {
78
- ...a,
79
- ...i,
110
+ (e) => {
111
+ const d = e.findIndex((s) => s.id === i);
112
+ if (d !== -1) {
113
+ const s = e[d];
114
+ Object.assign(s, {
115
+ ...s,
116
+ ...o,
80
117
  data: {
81
- ...a.data,
82
- ...i.data
118
+ ...s.data,
119
+ ...o.data
83
120
  }
84
121
  });
85
122
  }
@@ -87,25 +124,25 @@ const p = { type: "entityListFolder", id: "LIST" }, l = (t) => {
87
124
  )
88
125
  );
89
126
  try {
90
- await o;
127
+ await n;
91
128
  } catch {
92
- s.undo();
129
+ r.undo();
93
130
  }
94
131
  },
95
- transformErrorResponse: l,
96
- invalidatesTags: (t, e, i) => [{ type: "entityListFolder", id: i.folderId }]
132
+ transformErrorResponse: a,
133
+ invalidatesTags: (t, i, o) => [{ type: "entityListFolder", id: o.folderId }]
97
134
  }
98
135
  }
99
136
  }), {
100
- useGetEntityListFoldersQuery: g,
101
- useCreateEntityListFolderMutation: m,
102
- useDeleteEntityListFolderMutation: h,
103
- useUpdateEntityListFolderMutation: T
104
- } = y;
137
+ useGetEntityListFoldersQuery: ot,
138
+ useCreateEntityListFolderMutation: et,
139
+ useDeleteEntityListFolderMutation: rt,
140
+ useUpdateEntityListFolderMutation: pt
141
+ } = m;
105
142
  export {
106
- m as useCreateEntityListFolderMutation,
107
- h as useDeleteEntityListFolderMutation,
108
- g as useGetEntityListFoldersQuery,
109
- T as useUpdateEntityListFolderMutation
143
+ et as useCreateEntityListFolderMutation,
144
+ rt as useDeleteEntityListFolderMutation,
145
+ ot as useGetEntityListFoldersQuery,
146
+ pt as useUpdateEntityListFolderMutation
110
147
  };
111
148
  //# sourceMappingURL=listFolders.es.js.map