jazz-tools 0.7.1 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +15 -0
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +33 -33
- package/CHANGELOG.md +171 -165
- package/LICENSE.txt +1 -1
- package/dist/coValues/account.js +30 -3
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +29 -5
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +25 -1
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +49 -1
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/group.js +25 -1
- package/dist/coValues/group.js.map +1 -1
- package/dist/coValues/interfaces.js +32 -48
- package/dist/coValues/interfaces.js.map +1 -1
- package/dist/implementation/schema.js.map +1 -1
- package/dist/implementation/subscriptionScope.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tests/deepLoading.test.js +2 -2
- package/dist/tests/deepLoading.test.js.map +1 -1
- package/dist/tests/groupsAndAccounts.test.js +3 -3
- package/dist/tests/groupsAndAccounts.test.js.map +1 -1
- package/package.json +1 -1
- package/src/coValues/account.ts +82 -12
- package/src/coValues/coList.ts +78 -13
- package/src/coValues/coMap.ts +78 -7
- package/src/coValues/coStream.ts +128 -11
- package/src/coValues/group.ts +77 -4
- package/src/coValues/interfaces.ts +140 -211
- package/src/implementation/schema.ts +7 -4
- package/src/implementation/subscriptionScope.ts +3 -3
- package/src/index.ts +7 -0
- package/src/tests/deepLoading.test.ts +6 -3
- package/src/tests/groupsAndAccounts.test.ts +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,400 +1,406 @@
|
|
1
1
|
# jazz-autosub
|
2
2
|
|
3
|
+
## 0.7.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Clean up loading & subscription API
|
8
|
+
|
3
9
|
## 0.7.1
|
4
10
|
|
5
11
|
### Patch Changes
|
6
12
|
|
7
|
-
-
|
13
|
+
- Add runtime option for optional refs
|
8
14
|
|
9
15
|
## 0.7.0
|
10
16
|
|
11
17
|
### Minor Changes
|
12
18
|
|
13
|
-
-
|
14
|
-
|
15
|
-
### Patch Changes
|
16
|
-
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
-
|
45
|
-
-
|
46
|
-
-
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
|
81
|
-
|
19
|
+
- e299c3e: New simplified API
|
20
|
+
|
21
|
+
### Patch Changes
|
22
|
+
|
23
|
+
- 8636319: Fix infinite recursion in subscriptionScope
|
24
|
+
- 8636319: Fix type of init param for CoMap.create
|
25
|
+
- 1a35307: Implement first devtools formatters
|
26
|
+
- 96c494f: Implement profile visibility based on groups & new migration signature
|
27
|
+
- 59c18c3: CoMap fix
|
28
|
+
- 19f52b7: Fixed bug with newRandomSessionID being called before crypto was ready
|
29
|
+
- 8636319: Implement deep loading, simplify API
|
30
|
+
- 19004b4: Add .all to CoStreamEntry
|
31
|
+
- a78f168: Make Account -> Profile a lazy ref schema
|
32
|
+
- 52675c9: Fix CoList.splice / RawCoList.append
|
33
|
+
- 129e2c1: More precise imports from @effect/schema
|
34
|
+
- 1cfa279: More superclass-compatible CoMaps
|
35
|
+
- 704af7d: Add maxWidth option for loading images
|
36
|
+
- 460478f: Use effect 3.0
|
37
|
+
- 6b0418f: Fix image resolution loading
|
38
|
+
- ed5643a: Fix CoMap \_refs for co.items
|
39
|
+
- bde684f: CoValue casting & auto-subbing \_owner
|
40
|
+
- c4151fc: Support stricter TS lint rules
|
41
|
+
- 63374cc: Relax types of CoMap.\_schema
|
42
|
+
- 01ac646: Make CoMaps even more subclassable
|
43
|
+
- a5e68a4: Make refs type more precise
|
44
|
+
- 952982e: Consistent proxy based API
|
45
|
+
- 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
|
46
|
+
- 5fa277c: Fix CoMap.Record.toJSON()
|
47
|
+
- 60d5ca2: Introduce jazz-tools CLI
|
48
|
+
- 21771c4: Reintroduce changes from main
|
49
|
+
- 77c2b56: Get rid of self generics, new create syntax
|
50
|
+
- 63374cc: Fix schema of Account & Group
|
51
|
+
- d2e03ff: Fix variance of ID.\_\_type
|
52
|
+
- 354bdcd: Even friendlier for subclassing CoMap
|
53
|
+
- 60d5ca2: Clean up exports
|
54
|
+
- 69ac514: Use effect schema much less
|
55
|
+
- f8a5c46: Fix CoStream types
|
56
|
+
- f0f6f1b: Clean up API more & re-add jazz-nodejs
|
57
|
+
- e5eed5b: Make refs on list more precise
|
58
|
+
- 1a44f87: Refactoring
|
59
|
+
- 627d895: Get rid of Co namespace
|
60
|
+
- 1200aae: Cache CoValue proxies
|
61
|
+
- 63374cc: Make sure delete on CoMaps deletes keys
|
62
|
+
- ece35b3: Make fast-check a direct dependency to help dev time resolution
|
63
|
+
- 38d4410: CoMap fixes and improvements
|
64
|
+
- 85d2b62: More subclass-friendly types in CoMap
|
65
|
+
- fd86c11: Extract jazz cli into jazz-run package
|
66
|
+
- 52675c9: Fix Costream[...].all
|
67
|
+
- Updated dependencies [1a35307]
|
68
|
+
- Updated dependencies [96c494f]
|
69
|
+
- Updated dependencies [19f52b7]
|
70
|
+
- Updated dependencies [d8fe2b1]
|
71
|
+
- Updated dependencies [1200aae]
|
72
|
+
- Updated dependencies [52675c9]
|
73
|
+
- Updated dependencies [1a35307]
|
74
|
+
- Updated dependencies [e299c3e]
|
75
|
+
- Updated dependencies [bf0f8ec]
|
76
|
+
- Updated dependencies [c4151fc]
|
77
|
+
- Updated dependencies [8636319]
|
78
|
+
- Updated dependencies [952982e]
|
79
|
+
- Updated dependencies [21771c4]
|
80
|
+
- Updated dependencies [69ac514]
|
81
|
+
- Updated dependencies [f0f6f1b]
|
82
|
+
- Updated dependencies [1a44f87]
|
83
|
+
- Updated dependencies [627d895]
|
84
|
+
- Updated dependencies [63374cc]
|
85
|
+
- Updated dependencies [a423eee]
|
86
|
+
- cojson@0.7.0
|
87
|
+
- cojson-transport-nodejs-ws@0.7.0
|
82
88
|
|
83
89
|
## 0.7.0-alpha.42
|
84
90
|
|
85
91
|
### Patch Changes
|
86
92
|
|
87
|
-
-
|
88
|
-
-
|
89
|
-
|
90
|
-
|
93
|
+
- Fixed bug with newRandomSessionID being called before crypto was ready
|
94
|
+
- Updated dependencies
|
95
|
+
- cojson@0.7.0-alpha.42
|
96
|
+
- cojson-transport-nodejs-ws@0.7.0-alpha.42
|
91
97
|
|
92
98
|
## 0.7.0-alpha.41
|
93
99
|
|
94
100
|
### Patch Changes
|
95
101
|
|
96
|
-
-
|
97
|
-
|
102
|
+
- Updated dependencies
|
103
|
+
- cojson-transport-nodejs-ws@0.7.0-alpha.41
|
98
104
|
|
99
105
|
## 0.7.0-alpha.39
|
100
106
|
|
101
107
|
### Patch Changes
|
102
108
|
|
103
|
-
-
|
104
|
-
|
105
|
-
|
109
|
+
- Updated dependencies
|
110
|
+
- cojson@0.7.0-alpha.39
|
111
|
+
- cojson-transport-nodejs-ws@0.7.0-alpha.39
|
106
112
|
|
107
113
|
## 0.7.0-alpha.38
|
108
114
|
|
109
115
|
### Patch Changes
|
110
116
|
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
|
116
|
-
|
117
|
+
- Fix infinite recursion in subscriptionScope
|
118
|
+
- Fix type of init param for CoMap.create
|
119
|
+
- Implement deep loading, simplify API
|
120
|
+
- Updated dependencies
|
121
|
+
- cojson@0.7.0-alpha.38
|
122
|
+
- cojson-transport-nodejs-ws@0.7.0-alpha.38
|
117
123
|
|
118
124
|
## 0.7.0-alpha.37
|
119
125
|
|
120
126
|
### Patch Changes
|
121
127
|
|
122
|
-
-
|
123
|
-
|
124
|
-
|
128
|
+
- Updated dependencies
|
129
|
+
- cojson@0.7.0-alpha.37
|
130
|
+
- cojson-transport-nodejs-ws@0.7.0-alpha.37
|
125
131
|
|
126
132
|
## 0.7.0-alpha.36
|
127
133
|
|
128
134
|
### Patch Changes
|
129
135
|
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
|
136
|
-
|
136
|
+
- 1a35307: Implement first devtools formatters
|
137
|
+
- 6b0418f: Fix image resolution loading
|
138
|
+
- 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
|
139
|
+
- Updated dependencies [1a35307]
|
140
|
+
- Updated dependencies [1a35307]
|
141
|
+
- cojson@0.7.0-alpha.36
|
142
|
+
- cojson-transport-nodejs-ws@0.7.0-alpha.36
|
137
143
|
|
138
144
|
## 0.7.0-alpha.35
|
139
145
|
|
140
146
|
### Patch Changes
|
141
147
|
|
142
|
-
-
|
143
|
-
-
|
144
|
-
|
145
|
-
|
148
|
+
- Cache CoValue proxies
|
149
|
+
- Updated dependencies
|
150
|
+
- cojson@0.7.0-alpha.35
|
151
|
+
- cojson-transport-nodejs-ws@0.7.0-alpha.35
|
146
152
|
|
147
153
|
## 0.7.0-alpha.34
|
148
154
|
|
149
155
|
### Patch Changes
|
150
156
|
|
151
|
-
-
|
157
|
+
- Extract jazz cli into jazz-run package
|
152
158
|
|
153
159
|
## 0.7.0-alpha.32
|
154
160
|
|
155
161
|
### Patch Changes
|
156
162
|
|
157
|
-
-
|
158
|
-
-
|
163
|
+
- Introduce jazz-tools CLI
|
164
|
+
- Clean up exports
|
159
165
|
|
160
166
|
## 0.7.0-alpha.31
|
161
167
|
|
162
168
|
### Patch Changes
|
163
169
|
|
164
|
-
-
|
170
|
+
- Get rid of self generics, new create syntax
|
165
171
|
|
166
172
|
## 0.7.0-alpha.30
|
167
173
|
|
168
174
|
### Patch Changes
|
169
175
|
|
170
|
-
-
|
176
|
+
- CoValue casting & auto-subbing \_owner
|
171
177
|
|
172
178
|
## 0.7.0-alpha.29
|
173
179
|
|
174
180
|
### Patch Changes
|
175
181
|
|
176
|
-
-
|
177
|
-
-
|
178
|
-
|
182
|
+
- Reintroduce changes from main
|
183
|
+
- Updated dependencies
|
184
|
+
- cojson@0.7.0-alpha.29
|
179
185
|
|
180
186
|
## 0.7.0-alpha.28
|
181
187
|
|
182
188
|
### Patch Changes
|
183
189
|
|
184
|
-
-
|
185
|
-
-
|
186
|
-
|
190
|
+
- Implement profile visibility based on groups & new migration signature
|
191
|
+
- Updated dependencies
|
192
|
+
- cojson@0.7.0-alpha.28
|
187
193
|
|
188
194
|
## 0.7.0-alpha.27
|
189
195
|
|
190
196
|
### Patch Changes
|
191
197
|
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
195
|
-
|
198
|
+
- Fix CoList.splice / RawCoList.append
|
199
|
+
- Fix Costream[...].all
|
200
|
+
- Updated dependencies
|
201
|
+
- cojson@0.7.0-alpha.27
|
196
202
|
|
197
203
|
## 0.7.0-alpha.26
|
198
204
|
|
199
205
|
### Patch Changes
|
200
206
|
|
201
|
-
-
|
207
|
+
- Fix CoMap.Record.toJSON()
|
202
208
|
|
203
209
|
## 0.7.0-alpha.25
|
204
210
|
|
205
211
|
### Patch Changes
|
206
212
|
|
207
|
-
-
|
213
|
+
- Make Account -> Profile a lazy ref schema
|
208
214
|
|
209
215
|
## 0.7.0-alpha.24
|
210
216
|
|
211
217
|
### Patch Changes
|
212
218
|
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
216
|
-
-
|
217
|
-
|
219
|
+
- Relax types of CoMap.\_schema
|
220
|
+
- Fix schema of Account & Group
|
221
|
+
- Make sure delete on CoMaps deletes keys
|
222
|
+
- Updated dependencies
|
223
|
+
- cojson@0.7.0-alpha.24
|
218
224
|
|
219
225
|
## 0.7.0-alpha.23
|
220
226
|
|
221
227
|
### Patch Changes
|
222
228
|
|
223
|
-
-
|
229
|
+
- CoMap fixes and improvements
|
224
230
|
|
225
231
|
## 0.7.0-alpha.22
|
226
232
|
|
227
233
|
### Patch Changes
|
228
234
|
|
229
|
-
-
|
235
|
+
- Fix CoMap \_refs for co.items
|
230
236
|
|
231
237
|
## 0.7.0-alpha.21
|
232
238
|
|
233
239
|
### Patch Changes
|
234
240
|
|
235
|
-
-
|
241
|
+
- Add maxWidth option for loading images
|
236
242
|
|
237
243
|
## 0.7.0-alpha.20
|
238
244
|
|
239
245
|
### Patch Changes
|
240
246
|
|
241
|
-
-
|
247
|
+
- Make fast-check a direct dependency to help dev time resolution
|
242
248
|
|
243
249
|
## 0.7.0-alpha.19
|
244
250
|
|
245
251
|
### Patch Changes
|
246
252
|
|
247
|
-
-
|
253
|
+
- More precise imports from @effect/schema
|
248
254
|
|
249
255
|
## 0.7.0-alpha.17
|
250
256
|
|
251
257
|
### Patch Changes
|
252
258
|
|
253
|
-
-
|
259
|
+
- Use effect 3.0
|
254
260
|
|
255
261
|
## 0.7.0-alpha.16
|
256
262
|
|
257
263
|
### Patch Changes
|
258
264
|
|
259
|
-
-
|
265
|
+
- Make CoMaps even more subclassable
|
260
266
|
|
261
267
|
## 0.7.0-alpha.15
|
262
268
|
|
263
269
|
### Patch Changes
|
264
270
|
|
265
|
-
-
|
271
|
+
- More superclass-compatible CoMaps
|
266
272
|
|
267
273
|
## 0.7.0-alpha.14
|
268
274
|
|
269
275
|
### Patch Changes
|
270
276
|
|
271
|
-
-
|
277
|
+
- Fix CoStream types
|
272
278
|
|
273
279
|
## 0.7.0-alpha.13
|
274
280
|
|
275
281
|
### Patch Changes
|
276
282
|
|
277
|
-
-
|
283
|
+
- Add .all to CoStreamEntry
|
278
284
|
|
279
285
|
## 0.7.0-alpha.12
|
280
286
|
|
281
287
|
### Patch Changes
|
282
288
|
|
283
|
-
-
|
289
|
+
- Fix variance of ID.\_\_type
|
284
290
|
|
285
291
|
## 0.7.0-alpha.11
|
286
292
|
|
287
293
|
### Patch Changes
|
288
294
|
|
289
|
-
-
|
290
|
-
-
|
291
|
-
|
295
|
+
- Support stricter TS lint rules
|
296
|
+
- Updated dependencies
|
297
|
+
- cojson@0.7.0-alpha.11
|
292
298
|
|
293
299
|
## 0.7.0-alpha.10
|
294
300
|
|
295
301
|
### Patch Changes
|
296
302
|
|
297
|
-
-
|
298
|
-
-
|
299
|
-
|
303
|
+
- Clean up API more & re-add jazz-nodejs
|
304
|
+
- Updated dependencies
|
305
|
+
- cojson@0.7.0-alpha.10
|
300
306
|
|
301
307
|
## 0.7.0-alpha.9
|
302
308
|
|
303
309
|
### Patch Changes
|
304
310
|
|
305
|
-
-
|
311
|
+
- Even friendlier for subclassing CoMap
|
306
312
|
|
307
313
|
## 0.7.0-alpha.8
|
308
314
|
|
309
315
|
### Patch Changes
|
310
316
|
|
311
|
-
-
|
317
|
+
- More subclass-friendly types in CoMap
|
312
318
|
|
313
319
|
## 0.7.0-alpha.7
|
314
320
|
|
315
321
|
### Patch Changes
|
316
322
|
|
317
|
-
-
|
318
|
-
-
|
319
|
-
|
323
|
+
- Consistent proxy based API
|
324
|
+
- Updated dependencies
|
325
|
+
- cojson@0.7.0-alpha.7
|
320
326
|
|
321
327
|
## 0.7.0-alpha.6
|
322
328
|
|
323
329
|
### Patch Changes
|
324
330
|
|
325
|
-
-
|
331
|
+
- CoMap fix
|
326
332
|
|
327
333
|
## 0.7.0-alpha.5
|
328
334
|
|
329
335
|
### Patch Changes
|
330
336
|
|
331
|
-
-
|
332
|
-
-
|
333
|
-
|
337
|
+
- Refactoring
|
338
|
+
- Updated dependencies
|
339
|
+
- cojson@0.7.0-alpha.5
|
334
340
|
|
335
341
|
## 0.7.0-alpha.4
|
336
342
|
|
337
343
|
### Patch Changes
|
338
344
|
|
339
|
-
-
|
345
|
+
- Make refs on list more precise
|
340
346
|
|
341
347
|
## 0.7.0-alpha.3
|
342
348
|
|
343
349
|
### Patch Changes
|
344
350
|
|
345
|
-
-
|
351
|
+
- Make refs type more precise
|
346
352
|
|
347
353
|
## 0.7.0-alpha.2
|
348
354
|
|
349
355
|
### Patch Changes
|
350
356
|
|
351
|
-
-
|
357
|
+
- Get rid of Co namespace
|
352
358
|
|
353
359
|
## 0.7.0-alpha.1
|
354
360
|
|
355
361
|
### Patch Changes
|
356
362
|
|
357
|
-
-
|
358
|
-
-
|
359
|
-
|
363
|
+
- Use effect schema much less
|
364
|
+
- Updated dependencies
|
365
|
+
- cojson@0.7.0-alpha.1
|
360
366
|
|
361
367
|
## 0.7.0-alpha.0
|
362
368
|
|
363
369
|
### Minor Changes
|
364
370
|
|
365
|
-
-
|
371
|
+
- New simplified API
|
366
372
|
|
367
373
|
### Patch Changes
|
368
374
|
|
369
|
-
-
|
370
|
-
|
375
|
+
- Updated dependencies
|
376
|
+
- cojson@0.7.0-alpha.0
|
371
377
|
|
372
378
|
## 0.6.1
|
373
379
|
|
374
380
|
### Patch Changes
|
375
381
|
|
376
|
-
-
|
377
|
-
-
|
378
|
-
|
382
|
+
- Fix loading of accounts
|
383
|
+
- Updated dependencies
|
384
|
+
- cojson@0.6.5
|
379
385
|
|
380
386
|
## 0.6.0
|
381
387
|
|
382
388
|
### Minor Changes
|
383
389
|
|
384
|
-
-
|
390
|
+
- Make addMember and removeMember take loaded Accounts instead of just IDs
|
385
391
|
|
386
392
|
### Patch Changes
|
387
393
|
|
388
|
-
-
|
389
|
-
|
394
|
+
- Updated dependencies
|
395
|
+
- cojson@0.6.0
|
390
396
|
|
391
397
|
## 0.5.0
|
392
398
|
|
393
399
|
### Minor Changes
|
394
400
|
|
395
|
-
-
|
401
|
+
- Adding a lot of performance improvements to cojson, add a stresstest for the twit example and make that run smoother in a lot of ways.
|
396
402
|
|
397
403
|
### Patch Changes
|
398
404
|
|
399
|
-
-
|
400
|
-
|
405
|
+
- Updated dependencies
|
406
|
+
- cojson@0.5.0
|
package/LICENSE.txt
CHANGED
package/dist/coValues/account.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
var _a;
|
2
2
|
import { LocalNode } from "cojson";
|
3
3
|
import { Context } from "effect";
|
4
|
-
import { Group, CoValueBase, MembersSym, Profile, Ref, SchemaInit, inspect, subscriptionsScopes, } from "../internal.js";
|
4
|
+
import { Group, CoValueBase, MembersSym, Profile, Ref, SchemaInit, inspect, subscriptionsScopes, loadCoValue, loadCoValueEf, subscribeToCoValue, subscribeToCoValueEf, ensureCoValueLoaded, subscribeToExistingCoValue, } from "../internal.js";
|
5
5
|
/** @category Identity & Permissions */
|
6
6
|
export class Account extends CoValueBase {
|
7
7
|
get _schema() {
|
@@ -52,7 +52,7 @@ export class Account extends CoValueBase {
|
|
52
52
|
throw new Error("Only a controlled account can accept invites");
|
53
53
|
}
|
54
54
|
await this._raw.acceptInvite(valueID, inviteSecret);
|
55
|
-
return coValueClass
|
55
|
+
return loadCoValue(coValueClass, valueID, this, []);
|
56
56
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
57
57
|
}
|
58
58
|
static async create(options) {
|
@@ -105,11 +105,38 @@ export class Account extends CoValueBase {
|
|
105
105
|
this.profile = Profile.create({ name: creationProps.name }, { owner: profileGroup });
|
106
106
|
}
|
107
107
|
}
|
108
|
+
/** @category Subscription & Loading */
|
109
|
+
static load(id, as, depth) {
|
110
|
+
return loadCoValue(this, id, as, depth);
|
111
|
+
}
|
112
|
+
/** @category Subscription & Loading */
|
113
|
+
static loadEf(id, depth) {
|
114
|
+
return loadCoValueEf(this, id, depth);
|
115
|
+
}
|
116
|
+
/** @category Subscription & Loading */
|
117
|
+
static subscribe(id, as, depth, listener) {
|
118
|
+
return subscribeToCoValue(this, id, as, depth, listener);
|
119
|
+
}
|
120
|
+
/** @category Subscription & Loading */
|
121
|
+
static subscribeEf(id, depth) {
|
122
|
+
return subscribeToCoValueEf(this, id, depth);
|
123
|
+
}
|
124
|
+
/** @category Subscription & Loading */
|
125
|
+
ensureLoaded(depth) {
|
126
|
+
return ensureCoValueLoaded(this, depth);
|
127
|
+
}
|
128
|
+
/** @category Subscription & Loading */
|
129
|
+
subscribe(depth, listener) {
|
130
|
+
return subscribeToExistingCoValue(this, depth, listener);
|
131
|
+
}
|
108
132
|
}
|
109
133
|
_a = Account;
|
110
134
|
(() => {
|
111
135
|
_a._schema = {
|
112
|
-
profile: {
|
136
|
+
profile: {
|
137
|
+
ref: () => Profile,
|
138
|
+
optional: false,
|
139
|
+
},
|
113
140
|
root: "json",
|
114
141
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
115
142
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAanC,OAAO,EAAE,OAAO,
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAanC,OAAO,EAAE,OAAO,EAAkB,MAAM,QAAQ,CAAC;AAajD,OAAO,EACH,KAAK,EACL,WAAW,EACX,UAAU,EACV,OAAO,EACP,GAAG,EACH,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,mBAAm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