@opencrvs/toolkit 2.0.0-rc.f281551 → 2.0.0-rc.fc7f7fc

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.
@@ -3975,9 +3975,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3975
3975
  output: {
3976
3976
  id: string & import("zod").$brand<"UUID">;
3977
3977
  name: {
3978
- firstname: string;
3979
- surname: string;
3980
- };
3978
+ use: string;
3979
+ given: string[];
3980
+ family: string;
3981
+ }[];
3981
3982
  role: string;
3982
3983
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3983
3984
  type: "user";
@@ -4007,9 +4008,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4007
4008
  create: import("@trpc/server").TRPCMutationProcedure<{
4008
4009
  input: {
4009
4010
  name: {
4010
- firstname: string;
4011
- surname: string;
4012
- };
4011
+ use: string;
4012
+ given: string[];
4013
+ family: string;
4014
+ }[];
4013
4015
  role: string;
4014
4016
  primaryOfficeId: string;
4015
4017
  data?: Record<string, unknown> | undefined;
@@ -4027,9 +4029,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4027
4029
  output: {
4028
4030
  id: string & import("zod").$brand<"UUID">;
4029
4031
  name: {
4030
- firstname: string;
4031
- surname: string;
4032
- };
4032
+ use: string;
4033
+ given: string[];
4034
+ family: string;
4035
+ }[];
4033
4036
  role: string;
4034
4037
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4035
4038
  type: "user";
@@ -4050,9 +4053,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4050
4053
  id: string;
4051
4054
  data?: Record<string, unknown> | undefined;
4052
4055
  name?: {
4053
- firstname: string;
4054
- surname: string;
4055
- } | undefined;
4056
+ use: string;
4057
+ given: string[];
4058
+ family: string;
4059
+ }[] | undefined;
4056
4060
  role?: string | undefined;
4057
4061
  fullHonorificName?: string | undefined;
4058
4062
  device?: string | undefined;
@@ -4071,9 +4075,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4071
4075
  output: {
4072
4076
  id: string & import("zod").$brand<"UUID">;
4073
4077
  name: {
4074
- firstname: string;
4075
- surname: string;
4076
- };
4078
+ use: string;
4079
+ given: string[];
4080
+ family: string;
4081
+ }[];
4077
4082
  role: string;
4078
4083
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4079
4084
  type: "user";
