@acorex-platform/module-platform-management-client 0.0.30 → 0.0.33

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 (65) hide show
  1. package/fesm2022/{acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-V_ao4WVM.mjs → acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-Dhg_zr0Y.mjs} +52 -18
  2. package/fesm2022/acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-Dhg_zr0Y.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs +260 -0
  4. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs +235 -0
  6. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs +192 -0
  8. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs +252 -0
  10. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs +516 -0
  12. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-token.mjs +797 -0
  14. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-token.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs +296 -0
  16. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs +116 -0
  18. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs +169 -0
  20. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs +144 -0
  22. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs +101 -0
  24. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs +161 -0
  26. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs +425 -0
  28. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs +706 -0
  30. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs +205 -0
  32. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog.mjs +2 -0
  34. package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-platform-management-client-contracts.mjs +23 -1
  36. package/fesm2022/acorex-platform-module-platform-management-client-contracts.mjs.map +1 -1
  37. package/fesm2022/{acorex-platform-module-platform-management-client-create-user-query.command-2Qu7aoCp.mjs → acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs} +3 -7
  38. package/fesm2022/acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs.map +1 -0
  39. package/fesm2022/{acorex-platform-module-platform-management-client-execute-token.command-DNuHR-0y.mjs → acorex-platform-module-platform-management-client-execute-token.command-B_xwW9lb.mjs} +1 -4
  40. package/fesm2022/acorex-platform-module-platform-management-client-execute-token.command-B_xwW9lb.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-platform-management-client-local-entities.mjs +35 -0
  42. package/fesm2022/acorex-platform-module-platform-management-client-local-entities.mjs.map +1 -0
  43. package/fesm2022/{acorex-platform-module-platform-management-client-menu-list.component-C5HH5-Dw.mjs → acorex-platform-module-platform-management-client-menu-list.component-DiKmJva5.mjs} +3 -3
  44. package/fesm2022/{acorex-platform-module-platform-management-client-menu-list.component-C5HH5-Dw.mjs.map → acorex-platform-module-platform-management-client-menu-list.component-DiKmJva5.mjs.map} +1 -1
  45. package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-CYb2zOSj.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-BR1FlwWM.mjs} +2 -2
  46. package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-CYb2zOSj.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-BR1FlwWM.mjs.map} +1 -1
  47. package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-BBwrzcXa.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs} +2 -2
  48. package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-BBwrzcXa.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs.map} +1 -1
  49. package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DBlZVz6u.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DPhBXqGo.mjs} +2 -2
  50. package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DBlZVz6u.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DPhBXqGo.mjs.map} +1 -1
  51. package/fesm2022/acorex-platform-module-platform-management-client.mjs +1 -1
  52. package/package.json +39 -3
  53. package/types/acorex-platform-module-platform-management-client-contracts-entities-command-definition.d.ts +5 -0
  54. package/types/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.d.ts +5 -0
  55. package/types/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.d.ts +5 -0
  56. package/types/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.d.ts +5 -0
  57. package/types/acorex-platform-module-platform-management-client-contracts-entities-query-definition.d.ts +5 -0
  58. package/types/acorex-platform-module-platform-management-client-contracts-entities-token.d.ts +5 -0
  59. package/types/acorex-platform-module-platform-management-client-contracts-entities-widget.d.ts +5 -0
  60. package/types/acorex-platform-module-platform-management-client-contracts-entity-catalog.d.ts +10 -0
  61. package/types/acorex-platform-module-platform-management-client-contracts.d.ts +49 -2
  62. package/types/acorex-platform-module-platform-management-client-local-entities.d.ts +12 -0
  63. package/fesm2022/acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-V_ao4WVM.mjs.map +0 -1
  64. package/fesm2022/acorex-platform-module-platform-management-client-create-user-query.command-2Qu7aoCp.mjs.map +0 -1
  65. package/fesm2022/acorex-platform-module-platform-management-client-execute-token.command-DNuHR-0y.mjs.map +0 -1
@@ -48,16 +48,16 @@ const AXMRestApiGeneratorWidget = {
48
48
  properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_READONLY_PROPERTY, AXP_DISABLED_PROPERTY],
