@ng-org/orm 0.1.2-alpha.15 → 0.1.2-alpha.16

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 (37) hide show
  1. package/dist/connector/{discrete/discreteOrmSubscriptionHandler.d.ts → DiscreteOrmSubscription.d.ts} +3 -3
  2. package/dist/connector/DiscreteOrmSubscription.d.ts.map +1 -0
  3. package/dist/connector/{discrete/discreteOrmSubscriptionHandler.js → DiscreteOrmSubscription.js} +2 -2
  4. package/dist/connector/{ormSubscriptionHandler.d.ts → GraphOrmSubscription.d.ts} +1 -1
  5. package/dist/connector/GraphOrmSubscription.d.ts.map +1 -0
  6. package/dist/connector/{ormSubscriptionHandler.js → GraphOrmSubscription.js} +6 -6
  7. package/dist/connector/getObjects.js +1 -1
  8. package/dist/connector/insertObject.js +1 -1
  9. package/dist/core.d.ts +2 -2
  10. package/dist/core.d.ts.map +1 -1
  11. package/dist/core.js +2 -2
  12. package/dist/frontendAdapters/react/useDiscrete.js +1 -1
  13. package/dist/frontendAdapters/react/useShape.js +1 -1
  14. package/dist/frontendAdapters/svelte/useDiscrete.svelte.js +1 -1
  15. package/dist/frontendAdapters/svelte/useShape.svelte.js +1 -1
  16. package/dist/frontendAdapters/svelte4/useDiscrete.svelte.js +1 -1
  17. package/dist/frontendAdapters/svelte4/useShape.svelte.js +1 -1
  18. package/dist/frontendAdapters/vue/useDiscrete.js +1 -1
  19. package/dist/frontendAdapters/vue/useShape.js +1 -1
  20. package/dist/tests/shapes/orm/testShape.schema.d.ts +211 -0
  21. package/dist/tests/shapes/orm/testShape.schema.d.ts.map +1 -0
  22. package/dist/tests/shapes/orm/testShape.schema.js +279 -0
  23. package/dist/tests/shapes/orm/testShape.shapeTypes.d.ts +1041 -0
  24. package/dist/tests/shapes/orm/testShape.shapeTypes.d.ts.map +1 -0
  25. package/dist/tests/shapes/orm/testShape.shapeTypes.js +22 -0
  26. package/dist/tests/shapes/orm/testShape.typings.d.ts +190 -0
  27. package/dist/tests/shapes/orm/testShape.typings.d.ts.map +1 -0
  28. package/dist/tests/shapes/orm/testShape.typings.js +1 -0
  29. package/dist/types.d.ts +4 -3
  30. package/dist/types.d.ts.map +1 -1
  31. package/dist/types.js +3 -1
  32. package/dist/utilTypes.d.ts +2 -0
  33. package/dist/utilTypes.d.ts.map +1 -0
  34. package/dist/utilTypes.js +39 -0
  35. package/package.json +5 -4
  36. package/dist/connector/discrete/discreteOrmSubscriptionHandler.d.ts.map +0 -1
  37. package/dist/connector/ormSubscriptionHandler.d.ts.map +0 -1
