@qbs-origin/origin-form 0.5.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.
Files changed (182) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/action-step-handler.mjs +163 -0
  3. package/esm2022/lib/auth-client.service.mjs +69 -0
  4. package/esm2022/lib/enums/label.keys.mjs +721 -0
  5. package/esm2022/lib/form-css.helper.mjs +367 -0
  6. package/esm2022/lib/formly/baseFormlyControlComponent.mjs +52 -0
  7. package/esm2022/lib/formly/baseFormlyStepComponent.mjs +59 -0
  8. package/esm2022/lib/formly/custom-section-separator.component.mjs +32 -0
  9. package/esm2022/lib/formly/form-section-separator.component.mjs +36 -0
  10. package/esm2022/lib/formly/formly-action.mjs +56 -0
  11. package/esm2022/lib/formly/formly-checkbox/formly-checkbox.component.mjs +52 -0
  12. package/esm2022/lib/formly/formly-dictionary-dropdown-tree/formly-dictionary-dropdown-tree.component.mjs +261 -0
  13. package/esm2022/lib/formly/formly-download-documents/formly-download-documents.component.mjs +126 -0
  14. package/esm2022/lib/formly/formly-enrol-card/formly-enrol-card.component.mjs +120 -0
  15. package/esm2022/lib/formly/formly-field-stepper/formly-field-stepper.component.mjs +762 -0
  16. package/esm2022/lib/formly/formly-generate-documents/formly-generate-documents.component.mjs +57 -0
  17. package/esm2022/lib/formly/formly-identification.component.mjs +84 -0
  18. package/esm2022/lib/formly/formly-open-banking/formly-open-banking.component.mjs +590 -0
  19. package/esm2022/lib/formly/formly-paragraph/formly-paragraph.component.mjs +35 -0
  20. package/esm2022/lib/formly/formly-radio/formly-radio-component.mjs +49 -0
  21. package/esm2022/lib/formly/formly-row-fille.mjs +12 -0
  22. package/esm2022/lib/formly/formly-scan-id/formly-scan-id.component.mjs +284 -0
  23. package/esm2022/lib/formly/formly-sign/formly-sign.component.mjs +173 -0
  24. package/esm2022/lib/formly/formly-upload-documents/formly-upload-documents.component.mjs +198 -0
  25. package/esm2022/lib/formly/formly-validate-contact-info/formly-validate-contact-info.component.mjs +124 -0
  26. package/esm2022/lib/formly/formly-view-documents/formly-view-documents.component.mjs +245 -0
  27. package/esm2022/lib/formly/formly-view-offers/formly-view-offers.component.mjs +160 -0
  28. package/esm2022/lib/model-population.helper.mjs +265 -0
  29. package/esm2022/lib/models/application-type.model.mjs +12 -0
  30. package/esm2022/lib/models/application.model.mjs +30 -0
  31. package/esm2022/lib/models/auth/users.model.mjs +2 -0
  32. package/esm2022/lib/models/dictionary.model.mjs +20 -0
  33. package/esm2022/lib/models/flux.model.mjs +105 -0
  34. package/esm2022/lib/models/forms.model.mjs +572 -0
  35. package/esm2022/lib/models/label-info.model.mjs +2 -0
  36. package/esm2022/lib/models/label.model.mjs +2 -0
  37. package/esm2022/lib/models/language.model.mjs +3 -0
  38. package/esm2022/lib/models/list.model.mjs +2 -0
  39. package/esm2022/lib/models/partner.model.mjs +3 -0
  40. package/esm2022/lib/models/treeview.model.mjs +15 -0
  41. package/esm2022/lib/origin-form-auth.service.mjs +40 -0
  42. package/esm2022/lib/origin-form-config.model.mjs +2 -0
  43. package/esm2022/lib/origin-form-token.interceptor.mjs +35 -0
  44. package/esm2022/lib/origin-form.component.mjs +2391 -0
  45. package/esm2022/lib/origin-form.module.mjs +479 -0
  46. package/esm2022/lib/origin-form.service.mjs +14 -0
  47. package/esm2022/lib/others/check-list.database.mjs +55 -0
  48. package/esm2022/lib/others/config-service.mjs +42 -0
  49. package/esm2022/lib/others/dictionary-label-info.mjs +3 -0
  50. package/esm2022/lib/others/environment-type.mjs +21 -0
  51. package/esm2022/lib/others/external-link.directive.mjs +49 -0
  52. package/esm2022/lib/others/flux-helper.mjs +1397 -0
  53. package/esm2022/lib/others/picker.component.mjs +119 -0
  54. package/esm2022/lib/others/translation.pipe.mjs +21 -0
  55. package/esm2022/lib/others/translations-helper.mjs +258 -0
  56. package/esm2022/lib/others/utils.mjs +272 -0
  57. package/esm2022/lib/services/applicationData.service.mjs +145 -0
  58. package/esm2022/lib/services/auth-http.service.mjs +80 -0
  59. package/esm2022/lib/services/dialog.service.mjs +56 -0
  60. package/esm2022/lib/services/dictionary.service.mjs +198 -0
  61. package/esm2022/lib/services/forms.service.mjs +47 -0
  62. package/esm2022/lib/services/labels.service.mjs +29 -0
  63. package/esm2022/lib/services/language.service.mjs +24 -0
  64. package/esm2022/lib/services/open-banking.service.mjs +194 -0
  65. package/esm2022/lib/services/origin-form-signalr-handler.service.mjs +107 -0
  66. package/esm2022/lib/services/origin-form-signalr.service.mjs +105 -0
  67. package/esm2022/lib/services/otp.service.mjs +28 -0
  68. package/esm2022/lib/services/proxy.service.mjs +79 -0
  69. package/esm2022/lib/services/scroll-to-error.service.mjs +369 -0
  70. package/esm2022/lib/services/translation.service.mjs +27 -0
  71. package/esm2022/lib/shared-components/confirmation.component.mjs +34 -0
  72. package/esm2022/lib/shared-components/dictionaries-tree.component.mjs +301 -0
  73. package/esm2022/lib/shared-components/grid.component.mjs +241 -0
  74. package/esm2022/lib/shared-components/treeview/treeview.component.mjs +224 -0
  75. package/esm2022/lib/theme-css.mjs +2254 -0
  76. package/esm2022/lib/theme-injector.service.mjs +26 -0
  77. package/esm2022/public-api.mjs +4 -0
  78. package/esm2022/qbs-origin-origin-form.mjs +5 -0
  79. package/fesm2022/qbs-origin-origin-form.mjs +15215 -0
  80. package/fesm2022/qbs-origin-origin-form.mjs.map +1 -0
  81. package/index.d.ts +5 -0
  82. package/lib/action-step-handler.d.ts +49 -0
  83. package/lib/auth-client.service.d.ts +17 -0
  84. package/lib/enums/label.keys.d.ts +720 -0
  85. package/lib/form-css.helper.d.ts +28 -0
  86. package/lib/formly/baseFormlyControlComponent.d.ts +25 -0
  87. package/lib/formly/baseFormlyStepComponent.d.ts +29 -0
  88. package/lib/formly/custom-section-separator.component.d.ts +6 -0
  89. package/lib/formly/form-section-separator.component.d.ts +10 -0
  90. package/lib/formly/formly-action.d.ts +13 -0
  91. package/lib/formly/formly-checkbox/formly-checkbox.component.d.ts +15 -0
  92. package/lib/formly/formly-dictionary-dropdown-tree/formly-dictionary-dropdown-tree.component.d.ts +45 -0
  93. package/lib/formly/formly-download-documents/formly-download-documents.component.d.ts +22 -0
  94. package/lib/formly/formly-enrol-card/formly-enrol-card.component.d.ts +114 -0
  95. package/lib/formly/formly-field-stepper/formly-field-stepper.component.d.ts +79 -0
  96. package/lib/formly/formly-generate-documents/formly-generate-documents.component.d.ts +17 -0
  97. package/lib/formly/formly-identification.component.d.ts +19 -0
  98. package/lib/formly/formly-open-banking/formly-open-banking.component.d.ts +119 -0
  99. package/lib/formly/formly-paragraph/formly-paragraph.component.d.ts +10 -0
  100. package/lib/formly/formly-radio/formly-radio-component.d.ts +15 -0
  101. package/lib/formly/formly-row-fille.d.ts +6 -0
  102. package/lib/formly/formly-scan-id/formly-scan-id.component.d.ts +41 -0
  103. package/lib/formly/formly-sign/formly-sign.component.d.ts +36 -0
  104. package/lib/formly/formly-upload-documents/formly-upload-documents.component.d.ts +25 -0
  105. package/lib/formly/formly-validate-contact-info/formly-validate-contact-info.component.d.ts +79 -0
  106. package/lib/formly/formly-view-documents/formly-view-documents.component.d.ts +33 -0
  107. package/lib/formly/formly-view-offers/formly-view-offers.component.d.ts +23 -0
  108. package/lib/model-population.helper.d.ts +8 -0
  109. package/lib/models/application-type.model.d.ts +27 -0
  110. package/lib/models/application.model.d.ts +107 -0
  111. package/lib/models/auth/users.model.d.ts +20 -0
  112. package/lib/models/dictionary.model.d.ts +77 -0
  113. package/lib/models/flux.model.d.ts +101 -0
  114. package/lib/models/forms.model.d.ts +504 -0
  115. package/lib/models/label-info.model.d.ts +10 -0
  116. package/lib/models/label.model.d.ts +4 -0
  117. package/lib/models/language.model.d.ts +5 -0
  118. package/lib/models/list.model.d.ts +8 -0
  119. package/lib/models/partner.model.d.ts +12 -0
  120. package/lib/models/treeview.model.d.ts +17 -0
  121. package/lib/origin-form-auth.service.d.ts +15 -0
  122. package/lib/origin-form-config.model.d.ts +12 -0
  123. package/lib/origin-form-token.interceptor.d.ts +12 -0
  124. package/lib/origin-form.component.d.ts +231 -0
  125. package/lib/origin-form.module.d.ts +84 -0
  126. package/lib/origin-form.service.d.ts +6 -0
  127. package/lib/others/check-list.database.d.ts +16 -0
  128. package/lib/others/config-service.d.ts +22 -0
  129. package/lib/others/dictionary-label-info.d.ts +6 -0
  130. package/lib/others/environment-type.d.ts +8 -0
  131. package/lib/others/external-link.directive.d.ts +12 -0
  132. package/lib/others/flux-helper.d.ts +115 -0
  133. package/lib/others/picker.component.d.ts +36 -0
  134. package/lib/others/translation.pipe.d.ts +10 -0
  135. package/lib/others/translations-helper.d.ts +31 -0
  136. package/lib/others/utils.d.ts +37 -0
  137. package/lib/services/applicationData.service.d.ts +35 -0
  138. package/lib/services/auth-http.service.d.ts +21 -0
  139. package/lib/services/dialog.service.d.ts +20 -0
  140. package/lib/services/dictionary.service.d.ts +89 -0
  141. package/lib/services/forms.service.d.ts +17 -0
  142. package/lib/services/labels.service.d.ts +13 -0
  143. package/lib/services/language.service.d.ts +14 -0
  144. package/lib/services/open-banking.service.d.ts +137 -0
  145. package/lib/services/origin-form-signalr-handler.service.d.ts +29 -0
  146. package/lib/services/origin-form-signalr.service.d.ts +24 -0
  147. package/lib/services/otp.service.d.ts +22 -0
  148. package/lib/services/proxy.service.d.ts +29 -0
  149. package/lib/services/scroll-to-error.service.d.ts +54 -0
  150. package/lib/services/translation.service.d.ts +10 -0
  151. package/lib/shared-components/confirmation.component.d.ts +77 -0
  152. package/lib/shared-components/dictionaries-tree.component.d.ts +51 -0
  153. package/lib/shared-components/grid.component.d.ts +138 -0
  154. package/lib/shared-components/treeview/treeview.component.d.ts +121 -0
  155. package/lib/theme-css.d.ts +2 -0
  156. package/lib/theme-injector.service.d.ts +8 -0
  157. package/package.json +42 -0
  158. package/public-api.d.ts +3 -0
  159. package/schematics-compiled/collection.json +10 -0
  160. package/schematics-compiled/ng-add/index.d.ts +2 -0
  161. package/schematics-compiled/ng-add/index.js +67 -0
  162. package/schematics-compiled/ng-add/index.js.map +1 -0
  163. package/schematics-compiled/ng-add/schema.json +8 -0
  164. package/src/lib/assets/fonts/Figtree-Bold.ttf +0 -0
  165. package/src/lib/assets/fonts/Figtree-Light.ttf +0 -0
  166. package/src/lib/assets/fonts/Figtree-Regular.ttf +0 -0
  167. package/src/lib/assets/fonts/Sora-ExtraBold.ttf +0 -0
  168. package/src/lib/assets/fonts/Sora-Light.ttf +0 -0
  169. package/src/lib/assets/fonts/Sora-Regular.ttf +0 -0
  170. package/src/lib/assets/fonts/ttrounds-bold-webfont.woff +0 -0
  171. package/src/lib/assets/fonts/ttrounds-bold-webfont.woff2 +0 -0
  172. package/src/lib/assets/fonts/ttrounds-regular-webfont.woff +0 -0
  173. package/src/lib/assets/fonts/ttrounds-regular-webfont.woff2 +0 -0
  174. package/src/lib/assets/fonts/ttrounds-thin-webfont.woff +0 -0
  175. package/src/lib/assets/fonts/ttrounds-thin-webfont.woff2 +0 -0
  176. package/src/lib/assets/images/flag/icon-flag-de.svg +10 -0
  177. package/src/lib/assets/images/flag/icon-flag-en.svg +1 -0
  178. package/src/lib/assets/images/flag/icon-flag-es.svg +11 -0
  179. package/src/lib/assets/images/flag/icon-flag-fr.svg +1 -0
  180. package/src/lib/assets/images/flag/icon-flag-ro.svg +11 -0
  181. package/src/lib/assets/images/flag/origin-form/new-id-card.png +0 -0
  182. package/src/lib/assets/images/flag/origin-form/old-id-card.png +0 -0
