@polinetwork/backend 0.16.3 → 0.17.0
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 +126 -7
- package/dist/index.d.ts +126 -7
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -25,6 +25,15 @@ type ParsedUser = {
|
|
|
25
25
|
isMember: boolean;
|
|
26
26
|
assignedLicensesIds: string[];
|
|
27
27
|
};
|
|
28
|
+
type ParsedGroup = {
|
|
29
|
+
id: string;
|
|
30
|
+
displayName: string;
|
|
31
|
+
mailAddress: string | null;
|
|
32
|
+
members: Array<{
|
|
33
|
+
id: string;
|
|
34
|
+
displayName: string;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
28
37
|
|
|
29
38
|
declare const AUDIT_TYPE: {
|
|
30
39
|
readonly BAN: "ban";
|
|
@@ -868,6 +877,48 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
868
877
|
meta: object;
|
|
869
878
|
}>;
|
|
870
879
|
}>>;
|
|
880
|
+
groups: _trpc_server.TRPCBuiltRouter<{
|
|
881
|
+
ctx: {
|
|
882
|
+
userId?: string;
|
|
883
|
+
};
|
|
884
|
+
meta: object;
|
|
885
|
+
errorShape: {
|
|
886
|
+
data: {
|
|
887
|
+
zodError: {
|
|
888
|
+
errors: string[];
|
|
889
|
+
} | null;
|
|
890
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
891
|
+
httpStatus: number;
|
|
892
|
+
path?: string;
|
|
893
|
+
stack?: string;
|
|
894
|
+
};
|
|
895
|
+
message: string;
|
|
896
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
897
|
+
};
|
|
898
|
+
transformer: true;
|
|
899
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
900
|
+
getAll: _trpc_server.TRPCQueryProcedure<{
|
|
901
|
+
input: void;
|
|
902
|
+
output: ParsedGroup[];
|
|
903
|
+
meta: object;
|
|
904
|
+
}>;
|
|
905
|
+
addMember: _trpc_server.TRPCMutationProcedure<{
|
|
906
|
+
input: {
|
|
907
|
+
groupId: string;
|
|
908
|
+
userId: string;
|
|
909
|
+
};
|
|
910
|
+
output: boolean;
|
|
911
|
+
meta: object;
|
|
912
|
+
}>;
|
|
913
|
+
removeMember: _trpc_server.TRPCMutationProcedure<{
|
|
914
|
+
input: {
|
|
915
|
+
groupId: string;
|
|
916
|
+
userId: string;
|
|
917
|
+
};
|
|
918
|
+
output: boolean;
|
|
919
|
+
meta: object;
|
|
920
|
+
}>;
|
|
921
|
+
}>>;
|
|
871
922
|
}>>;
|
|
872
923
|
web: _trpc_server.TRPCBuiltRouter<{
|
|
873
924
|
ctx: {
|
|
@@ -916,7 +967,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
916
967
|
name: string;
|
|
917
968
|
descriptionIt: string;
|
|
918
969
|
descriptionEn: string;
|
|
919
|
-
|
|
970
|
+
logo: string | null;
|
|
920
971
|
links: {
|
|
921
972
|
email: string | null;
|
|
922
973
|
website: string | null;
|
|
@@ -937,7 +988,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
937
988
|
name: string;
|
|
938
989
|
descriptionIt: string;
|
|
939
990
|
descriptionEn: string;
|
|
940
|
-
|
|
991
|
+
logo: string | null;
|
|
941
992
|
createdBy: number;
|
|
942
993
|
};
|
|
943
994
|
output: {
|
|
@@ -945,7 +996,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
945
996
|
name: string;
|
|
946
997
|
descriptionIt: string;
|
|
947
998
|
descriptionEn: string;
|
|
948
|
-
|
|
999
|
+
logo: string | null;
|
|
949
1000
|
links: {
|
|
950
1001
|
email: string | null;
|
|
951
1002
|
website: string | null;
|
|
@@ -967,7 +1018,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
967
1018
|
name: string;
|
|
968
1019
|
descriptionIt: string;
|
|
969
1020
|
descriptionEn: string;
|
|
970
|
-
|
|
1021
|
+
logo: string | null;
|
|
971
1022
|
modifiedBy: number;
|
|
972
1023
|
};
|
|
973
1024
|
output: {
|
|
@@ -975,7 +1026,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
975
1026
|
name: string;
|
|
976
1027
|
descriptionIt: string;
|
|
977
1028
|
descriptionEn: string;
|
|
978
|
-
|
|
1029
|
+
logo: string | null;
|
|
979
1030
|
links: {
|
|
980
1031
|
email: string | null;
|
|
981
1032
|
website: string | null;
|
|
@@ -1015,7 +1066,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1015
1066
|
name: string;
|
|
1016
1067
|
descriptionIt: string;
|
|
1017
1068
|
descriptionEn: string;
|
|
1018
|
-
|
|
1069
|
+
logo: string | null;
|
|
1019
1070
|
links: {
|
|
1020
1071
|
email: string | null;
|
|
1021
1072
|
website: string | null;
|
|
@@ -1247,8 +1298,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1247
1298
|
title: string;
|
|
1248
1299
|
descriptionIt: string;
|
|
1249
1300
|
descriptionEn: string;
|
|
1250
|
-
createdBy: number;
|
|
1251
1301
|
logo: string | null;
|
|
1302
|
+
createdBy: number;
|
|
1252
1303
|
category: "news" | "deprecated" | "general";
|
|
1253
1304
|
order: number;
|
|
1254
1305
|
};
|
|
@@ -1304,6 +1355,74 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1304
1355
|
meta: object;
|
|
1305
1356
|
}>;
|
|
1306
1357
|
}>>;
|
|
1358
|
+
guides_matricole: _trpc_server.TRPCBuiltRouter<{
|
|
1359
|
+
ctx: {
|
|
1360
|
+
userId?: string;
|
|
1361
|
+
};
|
|
1362
|
+
meta: object;
|
|
1363
|
+
errorShape: {
|
|
1364
|
+
data: {
|
|
1365
|
+
zodError: {
|
|
1366
|
+
errors: string[];
|
|
1367
|
+
} | null;
|
|
1368
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
1369
|
+
httpStatus: number;
|
|
1370
|
+
path?: string;
|
|
1371
|
+
stack?: string;
|
|
1372
|
+
};
|
|
1373
|
+
message: string;
|
|
1374
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
1375
|
+
};
|
|
1376
|
+
transformer: true;
|
|
1377
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
1378
|
+
getAllGuides: _trpc_server.TRPCQueryProcedure<{
|
|
1379
|
+
input: void;
|
|
1380
|
+
output: {
|
|
1381
|
+
id: number;
|
|
1382
|
+
version: string;
|
|
1383
|
+
date: string;
|
|
1384
|
+
file: string;
|
|
1385
|
+
}[];
|
|
1386
|
+
meta: object;
|
|
1387
|
+
}>;
|
|
1388
|
+
getLatestGuide: _trpc_server.TRPCQueryProcedure<{
|
|
1389
|
+
input: void;
|
|
1390
|
+
output: {
|
|
1391
|
+
id: number;
|
|
1392
|
+
version: string;
|
|
1393
|
+
date: string;
|
|
1394
|
+
file: string;
|
|
1395
|
+
} | null;
|
|
1396
|
+
meta: object;
|
|
1397
|
+
}>;
|
|
1398
|
+
addGuide: _trpc_server.TRPCMutationProcedure<{
|
|
1399
|
+
input: FormData;
|
|
1400
|
+
output: {
|
|
1401
|
+
date: string;
|
|
1402
|
+
file: string;
|
|
1403
|
+
id: number;
|
|
1404
|
+
createdAt: Date;
|
|
1405
|
+
updatedAt: Date | null;
|
|
1406
|
+
modifiedBy: number | null;
|
|
1407
|
+
createdBy: number;
|
|
1408
|
+
version: string;
|
|
1409
|
+
} | {
|
|
1410
|
+
error: string;
|
|
1411
|
+
};
|
|
1412
|
+
meta: object;
|
|
1413
|
+
}>;
|
|
1414
|
+
deleteGuide: _trpc_server.TRPCMutationProcedure<{
|
|
1415
|
+
input: {
|
|
1416
|
+
id: number;
|
|
1417
|
+
};
|
|
1418
|
+
output: {
|
|
1419
|
+
error: string;
|
|
1420
|
+
} | {
|
|
1421
|
+
error: null;
|
|
1422
|
+
};
|
|
1423
|
+
meta: object;
|
|
1424
|
+
}>;
|
|
1425
|
+
}>>;
|
|
1307
1426
|
}>>;
|
|
1308
1427
|
auth: _trpc_server.TRPCBuiltRouter<{
|
|
1309
1428
|
ctx: {
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,15 @@ type ParsedUser = {
|
|
|
25
25
|
isMember: boolean;
|
|
26
26
|
assignedLicensesIds: string[];
|
|
27
27
|
};
|
|
28
|
+
type ParsedGroup = {
|
|
29
|
+
id: string;
|
|
30
|
+
displayName: string;
|
|
31
|
+
mailAddress: string | null;
|
|
32
|
+
members: Array<{
|
|
33
|
+
id: string;
|
|
34
|
+
displayName: string;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
28
37
|
|
|
29
38
|
declare const AUDIT_TYPE: {
|
|
30
39
|
readonly BAN: "ban";
|
|
@@ -868,6 +877,48 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
868
877
|
meta: object;
|
|
869
878
|
}>;
|
|
870
879
|
}>>;
|
|
880
|
+
groups: _trpc_server.TRPCBuiltRouter<{
|
|
881
|
+
ctx: {
|
|
882
|
+
userId?: string;
|
|
883
|
+
};
|
|
884
|
+
meta: object;
|
|
885
|
+
errorShape: {
|
|
886
|
+
data: {
|
|
887
|
+
zodError: {
|
|
888
|
+
errors: string[];
|
|
889
|
+
} | null;
|
|
890
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
891
|
+
httpStatus: number;
|
|
892
|
+
path?: string;
|
|
893
|
+
stack?: string;
|
|
894
|
+
};
|
|
895
|
+
message: string;
|
|
896
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
897
|
+
};
|
|
898
|
+
transformer: true;
|
|
899
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
900
|
+
getAll: _trpc_server.TRPCQueryProcedure<{
|
|
901
|
+
input: void;
|
|
902
|
+
output: ParsedGroup[];
|
|
903
|
+
meta: object;
|
|
904
|
+
}>;
|
|
905
|
+
addMember: _trpc_server.TRPCMutationProcedure<{
|
|
906
|
+
input: {
|
|
907
|
+
groupId: string;
|
|
908
|
+
userId: string;
|
|
909
|
+
};
|
|
910
|
+
output: boolean;
|
|
911
|
+
meta: object;
|
|
912
|
+
}>;
|
|
913
|
+
removeMember: _trpc_server.TRPCMutationProcedure<{
|
|
914
|
+
input: {
|
|
915
|
+
groupId: string;
|
|
916
|
+
userId: string;
|
|
917
|
+
};
|
|
918
|
+
output: boolean;
|
|
919
|
+
meta: object;
|
|
920
|
+
}>;
|
|
921
|
+
}>>;
|
|
871
922
|
}>>;
|
|
872
923
|
web: _trpc_server.TRPCBuiltRouter<{
|
|
873
924
|
ctx: {
|
|
@@ -916,7 +967,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
916
967
|
name: string;
|
|
917
968
|
descriptionIt: string;
|
|
918
969
|
descriptionEn: string;
|
|
919
|
-
|
|
970
|
+
logo: string | null;
|
|
920
971
|
links: {
|
|
921
972
|
email: string | null;
|
|
922
973
|
website: string | null;
|
|
@@ -937,7 +988,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
937
988
|
name: string;
|
|
938
989
|
descriptionIt: string;
|
|
939
990
|
descriptionEn: string;
|
|
940
|
-
|
|
991
|
+
logo: string | null;
|
|
941
992
|
createdBy: number;
|
|
942
993
|
};
|
|
943
994
|
output: {
|
|
@@ -945,7 +996,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
945
996
|
name: string;
|
|
946
997
|
descriptionIt: string;
|
|
947
998
|
descriptionEn: string;
|
|
948
|
-
|
|
999
|
+
logo: string | null;
|
|
949
1000
|
links: {
|
|
950
1001
|
email: string | null;
|
|
951
1002
|
website: string | null;
|
|
@@ -967,7 +1018,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
967
1018
|
name: string;
|
|
968
1019
|
descriptionIt: string;
|
|
969
1020
|
descriptionEn: string;
|
|
970
|
-
|
|
1021
|
+
logo: string | null;
|
|
971
1022
|
modifiedBy: number;
|
|
972
1023
|
};
|
|
973
1024
|
output: {
|
|
@@ -975,7 +1026,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
975
1026
|
name: string;
|
|
976
1027
|
descriptionIt: string;
|
|
977
1028
|
descriptionEn: string;
|
|
978
|
-
|
|
1029
|
+
logo: string | null;
|
|
979
1030
|
links: {
|
|
980
1031
|
email: string | null;
|
|
981
1032
|
website: string | null;
|
|
@@ -1015,7 +1066,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1015
1066
|
name: string;
|
|
1016
1067
|
descriptionIt: string;
|
|
1017
1068
|
descriptionEn: string;
|
|
1018
|
-
|
|
1069
|
+
logo: string | null;
|
|
1019
1070
|
links: {
|
|
1020
1071
|
email: string | null;
|
|
1021
1072
|
website: string | null;
|
|
@@ -1247,8 +1298,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1247
1298
|
title: string;
|
|
1248
1299
|
descriptionIt: string;
|
|
1249
1300
|
descriptionEn: string;
|
|
1250
|
-
createdBy: number;
|
|
1251
1301
|
logo: string | null;
|
|
1302
|
+
createdBy: number;
|
|
1252
1303
|
category: "news" | "deprecated" | "general";
|
|
1253
1304
|
order: number;
|
|
1254
1305
|
};
|
|
@@ -1304,6 +1355,74 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1304
1355
|
meta: object;
|
|
1305
1356
|
}>;
|
|
1306
1357
|
}>>;
|
|
1358
|
+
guides_matricole: _trpc_server.TRPCBuiltRouter<{
|
|
1359
|
+
ctx: {
|
|
1360
|
+
userId?: string;
|
|
1361
|
+
};
|
|
1362
|
+
meta: object;
|
|
1363
|
+
errorShape: {
|
|
1364
|
+
data: {
|
|
1365
|
+
zodError: {
|
|
1366
|
+
errors: string[];
|
|
1367
|
+
} | null;
|
|
1368
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
1369
|
+
httpStatus: number;
|
|
1370
|
+
path?: string;
|
|
1371
|
+
stack?: string;
|
|
1372
|
+
};
|
|
1373
|
+
message: string;
|
|
1374
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
1375
|
+
};
|
|
1376
|
+
transformer: true;
|
|
1377
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
1378
|
+
getAllGuides: _trpc_server.TRPCQueryProcedure<{
|
|
1379
|
+
input: void;
|
|
1380
|
+
output: {
|
|
1381
|
+
id: number;
|
|
1382
|
+
version: string;
|
|
1383
|
+
date: string;
|
|
1384
|
+
file: string;
|
|
1385
|
+
}[];
|
|
1386
|
+
meta: object;
|
|
1387
|
+
}>;
|
|
1388
|
+
getLatestGuide: _trpc_server.TRPCQueryProcedure<{
|
|
1389
|
+
input: void;
|
|
1390
|
+
output: {
|
|
1391
|
+
id: number;
|
|
1392
|
+
version: string;
|
|
1393
|
+
date: string;
|
|
1394
|
+
file: string;
|
|
1395
|
+
} | null;
|
|
1396
|
+
meta: object;
|
|
1397
|
+
}>;
|
|
1398
|
+
addGuide: _trpc_server.TRPCMutationProcedure<{
|
|
1399
|
+
input: FormData;
|
|
1400
|
+
output: {
|
|
1401
|
+
date: string;
|
|
1402
|
+
file: string;
|
|
1403
|
+
id: number;
|
|
1404
|
+
createdAt: Date;
|
|
1405
|
+
updatedAt: Date | null;
|
|
1406
|
+
modifiedBy: number | null;
|
|
1407
|
+
createdBy: number;
|
|
1408
|
+
version: string;
|
|
1409
|
+
} | {
|
|
1410
|
+
error: string;
|
|
1411
|
+
};
|
|
1412
|
+
meta: object;
|
|
1413
|
+
}>;
|
|
1414
|
+
deleteGuide: _trpc_server.TRPCMutationProcedure<{
|
|
1415
|
+
input: {
|
|
1416
|
+
id: number;
|
|
1417
|
+
};
|
|
1418
|
+
output: {
|
|
1419
|
+
error: string;
|
|
1420
|
+
} | {
|
|
1421
|
+
error: null;
|
|
1422
|
+
};
|
|
1423
|
+
meta: object;
|
|
1424
|
+
}>;
|
|
1425
|
+
}>>;
|
|
1307
1426
|
}>>;
|
|
1308
1427
|
auth: _trpc_server.TRPCBuiltRouter<{
|
|
1309
1428
|
ctx: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polinetwork/backend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
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
|
+
}
|