@acorex-platform/module-background-job-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 (47) hide show
  1. package/fesm2022/{acorex-platform-module-background-job-management-client-background-job-command-error.util-BzDLhWRP.mjs → acorex-platform-module-background-job-management-client-background-job-command-error.util-BHBmSbvw.mjs} +5 -1
  2. package/fesm2022/acorex-platform-module-background-job-management-client-background-job-command-error.util-BHBmSbvw.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-background-job-management-client-background-job-source-column.component-JzU8l_7q.mjs +83 -0
  4. package/fesm2022/acorex-platform-module-background-job-management-client-background-job-source-column.component-JzU8l_7q.mjs.map +1 -0
  5. package/fesm2022/{acorex-platform-module-background-job-management-client-cancel-background-job.command-OZPzjIow.mjs → acorex-platform-module-background-job-management-client-cancel-background-job.command-BHCWX1c1.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-background-job-management-client-cancel-background-job.command-OZPzjIow.mjs.map → acorex-platform-module-background-job-management-client-cancel-background-job.command-BHCWX1c1.mjs.map} +1 -1
  7. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entities-background-job-attempt.mjs +262 -0
  8. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entities-background-job-attempt.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entities-background-job-schedule.mjs +539 -0
  10. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entities-background-job-schedule.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entities-background-job.mjs +500 -0
  12. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entities-background-job.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-acorex-platform-module-background-job-management-client-contracts-entity-catalog-BXFhpRfS.mjs +67 -0
  14. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-acorex-platform-module-background-job-management-client-contracts-entity-catalog-BXFhpRfS.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-background-job-attempt.entity-di_KkFZV.mjs +216 -0
  16. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-background-job-attempt.entity-di_KkFZV.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-background-job-schedule.entity-q8VKiWJf.mjs +493 -0
  18. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-background-job-schedule.entity-q8VKiWJf.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-background-job.entity-Bz33gUlR.mjs +454 -0
  20. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog-background-job.entity-Bz33gUlR.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog.mjs +2 -0
  22. package/fesm2022/acorex-platform-module-background-job-management-client-contracts-entity-catalog.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-background-job-management-client-contracts.mjs +6 -1
  24. package/fesm2022/acorex-platform-module-background-job-management-client-contracts.mjs.map +1 -1
  25. package/fesm2022/acorex-platform-module-background-job-management-client-local-entities.mjs +31 -0
  26. package/fesm2022/acorex-platform-module-background-job-management-client-local-entities.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-background-job-management-client-replay-dead-letter.command-BM4NYBxr.mjs +37 -0
  28. package/fesm2022/acorex-platform-module-background-job-management-client-replay-dead-letter.command-BM4NYBxr.mjs.map +1 -0
  29. package/fesm2022/{acorex-platform-module-background-job-management-client-retry-background-job.command-BdJ_PC_y.mjs → acorex-platform-module-background-job-management-client-retry-background-job.command-BBEAc_i7.mjs} +2 -2
  30. package/fesm2022/{acorex-platform-module-background-job-management-client-retry-background-job.command-BdJ_PC_y.mjs.map → acorex-platform-module-background-job-management-client-retry-background-job.command-BBEAc_i7.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-module-background-job-management-client-run-schedule-now.command-orzJ7ZmD.mjs → acorex-platform-module-background-job-management-client-run-schedule-now.command-5RV6hAnH.mjs} +2 -2
  32. package/fesm2022/{acorex-platform-module-background-job-management-client-run-schedule-now.command-orzJ7ZmD.mjs.map → acorex-platform-module-background-job-management-client-run-schedule-now.command-5RV6hAnH.mjs.map} +1 -1
  33. package/fesm2022/acorex-platform-module-background-job-management-client-tray-execute-click.command-CEVhvrDQ.mjs +27 -0
  34. package/fesm2022/acorex-platform-module-background-job-management-client-tray-execute-click.command-CEVhvrDQ.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-background-job-management-client-tray-run-action.command-B9SFMGxf.mjs +38 -0
  36. package/fesm2022/acorex-platform-module-background-job-management-client-tray-run-action.command-B9SFMGxf.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-background-job-management-client.mjs +556 -17
  38. package/fesm2022/acorex-platform-module-background-job-management-client.mjs.map +1 -1
  39. package/package.json +21 -1
  40. package/types/acorex-platform-module-background-job-management-client-contracts-entities-background-job-attempt.d.ts +5 -0
  41. package/types/acorex-platform-module-background-job-management-client-contracts-entities-background-job-schedule.d.ts +5 -0
  42. package/types/acorex-platform-module-background-job-management-client-contracts-entities-background-job.d.ts +5 -0
  43. package/types/acorex-platform-module-background-job-management-client-contracts-entity-catalog.d.ts +10 -0
  44. package/types/acorex-platform-module-background-job-management-client-contracts.d.ts +6 -1
  45. package/types/acorex-platform-module-background-job-management-client-local-entities.d.ts +12 -0
  46. package/types/acorex-platform-module-background-job-management-client.d.ts +9 -2
  47. package/fesm2022/acorex-platform-module-background-job-management-client-background-job-command-error.util-BzDLhWRP.mjs.map +0 -1
@@ -12,6 +12,10 @@ const BackgroundJobCommandI18n = {
12
12
  success: `${ROOT}:jobs.commands.retry.messages.success`,
13
13
  failed: `${ROOT}:jobs.commands.retry.messages.failed`,
14
14
  },