@@ -0,0 +1,35 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ConfigService } from '../others/config-service';
3
+ import { ApiDocumentRequest, ApiValidateRequest, ApplicationEnrolCardDto, ApplicationGenerateDocumentsDto, ApplicationGetGeneratedDocumentsDto, ApplicationUploadDocumentsDto, ConvertDocumentToPdfRequest, ConvertDocumentToPdfResponse, GeneratedDocument, MakeActionRequest, ScanIdDto } from '../models/application.model';
4
+ import { AppData } from '../models/forms.model';
5
+ import { AuthHttpService } from './auth-http.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApplicationDataService {
8
+ private http;
9
+ constructor(http: AuthHttpService);
10
+ configService: ConfigService;
11
+ uploadDocuments(uploadDocumentsDto: ApplicationUploadDocumentsDto): Observable<string[]>;
12
+ generateDocuments(generateDocumentsCommand: ApplicationGenerateDocumentsDto): Observable<any>;
13
+ getGenerateDocuments(getCommand: ApplicationGetGeneratedDocumentsDto): Observable<GeneratedDocument[]>;
14
+ downloadFile(appDataId: string, docId: string, fileName: string): Observable<any>;
15
+ scanId(scanIdCommand: ScanIdDto): Observable<number>;
16
+ getSteps(appDataId: string): Promise<any>;
17
+ saveApp(appData: AppData): Observable<any>;
18
+ saveStep(appDataId: string, currentStep: any, selectedOfferId?: any): Observable<any>;
19
+ getPreviousStep(appDataId: string): Observable<any>;
20
+ validateApi(apiValidateRequest: ApiValidateRequest): Observable<any>;
21
+ doDocumentRequest(apiValidateRequest: ApiDocumentRequest): Observable<any[]>;
22
+ convertDocumentToPdf(request: ConvertDocumentToPdfRequest): Observable<ConvertDocumentToPdfResponse>;
23
+ makeActionApiCall(actionRequest: MakeActionRequest): Observable<any>;
24
+ makeProcessApiCall(appDataID: string): Observable<any>;
25
+ getProcessStatus(appDataID: string): Observable<number>;
26
+ getOffers(appDataId: string): Observable<any>;
27
+ makeStatusApiCall(appDataId: string, stepId: string, setNextStep?: boolean): Observable<any>;
28
+ setCurrentStep(appDataId: string, stepId: string): Promise<unknown>;
29
+ enrolCard(enrolCardCommand: ApplicationEnrolCardDto): Observable<any>;
30
+ getEnrolmentStatus(dataUrlId: string): Observable<any>;
31
+ getDataUrl(dataUrlId: string): Observable<any>;
32
+ changeLanguage(appDataUuid: string, languageISOCode: string): Observable<any>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationDataService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationDataService>;
35
+ }
@@ -0,0 +1,21 @@
1
+ import { HttpClient, HttpEvent } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { OriginFormAuthService } from '../origin-form-auth.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AuthHttpService {
6
+ private http;
7
+ private authService;
8
+ private isRefreshing;
9
+ constructor(http: HttpClient, authService: OriginFormAuthService);
10
+ private getHeaders;
11
+ get<T>(url: string): Observable<T>;
12
+ getExtended<T>(url: string, options?: any): Observable<T | HttpEvent<T>>;
13
+ post<T>(url: string, body: any): Observable<T>;
14
+ postExtended<T>(url: string, body: any, options?: any | null): Observable<T | HttpEvent<T>>;
15
+ put<T>(url: string, body: any): Observable<T>;
16
+ delete<T>(url: string): Observable<T>;
17
+ private handleError;
18
+ private handle401Error;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthHttpService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthHttpService>;
21
+ }
@@ -0,0 +1,20 @@
1
+ import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
2
+ import { MatSnackBar } from '@angular/material/snack-bar';
3
+ import { ComponentType } from '@angular/cdk/portal';
4
+ import { ErrorTranslations } from '../models/forms.model';
5
+ import { TranslatePipe } from '../others/translation.pipe';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DialogService {
8
+ private snackBar;
9
+ private dialog;
10
+ private translate;
11
+ constructor(snackBar: MatSnackBar, dialog: MatDialog, translate: TranslatePipe);
12
+ popError(message: string, ...params: string[]): void;
13
+ popErrors(labels: string[], duration?: number): void;
14
+ popErrorTranslation(errorsTranslations: ErrorTranslations[], langIso: string, errorCode: string, ...params: string[]): void;
15
+ private popErrorsCore;
16
+ popSuccess(message: string, duration?: number, panelClass?: string[]): void;
17
+ openDialog<T, D = any, R = any>(component: ComponentType<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
20
+ }
@@ -0,0 +1,89 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Dictionary, DictionaryAppDependencyDto, DictionaryDto } from '../models/dictionary.model';
3
+ import { List } from '../models/list.model';
4
+ import { ConfigService } from '../others/config-service';
5
+ import { EnvironmentType } from '../others/environment-type';
6
+ import { AuthHttpService } from './auth-http.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class DictionaryService {
9
+ private http;
10
+ private activeDictionaryRequests;
11
+ private supportsBatchLoad;
12
+ constructor(http: AuthHttpService);
13
+ configService: ConfigService;
14
+ getDictionaries(params: {
15
+ page?: number;
16
+ pageSize?: number;
17
+ sort?: string;
18
+ sortDirection?: string;
19
+ filters?: string[];
20
+ dictionaryIds?: number[];
21
+ dictionaryUUIDs?: string[];
22
+ languageIds?: number[];
23
+ env: EnvironmentType;
24
+ }): Observable<List<DictionaryDto>>;
25
+ getDictionariesLight(params: {
26
+ page?: number;
27
+ pageSize?: number;
28
+ sort?: string;
29
+ sortDirection?: string;
30
+ filters: string[];
31
+ languageIds?: number[];
32
+ env: EnvironmentType;
33
+ }): Observable<List<DictionaryDto>>;
34
+ delete(uuid: string, env: string): Observable<any>;
35
+ getDictionary(id: string, env: EnvironmentType): Observable<DictionaryDto>;
36
+ /**
37
+ * Load multiple dictionaries in parallel
38
+ * Reusable for any scenario that needs multiple dictionaries
39
+ */
40
+ loadMultipleDictionaries(uuids: string[], env?: EnvironmentType): Observable<Map<string, DictionaryDto>>;
41
+ /**
42
+ * Private method for batch loading (when backend supports it)
43
+ */
44
+ private getBatchDictionaries;
45
+ getDependencies(id: number): Observable<DictionaryDto[]>;
46
+ getAppDependencies(uuid: string, env: EnvironmentType): Observable<DictionaryAppDependencyDto>;
47
+ create(dictionary: Dictionary): Observable<string>;
48
+ updateDictionary(dictionary: Dictionary): Observable<Dictionary>;
49
+ publishDictionaryVersion(uuid: string, envFrom: EnvironmentType, envTo: EnvironmentType): Observable<DictionaryDto>;
50
+ getDictionaryVersion(uuid: string, env: EnvironmentType): Observable<DictionaryDto>;
51
+ loadAppDictionaries(appUuid: string, env?: EnvironmentType): Observable<AppDictionariesResponse>;
52
+ /**
53
+ * NEW: Get complete dictionary tree in a single API call
54
+ * This replaces the need for multiple recursive calls to load child dictionaries
55
+ */
56
+ getDictionaryTree(dictionaryId: string, params: {
57
+ env: EnvironmentType;
58
+ languageId?: number;
59
+ valueIdsToShow?: number[];
60
+ }): Observable<DictionaryTreeResponseDto>;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryService, never>;
62
+ static ɵprov: i0.ɵɵInjectableDeclaration<DictionaryService>;
63
+ }
64
+ export interface DictionaryTreeResponseDto {
65
+ mainDictionary: DictionaryDto;
66
+ allDictionaries: DictionaryDto[];
67
+ metadata: {
68
+ totalDictionaries: number;
69
+ maxDepth: number;
70
+ loadedAt: string;
71
+ };
72
+ }
73
+ export interface AppDictionariesResponse {
74
+ dictionaries: {
75
+ [uuid: string]: DictionaryDto;
76
+ };
77
+ analysisStats: {
78
+ appUuid: string;
79
+ sectionsAnalyzed: number;
80
+ controlsAnalyzed: number;
81
+ presentationControlsAnalyzed: number;
82
+ initialDictionariesFound: number;
83
+ totalLoaded: number;
84
+ dependencyRounds: number;
85
+ loadingTimeMs: number;
86
+ };
87
+ success: boolean;
88
+ errors?: string[];
89
+ }
@@ -0,0 +1,17 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ApplicationDto } from '../models/application.model';
3
+ import { ConfigService } from '../others/config-service';
4
+ import { EnvironmentType } from '../others/environment-type';
5
+ import { AuthHttpService } from './auth-http.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FormsService {
8
+ private http;
9
+ constructor(http: AuthHttpService);
10
+ configService: ConfigService;
11
+ loadForm(id: number, env?: string): Observable<ApplicationDto>;
12
+ loadFormByUuid(uuid: string, env?: string): Observable<ApplicationDto>;
13
+ publish(applicationUuid: string, envTo: EnvironmentType): Observable<ApplicationDto>;
14
+ getVersion(applicationUuid: string, env?: EnvironmentType): Observable<ApplicationDto>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormsService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormsService>;
17
+ }
@@ -0,0 +1,13 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Label } from '../models/label.model';
3
+ import { ConfigService } from '../others/config-service';
4
+ import { AuthHttpService } from './auth-http.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class LabelService {
7
+ private http;
8
+ constructor(http: AuthHttpService);
9
+ configService: ConfigService;
10
+ getLabels(langIso: string, updateUserLanguageIso?: boolean): Observable<Label[]>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<LabelService>;
13
+ }
@@ -0,0 +1,14 @@
1
+ import { Observable } from 'rxjs';
2
+ import { List } from '../models/list.model';
3
+ import { Language } from '../models/language.model';
4
+ import { ConfigService } from '../others/config-service';
5
+ import { AuthHttpService } from './auth-http.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class LanguageService {
8
+ private http;
9
+ constructor(http: AuthHttpService);
10
+ configService: ConfigService;
11
+ getLanguages(): Observable<List<Language>>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
14
+ }
@@ -0,0 +1,137 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { ConfigService } from '../others/config-service';
4
+ import * as i0 from "@angular/core";
5
+ export interface Bank {
6
+ id: string;
7
+ bankCode: string;
8
+ displayName: string;
9
+ logoUrl?: string;
10
+ countryCode: string;
11
+ requiresRedirect: boolean;
12
+ supportedFeatures: string;
13
+ isActive: boolean;
14
+ }
15
+ export interface ConsentInitRequest {
16
+ bankCode: string;
17
+ psuEmail: string;
18
+ psuIntermediaryId: string;
19
+ periodOfValidity?: number;
20
+ tcAccepted: boolean;
21
+ }
22
+ export interface ConsentInitResponse {
23
+ authorizationUrl: string;
24
+ consentId: string;
25
+ }
26
+ export interface ConsentStatus {
27
+ consentId: string;
28
+ status: 'received' | 'valid' | 'rejected' | 'expired' | 'terminated' | 'revokedByPsu';
29
+ expiresAt?: string;
30
+ }
31
+ export interface ConsentCallbackParams {
32
+ message: string;
33
+ type: string;
34
+ internalConsentId: string;
35
+ code?: string;
36
+ state?: string;
37
+ }
38
+ export interface ConsentCallbackResponse {
39
+ message: string;
40
+ internalConsentId: string;
41
+ status: 'approved' | 'rejected';
42
+ }
43
+ export interface Account {
44
+ id: string;
45
+ accountId: string;
46
+ iban: string;
47
+ currency: string;
48
+ name: string;
49
+ accountHolderName: string;
50
+ accountHolderConfidence: string;
51
+ balance: number;
52
+ lastSyncedAt: string;
53
+ }
54
+ export interface Transaction {
55
+ transactionId: string;
56
+ accountId: string;
57
+ amount: number;
58
+ currency: string;
59
+ bookingDate: string;
60
+ valueDate?: string;
61
+ creditorName?: string;
62
+ creditorIBAN?: string;
63
+ debtorName?: string;
64
+ debtorIBAN?: string;
65
+ remittanceInformation?: string;
66
+ status: 'Booked' | 'Pending';
67
+ type: 'Debit' | 'Credit';
68
+ description?: string;
69
+ transactionDate?: string;
70
+ category?: string;
71
+ merchantName?: string;
72
+ reference?: string;
73
+ }
74
+ export interface TransactionPage {
75
+ items: Transaction[];
76
+ page: number;
77
+ pageNumber?: number;
78
+ pageSize: number;
79
+ totalCount: number;
80
+ totalPages: number;
81
+ hasNextPage: boolean;
82
+ hasPreviousPage: boolean;
83
+ nextPageLink?: string;
84
+ }
85
+ export interface TransactionRequest {
86
+ consentId: string;
87
+ bankCode: string;
88
+ accountId: string;
89
+ fromDate?: string;
90
+ toDate?: string;
91
+ page?: number;
92
+ pageSize?: number;
93
+ }
94
+ export declare class OpenBankingService {
95
+ private http;
96
+ private configService;
97
+ private apiUrl;
98
+ constructor(http: HttpClient, configService: ConfigService);
99
+ /**
100
+ * Fix data URL format for logos
101
+ * Converts "data:image/svg;base64," to "data:image/svg+xml;base64,"
102
+ */
103
+ private fixDataUrlFormat;
104
+ /**
105
+ * Get list of supported banks
106
+ * @param countryCode Optional country code filter
107
+ */
108
+ getBanks(countryCode?: string): Observable<Bank[]>;
109
+ /**
110
+ * Initialize consent flow
111
+ */
112
+ initializeConsent(request: ConsentInitRequest): Observable<ConsentInitResponse>;
113
+ /**
114
+ * Get consent status
115
+ */
116
+ getConsentStatus(bankCode: string, consentId: string): Observable<ConsentStatus>;
117
+ /**
118
+ * Process consent callback
119
+ */
120
+ processConsentCallback(params: ConsentCallbackParams): Observable<ConsentCallbackResponse>;
121
+ /**
122
+ * Get accounts for a consent
123
+ */
124
+ getAccounts(consentId: string, bankCode: string): Observable<Account[]>;
125
+ /**
126
+ * Get maximum transaction period for a bank
127
+ * @param bankCode The bank code
128
+ * @returns Maximum number of days or -1 for unlimited
129
+ */
130
+ getMaxTransactionPeriod(bankCode: string): number;
131
+ /**
132
+ * Get transactions for an account
133
+ */
134
+ getTransactions(request: TransactionRequest): Observable<TransactionPage>;
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenBankingService, never>;
136
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenBankingService>;
137
+ }
@@ -0,0 +1,29 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { OriginFormSignalrService } from './origin-form-signalr.service';
4
+ import * as i0 from "@angular/core";
5
+ export interface OperationResult {
6
+ operationIdentifier: string;
7
+ success: boolean;
8
+ data?: any;
9
+ error?: any;
10
+ }
11
+ export declare class OriginFormSignalrHandlerService implements OnDestroy {
12
+ private originFormSignalrService;
13
+ private subscriptions;
14
+ private applicationDataService;
15
+ private currentAppDataUuid;
16
+ private _isLoading;
17
+ readonly isLoading$: Observable<boolean>;
18
+ private _operationCompleted;
19
+ readonly operationCompleted$: Observable<OperationResult>;
20
+ constructor(originFormSignalrService: OriginFormSignalrService);
21
+ private subscribeToCoreEvents;
22
+ private setKycOperationCompleted;
23
+ private poolingInterval;
24
+ private startBackupPooling;
25
+ initiateKycProcessing(appDataUuid: string): Promise<void>;
26
+ ngOnDestroy(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<OriginFormSignalrHandlerService, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<OriginFormSignalrHandlerService>;
29
+ }
@@ -0,0 +1,24 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class OriginFormSignalrService {
4
+ private connection;
5
+ private connectionPromise;
6
+ private hubUrl;
7
+ private eventSubjects;
8
+ kycProcessingComplete: Subject<any>;
9
+ private configService;
10
+ constructor();
11
+ private registerSpecificEvents;
12
+ initiateSignalrConnection(): Promise<void>;
13
+ private setSignalrClientMethods;
14
+ /**
15
+ * Allows dynamic registration of an event listener if the event name isn't known at design time
16
+ * or if a component wants to manage its own subject.
17
+ * @param eventName The name of the event from the server.
18
+ * @returns An RxJS Subject that will emit data when the event is received.
19
+ */
20
+ listenForEvent<T>(eventName: string): Subject<T>;
21
+ stopConnection(): Promise<void>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<OriginFormSignalrService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<OriginFormSignalrService>;
24
+ }
@@ -0,0 +1,22 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ConfigService } from '../others/config-service';
3
+ import { AuthHttpService } from './auth-http.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OtpService {
6
+ private http;
7
+ constructor(http: AuthHttpService);
8
+ configService: ConfigService;
9
+ generate(params: {
10
+ phoneNumber: string | null;
11
+ emailAddress: string | null;
12
+ appDataId: string;
13
+ stepId: string;
14
+ }): Observable<any>;
15
+ validate(data: {
16
+ otpCode: string;
17
+ appDataId: string;
18
+ stepId: string;
19
+ }): Observable<any>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<OtpService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<OtpService>;
22
+ }
@@ -0,0 +1,29 @@
1
+ import { ActivatedRoute } from '@angular/router';
2
+ import { AuthHttpService } from './auth-http.service';
3
+ import * as i0 from "@angular/core";
4
+ export interface TokenResponse {
5
+ token: string;
6
+ }
7
+ export declare class ProxyService {
8
+ private http;
9
+ private route;
10
+ orderID: string | undefined;
11
+ apiURL: string;
12
+ token: string;
13
+ env: string;
14
+ private tokenUrl;
15
+ debug: boolean;
16
+ langIso: string;
17
+ constructor(http: AuthHttpService, route: ActivatedRoute);
18
+ getValuesForLog(): {
19
+ apiURL: string;
20
+ orderID: string | undefined;
21
+ env: string;
22
+ tokenUrl: string;
23
+ token: string;
24
+ };
25
+ getToken(): Promise<unknown>;
26
+ getTokenAndSave(): Promise<string>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProxyService, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProxyService>;
29
+ }
@@ -0,0 +1,54 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScrollToErrorService {
4
+ /**
5
+ * Scroll to the first validation error in a form
6
+ */
7
+ scrollToFirstError(form: FormGroup): void;
8
+ /**
9
+ * Scroll to a specific field by name
10
+ */
11
+ scrollToField(fieldName: string): void;
12
+ /**
13
+ * Find first invalid control in form
14
+ */
15
+ private findFirstInvalidControl;
16
+ /**
17
+ * Find form field element by various selectors
18
+ */
19
+ private findFormFieldElement;
20
+ /**
21
+ * Fallback search through all elements
22
+ */
23
+ private fallbackElementSearch;
24
+ /**
25
+ * Check if element is visible
26
+ */
27
+ private isElementVisible;
28
+ /**
29
+ * Try to find a matching invalid field when direct search fails
30
+ */
31
+ private tryFindMatchingInvalidField;
32
+ /**
33
+ * Try to find formly field container and look for invalid elements within it
34
+ */
35
+ private tryFindFormlyFieldContainer;
36
+ /**
37
+ * Scroll to element with smooth animation
38
+ */
39
+ private scrollToElement;
40
+ /**
41
+ * Perform the actual scroll with multiple methods
42
+ */
43
+ private performScroll;
44
+ /**
45
+ * Focus on the target element
46
+ */
47
+ private focusElement;
48
+ /**
49
+ * Debug log all form elements for troubleshooting
50
+ */
51
+ debugLogFormElements(): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollToErrorService, never>;
53
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScrollToErrorService>;
54
+ }
@@ -0,0 +1,10 @@
1
+ import { Label } from "../models/label.model";
2
+ import * as i0 from "@angular/core";
3
+ export declare class TranslationService {
4
+ private dictionary;
5
+ constructor();
6
+ setLabels(labels: Label[]): void;
7
+ translate(key: string, args?: any): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
10
+ }
@@ -0,0 +1,77 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ConfirmationComponent implements OnInit {
5
+ private data;
6
+ dialog: MatDialogRef<ConfirmationComponent>;
7
+ commonKeys: {
8
+ form: {
9
+ email: string;
10
+ cancel: string;
11
+ };
12
+ actions: {
13
+ read: string;
14
+ create: string;
15
+ write: string;
16
+ view: string;
17
+ filter: string;
18
+ includeInactive: string;
19
+ save: string;
20
+ confirm: string;
21
+ cancel: string;
22
+ back: string;
23
+ next: string;
24
+ submit: string;
25
+ close: string;
26
+ add: string;
27
+ addValue: string;
28
+ edit: string;
29
+ delete: string;
30
+ check: string;
31
+ import: string;
32
+ export: string;
33
+ collapseAll: string;
34
+ logout: string;
35
+ upload: string;
36
+ };
37
+ pagination: {
38
+ noItems: string;
39
+ perPage: string;
40
+ of: string;
41
+ };
42
+ confirmation: {
43
+ title: string;
44
+ delete: string;
45
+ };
46
+ api: {
47
+ addMethod: string;
48
+ addField: string;
49
+ };
50
+ components: {
51
+ button: string;
52
+ };
53
+ others: {
54
+ translation: string;
55
+ type: string;
56
+ active: string;
57
+ newItem: string;
58
+ name: string;
59
+ code: string;
60
+ notifications: string;
61
+ seeAllNotifications: string;
62
+ viewProfile: string;
63
+ description: string;
64
+ };
65
+ };
66
+ item: any;
67
+ text: any;
68
+ constructor(data: {
69
+ item: any;
70
+ text: string;
71
+ }, dialog: MatDialogRef<ConfirmationComponent>);
72
+ ngOnInit(): void;
73
+ submit(): void;
74
+ cancel(): void;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponent, never>;
76
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationComponent, "app-confirmation", never, {}, {}, never, never, false, never>;
77
+ }
@@ -0,0 +1,51 @@
1
+ import { AfterViewInit, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { DictionaryValue, DictionaryDto, DictionaryValueDto } from '../models/dictionary.model';
3
+ import { DictionaryService } from '../services/dictionary.service';
4
+ import { ItemNode, ItemFlatNode } from '../models/treeview.model';
5
+ import { AppTreeviewComponent } from './treeview/treeview.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DictionariesTreeComponent implements OnInit, OnChanges, AfterViewInit {
8
+ private dictService;
9
+ treeViewControl: AppTreeviewComponent;
10
+ dictionaryId: string;
11
+ selectedValueIds: number[];
12
+ allowCheckItems: boolean;
13
+ allowFilter: boolean;
14
+ drawReferenceDictionariesAsSeparateNode: boolean;
15
+ drawChildDictionariesAsSeparateNode: boolean;
16
+ drawRootNode: boolean;
17
+ filterText: string;
18
+ allowSelectNonLeafNodes: boolean;
19
+ languageId: number;
20
+ valuesIdsToShow: number[];
21
+ hideParentArrow: boolean;
22
+ preloadedDictionary: DictionaryDto | null;
23
+ preloadedDictionaries: Map<string, DictionaryDto> | null;
24
+ usePreloadedData: boolean;
25
+ selectedDictionaryValuesChanged: EventEmitter<DictionaryValue[]>;
26
+ allDictionaries: DictionaryDto[];
27
+ mainDictionary: DictionaryDto;
28
+ isLoading: boolean;
29
+ constructor(dictService: DictionaryService);
30
+ ngOnInit(): void;
31
+ ngOnChanges(changes: SimpleChanges): void;
32
+ ngAfterViewInit(): void;
33
+ loadDictionary(): void;
34
+ /**
35
+ * NEW: Load dictionary from preloaded data instead of API calls
36
+ */
37
+ loadFromPreloadedData(): void;
38
+ /**
39
+ * NEW: Load needed dictionaries from preloaded data instead of API calls
40
+ */
41
+ loadAllNeededDictionariesFromPreloaded(dictionary: DictionaryDto): void;
42
+ rebuildTree(): void;
43
+ clearTree(): void;
44
+ buildDictionaryTree(dictionary: DictionaryDto): ItemNode;
45
+ buildTreeChildren(dictionary: DictionaryDto, node: ItemNode): void;
46
+ getCanSelect(node: ItemNode): boolean;
47
+ onTreeSelectionChanged(node: ItemFlatNode): void;
48
+ createCopy(objectToCopy: DictionaryValueDto[]): DictionaryValue[];
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<DictionariesTreeComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<DictionariesTreeComponent, "app-dictionaries-tree", never, { "dictionaryId": { "alias": "dictionaryId"; "required": false; }; "selectedValueIds": { "alias": "selectedValueIds"; "required": false; }; "allowCheckItems": { "alias": "allowCheckItems"; "required": false; }; "allowFilter": { "alias": "allowFilter"; "required": false; }; "drawReferenceDictionariesAsSeparateNode": { "alias": "drawReferenceDictionariesAsSeparateNode"; "required": false; }; "drawChildDictionariesAsSeparateNode": { "alias": "drawChildDictionariesAsSeparateNode"; "required": false; }; "drawRootNode": { "alias": "drawRootNode"; "required": false; }; "filterText": { "alias": "filterText"; "required": false; }; "allowSelectNonLeafNodes": { "alias": "allowSelectNonLeafNodes"; "required": false; }; "languageId": { "alias": "languageId"; "required": false; }; "valuesIdsToShow": { "alias": "valuesIdsToShow"; "required": false; }; "hideParentArrow": { "alias": "hideParentArrow"; "required": false; }; "preloadedDictionary": { "alias": "preloadedDictionary"; "required": false; }; "preloadedDictionaries": { "alias": "preloadedDictionaries"; "required": false; }; "usePreloadedData": { "alias": "usePreloadedData"; "required": false; }; }, { "selectedDictionaryValuesChanged": "selectedDictionaryValuesChanged"; }, never, never, false, never>;
51
+ }