49
49
  components: {
50
50
  edit: {
51
- component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-BBwrzcXa.mjs').then((c) => c.AXMRestApiGeneratorWidgetEditComponent),
51
+ component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs').then((c) => c.AXMRestApiGeneratorWidgetEditComponent),
52
52
  },
53
53
  designer: {
54
- component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-BBwrzcXa.mjs').then((c) => c.AXMRestApiGeneratorWidgetEditComponent),
54
+ component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs').then((c) => c.AXMRestApiGeneratorWidgetEditComponent),
55
55
  },
56
56
  view: {
57
- component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DBlZVz6u.mjs').then((c) => c.AXMRestApiGeneratorWidgetViewComponent),
57
+ component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DPhBXqGo.mjs').then((c) => c.AXMRestApiGeneratorWidgetViewComponent),
58
58
  },
59
59
  column: {
60
- component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-CYb2zOSj.mjs').then((c) => c.AXMRestApiGeneratorWidgetColumnComponent),
60
+ component: () => import('./acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-BR1FlwWM.mjs').then((c) => c.AXMRestApiGeneratorWidgetColumnComponent),
61
61
  },
62
62
  },
63
63
  };
@@ -1911,7 +1911,7 @@ class AXMTokenModule {
1911
1911
  provideCommandSetups([
1912
1912
  {
1913
1913
  key: `${RootConfig.module.name}.${RootConfig.entities.token.name}:Execute`,
1914
- command: () => import('./acorex-platform-module-platform-management-client-execute-token.command-DNuHR-0y.mjs').then((c) => c.ExecuteTokenCommand),
1914
+ command: () => import('./acorex-platform-module-platform-management-client-execute-token.command-B_xwW9lb.mjs').then((c) => c.ExecuteTokenCommand),
1915
1915
  },
1916
1916
  ]),
1917
1917
  ] }); }
@@ -1946,7 +1946,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
1946
1946
  provideCommandSetups([
1947
1947
  {
1948
1948
  key: `${RootConfig.module.name}.${RootConfig.entities.token.name}:Execute`,
1949
- command: () => import('./acorex-platform-module-platform-management-client-execute-token.command-DNuHR-0y.mjs').then((c) => c.ExecuteTokenCommand),
1949
+ command: () => import('./acorex-platform-module-platform-management-client-execute-token.command-B_xwW9lb.mjs').then((c) => c.ExecuteTokenCommand),
1950
1950
  },
1951
1951
  ]),
1952
1952
  ],
@@ -2174,10 +2174,33 @@ function mapEntityRowToRegistryRecord(row) {
2174
2174
  categories: row.categories,
2175
2175
  };
2176
2176
  }
2177
+ function mapQueryEntityRowToRegistryRecord(row) {
2178
+ return {
2179
+ name: row.name,
2180
+ active: row.active !== false,
2181
+ description: row.description,
2182
+ catalogTitle: row.catalogTitle,
2183
+ executionMode: row.executionMode,
2184
+ aiMetadataJson: row.aiMetadataJson,
2185
+ capabilities: row.capabilities,
2186
+ categories: row.categories,
2187
+ resultType: row.resultType,
2188
+ kind: row.kind,
2189
+ binding: row.binding,
2190
+ byKeyQuery: row.byKeyQuery,
2191
+ args: row.args,
2192
+ filter: row.filter,
2193
+ sort: row.sort,
2194
+ paging: row.paging,
2195
+ columns: row.columns,
2196
+ valueType: row.valueType,
2197
+ };
2198
+ }
2177
2199
  //#endregion
2178
2200
  //#region ---- Platform command catalog CRUD (server-backed) ----
2179
2201
  /**
2180
- * Reads command catalog metadata from {@code PlatformManagement.CommandDefinition} entity storage (server DB).
2202
+ * Reads command/query catalog metadata from {@code PlatformManagement.CommandDefinition}
2203
+ * and {@code PlatformManagement.QueryDefinition} entity storage (server DB).
2181
2204
  * Sidecar source files are never imported in the browser bundle.
2182
2205
  */