@@ -0,0 +1,279 @@
1
+ /**
2
+ * =============================================================================
3
+ * testShapeSchema: Schema for testShape
4
+ * =============================================================================
5
+ */
6
+ export const testShapeSchema = {
7
+ "did:ng:z:RootShape": {
8
+ iri: "did:ng:z:RootShape",
9
+ predicates: [
10
+ {
11
+ dataTypes: [
12
+ {
13
+ valType: "iri",
14
+ literals: ["did:ng:z:Root"],
15
+ },
16
+ ],
17
+ maxCardinality: 1,
18
+ minCardinality: 1,
19
+ iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
20
+ readablePredicate: "@type",
21
+ },
22
+ {
23
+ dataTypes: [
24
+ {
25
+ valType: "string",
26
+ },
27
+ ],
28
+ maxCardinality: 1,
29
+ minCardinality: 1,
30
+ iri: "did:ng:z:aString",
31
+ readablePredicate: "aString",
32
+ },
33
+ {
34
+ dataTypes: [
35
+ {
36
+ valType: "number",
37
+ },
38
+ ],
39
+ maxCardinality: 1,
40
+ minCardinality: 1,
41
+ iri: "did:ng:z:anInteger",
42
+ readablePredicate: "anInteger",
43
+ },
44
+ {
45
+ dataTypes: [
46
+ {
47
+ valType: "string",
48
+ },
49
+ ],
50
+ maxCardinality: 1,
51
+ minCardinality: 1,
52
+ iri: "did:ng:z:aDate",
53
+ readablePredicate: "aDate",
54
+ },
55
+ {
56
+ dataTypes: [
57
+ {
58
+ valType: "boolean",
59
+ },
60
+ ],
61
+ maxCardinality: 1,
62
+ minCardinality: 1,
63
+ iri: "did:ng:z:aBoolean",
64
+ readablePredicate: "aBoolean",
65
+ },
66
+ {
67
+ dataTypes: [
68
+ {
69
+ valType: "boolean",
70
+ },
71
+ {
72
+ valType: "string",
73
+ },
74
+ ],
75
+ maxCardinality: 1,
76
+ minCardinality: 1,
77
+ iri: "did:ng:z:aStringOrBoolean",
78
+ readablePredicate: "aStringOrBoolean",
79
+ },
80
+ {
81
+ dataTypes: [
82
+ {
83
+ valType: "shape",
84
+ shape: "did:ng:z:ChildShape1",
85
+ },
86
+ {
87
+ valType: "shape",
88
+ shape: "did:ng:z:ChildShape2",
89
+ },
90
+ ],
91
+ maxCardinality: -1,
92
+ minCardinality: 0,
93
+ iri: "did:ng:z:children1Or2",
94
+ readablePredicate: "children1Or2",
95
+ },
96
+ {
97
+ dataTypes: [
98
+ {
99
+ valType: "shape",
100
+ shape: "did:ng:z:ChildShape3",
101
+ },
102
+ ],
103
+ maxCardinality: 1,
104
+ minCardinality: 1,
105
+ iri: "did:ng:z:child3",
106
+ readablePredicate: "child3",
107
+ },
108
+ ],
109
+ },
110
+ "did:ng:z:ChildShape1": {
111
+ iri: "did:ng:z:ChildShape1",
112
+ predicates: [
113
+ {
114
+ dataTypes: [
115
+ {
116
+ valType: "iri",
117
+ literals: ["did:ng:z:MiruVideoEffectAsset"],
118
+ },
119
+ ],
120
+ maxCardinality: 1,
121
+ minCardinality: 1,
122
+ iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
123
+ readablePredicate: "@type",
124
+ extra: true,
125
+ },
126
+ {
127
+ dataTypes: [
128
+ {
129
+ valType: "string",
130
+ },
131
+ ],
132
+ maxCardinality: 1,
133
+ minCardinality: 1,
134
+ iri: "did:ng:z:childString",
135
+ readablePredicate: "childString",
136
+ },
137
+ {
138
+ dataTypes: [
139
+ {
140
+ valType: "boolean",
141
+ },
142
+ ],
143
+ maxCardinality: 1,
144
+ minCardinality: 1,
145
+ iri: "did:ng:z:childBoolean",
146
+ readablePredicate: "childBoolean",
147
+ },
148
+ ],
149
+ },
150
+ "did:ng:z:ChildShape2": {
151
+ iri: "did:ng:z:ChildShape2",
152
+ predicates: [
153
+ {
154
+ dataTypes: [
155
+ {
156
+ valType: "iri",
157
+ literals: ["did:ng:z:Child"],
158
+ },
159
+ {
160
+ valType: "iri",
161
+ literals: ["did:ng:z:Child2"],
162
+ },
163
+ ],
164
+ maxCardinality: 1,
165
+ minCardinality: 1,
166
+ iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
167
+ readablePredicate: "@type",
168
+ extra: true,
169
+ },
170
+ {
171
+ dataTypes: [
172
+ {
173
+ valType: "string",
174
+ },
175
+ ],
176
+ maxCardinality: 1,
177
+ minCardinality: 1,
178
+ iri: "did:ng:z:childString",
179
+ readablePredicate: "childString",
180
+ },
181
+ {
182
+ dataTypes: [
183
+ {
184
+ valType: "number",
185
+ },
186
+ ],
187
+ maxCardinality: 1,
188
+ minCardinality: 1,
189
+ iri: "did:ng:z:childNumber:",
190
+ readablePredicate: "childNumber",
191
+ },
192
+ {
193
+ dataTypes: [
194
+ {
195
+ valType: "shape",
196
+ shape: "did:ng:z:ChildChildShape",
197
+ },
198
+ ],
199
+ maxCardinality: 1,
200
+ minCardinality: 1,
201
+ iri: "did:ng:z:childChild",
202
+ readablePredicate: "childChild",
203
+ },
204
+ ],
205
+ },
206
+ "did:ng:z:ChildShape3": {
207
+ iri: "did:ng:z:ChildShape3",
208
+ predicates: [
209
+ {
210
+ dataTypes: [
211
+ {
212
+ valType: "iri",
213
+ literals: ["did:ng:z:Child2"],
214
+ },
215
+ {
216
+ valType: "iri",
217
+ literals: ["did:ng:z:Child"],
218
+ },
219
+ ],
220
+ maxCardinality: 1,
221
+ minCardinality: 1,
222
+ iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
223
+ readablePredicate: "@type",
224
+ },
225
+ {
226
+ dataTypes: [
227
+ {
228
+ valType: "boolean",
229
+ },
230
+ ],
231
+ maxCardinality: 1,
232
+ minCardinality: 1,
233
+ iri: "did:ng:z:childBoolean:",
234
+ readablePredicate: "childBoolean",
235
+ },
236
+ {
237
+ dataTypes: [
238
+ {
239
+ valType: "shape",
240
+ shape: "did:ng:z:ChildChildShape",
241
+ },
242
+ ],
243
+ maxCardinality: 1,
244
+ minCardinality: 1,
245
+ iri: "did:ng:z:childChild",
246
+ readablePredicate: "childChild",
247
+ },
248
+ ],
249
+ },
250
+ "did:ng:z:ChildChildShape": {
251
+ iri: "did:ng:z:ChildChildShape",
252
+ predicates: [
253
+ {
254
+ dataTypes: [
255
+ {
256
+ valType: "iri",
257
+ literals: ["did:ng:z:ChildChild"],
258
+ },
259
+ ],
260
+ maxCardinality: 1,
261
+ minCardinality: 1,
262
+ iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
263
+ readablePredicate: "@type",
264
+ extra: true,
265
+ },
266
+ {
267
+ dataTypes: [
268
+ {
269
+ valType: "number",
270
+ },
271
+ ],
272
+ maxCardinality: 1,
273
+ minCardinality: 1,
274
+ iri: "did:ng:z:childChildNum",
275
+ readablePredicate: "childChildNum",
276
+ },
277
+ ],
278
+ },
279
+ };