@qbs-origin/origin-form 0.8.2 → 0.8.5

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.
@@ -653,6 +653,7 @@ export declare class LabelKeys {
653
653
  netopia: string;
654
654
  euPlatesc: string;
655
655
  openBanking: string;
656
+ validation: string;
656
657
  stepInfo: {
657
658
  systemPhoneTitle: string;
658
659
  systemEmailTitle: string;
@@ -36,6 +36,7 @@ export declare class FormlyEnrolCardComponent extends BaseFormlyStepComponent {
36
36
  netopia: string;
37
37
  euPlatesc: string;
38
38
  openBanking: string;
39
+ validation: string;
39
40
  stepInfo: {
40
41
  systemPhoneTitle: string;
41
42
  systemEmailTitle: string;
@@ -4,6 +4,7 @@ export declare class FormlyParagraphComponent extends BaseFormlyStepComponent {
4
4
  cssMargins: any;
5
5
  onInit(): void;
6
6
  get formattedLabel(): string;
7
+ private normalizeValue;
7
8
  private formatDateIfNeeded;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyParagraphComponent, never>;
9
10
  static ɵcmp: i0.ɵɵComponentDeclaration<FormlyParagraphComponent, "formly-paragraph", never, {}, {}, never, never, false, never>;
@@ -67,9 +67,9 @@ export declare class ScanIdDto {
67
67
  }[];
68
68
  }
69
69
  export declare class ApiValidateRequest {
70
- appId: number;
71
- apiId: string;
72
- data: string;
70
+ appDataId: string;
71
+ apiMethodId: string;
72
+ controlIdentifier: string;
73
73
  }
74
74
  export declare class ApiDocumentRequest {
75
75
  appDataId: string;
@@ -18,6 +18,12 @@ export declare class ParentChildConfig {
18
18
  inheritedFields: InheritedField[];
19
19
  notificationConfig: NotificationConfig;
20
20
  }
21
+ export declare class ContactMethodConfig {
22
+ emailFieldId: string | null;
23
+ phoneFieldId: string | null;
24
+ preferredMethod: 'email' | 'phone' | 'both';
25
+ continuationBaseUrl: string;
26
+ }
21
27
  export declare class FormModel {
22
28
  applicationId: number;
23
29
  applicationUuid: string;
@@ -36,6 +42,7 @@ export declare class FormModel {
36
42
  };
37
43
  applicationMappings: ApplicationMappings;
38
44
  parentChildConfig?: ParentChildConfig;
45
+ contactMethodConfig?: ContactMethodConfig;
39
46
  }
40
47
  export declare class AppDataControl {
41
48
  controlId: string;
@@ -69,6 +76,7 @@ export declare class AppDataFill {
69
76
  };
70
77
  flux: AppDataStep[];
71
78
  initFlowValues?: any;
79
+ inheritedFields?: Record<string, any>;
72
80
  constructor(appDataId?: string, configurationId?: string, currentStepId?: string, statusId?: string, language?: string, flux?: AppDataStep[], offerId?: string, isSubmitted?: boolean, parentAppDataUuid?: string);
73
81
  }
74
82
  export declare class AppData {
@@ -318,6 +326,8 @@ export declare class MethodField {
318
326
  fieldName: string;
319
327
  fieldType: StepControlType | FluxType | string;
320
328
  manulInputControlType?: ManualInputControlType | undefined;
329
+ fieldValue?: string | undefined;
330
+ expectedValue?: string | undefined;
321
331
  }
322
332
  export declare class GetMethodField {
323
333
  id: string;
@@ -373,7 +383,8 @@ export declare enum FluxType {
373
383
  ViewDocument = 14,
374
384
  NETOPIA = 15,
375
385
  EUPLATESC = 16,
376
- OpenBanking = 17
386
+ OpenBanking = 17,
387
+ Validation = 18
377
388
  }
378
389
  export declare enum SectionType {
379
390
  Presentation = 0,
@@ -424,7 +435,8 @@ export declare class StatusModel {
424
435
  isActive: boolean;
425
436
  actions: StatusAction[];
426
437
  childApplicationUuids: string[];
427
- constructor(id: string, denumire: string, ordine: number, final: boolean, isActive: boolean, actions: StatusAction[], childApplicationUuids?: string[]);
438
+ sendNotifications: boolean;
439
+ constructor(id: string, denumire: string, ordine: number, final: boolean, isActive: boolean, actions: StatusAction[], childApplicationUuids?: string[], sendNotifications?: boolean);
428
440
  }
429
441
  export declare class StatusAction {
430
442
  id?: string;
@@ -1,7 +1,6 @@
1
1
  import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { FormlyField, FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
4
- import { Observable } from 'rxjs';
5
4
  import { ApiValidateRequest } from './models/application.model';
6
5
  import { DictionaryDto } from './models/dictionary.model';
7
6
  import { FormModel, DictionaryControlData } from './models/forms.model';
@@ -221,13 +220,18 @@ export declare class CollectorFormComponent implements OnChanges, OnDestroy {
221
220
  ngOnDestroy(): void;
222
221
  constructButtons(buttonsConfig: any[]): any[];
223
222
  private styleObjectToStringExceptBackground;
224
- validateMethodApi(data: ApiValidateRequest): Observable<boolean>;
223
+ validateMethodApi(data: ApiValidateRequest): Promise<boolean>;
225
224
  /**
226
225
  * Public method to clear the saving after actions state
227
226
  * Called by stepper component after saveAppDataStep completes
228
227
  */
229
228
  clearSavingAfterActionsState(): void;
230
229
  loadingMessage: string | null;
230
+ /**
231
+ * Reads Validation step results from fillData, sets model values,
232
+ * and recalculates visible steps so dependents become visible.
233
+ */
234
+ applyValidationStepResults(fillData: any): void;
231
235
  static ɵfac: i0.ɵɵFactoryDeclaration<CollectorFormComponent, never>;
232
236
  static ɵcmp: i0.ɵɵComponentDeclaration<CollectorFormComponent, "app-origin-form", never, { "configComponent": { "alias": "configComponent"; "required": false; }; "configUuid": { "alias": "configUuid"; "required": false; }; "currentStepId": { "alias": "currentStepId"; "required": false; }; "appModel": { "alias": "appModel"; "required": false; }; "signBaseUrl": { "alias": "signBaseUrl"; "required": false; }; "currentLanguageIso": { "alias": "currentLanguageIso"; "required": false; }; "fillData": { "alias": "fillData"; "required": false; }; "initFlowValues": { "alias": "initFlowValues"; "required": false; }; "env": { "alias": "env"; "required": false; }; "showDisplayMode": { "alias": "showDisplayMode"; "required": false; }; "showLanguageSelector": { "alias": "showLanguageSelector"; "required": false; }; "isDemoMode": { "alias": "isDemoMode"; "required": false; }; "isDebug": { "alias": "isDebug"; "required": false; }; "appDataUuid": { "alias": "appDataUuid"; "required": false; }; "blockPreviousStep": { "alias": "blockPreviousStep"; "required": false; }; "dataUrlId": { "alias": "dataUrlId"; "required": false; }; "noButtonsInView": { "alias": "noButtonsInView"; "required": false; }; }, { "completionEvent": "completionEvent"; }, never, never, false, never>;
233
237
  }
@@ -62,6 +62,7 @@ export declare class FluxHelper {
62
62
  * Create Status step with default section
63
63
  */
64
64
  createStatusStep(supportedLanguages: Language[]): StepData;
65
+ createValidationStep(supportedLanguages: Language[]): StepData;
65
66
  /**
66
67
  * Create Upload Document step
67
68
  */
@@ -16,6 +16,7 @@ export declare class TranslationsHelper {
16
16
  static createPauseTranslations(langs: Language[]): TranslationInfo[];
17
17
  static createActionTranslations(langs: Language[]): TranslationInfo[];
18
18
  static createStatusTranslations(langs: Language[]): TranslationInfo[];
19
+ static createValidationTranslations(langs: Language[]): TranslationInfo[];
19
20
  static createKycTranslations(langs: Language[]): TranslationInfo[];
20
21
  static createPaymentsTranslations(langs: Language[]): TranslationInfo[];
21
22
  static createOpenBankingTranslations(langs: Language[]): TranslationInfo[];
@@ -17,7 +17,7 @@ export declare class ApplicationDataService {
17
17
  saveApp(appData: AppData): Observable<any>;
18
18
  saveStep(appDataId: string, currentStep: any, selectedOfferId?: any): Observable<any>;
19
19
  getPreviousStep(appDataId: string): Observable<any>;
20
- validateApi(apiValidateRequest: ApiValidateRequest): Observable<any>;
20
+ validateApi(apiValidateRequest: ApiValidateRequest): Promise<boolean>;
21
21
  doDocumentRequest(apiValidateRequest: ApiDocumentRequest): Observable<any[]>;
22
22
  convertDocumentToPdf(request: ConvertDocumentToPdfRequest): Observable<ConvertDocumentToPdfResponse>;
23
23
  makeActionApiCall(actionRequest: MakeActionRequest): Observable<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qbs-origin/origin-form",
3
- "version": "0.8.2",
3
+ "version": "0.8.5",
4
4
  "dependencies": {
5
5
  "@qbs-origin/sign-lib": "^2.1.22",
6
6
  "@ekyc_qoobiss/qbs-ect-cmp": "^5.3.2",