15
+ replayDeadLetter: {
16
+ success: `${ROOT}:jobs.commands.replay-dead-letter.messages.success`,
17
+ failed: `${ROOT}:jobs.commands.replay-dead-letter.messages.failed`,
18
+ },
15
19
  cancel: {
16
20
  completed: `${ROOT}:jobs.commands.cancel.messages.completed`,
17
21
  requested: `${ROOT}:jobs.commands.cancel.messages.requested`,
@@ -63,4 +67,4 @@ async function resolveBackgroundJobCommandError(translationService, error, fallb
63
67
  }
64
68
 
65
69
  export { BackgroundJobCommandI18n as B, resolveBackgroundJobCommandError as r };
66
- //# sourceMappingURL=acorex-platform-module-background-job-management-client-background-job-command-error.util-BzDLhWRP.mjs.map
70
+ //# sourceMappingURL=acorex-platform-module-background-job-management-client-background-job-command-error.util-BHBmSbvw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-background-job-management-client-background-job-command-error.util-BHBmSbvw.mjs","sources":["../../../../libs/modules/background-job-management/client/src/lib/commands/background-job-command.i18n.ts","../../../../libs/modules/background-job-management/client/src/lib/commands/background-job-command-error.util.ts"],"sourcesContent":["const ROOT = '@background-job-management';\n\nexport const BackgroundJobCommandI18n = {\n errors: {\n notFound: `${ROOT}:jobs.errors.not-found`,\n retryInvalidStatus: `${ROOT}:jobs.errors.retry-invalid-status`,\n notDeadLettered: `${ROOT}:jobs.errors.not-dead-lettered`,\n },\n retry: {\n success: `${ROOT}:jobs.commands.retry.messages.success`,\n failed: `${ROOT}:jobs.commands.retry.messages.failed`,\n },\n replayDeadLetter: {\n success: `${ROOT}:jobs.commands.replay-dead-letter.messages.success`,\n failed: `${ROOT}:jobs.commands.replay-dead-letter.messages.failed`,\n },\n cancel: {\n completed: `${ROOT}:jobs.commands.cancel.messages.completed`,\n requested: `${ROOT}:jobs.commands.cancel.messages.requested`,\n failed: `${ROOT}:jobs.commands.cancel.messages.failed`,\n },\n runNow: {\n successTitle: `${ROOT}:schedules.commands.run-now.messages.success.title`,\n successDescription: `${ROOT}:schedules.commands.run-now.messages.success.description`,\n failedTitle: `${ROOT}:schedules.commands.run-now.messages.failed.title`,\n failedDescription: `${ROOT}:schedules.commands.run-now.messages.failed.description`,\n },\n} as const;\n","import { extractRequestErrorInfo } from '@acorex-platform/framework-client/common';\nimport { AXP_BACKGROUND_JOB_ERROR_CODES } from '@acorex-platform/framework-shared/background-job';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { BackgroundJobCommandI18n } from './background-job-command.i18n';\n\nconst JOB_STATUS_I18N_ROOT = '@background-job-management:jobs.entities.background-job.states';\n\nconst ERROR_I18N_BY_CODE: Record<string, string> = {\n [AXP_BACKGROUND_JOB_ERROR_CODES.NOT_FOUND]: BackgroundJobCommandI18n.errors.notFound,\n [AXP_BACKGROUND_JOB_ERROR_CODES.RETRY_INVALID_STATUS]: BackgroundJobCommandI18n.errors.retryInvalidStatus,\n [AXP_BACKGROUND_JOB_ERROR_CODES.NOT_DEAD_LETTERED]: BackgroundJobCommandI18n.errors.notDeadLettered,\n};\n\nasync function translateJobStatus(\n translationService: AXTranslationService,\n status: string | undefined,\n): Promise<string | undefined> {\n if (!status) {\n return undefined;\n }\n\n const statusKey = `${JOB_STATUS_I18N_ROOT}.${status}`;\n const translated = await translationService.translateAsync(statusKey);\n return translated === statusKey ? status : translated;\n}\n\nexport async function resolveBackgroundJobCommandError(\n translationService: AXTranslationService,\n error: unknown,\n fallbackKey: string,\n): Promise<{ messageKeyOrText: string; displayText: string }> {\n const httpInfo = extractRequestErrorInfo(error);\n if (httpInfo?.code) {\n const messageKey = ERROR_I18N_BY_CODE[httpInfo.code];\n if (messageKey) {\n const statusLabel = await translateJobStatus(translationService, httpInfo.params?.['status']);\n const params = {\n ...(httpInfo.params ?? {}),\n ...(statusLabel ? { status: statusLabel } : {}),\n };\n const displayText = await translationService.translateAsync(messageKey, {\n params: Object.keys(params).length > 0 ? params : undefined,\n });\n return { messageKeyOrText: messageKey, displayText };\n }\n }\n\n if (httpInfo?.message) {\n return { messageKeyOrText: httpInfo.message, displayText: httpInfo.message };\n }\n\n const displayText = await translationService.translateAsync(fallbackKey);\n return { messageKeyOr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,UAAU,EAAE,WAAW,EAAE;QACtD;IACF;AAEA,IAAA,IAAI,QAAQ,EAAE,OAAO,EAAE;AACrB,QAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,OAAO,EAAE;IAC9E;IAEA,MAAM,WAAW,GAAG,MAAM,kBAAkB,CAAC,cAAc,CAAC,WAAW,CAAC;AACxE,IAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE;AACvD;;;;"}
@@ -0,0 +1,83 @@
1
+ import { AXTranslationModule } from '@acorex/core/translation';
2
+ import { AXPUserAvatarComponent, AXPUserCardDirective } from '@acorex-platform/framework-client/layout/components';
3
+ import { AXPColumnWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i0 from '@angular/core';
6
+ import { computed, ChangeDetectionStrategy, Component } from '@angular/core';
7
+
8
+ //#region ----- Imports -----
9
+ //#endregion
10
+ //#region ----- Constants -----
11
+ const MACHINE_USER_ID = 'background-job';
12
+ const USER_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
13
+ //#endregion
14
+ //#region ----- Component -----
15
+ class BackgroundJobSourceColumnComponent extends AXPColumnWidgetComponent {
16
+ constructor() {
17
+ super(...arguments);
18
+ //#region ----- Computed Properties -----
19
+ this.startedByUserId = computed(() => this.resolveStartedByUserId(), /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "startedByUserId" }] : /* istanbul ignore next */ []));
21
+ this.eventSourceLabel = computed(() => this.resolveEventSource()?.label ?? null, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "eventSourceLabel" }] : /* istanbul ignore next */ []));
23
+ this.eventSourceTitle = computed(() => this.resolveEventSource()?.title ?? '', /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "eventSourceTitle" }] : /* istanbul ignore next */ []));
25
+ }
26
+ //#endregion
27
+ //#region ----- Event Handlers -----
28
+ stopRowClick(event) {
29
+ event.stopPropagation();
30
+ }
31
+ //#endregion
32
+ //#region ----- Helpers -----
33
+ resolveStartedByUserId() {
34
+ const userId = this.readString(this.readRowValue('userId'));
35
+ if (!userId || userId === MACHINE_USER_ID || !USER_ID_PATTERN.test(userId)) {
36
+ return null;
37
+ }
38
+ return userId;
39
+ }
40
+ resolveEventSource() {
41
+ const payload = this.readCommandPayload();
42
+ const eventSource = this.asRecord(payload['eventSource']);
43
+ const entityName = this.readString(eventSource['entityName']) || this.readString(payload['entityName']);
44
+ if (entityName) {
45
+ return { label: this.shortName(entityName, '.'), title: entityName };
46
+ }
47
+ const queryKeys = payload['queryKeys'];
48
+ const queryKey = Array.isArray(queryKeys) ? this.readString(queryKeys[0]) : '';
49
+ if (queryKey) {
50
+ return { label: this.shortName(queryKey, ':'), title: queryKey };
51
+ }
52
+ return null;
53
+ }
54
+ readCommandPayload() {
55
+ const command = this.asRecord(this.readRowValue('command'));
56
+ return this.asRecord(command['payload']);
57
+ }
58
+ readRowValue(path) {
59
+ const row = this.asRecord(this.rowData);
60
+ return row[path];
61
+ }
62
+ asRecord(value) {
63
+ return value != null && typeof value === 'object' && !Array.isArray(value)
64
+ ? value
65
+ : {};
66
+ }
67
+ shortName(value, separator) {
68
+ const index = value.lastIndexOf(separator);
69
+ return index >= 0 ? value.slice(index + 1) : value;
70
+ }
71
+ readString(value) {
72
+ return typeof value === 'string' ? value.trim() : '';
73
+ }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BackgroundJobSourceColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
75
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BackgroundJobSourceColumnComponent, isStandalone: true, selector: "axp-background-job-source-column", inputs: { rawValue: "rawValue", rowData: "rowData" }, usesInheritance: true, ngImport: i0, template: "@if (startedByUserId(); as userId) {\n <!-- ----- User who started a manual run ----- -->\n <div\n class=\"flex items-center gap-1.5 min-w-0\"\n (click)=\"stopRowClick($event)\"\n (pointerdown)=\"stopRowClick($event)\"\n >\n <axp-user-avatar\n #startedBy\n [size]=\"22\"\n [userId]=\"userId\"\n [showPresence]=\"false\"\n [axpUserCard]=\"userId\"\n ></axp-user-avatar>\n <span class=\"truncate text-sm\">{{ startedBy.title() }}</span>\n </div>\n}\n<!-- ----- Entity or query that raised an event-triggered job ----- -->\n@else if (eventSourceLabel(); as source) {\n <span class=\"truncate text-sm\" [attr.title]=\"eventSourceTitle()\">{{ source }}</span>\n}\n<!-- ----- Schedule and system jobs have no person or event source ----- -->\n@else {\n <span class=\"text-muted\">---</span>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "directive", type: AXPUserCardDirective, selector: "[axpUserCard]", inputs: ["axpUserCard", "axpUserCardDisabled", "axpUserCardTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BackgroundJobSourceColumnComponent, decorators: [{
78
+ type: Component,
79
+ args: [{ selector: 'axp-background-job-source-column', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, AXTranslationModule, AXPUserAvatarComponent, AXPUserCardDirective], inputs: ['rawValue', 'rowData'], template: "@if (startedByUserId(); as userId) {\n <!-- ----- User who started a manual run ----- -->\n <div\n class=\"flex items-center gap-1.5 min-w-0\"\n (click)=\"stopRowClick($event)\"\n (pointerdown)=\"stopRowClick($event)\"\n >\n <axp-user-avatar\n #startedBy\n [size]=\"22\"\n [userId]=\"userId\"\n [showPresence]=\"false\"\n [axpUserCard]=\"userId\"\n ></axp-user-avatar>\n <span class=\"truncate text-sm\">{{ startedBy.title() }}</span>\n </div>\n}\n<!-- ----- Entity or query that raised an event-triggered job ----- -->\n@else if (eventSourceLabel(); as source) {\n <span class=\"truncate text-sm\" [attr.title]=\"eventSourceTitle()\">{{ source }}</span>\n}\n<!-- ----- Schedule and system jobs have no person or event source ----- -->\n@else {\n <span class=\"text-muted\">---</span>\n}\n" }]
80
+ }] });
81
+
82
+ export { BackgroundJobSourceColumnComponent };
83
+ //# sourceMappingURL=acorex-platform-module-background-job-management-client-background-job-source-column.component-JzU8l_7q.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-background-job-management-client-background-job-source-column.component-JzU8l_7q.mjs","sources":["../../../../libs/modules/background-job-management/client/src/lib/widgets/background-job-source-column.component.ts","../../../../libs/modules/background-job-management/client/src/lib/widgets/background-job-source-column.component.html"],"sourcesContent":["//#region ----- Imports -----\n\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPUserAvatarComponent, AXPUserCardDirective } from '@acorex-platform/framework-client/layout/components';\nimport { AXPColumnWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst MACHINE_USER_ID = 'background-job';\nconst USER_ID_PATTERN =\n /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n selector: 'axp-background-job-source-column',\n templateUrl: './background-job-source-column.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXTranslationModule, AXPUserAvatarComponent, AXPUserCardDirective],\n inputs: ['rawValue', 'rowData'],\n})\nexport class BackgroundJobSourceColumnComponent extends AXPColumnWidgetComponent<unknown> {\n //#region ----- Computed Properties -----\n\n protected readonly startedByUserId = computed(() => this.resolveStartedByUserId());\n\n protected readonly eventSourceLabel = computed(() => this.resolveEventSource()?.label ?? null);\n\n protected readonly eventSourceTitle = computed(() => this.resolveEventSource()?.title ?? '');\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected stopRowClick(event: Event): void {\n event.stopPropagation();\n }\n\n //#endregion\n\n //#region ----- Helpers -----\n\n private resolveStartedByUserId(): string | null {\n const userId = this.readString(this.readRowValue('userId'));\n if (!userId || userId === MACHINE_USER_ID || !USER_ID_PATTERN.test(userId)) {\n return null;\n }\n return userId;\n }\n\n private resolveEventSource(): { label: string; title: string } | null {\n const payload = this.readCommandPayload();\n const eventSource = this.asRecord(payload['eventSource']);\n const entityName =\n this.readString(eventSource['entityName']) || this.readString(payload['entityName']);\n if (entityName) {\n return { label: this.shortName(entityName, '.'), title: entityName };\n }\n\n const queryKeys = payload['queryKeys'];\n const queryKey = Array.isArray(queryKeys) ? this.readString(queryKeys[0]) : '';\n if (queryKey) {\n return { label: this.shortName(queryKey, ':'), title: queryKey };\n }\n\n return null;\n }\n\n private readCommandPayload(): Record<string, unknown> {\n const command = this.asRecord(this.readRowValue('command'));\n return this.asRecord(command['payload']);\n }\n\n private readRowValue(path: string): unknown {\n const row = this.asRecord(this.rowData);\n return row[path];\n }\n\n private asRecord(value: unknown): Record<string, unknown> {\n return value != null && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : {};\n }\n\n private shortName(value: string, separator: string): string {\n const index = value.lastIndexOf(separator);\n return index >= 0 ? value.slice(index + 1) : value;\n }\n\n private readString(value: unknown): string {\n return typeof value === 'string' ? value.trim() : '';\n }\n\n //#endregion\n}\n\n//#endregion\n","@if (startedByUserId(); as userId) {\n <!-- ----- User who started a manual run ----- -->\n <div\n class=\"flex items-center gap-1.5 min-w-0\"\n (click)=\"stopRowClick($event)\"\n (pointerdown)=\"stopRowClick($event)\"\n >\n <axp-user-avatar\n #startedBy\n [size]=\"22\"\n [userId]=\"userId\"\n [showPresence]=\"false\"\n [axpUserCard]=\"userId\"\n ></axp-user-avatar>\n <span class=\"truncate text-sm\">{{ startedBy.title() }}</span>\n </div>\n}\n<!-- ----- Entity or query that raised an event-triggered job ----- -->\n@else if (eventSourceLabel(); as source) {\n <span class=\"truncate text-sm\" [attr.title]=\"eventSourceTitle()\">{{ source }}</span>\n}\n<!-- ----- Schedule and system jobs have no person or event source ----- -->\n@else {\n <span class=\"text-muted\">---</span>\n}\n"],"names":[],"mappings":";;;;;;;AAAA;AAQA;AAEA;AAEA,MAAM,eAAe,GAAG,gBAAgB;AACxC,MAAM,eAAe,GACnB,iEAAiE;AAEnE;AAEA;AASM,MAAO,kCAAmC,SAAQ,wBAAiC,CAAA;AAPzF,IAAA,WAAA,GAAA;;;QAUqB,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,sBAAsB,EAAE;4FAAC;AAE/D,QAAA,IAAA,CAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,kBAAkB,EAAE,EAAE,KAAK,IAAI,IAAI;6FAAC;AAE3E,QAAA,IAAA,CAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,kBAAkB,EAAE,EAAE,KAAK,IAAI,EAAE;6FAAC;AAkE7F,IAAA;;;AA5DW,IAAA,YAAY,CAAC,KAAY,EAAA;QACjC,KAAK,CAAC,eAAe,EAAE;IACzB;;;IAMQ,sBAAsB,GAAA;AAC5B,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC3D,QAAA,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,eAAe,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;AAC1E,YAAA,OAAO,IAAI;QACb;AACA,QAAA,OAAO,MAAM;IACf;IAEQ,kBAAkB,GAAA;AACxB,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,kBAA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;kBAP9C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kCAAkC,mBAE3B,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,YAAY,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAA,MAAA,EAClF,CAAC,UAAU,EAAE,SAAS,CAAC,EAAA,QAAA,EAAA,w0BAAA,EAAA;;;;;"}
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { inject, Injectable } from '@angular/core';
3
3
  import { AXTranslationService } from '@acorex/core/translation';
