@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.
Files changed (72) hide show
  1. package/dist/index.js +1210 -235
  2. package/dist/types/entities/BlockImageEntity.d.ts +7 -0
  3. package/dist/types/entities/BlockParagraph.d.ts +7 -0
  4. package/dist/types/entities/BlockRow.d.ts +7 -0
  5. package/dist/types/entities/Draft.d.ts +8 -0
  6. package/dist/types/entities/OrgSettingsEntity.d.ts +10 -0
  7. package/dist/types/entities/PostEntity.d.ts +12 -0
  8. package/dist/types/entities/PostVersion.d.ts +8 -0
  9. package/dist/types/entities/UserEntity.d.ts +5 -0
  10. package/dist/types/entities/index.d.ts +41 -0
  11. package/dist/types/inMemoryAdapter.d.ts +1 -0
  12. package/dist/types/index.d.ts +5 -0
  13. package/dist/types/operations/applyDraft.d.ts +1 -0
  14. package/dist/types/operations/createBlockImage.d.ts +5 -0
  15. package/dist/types/operations/createBlockParagraph.d.ts +5 -0
  16. package/dist/types/operations/createBlockRow.d.ts +4 -0
  17. package/dist/types/operations/createBlockRowReadingRoot.d.ts +13 -0
  18. package/dist/types/operations/createBlockTitle.d.ts +4 -0
  19. package/dist/types/operations/createDraft.d.ts +4 -0
  20. package/dist/types/operations/createOrgSettings.d.ts +6 -0
  21. package/dist/types/operations/createPost.d.ts +6 -0
  22. package/dist/types/operations/createUnknownRef.d.ts +2 -0
  23. package/dist/types/operations/createUser.d.ts +4 -0
  24. package/dist/types/operations/crudBySlug.d.ts +5 -0
  25. package/dist/types/operations/deleteBlocks.d.ts +2 -0
  26. package/dist/types/operations/deleteDraft.d.ts +1 -0
  27. package/dist/types/operations/deleteOrgSettings.d.ts +2 -0
  28. package/dist/types/operations/deletePost.d.ts +1 -0
  29. package/dist/types/operations/duplicateDraft.d.ts +10 -0
  30. package/dist/types/operations/index.d.ts +1 -0
  31. package/dist/types/operations/moveBlocks.d.ts +5 -0
  32. package/dist/types/operations/pageBlocks.d.ts +1 -0
  33. package/dist/types/operations/pageEmptyEntitiesArray.d.ts +1 -0
  34. package/dist/types/operations/pagePosts.d.ts +1 -0
  35. package/dist/types/operations/pagePostsByTag.d.ts +1 -0
  36. package/dist/types/operations/pageSplat.d.ts +1 -0
  37. package/dist/types/operations/readEntity.d.ts +1 -0
  38. package/dist/types/operations/readMutation.d.ts +1 -0
  39. package/dist/types/operations/readOrgSettings.d.ts +2 -0
  40. package/dist/types/operations/readPost.d.ts +1 -0
  41. package/dist/types/operations/readPostBySlug.d.ts +1 -0
  42. package/dist/types/operations/testTransactionalEdits.d.ts +6 -0
  43. package/dist/types/operations/updateBlockParagraph.d.ts +5 -0
  44. package/dist/types/operations/updateOrgSettingsName.d.ts +4 -0
  45. package/dist/types/operations/updatePost.d.ts +7 -0
  46. package/dist/types/operations/updatePostDescription.d.ts +5 -0
  47. package/dist/types/operations/updatePostSlug.d.ts +5 -0
  48. package/dist/types/operations/updatePostTags.d.ts +5 -0
  49. package/dist/types/operations/updatePostTitle.d.ts +5 -0
  50. package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -0
  51. package/dist/types/schemas/BlockImageSchema.d.ts +21 -0
  52. package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -0
  53. package/dist/types/schemas/BlockParagraphSchema.d.ts +22 -0
  54. package/dist/types/schemas/BlockRefSchema.d.ts +2 -0
  55. package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -0
  56. package/dist/types/schemas/BlockRowSchema.d.ts +23 -0
  57. package/dist/types/schemas/BlockTitleSchema.d.ts +21 -0
  58. package/dist/types/schemas/CreatePostMutationSchema.d.ts +20 -0
  59. package/dist/types/schemas/CreateUserMutationSchema.d.ts +18 -0
  60. package/dist/types/schemas/DraftRefSchema.d.ts +1 -0
  61. package/dist/types/schemas/DraftSchema.d.ts +19 -0
  62. package/dist/types/schemas/PostRefSchema.d.ts +1 -0
  63. package/dist/types/schemas/PostSchema.d.ts +27 -0
  64. package/dist/types/schemas/PostVersionRefSchema.d.ts +1 -0
  65. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +21 -0
  66. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +19 -0
  67. package/dist/types/schemas/UserRefSchema.d.ts +1 -0
  68. package/dist/types/schemas/index.d.ts +13 -0
  69. package/dist/types/setup/index.d.ts +11 -0
  70. package/dist/types/testAdapterImplementation.d.ts +1 -0
  71. package/package.json +16 -19
  72. 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.1",
3
+ "version": "0.2.0-pre.100",
4
4
  "type": "module",
5
5
  "exports": {
6
- ".": "./src/index.ts",
7
- "./setup": "./src/setup/index.ts"
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": "3.24.2"
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
  }