@opencrvs/toolkit 2.1.0 → 2.2.0-rc.ab91cce

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 (36) hide show
  1. package/build.sh +2 -2
  2. package/create-countryconfig/package.json +1 -1
  3. package/dist/cli.js +294 -1967
  4. package/dist/commons/events/ActionConfig.d.ts +79 -0
  5. package/dist/commons/events/EventConfig.d.ts +26 -6
  6. package/dist/commons/events/eventConfigValidation.d.ts +17 -1
  7. package/dist/commons/events/test.utils.d.ts +5 -0
  8. package/dist/commons/events/utils.d.ts +14 -14
  9. package/dist/environment/derived-variables.d.ts +18 -0
  10. package/dist/environment/derived-variables.d.ts.map +1 -1
  11. package/dist/environment/derived-variables.js +22 -1
  12. package/dist/environment/setup-environment.d.ts.map +1 -1
  13. package/dist/environment/setup-environment.js +29 -10
  14. package/dist/events/index.js +171 -60
  15. package/dist/migrations/add-translations.d.ts +15 -0
  16. package/dist/migrations/add-translations.d.ts.map +1 -0
  17. package/dist/migrations/{v2.1/add-translations.js → add-translations.js} +16 -14
  18. package/dist/migrations/v2.1/index.js +35 -2155
  19. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +3 -0
  20. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -1
  21. package/dist/migrations/v2.1/upgrade-tilt.d.ts +3 -0
  22. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -1
  23. package/dist/migrations/v2.2/index.d.ts +6 -0
  24. package/dist/migrations/v2.2/index.d.ts.map +1 -0
  25. package/dist/migrations/v2.2/index.js +456 -0
  26. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts +39 -0
  27. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +1 -0
  28. package/dist/migrations/v2.2/read-declaration-through-helper.js +257 -0
  29. package/dist/notification/index.js +191 -83
  30. package/dist/templates/charts-values/traefik/values.yaml +2 -3
  31. package/opencrvs-toolkit-2.2.0-rc.ab91cce.tgz +0 -0
  32. package/package.json +1 -1
  33. package/tsconfig.build.tsbuildinfo +1 -1
  34. package/dist/migrations/v2.1/add-translations.d.ts +0 -9
  35. package/dist/migrations/v2.1/add-translations.d.ts.map +0 -1
  36. package/opencrvs-toolkit-2.1.0.tgz +0 -0
@@ -38,7 +38,7 @@ __export(notification_exports, {
38
38
  triggerUserEventNotification: () => triggerUserEventNotification
39
39
  });
40
40
  module.exports = __toCommonJS(notification_exports);
41
- var z47 = __toESM(require("zod/v4"));
41
+ var z48 = __toESM(require("zod/v4"));
42
42
 
43
43
  // ../commons/src/events/AuditLog.ts
44
44
  var z9 = __toESM(require("zod/v4"));
