@genesislcap/pbc-reporting-ui 1.0.384 → 1.0.386

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 (28) hide show
  1. package/dist/dts/new/components/components.d.ts.map +1 -1
  2. package/dist/dts/new/main/edit-config/config-journey-orchestrator.template.d.ts.map +1 -1
  3. package/dist/dts/new/main/edit-config/scheduling/scheduling.d.ts +9 -0
  4. package/dist/dts/new/main/edit-config/scheduling/scheduling.d.ts.map +1 -0
  5. package/dist/dts/new/main/edit-config/scheduling/scheduling.styles.d.ts +2 -0
  6. package/dist/dts/new/main/edit-config/scheduling/scheduling.styles.d.ts.map +1 -0
  7. package/dist/dts/new/main/edit-config/scheduling/scheduling.template.d.ts +3 -0
  8. package/dist/dts/new/main/edit-config/scheduling/scheduling.template.d.ts.map +1 -0
  9. package/dist/dts/new/store/slices/base-config.d.ts.map +1 -1
  10. package/dist/dts/new/store/slices/types.d.ts +5 -0
  11. package/dist/dts/new/store/slices/types.d.ts.map +1 -1
  12. package/dist/dts/new/store/store.d.ts +35 -14
  13. package/dist/dts/new/store/store.d.ts.map +1 -1
  14. package/dist/dts/new/types/misc.d.ts +4 -3
  15. package/dist/dts/new/types/misc.d.ts.map +1 -1
  16. package/dist/dts/new/utils/transformers.d.ts.map +1 -1
  17. package/dist/dts/new/utils/validators.d.ts.map +1 -1
  18. package/dist/esm/new/components/components.js +2 -2
  19. package/dist/esm/new/main/edit-config/config-journey-orchestrator.template.js +9 -1
  20. package/dist/esm/new/main/edit-config/scheduling/scheduling.js +44 -0
  21. package/dist/esm/new/main/edit-config/scheduling/scheduling.styles.js +16 -0
  22. package/dist/esm/new/main/edit-config/scheduling/scheduling.template.js +41 -0
  23. package/dist/esm/new/store/slices/base-config.js +1 -0
  24. package/dist/esm/new/store/store.js +5 -1
  25. package/dist/esm/new/styles/constraints.styles.js +1 -1
  26. package/dist/esm/new/utils/transformers.js +9 -2
  27. package/dist/esm/new/utils/validators.js +5 -1
  28. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/new/components/components.ts"],"names":[],"mappings":"AA4CA;;GAEG;AACH,eAAO,MAAM,6BAA6B,qBAoDzC,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/new/components/components.ts"],"names":[],"mappings":"AA6CA;;GAEG;AACH,eAAO,MAAM,6BAA6B,qBAqDzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config-journey-orchestrator.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/edit-config/config-journey-orchestrator.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAY/E,eAAO,MAAM,QAAQ,gFAwEpB,CAAC"}
1
+ {"version":3,"file":"config-journey-orchestrator.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/edit-config/config-journey-orchestrator.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAc/E,eAAO,MAAM,QAAQ,gFA8EpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Connect } from '@genesislcap/foundation-comms';
2
+ import { GenesisElement } from '@genesislcap/web-core';
3
+ export declare class Scheduling extends GenesisElement {
4
+ connect: Connect;
5
+ timeZones: any;
6
+ connectedCallback(): void;
7
+ getTimeZones(): Promise<void>;
8
+ }
9
+ //# sourceMappingURL=scheduling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduling.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/scheduling/scheduling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAIlF,qBAKa,UAAW,SAAQ,cAAc;IACnC,OAAO,EAAG,OAAO,CAAC;IAEf,SAAS,MAAC;IAEtB,iBAAiB;IAKX,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAoBpC"}
@@ -0,0 +1,2 @@
1
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
2
+ //# sourceMappingURL=scheduling.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduling.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/scheduling/scheduling.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,iDAalB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Scheduling } from './scheduling';
2
+ export declare const template: import("@microsoft/fast-element").ViewTemplate<Scheduling, any>;
3
+ //# sourceMappingURL=scheduling.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduling.template.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/scheduling/scheduling.template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,QAAQ,iEAqCpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAMxD,eAAO,MAAM,SAAS;uBAKT,UAAU,UACT,oBAAoB,KAAK,UAAU,EAAE,iBAAiB,GAAG,eAAe,CAAC,CAAC;sBAKlE,UAAU,UAAU,cAAc;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;iBAGzD,UAAU,UAAU,cAAc,UAAU,CAAC;2BAGnC,UAAU,UAAU,cAAc;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,CAAC;;qBAStE,UAAU;yBAIN,UAAU,QAAQ,OAAO,SAAS,OAAO;EAMhE,CAAC"}
1
+ {"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAY,MAAM,SAAS,CAAC;AAOlE,eAAO,MAAM,SAAS;uBAKT,UAAU,UACT,oBAAoB,KAAK,UAAU,EAAE,iBAAiB,GAAG,eAAe,CAAC,CAAC;sBAKlE,UAAU,UAAU,cAAc;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;iBAGzD,UAAU,UAAU,cAAc,UAAU,CAAC;2BAGnC,UAAU,UAAU,cAAc;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,CAAC;;qBAStE,UAAU;yBAIN,UAAU,QAAQ,OAAO,SAAS,OAAO;EAMhE,CAAC"}
@@ -24,6 +24,10 @@ export type DatasourceConfig = {
24
24
  };
25
25
  export declare const reportOutputFormats: readonly ["CSV", "PDF", "XLSX"];
26
26
  export type ReportOutputTypes = (typeof reportOutputFormats)[number];
27
+ export type Schedule = {
28
+ CRON_EXPRESSION: string;
29
+ TIME_ZONE: string;
30
+ };
27
31
  export type BaseConfig = {
28
32
  ID?: string;
29
33
  NAME?: string;
@@ -33,5 +37,6 @@ export type BaseConfig = {
33
37
  AUTO_DISPATCH?: boolean;
34
38
  DESTINATION_IDS: string[];
35
39
  DOCUMENT_TEMPLATE_ID?: string;
40
+ SCHEDULE?: Schedule;
36
41
  };
37
42
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CA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AC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CAErB,CAAC"}
@@ -6,14 +6,17 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
6
6
  key: "NAME";
7
7
  value: string;
8
8
  } | {
9
- key: "FILE_NAME";
10
- value: string;
9
+ key: "SCHEDULE";
10
+ value: import("./slices").Schedule;
11
11
  } | {
12
12
  key: "ID";
13
13
  value: string;
14
14
  } | {
15
15
  key: "DESCRIPTION";
16
16
  value: string;
17
+ } | {
18
+ key: "FILE_NAME";
19
+ value: string;
17
20
  } | {
18
21
  key: "AUTO_DISPATCH";
19
22
  value: boolean;
@@ -136,14 +139,17 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
136
139
  key: "NAME";
137
140
  value: string;
138
141
  } | {
139
- key: "FILE_NAME";
140
- value: string;
142
+ key: "SCHEDULE";
143
+ value: import("./slices").Schedule;
141
144
  } | {
142
145
  key: "ID";
143
146
  value: string;
144
147
  } | {
145
148
  key: "DESCRIPTION";
146
149
  value: string;
150
+ } | {
151
+ key: "FILE_NAME";
152
+ value: string;
147
153
  } | {
148
154
  key: "AUTO_DISPATCH";
149
155
  value: boolean;
@@ -269,14 +275,17 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
269
275
  key: "NAME";
270
276
  value: string;
271
277
  } | {
272
- key: "FILE_NAME";
273
- value: string;
278
+ key: "SCHEDULE";
279
+ value: import("./slices").Schedule;
274
280
  } | {
275
281
  key: "ID";
276
282
  value: string;
277
283
  } | {
278
284
  key: "DESCRIPTION";
279
285
  value: string;
286
+ } | {
287
+ key: "FILE_NAME";
288
+ value: string;
280
289
  } | {
281
290
  key: "AUTO_DISPATCH";
282
291
  value: boolean;
@@ -399,14 +408,17 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
399
408
  key: "NAME";
400
409
  value: string;
401
410
  } | {
402
- key: "FILE_NAME";
403
- value: string;
411
+ key: "SCHEDULE";
412
+ value: import("./slices").Schedule;
404
413
  } | {
405
414
  key: "ID";
406
415
  value: string;
407
416
  } | {
408
417
  key: "DESCRIPTION";
409
418
  value: string;
419
+ } | {
420
+ key: "FILE_NAME";
421
+ value: string;
410
422
  } | {
411
423
  key: "AUTO_DISPATCH";
412
424
  value: boolean;
@@ -529,14 +541,17 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
529
541
  key: "NAME";
530
542
  value: string;
531
543
  } | {
532
- key: "FILE_NAME";
533
- value: string;
544
+ key: "SCHEDULE";
545
+ value: import("./slices").Schedule;
534
546
  } | {
535
547
  key: "ID";
536
548
  value: string;
537
549
  } | {
538
550
  key: "DESCRIPTION";
539
551
  value: string;
552
+ } | {
553
+ key: "FILE_NAME";
554
+ value: string;
540
555
  } | {
541
556
  key: "AUTO_DISPATCH";
542
557
  value: boolean;
@@ -659,14 +674,17 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
659
674
  key: "NAME";
660
675
  value: string;
661
676
  } | {
662
- key: "FILE_NAME";
663
- value: string;
677
+ key: "SCHEDULE";
678
+ value: import("./slices").Schedule;
664
679
  } | {
665
680
  key: "ID";
666
681
  value: string;
667
682
  } | {
668
683
  key: "DESCRIPTION";
669
684
  value: string;
685
+ } | {
686
+ key: "FILE_NAME";
687
+ value: string;
670
688
  } | {
671
689
  key: "AUTO_DISPATCH";
672
690
  value: boolean;
@@ -789,14 +807,17 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
789
807
  key: "NAME";
790
808
  value: string;
791
809
  } | {
792
- key: "FILE_NAME";
793
- value: string;
810
+ key: "SCHEDULE";
811
+ value: import("./slices").Schedule;
794
812
  } | {
795
813
  key: "ID";
796
814
  value: string;
797
815
  } | {
798
816
  key: "DESCRIPTION";
799
817
  value: string;
818
+ } | {
819
+ key: "FILE_NAME";
820
+ value: string;
800
821
  } | {
801
822
  key: "AUTO_DISPATCH";
802
823
  value: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/new/store/store.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,eAAe,cAAc,OAAO,KAAU,eAIxD,CAAC;AAEJ,eAAO,MACL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACL,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACP,WAAW;;;GACX,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACT,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BACT,QAAQ,oDACR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACT,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BACT,QAAQ,oDACR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACR,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBACkD,CAAC;AAEjE,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,QAAQ,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAW,eAAe,SAGrD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,eAGhC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { JSONSchema7 as JSONShemaBase } from 'json-schema';
2
- import { BaseConfig, DatasourceConfig, DatasourceKey, TransformerConfig } from '../store';
2
+ import { BaseConfig, DatasourceConfig, DatasourceKey, Schedule, TransformerConfig } from '../store';
3
3
  import { RuleExpression } from './rule-expression';
4
4
  export declare namespace Genesis {
5
5
  const genesisFieldTypes: readonly ["STRING", "ENUM", "INT", "SHORT", "DOUBLE", "LONG", "BOOLEAN", "BIGDECIMAL", "DATE", "DATETIME", "RAW", "NANO_TIMESTAMP"];
@@ -11,13 +11,14 @@ export declare namespace Genesis {
11
11
  };
12
12
  } | undefined;
13
13
  };
14
- type ServerReportConfig = {
14
+ type ServerReportConfig = Omit<BaseConfig, "SCHEDULE"> & {
15
15
  DATA_SOURCES: (Omit<DatasourceConfig[DatasourceKey], 'TRANSFORMER_CONFIGURATION'> & {
16
16
  TRANSFORMER_CONFIGURATION: Pick<TransformerConfig, 'COLUMN_RENAMES' | 'COLUMN_FILTERS'> & {
17
17
  ROW_FILTERS: RuleExpression.RuleExpression;
18
18
  };
19
19
  })[];
20
- } & BaseConfig;
20
+ SCHEDULES: Schedule[];
21
+ };
21
22
  const FileStorageFields: {
22
23
  readonly FILE_STORAGE_ID: "FILE_STORAGE_ID";
23
24
  readonly STORAGE_MANAGER: "STORAGE_MANAGER";
@@ -1 +1 @@
1
- {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../../src/new/types/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,yBAAiB,OAAO,CAAC;IAChB,MAAM,iBAAiB,qIAapB,CAAC;IAEX,KAAY,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;IAEnE,KAAY,WAAW,GAAG,aAAa,GAAG;QACxC,UAAU,CAAC,EACP;YACE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG;gBAAE,WAAW,EAAE,iBAAiB,CAAA;a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AiB,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QACxC,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QACxC,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QACvC,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QACvC,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC9C,CAAC;CACH;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI;IAAE,CAAC,EAAE,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,oBAAoB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,OAAO,EAAkB,MAAM,UAAU,CAAC;AAE5D,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAe3F;AAID,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,GAAG,eAAe,CAmD/F;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,oBAAoB,CAI9B;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,CAAC,oBAAoB,GACpC,oBAAoB,CAItB;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,aAAa,CAEzF"}
1
+ {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,oBAAoB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,OAAO,EAAkB,MAAM,UAAU,CAAC;AAE5D,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAqB3F;AAID,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,GAAG,eAAe,CAsD/F;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,oBAAoB,CAI9B;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,CAAC,oBAAoB,GACpC,oBAAoB,CAItB;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,aAAa,CAEzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,uBAAuB,YACxB,OAAO,cACF,eAAe,KAAG,QAAQ,OAAO,SAAS,EAAE,MAAM,EAAE,CAAC,CA6BnE,CAAC"}
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,uBAAuB,YACxB,OAAO,cACF,eAAe,KAAG,QAAQ,OAAO,SAAS,EAAE,MAAM,EAAE,CAAC,CAoCnE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { EntityManagement } from '@genesislcap/foundation-entity-management';
2
- import { baseComponents, provideDesignSystem, rapidActionsMenu, rapidButton, rapidCard, rapidCheckbox, rapidCombobox, rapidDialog, rapidIcon, rapidListboxOption, rapidMenu, rapidMenuItem, rapidRadio, rapidRadioGroup, rapidSelect, rapidTab, rapidTabPanel, rapidTabs, rapidTextField, rapidTextArea, rapidToast, rapidModal, rapidMultiselect, rapidListbox, rapidNumberField, rapidToastStyles, rapidStepper, rapidStepperTab, rapidStepperTabPanel, rapidTreeItem, rapidProgressRing, } from '@genesislcap/rapid-design-system';
2
+ import { baseComponents, provideDesignSystem, rapidActionsMenu, rapidButton, rapidCard, rapidCheckbox, rapidCombobox, rapidDialog, rapidIcon, rapidListboxOption, rapidMenu, rapidMenuItem, rapidRadio, rapidRadioGroup, rapidSelect, rapidTab, rapidTabPanel, rapidTabs, rapidTextField, rapidTextArea, rapidToast, rapidModal, rapidMultiselect, rapidListbox, rapidNumberField, rapidToastStyles, rapidStepper, rapidStepperTab, rapidStepperTabPanel, rapidTreeItem, rapidProgressRing, rapidSchedulerCronBuilder } from '@genesislcap/rapid-design-system';
3
3
  import { rapidGridComponents, rapidAgActionsMenuRenderer, rapidAgSelectRenderer, } from '@genesislcap/rapid-grid-pro';
4
4
  import { css } from '@genesislcap/web-core';
5
5
  import { foundationAgRowSelectRenderer } from '../../old/components/renderers/row-select.renderer';
@@ -15,7 +15,7 @@ export const registerCommonRapidComponents = async () => {
15
15
  /**
16
16
  * Common across most routes, so batch register these lightweight components upfront.
17
17
  */
18
- rapidActionsMenu(), rapidButton(), rapidCard(), rapidCheckbox(), rapidDialog(), rapidIcon(), rapidListboxOption(), rapidMenu(), rapidMenuItem(), rapidRadio(), rapidRadioGroup(), rapidSelect(), rapidTab(), rapidTabPanel(), rapidTabs(), rapidTextField(), rapidTextArea(), rapidToast({
18
+ rapidActionsMenu(), rapidButton(), rapidCard(), rapidCheckbox(), rapidDialog(), rapidIcon(), rapidListboxOption(), rapidMenu(), rapidMenuItem(), rapidRadio(), rapidRadioGroup(), rapidSelect(), rapidTab(), rapidTabPanel(), rapidTabs(), rapidTextField(), rapidTextArea(), rapidSchedulerCronBuilder(), rapidToast({
19
19
  styles: css `
20
20
  ${rapidToastStyles}
21
21
  ::slotted(*) {
@@ -6,12 +6,14 @@ import { ColRenamesAliases } from './col-rename-alias/col-rename-alias-grid';
6
6
  import { DatasourcesConfigContainer } from './datasource-config/datasources-config-container';
7
7
  import { RowFilters } from './row-filters/row-filters';
8
8
  import { TabbedDatasourceContainer } from './tabbed-datasource-container/tabbed-datasource-container';
9
+ import { Scheduling } from './scheduling/scheduling';
9
10
  TabbedDatasourceContainer;
10
11
  BaseConfig;
11
12
  DatasourcesConfigContainer;
12
13
  RowFilters;
13
14
  ColFiltersGrid;
14
15
  ColRenamesAliases;
16
+ Scheduling;
15
17
  export const template = html `
16
18
  <template>
17
19
  <div class="button-container">
@@ -38,6 +40,7 @@ export const template = html `
38
40
  Column
39
41
  ${(_) => (selectors.baseConfig.getConfig().OUTPUT_FORMAT === 'PDF' ? 'Aliases' : 'Renames')}
40
42
  </rapid-stepper-tab>
43
+ <rapid-stepper-tab>Scheduling</rapid-stepper-tab>
41
44
  <!-- TODO: this should be column aliases for PDF -->
42
45
  <!--<rapid-stepper-tab>Scheduling</rapid-stepper-tab>-->
43
46
  <!--<rapid-stepper-tab>Output Destinations</rapid-stepper-tab>-->
@@ -74,9 +77,14 @@ export const template = html `
74
77
  <col-rename-alias></col-rename-alias>
75
78
  </tabbed-datasource-container>
76
79
  </rapid-stepper-tab-panel>
80
+ <rapid-stepper-tab-panel>
81
+ <div class="pad">
82
+ <scheduling-config class="centered"></scheduling-config>
83
+ </div>
84
+ </rapid-stepper-tab-panel>
77
85
 
78
86
  <!--
79
- <rapid-stepper-tab-panel>Scheduling Content Goes Here</rapid-stepper-tab-panel>
87
+
80
88
 
81
89
  <rapid-stepper-tab-panel>Destinations Content Goes Here</rapid-stepper-tab-panel>
82
90
 
@@ -0,0 +1,44 @@
1
+ import { __decorate } from "tslib";
2
+ import { Connect, logger } from '@genesislcap/foundation-comms';
3
+ import { showNotificationToast } from '@genesislcap/foundation-notifications';
4
+ import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
5
+ import { styles } from './scheduling.styles';
6
+ import { template } from './scheduling.template';
7
+ let Scheduling = class Scheduling extends GenesisElement {
8
+ connectedCallback() {
9
+ super.connectedCallback();
10
+ this.getTimeZones();
11
+ }
12
+ async getTimeZones() {
13
+ try {
14
+ const response = await this.connect.request('VALID_TIME_ZONE', {
15
+ REQUEST: {},
16
+ });
17
+ if (!response.REPLY || !Array.isArray(response.REPLY))
18
+ throw new Error('Invalid data returned for Timezones');
19
+ this.timeZones = response.REPLY.map((e) => e.ZONE_ID).sort((a, b) => a.localeCompare(b));
20
+ }
21
+ catch (e) {
22
+ showNotificationToast({
23
+ title: 'Edit Report Config',
24
+ body: `Unable to fetch timezones data.`,
25
+ toast: { type: 'critical' },
26
+ }, 'rapid');
27
+ logger.error(e);
28
+ }
29
+ }
30
+ };
31
+ __decorate([
32
+ Connect
33
+ ], Scheduling.prototype, "connect", void 0);
34
+ __decorate([
35
+ observable
36
+ ], Scheduling.prototype, "timeZones", void 0);
37
+ Scheduling = __decorate([
38
+ customElement({
39
+ name: 'scheduling-config',
40
+ template,
41
+ styles,
42
+ })
43
+ ], Scheduling);
44
+ export { Scheduling };
@@ -0,0 +1,16 @@
1
+ import { css } from '@genesislcap/web-core';
2
+ import { formLabel } from '../../../styles';
3
+ export const styles = css `
4
+ ${formLabel}
5
+ :host {
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: calc(var(--design-unit) * 2px);
9
+ }
10
+ .timezone-container {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: calc(var(--design-unit) * 2px);
14
+ padding: 0 calc(vaR(--design-unit) * 4px);
15
+ }
16
+ `;
@@ -0,0 +1,41 @@
1
+ import { html, repeat, sync } from '@genesislcap/web-core';
2
+ import { actions, selectors } from '../../../store';
3
+ export const template = html `
4
+ <div class="timezone-container">
5
+ <label class="label">Time Zone</label>
6
+ <rapid-combobox
7
+ data-test-id="config-report-timezone"
8
+ autocomplete="both"
9
+ value="${() => { var _a; return ((_a = selectors.baseConfig.getConfig().SCHEDULE) === null || _a === void 0 ? void 0 : _a.TIME_ZONE) || ''; }}"
10
+ @change="${(x, ctx) => {
11
+ var _a;
12
+ return actions.baseConfig.updateState({
13
+ key: 'SCHEDULE',
14
+ value: {
15
+ CRON_EXPRESSION: ((_a = selectors.baseConfig.getConfig().SCHEDULE) === null || _a === void 0 ? void 0 : _a.CRON_EXPRESSION) || '',
16
+ TIME_ZONE: x.timeZones.find((tz) => tz === ctx.event.target.value)
17
+ ? ctx.event.target.value
18
+ : '',
19
+ },
20
+ });
21
+ }}"
22
+ >
23
+ ${repeat((x) => x.timeZones, html `
24
+ <rapid-option value="${(x) => x}">${(x) => x}</rapid-option>
25
+ `)}
26
+ </rapid-combobox>
27
+ </div>
28
+ <rapid-scheduler-cron-builder
29
+ :cron=${sync((x) => { var _a; return ((_a = selectors.baseConfig.getConfig().SCHEDULE) === null || _a === void 0 ? void 0 : _a.CRON_EXPRESSION) || ''; })}
30
+ @change="${(_, ctx) => {
31
+ var _a;
32
+ return actions.baseConfig.updateState({
33
+ key: 'SCHEDULE',
34
+ value: {
35
+ TIME_ZONE: ((_a = selectors.baseConfig.getConfig().SCHEDULE) === null || _a === void 0 ? void 0 : _a.TIME_ZONE) || '',
36
+ CRON_EXPRESSION: ctx.event.target.value,
37
+ },
38
+ });
39
+ }}"
40
+ ></rapid-scheduler-cron-builder>
41
+ `;
@@ -1,6 +1,7 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
2
  const initialState = {
3
3
  DESTINATION_IDS: [],
4
+ SCHEDULE: { CRON_EXPRESSION: '0 0 0 * * ?', TIME_ZONE: '' },
4
5
  };
5
6
  export const baseSlice = createSlice({
6
7
  name: 'baseConfig',
@@ -2,7 +2,11 @@ import { createStore } from '../lib/redux-store';
2
2
  import { baseSlice, datasourceSlice } from './slices';
3
3
  import { loadLocal } from './storage';
4
4
  export const reduxBlankState = (tryLocal = true) => (tryLocal && loadLocal()) || {
5
- baseConfig: { DESTINATION_IDS: [], OUTPUT_FORMAT: 'CSV' },
5
+ baseConfig: {
6
+ DESTINATION_IDS: [],
7
+ OUTPUT_FORMAT: 'CSV',
8
+ SCHEDULE: { CRON_EXPRESSION: '0 0 0 * * ?', TIME_ZONE: '' },
9
+ },
6
10
  datasourceConfig: {},
7
11
  };
8
12
  export const { store, actions, rootReducer, selectors, subscribe, dispatch, getState, subscribeKey, } = createStore([baseSlice, datasourceSlice], reduxBlankState());
@@ -18,7 +18,7 @@ export const constrainedDimensions = ({ navToContentPx }) => css `
18
18
 
19
19
  /* total height from the page we want to subtract from the total height to give to the slot contents */
20
20
  --taken-height: calc(
21
- var(--footer-height) + var(--reporting-header-to-content-height) + var(--app-top-height)
21
+ var(--footer-height) + var(--reporting-header-to-content-height) + var(--app-top-height, 0px)
22
22
  );
23
23
 
24
24
  /* the height/max height we want to set on the component - the calculated space for the content */
@@ -1,6 +1,12 @@
1
+ import { __rest } from "tslib";
1
2
  export function transformToServerPayload(state) {
3
+ var _a, _b;
2
4
  const { datasourceConfig, baseConfig } = state;
3
- return Object.assign(Object.assign({}, baseConfig), { DATA_SOURCES: Object.values(datasourceConfig).map((ds) => {
5
+ const { SCHEDULE } = baseConfig, updatedBaseConfig = __rest(baseConfig, ["SCHEDULE"]);
6
+ return Object.assign(Object.assign({}, updatedBaseConfig), { SCHEDULES: baseConfig.SCHEDULE &&
7
+ (((_a = baseConfig.SCHEDULE) === null || _a === void 0 ? void 0 : _a.TIME_ZONE) || ((_b = baseConfig.SCHEDULE) === null || _b === void 0 ? void 0 : _b.CRON_EXPRESSION) !== '0 0 0 * * ?')
8
+ ? [baseConfig.SCHEDULE]
9
+ : [], DATA_SOURCES: Object.values(datasourceConfig).map((ds) => {
4
10
  var _a;
5
11
  return ({
6
12
  KEY: ds.KEY,
@@ -19,7 +25,7 @@ export function transformFromServerPaylaod(payload) {
19
25
  throw new Error('Condition not valid!');
20
26
  return condition.LEFT.NAME;
21
27
  };
22
- const { DATA_SOURCES, ID, NAME, DESCRIPTION, OUTPUT_FORMAT, FILE_NAME, AUTO_DISPATCH, DESTINATION_IDS, } = payload;
28
+ const { DATA_SOURCES, ID, NAME, DESCRIPTION, OUTPUT_FORMAT, FILE_NAME, AUTO_DISPATCH, DESTINATION_IDS, SCHEDULES, } = payload;
23
29
  const baseConfig = {
24
30
  ID,
25
31
  NAME,
@@ -28,6 +34,7 @@ export function transformFromServerPaylaod(payload) {
28
34
  FILE_NAME,
29
35
  AUTO_DISPATCH,
30
36
  DESTINATION_IDS,
37
+ SCHEDULE: SCHEDULES.length === 0 ? { CRON_EXPRESSION: '0 0 0 * * ?', TIME_ZONE: '' } : SCHEDULES[0],
31
38
  };
32
39
  return {
33
40
  baseConfig,
@@ -1,5 +1,5 @@
1
1
  export const validateReportingConfig = (connect) => async (config) => {
2
- var _a, _b;
2
+ var _a, _b, _c, _d;
3
3
  const errors = [];
4
4
  const result = await connect.snapshot('ALL_REPORT_CONFIGS');
5
5
  const reportingConfigNames = new Set((_b = (_a = result.ROW) === null || _a === void 0 ? void 0 : _a.filter((d) => !config.baseConfig.ID || d.ID !== config.baseConfig.ID)) === null || _b === void 0 ? void 0 : _b.map((d) => d.NAME));
@@ -12,6 +12,10 @@ export const validateReportingConfig = (connect) => async (config) => {
12
12
  if (!config.baseConfig.FILE_NAME) {
13
13
  errors.push(`Reporting config file name unset.`);
14
14
  }
15
+ if (!((_c = config.baseConfig.SCHEDULE) === null || _c === void 0 ? void 0 : _c.TIME_ZONE) &&
16
+ ((_d = config.baseConfig.SCHEDULE) === null || _d === void 0 ? void 0 : _d.CRON_EXPRESSION) !== '0 0 0 * * ?') {
17
+ errors.push(`Reporting config time zone unset.`);
18
+ }
15
19
  if (errors.length) {
16
20
  return {
17
21
  k: 'err',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-reporting-ui",
3
3
  "description": "Genesis PBC Reporting UI",
4
- "version": "1.0.384",
4
+ "version": "1.0.386",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",