@ynput/ayon-frontend-shared 0.2.31 → 0.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/_virtual/index.cjs10.js +1 -1
  2. package/dist/_virtual/index.cjs5.js +1 -1
  3. package/dist/_virtual/index.cjs6.js +1 -1
  4. package/dist/_virtual/index.cjs8.js +1 -1
  5. package/dist/_virtual/index.cjs9.js +1 -1
  6. package/dist/_virtual/index.es10.js +5 -5
  7. package/dist/_virtual/index.es5.js +5 -2
  8. package/dist/_virtual/index.es5.js.map +1 -1
  9. package/dist/_virtual/index.es6.js +2 -5
  10. package/dist/_virtual/index.es6.js.map +1 -1
  11. package/dist/_virtual/index.es8.js +3 -3
  12. package/dist/_virtual/index.es9.js +5 -5
  13. package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +1 -1
  14. package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js.map +1 -1
  15. package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
  16. package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js +1 -1
  17. package/dist/node_modules/rehype/node_modules/vfile/lib/index.es.js +1 -1
  18. package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
  19. package/dist/node_modules/rehype-parse/lib/index.cjs.js.map +1 -1
  20. package/dist/node_modules/rehype-parse/lib/index.es.js +1 -1
  21. package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
  22. package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
  23. package/dist/node_modules/remove-accents/index.cjs.js +1 -1
  24. package/dist/node_modules/remove-accents/index.es.js +1 -1
  25. package/dist/shared/src/api/generated/access.cjs.js.map +1 -1
  26. package/dist/shared/src/api/generated/access.es.js.map +1 -1
  27. package/dist/shared/src/api/generated/authentication.cjs.js +1 -1
  28. package/dist/shared/src/api/generated/authentication.cjs.js.map +1 -1
  29. package/dist/shared/src/api/generated/authentication.es.js +9 -6
  30. package/dist/shared/src/api/generated/authentication.es.js.map +1 -1
  31. package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
  32. package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
  33. package/dist/shared/src/api/generated/folders.cjs.js.map +1 -1
  34. package/dist/shared/src/api/generated/folders.es.js.map +1 -1
  35. package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
  36. package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
  37. package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
  38. package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
  39. package/dist/shared/src/api/generated/links.cjs.js +1 -1
  40. package/dist/shared/src/api/generated/links.cjs.js.map +1 -1
  41. package/dist/shared/src/api/generated/links.es.js +13 -5
  42. package/dist/shared/src/api/generated/links.es.js.map +1 -1
  43. package/dist/shared/src/api/generated/onboarding.cjs.js.map +1 -1
  44. package/dist/shared/src/api/generated/onboarding.es.js.map +1 -1
  45. package/dist/shared/src/api/generated/operations.cjs.js +1 -1
  46. package/dist/shared/src/api/generated/operations.cjs.js.map +1 -1
  47. package/dist/shared/src/api/generated/operations.es.js +16 -0
  48. package/dist/shared/src/api/generated/operations.es.js.map +1 -1
  49. package/dist/shared/src/api/generated/products.cjs.js +1 -1
  50. package/dist/shared/src/api/generated/products.cjs.js.map +1 -1
  51. package/dist/shared/src/api/generated/products.es.js +6 -3
  52. package/dist/shared/src/api/generated/products.es.js.map +1 -1
  53. package/dist/shared/src/api/generated/projects.cjs.js +1 -1
  54. package/dist/shared/src/api/generated/projects.cjs.js.map +1 -1
  55. package/dist/shared/src/api/generated/projects.es.js +19 -0
  56. package/dist/shared/src/api/generated/projects.es.js.map +1 -1
  57. package/dist/shared/src/api/generated/system.cjs.js.map +1 -1
  58. package/dist/shared/src/api/generated/system.es.js.map +1 -1
  59. package/dist/shared/src/api/generated/tasks.cjs.js.map +1 -1
  60. package/dist/shared/src/api/generated/tasks.es.js.map +1 -1
  61. package/dist/shared/src/api/generated/users.cjs.js.map +1 -1
  62. package/dist/shared/src/api/generated/users.es.js.map +1 -1
  63. package/dist/shared/src/api/generated/versions.cjs.js.map +1 -1
  64. package/dist/shared/src/api/generated/versions.es.js.map +1 -1
  65. package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
  66. package/dist/shared/src/api/generated/views.es.js.map +1 -1
  67. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js +1 -1
  68. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js.map +1 -1
  69. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js +15 -10
  70. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js.map +1 -1
  71. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js +60 -0
  72. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js.map +1 -0
  73. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js +332 -0
  74. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js.map +1 -0
  75. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js +4 -4
  76. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js.map +1 -1
  77. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js +37 -33
  78. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js.map +1 -1
  79. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js +3 -5
  80. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js.map +1 -1
  81. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js +4 -6
  82. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js.map +1 -1
  83. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js +1 -2
  84. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js.map +1 -1
  85. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js +0 -1
  86. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js.map +1 -1
  87. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
  88. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
  89. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +555 -537
  90. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
  91. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +0 -1
  92. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
  93. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +4 -5
  94. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
  95. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  96. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  97. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +92 -91
  98. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  99. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.cjs.js.map +1 -1
  100. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.es.js.map +1 -1
  101. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +1 -1
  102. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js.map +1 -1
  103. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +126 -108
  104. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js.map +1 -1
  105. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js +2 -0
  106. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js.map +1 -0
  107. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js +9 -0
  108. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js.map +1 -0
  109. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
  110. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
  111. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +49 -48
  112. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
  113. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +38 -9
  114. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
  115. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +74 -39
  116. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
  117. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +24 -15
  118. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
  119. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +71 -59
  120. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
  121. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js +6 -6
  122. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js.map +1 -1
  123. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js +12 -12
  124. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js.map +1 -1
  125. package/dist/shared/src/util/columnConfigConverter.cjs.js +1 -1
  126. package/dist/shared/src/util/columnConfigConverter.cjs.js.map +1 -1
  127. package/dist/shared/src/util/columnConfigConverter.es.js +35 -33
  128. package/dist/shared/src/util/columnConfigConverter.es.js.map +1 -1
  129. package/dist/types/api/generated/access.d.ts +6 -0
  130. package/dist/types/api/generated/authentication.d.ts +6 -0
  131. package/dist/types/api/generated/entityLists.d.ts +7 -7
  132. package/dist/types/api/generated/folders.d.ts +2 -2
  133. package/dist/types/api/generated/graphql.d.ts +3 -1
  134. package/dist/types/api/generated/graphqlLinks.d.ts +21 -15
  135. package/dist/types/api/generated/links.d.ts +4 -0
  136. package/dist/types/api/generated/onboarding.d.ts +3 -0
  137. package/dist/types/api/generated/operations.d.ts +22 -1
  138. package/dist/types/api/generated/products.d.ts +23 -0
  139. package/dist/types/api/generated/projects.d.ts +63 -0
  140. package/dist/types/api/generated/representations.d.ts +1 -0
  141. package/dist/types/api/generated/system.d.ts +9 -2
  142. package/dist/types/api/generated/tasks.d.ts +1 -0
  143. package/dist/types/api/generated/users.d.ts +1 -1
  144. package/dist/types/api/generated/versions.d.ts +1 -0
  145. package/dist/types/api/generated/views.d.ts +50 -9
  146. package/dist/types/api/queries/authentication/getAuthentication.d.ts +1 -0
  147. package/dist/types/api/queries/overview/updateOverview.d.ts +2 -0
  148. package/dist/types/api/queries/project/getProject.d.ts +4 -0
  149. package/dist/types/components/ProjectTableSettings/RowHeightSettings.d.ts +3 -0
  150. package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +4 -0
  151. package/dist/types/containers/ProjectTreeTable/hooks/useDynamicRowHeight.d.ts +11 -0
  152. package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +2 -1
  153. package/dist/types/containers/ProjectTreeTable/widgets/EnumCellValue.d.ts +2 -1
  154. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import { api as i } from "../base/client.es.js";
