nextly 0.0.2-alpha.1 → 0.0.2-alpha.10
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/_dts-chunks/{collections-handler.d-DjgO74Wt.d.ts → collections-handler.d-B3iNFGJv.d.ts} +135 -120
- package/dist/_dts-chunks/{config.d-DNwsDnjs.d.ts → config.d-D8eInFE5.d.ts} +13 -1
- package/dist/_dts-chunks/{define-component.d-BUgTHmt3.d.ts → define-component.d-COeEsUOT.d.ts} +2 -2
- package/dist/_dts-chunks/{index.d-axCAzZ7m.d.ts → index.d-qjDq8N63.d.ts} +5 -5
- package/dist/actions/index.mjs +15 -15
- package/dist/api/auth-state.mjs +21 -21
- package/dist/api/collections-schema-detail.mjs +21 -21
- package/dist/api/collections-schema-export.mjs +21 -21
- package/dist/api/collections-schema.mjs +21 -21
- package/dist/api/components-detail.mjs +21 -21
- package/dist/api/components.mjs +21 -21
- package/dist/api/email-providers-default.mjs +21 -21
- package/dist/api/email-providers-detail.mjs +21 -21
- package/dist/api/email-providers-test.mjs +21 -21
- package/dist/api/email-providers.mjs +21 -21
- package/dist/api/email-send-template.mjs +23 -23
- package/dist/api/email-send.mjs +23 -23
- package/dist/api/email-templates-detail.mjs +21 -21
- package/dist/api/email-templates-layout.mjs +21 -21
- package/dist/api/email-templates-preview.mjs +21 -21
- package/dist/api/email-templates.mjs +21 -21
- package/dist/api/media-bulk.mjs +17 -17
- package/dist/api/media-folders.mjs +21 -21
- package/dist/api/media-handlers.d.ts +2 -2
- package/dist/api/media-handlers.mjs +21 -21
- package/dist/api/media.mjs +21 -21
- package/dist/api/singles-detail.mjs +21 -21
- package/dist/api/singles-schema-detail.mjs +21 -21
- package/dist/api/singles.mjs +21 -21
- package/dist/api/storage-upload-url.mjs +21 -21
- package/dist/api/uploads.mjs +27 -26
- package/dist/auth/index.mjs +6 -6
- package/dist/{boot-apply-PQSYLDIN.mjs → boot-apply-OE3D3KNU.mjs} +1 -1
- package/dist/{chunk-IZWPRDC3.mjs → chunk-2QSGNGOB.mjs} +1 -1
- package/dist/{chunk-DP3G27G5.mjs → chunk-35LAHTCU.mjs} +12 -2
- package/dist/{chunk-DNNG377Z.mjs → chunk-463A2UDH.mjs} +79 -13
- package/dist/{chunk-V4EQTOA4.mjs → chunk-4HUQNXVM.mjs} +2 -2
- package/dist/{chunk-VJ66NCL4.mjs → chunk-6C3CST4Q.mjs} +53 -4
- package/dist/{chunk-PKMABBB5.mjs → chunk-6GWK77EN.mjs} +1 -1
- package/dist/{chunk-XZKLBMN6.mjs → chunk-A75OLKXP.mjs} +44 -16
- package/dist/{chunk-TS7GHTG2.mjs → chunk-A7GGVOIV.mjs} +1 -1
- package/dist/{chunk-INV7QKLG.mjs → chunk-BZ2EOLXR.mjs} +1 -1
- package/dist/{chunk-X7TXCYYN.mjs → chunk-DQGQMP5F.mjs} +46 -26
- package/dist/{chunk-2W3DVD7S.mjs → chunk-ERTNRSP3.mjs} +1 -1
- package/dist/{chunk-UJ2IMJ4W.mjs → chunk-HREB7UR4.mjs} +10 -4
- package/dist/{chunk-NSEFNNU4.mjs → chunk-ILETUFUD.mjs} +302 -105
- package/dist/{chunk-A3WPLSDT.mjs → chunk-INTLFB63.mjs} +1 -1
- package/dist/{chunk-SBACDPNX.mjs → chunk-JCQMC6HH.mjs} +216 -27
- package/dist/{chunk-3FA7FKAV.mjs → chunk-JGVOZSXS.mjs} +58 -4
- package/dist/{chunk-M52VMPGA.mjs → chunk-KZFYCMBL.mjs} +1 -1
- package/dist/{chunk-W5KKPZT5.mjs → chunk-L7BXB5H3.mjs} +2 -2
- package/dist/{chunk-B2GV2BWH.mjs → chunk-MF4S2WSM.mjs} +2 -2
- package/dist/{chunk-R6JJQHFC.mjs → chunk-NXA6FD7R.mjs} +1 -1
- package/dist/{chunk-XGI4EMS3.mjs → chunk-OPACR7PX.mjs} +3 -3
- package/dist/{chunk-2OALJTK6.mjs → chunk-OV4WR3EC.mjs} +22 -42
- package/dist/{chunk-YZNBLFIW.mjs → chunk-RH3QV6E6.mjs} +3 -3
- package/dist/{chunk-LDKCUMHK.mjs → chunk-RQ3N4DIB.mjs} +2 -2
- package/dist/{chunk-YV4Y7SDL.mjs → chunk-TGBLNY5L.mjs} +2 -2
- package/dist/{chunk-GZ6DCQKC.mjs → chunk-TVG3WU6C.mjs} +5 -3
- package/dist/{chunk-AK6Z23OX.mjs → chunk-UGB6MLR6.mjs} +274 -45
- package/dist/{chunk-2Q2SX2CS.mjs → chunk-V5DUKEYT.mjs} +2 -2
- package/dist/{chunk-UOP63Q54.mjs → chunk-WRGCEERR.mjs} +1 -1
- package/dist/{chunk-O3QHXMOX.mjs → chunk-XCT6CROA.mjs} +23 -19
- package/dist/{chunk-P7NH2OSC.mjs → chunk-ZDNGCKSZ.mjs} +78 -49
- package/dist/cli/nextly.mjs +1 -1
- package/dist/cli/utils/index.d.ts +2 -2
- package/dist/cli/utils/index.mjs +1 -1
- package/dist/{component-schema-service-5577KVW6.mjs → component-schema-service-HUAQQ4H5.mjs} +2 -2
- package/dist/config.d.ts +3 -3
- package/dist/database/index.d.ts +2 -2
- package/dist/database/index.mjs +3 -3
- package/dist/database/seeders/index.mjs +18 -18
- package/dist/{db-sync-demote-LJGKLB3S.mjs → db-sync-demote-M7IEFD6N.mjs} +6 -6
- package/dist/{db-sync-promote-B26VSYQF.mjs → db-sync-promote-2MCB5JRZ.mjs} +6 -6
- package/dist/{dynamic-collection-schema-service-IEXTPIZ7.mjs → dynamic-collection-schema-service-FIRWOXZI.mjs} +2 -2
- package/dist/{factory-IWMBKUJM.mjs → factory-UGJGOZZ7.mjs} +2 -2
- package/dist/index.d.ts +16 -11
- package/dist/index.mjs +24 -55
- package/dist/{permissions-3DZZQZMI.mjs → permissions-KH3WCGAR.mjs} +16 -16
- package/dist/{pipeline-YOML7SWF.mjs → pipeline-JLANATHU.mjs} +10 -10
- package/dist/{preview-ZZTR3QGS.mjs → preview-3RSMZITY.mjs} +3 -3
- package/dist/{program-PW6UB2ZC.mjs → program-6V6HLEUI.mjs} +27 -27
- package/dist/{register-SF6E6FVU.mjs → register-FCUTHDS5.mjs} +17 -17
- package/dist/{reload-config-HWQ4G5MM.mjs → reload-config-52GWTPZG.mjs} +10 -10
- package/dist/{routeHandler-UNMMJIBM.mjs → routeHandler-FP26UQPJ.mjs} +26 -26
- package/dist/{runtime-schema-generator-NRA6A6Z6.mjs → runtime-schema-generator-NQOLDUDG.mjs} +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.mjs +26 -26
- package/dist/{super-admin-G5ZK5F4T.mjs → super-admin-XZAU4VQM.mjs} +16 -16
- package/dist/{system-table-service-WGSRVEGT.mjs → system-table-service-5FIVIALU.mjs} +5 -5
- package/dist/{users-7KELGRYJ.mjs → users-K2NJTF55.mjs} +15 -15
- package/package.json +8 -8
- /package/dist/{first-run-QIVKWJIF.mjs → first-run-2UDWZK5X.mjs} +0 -0
|
@@ -7,46 +7,46 @@ import {
|
|
|
7
7
|
} from "../chunk-TO5AFLVQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getCachedNextly
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-ZDNGCKSZ.mjs";
|
|
11
|
+
import "../chunk-OV4WR3EC.mjs";
|
|
12
|
+
import "../chunk-6C3CST4Q.mjs";
|
|
13
|
+
import "../chunk-NXA6FD7R.mjs";
|
|
14
14
|
import "../chunk-X23WKS3Z.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getService
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-DQGQMP5F.mjs";
|
|
18
|
+
import "../chunk-RH3QV6E6.mjs";
|
|
19
19
|
import "../chunk-FQULBZ53.mjs";
|
|
20
20
|
import "../chunk-67GXH6PR.mjs";
|
|
21
21
|
import "../chunk-2TFX4ND3.mjs";
|
|
22
22
|
import {
|
|
23
23
|
getNextlyLogger
|
|
24
24
|
} from "../chunk-W4MGXIRR.mjs";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-ILETUFUD.mjs";
|
|
26
|
+
import "../chunk-JGVOZSXS.mjs";
|
|
27
27
|
import "../chunk-AGJ6F2T3.mjs";
|
|
28
28
|
import "../chunk-KIMNCZGV.mjs";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-UGB6MLR6.mjs";
|
|
30
|
+
import "../chunk-BZ2EOLXR.mjs";
|
|
31
|
+
import "../chunk-TVG3WU6C.mjs";
|
|
32
|
+
import "../chunk-JCQMC6HH.mjs";
|
|
33
33
|
import "../chunk-RJLLGGPG.mjs";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-4HUQNXVM.mjs";
|
|
35
35
|
import "../chunk-I4JMR3UR.mjs";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-A75OLKXP.mjs";
|
|
37
|
+
import "../chunk-2QSGNGOB.mjs";
|
|
38
|
+
import "../chunk-463A2UDH.mjs";
|
|
39
39
|
import {
|
|
40
40
|
calculateSchemaHash
|
|
41
41
|
} from "../chunk-5HMZ644B.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-L7BXB5H3.mjs";
|
|
43
43
|
import "../chunk-56WO4WX7.mjs";
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-ERTNRSP3.mjs";
|
|
45
|
+
import "../chunk-A7GGVOIV.mjs";
|
|
46
46
|
import "../chunk-H26B4FYG.mjs";
|
|
47
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-35LAHTCU.mjs";
|
|
48
48
|
import "../chunk-DV6WVX2Q.mjs";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-HREB7UR4.mjs";
|
|
50
50
|
import "../chunk-EGXBZCGC.mjs";
|
|
51
51
|
import "../chunk-G2AA4QLC.mjs";
|
|
52
52
|
import "../chunk-4MJLT6PZ.mjs";
|
package/dist/api/singles.mjs
CHANGED
|
@@ -4,44 +4,44 @@ import {
|
|
|
4
4
|
} from "../chunk-TO5AFLVQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getCachedNextly
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ZDNGCKSZ.mjs";
|
|
8
|
+
import "../chunk-OV4WR3EC.mjs";
|
|
9
|
+
import "../chunk-6C3CST4Q.mjs";
|
|
10
|
+
import "../chunk-NXA6FD7R.mjs";
|
|
11
11
|
import "../chunk-X23WKS3Z.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getService
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-DQGQMP5F.mjs";
|
|
15
|
+
import "../chunk-RH3QV6E6.mjs";
|
|
16
16
|
import "../chunk-FQULBZ53.mjs";
|
|
17
17
|
import "../chunk-67GXH6PR.mjs";
|
|
18
18
|
import "../chunk-2TFX4ND3.mjs";
|
|
19
19
|
import "../chunk-W4MGXIRR.mjs";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-ILETUFUD.mjs";
|
|
21
|
+
import "../chunk-JGVOZSXS.mjs";
|
|
22
22
|
import "../chunk-AGJ6F2T3.mjs";
|
|
23
23
|
import "../chunk-KIMNCZGV.mjs";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-UGB6MLR6.mjs";
|
|
25
|
+
import "../chunk-BZ2EOLXR.mjs";
|
|
26
|
+
import "../chunk-TVG3WU6C.mjs";
|
|
27
|
+
import "../chunk-JCQMC6HH.mjs";
|
|
28
28
|
import "../chunk-RJLLGGPG.mjs";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-4HUQNXVM.mjs";
|
|
30
30
|
import "../chunk-I4JMR3UR.mjs";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-A75OLKXP.mjs";
|
|
32
|
+
import "../chunk-2QSGNGOB.mjs";
|
|
33
|
+
import "../chunk-463A2UDH.mjs";
|
|
34
34
|
import "../chunk-5HMZ644B.mjs";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-L7BXB5H3.mjs";
|
|
36
36
|
import "../chunk-56WO4WX7.mjs";
|
|
37
37
|
import {
|
|
38
38
|
withTimezoneFormatting
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-
|
|
39
|
+
} from "../chunk-ERTNRSP3.mjs";
|
|
40
|
+
import "../chunk-A7GGVOIV.mjs";
|
|
41
41
|
import "../chunk-H26B4FYG.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-35LAHTCU.mjs";
|
|
43
43
|
import "../chunk-DV6WVX2Q.mjs";
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-HREB7UR4.mjs";
|
|
45
45
|
import "../chunk-EGXBZCGC.mjs";
|
|
46
46
|
import "../chunk-G2AA4QLC.mjs";
|
|
47
47
|
import "../chunk-4MJLT6PZ.mjs";
|
|
@@ -6,40 +6,40 @@ import {
|
|
|
6
6
|
} from "../chunk-TO5AFLVQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getCachedNextly
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-ZDNGCKSZ.mjs";
|
|
10
|
+
import "../chunk-OV4WR3EC.mjs";
|
|
11
|
+
import "../chunk-6C3CST4Q.mjs";
|
|
12
|
+
import "../chunk-NXA6FD7R.mjs";
|
|
13
13
|
import "../chunk-X23WKS3Z.mjs";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-DQGQMP5F.mjs";
|
|
15
|
+
import "../chunk-RH3QV6E6.mjs";
|
|
16
16
|
import "../chunk-FQULBZ53.mjs";
|
|
17
17
|
import "../chunk-67GXH6PR.mjs";
|
|
18
18
|
import "../chunk-2TFX4ND3.mjs";
|
|
19
19
|
import "../chunk-W4MGXIRR.mjs";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-ILETUFUD.mjs";
|
|
21
|
+
import "../chunk-JGVOZSXS.mjs";
|
|
22
22
|
import "../chunk-AGJ6F2T3.mjs";
|
|
23
23
|
import "../chunk-KIMNCZGV.mjs";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-UGB6MLR6.mjs";
|
|
25
|
+
import "../chunk-BZ2EOLXR.mjs";
|
|
26
|
+
import "../chunk-TVG3WU6C.mjs";
|
|
27
|
+
import "../chunk-JCQMC6HH.mjs";
|
|
28
28
|
import "../chunk-RJLLGGPG.mjs";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-4HUQNXVM.mjs";
|
|
30
30
|
import "../chunk-I4JMR3UR.mjs";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-A75OLKXP.mjs";
|
|
32
|
+
import "../chunk-2QSGNGOB.mjs";
|
|
33
|
+
import "../chunk-463A2UDH.mjs";
|
|
34
34
|
import "../chunk-5HMZ644B.mjs";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-L7BXB5H3.mjs";
|
|
36
36
|
import "../chunk-56WO4WX7.mjs";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-ERTNRSP3.mjs";
|
|
38
|
+
import "../chunk-A7GGVOIV.mjs";
|
|
39
39
|
import "../chunk-H26B4FYG.mjs";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-35LAHTCU.mjs";
|
|
41
41
|
import "../chunk-DV6WVX2Q.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-HREB7UR4.mjs";
|
|
43
43
|
import {
|
|
44
44
|
getMediaStorage
|
|
45
45
|
} from "../chunk-EGXBZCGC.mjs";
|
package/dist/api/uploads.mjs
CHANGED
|
@@ -3,48 +3,49 @@ import {
|
|
|
3
3
|
} from "../chunk-TO5AFLVQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getCachedNextly
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-ZDNGCKSZ.mjs";
|
|
7
|
+
import "../chunk-OV4WR3EC.mjs";
|
|
8
|
+
import "../chunk-6C3CST4Q.mjs";
|
|
9
|
+
import "../chunk-NXA6FD7R.mjs";
|
|
10
10
|
import "../chunk-X23WKS3Z.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getService,
|
|
13
13
|
isServicesRegistered
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-DQGQMP5F.mjs";
|
|
15
|
+
import "../chunk-RH3QV6E6.mjs";
|
|
16
16
|
import "../chunk-FQULBZ53.mjs";
|
|
17
17
|
import "../chunk-67GXH6PR.mjs";
|
|
18
18
|
import "../chunk-2TFX4ND3.mjs";
|
|
19
19
|
import "../chunk-W4MGXIRR.mjs";
|
|
20
20
|
import {
|
|
21
21
|
UploadService,
|
|
22
|
-
clampLimit2 as clampLimit
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
clampLimit2 as clampLimit,
|
|
23
|
+
toAbsoluteMediaUrl
|
|
24
|
+
} from "../chunk-ILETUFUD.mjs";
|
|
25
|
+
import "../chunk-JGVOZSXS.mjs";
|
|
25
26
|
import "../chunk-AGJ6F2T3.mjs";
|
|
26
27
|
import "../chunk-KIMNCZGV.mjs";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-UGB6MLR6.mjs";
|
|
29
|
+
import "../chunk-BZ2EOLXR.mjs";
|
|
30
|
+
import "../chunk-TVG3WU6C.mjs";
|
|
31
|
+
import "../chunk-JCQMC6HH.mjs";
|
|
31
32
|
import "../chunk-RJLLGGPG.mjs";
|
|
32
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-4HUQNXVM.mjs";
|
|
33
34
|
import "../chunk-I4JMR3UR.mjs";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-A75OLKXP.mjs";
|
|
36
|
+
import "../chunk-2QSGNGOB.mjs";
|
|
37
|
+
import "../chunk-463A2UDH.mjs";
|
|
37
38
|
import "../chunk-5HMZ644B.mjs";
|
|
38
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-L7BXB5H3.mjs";
|
|
39
40
|
import "../chunk-56WO4WX7.mjs";
|
|
40
41
|
import {
|
|
41
42
|
withTimezoneFormatting
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-ERTNRSP3.mjs";
|
|
44
|
+
import "../chunk-A7GGVOIV.mjs";
|
|
44
45
|
import "../chunk-H26B4FYG.mjs";
|
|
45
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-35LAHTCU.mjs";
|
|
46
47
|
import "../chunk-DV6WVX2Q.mjs";
|
|
47
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-HREB7UR4.mjs";
|
|
48
49
|
import {
|
|
49
50
|
getMediaStorage
|
|
50
51
|
} from "../chunk-EGXBZCGC.mjs";
|
|
@@ -269,8 +270,8 @@ var POST = withErrorHandler(
|
|
|
269
270
|
filename: result.data?.filename,
|
|
270
271
|
mimeType: result.data?.mimeType,
|
|
271
272
|
filesize: result.data?.size,
|
|
272
|
-
url: result.data?.url,
|
|
273
|
-
thumbnailUrl: result.data?.thumbnailUrl,
|
|
273
|
+
url: toAbsoluteMediaUrl(result.data?.url),
|
|
274
|
+
thumbnailUrl: toAbsoluteMediaUrl(result.data?.thumbnailUrl),
|
|
274
275
|
width: result.data?.width,
|
|
275
276
|
height: result.data?.height,
|
|
276
277
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -300,8 +301,8 @@ var GET = withErrorHandler(
|
|
|
300
301
|
filename: result.data?.filename || result.data?.originalFilename,
|
|
301
302
|
mimeType: result.data?.mimeType,
|
|
302
303
|
filesize: result.data?.size,
|
|
303
|
-
url: result.data?.url,
|
|
304
|
-
thumbnailUrl: result.data?.thumbnailUrl,
|
|
304
|
+
url: toAbsoluteMediaUrl(result.data?.url),
|
|
305
|
+
thumbnailUrl: toAbsoluteMediaUrl(result.data?.thumbnailUrl),
|
|
305
306
|
width: result.data?.width,
|
|
306
307
|
height: result.data?.height,
|
|
307
308
|
createdAt: result.data?.createdAt,
|
package/dist/auth/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeAuthRequest
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-INTLFB63.mjs";
|
|
4
4
|
import "../chunk-DXGGXIUZ.mjs";
|
|
5
5
|
import "../chunk-APKKRD2G.mjs";
|
|
6
6
|
import {
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
isSuperAdmin,
|
|
27
27
|
validatePasswordStrength,
|
|
28
28
|
verifyPassword
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-L7BXB5H3.mjs";
|
|
30
30
|
import "../chunk-56WO4WX7.mjs";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-ERTNRSP3.mjs";
|
|
32
|
+
import "../chunk-A7GGVOIV.mjs";
|
|
33
33
|
import "../chunk-H26B4FYG.mjs";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-35LAHTCU.mjs";
|
|
35
35
|
import "../chunk-DV6WVX2Q.mjs";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-HREB7UR4.mjs";
|
|
37
37
|
import "../chunk-IUDOC7N7.mjs";
|
|
38
38
|
import "../chunk-LAZXX4HR.mjs";
|
|
39
39
|
import "../chunk-D5HQBNUB.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
env
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HREB7UR4.mjs";
|
|
4
4
|
|
|
5
5
|
// src/database/factory.ts
|
|
6
6
|
async function createAdapter(config) {
|
|
@@ -11,7 +11,17 @@ async function createAdapter(config) {
|
|
|
11
11
|
"DATABASE_URL environment variable is required for PostgreSQL and MySQL"
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
|
-
const adapterConfig = {
|
|
14
|
+
const adapterConfig = {
|
|
15
|
+
...config,
|
|
16
|
+
url,
|
|
17
|
+
pool: {
|
|
18
|
+
...config?.pool ?? {},
|
|
19
|
+
max: config?.pool?.max ?? env.DB_POOL_MAX,
|
|
20
|
+
min: config?.pool?.min ?? env.DB_POOL_MIN,
|
|
21
|
+
idleTimeoutMs: config?.pool?.idleTimeoutMs ?? env.DB_POOL_IDLE_TIMEOUT
|
|
22
|
+
},
|
|
23
|
+
queryTimeout: config?.queryTimeout ?? env.DB_QUERY_TIMEOUT
|
|
24
|
+
};
|
|
15
25
|
if (type !== "postgresql" && type !== "mysql" && type !== "sqlite") {
|
|
16
26
|
const unknownType = String(type);
|
|
17
27
|
throw new Error(`Unsupported database type: ${unknownType}`);
|
|
@@ -122,17 +122,51 @@ function lengthForKind(kind) {
|
|
|
122
122
|
function getSystemColumnDescriptors(dialect, opts) {
|
|
123
123
|
const cols = [];
|
|
124
124
|
if (dialect === "postgresql") {
|
|
125
|
-
cols.push({
|
|
125
|
+
cols.push({
|
|
126
|
+
name: "id",
|
|
127
|
+
dialectType: "text",
|
|
128
|
+
nullable: false,
|
|
129
|
+
primaryKey: true
|
|
130
|
+
});
|
|
126
131
|
if (!opts.hasTitleField) {
|
|
127
|
-
cols.push({
|
|
132
|
+
cols.push({
|
|
133
|
+
name: "title",
|
|
134
|
+
dialectType: "text",
|
|
135
|
+
nullable: false,
|
|
136
|
+
primaryKey: false
|
|
137
|
+
});
|
|
128
138
|
}
|
|
129
139
|
if (!opts.hasSlugField) {
|
|
130
|
-
cols.push({
|
|
140
|
+
cols.push({
|
|
141
|
+
name: "slug",
|
|
142
|
+
dialectType: "text",
|
|
143
|
+
nullable: false,
|
|
144
|
+
primaryKey: false
|
|
145
|
+
});
|
|
131
146
|
}
|
|
132
|
-
cols.push({
|
|
133
|
-
|
|
147
|
+
cols.push({
|
|
148
|
+
name: "created_at",
|
|
149
|
+
dialectType: "timestamp",
|
|
150
|
+
nullable: true,
|
|
151
|
+
primaryKey: false,
|
|
152
|
+
default: "now()"
|
|
153
|
+
});
|
|
154
|
+
cols.push({
|
|
155
|
+
name: "updated_at",
|
|
156
|
+
dialectType: "timestamp",
|
|
157
|
+
nullable: true,
|
|
158
|
+
primaryKey: false,
|
|
159
|
+
default: "now()"
|
|
160
|
+
});
|
|
134
161
|
if (opts.hasStatus) {
|
|
135
|
-
cols.push({
|
|
162
|
+
cols.push({
|
|
163
|
+
name: "status",
|
|
164
|
+
dialectType: "varchar",
|
|
165
|
+
length: 20,
|
|
166
|
+
nullable: false,
|
|
167
|
+
primaryKey: false,
|
|
168
|
+
default: "'draft'"
|
|
169
|
+
});
|
|
136
170
|
}
|
|
137
171
|
} else if (dialect === "mysql") {
|
|
138
172
|
cols.push({
|
|
@@ -178,21 +212,53 @@ function getSystemColumnDescriptors(dialect, opts) {
|
|
|
178
212
|
dialectType: "varchar(20)",
|
|
179
213
|
length: 20,
|
|
180
214
|
nullable: false,
|
|
181
|
-
primaryKey: false
|
|
215
|
+
primaryKey: false,
|
|
216
|
+
default: "'draft'"
|
|
182
217
|
});
|
|
183
218
|
}
|
|
184
219
|
} else {
|
|
185
|
-
cols.push({
|
|
220
|
+
cols.push({
|
|
221
|
+
name: "id",
|
|
222
|
+
dialectType: "text",
|
|
223
|
+
nullable: false,
|
|
224
|
+
primaryKey: true
|
|
225
|
+
});
|
|
186
226
|
if (!opts.hasTitleField) {
|
|
187
|
-
cols.push({
|
|
227
|
+
cols.push({
|
|
228
|
+
name: "title",
|
|
229
|
+
dialectType: "text",
|
|
230
|
+
nullable: false,
|
|
231
|
+
primaryKey: false
|
|
232
|
+
});
|
|
188
233
|
}
|
|
189
234
|
if (!opts.hasSlugField) {
|
|
190
|
-
cols.push({
|
|
235
|
+
cols.push({
|
|
236
|
+
name: "slug",
|
|
237
|
+
dialectType: "text",
|
|
238
|
+
nullable: false,
|
|
239
|
+
primaryKey: false
|
|
240
|
+
});
|
|
191
241
|
}
|
|
192
|
-
cols.push({
|
|
193
|
-
|
|
242
|
+
cols.push({
|
|
243
|
+
name: "created_at",
|
|
244
|
+
dialectType: "integer",
|
|
245
|
+
nullable: true,
|
|
246
|
+
primaryKey: false
|
|
247
|
+
});
|
|
248
|
+
cols.push({
|
|
249
|
+
name: "updated_at",
|
|
250
|
+
dialectType: "integer",
|
|
251
|
+
nullable: true,
|
|
252
|
+
primaryKey: false
|
|
253
|
+
});
|
|
194
254
|
if (opts.hasStatus) {
|
|
195
|
-
cols.push({
|
|
255
|
+
cols.push({
|
|
256
|
+
name: "status",
|
|
257
|
+
dialectType: "text",
|
|
258
|
+
nullable: false,
|
|
259
|
+
primaryKey: false,
|
|
260
|
+
default: "'draft'"
|
|
261
|
+
});
|
|
196
262
|
}
|
|
197
263
|
}
|
|
198
264
|
return cols;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
env
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HREB7UR4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isCheckboxField,
|
|
6
6
|
isCodeField,
|
|
@@ -60,7 +60,7 @@ var SQL_COLUMN_TYPES = {
|
|
|
60
60
|
boolean: "BOOLEAN",
|
|
61
61
|
integer: "INTEGER",
|
|
62
62
|
real: "REAL",
|
|
63
|
-
timestamp: "TIMESTAMP
|
|
63
|
+
timestamp: "TIMESTAMP",
|
|
64
64
|
json: "JSONB"
|
|
65
65
|
},
|
|
66
66
|
mysql: {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PromptCancelledError,
|
|
3
3
|
TTYRequiredError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UGB6MLR6.mjs";
|
|
5
5
|
|
|
6
6
|
// src/domains/schema/pipeline/prompt-dispatcher/clack-terminal.ts
|
|
7
7
|
import * as clack from "@clack/prompts";
|
|
8
8
|
function hasTTY() {
|
|
9
9
|
return Boolean(process.stdin.isTTY && process.stdout.isTTY);
|
|
10
10
|
}
|
|
11
|
+
function shouldAutoConfirmDrops() {
|
|
12
|
+
return process.env.NEXTLY_ALLOW_CODE_FIRST_DROPS === "1";
|
|
13
|
+
}
|
|
11
14
|
var ClackTerminalPromptDispatcher = class {
|
|
12
15
|
async dispatch(args) {
|
|
13
16
|
const { candidates, events } = args;
|
|
@@ -16,9 +19,18 @@ var ClackTerminalPromptDispatcher = class {
|
|
|
16
19
|
}
|
|
17
20
|
if (!hasTTY()) {
|
|
18
21
|
const renameSample = candidates.slice(0, 3).map((c) => `${c.fromColumn} -> ${c.toColumn} on ${c.tableName}`).join(", ");
|
|
19
|
-
const eventSample = events.slice(0, 3).map(
|
|
20
|
-
(e
|
|
21
|
-
|
|
22
|
+
const eventSample = events.slice(0, 3).map((e) => {
|
|
23
|
+
switch (e.kind) {
|
|
24
|
+
case "type_change":
|
|
25
|
+
return `type change on ${e.tableName}.${e.columnName} (${e.fromType} -> ${e.toType})`;
|
|
26
|
+
case "add_not_null_with_nulls":
|
|
27
|
+
return `NOT NULL on ${e.tableName}.${e.columnName}`;
|
|
28
|
+
case "add_required_field_no_default":
|
|
29
|
+
return `required field ${e.tableName}.${e.columnName}`;
|
|
30
|
+
case "destructive_drop":
|
|
31
|
+
return `drop column ${e.tableName}.${e.columnName} (${e.columnType}, ${e.tableRowCount} row(s))`;
|
|
32
|
+
}
|
|
33
|
+
}).join(", ");
|
|
22
34
|
const parts = [];
|
|
23
35
|
if (candidates.length > 0) {
|
|
24
36
|
parts.push(`${candidates.length} rename candidate(s): ${renameSample}`);
|
|
@@ -54,8 +66,40 @@ ${parts.join("\n")}`
|
|
|
54
66
|
return { resolutions: [], proceed: true };
|
|
55
67
|
}
|
|
56
68
|
const resolutions = [];
|
|
69
|
+
const autoConfirmDrops = shouldAutoConfirmDrops();
|
|
70
|
+
const allDestructiveDrops = events.every(
|
|
71
|
+
(e) => e.kind === "destructive_drop"
|
|
72
|
+
);
|
|
73
|
+
if (autoConfirmDrops && allDestructiveDrops) {
|
|
74
|
+
for (const event of events) {
|
|
75
|
+
if (event.kind !== "destructive_drop") continue;
|
|
76
|
+
resolutions.push({ kind: "confirm_drop", eventId: event.id });
|
|
77
|
+
}
|
|
78
|
+
return { resolutions, proceed: true };
|
|
79
|
+
}
|
|
57
80
|
clack.intro("Schema change requires confirmation");
|
|
58
81
|
for (const event of events) {
|
|
82
|
+
if (event.kind === "destructive_drop") {
|
|
83
|
+
clack.note(
|
|
84
|
+
`Type: ${event.columnType}
|
|
85
|
+
Rows affected: ${event.tableRowCount}`,
|
|
86
|
+
`Drop column "${event.tableName}.${event.columnName}"`
|
|
87
|
+
);
|
|
88
|
+
if (autoConfirmDrops) {
|
|
89
|
+
resolutions.push({ kind: "confirm_drop", eventId: event.id });
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
const proceed = await clack.confirm({
|
|
93
|
+
message: `Drop "${event.columnName}" from "${event.tableName}"?`,
|
|
94
|
+
initialValue: false
|
|
95
|
+
});
|
|
96
|
+
if (clack.isCancel(proceed) || proceed === false) {
|
|
97
|
+
clack.outro("Cancelled");
|
|
98
|
+
return { resolutions, proceed: false };
|
|
99
|
+
}
|
|
100
|
+
resolutions.push({ kind: "confirm_drop", eventId: event.id });
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
59
103
|
if (event.kind === "type_change") {
|
|
60
104
|
clack.note(
|
|
61
105
|
[
|
|
@@ -82,6 +126,11 @@ ${event.nullCount} of ${event.tableRowCount} rows have NULL values.` : `New requ
|
|
|
82
126
|
provide_default: "Provide a default value for empty rows",
|
|
83
127
|
make_optional: "Make the field optional (cancel the NOT NULL)",
|
|
84
128
|
delete_nonconforming: event.kind === "add_not_null_with_nulls" ? `Delete the ${event.nullCount} rows with empty values` : "Delete rows that violate the constraint",
|
|
129
|
+
// Unreachable for NOT-NULL kinds (destructive_drop never lists
|
|
130
|
+
// these resolutions in applicableResolutions), but Record<K,V>
|
|
131
|
+
// requires every key. The label only surfaces if a future event
|
|
132
|
+
// erroneously includes confirm_drop in its applicableResolutions.
|
|
133
|
+
confirm_drop: "Confirm the drop",
|
|
85
134
|
abort: "Cancel everything"
|
|
86
135
|
};
|
|
87
136
|
const options = event.applicableResolutions.map((kind2) => ({
|