@coursebuilder/adapter-drizzle 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-57CX5SOI.js → chunk-2UU2F4DM.js} +5 -4
- package/dist/{chunk-V23SCQL7.js → chunk-3NUCFLQJ.js} +2 -2
- package/dist/{chunk-Y7QZGEPT.js → chunk-4ZWS76VQ.js} +2 -2
- package/dist/{chunk-PPBEA4EM.js → chunk-6ON2O6UD.js} +2 -2
- package/dist/{chunk-ULEUIL2Y.js → chunk-BM5UKWXI.js} +3 -3
- package/dist/{chunk-IDINCRHK.js → chunk-CQNKTFXE.js} +3 -3
- package/dist/{chunk-N7UDJAI3.js → chunk-FRA4ZCRA.js} +462 -337
- package/dist/{chunk-J4LBG2TH.js → chunk-GINRTL6J.js} +2 -2
- package/dist/chunk-JZQ666KH.js +62 -0
- package/dist/{chunk-GLPDG7UE.js → chunk-KDEWFXEP.js} +2 -2
- package/dist/{chunk-MBB4GIJI.js → chunk-LERR6HQ3.js} +2 -2
- package/dist/{chunk-VDVCCU7D.js → chunk-LZHZDFNZ.js} +2 -2
- package/dist/{chunk-XJHSXR42.js → chunk-O6JECJRY.js} +4 -4
- package/dist/{chunk-BX5SO2JG.js → chunk-P4VXXTVA.js} +2 -2
- package/dist/{chunk-VXZRMVNY.js → chunk-QP6YMUQX.js} +2 -2
- package/dist/chunk-QTGVGIRO.js +54 -0
- package/dist/{chunk-ZD3R6UPJ.js → chunk-SRTIWWLG.js} +7 -7
- package/dist/{chunk-DL3UMWB4.js → chunk-TBM3AK3P.js} +3 -3
- package/dist/{chunk-FNYW3XKR.js → chunk-XIGJFVUM.js} +8 -8
- package/dist/{chunk-JKOYOL7A.js → chunk-YGRYHMCG.js} +2 -2
- package/dist/chunk-YVVXDJHI.js +56 -0
- package/dist/{chunk-A26D3TCA.js → chunk-Z245DYMP.js} +159 -62
- package/dist/index.js +22 -19
- package/dist/lib/mysql/index.cjs +992 -650
- package/dist/lib/mysql/index.cjs.map +1 -1
- package/dist/lib/mysql/index.d.cts +2064 -1148
- package/dist/lib/mysql/index.d.ts +2064 -1148
- package/dist/lib/mysql/index.js +22 -19
- package/dist/lib/mysql/schemas/auth/accounts.cjs +85 -77
- package/dist/lib/mysql/schemas/auth/accounts.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/accounts.d.cts +17 -17
- package/dist/lib/mysql/schemas/auth/accounts.d.ts +17 -17
- package/dist/lib/mysql/schemas/auth/accounts.js +12 -12
- package/dist/lib/mysql/schemas/auth/device-access-token.cjs +214 -0
- package/dist/lib/mysql/schemas/auth/device-access-token.cjs.map +1 -0
- package/dist/lib/mysql/schemas/auth/device-access-token.d.cts +52 -0
- package/dist/lib/mysql/schemas/auth/device-access-token.d.ts +52 -0
- package/dist/lib/mysql/schemas/auth/device-access-token.js +22 -0
- package/dist/lib/mysql/schemas/auth/device-access-token.js.map +1 -0
- package/dist/lib/mysql/schemas/auth/device-verification.cjs +222 -0
- package/dist/lib/mysql/schemas/auth/device-verification.cjs.map +1 -0
- package/dist/lib/mysql/schemas/auth/device-verification.d.cts +88 -0
- package/dist/lib/mysql/schemas/auth/device-verification.d.ts +88 -0
- package/dist/lib/mysql/schemas/auth/device-verification.js +22 -0
- package/dist/lib/mysql/schemas/auth/device-verification.js.map +1 -0
- package/dist/lib/mysql/schemas/auth/permissions.cjs +1 -1
- package/dist/lib/mysql/schemas/auth/permissions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/permissions.d.cts +9 -9
- package/dist/lib/mysql/schemas/auth/permissions.d.ts +9 -9
- package/dist/lib/mysql/schemas/auth/permissions.js +1 -1
- package/dist/lib/mysql/schemas/auth/role-permissions.cjs +74 -66
- package/dist/lib/mysql/schemas/auth/role-permissions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/role-permissions.d.cts +10 -10
- package/dist/lib/mysql/schemas/auth/role-permissions.d.ts +10 -10
- package/dist/lib/mysql/schemas/auth/role-permissions.js +13 -13
- package/dist/lib/mysql/schemas/auth/roles.cjs +72 -64
- package/dist/lib/mysql/schemas/auth/roles.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/roles.d.cts +10 -10
- package/dist/lib/mysql/schemas/auth/roles.d.ts +10 -10
- package/dist/lib/mysql/schemas/auth/roles.js +12 -12
- package/dist/lib/mysql/schemas/auth/sessions.cjs +75 -67
- package/dist/lib/mysql/schemas/auth/sessions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/sessions.d.cts +6 -6
- package/dist/lib/mysql/schemas/auth/sessions.d.ts +6 -6
- package/dist/lib/mysql/schemas/auth/sessions.js +13 -13
- package/dist/lib/mysql/schemas/auth/user-permissions.cjs +77 -69
- package/dist/lib/mysql/schemas/auth/user-permissions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/user-permissions.d.cts +10 -10
- package/dist/lib/mysql/schemas/auth/user-permissions.d.ts +10 -10
- package/dist/lib/mysql/schemas/auth/user-permissions.js +12 -12
- package/dist/lib/mysql/schemas/auth/user-prefs.cjs +222 -0
- package/dist/lib/mysql/schemas/auth/user-prefs.cjs.map +1 -0
- package/dist/lib/mysql/schemas/auth/user-prefs.d.cts +100 -0
- package/dist/lib/mysql/schemas/auth/user-prefs.d.ts +100 -0
- package/dist/lib/mysql/schemas/auth/user-prefs.js +21 -0
- package/dist/lib/mysql/schemas/auth/user-prefs.js.map +1 -0
- package/dist/lib/mysql/schemas/auth/user-roles.cjs +77 -69
- package/dist/lib/mysql/schemas/auth/user-roles.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/user-roles.d.cts +10 -10
- package/dist/lib/mysql/schemas/auth/user-roles.d.ts +10 -10
- package/dist/lib/mysql/schemas/auth/user-roles.js +12 -12
- package/dist/lib/mysql/schemas/auth/users.cjs +263 -180
- package/dist/lib/mysql/schemas/auth/users.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/users.d.cts +35 -21
- package/dist/lib/mysql/schemas/auth/users.d.ts +35 -21
- package/dist/lib/mysql/schemas/auth/users.js +12 -12
- package/dist/lib/mysql/schemas/auth/verification-tokens.cjs +1 -1
- package/dist/lib/mysql/schemas/auth/verification-tokens.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/verification-tokens.d.cts +5 -5
- package/dist/lib/mysql/schemas/auth/verification-tokens.d.ts +5 -5
- package/dist/lib/mysql/schemas/auth/verification-tokens.js +1 -1
- package/dist/lib/mysql/schemas/commerce/coupon.cjs +75 -66
- package/dist/lib/mysql/schemas/commerce/coupon.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/coupon.d.cts +19 -19
- package/dist/lib/mysql/schemas/commerce/coupon.d.ts +19 -19
- package/dist/lib/mysql/schemas/commerce/coupon.js +12 -12
- package/dist/lib/mysql/schemas/commerce/merchant-account.cjs +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-account.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-account.d.cts +6 -6
- package/dist/lib/mysql/schemas/commerce/merchant-account.d.ts +6 -6
- package/dist/lib/mysql/schemas/commerce/merchant-account.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-charge.cjs +6 -5
- package/dist/lib/mysql/schemas/commerce/merchant-charge.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-charge.d.cts +13 -13
- package/dist/lib/mysql/schemas/commerce/merchant-charge.d.ts +13 -13
- package/dist/lib/mysql/schemas/commerce/merchant-charge.js +4 -4
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.cjs +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.d.cts +7 -7
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.d.ts +7 -7
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-customer.cjs +3 -2
- package/dist/lib/mysql/schemas/commerce/merchant-customer.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-customer.d.cts +7 -7
- package/dist/lib/mysql/schemas/commerce/merchant-customer.d.ts +7 -7
- package/dist/lib/mysql/schemas/commerce/merchant-customer.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-price.cjs +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-price.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-price.d.cts +8 -8
- package/dist/lib/mysql/schemas/commerce/merchant-price.d.ts +8 -8
- package/dist/lib/mysql/schemas/commerce/merchant-price.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-product.cjs +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-product.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-product.d.cts +7 -7
- package/dist/lib/mysql/schemas/commerce/merchant-product.d.ts +7 -7
- package/dist/lib/mysql/schemas/commerce/merchant-product.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-session.cjs +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-session.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-session.d.cts +4 -4
- package/dist/lib/mysql/schemas/commerce/merchant-session.d.ts +4 -4
- package/dist/lib/mysql/schemas/commerce/merchant-session.js +1 -1
- package/dist/lib/mysql/schemas/commerce/price.cjs +60 -52
- package/dist/lib/mysql/schemas/commerce/price.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/price.d.cts +11 -11
- package/dist/lib/mysql/schemas/commerce/price.d.ts +11 -11
- package/dist/lib/mysql/schemas/commerce/price.js +12 -12
- package/dist/lib/mysql/schemas/commerce/product.cjs +75 -67
- package/dist/lib/mysql/schemas/commerce/product.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/product.d.cts +13 -13
- package/dist/lib/mysql/schemas/commerce/product.d.ts +13 -13
- package/dist/lib/mysql/schemas/commerce/product.js +12 -12
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.cjs +105 -96
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.d.cts +15 -15
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.d.ts +15 -15
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.js +13 -13
- package/dist/lib/mysql/schemas/commerce/purchase.cjs +138 -129
- package/dist/lib/mysql/schemas/commerce/purchase.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/purchase.d.cts +25 -25
- package/dist/lib/mysql/schemas/commerce/purchase.d.ts +25 -25
- package/dist/lib/mysql/schemas/commerce/purchase.js +12 -12
- package/dist/lib/mysql/schemas/commerce/upgradable-products.cjs +66 -58
- package/dist/lib/mysql/schemas/commerce/upgradable-products.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/upgradable-products.d.cts +11 -11
- package/dist/lib/mysql/schemas/commerce/upgradable-products.d.ts +11 -11
- package/dist/lib/mysql/schemas/commerce/upgradable-products.js +13 -13
- package/dist/lib/mysql/schemas/communication/comment.cjs +220 -0
- package/dist/lib/mysql/schemas/communication/comment.cjs.map +1 -0
- package/dist/lib/mysql/schemas/communication/comment.d.cts +100 -0
- package/dist/lib/mysql/schemas/communication/comment.d.ts +100 -0
- package/dist/lib/mysql/schemas/communication/comment.js +21 -0
- package/dist/lib/mysql/schemas/communication/comment.js.map +1 -0
- package/dist/lib/mysql/schemas/communication/communication-channel.cjs +1 -1
- package/dist/lib/mysql/schemas/communication/communication-channel.cjs.map +1 -1
- package/dist/lib/mysql/schemas/communication/communication-channel.d.cts +8 -8
- package/dist/lib/mysql/schemas/communication/communication-channel.d.ts +8 -8
- package/dist/lib/mysql/schemas/communication/communication-channel.js +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preference-types.cjs +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preference-types.cjs.map +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preference-types.d.cts +8 -8
- package/dist/lib/mysql/schemas/communication/communication-preference-types.d.ts +8 -8
- package/dist/lib/mysql/schemas/communication/communication-preference-types.js +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preferences.cjs +99 -91
- package/dist/lib/mysql/schemas/communication/communication-preferences.cjs.map +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preferences.d.cts +16 -16
- package/dist/lib/mysql/schemas/communication/communication-preferences.d.ts +16 -16
- package/dist/lib/mysql/schemas/communication/communication-preferences.js +12 -12
- package/dist/lib/mysql/schemas/content/content-contributions.cjs +67 -59
- package/dist/lib/mysql/schemas/content/content-contributions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-contributions.d.cts +13 -13
- package/dist/lib/mysql/schemas/content/content-contributions.d.ts +13 -13
- package/dist/lib/mysql/schemas/content/content-contributions.js +12 -12
- package/dist/lib/mysql/schemas/content/content-resource-product.cjs +61 -53
- package/dist/lib/mysql/schemas/content/content-resource-product.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource-product.d.cts +11 -11
- package/dist/lib/mysql/schemas/content/content-resource-product.d.ts +11 -11
- package/dist/lib/mysql/schemas/content/content-resource-product.js +12 -12
- package/dist/lib/mysql/schemas/content/content-resource-resource.cjs +58 -50
- package/dist/lib/mysql/schemas/content/content-resource-resource.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource-resource.d.cts +11 -11
- package/dist/lib/mysql/schemas/content/content-resource-resource.d.ts +11 -11
- package/dist/lib/mysql/schemas/content/content-resource-resource.js +12 -12
- package/dist/lib/mysql/schemas/content/content-resource.cjs +114 -66
- package/dist/lib/mysql/schemas/content/content-resource.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource.d.cts +14 -13
- package/dist/lib/mysql/schemas/content/content-resource.d.ts +14 -13
- package/dist/lib/mysql/schemas/content/content-resource.js +12 -12
- package/dist/lib/mysql/schemas/content/contribution-types.cjs +1 -1
- package/dist/lib/mysql/schemas/content/contribution-types.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/contribution-types.d.cts +10 -10
- package/dist/lib/mysql/schemas/content/contribution-types.d.ts +10 -10
- package/dist/lib/mysql/schemas/content/contribution-types.js +1 -1
- package/dist/lib/mysql/schemas/content/lesson-progress.cjs +77 -0
- package/dist/lib/mysql/schemas/content/lesson-progress.cjs.map +1 -0
- package/dist/lib/mysql/schemas/content/lesson-progress.d.cts +132 -0
- package/dist/lib/mysql/schemas/content/lesson-progress.d.ts +132 -0
- package/dist/lib/mysql/schemas/content/lesson-progress.js +8 -0
- package/dist/lib/mysql/schemas/content/lesson-progress.js.map +1 -0
- package/dist/lib/mysql/schemas/content/resource-progress.cjs +7 -7
- package/dist/lib/mysql/schemas/content/resource-progress.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/resource-progress.d.cts +9 -9
- package/dist/lib/mysql/schemas/content/resource-progress.d.ts +9 -9
- package/dist/lib/mysql/schemas/content/resource-progress.js +1 -1
- package/package.json +5 -5
- package/src/lib/mysql/index.ts +142 -39
- package/src/lib/mysql/schemas/auth/accounts.ts +1 -1
- package/src/lib/mysql/schemas/auth/device-access-token.ts +40 -0
- package/src/lib/mysql/schemas/auth/device-verification.ts +48 -0
- package/src/lib/mysql/schemas/auth/permissions.ts +1 -1
- package/src/lib/mysql/schemas/auth/role-permissions.ts +1 -1
- package/src/lib/mysql/schemas/auth/roles.ts +1 -1
- package/src/lib/mysql/schemas/auth/sessions.ts +1 -1
- package/src/lib/mysql/schemas/auth/user-permissions.ts +1 -1
- package/src/lib/mysql/schemas/auth/user-prefs.ts +52 -0
- package/src/lib/mysql/schemas/auth/user-roles.ts +1 -1
- package/src/lib/mysql/schemas/auth/users.ts +14 -2
- package/src/lib/mysql/schemas/auth/verification-tokens.ts +1 -1
- package/src/lib/mysql/schemas/commerce/coupon.ts +1 -4
- package/src/lib/mysql/schemas/commerce/merchant-account.ts +1 -1
- package/src/lib/mysql/schemas/commerce/merchant-charge.ts +1 -1
- package/src/lib/mysql/schemas/commerce/merchant-coupon.ts +1 -1
- package/src/lib/mysql/schemas/commerce/merchant-customer.ts +3 -1
- package/src/lib/mysql/schemas/commerce/merchant-price.ts +1 -1
- package/src/lib/mysql/schemas/commerce/merchant-product.ts +1 -1
- package/src/lib/mysql/schemas/commerce/merchant-session.ts +1 -1
- package/src/lib/mysql/schemas/commerce/price.ts +1 -1
- package/src/lib/mysql/schemas/commerce/product.ts +1 -1
- package/src/lib/mysql/schemas/commerce/purchase-user-transfer.ts +1 -1
- package/src/lib/mysql/schemas/commerce/purchase.ts +5 -4
- package/src/lib/mysql/schemas/commerce/upgradable-products.ts +1 -1
- package/src/lib/mysql/schemas/communication/comment.ts +52 -0
- package/src/lib/mysql/schemas/communication/communication-channel.ts +1 -1
- package/src/lib/mysql/schemas/communication/communication-preference-types.ts +1 -1
- package/src/lib/mysql/schemas/communication/communication-preferences.ts +1 -1
- package/src/lib/mysql/schemas/content/content-contributions.ts +1 -1
- package/src/lib/mysql/schemas/content/content-resource-product.ts +1 -1
- package/src/lib/mysql/schemas/content/content-resource-resource.ts +1 -1
- package/src/lib/mysql/schemas/content/content-resource.ts +6 -2
- package/src/lib/mysql/schemas/content/contribution-types.ts +1 -1
- package/src/lib/mysql/schemas/content/lesson-progress.ts +39 -0
- package/src/lib/mysql/schemas/content/resource-progress.ts +6 -8
|
@@ -1,28 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getLessonProgressSchema
|
|
3
|
+
} from "./chunk-YVVXDJHI.js";
|
|
1
4
|
import {
|
|
2
5
|
getResourceProgressSchema
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XIGJFVUM.js";
|
|
7
|
+
import {
|
|
8
|
+
getPurchaseUserTransferRelationsSchema,
|
|
9
|
+
getPurchaseUserTransferSchema
|
|
10
|
+
} from "./chunk-CQNKTFXE.js";
|
|
4
11
|
import {
|
|
5
12
|
getUpgradableProductsRelationsSchema,
|
|
6
13
|
getUpgradableProductsSchema
|
|
7
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BM5UKWXI.js";
|
|
8
15
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
16
|
+
getRolePermissionsRelationsSchema,
|
|
17
|
+
getRolePermissionsSchema
|
|
18
|
+
} from "./chunk-O6JECJRY.js";
|
|
12
19
|
import {
|
|
13
20
|
getSessionRelationsSchema,
|
|
14
21
|
getSessionsSchema
|
|
15
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TBM3AK3P.js";
|
|
16
23
|
import {
|
|
17
24
|
getVerificationTokensSchema
|
|
18
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LERR6HQ3.js";
|
|
19
26
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
27
|
+
getDeviceAccessTokenRelationsSchema,
|
|
28
|
+
getDeviceAccessTokenSchema
|
|
29
|
+
} from "./chunk-QTGVGIRO.js";
|
|
30
|
+
import {
|
|
31
|
+
getDeviceVerificationRelationsSchema,
|
|
32
|
+
getDeviceVerificationSchema
|
|
33
|
+
} from "./chunk-JZQ666KH.js";
|
|
23
34
|
import {
|
|
24
35
|
getAccountsRelationsSchema,
|
|
25
36
|
getAccountsSchema,
|
|
37
|
+
getCommentRelationsSchema,
|
|
38
|
+
getCommentsSchema,
|
|
26
39
|
getCommunicationPreferencesRelationsSchema,
|
|
27
40
|
getCommunicationPreferencesSchema,
|
|
28
41
|
getContentContributionRelationsSchema,
|
|
@@ -44,47 +57,49 @@ import {
|
|
|
44
57
|
getRolesSchema,
|
|
45
58
|
getUserPermissionsRelationsSchema,
|
|
46
59
|
getUserPermissionsSchema,
|
|
60
|
+
getUserPrefsRelationsSchema,
|
|
61
|
+
getUserPrefsSchema,
|
|
47
62
|
getUserRolesRelationsSchema,
|
|
48
63
|
getUserRolesSchema,
|
|
49
64
|
getUsersRelationsSchema,
|
|
50
65
|
getUsersSchema
|
|
51
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-FRA4ZCRA.js";
|
|
52
67
|
import {
|
|
53
68
|
getContributionTypesRelationsSchema,
|
|
54
69
|
getContributionTypesSchema
|
|
55
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-KDEWFXEP.js";
|
|
56
71
|
import {
|
|
57
72
|
getCommunicationChannelSchema
|
|
58
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-GINRTL6J.js";
|
|
59
74
|
import {
|
|
60
75
|
getCommunicationPreferenceTypesSchema
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import {
|
|
63
|
-
getMerchantCouponSchema
|
|
64
|
-
} from "./chunk-JKOYOL7A.js";
|
|
65
|
-
import {
|
|
66
|
-
getMerchantPriceSchema
|
|
67
|
-
} from "./chunk-PPBEA4EM.js";
|
|
68
|
-
import {
|
|
69
|
-
getMerchantSessionSchema
|
|
70
|
-
} from "./chunk-V23SCQL7.js";
|
|
76
|
+
} from "./chunk-P4VXXTVA.js";
|
|
71
77
|
import {
|
|
72
78
|
getMerchantChargeRelationsSchema,
|
|
73
79
|
getMerchantChargeSchema
|
|
74
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-SRTIWWLG.js";
|
|
81
|
+
import {
|
|
82
|
+
getMerchantAccountSchema
|
|
83
|
+
} from "./chunk-QP6YMUQX.js";
|
|
84
|
+
import {
|
|
85
|
+
getMerchantCouponSchema
|
|
86
|
+
} from "./chunk-YGRYHMCG.js";
|
|
75
87
|
import {
|
|
76
88
|
getMerchantCustomerSchema
|
|
77
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-2UU2F4DM.js";
|
|
90
|
+
import {
|
|
91
|
+
getMerchantPriceSchema
|
|
92
|
+
} from "./chunk-6ON2O6UD.js";
|
|
78
93
|
import {
|
|
79
94
|
getMerchantProductSchema
|
|
80
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-4ZWS76VQ.js";
|
|
81
96
|
import {
|
|
82
|
-
|
|
83
|
-
} from "./chunk-
|
|
97
|
+
getMerchantSessionSchema
|
|
98
|
+
} from "./chunk-3NUCFLQJ.js";
|
|
84
99
|
import {
|
|
85
100
|
getPermissionsRelationsSchema,
|
|
86
101
|
getPermissionsSchema
|
|
87
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-LZHZDFNZ.js";
|
|
88
103
|
import {
|
|
89
104
|
__name
|
|
90
105
|
} from "./chunk-H736K5TN.js";
|
|
@@ -8295,10 +8310,10 @@ var purchaseUserTransferSchema = z2.object({
|
|
|
8295
8310
|
completedAt: z2.date().nullable()
|
|
8296
8311
|
});
|
|
8297
8312
|
|
|
8298
|
-
// ../core/dist/chunk-
|
|
8313
|
+
// ../core/dist/chunk-K6G2HAJT.js
|
|
8299
8314
|
var resourceProgressSchema = z2.object({
|
|
8300
8315
|
userId: z2.string().max(191),
|
|
8301
|
-
|
|
8316
|
+
resourceId: z2.string().max(191).optional().nullable(),
|
|
8302
8317
|
fields: z2.record(z2.any()).default({}),
|
|
8303
8318
|
completedAt: z2.date().nullable(),
|
|
8304
8319
|
updatedAt: z2.date().nullable(),
|
|
@@ -8323,7 +8338,7 @@ var upgradableProductSchema = z2.object({
|
|
|
8323
8338
|
deletedAt: z2.date().nullable()
|
|
8324
8339
|
});
|
|
8325
8340
|
|
|
8326
|
-
// ../core/dist/chunk-
|
|
8341
|
+
// ../core/dist/chunk-5QZXOTEH.js
|
|
8327
8342
|
var VideoResourceSchema = z2.object({
|
|
8328
8343
|
id: z2.string(),
|
|
8329
8344
|
updatedAt: z2.string().optional(),
|
|
@@ -8341,7 +8356,8 @@ var VideoResourceSchema = z2.object({
|
|
|
8341
8356
|
"processing",
|
|
8342
8357
|
"preparing",
|
|
8343
8358
|
"ready",
|
|
8344
|
-
"errored"
|
|
8359
|
+
"errored",
|
|
8360
|
+
"deleted"
|
|
8345
8361
|
])
|
|
8346
8362
|
});
|
|
8347
8363
|
|
|
@@ -8561,6 +8577,7 @@ function getCourseBuilderSchema(mysqlTable) {
|
|
|
8561
8577
|
verificationTokens: getVerificationTokensSchema(mysqlTable),
|
|
8562
8578
|
coupon: getCouponSchema(mysqlTable),
|
|
8563
8579
|
couponRelations: getCouponRelationsSchema(mysqlTable),
|
|
8580
|
+
lessonProgress: getLessonProgressSchema(mysqlTable),
|
|
8564
8581
|
merchantAccount: getMerchantAccountSchema(mysqlTable),
|
|
8565
8582
|
merchantCharge: getMerchantChargeSchema(mysqlTable),
|
|
8566
8583
|
merchantChargeRelations: getMerchantChargeRelationsSchema(mysqlTable),
|
|
@@ -8592,7 +8609,15 @@ function getCourseBuilderSchema(mysqlTable) {
|
|
|
8592
8609
|
upgradableProductsRelations: getUpgradableProductsRelationsSchema(mysqlTable),
|
|
8593
8610
|
contentResourceProduct: getContentResourceProductSchema(mysqlTable),
|
|
8594
8611
|
contentResourceProductRelations: getContentResourceProductRelationsSchema(mysqlTable),
|
|
8595
|
-
productRelations: getProductRelationsSchema(mysqlTable)
|
|
8612
|
+
productRelations: getProductRelationsSchema(mysqlTable),
|
|
8613
|
+
comments: getCommentsSchema(mysqlTable),
|
|
8614
|
+
commentsRelations: getCommentRelationsSchema(mysqlTable),
|
|
8615
|
+
deviceVerifications: getDeviceVerificationSchema(mysqlTable),
|
|
8616
|
+
deviceVerificationRelations: getDeviceVerificationRelationsSchema(mysqlTable),
|
|
8617
|
+
deviceAccessToken: getDeviceAccessTokenSchema(mysqlTable),
|
|
8618
|
+
deviceAccessTokenRelations: getDeviceAccessTokenRelationsSchema(mysqlTable),
|
|
8619
|
+
userPrefs: getUserPrefsSchema(mysqlTable),
|
|
8620
|
+
userPrefsRelations: getUserPrefsRelationsSchema(mysqlTable)
|
|
8596
8621
|
};
|
|
8597
8622
|
}
|
|
8598
8623
|
__name(getCourseBuilderSchema, "getCourseBuilderSchema");
|
|
@@ -8601,7 +8626,7 @@ function createTables(mySqlTable) {
|
|
|
8601
8626
|
}
|
|
8602
8627
|
__name(createTables, "createTables");
|
|
8603
8628
|
function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
8604
|
-
const { users, accounts, sessions, verificationTokens, contentResource, contentResourceResource, purchases: purchaseTable, purchaseUserTransfer, coupon, merchantCoupon, merchantCharge, merchantAccount, merchantPrice, merchantCustomer, merchantSession, merchantProduct, prices, products, upgradableProducts, resourceProgress } = createTables(tableFn);
|
|
8629
|
+
const { users, accounts, sessions, verificationTokens, contentResource, contentResourceResource, purchases: purchaseTable, purchaseUserTransfer, coupon, merchantCoupon, merchantCharge, merchantAccount, merchantPrice, merchantCustomer, merchantSession, merchantProduct, prices, products, upgradableProducts, resourceProgress, comments } = createTables(tableFn);
|
|
8605
8630
|
const adapter = {
|
|
8606
8631
|
client,
|
|
8607
8632
|
async redeemFullPriceCoupon(options) {
|
|
@@ -8738,7 +8763,7 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
8738
8763
|
throw new Error("No lessonId provided");
|
|
8739
8764
|
}
|
|
8740
8765
|
let lessonProgress = await client.query.resourceProgress.findFirst({
|
|
8741
|
-
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.
|
|
8766
|
+
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.resourceId, options.lessonId))
|
|
8742
8767
|
});
|
|
8743
8768
|
const now = /* @__PURE__ */ new Date();
|
|
8744
8769
|
if (lessonProgress) {
|
|
@@ -8746,18 +8771,18 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
8746
8771
|
await client.update(resourceProgress).set({
|
|
8747
8772
|
completedAt: now,
|
|
8748
8773
|
updatedAt: now
|
|
8749
|
-
}).where(eq(resourceProgress.
|
|
8774
|
+
}).where(eq(resourceProgress.resourceId, options.lessonId));
|
|
8750
8775
|
}
|
|
8751
8776
|
} else {
|
|
8752
8777
|
await client.insert(resourceProgress).values({
|
|
8753
8778
|
userId: options.userId,
|
|
8754
|
-
|
|
8779
|
+
resourceId: options.lessonId,
|
|
8755
8780
|
completedAt: now,
|
|
8756
8781
|
updatedAt: now
|
|
8757
8782
|
});
|
|
8758
8783
|
}
|
|
8759
8784
|
lessonProgress = await client.query.resourceProgress.findFirst({
|
|
8760
|
-
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.
|
|
8785
|
+
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.resourceId, options.lessonId))
|
|
8761
8786
|
});
|
|
8762
8787
|
const parsedLessonProgress = resourceProgressSchema.safeParse(lessonProgress);
|
|
8763
8788
|
if (!parsedLessonProgress.success) {
|
|
@@ -8777,9 +8802,14 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
8777
8802
|
});
|
|
8778
8803
|
if (!couponForIdOrCode)
|
|
8779
8804
|
return null;
|
|
8780
|
-
|
|
8805
|
+
const parsedCoupon = couponSchema.extend({
|
|
8781
8806
|
merchantCoupon: merchantCouponSchema
|
|
8782
|
-
}).
|
|
8807
|
+
}).safeParse(couponForIdOrCode);
|
|
8808
|
+
if (!parsedCoupon.success) {
|
|
8809
|
+
console.error("Error parsing coupon", JSON.stringify(parsedCoupon.error));
|
|
8810
|
+
return null;
|
|
8811
|
+
}
|
|
8812
|
+
return parsedCoupon.data;
|
|
8783
8813
|
},
|
|
8784
8814
|
async createMerchantChargeAndPurchase(options) {
|
|
8785
8815
|
const purchaseId = await client.transaction(async (trx) => {
|
|
@@ -8816,7 +8846,7 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
8816
8846
|
]))
|
|
8817
8847
|
}) || null);
|
|
8818
8848
|
const existingBulkCoupon = couponSchema.nullable().parse(await client.select().from(coupon).leftJoin(purchaseTable, and(eq(coupon.id, purchaseTable.bulkCouponId), eq(purchaseTable.userId, userId))).where(and(eq(coupon.restrictedToProductId, productId), eq(purchaseTable.userId, userId))).then((res) => {
|
|
8819
|
-
return res[0]?.
|
|
8849
|
+
return res[0]?.Coupon ?? null;
|
|
8820
8850
|
}));
|
|
8821
8851
|
const isBulkPurchase = quantity > 1 || Boolean(existingBulkCoupon) || options.bulk || Boolean(existingPurchase?.status === "Valid");
|
|
8822
8852
|
let bulkCouponId = null;
|
|
@@ -9007,22 +9037,67 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9007
9037
|
return parsed.data;
|
|
9008
9038
|
},
|
|
9009
9039
|
async getModuleProgressForUser(userIdOrEmail, moduleIdOrSlug) {
|
|
9040
|
+
const ALLOWED_MODULE_RESOURCE_TYPES = [
|
|
9041
|
+
"lesson",
|
|
9042
|
+
"exercise",
|
|
9043
|
+
"solution"
|
|
9044
|
+
];
|
|
9045
|
+
const COUNTABLE_MODULE_RESOURCE_TYPES = [
|
|
9046
|
+
"lesson",
|
|
9047
|
+
"exercise"
|
|
9048
|
+
];
|
|
9010
9049
|
const module = await client.query.contentResource.findFirst({
|
|
9011
9050
|
where: or(eq(contentResource.id, moduleIdOrSlug), eq(sql`JSON_EXTRACT (${contentResource.fields}, "$.slug")`, moduleIdOrSlug)),
|
|
9012
9051
|
with: {
|
|
9013
9052
|
resources: {
|
|
9053
|
+
with: {
|
|
9054
|
+
resource: {
|
|
9055
|
+
with: {
|
|
9056
|
+
resources: {
|
|
9057
|
+
with: {
|
|
9058
|
+
resource: {
|
|
9059
|
+
with: {
|
|
9060
|
+
resources: {
|
|
9061
|
+
with: {
|
|
9062
|
+
resource: true
|
|
9063
|
+
}
|
|
9064
|
+
}
|
|
9065
|
+
}
|
|
9066
|
+
}
|
|
9067
|
+
},
|
|
9068
|
+
orderBy: asc(contentResourceResource.position)
|
|
9069
|
+
}
|
|
9070
|
+
}
|
|
9071
|
+
}
|
|
9072
|
+
},
|
|
9014
9073
|
orderBy: asc(contentResourceResource.position)
|
|
9015
9074
|
}
|
|
9016
9075
|
}
|
|
9017
9076
|
});
|
|
9018
9077
|
const parsedModule = ContentResourceSchema.parse(module);
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9078
|
+
function flattenResources(resources) {
|
|
9079
|
+
const result = [];
|
|
9080
|
+
function recurse(resources2) {
|
|
9081
|
+
for (const nestedResource of resources2) {
|
|
9082
|
+
const resource = nestedResource.resource;
|
|
9083
|
+
result.push(resource);
|
|
9084
|
+
if (resource.resources) {
|
|
9085
|
+
recurse(resource.resources);
|
|
9086
|
+
}
|
|
9087
|
+
}
|
|
9088
|
+
}
|
|
9089
|
+
__name(recurse, "recurse");
|
|
9090
|
+
recurse(resources);
|
|
9091
|
+
return result;
|
|
9092
|
+
}
|
|
9093
|
+
__name(flattenResources, "flattenResources");
|
|
9094
|
+
const allResources = parsedModule?.resources && flattenResources(parsedModule.resources);
|
|
9095
|
+
const filteredResources = allResources?.filter((resource) => {
|
|
9096
|
+
return ALLOWED_MODULE_RESOURCE_TYPES.includes(resource.type);
|
|
9022
9097
|
});
|
|
9023
|
-
const
|
|
9024
|
-
if (!
|
|
9025
|
-
console.error("Error parsing module resources",
|
|
9098
|
+
const parsedResources = z.array(ContentResourceSchema).safeParse(filteredResources);
|
|
9099
|
+
if (!parsedResources.success) {
|
|
9100
|
+
console.error("Error parsing module resources", parsedResources.error);
|
|
9026
9101
|
return {
|
|
9027
9102
|
completedLessons: [],
|
|
9028
9103
|
nextResource: null,
|
|
@@ -9031,6 +9106,10 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9031
9106
|
totalLessonsCount: 0
|
|
9032
9107
|
};
|
|
9033
9108
|
}
|
|
9109
|
+
const progressResources = parsedResources.data.filter((r) => {
|
|
9110
|
+
return COUNTABLE_MODULE_RESOURCE_TYPES.includes(r.type);
|
|
9111
|
+
});
|
|
9112
|
+
const totalLessonsCount = progressResources.length;
|
|
9034
9113
|
const user = await client.query.users.findFirst({
|
|
9035
9114
|
where: or(eq(users.id, userIdOrEmail), eq(users.email, userIdOrEmail)),
|
|
9036
9115
|
with: {
|
|
@@ -9055,7 +9134,7 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9055
9134
|
nextResource: null,
|
|
9056
9135
|
percentCompleted: 0,
|
|
9057
9136
|
completedLessonsCount: 0,
|
|
9058
|
-
totalLessonsCount
|
|
9137
|
+
totalLessonsCount
|
|
9059
9138
|
};
|
|
9060
9139
|
}
|
|
9061
9140
|
const parsedUser = userSchema.safeParse(user);
|
|
@@ -9066,14 +9145,16 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9066
9145
|
nextResource: null,
|
|
9067
9146
|
percentCompleted: 0,
|
|
9068
9147
|
completedLessonsCount: 0,
|
|
9069
|
-
totalLessonsCount
|
|
9148
|
+
totalLessonsCount
|
|
9070
9149
|
};
|
|
9071
9150
|
}
|
|
9072
9151
|
const userProgress = await client.query.resourceProgress.findMany({
|
|
9073
|
-
where: and(eq(resourceProgress.userId, parsedUser.data.id), isNotNull(resourceProgress.completedAt), inArray(resourceProgress.
|
|
9152
|
+
where: and(eq(resourceProgress.userId, parsedUser.data.id), isNotNull(resourceProgress.completedAt), inArray(resourceProgress.resourceId, progressResources.map((r) => r.id))),
|
|
9074
9153
|
orderBy: asc(resourceProgress.completedAt)
|
|
9075
9154
|
});
|
|
9076
|
-
const nextResourceId =
|
|
9155
|
+
const nextResourceId = parsedResources.data.filter((r) => {
|
|
9156
|
+
return COUNTABLE_MODULE_RESOURCE_TYPES.includes(r.type);
|
|
9157
|
+
}).find((r) => !userProgress.find((p) => p.resourceId === r.id))?.id;
|
|
9077
9158
|
const nextResource = await client.query.contentResource.findFirst({
|
|
9078
9159
|
where: eq(contentResource.id, nextResourceId)
|
|
9079
9160
|
});
|
|
@@ -9086,16 +9167,16 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9086
9167
|
nextResource: null,
|
|
9087
9168
|
percentCompleted: 0,
|
|
9088
9169
|
completedLessonsCount: 0,
|
|
9089
|
-
totalLessonsCount
|
|
9170
|
+
totalLessonsCount
|
|
9090
9171
|
};
|
|
9091
9172
|
}
|
|
9092
|
-
const percentCompleted = Math.round(parsedProgress.data.length /
|
|
9173
|
+
const percentCompleted = Math.round(parsedProgress.data.length / parsedResources.data.length * 100);
|
|
9093
9174
|
return {
|
|
9094
9175
|
completedLessons: parsedProgress.data,
|
|
9095
9176
|
nextResource: parsedNextResource,
|
|
9096
9177
|
percentCompleted,
|
|
9097
9178
|
completedLessonsCount: parsedProgress.data.length,
|
|
9098
|
-
totalLessonsCount
|
|
9179
|
+
totalLessonsCount
|
|
9099
9180
|
};
|
|
9100
9181
|
},
|
|
9101
9182
|
getLessonProgresses() {
|
|
@@ -9155,6 +9236,14 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9155
9236
|
where: eq(products.id, productId)
|
|
9156
9237
|
}));
|
|
9157
9238
|
},
|
|
9239
|
+
async getPurchaseCountForProduct(productId) {
|
|
9240
|
+
return await client.query.purchases.findMany({
|
|
9241
|
+
where: and(eq(purchaseTable.productId, productId), inArray(purchaseTable.status, [
|
|
9242
|
+
"Valid",
|
|
9243
|
+
"Restricted"
|
|
9244
|
+
]))
|
|
9245
|
+
}).then((res) => res.length);
|
|
9246
|
+
},
|
|
9158
9247
|
async getPurchase(purchaseId) {
|
|
9159
9248
|
const purchase = await client.query.purchases.findFirst({
|
|
9160
9249
|
where: eq(purchaseTable.id, purchaseId)
|
|
@@ -9360,24 +9449,24 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9360
9449
|
throw new Error("No lessonId provided");
|
|
9361
9450
|
}
|
|
9362
9451
|
let lessonProgress = await client.query.resourceProgress.findFirst({
|
|
9363
|
-
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.
|
|
9452
|
+
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.resourceId, options.lessonId))
|
|
9364
9453
|
});
|
|
9365
9454
|
const now = /* @__PURE__ */ new Date();
|
|
9366
9455
|
if (lessonProgress) {
|
|
9367
9456
|
await client.update(resourceProgress).set({
|
|
9368
9457
|
completedAt: lessonProgress.completedAt ? null : now,
|
|
9369
9458
|
updatedAt: now
|
|
9370
|
-
}).where(eq(resourceProgress.
|
|
9459
|
+
}).where(eq(resourceProgress.resourceId, options.lessonId));
|
|
9371
9460
|
} else {
|
|
9372
9461
|
await client.insert(resourceProgress).values({
|
|
9373
9462
|
userId: options.userId,
|
|
9374
|
-
|
|
9463
|
+
resourceId: options.lessonId,
|
|
9375
9464
|
completedAt: now,
|
|
9376
9465
|
updatedAt: now
|
|
9377
9466
|
});
|
|
9378
9467
|
}
|
|
9379
9468
|
lessonProgress = await client.query.resourceProgress.findFirst({
|
|
9380
|
-
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.
|
|
9469
|
+
where: and(eq(resourceProgress.userId, options.userId), eq(resourceProgress.resourceId, options.lessonId))
|
|
9381
9470
|
});
|
|
9382
9471
|
const parsedLessonProgress = resourceProgressSchema.safeParse(lessonProgress);
|
|
9383
9472
|
if (!parsedLessonProgress.success) {
|
|
@@ -9537,7 +9626,15 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9537
9626
|
with: {
|
|
9538
9627
|
resources: {
|
|
9539
9628
|
with: {
|
|
9540
|
-
resource:
|
|
9629
|
+
resource: {
|
|
9630
|
+
with: {
|
|
9631
|
+
resources: {
|
|
9632
|
+
with: {
|
|
9633
|
+
resource: true
|
|
9634
|
+
}
|
|
9635
|
+
}
|
|
9636
|
+
}
|
|
9637
|
+
}
|
|
9541
9638
|
},
|
|
9542
9639
|
orderBy: asc(contentResourceResource.position)
|
|
9543
9640
|
}
|
|
@@ -9603,7 +9700,7 @@ function mySqlDrizzleAdapter(client, tableFn = defaultMySqlTableFn) {
|
|
|
9603
9700
|
if (!dbAccount) {
|
|
9604
9701
|
return null;
|
|
9605
9702
|
}
|
|
9606
|
-
return dbAccount.
|
|
9703
|
+
return dbAccount.User;
|
|
9607
9704
|
},
|
|
9608
9705
|
async deleteSession(sessionToken) {
|
|
9609
9706
|
const session = await client.select().from(sessions).where(eq(sessions.sessionToken, sessionToken)).then((res) => res[0]) ?? null;
|
|
@@ -9655,4 +9752,4 @@ export {
|
|
|
9655
9752
|
createTables,
|
|
9656
9753
|
mySqlDrizzleAdapter
|
|
9657
9754
|
};
|
|
9658
|
-
//# sourceMappingURL=chunk-
|
|
9755
|
+
//# sourceMappingURL=chunk-Z245DYMP.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTables,
|
|
3
3
|
mySqlDrizzleAdapter
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-Z245DYMP.js";
|
|
5
|
+
import "./chunk-YVVXDJHI.js";
|
|
6
|
+
import "./chunk-XIGJFVUM.js";
|
|
7
|
+
import "./chunk-CQNKTFXE.js";
|
|
8
|
+
import "./chunk-BM5UKWXI.js";
|
|
9
|
+
import "./chunk-O6JECJRY.js";
|
|
10
|
+
import "./chunk-TBM3AK3P.js";
|
|
11
|
+
import "./chunk-LERR6HQ3.js";
|
|
12
|
+
import "./chunk-QTGVGIRO.js";
|
|
13
|
+
import "./chunk-JZQ666KH.js";
|
|
14
|
+
import "./chunk-FRA4ZCRA.js";
|
|
15
|
+
import "./chunk-KDEWFXEP.js";
|
|
16
|
+
import "./chunk-GINRTL6J.js";
|
|
17
|
+
import "./chunk-P4VXXTVA.js";
|
|
18
|
+
import "./chunk-SRTIWWLG.js";
|
|
19
|
+
import "./chunk-QP6YMUQX.js";
|
|
20
|
+
import "./chunk-YGRYHMCG.js";
|
|
21
|
+
import "./chunk-2UU2F4DM.js";
|
|
22
|
+
import "./chunk-6ON2O6UD.js";
|
|
23
|
+
import "./chunk-4ZWS76VQ.js";
|
|
24
|
+
import "./chunk-3NUCFLQJ.js";
|
|
25
|
+
import "./chunk-LZHZDFNZ.js";
|
|
23
26
|
import {
|
|
24
27
|
__name
|
|
25
28
|
} from "./chunk-H736K5TN.js";
|