2
- const n = i.injectEndpoints({
1
+ import { api as n } from "../base/client.es.js";
2
+ const i = n.injectEndpoints({
3
3
  endpoints: (t) => ({
4
4
  listLinkTypes: t.query({
5
5
  query: (e) => ({ url: `/api/projects/${e.projectName}/links/types` })
@@ -21,19 +21,27 @@ const n = i.injectEndpoints({
21
21
  query: (e) => ({
22
22
  url: `/api/projects/${e.projectName}/links`,
23
23
  method: "POST",
24
- body: e.createLinkRequestModel
24
+ body: e.createLinkRequestModel,
25
+ headers: {
26
+ "x-sender": e["x-sender"],
27
+ "x-sender-type": e["x-sender-type"]
28
+ }
25
29
  })
26
30
  }),
27
31
  deleteEntityLink: t.mutation({
28
32
  query: (e) => ({
29
33
  url: `/api/projects/${e.projectName}/links/${e.linkId}`,
30
- method: "DELETE"
34
+ method: "DELETE",
35
+ headers: {
36
+ "x-sender": e["x-sender"],
37
+ "x-sender-type": e["x-sender-type"]
38
+ }
31
39
  })
32
40
  })
33
41
  }),
34
42
  overrideExisting: !1
35
43
  });
36
44
  export {
37
- n as api
45
+ i as api
38
46
  };
39
47
  //# sourceMappingURL=links.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"links.es.js","sources":["../../../../../src/api/generated/links.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listLinkTypes: build.query<ListLinkTypesApiResponse, ListLinkTypesApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/links/types` }),\n }),\n saveLinkType: build.mutation<SaveLinkTypeApiResponse, SaveLinkTypeApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links/types/${queryArg.linkType}`,\n method: 'PUT',\n body: queryArg.createLinkTypeRequestModel,\n }),\n }),\n deleteLinkType: build.mutation<DeleteLinkTypeApiResponse, DeleteLinkTypeApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links/types/${queryArg.linkType}`,\n method: 'DELETE',\n }),\n }),\n createEntityLink: build.mutation<CreateEntityLinkApiResponse, CreateEntityLinkApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links`,\n method: 'POST',\n body: queryArg.createLinkRequestModel,\n }),\n }),\n deleteEntityLink: build.mutation<DeleteEntityLinkApiResponse, DeleteEntityLinkApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links/${queryArg.linkId}`,\n method: 'DELETE',\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListLinkTypesApiResponse = /** status 200 Successful Response */ LinkTypeListResponse\nexport type ListLinkTypesApiArg = {\n projectName: string\n}\nexport type SaveLinkTypeApiResponse = unknown\nexport type SaveLinkTypeApiArg = {\n projectName: string\n linkType: string\n createLinkTypeRequestModel: CreateLinkTypeRequestModel\n}\nexport type DeleteLinkTypeApiResponse = unknown\nexport type DeleteLinkTypeApiArg = {\n projectName: string\n linkType: string\n}\nexport type CreateEntityLinkApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateEntityLinkApiArg = {\n projectName: string\n createLinkRequestModel: CreateLinkRequestModel\n}\nexport type DeleteEntityLinkApiResponse = unknown\nexport type DeleteEntityLinkApiArg = {\n projectName: string\n linkId: string\n}\nexport type LinkTypeModel = {\n /** Name of the link type */\n name: string\n /** Type of the link */\n linkType: string\n /** Input entity type */\n inputType: string\n /** Output entity type */\n outputType: string\n /** Additional link type data */\n data?: Record<string, any>\n}\nexport type LinkTypeListResponse = {\n /** List of link types defined in the project. */\n types: LinkTypeModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateLinkTypeRequestModel = {\n /** Additional link type data (appearance, description, etc.). */\n data?: Record<string, any>\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type CreateLinkRequestModel = {\n /** ID of the link to create. If not provided, will be generated. */\n id?: string\n /** The ID of the input entity. */\n input: string\n /** The ID of the output entity. */\n output: string\n /** The name of the link. */\n name?: string\n /** Link type to create. */\n linkType?: string\n /** Additional data for the link. */\n data?: Record<string, any>\n /** Link type to create. This is deprecated. Use linkType instead. */\n link?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,eAAeA,EAAM,MAAqD;AAAA,MACxE,OAAO,CAACC,OAAc,EAAE,KAAK,iBAAiBA,EAAS,WAAW,eAAe;AAAA,IAAA,CAClF;AAAA,IACD,cAAcD,EAAM,SAAsD;AAAA,MACxE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,gBAAgBA,EAAS,QAAQ;AAAA,QAC3E,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,SAA0D;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,gBAAgBA,EAAS,QAAQ;AAAA,QAC3E,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"links.es.js","sources":["../../../../../src/api/generated/links.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listLinkTypes: build.query<ListLinkTypesApiResponse, ListLinkTypesApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/links/types` }),\n }),\n saveLinkType: build.mutation<SaveLinkTypeApiResponse, SaveLinkTypeApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links/types/${queryArg.linkType}`,\n method: 'PUT',\n body: queryArg.createLinkTypeRequestModel,\n }),\n }),\n deleteLinkType: build.mutation<DeleteLinkTypeApiResponse, DeleteLinkTypeApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links/types/${queryArg.linkType}`,\n method: 'DELETE',\n }),\n }),\n createEntityLink: build.mutation<CreateEntityLinkApiResponse, CreateEntityLinkApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links`,\n method: 'POST',\n body: queryArg.createLinkRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteEntityLink: build.mutation<DeleteEntityLinkApiResponse, DeleteEntityLinkApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/links/${queryArg.linkId}`,\n method: 'DELETE',\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 ListLinkTypesApiResponse = /** status 200 Successful Response */ LinkTypeListResponse\nexport type ListLinkTypesApiArg = {\n projectName: string\n}\nexport type SaveLinkTypeApiResponse = unknown\nexport type SaveLinkTypeApiArg = {\n projectName: string\n linkType: string\n createLinkTypeRequestModel: CreateLinkTypeRequestModel\n}\nexport type DeleteLinkTypeApiResponse = unknown\nexport type DeleteLinkTypeApiArg = {\n projectName: string\n linkType: string\n}\nexport type CreateEntityLinkApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateEntityLinkApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n createLinkRequestModel: CreateLinkRequestModel\n}\nexport type DeleteEntityLinkApiResponse = unknown\nexport type DeleteEntityLinkApiArg = {\n projectName: string\n linkId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type LinkTypeModel = {\n /** Name of the link type */\n name: string\n /** Type of the link */\n linkType: string\n /** Input entity type */\n inputType: string\n /** Output entity type */\n outputType: string\n /** Additional link type data */\n data?: Record<string, any>\n}\nexport type LinkTypeListResponse = {\n /** List of link types defined in the project. */\n types: LinkTypeModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateLinkTypeRequestModel = {\n /** Additional link type data (appearance, description, etc.). */\n data?: Record<string, any>\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type CreateLinkRequestModel = {\n /** ID of the link to create. If not provided, will be generated. */\n id?: string\n /** The ID of the input entity. */\n input: string\n /** The ID of the output entity. */\n output: string\n /** The name of the link. */\n name?: string\n /** Link type to create. */\n linkType?: string\n /** Additional data for the link. */\n data?: Record<string, any>\n /** Link type to create. This is deprecated. Use linkType instead. */\n link?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,eAAeA,EAAM,MAAqD;AAAA,MACxE,OAAO,CAACC,OAAc,EAAE,KAAK,iBAAiBA,EAAS,WAAW,eAAe;AAAA,IAAA,CAClF;AAAA,IACD,cAAcD,EAAM,SAAsD;AAAA,MACxE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,gBAAgBA,EAAS,QAAQ;AAAA,QAC3E,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,SAA0D;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,gBAAgBA,EAAS,QAAQ;AAAA,QAC3E,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,UAAUA,EAAS,MAAM;AAAA,QACnE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding.cjs.js","sources":["../../../../../src/api/generated/onboarding.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n createFirstAdmin: build.mutation<CreateFirstAdminApiResponse, CreateFirstAdminApiArg>({\n query: (queryArg) => ({\n url: `/api/onboarding/initialize`,\n method: 'POST',\n body: queryArg.initializeRequestModel,\n }),\n }),\n abortOnboarding: build.mutation<AbortOnboardingApiResponse, AbortOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/abort`, method: 'POST' }),\n }),\n restartOnboarding: build.mutation<RestartOnboardingApiResponse, RestartOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/restart`, method: 'POST' }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type CreateFirstAdminApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type CreateFirstAdminApiArg = {\n initializeRequestModel: InitializeRequestModel\n}\nexport type AbortOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type AbortOnboardingApiArg = void\nexport type RestartOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type RestartOnboardingApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type LoginResponseModel = {\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type InitializeRequestModel = {\n /** Username */\n adminName: string\n /** Password */\n adminPassword: string\n /** Full name */\n adminFullName?: string\n adminEmail?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,iBAAkBA,EAAM,SAA8D,CACpF,MAAQC,IAAc,CACpB,IAAK,6BACL,OAAQ,OACR,KAAMA,EAAS,sBACjB,EAAA,CACD,EACD,gBAAiBD,EAAM,SAA4D,CACjF,MAAO,KAAO,CAAE,IAAK,wBAAyB,OAAQ,MAAO,EAAA,CAC9D,EACD,kBAAmBA,EAAM,SAAgE,CACvF,MAAO,KAAO,CAAE,IAAK,0BAA2B,OAAQ,MAAO,EAChE,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"onboarding.cjs.js","sources":["../../../../../src/api/generated/onboarding.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n createFirstAdmin: build.mutation<CreateFirstAdminApiResponse, CreateFirstAdminApiArg>({\n query: (queryArg) => ({\n url: `/api/onboarding/initialize`,\n method: 'POST',\n body: queryArg.initializeRequestModel,\n }),\n }),\n abortOnboarding: build.mutation<AbortOnboardingApiResponse, AbortOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/abort`, method: 'POST' }),\n }),\n restartOnboarding: build.mutation<RestartOnboardingApiResponse, RestartOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/restart`, method: 'POST' }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type CreateFirstAdminApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type CreateFirstAdminApiArg = {\n initializeRequestModel: InitializeRequestModel\n}\nexport type AbortOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type AbortOnboardingApiArg = void\nexport type RestartOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type RestartOnboardingApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type LoginResponseModel = {\n /** Text message, which may be displayed to the user */\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n /** URL to redirect the user after login */\n redirectUrl?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type InitializeRequestModel = {\n /** Username */\n adminName: string\n /** Password */\n adminPassword: string\n /** Full name */\n adminFullName?: string\n adminEmail?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,iBAAkBA,EAAM,SAA8D,CACpF,MAAQC,IAAc,CACpB,IAAK,6BACL,OAAQ,OACR,KAAMA,EAAS,sBACjB,EAAA,CACD,EACD,gBAAiBD,EAAM,SAA4D,CACjF,MAAO,KAAO,CAAE,IAAK,wBAAyB,OAAQ,MAAO,EAAA,CAC9D,EACD,kBAAmBA,EAAM,SAAgE,CACvF,MAAO,KAAO,CAAE,IAAK,0BAA2B,OAAQ,MAAO,EAChE,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding.es.js","sources":["../../../../../src/api/generated/onboarding.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n createFirstAdmin: build.mutation<CreateFirstAdminApiResponse, CreateFirstAdminApiArg>({\n query: (queryArg) => ({\n url: `/api/onboarding/initialize`,\n method: 'POST',\n body: queryArg.initializeRequestModel,\n }),\n }),\n abortOnboarding: build.mutation<AbortOnboardingApiResponse, AbortOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/abort`, method: 'POST' }),\n }),\n restartOnboarding: build.mutation<RestartOnboardingApiResponse, RestartOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/restart`, method: 'POST' }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type CreateFirstAdminApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type CreateFirstAdminApiArg = {\n initializeRequestModel: InitializeRequestModel\n}\nexport type AbortOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type AbortOnboardingApiArg = void\nexport type RestartOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type RestartOnboardingApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type LoginResponseModel = {\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type InitializeRequestModel = {\n /** Username */\n adminName: string\n /** Password */\n adminPassword: string\n /** Full name */\n adminFullName?: string\n adminEmail?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,kBAAkBA,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,SAA4D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,yBAAyB,QAAQ,OAAO;AAAA,IAAA,CAC9D;AAAA,IACD,mBAAmBA,EAAM,SAAgE;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,2BAA2B,QAAQ,OAAO;AAAA,IAChE,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"onboarding.es.js","sources":["../../../../../src/api/generated/onboarding.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n createFirstAdmin: build.mutation<CreateFirstAdminApiResponse, CreateFirstAdminApiArg>({\n query: (queryArg) => ({\n url: `/api/onboarding/initialize`,\n method: 'POST',\n body: queryArg.initializeRequestModel,\n }),\n }),\n abortOnboarding: build.mutation<AbortOnboardingApiResponse, AbortOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/abort`, method: 'POST' }),\n }),\n restartOnboarding: build.mutation<RestartOnboardingApiResponse, RestartOnboardingApiArg>({\n query: () => ({ url: `/api/onboarding/restart`, method: 'POST' }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type CreateFirstAdminApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type CreateFirstAdminApiArg = {\n initializeRequestModel: InitializeRequestModel\n}\nexport type AbortOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type AbortOnboardingApiArg = void\nexport type RestartOnboardingApiResponse = /** status 200 Successful Response */ any\nexport type RestartOnboardingApiArg = void\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type LoginResponseModel = {\n /** Text message, which may be displayed to the user */\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n /** URL to redirect the user after login */\n redirectUrl?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type InitializeRequestModel = {\n /** Username */\n adminName: string\n /** Password */\n adminPassword: string\n /** Full name */\n adminFullName?: string\n adminEmail?: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,kBAAkBA,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,SAA4D;AAAA,MACjF,OAAO,OAAO,EAAE,KAAK,yBAAyB,QAAQ,OAAO;AAAA,IAAA,CAC9D;AAAA,IACD,mBAAmBA,EAAM,SAAgE;AAAA,MACvF,OAAO,OAAO,EAAE,KAAK,2BAA2B,QAAQ,OAAO;AAAA,IAChE,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base/client.cjs.js"),i=o.api.injectEndpoints({endpoints:t=>({eventOperations:t.mutation({query:e=>({url:"/api/eventops",method:"POST",body:e.eventOperationModel})}),activitiesOperations:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/operations/activities`,method:"POST",body:e.activityOperationsRequestModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),operations:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/operations`,method:"POST",body:e.operationsRequestModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})})}),overrideExisting:!1});exports.api=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base/client.cjs.js"),n=o.api.injectEndpoints({endpoints:t=>({eventOperations:t.mutation({query:e=>({url:"/api/eventops",method:"POST",body:e.eventOperationModel})}),activitiesOperations:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/operations/activities`,method:"POST",body:e.activityOperationsRequestModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),operations:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/operations`,method:"POST",body:e.operationsRequestModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),backgroundOperations:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/operations/background`,method:"POST",body:e.operationsRequestModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),getBackgroundOperationsStatus:t.query({query:e=>({url:`/api/projects/${e.projectName}/operations/background/${e.taskId}`})})}),overrideExisting:!1});exports.api=n;
2
2
  //# sourceMappingURL=operations.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.cjs.js","sources":["../../../../../src/api/generated/operations.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n eventOperations: build.mutation<EventOperationsApiResponse, EventOperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/eventops`,\n method: 'POST',\n body: queryArg.eventOperationModel,\n }),\n }),\n activitiesOperations: build.mutation<\n ActivitiesOperationsApiResponse,\n ActivitiesOperationsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/activities`,\n method: 'POST',\n body: queryArg.activityOperationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n operations: build.mutation<OperationsApiResponse, OperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations`,\n method: 'POST',\n body: queryArg.operationsRequestModel,\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 EventOperationsApiResponse = /** status 200 Successful Response */ any\nexport type EventOperationsApiArg = {\n eventOperationModel: EventOperationModel\n}\nexport type ActivitiesOperationsApiResponse =\n /** status 200 Successful Response */ ActivityOperationsResponseModel\nexport type ActivitiesOperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n activityOperationsRequestModel: ActivityOperationsRequestModel\n}\nexport type OperationsApiResponse = /** status 200 Successful Response */ OperationsResponseModel\nexport type OperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n operationsRequestModel: OperationsRequestModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\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 EventOperationModel = {\n type: 'delete' | 'restart' | 'abort'\n /** Filter source events */\n filter: QueryFilter\n}\nexport type ActivityOperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n success: boolean\n status?: number\n detail?: string\n /** `None` if type is `create` and the operation fails. */\n activityId?: string\n}\nexport type ActivityOperationsResponseModel = {\n operations?: ActivityOperationResponseModel[]\n success: boolean\n}\nexport type ActivityOperationModel = {\n /** identifier manually or automatically assigned to each operation */\n id?: string\n type: 'create' | 'update' | 'delete'\n /** ID of the activity. None for create */\n activityId?: string\n /** Data to be used for create or update. Ignored for delete.See create/patch activity endpoint for details */\n data?: Record<string, any>\n}\nexport type ActivityOperationsRequestModel = {\n operations?: ActivityOperationModel[]\n canFail?: boolean\n}\nexport type OperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n success: boolean\n status: number\n errorCode?: string\n detail?: string\n}\nexport type OperationsResponseModel = {\n operations?: OperationResponseModel[]\n success: boolean\n}\nexport type OperationModel = {\n id?: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n data?: Record<string, any>\n force?: boolean\n asUser?: string\n}\nexport type OperationsRequestModel = {\n operations?: OperationModel[]\n canFail?: boolean\n waitForEvents?: boolean\n raiseOnError?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,gBAAiBA,EAAM,SAA4D,CACjF,MAAQC,IAAc,CACpB,IAAK,gBACL,OAAQ,OACR,KAAMA,EAAS,mBACjB,EAAA,CACD,EACD,qBAAsBD,EAAM,SAG1B,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,yBAC1C,OAAQ,OACR,KAAMA,EAAS,+BACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,cAC1C,OAAQ,OACR,KAAMA,EAAS,uBACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"operations.cjs.js","sources":["../../../../../src/api/generated/operations.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n eventOperations: build.mutation<EventOperationsApiResponse, EventOperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/eventops`,\n method: 'POST',\n body: queryArg.eventOperationModel,\n }),\n }),\n activitiesOperations: build.mutation<\n ActivitiesOperationsApiResponse,\n ActivitiesOperationsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/activities`,\n method: 'POST',\n body: queryArg.activityOperationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n operations: build.mutation<OperationsApiResponse, OperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations`,\n method: 'POST',\n body: queryArg.operationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n backgroundOperations: build.mutation<\n BackgroundOperationsApiResponse,\n BackgroundOperationsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/background`,\n method: 'POST',\n body: queryArg.operationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getBackgroundOperationsStatus: build.query<\n GetBackgroundOperationsStatusApiResponse,\n GetBackgroundOperationsStatusApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/background/${queryArg.taskId}`,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type EventOperationsApiResponse = /** status 200 Successful Response */ any\nexport type EventOperationsApiArg = {\n eventOperationModel: EventOperationModel\n}\nexport type ActivitiesOperationsApiResponse =\n /** status 200 Successful Response */ ActivityOperationsResponseModel\nexport type ActivitiesOperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n activityOperationsRequestModel: ActivityOperationsRequestModel\n}\nexport type OperationsApiResponse = /** status 200 Successful Response */ OperationsResponseModel\nexport type OperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n operationsRequestModel: OperationsRequestModel\n}\nexport type BackgroundOperationsApiResponse =\n /** status 200 Successful Response */ BackgroundOperationsResponseModel\nexport type BackgroundOperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n operationsRequestModel: OperationsRequestModel\n}\nexport type GetBackgroundOperationsStatusApiResponse =\n /** status 200 Successful Response */ BackgroundOperationsResponseModel\nexport type GetBackgroundOperationsStatusApiArg = {\n taskId: string\n projectName: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type 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 EventOperationModel = {\n type: 'delete' | 'restart' | 'abort'\n /** Filter source events */\n filter: QueryFilter\n}\nexport type ActivityOperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n success: boolean\n status?: number\n detail?: string\n /** `None` if type is `create` and the operation fails. */\n activityId?: string\n}\nexport type ActivityOperationsResponseModel = {\n operations?: ActivityOperationResponseModel[]\n success: boolean\n}\nexport type ActivityOperationModel = {\n /** identifier manually or automatically assigned to each operation */\n id?: string\n type: 'create' | 'update' | 'delete'\n /** ID of the activity. None for create */\n activityId?: string\n /** Data to be used for create or update. Ignored for delete.See create/patch activity endpoint for details */\n data?: Record<string, any>\n}\nexport type ActivityOperationsRequestModel = {\n operations?: ActivityOperationModel[]\n canFail?: boolean\n}\nexport type OperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n success: boolean\n status: number\n errorCode?: string\n detail?: string\n}\nexport type OperationsResponseModel = {\n operations?: OperationResponseModel[]\n success?: boolean\n}\nexport type OperationModel = {\n id?: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n data?: Record<string, any>\n force?: boolean\n asUser?: string\n}\nexport type OperationsRequestModel = {\n operations?: OperationModel[]\n canFail?: boolean\n waitForEvents?: boolean\n raiseOnError?: boolean\n}\nexport type BackgroundOperationsResponseModel = {\n id: string\n status?: 'pending' | 'in_progress' | 'completed'\n result?: OperationsResponseModel\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,gBAAiBA,EAAM,SAA4D,CACjF,MAAQC,IAAc,CACpB,IAAK,gBACL,OAAQ,OACR,KAAMA,EAAS,mBACjB,EAAA,CACD,EACD,qBAAsBD,EAAM,SAG1B,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,yBAC1C,OAAQ,OACR,KAAMA,EAAS,+BACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,cAC1C,OAAQ,OACR,KAAMA,EAAS,uBACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,qBAAsBD,EAAM,SAG1B,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,yBAC1C,OAAQ,OACR,KAAMA,EAAS,uBACf,QAAS,CACP,WAAYA,EAAS,UAAU,EAC/B,gBAAiBA,EAAS,eAAe,CAAA,CAE7C,EAAA,CACD,EACD,8BAA+BD,EAAM,MAGnC,CACA,MAAQC,IAAc,CACpB,IAAK,iBAAiBA,EAAS,WAAW,0BAA0BA,EAAS,MAAM,EACrF,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -29,6 +29,22 @@ const n = o.injectEndpoints({
29
29
  "x-sender-type": e["x-sender-type"]
30
30
  }
31
31
  })
32
+ }),
33
+ backgroundOperations: t.mutation({
34
+ query: (e) => ({
35
+ url: `/api/projects/${e.projectName}/operations/background`,
36
+ method: "POST",
37
+ body: e.operationsRequestModel,
38
+ headers: {
39
+ "x-sender": e["x-sender"],
40
+ "x-sender-type": e["x-sender-type"]
41
+ }
42
+ })
43
+ }),
44
+ getBackgroundOperationsStatus: t.query({
45
+ query: (e) => ({
46
+ url: `/api/projects/${e.projectName}/operations/background/${e.taskId}`
47
+ })
32
48
  })
