@genesislcap/foundation-utils 14.114.2-alpha-a278302.0 → 14.114.2

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.
@@ -145,53 +145,198 @@
145
145
  },
146
146
  {
147
147
  "kind": "javascript-module",
148
- "path": "src/decorators/index.ts",
149
- "declarations": [],
150
- "exports": [
151
- {
152
- "kind": "js",
153
- "name": "*",
154
- "declaration": {
155
- "name": "*",
156
- "package": "./renderOnChange"
157
- }
158
- }
159
- ]
160
- },
161
- {
162
- "kind": "javascript-module",
163
- "path": "src/decorators/renderOnChange.ts",
148
+ "path": "src/data/inMemoryDatabase.ts",
164
149
  "declarations": [
165
150
  {
166
- "kind": "function",
167
- "name": "renderOnChange",
168
- "parameters": [
151
+ "kind": "class",
152
+ "description": "An in memory database of specific DatabaseRecord types.",
153
+ "name": "InMemoryDatabase",
154
+ "members": [
169
155
  {
170
- "name": "target",
156
+ "kind": "field",
157
+ "name": "isWorking",
171
158
  "type": {
172
- "text": "FASTElement & { render(): void }"
159
+ "text": "boolean"
173
160
  },
174
- "description": "The target to define the property change handler on."
161
+ "privacy": "public",
162
+ "default": "false"
175
163
  },
176
164
  {
177
- "name": "name",
165
+ "kind": "field",
166
+ "name": "records",
178
167
  "type": {
179
- "text": "string"
168
+ "text": "Record<string, T>"
180
169
  },
181
- "description": "The property name."
170
+ "privacy": "private",
171
+ "default": "{}"
172
+ },
173
+ {
174
+ "kind": "field",
175
+ "name": "beforeUpdateListeners",
176
+ "privacy": "private"
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "afterUpdateListeners",
181
+ "privacy": "private"
182
+ },
183
+ {
184
+ "kind": "method",
185
+ "name": "create",
186
+ "privacy": "public",
187
+ "return": {
188
+ "type": {
189
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
190
+ }
191
+ },
192
+ "parameters": [
193
+ {
194
+ "name": "newValue",
195
+ "type": {
196
+ "text": "Omit<T, 'id'>"
197
+ }
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "kind": "method",
203
+ "name": "read",
204
+ "privacy": "public",
205
+ "return": {
206
+ "type": {
207
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
208
+ }
209
+ },
210
+ "parameters": [
211
+ {
212
+ "name": "id",
213
+ "type": {
214
+ "text": "string"
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "kind": "method",
221
+ "name": "update",
222
+ "privacy": "public",
223
+ "return": {
224
+ "type": {
225
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
226
+ }
227
+ },
228
+ "parameters": [
229
+ {
230
+ "name": "id",
231
+ "type": {
232
+ "text": "string"
233
+ }
234
+ },
235
+ {
236
+ "name": "newValue",
237
+ "type": {
238
+ "text": "Omit<Partial<T>, 'id'>"
239
+ }
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "kind": "method",
245
+ "name": "delete",
246
+ "privacy": "public",
247
+ "return": {
248
+ "type": {
249
+ "text": "Promise<DatabaseAccessResult.Delete>"
250
+ }
251
+ },
252
+ "parameters": [
253
+ {
254
+ "name": "id",
255
+ "type": {
256
+ "text": "string"
257
+ }
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "kind": "method",
263
+ "name": "visit",
264
+ "privacy": "public",
265
+ "return": {
266
+ "type": {
267
+ "text": "Promise<void>"
268
+ }
269
+ },
270
+ "parameters": [
271
+ {
272
+ "name": "visitor",
273
+ "type": {
274
+ "text": "(record: T) => void"
275
+ }
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "kind": "method",
281
+ "name": "onBeforeUpdate",
282
+ "privacy": "public",
283
+ "return": {
284
+ "type": {
285
+ "text": "() => void"
286
+ }
287
+ },
288
+ "parameters": [
289
+ {
290
+ "name": "listener",
291
+ "type": {
292
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
293
+ }
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "kind": "method",
299
+ "name": "onAfterUpdate",
300
+ "privacy": "public",
301
+ "return": {
302
+ "type": {
303
+ "text": "() => void"
304
+ }
305
+ },
306
+ "parameters": [
307
+ {
308
+ "name": "listener",
309
+ "type": {
310
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
311
+ }
312
+ }
313
+ ]
182
314
  }
183
- ],
184
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
185
- "privacy": "public"
315
+ ]
186
316
  }
187
317
  ],
188
318
  "exports": [
189
319
  {
190
320
  "kind": "js",
191
- "name": "renderOnChange",
321
+ "name": "InMemoryDatabase",
192
322
  "declaration": {
193
- "name": "renderOnChange",
194
- "module": "src/decorators/renderOnChange.ts"
323
+ "name": "InMemoryDatabase",
324
+ "module": "src/data/inMemoryDatabase.ts"
325
+ }
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "kind": "javascript-module",
331
+ "path": "src/data/index.ts",
332
+ "declarations": [],
333
+ "exports": [
334
+ {
335
+ "kind": "js",
336
+ "name": "*",
337
+ "declaration": {
338
+ "name": "*",
339
+ "package": "./inMemoryDatabase"
195
340
  }
196
341
  }
197
342
  ]
@@ -245,6 +390,59 @@
245
390
  }
246
391
  ]
247
392
  },
393
+ {
394
+ "kind": "javascript-module",
395
+ "path": "src/decorators/index.ts",
396
+ "declarations": [],
397
+ "exports": [
398
+ {
399
+ "kind": "js",
400
+ "name": "*",
401
+ "declaration": {
402
+ "name": "*",
403
+ "package": "./renderOnChange"
404
+ }
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "kind": "javascript-module",
410
+ "path": "src/decorators/renderOnChange.ts",
411
+ "declarations": [
412
+ {
413
+ "kind": "function",
414
+ "name": "renderOnChange",
415
+ "parameters": [
416
+ {
417
+ "name": "target",
418
+ "type": {
419
+ "text": "FASTElement & { render(): void }"
420
+ },
421
+ "description": "The target to define the property change handler on."
422
+ },
423
+ {
424
+ "name": "name",
425
+ "type": {
426
+ "text": "string"
427
+ },
428
+ "description": "The property name."
429
+ }
430
+ ],
431
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
432
+ "privacy": "public"
433
+ }
434
+ ],
435
+ "exports": [
436
+ {
437
+ "kind": "js",
438
+ "name": "renderOnChange",
439
+ "declaration": {
440
+ "name": "renderOnChange",
441
+ "module": "src/decorators/renderOnChange.ts"
442
+ }
443
+ }
444
+ ]
445
+ },
248
446
  {
249
447
  "kind": "javascript-module",
250
448
  "path": "src/directives/index.ts",
@@ -491,204 +689,6 @@
491
689
  }
492
690
  ]
493
691
  },
494
- {
495
- "kind": "javascript-module",
496
- "path": "src/data/inMemoryDatabase.ts",
497
- "declarations": [
498
- {
499
- "kind": "class",
500
- "description": "An in memory database of specific DatabaseRecord types.",
501
- "name": "InMemoryDatabase",
502
- "members": [
503
- {
504
- "kind": "field",
505
- "name": "isWorking",
506
- "type": {
507
- "text": "boolean"
508
- },
509
- "privacy": "public",
510
- "default": "false"
511
- },
512
- {
513
- "kind": "field",
514
- "name": "records",
515
- "type": {
516
- "text": "Record<string, T>"
517
- },
518
- "privacy": "private",
519
- "default": "{}"
520
- },
521
- {
522
- "kind": "field",
523
- "name": "beforeUpdateListeners",
524
- "privacy": "private"
525
- },
526
- {
527
- "kind": "field",
528
- "name": "afterUpdateListeners",
529
- "privacy": "private"
530
- },
531
- {
532
- "kind": "method",
533
- "name": "create",
534
- "privacy": "public",
535
- "return": {
536
- "type": {
537
- "text": "Promise<DatabaseAccessResult.Create<T>>"
538
- }
539
- },
540
- "parameters": [
541
- {
542
- "name": "newValue",
543
- "type": {
544
- "text": "Omit<T, 'id'>"
545
- }
546
- }
547
- ]
548
- },
549
- {
550
- "kind": "method",
551
- "name": "read",
552
- "privacy": "public",
553
- "return": {
554
- "type": {
555
- "text": "Promise<DatabaseAccessResult.Read<T>>"
556
- }
557
- },
558
- "parameters": [
559
- {
560
- "name": "id",
561
- "type": {
562
- "text": "string"
563
- }
564
- }
565
- ]
566
- },
567
- {
568
- "kind": "method",
569
- "name": "update",
570
- "privacy": "public",
571
- "return": {
572
- "type": {
573
- "text": "Promise<DatabaseAccessResult.Update<T>>"
574
- }
575
- },
576
- "parameters": [
577
- {
578
- "name": "id",
579
- "type": {
580
- "text": "string"
581
- }
582
- },
583
- {
584
- "name": "newValue",
585
- "type": {
586
- "text": "Omit<Partial<T>, 'id'>"
587
- }
588
- }
589
- ]
590
- },
591
- {
592
- "kind": "method",
593
- "name": "delete",
594
- "privacy": "public",
595
- "return": {
596
- "type": {
597
- "text": "Promise<DatabaseAccessResult.Delete>"
598
- }
599
- },
600
- "parameters": [
601
- {
602
- "name": "id",
603
- "type": {
604
- "text": "string"
605
- }
606
- }
607
- ]
608
- },
609
- {
610
- "kind": "method",
611
- "name": "visit",
612
- "privacy": "public",
613
- "return": {
614
- "type": {
615
- "text": "Promise<void>"
616
- }
617
- },
618
- "parameters": [
619
- {
620
- "name": "visitor",
621
- "type": {
622
- "text": "(record: T) => void"
623
- }
624
- }
625
- ]
626
- },
627
- {
628
- "kind": "method",
629
- "name": "onBeforeUpdate",
630
- "privacy": "public",
631
- "return": {
632
- "type": {
633
- "text": "() => void"
634
- }
635
- },
636
- "parameters": [
637
- {
638
- "name": "listener",
639
- "type": {
640
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
641
- }
642
- }
643
- ]
644
- },
645
- {
646
- "kind": "method",
647
- "name": "onAfterUpdate",
648
- "privacy": "public",
649
- "return": {
650
- "type": {
651
- "text": "() => void"
652
- }
653
- },
654
- "parameters": [
655
- {
656
- "name": "listener",
657
- "type": {
658
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
659
- }
660
- }
661
- ]
662
- }
663
- ]
664
- }
665
- ],
666
- "exports": [
667
- {
668
- "kind": "js",
669
- "name": "InMemoryDatabase",
670
- "declaration": {
671
- "name": "InMemoryDatabase",
672
- "module": "src/data/inMemoryDatabase.ts"
673
- }
674
- }
675
- ]
676
- },
677
- {
678
- "kind": "javascript-module",
679
- "path": "src/data/index.ts",
680
- "declarations": [],
681
- "exports": [
682
- {
683
- "kind": "js",
684
- "name": "*",
685
- "declaration": {
686
- "name": "*",
687
- "package": "./inMemoryDatabase"
688
- }
689
- }
690
- ]
691
- },
692
692
  {
693
693
  "kind": "javascript-module",
694
694
  "path": "src/error/errorMap.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.114.2-alpha-a278302.0",
4
+ "version": "14.114.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.114.2-alpha-a278302.0",
23
- "@genesislcap/genx": "14.114.2-alpha-a278302.0",
22
+ "@genesislcap/foundation-testing": "14.114.2",
23
+ "@genesislcap/genx": "14.114.2",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.114.2-alpha-a278302.0",
27
+ "@genesislcap/foundation-logger": "14.114.2",
28
28
  "@microsoft/fast-components": "^2.21.3",
29
29
  "@microsoft/fast-element": "^1.7.0",
30
30
  "@microsoft/fast-foundation": "^2.33.2",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "38e827c3dd919626c745411ee2f1c883a1334767"
45
+ "gitHead": "02163870a122149dde27eefaec7554e06362e3a1"
46
46
  }