@roc-db/test-utils 0.2.0-pre.1 → 0.2.0-pre.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1210 -235
- package/dist/types/entities/BlockImageEntity.d.ts +7 -0
- package/dist/types/entities/BlockParagraph.d.ts +7 -0
- package/dist/types/entities/BlockRow.d.ts +7 -0
- package/dist/types/entities/Draft.d.ts +8 -0
- package/dist/types/entities/OrgSettingsEntity.d.ts +10 -0
- package/dist/types/entities/PostEntity.d.ts +12 -0
- package/dist/types/entities/PostVersion.d.ts +8 -0
- package/dist/types/entities/UserEntity.d.ts +5 -0
- package/dist/types/entities/index.d.ts +41 -0
- package/dist/types/inMemoryAdapter.d.ts +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/operations/applyDraft.d.ts +1 -0
- package/dist/types/operations/createBlockImage.d.ts +5 -0
- package/dist/types/operations/createBlockParagraph.d.ts +5 -0
- package/dist/types/operations/createBlockRow.d.ts +4 -0
- package/dist/types/operations/createBlockRowReadingRoot.d.ts +13 -0
- package/dist/types/operations/createBlockTitle.d.ts +4 -0
- package/dist/types/operations/createDraft.d.ts +4 -0
- package/dist/types/operations/createOrgSettings.d.ts +6 -0
- package/dist/types/operations/createPost.d.ts +6 -0
- package/dist/types/operations/createUnknownRef.d.ts +2 -0
- package/dist/types/operations/createUser.d.ts +4 -0
- package/dist/types/operations/crudBySlug.d.ts +5 -0
- package/dist/types/operations/deleteBlocks.d.ts +2 -0
- package/dist/types/operations/deleteDraft.d.ts +1 -0
- package/dist/types/operations/deleteOrgSettings.d.ts +2 -0
- package/dist/types/operations/deletePost.d.ts +1 -0
- package/dist/types/operations/duplicateDraft.d.ts +10 -0
- package/dist/types/operations/index.d.ts +1 -0
- package/dist/types/operations/moveBlocks.d.ts +5 -0
- package/dist/types/operations/pageBlocks.d.ts +1 -0
- package/dist/types/operations/pageEmptyEntitiesArray.d.ts +1 -0
- package/dist/types/operations/pagePosts.d.ts +1 -0
- package/dist/types/operations/pagePostsByTag.d.ts +1 -0
- package/dist/types/operations/pageSplat.d.ts +1 -0
- package/dist/types/operations/readEntity.d.ts +1 -0
- package/dist/types/operations/readMutation.d.ts +1 -0
- package/dist/types/operations/readOrgSettings.d.ts +2 -0
- package/dist/types/operations/readPost.d.ts +1 -0
- package/dist/types/operations/readPostBySlug.d.ts +1 -0
- package/dist/types/operations/testTransactionalEdits.d.ts +6 -0
- package/dist/types/operations/updateBlockParagraph.d.ts +5 -0
- package/dist/types/operations/updateOrgSettingsName.d.ts +4 -0
- package/dist/types/operations/updatePost.d.ts +7 -0
- package/dist/types/operations/updatePostDescription.d.ts +5 -0
- package/dist/types/operations/updatePostSlug.d.ts +5 -0
- package/dist/types/operations/updatePostTags.d.ts +5 -0
- package/dist/types/operations/updatePostTitle.d.ts +5 -0
- package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -0
- package/dist/types/schemas/BlockImageSchema.d.ts +21 -0
- package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -0
- package/dist/types/schemas/BlockParagraphSchema.d.ts +22 -0
- package/dist/types/schemas/BlockRefSchema.d.ts +2 -0
- package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -0
- package/dist/types/schemas/BlockRowSchema.d.ts +23 -0
- package/dist/types/schemas/BlockTitleSchema.d.ts +21 -0
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +20 -0
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +18 -0
- package/dist/types/schemas/DraftRefSchema.d.ts +1 -0
- package/dist/types/schemas/DraftSchema.d.ts +19 -0
- package/dist/types/schemas/PostRefSchema.d.ts +1 -0
- package/dist/types/schemas/PostSchema.d.ts +27 -0
- package/dist/types/schemas/PostVersionRefSchema.d.ts +1 -0
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +21 -0
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +19 -0
- package/dist/types/schemas/UserRefSchema.d.ts +1 -0
- package/dist/types/schemas/index.d.ts +13 -0
- package/dist/types/setup/index.d.ts +11 -0
- package/dist/types/testAdapterImplementation.d.ts +1 -0
- package/package.json +16 -19
- package/dist/roc-db-test-utils-0.2.0-pre.1.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UserRefSchema: import("zod").ZodTemplateLiteral<`User/${number}`>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BlockImageSchema } from "./BlockImageSchema";
|
|
2
|
+
import { BlockParagraphSchema } from "./BlockParagraphSchema";
|
|
3
|
+
import { BlockTitleSchema } from "./BlockTitleSchema";
|
|
4
|
+
import { DraftSchema } from "./DraftSchema";
|
|
5
|
+
import { PostSchema } from "./PostSchema";
|
|
6
|
+
export { BlockImageSchema, BlockParagraphSchema, BlockTitleSchema, DraftSchema, PostSchema, };
|
|
7
|
+
export { DraftRefSchema } from "./DraftRefSchema";
|
|
8
|
+
export { PostRefSchema } from "./PostRefSchema";
|
|
9
|
+
export { UserRefSchema } from "./UserRefSchema";
|
|
10
|
+
export { CreatePostMutationSchema } from "./CreatePostMutationSchema";
|
|
11
|
+
export { CreateUserMutationSchema } from "./CreateUserMutationSchema";
|
|
12
|
+
export { UpdatePostMutationSchema } from "./UpdatePostMutationSchema";
|
|
13
|
+
export { UpdatePostTitleMutationSchema } from "./UpdatePostTitleMutationSchema";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ZodSchema } from "zod";
|
|
2
|
+
interface CustomMatchers {
|
|
3
|
+
toMatchZodSchema(schema: ZodSchema): any;
|
|
4
|
+
}
|
|
5
|
+
declare module "bun:test" {
|
|
6
|
+
interface Matchers<T> extends CustomMatchers {
|
|
7
|
+
}
|
|
8
|
+
interface AsymmetricMatchers extends CustomMatchers {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const testAdapterImplementation: <EngineOptions extends {}>(adapterConstructor: any, generateArgs: () => EngineOptions) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roc-db/test-utils",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.100",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
|
-
".":
|
|
7
|
-
|
|
6
|
+
".": {
|
|
7
|
+
"import": "./dist/index.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts"
|
|
9
|
+
},
|
|
10
|
+
"./setup": {
|
|
11
|
+
"import": "./dist/setup/index.js",
|
|
12
|
+
"types": "./dist/types/setup/index.d.ts"
|
|
13
|
+
}
|
|
8
14
|
},
|
|
9
15
|
"files": [
|
|
10
16
|
"dist"
|
|
11
17
|
],
|
|
12
18
|
"sideEffects": false,
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "NODE_ENV=production bun run scripts/build.ts",
|
|
15
|
-
"build:types": "rm -rf dist/types && bun run tsc --noCheck",
|
|
16
|
-
"test": "echo"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@faker-js/faker": "9.6.0",
|
|
20
|
-
"@types/bun": "1.2.5",
|
|
21
|
-
"@types/sanitize-html": "2.13.0",
|
|
22
|
-
"bun": "1.2.5",
|
|
23
|
-
"expect-type": "1.2.0",
|
|
24
|
-
"roc-db": "0.2.0-pre.1"
|
|
25
|
-
},
|
|
26
19
|
"peerDependencies": {
|
|
27
|
-
"roc-db": "0.2.0-pre.1",
|
|
28
|
-
"zod": "
|
|
20
|
+
"roc-db": ">=0.2.0-pre.98 <1.0.0",
|
|
21
|
+
"zod": ">=4.0.0"
|
|
29
22
|
},
|
|
30
23
|
"keywords": [],
|
|
31
24
|
"author": "Eigil Sagafos",
|
|
@@ -33,5 +26,9 @@
|
|
|
33
26
|
"type": "git",
|
|
34
27
|
"url": "git+https://github.com/eigilsagafos/roc-db.git"
|
|
35
28
|
},
|
|
36
|
-
"license": "MIT"
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
}
|
|
37
34
|
}
|
|
Binary file
|