2183
2206
  class AXMPlatformCommandCatalogCrudService {
@@ -2189,6 +2212,11 @@ class AXMPlatformCommandCatalogCrudService {
2189
2212
  .withEntity(RootConfig.module.name, RootConfig.entities.commandDefinition.name)
2190
2213
  .data();
2191
2214
  }
2215
+ queryEntityData() {
2216
+ return this.entityService
2217
+ .withEntity(RootConfig.module.name, RootConfig.entities.queryDefinition.name)
2218
+ .data();
2219
+ }
2192
2220
  async listCommands() {
2193
2221
  const result = await this.entityData().query({ skip: 0, take: 5000 });
2194
2222
  const items = (result.items ?? []);
@@ -2201,7 +2229,19 @@ class AXMPlatformCommandCatalogCrudService {
2201
2229
  const row = await this.entityData().byKey(id);
2202
2230
  return row ? mapEntityRowToRegistryRecord(row) : null;
2203
2231
  }
2204
- // #region ---- Unimplemented catalog stores (Phase 1: commands only) ----
2232
+ async listQueries() {
2233
+ const result = await this.queryEntityData().query({ skip: 0, take: 5000 });
2234
+ const items = (result.items ?? []);
2235
+ return items.map((row) => ({
2236
+ id: String(row.id),
2237
+ definition: mapQueryEntityRowToRegistryRecord(row),
2238
+ }));
2239
+ }
2240
+ async getQuery(id) {
2241
+ const row = await this.queryEntityData().byKey(id);
2242
+ return row ? mapQueryEntityRowToRegistryRecord(row) : null;
2243
+ }
2244
+ // #region ---- Unimplemented catalog stores ----
2205
2245
  async list() {
2206
2246
  return [];
2207
2247
  }
@@ -2349,12 +2389,6 @@ class AXMPlatformCommandCatalogCrudService {
2349
2389
  async deleteCommand() {
2350
2390
  throw new Error('Not implemented');
2351
2391
  }
2352
- async listQueries() {
2353
- return [];
2354
- }
2355
- async getQuery() {
2356
- return null;
2357
- }
2358
2392
  async createQuery() {
2359
2393
  throw new Error('Not implemented');
2360
2394
  }
@@ -2405,7 +2439,7 @@ function routesFactory() {
2405
2439
  children: [
2406
2440
  {
2407
2441
  path: '',
2408
- loadComponent: () => import('./acorex-platform-module-platform-management-client-menu-list.component-C5HH5-Dw.mjs').then((c) => c.AXMMenuListComponent),
2442
+ loadComponent: () => import('./acorex-platform-module-platform-management-client-menu-list.component-DiKmJva5.mjs').then((c) => c.AXMMenuListComponent),
2409
2443
  data: { reuse: true },
2410
2444
  },
2411
2445
  ],
@@ -2466,7 +2500,7 @@ class AXMPlatformManagementModule {
2466
2500
  },
2467
2501
  {
2468
2502
  key: 'PlatformManagement:CreateUserQuery',
2469
- command: () => import('./acorex-platform-module-platform-management-client-create-user-query.command-2Qu7aoCp.mjs').then((c) => c.AXMCreateUserQueryCommand),
2503
+ command: () => import('./acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs').then((c) => c.AXMCreateUserQueryCommand),
2470
2504
  },
2471
2505
  ]),
2472
2506
  provideQuerySetups([
@@ -2587,7 +2621,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
2587
2621
  },
2588
2622
  {
2589
2623
  key: 'PlatformManagement:CreateUserQuery',
2590
- command: () => import('./acorex-platform-module-platform-management-client-create-user-query.command-2Qu7aoCp.mjs').then((c) => c.AXMCreateUserQueryCommand),
2624
+ command: () => import('./acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs').then((c) => c.AXMCreateUserQueryCommand),
2591
2625
  },
2592
2626
  ]),
2593
2627
  provideQuerySetups([
@@ -4596,4 +4630,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
4596
4630
  */
4597
4631
 
4598
4632
  export { AXPMenuManagementService as A, snapPoint as B, snapScalar as C, REST_API_GENERATOR_WIDGET_NAME as R, REST_API_GENERATOR_IMPORT_DEBOUNCE_MS as a, AXMPlatformManagementModule as b, createEmptyRestApiOutput as c, AXPWorkflowDesignerComponent as d, AXPWorkflowPaletteItemDragDirective as e, formatRestApiSummary as f, AXP_WORKFLOW_PALETTE_MIME as g, hasParsedContent as h, arrangeWorkflowDiagram as i, cloneDiagram as j, connectorPath as k, createNodeFromPaletteItem as l, createPortsFromPalette as m, normalizeRestApiOutput as n, createWorkflowConnectorId as o, parseHttpRequest as p, createWorkflowNodeId as q, createWorkflowPortId as r, defaultCanConnectRequest as s, findConnector as t, findNode as u, findPort as v, parsePaletteItemDragPayload as w, portAnchorOnNode as x, portCanvasPosition as y, routeOrthogonalConnector as z };
4599
- //# sourceMappingURL=acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-V_ao4WVM.mjs.map
4633
+ //# sourceMappingURL=acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-Dhg_zr0Y.mjs.map