@@ -2925,6 +2925,9 @@ var DeleteConfig = ActionConfigBase.extend(
2925
2925
  var DeclareConfig = DeclarationActionBase.extend(
2926
2926
  z25.object({
2927
2927
  type: z25.literal(ActionType.DECLARE),
2928
+ declaration: DeclarationFormConfig.describe(
2929
+ "Configuration of the form used to gather event data."
2930
+ ),
2928
2931
  review: DeclarationReviewConfig.describe(
2929
2932
  "Configuration of the review page fields."
2930
2933
  ),
@@ -4322,8 +4325,22 @@ function isOnline() {
4322
4325
 
4323
4326
  // ../commons/src/events/utils.ts
4324
4327
  var import_date_fns3 = require("date-fns");
4328
+ function getDeclaration(configuration) {
4329
+ const declareAction = configuration.actions.find(
4330
+ (action) => action.type === ActionType.DECLARE
4331
+ );
4332
+ if (!declareAction) {
4333
+ throw new Error(
4334
+ `Event '${configuration.id}' has no ${ActionType.DECLARE} action to read the declaration from`
4335
+ );
4336
+ }
4337
+ return declareAction.declaration;
4338
+ }
4339
+ function getDeclarationPages(configuration) {
4340
+ return getDeclaration(configuration).pages;
4341
+ }
4325
4342
  function getDeclarationFields(configuration) {
4326
- return configuration.declaration.pages.flatMap(({ fields }) => fields);
4343
+ return getDeclarationPages(configuration).flatMap(({ fields }) => fields);
4327
4344
  }
4328
4345
  var getActionAnnotationFields = (actionConfig) => {
4329
4346
  if (actionConfig.type === ActionType.REQUEST_CORRECTION) {
@@ -4469,6 +4486,43 @@ function validateActionOrder(event2, ctx) {
4469
4486
  }
4470
4487
  }
4471
4488
  }
4489
+ function validateExactlyOneDeclareAction(event2, ctx) {
4490
+ const declareActionCount = event2.actions.filter(
4491
+ (action) => action.type === ActionType.DECLARE
4492
+ ).length;
4493
+ if (declareActionCount !== 1) {
4494
+ ctx.addIssue({
4495
+ code: "custom",
4496
+ message: `Event must have exactly one ${ActionType.DECLARE} action. Found ${declareActionCount} for event ${event2.id}`,
4497
+ path: ["actions"]
4498
+ });
4499
+ return false;
4500
+ }
4501
+ return true;
4502
+ }
4503
+ function validateDeclarationGivenExactlyOnce(config, ctx) {
4504
+ const declareActionIndex = config.actions.findIndex(
4505
+ (action) => action.type === ActionType.DECLARE
4506
+ );
4507
+ const declareAction = config.actions[declareActionIndex];
4508
+ const onDeclareAction = declareAction.type === ActionType.DECLARE && !!declareAction.declaration;
4509
+ const onTopLevel = !!config.declaration;
4510
+ const declareActionPath = `actions[${declareActionIndex}].declaration`;
4511
+ if (onTopLevel && onDeclareAction) {
4512
+ ctx.addIssue({
4513
+ code: "custom",
4514
+ message: `Event '${config.id}' defines \`declaration\` both at the top level and on the ${ActionType.DECLARE} action (\`${declareActionPath}\`). Define it in only one of these places.`,
4515
+ path: ["declaration"]
4516
+ });
4517
+ }
4518
+ if (!onTopLevel && !onDeclareAction) {
4519
+ ctx.addIssue({
4520
+ code: "custom",
4521
+ message: `Event '${config.id}' does not define \`declaration\`. Define it either at the top level or on the ${ActionType.DECLARE} action (\`${declareActionPath}\`).`,
4522
+ path: ["declaration"]
4523
+ });
4524
+ }
4525
+ }
4472
4526
 
4473
4527
  // ../commons/src/events/EventConfig.ts
4474
4528
  var EventFieldReference = z35.object({ $$event: EventMetadataDateFieldIdInput }).describe(
@@ -4493,16 +4547,15 @@ var _EventConfigBase = z35.object({
4493
4547
  summary: SummaryConfig.describe(
4494
4548
  "Summary information displayed in the event overview."
4495
4549
  ),
4496
- label: TranslationConfig.describe("Human-readable label for the event type."),
4550
+ label: TranslationConfig.describe(
4551
+ "Human-readable label for the event type."
4552
+ ),
4497
4553
  actions: z35.array(ActionConfig).describe(
4498
4554
  "Configuration of core and custom actions associated with the event."
4499
4555
  ),
4500
4556
  actionOrder: z35.array(z35.string()).optional().describe(
4501
4557
  "Order of actions in the action menu. Use either the action type for core actions or the customActionType for custom actions."
4502
4558
  ),
4503
- declaration: DeclarationFormConfig.describe(
4504
- "Configuration of the form used to gather event data."
4505
- ),
4506
4559
  advancedSearch: z35.array(AdvancedSearchConfig).optional().default([]).describe(
4507
4560
  "Configuration of fields available in the advanced search feature."
4508
4561
  ),
@@ -4517,6 +4570,9 @@ var _EventConfigBase = z35.object({
4517
4570
  )
4518
4571
  });
4519
4572
  var EventConfig = _EventConfigBase.superRefine((event2, ctx) => {
4573
+ if (!validateExactlyOneDeclareAction(event2, ctx)) {
4574
+ return;
4575
+ }
4520
4576
  validateAdvancedSearchConfig(event2, ctx);
4521
4577
  validateDateOfEvent(event2, ctx);
4522
4578
  validatePlaceOfEvent(event2, ctx);
@@ -5136,10 +5192,29 @@ var EventDocumentOnlyLastAction = EventDocument.extend({
5136
5192
  }).brand("EventDocumentOnlyLastAction");
5137
5193
 
5138
5194
  // ../commons/src/events/defineConfig.ts
5139
- var defineConfig = (config) => {
5140
- const input = EventConfig.parse(config);
5141
- return input;
5142
- };
5195
+ var z43 = __toESM(require("zod/v4"));
5196
+ function moveDeclarationToDeclareAction({
5197
+ declaration,
5198
+ ...config
5199
+ }) {
5200
+ if (declaration) {
5201
+ console.warn(
5202
+ `Event '${config.id}' defines \`declaration\` at the top level, which is deprecated and will be removed in a future release. Define it on the ${ActionType.DECLARE} action instead.`
5203
+ );
5204
+ }
5205
+ return {
5206
+ ...config,
5207
+ actions: config.actions.map(
5208
+ (action) => action.type === ActionType.DECLARE && declaration ? { ...action, declaration } : action
5209
+ )
5210
+ };
5211
+ }
5212
+ var EventConfigDefinition = z43.custom().superRefine((config, ctx) => {
5213
+ if (validateExactlyOneDeclareAction(config, ctx)) {
5214
+ validateDeclarationGivenExactlyOnce(config, ctx);
5215
+ }
5216
+ }).transform(moveDeclarationToDeclareAction).pipe(EventConfig);
5217
+ var defineConfig = (config) => EventConfigDefinition.parse(config);
5143
5218
 
5144
5219
  // ../commons/src/events/test.utils.ts
5145
5220
  var import_lodash5 = require("lodash");
@@ -7125,7 +7200,24 @@ var libraryMembershipEvent = defineConfig({
7125
7200
  id: "event.library-membership.title"
7126
7201
  },
7127
7202
  summary: { fields: [] },
7128
- actions: [],
7203
+ actions: [
7204
+ {
7205
+ type: ActionType.DECLARE,
7206
+ label: {
7207
+ defaultMessage: "Declare",
7208
+ description: "This is shown as the action name anywhere the user can trigger the action from",
7209
+ id: "event.library-membership.action.declare.label"
7210
+ },
7211
+ review: {
7212
+ title: {
7213
+ defaultMessage: "Library membership application",
7214
+ description: "Title of the review page",
7215
+ id: "event.library-membership.action.declare.form.review.title"
7216
+ },
7217
+ fields: []
7218
+ }
7219
+ }
7220
+ ],
7129
7221
  declaration: libraryMembershipForm
7130
7222
  });
7131
7223
 
@@ -7571,6 +7663,22 @@ var digitalIdentityEvent = defineConfig({
7571
7663
  },
7572
7664
  summary: { fields: [] },
7573
7665
  actions: [
7666
+ {
7667
+ type: ActionType.DECLARE,
7668
+ label: {
7669
+ defaultMessage: "Declare",
7670
+ description: "This is shown as the action name anywhere the user can trigger the action from",
7671
+ id: "event.digital-identity.action.declare.label"
7672
+ },
7673
+ review: {
7674
+ title: {
7675
+ defaultMessage: "Digital identity issuance",
7676
+ description: "Title of the review page",
7677
+ id: "event.digital-identity.action.declare.form.review.title"
7678
+ },
7679
+ fields: []
7680
+ }
7681
+ },
7574
7682
  {
7575
7683
  type: ActionType.PRINT_CERTIFICATE,
7576
7684
  label: {
@@ -7585,39 +7693,39 @@ var digitalIdentityEvent = defineConfig({
7585
7693
  });
7586
7694
 
7587
7695
  // ../commons/src/events/test.utils.ts
7588
- var z44 = __toESM(require("zod/v4"));
7696
+ var z45 = __toESM(require("zod/v4"));
7589
7697
 
7590
7698
  // ../commons/src/events/locations.ts
7591
- var z43 = __toESM(require("zod/v4"));
7592
- var LocationTypeV1 = z43.enum([
7699
+ var z44 = __toESM(require("zod/v4"));
7700
+ var LocationTypeV1 = z44.enum([
7593
7701
  "ADMIN_STRUCTURE",
7594
7702
  "CRVS_OFFICE",
7595
7703
  "HEALTH_FACILITY"
7596
7704
  ]);
7597
- var LocationStatus = z43.enum(["active", "inactive"]);
7598
- var LocationVersion = z43.object({
7705
+ var LocationStatus = z44.enum(["active", "inactive"]);
7706
+ var LocationVersion = z44.object({
7599
7707
  versionId: UUID,
7600
- effectiveFrom: z43.iso.date(),
7601
- name: z43.string(),
7602
- externalId: z43.string().nullish(),
7708
+ effectiveFrom: z44.iso.date(),
7709
+ name: z44.string(),
7710
+ externalId: z44.string().nullish(),
7603
7711
  status: LocationStatus
7604
7712
  });
7605
- var AdministrativeArea = z43.object({
7713
+ var AdministrativeArea = z44.object({
7606
7714
  id: UUID,
7607
- name: z43.string(),
7608
- externalId: z43.string().nullish(),
7715
+ name: z44.string(),
7716
+ externalId: z44.string().nullish(),
7609
7717
  parentId: UUID.nullable(),
7610
7718
  status: LocationStatus,
7611
- versions: z43.array(LocationVersion)
7719
+ versions: z44.array(LocationVersion)
7612
7720
  });
7613
- var Location = z43.object({
7721
+ var Location = z44.object({
7614
7722
  id: UUID,
7615
- name: z43.string(),
7616
- externalId: z43.string().nullish(),
7723
+ name: z44.string(),
7724
+ externalId: z44.string().nullish(),
7617
7725
  administrativeAreaId: UUID.nullable(),
7618
- locationType: z43.string().nullable(),
7726
+ locationType: z44.string().nullable(),
7619
7727
  status: LocationStatus,
7620
- versions: z43.array(LocationVersion)
7728
+ versions: z44.array(LocationVersion)
7621
7729
  });
7622
7730
  var ClientAdministrativeArea = AdministrativeArea.omit({
7623
7731
  name: true,
@@ -7658,22 +7766,22 @@ function validateUniqueIds(versions, ctx) {
7658
7766
  ctx.addIssue("versions must not repeat a versionId");
7659
7767
  }
7660
7768
  }
7661
- var SeededLocationVersions = z43.array(LocationVersion).min(1).superRefine((versions, ctx) => {
7769
+ var SeededLocationVersions = z44.array(LocationVersion).min(1).superRefine((versions, ctx) => {
7662
7770
  validateAscendingDates(versions, ctx);
7663
7771
  validateUniqueIds(versions, ctx);
7664
7772
  });
7665
- var SetLocationPayload = z43.object({
7773
+ var SetLocationPayload = z44.object({
7666
7774
  id: UUID,
7667
- name: z43.string(),
7668
- externalId: z43.string().nullish(),
7775
+ name: z44.string(),
7776
+ externalId: z44.string().nullish(),
7669
7777
  administrativeAreaId: UUID.nullable(),
7670
- locationType: z43.string().nullable(),
7778
+ locationType: z44.string().nullable(),
7671
7779
  versions: SeededLocationVersions.optional()
7672
7780
  });
7673
- var SetAdministrativeAreaPayload = z43.object({
7781
+ var SetAdministrativeAreaPayload = z44.object({
7674
7782
  id: UUID,
7675
- name: z43.string(),
7676
- externalId: z43.string().nullish(),
7783
+ name: z44.string(),
7784
+ externalId: z44.string().nullish(),
7677
7785
  parentId: UUID.nullable(),
7678
7786
  versions: SeededLocationVersions.optional()
7679
7787
  });
@@ -8021,7 +8129,7 @@ var V2_DEFAULT_MOCK_CLIENT_ADMINISTRATIVE_AREAS_MAP = new Map(
8021
8129
  );
8022
8130
 
8023
8131
  // ../commons/src/events/test.utils.ts
8024
- var TestUserRole = z44.enum([
8132
+ var TestUserRole = z45.enum([
8025
8133
  "FIELD_AGENT",
8026
8134
  "LOCAL_REGISTRAR",
8027
8135
  "LOCAL_SYSTEM_ADMIN",
@@ -8133,55 +8241,55 @@ var REJECTED_ACTIONS = [
8133
8241
  var import_lodash7 = require("lodash");
8134
8242
 
8135
8243
  // ../commons/src/events/locationPayloads.ts
8136
- var z45 = __toESM(require("zod/v4"));
8137
- var CreateLocationPayload = z45.object({
8244
+ var z46 = __toESM(require("zod/v4"));
8245
+ var CreateLocationPayload = z46.object({
8138
8246
  id: UUID.optional(),
8139
8247
  versionId: UUID.optional(),
8140
- name: z45.string(),
8141
- externalId: z45.string().nullish(),
8248
+ name: z46.string(),
8249
+ externalId: z46.string().nullish(),
8142
8250
  administrativeAreaId: UUID.nullable(),
8143
- locationType: z45.string().nullable(),
8144
- effectiveFrom: z45.iso.date().optional(),
8251
+ locationType: z46.string().nullable(),
8252
+ effectiveFrom: z46.iso.date().optional(),
8145
8253
  status: LocationStatus.default("active")
8146
8254
  });
8147
- var UpdateLocationPayload = z45.strictObject({
8255
+ var UpdateLocationPayload = z46.strictObject({
8148
8256
  id: UUID,
8149
8257
  versionId: UUID.optional(),
8150
- name: z45.string(),
8151
- externalId: z45.string().nullish(),
8258
+ name: z46.string(),
8259
+ externalId: z46.string().nullish(),
8152
8260
  status: LocationStatus,
8153
- effectiveFrom: z45.iso.date().optional(),
8261
+ effectiveFrom: z46.iso.date().optional(),
8154
8262
  lastVersionId: UUID
8155
8263
  });
8156
- var WithdrawLocationVersionPayload = z45.object({
8264
+ var WithdrawLocationVersionPayload = z46.object({
8157
8265
  id: UUID,
8158
8266
  versionId: UUID
8159
8267
  });
8160
- var CreateAdministrativeAreaPayload = z45.object({
8268
+ var CreateAdministrativeAreaPayload = z46.object({
8161
8269
  id: UUID.optional(),
8162
8270
  versionId: UUID.optional(),
8163
- name: z45.string(),
8164
- externalId: z45.string().nullish(),
8271
+ name: z46.string(),
8272
+ externalId: z46.string().nullish(),
8165
8273
  parentId: UUID.nullable(),
8166
- effectiveFrom: z45.iso.date().optional(),
8274
+ effectiveFrom: z46.iso.date().optional(),
8167
8275
  status: LocationStatus.default("active")
8168
8276
  });
8169
- var UpdateAdministrativeAreaPayload = z45.strictObject({
8277
+ var UpdateAdministrativeAreaPayload = z46.strictObject({
8170
8278
  id: UUID,
8171
8279
  versionId: UUID.optional(),
8172
- name: z45.string(),
8173
- externalId: z45.string().nullish(),
8280
+ name: z46.string(),
8281
+ externalId: z46.string().nullish(),
8174
8282
  status: LocationStatus,
8175
- effectiveFrom: z45.iso.date().optional(),
8283
+ effectiveFrom: z46.iso.date().optional(),
8176
8284
  lastVersionId: UUID
8177
8285
  });
8178
- var WithdrawAdministrativeAreaVersionPayload = z45.object({
8286
+ var WithdrawAdministrativeAreaVersionPayload = z46.object({
8179
8287
  id: UUID,
8180
8288
  versionId: UUID
8181
8289
  });
8182
8290
 
8183
8291
  // ../commons/src/notification/UserNotifications.ts
8184
- var z46 = __toESM(require("zod/v4"));
8292
+ var z47 = __toESM(require("zod/v4"));
8185
8293
  var TriggerEvent = {
8186
8294
  USER_CREATED: "user-created",
8187
8295
  USER_UPDATED: "user-updated",
@@ -8196,60 +8304,60 @@ var TriggerEvent = {
8196
8304
  CHANGE_PHONE_NUMBER: "change-phone-number",
8197
8305
  CHANGE_EMAIL_ADDRESS: "change-email-address"
8198
8306
  };
8199
- var Recipient = z46.object({
8307
+ var Recipient = z47.object({
8200
8308
  name: NameFieldValue.optional(),
8201
- mobile: z46.string().optional(),
8202
- email: z46.string().optional(),
8203
- bcc: z46.array(z46.string()).optional()
8309
+ mobile: z47.string().optional(),
8310
+ email: z47.string().optional(),
8311
+ bcc: z47.array(z47.string()).optional()
8204
8312
  });
8205
- var BasePayload = z46.object({
8313
+ var BasePayload = z47.object({
8206
8314
  recipient: Recipient
8207
8315
  });
8208
8316
  var TriggerPayload = {
8209
8317
  [TriggerEvent.USER_CREATED]: BasePayload.extend({
8210
- username: z46.string(),
8211
- temporaryPassword: z46.string()
8318
+ username: z47.string(),
8319
+ temporaryPassword: z47.string()
8212
8320
  }),
8213
8321
  [TriggerEvent.USER_UPDATED]: BasePayload.extend({
8214
- oldUsername: z46.string(),
8215
- newUsername: z46.string()
8322
+ oldUsername: z47.string(),
8323
+ newUsername: z47.string()
8216
8324
  }),
8217
8325
  [TriggerEvent.USERNAME_REMINDER]: BasePayload.extend({
8218
- username: z46.string()
8326
+ username: z47.string()
8219
8327
  }),
8220
8328
  [TriggerEvent.RESET_PASSWORD]: BasePayload.extend({
8221
- code: z46.string()
8329
+ code: z47.string()
8222
8330
  }),
8223
8331
  [TriggerEvent.RESET_PASSWORD_BY_ADMIN]: BasePayload.extend({
8224
- temporaryPassword: z46.string(),
8225
- admin: z46.object({
8226
- id: z46.string(),
8332
+ temporaryPassword: z47.string(),
8333
+ admin: z47.object({
8334
+ id: z47.string(),
8227
8335
  name: NameFieldValue,
8228
- role: z46.string()
8336
+ role: z47.string()
8229
8337
  })
8230
8338
  }),
8231
8339
  [TriggerEvent.PASSWORD_RESET_LINK]: BasePayload.extend({
8232
- token: z46.string()
8340
+ token: z47.string()
8233
8341
  }),
8234
8342
  [TriggerEvent.USERNAME_REMINDER_LINK]: BasePayload.extend({
8235
- token: z46.string()
8343
+ token: z47.string()
8236
8344
  }),
8237
8345
  [TriggerEvent.RESEND_INVITE]: BasePayload.extend({
8238
- username: z46.string(),
8239
- temporaryPassword: z46.string()
8346
+ username: z47.string(),
8347
+ temporaryPassword: z47.string()
8240
8348
  }),
8241
8349
  [TriggerEvent.TWO_FA]: BasePayload.extend({
8242
- code: z46.string()
8350
+ code: z47.string()
8243
8351
  }),
8244
8352
  [TriggerEvent.ALL_USER_NOTIFICATION]: BasePayload.extend({
8245
- subject: z46.string(),
8246
- body: z46.string()
8353
+ subject: z47.string(),
8354
+ body: z47.string()
8247
8355
  }),
8248
8356
  [TriggerEvent.CHANGE_PHONE_NUMBER]: BasePayload.extend({
8249
- code: z46.string()
8357
+ code: z47.string()
8250
8358
  }),
8251
8359
  [TriggerEvent.CHANGE_EMAIL_ADDRESS]: BasePayload.extend({
8252
- code: z46.string()
8360
+ code: z47.string()
8253
8361
  })
8254
8362
  };
8255
8363
  function parseUserEventTrigger(event2, body) {
@@ -8352,7 +8460,7 @@ async function triggerUserEventNotification({
8352
8460
  }
8353
8461
 
8354
8462
  // src/notification/index.ts
8355
- z47.globalRegistry.clear();
8463
+ z48.globalRegistry.clear();
8356
8464
  // Annotate the CommonJS export names for ESM import in node:
8357
8465
  0 && (module.exports = {
8358
8466
  BasePayload,
@@ -48,14 +48,14 @@ providers:
48
48
  service:
49
49
  enabled: true
50
50
  single: false
51
- type: NodePort
51
+ spec:
52
+ type: ClusterIP
52
53
 
53
54
  ports:
54
55
  web:
55
56
  port: 8000
56
57
  hostPort: 80
57
58
  protocol: TCP
58
- nodePort: 30080
59
59
  http:
60
60
  redirections:
61
61
  entryPoint:
@@ -67,7 +67,6 @@ ports:
67
67
  port: 8443
68
68
  hostPort: 443
69
69
  protocol: TCP
70
- nodePort: 30443
71
70
  {{#if lets_encrypt}}
72
71
  http:
73
72
  tls:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.1.0",
3
+ "version": "2.2.0-rc.ab91cce",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {