@polinetwork/backend 0.16.1 → 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
@@ -889,6 +889,162 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
889
889
  };
890
890
  transformer: true;
891
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
+ }>>;
892
1048
  faqs: _trpc_server.TRPCBuiltRouter<{
893
1049
  ctx: {
894
1050
  userId?: string;
@@ -940,11 +1096,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
940
1096
  createdAt: Date;
941
1097
  updatedAt: Date | null;
942
1098
  modifiedBy: number | null;
943
- titleIt: string;
944
- titleEn: string;
945
- createdBy: number;
946
1099
  descriptionIt: string;
947
1100
  descriptionEn: string;
1101
+ createdBy: number;
1102
+ titleIt: string;
1103
+ titleEn: string;
948
1104
  categoryId: number;
949
1105
  };
950
1106
  meta: object;
@@ -961,10 +1117,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
961
1117
  createdAt: Date;
962
1118
  updatedAt: Date | null;
963
1119
  modifiedBy: number | null;
1120
+ createdBy: number;
964
1121
  titleIt: string;
965
1122
  titleEn: string;
966
1123
  icon: string | null;
967
- createdBy: number;
968
1124
  };
969
1125
  meta: object;
970
1126
  }>;
@@ -1039,6 +1195,115 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1039
1195
  meta: object;
1040
1196
  }>;
1041
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
+ }>>;
1042
1307
  }>>;
1043
1308
  auth: _trpc_server.TRPCBuiltRouter<{
1044
1309
  ctx: {
package/dist/index.d.ts CHANGED
@@ -889,6 +889,162 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
889
889
  };
890
890
  transformer: true;
891
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
+ }>>;
892
1048
  faqs: _trpc_server.TRPCBuiltRouter<{
893
1049
  ctx: {
894
1050
  userId?: string;
@@ -940,11 +1096,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
940
1096
  createdAt: Date;
941
1097
  updatedAt: Date | null;
942
1098
  modifiedBy: number | null;
943
- titleIt: string;
944
- titleEn: string;
945
- createdBy: number;
946
1099
  descriptionIt: string;
947
1100
  descriptionEn: string;
1101
+ createdBy: number;
1102
+ titleIt: string;
1103
+ titleEn: string;
948
1104
  categoryId: number;
949
1105
  };
950
1106
  meta: object;
@@ -961,10 +1117,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
961
1117
  createdAt: Date;
962
1118
  updatedAt: Date | null;
963
1119
  modifiedBy: number | null;
1120
+ createdBy: number;
964
1121
  titleIt: string;
965
1122
  titleEn: string;
966
1123
  icon: string | null;
967
- createdBy: number;
968
1124
  };
969
1125
  meta: object;
970
1126
  }>;
@@ -1039,6 +1195,115 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1039
1195
  meta: object;
1040
1196
  }>;
1041
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
+ }>>;
1042
1307
  }>>;
1043
1308
  auth: _trpc_server.TRPCBuiltRouter<{
1044
1309
  ctx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polinetwork/backend",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "description": "Utils to interact with the backend.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,4 +34,4 @@
34
34
  "devDependencies": {
35
35
  "typescript": "^5.9.2"
36
36
  }
37
- }
37
+ }