@opencrvs/mosip 2.1.0-rc.d987aec → 2.1.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.
package/build/api.d.ts CHANGED
@@ -23,6 +23,7 @@ export declare const MosipNotificationSchema: z.ZodObject<{
23
23
  recipientPhone: z.ZodString;
24
24
  }, z.core.$strip>;
25
25
  export declare const MosipInteropPayloadSchema: z.ZodObject<{
26
+ eventId: z.ZodString;
26
27
  trackingId: z.ZodString;
27
28
  notification: z.ZodObject<{
28
29
  recipientFullName: z.ZodString;
package/build/api.js CHANGED
@@ -25,6 +25,13 @@ exports.MosipNotificationSchema = zod_1.z.object({
25
25
  recipientPhone: zod_1.z.string()
26
26
  });
27
27
  exports.MosipInteropPayloadSchema = zod_1.z.object({
28
+ /**
29
+ * The OpenCRVS event being registered. mosip-api stores this alongside the
30
+ * MOSIP transaction id so it can confirm the registration when MOSIP later
31
+ * issues the credential — MOSIP does not echo arbitrary metadata back on the
32
+ * WebSub callback, so the correlation has to be persisted here.
33
+ */
34
+ eventId: zod_1.z.string(),
28
35
  trackingId: zod_1.z.string(),
29
36
  notification: exports.MosipNotificationSchema,
30
37
  requestFields: zod_1.z.union([
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/mosip",
3
- "version": "2.1.0-rc.d987aec",
3
+ "version": "2.1.0",
4
4
  "description": "Helpers for wiring an OpenCRVS country configuration to the MOSIP integration API",
5
5
  "repository": {
6
6
  "type": "git",
package/src/api.ts CHANGED
@@ -38,6 +38,13 @@ export const MosipNotificationSchema = z.object({
38
38
  })
39
39
 
40
40
  export const MosipInteropPayloadSchema = z.object({
41
+ /**
42
+ * The OpenCRVS event being registered. mosip-api stores this alongside the
43
+ * MOSIP transaction id so it can confirm the registration when MOSIP later
44
+ * issues the credential — MOSIP does not echo arbitrary metadata back on the
45
+ * WebSub callback, so the correlation has to be persisted here.
46
+ */
47
+ eventId: z.string(),
41
48
  trackingId: z.string(),
42
49
  notification: MosipNotificationSchema,
43
50
  requestFields: z.union([
Binary file