@genesislcap/pbc-reconciliation-ui 0.0.45 → 14.339.0
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.
- package/.env +3 -0
- package/dist/dts/components/configurations-panel/configuration-datasources/configuration-datasources.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configuration-datasources/configuration-datasources.template.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts +2 -2
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configurations-panel.template.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/columns.d.ts +2 -2
- package/dist/dts/components/data-dictionaries/columns.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries-utils.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts +3 -6
- package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.template.d.ts +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.template.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.types.d.ts +6 -0
- package/dist/dts/components/data-dictionaries/data-dictionaries.types.d.ts.map +1 -0
- package/dist/dts/components/list/list.d.ts.map +1 -1
- package/dist/dts/components/list/list.template.d.ts.map +1 -1
- package/dist/dts/components/rapid-components.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/columns.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.d.ts +3 -14
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.template.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.template.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.types.d.ts +13 -0
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.types.d.ts.map +1 -0
- package/dist/dts/components/reconciliations-panel/reconciliation-no-rows-overlay.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliation-no-rows-overlay.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.styles.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.template.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.utils.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.utils.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.d.ts +4 -33
- package/dist/dts/components/reconciliations-panel/result-details/result-details.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.template.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.template.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.types.d.ts +30 -0
- package/dist/dts/components/reconciliations-panel/result-details/result-details.types.d.ts.map +1 -0
- package/dist/dts/components/zero-components.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/config/configure.d.ts.map +1 -1
- package/dist/dts/config/templates.d.ts +2 -2
- package/dist/dts/config/templates.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +2 -2
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/reconciliation.types.d.ts +13 -13
- package/dist/dts/reconciliation.types.d.ts.map +1 -1
- package/dist/dts/sandbox.d.ts +2 -2
- package/dist/dts/sandbox.d.ts.map +1 -1
- package/dist/dts/services/document.service.d.ts.map +1 -1
- package/dist/dts/services/reconciliation-configuration.service.d.ts.map +1 -1
- package/dist/dts/services/reconciliation.service.d.ts.map +1 -1
- package/dist/dts/utils/delete-row-action-cell-renderer.d.ts.map +1 -1
- package/dist/dts/utils/endpoint.d.ts.map +1 -1
- package/dist/dts/utils/eventDetail.d.ts.map +1 -1
- package/dist/dts/utils/format-date.d.ts.map +1 -1
- package/dist/dts/utils/humanize.d.ts.map +1 -1
- package/dist/dts/utils/isEmpty.d.ts.map +1 -1
- package/dist/dts/utils/notification.d.ts.map +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.js +3 -3
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.js.map +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.styles.js +4 -4
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.styles.js.map +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.template.js +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.template.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.js +15 -11
- package/dist/esm/components/configurations-panel/configurations-panel.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js +346 -346
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.template.js +276 -278
- package/dist/esm/components/configurations-panel/configurations-panel.template.js.map +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.js +3 -3
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.js.map +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.js +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.js +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.js.map +1 -1
- package/dist/esm/components/data-dictionaries/columns.js +4 -4
- package/dist/esm/components/data-dictionaries/data-dictionaries-utils.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.js +7 -11
- package/dist/esm/components/data-dictionaries/data-dictionaries.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.styles.js +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.template.js +3 -3
- package/dist/esm/components/data-dictionaries/data-dictionaries.template.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.types.js +7 -0
- package/dist/esm/components/data-dictionaries/data-dictionaries.types.js.map +1 -0
- package/dist/esm/components/list/list.js +1 -1
- package/dist/esm/components/list/list.js.map +1 -1
- package/dist/esm/components/list/list.template.js.map +1 -1
- package/dist/esm/components/rapid-components.js +1 -2
- package/dist/esm/components/rapid-components.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/columns.js +9 -15
- package/dist/esm/components/reconciliations-panel/columns.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.js +8 -21
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.styles.js +7 -7
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.template.js +9 -12
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.template.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.types.js +16 -0
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.types.js.map +1 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.js +40 -32
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js +300 -301
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js +335 -331
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.utils.js +9 -9
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.utils.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/result-details/result-details.js +24 -43
- package/dist/esm/components/reconciliations-panel/result-details/result-details.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/result-details/result-details.template.js +7 -7
- package/dist/esm/components/reconciliations-panel/result-details/result-details.template.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/result-details/result-details.types.js +17 -0
- package/dist/esm/components/reconciliations-panel/result-details/result-details.types.js.map +1 -0
- package/dist/esm/components/zero-components.js +2 -3
- package/dist/esm/components/zero-components.js.map +1 -1
- package/dist/esm/config/config.js.map +1 -1
- package/dist/esm/config/configure.js +1 -1
- package/dist/esm/config/configure.js.map +1 -1
- package/dist/esm/config/templates.js +1 -1
- package/dist/esm/main/main.js +4 -4
- package/dist/esm/main/main.js.map +1 -1
- package/dist/esm/main/main.styles.js +1 -0
- package/dist/esm/main/main.styles.js.map +1 -1
- package/dist/esm/main/main.template.js +8 -7
- package/dist/esm/main/main.template.js.map +1 -1
- package/dist/esm/sandbox.js +15 -8
- package/dist/esm/sandbox.js.map +1 -1
- package/dist/esm/services/data-dictionary.service.js +6 -6
- package/dist/esm/services/data-dictionary.service.js.map +1 -1
- package/dist/esm/services/document.service.js +3 -4
- package/dist/esm/services/document.service.js.map +1 -1
- package/dist/esm/services/reconciliation-configuration.service.js +3 -1
- package/dist/esm/services/reconciliation-configuration.service.js.map +1 -1
- package/dist/esm/services/reconciliation.service.js +8 -5
- package/dist/esm/services/reconciliation.service.js.map +1 -1
- package/dist/esm/utils/delete-row-action-cell-renderer.js +1 -3
- package/dist/esm/utils/delete-row-action-cell-renderer.js.map +1 -1
- package/dist/esm/utils/endpoint.js.map +1 -1
- package/dist/esm/utils/humanize.js.map +1 -1
- package/dist/esm/utils/icons.js +1 -1
- package/dist/esm/utils/isEmpty.js.map +1 -1
- package/dist/esm/utils/notification.js +1 -1
- package/dist/esm/utils/notification.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/license.txt +46 -0
- package/package.json +31 -30
- package/src/components/configurations-panel/configuration-datasources/configuration-datasources.styles.ts +72 -0
- package/src/components/configurations-panel/configuration-datasources/configuration-datasources.template.ts +73 -0
- package/src/components/configurations-panel/configuration-datasources/configuration-datasources.ts +64 -0
- package/src/components/configurations-panel/configurations-panel.styles.ts +363 -0
- package/src/components/configurations-panel/configurations-panel.template.ts +356 -0
- package/src/components/configurations-panel/configurations-panel.ts +387 -0
- package/src/components/configurations-panel/recon-rules-columns.ts +117 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.ts +73 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.ts +122 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.ts +202 -0
- package/src/components/data-dictionaries/columns.ts +42 -0
- package/src/components/data-dictionaries/data-dictionaries-utils.ts +40 -0
- package/src/components/data-dictionaries/data-dictionaries.styles.ts +92 -0
- package/src/components/data-dictionaries/data-dictionaries.template.ts +78 -0
- package/src/components/data-dictionaries/data-dictionaries.ts +236 -0
- package/src/components/data-dictionaries/data-dictionaries.types.ts +5 -0
- package/src/components/list/list.styles.ts +88 -0
- package/src/components/list/list.template.ts +36 -0
- package/src/components/list/list.ts +33 -0
- package/src/components/rapid-components.ts +69 -0
- package/src/components/reconciliations-panel/columns.ts +74 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.styles.ts +104 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.template.ts +93 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.ts +131 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.types.ts +14 -0
- package/src/components/reconciliations-panel/reconciliation-no-rows-overlay.ts +18 -0
- package/src/components/reconciliations-panel/reconciliations-panel.styles.ts +328 -0
- package/src/components/reconciliations-panel/reconciliations-panel.template.ts +432 -0
- package/src/components/reconciliations-panel/reconciliations-panel.ts +441 -0
- package/src/components/reconciliations-panel/reconciliations-panel.utils.ts +103 -0
- package/src/components/reconciliations-panel/result-details/result-details.styles.ts +108 -0
- package/src/components/reconciliations-panel/result-details/result-details.template.ts +88 -0
- package/src/components/reconciliations-panel/result-details/result-details.ts +200 -0
- package/src/components/reconciliations-panel/result-details/result-details.types.ts +30 -0
- package/src/components/zero-components.ts +61 -0
- package/src/config/config.ts +49 -0
- package/src/config/configure.ts +72 -0
- package/src/config/index.ts +2 -0
- package/src/config/templates.ts +80 -0
- package/src/globals.d.ts +7 -0
- package/src/index.federated.ts +1 -0
- package/src/index.ts +3 -0
- package/src/main/index.ts +3 -0
- package/src/main/main.styles.ts +33 -0
- package/src/main/main.template.ts +65 -0
- package/src/main/main.ts +153 -0
- package/src/reconciliation.types.ts +170 -0
- package/src/sandbox.ts +40 -0
- package/src/services/data-dictionary.service.ts +64 -0
- package/src/services/document.service.ts +72 -0
- package/src/services/reconciliation-configuration.service.ts +105 -0
- package/src/services/reconciliation.service.ts +120 -0
- package/src/styles/scrollbar.styles.ts +15 -0
- package/src/tags/index.ts +1 -0
- package/src/tags/tags.ts +143 -0
- package/src/typings.d.ts +1 -0
- package/src/utils/delete-row-action-cell-renderer.ts +71 -0
- package/src/utils/endpoint.ts +15 -0
- package/src/utils/eventDetail.ts +5 -0
- package/src/utils/format-date.ts +9 -0
- package/src/utils/humanize.ts +14 -0
- package/src/utils/icons.ts +24 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/isEmpty.ts +2 -0
- package/src/utils/logger.ts +3 -0
- package/src/utils/notification.ts +35 -0
- package/tsconfig.json +45 -0
- package/Dockerfile +0 -12
- package/docs/images/lsp_jetbrains_one.png +0 -0
- package/docs/images/lsp_jetbrains_two.png +0 -0
- package/docs/images/lsp_vscode_one.png +0 -0
- package/docs/images/lsp_vscode_two.png +0 -0
- package/playwright.config.ts +0 -1
- package/test/README.md +0 -3
- package/test/e2e/fixture.ts +0 -25
- package/test/e2e/flows/001-protected.e2e.ts +0 -6
- package/test/e2e/index.ts +0 -2
- package/test/e2e/pages/index.ts +0 -1
- package/test/e2e/pages/protected.ts +0 -16
- package/test/unit/mock/services/data-dictionary-service-mock.ts +0 -15
- package/test/unit/mock/services/reconciliation-configuration-service-mock.ts +0 -26
- package/test/unit/mock/services/reconciliation-service-mock.ts +0 -11
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Connect, Message } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { DI } from '@genesislcap/web-core';
|
|
3
|
+
import { getDatasourcePairResultCriteria } from '../components/reconciliations-panel/reconciliations-panel.utils';
|
|
4
|
+
import { MAX_ROWS_RECONCILIATION_RESULT } from '../reconciliation.types';
|
|
5
|
+
import { logger } from '../utils';
|
|
6
|
+
|
|
7
|
+
export interface ReconciliationService {
|
|
8
|
+
getReconciliations();
|
|
9
|
+
runReconciliation(reconciliationInsert);
|
|
10
|
+
stopReconciliation(reconciliationId: string);
|
|
11
|
+
getReconciliationRecordResult(reconciliationRecordResultId: string);
|
|
12
|
+
updateReconciliationRecordComment(reconciliationRecordResultId: string, text: string);
|
|
13
|
+
getReconciliationDatasourcePairs(reconciliationRecordResultId: string);
|
|
14
|
+
getReconciliationRecordResults(criteria?: string);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class ReconciliationServiceImpl implements ReconciliationService {
|
|
18
|
+
@Connect private connect: Connect;
|
|
19
|
+
|
|
20
|
+
public getReconciliations() {
|
|
21
|
+
return this.connect.streamState(
|
|
22
|
+
'ALL_RECONCILIATION_VIEWS',
|
|
23
|
+
(message) => {
|
|
24
|
+
logger.info('ReconciliationService.getReconciliations', message);
|
|
25
|
+
return message;
|
|
26
|
+
},
|
|
27
|
+
(error) => {
|
|
28
|
+
logger.error('ReconciliationService.getReconciliations', error);
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async runReconciliation(reconciliationInsert) {
|
|
34
|
+
const response = await this.connect.commitEvent('EVENT_RUN_RECONCILIATION', {
|
|
35
|
+
DETAILS: reconciliationInsert,
|
|
36
|
+
IGNORE_WARNINGS: true,
|
|
37
|
+
VALIDATE: false,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
return response;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
stopReconciliation(reconciliationId: string) {
|
|
44
|
+
return this.connect.commitEvent('EVENT_CANCEL_RECONCILIATION', {
|
|
45
|
+
DETAILS: {
|
|
46
|
+
RECONCILIATION_ID: reconciliationId,
|
|
47
|
+
},
|
|
48
|
+
IGNORE_WARNINGS: true,
|
|
49
|
+
VALIDATE: false,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async getReconciliationRecordResult(reconciliationRecordResultId: string) {
|
|
54
|
+
const response = await this.connect.request('REQ_RECONCILIATION_RECORD_PAIR_RESULT', {
|
|
55
|
+
REQUEST: {
|
|
56
|
+
RECONCILIATION_RECORD_RESULT_ID: reconciliationRecordResultId,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
return response.REPLY[0];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async updateReconciliationRecordComment(
|
|
64
|
+
reconciliationRecordId: string,
|
|
65
|
+
text: string,
|
|
66
|
+
): Promise<Message> {
|
|
67
|
+
return this.connect.commitEvent('EVENT_UPDATE_RESULT_COMMENT', {
|
|
68
|
+
DETAILS: {
|
|
69
|
+
RECORD_RESULT_ID: reconciliationRecordId,
|
|
70
|
+
TEXT: text,
|
|
71
|
+
},
|
|
72
|
+
IGNORE_WARNINGS: true,
|
|
73
|
+
VALIDATE: false,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async getReconciliationDatasourcePairs(reconciliationId: string) {
|
|
78
|
+
const response = await this.connect.request('REQ_RECONCILIATION_DATA_SOURCE_PAIRS', {
|
|
79
|
+
REQUEST: {
|
|
80
|
+
RECONCILIATION_ID: reconciliationId,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
const datasourcePairs = new Map<string, any>(
|
|
85
|
+
response.REPLY[0].PAIRS.map((datasourcePair) => [
|
|
86
|
+
`${datasourcePair.FIRST_DATA_SOURCE_NAME}${datasourcePair.SECOND_DATA_SOURCE_NAME}`,
|
|
87
|
+
datasourcePair,
|
|
88
|
+
]),
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
for (const datasourcePair of datasourcePairs.entries()) {
|
|
92
|
+
// eslint-disable-next-line no-await-in-loop
|
|
93
|
+
const reconciliationRecordResult: any = await this.getReconciliationRecordResults(
|
|
94
|
+
getDatasourcePairResultCriteria(
|
|
95
|
+
reconciliationId,
|
|
96
|
+
datasourcePairs.get(datasourcePair[0]),
|
|
97
|
+
false,
|
|
98
|
+
),
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
datasourcePair[1].BREAKS_COUNTER = reconciliationRecordResult.ROW
|
|
102
|
+
? reconciliationRecordResult.ROW.length
|
|
103
|
+
: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return datasourcePairs;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
async getReconciliationRecordResults(criteria?: string) {
|
|
110
|
+
return this.connect.snapshot('ALL_RECONCILIATION_RECORD_RESULTS_VIEW', {
|
|
111
|
+
CRITERIA_MATCH: criteria,
|
|
112
|
+
MAX_ROWS: MAX_ROWS_RECONCILIATION_RESULT,
|
|
113
|
+
MAX_VIEW: MAX_ROWS_RECONCILIATION_RESULT,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export const ReconciliationService = DI.createInterface<ReconciliationService>((x) =>
|
|
119
|
+
x.singleton(ReconciliationServiceImpl),
|
|
120
|
+
);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
|
+
|
|
3
|
+
export const scrollbarStyles = css`
|
|
4
|
+
::-webkit-scrollbar {
|
|
5
|
+
width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
::-webkit-scrollbar-track {
|
|
9
|
+
background: var(--neutral-layer-1);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::-webkit-scrollbar-thumb {
|
|
13
|
+
background: var(--neutral-fill-rest);
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tags';
|
package/src/tags/tags.ts
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { tagFor } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { DI } from '@genesislcap/web-core';
|
|
3
|
+
import { ReconciliationConfig } from '../config/config';
|
|
4
|
+
import { defaultTemplateOptions } from '../config/templates';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* It's important this file isn't referenced ahead of a `configure` call, otherwise these values may remain fixed at
|
|
8
|
+
* their defaults. Consumers must use the `/config` subpath to help avoid this. Files with references to tags should be
|
|
9
|
+
* lazily loaded. There is an alternative `getTags` utility at the end which could offer another approach, but direct
|
|
10
|
+
* tag exports and inline template references feel cleaner than having to convert all component `template` and `styles`
|
|
11
|
+
* exports to functions to call `getTags` on execution.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export const { templateOptions = defaultTemplateOptions } =
|
|
18
|
+
DI.getOrCreateDOMContainer().get(ReconciliationConfig);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export const iconTag = tagFor(templateOptions.icon);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export const badgeTag = tagFor(templateOptions.badge);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export const buttonTag = tagFor(templateOptions.button);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export const textFieldTag = tagFor(templateOptions.textField);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export const selectTag = tagFor(templateOptions.select);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
export const segmentedControlTag = tagFor(templateOptions.segmentedControl);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export const segmentedItemTag = tagFor(templateOptions.segmentedItem);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export const tabsTag = tagFor(templateOptions.tabs);
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
export const tabTag = tagFor(templateOptions.tab);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export const tabPanelTag = tagFor(templateOptions.tabPanel);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
export const progressRingTag = tagFor(templateOptions.progressRing);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
export const gridTag = tagFor(templateOptions.grid);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
export const optionTag = tagFor(templateOptions.option);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
export const dividerTag = tagFor(templateOptions.divider);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
export const progressTag = tagFor(templateOptions.progress);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
export const numberFieldTag = tagFor(templateOptions.numberField);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
export const checkboxTag = tagFor(templateOptions.checkbox);
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
export const switchTag = tagFor(templateOptions.switch);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
export const modalTag = tagFor(templateOptions.modal);
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
export const dialogTag = tagFor(templateOptions.dialog);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
export const toastTag = tagFor(templateOptions.toast);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
export const datePickerTag = tagFor(templateOptions.datePicker);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
export const textAreaTag = tagFor(templateOptions.textArea);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
export const radioGroupTag = tagFor(templateOptions.radioGroup);
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
export const radioTag = tagFor(templateOptions.radio);
|
package/src/typings.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'foundationZero/ZeroDesignSystem';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
interface IAction {
|
|
2
|
+
name: string;
|
|
3
|
+
callback: (any?) => void;
|
|
4
|
+
actionName: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface IAgGridActions {
|
|
9
|
+
actions: IAction[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class DeleteRowActionCellRenderer {
|
|
13
|
+
content: HTMLElement;
|
|
14
|
+
|
|
15
|
+
constructor() {
|
|
16
|
+
this.content = document.createElement('div');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
init(params: IAgGridActions) {
|
|
20
|
+
this.renderButtons(params);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
renderButtons(params) {
|
|
24
|
+
const { actions, data, enabled } = params;
|
|
25
|
+
this.content.setAttribute(
|
|
26
|
+
'style',
|
|
27
|
+
`
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
background-color: rgba(249, 100, 77, 0.5);
|
|
31
|
+
padding: 0 calc(var(--design-unit) * 3px);
|
|
32
|
+
border-radius: calc(var(--control-corner-radius)* 1px);
|
|
33
|
+
height: calc(var(--design-unit) * 9px);
|
|
34
|
+
`,
|
|
35
|
+
);
|
|
36
|
+
actions.forEach((action: IAction) => {
|
|
37
|
+
const button: HTMLElement = document.createElement('span');
|
|
38
|
+
button.title = action.actionName;
|
|
39
|
+
const defaultStyle = `
|
|
40
|
+
display: flex;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
`;
|
|
43
|
+
button.setAttribute('style', defaultStyle);
|
|
44
|
+
button.addEventListener('mouseover', () => {
|
|
45
|
+
button.setAttribute(
|
|
46
|
+
'style',
|
|
47
|
+
`
|
|
48
|
+
fill: var(--neutral-foreground-rest);
|
|
49
|
+
${defaultStyle}
|
|
50
|
+
`,
|
|
51
|
+
);
|
|
52
|
+
});
|
|
53
|
+
button.addEventListener('mouseleave', () => [button.setAttribute('style', defaultStyle)]);
|
|
54
|
+
button.innerHTML = action.name;
|
|
55
|
+
button.addEventListener('click', () => {
|
|
56
|
+
action.callback(data);
|
|
57
|
+
});
|
|
58
|
+
this.content.appendChild(button);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
refresh(params): boolean {
|
|
63
|
+
this.content.innerHTML = '';
|
|
64
|
+
this.renderButtons(params);
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
getGui(): HTMLElement {
|
|
69
|
+
return this.content;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const getEndpointUrl = (
|
|
2
|
+
endpoint: string,
|
|
3
|
+
urlRoot: string = sessionStorage.getItem('hostUrl'),
|
|
4
|
+
): string => {
|
|
5
|
+
const url = new URL(urlRoot);
|
|
6
|
+
const path =
|
|
7
|
+
url.pathname && url.pathname[url.pathname.length - 1] == '/'
|
|
8
|
+
? url.pathname
|
|
9
|
+
: `${url.pathname}/`;
|
|
10
|
+
if (urlRoot.includes('localhost')) {
|
|
11
|
+
return `http://${url.host}${path}${endpoint}`;
|
|
12
|
+
} else {
|
|
13
|
+
return `https://${url.host}${path}${endpoint}`;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const getFormattedDateTime = (dateTimeInMills) => {
|
|
2
|
+
const dateTime = new Date(dateTimeInMills);
|
|
3
|
+
return `${dateTime.toLocaleDateString()} ${dateTime.toLocaleTimeString()}`;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export const getFormattedDate = (dateTimeInMills) => {
|
|
7
|
+
const dateTime = new Date(dateTimeInMills);
|
|
8
|
+
return `${dateTime.toLocaleDateString()}`;
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const humanize = (s: string) => {
|
|
2
|
+
if (!s) {
|
|
3
|
+
return '';
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
let i;
|
|
7
|
+
const frags = s.split('_');
|
|
8
|
+
|
|
9
|
+
for (i = 0; i < frags.length; i += 1) {
|
|
10
|
+
frags[i] = frags[i].charAt(0).toUpperCase() + frags[i].slice(1).toLowerCase();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return frags.join(' ');
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { html } from '@genesislcap/web-core';
|
|
2
|
+
|
|
3
|
+
export const excelFile = html`
|
|
4
|
+
<rapid-icon name="file-excel" variant="regular" size="lg" style="color: #48d745"></rapid-icon>
|
|
5
|
+
`;
|
|
6
|
+
|
|
7
|
+
export const uploadIconLarge = html`
|
|
8
|
+
<svg
|
|
9
|
+
version="1.1"
|
|
10
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
11
|
+
width="48px"
|
|
12
|
+
height="33px"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
>
|
|
15
|
+
<g>
|
|
16
|
+
<path
|
|
17
|
+
d="M 30.824999999999996 17.295535714285716 L 23.4375 10.0546875 C 23.085 9.708482142857143 22.515 9.708482142857143 22.1625 10.0546875 L 14.79 17.295535714285716 C 14.4375 17.641741071428573 14.4375 18.2015625 14.79 18.54776785714286 L 15.2175 18.967633928571427 C 15.569999999999999 19.313839285714284 16.14 19.313839285714284 16.4925 18.967633928571427 L 22 13.943973214285716 L 22 25.044642857142858 C 21.607499999999995 25.530803571428574 22.012499999999996 25.928571428571427 22.5075 25.928571428571427 L 23.107499999999995 25.928571428571427 C 23.6025 25.928571428571427 24.0075 25.530803571428574 24 25.044642857142858 L 24 13.943973214285716 L 29.1225 18.967633928571427 C 29.474999999999998 19.313839285714284 30.044999999999995 19.313839285714284 30.397499999999994 18.967633928571427 L 30.824999999999996 18.54776785714286 C 31.177499999999995 18.2015625 31.177499999999995 17.641741071428573 30.824999999999996 17.295535714285716 Z M 48 23.571428571428573 C 48 20.109375 46.065 16.883035714285715 42.8775 15.233035714285716 C 43.087500000000006 14.503794642857143 43.2 13.745089285714288 43.2 12.964285714285714 C 43.2 8.4046875 39.442499999999995 4.714285714285714 34.8 4.714285714285714 C 33.5475 4.714285714285714 32.332499999999996 4.979464285714285 31.200000000000003 5.509821428571429 C 28.83 2.195089285714286 24.8775 0 20.4 0 C 13.319999999999999 0 7.522500000000001 5.487723214285714 7.215 12.389732142857143 C 2.9400000000000004 13.862946428571426 0 17.84799107142857 0 22.392857142857142 C 0 28.25625 4.83 33 10.8 33 L 38.400000000000006 33 C 43.7025 33 48 28.786607142857143 48 23.571428571428573 Z M 45.599999999999994 23.571428571428573 C 45.599999999999994 27.475446428571427 42.375 30.642857142857142 38.400000000000006 30 L 10.8 30 C 6.157499999999999 30.642857142857142 2.4000000000000004 26.952455357142853 2.4000000000000004 22.392857142857142 C 2.4000000000000004 18.20892857142857 5.5649999999999995 14.754241071428574 9.675 14.216517857142858 C 9.622500000000002 13.804017857142858 9.600000000000001 13.384151785714284 9.600000000000001 12.964285714285714 C 9.600000000000001 7.108258928571429 14.4375 2.357142857142857 20.4 2.357142857142857 C 24.922500000000003 2.357142857142857 28.7925 5.082589285714286 30.405 8.957142857142857 C 31.5 7.800669642857144 33.06 7.071428571428571 34.8 7.071428571428571 C 38.115 7.071428571428571 40.8 9.708482142857143 40.8 12.964285714285714 C 40.8 14.327008928571429 40.3275 15.586607142857142 39.5325 16.588392857142857 C 42.974999999999994 17.11875 45.599999999999994 20.04308035714286 45.599999999999994 23.571428571428573 Z "
|
|
18
|
+
fill-rule="nonzero"
|
|
19
|
+
stroke="none"
|
|
20
|
+
fill-opacity="0.9921568627450981"
|
|
21
|
+
/>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
24
|
+
`;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { showNotification } from '@genesislcap/foundation-notifications';
|
|
2
|
+
|
|
3
|
+
export function showNotificationError(error) {
|
|
4
|
+
showNotification(
|
|
5
|
+
{
|
|
6
|
+
title: error[0]?.CODE,
|
|
7
|
+
body: error[0]?.TEXT,
|
|
8
|
+
config: {
|
|
9
|
+
snackbar: {
|
|
10
|
+
type: 'error',
|
|
11
|
+
confirmingActions: [],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
'rapid',
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function showNotificationErrors(errors) {
|
|
20
|
+
errors.forEach((error) => {
|
|
21
|
+
showNotification(
|
|
22
|
+
{
|
|
23
|
+
title: error.CODE,
|
|
24
|
+
body: error.TEXT,
|
|
25
|
+
config: {
|
|
26
|
+
snackbar: {
|
|
27
|
+
type: 'error',
|
|
28
|
+
confirmingActions: [],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
'rapid',
|
|
33
|
+
);
|
|
34
|
+
});
|
|
35
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"plugins": [
|
|
4
|
+
{
|
|
5
|
+
"name": "@genesiscommunitysuccess/custom-elements-lsp",
|
|
6
|
+
"srcRouteFromTSServer": "../../..",
|
|
7
|
+
"designSystemPrefix": "zero",
|
|
8
|
+
"parser": {
|
|
9
|
+
"fastEnable": true,
|
|
10
|
+
"timeout": 2000,
|
|
11
|
+
"dependencies": [
|
|
12
|
+
"node_modules/**/custom-elements.json",
|
|
13
|
+
"!**/@custom-elements-manifest/**/*"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"plugins": ["@genesiscommunitysuccess/cep-fast-plugin"]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"declarationDir": "./dist/dts",
|
|
20
|
+
"outDir": "./dist/esm",
|
|
21
|
+
"rootDir": "./src",
|
|
22
|
+
"allowJs": true,
|
|
23
|
+
"allowSyntheticDefaultImports": true,
|
|
24
|
+
"declaration": true,
|
|
25
|
+
"declarationMap": true,
|
|
26
|
+
"esModuleInterop": true,
|
|
27
|
+
"experimentalDecorators": true,
|
|
28
|
+
"importHelpers": true,
|
|
29
|
+
"lib": ["DOM", "ES2015", "ES2016", "ES2017"],
|
|
30
|
+
"module": "ESNext",
|
|
31
|
+
"moduleResolution": "node",
|
|
32
|
+
"noEmitOnError": true,
|
|
33
|
+
"noImplicitAny": false,
|
|
34
|
+
"preserveConstEnums": true,
|
|
35
|
+
"pretty": true,
|
|
36
|
+
"removeComments": true,
|
|
37
|
+
"resolveJsonModule": true,
|
|
38
|
+
"skipLibCheck": true,
|
|
39
|
+
"sourceMap": true,
|
|
40
|
+
"strictNullChecks": false,
|
|
41
|
+
"target": "ES2017"
|
|
42
|
+
},
|
|
43
|
+
"include": ["src/**/*"],
|
|
44
|
+
"exclude": ["node_modules", "dist"]
|
|
45
|
+
}
|
package/Dockerfile
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/playwright.config.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { configDefaults as default } from '@genesislcap/foundation-testing/e2e';
|
package/test/README.md
DELETED
package/test/e2e/fixture.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { base } from '@genesislcap/foundation-testing/e2e';
|
|
2
|
-
import { ProtectedPage } from './pages';
|
|
3
|
-
|
|
4
|
-
const { config: pkgConfig } = require('../../package.json');
|
|
5
|
-
|
|
6
|
-
export type FixtureConfig = {
|
|
7
|
-
API_HOST: string;
|
|
8
|
-
DEFAULT_USER: string;
|
|
9
|
-
DEFAULT_PASSWORD: string;
|
|
10
|
-
PORT: number;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type Fixture = {
|
|
14
|
-
config: FixtureConfig;
|
|
15
|
-
protectedPage: ProtectedPage;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const test = base.extend<Fixture>({
|
|
19
|
-
config: [pkgConfig, { option: true }],
|
|
20
|
-
protectedPage: async ({ config, page }, use) => {
|
|
21
|
-
const protectedPage = new ProtectedPage(config, page);
|
|
22
|
-
await protectedPage.goto();
|
|
23
|
-
await use(protectedPage);
|
|
24
|
-
},
|
|
25
|
-
});
|
package/test/e2e/index.ts
DELETED
package/test/e2e/pages/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './protected';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Page } from '@genesislcap/foundation-testing/e2e';
|
|
2
|
-
import type { FixtureConfig } from '../fixture';
|
|
3
|
-
|
|
4
|
-
export class ProtectedPage {
|
|
5
|
-
config: FixtureConfig;
|
|
6
|
-
page: Page;
|
|
7
|
-
|
|
8
|
-
constructor(config: FixtureConfig, page: Page) {
|
|
9
|
-
this.config = config;
|
|
10
|
-
this.page = page;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
async goto() {
|
|
14
|
-
await this.page.goto('/');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DataDictionaryService } from '../../../../src/services/data-dictionary.service';
|
|
2
|
-
|
|
3
|
-
class DataDictionaryServiceMock implements DataDictionaryService {
|
|
4
|
-
getDataDictionaries() {
|
|
5
|
-
return Promise.resolve([]);
|
|
6
|
-
}
|
|
7
|
-
createDataDictionary(dataDictionary: any) {}
|
|
8
|
-
editDataDictionary(dataDictionary: any) {}
|
|
9
|
-
deleteDataDictionary(dataDictionary: any) {}
|
|
10
|
-
getDataDictionaryFields(dataDictionaryId: any) {
|
|
11
|
-
return Promise.resolve([]);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const dataDictionaryServiceMock = new DataDictionaryServiceMock();
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Message } from '@genesislcap/foundation-comms';
|
|
2
|
-
import { ReconciliationConfigurationService } from '../../../../src/services/reconciliation-configuration.service';
|
|
3
|
-
|
|
4
|
-
class ReconciliationConfigurationServiceMock implements ReconciliationConfigurationService {
|
|
5
|
-
getReconciliationConfigurations(): Promise<any> {
|
|
6
|
-
return Promise.resolve([]);
|
|
7
|
-
}
|
|
8
|
-
getReconciliationConfigurationDetails(configurationId: string): Promise<any> {
|
|
9
|
-
return Promise.resolve([]);
|
|
10
|
-
}
|
|
11
|
-
getReconciliationConfigurationRules(configurationId: string): Promise<any> {
|
|
12
|
-
return Promise.resolve([]);
|
|
13
|
-
}
|
|
14
|
-
getReconciliationDatasourceConfiguration(configurationId: string): Promise<any[]> {
|
|
15
|
-
return Promise.resolve([]);
|
|
16
|
-
}
|
|
17
|
-
createReconciliationConfiguration(configuration: any): Promise<Message> {
|
|
18
|
-
return Promise.resolve({});
|
|
19
|
-
}
|
|
20
|
-
updateReconciliationConfiguration(configuration: any): Promise<Message> {
|
|
21
|
-
return Promise.resolve({});
|
|
22
|
-
}
|
|
23
|
-
deleteReconciliationConfiguration(configurationId: string): void {}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const reconciliationConfigurationServiceMock = new ReconciliationConfigurationServiceMock();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { from } from 'rxjs';
|
|
2
|
-
import { ReconciliationService } from '../../../../src/services/reconciliation.service';
|
|
3
|
-
|
|
4
|
-
class ReconciliationServiceMock implements ReconciliationService {
|
|
5
|
-
getReconciliations() {
|
|
6
|
-
return from(Promise.resolve([]));
|
|
7
|
-
}
|
|
8
|
-
runReconciliation(reconciliationInsert: any) {}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const reconciliationServiceMock = new ReconciliationServiceMock();
|