@fnlb-project/database 1.0.66 → 1.0.67
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.ts +54 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -295,6 +295,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
295
295
|
type: any;
|
|
296
296
|
args: string[];
|
|
297
297
|
function?: string | null | undefined;
|
|
298
|
+
id?: string | null | undefined;
|
|
298
299
|
_id?: unknown;
|
|
299
300
|
command?: string | null | undefined;
|
|
300
301
|
condition?: string | null | undefined;
|
|
@@ -302,6 +303,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
302
303
|
type: any;
|
|
303
304
|
args: string[];
|
|
304
305
|
function?: string | null | undefined;
|
|
306
|
+
id?: string | null | undefined;
|
|
305
307
|
_id?: unknown;
|
|
306
308
|
command?: string | null | undefined;
|
|
307
309
|
condition?: string | null | undefined;
|
|
@@ -309,6 +311,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
309
311
|
type: any;
|
|
310
312
|
args: string[];
|
|
311
313
|
function?: string | null | undefined;
|
|
314
|
+
id?: string | null | undefined;
|
|
312
315
|
_id?: unknown;
|
|
313
316
|
command?: string | null | undefined;
|
|
314
317
|
condition?: string | null | undefined;
|
|
@@ -325,6 +328,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
325
328
|
type: any;
|
|
326
329
|
args: string[];
|
|
327
330
|
function?: string | null | undefined;
|
|
331
|
+
id?: string | null | undefined;
|
|
328
332
|
_id?: unknown;
|
|
329
333
|
command?: string | null | undefined;
|
|
330
334
|
condition?: string | null | undefined;
|
|
@@ -332,6 +336,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
332
336
|
type: any;
|
|
333
337
|
args: string[];
|
|
334
338
|
function?: string | null | undefined;
|
|
339
|
+
id?: string | null | undefined;
|
|
335
340
|
_id?: unknown;
|
|
336
341
|
command?: string | null | undefined;
|
|
337
342
|
condition?: string | null | undefined;
|
|
@@ -339,6 +344,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
339
344
|
type: any;
|
|
340
345
|
args: string[];
|
|
341
346
|
function?: string | null | undefined;
|
|
347
|
+
id?: string | null | undefined;
|
|
342
348
|
_id?: unknown;
|
|
343
349
|
command?: string | null | undefined;
|
|
344
350
|
condition?: string | null | undefined;
|
|
@@ -355,6 +361,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
355
361
|
type: any;
|
|
356
362
|
args: string[];
|
|
357
363
|
function?: string | null | undefined;
|
|
364
|
+
id?: string | null | undefined;
|
|
358
365
|
_id?: unknown;
|
|
359
366
|
command?: string | null | undefined;
|
|
360
367
|
condition?: string | null | undefined;
|
|
@@ -362,6 +369,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
362
369
|
type: any;
|
|
363
370
|
args: string[];
|
|
364
371
|
function?: string | null | undefined;
|
|
372
|
+
id?: string | null | undefined;
|
|
365
373
|
_id?: unknown;
|
|
366
374
|
command?: string | null | undefined;
|
|
367
375
|
condition?: string | null | undefined;
|
|
@@ -369,6 +377,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
369
377
|
type: any;
|
|
370
378
|
args: string[];
|
|
371
379
|
function?: string | null | undefined;
|
|
380
|
+
id?: string | null | undefined;
|
|
372
381
|
_id?: unknown;
|
|
373
382
|
command?: string | null | undefined;
|
|
374
383
|
condition?: string | null | undefined;
|
|
@@ -742,6 +751,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
742
751
|
type: any;
|
|
743
752
|
args: string[];
|
|
744
753
|
function?: string | null | undefined;
|
|
754
|
+
id?: string | null | undefined;
|
|
745
755
|
_id?: unknown;
|
|
746
756
|
command?: string | null | undefined;
|
|
747
757
|
condition?: string | null | undefined;
|
|
@@ -749,6 +759,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
749
759
|
type: any;
|
|
750
760
|
args: string[];
|
|
751
761
|
function?: string | null | undefined;
|
|
762
|
+
id?: string | null | undefined;
|
|
752
763
|
_id?: unknown;
|
|
753
764
|
command?: string | null | undefined;
|
|
754
765
|
condition?: string | null | undefined;
|
|
@@ -756,6 +767,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
756
767
|
type: any;
|
|
757
768
|
args: string[];
|
|
758
769
|
function?: string | null | undefined;
|
|
770
|
+
id?: string | null | undefined;
|
|
759
771
|
_id?: unknown;
|
|
760
772
|
command?: string | null | undefined;
|
|
761
773
|
condition?: string | null | undefined;
|
|
@@ -772,6 +784,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
772
784
|
type: any;
|
|
773
785
|
args: string[];
|
|
774
786
|
function?: string | null | undefined;
|
|
787
|
+
id?: string | null | undefined;
|
|
775
788
|
_id?: unknown;
|
|
776
789
|
command?: string | null | undefined;
|
|
777
790
|
condition?: string | null | undefined;
|
|
@@ -779,6 +792,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
779
792
|
type: any;
|
|
780
793
|
args: string[];
|
|
781
794
|
function?: string | null | undefined;
|
|
795
|
+
id?: string | null | undefined;
|
|
782
796
|
_id?: unknown;
|
|
783
797
|
command?: string | null | undefined;
|
|
784
798
|
condition?: string | null | undefined;
|
|
@@ -786,6 +800,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
786
800
|
type: any;
|
|
787
801
|
args: string[];
|
|
788
802
|
function?: string | null | undefined;
|
|
803
|
+
id?: string | null | undefined;
|
|
789
804
|
_id?: unknown;
|
|
790
805
|
command?: string | null | undefined;
|
|
791
806
|
condition?: string | null | undefined;
|
|
@@ -802,6 +817,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
802
817
|
type: any;
|
|
803
818
|
args: string[];
|
|
804
819
|
function?: string | null | undefined;
|
|
820
|
+
id?: string | null | undefined;
|
|
805
821
|
_id?: unknown;
|
|
806
822
|
command?: string | null | undefined;
|
|
807
823
|
condition?: string | null | undefined;
|
|
@@ -809,6 +825,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
809
825
|
type: any;
|
|
810
826
|
args: string[];
|
|
811
827
|
function?: string | null | undefined;
|
|
828
|
+
id?: string | null | undefined;
|
|
812
829
|
_id?: unknown;
|
|
813
830
|
command?: string | null | undefined;
|
|
814
831
|
condition?: string | null | undefined;
|
|
@@ -816,6 +833,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
816
833
|
type: any;
|
|
817
834
|
args: string[];
|
|
818
835
|
function?: string | null | undefined;
|
|
836
|
+
id?: string | null | undefined;
|
|
819
837
|
_id?: unknown;
|
|
820
838
|
command?: string | null | undefined;
|
|
821
839
|
condition?: string | null | undefined;
|
|
@@ -1189,6 +1207,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1189
1207
|
type: any;
|
|
1190
1208
|
args: string[];
|
|
1191
1209
|
function?: string | null | undefined;
|
|
1210
|
+
id?: string | null | undefined;
|
|
1192
1211
|
_id?: unknown;
|
|
1193
1212
|
command?: string | null | undefined;
|
|
1194
1213
|
condition?: string | null | undefined;
|
|
@@ -1196,6 +1215,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1196
1215
|
type: any;
|
|
1197
1216
|
args: string[];
|
|
1198
1217
|
function?: string | null | undefined;
|
|
1218
|
+
id?: string | null | undefined;
|
|
1199
1219
|
_id?: unknown;
|
|
1200
1220
|
command?: string | null | undefined;
|
|
1201
1221
|
condition?: string | null | undefined;
|
|
@@ -1203,6 +1223,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1203
1223
|
type: any;
|
|
1204
1224
|
args: string[];
|
|
1205
1225
|
function?: string | null | undefined;
|
|
1226
|
+
id?: string | null | undefined;
|
|
1206
1227
|
_id?: unknown;
|
|
1207
1228
|
command?: string | null | undefined;
|
|
1208
1229
|
condition?: string | null | undefined;
|
|
@@ -1219,6 +1240,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1219
1240
|
type: any;
|
|
1220
1241
|
args: string[];
|
|
1221
1242
|
function?: string | null | undefined;
|
|
1243
|
+
id?: string | null | undefined;
|
|
1222
1244
|
_id?: unknown;
|
|
1223
1245
|
command?: string | null | undefined;
|
|
1224
1246
|
condition?: string | null | undefined;
|
|
@@ -1226,6 +1248,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1226
1248
|
type: any;
|
|
1227
1249
|
args: string[];
|
|
1228
1250
|
function?: string | null | undefined;
|
|
1251
|
+
id?: string | null | undefined;
|
|
1229
1252
|
_id?: unknown;
|
|
1230
1253
|
command?: string | null | undefined;
|
|
1231
1254
|
condition?: string | null | undefined;
|
|
@@ -1233,6 +1256,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1233
1256
|
type: any;
|
|
1234
1257
|
args: string[];
|
|
1235
1258
|
function?: string | null | undefined;
|
|
1259
|
+
id?: string | null | undefined;
|
|
1236
1260
|
_id?: unknown;
|
|
1237
1261
|
command?: string | null | undefined;
|
|
1238
1262
|
condition?: string | null | undefined;
|
|
@@ -1249,6 +1273,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1249
1273
|
type: any;
|
|
1250
1274
|
args: string[];
|
|
1251
1275
|
function?: string | null | undefined;
|
|
1276
|
+
id?: string | null | undefined;
|
|
1252
1277
|
_id?: unknown;
|
|
1253
1278
|
command?: string | null | undefined;
|
|
1254
1279
|
condition?: string | null | undefined;
|
|
@@ -1256,6 +1281,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1256
1281
|
type: any;
|
|
1257
1282
|
args: string[];
|
|
1258
1283
|
function?: string | null | undefined;
|
|
1284
|
+
id?: string | null | undefined;
|
|
1259
1285
|
_id?: unknown;
|
|
1260
1286
|
command?: string | null | undefined;
|
|
1261
1287
|
condition?: string | null | undefined;
|
|
@@ -1263,6 +1289,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1263
1289
|
type: any;
|
|
1264
1290
|
args: string[];
|
|
1265
1291
|
function?: string | null | undefined;
|
|
1292
|
+
id?: string | null | undefined;
|
|
1266
1293
|
_id?: unknown;
|
|
1267
1294
|
command?: string | null | undefined;
|
|
1268
1295
|
condition?: string | null | undefined;
|
|
@@ -1640,6 +1667,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1640
1667
|
type: any;
|
|
1641
1668
|
args: string[];
|
|
1642
1669
|
function?: string | null | undefined;
|
|
1670
|
+
id?: string | null | undefined;
|
|
1643
1671
|
_id?: unknown;
|
|
1644
1672
|
command?: string | null | undefined;
|
|
1645
1673
|
condition?: string | null | undefined;
|
|
@@ -1647,6 +1675,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1647
1675
|
type: any;
|
|
1648
1676
|
args: string[];
|
|
1649
1677
|
function?: string | null | undefined;
|
|
1678
|
+
id?: string | null | undefined;
|
|
1650
1679
|
_id?: unknown;
|
|
1651
1680
|
command?: string | null | undefined;
|
|
1652
1681
|
condition?: string | null | undefined;
|
|
@@ -1654,6 +1683,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1654
1683
|
type: any;
|
|
1655
1684
|
args: string[];
|
|
1656
1685
|
function?: string | null | undefined;
|
|
1686
|
+
id?: string | null | undefined;
|
|
1657
1687
|
_id?: unknown;
|
|
1658
1688
|
command?: string | null | undefined;
|
|
1659
1689
|
condition?: string | null | undefined;
|
|
@@ -1670,6 +1700,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1670
1700
|
type: any;
|
|
1671
1701
|
args: string[];
|
|
1672
1702
|
function?: string | null | undefined;
|
|
1703
|
+
id?: string | null | undefined;
|
|
1673
1704
|
_id?: unknown;
|
|
1674
1705
|
command?: string | null | undefined;
|
|
1675
1706
|
condition?: string | null | undefined;
|
|
@@ -1677,6 +1708,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1677
1708
|
type: any;
|
|
1678
1709
|
args: string[];
|
|
1679
1710
|
function?: string | null | undefined;
|
|
1711
|
+
id?: string | null | undefined;
|
|
1680
1712
|
_id?: unknown;
|
|
1681
1713
|
command?: string | null | undefined;
|
|
1682
1714
|
condition?: string | null | undefined;
|
|
@@ -1684,6 +1716,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1684
1716
|
type: any;
|
|
1685
1717
|
args: string[];
|
|
1686
1718
|
function?: string | null | undefined;
|
|
1719
|
+
id?: string | null | undefined;
|
|
1687
1720
|
_id?: unknown;
|
|
1688
1721
|
command?: string | null | undefined;
|
|
1689
1722
|
condition?: string | null | undefined;
|
|
@@ -1700,6 +1733,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1700
1733
|
type: any;
|
|
1701
1734
|
args: string[];
|
|
1702
1735
|
function?: string | null | undefined;
|
|
1736
|
+
id?: string | null | undefined;
|
|
1703
1737
|
_id?: unknown;
|
|
1704
1738
|
command?: string | null | undefined;
|
|
1705
1739
|
condition?: string | null | undefined;
|
|
@@ -1707,6 +1741,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1707
1741
|
type: any;
|
|
1708
1742
|
args: string[];
|
|
1709
1743
|
function?: string | null | undefined;
|
|
1744
|
+
id?: string | null | undefined;
|
|
1710
1745
|
_id?: unknown;
|
|
1711
1746
|
command?: string | null | undefined;
|
|
1712
1747
|
condition?: string | null | undefined;
|
|
@@ -1714,6 +1749,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
1714
1749
|
type: any;
|
|
1715
1750
|
args: string[];
|
|
1716
1751
|
function?: string | null | undefined;
|
|
1752
|
+
id?: string | null | undefined;
|
|
1717
1753
|
_id?: unknown;
|
|
1718
1754
|
command?: string | null | undefined;
|
|
1719
1755
|
condition?: string | null | undefined;
|
|
@@ -2087,6 +2123,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2087
2123
|
type: any;
|
|
2088
2124
|
args: string[];
|
|
2089
2125
|
function?: string | null | undefined;
|
|
2126
|
+
id?: string | null | undefined;
|
|
2090
2127
|
_id?: unknown;
|
|
2091
2128
|
command?: string | null | undefined;
|
|
2092
2129
|
condition?: string | null | undefined;
|
|
@@ -2094,6 +2131,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2094
2131
|
type: any;
|
|
2095
2132
|
args: string[];
|
|
2096
2133
|
function?: string | null | undefined;
|
|
2134
|
+
id?: string | null | undefined;
|
|
2097
2135
|
_id?: unknown;
|
|
2098
2136
|
command?: string | null | undefined;
|
|
2099
2137
|
condition?: string | null | undefined;
|
|
@@ -2101,6 +2139,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2101
2139
|
type: any;
|
|
2102
2140
|
args: string[];
|
|
2103
2141
|
function?: string | null | undefined;
|
|
2142
|
+
id?: string | null | undefined;
|
|
2104
2143
|
_id?: unknown;
|
|
2105
2144
|
command?: string | null | undefined;
|
|
2106
2145
|
condition?: string | null | undefined;
|
|
@@ -2117,6 +2156,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2117
2156
|
type: any;
|
|
2118
2157
|
args: string[];
|
|
2119
2158
|
function?: string | null | undefined;
|
|
2159
|
+
id?: string | null | undefined;
|
|
2120
2160
|
_id?: unknown;
|
|
2121
2161
|
command?: string | null | undefined;
|
|
2122
2162
|
condition?: string | null | undefined;
|
|
@@ -2124,6 +2164,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2124
2164
|
type: any;
|
|
2125
2165
|
args: string[];
|
|
2126
2166
|
function?: string | null | undefined;
|
|
2167
|
+
id?: string | null | undefined;
|
|
2127
2168
|
_id?: unknown;
|
|
2128
2169
|
command?: string | null | undefined;
|
|
2129
2170
|
condition?: string | null | undefined;
|
|
@@ -2131,6 +2172,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2131
2172
|
type: any;
|
|
2132
2173
|
args: string[];
|
|
2133
2174
|
function?: string | null | undefined;
|
|
2175
|
+
id?: string | null | undefined;
|
|
2134
2176
|
_id?: unknown;
|
|
2135
2177
|
command?: string | null | undefined;
|
|
2136
2178
|
condition?: string | null | undefined;
|
|
@@ -2147,6 +2189,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2147
2189
|
type: any;
|
|
2148
2190
|
args: string[];
|
|
2149
2191
|
function?: string | null | undefined;
|
|
2192
|
+
id?: string | null | undefined;
|
|
2150
2193
|
_id?: unknown;
|
|
2151
2194
|
command?: string | null | undefined;
|
|
2152
2195
|
condition?: string | null | undefined;
|
|
@@ -2154,6 +2197,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2154
2197
|
type: any;
|
|
2155
2198
|
args: string[];
|
|
2156
2199
|
function?: string | null | undefined;
|
|
2200
|
+
id?: string | null | undefined;
|
|
2157
2201
|
_id?: unknown;
|
|
2158
2202
|
command?: string | null | undefined;
|
|
2159
2203
|
condition?: string | null | undefined;
|
|
@@ -2161,6 +2205,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2161
2205
|
type: any;
|
|
2162
2206
|
args: string[];
|
|
2163
2207
|
function?: string | null | undefined;
|
|
2208
|
+
id?: string | null | undefined;
|
|
2164
2209
|
_id?: unknown;
|
|
2165
2210
|
command?: string | null | undefined;
|
|
2166
2211
|
condition?: string | null | undefined;
|
|
@@ -2534,6 +2579,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2534
2579
|
type: any;
|
|
2535
2580
|
args: string[];
|
|
2536
2581
|
function?: string | null | undefined;
|
|
2582
|
+
id?: string | null | undefined;
|
|
2537
2583
|
_id?: unknown;
|
|
2538
2584
|
command?: string | null | undefined;
|
|
2539
2585
|
condition?: string | null | undefined;
|
|
@@ -2541,6 +2587,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2541
2587
|
type: any;
|
|
2542
2588
|
args: string[];
|
|
2543
2589
|
function?: string | null | undefined;
|
|
2590
|
+
id?: string | null | undefined;
|
|
2544
2591
|
_id?: unknown;
|
|
2545
2592
|
command?: string | null | undefined;
|
|
2546
2593
|
condition?: string | null | undefined;
|
|
@@ -2548,6 +2595,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2548
2595
|
type: any;
|
|
2549
2596
|
args: string[];
|
|
2550
2597
|
function?: string | null | undefined;
|
|
2598
|
+
id?: string | null | undefined;
|
|
2551
2599
|
_id?: unknown;
|
|
2552
2600
|
command?: string | null | undefined;
|
|
2553
2601
|
condition?: string | null | undefined;
|
|
@@ -2564,6 +2612,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2564
2612
|
type: any;
|
|
2565
2613
|
args: string[];
|
|
2566
2614
|
function?: string | null | undefined;
|
|
2615
|
+
id?: string | null | undefined;
|
|
2567
2616
|
_id?: unknown;
|
|
2568
2617
|
command?: string | null | undefined;
|
|
2569
2618
|
condition?: string | null | undefined;
|
|
@@ -2571,6 +2620,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2571
2620
|
type: any;
|
|
2572
2621
|
args: string[];
|
|
2573
2622
|
function?: string | null | undefined;
|
|
2623
|
+
id?: string | null | undefined;
|
|
2574
2624
|
_id?: unknown;
|
|
2575
2625
|
command?: string | null | undefined;
|
|
2576
2626
|
condition?: string | null | undefined;
|
|
@@ -2578,6 +2628,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2578
2628
|
type: any;
|
|
2579
2629
|
args: string[];
|
|
2580
2630
|
function?: string | null | undefined;
|
|
2631
|
+
id?: string | null | undefined;
|
|
2581
2632
|
_id?: unknown;
|
|
2582
2633
|
command?: string | null | undefined;
|
|
2583
2634
|
condition?: string | null | undefined;
|
|
@@ -2594,6 +2645,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2594
2645
|
type: any;
|
|
2595
2646
|
args: string[];
|
|
2596
2647
|
function?: string | null | undefined;
|
|
2648
|
+
id?: string | null | undefined;
|
|
2597
2649
|
_id?: unknown;
|
|
2598
2650
|
command?: string | null | undefined;
|
|
2599
2651
|
condition?: string | null | undefined;
|
|
@@ -2601,6 +2653,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2601
2653
|
type: any;
|
|
2602
2654
|
args: string[];
|
|
2603
2655
|
function?: string | null | undefined;
|
|
2656
|
+
id?: string | null | undefined;
|
|
2604
2657
|
_id?: unknown;
|
|
2605
2658
|
command?: string | null | undefined;
|
|
2606
2659
|
condition?: string | null | undefined;
|
|
@@ -2608,6 +2661,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2608
2661
|
type: any;
|
|
2609
2662
|
args: string[];
|
|
2610
2663
|
function?: string | null | undefined;
|
|
2664
|
+
id?: string | null | undefined;
|
|
2611
2665
|
_id?: unknown;
|
|
2612
2666
|
command?: string | null | undefined;
|
|
2613
2667
|
condition?: string | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -931,4 +931,4 @@ updatePath: '${D.raw.path}'`);D.trace.add(F);let J=Object.keys(F||{}),Z=J.length
|
|
|
931
931
|
* No-op if there is already a default connection.
|
|
932
932
|
*/function kq(F){if(F.connection)return;let A=F.createConnection();A[kd]=!0,A.models=F.models}var Q2=xd.exports=Sd=new s({[ud]:!0})});var bd=U((Uj1,gd)=>{/*!
|
|
933
933
|
* Module dependencies.
|
|
934
|
-
*/var _d=wy();kJ().set(_d);var Oq=fd();Oq.setDriver(_d);Oq.Mongoose.prototype.mongo=$9();gd.exports=Oq});var h4=U((Kj1,B1)=>{var D1=bd();B1.exports=D1;B1.exports.default=D1;B1.exports.mongoose=D1;B1.exports.cast=D1.cast;B1.exports.STATES=D1.STATES;B1.exports.setDriver=D1.setDriver;B1.exports.set=D1.set;B1.exports.get=D1.get;B1.exports.createConnection=D1.createConnection;B1.exports.connect=D1.connect;B1.exports.disconnect=D1.disconnect;B1.exports.startSession=D1.startSession;B1.exports.pluralize=D1.pluralize;B1.exports.model=D1.model;B1.exports.deleteModel=D1.deleteModel;B1.exports.modelNames=D1.modelNames;B1.exports.plugin=D1.plugin;B1.exports.connections=D1.connections;B1.exports.version=D1.version;B1.exports.Aggregate=D1.Aggregate;B1.exports.Mongoose=D1.Mongoose;B1.exports.Schema=D1.Schema;B1.exports.SchemaType=D1.SchemaType;B1.exports.SchemaTypes=D1.SchemaTypes;B1.exports.VirtualType=D1.VirtualType;B1.exports.Types=D1.Types;B1.exports.Query=D1.Query;B1.exports.Model=D1.Model;B1.exports.Document=D1.Document;B1.exports.ObjectId=D1.ObjectId;B1.exports.isValidObjectId=D1.isValidObjectId;B1.exports.isObjectIdOrHexString=D1.isObjectIdOrHexString;B1.exports.syncIndexes=D1.syncIndexes;B1.exports.Decimal128=D1.Decimal128;B1.exports.Mixed=D1.Mixed;B1.exports.Date=D1.Date;B1.exports.Number=D1.Number;B1.exports.Error=D1.Error;B1.exports.MongooseError=D1.MongooseError;B1.exports.now=D1.now;B1.exports.CastError=D1.CastError;B1.exports.SchemaTypeOptions=D1.SchemaTypeOptions;B1.exports.mongo=D1.mongo;B1.exports.mquery=D1.mquery;B1.exports.sanitizeFilter=D1.sanitizeFilter;B1.exports.trusted=D1.trusted;B1.exports.skipMiddlewareFunction=D1.skipMiddlewareFunction;B1.exports.overwriteMiddlewareResult=D1.overwriteMiddlewareResult});var gK1=m4(h4(),1);var Q3=m4(h4(),1);class yd{dbURI;constructor(F){if(!F)throw Error("DB URI is not valid.");this.dbURI=F}async connect(F){console.log("Connecting to database..."),await this.connectWithRetry(F),Q3.connection.on("connecting",()=>{console.log("Connecting to Database...")}),Q3.connection.on("connected",()=>{console.log("Database is connected.")}),Q3.connection.on("open",()=>{console.log("Database connection is ready.")}),Q3.connection.on("disconnecting: ",()=>{console.log("Database is disconnecting...")}),Q3.connection.on("error",(A)=>{console.error("Database connection error:",A)}),Q3.connection.on("disconnected",(A)=>{console.warn("Database disconnected.",A)}),Q3.connection.on("reconnected",(A)=>{console.warn("Database reconnected.",A)})}async connectWithRetry(F){try{await Q3.connect(this.dbURI,{maxPoolSize:1000,autoIndex:!0,socketTimeoutMS:300000,...F})}catch(A){console.error("Unable to connect to the database. Retrying in 5s...",A),setTimeout(()=>this.connectWithRetry(),5000)}}}var QK1;((F)=>{F[F.Offline=0]="Offline",F[F.Booting=1]="Booting",F[F.Available=2]="Available",F[F.Busy=3]="Busy",F[F.Disconnected=4]="Disconnected"})(QK1||={});var VK1;((F)=>{F[F.Neutral=0]="Neutral",F[F.Success=1]="Success",F[F.Info=2]="Info",F[F.Warn=3]="Warn",F[F.Error=4]="Error"})(VK1||={});var Sq;((F)=>{F.Win="WIN",F.Mac="MAC",F.Psn="PSN",F.Xbl="XBL",F.Swt="SWT",F.Swt2="SWT2",F.Ios="IOS",F.And="AND",F.Ps5="PS5",F.Xsx="XSX"})(Sq||={});var xq;((F)=>{F[F.Public=0]="Public",F[F.Private=1]="Private"})(xq||={});var fq;((F)=>{F[F.Auto=0]="Auto",F[F.Online=1]="Online",F[F.Away=2]="Away"})(fq||={});var j8;((F)=>{F[F.Event=0]="Event",F[F.CustomCommand=1]="CustomCommand",F[F.Scheduled=2]="Scheduled"})(j8||={});var EA;((F)=>{F[F.RunCommand=0]="RunCommand",F[F.RunFunction=1]="RunFunction"})(EA||={});var _q;((F)=>{F[F.Ready=0]="Ready",F[F.Disconnected=1]="Disconnected",F[F.PartyInvite=2]="PartyInvite",F[F.PartyJoinRequest=3]="PartyJoinRequest",F[F.PartyMemberJoined=4]="PartyMemberJoined",F[F.PartyMemberLeft=5]="PartyMemberLeft",F[F.PartyMemberKicked=6]="PartyMemberKicked",F[F.PartyMemberMessage=7]="PartyMemberMessage",F[F.PartyMemberPromoted=8]="PartyMemberPromoted",F[F.PartyMemberReady=9]="PartyMemberReady",F[F.PartyMemberSitOut=10]="PartyMemberSitOut",F[F.PartyMemberUnready=11]="PartyMemberUnready",F[F.PartyMemberMatch=12]="PartyMemberMatch",F[F.PartyMemberCosmeticUpdated=13]="PartyMemberCosmeticUpdated",F[F.FriendAdded=14]="FriendAdded",F[F.FriendRemoved=15]="FriendRemoved",F[F.FriendRequest=16]="FriendRequest",F[F.FriendMessage=17]="FriendMessage",F[F.FriendOnline=18]="FriendOnline",F[F.FriendOffline=19]="FriendOffline",F[F.UserBlocked=20]="UserBlocked",F[F.UserUnblocked=21]="UserUnblocked",F[F.PartyMemberInParty=22]="PartyMemberInParty"})(_q||={});var WZ;((F)=>{F.Default="en",F.EnUS="en-US",F.Es="es",F.Es419="es-419",F.Ar="ar",F.De="de",F.Fr="fr",F.He="he",F.Id="id",F.It="it",F.Ja="ja",F.Ko="ko",F.Pl="pl",F.Pt="pt",F.PtBR="pt-BR",F.Ru="ru",F.Th="th",F.Tr="tr",F.Vi="vi",F.Zh="zh",F.ZhHant="zh-Hant"})(WZ||={});var LK1;((F)=>{F.Default="en",F.Ar="ar",F.De="de",F.Es="es",F.Es419="es-419",F.Fr="fr",F.Id="id",F.It="it",F.Ja="ja",F.Ko="ko",F.Pl="pl",F.PtBR="pt-BR",F.Ru="ru",F.Th="th",F.Tr="tr",F.Vi="vi",F.ZhHans="zh-Hans",F.ZhHant="zh-Hant"})(LK1||={});var RK1;((F)=>{F[F.RequiredParam=0]="RequiredParam",F[F.OptionalParam=1]="OptionalParam",F[F.RequiredSelect=2]="RequiredSelect",F[F.OptionalSelect=3]="OptionalSelect",F[F.RequiredNumericParam=4]="RequiredNumericParam",F[F.OptionalNumericParam=5]="OptionalNumericParam"})(RK1||={});var hd;((F)=>{F.GenericUnknown="net.fnlb.errors.generic.unknown",F.GenericInternalError="net.fnlb.errors.generic.internal_error",F.GenericValidationFailed="net.fnlb.errors.generic.validation_failed",F.GenericParseFailed="net.fnlb.errors.generic.parse_failed",F.GenericNotFound="net.fnlb.errors.generic.not_found",F.GenericAlreadyExists="net.fnlb.errors.generic.already_exists",F.CommonInvalidRequest="net.fnlb.errors.common.invalid_request",F.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request",F.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length",F.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded",F.CommonLimitExceeded="net.fnlb.errors.common.limit_exceeded",F.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database",F.CommonUpdateRequired="net.fnlb.errors.common.update_required",F.CommonMaintenanceMode="net.fnlb.errors.common.maintenance_mode",F.AuthInvalidToken="net.fnlb.errors.auth.invalid_token",F.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token",F.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token",F.AuthUnauthorized="net.fnlb.errors.auth.unauthorized",F.AuthForbidden="net.fnlb.errors.auth.forbidden",F.AuthUserBanned="net.fnlb.errors.auth.user_banned",F.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code",F.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope",F.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid",F.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user",F.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections",F.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection",F.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified",F.ReleaseNotFound="net.fnlb.errors.release.no_release_found",F.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(hd||={});var vd;((F)=>{F.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials",F.LoginInvalidEmail="net.fnlb.errors.login.invalid_email",F.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email",F.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(vd||={});var m9={...hd,...vd},wK1;((F)=>{F.Username="username",F.Email="email",F.Password="password",F.Shared="shared"})(wK1||={});var IK1;((F)=>{F.General="general",F.Input="input"})(IK1||={});var PK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.Verified=2]="Verified",F[F.VerificationPending=4]="VerificationPending"})(PK1||={});var NK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.Public=2]="Public",F[F.InvalidAuth=4]="InvalidAuth"})(NK1||={});var MK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.Managed=2]="Managed"})(MK1||={});var TK1;((F)=>F[F.NotWearable=1]="NotWearable")(TK1||={});var jK1;((F)=>{F[F.identify=1]="identify",F[F.email=2]="email",F[F.connections=4]="connections",F[F["bots.read"]=8]="bots.read",F[F["bots.write"]=16]="bots.write",F[F["bots.run"]=32]="bots.run",F[F["categories.read"]=64]="categories.read",F[F["categories.write"]=128]="categories.write",F[F["commands.run"]=256]="commands.run"})(jK1||={});var uK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.IgnoreSelf=2]="IgnoreSelf",F[F.IgnoreBots=4]="IgnoreBots",F[F.IgnoreLeader=8]="IgnoreLeader",F[F.IgnoreOwners=16]="IgnoreOwners",F[F.IgnoreAdmins=32]="IgnoreAdmins",F[F.IgnoreWhitelistUsers=64]="IgnoreWhitelistUsers",F[F.IgnoreBlacklistUsers=128]="IgnoreBlacklistUsers",F[F.IgnoreExcludedAutoAddFriends=256]="IgnoreExcludedAutoAddFriends",F[F.IgnoreFriends=512]="IgnoreFriends",F[F.IgnoreOtherBots=1024]="IgnoreOtherBots",F[F.IgnorePartyMembers=2048]="IgnorePartyMembers"})(uK1||={});var kK1;((F)=>{F[F.Staff=1]="Staff",F[F.Admin=2]="Admin",F[F.Vip=4]="Vip",F[F.Verified=8]="Verified",F[F.Banned=16]="Banned",F[F.Tester=32]="Tester",F[F.Developer=64]="Developer",F[F.Partner=128]="Partner",F[F.Management=256]="Management",F[F.Moderation=512]="Moderation",F[F.Support=1024]="Support",F[F.IncreasedLimits=2048]="IncreasedLimits",F[F.Disabled=4096]="Disabled"})(kK1||={});var gq;((Z)=>{Z[Z.InternalError=1]="InternalError";Z[Z.BadValue=2]="BadValue";Z[Z.NoSuchKey=4]="NoSuchKey";Z[Z.KeyNotFound=211]="KeyNotFound";Z[Z.DuplicateKey=11000]="DuplicateKey"})(gq||={});class md{static handleError(F,A){if(!F)return!1;switch(F.code){case 11000:return A.sendError(400,m9.GenericAlreadyExists);case 2:return A.sendError(500,m9.CommonUnableToSaveToDatabase);case 211:return A.sendError(500,m9.CommonUnableToSaveToDatabase);case 4:return A.sendError(500,m9.CommonUnableToSaveToDatabase);case 1:return console.error("Internal MongoDB error:",F),A.sendError(500,m9.CommonUnableToSaveToDatabase);default:return console.error("Unhandled MongoError code:",F.code,F),A.sendError(500,m9.CommonUnableToSaveToDatabase)}}}var CA=m4(h4(),1);class F3{static transformSchemaToJSON(F,A){A.id=A._id,delete A._id,delete A.__v,delete A.password}}var dd=new CA.Schema({owner:{type:CA.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},secret:{type:String,required:!0,trim:!0},name:{type:String,required:!0,trim:!0},icon:{type:String,required:!1,trim:!0,default:void 0},description:{type:String,required:!1,trim:!0,default:void 0},scopes:{type:Number,required:!1,default:void 0},redirectUris:{type:[String],required:!1,trim:!0,default:void 0},tosUri:{type:String,required:!1,trim:!0,default:void 0},policyUri:{type:String,required:!1,trim:!0,default:void 0},installUri:{type:String,required:!1,trim:!0,default:void 0},flags:{type:Number,required:!1,default:void 0}});dd.set("toJSON",{transform:F3.transformSchemaToJSON});var OK1=CA.model("application",dd);var u8=m4(h4(),1);var ld=new u8.Schema({owner:{type:u8.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},parent:{type:u8.Schema.Types.ObjectId,ref:"category",required:!1,index:!0,sparse:!0},nickname:{type:String,required:!0,trim:!0},flags:{type:Number,required:!1},email:{type:String,lowercase:!0,required:!1,trim:!0},deviceAuth:{required:!0,type:{accountId:{type:String,required:!0,unique:!0,lowercase:!0,trim:!0},deviceId:{type:String,required:!0,lowercase:!0,trim:!0},secret:{type:String,required:!0,trim:!0}},_id:!1},mmsBannedUntil:{type:Number,required:!1}});ld.set("toJSON",{transform:F3.transformSchemaToJSON});var SK1=u8.model("bot",ld);var $A=m4(h4(),1);function YA(F){return Object.values(F).filter((A)=>typeof A==="number")}var cd=new $A.Schema({owner:{type:$A.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},name:{type:String,required:!0,trim:!0},flags:{type:Number,required:!1},managed:{type:Boolean,required:!1,index:!0,sparse:!0,default:void 0},config:{replyLangs:{type:[String],enum:Object.values(WZ),default:void 0},searchLangs:{type:[String],enum:Object.values(WZ),default:void 0},platform:{type:[String],enum:Object.values(Sq),default:void 0},privacy:{type:Number,enum:YA(xq),default:void 0},prefixes:{type:[String],default:void 0},statusType:{type:Number,enum:YA(fq),default:void 0},statusText:{type:[String],default:void 0},statusInterval:{type:Number,default:void 0},level:{type:[Number],default:void 0},bpLevel:{type:[Number],default:void 0},extraOwners:{type:[{id:String,name:String,_id:!1}],default:void 0},admins:{type:[{id:String,name:String,_id:!1}],default:void 0},whitelistUsers:{type:[{id:String,name:String,_id:!1}],default:void 0},blacklistUsers:{type:[{id:String,name:String,_id:!1}],default:void 0},excludedAutoAddFriends:{type:[{id:String,name:String,_id:!1}],default:void 0},otherBots:{type:[{id:String,name:String,_id:!1}],default:void 0},inviteTimeout:{type:Number,default:void 0},maxBotsPerLobby:{type:Number,default:void 0},maxBotsPerLobbyWithOwner:{type:Number,default:void 0},maxBotsPerLobbyWithAdmin:{type:Number,default:void 0},maxBotsPerLobbyWithWhitelistUser:{type:Number,default:void 0},allowMatchmaking:{type:Boolean,default:void 0},leaveAfterMatchmaking:{type:Boolean,default:void 0},disableMatchmakingChecks:{type:Boolean,default:void 0},disablePlaylistChecks:{type:Boolean,default:void 0},disableJoinMessages:{type:Boolean,default:void 0},disableAutomaticMessages:{type:Boolean,default:void 0},acceptFriendRequests:{type:Boolean,default:void 0},sendFriendRequestOnJoinParty:{type:Boolean,default:void 0},sendFriendRequestOnMemberJoinParty:{type:Boolean,default:void 0},runCommandsWithoutPrefix:{type:Boolean,default:void 0},setCosmeticsWithoutCommands:{type:Boolean,default:void 0},setCosmeticsWithPrefix:{type:Boolean,default:void 0},acceptInvites:{type:Boolean,default:void 0},startBannedBots:{type:Boolean,default:void 0},triggers:{type:[{name:{type:String,required:!0},flags:{type:Number,required:!1,default:void 0},type:{type:Number,required:!0,enum:YA(j8)},event:{type:Number,enum:YA(_q),required(){return this.type===j8.Event},default:void 0},command:{type:String,required(){return this.type===j8.CustomCommand},default:void 0},interval:{type:String,required(){return this.type===j8.Scheduled},default:void 0},actions:{type:[{type:{type:Number,enum:YA(EA),required:!0},command:{type:String,required(){return this.type===EA.RunCommand}},function:{type:String,required(){return this.type===EA.RunFunction}},args:{type:[String],default:void 0,required:!0},condition:{type:String,default:void 0,required:!1},_id:!1}],required:!0,default:void 0,_id:!1},_id:!1}],default:void 0},onlyOwnerCommands:{type:[String],default:void 0},onlyAdminCommands:{type:[String],default:void 0},onlyWhitelistUsersCommands:{type:[String],default:void 0},onlyFriendsCommands:{type:[String],default:void 0},onlyPartyMembersCommands:{type:[String],default:void 0},onlyWhisperCommands:{type:[String],default:void 0},startOutfit:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startBackpack:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startPickaxe:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startShoes:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startBanner:{type:[{id:String,_id:!1}],default:void 0},startBannerColor:{type:[{id:String,_id:!1}],default:void 0},joinOutfit:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinBackpack:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinPickaxe:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinEmote:{type:[{id:String,_id:!1}],default:void 0},joinShoes:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinBanner:{type:[{id:String,_id:!1}],default:void 0},joinBannerColor:{type:[{id:String,_id:!1}],default:void 0},memberJoinOutfit:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinBackpack:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinPickaxe:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinEmote:{type:[{id:String,_id:!1}],default:void 0},memberJoinShoes:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinBanner:{type:[{id:String,_id:!1}],default:void 0},memberJoinBannerColor:{type:[{id:String,_id:!1}],default:void 0}}});cd.set("toJSON",{transform:F3.transformSchemaToJSON});var xK1=$A.model("category",cd);var GA=m4(h4(),1);var pd=new GA.Schema({owner:{type:GA.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},name:{type:String,required:!0,trim:!0}});pd.set("toJSON",{transform:F3.transformSchemaToJSON});var fK1=GA.model("preset",pd);var WA=m4(h4(),1);var bq=new WA.Schema({token:{type:String,required:!0,unique:!1},username:{type:String,required:!0,trim:!0},email:{type:String,index:!0,required:!0,unique:!0,trim:!0},password:{type:String,required:!0},apiToken:{type:String,required:!0,index:!1,unique:!1,trim:!0},flags:{type:Number,required:!1},connections:{discord:{id:{type:String,index:!0,unique:!0,sparse:!0},username:{type:String},verified:{type:Boolean,required:!1}},epic:{id:{type:String,index:!0,unique:!0,sparse:!0},username:{type:String},verified:{type:Boolean,required:!1}}},applications:{type:[{_id:!1,id:{type:WA.Schema.Types.ObjectId,ref:"application",required:!0,trim:!0},token:{type:String,required:!0,trim:!0},scopes:{type:Number,required:!0}}],default:void 0}},{statics:{async verifyPassword(F,A){return Bun.password.verify(F,A)},async findByToken(F,A){let B=await this.findById(F);if(!B?.token||B.token!==A)return null;return B},async findByAPIToken(F,A){let B=await this.findById(F);if(!B?.apiToken||B.apiToken!==A)return null;return B},async findByAccessToken(F,A){let B=await this.findById(F),D=B?.applications?.find((J)=>J.token===A);if(!D)return null;return{user:B,app:D}}}});bq.pre("save",async function(F){if(!this.isModified("password"))return F();try{return this.password=await Bun.password.hash(this.password,{algorithm:process.env.SAVE_ACCOUNT_ALGORITHM||"argon2id",timeCost:parseInt(process.env.SAVE_ACCOUNT_TIME_COST||"3"),cost:parseInt(process.env.SAVE_ACCOUNT_ALGORITHM_COST||"12")}),F()}catch(A){return F(A)}});bq.set("toJSON",{transform:F3.transformSchemaToJSON});var _K1=WA.model("user",bq);var export_connection=gK1.connection;export{export_connection as connection,_K1 as UserModel,fK1 as PresetModel,gq as DatabaseErrors,md as DatabaseErrorHandler,yd as DatabaseClient,xK1 as CategoryModel,SK1 as BotModel,OK1 as ApplicationModel};
|
|
934
|
+
*/var _d=wy();kJ().set(_d);var Oq=fd();Oq.setDriver(_d);Oq.Mongoose.prototype.mongo=$9();gd.exports=Oq});var h4=U((Kj1,B1)=>{var D1=bd();B1.exports=D1;B1.exports.default=D1;B1.exports.mongoose=D1;B1.exports.cast=D1.cast;B1.exports.STATES=D1.STATES;B1.exports.setDriver=D1.setDriver;B1.exports.set=D1.set;B1.exports.get=D1.get;B1.exports.createConnection=D1.createConnection;B1.exports.connect=D1.connect;B1.exports.disconnect=D1.disconnect;B1.exports.startSession=D1.startSession;B1.exports.pluralize=D1.pluralize;B1.exports.model=D1.model;B1.exports.deleteModel=D1.deleteModel;B1.exports.modelNames=D1.modelNames;B1.exports.plugin=D1.plugin;B1.exports.connections=D1.connections;B1.exports.version=D1.version;B1.exports.Aggregate=D1.Aggregate;B1.exports.Mongoose=D1.Mongoose;B1.exports.Schema=D1.Schema;B1.exports.SchemaType=D1.SchemaType;B1.exports.SchemaTypes=D1.SchemaTypes;B1.exports.VirtualType=D1.VirtualType;B1.exports.Types=D1.Types;B1.exports.Query=D1.Query;B1.exports.Model=D1.Model;B1.exports.Document=D1.Document;B1.exports.ObjectId=D1.ObjectId;B1.exports.isValidObjectId=D1.isValidObjectId;B1.exports.isObjectIdOrHexString=D1.isObjectIdOrHexString;B1.exports.syncIndexes=D1.syncIndexes;B1.exports.Decimal128=D1.Decimal128;B1.exports.Mixed=D1.Mixed;B1.exports.Date=D1.Date;B1.exports.Number=D1.Number;B1.exports.Error=D1.Error;B1.exports.MongooseError=D1.MongooseError;B1.exports.now=D1.now;B1.exports.CastError=D1.CastError;B1.exports.SchemaTypeOptions=D1.SchemaTypeOptions;B1.exports.mongo=D1.mongo;B1.exports.mquery=D1.mquery;B1.exports.sanitizeFilter=D1.sanitizeFilter;B1.exports.trusted=D1.trusted;B1.exports.skipMiddlewareFunction=D1.skipMiddlewareFunction;B1.exports.overwriteMiddlewareResult=D1.overwriteMiddlewareResult});var gK1=m4(h4(),1);var Q3=m4(h4(),1);class yd{dbURI;constructor(F){if(!F)throw Error("DB URI is not valid.");this.dbURI=F}async connect(F){console.log("Connecting to database..."),await this.connectWithRetry(F),Q3.connection.on("connecting",()=>{console.log("Connecting to Database...")}),Q3.connection.on("connected",()=>{console.log("Database is connected.")}),Q3.connection.on("open",()=>{console.log("Database connection is ready.")}),Q3.connection.on("disconnecting: ",()=>{console.log("Database is disconnecting...")}),Q3.connection.on("error",(A)=>{console.error("Database connection error:",A)}),Q3.connection.on("disconnected",(A)=>{console.warn("Database disconnected.",A)}),Q3.connection.on("reconnected",(A)=>{console.warn("Database reconnected.",A)})}async connectWithRetry(F){try{await Q3.connect(this.dbURI,{maxPoolSize:1000,autoIndex:!0,socketTimeoutMS:300000,...F})}catch(A){console.error("Unable to connect to the database. Retrying in 5s...",A),setTimeout(()=>this.connectWithRetry(),5000)}}}var QK1;((F)=>{F[F.Offline=0]="Offline",F[F.Booting=1]="Booting",F[F.Available=2]="Available",F[F.Busy=3]="Busy",F[F.Disconnected=4]="Disconnected"})(QK1||={});var VK1;((F)=>{F[F.Neutral=0]="Neutral",F[F.Success=1]="Success",F[F.Info=2]="Info",F[F.Warn=3]="Warn",F[F.Error=4]="Error"})(VK1||={});var Sq;((F)=>{F.Win="WIN",F.Mac="MAC",F.Psn="PSN",F.Xbl="XBL",F.Swt="SWT",F.Swt2="SWT2",F.Ios="IOS",F.And="AND",F.Ps5="PS5",F.Xsx="XSX"})(Sq||={});var xq;((F)=>{F[F.Public=0]="Public",F[F.Private=1]="Private"})(xq||={});var fq;((F)=>{F[F.Auto=0]="Auto",F[F.Online=1]="Online",F[F.Away=2]="Away"})(fq||={});var j8;((F)=>{F[F.Event=0]="Event",F[F.CustomCommand=1]="CustomCommand",F[F.Scheduled=2]="Scheduled"})(j8||={});var EA;((F)=>{F[F.RunCommand=0]="RunCommand",F[F.RunFunction=1]="RunFunction"})(EA||={});var _q;((F)=>{F[F.Ready=0]="Ready",F[F.Disconnected=1]="Disconnected",F[F.PartyInvite=2]="PartyInvite",F[F.PartyJoinRequest=3]="PartyJoinRequest",F[F.PartyMemberJoined=4]="PartyMemberJoined",F[F.PartyMemberLeft=5]="PartyMemberLeft",F[F.PartyMemberKicked=6]="PartyMemberKicked",F[F.PartyMemberMessage=7]="PartyMemberMessage",F[F.PartyMemberPromoted=8]="PartyMemberPromoted",F[F.PartyMemberReady=9]="PartyMemberReady",F[F.PartyMemberSitOut=10]="PartyMemberSitOut",F[F.PartyMemberUnready=11]="PartyMemberUnready",F[F.PartyMemberMatch=12]="PartyMemberMatch",F[F.PartyMemberCosmeticUpdated=13]="PartyMemberCosmeticUpdated",F[F.FriendAdded=14]="FriendAdded",F[F.FriendRemoved=15]="FriendRemoved",F[F.FriendRequest=16]="FriendRequest",F[F.FriendMessage=17]="FriendMessage",F[F.FriendOnline=18]="FriendOnline",F[F.FriendOffline=19]="FriendOffline",F[F.UserBlocked=20]="UserBlocked",F[F.UserUnblocked=21]="UserUnblocked",F[F.PartyMemberInParty=22]="PartyMemberInParty"})(_q||={});var WZ;((F)=>{F.Default="en",F.EnUS="en-US",F.Es="es",F.Es419="es-419",F.Ar="ar",F.De="de",F.Fr="fr",F.He="he",F.Id="id",F.It="it",F.Ja="ja",F.Ko="ko",F.Pl="pl",F.Pt="pt",F.PtBR="pt-BR",F.Ru="ru",F.Th="th",F.Tr="tr",F.Vi="vi",F.Zh="zh",F.ZhHant="zh-Hant"})(WZ||={});var LK1;((F)=>{F.Default="en",F.Ar="ar",F.De="de",F.Es="es",F.Es419="es-419",F.Fr="fr",F.Id="id",F.It="it",F.Ja="ja",F.Ko="ko",F.Pl="pl",F.PtBR="pt-BR",F.Ru="ru",F.Th="th",F.Tr="tr",F.Vi="vi",F.ZhHans="zh-Hans",F.ZhHant="zh-Hant"})(LK1||={});var RK1;((F)=>{F[F.RequiredParam=0]="RequiredParam",F[F.OptionalParam=1]="OptionalParam",F[F.RequiredSelect=2]="RequiredSelect",F[F.OptionalSelect=3]="OptionalSelect",F[F.RequiredNumericParam=4]="RequiredNumericParam",F[F.OptionalNumericParam=5]="OptionalNumericParam"})(RK1||={});var hd;((F)=>{F.GenericUnknown="net.fnlb.errors.generic.unknown",F.GenericInternalError="net.fnlb.errors.generic.internal_error",F.GenericValidationFailed="net.fnlb.errors.generic.validation_failed",F.GenericParseFailed="net.fnlb.errors.generic.parse_failed",F.GenericNotFound="net.fnlb.errors.generic.not_found",F.GenericAlreadyExists="net.fnlb.errors.generic.already_exists",F.CommonInvalidRequest="net.fnlb.errors.common.invalid_request",F.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request",F.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length",F.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded",F.CommonLimitExceeded="net.fnlb.errors.common.limit_exceeded",F.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database",F.CommonUpdateRequired="net.fnlb.errors.common.update_required",F.CommonMaintenanceMode="net.fnlb.errors.common.maintenance_mode",F.AuthInvalidToken="net.fnlb.errors.auth.invalid_token",F.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token",F.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token",F.AuthUnauthorized="net.fnlb.errors.auth.unauthorized",F.AuthForbidden="net.fnlb.errors.auth.forbidden",F.AuthUserBanned="net.fnlb.errors.auth.user_banned",F.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code",F.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope",F.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid",F.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user",F.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections",F.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection",F.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified",F.ReleaseNotFound="net.fnlb.errors.release.no_release_found",F.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(hd||={});var vd;((F)=>{F.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials",F.LoginInvalidEmail="net.fnlb.errors.login.invalid_email",F.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email",F.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(vd||={});var m9={...hd,...vd},wK1;((F)=>{F.Username="username",F.Email="email",F.Password="password",F.Shared="shared"})(wK1||={});var IK1;((F)=>{F.General="general",F.Input="input"})(IK1||={});var PK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.Verified=2]="Verified",F[F.VerificationPending=4]="VerificationPending"})(PK1||={});var NK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.Public=2]="Public",F[F.InvalidAuth=4]="InvalidAuth"})(NK1||={});var MK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.Managed=2]="Managed"})(MK1||={});var TK1;((F)=>F[F.NotWearable=1]="NotWearable")(TK1||={});var jK1;((F)=>{F[F.identify=1]="identify",F[F.email=2]="email",F[F.connections=4]="connections",F[F["bots.read"]=8]="bots.read",F[F["bots.write"]=16]="bots.write",F[F["bots.run"]=32]="bots.run",F[F["categories.read"]=64]="categories.read",F[F["categories.write"]=128]="categories.write",F[F["commands.run"]=256]="commands.run"})(jK1||={});var uK1;((F)=>{F[F.Disabled=1]="Disabled",F[F.IgnoreSelf=2]="IgnoreSelf",F[F.IgnoreBots=4]="IgnoreBots",F[F.IgnoreLeader=8]="IgnoreLeader",F[F.IgnoreOwners=16]="IgnoreOwners",F[F.IgnoreAdmins=32]="IgnoreAdmins",F[F.IgnoreWhitelistUsers=64]="IgnoreWhitelistUsers",F[F.IgnoreBlacklistUsers=128]="IgnoreBlacklistUsers",F[F.IgnoreExcludedAutoAddFriends=256]="IgnoreExcludedAutoAddFriends",F[F.IgnoreFriends=512]="IgnoreFriends",F[F.IgnoreOtherBots=1024]="IgnoreOtherBots",F[F.IgnorePartyMembers=2048]="IgnorePartyMembers"})(uK1||={});var kK1;((F)=>{F[F.Staff=1]="Staff",F[F.Admin=2]="Admin",F[F.Vip=4]="Vip",F[F.Verified=8]="Verified",F[F.Banned=16]="Banned",F[F.Tester=32]="Tester",F[F.Developer=64]="Developer",F[F.Partner=128]="Partner",F[F.Management=256]="Management",F[F.Moderation=512]="Moderation",F[F.Support=1024]="Support",F[F.IncreasedLimits=2048]="IncreasedLimits",F[F.Disabled=4096]="Disabled"})(kK1||={});var gq;((Z)=>{Z[Z.InternalError=1]="InternalError";Z[Z.BadValue=2]="BadValue";Z[Z.NoSuchKey=4]="NoSuchKey";Z[Z.KeyNotFound=211]="KeyNotFound";Z[Z.DuplicateKey=11000]="DuplicateKey"})(gq||={});class md{static handleError(F,A){if(!F)return!1;switch(F.code){case 11000:return A.sendError(400,m9.GenericAlreadyExists);case 2:return A.sendError(500,m9.CommonUnableToSaveToDatabase);case 211:return A.sendError(500,m9.CommonUnableToSaveToDatabase);case 4:return A.sendError(500,m9.CommonUnableToSaveToDatabase);case 1:return console.error("Internal MongoDB error:",F),A.sendError(500,m9.CommonUnableToSaveToDatabase);default:return console.error("Unhandled MongoError code:",F.code,F),A.sendError(500,m9.CommonUnableToSaveToDatabase)}}}var CA=m4(h4(),1);class F3{static transformSchemaToJSON(F,A){A.id=A._id,delete A._id,delete A.__v,delete A.password}}var dd=new CA.Schema({owner:{type:CA.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},secret:{type:String,required:!0,trim:!0},name:{type:String,required:!0,trim:!0},icon:{type:String,required:!1,trim:!0,default:void 0},description:{type:String,required:!1,trim:!0,default:void 0},scopes:{type:Number,required:!1,default:void 0},redirectUris:{type:[String],required:!1,trim:!0,default:void 0},tosUri:{type:String,required:!1,trim:!0,default:void 0},policyUri:{type:String,required:!1,trim:!0,default:void 0},installUri:{type:String,required:!1,trim:!0,default:void 0},flags:{type:Number,required:!1,default:void 0}});dd.set("toJSON",{transform:F3.transformSchemaToJSON});var OK1=CA.model("application",dd);var u8=m4(h4(),1);var ld=new u8.Schema({owner:{type:u8.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},parent:{type:u8.Schema.Types.ObjectId,ref:"category",required:!1,index:!0,sparse:!0},nickname:{type:String,required:!0,trim:!0},flags:{type:Number,required:!1},email:{type:String,lowercase:!0,required:!1,trim:!0},deviceAuth:{required:!0,type:{accountId:{type:String,required:!0,unique:!0,lowercase:!0,trim:!0},deviceId:{type:String,required:!0,lowercase:!0,trim:!0},secret:{type:String,required:!0,trim:!0}},_id:!1},mmsBannedUntil:{type:Number,required:!1}});ld.set("toJSON",{transform:F3.transformSchemaToJSON});var SK1=u8.model("bot",ld);var $A=m4(h4(),1);function YA(F){return Object.values(F).filter((A)=>typeof A==="number")}var cd=new $A.Schema({owner:{type:$A.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},name:{type:String,required:!0,trim:!0},flags:{type:Number,required:!1},managed:{type:Boolean,required:!1,index:!0,sparse:!0,default:void 0},config:{replyLangs:{type:[String],enum:Object.values(WZ),default:void 0},searchLangs:{type:[String],enum:Object.values(WZ),default:void 0},platform:{type:[String],enum:Object.values(Sq),default:void 0},privacy:{type:Number,enum:YA(xq),default:void 0},prefixes:{type:[String],default:void 0},statusType:{type:Number,enum:YA(fq),default:void 0},statusText:{type:[String],default:void 0},statusInterval:{type:Number,default:void 0},level:{type:[Number],default:void 0},bpLevel:{type:[Number],default:void 0},extraOwners:{type:[{id:String,name:String,_id:!1}],default:void 0},admins:{type:[{id:String,name:String,_id:!1}],default:void 0},whitelistUsers:{type:[{id:String,name:String,_id:!1}],default:void 0},blacklistUsers:{type:[{id:String,name:String,_id:!1}],default:void 0},excludedAutoAddFriends:{type:[{id:String,name:String,_id:!1}],default:void 0},otherBots:{type:[{id:String,name:String,_id:!1}],default:void 0},inviteTimeout:{type:Number,default:void 0},maxBotsPerLobby:{type:Number,default:void 0},maxBotsPerLobbyWithOwner:{type:Number,default:void 0},maxBotsPerLobbyWithAdmin:{type:Number,default:void 0},maxBotsPerLobbyWithWhitelistUser:{type:Number,default:void 0},allowMatchmaking:{type:Boolean,default:void 0},leaveAfterMatchmaking:{type:Boolean,default:void 0},disableMatchmakingChecks:{type:Boolean,default:void 0},disablePlaylistChecks:{type:Boolean,default:void 0},disableJoinMessages:{type:Boolean,default:void 0},disableAutomaticMessages:{type:Boolean,default:void 0},acceptFriendRequests:{type:Boolean,default:void 0},sendFriendRequestOnJoinParty:{type:Boolean,default:void 0},sendFriendRequestOnMemberJoinParty:{type:Boolean,default:void 0},runCommandsWithoutPrefix:{type:Boolean,default:void 0},setCosmeticsWithoutCommands:{type:Boolean,default:void 0},setCosmeticsWithPrefix:{type:Boolean,default:void 0},acceptInvites:{type:Boolean,default:void 0},startBannedBots:{type:Boolean,default:void 0},triggers:{type:[{name:{type:String,required:!0},flags:{type:Number,required:!1,default:void 0},type:{type:Number,required:!0,enum:YA(j8)},event:{type:Number,enum:YA(_q),required(){return this.type===j8.Event},default:void 0},command:{type:String,required(){return this.type===j8.CustomCommand},default:void 0},interval:{type:String,required(){return this.type===j8.Scheduled},default:void 0},actions:{type:[{id:{type:String,required:!1},type:{type:Number,enum:YA(EA),required:!0},command:{type:String,required(){return this.type===EA.RunCommand}},function:{type:String,required(){return this.type===EA.RunFunction}},args:{type:[String],default:void 0,required:!0},condition:{type:String,default:void 0,required:!1},_id:!1}],required:!0,default:void 0,_id:!1},_id:!1}],default:void 0},onlyOwnerCommands:{type:[String],default:void 0},onlyAdminCommands:{type:[String],default:void 0},onlyWhitelistUsersCommands:{type:[String],default:void 0},onlyFriendsCommands:{type:[String],default:void 0},onlyPartyMembersCommands:{type:[String],default:void 0},onlyWhisperCommands:{type:[String],default:void 0},startOutfit:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startBackpack:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startPickaxe:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startShoes:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},startBanner:{type:[{id:String,_id:!1}],default:void 0},startBannerColor:{type:[{id:String,_id:!1}],default:void 0},joinOutfit:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinBackpack:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinPickaxe:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinEmote:{type:[{id:String,_id:!1}],default:void 0},joinShoes:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},joinBanner:{type:[{id:String,_id:!1}],default:void 0},joinBannerColor:{type:[{id:String,_id:!1}],default:void 0},memberJoinOutfit:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinBackpack:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinPickaxe:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinEmote:{type:[{id:String,_id:!1}],default:void 0},memberJoinShoes:{type:[{id:String,variants:[Number],_id:!1}],default:void 0},memberJoinBanner:{type:[{id:String,_id:!1}],default:void 0},memberJoinBannerColor:{type:[{id:String,_id:!1}],default:void 0}}});cd.set("toJSON",{transform:F3.transformSchemaToJSON});var xK1=$A.model("category",cd);var GA=m4(h4(),1);var pd=new GA.Schema({owner:{type:GA.Schema.Types.ObjectId,ref:"user",required:!0,index:!0},name:{type:String,required:!0,trim:!0}});pd.set("toJSON",{transform:F3.transformSchemaToJSON});var fK1=GA.model("preset",pd);var WA=m4(h4(),1);var bq=new WA.Schema({token:{type:String,required:!0,unique:!1},username:{type:String,required:!0,trim:!0},email:{type:String,index:!0,required:!0,unique:!0,trim:!0},password:{type:String,required:!0},apiToken:{type:String,required:!0,index:!1,unique:!1,trim:!0},flags:{type:Number,required:!1},connections:{discord:{id:{type:String,index:!0,unique:!0,sparse:!0},username:{type:String},verified:{type:Boolean,required:!1}},epic:{id:{type:String,index:!0,unique:!0,sparse:!0},username:{type:String},verified:{type:Boolean,required:!1}}},applications:{type:[{_id:!1,id:{type:WA.Schema.Types.ObjectId,ref:"application",required:!0,trim:!0},token:{type:String,required:!0,trim:!0},scopes:{type:Number,required:!0}}],default:void 0}},{statics:{async verifyPassword(F,A){return Bun.password.verify(F,A)},async findByToken(F,A){let B=await this.findById(F);if(!B?.token||B.token!==A)return null;return B},async findByAPIToken(F,A){let B=await this.findById(F);if(!B?.apiToken||B.apiToken!==A)return null;return B},async findByAccessToken(F,A){let B=await this.findById(F),D=B?.applications?.find((J)=>J.token===A);if(!D)return null;return{user:B,app:D}}}});bq.pre("save",async function(F){if(!this.isModified("password"))return F();try{return this.password=await Bun.password.hash(this.password,{algorithm:process.env.SAVE_ACCOUNT_ALGORITHM||"argon2id",timeCost:parseInt(process.env.SAVE_ACCOUNT_TIME_COST||"3"),cost:parseInt(process.env.SAVE_ACCOUNT_ALGORITHM_COST||"12")}),F()}catch(A){return F(A)}});bq.set("toJSON",{transform:F3.transformSchemaToJSON});var _K1=WA.model("user",bq);var export_connection=gK1.connection;export{export_connection as connection,_K1 as UserModel,fK1 as PresetModel,gq as DatabaseErrors,md as DatabaseErrorHandler,yd as DatabaseClient,xK1 as CategoryModel,SK1 as BotModel,OK1 as ApplicationModel};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fnlb-project/database",
|
|
3
3
|
"description": "FNLB Database Client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.67",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fnlb-project/shared": "^1.5.
|
|
25
|
+
"@fnlb-project/shared": "^1.5.112",
|
|
26
26
|
"mongoose": "^8.23.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|