4
4
  import { AXPBackgroundJobManagementClient } from './acorex-platform-module-background-job-management-client.mjs';
5
- import { B as BackgroundJobCommandI18n, r as resolveBackgroundJobCommandError } from './acorex-platform-module-background-job-management-client-background-job-command-error.util-BzDLhWRP.mjs';
5
+ import { B as BackgroundJobCommandI18n, r as resolveBackgroundJobCommandError } from './acorex-platform-module-background-job-management-client-background-job-command-error.util-BHBmSbvw.mjs';
6
6
 
7
7
  class CancelBackgroundJobCommand {
8
8
  constructor() {
@@ -49,4 +49,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
49
49
  }] });
50
50
 
51
51
  export { CancelBackgroundJobCommand };
52
- //# sourceMappingURL=acorex-platform-module-background-job-management-client-cancel-background-job.command-OZPzjIow.mjs.map
52
+ //# sourceMappingURL=acorex-platform-module-background-job-management-client-cancel-background-job.command-BHCWX1c1.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-background-job-management-client-cancel-background-job.command-OZPzjIow.mjs","sources":["../../../../libs/modules/background-job-management/client/src/lib/commands/cancel-background-job.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { Injectable, inject } from '@angular/core';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPBackgroundJobManagementClient } from '../background-job-management-client.port';\nimport { resolveBackgroundJobCommandError } from './background-job-command-error.util';\nimport { BackgroundJobCommandI18n } from './background-job-command.i18n';\n\nexport interface CancelBackgroundJobInput {\n jobId: string;\n reason?: string;\n}\n\n@Injectable()\nexport class CancelBackgroundJobCommand implements AXPCommand<CancelBackgroundJobInput, { status: string }> {\n private readonly client = inject(AXPBackgroundJobManagementClient);\n private readonly translationService = inject(AXTranslationService);\n\n async execute(raw: unknown): AXPCommandExecuteResultPromise<{ status: string }> {\n const wrapped = raw as { options?: CancelBackgroundJobInput } & Record<string, unknown>;\n const input = (wrapped?.options ?? raw) as CancelBackgroundJobInput;\n\n try {\n const result = await this.client.cancelJob(input.jobId, input.reason);\n const messageKey =\n result.status === 'cancelled'\n ? BackgroundJobCommandI18n.cancel.completed\n : BackgroundJobCommandI18n.cancel.requested;\n return result.success\n ? {\n success: true,\n kind: 'object',\n data: { status: result.status },\n message: {\n text: messageKey,\n type: result.status === 'cancelled' ? 'success' : 'warning',\n },\n }\n : {\n success: false,\n message: {\n text: messageKey,\n type: 'warning',\n details: { status: result.status },\n },\n };\n } catch (error) {\n const { messageKeyOrText } = await resolveBackgroundJobCommandError(\n this.translationService,\n error,\n BackgroundJobCommandI18n.cancel.failed,\n );\n return { success: false, message: { text: messageKeyOrText } };\n }\n }\n}\n"],"names":[],"mappings":";;;;;;MAca,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,gCAAgC,CAAC;AACjD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAuCnE,IAAA;IArCC,MAAM,OAAO,CAAC,GAAY,EAAA;QACxB,MAAM,OAAO,GAAG,GAAuE;QACvF,MAAM,KAAK,IAAI,OAAO,EAAE,OAAO,IAAI,GAAG,CAA6B;AAEnE,QAAA,IAAI;AACF,YAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,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,"file":"acorex-platform-module-background-job-management-client-cancel-background-job.command-BHCWX1c1.mjs","sources":["../../../../libs/modules/background-job-management/client/src/lib/commands/cancel-background-job.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { Injectable, inject } from '@angular/core';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPBackgroundJobManagementClient } from '../background-job-management-client.port';\nimport { resolveBackgroundJobCommandError } from './background-job-command-error.util';\nimport { BackgroundJobCommandI18n } from './background-job-command.i18n';\n\nexport interface CancelBackgroundJobInput {\n jobId: string;\n reason?: string;\n}\n\n@Injectable()\nexport class CancelBackgroundJobCommand implements AXPCommand<CancelBackgroundJobInput, { status: string }> {\n private readonly client = inject(AXPBackgroundJobManagementClient);\n private readonly translationService = inject(AXTranslationService);\n\n async execute(raw: unknown): AXPCommandExecuteResultPromise<{ status: string }> {\n const wrapped = raw as { options?: CancelBackgroundJobInput } & Record<string, unknown>;\n const input = (wrapped?.options ?? raw) as CancelBackgroundJobInput;\n\n try {\n const result = await this.client.cancelJob(input.jobId, input.reason);\n const messageKey =\n result.status === 'cancelled'\n ? BackgroundJobCommandI18n.cancel.completed\n : BackgroundJobCommandI18n.cancel.requested;\n return result.success\n ? {\n success: true,\n kind: 'object',\n data: { status: result.status },\n message: {\n text: messageKey,\n type: result.status === 'cancelled' ? 'success' : 'warning',\n },\n }\n : {\n success: false,\n message: {\n text: messageKey,\n type: 'warning',\n details: { status: result.status },\n },\n };\n } catch (error) {\n const { messageKeyOrText } = await resolveBackgroundJobCommandError(\n this.translationService,\n error,\n BackgroundJobCommandI18n.cancel.failed,\n );\n return { success: false, message: { text: messageKeyOrText } };\n }\n }\n}\n"],"names":[],"mappings":";;;;;;MAca,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,gC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E,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE;QAChE;IACF;8GAxCW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAA1B,0BAA0B,EAAA,CAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC;;;;;"}
@@ -0,0 +1,262 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'background-job-management',
6
+ module: 'BackgroundJobManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'background-job-management',
12
+ name: config.module,
13
+ title: '@background-job-management:module.title',
14
+ icon: 'fa-light fa-gears',
15
+ },
16
+ entities: {
17
+ backgroundJob: {
18
+ name: 'BackgroundJob',
19
+ fullName: `${config.module}.BackgroundJob`,
20
+ title: '@background-job-management:jobs.entities.background-job.title',
21
+ titlePlural: '@background-job-management:jobs.entities.background-job.plural',
22
+ icon: 'fa-light fa-list-check',
23
+ },
24
+ backgroundJobAttempt: {
25
+ name: 'BackgroundJobAttempt',
26
+ fullName: `${config.module}.BackgroundJobAttempt`,
27
+ title: '@background-job-management:attempts.entities.background-job-attempt.title',
28
+ titlePlural: '@background-job-management:attempts.entities.background-job-attempt.plural',
29
+ icon: 'fa-light fa-rotate',
30
+ },
31
+ backgroundJobSchedule: {
32
+ name: 'BackgroundJobSchedule',
33
+ fullName: `${config.module}.BackgroundJobSchedule`,
34
+ title: '@background-job-management:schedules.entities.background-job-schedule.title',
35
+ titlePlural: '@background-job-management:schedules.entities.background-job-schedule.plural',
36
+ icon: 'fa-light fa-calendar-clock',
37
+ },
38
+ },
39
+ queries: {
40
+ dashboard: {
41
+ jobsByStatusBar: `${config.module}:Dashboard:JobsByStatusBar`,
42
+ jobSchedulesByStatusBar: `${config.module}:Dashboard:JobSchedulesByStatusBar`,
43
+ },
44
+ },
45
+ };
46
+
47
+ const I18N = '@background-job-management:attempts.entities.background-job-attempt';
48
+ const STATUS_ITEMS = [
49
+ { name: 'queued', title: `${I18N}.states.queued` },
50
+ { name: 'running', title: `${I18N}.states.running` },
51
+ { name: 'succeeded', title: `${I18N}.states.succeeded` },
52
+ { name: 'failed', title: `${I18N}.states.failed` },
53
+ { name: 'cancelled', title: `${I18N}.states.cancelled` },
54
+ { name: 'timed-out', title: `${I18N}.states.timed-out` },
55
+ { name: 'abandoned', title: `${I18N}.states.abandoned` },
56
+ ];
57
+ async function factoryBackgroundJobAttempt() {
58
+ const entityDef = {
59
+ module: RootConfig.module.name,
60
+ name: RootConfig.entities.backgroundJobAttempt.name,
61
+ title: RootConfig.entities.backgroundJobAttempt.title,
62
+ icon: RootConfig.entities.backgroundJobAttempt.icon,
63
+ formats: {
64
+ individual: RootConfig.entities.backgroundJobAttempt.title,
65
+ plural: RootConfig.entities.backgroundJobAttempt.titlePlural,
66
+ searchResult: {
67
+ title: '{{ jobId }} #{{ attemptNumber }}',
68
+ description: '{{ status }}',
69
+ },
70
+ },
71
+ groups: [{ id: 'overview', title: `${I18N}.groups.overview` }],
72
+ properties: [
73
+ {
74
+ name: 'id',
75
+ title: 'ID',
76
+ groupId: 'overview',
77
+ schema: {
78
+ dataType: 'uuid',
79
+ visible: false,
80
+ nullable: false,
81
+ readonly: true,
82
+ unique: { enabled: true },
83
+ },
84
+ },
85
+ {
86
+ name: 'jobId',
87
+ title: `${I18N}.fields.job-id.title`,
88
+ groupId: 'overview',
89
+ schema: {
90
+ dataType: 'string',
91
+ interface: { type: AXPWidgetsCatalog.text },
92
+ readonly: true,
93
+ },
94
+ options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },
95
+ },
96
+ {
97
+ name: 'attemptNumber',
98
+ title: `${I18N}.fields.attempt-number.title`,
99
+ groupId: 'overview',
100
+ schema: {
101
+ dataType: 'number',
102
+ interface: { type: AXPWidgetsCatalog.number },
103
+ readonly: true,
104
+ },
105
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
106
+ },
107
+ {
108
+ name: 'trigger',
109
+ title: `${I18N}.fields.trigger.title`,
110
+ groupId: 'overview',
111
+ schema: {
112
+ dataType: 'string',
113
+ interface: { type: AXPWidgetsCatalog.text },
114
+ readonly: true,
115
+ },
116
+ options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },
117
+ },
118
+ {
119
+ name: 'status',
120
+ title: `${I18N}.fields.status.title`,
121
+ groupId: 'overview',
122
+ schema: {
123
+ dataType: 'string',
124
+ readonly: true,
125
+ interface: {
126
+ type: AXPWidgetsCatalog.select,
127
+ options: {
128
+ valueField: 'name',
129
+ textField: 'title',
130
+ multiple: false,
131
+ dataSource: STATUS_ITEMS,
132
+ },
133
+ },
134
+ },
135
+ options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },
136
+ },
137
+ {
138
+ name: 'workerId',
139
+ title: `${I18N}.fields.worker-id.title`,
140
+ groupId: 'overview',
141
+ schema: {
142
+ dataType: 'string',
143
+ interface: { type: AXPWidgetsCatalog.text },
144
+ readonly: true,
145
+ },
146
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
147
+ },
148
+ {
149
+ name: 'startedAt',
150
+ title: `${I18N}.fields.started-at.title`,
151
+ groupId: 'overview',
152
+ schema: {
153
+ dataType: 'datetime',
154
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
155
+ readonly: true,
156
+ },
157
+ options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },
158
+ },
159
+ {
160
+ name: 'completedAt',
161
+ title: `${I18N}.fields.completed-at.title`,
162
+ groupId: 'overview',
163
+ schema: {
164
+ dataType: 'datetime',
165
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
166
+ readonly: true,
167
+ },
168
+ options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },
169
+ },
170
+ {
171
+ name: 'durationMs',
172
+ title: `${I18N}.fields.duration-ms.title`,
173
+ groupId: 'overview',
174
+ schema: {
175
+ dataType: 'number',
176
+ interface: { type: AXPWidgetsCatalog.number },
177
+ readonly: true,
178
+ },
179
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
180
+ },
181
+ {
182
+ name: 'error',
183
+ title: `${I18N}.fields.error.title`,
184
+ groupId: 'overview',
185
+ schema: {
186
+ dataType: 'object',
187
+ readonly: true,
188
+ },
189
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
190
+ },
191
+ ],
192
+ columns: [
193
+ {
194
+ name: 'jobId',
195
+ title: `${I18N}.fields.job-id.title`,
196
+ showAs: { type: AXPWidgetsCatalog.text },
197
+ options: { width: '280px' },
198
+ },
199
+ {
200
+ name: 'attemptNumber',
201
+ title: `${I18N}.fields.attempt-number.title`,
202
+ showAs: { type: AXPWidgetsCatalog.text },
203
+ options: { width: '100px' },
204
+ },
205
+ {
206
+ name: 'trigger',
207
+ title: `${I18N}.fields.trigger.title`,
208
+ showAs: { type: AXPWidgetsCatalog.text },
209
+ options: { width: '140px' },
210
+ },
211
+ {
212
+ name: 'status',
213
+ title: `${I18N}.fields.status.title`,
214
+ showAs: { type: AXPWidgetsCatalog.text },
215
+ options: { width: '130px' },
216
+ },
217
+ {
218
+ name: 'startedAt',
219
+ title: `${I18N}.fields.started-at.title`,
220
+ showAs: { type: AXPWidgetsCatalog.text },
221
+ options: { width: '170px' },
222
+ },
223
+ {
224
+ name: 'durationMs',
225
+ title: `${I18N}.fields.duration-ms.title`,
226
+ showAs: { type: AXPWidgetsCatalog.text },
227
+ options: { width: '120px' },
228
+ },
229
+ ],
230
+ interfaces: {
231
+ master: {
232
+ single: {
233
+ title: '{{ jobId }} #{{ attemptNumber }}',
234
+ sections: [{ id: 'overview', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
235
+ properties: [
236
+ { name: 'jobId', layout: { positions: { lg: { colSpan: 6 } } } },
237
+ { name: 'attemptNumber', layout: { positions: { lg: { colSpan: 6 } } } },
238
+ { name: 'trigger', layout: { positions: { lg: { colSpan: 6 } } } },
239
+ { name: 'status', layout: { positions: { lg: { colSpan: 6 } } } },
240
+ { name: 'workerId', layout: { positions: { lg: { colSpan: 6 } } } },
241
+ { name: 'startedAt', layout: { positions: { lg: { colSpan: 6 } } } },
242
+ { name: 'completedAt', layout: { positions: { lg: { colSpan: 6 } } } },
243
+ { name: 'durationMs', layout: { positions: { lg: { colSpan: 6 } } } },
244
+ ],
245
+ actions: [],
246
+ },
247
+ list: {
248
+ actions: [],
249
+ views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],
250
+ },
251
+ },
252
+ },
253
+ };
254
+ return entityDef;
255
+ }
256
+
257
+ /**
258
+ * Generated bundle index. Do not edit.
259
+ */
260
+
261
+ export { factoryBackgroundJobAttempt };
262
+ //# sourceMappingURL=acorex-platform-module-background-job-management-client-contracts-entities-background-job-attempt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-background-job-management-client-contracts-entities-background-job-attempt.mjs","sources":["../../../../libs/modules/background-job-management/contracts/src/root-config.ts","../../../../libs/modules/background-job-management/contracts/src/entities/background-job-attempt/background-job-attempt.entity.ts","../../../../libs/modules/background-job-management/contracts/src/acorex-platform-module-background-job-management-client-contracts-entities-background-job-attempt.ts"],"sourcesContent":["const config = {\n i18n: 'background-job-management',\n module: 'BackgroundJobManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'background-job-management',\n name: config.module,\n title: '@background-job-management:module.title',\n icon: 'fa-light fa-gears',\n },\n entities: {\n backgroundJob: {\n name: 'BackgroundJob',\n fullName: `${config.module}.BackgroundJob`,\n title: '@background-job-management:jobs.entities.background-job.title',\n titlePlural: '@background-job-management:jobs.entities.background-job.plural',\n icon: 'fa-light fa-list-check',\n },\n backgroundJobAttempt: {\n name: 'BackgroundJobAttempt',\n fullName: `${config.module}.BackgroundJobAttempt`,\n title: '@background-job-management:attempts.entities.background-job-attempt.title',\n titlePlural: '@background-job-management:attempts.entities.background-job-attempt.plural',\n icon: 'fa-light fa-rotate',\n },\n backgroundJobSchedule: {\n name: 'BackgroundJobSchedule',\n fullName: `${config.module}.BackgroundJobSchedule`,\n title: '@background-job-management:schedules.entities.background-job-schedule.title',\n titlePlural: '@background-job-management:schedules.entities.background-job-schedule.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n },\n queries: {\n dashboard: {\n jobsByStatusBar: `${config.module}:Dashboard:JobsByStatusBar`,\n jobSchedulesByStatusBar: `${config.module}:Dashboard:JobSchedulesByStatusBar`,\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nconst I18N = '@background-job-management:attempts.entities.background-job-attempt';\n\nconst STATUS_ITEMS = [\n { name: 'queued', title: `${I18N}.states.queued` },\n { name: 'running', title: `${I18N}.states.running` },\n { name: 'succeeded', title: `${I18N}.states.succeeded` },\n { name: 'failed', title: `${I18N}.states.failed` },\n { name: 'cancelled', title: `${I18N}.states.cancelled` },\n { name: 'timed-out', title: `${I18N}.states.timed-out` },\n { name: 'abandoned', title: `${I18N}.states.abandoned` },\n];\n\nexport async function factoryBackgroundJobAttempt(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.backgroundJobAttempt.name,\n title: RootConfig.entities.backgroundJobAttempt.title,\n icon: RootConfig.entities.backgroundJobAttempt.icon,\n formats: {\n individual: RootConfig.entities.backgroundJobAttempt.title,\n plural: RootConfig.entities.backgroundJobAttempt.titlePlural,\n searchResult: {\n title: '{{ jobId }} #{{ attemptNumber }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'overview', title: `${I18N}.groups.overview` }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'overview',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id.title`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n readonly: true,\n },\n options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'attemptNumber',\n title: `${I18N}.fields.attempt-number.title`,\n groupId: 'overview',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsCatalog.number },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger.title`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n readonly: true,\n },\n options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status.title`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'name',\n textField: 'title',\n multiple: false,\n dataSource: STATUS_ITEMS,\n },\n },\n },\n options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'workerId',\n title: `${I18N}.fields.worker-id.title`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at.title`,\n groupId: 'overview',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'completedAt',\n title: `${I18N}.fields.completed-at.title`,\n groupId: 'overview',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms.title`,\n groupId: 'overview',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsCatalog.number },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'error',\n title: `${I18N}.fields.error.title`,\n groupId: 'overview',\n schema: {\n dataType: 'object',\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },\n },\n ],\n columns: [\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id.title`,\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '280px' },\n },\n {\n name: 'attemptNumber',\n title: `${I18N}.fields.attempt-number.title`,\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '100px' },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger.title`,\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '140px' },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status.title`,\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '130px' },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at.title`,\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '170px' },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms.title`,\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '120px' },\n },\n ],\n interfaces: {\n master: {\n single: {\n title: '{{ jobId }} #{{ attemptNumber }}',\n sections: [{ id: 'overview', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'jobId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'attemptNumber', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'trigger', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'workerId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'completedAt', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'durationMs', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n actions: [],\n },\n list: {\n actions: [],\n views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.background-job-attempt';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,2BAA2B;AACjC,IAAA,MAAM,EAAE,yBAAyB;CAClC;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,2BAA2B;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,yCAAyC;AAChD,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,cAAA,CAAgB;AAC1C,YAAA,KAAK,EAAE,+DAA+D;AACtE,YAAA,WAAW,EAAE,gEAAgE;AAC7E,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,oBAAoB,EAAE;AACpB,YAAA,IAAI,EAAE,sBAAsB;AAC5B,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,qBAAA,CAAuB;AACjD,YAAA,KA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