33
49
  }),
34
50
  overrideExisting: !1
@@ -1 +1 @@
1
- {"version":3,"file":"operations.es.js","sources":["../../../../../src/api/generated/operations.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n eventOperations: build.mutation<EventOperationsApiResponse, EventOperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/eventops`,\n method: 'POST',\n body: queryArg.eventOperationModel,\n }),\n }),\n activitiesOperations: build.mutation<\n ActivitiesOperationsApiResponse,\n ActivitiesOperationsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/activities`,\n method: 'POST',\n body: queryArg.activityOperationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n operations: build.mutation<OperationsApiResponse, OperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations`,\n method: 'POST',\n body: queryArg.operationsRequestModel,\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 EventOperationsApiResponse = /** status 200 Successful Response */ any\nexport type EventOperationsApiArg = {\n eventOperationModel: EventOperationModel\n}\nexport type ActivitiesOperationsApiResponse =\n /** status 200 Successful Response */ ActivityOperationsResponseModel\nexport type ActivitiesOperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n activityOperationsRequestModel: ActivityOperationsRequestModel\n}\nexport type OperationsApiResponse = /** status 200 Successful Response */ OperationsResponseModel\nexport type OperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n operationsRequestModel: OperationsRequestModel\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\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 EventOperationModel = {\n type: 'delete' | 'restart' | 'abort'\n /** Filter source events */\n filter: QueryFilter\n}\nexport type ActivityOperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n success: boolean\n status?: number\n detail?: string\n /** `None` if type is `create` and the operation fails. */\n activityId?: string\n}\nexport type ActivityOperationsResponseModel = {\n operations?: ActivityOperationResponseModel[]\n success: boolean\n}\nexport type ActivityOperationModel = {\n /** identifier manually or automatically assigned to each operation */\n id?: string\n type: 'create' | 'update' | 'delete'\n /** ID of the activity. None for create */\n activityId?: string\n /** Data to be used for create or update. Ignored for delete.See create/patch activity endpoint for details */\n data?: Record<string, any>\n}\nexport type ActivityOperationsRequestModel = {\n operations?: ActivityOperationModel[]\n canFail?: boolean\n}\nexport type OperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n success: boolean\n status: number\n errorCode?: string\n detail?: string\n}\nexport type OperationsResponseModel = {\n operations?: OperationResponseModel[]\n success: boolean\n}\nexport type OperationModel = {\n id?: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n data?: Record<string, any>\n force?: boolean\n asUser?: string\n}\nexport type OperationsRequestModel = {\n operations?: OperationModel[]\n canFail?: boolean\n waitForEvents?: boolean\n raiseOnError?: boolean\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,iBAAiBA,EAAM,SAA4D;AAAA,MACjF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,SAG1B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"operations.es.js","sources":["../../../../../src/api/generated/operations.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n eventOperations: build.mutation<EventOperationsApiResponse, EventOperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/eventops`,\n method: 'POST',\n body: queryArg.eventOperationModel,\n }),\n }),\n activitiesOperations: build.mutation<\n ActivitiesOperationsApiResponse,\n ActivitiesOperationsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/activities`,\n method: 'POST',\n body: queryArg.activityOperationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n operations: build.mutation<OperationsApiResponse, OperationsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations`,\n method: 'POST',\n body: queryArg.operationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n backgroundOperations: build.mutation<\n BackgroundOperationsApiResponse,\n BackgroundOperationsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/background`,\n method: 'POST',\n body: queryArg.operationsRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getBackgroundOperationsStatus: build.query<\n GetBackgroundOperationsStatusApiResponse,\n GetBackgroundOperationsStatusApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/operations/background/${queryArg.taskId}`,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type EventOperationsApiResponse = /** status 200 Successful Response */ any\nexport type EventOperationsApiArg = {\n eventOperationModel: EventOperationModel\n}\nexport type ActivitiesOperationsApiResponse =\n /** status 200 Successful Response */ ActivityOperationsResponseModel\nexport type ActivitiesOperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n activityOperationsRequestModel: ActivityOperationsRequestModel\n}\nexport type OperationsApiResponse = /** status 200 Successful Response */ OperationsResponseModel\nexport type OperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n operationsRequestModel: OperationsRequestModel\n}\nexport type BackgroundOperationsApiResponse =\n /** status 200 Successful Response */ BackgroundOperationsResponseModel\nexport type BackgroundOperationsApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n operationsRequestModel: OperationsRequestModel\n}\nexport type GetBackgroundOperationsStatusApiResponse =\n /** status 200 Successful Response */ BackgroundOperationsResponseModel\nexport type GetBackgroundOperationsStatusApiArg = {\n taskId: string\n projectName: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type 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 EventOperationModel = {\n type: 'delete' | 'restart' | 'abort'\n /** Filter source events */\n filter: QueryFilter\n}\nexport type ActivityOperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n success: boolean\n status?: number\n detail?: string\n /** `None` if type is `create` and the operation fails. */\n activityId?: string\n}\nexport type ActivityOperationsResponseModel = {\n operations?: ActivityOperationResponseModel[]\n success: boolean\n}\nexport type ActivityOperationModel = {\n /** identifier manually or automatically assigned to each operation */\n id?: string\n type: 'create' | 'update' | 'delete'\n /** ID of the activity. None for create */\n activityId?: string\n /** Data to be used for create or update. Ignored for delete.See create/patch activity endpoint for details */\n data?: Record<string, any>\n}\nexport type ActivityOperationsRequestModel = {\n operations?: ActivityOperationModel[]\n canFail?: boolean\n}\nexport type OperationResponseModel = {\n id: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n success: boolean\n status: number\n errorCode?: string\n detail?: string\n}\nexport type OperationsResponseModel = {\n operations?: OperationResponseModel[]\n success?: boolean\n}\nexport type OperationModel = {\n id?: string\n type: 'create' | 'update' | 'delete'\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n entityId?: string\n data?: Record<string, any>\n force?: boolean\n asUser?: string\n}\nexport type OperationsRequestModel = {\n operations?: OperationModel[]\n canFail?: boolean\n waitForEvents?: boolean\n raiseOnError?: boolean\n}\nexport type BackgroundOperationsResponseModel = {\n id: string\n status?: 'pending' | 'in_progress' | 'completed'\n result?: OperationsResponseModel\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,iBAAiBA,EAAM,SAA4D;AAAA,MACjF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,SAG1B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,SAG1B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW;AAAA,QAC1C,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,+BAA+BD,EAAM,MAGnC;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,iBAAiBA,EAAS,WAAW,0BAA0BA,EAAS,MAAM;AAAA,MACrF;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 d=require("../base/client.cjs.js"),o=d.api.injectEndpoints({endpoints:t=>({getProduct:t.query({query:e=>({url:`/api/projects/${e.projectName}/products/${e.productId}`})}),deleteProduct:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/products/${e.productId}`,method:"DELETE",headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),updateProduct:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/products/${e.productId}`,method:"PATCH",body:e.productPatchModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),createProduct:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/products`,method:"POST",body:e.productPostModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),getProductionMetrics:t.query({query:e=>({url:"/api/metrics",params:{system:e.system,saturated:e.saturated}})})}),overrideExisting:!1});exports.api=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base/client.cjs.js"),d=o.api.injectEndpoints({endpoints:t=>({getProduct:t.query({query:e=>({url:`/api/projects/${e.projectName}/products/${e.productId}`})}),deleteProduct:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/products/${e.productId}`,method:"DELETE",headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),updateProduct:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/products/${e.productId}`,method:"PATCH",body:e.productPatchModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),createProduct:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/products`,method:"POST",body:e.productPostModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),getProductTypes:t.query({query:e=>({url:`/api/projects/${e.projectName}/productTypes`})}),getProductionMetrics:t.query({query:e=>({url:"/api/metrics",params:{system:e.system,saturated:e.saturated}})})}),overrideExisting:!1});exports.api=d;
2
2
  //# sourceMappingURL=products.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.cjs.js","sources":["../../../../../src/api/generated/products.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getProduct: build.query<GetProductApiResponse, GetProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n }),\n }),\n deleteProduct: build.mutation<DeleteProductApiResponse, DeleteProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProduct: build.mutation<UpdateProductApiResponse, UpdateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'PATCH',\n body: queryArg.productPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createProduct: build.mutation<CreateProductApiResponse, CreateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products`,\n method: 'POST',\n body: queryArg.productPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetProductApiResponse = /** status 200 Successful Response */ ProductModel\nexport type GetProductApiArg = {\n projectName: string\n productId: string\n}\nexport type DeleteProductApiResponse = unknown\nexport type DeleteProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProductApiResponse = unknown\nexport type UpdateProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPatchModel: ProductPatchModel\n}\nexport type CreateProductApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateProductApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPostModel: ProductPostModel\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type ProductAttribModel = {\n productGroup?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type ProductModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ProductPatchModel = {\n /** Name of the product */\n name?: string\n /** ID of the parent folder */\n folderId?: string\n /** Product */\n productType?: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type ProductPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,WAAYA,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,EAAA,CACD,EACD,qBAAsBD,EAAM,MAAmE,CAC7F,MAAQC,IAAc,CACpB,IAAK,eACL,OAAQ,CACN,OAAQA,EAAS,OACjB,UAAWA,EAAS,SAAA,CAExB,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"products.cjs.js","sources":["../../../../../src/api/generated/products.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getProduct: build.query<GetProductApiResponse, GetProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n }),\n }),\n deleteProduct: build.mutation<DeleteProductApiResponse, DeleteProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProduct: build.mutation<UpdateProductApiResponse, UpdateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'PATCH',\n body: queryArg.productPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createProduct: build.mutation<CreateProductApiResponse, CreateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products`,\n method: 'POST',\n body: queryArg.productPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProductTypes: build.query<GetProductTypesApiResponse, GetProductTypesApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/productTypes` }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetProductApiResponse = /** status 200 Successful Response */ ProductModel\nexport type GetProductApiArg = {\n projectName: string\n productId: string\n}\nexport type DeleteProductApiResponse = unknown\nexport type DeleteProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProductApiResponse = unknown\nexport type UpdateProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPatchModel: ProductPatchModel\n}\nexport type CreateProductApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateProductApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPostModel: ProductPostModel\n}\nexport type GetProductTypesApiResponse = /** status 200 Successful Response */ ProductTypesList\nexport type GetProductTypesApiArg = {\n projectName: string\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type ProductAttribModel = {\n productGroup?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type ProductModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n path?: string\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ProductPatchModel = {\n /** Name of the product */\n name?: string\n /** ID of the parent folder */\n folderId?: string\n /** Product */\n productType?: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type ProductPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type ProductTypeListItem = {\n name: string\n baseType?: string\n color?: string\n icon?: string\n}\nexport type DefaultProductType = {\n color: string\n icon: string\n}\nexport type ProductTypesList = {\n productTypes?: ProductTypeListItem[]\n default: DefaultProductType\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n dependencyPackages?: {\n [key: string]: string\n }\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,WAAYA,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,EAAA,CACD,EACD,gBAAiBD,EAAM,MAAyD,CAC9E,MAAQC,IAAc,CAAE,IAAK,iBAAiBA,EAAS,WAAW,eAAgB,EAAA,CACnF,EACD,qBAAsBD,EAAM,MAAmE,CAC7F,MAAQC,IAAc,CACpB,IAAK,eACL,OAAQ,CACN,OAAQA,EAAS,OACjB,UAAWA,EAAS,SAAA,CAExB,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { api as d } from "../base/client.es.js";
