@powersync/service-sync-rules 0.0.0-dev-20241018075839 → 0.0.0-dev-20241021184609

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powersync/service-sync-rules",
3
3
  "repository": "https://github.com/powersync-ja/powersync-service",
4
- "version": "0.0.0-dev-20241018075839",
4
+ "version": "0.0.0-dev-20241021184609",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "FSL-1.1-Apache-2.0",
@@ -26,9 +26,10 @@
26
26
  },
27
27
  "scripts": {
28
28
  "clean": "rm -r ./dist && tsc -b --clean",
29
- "build:tsc": "tsc -b",
30
- "build": "pnpm build:tsc && node scripts/compile-schema.js",
29
+ "build": "tsc -b",
31
30
  "build:tests": "tsc -b test/tsconfig.json",
31
+ "compile:schema": "pnpm build && node scripts/compile-schema.js",
32
+ "postversion": "pnpm compile:schema",
32
33
  "test": "vitest"
33
34
  }
34
35
  }
@@ -1,106 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "bucket_definitions": {
5
- "type": "object",
6
- "description": "List of bucket definitions",
7
- "examples": [
8
- {
9
- "global": {
10
- "data": "select * from mytable"
11
- }
12
- }
13
- ],
14
- "patternProperties": {
15
- ".*": {
16
- "type": "object",
17
- "required": [
18
- "data"
19
- ],
20
- "examples": [
21
- {
22
- "data": [
23
- "select * from mytable"
24
- ]
25
- }
26
- ],
27
- "properties": {
28
- "accept_potentially_dangerous_queries": {
29
- "description": "If true, disables warnings on potentially dangerous queries",
30
- "type": "boolean"
31
- },
32
- "parameters": {
33
- "description": "Parameter query(ies)",
34
- "anyOf": [
35
- {
36
- "type": "string",
37
- "description": "Parameter query"
38
- },
39
- {
40
- "type": "array",
41
- "description": "Parameter queries",
42
- "items": {
43
- "type": "string"
44
- }
45
- }
46
- ]
47
- },
48
- "data": {
49
- "type": "array",
50
- "description": "Data queries",
51
- "items": {
52
- "type": "string"
53
- }
54
- }
55
- },
56
- "additionalProperties": false
57
- }
58
- }
59
- },
60
- "event_definitions": {
61
- "type": "object",
62
- "description": "Record of sync replication event definitions",
63
- "examples": [
64
- {
65
- "write_checkpoints": {
66
- "payloads": [
67
- "select user_id, client_id, checkpoint from checkpoints"
68
- ]
69
- }
70
- }
71
- ],
72
- "patternProperties": {
73
- ".*": {
74
- "type": [
75
- "object"
76
- ],
77
- "required": [
78
- "payloads"
79
- ],
80
- "examples": [
81
- {
82
- "payloads": [
83
- "select user_id, client_id, checkpoint from checkpoints"
84
- ]
85
- }
86
- ],
87
- "properties": {
88
- "payloads": {
89
- "description": "Queries which extract event payload fields from replicated table rows.",
90
- "type": "array",
91
- "items": {
92
- "type": "string"
93
- }
94
- },
95
- "additionalProperties": false,
96
- "uniqueItems": true
97
- }
98
- }
99
- }
100
- }
101
- },
102
- "required": [
103
- "bucket_definitions"
104
- ],
105
- "additionalProperties": false
106
- }