@polinetwork/backend 0.15.19 → 0.16.1
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/dist/index.d.cts +199 -0
- package/dist/index.d.ts +199 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -869,6 +869,205 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
869
869
|
}>;
|
|
870
870
|
}>>;
|
|
871
871
|
}>>;
|
|
872
|
+
web: _trpc_server.TRPCBuiltRouter<{
|
|
873
|
+
ctx: {
|
|
874
|
+
userId?: string;
|
|
875
|
+
};
|
|
876
|
+
meta: object;
|
|
877
|
+
errorShape: {
|
|
878
|
+
data: {
|
|
879
|
+
zodError: {
|
|
880
|
+
errors: string[];
|
|
881
|
+
} | null;
|
|
882
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
883
|
+
httpStatus: number;
|
|
884
|
+
path?: string;
|
|
885
|
+
stack?: string;
|
|
886
|
+
};
|
|
887
|
+
message: string;
|
|
888
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
889
|
+
};
|
|
890
|
+
transformer: true;
|
|
891
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
892
|
+
faqs: _trpc_server.TRPCBuiltRouter<{
|
|
893
|
+
ctx: {
|
|
894
|
+
userId?: string;
|
|
895
|
+
};
|
|
896
|
+
meta: object;
|
|
897
|
+
errorShape: {
|
|
898
|
+
data: {
|
|
899
|
+
zodError: {
|
|
900
|
+
errors: string[];
|
|
901
|
+
} | null;
|
|
902
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
903
|
+
httpStatus: number;
|
|
904
|
+
path?: string;
|
|
905
|
+
stack?: string;
|
|
906
|
+
};
|
|
907
|
+
message: string;
|
|
908
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
909
|
+
};
|
|
910
|
+
transformer: true;
|
|
911
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
912
|
+
getAllFaqs: _trpc_server.TRPCQueryProcedure<{
|
|
913
|
+
input: void;
|
|
914
|
+
output: {
|
|
915
|
+
categoryId: number;
|
|
916
|
+
titleIt: string;
|
|
917
|
+
titleEn: string;
|
|
918
|
+
icon: string | null;
|
|
919
|
+
faqs: {
|
|
920
|
+
faqId: number;
|
|
921
|
+
titleIt: string;
|
|
922
|
+
titleEn: string;
|
|
923
|
+
descriptionIt: string;
|
|
924
|
+
descriptionEn: string;
|
|
925
|
+
}[];
|
|
926
|
+
}[];
|
|
927
|
+
meta: object;
|
|
928
|
+
}>;
|
|
929
|
+
addFaqs: _trpc_server.TRPCMutationProcedure<{
|
|
930
|
+
input: {
|
|
931
|
+
titleIt: string;
|
|
932
|
+
titleEn: string;
|
|
933
|
+
descriptionIt: string;
|
|
934
|
+
descriptionEn: string;
|
|
935
|
+
categoryId: number;
|
|
936
|
+
createdBy: number;
|
|
937
|
+
};
|
|
938
|
+
output: {
|
|
939
|
+
id: number;
|
|
940
|
+
createdAt: Date;
|
|
941
|
+
updatedAt: Date | null;
|
|
942
|
+
modifiedBy: number | null;
|
|
943
|
+
titleIt: string;
|
|
944
|
+
titleEn: string;
|
|
945
|
+
createdBy: number;
|
|
946
|
+
descriptionIt: string;
|
|
947
|
+
descriptionEn: string;
|
|
948
|
+
categoryId: number;
|
|
949
|
+
};
|
|
950
|
+
meta: object;
|
|
951
|
+
}>;
|
|
952
|
+
addFaqsCategory: _trpc_server.TRPCMutationProcedure<{
|
|
953
|
+
input: {
|
|
954
|
+
titleIt: string;
|
|
955
|
+
titleEn: string;
|
|
956
|
+
icon: string | null;
|
|
957
|
+
createdBy: number;
|
|
958
|
+
};
|
|
959
|
+
output: {
|
|
960
|
+
id: number;
|
|
961
|
+
createdAt: Date;
|
|
962
|
+
updatedAt: Date | null;
|
|
963
|
+
modifiedBy: number | null;
|
|
964
|
+
titleIt: string;
|
|
965
|
+
titleEn: string;
|
|
966
|
+
icon: string | null;
|
|
967
|
+
createdBy: number;
|
|
968
|
+
};
|
|
969
|
+
meta: object;
|
|
970
|
+
}>;
|
|
971
|
+
editFaqs: _trpc_server.TRPCMutationProcedure<{
|
|
972
|
+
input: {
|
|
973
|
+
id: number;
|
|
974
|
+
titleIt: string;
|
|
975
|
+
titleEn: string;
|
|
976
|
+
descriptionIt: string;
|
|
977
|
+
descriptionEn: string;
|
|
978
|
+
categoryId: number;
|
|
979
|
+
modifiedBy: number;
|
|
980
|
+
};
|
|
981
|
+
output: {
|
|
982
|
+
updatedAt: Date | null;
|
|
983
|
+
createdAt: Date;
|
|
984
|
+
id: number;
|
|
985
|
+
titleIt: string;
|
|
986
|
+
titleEn: string;
|
|
987
|
+
descriptionIt: string;
|
|
988
|
+
descriptionEn: string;
|
|
989
|
+
categoryId: number;
|
|
990
|
+
createdBy: number;
|
|
991
|
+
modifiedBy: number | null;
|
|
992
|
+
} | {
|
|
993
|
+
error: string;
|
|
994
|
+
};
|
|
995
|
+
meta: object;
|
|
996
|
+
}>;
|
|
997
|
+
editFaqsCategory: _trpc_server.TRPCMutationProcedure<{
|
|
998
|
+
input: {
|
|
999
|
+
id: number;
|
|
1000
|
+
titleIt: string;
|
|
1001
|
+
titleEn: string;
|
|
1002
|
+
icon: string | null;
|
|
1003
|
+
modifiedBy: number;
|
|
1004
|
+
};
|
|
1005
|
+
output: {
|
|
1006
|
+
updatedAt: Date | null;
|
|
1007
|
+
createdAt: Date;
|
|
1008
|
+
id: number;
|
|
1009
|
+
titleIt: string;
|
|
1010
|
+
titleEn: string;
|
|
1011
|
+
icon: string | null;
|
|
1012
|
+
createdBy: number;
|
|
1013
|
+
modifiedBy: number | null;
|
|
1014
|
+
} | {
|
|
1015
|
+
error: string;
|
|
1016
|
+
};
|
|
1017
|
+
meta: object;
|
|
1018
|
+
}>;
|
|
1019
|
+
deleteFaqs: _trpc_server.TRPCMutationProcedure<{
|
|
1020
|
+
input: {
|
|
1021
|
+
id: number;
|
|
1022
|
+
};
|
|
1023
|
+
output: {
|
|
1024
|
+
error: string;
|
|
1025
|
+
} | {
|
|
1026
|
+
error: null;
|
|
1027
|
+
};
|
|
1028
|
+
meta: object;
|
|
1029
|
+
}>;
|
|
1030
|
+
deleteFaqsCategory: _trpc_server.TRPCMutationProcedure<{
|
|
1031
|
+
input: {
|
|
1032
|
+
id: number;
|
|
1033
|
+
};
|
|
1034
|
+
output: {
|
|
1035
|
+
error: string;
|
|
1036
|
+
} | {
|
|
1037
|
+
error: null;
|
|
1038
|
+
};
|
|
1039
|
+
meta: object;
|
|
1040
|
+
}>;
|
|
1041
|
+
}>>;
|
|
1042
|
+
}>>;
|
|
1043
|
+
auth: _trpc_server.TRPCBuiltRouter<{
|
|
1044
|
+
ctx: {
|
|
1045
|
+
userId?: string;
|
|
1046
|
+
};
|
|
1047
|
+
meta: object;
|
|
1048
|
+
errorShape: {
|
|
1049
|
+
data: {
|
|
1050
|
+
zodError: {
|
|
1051
|
+
errors: string[];
|
|
1052
|
+
} | null;
|
|
1053
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
1054
|
+
httpStatus: number;
|
|
1055
|
+
path?: string;
|
|
1056
|
+
stack?: string;
|
|
1057
|
+
};
|
|
1058
|
+
message: string;
|
|
1059
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
1060
|
+
};
|
|
1061
|
+
transformer: true;
|
|
1062
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
1063
|
+
updateProfilePic: _trpc_server.TRPCMutationProcedure<{
|
|
1064
|
+
input: FormData;
|
|
1065
|
+
output: {
|
|
1066
|
+
success: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
meta: object;
|
|
1069
|
+
}>;
|
|
1070
|
+
}>>;
|
|
872
1071
|
}>>;
|
|
873
1072
|
type AppRouter = typeof appRouter;
|
|
874
1073
|
|
package/dist/index.d.ts
CHANGED
|
@@ -869,6 +869,205 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
869
869
|
}>;
|
|
870
870
|
}>>;
|
|
871
871
|
}>>;
|
|
872
|
+
web: _trpc_server.TRPCBuiltRouter<{
|
|
873
|
+
ctx: {
|
|
874
|
+
userId?: string;
|
|
875
|
+
};
|
|
876
|
+
meta: object;
|
|
877
|
+
errorShape: {
|
|
878
|
+
data: {
|
|
879
|
+
zodError: {
|
|
880
|
+
errors: string[];
|
|
881
|
+
} | null;
|
|
882
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
883
|
+
httpStatus: number;
|
|
884
|
+
path?: string;
|
|
885
|
+
stack?: string;
|
|
886
|
+
};
|
|
887
|
+
message: string;
|
|
888
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
889
|
+
};
|
|
890
|
+
transformer: true;
|
|
891
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
892
|
+
faqs: _trpc_server.TRPCBuiltRouter<{
|
|
893
|
+
ctx: {
|
|
894
|
+
userId?: string;
|
|
895
|
+
};
|
|
896
|
+
meta: object;
|
|
897
|
+
errorShape: {
|
|
898
|
+
data: {
|
|
899
|
+
zodError: {
|
|
900
|
+
errors: string[];
|
|
901
|
+
} | null;
|
|
902
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
903
|
+
httpStatus: number;
|
|
904
|
+
path?: string;
|
|
905
|
+
stack?: string;
|
|
906
|
+
};
|
|
907
|
+
message: string;
|
|
908
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
909
|
+
};
|
|
910
|
+
transformer: true;
|
|
911
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
912
|
+
getAllFaqs: _trpc_server.TRPCQueryProcedure<{
|
|
913
|
+
input: void;
|
|
914
|
+
output: {
|
|
915
|
+
categoryId: number;
|
|
916
|
+
titleIt: string;
|
|
917
|
+
titleEn: string;
|
|
918
|
+
icon: string | null;
|
|
919
|
+
faqs: {
|
|
920
|
+
faqId: number;
|
|
921
|
+
titleIt: string;
|
|
922
|
+
titleEn: string;
|
|
923
|
+
descriptionIt: string;
|
|
924
|
+
descriptionEn: string;
|
|
925
|
+
}[];
|
|
926
|
+
}[];
|
|
927
|
+
meta: object;
|
|
928
|
+
}>;
|
|
929
|
+
addFaqs: _trpc_server.TRPCMutationProcedure<{
|
|
930
|
+
input: {
|
|
931
|
+
titleIt: string;
|
|
932
|
+
titleEn: string;
|
|
933
|
+
descriptionIt: string;
|
|
934
|
+
descriptionEn: string;
|
|
935
|
+
categoryId: number;
|
|
936
|
+
createdBy: number;
|
|
937
|
+
};
|
|
938
|
+
output: {
|
|
939
|
+
id: number;
|
|
940
|
+
createdAt: Date;
|
|
941
|
+
updatedAt: Date | null;
|
|
942
|
+
modifiedBy: number | null;
|
|
943
|
+
titleIt: string;
|
|
944
|
+
titleEn: string;
|
|
945
|
+
createdBy: number;
|
|
946
|
+
descriptionIt: string;
|
|
947
|
+
descriptionEn: string;
|
|
948
|
+
categoryId: number;
|
|
949
|
+
};
|
|
950
|
+
meta: object;
|
|
951
|
+
}>;
|
|
952
|
+
addFaqsCategory: _trpc_server.TRPCMutationProcedure<{
|
|
953
|
+
input: {
|
|
954
|
+
titleIt: string;
|
|
955
|
+
titleEn: string;
|
|
956
|
+
icon: string | null;
|
|
957
|
+
createdBy: number;
|
|
958
|
+
};
|
|
959
|
+
output: {
|
|
960
|
+
id: number;
|
|
961
|
+
createdAt: Date;
|
|
962
|
+
updatedAt: Date | null;
|
|
963
|
+
modifiedBy: number | null;
|
|
964
|
+
titleIt: string;
|
|
965
|
+
titleEn: string;
|
|
966
|
+
icon: string | null;
|
|
967
|
+
createdBy: number;
|
|
968
|
+
};
|
|
969
|
+
meta: object;
|
|
970
|
+
}>;
|
|
971
|
+
editFaqs: _trpc_server.TRPCMutationProcedure<{
|
|
972
|
+
input: {
|
|
973
|
+
id: number;
|
|
974
|
+
titleIt: string;
|
|
975
|
+
titleEn: string;
|
|
976
|
+
descriptionIt: string;
|
|
977
|
+
descriptionEn: string;
|
|
978
|
+
categoryId: number;
|
|
979
|
+
modifiedBy: number;
|
|
980
|
+
};
|
|
981
|
+
output: {
|
|
982
|
+
updatedAt: Date | null;
|
|
983
|
+
createdAt: Date;
|
|
984
|
+
id: number;
|
|
985
|
+
titleIt: string;
|
|
986
|
+
titleEn: string;
|
|
987
|
+
descriptionIt: string;
|
|
988
|
+
descriptionEn: string;
|
|
989
|
+
categoryId: number;
|
|
990
|
+
createdBy: number;
|
|
991
|
+
modifiedBy: number | null;
|
|
992
|
+
} | {
|
|
993
|
+
error: string;
|
|
994
|
+
};
|
|
995
|
+
meta: object;
|
|
996
|
+
}>;
|
|
997
|
+
editFaqsCategory: _trpc_server.TRPCMutationProcedure<{
|
|
998
|
+
input: {
|
|
999
|
+
id: number;
|
|
1000
|
+
titleIt: string;
|
|
1001
|
+
titleEn: string;
|
|
1002
|
+
icon: string | null;
|
|
1003
|
+
modifiedBy: number;
|
|
1004
|
+
};
|
|
1005
|
+
output: {
|
|
1006
|
+
updatedAt: Date | null;
|
|
1007
|
+
createdAt: Date;
|
|
1008
|
+
id: number;
|
|
1009
|
+
titleIt: string;
|
|
1010
|
+
titleEn: string;
|
|
1011
|
+
icon: string | null;
|
|
1012
|
+
createdBy: number;
|
|
1013
|
+
modifiedBy: number | null;
|
|
1014
|
+
} | {
|
|
1015
|
+
error: string;
|
|
1016
|
+
};
|
|
1017
|
+
meta: object;
|
|
1018
|
+
}>;
|
|
1019
|
+
deleteFaqs: _trpc_server.TRPCMutationProcedure<{
|
|
1020
|
+
input: {
|
|
1021
|
+
id: number;
|
|
1022
|
+
};
|
|
1023
|
+
output: {
|
|
1024
|
+
error: string;
|
|
1025
|
+
} | {
|
|
1026
|
+
error: null;
|
|
1027
|
+
};
|
|
1028
|
+
meta: object;
|
|
1029
|
+
}>;
|
|
1030
|
+
deleteFaqsCategory: _trpc_server.TRPCMutationProcedure<{
|
|
1031
|
+
input: {
|
|
1032
|
+
id: number;
|
|
1033
|
+
};
|
|
1034
|
+
output: {
|
|
1035
|
+
error: string;
|
|
1036
|
+
} | {
|
|
1037
|
+
error: null;
|
|
1038
|
+
};
|
|
1039
|
+
meta: object;
|
|
1040
|
+
}>;
|
|
1041
|
+
}>>;
|
|
1042
|
+
}>>;
|
|
1043
|
+
auth: _trpc_server.TRPCBuiltRouter<{
|
|
1044
|
+
ctx: {
|
|
1045
|
+
userId?: string;
|
|
1046
|
+
};
|
|
1047
|
+
meta: object;
|
|
1048
|
+
errorShape: {
|
|
1049
|
+
data: {
|
|
1050
|
+
zodError: {
|
|
1051
|
+
errors: string[];
|
|
1052
|
+
} | null;
|
|
1053
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
1054
|
+
httpStatus: number;
|
|
1055
|
+
path?: string;
|
|
1056
|
+
stack?: string;
|
|
1057
|
+
};
|
|
1058
|
+
message: string;
|
|
1059
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
1060
|
+
};
|
|
1061
|
+
transformer: true;
|
|
1062
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
1063
|
+
updateProfilePic: _trpc_server.TRPCMutationProcedure<{
|
|
1064
|
+
input: FormData;
|
|
1065
|
+
output: {
|
|
1066
|
+
success: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
meta: object;
|
|
1069
|
+
}>;
|
|
1070
|
+
}>>;
|
|
872
1071
|
}>>;
|
|
873
1072
|
type AppRouter = typeof appRouter;
|
|
874
1073
|
|