@opencrvs/toolkit 2.0.0-rc.8f43857 → 2.0.0-rc.8fa8b62

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.
@@ -7374,9 +7374,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7374
7374
  output: void;
7375
7375
  meta: import("trpc-to-openapi").OpenApiMeta;
7376
7376
  }>;
7377
- sendVerifyCode: import("@trpc/server").TRPCMutationProcedure<{
7377
+ requestContactChange: import("@trpc/server").TRPCMutationProcedure<{
7378
7378
  input: {
7379
- notificationEvent: "change-phone-number" | "change-email-address";
7379
+ notificationEvent: "change-email-address";
7380
+ email: string;
7381
+ } | {
7382
+ notificationEvent: "change-phone-number";
7383
+ phoneNumber: string;
7380
7384
  };
7381
7385
  output: {
7382
7386
  nonce: string;
@@ -7678,7 +7678,7 @@ async function triggerUserEventNotification({
7678
7678
  countryConfigUrl,
7679
7679
  authHeader
7680
7680
  }) {
7681
- return await fetch(joinUrl(countryConfigUrl, `triggers/user/${event2}`), {
7681
+ return await fetch(joinUrl(countryConfigUrl, `trigger/user/${event2}`), {
7682
7682
  method: "POST",
7683
7683
  body: JSON.stringify(payload),
7684
7684
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.0-rc.8f43857",
3
+ "version": "2.0.0-rc.8fa8b62",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {