@opencrvs/toolkit 1.8.0-rc.f466807 → 1.8.0-rc.f7e8fb5

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.
@@ -40,29 +40,11 @@ export declare const resolveLabelsFromKnownFields: ({ pageFields, refFields }: {
40
40
  label?: TranslationConfig;
41
41
  }[];
42
42
  export declare function getAllFields(configuration: EventConfig): import("./FieldConfig").Inferred[];
43
- export declare function getAllPages(configuration: EventConfig): ({
44
- type: "FORM";
43
+ export declare function getAllPages(configuration: EventConfig): {
45
44
  id: string;
46
45
  title: TranslationConfig;
47
46
  fields: import("./FieldConfig").Inferred[];
48
- } | {
49
- type: "VERIFICATION";
50
- id: string;
51
- title: TranslationConfig;
52
- actions: {
53
- verify: {
54
- label: TranslationConfig;
55
- };
56
- cancel: {
57
- label: TranslationConfig;
58
- confirmation: {
59
- title: TranslationConfig;
60
- body: TranslationConfig;
61
- };
62
- };
63
- };
64
- fields: import("./FieldConfig").Inferred[];
65
- })[];
47
+ }[];
66
48
  export declare function validateWorkqueueConfig(workqueueConfigs: WorkqueueConfig[]): void;
67
49
  export declare const findActiveActionForm: (configuration: EventConfig, action: ActionType) => {
68
50
  active: boolean;
@@ -71,57 +53,21 @@ export declare const findActiveActionForm: (configuration: EventConfig, action:
71
53
  label: TranslationConfig;
72
54
  };
73
55
  label: TranslationConfig;
74
- pages: ({
75
- type: "FORM";
56
+ pages: {
76
57
  id: string;
77
58
  title: TranslationConfig;
78
59
  fields: import("./FieldConfig").Inferred[];
79
- } | {
80
- type: "VERIFICATION";
81
- id: string;
82
- title: TranslationConfig;
83
- actions: {
84
- verify: {
85
- label: TranslationConfig;
86
- };
87
- cancel: {
88
- label: TranslationConfig;
89
- confirmation: {
90
- title: TranslationConfig;
91
- body: TranslationConfig;
92
- };
93
- };
94
- };
95
- fields: import("./FieldConfig").Inferred[];
96
- })[];
60
+ }[];
97
61
  review: {
98
62
  title: TranslationConfig;
99
63
  fields: import("./FieldConfig").Inferred[];
100
64
  };
101
65
  } | undefined;
102
- export declare const findActiveActionFormPages: (configuration: EventConfig, action: ActionType) => ({
103
- type: "FORM";
66
+ export declare const findActiveActionFormPages: (configuration: EventConfig, action: ActionType) => {
104
67
  id: string;
105
68
  title: TranslationConfig;
106
69
  fields: import("./FieldConfig").Inferred[];
107
- } | {
108
- type: "VERIFICATION";
109
- id: string;
110
- title: TranslationConfig;
111
- actions: {
112
- verify: {
113
- label: TranslationConfig;
114
- };
115
- cancel: {
116
- label: TranslationConfig;
117
- confirmation: {
118
- title: TranslationConfig;
119
- body: TranslationConfig;
120
- };
121
- };
122
- };
123
- fields: import("./FieldConfig").Inferred[];
124
- })[] | undefined;
70
+ }[] | undefined;
125
71
  export declare const getFormFields: (formConfig: FormConfig) => import("./FieldConfig").Inferred[];
126
72
  /**
127
73
  * Returns only form fields for the action type, if any, excluding review fields.
@@ -131,29 +77,11 @@ export declare const findActiveActionFormFields: (configuration: EventConfig, ac
131
77
  * Returns all fields for the action type, including review fields, if any.
132
78
  */
133
79
  export declare const findActiveActionFields: (configuration: EventConfig, action: ActionType) => FieldConfig[] | undefined;
134
- export declare const getActiveActionFormPages: (configuration: EventConfig, action: ActionType) => ({
135
- type: "FORM";
136
- id: string;
137
- title: TranslationConfig;
138
- fields: import("./FieldConfig").Inferred[];
139
- } | {
140
- type: "VERIFICATION";
80
+ export declare const getActiveActionFormPages: (configuration: EventConfig, action: ActionType) => {
141
81
  id: string;
142
82
  title: TranslationConfig;
143
- actions: {
144
- verify: {
145
- label: TranslationConfig;
146
- };
147
- cancel: {
148
- label: TranslationConfig;
149
- confirmation: {
150
- title: TranslationConfig;
151
- body: TranslationConfig;
152
- };
153
- };
154
- };
155
83
  fields: import("./FieldConfig").Inferred[];
156
- })[];
84
+ }[];
157
85
  /**
158
86
  * Returns all fields for the action type, including review fields, or throws
159
87
  */
@@ -184,7 +112,7 @@ export declare function stripHiddenFields(fields: FieldConfig[], data: EventStat
184
112
  option: string;
185
113
  filename: string;
186
114
  originalFilename: string;
187
- }[] | undefined>;
115
+ }[]>;
188
116
  export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]): {
189
117
  id: string;
190
118
  createdAt: string;
@@ -217,7 +145,7 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
217
145
  option: string;
218
146
  filename: string;
219
147
  originalFilename: string;
220
- }[] | undefined>;
148
+ }[]>;
221
149
  createdAt: string;
222
150
  createdBy: string;
223
151
  createdAtLocation: string;
@@ -246,7 +174,7 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
246
174
  option: string;
247
175
  filename: string;
248
176
  originalFilename: string;
249
- }[] | undefined> | undefined;
177
+ }[]> | undefined;
250
178
  };
251
179
  }[];
252
180
  export declare function createEmptyDraft(eventId: string, draftId: string, actionType: ActionType): {
@@ -263,5 +191,4 @@ export declare function createEmptyDraft(eventId: string, draftId: string, actio
263
191
  createdAtLocation: string;
264
192
  };
265
193
  };
266
- export declare function findActiveActionVerificationPageIds(configuration: EventConfig, action: ActionType): string[];
267
194
  //# sourceMappingURL=utils.d.ts.map