@polinetwork/backend 0.16.0 → 0.16.3

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 CHANGED
@@ -869,6 +869,442 @@ 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
+ associations: _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
+ getAllAssociations: _trpc_server.TRPCQueryProcedure<{
913
+ input: void;
914
+ output: {
915
+ id: number;
916
+ name: string;
917
+ descriptionIt: string;
918
+ descriptionEn: string;
919
+ logoSvg: string | null;
920
+ links: {
921
+ email: string | null;
922
+ website: string | null;
923
+ facebook: string | null;
924
+ instagram: string | null;
925
+ tiktok: string | null;
926
+ x: string | null;
927
+ youtube: string | null;
928
+ telegram: string | null;
929
+ linkedin: string | null;
930
+ spotify: string | null;
931
+ };
932
+ }[];
933
+ meta: object;
934
+ }>;
935
+ addAssociation: _trpc_server.TRPCMutationProcedure<{
936
+ input: {
937
+ name: string;
938
+ descriptionIt: string;
939
+ descriptionEn: string;
940
+ logoSvg: string | null;
941
+ createdBy: number;
942
+ };
943
+ output: {
944
+ id: number;
945
+ name: string;
946
+ descriptionIt: string;
947
+ descriptionEn: string;
948
+ logoSvg: string | null;
949
+ links: {
950
+ email: string | null;
951
+ website: string | null;
952
+ facebook: string | null;
953
+ instagram: string | null;
954
+ tiktok: string | null;
955
+ x: string | null;
956
+ youtube: string | null;
957
+ telegram: string | null;
958
+ linkedin: string | null;
959
+ spotify: string | null;
960
+ };
961
+ };
962
+ meta: object;
963
+ }>;
964
+ editAssociation: _trpc_server.TRPCMutationProcedure<{
965
+ input: {
966
+ id: number;
967
+ name: string;
968
+ descriptionIt: string;
969
+ descriptionEn: string;
970
+ logoSvg: string | null;
971
+ modifiedBy: number;
972
+ };
973
+ output: {
974
+ id: number;
975
+ name: string;
976
+ descriptionIt: string;
977
+ descriptionEn: string;
978
+ logoSvg: string | null;
979
+ links: {
980
+ email: string | null;
981
+ website: string | null;
982
+ facebook: string | null;
983
+ instagram: string | null;
984
+ tiktok: string | null;
985
+ x: string | null;
986
+ youtube: string | null;
987
+ telegram: string | null;
988
+ linkedin: string | null;
989
+ spotify: string | null;
990
+ };
991
+ } | {
992
+ error: string;
993
+ };
994
+ meta: object;
995
+ }>;
996
+ editAssociationLinks: _trpc_server.TRPCMutationProcedure<{
997
+ input: {
998
+ id: number;
999
+ links: {
1000
+ email: string | null;
1001
+ website: string | null;
1002
+ facebook: string | null;
1003
+ instagram: string | null;
1004
+ tiktok: string | null;
1005
+ x: string | null;
1006
+ youtube: string | null;
1007
+ telegram: string | null;
1008
+ linkedin: string | null;
1009
+ spotify: string | null;
1010
+ };
1011
+ modifiedBy: number;
1012
+ };
1013
+ output: {
1014
+ id: number;
1015
+ name: string;
1016
+ descriptionIt: string;
1017
+ descriptionEn: string;
1018
+ logoSvg: string | null;
1019
+ links: {
1020
+ email: string | null;
1021
+ website: string | null;
1022
+ facebook: string | null;
1023
+ instagram: string | null;
1024
+ tiktok: string | null;
1025
+ x: string | null;
1026
+ youtube: string | null;
1027
+ telegram: string | null;
1028
+ linkedin: string | null;
1029
+ spotify: string | null;
1030
+ };
1031
+ } | {
1032
+ error: string;
1033
+ };
1034
+ meta: object;
1035
+ }>;
1036
+ deleteAssociation: _trpc_server.TRPCMutationProcedure<{
1037
+ input: {
1038
+ id: number;
1039
+ };
1040
+ output: {
1041
+ error: string;
1042
+ } | {
1043
+ error: null;
1044
+ };
1045
+ meta: object;
1046
+ }>;
1047
+ }>>;
1048
+ faqs: _trpc_server.TRPCBuiltRouter<{
1049
+ ctx: {
1050
+ userId?: string;
1051
+ };
1052
+ meta: object;
1053
+ errorShape: {
1054
+ data: {
1055
+ zodError: {
1056
+ errors: string[];
1057
+ } | null;
1058
+ code: _trpc_server.TRPC_ERROR_CODE_KEY;
1059
+ httpStatus: number;
1060
+ path?: string;
1061
+ stack?: string;
1062
+ };
1063
+ message: string;
1064
+ code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
1065
+ };
1066
+ transformer: true;
1067
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
1068
+ getAllFaqs: _trpc_server.TRPCQueryProcedure<{
1069
+ input: void;
1070
+ output: {
1071
+ categoryId: number;
1072
+ titleIt: string;
1073
+ titleEn: string;
1074
+ icon: string | null;
1075
+ faqs: {
1076
+ faqId: number;
1077
+ titleIt: string;
1078
+ titleEn: string;
1079
+ descriptionIt: string;
1080
+ descriptionEn: string;
1081
+ }[];
1082
+ }[];
1083
+ meta: object;
1084
+ }>;
1085
+ addFaqs: _trpc_server.TRPCMutationProcedure<{
1086
+ input: {
1087
+ titleIt: string;
1088
+ titleEn: string;
1089
+ descriptionIt: string;
1090
+ descriptionEn: string;
1091
+ categoryId: number;
1092
+ createdBy: number;
1093
+ };
1094
+ output: {
1095
+ id: number;
1096
+ createdAt: Date;
1097
+ updatedAt: Date | null;
1098
+ modifiedBy: number | null;
1099
+ descriptionIt: string;
1100
+ descriptionEn: string;
1101
+ createdBy: number;
1102
+ titleIt: string;
1103
+ titleEn: string;
1104
+ categoryId: number;
1105
+ };
1106
+ meta: object;
1107
+ }>;
1108
+ addFaqsCategory: _trpc_server.TRPCMutationProcedure<{
1109
+ input: {
1110
+ titleIt: string;
1111
+ titleEn: string;
1112
+ icon: string | null;
1113
+ createdBy: number;
1114
+ };
1115
+ output: {
1116
+ id: number;
1117
+ createdAt: Date;
1118
+ updatedAt: Date | null;
1119
+ modifiedBy: number | null;
1120
+ createdBy: number;
1121
+ titleIt: string;
1122
+ titleEn: string;
1123
+ icon: string | null;
1124
+ };
1125
+ meta: object;
1126
+ }>;
1127
+ editFaqs: _trpc_server.TRPCMutationProcedure<{
1128
+ input: {
1129
+ id: number;
1130
+ titleIt: string;
1131
+ titleEn: string;
1132
+ descriptionIt: string;
1133
+ descriptionEn: string;
1134
+ categoryId: number;
1135
+ modifiedBy: number;
1136
+ };
1137
+ output: {
1138
+ updatedAt: Date | null;
1139
+ createdAt: Date;
1140
+ id: number;
1141
+ titleIt: string;
1142
+ titleEn: string;
1143
+ descriptionIt: string;
1144
+ descriptionEn: string;
1145
+ categoryId: number;
1146
+ createdBy: number;
1147
+ modifiedBy: number | null;
1148
+ } | {
1149
+ error: string;
1150
+ };
1151
+ meta: object;
1152
+ }>;
1153
+ editFaqsCategory: _trpc_server.TRPCMutationProcedure<{
1154
+ input: {
1155
+ id: number;
1156
+ titleIt: string;
1157
+ titleEn: string;
1158
+ icon: string | null;
1159
+ modifiedBy: number;
1160
+ };
1161
+ output: {
1162
+ updatedAt: Date | null;
1163
+ createdAt: Date;
1164
+ id: number;
1165
+ titleIt: string;
1166
+ titleEn: string;
1167
+ icon: string | null;
1168
+ createdBy: number;
1169
+ modifiedBy: number | null;
1170
+ } | {
1171
+ error: string;
1172
+ };
1173
+ meta: object;
1174
+ }>;
1175
+ deleteFaqs: _trpc_server.TRPCMutationProcedure<{
1176
+ input: {
1177
+ id: number;
1178
+ };
1179
+ output: {
1180
+ error: string;
1181
+ } | {
1182
+ error: null;
1183
+ };
1184
+ meta: object;
1185
+ }>;
1186
+ deleteFaqsCategory: _trpc_server.TRPCMutationProcedure<{
1187
+ input: {
1188
+ id: number;
1189
+ };
1190
+ output: {
1191
+ error: string;
1192
+ } | {
1193
+ error: null;
1194
+ };
1195
+ meta: object;
1196
+ }>;
1197
+ }>>;
1198
+ projects: _trpc_server.TRPCBuiltRouter<{
1199
+ ctx: {
1200
+ userId?: string;
1201
+ };
1202
+ meta: object;
1203
+ errorShape: {
1204
+ data: {
1205
+ zodError: {
1206
+ errors: string[];
1207
+ } | null;
1208
+ code: _trpc_server.TRPC_ERROR_CODE_KEY;
1209
+ httpStatus: number;
1210
+ path?: string;
1211
+ stack?: string;
1212
+ };
1213
+ message: string;
1214
+ code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
1215
+ };
1216
+ transformer: true;
1217
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
1218
+ getAllProjects: _trpc_server.TRPCQueryProcedure<{
1219
+ input: void;
1220
+ output: {
1221
+ id: number;
1222
+ title: string;
1223
+ descriptionIt: string;
1224
+ descriptionEn: string;
1225
+ logo: string | null;
1226
+ link: string | null;
1227
+ category: "news" | "deprecated" | "general";
1228
+ }[];
1229
+ meta: object;
1230
+ }>;
1231
+ addProject: _trpc_server.TRPCMutationProcedure<{
1232
+ input: {
1233
+ link: string | null;
1234
+ title: string;
1235
+ descriptionIt: string;
1236
+ descriptionEn: string;
1237
+ logo: string | null;
1238
+ category: "news" | "deprecated" | "general";
1239
+ createdBy: number;
1240
+ };
1241
+ output: {
1242
+ link: string | null;
1243
+ id: number;
1244
+ createdAt: Date;
1245
+ updatedAt: Date | null;
1246
+ modifiedBy: number | null;
1247
+ title: string;
1248
+ descriptionIt: string;
1249
+ descriptionEn: string;
1250
+ createdBy: number;
1251
+ logo: string | null;
1252
+ category: "news" | "deprecated" | "general";
1253
+ order: number;
1254
+ };
1255
+ meta: object;
1256
+ }>;
1257
+ editProject: _trpc_server.TRPCMutationProcedure<{
1258
+ input: {
1259
+ id: number;
1260
+ title: string;
1261
+ descriptionIt: string;
1262
+ descriptionEn: string;
1263
+ logo: string | null;
1264
+ link: string | null;
1265
+ category: "news" | "deprecated" | "general";
1266
+ modifiedBy: number;
1267
+ };
1268
+ output: {
1269
+ updatedAt: Date | null;
1270
+ createdAt: Date;
1271
+ id: number;
1272
+ title: string;
1273
+ descriptionIt: string;
1274
+ descriptionEn: string;
1275
+ logo: string | null;
1276
+ link: string | null;
1277
+ category: "news" | "deprecated" | "general";
1278
+ order: number;
1279
+ createdBy: number;
1280
+ modifiedBy: number | null;
1281
+ } | {
1282
+ error: string;
1283
+ };
1284
+ meta: object;
1285
+ }>;
1286
+ reorderProjects: _trpc_server.TRPCMutationProcedure<{
1287
+ input: {
1288
+ projectIds: number[];
1289
+ };
1290
+ output: {
1291
+ error: null;
1292
+ };
1293
+ meta: object;
1294
+ }>;
1295
+ deleteProject: _trpc_server.TRPCMutationProcedure<{
1296
+ input: {
1297
+ id: number;
1298
+ };
1299
+ output: {
1300
+ error: string;
1301
+ } | {
1302
+ error: null;
1303
+ };
1304
+ meta: object;
1305
+ }>;
1306
+ }>>;
1307
+ }>>;
872
1308
  auth: _trpc_server.TRPCBuiltRouter<{
873
1309
  ctx: {
874
1310
  userId?: string;
package/dist/index.d.ts CHANGED
@@ -869,6 +869,442 @@ 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
+ associations: _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
+ getAllAssociations: _trpc_server.TRPCQueryProcedure<{
913
+ input: void;
914
+ output: {
915
+ id: number;
916
+ name: string;
917
+ descriptionIt: string;
918
+ descriptionEn: string;
919
+ logoSvg: string | null;
920
+ links: {
921
+ email: string | null;
922
+ website: string | null;
923
+ facebook: string | null;
924
+ instagram: string | null;
925
+ tiktok: string | null;
926
+ x: string | null;
927
+ youtube: string | null;
928
+ telegram: string | null;
929
+ linkedin: string | null;
930
+ spotify: string | null;
931
+ };
932
+ }[];
933
+ meta: object;
934
+ }>;
935
+ addAssociation: _trpc_server.TRPCMutationProcedure<{
936
+ input: {
937
+ name: string;
938
+ descriptionIt: string;
939
+ descriptionEn: string;
940
+ logoSvg: string | null;
941
+ createdBy: number;
942
+ };
943
+ output: {
944
+ id: number;
945
+ name: string;
946
+ descriptionIt: string;
947
+ descriptionEn: string;
948
+ logoSvg: string | null;
949
+ links: {
950
+ email: string | null;
951
+ website: string | null;
952
+ facebook: string | null;
953
+ instagram: string | null;
954
+ tiktok: string | null;
955
+ x: string | null;
956
+ youtube: string | null;
957
+ telegram: string | null;
958
+ linkedin: string | null;
959
+ spotify: string | null;
960
+ };
961
+ };
962
+ meta: object;
963
+ }>;
964
+ editAssociation: _trpc_server.TRPCMutationProcedure<{
965
+ input: {
966
+ id: number;
967
+ name: string;
968
+ descriptionIt: string;
969
+ descriptionEn: string;
970
+ logoSvg: string | null;
971
+ modifiedBy: number;
972
+ };
973
+ output: {
974
+ id: number;
975
+ name: string;
976
+ descriptionIt: string;
977
+ descriptionEn: string;
978
+ logoSvg: string | null;
979
+ links: {
980
+ email: string | null;
981
+ website: string | null;
982
+ facebook: string | null;
983
+ instagram: string | null;
984
+ tiktok: string | null;
985
+ x: string | null;
986
+ youtube: string | null;
987
+ telegram: string | null;
988
+ linkedin: string | null;
989
+ spotify: string | null;
990
+ };
991
+ } | {
992
+ error: string;
993
+ };
994
+ meta: object;
995
+ }>;
996
+ editAssociationLinks: _trpc_server.TRPCMutationProcedure<{
997
+ input: {
998
+ id: number;
999
+ links: {
1000
+ email: string | null;
1001
+ website: string | null;
1002
+ facebook: string | null;
1003
+ instagram: string | null;
1004
+ tiktok: string | null;
1005
+ x: string | null;
1006
+ youtube: string | null;
1007
+ telegram: string | null;
1008
+ linkedin: string | null;
1009
+ spotify: string | null;
1010
+ };
1011
+ modifiedBy: number;
1012
+ };
1013
+ output: {
1014
+ id: number;
1015
+ name: string;
1016
+ descriptionIt: string;
1017
+ descriptionEn: string;
1018
+ logoSvg: string | null;
1019
+ links: {
1020
+ email: string | null;
1021
+ website: string | null;
1022
+ facebook: string | null;
1023
+ instagram: string | null;
1024
+ tiktok: string | null;
1025
+ x: string | null;
1026
+ youtube: string | null;
1027
+ telegram: string | null;
1028
+ linkedin: string | null;
1029
+ spotify: string | null;
1030
+ };
1031
+ } | {
1032
+ error: string;
1033
+ };
1034
+ meta: object;
1035
+ }>;
1036
+ deleteAssociation: _trpc_server.TRPCMutationProcedure<{
1037
+ input: {
1038
+ id: number;
1039
+ };
1040
+ output: {
1041
+ error: string;
1042
+ } | {
1043
+ error: null;
1044
+ };
1045
+ meta: object;
1046
+ }>;
1047
+ }>>;
1048
+ faqs: _trpc_server.TRPCBuiltRouter<{
1049
+ ctx: {
1050
+ userId?: string;
1051
+ };
1052
+ meta: object;
1053
+ errorShape: {
1054
+ data: {
1055
+ zodError: {
1056
+ errors: string[];
1057
+ } | null;
1058
+ code: _trpc_server.TRPC_ERROR_CODE_KEY;
1059
+ httpStatus: number;
1060
+ path?: string;
1061
+ stack?: string;
1062
+ };
1063
+ message: string;
1064
+ code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
1065
+ };
1066
+ transformer: true;
1067
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
1068
+ getAllFaqs: _trpc_server.TRPCQueryProcedure<{
1069
+ input: void;
1070
+ output: {
1071
+ categoryId: number;
1072
+ titleIt: string;
1073
+ titleEn: string;
1074
+ icon: string | null;
1075
+ faqs: {
1076
+ faqId: number;
1077
+ titleIt: string;
1078
+ titleEn: string;
1079
+ descriptionIt: string;
1080
+ descriptionEn: string;
1081
+ }[];
1082
+ }[];
1083
+ meta: object;
1084
+ }>;
1085
+ addFaqs: _trpc_server.TRPCMutationProcedure<{
1086
+ input: {
1087
+ titleIt: string;
1088
+ titleEn: string;
1089
+ descriptionIt: string;
1090
+ descriptionEn: string;
1091
+ categoryId: number;
1092
+ createdBy: number;
1093
+ };
1094
+ output: {
1095
+ id: number;
1096
+ createdAt: Date;
1097
+ updatedAt: Date | null;
1098
+ modifiedBy: number | null;
1099
+ descriptionIt: string;
1100
+ descriptionEn: string;
1101
+ createdBy: number;
1102
+ titleIt: string;
1103
+ titleEn: string;
1104
+ categoryId: number;
1105
+ };
1106
+ meta: object;
1107
+ }>;
1108
+ addFaqsCategory: _trpc_server.TRPCMutationProcedure<{
1109
+ input: {
1110
+ titleIt: string;
1111
+ titleEn: string;
1112
+ icon: string | null;
1113
+ createdBy: number;
1114
+ };
1115
+ output: {
1116
+ id: number;
1117
+ createdAt: Date;
1118
+ updatedAt: Date | null;
1119
+ modifiedBy: number | null;
1120
+ createdBy: number;
1121
+ titleIt: string;
1122
+ titleEn: string;
1123
+ icon: string | null;
1124
+ };
1125
+ meta: object;
1126
+ }>;
1127
+ editFaqs: _trpc_server.TRPCMutationProcedure<{
1128
+ input: {
1129
+ id: number;
1130
+ titleIt: string;
1131
+ titleEn: string;
1132
+ descriptionIt: string;
1133
+ descriptionEn: string;
1134
+ categoryId: number;
1135
+ modifiedBy: number;
1136
+ };
1137
+ output: {
1138
+ updatedAt: Date | null;
1139
+ createdAt: Date;
1140
+ id: number;
1141
+ titleIt: string;
1142
+ titleEn: string;
1143
+ descriptionIt: string;
1144
+ descriptionEn: string;
1145
+ categoryId: number;
1146
+ createdBy: number;
1147
+ modifiedBy: number | null;
1148
+ } | {
1149
+ error: string;
1150
+ };
1151
+ meta: object;
1152
+ }>;
1153
+ editFaqsCategory: _trpc_server.TRPCMutationProcedure<{
1154
+ input: {
1155
+ id: number;
1156
+ titleIt: string;
1157
+ titleEn: string;
1158
+ icon: string | null;
1159
+ modifiedBy: number;
1160
+ };
1161
+ output: {
1162
+ updatedAt: Date | null;
1163
+ createdAt: Date;
1164
+ id: number;
1165
+ titleIt: string;
1166
+ titleEn: string;
1167
+ icon: string | null;
1168
+ createdBy: number;
1169
+ modifiedBy: number | null;
1170
+ } | {
1171
+ error: string;
1172
+ };
1173
+ meta: object;
1174
+ }>;
1175
+ deleteFaqs: _trpc_server.TRPCMutationProcedure<{
1176
+ input: {
1177
+ id: number;
1178
+ };
1179
+ output: {
1180
+ error: string;
1181
+ } | {
1182
+ error: null;
1183
+ };
1184
+ meta: object;
1185
+ }>;
1186
+ deleteFaqsCategory: _trpc_server.TRPCMutationProcedure<{
1187
+ input: {
1188
+ id: number;
1189
+ };
1190
+ output: {
1191
+ error: string;
1192
+ } | {
1193
+ error: null;
1194
+ };
1195
+ meta: object;
1196
+ }>;
1197
+ }>>;
1198
+ projects: _trpc_server.TRPCBuiltRouter<{
1199
+ ctx: {
1200
+ userId?: string;
1201
+ };
1202
+ meta: object;
1203
+ errorShape: {
1204
+ data: {
1205
+ zodError: {
1206
+ errors: string[];
1207
+ } | null;
1208
+ code: _trpc_server.TRPC_ERROR_CODE_KEY;
1209
+ httpStatus: number;
1210
+ path?: string;
1211
+ stack?: string;
1212
+ };
1213
+ message: string;
1214
+ code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
1215
+ };
1216
+ transformer: true;
1217
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
1218
+ getAllProjects: _trpc_server.TRPCQueryProcedure<{
1219
+ input: void;
1220
+ output: {
1221
+ id: number;
1222
+ title: string;
1223
+ descriptionIt: string;
1224
+ descriptionEn: string;
1225
+ logo: string | null;
1226
+ link: string | null;
1227
+ category: "news" | "deprecated" | "general";
1228
+ }[];
1229
+ meta: object;
1230
+ }>;
1231
+ addProject: _trpc_server.TRPCMutationProcedure<{
1232
+ input: {
1233
+ link: string | null;
1234
+ title: string;
1235
+ descriptionIt: string;
1236
+ descriptionEn: string;
1237
+ logo: string | null;
1238
+ category: "news" | "deprecated" | "general";
1239
+ createdBy: number;
1240
+ };
1241
+ output: {
1242
+ link: string | null;
1243
+ id: number;
1244
+ createdAt: Date;
1245
+ updatedAt: Date | null;
1246
+ modifiedBy: number | null;
1247
+ title: string;
1248
+ descriptionIt: string;
1249
+ descriptionEn: string;
1250
+ createdBy: number;
1251
+ logo: string | null;
1252
+ category: "news" | "deprecated" | "general";
1253
+ order: number;
1254
+ };
1255
+ meta: object;
1256
+ }>;
1257
+ editProject: _trpc_server.TRPCMutationProcedure<{
1258
+ input: {
1259
+ id: number;
1260
+ title: string;
1261
+ descriptionIt: string;
1262
+ descriptionEn: string;
1263
+ logo: string | null;
1264
+ link: string | null;
1265
+ category: "news" | "deprecated" | "general";
1266
+ modifiedBy: number;
1267
+ };
1268
+ output: {
1269
+ updatedAt: Date | null;
1270
+ createdAt: Date;
1271
+ id: number;
1272
+ title: string;
1273
+ descriptionIt: string;
1274
+ descriptionEn: string;
1275
+ logo: string | null;
1276
+ link: string | null;
1277
+ category: "news" | "deprecated" | "general";
1278
+ order: number;
1279
+ createdBy: number;
1280
+ modifiedBy: number | null;
1281
+ } | {
1282
+ error: string;
1283
+ };
1284
+ meta: object;
1285
+ }>;
1286
+ reorderProjects: _trpc_server.TRPCMutationProcedure<{
1287
+ input: {
1288
+ projectIds: number[];
1289
+ };
1290
+ output: {
1291
+ error: null;
1292
+ };
1293
+ meta: object;
1294
+ }>;
1295
+ deleteProject: _trpc_server.TRPCMutationProcedure<{
1296
+ input: {
1297
+ id: number;
1298
+ };
1299
+ output: {
1300
+ error: string;
1301
+ } | {
1302
+ error: null;
1303
+ };
1304
+ meta: object;
1305
+ }>;
1306
+ }>>;
1307
+ }>>;
872
1308
  auth: _trpc_server.TRPCBuiltRouter<{
873
1309
  ctx: {
874
1310
  userId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polinetwork/backend",
3
- "version": "0.16.0",
3
+ "version": "0.16.3",
4
4
  "description": "Utils to interact with the backend.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,10 +27,11 @@
27
27
  "types": "./dist/index.d.ts"
28
28
  }
29
29
  },
30
+ "scripts": {
31
+ "build": "cd .. && bun install && bun run build:npm",
32
+ "prepublishOnly": "bun run build"
33
+ },
30
34
  "devDependencies": {
31
35
  "typescript": "^5.9.2"
32
- },
33
- "scripts": {
34
- "build": "cd .. && bun install && bun run build:npm"
35
36
  }
36
37
  }