@opencrvs/toolkit 1.9.3-rc.8e41e94 → 1.9.3-rc.8e8ac6e

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.
@@ -153,8 +153,6 @@ __export(events_exports, {
153
153
  NonEmptyTextValue: () => NonEmptyTextValue,
154
154
  NotifyActionInput: () => NotifyActionInput,
155
155
  NumberFieldValue: () => NumberFieldValue,
156
- NumberWithUnitFieldUpdateValue: () => NumberWithUnitFieldUpdateValue,
157
- NumberWithUnitFieldValue: () => NumberWithUnitFieldValue,
158
156
  PageConfig: () => PageConfig,
159
157
  PageTypes: () => PageTypes,
160
158
  PotentialDuplicate: () => PotentialDuplicate,
@@ -332,7 +330,6 @@ __export(events_exports, {
332
330
  isNameFieldType: () => isNameFieldType,
333
331
  isNonInteractiveFieldType: () => isNonInteractiveFieldType,
334
332
  isNumberFieldType: () => isNumberFieldType,
335
- isNumberWithUnitFieldType: () => isNumberWithUnitFieldType,
336
333
  isOfficeFieldType: () => isOfficeFieldType,
337
334
  isOnline: () => isOnline,
338
335
  isPageHeaderFieldType: () => isPageHeaderFieldType,
@@ -568,7 +565,6 @@ var FieldType = {
568
565
  ADDRESS: "ADDRESS",
569
566
  TEXT: "TEXT",
570
567
  NUMBER: "NUMBER",
571
- NUMBER_WITH_UNIT: "NUMBER_WITH_UNIT",
572
568
  TEXTAREA: "TEXTAREA",
573
569
  EMAIL: "EMAIL",
574
570
  DATE: "DATE",
@@ -736,14 +732,6 @@ var ReadDataValue = import_zod6.z.object({
736
732
  });
737
733
  var QrReaderFieldValue = ReadDataValue;
738
734
  var IdReaderFieldValue = ReadDataValue;
739
- var NumberWithUnitFieldValue = import_zod6.z.object({
740
- numericValue: import_zod6.z.number(),
741
- unit: import_zod6.z.string()
742
- });
743
- var NumberWithUnitFieldUpdateValue = import_zod6.z.object({
744
- numericValue: import_zod6.z.number().optional(),
745
- unit: import_zod6.z.string().optional()
746
- });
747
735
 
748
736
  // ../commons/src/events/FieldValue.ts
749
737
  var TextValue = import_zod7.z.string();
@@ -798,9 +786,7 @@ var FieldValuesWithoutDataField = import_zod7.z.union([
798
786
  VerificationStatusValue,
799
787
  QueryParamReaderFieldValue,
800
788
  QrReaderFieldValue,
801
- IdReaderFieldValue,
802
- NumberWithUnitFieldValue,
803
- NumberWithUnitFieldUpdateValue
789
+ IdReaderFieldValue
804
790
  ]);
805
791
  var DataFieldValue = import_zod7.z.object({
806
792
  data: import_zod7.z.record(import_zod7.z.string(), FieldValuesWithoutDataField)
@@ -820,7 +806,6 @@ var PRIORITY_ORDER = [
820
806
  "SelectDateRangeValue",
821
807
  "CheckboxFieldValue",
822
808
  "NumberFieldValue",
823
- "NumberWithUnitFieldUpdateValue",
824
809
  "FileFieldValue",
825
810
  "FileFieldWithOptionValue",
826
811
  "DataFieldValue"
@@ -854,7 +839,6 @@ var FieldUpdateValue = safeUnion([
854
839
  SelectDateRangeValue.describe("SelectDateRangeValue"),
855
840
  CheckboxFieldValue.describe("CheckboxFieldValue"),
856
841
  NumberFieldValue.describe("NumberFieldValue"),
857
- NumberWithUnitFieldUpdateValue.describe("NumberWithUnitFieldUpdateValue"),
858
842
  FileFieldValue.describe("FileFieldValue"),
859
843
  FileFieldWithOptionValue.describe("FileFieldWithOptionValue"),
860
844
  DataFieldValue.describe("DataFieldValue"),
@@ -2114,18 +2098,6 @@ var SelectOption = import_zod15.z.object({
2114
2098
  value: import_zod15.z.string().describe("The value of the option"),
2115
2099
  label: import_zod15.z.union([import_zod15.z.string(), TranslationConfig]).describe("The label of the option")
2116
2100
  });
2117
- var NumberWithUnitField = BaseField.extend({
2118
- type: import_zod15.z.literal(FieldType.NUMBER_WITH_UNIT),
2119
- defaultValue: NumberWithUnitFieldValue.optional(),
2120
- options: import_zod15.z.array(SelectOption).describe("A list of options for the unit select"),
2121
- configuration: import_zod15.z.object({
2122
- min: import_zod15.z.number().optional().describe("Minimum value of the number field"),
2123
- max: import_zod15.z.number().optional().describe("Maximum value of the number field"),
2124
- numberFieldPlaceholder: TranslationConfig.optional().describe(
2125
- "Placeholder for the number field"
2126
- )
2127
- }).optional()
2128
- }).describe("Number with unit input");
2129
2101
  var RadioGroup = BaseField.extend({
2130
2102
  type: import_zod15.z.literal(FieldType.RADIO_GROUP),
2131
2103
  defaultValue: TextValue.optional(),
@@ -2414,7 +2386,6 @@ var FieldConfig = import_zod15.z.discriminatedUnion("type", [
2414
2386
  Address,
2415
2387
  TextField,
2416
2388
  NumberField,
2417
- NumberWithUnitField,
2418
2389
  TextAreaField,
2419
2390
  AgeField,
2420
2391
  DateField,
@@ -2984,9 +2955,6 @@ function mapFieldTypeToZod(field3, actionType) {
2984
2955
  case FieldType.NUMBER:
2985
2956
  schema = NumberFieldValue;
2986
2957
  break;
2987
- case FieldType.NUMBER_WITH_UNIT:
2988
- schema = NumberWithUnitFieldUpdateValue;
2989
- break;
2990
2958
  case FieldType.CHECKBOX:
2991
2959
  schema = CheckboxFieldValue;
2992
2960
  break;
@@ -3044,7 +3012,6 @@ function mapFieldTypeToEmptyValue(field3) {
3044
3012
  case FieldType.FACILITY:
3045
3013
  case FieldType.OFFICE:
3046
3014
  case FieldType.NUMBER:
3047
- case FieldType.NUMBER_WITH_UNIT:
3048
3015
  case FieldType.EMAIL:
3049
3016
  case FieldType.DATE:
3050
3017
  case FieldType.AGE:
@@ -3112,9 +3079,6 @@ var isTextFieldType = (field3) => {
3112
3079
  var isNumberFieldType = (field3) => {
3113
3080
  return field3.config.type === FieldType.NUMBER;
3114
3081
  };
3115
- var isNumberWithUnitFieldType = (field3) => {
3116
- return field3.config.type === FieldType.NUMBER_WITH_UNIT;
3117
- };
3118
3082
  var isNameFieldType = (field3) => {
3119
3083
  return field3.config.type === FieldType.NAME;
3120
3084
  };
@@ -7898,220 +7862,6 @@ var v2BirthEvent = defineConfig({
7898
7862
  advancedSearch: []
7899
7863
  });
7900
7864
 
7901
- // ../commons/src/fixtures/digital-identity-issuance-event.ts
7902
- var PRINT_DIGITAL_ID_CERTIFICATE_FORM = defineActionForm({
7903
- label: {
7904
- id: "event.digital-identity.action.certificate.form.label",
7905
- defaultMessage: "Digital identity certificate printer",
7906
- description: "This is what this form is referred as in the system"
7907
- },
7908
- pages: [
7909
- {
7910
- id: "collector",
7911
- type: PageTypes.enum.FORM,
7912
- title: {
7913
- id: "event.tennis-club-membership.action.certificate.form.section.who.title",
7914
- defaultMessage: "Print certified copy",
7915
- description: "This is the title of the section"
7916
- },
7917
- fields: [
7918
- {
7919
- id: "identity.http-fetch",
7920
- type: FieldType.HTTP,
7921
- label: {
7922
- defaultMessage: "Digital identity certificate",
7923
- description: "Fetch printable digital identity certificate",
7924
- id: "event.digital-identity.certificate.fetch.label"
7925
- },
7926
- configuration: {
7927
- trigger: field("identity.http-button"),
7928
- url: "/api/digital-identity/certificate",
7929
- timeout: 5e3,
7930
- method: "POST",
7931
- headers: {
7932
- "Content-Type": "application/json"
7933
- },
7934
- body: {
7935
- subjectId: "$event.subject.id"
7936
- }
7937
- }
7938
- },
7939
- {
7940
- id: "identity.http-button",
7941
- type: FieldType.BUTTON,
7942
- label: {
7943
- defaultMessage: "Certificate",
7944
- description: "Certificate",
7945
- id: "event.digital-identity.certificate.button.label"
7946
- },
7947
- conditionals: [
7948
- {
7949
- type: ConditionalType.ENABLE,
7950
- conditional: and(
7951
- field("identity.http-fetch").isUndefined(),
7952
- user.isOnline()
7953
- )
7954
- },
7955
- {
7956
- type: ConditionalType.SHOW,
7957
- conditional: and(
7958
- field("identity.http-fetch").get("loading").isFalsy(),
7959
- field("identity.http-fetch").get("data").isFalsy()
7960
- )
7961
- }
7962
- ],
7963
- configuration: {
7964
- icon: "IdentificationCard",
7965
- text: {
7966
- defaultMessage: "Fetch certificate",
7967
- description: "Fetch certificate",
7968
- id: "event.digital-identity.certificate.fetch.text"
7969
- }
7970
- }
7971
- },
7972
- {
7973
- id: "identity.http-button",
7974
- type: FieldType.BUTTON,
7975
- label: {
7976
- defaultMessage: "Certificate",
7977
- description: "Certificate",
7978
- id: "event.digital-identity.certificate.button.label"
7979
- },
7980
- conditionals: [
7981
- {
7982
- type: ConditionalType.ENABLE,
7983
- conditional: never()
7984
- },
7985
- {
7986
- type: ConditionalType.SHOW,
7987
- conditional: field("identity.http-fetch").get("loading").isEqualTo(true)
7988
- }
7989
- ],
7990
- configuration: {
7991
- loading: true,
7992
- text: {
7993
- defaultMessage: "Fetching certificate\u2026",
7994
- description: "Fetching certificate\u2026",
7995
- id: "event.digital-identity.certificate.fetching.text"
7996
- }
7997
- }
7998
- },
7999
- {
8000
- id: "identity.http-button",
8001
- type: FieldType.BUTTON,
8002
- label: {
8003
- defaultMessage: "Certificate",
8004
- description: "Certificate",
8005
- id: "event.digital-identity.certificate.button.label"
8006
- },
8007
- conditionals: [
8008
- {
8009
- type: ConditionalType.ENABLE,
8010
- conditional: never()
8011
- },
8012
- {
8013
- type: ConditionalType.SHOW,
8014
- conditional: not(field("identity.certificateId").isFalsy())
8015
- }
8016
- ],
8017
- configuration: {
8018
- icon: "Check",
8019
- text: {
8020
- defaultMessage: "Certificate ready",
8021
- description: "Certificate ready",
8022
- id: "event.digital-identity.certificate.ready.text"
8023
- }
8024
- }
8025
- },
8026
- {
8027
- id: "identity.certificateId",
8028
- type: FieldType.TEXT,
8029
- parent: field("identity.http-fetch"),
8030
- label: {
8031
- defaultMessage: "Certificate ID",
8032
- description: "Issued digital identity certificate identifier",
8033
- id: "event.digital-identity.certificate.id.label"
8034
- },
8035
- conditionals: [
8036
- {
8037
- type: ConditionalType.ENABLE,
8038
- conditional: never()
8039
- }
8040
- ],
8041
- value: field("identity.http-fetch").get("data.certificateId")
8042
- }
8043
- ]
8044
- }
8045
- ]
8046
- });
8047
- var digitalIdentityForm = defineDeclarationForm({
8048
- label: {
8049
- id: "event.digital-identity.action.declare.form.label",
8050
- defaultMessage: "Digital identity issuance",
8051
- description: "This is what this form is referred as in the system"
8052
- },
8053
- pages: [
8054
- {
8055
- id: "subject",
8056
- title: {
8057
- id: "event.digital-identity.action.declare.form.section.who.title",
8058
- defaultMessage: "Who is the digital identity issued to?",
8059
- description: "This is the title of the section"
8060
- },
8061
- fields: [
8062
- {
8063
- id: "subject.firstname",
8064
- type: FieldType.TEXT,
8065
- required: true,
8066
- conditionals: [],
8067
- label: {
8068
- defaultMessage: "Subject's first name",
8069
- description: "This is the label for the field",
8070
- id: "event.digital-identity.action.declare.form.section.who.field.firstname.label"
8071
- }
8072
- },
8073
- {
8074
- id: "subject.surname",
8075
- type: FieldType.TEXT,
8076
- required: true,
8077
- conditionals: [],
8078
- label: {
8079
- defaultMessage: "Subject's surname",
8080
- description: "This is the label for the field",
8081
- id: "event.digital-identity.action.declare.form.section.who.field.surname.label"
8082
- }
8083
- }
8084
- ]
8085
- }
8086
- ]
8087
- });
8088
- var digitalIdentityEvent = defineConfig({
8089
- id: "digital-identity",
8090
- label: {
8091
- defaultMessage: "Digital identity issuance",
8092
- description: "This is what this event is referred as in the system",
8093
- id: "event.digital-identity.label"
8094
- },
8095
- title: {
8096
- defaultMessage: "{subject.firstname} {subject.surname}",
8097
- description: "This is the title of the summary",
8098
- id: "event.digital-identity.title"
8099
- },
8100
- summary: { fields: [] },
8101
- actions: [
8102
- {
8103
- type: ActionType.PRINT_CERTIFICATE,
8104
- label: {
8105
- id: "event.football-club-membership.action.collect-certificate.label",
8106
- defaultMessage: "Print certificate",
8107
- description: "This is shown as the action name anywhere the user can trigger the action from"
8108
- },
8109
- printForm: PRINT_DIGITAL_ID_CERTIFICATE_FORM
8110
- }
8111
- ],
8112
- declaration: digitalIdentityForm
8113
- });
8114
-
8115
7865
  // ../commons/src/events/test.utils.ts
8116
7866
  var import_zod35 = require("zod");
8117
7867
  var TEST_SYSTEM_IANA_TIMEZONE = "Asia/Dhaka";
@@ -8211,11 +7961,6 @@ function mapFieldTypeToMockValue(field3, i, rng) {
8211
7961
  return generateRandomName(rng);
8212
7962
  case FieldType.NUMBER:
8213
7963
  return 19;
8214
- case FieldType.NUMBER_WITH_UNIT:
8215
- return {
8216
- numericValue: 42,
8217
- unit: "Hours"
8218
- };
8219
7964
  case FieldType.BUTTON:
8220
7965
  return 1;
8221
7966
  case FieldType.EMAIL:
@@ -230,7 +230,6 @@ var FieldType = {
230
230
  ADDRESS: "ADDRESS",
231
231
  TEXT: "TEXT",
232
232
  NUMBER: "NUMBER",
233
- NUMBER_WITH_UNIT: "NUMBER_WITH_UNIT",
234
233
  TEXTAREA: "TEXTAREA",
235
234
  EMAIL: "EMAIL",
236
235
  DATE: "DATE",
@@ -394,14 +393,6 @@ var ReadDataValue = import_zod6.z.object({
394
393
  });
395
394
  var QrReaderFieldValue = ReadDataValue;
396
395
  var IdReaderFieldValue = ReadDataValue;
397
- var NumberWithUnitFieldValue = import_zod6.z.object({
398
- numericValue: import_zod6.z.number(),
399
- unit: import_zod6.z.string()
400
- });
401
- var NumberWithUnitFieldUpdateValue = import_zod6.z.object({
402
- numericValue: import_zod6.z.number().optional(),
403
- unit: import_zod6.z.string().optional()
404
- });
405
396
 
406
397
  // ../commons/src/events/FieldValue.ts
407
398
  var TextValue = import_zod7.z.string();
@@ -456,9 +447,7 @@ var FieldValuesWithoutDataField = import_zod7.z.union([
456
447
  VerificationStatusValue,
457
448
  QueryParamReaderFieldValue,
458
449
  QrReaderFieldValue,
459
- IdReaderFieldValue,
460
- NumberWithUnitFieldValue,
461
- NumberWithUnitFieldUpdateValue
450
+ IdReaderFieldValue
462
451
  ]);
463
452
  var DataFieldValue = import_zod7.z.object({
464
453
  data: import_zod7.z.record(import_zod7.z.string(), FieldValuesWithoutDataField)
@@ -478,7 +467,6 @@ var PRIORITY_ORDER = [
478
467
  "SelectDateRangeValue",
479
468
  "CheckboxFieldValue",
480
469
  "NumberFieldValue",
481
- "NumberWithUnitFieldUpdateValue",
482
470
  "FileFieldValue",
483
471
  "FileFieldWithOptionValue",
484
472
  "DataFieldValue"
@@ -512,7 +500,6 @@ var FieldUpdateValue = safeUnion([
512
500
  SelectDateRangeValue.describe("SelectDateRangeValue"),
513
501
  CheckboxFieldValue.describe("CheckboxFieldValue"),
514
502
  NumberFieldValue.describe("NumberFieldValue"),
515
- NumberWithUnitFieldUpdateValue.describe("NumberWithUnitFieldUpdateValue"),
516
503
  FileFieldValue.describe("FileFieldValue"),
517
504
  FileFieldWithOptionValue.describe("FileFieldWithOptionValue"),
518
505
  DataFieldValue.describe("DataFieldValue"),
@@ -1637,18 +1624,6 @@ var SelectOption = import_zod15.z.object({
1637
1624
  value: import_zod15.z.string().describe("The value of the option"),
1638
1625
  label: import_zod15.z.union([import_zod15.z.string(), TranslationConfig]).describe("The label of the option")
1639
1626
  });
1640
- var NumberWithUnitField = BaseField.extend({
1641
- type: import_zod15.z.literal(FieldType.NUMBER_WITH_UNIT),
1642
- defaultValue: NumberWithUnitFieldValue.optional(),
1643
- options: import_zod15.z.array(SelectOption).describe("A list of options for the unit select"),
1644
- configuration: import_zod15.z.object({
1645
- min: import_zod15.z.number().optional().describe("Minimum value of the number field"),
1646
- max: import_zod15.z.number().optional().describe("Maximum value of the number field"),
1647
- numberFieldPlaceholder: TranslationConfig.optional().describe(
1648
- "Placeholder for the number field"
1649
- )
1650
- }).optional()
1651
- }).describe("Number with unit input");
1652
1627
  var RadioGroup = BaseField.extend({
1653
1628
  type: import_zod15.z.literal(FieldType.RADIO_GROUP),
1654
1629
  defaultValue: TextValue.optional(),
@@ -1937,7 +1912,6 @@ var FieldConfig = import_zod15.z.discriminatedUnion("type", [
1937
1912
  Address,
1938
1913
  TextField,
1939
1914
  NumberField,
1940
- NumberWithUnitField,
1941
1915
  TextAreaField,
1942
1916
  AgeField,
1943
1917
  DateField,
@@ -6152,220 +6126,6 @@ var v2BirthEvent = defineConfig({
6152
6126
  advancedSearch: []
6153
6127
  });
6154
6128
 
6155
- // ../commons/src/fixtures/digital-identity-issuance-event.ts
6156
- var PRINT_DIGITAL_ID_CERTIFICATE_FORM = defineActionForm({
6157
- label: {
6158
- id: "event.digital-identity.action.certificate.form.label",
6159
- defaultMessage: "Digital identity certificate printer",
6160
- description: "This is what this form is referred as in the system"
6161
- },
6162
- pages: [
6163
- {
6164
- id: "collector",
6165
- type: PageTypes.enum.FORM,
6166
- title: {
6167
- id: "event.tennis-club-membership.action.certificate.form.section.who.title",
6168
- defaultMessage: "Print certified copy",
6169
- description: "This is the title of the section"
6170
- },
6171
- fields: [
6172
- {
6173
- id: "identity.http-fetch",
6174
- type: FieldType.HTTP,
6175
- label: {
6176
- defaultMessage: "Digital identity certificate",
6177
- description: "Fetch printable digital identity certificate",
6178
- id: "event.digital-identity.certificate.fetch.label"
6179
- },
6180
- configuration: {
6181
- trigger: field("identity.http-button"),
6182
- url: "/api/digital-identity/certificate",
6183
- timeout: 5e3,
6184
- method: "POST",
6185
- headers: {
6186
- "Content-Type": "application/json"
6187
- },
6188
- body: {
6189
- subjectId: "$event.subject.id"
6190
- }
6191
- }
6192
- },
6193
- {
6194
- id: "identity.http-button",
6195
- type: FieldType.BUTTON,
6196
- label: {
6197
- defaultMessage: "Certificate",
6198
- description: "Certificate",
6199
- id: "event.digital-identity.certificate.button.label"
6200
- },
6201
- conditionals: [
6202
- {
6203
- type: ConditionalType.ENABLE,
6204
- conditional: and(
6205
- field("identity.http-fetch").isUndefined(),
6206
- user.isOnline()
6207
- )
6208
- },
6209
- {
6210
- type: ConditionalType.SHOW,
6211
- conditional: and(
6212
- field("identity.http-fetch").get("loading").isFalsy(),
6213
- field("identity.http-fetch").get("data").isFalsy()
6214
- )
6215
- }
6216
- ],
6217
- configuration: {
6218
- icon: "IdentificationCard",
6219
- text: {
6220
- defaultMessage: "Fetch certificate",
6221
- description: "Fetch certificate",
6222
- id: "event.digital-identity.certificate.fetch.text"
6223
- }
6224
- }
6225
- },
6226
- {
6227
- id: "identity.http-button",
6228
- type: FieldType.BUTTON,
6229
- label: {
6230
- defaultMessage: "Certificate",
6231
- description: "Certificate",
6232
- id: "event.digital-identity.certificate.button.label"
6233
- },
6234
- conditionals: [
6235
- {
6236
- type: ConditionalType.ENABLE,
6237
- conditional: never()
6238
- },
6239
- {
6240
- type: ConditionalType.SHOW,
6241
- conditional: field("identity.http-fetch").get("loading").isEqualTo(true)
6242
- }
6243
- ],
6244
- configuration: {
6245
- loading: true,
6246
- text: {
6247
- defaultMessage: "Fetching certificate\u2026",
6248
- description: "Fetching certificate\u2026",
6249
- id: "event.digital-identity.certificate.fetching.text"
6250
- }
6251
- }
6252
- },
6253
- {
6254
- id: "identity.http-button",
6255
- type: FieldType.BUTTON,
6256
- label: {
6257
- defaultMessage: "Certificate",
6258
- description: "Certificate",
6259
- id: "event.digital-identity.certificate.button.label"
6260
- },
6261
- conditionals: [
6262
- {
6263
- type: ConditionalType.ENABLE,
6264
- conditional: never()
6265
- },
6266
- {
6267
- type: ConditionalType.SHOW,
6268
- conditional: not(field("identity.certificateId").isFalsy())
6269
- }
6270
- ],
6271
- configuration: {
6272
- icon: "Check",
6273
- text: {
6274
- defaultMessage: "Certificate ready",
6275
- description: "Certificate ready",
6276
- id: "event.digital-identity.certificate.ready.text"
6277
- }
6278
- }
6279
- },
6280
- {
6281
- id: "identity.certificateId",
6282
- type: FieldType.TEXT,
6283
- parent: field("identity.http-fetch"),
6284
- label: {
6285
- defaultMessage: "Certificate ID",
6286
- description: "Issued digital identity certificate identifier",
6287
- id: "event.digital-identity.certificate.id.label"
6288
- },
6289
- conditionals: [
6290
- {
6291
- type: ConditionalType.ENABLE,
6292
- conditional: never()
6293
- }
6294
- ],
6295
- value: field("identity.http-fetch").get("data.certificateId")
6296
- }
6297
- ]
6298
- }
6299
- ]
6300
- });
6301
- var digitalIdentityForm = defineDeclarationForm({
6302
- label: {
6303
- id: "event.digital-identity.action.declare.form.label",
6304
- defaultMessage: "Digital identity issuance",
6305
- description: "This is what this form is referred as in the system"
6306
- },
6307
- pages: [
6308
- {
6309
- id: "subject",
6310
- title: {
6311
- id: "event.digital-identity.action.declare.form.section.who.title",
6312
- defaultMessage: "Who is the digital identity issued to?",
6313
- description: "This is the title of the section"
6314
- },
6315
- fields: [
6316
- {
6317
- id: "subject.firstname",
6318
- type: FieldType.TEXT,
6319
- required: true,
6320
- conditionals: [],
6321
- label: {
6322
- defaultMessage: "Subject's first name",
6323
- description: "This is the label for the field",
6324
- id: "event.digital-identity.action.declare.form.section.who.field.firstname.label"
6325
- }
6326
- },
6327
- {
6328
- id: "subject.surname",
6329
- type: FieldType.TEXT,
6330
- required: true,
6331
- conditionals: [],
6332
- label: {
6333
- defaultMessage: "Subject's surname",
6334
- description: "This is the label for the field",
6335
- id: "event.digital-identity.action.declare.form.section.who.field.surname.label"
6336
- }
6337
- }
6338
- ]
6339
- }
6340
- ]
6341
- });
6342
- var digitalIdentityEvent = defineConfig({
6343
- id: "digital-identity",
6344
- label: {
6345
- defaultMessage: "Digital identity issuance",
6346
- description: "This is what this event is referred as in the system",
6347
- id: "event.digital-identity.label"
6348
- },
6349
- title: {
6350
- defaultMessage: "{subject.firstname} {subject.surname}",
6351
- description: "This is the title of the summary",
6352
- id: "event.digital-identity.title"
6353
- },
6354
- summary: { fields: [] },
6355
- actions: [
6356
- {
6357
- type: ActionType.PRINT_CERTIFICATE,
6358
- label: {
6359
- id: "event.football-club-membership.action.collect-certificate.label",
6360
- defaultMessage: "Print certificate",
6361
- description: "This is shown as the action name anywhere the user can trigger the action from"
6362
- },
6363
- printForm: PRINT_DIGITAL_ID_CERTIFICATE_FORM
6364
- }
6365
- ],
6366
- declaration: digitalIdentityForm
6367
- });
6368
-
6369
6129
  // ../commons/src/events/test.utils.ts
6370
6130
  var import_zod35 = require("zod");
6371
6131
  var TestUserRole = import_zod35.z.enum([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.3-rc.8e41e94",
3
+ "version": "1.9.3-rc.8e8ac6e",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {