@aiao/rxdb-test 0.0.5 → 0.0.7
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/entities/index.d.ts +1363 -102
- package/dist/entities/index.js +272 -7
- package/dist/graph/index.d.ts +16 -0
- package/dist/graph/index.js +3 -0
- package/dist/shop/index.d.ts +449 -551
- package/dist/shop/index.js +64 -18
- package/dist/system/index.d.ts +745 -245
- package/dist/system/index.js +180 -30
- package/package.json +7 -3
package/dist/system/index.js
CHANGED
|
@@ -1,4 +1,111 @@
|
|
|
1
1
|
import { Entity, PropertyType, RelationKind, __decorateClass } from '@aiao/rxdb';
|
|
2
|
+
let RxDBRepositorySync = class {};
|
|
3
|
+
RxDBRepositorySync = __decorateClass(
|
|
4
|
+
[
|
|
5
|
+
Entity({
|
|
6
|
+
name: "RxDBRepositorySync",
|
|
7
|
+
log: false,
|
|
8
|
+
properties: [
|
|
9
|
+
{
|
|
10
|
+
name: "id",
|
|
11
|
+
type: PropertyType.string,
|
|
12
|
+
primary: true,
|
|
13
|
+
unique: true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "namespace",
|
|
17
|
+
type: PropertyType.string
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "entity",
|
|
21
|
+
type: PropertyType.string
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "syncType",
|
|
25
|
+
type: PropertyType.string,
|
|
26
|
+
default: "none"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "lastPushedChangeId",
|
|
30
|
+
type: PropertyType.integer,
|
|
31
|
+
nullable: true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "lastPushedAt",
|
|
35
|
+
type: PropertyType.date,
|
|
36
|
+
nullable: true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "lastPulledAt",
|
|
40
|
+
type: PropertyType.date,
|
|
41
|
+
nullable: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "lastPullRemoteChangeId",
|
|
45
|
+
type: PropertyType.integer,
|
|
46
|
+
nullable: true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "enabled",
|
|
50
|
+
type: PropertyType.boolean,
|
|
51
|
+
default: true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "createdAt",
|
|
55
|
+
type: PropertyType.date,
|
|
56
|
+
readonly: true,
|
|
57
|
+
nullable: true
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "updatedAt",
|
|
61
|
+
type: PropertyType.date,
|
|
62
|
+
readonly: true,
|
|
63
|
+
nullable: true
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
indexes: [
|
|
67
|
+
{
|
|
68
|
+
name: "idx_repo_sync_branch",
|
|
69
|
+
properties: [
|
|
70
|
+
"branchId"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "idx_repo_sync_entity",
|
|
75
|
+
properties: [
|
|
76
|
+
"namespace",
|
|
77
|
+
"entity",
|
|
78
|
+
"branchId"
|
|
79
|
+
],
|
|
80
|
+
unique: true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "idx_repo_sync_type",
|
|
84
|
+
properties: [
|
|
85
|
+
"syncType",
|
|
86
|
+
"branchId"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
relations: [
|
|
91
|
+
{
|
|
92
|
+
name: "branch",
|
|
93
|
+
kind: RelationKind.MANY_TO_ONE,
|
|
94
|
+
mappedEntity: "RxDBBranch",
|
|
95
|
+
onDelete: "CASCADE",
|
|
96
|
+
mappedNamespace: "public",
|
|
97
|
+
onUpdate: "RESTRICT"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
repository: "Repository",
|
|
101
|
+
namespace: "public",
|
|
102
|
+
computedProperties: [],
|
|
103
|
+
extends: [],
|
|
104
|
+
displayName: "RxDBRepositorySync"
|
|
105
|
+
})
|
|
106
|
+
],
|
|
107
|
+
RxDBRepositorySync
|
|
108
|
+
);
|
|
2
109
|
let RxDBMigration = class {};
|
|
3
110
|
RxDBMigration = __decorateClass(
|
|
4
111
|
[
|
|
@@ -26,6 +133,7 @@ RxDBMigration = __decorateClass(
|
|
|
26
133
|
namespace: "public",
|
|
27
134
|
relations: [],
|
|
28
135
|
indexes: [],
|
|
136
|
+
computedProperties: [],
|
|
29
137
|
extends: [],
|
|
30
138
|
displayName: "RxDBMigration"
|
|
31
139
|
})
|
|
@@ -44,6 +152,12 @@ RxDBChange = __decorateClass(
|
|
|
44
152
|
type: PropertyType.integer,
|
|
45
153
|
primary: true
|
|
46
154
|
},
|
|
155
|
+
{
|
|
156
|
+
name: "remoteId",
|
|
157
|
+
type: PropertyType.integer,
|
|
158
|
+
readonly: true,
|
|
159
|
+
nullable: true
|
|
160
|
+
},
|
|
47
161
|
{
|
|
48
162
|
name: "type",
|
|
49
163
|
type: PropertyType.string,
|
|
@@ -57,20 +171,17 @@ RxDBChange = __decorateClass(
|
|
|
57
171
|
{
|
|
58
172
|
name: "namespace",
|
|
59
173
|
type: PropertyType.string,
|
|
60
|
-
readonly: true
|
|
61
|
-
nullable: true
|
|
174
|
+
readonly: true
|
|
62
175
|
},
|
|
63
176
|
{
|
|
64
177
|
name: "entity",
|
|
65
178
|
type: PropertyType.string,
|
|
66
|
-
readonly: true
|
|
67
|
-
nullable: true
|
|
179
|
+
readonly: true
|
|
68
180
|
},
|
|
69
181
|
{
|
|
70
182
|
name: "entityId",
|
|
71
183
|
type: PropertyType.uuid,
|
|
72
|
-
readonly: true
|
|
73
|
-
nullable: true
|
|
184
|
+
readonly: true
|
|
74
185
|
},
|
|
75
186
|
{
|
|
76
187
|
name: "inversePatch",
|
|
@@ -88,15 +199,13 @@ RxDBChange = __decorateClass(
|
|
|
88
199
|
name: "createdAt",
|
|
89
200
|
type: PropertyType.date,
|
|
90
201
|
default: "CURRENT_TIMESTAMP",
|
|
91
|
-
readonly: true
|
|
92
|
-
nullable: true
|
|
202
|
+
readonly: true
|
|
93
203
|
},
|
|
94
204
|
{
|
|
95
205
|
name: "updatedAt",
|
|
96
206
|
type: PropertyType.date,
|
|
97
207
|
default: "CURRENT_TIMESTAMP",
|
|
98
|
-
readonly: true
|
|
99
|
-
nullable: true
|
|
208
|
+
readonly: true
|
|
100
209
|
},
|
|
101
210
|
{
|
|
102
211
|
name: "revertChangedAt",
|
|
@@ -107,34 +216,28 @@ RxDBChange = __decorateClass(
|
|
|
107
216
|
name: "revertChangeId",
|
|
108
217
|
type: PropertyType.integer,
|
|
109
218
|
nullable: true
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "redoInvalidatedAt",
|
|
222
|
+
type: PropertyType.date,
|
|
223
|
+
nullable: true
|
|
110
224
|
}
|
|
111
225
|
],
|
|
112
226
|
relations: [
|
|
113
|
-
{
|
|
114
|
-
name: "children",
|
|
115
|
-
kind: RelationKind.ONE_TO_MANY,
|
|
116
|
-
mappedEntity: "RxDBChange",
|
|
117
|
-
mappedProperty: "parent",
|
|
118
|
-
mappedNamespace: "public"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: "parent",
|
|
122
|
-
kind: RelationKind.MANY_TO_ONE,
|
|
123
|
-
mappedEntity: "RxDBChange",
|
|
124
|
-
nullable: true,
|
|
125
|
-
mappedNamespace: "public"
|
|
126
|
-
},
|
|
127
227
|
{
|
|
128
228
|
name: "branch",
|
|
129
229
|
kind: RelationKind.MANY_TO_ONE,
|
|
130
230
|
mappedEntity: "RxDBBranch",
|
|
131
231
|
nullable: true,
|
|
132
|
-
mappedNamespace: "public"
|
|
232
|
+
mappedNamespace: "public",
|
|
233
|
+
onDelete: "SET NULL",
|
|
234
|
+
onUpdate: "RESTRICT"
|
|
133
235
|
}
|
|
134
236
|
],
|
|
135
|
-
repository: "
|
|
237
|
+
repository: "Repository",
|
|
136
238
|
namespace: "public",
|
|
137
239
|
indexes: [],
|
|
240
|
+
computedProperties: [],
|
|
138
241
|
extends: [],
|
|
139
242
|
displayName: "RxDBChange"
|
|
140
243
|
})
|
|
@@ -159,6 +262,11 @@ RxDBBranch = __decorateClass(
|
|
|
159
262
|
type: PropertyType.boolean,
|
|
160
263
|
default: false
|
|
161
264
|
},
|
|
265
|
+
{
|
|
266
|
+
name: "fromChangeId",
|
|
267
|
+
type: PropertyType.number,
|
|
268
|
+
nullable: true
|
|
269
|
+
},
|
|
162
270
|
{
|
|
163
271
|
name: "local",
|
|
164
272
|
type: PropertyType.boolean,
|
|
@@ -168,6 +276,18 @@ RxDBBranch = __decorateClass(
|
|
|
168
276
|
name: "remote",
|
|
169
277
|
type: PropertyType.boolean,
|
|
170
278
|
default: false
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "createdAt",
|
|
282
|
+
type: PropertyType.date,
|
|
283
|
+
readonly: true,
|
|
284
|
+
nullable: true
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "updatedAt",
|
|
288
|
+
type: PropertyType.date,
|
|
289
|
+
readonly: true,
|
|
290
|
+
nullable: true
|
|
171
291
|
}
|
|
172
292
|
],
|
|
173
293
|
relations: [
|
|
@@ -176,17 +296,47 @@ RxDBBranch = __decorateClass(
|
|
|
176
296
|
kind: RelationKind.ONE_TO_MANY,
|
|
177
297
|
mappedEntity: "RxDBChange",
|
|
178
298
|
mappedProperty: "branch",
|
|
179
|
-
mappedNamespace: "public"
|
|
299
|
+
mappedNamespace: "public",
|
|
300
|
+
onDelete: "CASCADE",
|
|
301
|
+
onUpdate: "RESTRICT"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "repositorySyncs",
|
|
305
|
+
kind: RelationKind.ONE_TO_MANY,
|
|
306
|
+
mappedEntity: "RxDBRepositorySync",
|
|
307
|
+
mappedProperty: "branch",
|
|
308
|
+
mappedNamespace: "public",
|
|
309
|
+
onDelete: "CASCADE",
|
|
310
|
+
onUpdate: "RESTRICT"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: "children",
|
|
314
|
+
kind: RelationKind.ONE_TO_MANY,
|
|
315
|
+
mappedEntity: "RxDBBranch",
|
|
316
|
+
mappedProperty: "parent",
|
|
317
|
+
mappedNamespace: "public",
|
|
318
|
+
onDelete: "CASCADE",
|
|
319
|
+
onUpdate: "RESTRICT"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
name: "parent",
|
|
323
|
+
kind: RelationKind.MANY_TO_ONE,
|
|
324
|
+
mappedEntity: "RxDBBranch",
|
|
325
|
+
nullable: true,
|
|
326
|
+
mappedNamespace: "public",
|
|
327
|
+
onDelete: "SET NULL",
|
|
328
|
+
onUpdate: "RESTRICT"
|
|
180
329
|
}
|
|
181
330
|
],
|
|
182
|
-
repository: "
|
|
331
|
+
repository: "TreeRepository",
|
|
183
332
|
namespace: "public",
|
|
184
333
|
indexes: [],
|
|
334
|
+
computedProperties: [],
|
|
185
335
|
extends: [],
|
|
186
336
|
displayName: "RxDBBranch"
|
|
187
337
|
})
|
|
188
338
|
],
|
|
189
339
|
RxDBBranch
|
|
190
340
|
);
|
|
191
|
-
const ENTITIES = [ RxDBBranch, RxDBChange, RxDBMigration ];
|
|
192
|
-
export { ENTITIES, RxDBBranch, RxDBChange, RxDBMigration };
|
|
341
|
+
const ENTITIES = [ RxDBBranch, RxDBChange, RxDBMigration, RxDBRepositorySync ];
|
|
342
|
+
export { ENTITIES, RxDBBranch, RxDBChange, RxDBMigration, RxDBRepositorySync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiao/rxdb-test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"./shop": {
|
|
20
20
|
"import": "./dist/shop/index.js",
|
|
21
21
|
"types": "./dist/shop/index.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./graph": {
|
|
24
|
+
"import": "./dist/graph/index.js",
|
|
25
|
+
"types": "./dist/graph/index.d.ts"
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
28
|
"files": [
|
|
@@ -32,9 +36,9 @@
|
|
|
32
36
|
]
|
|
33
37
|
},
|
|
34
38
|
"dependencies": {
|
|
35
|
-
"@aiao/rxdb": "0.0.
|
|
39
|
+
"@aiao/rxdb": "0.0.7"
|
|
36
40
|
},
|
|
37
41
|
"devDependencies": {
|
|
38
|
-
"@aiao/rxdb-client-generator": "0.0.
|
|
42
|
+
"@aiao/rxdb-client-generator": "0.0.7"
|
|
39
43
|
}
|
|
40
44
|
}
|