@geekmidas/testkit 10.0.0-alpha.98 → 10.0.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/CHANGELOG.md +160 -0
- package/README.md +0 -74
- package/dist/Factory-BFVnMMCC.mjs +51 -0
- package/dist/Factory-BFVnMMCC.mjs.map +1 -0
- package/dist/Factory-BOX312yd.d.cts +147 -0
- package/dist/Factory-BOX312yd.d.cts.map +1 -0
- package/dist/Factory-BhjUOBWN.cjs +57 -0
- package/dist/Factory-BhjUOBWN.cjs.map +1 -0
- package/dist/Factory-SFupxRC2.d.mts +147 -0
- package/dist/Factory-SFupxRC2.d.mts.map +1 -0
- package/dist/Factory.cjs +2 -51
- package/dist/Factory.d.cts +3 -143
- package/dist/Factory.d.mts +3 -143
- package/dist/Factory.mjs +2 -50
- package/dist/KyselyFactory-BFqVIn_0.cjs +246 -0
- package/dist/KyselyFactory-BFqVIn_0.cjs.map +1 -0
- package/dist/KyselyFactory-DMswpwji.mjs +241 -0
- package/dist/KyselyFactory-DMswpwji.mjs.map +1 -0
- package/dist/KyselyFactory-Dy5zzV4B.d.cts +228 -0
- package/dist/KyselyFactory-Dy5zzV4B.d.cts.map +1 -0
- package/dist/KyselyFactory-vAxYodck.d.mts +228 -0
- package/dist/KyselyFactory-vAxYodck.d.mts.map +1 -0
- package/dist/KyselyFactory.cjs +4 -237
- package/dist/KyselyFactory.d.cts +4 -224
- package/dist/KyselyFactory.d.mts +4 -224
- package/dist/KyselyFactory.mjs +4 -236
- package/dist/ObjectionFactory-BWjB49-i.d.mts +241 -0
- package/dist/ObjectionFactory-BWjB49-i.d.mts.map +1 -0
- package/dist/ObjectionFactory-BeFBYcan.cjs +272 -0
- package/dist/ObjectionFactory-BeFBYcan.cjs.map +1 -0
- package/dist/ObjectionFactory-CD-WFuMJ.d.cts +241 -0
- package/dist/ObjectionFactory-CD-WFuMJ.d.cts.map +1 -0
- package/dist/ObjectionFactory-QCJ7u0Ql.mjs +267 -0
- package/dist/ObjectionFactory-QCJ7u0Ql.mjs.map +1 -0
- package/dist/ObjectionFactory.cjs +4 -265
- package/dist/ObjectionFactory.d.cts +4 -237
- package/dist/ObjectionFactory.d.mts +4 -237
- package/dist/ObjectionFactory.mjs +4 -264
- package/dist/PostgresKyselyMigrator-B2M6Gjvv.d.cts +84 -0
- package/dist/PostgresKyselyMigrator-B2M6Gjvv.d.cts.map +1 -0
- package/dist/PostgresKyselyMigrator-BGBxjnFv.cjs +101 -0
- package/dist/PostgresKyselyMigrator-BGBxjnFv.cjs.map +1 -0
- package/dist/PostgresKyselyMigrator-CvwXycJE.d.mts +84 -0
- package/dist/PostgresKyselyMigrator-CvwXycJE.d.mts.map +1 -0
- package/dist/PostgresKyselyMigrator-PI0QhvB1.mjs +95 -0
- package/dist/PostgresKyselyMigrator-PI0QhvB1.mjs.map +1 -0
- package/dist/PostgresKyselyMigrator.cjs +3 -94
- package/dist/PostgresKyselyMigrator.d.cts +3 -80
- package/dist/PostgresKyselyMigrator.d.mts +3 -80
- package/dist/PostgresKyselyMigrator.mjs +3 -93
- package/dist/{PostgresMigrator-CDPnnwMJ.d.cts → PostgresMigrator-C_QQ6q35.d.mts} +5 -11
- package/dist/PostgresMigrator-C_QQ6q35.d.mts.map +1 -0
- package/dist/{PostgresMigrator-CDPnnwMJ.d.mts → PostgresMigrator-CeYy-eHF.d.cts} +5 -11
- package/dist/PostgresMigrator-CeYy-eHF.d.cts.map +1 -0
- package/dist/PostgresMigrator-DVAY04qN.mjs +166 -0
- package/dist/PostgresMigrator-DVAY04qN.mjs.map +1 -0
- package/dist/PostgresMigrator-M9jpzOvN.cjs +172 -0
- package/dist/PostgresMigrator-M9jpzOvN.cjs.map +1 -0
- package/dist/PostgresMigrator.cjs +2 -178
- package/dist/PostgresMigrator.d.cts +1 -1
- package/dist/PostgresMigrator.d.mts +1 -1
- package/dist/PostgresMigrator.mjs +2 -175
- package/dist/PostgresObjectionMigrator-1j6YIB1c.d.mts +79 -0
- package/dist/PostgresObjectionMigrator-1j6YIB1c.d.mts.map +1 -0
- package/dist/PostgresObjectionMigrator-DHVC9h_P.d.cts +79 -0
- package/dist/PostgresObjectionMigrator-DHVC9h_P.d.cts.map +1 -0
- package/dist/PostgresObjectionMigrator-DSaPhwjY.cjs +123 -0
- package/dist/PostgresObjectionMigrator-DSaPhwjY.cjs.map +1 -0
- package/dist/PostgresObjectionMigrator-DjPKdUbm.mjs +118 -0
- package/dist/PostgresObjectionMigrator-DjPKdUbm.mjs.map +1 -0
- package/dist/PostgresObjectionMigrator.cjs +3 -118
- package/dist/PostgresObjectionMigrator.d.cts +3 -75
- package/dist/PostgresObjectionMigrator.d.mts +3 -75
- package/dist/PostgresObjectionMigrator.mjs +3 -117
- package/dist/VitestKyselyTransactionIsolator-0CqOsuc9.cjs +65 -0
- package/dist/VitestKyselyTransactionIsolator-0CqOsuc9.cjs.map +1 -0
- package/dist/VitestKyselyTransactionIsolator-CduJlHoT.d.cts +59 -0
- package/dist/VitestKyselyTransactionIsolator-CduJlHoT.d.cts.map +1 -0
- package/dist/VitestKyselyTransactionIsolator-CfSMOFlN.mjs +60 -0
- package/dist/VitestKyselyTransactionIsolator-CfSMOFlN.mjs.map +1 -0
- package/dist/VitestKyselyTransactionIsolator-Cswnnj0k.d.mts +59 -0
- package/dist/VitestKyselyTransactionIsolator-Cswnnj0k.d.mts.map +1 -0
- package/dist/VitestKyselyTransactionIsolator.cjs +3 -66
- package/dist/VitestKyselyTransactionIsolator.d.cts +3 -60
- package/dist/VitestKyselyTransactionIsolator.d.mts +3 -60
- package/dist/VitestKyselyTransactionIsolator.mjs +3 -65
- package/dist/VitestObjectionTransactionIsolator-B5J9jjKq.cjs +68 -0
- package/dist/VitestObjectionTransactionIsolator-B5J9jjKq.cjs.map +1 -0
- package/dist/VitestObjectionTransactionIsolator-BXoR6xdG.d.cts +60 -0
- package/dist/VitestObjectionTransactionIsolator-BXoR6xdG.d.cts.map +1 -0
- package/dist/VitestObjectionTransactionIsolator-CNo40EdC.mjs +63 -0
- package/dist/VitestObjectionTransactionIsolator-CNo40EdC.mjs.map +1 -0
- package/dist/VitestObjectionTransactionIsolator-x6hY5j4u.d.mts +60 -0
- package/dist/VitestObjectionTransactionIsolator-x6hY5j4u.d.mts.map +1 -0
- package/dist/VitestObjectionTransactionIsolator.cjs +3 -62
- package/dist/VitestObjectionTransactionIsolator.d.cts +3 -56
- package/dist/VitestObjectionTransactionIsolator.d.mts +3 -56
- package/dist/VitestObjectionTransactionIsolator.mjs +3 -61
- package/dist/VitestTransactionIsolator-BNWJqh9f.d.mts +207 -0
- package/dist/VitestTransactionIsolator-BNWJqh9f.d.mts.map +1 -0
- package/dist/VitestTransactionIsolator-CSroc7Df.d.cts +207 -0
- package/dist/VitestTransactionIsolator-CSroc7Df.d.cts.map +1 -0
- package/dist/VitestTransactionIsolator-CtZaOUjH.cjs +193 -0
- package/dist/VitestTransactionIsolator-CtZaOUjH.cjs.map +1 -0
- package/dist/VitestTransactionIsolator-D6ZxLWys.mjs +175 -0
- package/dist/VitestTransactionIsolator-D6ZxLWys.mjs.map +1 -0
- package/dist/VitestTransactionIsolator.cjs +4 -187
- package/dist/VitestTransactionIsolator.d.cts +2 -219
- package/dist/VitestTransactionIsolator.d.mts +2 -219
- package/dist/VitestTransactionIsolator.mjs +2 -184
- package/dist/aws.cjs +4 -3
- package/dist/aws.cjs.map +1 -1
- package/dist/aws.d.cts +8 -3
- package/dist/aws.d.cts.map +1 -1
- package/dist/aws.d.mts +8 -3
- package/dist/aws.d.mts.map +1 -1
- package/dist/aws.mjs +2 -1
- package/dist/aws.mjs.map +1 -1
- package/dist/benchmark.cjs +2 -2
- package/dist/benchmark.cjs.map +1 -1
- package/dist/benchmark.d.cts +6 -4
- package/dist/benchmark.d.cts.map +1 -1
- package/dist/benchmark.d.mts +6 -4
- package/dist/benchmark.d.mts.map +1 -1
- package/dist/benchmark.mjs +1 -1
- package/dist/benchmark.mjs.map +1 -1
- package/dist/better-auth.cjs +15 -31
- package/dist/better-auth.cjs.map +1 -1
- package/dist/better-auth.d.cts +4 -13142
- package/dist/better-auth.d.cts.map +1 -1
- package/dist/better-auth.d.mts +4 -13142
- package/dist/better-auth.d.mts.map +1 -1
- package/dist/better-auth.mjs +13 -29
- package/dist/better-auth.mjs.map +1 -1
- package/dist/{rolldown-runtime-VH7oDXx4.cjs → chunk-CUT6urMc.cjs} +10 -8
- package/dist/directory-Bpz5c5pj.d.cts +13 -0
- package/dist/directory-Bpz5c5pj.d.cts.map +1 -0
- package/dist/directory-BxjqmtCT.mjs +27 -0
- package/dist/directory-BxjqmtCT.mjs.map +1 -0
- package/dist/directory-CVrfTq1I.d.mts +13 -0
- package/dist/directory-CVrfTq1I.d.mts.map +1 -0
- package/dist/directory-DD_xQoSh.cjs +33 -0
- package/dist/directory-DD_xQoSh.cjs.map +1 -0
- package/dist/faker-B14IEMIN.cjs +304 -0
- package/dist/faker-B14IEMIN.cjs.map +1 -0
- package/dist/faker-BGKYFoCT.mjs +262 -0
- package/dist/faker-BGKYFoCT.mjs.map +1 -0
- package/dist/faker-Cg76aFNO.d.cts +166 -0
- package/dist/faker-Cg76aFNO.d.cts.map +1 -0
- package/dist/faker-DHh7xs4u.d.mts +166 -0
- package/dist/faker-DHh7xs4u.d.mts.map +1 -0
- package/dist/faker.cjs +8 -313
- package/dist/faker.d.cts +2 -169
- package/dist/faker.d.mts +2 -169
- package/dist/faker.mjs +2 -305
- package/dist/helpers.cjs +5 -6
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +5 -1
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts +5 -1
- package/dist/helpers.d.mts.map +1 -1
- package/dist/helpers.mjs +2 -1
- package/dist/helpers.mjs.map +1 -1
- package/dist/initScript.cjs +15 -15
- package/dist/initScript.cjs.map +1 -1
- package/dist/initScript.d.cts +4 -2
- package/dist/initScript.d.cts.map +1 -1
- package/dist/initScript.d.mts +4 -2
- package/dist/initScript.d.mts.map +1 -1
- package/dist/initScript.mjs +12 -10
- package/dist/initScript.mjs.map +1 -1
- package/dist/kysely.cjs +13 -10
- package/dist/kysely.cjs.map +1 -1
- package/dist/kysely.d.cts +14 -10
- package/dist/kysely.d.cts.map +1 -1
- package/dist/kysely.d.mts +14 -10
- package/dist/kysely.d.mts.map +1 -1
- package/dist/kysely.mjs +14 -10
- package/dist/kysely.mjs.map +1 -1
- package/dist/logger.cjs +4 -3
- package/dist/logger.cjs.map +1 -1
- package/dist/logger.d.cts +5 -1
- package/dist/logger.d.cts.map +1 -1
- package/dist/logger.d.mts +5 -1
- package/dist/logger.d.mts.map +1 -1
- package/dist/logger.mjs +2 -1
- package/dist/logger.mjs.map +1 -1
- package/dist/objection.cjs +13 -10
- package/dist/objection.cjs.map +1 -1
- package/dist/objection.d.cts +14 -10
- package/dist/objection.d.cts.map +1 -1
- package/dist/objection.d.mts +14 -10
- package/dist/objection.d.mts.map +1 -1
- package/dist/objection.mjs +14 -10
- package/dist/objection.mjs.map +1 -1
- package/dist/os/directory.cjs +2 -31
- package/dist/os/directory.d.cts +2 -9
- package/dist/os/directory.d.mts +2 -9
- package/dist/os/directory.mjs +2 -25
- package/dist/os/index.cjs +3 -3
- package/dist/os/index.d.cts +1 -1
- package/dist/os/index.d.mts +1 -1
- package/dist/os/index.mjs +3 -2
- package/dist/requestContext.cjs +11 -10
- package/dist/requestContext.cjs.map +1 -1
- package/dist/requestContext.d.cts +9 -5
- package/dist/requestContext.d.cts.map +1 -1
- package/dist/requestContext.d.mts +9 -5
- package/dist/requestContext.d.mts.map +1 -1
- package/dist/requestContext.mjs +3 -2
- package/dist/requestContext.mjs.map +1 -1
- package/dist/timer.cjs +2 -2
- package/dist/timer.cjs.map +1 -1
- package/dist/timer.d.cts +4 -1
- package/dist/timer.d.cts.map +1 -1
- package/dist/timer.d.mts +4 -1
- package/dist/timer.d.mts.map +1 -1
- package/dist/timer.mjs +1 -1
- package/dist/timer.mjs.map +1 -1
- package/package.json +25 -65
- package/src/Factory.ts +174 -0
- package/src/KyselyFactory.ts +391 -0
- package/src/ObjectionFactory.ts +412 -0
- package/src/PostgresKyselyMigrator.ts +104 -0
- package/src/PostgresMigrator.ts +193 -0
- package/src/PostgresObjectionMigrator.ts +138 -0
- package/src/VitestKyselyTransactionIsolator.ts +72 -0
- package/src/VitestObjectionTransactionIsolator.ts +75 -0
- package/src/VitestTransactionIsolator.ts +348 -0
- package/src/__tests__/Factory.spec.ts +178 -0
- package/src/__tests__/KyselyFactory.spec.ts +458 -0
- package/src/__tests__/ObjectionFactory.spec.ts +586 -0
- package/src/__tests__/PostgresKyselyMigrator.spec.ts +794 -0
- package/src/__tests__/PostgresMigrator.spec.ts +471 -0
- package/src/__tests__/PostgresObjectionMigrator.spec.ts +634 -0
- package/src/__tests__/VitestObjectionTransactionIsolator.spec.ts +138 -0
- package/src/__tests__/benchmark.spec.ts +140 -0
- package/src/__tests__/better-auth.spec.ts +21 -0
- package/src/__tests__/faker.spec.ts +231 -0
- package/src/__tests__/initScript.spec.ts +332 -0
- package/src/__tests__/integration.spec.ts +610 -0
- package/src/__tests__/requestContext.spec.ts +113 -0
- package/src/__tests__/utilities.spec.ts +211 -0
- package/src/aws.ts +131 -0
- package/src/benchmark.ts +48 -0
- package/src/better-auth.ts +310 -0
- package/src/faker.ts +349 -0
- package/src/helpers.ts +45 -0
- package/src/initScript.ts +122 -0
- package/src/kysely.ts +166 -0
- package/src/logger.ts +18 -0
- package/src/objection.ts +157 -0
- package/src/os/directory.ts +26 -0
- package/src/os/index.ts +1 -0
- package/src/requestContext.ts +119 -0
- package/src/timer.ts +3 -0
- package/test/globalSetup.ts +54 -0
- package/test/helpers.ts +268 -0
- package/test/migrations/1749664623372_user.ts +22 -0
- package/tsconfig.json +9 -0
- package/vitest.config.ts +8 -0
- package/dist/Factory.cjs.map +0 -1
- package/dist/Factory.d.cts.map +0 -1
- package/dist/Factory.d.mts.map +0 -1
- package/dist/Factory.mjs.map +0 -1
- package/dist/KyselyFactory.cjs.map +0 -1
- package/dist/KyselyFactory.d.cts.map +0 -1
- package/dist/KyselyFactory.d.mts.map +0 -1
- package/dist/KyselyFactory.mjs.map +0 -1
- package/dist/ObjectionFactory.cjs.map +0 -1
- package/dist/ObjectionFactory.d.cts.map +0 -1
- package/dist/ObjectionFactory.d.mts.map +0 -1
- package/dist/ObjectionFactory.mjs.map +0 -1
- package/dist/PostgresKyselyMigrator.cjs.map +0 -1
- package/dist/PostgresKyselyMigrator.d.cts.map +0 -1
- package/dist/PostgresKyselyMigrator.d.mts.map +0 -1
- package/dist/PostgresKyselyMigrator.mjs.map +0 -1
- package/dist/PostgresMigrator-CDPnnwMJ.d.cts.map +0 -1
- package/dist/PostgresMigrator-CDPnnwMJ.d.mts.map +0 -1
- package/dist/PostgresMigrator.cjs.map +0 -1
- package/dist/PostgresMigrator.mjs.map +0 -1
- package/dist/PostgresObjectionMigrator.cjs.map +0 -1
- package/dist/PostgresObjectionMigrator.d.cts.map +0 -1
- package/dist/PostgresObjectionMigrator.d.mts.map +0 -1
- package/dist/PostgresObjectionMigrator.mjs.map +0 -1
- package/dist/VitestKyselyTransactionIsolator.cjs.map +0 -1
- package/dist/VitestKyselyTransactionIsolator.d.cts.map +0 -1
- package/dist/VitestKyselyTransactionIsolator.d.mts.map +0 -1
- package/dist/VitestKyselyTransactionIsolator.mjs.map +0 -1
- package/dist/VitestObjectionTransactionIsolator.cjs.map +0 -1
- package/dist/VitestObjectionTransactionIsolator.d.cts.map +0 -1
- package/dist/VitestObjectionTransactionIsolator.d.mts.map +0 -1
- package/dist/VitestObjectionTransactionIsolator.mjs.map +0 -1
- package/dist/VitestTransactionIsolator.cjs.map +0 -1
- package/dist/VitestTransactionIsolator.d.cts.map +0 -1
- package/dist/VitestTransactionIsolator.d.mts.map +0 -1
- package/dist/VitestTransactionIsolator.mjs.map +0 -1
- package/dist/browser.cjs +0 -149
- package/dist/browser.cjs.map +0 -1
- package/dist/browser.d.cts +0 -62
- package/dist/browser.d.cts.map +0 -1
- package/dist/browser.d.mts +0 -62
- package/dist/browser.d.mts.map +0 -1
- package/dist/browser.mjs +0 -147
- package/dist/browser.mjs.map +0 -1
- package/dist/context.cjs +0 -80
- package/dist/context.cjs.map +0 -1
- package/dist/context.d.cts +0 -55
- package/dist/context.d.cts.map +0 -1
- package/dist/context.d.mts +0 -55
- package/dist/context.d.mts.map +0 -1
- package/dist/context.mjs +0 -73
- package/dist/context.mjs.map +0 -1
- package/dist/faker.cjs.map +0 -1
- package/dist/faker.d.cts.map +0 -1
- package/dist/faker.d.mts.map +0 -1
- package/dist/faker.mjs.map +0 -1
- package/dist/mailbox.cjs +0 -95
- package/dist/mailbox.cjs.map +0 -1
- package/dist/mailbox.d.cts +0 -58
- package/dist/mailbox.d.cts.map +0 -1
- package/dist/mailbox.d.mts +0 -58
- package/dist/mailbox.d.mts.map +0 -1
- package/dist/mailbox.mjs +0 -92
- package/dist/mailbox.mjs.map +0 -1
- package/dist/os/directory.cjs.map +0 -1
- package/dist/os/directory.d.cts.map +0 -1
- package/dist/os/directory.d.mts.map +0 -1
- package/dist/os/directory.mjs.map +0 -1
- package/dist/transactions.cjs +0 -239
- package/dist/transactions.cjs.map +0 -1
- package/dist/transactions.d.cts +0 -44
- package/dist/transactions.d.cts.map +0 -1
- package/dist/transactions.d.mts +0 -44
- package/dist/transactions.d.mts.map +0 -1
- package/dist/transactions.mjs +0 -234
- package/dist/transactions.mjs.map +0 -1
package/dist/KyselyFactory.mjs
CHANGED
|
@@ -1,237 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Factory implementation for Kysely ORM, providing test data creation utilities.
|
|
6
|
-
* Extends the base Factory class with Kysely-specific database operations.
|
|
7
|
-
*
|
|
8
|
-
* @template DB - The database schema type
|
|
9
|
-
* @template Builders - Record of builder functions for creating entities
|
|
10
|
-
* @template Seeds - Record of seed functions for complex test scenarios
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* // Define your database schema
|
|
15
|
-
* interface Database {
|
|
16
|
-
* users: UsersTable;
|
|
17
|
-
* posts: PostsTable;
|
|
18
|
-
* }
|
|
19
|
-
*
|
|
20
|
-
* // Create builders
|
|
21
|
-
* const builders = {
|
|
22
|
-
* user: KyselyFactory.createBuilder<Database, 'users'>('users', ({ attrs, faker }) => ({
|
|
23
|
-
* id: faker.string.uuid(),
|
|
24
|
-
* name: faker.person.fullName(),
|
|
25
|
-
* email: faker.internet.email(),
|
|
26
|
-
* ...attrs
|
|
27
|
-
* })),
|
|
28
|
-
* post: KyselyFactory.createBuilder<Database, 'posts'>('posts', ({ attrs }) => ({
|
|
29
|
-
* title: 'Test Post',
|
|
30
|
-
* content: 'Test content',
|
|
31
|
-
* ...attrs
|
|
32
|
-
* }))
|
|
33
|
-
* };
|
|
34
|
-
*
|
|
35
|
-
* // Create factory instance
|
|
36
|
-
* const factory = new KyselyFactory(builders, seeds, db);
|
|
37
|
-
*
|
|
38
|
-
* // Use in tests
|
|
39
|
-
* const user = await factory.insert('user', { name: 'John Doe' });
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
var KyselyFactory = class extends Factory {
|
|
43
|
-
builders;
|
|
44
|
-
seeds;
|
|
45
|
-
db;
|
|
46
|
-
/**
|
|
47
|
-
* Creates a typed seed function with proper type inference.
|
|
48
|
-
* Inherits from the base Factory class implementation.
|
|
49
|
-
*
|
|
50
|
-
* @template Seed - The seed function type
|
|
51
|
-
* @param seedFn - The seed function to wrap (receives { attrs, factory, db } object)
|
|
52
|
-
* @returns The same seed function with proper typing
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```typescript
|
|
56
|
-
* const seeds = {
|
|
57
|
-
* userWithPosts: KyselyFactory.createSeed(
|
|
58
|
-
* async ({ attrs, factory }) => {
|
|
59
|
-
* const user = await factory.insert('user', attrs);
|
|
60
|
-
* await factory.insertMany(3, 'post', { userId: user.id });
|
|
61
|
-
* return user;
|
|
62
|
-
* },
|
|
63
|
-
* ),
|
|
64
|
-
* };
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
static createSeed(seedFn) {
|
|
68
|
-
return Factory.createSeed(seedFn);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Creates a new KyselyFactory instance.
|
|
72
|
-
*
|
|
73
|
-
* @param builders - Record of builder functions for creating individual entities
|
|
74
|
-
* @param seeds - Record of seed functions for creating complex test scenarios
|
|
75
|
-
* @param db - Kysely database instance or controlled transaction
|
|
76
|
-
*/
|
|
77
|
-
constructor(builders, seeds, db) {
|
|
78
|
-
super();
|
|
79
|
-
this.builders = builders;
|
|
80
|
-
this.seeds = seeds;
|
|
81
|
-
this.db = db;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Creates a typed builder function for a specific database table.
|
|
85
|
-
* This is a utility method that helps create builders with proper type inference for Kysely.
|
|
86
|
-
*
|
|
87
|
-
* @template DB - The database schema type
|
|
88
|
-
* @template TableName - The name of the table (must be a key of DB)
|
|
89
|
-
* @template Attrs - The attributes type for the builder (defaults to Partial<Insertable>)
|
|
90
|
-
* @template Factory - The factory instance type
|
|
91
|
-
* @template Result - The result type (defaults to Selectable of the table)
|
|
92
|
-
*
|
|
93
|
-
* @param table - The name of the database table
|
|
94
|
-
* @param defaults - Optional function to provide default values (receives destructured context)
|
|
95
|
-
* @param autoInsert - Whether to automatically insert the record (default: true)
|
|
96
|
-
* @returns A builder function that creates and optionally inserts records
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```typescript
|
|
100
|
-
* // Create a simple builder with defaults - destructure only what you need
|
|
101
|
-
* const userBuilder = KyselyFactory.createBuilder<DB, 'users'>('users',
|
|
102
|
-
* ({ attrs, faker }) => ({
|
|
103
|
-
* id: faker.string.uuid(),
|
|
104
|
-
* name: faker.person.fullName(),
|
|
105
|
-
* email: faker.internet.email(),
|
|
106
|
-
* createdAt: new Date(),
|
|
107
|
-
* ...attrs
|
|
108
|
-
* })
|
|
109
|
-
* );
|
|
110
|
-
*
|
|
111
|
-
* // Only need faker? Just destructure that
|
|
112
|
-
* const leaveTypeBuilder = KyselyFactory.createBuilder<DB, 'leaveTypes'>('leaveTypes',
|
|
113
|
-
* ({ faker }) => ({
|
|
114
|
-
* name: faker.helpers.arrayElement(['Annual', 'Sick', 'Maternity']),
|
|
115
|
-
* code: faker.string.alpha({ length: 3, casing: 'upper' }),
|
|
116
|
-
* })
|
|
117
|
-
* );
|
|
118
|
-
*
|
|
119
|
-
* // Create a builder that doesn't auto-insert (useful for nested inserts)
|
|
120
|
-
* const addressBuilder = KyselyFactory.createBuilder<DB, 'addresses'>('addresses',
|
|
121
|
-
* ({ attrs }) => ({
|
|
122
|
-
* street: '123 Main St',
|
|
123
|
-
* city: 'Anytown',
|
|
124
|
-
* ...attrs
|
|
125
|
-
* }),
|
|
126
|
-
* false // Don't auto-insert
|
|
127
|
-
* );
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
static createBuilder(table, defaults, autoInsert) {
|
|
131
|
-
return async (attrs, factory, db, fakerInstance) => {
|
|
132
|
-
let data = { ...attrs };
|
|
133
|
-
if (defaults) data = {
|
|
134
|
-
...await defaults({
|
|
135
|
-
attrs,
|
|
136
|
-
factory,
|
|
137
|
-
db,
|
|
138
|
-
faker: fakerInstance
|
|
139
|
-
}),
|
|
140
|
-
...data
|
|
141
|
-
};
|
|
142
|
-
if (autoInsert !== false) {
|
|
143
|
-
const result = await db.insertInto(table).values(data).returningAll().executeTakeFirst();
|
|
144
|
-
if (!result) throw new Error(`Failed to insert into ${table}`);
|
|
145
|
-
return result;
|
|
146
|
-
} else return {
|
|
147
|
-
table,
|
|
148
|
-
data
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Inserts a single record into the database using the specified builder.
|
|
154
|
-
* The builder function is responsible for generating the record data with defaults
|
|
155
|
-
* and the factory handles the actual database insertion.
|
|
156
|
-
*
|
|
157
|
-
* @template K - The builder name (must be a key of Builders)
|
|
158
|
-
* @param builderName - The name of the builder to use
|
|
159
|
-
* @param attrs - Optional attributes to override builder defaults
|
|
160
|
-
* @returns A promise resolving to the inserted record
|
|
161
|
-
* @throws Error if the specified builder doesn't exist
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* ```typescript
|
|
165
|
-
* // Insert with defaults
|
|
166
|
-
* const user = await factory.insert('user');
|
|
167
|
-
*
|
|
168
|
-
* // Insert with overrides
|
|
169
|
-
* const adminUser = await factory.insert('user', {
|
|
170
|
-
* email: 'admin@example.com',
|
|
171
|
-
* role: 'admin'
|
|
172
|
-
* });
|
|
173
|
-
*
|
|
174
|
-
* // Use the inserted record
|
|
175
|
-
* const post = await factory.insert('post', {
|
|
176
|
-
* userId: user.id,
|
|
177
|
-
* title: 'My First Post'
|
|
178
|
-
* });
|
|
179
|
-
* ```
|
|
180
|
-
*/
|
|
181
|
-
async insert(builderName, attrs) {
|
|
182
|
-
if (!(builderName in this.builders)) throw new Error(`Factory "${builderName}" does not exist. Make sure it is correct and registered in src/test/setup.ts`);
|
|
183
|
-
const result = await this.builders[builderName](attrs || {}, this, this.db, faker);
|
|
184
|
-
if (result && typeof result === "object" && "table" in result && "data" in result) return await this.db.insertInto(result.table).values(result.data).returningAll().executeTakeFirst();
|
|
185
|
-
return result;
|
|
186
|
-
}
|
|
187
|
-
async insertMany(count, builderName, attrs) {
|
|
188
|
-
if (!(builderName in this.builders)) throw new Error(`Builder "${builderName}" is not registered in this factory. Make sure it is correct and registered in src/test/setup.ts`);
|
|
189
|
-
const promises = [];
|
|
190
|
-
for (let i = 0; i < count; i++) {
|
|
191
|
-
const newAttrs = typeof attrs === "function" ? await attrs(i, faker) : attrs;
|
|
192
|
-
promises.push(this.insert(builderName, newAttrs));
|
|
193
|
-
}
|
|
194
|
-
return Promise.all(promises);
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Executes a seed function to create complex test scenarios with multiple related records.
|
|
198
|
-
* Seeds are useful for setting up complete test environments with realistic data relationships.
|
|
199
|
-
*
|
|
200
|
-
* @template K - The seed name (must be a key of Seeds)
|
|
201
|
-
* @param seedName - The name of the seed to execute
|
|
202
|
-
* @param attrs - Optional configuration attributes for the seed
|
|
203
|
-
* @returns The result of the seed function (typically the primary record created)
|
|
204
|
-
* @throws Error if the specified seed doesn't exist
|
|
205
|
-
*
|
|
206
|
-
* @example
|
|
207
|
-
* ```typescript
|
|
208
|
-
* // Execute a simple seed
|
|
209
|
-
* const user = await factory.seed('userWithProfile');
|
|
210
|
-
*
|
|
211
|
-
* // Execute a seed with configuration
|
|
212
|
-
* const author = await factory.seed('authorWithBooks', {
|
|
213
|
-
* bookCount: 5,
|
|
214
|
-
* includeReviews: true
|
|
215
|
-
* });
|
|
216
|
-
*
|
|
217
|
-
* // Use seed result in tests
|
|
218
|
-
* const company = await factory.seed('companyWithDepartments', {
|
|
219
|
-
* departmentCount: 3,
|
|
220
|
-
* employeesPerDepartment: 10
|
|
221
|
-
* });
|
|
222
|
-
* expect(company.departments).toHaveLength(3);
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
seed(seedName, attrs) {
|
|
226
|
-
if (!(seedName in this.seeds)) throw new Error(`Seed "${seedName}" is not registered in this factory. Make sure it is correct and registered in src/test/setup.ts`);
|
|
227
|
-
return this.seeds[seedName]({
|
|
228
|
-
attrs: attrs || {},
|
|
229
|
-
factory: this,
|
|
230
|
-
db: this.db
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
//#endregion
|
|
235
|
-
export { KyselyFactory };
|
|
1
|
+
import "./Factory-BFVnMMCC.mjs";
|
|
2
|
+
import "./faker-BGKYFoCT.mjs";
|
|
3
|
+
import { KyselyFactory } from "./KyselyFactory-DMswpwji.mjs";
|
|
236
4
|
|
|
237
|
-
|
|
5
|
+
export { KyselyFactory };
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { FakerFactory } from "./faker-DHh7xs4u.mjs";
|
|
2
|
+
import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-SFupxRC2.mjs";
|
|
3
|
+
import { Knex } from "knex";
|
|
4
|
+
import { Model } from "objection";
|
|
5
|
+
|
|
6
|
+
//#region src/ObjectionFactory.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Factory implementation for Objection.js ORM, providing test data creation utilities.
|
|
10
|
+
* Extends the base Factory class with Objection.js-specific database operations.
|
|
11
|
+
*
|
|
12
|
+
* @template Builders - Record of builder functions for creating entities
|
|
13
|
+
* @template Seeds - Record of seed functions for complex test scenarios
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* // Define your models with Objection.js
|
|
18
|
+
* class User extends Model {
|
|
19
|
+
* static tableName = 'users';
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* // Create builders
|
|
23
|
+
* const builders = {
|
|
24
|
+
* user: ObjectionFactory.createBuilder(User, ({ attrs, faker }) => ({
|
|
25
|
+
* id: faker.string.uuid(),
|
|
26
|
+
* name: faker.person.fullName(),
|
|
27
|
+
* email: faker.internet.email(),
|
|
28
|
+
* ...attrs
|
|
29
|
+
* })),
|
|
30
|
+
* post: ObjectionFactory.createBuilder(Post, ({ attrs }) => ({
|
|
31
|
+
* title: 'Test Post',
|
|
32
|
+
* content: 'Test content',
|
|
33
|
+
* ...attrs
|
|
34
|
+
* })),
|
|
35
|
+
* };
|
|
36
|
+
*
|
|
37
|
+
* // Create factory instance
|
|
38
|
+
* const factory = new ObjectionFactory(builders, seeds, knex);
|
|
39
|
+
*
|
|
40
|
+
* // Use in tests
|
|
41
|
+
* const user = await factory.insert('user', { name: 'John Doe' });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
declare class ObjectionFactory<Builders extends Record<string, any>, Seeds extends Record<string, any>> extends Factory<Builders, Seeds> {
|
|
45
|
+
private builders;
|
|
46
|
+
private seeds;
|
|
47
|
+
private db;
|
|
48
|
+
/**
|
|
49
|
+
* Creates a typed seed function with proper type inference.
|
|
50
|
+
* Inherits from the base Factory class implementation.
|
|
51
|
+
*
|
|
52
|
+
* @template Seed - The seed function type
|
|
53
|
+
* @param seedFn - The seed function to wrap (receives { attrs, factory, db } object)
|
|
54
|
+
* @returns The same seed function with proper typing
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* const seeds = {
|
|
59
|
+
* userWithPosts: ObjectionFactory.createSeed(
|
|
60
|
+
* async ({ attrs, factory }) => {
|
|
61
|
+
* const user = await factory.insert('user', attrs);
|
|
62
|
+
* await factory.insertMany(3, 'post', { userId: user.id });
|
|
63
|
+
* return user;
|
|
64
|
+
* },
|
|
65
|
+
* ),
|
|
66
|
+
* };
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
static createSeed<Seed extends FactorySeed>(seedFn: Seed): Seed;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a typed builder function for Objection.js models.
|
|
72
|
+
* This is a utility method that helps create builders with proper type inference.
|
|
73
|
+
*
|
|
74
|
+
* @template TModel - The Objection.js Model class type
|
|
75
|
+
* @template Attrs - The attributes type for the builder (defaults to Partial of model)
|
|
76
|
+
* @template Factory - The factory instance type
|
|
77
|
+
* @template Result - The result type (defaults to the model instance)
|
|
78
|
+
*
|
|
79
|
+
* @param ModelClass - The Objection.js Model class
|
|
80
|
+
* @param defaults - Optional function to provide default values (receives destructured context)
|
|
81
|
+
* @param autoInsert - Whether to automatically insert the record (default: true)
|
|
82
|
+
* @returns A builder function that creates and optionally inserts records
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```typescript
|
|
86
|
+
* // Create a simple builder with defaults - destructure only what you need
|
|
87
|
+
* const userBuilder = ObjectionFactory.createBuilder(User,
|
|
88
|
+
* ({ attrs, faker }) => ({
|
|
89
|
+
* id: faker.string.uuid(),
|
|
90
|
+
* name: faker.person.fullName(),
|
|
91
|
+
* email: faker.internet.email(),
|
|
92
|
+
* createdAt: new Date(),
|
|
93
|
+
* ...attrs
|
|
94
|
+
* })
|
|
95
|
+
* );
|
|
96
|
+
*
|
|
97
|
+
* // Only need faker? Just destructure that
|
|
98
|
+
* const leaveTypeBuilder = ObjectionFactory.createBuilder(LeaveType,
|
|
99
|
+
* ({ faker }) => ({
|
|
100
|
+
* name: faker.helpers.arrayElement(['Annual', 'Sick', 'Maternity']),
|
|
101
|
+
* code: faker.string.alpha({ length: 3, casing: 'upper' }),
|
|
102
|
+
* })
|
|
103
|
+
* );
|
|
104
|
+
*
|
|
105
|
+
* // Create a builder that doesn't auto-insert (useful for nested inserts)
|
|
106
|
+
* const addressBuilder = ObjectionFactory.createBuilder(Address,
|
|
107
|
+
* ({ attrs }) => ({
|
|
108
|
+
* street: '123 Main St',
|
|
109
|
+
* city: 'Anytown',
|
|
110
|
+
* ...attrs
|
|
111
|
+
* }),
|
|
112
|
+
* false // Don't auto-insert
|
|
113
|
+
* );
|
|
114
|
+
*
|
|
115
|
+
* // Use with relations
|
|
116
|
+
* const postBuilder = ObjectionFactory.createBuilder(Post,
|
|
117
|
+
* async ({ attrs, factory, faker }) => ({
|
|
118
|
+
* title: faker.lorem.sentence(),
|
|
119
|
+
* content: faker.lorem.paragraphs(),
|
|
120
|
+
* authorId: attrs.authorId || (await factory.insert('user')).id,
|
|
121
|
+
* ...attrs
|
|
122
|
+
* })
|
|
123
|
+
* );
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
static createBuilder<TModel extends typeof Model, Attrs extends Partial<InstanceType<TModel>> = Partial<InstanceType<TModel>>, Factory = any, Result = InstanceType<TModel>>(ModelClass: TModel, defaults?: (context: {
|
|
127
|
+
attrs: Attrs;
|
|
128
|
+
factory: Factory;
|
|
129
|
+
db: Knex;
|
|
130
|
+
faker: FakerFactory;
|
|
131
|
+
}) => Partial<InstanceType<TModel>> | Promise<Partial<InstanceType<TModel>>>, autoInsert?: boolean): (attrs: Attrs, factory: Factory, db: Knex, faker: FakerFactory) => Promise<Result>;
|
|
132
|
+
/**
|
|
133
|
+
* Creates a new ObjectionFactory instance.
|
|
134
|
+
*
|
|
135
|
+
* @param builders - Record of builder functions for creating individual entities
|
|
136
|
+
* @param seeds - Record of seed functions for creating complex test scenarios
|
|
137
|
+
* @param db - Knex database connection instance
|
|
138
|
+
*/
|
|
139
|
+
constructor(builders: Builders, seeds: Seeds, db: Knex);
|
|
140
|
+
/**
|
|
141
|
+
* Inserts a single record into the database using the specified builder.
|
|
142
|
+
* Uses Objection.js's insertGraph method to handle nested relations.
|
|
143
|
+
*
|
|
144
|
+
* @template K - The builder name (must be a key of Builders)
|
|
145
|
+
* @param builderName - The name of the builder to use
|
|
146
|
+
* @param attrs - Optional attributes to override builder defaults
|
|
147
|
+
* @returns A promise resolving to the inserted record with all relations
|
|
148
|
+
* @throws Error if the specified builder doesn't exist
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```typescript
|
|
152
|
+
* // Insert with defaults
|
|
153
|
+
* const user = await factory.insert('user');
|
|
154
|
+
*
|
|
155
|
+
* // Insert with overrides
|
|
156
|
+
* const adminUser = await factory.insert('user', {
|
|
157
|
+
* email: 'admin@example.com',
|
|
158
|
+
* role: 'admin'
|
|
159
|
+
* });
|
|
160
|
+
*
|
|
161
|
+
* // Insert with nested relations
|
|
162
|
+
* const userWithProfile = await factory.insert('user', {
|
|
163
|
+
* name: 'John Doe',
|
|
164
|
+
* profile: {
|
|
165
|
+
* bio: 'Software Developer',
|
|
166
|
+
* avatar: 'avatar.jpg'
|
|
167
|
+
* }
|
|
168
|
+
* });
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
insert<K extends keyof Builders>(builderName: K, attrs?: Parameters<Builders[K]>[0]): Promise<Awaited<ReturnType<Builders[K]>>>;
|
|
172
|
+
/**
|
|
173
|
+
* Inserts multiple records into the database using the specified builder.
|
|
174
|
+
* Supports both static attributes and dynamic attribute generation via a function.
|
|
175
|
+
*
|
|
176
|
+
* @param count - The number of records to insert
|
|
177
|
+
* @param builderName - The name of the builder to use
|
|
178
|
+
* @param attrs - Static attributes or a function that generates attributes for each record
|
|
179
|
+
* @returns A promise resolving to an array of inserted records
|
|
180
|
+
* @throws Error if the specified builder doesn't exist
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```typescript
|
|
184
|
+
* // Insert multiple with same attributes
|
|
185
|
+
* const users = await factory.insertMany(5, 'user', { role: 'member' });
|
|
186
|
+
*
|
|
187
|
+
* // Insert multiple with dynamic attributes
|
|
188
|
+
* const posts = await factory.insertMany(10, 'post', (idx) => ({
|
|
189
|
+
* title: `Post ${idx + 1}`,
|
|
190
|
+
* content: `Content for post ${idx + 1}`,
|
|
191
|
+
* publishedAt: new Date()
|
|
192
|
+
* }));
|
|
193
|
+
*
|
|
194
|
+
* // Create users with sequential emails
|
|
195
|
+
* const admins = await factory.insertMany(3, 'user', (idx) => ({
|
|
196
|
+
* email: `admin${idx + 1}@example.com`,
|
|
197
|
+
* role: 'admin'
|
|
198
|
+
* }));
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs?: Parameters<Builders[K]>[0]): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
202
|
+
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs: (idx: number, faker: FakerFactory) => Parameters<Builders[K]>[0]): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
203
|
+
/**
|
|
204
|
+
* Executes a seed function to create complex test scenarios with multiple related records.
|
|
205
|
+
* Seeds are useful for setting up complete test environments with realistic data relationships.
|
|
206
|
+
*
|
|
207
|
+
* @template K - The seed name (must be a key of Seeds)
|
|
208
|
+
* @param seedName - The name of the seed to execute
|
|
209
|
+
* @param attrs - Optional configuration attributes for the seed
|
|
210
|
+
* @returns The result of the seed function (typically the primary record created)
|
|
211
|
+
* @throws Error if the specified seed doesn't exist
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* ```typescript
|
|
215
|
+
* // Execute a simple seed
|
|
216
|
+
* const user = await factory.seed('userWithProfile');
|
|
217
|
+
*
|
|
218
|
+
* // Execute a seed with configuration
|
|
219
|
+
* const author = await factory.seed('authorWithBooks', {
|
|
220
|
+
* bookCount: 5,
|
|
221
|
+
* includeReviews: true
|
|
222
|
+
* });
|
|
223
|
+
*
|
|
224
|
+
* // Use seed result in tests with Objection.js relations
|
|
225
|
+
* const company = await factory.seed('companyWithDepartments', {
|
|
226
|
+
* departmentCount: 3,
|
|
227
|
+
* employeesPerDepartment: 10
|
|
228
|
+
* });
|
|
229
|
+
*
|
|
230
|
+
* // Access eager loaded relations
|
|
231
|
+
* const companyWithRelations = await Company.query()
|
|
232
|
+
* .findById(company.id)
|
|
233
|
+
* .withGraphFetched('[departments.employees]');
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
seed<K extends keyof Seeds>(seedName: K, attrs?: ExtractSeedAttrs<Seeds[K]>): ReturnType<Seeds[K]>;
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=ObjectionFactory.d.ts.map
|
|
239
|
+
//#endregion
|
|
240
|
+
export { ObjectionFactory };
|
|
241
|
+
//# sourceMappingURL=ObjectionFactory-BWjB49-i.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectionFactory-BWjB49-i.d.mts","names":[],"sources":["../src/ObjectionFactory.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAyCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0Gc,cA1GD,gBA0GC,CAAA,iBAzGI,MAyGJ,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,cAxGC,MAwGD,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAvGJ,OAuGI,CAvGI,QAuGJ,EAvGc,KAuGd,CAAA,CAAA;EAAM,QAAd,QAAA;EAAO,QAqDO,KAAA;EAAQ,QACX,EAAA;EAAK;;;;;;;;;;;;;;;;;;;;;EA2GX,OACuB,UAAA,CAAA,aAnPO,WAmPP,CAAA,CAAA,MAAA,EAnP4B,IAmP5B,CAAA,EAnPmC,IAmPnC;EAAQ;;;;;;;;;;;;;;;;;;;AAzQzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAmFO,qBACR,QAAQ,aAAa,WAAW,QAAQ,aAAa,kCAE1D,aAAa,qBAEV;WAEJ;aACE;QACL;WACG;QAEL,QAAQ,aAAa,WACrB,QAAQ,QAAQ,aAAa,0CAGzB,gBACE,aACL,aACG,iBACH,QAAQ;;;;;;;;wBAqDM,iBACH,WACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoCgB,uBACf,WACL,WAAW,SAAS,SAC1B,QAAQ,QAAQ,WAAW,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA+DN,sCAEnB,WACL,WAAW,SAAS,SAC1B,QAAQ,QAAQ,WAAW,SAAS;6BACN,sCAEnB,+BACe,iBAAiB,WAAW,SAAS,SAC/D,QAAQ,QAAQ,WAAW,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAgFlB,iBACV,WACF,iBAAiB,MAAM,MAC7B,WAAW,MAAM"}
|