@aiao/rxdb-test 0.0.9 → 0.0.11
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/cross-framework-fixtures/index.d.ts +23 -0
- package/dist/cross-framework-fixtures/index.d.ts.map +1 -0
- package/dist/entities/index.d.ts +14 -14
- package/dist/entities/index.js +49 -18
- package/dist/shop/index.d.ts +51 -51
- package/dist/shop/index.js +98 -27
- package/dist/system/index.js +60 -15
- package/package.json +3 -3
package/dist/system/index.js
CHANGED
|
@@ -4,59 +4,71 @@ RxDBSync = __decorateClass(
|
|
|
4
4
|
[
|
|
5
5
|
Entity({
|
|
6
6
|
name: "RxDBSync",
|
|
7
|
+
tableName: "rxdb_sync",
|
|
7
8
|
log: false,
|
|
8
9
|
properties: [
|
|
9
10
|
{
|
|
10
11
|
name: "id",
|
|
11
12
|
type: PropertyType.string,
|
|
12
|
-
primary: true
|
|
13
|
+
primary: true,
|
|
14
|
+
columnName: "id"
|
|
13
15
|
},
|
|
14
16
|
{
|
|
15
17
|
name: "namespace",
|
|
16
|
-
type: PropertyType.string
|
|
18
|
+
type: PropertyType.string,
|
|
19
|
+
columnName: "namespace"
|
|
17
20
|
},
|
|
18
21
|
{
|
|
19
22
|
name: "entity",
|
|
20
|
-
type: PropertyType.string
|
|
23
|
+
type: PropertyType.string,
|
|
24
|
+
columnName: "entity"
|
|
21
25
|
},
|
|
22
26
|
{
|
|
23
27
|
name: "syncType",
|
|
28
|
+
columnName: "sync_type",
|
|
24
29
|
type: PropertyType.string,
|
|
25
30
|
default: "none"
|
|
26
31
|
},
|
|
27
32
|
{
|
|
28
33
|
name: "lastPushedChangeId",
|
|
34
|
+
columnName: "last_pushed_change_id",
|
|
29
35
|
type: PropertyType.integer,
|
|
30
36
|
nullable: true
|
|
31
37
|
},
|
|
32
38
|
{
|
|
33
39
|
name: "lastPushedAt",
|
|
40
|
+
columnName: "last_pushed_at",
|
|
34
41
|
type: PropertyType.date,
|
|
35
42
|
nullable: true
|
|
36
43
|
},
|
|
37
44
|
{
|
|
38
45
|
name: "lastPulledAt",
|
|
46
|
+
columnName: "last_pulled_at",
|
|
39
47
|
type: PropertyType.date,
|
|
40
48
|
nullable: true
|
|
41
49
|
},
|
|
42
50
|
{
|
|
43
51
|
name: "lastPullRemoteChangeId",
|
|
52
|
+
columnName: "last_pull_remote_change_id",
|
|
44
53
|
type: PropertyType.integer,
|
|
45
54
|
nullable: true
|
|
46
55
|
},
|
|
47
56
|
{
|
|
48
57
|
name: "enabled",
|
|
49
58
|
type: PropertyType.boolean,
|
|
50
|
-
default: true
|
|
59
|
+
default: true,
|
|
60
|
+
columnName: "enabled"
|
|
51
61
|
},
|
|
52
62
|
{
|
|
53
63
|
name: "createdAt",
|
|
64
|
+
columnName: "created_at",
|
|
54
65
|
type: PropertyType.date,
|
|
55
66
|
readonly: true,
|
|
56
67
|
nullable: true
|
|
57
68
|
},
|
|
58
69
|
{
|
|
59
70
|
name: "updatedAt",
|
|
71
|
+
columnName: "updated_at",
|
|
60
72
|
type: PropertyType.date,
|
|
61
73
|
readonly: true,
|
|
62
74
|
nullable: true
|
|
@@ -93,6 +105,7 @@ RxDBSync = __decorateClass(
|
|
|
93
105
|
mappedEntity: "RxDBBranch",
|
|
94
106
|
onDelete: "CASCADE",
|
|
95
107
|
mappedNamespace: "public",
|
|
108
|
+
columnName: "branchId",
|
|
96
109
|
onUpdate: "RESTRICT"
|
|
97
110
|
}
|
|
98
111
|
],
|
|
@@ -110,20 +123,24 @@ RxDBMigration = __decorateClass(
|
|
|
110
123
|
[
|
|
111
124
|
Entity({
|
|
112
125
|
name: "RxDBMigration",
|
|
126
|
+
tableName: "rxdb_migration",
|
|
113
127
|
log: false,
|
|
114
128
|
properties: [
|
|
115
129
|
{
|
|
116
130
|
name: "id",
|
|
117
131
|
type: PropertyType.integer,
|
|
118
|
-
primary: true
|
|
132
|
+
primary: true,
|
|
133
|
+
columnName: "id"
|
|
119
134
|
},
|
|
120
135
|
{
|
|
121
136
|
name: "name",
|
|
122
137
|
type: PropertyType.string,
|
|
123
|
-
readonly: true
|
|
138
|
+
readonly: true,
|
|
139
|
+
columnName: "name"
|
|
124
140
|
},
|
|
125
141
|
{
|
|
126
142
|
name: "executedAt",
|
|
143
|
+
columnName: "executed_at",
|
|
127
144
|
type: PropertyType.date,
|
|
128
145
|
readonly: true
|
|
129
146
|
}
|
|
@@ -144,15 +161,18 @@ RxDBChange = __decorateClass(
|
|
|
144
161
|
[
|
|
145
162
|
Entity({
|
|
146
163
|
name: "RxDBChange",
|
|
164
|
+
tableName: "rxdb_change",
|
|
147
165
|
log: false,
|
|
148
166
|
properties: [
|
|
149
167
|
{
|
|
150
168
|
name: "id",
|
|
151
169
|
type: PropertyType.integer,
|
|
152
|
-
primary: true
|
|
170
|
+
primary: true,
|
|
171
|
+
columnName: "id"
|
|
153
172
|
},
|
|
154
173
|
{
|
|
155
174
|
name: "remoteId",
|
|
175
|
+
columnName: "remote_id",
|
|
156
176
|
type: PropertyType.integer,
|
|
157
177
|
readonly: true,
|
|
158
178
|
nullable: true
|
|
@@ -160,30 +180,36 @@ RxDBChange = __decorateClass(
|
|
|
160
180
|
{
|
|
161
181
|
name: "type",
|
|
162
182
|
type: PropertyType.string,
|
|
163
|
-
readonly: true
|
|
183
|
+
readonly: true,
|
|
184
|
+
columnName: "type"
|
|
164
185
|
},
|
|
165
186
|
{
|
|
166
187
|
name: "transactionId",
|
|
188
|
+
columnName: "transaction_id",
|
|
167
189
|
type: PropertyType.uuid,
|
|
168
190
|
nullable: true
|
|
169
191
|
},
|
|
170
192
|
{
|
|
171
193
|
name: "namespace",
|
|
172
194
|
type: PropertyType.string,
|
|
173
|
-
readonly: true
|
|
195
|
+
readonly: true,
|
|
196
|
+
columnName: "namespace"
|
|
174
197
|
},
|
|
175
198
|
{
|
|
176
199
|
name: "entity",
|
|
177
200
|
type: PropertyType.string,
|
|
178
|
-
readonly: true
|
|
201
|
+
readonly: true,
|
|
202
|
+
columnName: "entity"
|
|
179
203
|
},
|
|
180
204
|
{
|
|
181
205
|
name: "entityId",
|
|
206
|
+
columnName: "entity_id",
|
|
182
207
|
type: PropertyType.uuid,
|
|
183
208
|
readonly: true
|
|
184
209
|
},
|
|
185
210
|
{
|
|
186
211
|
name: "inversePatch",
|
|
212
|
+
columnName: "inverse_patch",
|
|
187
213
|
type: PropertyType.json,
|
|
188
214
|
readonly: true,
|
|
189
215
|
nullable: true
|
|
@@ -192,32 +218,38 @@ RxDBChange = __decorateClass(
|
|
|
192
218
|
name: "patch",
|
|
193
219
|
type: PropertyType.json,
|
|
194
220
|
readonly: true,
|
|
195
|
-
nullable: true
|
|
221
|
+
nullable: true,
|
|
222
|
+
columnName: "patch"
|
|
196
223
|
},
|
|
197
224
|
{
|
|
198
225
|
name: "createdAt",
|
|
226
|
+
columnName: "created_at",
|
|
199
227
|
type: PropertyType.date,
|
|
200
228
|
default: "CURRENT_TIMESTAMP",
|
|
201
229
|
readonly: true
|
|
202
230
|
},
|
|
203
231
|
{
|
|
204
232
|
name: "updatedAt",
|
|
233
|
+
columnName: "updated_at",
|
|
205
234
|
type: PropertyType.date,
|
|
206
235
|
default: "CURRENT_TIMESTAMP",
|
|
207
236
|
readonly: true
|
|
208
237
|
},
|
|
209
238
|
{
|
|
210
239
|
name: "revertChangedAt",
|
|
240
|
+
columnName: "revert_changed_at",
|
|
211
241
|
type: PropertyType.date,
|
|
212
242
|
nullable: true
|
|
213
243
|
},
|
|
214
244
|
{
|
|
215
245
|
name: "revertChangeId",
|
|
246
|
+
columnName: "revert_change_id",
|
|
216
247
|
type: PropertyType.integer,
|
|
217
248
|
nullable: true
|
|
218
249
|
},
|
|
219
250
|
{
|
|
220
251
|
name: "redoInvalidatedAt",
|
|
252
|
+
columnName: "redo_invalidated_at",
|
|
221
253
|
type: PropertyType.date,
|
|
222
254
|
nullable: true
|
|
223
255
|
}
|
|
@@ -229,6 +261,7 @@ RxDBChange = __decorateClass(
|
|
|
229
261
|
mappedEntity: "RxDBBranch",
|
|
230
262
|
nullable: true,
|
|
231
263
|
mappedNamespace: "public",
|
|
264
|
+
columnName: "branchId",
|
|
232
265
|
onDelete: "SET NULL",
|
|
233
266
|
onUpdate: "RESTRICT"
|
|
234
267
|
}
|
|
@@ -248,42 +281,50 @@ RxDBBranch = __decorateClass(
|
|
|
248
281
|
[
|
|
249
282
|
Entity({
|
|
250
283
|
name: "RxDBBranch",
|
|
284
|
+
tableName: "rxdb_branch",
|
|
251
285
|
log: false,
|
|
252
286
|
properties: [
|
|
253
287
|
{
|
|
254
288
|
name: "id",
|
|
255
289
|
type: PropertyType.string,
|
|
256
290
|
primary: true,
|
|
257
|
-
unique: true
|
|
291
|
+
unique: true,
|
|
292
|
+
columnName: "id"
|
|
258
293
|
},
|
|
259
294
|
{
|
|
260
295
|
name: "activated",
|
|
261
296
|
type: PropertyType.boolean,
|
|
262
|
-
default: false
|
|
297
|
+
default: false,
|
|
298
|
+
columnName: "activated"
|
|
263
299
|
},
|
|
264
300
|
{
|
|
265
301
|
name: "fromChangeId",
|
|
302
|
+
columnName: "from_change_id",
|
|
266
303
|
type: PropertyType.number,
|
|
267
304
|
nullable: true
|
|
268
305
|
},
|
|
269
306
|
{
|
|
270
307
|
name: "local",
|
|
271
308
|
type: PropertyType.boolean,
|
|
272
|
-
default: true
|
|
309
|
+
default: true,
|
|
310
|
+
columnName: "local"
|
|
273
311
|
},
|
|
274
312
|
{
|
|
275
313
|
name: "remote",
|
|
276
314
|
type: PropertyType.boolean,
|
|
277
|
-
default: false
|
|
315
|
+
default: false,
|
|
316
|
+
columnName: "remote"
|
|
278
317
|
},
|
|
279
318
|
{
|
|
280
319
|
name: "createdAt",
|
|
320
|
+
columnName: "created_at",
|
|
281
321
|
type: PropertyType.date,
|
|
282
322
|
readonly: true,
|
|
283
323
|
nullable: true
|
|
284
324
|
},
|
|
285
325
|
{
|
|
286
326
|
name: "updatedAt",
|
|
327
|
+
columnName: "updated_at",
|
|
287
328
|
type: PropertyType.date,
|
|
288
329
|
readonly: true,
|
|
289
330
|
nullable: true
|
|
@@ -296,6 +337,7 @@ RxDBBranch = __decorateClass(
|
|
|
296
337
|
mappedEntity: "RxDBChange",
|
|
297
338
|
mappedProperty: "branch",
|
|
298
339
|
mappedNamespace: "public",
|
|
340
|
+
columnName: "changesId",
|
|
299
341
|
onDelete: "CASCADE",
|
|
300
342
|
onUpdate: "RESTRICT"
|
|
301
343
|
},
|
|
@@ -305,6 +347,7 @@ RxDBBranch = __decorateClass(
|
|
|
305
347
|
mappedEntity: "RxDBSync",
|
|
306
348
|
mappedProperty: "branch",
|
|
307
349
|
mappedNamespace: "public",
|
|
350
|
+
columnName: "syncsId",
|
|
308
351
|
onDelete: "CASCADE",
|
|
309
352
|
onUpdate: "RESTRICT"
|
|
310
353
|
},
|
|
@@ -314,6 +357,7 @@ RxDBBranch = __decorateClass(
|
|
|
314
357
|
mappedEntity: "RxDBBranch",
|
|
315
358
|
mappedProperty: "parent",
|
|
316
359
|
mappedNamespace: "public",
|
|
360
|
+
columnName: "childrenId",
|
|
317
361
|
onDelete: "CASCADE",
|
|
318
362
|
onUpdate: "RESTRICT"
|
|
319
363
|
},
|
|
@@ -323,6 +367,7 @@ RxDBBranch = __decorateClass(
|
|
|
323
367
|
mappedEntity: "RxDBBranch",
|
|
324
368
|
nullable: true,
|
|
325
369
|
mappedNamespace: "public",
|
|
370
|
+
columnName: "parentId",
|
|
326
371
|
onDelete: "SET NULL",
|
|
327
372
|
onUpdate: "RESTRICT"
|
|
328
373
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiao/rxdb-test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@aiao/rxdb": "0.0.
|
|
42
|
+
"@aiao/rxdb": "0.0.11"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@aiao/rxdb-client-generator": "0.0.
|
|
45
|
+
"@aiao/rxdb-client-generator": "0.0.11"
|
|
46
46
|
}
|
|
47
47
|
}
|