2
- const s = d.injectEndpoints({
1
+ import { api as o } from "../base/client.es.js";
2
+ const p = o.injectEndpoints({
3
3
  endpoints: (t) => ({
4
4
  getProduct: t.query({
5
5
  query: (e) => ({
@@ -38,6 +38,9 @@ const s = d.injectEndpoints({
38
38
  }
39
39
  })
40
40
  }),
41
+ getProductTypes: t.query({
42
+ query: (e) => ({ url: `/api/projects/${e.projectName}/productTypes` })
43
+ }),
41
44
  getProductionMetrics: t.query({
42
45
  query: (e) => ({
43
46
  url: "/api/metrics",
@@ -51,6 +54,6 @@ const s = d.injectEndpoints({
51
54
  overrideExisting: !1
52
55
  });
53
56
  export {
54
- s as api
57
+ p as api
55
58
  };
56
59
  //# sourceMappingURL=products.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.es.js","sources":["../../../../../src/api/generated/products.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getProduct: build.query<GetProductApiResponse, GetProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n }),\n }),\n deleteProduct: build.mutation<DeleteProductApiResponse, DeleteProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProduct: build.mutation<UpdateProductApiResponse, UpdateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'PATCH',\n body: queryArg.productPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createProduct: build.mutation<CreateProductApiResponse, CreateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products`,\n method: 'POST',\n body: queryArg.productPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetProductApiResponse = /** status 200 Successful Response */ ProductModel\nexport type GetProductApiArg = {\n projectName: string\n productId: string\n}\nexport type DeleteProductApiResponse = unknown\nexport type DeleteProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProductApiResponse = unknown\nexport type UpdateProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPatchModel: ProductPatchModel\n}\nexport type CreateProductApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateProductApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPostModel: ProductPostModel\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type ProductAttribModel = {\n productGroup?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type ProductModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ProductPatchModel = {\n /** Name of the product */\n name?: string\n /** ID of the parent folder */\n folderId?: string\n /** Product */\n productType?: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type ProductPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,YAAYA,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,IAAA,CACD;AAAA,IACD,sBAAsBD,EAAM,MAAmE;AAAA,MAC7F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,QAAQA,EAAS;AAAA,UACjB,WAAWA,EAAS;AAAA,QAAA;AAAA,MAExB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"products.es.js","sources":["../../../../../src/api/generated/products.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getProduct: build.query<GetProductApiResponse, GetProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n }),\n }),\n deleteProduct: build.mutation<DeleteProductApiResponse, DeleteProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProduct: build.mutation<UpdateProductApiResponse, UpdateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products/${queryArg.productId}`,\n method: 'PATCH',\n body: queryArg.productPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n createProduct: build.mutation<CreateProductApiResponse, CreateProductApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/products`,\n method: 'POST',\n body: queryArg.productPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProductTypes: build.query<GetProductTypesApiResponse, GetProductTypesApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/productTypes` }),\n }),\n getProductionMetrics: build.query<GetProductionMetricsApiResponse, GetProductionMetricsApiArg>({\n query: (queryArg) => ({\n url: `/api/metrics`,\n params: {\n system: queryArg.system,\n saturated: queryArg.saturated,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetProductApiResponse = /** status 200 Successful Response */ ProductModel\nexport type GetProductApiArg = {\n projectName: string\n productId: string\n}\nexport type DeleteProductApiResponse = unknown\nexport type DeleteProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProductApiResponse = unknown\nexport type UpdateProductApiArg = {\n projectName: string\n productId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPatchModel: ProductPatchModel\n}\nexport type CreateProductApiResponse = /** status 201 Successful Response */ EntityIdResponse\nexport type CreateProductApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n productPostModel: ProductPostModel\n}\nexport type GetProductTypesApiResponse = /** status 200 Successful Response */ ProductTypesList\nexport type GetProductTypesApiArg = {\n projectName: string\n}\nexport type GetProductionMetricsApiResponse = /** status 200 Successful Response */ Metrics\nexport type GetProductionMetricsApiArg = {\n /** Collect system metrics */\n system?: boolean\n /** Collect saturated (more granular) metrics */\n saturated?: boolean\n}\nexport type ProductAttribModel = {\n productGroup?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type ProductModel = {\n /** Unique identifier of the {entity_name} */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n path?: string\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n ownAttrib?: string[]\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ProductPatchModel = {\n /** Name of the product */\n name?: string\n /** ID of the parent folder */\n folderId?: string\n /** Product */\n productType?: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type ProductPostModel = {\n /** Explicitly set the ID of the entity */\n id?: string\n /** Name of the product */\n name: string\n /** ID of the parent folder */\n folderId: string\n /** Product */\n productType: string\n /** Status of the product */\n status?: string\n /** Tags assigned to the the product */\n tags?: string[]\n attrib?: ProductAttribModel\n data?: Record<string, any>\n /** Whether the product is active */\n active?: boolean\n}\nexport type ProductTypeListItem = {\n name: string\n baseType?: string\n color?: string\n icon?: string\n}\nexport type DefaultProductType = {\n color: string\n icon: string\n}\nexport type ProductTypesList = {\n productTypes?: ProductTypeListItem[]\n default: DefaultProductType\n}\nexport type ReleaseInfo = {\n version: string\n buildDate: string\n buildTime: string\n frontendBranch: string\n backendBranch: string\n frontendCommit: string\n backendCommit: string\n}\nexport type SystemMetricsData = {\n cpuUsage?: number\n memoryUsage?: number\n swapUsage?: number\n uptimeSeconds?: number\n runtimeSeconds?: number\n dbSizeShared?: number\n dbSizeTotal?: number\n dbAvailableConnections?: number\n redisSizeTotal?: number\n storageUtilizationTotal?: number\n}\nexport type UserCounts = {\n total?: number\n active?: number\n admins?: number\n managers?: number\n services?: number\n licensesTotal?: number\n licensesUsed?: number\n}\nexport type ProjectCounts = {\n total?: number\n active?: number\n}\nexport type ProjectMetrics = {\n nickname: string\n folderCount?: number\n productCount?: number\n versionCount?: number\n representationCount?: number\n taskCount?: number\n workfileCount?: number\n rootCount?: number\n teamCount?: number\n /** Duration in days */\n duration?: number\n dbSize?: number\n storageUtilization?: number\n /** List of folder types in the project. Collected only in the 'saturated' mode. */\n folderTypes?: string[]\n /** List of task types in the project. Collected only in the 'saturated' mode. */\n taskTypes?: string[]\n /** List of statuses in the project. Collected only in the 'saturated' mode. */\n statuses?: string[]\n}\nexport type ProductionBundle = {\n addons?: {\n [key: string]: string\n }\n launcherVersion?: string\n dependencyPackages?: {\n [key: string]: string\n }\n}\nexport type SettingsOverrides = {\n addonName?: string\n addonVersion?: string\n /** List of paths to settings, which have a studio override */\n paths?: string[][]\n}\nexport type ServiceInfo = {\n addonName: string\n addonVersion: string\n serviceName: string\n}\nexport type TrafficStat = {\n date: string\n service: string\n ingress: number\n egress: number\n}\nexport type UserStat = {\n date: string\n users: {\n [key: string]: string\n }\n}\nexport type Metrics = {\n version?: string\n /** Information about the branch and commit of the current release */\n releaseInfo?: ReleaseInfo\n /** Time (seconds) since the server was (re)started */\n uptime?: number\n /** System metrics data\n Contains information about machine utilization,\n and database sizes.\n */\n system?: SystemMetricsData\n /** Number of total and active users, admins and managers */\n userCounts?: UserCounts\n /** Number of total and active projects */\n projectCounts?: ProjectCounts\n /** Project specific metrics\n \n Contain information about size and usage of each active project.\n */\n projects?: ProjectMetrics[]\n /** Average number of events per project\n \n This disregards projects with less than 300 events\n (such as testing projects).\n */\n averageProjectEventCount?: number\n /** Addons and their versions installed on the server\n \n We track what addons are installed on the server, and compare this to the\n addons which are actually used in the production bundle.\n */\n installedAddons?: any[][]\n /** Return the count of events per topic.\n \n This helps us with optimization of event clean-up,\n and other maintenance tasks.\n */\n eventTopics?: {\n [key: string]: number\n }\n /** Addons and their versions used in the production bundle\n \n We track what addons are used in the production bundle, as well as what\n launcher version is used. This is used to determine if the production\n bundle is up to date with the latest addons and launcher version,\n and if not, to notify the user that they should update in case of\n security issues or other important changes.\n */\n productionBundle?: ProductionBundle\n /** Studio settings overrides\n \n We track what settings are overridden in the studio settings.\n This helps us determine, which settins are used the most and which\n settings are not used at all. This is used to determine how we should\n organize the settings in the UI and how the settings could be improved.\n */\n studioSettingsOverrides?: SettingsOverrides[]\n /** List of active services */\n services?: ServiceInfo[]\n trafficStats?: TrafficStat[]\n userStats?: UserStat[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,YAAYA,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,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc,EAAE,KAAK,iBAAiBA,EAAS,WAAW,gBAAgB;AAAA,IAAA,CACnF;AAAA,IACD,sBAAsBD,EAAM,MAAmE;AAAA,MAC7F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK;AAAA,QACL,QAAQ;AAAA,UACN,QAAQA,EAAS;AAAA,UACjB,WAAWA,EAAS;AAAA,QAAA;AAAA,MAExB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base/client.cjs.js"),r=o.api.injectEndpoints({endpoints:t=>({deleteProjectActivity:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/activities/${e.activityId}`,method:"DELETE",headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),getProjectFile:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}`})}),deleteProjectFile:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}`,method:"DELETE"})}),getProjectFileHead:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}`,method:"HEAD"})}),getProjectFileInfo:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/info`})}),getProjectFilePayload:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/payload`})}),getProjectFileThumbnail:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/thumbnail`})}),getProjectFileStill:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/still`,params:{t:e.t}})}),getProjectEntityCounts:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/entities`})}),getProjectHealth:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/health`})}),getProjectActivity:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/activity`,params:{days:e.days}})}),getProjectTeams:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/users`})}),getProjectAnatomy:t.query({query:e=>({url:`/api/projects/${e.projectName}/anatomy`})}),setProjectAnatomy:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/anatomy`,method:"POST",body:e.anatomy,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),setProjectBundle:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/bundles`,method:"POST",body:e.projectBundleModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),listProjects:t.query({query:e=>({url:"/api/projects",params:{page:e.page,length:e.length,library:e.library,active:e.active,order:e.order,desc:e.desc,name:e.name}})}),deployProject:t.mutation({query:e=>({url:"/api/projects",method:"POST",body:e.deployProjectRequestModel})}),getProject:t.query({query:e=>({url:`/api/projects/${e.projectName}`})}),createProject:t.mutation({query:e=>({url:`/api/projects/${e.projectName}`,method:"PUT",body:e.projectPostModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),deleteProject:t.mutation({query:e=>({url:`/api/projects/${e.projectName}`,method:"DELETE",headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),updateProject:t.mutation({query:e=>({url:`/api/projects/${e.projectName}`,method:"PATCH",body:e.projectPatchModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),getProjectStats:t.query({query:e=>({url:`/api/projects/${e.projectName}/stats`})}),getProjectRootsOverrides:t.query({query:e=>({url:`/api/projects/${e.projectName}/roots`})}),setProjectRootsOverrides:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/roots/${e.siteId}`,method:"PUT",body:e.payload})}),getProjectSiteRoots:t.query({query:e=>({url:`/api/projects/${e.projectName}/siteRoots`,headers:{"x-ayon-site-id":e["x-ayon-site-id"]},params:{platform:e.platform}})}),getProjectTags:t.query({query:e=>({url:`/api/projects/${e.projectName}/tags`})}),getProjectUsers:t.query({query:e=>({url:`/api/projects/${e.projectName}/users`})}),updateProjectUser:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/users/${e.userName}`,method:"PATCH",body:e.accessGroups})}),getProjectEntityUris:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/uris`,method:"POST",body:e.getUrisRequest})})}),overrideExisting:!1});exports.api=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base/client.cjs.js"),r=o.api.injectEndpoints({endpoints:t=>({deleteProjectActivity:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/activities/${e.activityId}`,method:"DELETE",headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),getProjectFile:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}`})}),deleteProjectFile:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}`,method:"DELETE"})}),getProjectFileHead:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}`,method:"HEAD"})}),getProjectFileInfo:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/info`})}),getProjectFilePayload:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/payload`})}),getProjectFileThumbnail:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/thumbnail`})}),getProjectFileStill:t.query({query:e=>({url:`/api/projects/${e.projectName}/files/${e.fileId}/still`,params:{t:e.t}})}),getProjectEntityCounts:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/entities`})}),getProjectHealth:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/health`})}),getProjectActivity:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/activity`,params:{days:e.days}})}),getProjectTeams:t.query({query:e=>({url:`/api/projects/${e.projectName}/dashboard/users`})}),getProjectAnatomy:t.query({query:e=>({url:`/api/projects/${e.projectName}/anatomy`})}),setProjectAnatomy:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/anatomy`,method:"POST",body:e.anatomy,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),setProjectBundle:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/bundles`,method:"POST",body:e.projectBundleModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),listProjects:t.query({query:e=>({url:"/api/projects",params:{page:e.page,length:e.length,library:e.library,active:e.active,order:e.order,desc:e.desc,name:e.name}})}),deployProject:t.mutation({query:e=>({url:"/api/projects",method:"POST",body:e.deployProjectRequestModel})}),listGuestUsers:t.query({query:e=>({url:`/api/projects/${e.projectName}/guests`})}),addGuestUser:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/guests`,method:"POST",body:e.addGuestUserModel})}),removeGuestUser:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/guests/${e.email}`,method:"DELETE"})}),getProductTypes:t.query({query:e=>({url:`/api/projects/${e.projectName}/productTypes`})}),getProject:t.query({query:e=>({url:`/api/projects/${e.projectName}`})}),createProject:t.mutation({query:e=>({url:`/api/projects/${e.projectName}`,method:"PUT",body:e.projectPostModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),deleteProject:t.mutation({query:e=>({url:`/api/projects/${e.projectName}`,method:"DELETE",headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),updateProject:t.mutation({query:e=>({url:`/api/projects/${e.projectName}`,method:"PATCH",body:e.projectPatchModel,headers:{"x-sender":e["x-sender"],"x-sender-type":e["x-sender-type"]}})}),getProjectStats:t.query({query:e=>({url:`/api/projects/${e.projectName}/stats`})}),getProjectRootsOverrides:t.query({query:e=>({url:`/api/projects/${e.projectName}/roots`})}),setProjectRootsOverrides:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/roots/${e.siteId}`,method:"PUT",body:e.payload})}),getProjectSiteRoots:t.query({query:e=>({url:`/api/projects/${e.projectName}/siteRoots`,headers:{"x-ayon-site-id":e["x-ayon-site-id"]},params:{platform:e.platform}})}),getProjectTags:t.query({query:e=>({url:`/api/projects/${e.projectName}/tags`})}),getProjectUsers:t.query({query:e=>({url:`/api/projects/${e.projectName}/users`})}),updateProjectUser:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/users/${e.userName}`,method:"PATCH",body:e.accessGroups})}),getProjectEntityUris:t.mutation({query:e=>({url:`/api/projects/${e.projectName}/uris`,method:"POST",body:e.getUrisRequest})})}),overrideExisting:!1});exports.api=r;
2
2
  //# sourceMappingURL=projects.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"projects.cjs.js","sources":["../../../../../src/api/generated/projects.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n deleteProjectActivity: build.mutation<\n DeleteProjectActivityApiResponse,\n DeleteProjectActivityApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/activities/${queryArg.activityId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectFile: build.query<GetProjectFileApiResponse, GetProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n }),\n }),\n deleteProjectFile: build.mutation<DeleteProjectFileApiResponse, DeleteProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'DELETE',\n }),\n }),\n getProjectFileHead: build.mutation<GetProjectFileHeadApiResponse, GetProjectFileHeadApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'HEAD',\n }),\n }),\n getProjectFileInfo: build.query<GetProjectFileInfoApiResponse, GetProjectFileInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/info`,\n }),\n }),\n getProjectFilePayload: build.query<\n GetProjectFilePayloadApiResponse,\n GetProjectFilePayloadApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/payload`,\n }),\n }),\n getProjectFileThumbnail: build.query<\n GetProjectFileThumbnailApiResponse,\n GetProjectFileThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/thumbnail`,\n }),\n }),\n getProjectFileStill: build.query<GetProjectFileStillApiResponse, GetProjectFileStillApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/still`,\n params: {\n t: queryArg.t,\n },\n }),\n }),\n getProjectEntityCounts: build.query<\n GetProjectEntityCountsApiResponse,\n GetProjectEntityCountsApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/entities` }),\n }),\n getProjectHealth: build.query<GetProjectHealthApiResponse, GetProjectHealthApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/health` }),\n }),\n getProjectActivity: build.query<GetProjectActivityApiResponse, GetProjectActivityApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/dashboard/activity`,\n params: {\n days: queryArg.days,\n },\n }),\n }),\n getProjectTeams: build.query<GetProjectTeamsApiResponse, GetProjectTeamsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/users` }),\n }),\n getProjectAnatomy: build.query<GetProjectAnatomyApiResponse, GetProjectAnatomyApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/anatomy` }),\n }),\n setProjectAnatomy: build.mutation<SetProjectAnatomyApiResponse, SetProjectAnatomyApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/anatomy`,\n method: 'POST',\n body: queryArg.anatomy,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setProjectBundle: build.mutation<SetProjectBundleApiResponse, SetProjectBundleApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/bundles`,\n method: 'POST',\n body: queryArg.projectBundleModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n listProjects: build.query<ListProjectsApiResponse, ListProjectsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n params: {\n page: queryArg.page,\n length: queryArg.length,\n library: queryArg.library,\n active: queryArg.active,\n order: queryArg.order,\n desc: queryArg.desc,\n name: queryArg.name,\n },\n }),\n }),\n deployProject: build.mutation<DeployProjectApiResponse, DeployProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n method: 'POST',\n body: queryArg.deployProjectRequestModel,\n }),\n }),\n getProject: build.query<GetProjectApiResponse, GetProjectApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}` }),\n }),\n createProject: build.mutation<CreateProjectApiResponse, CreateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.projectPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteProject: build.mutation<DeleteProjectApiResponse, DeleteProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProject: build.mutation<UpdateProjectApiResponse, UpdateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PATCH',\n body: queryArg.projectPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectStats: build.query<GetProjectStatsApiResponse, GetProjectStatsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/stats` }),\n }),\n getProjectRootsOverrides: build.query<\n GetProjectRootsOverridesApiResponse,\n GetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/roots` }),\n }),\n setProjectRootsOverrides: build.mutation<\n SetProjectRootsOverridesApiResponse,\n SetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/roots/${queryArg.siteId}`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getProjectSiteRoots: build.query<GetProjectSiteRootsApiResponse, GetProjectSiteRootsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/siteRoots`,\n headers: {\n 'x-ayon-site-id': queryArg['x-ayon-site-id'],\n },\n params: {\n platform: queryArg.platform,\n },\n }),\n }),\n getProjectTags: build.query<GetProjectTagsApiResponse, GetProjectTagsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/tags` }),\n }),\n getProjectUsers: build.query<GetProjectUsersApiResponse, GetProjectUsersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/users` }),\n }),\n updateProjectUser: build.mutation<UpdateProjectUserApiResponse, UpdateProjectUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.accessGroups,\n }),\n }),\n getProjectEntityUris: build.mutation<\n GetProjectEntityUrisApiResponse,\n GetProjectEntityUrisApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/uris`,\n method: 'POST',\n body: queryArg.getUrisRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type DeleteProjectActivityApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectActivityApiArg = {\n projectName: string\n activityId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type GetProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type DeleteProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileHeadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileHeadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileInfoApiResponse = /** status 200 Successful Response */ FileInfo\nexport type GetProjectFileInfoApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFilePayloadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFilePayloadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileThumbnailApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileStillApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileStillApiArg = {\n projectName: string\n fileId: string\n t?: number\n}\nexport type GetProjectEntityCountsApiResponse = /** status 200 Successful Response */ EntityCounts\nexport type GetProjectEntityCountsApiArg = {\n projectName: string\n}\nexport type GetProjectHealthApiResponse = /** status 200 Successful Response */ Health\nexport type GetProjectHealthApiArg = {\n projectName: string\n}\nexport type GetProjectActivityApiResponse =\n /** status 200 Successful Response */ ActivityResponseModel\nexport type GetProjectActivityApiArg = {\n projectName: string\n /** Number of days to retrieve activity for */\n days?: number\n}\nexport type GetProjectTeamsApiResponse =\n /** status 200 Successful Response */ ProjectTeamsResponseModel\nexport type GetProjectTeamsApiArg = {\n projectName: string\n}\nexport type GetProjectAnatomyApiResponse = /** status 200 Successful Response */ Anatomy\nexport type GetProjectAnatomyApiArg = {\n projectName: string\n}\nexport type SetProjectAnatomyApiResponse = unknown\nexport type SetProjectAnatomyApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n anatomy: Anatomy\n}\nexport type SetProjectBundleApiResponse = unknown\nexport type SetProjectBundleApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectBundleModel: ProjectBundleModel\n}\nexport type ListProjectsApiResponse =\n /** status 200 Successful Response */ ListProjectsResponseModel\nexport type ListProjectsApiArg = {\n page?: number\n /** If not provided, the result will not be limited */\n length?: number\n /** If not provided, return projects regardless the flag */\n library?: boolean\n /** If not provided, return projects regardless the flag */\n active?: boolean\n order?: 'name' | 'createdAt' | 'updatedAt'\n desc?: boolean\n /** Limit the result to project with the matching name,\n or its part. % character may be used as a wildcard */\n name?: string\n}\nexport type DeployProjectApiResponse = /** status 201 Successful Response */ any\nexport type DeployProjectApiArg = {\n deployProjectRequestModel: DeployProjectRequestModel\n}\nexport type GetProjectApiResponse = /** status 200 Successful Response */ ProjectModel\nexport type GetProjectApiArg = {\n projectName: string\n}\nexport type CreateProjectApiResponse = /** status 201 Successful Response */ any\nexport type CreateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPostModel: ProjectPostModel\n}\nexport type DeleteProjectApiResponse = unknown\nexport type DeleteProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProjectApiResponse = unknown\nexport type UpdateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPatchModel: ProjectPatchModel\n}\nexport type GetProjectStatsApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectStatsApiArg = {\n projectName: string\n}\nexport type GetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ {\n [key: string]: {\n [key: string]: string\n }\n}\nexport type GetProjectRootsOverridesApiArg = {\n projectName: string\n}\nexport type SetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectRootsOverridesApiArg = {\n siteId: string\n projectName: string\n payload: {\n [key: string]: string\n }\n}\nexport type GetProjectSiteRootsApiResponse = /** status 200 Successful Response */ {\n [key: string]: string\n}\nexport type GetProjectSiteRootsApiArg = {\n projectName: string\n platform?: 'windows' | 'linux' | 'darwin'\n /** Site ID may be specified either as a query parameter (`site_id` or `site`) or in a header. */\n 'x-ayon-site-id'?: string\n}\nexport type GetProjectTagsApiResponse = /** status 200 Successful Response */ ProjectTagsModel\nexport type GetProjectTagsApiArg = {\n projectName: string\n}\nexport type GetProjectUsersApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type GetProjectUsersApiArg = {\n projectName: string\n}\nexport type UpdateProjectUserApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type UpdateProjectUserApiArg = {\n projectName: string\n userName: string\n accessGroups: string[]\n}\nexport type GetProjectEntityUrisApiResponse = /** status 200 Successful Response */ GetUrisResponse\nexport type GetProjectEntityUrisApiArg = {\n projectName: string\n getUrisRequest: GetUrisRequest\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type FileInfo = {\n size: number\n filename?: string\n contentType?: string\n}\nexport type EntityCounts = {\n /** Number of folders */\n folders: number\n /** Number of products */\n products: number\n /** Number of versions */\n versions: number\n /** Number of representations */\n representations: number\n /** Number of tasks */\n tasks: number\n /** Number of workfiles */\n workfiles: number\n}\nexport type HealthCompletion = {\n /** Percentage of tasks completed */\n percentage: number\n /** Number of days tasks are not completed after due date */\n behind: number\n /** Number of days tasks are completed before due date */\n ahead: number\n}\nexport type HealthStorageUsage = {\n /** Storage quota */\n quota: number\n /** Storage used */\n used: number\n}\nexport type HealthTasks = {\n /** Total number of tasks */\n total: number\n /** Number of completed tasks */\n completed: number\n /** Number of overdue tasks */\n overdue: number\n}\nexport type Health = {\n /** Task completion */\n completion: HealthCompletion\n /** Storage usage */\n storageUsage: HealthStorageUsage\n /** Task statistics */\n tasks: HealthTasks\n /** Task status statistics */\n statuses: {\n [key: string]: number\n }\n}\nexport type ActivityResponseModel = {\n /** Activity per day normalized to 0-100 */\n activity: number[]\n}\nexport type ProjectTeamsResponseModel = {\n /** Number of active team members */\n teamSizeActive?: number\n /** Total number of team members */\n teamSizeTotal?: number\n /** Number of active users */\n usersWithAccessActive?: number\n /** Total number of users */\n usersWithAccessTotal?: number\n /** Number of users per role */\n roles: {\n [key: string]: number\n }\n}\nexport type EntityNaming = {\n /** How to capitalize the entity names */\n capitalization?: 'lower' | 'upper' | 'keep' | 'pascal' | 'camel'\n /** Character to separate different parts of the name */\n separator?: '' | '_' | '-' | '.'\n}\nexport type Root = {\n name: string\n windows?: string\n linux?: string\n darwin?: string\n}\nexport type WorkTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type PublishTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type HeroTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type DeliveryTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type StagingDirectory = {\n name: string\n directory?: string\n}\nexport type CustomTemplate = {\n name: string\n value?: string\n}\nexport type Templates = {\n version_padding?: number\n version?: string\n frame_padding?: number\n frame?: string\n work?: WorkTemplate[]\n publish?: PublishTemplate[]\n hero?: HeroTemplate[]\n delivery?: DeliveryTemplate[]\n staging?: StagingDirectory[]\n others?: CustomTemplate[]\n}\nexport type ProjectAttribModel = {\n priority?: 'urgent' | 'high' | 'normal' | 'low'\n /** Frame rate */\n fps?: number\n /** Horizontal resolution */\n resolutionWidth?: number\n /** Vertical resolution */\n resolutionHeight?: number\n pixelAspect?: number\n clipIn?: number\n clipOut?: number\n frameStart?: number\n frameEnd?: number\n handleStart?: number\n handleEnd?: number\n /** Date and time when the project or task or asset was started */\n startDate?: string\n /** Deadline date and time */\n endDate?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type FolderType = {\n name: string\n original_name?: string\n shortName?: string\n icon?: string\n}\nexport type TaskType = {\n name: string\n original_name?: string\n shortName?: string\n color?: string\n icon?: string\n}\nexport type LinkType = {\n link_type: string\n input_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n output_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n color?: string\n style?: 'solid' | 'dashed'\n}\nexport type Status = {\n name: string\n original_name?: string\n shortName?: string\n state?: 'not_started' | 'in_progress' | 'done' | 'blocked'\n icon?: string\n color?: string\n /** Limit the status to specific entity types. */\n scope?: string[]\n}\nexport type Tag = {\n name: string\n original_name?: string\n color?: string\n}\nexport type Anatomy = {\n /** Settings for automatic entity name generation */\n entity_naming?: EntityNaming\n /** Setup root paths for the project */\n roots?: Root[]\n /** Path templates configuration */\n templates?: Templates\n /** Attributes configuration */\n attributes?: ProjectAttribModel\n /** Folder types configuration */\n folder_types?: FolderType[]\n /** Task types configuration */\n task_types?: TaskType[]\n /** Link types configuration */\n link_types?: LinkType[]\n /** Statuses configuration */\n statuses?: Status[]\n /** Tags configuration */\n tags?: Tag[]\n}\nexport type ProjectBundleModel = {\n production?: string\n staging?: string\n}\nexport type ListProjectsItemModel = {\n name: string\n code: string\n active: boolean\n createdAt: string\n updatedAt: string\n}\nexport type ListProjectsResponseModel = {\n detail?: string\n /** Total count of projects (regardless the pagination) */\n count?: number\n /** List of projects */\n projects?: ListProjectsItemModel[]\n}\nexport type DeployProjectRequestModel = {\n /** Project name */\n name: string\n /** Project code */\n code: string\n /** Project anatomy */\n anatomy: Anatomy\n /** Library project */\n library?: boolean\n /** Assign default users to the project */\n assignUsers?: boolean\n}\nexport type LinkTypeModel = {\n /** Name of the link type */\n name: string\n /** Type of the link */\n linkType: string\n /** Input entity type */\n inputType: string\n /** Output entity type */\n outputType: string\n /** Additional link type data */\n data?: Record<string, any>\n}\nexport type ProjectAttribModel2 = {\n priority?: 'urgent' | 'high' | 'normal' | 'low'\n /** Frame rate */\n fps?: number\n /** Horizontal resolution */\n resolutionWidth?: number\n /** Vertical resolution */\n resolutionHeight?: number\n pixelAspect?: number\n clipIn?: number\n clipOut?: number\n frameStart?: number\n frameEnd?: number\n handleStart?: number\n handleEnd?: number\n /** Date and time when the project or task or asset was started */\n startDate?: string\n /** Deadline date and time */\n endDate?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type ProjectModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type ProjectPostModel = {\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectPatchModel = {\n code?: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectTagsModel = {\n folders?: string[]\n tasks?: string[]\n products?: string[]\n versions?: string[]\n representations?: string[]\n workfiles?: string[]\n}\nexport type UriResponseItem = {\n id: string\n uri: string\n}\nexport type GetUrisResponse = {\n uris?: UriResponseItem[]\n}\nexport type GetUrisRequest = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n ids?: string[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"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"}
1
+ {"version":3,"file":"projects.cjs.js","sources":["../../../../../src/api/generated/projects.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n deleteProjectActivity: build.mutation<\n DeleteProjectActivityApiResponse,\n DeleteProjectActivityApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/activities/${queryArg.activityId}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectFile: build.query<GetProjectFileApiResponse, GetProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n }),\n }),\n deleteProjectFile: build.mutation<DeleteProjectFileApiResponse, DeleteProjectFileApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'DELETE',\n }),\n }),\n getProjectFileHead: build.mutation<GetProjectFileHeadApiResponse, GetProjectFileHeadApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}`,\n method: 'HEAD',\n }),\n }),\n getProjectFileInfo: build.query<GetProjectFileInfoApiResponse, GetProjectFileInfoApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/info`,\n }),\n }),\n getProjectFilePayload: build.query<\n GetProjectFilePayloadApiResponse,\n GetProjectFilePayloadApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/payload`,\n }),\n }),\n getProjectFileThumbnail: build.query<\n GetProjectFileThumbnailApiResponse,\n GetProjectFileThumbnailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/thumbnail`,\n }),\n }),\n getProjectFileStill: build.query<GetProjectFileStillApiResponse, GetProjectFileStillApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/files/${queryArg.fileId}/still`,\n params: {\n t: queryArg.t,\n },\n }),\n }),\n getProjectEntityCounts: build.query<\n GetProjectEntityCountsApiResponse,\n GetProjectEntityCountsApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/entities` }),\n }),\n getProjectHealth: build.query<GetProjectHealthApiResponse, GetProjectHealthApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/health` }),\n }),\n getProjectActivity: build.query<GetProjectActivityApiResponse, GetProjectActivityApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/dashboard/activity`,\n params: {\n days: queryArg.days,\n },\n }),\n }),\n getProjectTeams: build.query<GetProjectTeamsApiResponse, GetProjectTeamsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/dashboard/users` }),\n }),\n getProjectAnatomy: build.query<GetProjectAnatomyApiResponse, GetProjectAnatomyApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/anatomy` }),\n }),\n setProjectAnatomy: build.mutation<SetProjectAnatomyApiResponse, SetProjectAnatomyApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/anatomy`,\n method: 'POST',\n body: queryArg.anatomy,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n setProjectBundle: build.mutation<SetProjectBundleApiResponse, SetProjectBundleApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/bundles`,\n method: 'POST',\n body: queryArg.projectBundleModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n listProjects: build.query<ListProjectsApiResponse, ListProjectsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n params: {\n page: queryArg.page,\n length: queryArg.length,\n library: queryArg.library,\n active: queryArg.active,\n order: queryArg.order,\n desc: queryArg.desc,\n name: queryArg.name,\n },\n }),\n }),\n deployProject: build.mutation<DeployProjectApiResponse, DeployProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects`,\n method: 'POST',\n body: queryArg.deployProjectRequestModel,\n }),\n }),\n listGuestUsers: build.query<ListGuestUsersApiResponse, ListGuestUsersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/guests` }),\n }),\n addGuestUser: build.mutation<AddGuestUserApiResponse, AddGuestUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/guests`,\n method: 'POST',\n body: queryArg.addGuestUserModel,\n }),\n }),\n removeGuestUser: build.mutation<RemoveGuestUserApiResponse, RemoveGuestUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/guests/${queryArg.email}`,\n method: 'DELETE',\n }),\n }),\n getProductTypes: build.query<GetProductTypesApiResponse, GetProductTypesApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/productTypes` }),\n }),\n getProject: build.query<GetProjectApiResponse, GetProjectApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}` }),\n }),\n createProject: build.mutation<CreateProjectApiResponse, CreateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PUT',\n body: queryArg.projectPostModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteProject: build.mutation<DeleteProjectApiResponse, DeleteProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n updateProject: build.mutation<UpdateProjectApiResponse, UpdateProjectApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}`,\n method: 'PATCH',\n body: queryArg.projectPatchModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getProjectStats: build.query<GetProjectStatsApiResponse, GetProjectStatsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/stats` }),\n }),\n getProjectRootsOverrides: build.query<\n GetProjectRootsOverridesApiResponse,\n GetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/roots` }),\n }),\n setProjectRootsOverrides: build.mutation<\n SetProjectRootsOverridesApiResponse,\n SetProjectRootsOverridesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/roots/${queryArg.siteId}`,\n method: 'PUT',\n body: queryArg.payload,\n }),\n }),\n getProjectSiteRoots: build.query<GetProjectSiteRootsApiResponse, GetProjectSiteRootsApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/siteRoots`,\n headers: {\n 'x-ayon-site-id': queryArg['x-ayon-site-id'],\n },\n params: {\n platform: queryArg.platform,\n },\n }),\n }),\n getProjectTags: build.query<GetProjectTagsApiResponse, GetProjectTagsApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/tags` }),\n }),\n getProjectUsers: build.query<GetProjectUsersApiResponse, GetProjectUsersApiArg>({\n query: (queryArg) => ({ url: `/api/projects/${queryArg.projectName}/users` }),\n }),\n updateProjectUser: build.mutation<UpdateProjectUserApiResponse, UpdateProjectUserApiArg>({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.accessGroups,\n }),\n }),\n getProjectEntityUris: build.mutation<\n GetProjectEntityUrisApiResponse,\n GetProjectEntityUrisApiArg\n >({\n query: (queryArg) => ({\n url: `/api/projects/${queryArg.projectName}/uris`,\n method: 'POST',\n body: queryArg.getUrisRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type DeleteProjectActivityApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectActivityApiArg = {\n projectName: string\n activityId: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type GetProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type DeleteProjectFileApiResponse = /** status 200 Successful Response */ any\nexport type DeleteProjectFileApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileHeadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileHeadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileInfoApiResponse = /** status 200 Successful Response */ FileInfo\nexport type GetProjectFileInfoApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFilePayloadApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFilePayloadApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileThumbnailApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileThumbnailApiArg = {\n projectName: string\n fileId: string\n}\nexport type GetProjectFileStillApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectFileStillApiArg = {\n projectName: string\n fileId: string\n t?: number\n}\nexport type GetProjectEntityCountsApiResponse = /** status 200 Successful Response */ EntityCounts\nexport type GetProjectEntityCountsApiArg = {\n projectName: string\n}\nexport type GetProjectHealthApiResponse = /** status 200 Successful Response */ Health\nexport type GetProjectHealthApiArg = {\n projectName: string\n}\nexport type GetProjectActivityApiResponse =\n /** status 200 Successful Response */ ActivityResponseModel\nexport type GetProjectActivityApiArg = {\n projectName: string\n /** Number of days to retrieve activity for */\n days?: number\n}\nexport type GetProjectTeamsApiResponse =\n /** status 200 Successful Response */ ProjectTeamsResponseModel\nexport type GetProjectTeamsApiArg = {\n projectName: string\n}\nexport type GetProjectAnatomyApiResponse = /** status 200 Successful Response */ Anatomy\nexport type GetProjectAnatomyApiArg = {\n projectName: string\n}\nexport type SetProjectAnatomyApiResponse = unknown\nexport type SetProjectAnatomyApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n anatomy: Anatomy\n}\nexport type SetProjectBundleApiResponse = unknown\nexport type SetProjectBundleApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectBundleModel: ProjectBundleModel\n}\nexport type ListProjectsApiResponse =\n /** status 200 Successful Response */ ListProjectsResponseModel\nexport type ListProjectsApiArg = {\n page?: number\n /** If not provided, the result will not be limited */\n length?: number\n /** If not provided, return projects regardless the flag */\n library?: boolean\n /** If not provided, return projects regardless the flag */\n active?: boolean\n order?: 'name' | 'createdAt' | 'updatedAt'\n desc?: boolean\n /** Limit the result to project with the matching name,\n or its part. % character may be used as a wildcard */\n name?: string\n}\nexport type DeployProjectApiResponse = /** status 201 Successful Response */ any\nexport type DeployProjectApiArg = {\n deployProjectRequestModel: DeployProjectRequestModel\n}\nexport type ListGuestUsersApiResponse = /** status 200 Successful Response */ GuestUsersListModel\nexport type ListGuestUsersApiArg = {\n projectName: string\n}\nexport type AddGuestUserApiResponse = /** status 200 Successful Response */ any\nexport type AddGuestUserApiArg = {\n projectName: string\n addGuestUserModel: AddGuestUserModel\n}\nexport type RemoveGuestUserApiResponse = /** status 200 Successful Response */ any\nexport type RemoveGuestUserApiArg = {\n email: string\n projectName: string\n}\nexport type GetProductTypesApiResponse = /** status 200 Successful Response */ ProductTypesList\nexport type GetProductTypesApiArg = {\n projectName: string\n}\nexport type GetProjectApiResponse = /** status 200 Successful Response */ ProjectModel\nexport type GetProjectApiArg = {\n projectName: string\n}\nexport type CreateProjectApiResponse = /** status 201 Successful Response */ any\nexport type CreateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPostModel: ProjectPostModel\n}\nexport type DeleteProjectApiResponse = unknown\nexport type DeleteProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type UpdateProjectApiResponse = unknown\nexport type UpdateProjectApiArg = {\n projectName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n projectPatchModel: ProjectPatchModel\n}\nexport type GetProjectStatsApiResponse = /** status 200 Successful Response */ any\nexport type GetProjectStatsApiArg = {\n projectName: string\n}\nexport type GetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ {\n [key: string]: {\n [key: string]: string\n }\n}\nexport type GetProjectRootsOverridesApiArg = {\n projectName: string\n}\nexport type SetProjectRootsOverridesApiResponse = /** status 200 Successful Response */ any\nexport type SetProjectRootsOverridesApiArg = {\n siteId: string\n projectName: string\n payload: {\n [key: string]: string\n }\n}\nexport type GetProjectSiteRootsApiResponse = /** status 200 Successful Response */ {\n [key: string]: string\n}\nexport type GetProjectSiteRootsApiArg = {\n projectName: string\n platform?: 'windows' | 'linux' | 'darwin'\n /** Site ID may be specified either as a query parameter (`site_id` or `site`) or in a header. */\n 'x-ayon-site-id'?: string\n}\nexport type GetProjectTagsApiResponse = /** status 200 Successful Response */ ProjectTagsModel\nexport type GetProjectTagsApiArg = {\n projectName: string\n}\nexport type GetProjectUsersApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type GetProjectUsersApiArg = {\n projectName: string\n}\nexport type UpdateProjectUserApiResponse = /** status 200 Successful Response */ {\n [key: string]: string[]\n}\nexport type UpdateProjectUserApiArg = {\n projectName: string\n userName: string\n accessGroups: string[]\n}\nexport type GetProjectEntityUrisApiResponse = /** status 200 Successful Response */ GetUrisResponse\nexport type GetProjectEntityUrisApiArg = {\n projectName: string\n getUrisRequest: GetUrisRequest\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type FileInfo = {\n size: number\n filename?: string\n contentType?: string\n}\nexport type EntityCounts = {\n /** Number of folders */\n folders: number\n /** Number of products */\n products: number\n /** Number of versions */\n versions: number\n /** Number of representations */\n representations: number\n /** Number of tasks */\n tasks: number\n /** Number of workfiles */\n workfiles: number\n}\nexport type HealthCompletion = {\n /** Percentage of tasks completed */\n percentage: number\n /** Number of days tasks are not completed after due date */\n behind: number\n /** Number of days tasks are completed before due date */\n ahead: number\n}\nexport type HealthStorageUsage = {\n /** Storage quota */\n quota: number\n /** Storage used */\n used: number\n}\nexport type HealthTasks = {\n /** Total number of tasks */\n total: number\n /** Number of completed tasks */\n completed: number\n /** Number of overdue tasks */\n overdue: number\n}\nexport type Health = {\n /** Task completion */\n completion: HealthCompletion\n /** Storage usage */\n storageUsage: HealthStorageUsage\n /** Task statistics */\n tasks: HealthTasks\n /** Task status statistics */\n statuses: {\n [key: string]: number\n }\n}\nexport type ActivityResponseModel = {\n /** Activity per day normalized to 0-100 */\n activity: number[]\n}\nexport type ProjectTeamsResponseModel = {\n /** Number of active team members */\n teamSizeActive?: number\n /** Total number of team members */\n teamSizeTotal?: number\n /** Number of active users */\n usersWithAccessActive?: number\n /** Total number of users */\n usersWithAccessTotal?: number\n /** Number of users per role */\n roles: {\n [key: string]: number\n }\n}\nexport type EntityNaming = {\n /** How to capitalize the entity names */\n capitalization?: 'lower' | 'upper' | 'keep' | 'pascal' | 'camel'\n /** Character to separate different parts of the name */\n separator?: '' | '_' | '-' | '.'\n}\nexport type Root = {\n name: string\n windows?: string\n linux?: string\n darwin?: string\n}\nexport type WorkTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type PublishTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type HeroTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type DeliveryTemplate = {\n name: string\n directory: string\n file: string\n}\nexport type StagingDirectory = {\n name: string\n directory?: string\n}\nexport type CustomTemplate = {\n name: string\n value?: string\n}\nexport type Templates = {\n version_padding?: number\n version?: string\n frame_padding?: number\n frame?: string\n work?: WorkTemplate[]\n publish?: PublishTemplate[]\n hero?: HeroTemplate[]\n delivery?: DeliveryTemplate[]\n staging?: StagingDirectory[]\n others?: CustomTemplate[]\n}\nexport type ProjectAttribModel = {\n priority?: 'urgent' | 'high' | 'normal' | 'low'\n /** Frame rate */\n fps?: number\n /** Horizontal resolution */\n resolutionWidth?: number\n /** Vertical resolution */\n resolutionHeight?: number\n pixelAspect?: number\n clipIn?: number\n clipOut?: number\n frameStart?: number\n frameEnd?: number\n handleStart?: number\n handleEnd?: number\n /** Date and time when the project or task or asset was started */\n startDate?: string\n /** Deadline date and time */\n endDate?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type FolderType = {\n name: string\n original_name?: string\n shortName?: string\n icon?: string\n}\nexport type TaskType = {\n name: string\n original_name?: string\n shortName?: string\n color?: string\n icon?: string\n}\nexport type LinkType = {\n link_type: string\n input_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n output_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n color?: string\n style?: 'solid' | 'dashed'\n}\nexport type Status = {\n name: string\n original_name?: string\n shortName?: string\n state?: 'not_started' | 'in_progress' | 'done' | 'blocked'\n icon?: string\n color?: string\n /** Limit the status to specific entity types. */\n scope?: string[]\n}\nexport type Tag = {\n name: string\n original_name?: string\n color?: string\n}\nexport type DefaultProductBaseType = {\n color?: string\n icon?: string\n}\nexport type ProductBaseType = {\n name?: string\n color?: string\n icon?: string\n}\nexport type ProductBaseTypes = {\n /** Default appearance for product types */\n default?: DefaultProductBaseType\n definitions?: ProductBaseType[]\n}\nexport type Anatomy = {\n /** Settings for automatic entity name generation */\n entity_naming?: EntityNaming\n /** Setup root paths for the project */\n roots?: Root[]\n /** Path templates configuration */\n templates?: Templates\n /** Attributes configuration */\n attributes?: ProjectAttribModel\n /** Folder types configuration */\n folder_types?: FolderType[]\n /** Task types configuration */\n task_types?: TaskType[]\n /** Link types configuration */\n link_types?: LinkType[]\n /** Statuses configuration */\n statuses?: Status[]\n /** Tags configuration */\n tags?: Tag[]\n product_base_types?: ProductBaseTypes\n}\nexport type ProjectBundleModel = {\n production?: string\n staging?: string\n}\nexport type ListProjectsItemModel = {\n name: string\n code: string\n active: boolean\n createdAt: string\n updatedAt: string\n}\nexport type ListProjectsResponseModel = {\n detail?: string\n /** Total count of projects (regardless the pagination) */\n count?: number\n /** List of projects */\n projects?: ListProjectsItemModel[]\n}\nexport type DeployProjectRequestModel = {\n /** Project name */\n name: string\n /** Project code */\n code: string\n /** Project anatomy */\n anatomy: Anatomy\n /** Library project */\n library?: boolean\n /** Assign default users to the project */\n assignUsers?: boolean\n}\nexport type GuestUserModel = {\n email: string\n fullName?: string\n status?: 'pending' | 'active'\n}\nexport type GuestUsersListModel = {\n users?: GuestUserModel[]\n}\nexport type AddGuestUserModel = {\n email: string\n fullName?: string\n}\nexport type ProductTypeListItem = {\n name: string\n baseType?: string\n color?: string\n icon?: string\n}\nexport type DefaultProductType = {\n color: string\n icon: string\n}\nexport type ProductTypesList = {\n productTypes?: ProductTypeListItem[]\n default: DefaultProductType\n}\nexport type LinkTypeModel = {\n /** Name of the link type */\n name: string\n /** Type of the link */\n linkType: string\n /** Input entity type */\n inputType: string\n /** Output entity type */\n outputType: string\n /** Additional link type data */\n data?: Record<string, any>\n}\nexport type ProjectAttribModel2 = {\n priority?: 'urgent' | 'high' | 'normal' | 'low'\n /** Frame rate */\n fps?: number\n /** Horizontal resolution */\n resolutionWidth?: number\n /** Vertical resolution */\n resolutionHeight?: number\n pixelAspect?: number\n clipIn?: number\n clipOut?: number\n frameStart?: number\n frameEnd?: number\n handleStart?: number\n handleEnd?: number\n /** Date and time when the project or task or asset was started */\n startDate?: string\n /** Deadline date and time */\n endDate?: string\n /** Textual description of the entity */\n description?: string\n}\nexport type ProjectModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type ProjectPostModel = {\n code: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectPatchModel = {\n code?: string\n library?: boolean\n folderTypes?: FolderType[]\n taskTypes?: TaskType[]\n linkTypes?: LinkTypeModel[]\n statuses?: Status[]\n tags?: Tag[]\n config?: object\n attrib?: ProjectAttribModel2\n data?: Record<string, any>\n /** Whether the project is active */\n active?: boolean\n}\nexport type ProjectTagsModel = {\n folders?: string[]\n tasks?: string[]\n products?: string[]\n versions?: string[]\n representations?: string[]\n workfiles?: string[]\n}\nexport type UriResponseItem = {\n id: string\n uri: string\n}\nexport type GetUrisResponse = {\n uris?: UriResponseItem[]\n}\nexport type GetUrisRequest = {\n entityType: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile'\n ids?: string[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"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"}
@@ -114,6 +114,25 @@ const a = o.injectEndpoints({
114
114
  body: e.deployProjectRequestModel
115
115
  })
116
116
  }),
117
+ listGuestUsers: t.query({
118
+ query: (e) => ({ url: `/api/projects/${e.projectName}/guests` })
119
+ }),
120
+ addGuestUser: t.mutation({
121
+ query: (e) => ({
122
+ url: `/api/projects/${e.projectName}/guests`,
123
+ method: "POST",
124
+ body: e.addGuestUserModel
125
+ })
126
+ }),
127
+ removeGuestUser: t.mutation({
128
+ query: (e) => ({
129
+ url: `/api/projects/${e.projectName}/guests/${e.email}`,
130
+ method: "DELETE"
131
+ })
132
+ }),
133
+ getProductTypes: t.query({
134
+ query: (e) => ({ url: `/api/projects/${e.projectName}/productTypes` })
135
+ }),
117
136
  getProject: t.query({
118
137
  query: (e) => ({ url: `/api/projects/${e.projectName}` })
119
138
  }),