@aiao/rxdb-test 0.0.6 → 0.0.8
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 +1135 -119
- package/dist/entities/index.js +195 -7
- package/dist/graph/index.d.ts +16 -0
- package/dist/graph/index.js +3 -0
- package/dist/shop/index.d.ts +323 -515
- package/dist/shop/index.js +64 -18
- package/dist/system/index.d.ts +710 -219
- package/dist/system/index.js +180 -30
- package/package.json +7 -3
package/dist/entities/index.js
CHANGED
|
@@ -68,6 +68,7 @@ TypeDemo = __decorateClass(
|
|
|
68
68
|
namespace: "public",
|
|
69
69
|
relations: [],
|
|
70
70
|
indexes: [],
|
|
71
|
+
computedProperties: [],
|
|
71
72
|
extends: [
|
|
72
73
|
"EntityBase"
|
|
73
74
|
],
|
|
@@ -96,6 +97,7 @@ Todo = __decorateClass(
|
|
|
96
97
|
namespace: "public",
|
|
97
98
|
relations: [],
|
|
98
99
|
indexes: [],
|
|
100
|
+
computedProperties: [],
|
|
99
101
|
extends: [
|
|
100
102
|
"EntityBase"
|
|
101
103
|
],
|
|
@@ -104,29 +106,215 @@ Todo = __decorateClass(
|
|
|
104
106
|
],
|
|
105
107
|
Todo
|
|
106
108
|
);
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
+
let MenuSimple = class extends TreeAdjacencyListEntityBase {};
|
|
110
|
+
MenuSimple = __decorateClass(
|
|
109
111
|
[
|
|
110
112
|
Entity({
|
|
111
|
-
name: "
|
|
113
|
+
name: "MenuSimple",
|
|
112
114
|
properties: [
|
|
113
115
|
{
|
|
114
116
|
name: "title",
|
|
115
117
|
type: PropertyType.string
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "sortOrder",
|
|
121
|
+
type: PropertyType.string,
|
|
122
|
+
nullable: true
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
features: {
|
|
126
|
+
tree: {
|
|
127
|
+
type: "adjacency-list",
|
|
128
|
+
hasChildren: false
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
repository: "TreeRepository",
|
|
132
|
+
namespace: "public",
|
|
133
|
+
relations: [],
|
|
134
|
+
indexes: [],
|
|
135
|
+
computedProperties: [],
|
|
136
|
+
extends: [
|
|
137
|
+
"TreeAdjacencyListEntityBase",
|
|
138
|
+
"EntityBase"
|
|
139
|
+
],
|
|
140
|
+
displayName: "MenuSimple"
|
|
141
|
+
})
|
|
142
|
+
],
|
|
143
|
+
MenuSimple
|
|
144
|
+
);
|
|
145
|
+
let MenuLarge = class extends TreeAdjacencyListEntityBase {};
|
|
146
|
+
MenuLarge = __decorateClass(
|
|
147
|
+
[
|
|
148
|
+
Entity({
|
|
149
|
+
name: "MenuLarge",
|
|
150
|
+
properties: [
|
|
151
|
+
{
|
|
152
|
+
name: "title",
|
|
153
|
+
type: PropertyType.string
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "sortOrder",
|
|
157
|
+
type: PropertyType.string,
|
|
158
|
+
nullable: true
|
|
116
159
|
}
|
|
117
160
|
],
|
|
161
|
+
features: {
|
|
162
|
+
tree: {
|
|
163
|
+
type: "adjacency-list",
|
|
164
|
+
hasChildren: true
|
|
165
|
+
}
|
|
166
|
+
},
|
|
118
167
|
repository: "TreeRepository",
|
|
119
168
|
namespace: "public",
|
|
120
169
|
relations: [],
|
|
121
170
|
indexes: [],
|
|
171
|
+
computedProperties: [],
|
|
172
|
+
extends: [
|
|
173
|
+
"TreeAdjacencyListEntityBase",
|
|
174
|
+
"EntityBase"
|
|
175
|
+
],
|
|
176
|
+
displayName: "MenuLarge"
|
|
177
|
+
})
|
|
178
|
+
],
|
|
179
|
+
MenuLarge
|
|
180
|
+
);
|
|
181
|
+
let FileNode = class extends TreeAdjacencyListEntityBase {};
|
|
182
|
+
FileNode = __decorateClass(
|
|
183
|
+
[
|
|
184
|
+
Entity({
|
|
185
|
+
name: "FileNode",
|
|
186
|
+
properties: [
|
|
187
|
+
{
|
|
188
|
+
name: "name",
|
|
189
|
+
type: PropertyType.string,
|
|
190
|
+
nullable: false
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "type",
|
|
194
|
+
type: PropertyType.string,
|
|
195
|
+
nullable: false
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "sortOrder",
|
|
199
|
+
type: PropertyType.string,
|
|
200
|
+
nullable: true
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "extension",
|
|
204
|
+
type: PropertyType.string,
|
|
205
|
+
nullable: true
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: "size",
|
|
209
|
+
type: PropertyType.number,
|
|
210
|
+
nullable: true
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
features: {
|
|
214
|
+
tree: {
|
|
215
|
+
type: "adjacency-list",
|
|
216
|
+
hasChildren: false
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
indexes: [
|
|
220
|
+
{
|
|
221
|
+
name: "parent_sort",
|
|
222
|
+
properties: [
|
|
223
|
+
"parentId",
|
|
224
|
+
"sortOrder"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "parent_fullname",
|
|
229
|
+
properties: [
|
|
230
|
+
"parentId",
|
|
231
|
+
"name",
|
|
232
|
+
"extension"
|
|
233
|
+
],
|
|
234
|
+
unique: true
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
repository: "TreeRepository",
|
|
238
|
+
namespace: "public",
|
|
239
|
+
relations: [],
|
|
240
|
+
computedProperties: [],
|
|
241
|
+
extends: [
|
|
242
|
+
"TreeAdjacencyListEntityBase",
|
|
243
|
+
"EntityBase"
|
|
244
|
+
],
|
|
245
|
+
displayName: "FileNode"
|
|
246
|
+
})
|
|
247
|
+
],
|
|
248
|
+
FileNode
|
|
249
|
+
);
|
|
250
|
+
let FileLarge = class extends TreeAdjacencyListEntityBase {};
|
|
251
|
+
FileLarge = __decorateClass(
|
|
252
|
+
[
|
|
253
|
+
Entity({
|
|
254
|
+
name: "FileLarge",
|
|
255
|
+
properties: [
|
|
256
|
+
{
|
|
257
|
+
name: "name",
|
|
258
|
+
type: PropertyType.string,
|
|
259
|
+
nullable: false
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: "type",
|
|
263
|
+
type: PropertyType.string,
|
|
264
|
+
nullable: false
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
name: "sortOrder",
|
|
268
|
+
type: PropertyType.string,
|
|
269
|
+
nullable: true
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: "extension",
|
|
273
|
+
type: PropertyType.string,
|
|
274
|
+
nullable: true
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: "size",
|
|
278
|
+
type: PropertyType.number,
|
|
279
|
+
nullable: true
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
features: {
|
|
283
|
+
tree: {
|
|
284
|
+
type: "adjacency-list",
|
|
285
|
+
hasChildren: true
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
indexes: [
|
|
289
|
+
{
|
|
290
|
+
name: "parent_sort",
|
|
291
|
+
properties: [
|
|
292
|
+
"parentId",
|
|
293
|
+
"sortOrder"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
name: "parent_fullname",
|
|
298
|
+
properties: [
|
|
299
|
+
"parentId",
|
|
300
|
+
"name",
|
|
301
|
+
"extension"
|
|
302
|
+
],
|
|
303
|
+
unique: true
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
repository: "TreeRepository",
|
|
307
|
+
namespace: "public",
|
|
308
|
+
relations: [],
|
|
309
|
+
computedProperties: [],
|
|
122
310
|
extends: [
|
|
123
311
|
"TreeAdjacencyListEntityBase",
|
|
124
312
|
"EntityBase"
|
|
125
313
|
],
|
|
126
|
-
displayName: "
|
|
314
|
+
displayName: "FileLarge"
|
|
127
315
|
})
|
|
128
316
|
],
|
|
129
|
-
|
|
317
|
+
FileLarge
|
|
130
318
|
);
|
|
131
|
-
const ENTITIES = [
|
|
132
|
-
export { ENTITIES,
|
|
319
|
+
const ENTITIES = [ FileLarge, FileNode, MenuLarge, MenuSimple, Todo, TypeDemo ];
|
|
320
|
+
export { ENTITIES, FileLarge, FileNode, MenuLarge, MenuSimple, Todo, TypeDemo };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EntityType, IEntity, ITreeEntity, RuleGroupBase, UUID } from '@aiao/rxdb';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* rxdb
|
|
6
|
+
*/
|
|
7
|
+
declare module "@aiao/rxdb" {
|
|
8
|
+
/**
|
|
9
|
+
* RxDB
|
|
10
|
+
*/
|
|
11
|
+
interface RxDB {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare const ENTITIES: EntityType[];
|
|
16
|
+
|