@rakun-kit/core 1.3.5 → 1.3.8
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/cjs/api/routes/manager/get.js +5 -0
- package/dist/cjs/api/routes/manager/get.js.map +1 -1
- package/dist/cjs/api/routes/manager/list.js +7 -1
- package/dist/cjs/api/routes/manager/list.js.map +1 -1
- package/dist/cjs/api/routes/manager/media/finalizeUpload.js +4 -18
- package/dist/cjs/api/routes/manager/media/finalizeUpload.js.map +1 -1
- package/dist/cjs/api/routes/manager/media/resolveMediaRecordUrls.js +63 -0
- package/dist/cjs/api/routes/manager/media/resolveMediaRecordUrls.js.map +1 -0
- package/dist/cjs/api/routes/web/page.js +69 -69
- package/dist/cjs/api/routes/web/page.js.map +1 -1
- package/dist/cjs/api/utils/populates/populateRelations.js +3 -0
- package/dist/cjs/api/utils/populates/populateRelations.js.map +1 -1
- package/dist/cjs/lib/ContentType.js +62 -80
- package/dist/cjs/lib/ContentType.js.map +1 -1
- package/dist/cjs/lib/fields/File.js +3 -0
- package/dist/cjs/lib/fields/File.js.map +1 -1
- package/dist/cjs/orm/index.js +0 -6
- package/dist/cjs/orm/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +32 -14
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/manager-contract.d.ts +9 -9
- package/dist/esm/api/operations/manager.d.ts +9 -9
- package/dist/esm/api/operations/web-contract.d.ts +23 -5
- package/dist/esm/api/operations/web-contract.d.ts.map +1 -1
- package/dist/esm/api/operations/web.d.ts +23 -5
- package/dist/esm/api/operations/web.d.ts.map +1 -1
- package/dist/esm/api/proxies/index.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/getSession.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/markTourSeen.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updateAccount.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts +2 -2
- package/dist/esm/api/routes/manager/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/duplicate.d.ts +2 -2
- package/dist/esm/api/routes/manager/get.d.ts +1 -16
- package/dist/esm/api/routes/manager/get.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/get.js +5 -0
- package/dist/esm/api/routes/manager/get.js.map +1 -1
- package/dist/esm/api/routes/manager/languages.d.ts +2 -2
- package/dist/esm/api/routes/manager/list.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/list.js +7 -1
- package/dist/esm/api/routes/manager/list.js.map +1 -1
- package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/media/finalizeUpload.js +4 -18
- package/dist/esm/api/routes/manager/media/finalizeUpload.js.map +1 -1
- package/dist/esm/api/routes/manager/media/resolveMediaRecordUrls.d.ts +2 -0
- package/dist/esm/api/routes/manager/media/resolveMediaRecordUrls.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/media/resolveMediaRecordUrls.js +59 -0
- package/dist/esm/api/routes/manager/media/resolveMediaRecordUrls.js.map +1 -0
- package/dist/esm/api/routes/manager/update.d.ts +2 -2
- package/dist/esm/api/routes/web/page.d.ts.map +1 -1
- package/dist/esm/api/routes/web/page.js +69 -69
- package/dist/esm/api/routes/web/page.js.map +1 -1
- package/dist/esm/api/routes/web/previewPage.d.ts +11 -2
- package/dist/esm/api/routes/web/previewPage.d.ts.map +1 -1
- package/dist/esm/api/utils/getLanguages.d.ts +2 -2
- package/dist/esm/api/utils/getUser.d.ts +2 -2
- package/dist/esm/api/utils/populates/populateRelations.js +3 -0
- package/dist/esm/api/utils/populates/populateRelations.js.map +1 -1
- package/dist/esm/internal-content-types/ManagerUser.d.ts +7 -7
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +28 -28
- package/dist/esm/internal-content-types/Page.d.ts +227 -8
- package/dist/esm/internal-content-types/Page.d.ts.map +1 -1
- package/dist/esm/internal-content-types/RouteSettings.d.ts +227 -8
- package/dist/esm/internal-content-types/RouteSettings.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Seo.d.ts +78 -0
- package/dist/esm/internal-content-types/Seo.d.ts.map +1 -1
- package/dist/esm/internal-content-types/SeoSettings.d.ts +78 -0
- package/dist/esm/internal-content-types/SeoSettings.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Session.d.ts +28 -28
- package/dist/esm/internal-content-types/UserMfa.d.ts +28 -28
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +28 -28
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +28 -28
- package/dist/esm/lib/ContentType.d.ts +58 -82
- package/dist/esm/lib/ContentType.d.ts.map +1 -1
- package/dist/esm/lib/ContentType.js +62 -80
- package/dist/esm/lib/ContentType.js.map +1 -1
- package/dist/esm/lib/fields/File.d.ts +6 -0
- package/dist/esm/lib/fields/File.d.ts.map +1 -1
- package/dist/esm/lib/fields/File.js +3 -0
- package/dist/esm/lib/fields/File.js.map +1 -1
- package/dist/esm/manager.d.ts +36 -36
- package/dist/esm/orm/index.d.ts.map +1 -1
- package/dist/esm/orm/index.js +0 -6
- package/dist/esm/orm/index.js.map +1 -1
- package/dist/esm/schemas/web/page.d.ts +84 -12
- package/dist/esm/schemas/web/page.d.ts.map +1 -1
- package/dist/esm/schemas/web/previewPage.d.ts +44 -8
- package/dist/esm/schemas/web/previewPage.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/esm/manager.d.ts
CHANGED
|
@@ -63,8 +63,8 @@ declare const managerOperationContracts: {
|
|
|
63
63
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
64
64
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
65
65
|
_trashed?: boolean | undefined;
|
|
66
|
-
trashedAt?: Date | undefined;
|
|
67
66
|
_revision?: number | undefined;
|
|
67
|
+
trashedAt?: Date | undefined;
|
|
68
68
|
createdAt?: Date | undefined;
|
|
69
69
|
updatedAt?: Date | undefined;
|
|
70
70
|
}[], "query", "get", "auth">;
|
|
@@ -549,8 +549,8 @@ declare const managerOperationContracts: {
|
|
|
549
549
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
550
550
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
551
551
|
_trashed?: boolean | undefined;
|
|
552
|
-
trashedAt?: Date | undefined;
|
|
553
552
|
_revision?: number | undefined;
|
|
553
|
+
trashedAt?: Date | undefined;
|
|
554
554
|
createdAt?: Date | undefined;
|
|
555
555
|
updatedAt?: Date | undefined;
|
|
556
556
|
};
|
|
@@ -569,8 +569,8 @@ declare const managerOperationContracts: {
|
|
|
569
569
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
570
570
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
571
571
|
_trashed?: boolean | undefined;
|
|
572
|
-
trashedAt?: Date | undefined;
|
|
573
572
|
_revision?: number | undefined;
|
|
573
|
+
trashedAt?: Date | undefined;
|
|
574
574
|
createdAt?: Date | undefined;
|
|
575
575
|
updatedAt?: Date | undefined;
|
|
576
576
|
} | null, "query", "get", "public">;
|
|
@@ -600,8 +600,8 @@ declare const managerOperationContracts: {
|
|
|
600
600
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
601
601
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
602
602
|
_trashed?: boolean | undefined;
|
|
603
|
-
trashedAt?: Date | undefined;
|
|
604
603
|
_revision?: number | undefined;
|
|
604
|
+
trashedAt?: Date | undefined;
|
|
605
605
|
createdAt?: Date | undefined;
|
|
606
606
|
updatedAt?: Date | undefined;
|
|
607
607
|
};
|
|
@@ -620,8 +620,8 @@ declare const managerOperationContracts: {
|
|
|
620
620
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
621
621
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
622
622
|
_trashed?: boolean | undefined;
|
|
623
|
-
trashedAt?: Date | undefined;
|
|
624
623
|
_revision?: number | undefined;
|
|
624
|
+
trashedAt?: Date | undefined;
|
|
625
625
|
createdAt?: Date | undefined;
|
|
626
626
|
updatedAt?: Date | undefined;
|
|
627
627
|
}, "mutation", "post", "auth">;
|
|
@@ -639,8 +639,8 @@ declare const managerOperationContracts: {
|
|
|
639
639
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
640
640
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
641
641
|
_trashed?: boolean | undefined;
|
|
642
|
-
trashedAt?: Date | undefined;
|
|
643
642
|
_revision?: number | undefined;
|
|
643
|
+
trashedAt?: Date | undefined;
|
|
644
644
|
createdAt?: Date | undefined;
|
|
645
645
|
updatedAt?: Date | undefined;
|
|
646
646
|
};
|
|
@@ -659,8 +659,8 @@ declare const managerOperationContracts: {
|
|
|
659
659
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
660
660
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
661
661
|
_trashed?: boolean | undefined;
|
|
662
|
-
trashedAt?: Date | undefined;
|
|
663
662
|
_revision?: number | undefined;
|
|
663
|
+
trashedAt?: Date | undefined;
|
|
664
664
|
createdAt?: Date | undefined;
|
|
665
665
|
updatedAt?: Date | undefined;
|
|
666
666
|
}, "mutation", "post", "auth">;
|
|
@@ -678,8 +678,8 @@ declare const managerOperationContracts: {
|
|
|
678
678
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
679
679
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
680
680
|
_trashed?: boolean | undefined;
|
|
681
|
-
trashedAt?: Date | undefined;
|
|
682
681
|
_revision?: number | undefined;
|
|
682
|
+
trashedAt?: Date | undefined;
|
|
683
683
|
createdAt?: Date | undefined;
|
|
684
684
|
updatedAt?: Date | undefined;
|
|
685
685
|
};
|
|
@@ -698,8 +698,8 @@ declare const managerOperationContracts: {
|
|
|
698
698
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
699
699
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
700
700
|
_trashed?: boolean | undefined;
|
|
701
|
-
trashedAt?: Date | undefined;
|
|
702
701
|
_revision?: number | undefined;
|
|
702
|
+
trashedAt?: Date | undefined;
|
|
703
703
|
createdAt?: Date | undefined;
|
|
704
704
|
updatedAt?: Date | undefined;
|
|
705
705
|
}, "mutation", "post", "auth">;
|
|
@@ -785,8 +785,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
785
785
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
786
786
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
787
787
|
_trashed?: boolean | undefined;
|
|
788
|
-
trashedAt?: Date | undefined;
|
|
789
788
|
_revision?: number | undefined;
|
|
789
|
+
trashedAt?: Date | undefined;
|
|
790
790
|
createdAt?: Date | undefined;
|
|
791
791
|
updatedAt?: Date | undefined;
|
|
792
792
|
}[], "query", "get", "auth">;
|
|
@@ -1271,8 +1271,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1271
1271
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1272
1272
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1273
1273
|
_trashed?: boolean | undefined;
|
|
1274
|
-
trashedAt?: Date | undefined;
|
|
1275
1274
|
_revision?: number | undefined;
|
|
1275
|
+
trashedAt?: Date | undefined;
|
|
1276
1276
|
createdAt?: Date | undefined;
|
|
1277
1277
|
updatedAt?: Date | undefined;
|
|
1278
1278
|
};
|
|
@@ -1291,8 +1291,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1291
1291
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1292
1292
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1293
1293
|
_trashed?: boolean | undefined;
|
|
1294
|
-
trashedAt?: Date | undefined;
|
|
1295
1294
|
_revision?: number | undefined;
|
|
1295
|
+
trashedAt?: Date | undefined;
|
|
1296
1296
|
createdAt?: Date | undefined;
|
|
1297
1297
|
updatedAt?: Date | undefined;
|
|
1298
1298
|
} | null, "query", "get", "public">;
|
|
@@ -1322,8 +1322,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1322
1322
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1323
1323
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1324
1324
|
_trashed?: boolean | undefined;
|
|
1325
|
-
trashedAt?: Date | undefined;
|
|
1326
1325
|
_revision?: number | undefined;
|
|
1326
|
+
trashedAt?: Date | undefined;
|
|
1327
1327
|
createdAt?: Date | undefined;
|
|
1328
1328
|
updatedAt?: Date | undefined;
|
|
1329
1329
|
};
|
|
@@ -1342,8 +1342,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1342
1342
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1343
1343
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1344
1344
|
_trashed?: boolean | undefined;
|
|
1345
|
-
trashedAt?: Date | undefined;
|
|
1346
1345
|
_revision?: number | undefined;
|
|
1346
|
+
trashedAt?: Date | undefined;
|
|
1347
1347
|
createdAt?: Date | undefined;
|
|
1348
1348
|
updatedAt?: Date | undefined;
|
|
1349
1349
|
}, "mutation", "post", "auth">;
|
|
@@ -1361,8 +1361,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1361
1361
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1362
1362
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1363
1363
|
_trashed?: boolean | undefined;
|
|
1364
|
-
trashedAt?: Date | undefined;
|
|
1365
1364
|
_revision?: number | undefined;
|
|
1365
|
+
trashedAt?: Date | undefined;
|
|
1366
1366
|
createdAt?: Date | undefined;
|
|
1367
1367
|
updatedAt?: Date | undefined;
|
|
1368
1368
|
};
|
|
@@ -1381,8 +1381,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1381
1381
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1382
1382
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1383
1383
|
_trashed?: boolean | undefined;
|
|
1384
|
-
trashedAt?: Date | undefined;
|
|
1385
1384
|
_revision?: number | undefined;
|
|
1385
|
+
trashedAt?: Date | undefined;
|
|
1386
1386
|
createdAt?: Date | undefined;
|
|
1387
1387
|
updatedAt?: Date | undefined;
|
|
1388
1388
|
}, "mutation", "post", "auth">;
|
|
@@ -1400,8 +1400,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1400
1400
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1401
1401
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1402
1402
|
_trashed?: boolean | undefined;
|
|
1403
|
-
trashedAt?: Date | undefined;
|
|
1404
1403
|
_revision?: number | undefined;
|
|
1404
|
+
trashedAt?: Date | undefined;
|
|
1405
1405
|
createdAt?: Date | undefined;
|
|
1406
1406
|
updatedAt?: Date | undefined;
|
|
1407
1407
|
};
|
|
@@ -1420,8 +1420,8 @@ export declare const managerOperationManifest: import(".").RakunOperationManifes
|
|
|
1420
1420
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1421
1421
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1422
1422
|
_trashed?: boolean | undefined;
|
|
1423
|
-
trashedAt?: Date | undefined;
|
|
1424
1423
|
_revision?: number | undefined;
|
|
1424
|
+
trashedAt?: Date | undefined;
|
|
1425
1425
|
createdAt?: Date | undefined;
|
|
1426
1426
|
updatedAt?: Date | undefined;
|
|
1427
1427
|
}, "mutation", "post", "auth">;
|
|
@@ -1513,8 +1513,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
1513
1513
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
1514
1514
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
1515
1515
|
_trashed?: boolean | undefined;
|
|
1516
|
-
trashedAt?: Date | undefined;
|
|
1517
1516
|
_revision?: number | undefined;
|
|
1517
|
+
trashedAt?: Date | undefined;
|
|
1518
1518
|
createdAt?: Date | undefined;
|
|
1519
1519
|
updatedAt?: Date | undefined;
|
|
1520
1520
|
}[], "query", "get", "auth">;
|
|
@@ -1999,8 +1999,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
1999
1999
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2000
2000
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2001
2001
|
_trashed?: boolean | undefined;
|
|
2002
|
-
trashedAt?: Date | undefined;
|
|
2003
2002
|
_revision?: number | undefined;
|
|
2003
|
+
trashedAt?: Date | undefined;
|
|
2004
2004
|
createdAt?: Date | undefined;
|
|
2005
2005
|
updatedAt?: Date | undefined;
|
|
2006
2006
|
};
|
|
@@ -2019,8 +2019,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
2019
2019
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2020
2020
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2021
2021
|
_trashed?: boolean | undefined;
|
|
2022
|
-
trashedAt?: Date | undefined;
|
|
2023
2022
|
_revision?: number | undefined;
|
|
2023
|
+
trashedAt?: Date | undefined;
|
|
2024
2024
|
createdAt?: Date | undefined;
|
|
2025
2025
|
updatedAt?: Date | undefined;
|
|
2026
2026
|
} | null, "query", "get", "public">;
|
|
@@ -2050,8 +2050,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
2050
2050
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2051
2051
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2052
2052
|
_trashed?: boolean | undefined;
|
|
2053
|
-
trashedAt?: Date | undefined;
|
|
2054
2053
|
_revision?: number | undefined;
|
|
2054
|
+
trashedAt?: Date | undefined;
|
|
2055
2055
|
createdAt?: Date | undefined;
|
|
2056
2056
|
updatedAt?: Date | undefined;
|
|
2057
2057
|
};
|
|
@@ -2070,8 +2070,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
2070
2070
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2071
2071
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2072
2072
|
_trashed?: boolean | undefined;
|
|
2073
|
-
trashedAt?: Date | undefined;
|
|
2074
2073
|
_revision?: number | undefined;
|
|
2074
|
+
trashedAt?: Date | undefined;
|
|
2075
2075
|
createdAt?: Date | undefined;
|
|
2076
2076
|
updatedAt?: Date | undefined;
|
|
2077
2077
|
}, "mutation", "post", "auth">;
|
|
@@ -2089,8 +2089,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
2089
2089
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2090
2090
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2091
2091
|
_trashed?: boolean | undefined;
|
|
2092
|
-
trashedAt?: Date | undefined;
|
|
2093
2092
|
_revision?: number | undefined;
|
|
2093
|
+
trashedAt?: Date | undefined;
|
|
2094
2094
|
createdAt?: Date | undefined;
|
|
2095
2095
|
updatedAt?: Date | undefined;
|
|
2096
2096
|
};
|
|
@@ -2109,8 +2109,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
2109
2109
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2110
2110
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2111
2111
|
_trashed?: boolean | undefined;
|
|
2112
|
-
trashedAt?: Date | undefined;
|
|
2113
2112
|
_revision?: number | undefined;
|
|
2113
|
+
trashedAt?: Date | undefined;
|
|
2114
2114
|
createdAt?: Date | undefined;
|
|
2115
2115
|
updatedAt?: Date | undefined;
|
|
2116
2116
|
}, "mutation", "post", "auth">;
|
|
@@ -2128,8 +2128,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
2128
2128
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2129
2129
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2130
2130
|
_trashed?: boolean | undefined;
|
|
2131
|
-
trashedAt?: Date | undefined;
|
|
2132
2131
|
_revision?: number | undefined;
|
|
2132
|
+
trashedAt?: Date | undefined;
|
|
2133
2133
|
createdAt?: Date | undefined;
|
|
2134
2134
|
updatedAt?: Date | undefined;
|
|
2135
2135
|
};
|
|
@@ -2148,8 +2148,8 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
2148
2148
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2149
2149
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2150
2150
|
_trashed?: boolean | undefined;
|
|
2151
|
-
trashedAt?: Date | undefined;
|
|
2152
2151
|
_revision?: number | undefined;
|
|
2152
|
+
trashedAt?: Date | undefined;
|
|
2153
2153
|
createdAt?: Date | undefined;
|
|
2154
2154
|
updatedAt?: Date | undefined;
|
|
2155
2155
|
}, "mutation", "post", "auth">;
|
|
@@ -2234,8 +2234,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2234
2234
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2235
2235
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2236
2236
|
_trashed?: boolean | undefined;
|
|
2237
|
-
trashedAt?: Date | undefined;
|
|
2238
2237
|
_revision?: number | undefined;
|
|
2238
|
+
trashedAt?: Date | undefined;
|
|
2239
2239
|
createdAt?: Date | undefined;
|
|
2240
2240
|
updatedAt?: Date | undefined;
|
|
2241
2241
|
}[], "query", "get", "auth">;
|
|
@@ -2720,8 +2720,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2720
2720
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2721
2721
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2722
2722
|
_trashed?: boolean | undefined;
|
|
2723
|
-
trashedAt?: Date | undefined;
|
|
2724
2723
|
_revision?: number | undefined;
|
|
2724
|
+
trashedAt?: Date | undefined;
|
|
2725
2725
|
createdAt?: Date | undefined;
|
|
2726
2726
|
updatedAt?: Date | undefined;
|
|
2727
2727
|
};
|
|
@@ -2740,8 +2740,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2740
2740
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2741
2741
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2742
2742
|
_trashed?: boolean | undefined;
|
|
2743
|
-
trashedAt?: Date | undefined;
|
|
2744
2743
|
_revision?: number | undefined;
|
|
2744
|
+
trashedAt?: Date | undefined;
|
|
2745
2745
|
createdAt?: Date | undefined;
|
|
2746
2746
|
updatedAt?: Date | undefined;
|
|
2747
2747
|
} | null, "query", "get", "public">;
|
|
@@ -2771,8 +2771,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2771
2771
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2772
2772
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2773
2773
|
_trashed?: boolean | undefined;
|
|
2774
|
-
trashedAt?: Date | undefined;
|
|
2775
2774
|
_revision?: number | undefined;
|
|
2775
|
+
trashedAt?: Date | undefined;
|
|
2776
2776
|
createdAt?: Date | undefined;
|
|
2777
2777
|
updatedAt?: Date | undefined;
|
|
2778
2778
|
};
|
|
@@ -2791,8 +2791,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2791
2791
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2792
2792
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2793
2793
|
_trashed?: boolean | undefined;
|
|
2794
|
-
trashedAt?: Date | undefined;
|
|
2795
2794
|
_revision?: number | undefined;
|
|
2795
|
+
trashedAt?: Date | undefined;
|
|
2796
2796
|
createdAt?: Date | undefined;
|
|
2797
2797
|
updatedAt?: Date | undefined;
|
|
2798
2798
|
}, "mutation", "post", "auth">;
|
|
@@ -2810,8 +2810,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2810
2810
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2811
2811
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2812
2812
|
_trashed?: boolean | undefined;
|
|
2813
|
-
trashedAt?: Date | undefined;
|
|
2814
2813
|
_revision?: number | undefined;
|
|
2814
|
+
trashedAt?: Date | undefined;
|
|
2815
2815
|
createdAt?: Date | undefined;
|
|
2816
2816
|
updatedAt?: Date | undefined;
|
|
2817
2817
|
};
|
|
@@ -2830,8 +2830,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2830
2830
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2831
2831
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2832
2832
|
_trashed?: boolean | undefined;
|
|
2833
|
-
trashedAt?: Date | undefined;
|
|
2834
2833
|
_revision?: number | undefined;
|
|
2834
|
+
trashedAt?: Date | undefined;
|
|
2835
2835
|
createdAt?: Date | undefined;
|
|
2836
2836
|
updatedAt?: Date | undefined;
|
|
2837
2837
|
}, "mutation", "post", "auth">;
|
|
@@ -2849,8 +2849,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2849
2849
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2850
2850
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2851
2851
|
_trashed?: boolean | undefined;
|
|
2852
|
-
trashedAt?: Date | undefined;
|
|
2853
2852
|
_revision?: number | undefined;
|
|
2853
|
+
trashedAt?: Date | undefined;
|
|
2854
2854
|
createdAt?: Date | undefined;
|
|
2855
2855
|
updatedAt?: Date | undefined;
|
|
2856
2856
|
};
|
|
@@ -2869,8 +2869,8 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
2869
2869
|
_visibility?: import("./client").DocumentVisibility | undefined;
|
|
2870
2870
|
_visibilityBeforeTrash?: Exclude<import("./client").DocumentVisibility, "trash"> | undefined;
|
|
2871
2871
|
_trashed?: boolean | undefined;
|
|
2872
|
-
trashedAt?: Date | undefined;
|
|
2873
2872
|
_revision?: number | undefined;
|
|
2873
|
+
trashedAt?: Date | undefined;
|
|
2874
2874
|
createdAt?: Date | undefined;
|
|
2875
2875
|
updatedAt?: Date | undefined;
|
|
2876
2876
|
}, "mutation", "post", "auth">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orm/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,YAAY,CAAA;AAqBnB,eAAO,MAAM,qBAAqB,GAAI,QAAQ,WAAW,SAExD,CAAA;AAED,wBAAsB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orm/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,YAAY,CAAA;AAqBnB,eAAO,MAAM,qBAAqB,GAAI,QAAQ,WAAW,SAExD,CAAA;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,CA6ChF;AAED,wBAAsB,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,CAM9E;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEvD;AAED,wBAAsB,aAAa,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAOvE"}
|
package/dist/esm/orm/index.js
CHANGED
|
@@ -24,16 +24,10 @@ export async function createMongoService(config) {
|
|
|
24
24
|
_config = config;
|
|
25
25
|
const existing = dbServices.get(config.MONGO_URI);
|
|
26
26
|
if (existing) {
|
|
27
|
-
if (Logger.isVerbose()) {
|
|
28
|
-
Logger.addTrace('mongo service cache hit');
|
|
29
|
-
}
|
|
30
27
|
return existing;
|
|
31
28
|
}
|
|
32
29
|
const existingPromise = dbServicePromises.get(config.MONGO_URI);
|
|
33
30
|
if (existingPromise) {
|
|
34
|
-
if (Logger.isVerbose()) {
|
|
35
|
-
Logger.addTrace('mongo service pending');
|
|
36
|
-
}
|
|
37
31
|
return await existingPromise;
|
|
38
32
|
}
|
|
39
33
|
const promise = (async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/orm/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,aAAa,IAAI,uB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