@genesislcap/foundation-utils 14.225.1-alpha-2aa9bd9.0 → 14.225.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,14 +39,6 @@
39
39
  "package": "./directives"
40
40
  }
41
41
  },
42
- {
43
- "kind": "js",
44
- "name": "*",
45
- "declaration": {
46
- "name": "*",
47
- "package": "./encoding"
48
- }
49
- },
50
42
  {
51
43
  "kind": "js",
52
44
  "name": "*",
@@ -171,185 +163,457 @@
171
163
  },
172
164
  {
173
165
  "kind": "javascript-module",
174
- "path": "src/data/inMemoryDatabase.ts",
166
+ "path": "src/directives/index.ts",
167
+ "declarations": [],
168
+ "exports": [
169
+ {
170
+ "kind": "js",
171
+ "name": "*",
172
+ "declaration": {
173
+ "name": "*",
174
+ "package": "./sync"
175
+ }
176
+ },
177
+ {
178
+ "kind": "js",
179
+ "name": "*",
180
+ "declaration": {
181
+ "name": "*",
182
+ "package": "./when-else"
183
+ }
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "kind": "javascript-module",
189
+ "path": "src/design-system/design-system.ts",
190
+ "declarations": [
191
+ {
192
+ "kind": "function",
193
+ "name": "assureDesignSystem",
194
+ "return": {
195
+ "type": {
196
+ "text": "DesignSystemModule"
197
+ }
198
+ },
199
+ "parameters": [
200
+ {
201
+ "name": "module",
202
+ "type": {
203
+ "text": "DesignSystemModule"
204
+ }
205
+ }
206
+ ],
207
+ "description": "assureDesignSystem.",
208
+ "privacy": "public"
209
+ }
210
+ ],
211
+ "exports": [
212
+ {
213
+ "kind": "js",
214
+ "name": "assureDesignSystem",
215
+ "declaration": {
216
+ "name": "assureDesignSystem",
217
+ "module": "src/design-system/design-system.ts"
218
+ }
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "kind": "javascript-module",
224
+ "path": "src/design-system/index.ts",
225
+ "declarations": [],
226
+ "exports": [
227
+ {
228
+ "kind": "js",
229
+ "name": "*",
230
+ "declaration": {
231
+ "name": "*",
232
+ "package": "./design-system"
233
+ }
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "kind": "javascript-module",
239
+ "path": "src/error/errorMap.ts",
175
240
  "declarations": [
176
241
  {
177
242
  "kind": "class",
178
- "description": "An in memory database of specific DatabaseRecord types.",
179
- "name": "InMemoryDatabase",
243
+ "description": "",
244
+ "name": "DefaultErrorMap",
180
245
  "members": [
181
246
  {
182
247
  "kind": "field",
183
- "name": "isWorking",
184
- "type": {
185
- "text": "boolean"
186
- },
187
- "privacy": "public",
188
- "default": "false"
248
+ "name": "map",
249
+ "privacy": "private",
250
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
189
251
  },
190
252
  {
191
253
  "kind": "field",
192
- "name": "records",
254
+ "name": "lastError",
193
255
  "type": {
194
- "text": "Record<string, T>"
256
+ "text": "Error"
195
257
  },
196
- "privacy": "private",
197
- "default": "{}"
198
- },
199
- {
200
- "kind": "field",
201
- "name": "beforeUpdateListeners",
202
- "privacy": "private"
203
- },
204
- {
205
- "kind": "field",
206
- "name": "afterUpdateListeners",
207
- "privacy": "private"
258
+ "description": "{@inheritDoc ErrorMap.lastError}"
208
259
  },
209
260
  {
210
261
  "kind": "method",
211
- "name": "create",
212
- "privacy": "public",
262
+ "name": "set",
213
263
  "return": {
214
264
  "type": {
215
- "text": "Promise<DatabaseAccessResult.Create<T>>"
265
+ "text": "void"
216
266
  }
217
267
  },
218
268
  "parameters": [
219
269
  {
220
- "name": "newValue",
270
+ "name": "key",
221
271
  "type": {
222
- "text": "Omit<T, 'id'>"
272
+ "text": "keyof TErrorDetailMap"
223
273
  }
224
- }
225
- ]
226
- },
227
- {
228
- "kind": "method",
229
- "name": "read",
230
- "privacy": "public",
231
- "return": {
232
- "type": {
233
- "text": "Promise<DatabaseAccessResult.Read<T>>"
234
- }
235
- },
236
- "parameters": [
274
+ },
237
275
  {
238
- "name": "id",
276
+ "name": "error",
239
277
  "type": {
240
- "text": "string"
278
+ "text": "Error"
241
279
  }
242
280
  }
243
- ]
281
+ ],
282
+ "description": "{@inheritDoc ErrorMap.set}"
244
283
  },
245
284
  {
246
285
  "kind": "method",
247
- "name": "update",
248
- "privacy": "public",
286
+ "name": "get",
249
287
  "return": {
250
288
  "type": {
251
- "text": "Promise<DatabaseAccessResult.Update<T>>"
289
+ "text": ""
252
290
  }
253
291
  },
254
292
  "parameters": [
255
293
  {
256
- "name": "id",
257
- "type": {
258
- "text": "string"
259
- }
260
- },
261
- {
262
- "name": "newValue",
294
+ "name": "key",
263
295
  "type": {
264
- "text": "Omit<Partial<T>, 'id'>"
265
- }
296
+ "text": "keyof TErrorDetailMap"
297
+ },
298
+ "description": "The key."
266
299
  }
267
- ]
300
+ ],
301
+ "description": "Get an error by key.",
302
+ "privacy": "public"
268
303
  },
269
304
  {
270
305
  "kind": "method",
271
- "name": "delete",
272
- "privacy": "public",
306
+ "name": "has",
273
307
  "return": {
274
308
  "type": {
275
- "text": "Promise<DatabaseAccessResult.Delete>"
309
+ "text": ""
276
310
  }
277
311
  },
278
312
  "parameters": [
279
313
  {
280
- "name": "id",
314
+ "name": "key",
281
315
  "type": {
282
- "text": "string"
283
- }
316
+ "text": "keyof TErrorDetailMap"
317
+ },
318
+ "description": "The key."
284
319
  }
285
- ]
320
+ ],
321
+ "description": "Has an error for key.",
322
+ "privacy": "public"
286
323
  },
287
324
  {
288
325
  "kind": "method",
289
- "name": "visit",
290
- "privacy": "public",
326
+ "name": "delete",
291
327
  "return": {
292
328
  "type": {
293
- "text": "Promise<void>"
329
+ "text": ""
294
330
  }
295
331
  },
296
332
  "parameters": [
297
333
  {
298
- "name": "visitor",
334
+ "name": "key",
299
335
  "type": {
300
- "text": "(record: T) => void"
301
- }
336
+ "text": "keyof TErrorDetailMap"
337
+ },
338
+ "description": "The key."
302
339
  }
303
- ]
340
+ ],
341
+ "description": "Delete an error.",
342
+ "privacy": "public"
304
343
  },
305
344
  {
306
345
  "kind": "method",
307
- "name": "onBeforeUpdate",
308
- "privacy": "public",
346
+ "name": "clear",
347
+ "description": "Clear errors.",
348
+ "privacy": "public"
349
+ },
350
+ {
351
+ "kind": "field",
352
+ "name": "size",
353
+ "type": {
354
+ "text": "number"
355
+ },
356
+ "description": "The size of the error map.",
309
357
  "return": {
310
358
  "type": {
311
- "text": "() => void"
359
+ "text": ""
312
360
  }
313
361
  },
314
- "parameters": [
315
- {
316
- "name": "listener",
317
- "type": {
318
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
319
- }
320
- }
321
- ]
362
+ "privacy": "public",
363
+ "readonly": true
322
364
  },
323
365
  {
324
366
  "kind": "method",
325
- "name": "onAfterUpdate",
326
- "privacy": "public",
327
- "return": {
328
- "type": {
329
- "text": "() => void"
330
- }
367
+ "name": "values",
368
+ "privacy": "public"
369
+ },
370
+ {
371
+ "kind": "field",
372
+ "name": "messages",
373
+ "type": {
374
+ "text": "string"
331
375
  },
332
- "parameters": [
333
- {
334
- "name": "listener",
335
- "type": {
336
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
337
- }
338
- }
339
- ]
376
+ "description": "{@inheritDoc ErrorMap.messages}",
377
+ "readonly": true
340
378
  }
341
379
  ]
342
- }
343
- ],
344
- "exports": [
380
+ },
345
381
  {
346
- "kind": "js",
347
- "name": "InMemoryDatabase",
348
- "declaration": {
349
- "name": "InMemoryDatabase",
350
- "module": "src/data/inMemoryDatabase.ts"
351
- }
352
- }
382
+ "kind": "function",
383
+ "name": "createErrorMap",
384
+ "return": {
385
+ "type": {
386
+ "text": ""
387
+ }
388
+ },
389
+ "parameters": [
390
+ {
391
+ "name": "logger",
392
+ "type": {
393
+ "text": "ErrorMapLogger"
394
+ },
395
+ "description": "A logger error method reference."
396
+ }
397
+ ],
398
+ "description": "A factory to create the error map.",
399
+ "privacy": "public"
400
+ }
401
+ ],
402
+ "exports": [
403
+ {
404
+ "kind": "js",
405
+ "name": "DefaultErrorMap",
406
+ "declaration": {
407
+ "name": "DefaultErrorMap",
408
+ "module": "src/error/errorMap.ts"
409
+ }
410
+ },
411
+ {
412
+ "kind": "js",
413
+ "name": "createErrorMap",
414
+ "declaration": {
415
+ "name": "createErrorMap",
416
+ "module": "src/error/errorMap.ts"
417
+ }
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "kind": "javascript-module",
423
+ "path": "src/error/index.ts",
424
+ "declarations": [],
425
+ "exports": [
426
+ {
427
+ "kind": "js",
428
+ "name": "*",
429
+ "declaration": {
430
+ "name": "*",
431
+ "package": "./errorMap"
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "kind": "javascript-module",
438
+ "path": "src/data/inMemoryDatabase.ts",
439
+ "declarations": [
440
+ {
441
+ "kind": "class",
442
+ "description": "An in memory database of specific DatabaseRecord types.",
443
+ "name": "InMemoryDatabase",
444
+ "members": [
445
+ {
446
+ "kind": "field",
447
+ "name": "isWorking",
448
+ "type": {
449
+ "text": "boolean"
450
+ },
451
+ "privacy": "public",
452
+ "default": "false"
453
+ },
454
+ {
455
+ "kind": "field",
456
+ "name": "records",
457
+ "type": {
458
+ "text": "Record<string, T>"
459
+ },
460
+ "privacy": "private",
461
+ "default": "{}"
462
+ },
463
+ {
464
+ "kind": "field",
465
+ "name": "beforeUpdateListeners",
466
+ "privacy": "private"
467
+ },
468
+ {
469
+ "kind": "field",
470
+ "name": "afterUpdateListeners",
471
+ "privacy": "private"
472
+ },
473
+ {
474
+ "kind": "method",
475
+ "name": "create",
476
+ "privacy": "public",
477
+ "return": {
478
+ "type": {
479
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
480
+ }
481
+ },
482
+ "parameters": [
483
+ {
484
+ "name": "newValue",
485
+ "type": {
486
+ "text": "Omit<T, 'id'>"
487
+ }
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ "kind": "method",
493
+ "name": "read",
494
+ "privacy": "public",
495
+ "return": {
496
+ "type": {
497
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
498
+ }
499
+ },
500
+ "parameters": [
501
+ {
502
+ "name": "id",
503
+ "type": {
504
+ "text": "string"
505
+ }
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "kind": "method",
511
+ "name": "update",
512
+ "privacy": "public",
513
+ "return": {
514
+ "type": {
515
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
516
+ }
517
+ },
518
+ "parameters": [
519
+ {
520
+ "name": "id",
521
+ "type": {
522
+ "text": "string"
523
+ }
524
+ },
525
+ {
526
+ "name": "newValue",
527
+ "type": {
528
+ "text": "Omit<Partial<T>, 'id'>"
529
+ }
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "kind": "method",
535
+ "name": "delete",
536
+ "privacy": "public",
537
+ "return": {
538
+ "type": {
539
+ "text": "Promise<DatabaseAccessResult.Delete>"
540
+ }
541
+ },
542
+ "parameters": [
543
+ {
544
+ "name": "id",
545
+ "type": {
546
+ "text": "string"
547
+ }
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ "kind": "method",
553
+ "name": "visit",
554
+ "privacy": "public",
555
+ "return": {
556
+ "type": {
557
+ "text": "Promise<void>"
558
+ }
559
+ },
560
+ "parameters": [
561
+ {
562
+ "name": "visitor",
563
+ "type": {
564
+ "text": "(record: T) => void"
565
+ }
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "kind": "method",
571
+ "name": "onBeforeUpdate",
572
+ "privacy": "public",
573
+ "return": {
574
+ "type": {
575
+ "text": "() => void"
576
+ }
577
+ },
578
+ "parameters": [
579
+ {
580
+ "name": "listener",
581
+ "type": {
582
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
583
+ }
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "kind": "method",
589
+ "name": "onAfterUpdate",
590
+ "privacy": "public",
591
+ "return": {
592
+ "type": {
593
+ "text": "() => void"
594
+ }
595
+ },
596
+ "parameters": [
597
+ {
598
+ "name": "listener",
599
+ "type": {
600
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
601
+ }
602
+ }
603
+ ]
604
+ }
605
+ ]
606
+ }
607
+ ],
608
+ "exports": [
609
+ {
610
+ "kind": "js",
611
+ "name": "InMemoryDatabase",
612
+ "declaration": {
613
+ "name": "InMemoryDatabase",
614
+ "module": "src/data/inMemoryDatabase.ts"
615
+ }
616
+ }
353
617
  ]
354
618
  },
355
619
  {
@@ -422,517 +686,292 @@
422
686
  },
423
687
  {
424
688
  "kind": "javascript-module",
425
- "path": "src/directives/index.ts",
426
- "declarations": [],
427
- "exports": [
428
- {
429
- "kind": "js",
430
- "name": "*",
431
- "declaration": {
432
- "name": "*",
433
- "package": "./sync"
434
- }
435
- },
436
- {
437
- "kind": "js",
438
- "name": "*",
439
- "declaration": {
440
- "name": "*",
441
- "package": "./when-else"
442
- }
443
- }
444
- ]
445
- },
446
- {
447
- "kind": "javascript-module",
448
- "path": "src/encoding/index.ts",
449
- "declarations": [],
450
- "exports": [
451
- {
452
- "kind": "js",
453
- "name": "*",
454
- "declaration": {
455
- "name": "*",
456
- "package": "./base64"
457
- }
458
- }
459
- ]
460
- },
461
- {
462
- "kind": "javascript-module",
463
- "path": "src/env/index.ts",
464
- "declarations": [],
465
- "exports": [
466
- {
467
- "kind": "js",
468
- "name": "*",
469
- "declaration": {
470
- "name": "*",
471
- "package": "./is-dev"
472
- }
473
- },
474
- {
475
- "kind": "js",
476
- "name": "*",
477
- "declaration": {
478
- "name": "*",
479
- "package": "./variables"
480
- }
481
- }
482
- ]
483
- },
484
- {
485
- "kind": "javascript-module",
486
- "path": "src/env/is-dev.ts",
487
- "declarations": [
689
+ "path": "src/formatters/datetime.ts",
690
+ "declarations": [
488
691
  {
489
692
  "kind": "function",
490
- "name": "isDev",
491
- "description": "Determines if the current environment is a development environment.",
492
- "privacy": "public"
493
- }
494
- ],
495
- "exports": [
496
- {
497
- "kind": "js",
498
- "name": "isDev",
499
- "declaration": {
500
- "name": "isDev",
501
- "module": "src/env/is-dev.ts"
502
- }
503
- }
504
- ]
505
- },
506
- {
507
- "kind": "javascript-module",
508
- "path": "src/env/variables.ts",
509
- "declarations": [
510
- {
511
- "kind": "variable",
512
- "name": "SOCKET_EXT",
513
- "type": {
514
- "text": "string"
515
- }
516
- },
517
- {
518
- "kind": "variable",
519
- "name": "_SOCKET_EXT",
520
- "type": {
521
- "text": "string"
522
- },
523
- "default": "'gwf'",
524
- "description": "The sub-path used for WebSocket connections when API_HOST is not set",
525
- "privacy": "public"
526
- },
527
- {
528
- "kind": "variable",
529
- "name": "FORCE_HTTP",
530
- "type": {
531
- "text": "string"
532
- }
533
- },
534
- {
535
- "kind": "variable",
536
- "name": "_FORCE_HTTP",
537
- "type": {
538
- "text": "string"
539
- },
540
- "description": "The path to a JSON config file for the HTTP mode.",
541
- "privacy": "public"
542
- },
543
- {
544
- "kind": "variable",
545
- "name": "GENESIS_SOCKET_URL",
546
- "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
547
- "description": "Genesis Socket URL",
548
- "privacy": "public"
549
- },
550
- {
551
- "kind": "variable",
552
- "name": "API_HOST",
553
- "type": {
554
- "text": "string"
555
- }
556
- },
557
- {
558
- "kind": "variable",
559
- "name": "_API_HOST",
560
- "type": {
561
- "text": "string"
562
- },
563
- "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
564
- "description": "The Genesis Server URL (WebSocket or HTTP).",
565
- "privacy": "public"
566
- },
567
- {
568
- "kind": "variable",
569
- "name": "HTTP_CONFIG",
570
- "type": {
571
- "text": "string"
572
- }
573
- },
574
- {
575
- "kind": "variable",
576
- "name": "_HTTP_CONFIG",
577
- "type": {
578
- "text": "string"
693
+ "name": "formatDateTimestamp",
694
+ "return": {
695
+ "type": {
696
+ "text": "string"
697
+ }
579
698
  },
580
- "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
699
+ "parameters": [
700
+ {
701
+ "name": "timestamp",
702
+ "type": {
703
+ "text": "number"
704
+ }
705
+ }
706
+ ],
707
+ "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
581
708
  "privacy": "public"
582
709
  },
583
710
  {
584
- "kind": "variable",
585
- "name": "DEFAULT_ORGANISATION",
586
- "type": {
587
- "text": "string"
588
- }
589
- },
590
- {
591
- "kind": "variable",
592
- "name": "_DEFAULT_ORGANISATION",
593
- "type": {
594
- "text": "string"
711
+ "kind": "function",
712
+ "name": "formatDateTimeTimestamp",
713
+ "return": {
714
+ "type": {
715
+ "text": "string"
716
+ }
595
717
  },
596
- "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
718
+ "parameters": [
719
+ {
720
+ "name": "timestamp",
721
+ "type": {
722
+ "text": "number"
723
+ }
724
+ }
725
+ ],
726
+ "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
597
727
  "privacy": "public"
598
728
  },
599
729
  {
600
- "kind": "variable",
601
- "name": "DEFAULT_PASSWORD",
602
- "type": {
603
- "text": "string"
604
- }
605
- },
606
- {
607
- "kind": "variable",
608
- "name": "_DEFAULT_PASSWORD",
609
- "type": {
610
- "text": "string"
730
+ "kind": "function",
731
+ "name": "formatTimestamp",
732
+ "return": {
733
+ "type": {
734
+ "text": "string"
735
+ }
611
736
  },
612
- "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
737
+ "parameters": [
738
+ {
739
+ "name": "timestamp",
740
+ "type": {
741
+ "text": "number"
742
+ },
743
+ "description": "The UNIX Timestamp."
744
+ },
745
+ {
746
+ "name": "withTime",
747
+ "type": {
748
+ "text": "boolean"
749
+ },
750
+ "description": "The flag to determine if formatted value should contain 'time' info."
751
+ }
752
+ ],
753
+ "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
613
754
  "privacy": "public"
614
755
  },
615
756
  {
616
- "kind": "variable",
617
- "name": "DEFAULT_USER",
618
- "type": {
619
- "text": "string"
620
- }
621
- },
622
- {
623
- "kind": "variable",
624
- "name": "_DEFAULT_USER",
625
- "type": {
626
- "text": "string"
627
- },
628
- "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
757
+ "kind": "function",
758
+ "name": "getDateFormatter",
759
+ "parameters": [
760
+ {
761
+ "name": "locale",
762
+ "default": "'en-GB'",
763
+ "type": {
764
+ "text": "string"
765
+ }
766
+ },
767
+ {
768
+ "name": "options",
769
+ "default": "defaultDateOptions",
770
+ "type": {
771
+ "text": "Intl.DateTimeFormatOptions"
772
+ }
773
+ }
774
+ ],
629
775
  "privacy": "public"
630
776
  }
631
777
  ],
632
778
  "exports": [
633
779
  {
634
780
  "kind": "js",
635
- "name": "SOCKET_EXT",
636
- "declaration": {
637
- "name": "_SOCKET_EXT",
638
- "module": "src/env/variables.ts"
639
- }
640
- },
641
- {
642
- "kind": "js",
643
- "name": "FORCE_HTTP",
781
+ "name": "formatDateTimestamp",
644
782
  "declaration": {
645
- "name": "_FORCE_HTTP",
646
- "module": "src/env/variables.ts"
783
+ "name": "formatDateTimestamp",
784
+ "module": "src/formatters/datetime.ts"
647
785
  }
648
786
  },
649
787
  {
650
788
  "kind": "js",
651
- "name": "GENESIS_SOCKET_URL",
789
+ "name": "formatDateTimeTimestamp",
652
790
  "declaration": {
653
- "name": "GENESIS_SOCKET_URL",
654
- "module": "src/env/variables.ts"
791
+ "name": "formatDateTimeTimestamp",
792
+ "module": "src/formatters/datetime.ts"
655
793
  }
656
794
  },
657
795
  {
658
796
  "kind": "js",
659
- "name": "API_HOST",
797
+ "name": "formatTimestamp",
660
798
  "declaration": {
661
- "name": "_API_HOST",
662
- "module": "src/env/variables.ts"
799
+ "name": "formatTimestamp",
800
+ "module": "src/formatters/datetime.ts"
663
801
  }
664
802
  },
665
803
  {
666
804
  "kind": "js",
667
- "name": "HTTP_CONFIG",
805
+ "name": "getDateFormatter",
668
806
  "declaration": {
669
- "name": "_HTTP_CONFIG",
670
- "module": "src/env/variables.ts"
807
+ "name": "getDateFormatter",
808
+ "module": "src/formatters/datetime.ts"
671
809
  }
672
- },
810
+ }
811
+ ]
812
+ },
813
+ {
814
+ "kind": "javascript-module",
815
+ "path": "src/formatters/index.ts",
816
+ "declarations": [],
817
+ "exports": [
673
818
  {
674
819
  "kind": "js",
675
- "name": "DEFAULT_ORGANISATION",
820
+ "name": "*",
676
821
  "declaration": {
677
- "name": "_DEFAULT_ORGANISATION",
678
- "module": "src/env/variables.ts"
822
+ "name": "*",
823
+ "package": "./datetime"
679
824
  }
680
825
  },
681
826
  {
682
827
  "kind": "js",
683
- "name": "DEFAULT_PASSWORD",
828
+ "name": "*",
684
829
  "declaration": {
685
- "name": "_DEFAULT_PASSWORD",
686
- "module": "src/env/variables.ts"
830
+ "name": "*",
831
+ "package": "./localeNumberParser"
687
832
  }
688
833
  },
689
834
  {
690
835
  "kind": "js",
691
- "name": "DEFAULT_USER",
836
+ "name": "*",
692
837
  "declaration": {
693
- "name": "_DEFAULT_USER",
694
- "module": "src/env/variables.ts"
838
+ "name": "*",
839
+ "package": "./number"
695
840
  }
696
841
  }
697
842
  ]
698
843
  },
699
844
  {
700
845
  "kind": "javascript-module",
701
- "path": "src/error/errorMap.ts",
846
+ "path": "src/formatters/localeNumberParser.ts",
702
847
  "declarations": [
703
848
  {
704
849
  "kind": "class",
705
850
  "description": "",
706
- "name": "DefaultErrorMap",
851
+ "name": "NumberParser",
707
852
  "members": [
708
853
  {
709
854
  "kind": "field",
710
- "name": "map",
855
+ "name": "_decimal",
856
+ "type": {
857
+ "text": "RegExp"
858
+ },
711
859
  "privacy": "private",
712
- "default": "new Map<keyof TErrorDetailMap, Error>()"
860
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
713
861
  },
714
862
  {
715
863
  "kind": "field",
716
- "name": "lastError",
864
+ "name": "_separator",
717
865
  "type": {
718
- "text": "Error"
866
+ "text": "RegExp"
719
867
  },
720
- "description": "{@inheritDoc ErrorMap.lastError}"
868
+ "privacy": "private",
869
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
721
870
  },
722
871
  {
723
- "kind": "method",
724
- "name": "set",
725
- "return": {
726
- "type": {
727
- "text": "void"
728
- }
872
+ "kind": "field",
873
+ "name": "_numeral",
874
+ "type": {
875
+ "text": "RegExp"
729
876
  },
730
- "parameters": [
731
- {
732
- "name": "key",
733
- "type": {
734
- "text": "keyof TErrorDetailMap"
735
- }
736
- },
737
- {
738
- "name": "error",
739
- "type": {
740
- "text": "Error"
741
- }
742
- }
743
- ],
744
- "description": "{@inheritDoc ErrorMap.set}"
877
+ "privacy": "private",
878
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
745
879
  },
746
880
  {
747
- "kind": "method",
748
- "name": "get",
749
- "return": {
750
- "type": {
751
- "text": ""
752
- }
881
+ "kind": "field",
882
+ "name": "_index",
883
+ "type": {
884
+ "text": "any"
753
885
  },
754
- "parameters": [
755
- {
756
- "name": "key",
757
- "type": {
758
- "text": "keyof TErrorDetailMap"
759
- },
760
- "description": "The key."
761
- }
762
- ],
763
- "description": "Get an error by key.",
764
- "privacy": "public"
886
+ "privacy": "private"
765
887
  },
766
888
  {
767
889
  "kind": "method",
768
- "name": "has",
769
- "return": {
770
- "type": {
771
- "text": ""
772
- }
773
- },
890
+ "name": "parse",
774
891
  "parameters": [
775
892
  {
776
- "name": "key",
893
+ "name": "localeNumber",
777
894
  "type": {
778
- "text": "keyof TErrorDetailMap"
779
- },
780
- "description": "The key."
895
+ "text": "string"
896
+ }
781
897
  }
782
- ],
783
- "description": "Has an error for key.",
784
- "privacy": "public"
898
+ ]
785
899
  },
786
900
  {
787
901
  "kind": "method",
788
- "name": "delete",
902
+ "name": "hasSeparator",
789
903
  "return": {
790
904
  "type": {
791
- "text": ""
905
+ "text": "boolean"
792
906
  }
793
907
  },
794
908
  "parameters": [
795
909
  {
796
- "name": "key",
910
+ "name": "localeNumber",
797
911
  "type": {
798
- "text": "keyof TErrorDetailMap"
799
- },
800
- "description": "The key."
801
- }
802
- ],
803
- "description": "Delete an error.",
804
- "privacy": "public"
805
- },
806
- {
807
- "kind": "method",
808
- "name": "clear",
809
- "description": "Clear errors.",
810
- "privacy": "public"
811
- },
812
- {
813
- "kind": "field",
814
- "name": "size",
815
- "type": {
816
- "text": "number"
817
- },
818
- "description": "The size of the error map.",
819
- "return": {
820
- "type": {
821
- "text": ""
912
+ "text": "string"
913
+ }
822
914
  }
823
- },
824
- "privacy": "public",
825
- "readonly": true
826
- },
827
- {
828
- "kind": "method",
829
- "name": "values",
830
- "privacy": "public"
915
+ ]
831
916
  },
832
917
  {
833
918
  "kind": "field",
834
- "name": "messages",
835
- "type": {
836
- "text": "string"
837
- },
838
- "description": "{@inheritDoc ErrorMap.messages}",
839
- "readonly": true
919
+ "name": "_group",
920
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
840
921
  }
841
922
  ]
842
- },
843
- {
844
- "kind": "function",
845
- "name": "createErrorMap",
846
- "return": {
847
- "type": {
848
- "text": ""
849
- }
850
- },
851
- "parameters": [
852
- {
853
- "name": "logger",
854
- "type": {
855
- "text": "ErrorMapLogger"
856
- },
857
- "description": "A logger error method reference."
858
- }
859
- ],
860
- "description": "A factory to create the error map.",
861
- "privacy": "public"
862
923
  }
863
924
  ],
864
925
  "exports": [
865
926
  {
866
927
  "kind": "js",
867
- "name": "DefaultErrorMap",
868
- "declaration": {
869
- "name": "DefaultErrorMap",
870
- "module": "src/error/errorMap.ts"
871
- }
872
- },
873
- {
874
- "kind": "js",
875
- "name": "createErrorMap",
876
- "declaration": {
877
- "name": "createErrorMap",
878
- "module": "src/error/errorMap.ts"
879
- }
880
- }
881
- ]
882
- },
883
- {
884
- "kind": "javascript-module",
885
- "path": "src/error/index.ts",
886
- "declarations": [],
887
- "exports": [
888
- {
889
- "kind": "js",
890
- "name": "*",
928
+ "name": "NumberParser",
891
929
  "declaration": {
892
- "name": "*",
893
- "package": "./errorMap"
930
+ "name": "NumberParser",
931
+ "module": "src/formatters/localeNumberParser.ts"
894
932
  }
895
933
  }
896
934
  ]
897
935
  },
898
936
  {
899
937
  "kind": "javascript-module",
900
- "path": "src/design-system/design-system.ts",
938
+ "path": "src/formatters/number.ts",
901
939
  "declarations": [
902
940
  {
903
941
  "kind": "function",
904
- "name": "assureDesignSystem",
905
- "return": {
906
- "type": {
907
- "text": "DesignSystemModule"
908
- }
909
- },
942
+ "name": "getNumberFormatter",
910
943
  "parameters": [
911
944
  {
912
- "name": "module",
945
+ "name": "format",
913
946
  "type": {
914
- "text": "DesignSystemModule"
947
+ "text": "string"
948
+ }
949
+ },
950
+ {
951
+ "name": "locale",
952
+ "optional": true,
953
+ "type": {
954
+ "text": "string | null"
915
955
  }
916
956
  }
917
957
  ],
918
- "description": "assureDesignSystem.",
919
958
  "privacy": "public"
920
959
  }
921
960
  ],
922
961
  "exports": [
923
962
  {
924
963
  "kind": "js",
925
- "name": "assureDesignSystem",
964
+ "name": "getNumberFormatter",
926
965
  "declaration": {
927
- "name": "assureDesignSystem",
928
- "module": "src/design-system/design-system.ts"
966
+ "name": "getNumberFormatter",
967
+ "module": "src/formatters/number.ts"
929
968
  }
930
969
  }
931
970
  ]
932
971
  },
933
972
  {
934
973
  "kind": "javascript-module",
935
- "path": "src/design-system/index.ts",
974
+ "path": "src/env/index.ts",
936
975
  "declarations": [],
937
976
  "exports": [
938
977
  {
@@ -940,292 +979,230 @@
940
979
  "name": "*",
941
980
  "declaration": {
942
981
  "name": "*",
943
- "package": "./design-system"
982
+ "package": "./is-dev"
983
+ }
984
+ },
985
+ {
986
+ "kind": "js",
987
+ "name": "*",
988
+ "declaration": {
989
+ "name": "*",
990
+ "package": "./variables"
944
991
  }
945
992
  }
946
993
  ]
947
994
  },
948
995
  {
949
996
  "kind": "javascript-module",
950
- "path": "src/formatters/datetime.ts",
997
+ "path": "src/env/is-dev.ts",
951
998
  "declarations": [
952
999
  {
953
1000
  "kind": "function",
954
- "name": "formatDateTimestamp",
955
- "return": {
956
- "type": {
957
- "text": "string"
958
- }
1001
+ "name": "isDev",
1002
+ "description": "Determines if the current environment is a development environment.",
1003
+ "privacy": "public"
1004
+ }
1005
+ ],
1006
+ "exports": [
1007
+ {
1008
+ "kind": "js",
1009
+ "name": "isDev",
1010
+ "declaration": {
1011
+ "name": "isDev",
1012
+ "module": "src/env/is-dev.ts"
1013
+ }
1014
+ }
1015
+ ]
1016
+ },
1017
+ {
1018
+ "kind": "javascript-module",
1019
+ "path": "src/env/variables.ts",
1020
+ "declarations": [
1021
+ {
1022
+ "kind": "variable",
1023
+ "name": "SOCKET_EXT",
1024
+ "type": {
1025
+ "text": "string"
1026
+ }
1027
+ },
1028
+ {
1029
+ "kind": "variable",
1030
+ "name": "_SOCKET_EXT",
1031
+ "type": {
1032
+ "text": "string"
959
1033
  },
960
- "parameters": [
961
- {
962
- "name": "timestamp",
963
- "type": {
964
- "text": "number"
965
- }
966
- }
967
- ],
968
- "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
1034
+ "default": "'gwf'",
1035
+ "description": "The sub-path used for WebSocket connections when API_HOST is not set",
969
1036
  "privacy": "public"
970
1037
  },
971
1038
  {
972
- "kind": "function",
973
- "name": "formatDateTimeTimestamp",
974
- "return": {
975
- "type": {
976
- "text": "string"
977
- }
1039
+ "kind": "variable",
1040
+ "name": "FORCE_HTTP",
1041
+ "type": {
1042
+ "text": "string"
1043
+ }
1044
+ },
1045
+ {
1046
+ "kind": "variable",
1047
+ "name": "_FORCE_HTTP",
1048
+ "type": {
1049
+ "text": "string"
978
1050
  },
979
- "parameters": [
980
- {
981
- "name": "timestamp",
982
- "type": {
983
- "text": "number"
984
- }
985
- }
986
- ],
987
- "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
1051
+ "description": "The path to a JSON config file for the HTTP mode.",
988
1052
  "privacy": "public"
989
1053
  },
990
1054
  {
991
- "kind": "function",
992
- "name": "formatTimestamp",
993
- "return": {
994
- "type": {
995
- "text": "string"
996
- }
1055
+ "kind": "variable",
1056
+ "name": "GENESIS_SOCKET_URL",
1057
+ "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
1058
+ "description": "Genesis Socket URL",
1059
+ "privacy": "public"
1060
+ },
1061
+ {
1062
+ "kind": "variable",
1063
+ "name": "API_HOST",
1064
+ "type": {
1065
+ "text": "string"
1066
+ }
1067
+ },
1068
+ {
1069
+ "kind": "variable",
1070
+ "name": "_API_HOST",
1071
+ "type": {
1072
+ "text": "string"
997
1073
  },
998
- "parameters": [
999
- {
1000
- "name": "timestamp",
1001
- "type": {
1002
- "text": "number"
1003
- },
1004
- "description": "The UNIX Timestamp."
1005
- },
1006
- {
1007
- "name": "withTime",
1008
- "type": {
1009
- "text": "boolean"
1010
- },
1011
- "description": "The flag to determine if formatted value should contain 'time' info."
1012
- }
1013
- ],
1014
- "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
1074
+ "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
1075
+ "description": "The Genesis Server URL (WebSocket or HTTP).",
1015
1076
  "privacy": "public"
1016
1077
  },
1017
1078
  {
1018
- "kind": "function",
1019
- "name": "getDateFormatter",
1020
- "parameters": [
1021
- {
1022
- "name": "locale",
1023
- "default": "'en-GB'",
1024
- "type": {
1025
- "text": "string"
1026
- }
1027
- },
1028
- {
1029
- "name": "options",
1030
- "default": "defaultDateOptions",
1031
- "type": {
1032
- "text": "Intl.DateTimeFormatOptions"
1033
- }
1034
- }
1035
- ],
1079
+ "kind": "variable",
1080
+ "name": "HTTP_CONFIG",
1081
+ "type": {
1082
+ "text": "string"
1083
+ }
1084
+ },
1085
+ {
1086
+ "kind": "variable",
1087
+ "name": "_HTTP_CONFIG",
1088
+ "type": {
1089
+ "text": "string"
1090
+ },
1091
+ "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
1092
+ "privacy": "public"
1093
+ },
1094
+ {
1095
+ "kind": "variable",
1096
+ "name": "DEFAULT_ORGANISATION",
1097
+ "type": {
1098
+ "text": "string"
1099
+ }
1100
+ },
1101
+ {
1102
+ "kind": "variable",
1103
+ "name": "_DEFAULT_ORGANISATION",
1104
+ "type": {
1105
+ "text": "string"
1106
+ },
1107
+ "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
1108
+ "privacy": "public"
1109
+ },
1110
+ {
1111
+ "kind": "variable",
1112
+ "name": "DEFAULT_PASSWORD",
1113
+ "type": {
1114
+ "text": "string"
1115
+ }
1116
+ },
1117
+ {
1118
+ "kind": "variable",
1119
+ "name": "_DEFAULT_PASSWORD",
1120
+ "type": {
1121
+ "text": "string"
1122
+ },
1123
+ "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
1124
+ "privacy": "public"
1125
+ },
1126
+ {
1127
+ "kind": "variable",
1128
+ "name": "DEFAULT_USER",
1129
+ "type": {
1130
+ "text": "string"
1131
+ }
1132
+ },
1133
+ {
1134
+ "kind": "variable",
1135
+ "name": "_DEFAULT_USER",
1136
+ "type": {
1137
+ "text": "string"
1138
+ },
1139
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
1036
1140
  "privacy": "public"
1037
1141
  }
1038
1142
  ],
1039
1143
  "exports": [
1040
1144
  {
1041
1145
  "kind": "js",
1042
- "name": "formatDateTimestamp",
1146
+ "name": "SOCKET_EXT",
1043
1147
  "declaration": {
1044
- "name": "formatDateTimestamp",
1045
- "module": "src/formatters/datetime.ts"
1148
+ "name": "_SOCKET_EXT",
1149
+ "module": "src/env/variables.ts"
1046
1150
  }
1047
1151
  },
1048
1152
  {
1049
1153
  "kind": "js",
1050
- "name": "formatDateTimeTimestamp",
1154
+ "name": "FORCE_HTTP",
1051
1155
  "declaration": {
1052
- "name": "formatDateTimeTimestamp",
1053
- "module": "src/formatters/datetime.ts"
1156
+ "name": "_FORCE_HTTP",
1157
+ "module": "src/env/variables.ts"
1054
1158
  }
1055
1159
  },
1056
1160
  {
1057
1161
  "kind": "js",
1058
- "name": "formatTimestamp",
1162
+ "name": "GENESIS_SOCKET_URL",
1059
1163
  "declaration": {
1060
- "name": "formatTimestamp",
1061
- "module": "src/formatters/datetime.ts"
1164
+ "name": "GENESIS_SOCKET_URL",
1165
+ "module": "src/env/variables.ts"
1062
1166
  }
1063
1167
  },
1064
1168
  {
1065
1169
  "kind": "js",
1066
- "name": "getDateFormatter",
1067
- "declaration": {
1068
- "name": "getDateFormatter",
1069
- "module": "src/formatters/datetime.ts"
1070
- }
1071
- }
1072
- ]
1073
- },
1074
- {
1075
- "kind": "javascript-module",
1076
- "path": "src/formatters/index.ts",
1077
- "declarations": [],
1078
- "exports": [
1079
- {
1080
- "kind": "js",
1081
- "name": "*",
1170
+ "name": "API_HOST",
1082
1171
  "declaration": {
1083
- "name": "*",
1084
- "package": "./datetime"
1172
+ "name": "_API_HOST",
1173
+ "module": "src/env/variables.ts"
1085
1174
  }
1086
1175
  },
1087
1176
  {
1088
1177
  "kind": "js",
1089
- "name": "*",
1178
+ "name": "HTTP_CONFIG",
1090
1179
  "declaration": {
1091
- "name": "*",
1092
- "package": "./localeNumberParser"
1180
+ "name": "_HTTP_CONFIG",
1181
+ "module": "src/env/variables.ts"
1093
1182
  }
1094
1183
  },
1095
1184
  {
1096
1185
  "kind": "js",
1097
- "name": "*",
1186
+ "name": "DEFAULT_ORGANISATION",
1098
1187
  "declaration": {
1099
- "name": "*",
1100
- "package": "./number"
1188
+ "name": "_DEFAULT_ORGANISATION",
1189
+ "module": "src/env/variables.ts"
1101
1190
  }
1102
- }
1103
- ]
1104
- },
1105
- {
1106
- "kind": "javascript-module",
1107
- "path": "src/formatters/localeNumberParser.ts",
1108
- "declarations": [
1109
- {
1110
- "kind": "class",
1111
- "description": "",
1112
- "name": "NumberParser",
1113
- "members": [
1114
- {
1115
- "kind": "field",
1116
- "name": "_decimal",
1117
- "type": {
1118
- "text": "RegExp"
1119
- },
1120
- "privacy": "private",
1121
- "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
1122
- },
1123
- {
1124
- "kind": "field",
1125
- "name": "_separator",
1126
- "type": {
1127
- "text": "RegExp"
1128
- },
1129
- "privacy": "private",
1130
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
1131
- },
1132
- {
1133
- "kind": "field",
1134
- "name": "_numeral",
1135
- "type": {
1136
- "text": "RegExp"
1137
- },
1138
- "privacy": "private",
1139
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
1140
- },
1141
- {
1142
- "kind": "field",
1143
- "name": "_index",
1144
- "type": {
1145
- "text": "any"
1146
- },
1147
- "privacy": "private"
1148
- },
1149
- {
1150
- "kind": "method",
1151
- "name": "parse",
1152
- "parameters": [
1153
- {
1154
- "name": "localeNumber",
1155
- "type": {
1156
- "text": "string"
1157
- }
1158
- }
1159
- ]
1160
- },
1161
- {
1162
- "kind": "method",
1163
- "name": "hasSeparator",
1164
- "return": {
1165
- "type": {
1166
- "text": "boolean"
1167
- }
1168
- },
1169
- "parameters": [
1170
- {
1171
- "name": "localeNumber",
1172
- "type": {
1173
- "text": "string"
1174
- }
1175
- }
1176
- ]
1177
- },
1178
- {
1179
- "kind": "field",
1180
- "name": "_group",
1181
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1182
- }
1183
- ]
1184
- }
1185
- ],
1186
- "exports": [
1191
+ },
1187
1192
  {
1188
1193
  "kind": "js",
1189
- "name": "NumberParser",
1194
+ "name": "DEFAULT_PASSWORD",
1190
1195
  "declaration": {
1191
- "name": "NumberParser",
1192
- "module": "src/formatters/localeNumberParser.ts"
1196
+ "name": "_DEFAULT_PASSWORD",
1197
+ "module": "src/env/variables.ts"
1193
1198
  }
1194
- }
1195
- ]
1196
- },
1197
- {
1198
- "kind": "javascript-module",
1199
- "path": "src/formatters/number.ts",
1200
- "declarations": [
1201
- {
1202
- "kind": "function",
1203
- "name": "getNumberFormatter",
1204
- "parameters": [
1205
- {
1206
- "name": "format",
1207
- "type": {
1208
- "text": "string"
1209
- }
1210
- },
1211
- {
1212
- "name": "locale",
1213
- "optional": true,
1214
- "type": {
1215
- "text": "string | null"
1216
- }
1217
- }
1218
- ],
1219
- "privacy": "public"
1220
- }
1221
- ],
1222
- "exports": [
1199
+ },
1223
1200
  {
1224
1201
  "kind": "js",
1225
- "name": "getNumberFormatter",
1202
+ "name": "DEFAULT_USER",
1226
1203
  "declaration": {
1227
- "name": "getNumberFormatter",
1228
- "module": "src/formatters/number.ts"
1204
+ "name": "_DEFAULT_USER",
1205
+ "module": "src/env/variables.ts"
1229
1206
  }
1230
1207
  }
1231
1208
  ]
@@ -2387,160 +2364,6 @@
2387
2364
  }
2388
2365
  ]
2389
2366
  },
2390
- {
2391
- "kind": "javascript-module",
2392
- "path": "src/encoding/base64/decode.ts",
2393
- "declarations": [
2394
- {
2395
- "kind": "function",
2396
- "name": "decodeFromBase64",
2397
- "return": {
2398
- "type": {
2399
- "text": ""
2400
- }
2401
- },
2402
- "parameters": [
2403
- {
2404
- "name": "base64Value",
2405
- "type": {
2406
- "text": "string"
2407
- }
2408
- },
2409
- {
2410
- "description": "The value to decode from base64.",
2411
- "name": "value"
2412
- }
2413
- ],
2414
- "description": "Decodes a value from base64.",
2415
- "privacy": "public"
2416
- },
2417
- {
2418
- "kind": "function",
2419
- "name": "decodeFromBase64WithPrefix",
2420
- "return": {
2421
- "type": {
2422
- "text": ""
2423
- }
2424
- },
2425
- "parameters": [
2426
- {
2427
- "name": "value",
2428
- "type": {
2429
- "text": "string"
2430
- },
2431
- "description": "The value to decode from base64."
2432
- }
2433
- ],
2434
- "description": "Decodes a value from base64 with a prefix.",
2435
- "privacy": "public"
2436
- }
2437
- ],
2438
- "exports": [
2439
- {
2440
- "kind": "js",
2441
- "name": "decodeFromBase64",
2442
- "declaration": {
2443
- "name": "decodeFromBase64",
2444
- "module": "src/encoding/base64/decode.ts"
2445
- }
2446
- },
2447
- {
2448
- "kind": "js",
2449
- "name": "decodeFromBase64WithPrefix",
2450
- "declaration": {
2451
- "name": "decodeFromBase64WithPrefix",
2452
- "module": "src/encoding/base64/decode.ts"
2453
- }
2454
- }
2455
- ]
2456
- },
2457
- {
2458
- "kind": "javascript-module",
2459
- "path": "src/encoding/base64/encode.ts",
2460
- "declarations": [
2461
- {
2462
- "kind": "function",
2463
- "name": "encodeToBase64",
2464
- "return": {
2465
- "type": {
2466
- "text": ""
2467
- }
2468
- },
2469
- "parameters": [
2470
- {
2471
- "name": "value",
2472
- "type": {
2473
- "text": "string | ArrayBuffer"
2474
- },
2475
- "description": "The value to encode to base64."
2476
- }
2477
- ],
2478
- "description": "Encodes the given value to base64.",
2479
- "privacy": "public"
2480
- },
2481
- {
2482
- "kind": "function",
2483
- "name": "encodeToBase64WithPrefix",
2484
- "return": {
2485
- "type": {
2486
- "text": ""
2487
- }
2488
- },
2489
- "parameters": [
2490
- {
2491
- "name": "value",
2492
- "type": {
2493
- "text": "string | ArrayBuffer"
2494
- },
2495
- "description": "The value to encode to base64."
2496
- }
2497
- ],
2498
- "description": "Encodes the given value with a prefix to base64.",
2499
- "privacy": "public"
2500
- }
2501
- ],
2502
- "exports": [
2503
- {
2504
- "kind": "js",
2505
- "name": "encodeToBase64",
2506
- "declaration": {
2507
- "name": "encodeToBase64",
2508
- "module": "src/encoding/base64/encode.ts"
2509
- }
2510
- },
2511
- {
2512
- "kind": "js",
2513
- "name": "encodeToBase64WithPrefix",
2514
- "declaration": {
2515
- "name": "encodeToBase64WithPrefix",
2516
- "module": "src/encoding/base64/encode.ts"
2517
- }
2518
- }
2519
- ]
2520
- },
2521
- {
2522
- "kind": "javascript-module",
2523
- "path": "src/encoding/base64/index.ts",
2524
- "declarations": [],
2525
- "exports": [
2526
- {
2527
- "kind": "js",
2528
- "name": "*",
2529
- "declaration": {
2530
- "name": "*",
2531
- "package": "./decode"
2532
- }
2533
- },
2534
- {
2535
- "kind": "js",
2536
- "name": "*",
2537
- "declaration": {
2538
- "name": "*",
2539
- "package": "./encode"
2540
- }
2541
- }
2542
- ]
2543
- },
2544
2367
  {
2545
2368
  "kind": "javascript-module",
2546
2369
  "path": "src/mappers/dto/index.ts",