@@ -4094,9 +4099,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4094
4099
  output: ({
4095
4100
  id: string & import("zod").$brand<"UUID">;
4096
4101
  name: {
4097
- firstname: string;
4098
- surname: string;
4099
- };
4102
+ use: string;
4103
+ given: string[];
4104
+ family: string;
4105
+ }[];
4100
4106
  role: string;
4101
4107
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4102
4108
  type: "user";
@@ -4138,9 +4144,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4138
4144
  output: ({
4139
4145
  id: string & import("zod").$brand<"UUID">;
4140
4146
  name: {
4141
- firstname: string;
4142
- surname: string;
4143
- };
4147
+ use: string;
4148
+ given: string[];
4149
+ family: string;
4150
+ }[];
4144
4151
  role: string;
4145
4152
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4146
4153
  type: "user";
@@ -4311,6 +4318,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4311
4318
  output: void;
4312
4319
  meta: import("trpc-to-openapi").OpenApiMeta;
4313
4320
  }>;
4321
+ verifyPasswordById: import("@trpc/server").TRPCMutationProcedure<{
4322
+ input: {
4323
+ id: string;
4324
+ password: string;
4325
+ };
4326
+ output: {
4327
+ status: string;
4328
+ username: string;
4329
+ id: string;
4330
+ mobile?: string | undefined;
4331
+ };
4332
+ meta: import("trpc-to-openapi").OpenApiMeta;
4333
+ }>;
4314
4334
  audit: import("@trpc/server").TRPCBuiltRouter<{
4315
4335
  ctx: Partial<{
4316
4336
  token: `Bearer ${string}`;
@@ -4766,7 +4786,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4766
4786
  'legalStatuses.DECLARED.createdAtLocation'?: {
4767
4787
  type: "within";
4768
4788
  location: string | {
4769
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4789
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4770
4790
  $location?: string | undefined;
4771
4791
  };
4772
4792
  } | undefined;
@@ -4788,7 +4808,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4788
4808
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4789
4809
  type: "within";
4790
4810
  location: string | {
4791
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4811
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4792
4812
  $location?: string | undefined;
4793
4813
  };
4794
4814
  } | undefined;
@@ -4803,47 +4823,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4803
4823
  createdAtLocation?: {
4804
4824
  type: "within";
4805
4825
  location: string | {
4806
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4826
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4807
4827
  $location?: string | undefined;
4808
4828
  };
4809
4829
  } | {
4810
4830
  type: "exact";
4811
4831
  term: string | {
4812
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4832
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4813
4833
  $location?: string | undefined;
4814
4834
  };
4815
4835
  } | undefined;
4816
4836
  updatedAtLocation?: {
4817
4837
  type: "within";
4818
4838
  location: string | {
4819
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4839
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4820
4840
  $location?: string | undefined;
4821
4841
  };
4822
4842
  } | {
4823
4843
  type: "exact";
4824
4844
  term: string | {
4825
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4845
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4826
4846
  $location?: string | undefined;
4827
4847
  };
4828
4848
  } | undefined;
4829
4849
  updatedByUserRole?: {
4830
4850
  type: "exact";
4831
4851
  term: string | {
4832
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4852
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4833
4853
  $location?: string | undefined;
4834
4854
  };
4835
4855
  } | undefined;
4836
4856
  assignedTo?: {
4837
4857
  type: "exact";
4838
4858
  term: string | {
4839
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4859
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4840
4860
  $location?: string | undefined;
4841
4861
  };
4842
4862
  } | undefined;
4843
4863
  createdBy?: {
4844
4864
  type: "exact";
4845
4865
  term: string | {
4846
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4866
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4847
4867
  $location?: string | undefined;
4848
4868
  };
4849
4869
  } | undefined;
@@ -4854,7 +4874,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4854
4874
  updatedBy?: {
4855
4875
  type: "exact";
4856
4876
  term: string | {
4857
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4877
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4858
4878
  $location?: string | undefined;
4859
4879
  };
4860
4880
  } | undefined;
@@ -4904,7 +4924,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4904
4924
  'legalStatuses.DECLARED.createdAtLocation'?: {
4905
4925
  type: "within";
4906
4926
  location: string | {
4907
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4927
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4908
4928
  $location?: string | undefined;
4909
4929
  };
4910
4930
  } | undefined;
@@ -4926,7 +4946,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4926
4946
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4927
4947
  type: "within";
4928
4948
  location: string | {
4929
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4949
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4930
4950
  $location?: string | undefined;
4931
4951
  };
4932
4952
  } | undefined;
@@ -4941,47 +4961,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4941
4961
  createdAtLocation?: {
4942
4962
  type: "within";
4943
4963
  location: string | {
4944
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4964
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4945
4965
  $location?: string | undefined;
4946
4966
  };
4947
4967
  } | {
4948
4968
  type: "exact";
4949
4969
  term: string | {
4950
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4970
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4951
4971
  $location?: string | undefined;
4952
4972
  };
4953
4973
  } | undefined;
4954
4974
  updatedAtLocation?: {
4955
4975
  type: "within";
4956
4976
  location: string | {
4957
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4977
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4958
4978
  $location?: string | undefined;
4959
4979
  };
4960
4980
  } | {
4961
4981
  type: "exact";
4962
4982
  term: string | {
4963
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4983
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4964
4984
  $location?: string | undefined;
4965
4985
  };
4966
4986
  } | undefined;
4967
4987
  updatedByUserRole?: {
4968
4988
  type: "exact";
4969
4989
  term: string | {
4970
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4990
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4971
4991
  $location?: string | undefined;
4972
4992
  };
4973
4993
  } | undefined;
4974
4994
  assignedTo?: {
4975
4995
  type: "exact";
4976
4996
  term: string | {
4977
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4997
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4978
4998
  $location?: string | undefined;
4979
4999
  };
4980
5000
  } | undefined;
4981
5001
  createdBy?: {
4982
5002
  type: "exact";
4983
5003
  term: string | {
4984
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
5004
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4985
5005
  $location?: string | undefined;
4986
5006
  };
4987
5007
  } | undefined;
@@ -4992,7 +5012,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4992
5012
  updatedBy?: {
4993
5013
  type: "exact";
4994
5014
  term: string | {
4995
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
5015
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4996
5016
  $location?: string | undefined;
4997
5017
  };
4998
5018
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.0-rc.f281551",
3
+ "version": "2.0.0-rc.fc7f7fc",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {