@xyo-network/payload-validator 2.42.16 → 2.42.18

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 (46) hide show
  1. package/dist/cjs/Validator.d.ts +17 -0
  2. package/dist/cjs/Validator.d.ts.map +1 -0
  3. package/dist/cjs/{Validator/Validator.js → Validator.js} +11 -3
  4. package/dist/cjs/Validator.js.map +1 -0
  5. package/dist/cjs/index.d.ts +0 -1
  6. package/dist/cjs/index.d.ts.map +1 -1
  7. package/dist/cjs/index.js +0 -1
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/docs.json +337 -713
  10. package/dist/esm/Validator.d.ts +17 -0
  11. package/dist/esm/Validator.d.ts.map +1 -0
  12. package/dist/esm/{Validator/Validator.js → Validator.js} +11 -3
  13. package/dist/esm/Validator.js.map +1 -0
  14. package/dist/esm/index.d.ts +0 -1
  15. package/dist/esm/index.d.ts.map +1 -1
  16. package/dist/esm/index.js +0 -1
  17. package/dist/esm/index.js.map +1 -1
  18. package/package.json +3 -4
  19. package/src/{Validator/Validator.spec.ts → Validator.spec.ts} +0 -0
  20. package/src/Validator.ts +48 -0
  21. package/src/index.ts +0 -1
  22. package/dist/cjs/SchemaNameValidator.d.ts +0 -68
  23. package/dist/cjs/SchemaNameValidator.d.ts.map +0 -1
  24. package/dist/cjs/SchemaNameValidator.js +0 -127
  25. package/dist/cjs/SchemaNameValidator.js.map +0 -1
  26. package/dist/cjs/Validator/Validator.d.ts +0 -11
  27. package/dist/cjs/Validator/Validator.d.ts.map +0 -1
  28. package/dist/cjs/Validator/Validator.js.map +0 -1
  29. package/dist/cjs/Validator/index.d.ts +0 -2
  30. package/dist/cjs/Validator/index.d.ts.map +0 -1
  31. package/dist/cjs/Validator/index.js +0 -5
  32. package/dist/cjs/Validator/index.js.map +0 -1
  33. package/dist/esm/SchemaNameValidator.d.ts +0 -68
  34. package/dist/esm/SchemaNameValidator.d.ts.map +0 -1
  35. package/dist/esm/SchemaNameValidator.js +0 -114
  36. package/dist/esm/SchemaNameValidator.js.map +0 -1
  37. package/dist/esm/Validator/Validator.d.ts +0 -11
  38. package/dist/esm/Validator/Validator.d.ts.map +0 -1
  39. package/dist/esm/Validator/Validator.js.map +0 -1
  40. package/dist/esm/Validator/index.d.ts +0 -2
  41. package/dist/esm/Validator/index.d.ts.map +0 -1
  42. package/dist/esm/Validator/index.js +0 -2
  43. package/dist/esm/Validator/index.js.map +0 -1
  44. package/src/SchemaNameValidator.ts +0 -120
  45. package/src/Validator/Validator.ts +0 -33
  46. package/src/Validator/index.ts +0 -1
package/dist/docs.json CHANGED
@@ -7,36 +7,36 @@
7
7
  "originalName": "",
8
8
  "children": [
9
9
  {
10
- "id": 27,
10
+ "id": 9,
11
11
  "name": "PayloadValidator",
12
12
  "kind": 128,
13
13
  "kindString": "Class",
14
14
  "flags": {},
15
15
  "children": [
16
16
  {
17
- "id": 28,
17
+ "id": 14,
18
18
  "name": "constructor",
19
19
  "kind": 512,
20
20
  "kindString": "Constructor",
21
21
  "flags": {},
22
22
  "sources": [
23
23
  {
24
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
25
- "line": 9,
24
+ "fileName": "payload/packages/validator/src/Validator.ts",
25
+ "line": 16,
26
26
  "character": 2,
27
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L9"
27
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L16"
28
28
  }
29
29
  ],
30
30
  "signatures": [
31
31
  {
32
- "id": 29,
32
+ "id": 15,
33
33
  "name": "new PayloadValidator",
34
34
  "kind": 16384,
35
35
  "kindString": "Constructor signature",
36
36
  "flags": {},
37
37
  "typeParameter": [
38
38
  {
39
- "id": 34,
39
+ "id": 20,
40
40
  "name": "T",
41
41
  "kind": 131072,
42
42
  "kindString": "Type parameter",
@@ -55,14 +55,14 @@
55
55
  {
56
56
  "type": "reflection",
57
57
  "declaration": {
58
- "id": 30,
58
+ "id": 16,
59
59
  "name": "__type",
60
60
  "kind": 65536,
61
61
  "kindString": "Type literal",
62
62
  "flags": {},
63
63
  "children": [
64
64
  {
65
- "id": 31,
65
+ "id": 17,
66
66
  "name": "schema",
67
67
  "kind": 1024,
68
68
  "kindString": "Property",
@@ -84,7 +84,7 @@
84
84
  {
85
85
  "title": "Properties",
86
86
  "children": [
87
- 31
87
+ 17
88
88
  ]
89
89
  }
90
90
  ],
@@ -113,14 +113,14 @@
113
113
  {
114
114
  "type": "reflection",
115
115
  "declaration": {
116
- "id": 32,
116
+ "id": 18,
117
117
  "name": "__type",
118
118
  "kind": 65536,
119
119
  "kindString": "Type literal",
120
120
  "flags": {},
121
121
  "children": [
122
122
  {
123
- "id": 33,
123
+ "id": 19,
124
124
  "name": "schema",
125
125
  "kind": 1024,
126
126
  "kindString": "Property",
@@ -142,7 +142,7 @@
142
142
  {
143
143
  "title": "Properties",
144
144
  "children": [
145
- 33
145
+ 19
146
146
  ]
147
147
  }
148
148
  ],
@@ -161,25 +161,25 @@
161
161
  ],
162
162
  "parameters": [
163
163
  {
164
- "id": 35,
164
+ "id": 21,
165
165
  "name": "payload",
166
166
  "kind": 32768,
167
167
  "kindString": "Parameter",
168
168
  "flags": {},
169
169
  "type": {
170
170
  "type": "reference",
171
- "id": 34,
171
+ "id": 20,
172
172
  "name": "T"
173
173
  }
174
174
  }
175
175
  ],
176
176
  "type": {
177
177
  "type": "reference",
178
- "id": 27,
178
+ "id": 9,
179
179
  "typeArguments": [
180
180
  {
181
181
  "type": "reference",
182
- "id": 34,
182
+ "id": 20,
183
183
  "name": "T"
184
184
  }
185
185
  ],
@@ -197,7 +197,7 @@
197
197
  }
198
198
  },
199
199
  {
200
- "id": 36,
200
+ "id": 25,
201
201
  "name": "_schemaValidator",
202
202
  "kind": 1024,
203
203
  "kindString": "Property",
@@ -207,20 +207,20 @@
207
207
  },
208
208
  "sources": [
209
209
  {
210
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
211
- "line": 7,
210
+ "fileName": "payload/packages/validator/src/Validator.ts",
211
+ "line": 14,
212
212
  "character": 10,
213
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L7"
213
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L14"
214
214
  }
215
215
  ],
216
216
  "type": {
217
217
  "type": "reference",
218
218
  "id": 1,
219
- "name": "XyoSchemaNameValidator"
219
+ "name": "AllValidator"
220
220
  }
221
221
  },
222
222
  {
223
- "id": 43,
223
+ "id": 32,
224
224
  "name": "obj",
225
225
  "kind": 1024,
226
226
  "kindString": "Property",
@@ -236,7 +236,7 @@
236
236
  ],
237
237
  "type": {
238
238
  "type": "reference",
239
- "id": 34,
239
+ "id": 20,
240
240
  "name": "T"
241
241
  },
242
242
  "inheritedFrom": {
@@ -245,34 +245,151 @@
245
245
  }
246
246
  },
247
247
  {
248
- "id": 37,
248
+ "id": 22,
249
+ "name": "payload",
250
+ "kind": 1024,
251
+ "kindString": "Property",
252
+ "flags": {
253
+ "isProtected": true
254
+ },
255
+ "sources": [
256
+ {
257
+ "fileName": "payload/packages/validator/src/Validator.ts",
258
+ "line": 12,
259
+ "character": 12,
260
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L12"
261
+ }
262
+ ],
263
+ "type": {
264
+ "type": "intersection",
265
+ "types": [
266
+ {
267
+ "type": "reference",
268
+ "name": "SchemaFields"
269
+ },
270
+ {
271
+ "type": "reference",
272
+ "name": "PayloadFields"
273
+ },
274
+ {
275
+ "type": "reflection",
276
+ "declaration": {
277
+ "id": 23,
278
+ "name": "__type",
279
+ "kind": 65536,
280
+ "kindString": "Type literal",
281
+ "flags": {},
282
+ "children": [
283
+ {
284
+ "id": 24,
285
+ "name": "schema",
286
+ "kind": 1024,
287
+ "kindString": "Property",
288
+ "flags": {},
289
+ "sources": [
290
+ {
291
+ "fileName": "payload/packages/model/dist/esm/XyoPayload.d.ts",
292
+ "line": 19,
293
+ "character": 4
294
+ }
295
+ ],
296
+ "type": {
297
+ "type": "intrinsic",
298
+ "name": "string"
299
+ }
300
+ }
301
+ ],
302
+ "groups": [
303
+ {
304
+ "title": "Properties",
305
+ "children": [
306
+ 24
307
+ ]
308
+ }
309
+ ],
310
+ "sources": [
311
+ {
312
+ "fileName": "payload/packages/model/dist/esm/XyoPayload.d.ts",
313
+ "line": 18,
314
+ "character": 17
315
+ }
316
+ ]
317
+ }
318
+ }
319
+ ]
320
+ }
321
+ },
322
+ {
323
+ "id": 10,
324
+ "name": "schemaNameValidatorFactory",
325
+ "kind": 1024,
326
+ "kindString": "Property",
327
+ "flags": {
328
+ "isProtected": true,
329
+ "isStatic": true
330
+ },
331
+ "sources": [
332
+ {
333
+ "fileName": "payload/packages/validator/src/Validator.ts",
334
+ "line": 11,
335
+ "character": 19,
336
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L11"
337
+ }
338
+ ],
339
+ "type": {
340
+ "type": "union",
341
+ "types": [
342
+ {
343
+ "type": "literal",
344
+ "value": null
345
+ },
346
+ {
347
+ "type": "reference",
348
+ "id": 5,
349
+ "name": "AllValidatorFactory"
350
+ }
351
+ ]
352
+ },
353
+ "defaultValue": "null"
354
+ },
355
+ {
356
+ "id": 26,
249
357
  "name": "schemaValidator",
250
358
  "kind": 262144,
251
359
  "kindString": "Accessor",
252
360
  "flags": {},
253
361
  "sources": [
254
362
  {
255
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
256
- "line": 13,
363
+ "fileName": "payload/packages/validator/src/Validator.ts",
364
+ "line": 21,
257
365
  "character": 6,
258
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L13"
366
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L21"
259
367
  }
260
368
  ],
261
369
  "getSignature": {
262
- "id": 38,
370
+ "id": 27,
263
371
  "name": "schemaValidator",
264
372
  "kind": 524288,
265
373
  "kindString": "Get signature",
266
374
  "flags": {},
267
375
  "type": {
268
- "type": "reference",
269
- "id": 1,
270
- "name": "XyoSchemaNameValidator"
376
+ "type": "union",
377
+ "types": [
378
+ {
379
+ "type": "intrinsic",
380
+ "name": "undefined"
381
+ },
382
+ {
383
+ "type": "reference",
384
+ "id": 1,
385
+ "name": "AllValidator"
386
+ }
387
+ ]
271
388
  }
272
389
  }
273
390
  },
274
391
  {
275
- "id": 44,
392
+ "id": 33,
276
393
  "name": "stringKeyObj",
277
394
  "kind": 262144,
278
395
  "kindString": "Accessor",
@@ -287,7 +404,7 @@
287
404
  }
288
405
  ],
289
406
  "getSignature": {
290
- "id": 45,
407
+ "id": 34,
291
408
  "name": "stringKeyObj",
292
409
  "kind": 524288,
293
410
  "kindString": "Get signature",
@@ -307,7 +424,7 @@
307
424
  }
308
425
  },
309
426
  {
310
- "id": 39,
427
+ "id": 28,
311
428
  "name": "schemaName",
312
429
  "kind": 2048,
313
430
  "kindString": "Method",
@@ -316,15 +433,15 @@
316
433
  },
317
434
  "sources": [
318
435
  {
319
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
320
- "line": 18,
436
+ "fileName": "payload/packages/validator/src/Validator.ts",
437
+ "line": 33,
321
438
  "character": 9,
322
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L18"
439
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L33"
323
440
  }
324
441
  ],
325
442
  "signatures": [
326
443
  {
327
- "id": 40,
444
+ "id": 29,
328
445
  "name": "schemaName",
329
446
  "kind": 4096,
330
447
  "kindString": "Call signature",
@@ -342,7 +459,7 @@
342
459
  ]
343
460
  },
344
461
  {
345
- "id": 41,
462
+ "id": 30,
346
463
  "name": "validate",
347
464
  "kind": 2048,
348
465
  "kindString": "Method",
@@ -351,15 +468,15 @@
351
468
  },
352
469
  "sources": [
353
470
  {
354
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
355
- "line": 28,
471
+ "fileName": "payload/packages/validator/src/Validator.ts",
472
+ "line": 43,
356
473
  "character": 9,
357
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L28"
474
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L43"
358
475
  }
359
476
  ],
360
477
  "signatures": [
361
478
  {
362
- "id": 42,
479
+ "id": 31,
363
480
  "name": "validate",
364
481
  "kind": 4096,
365
482
  "kindString": "Call signature",
@@ -391,48 +508,105 @@
391
508
  "type": "reference",
392
509
  "name": "Validator.validate"
393
510
  }
511
+ },
512
+ {
513
+ "id": 11,
514
+ "name": "setSchemaNameValidatorFactory",
515
+ "kind": 2048,
516
+ "kindString": "Method",
517
+ "flags": {
518
+ "isPublic": true,
519
+ "isStatic": true
520
+ },
521
+ "sources": [
522
+ {
523
+ "fileName": "payload/packages/validator/src/Validator.ts",
524
+ "line": 29,
525
+ "character": 16,
526
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L29"
527
+ }
528
+ ],
529
+ "signatures": [
530
+ {
531
+ "id": 12,
532
+ "name": "setSchemaNameValidatorFactory",
533
+ "kind": 4096,
534
+ "kindString": "Call signature",
535
+ "flags": {},
536
+ "parameters": [
537
+ {
538
+ "id": 13,
539
+ "name": "factory",
540
+ "kind": 32768,
541
+ "kindString": "Parameter",
542
+ "flags": {},
543
+ "type": {
544
+ "type": "union",
545
+ "types": [
546
+ {
547
+ "type": "literal",
548
+ "value": null
549
+ },
550
+ {
551
+ "type": "reference",
552
+ "id": 5,
553
+ "name": "AllValidatorFactory"
554
+ }
555
+ ]
556
+ }
557
+ }
558
+ ],
559
+ "type": {
560
+ "type": "intrinsic",
561
+ "name": "void"
562
+ }
563
+ }
564
+ ]
394
565
  }
395
566
  ],
396
567
  "groups": [
397
568
  {
398
569
  "title": "Constructors",
399
570
  "children": [
400
- 28
571
+ 14
401
572
  ]
402
573
  },
403
574
  {
404
575
  "title": "Properties",
405
576
  "children": [
406
- 36,
407
- 43
577
+ 25,
578
+ 32,
579
+ 22,
580
+ 10
408
581
  ]
409
582
  },
410
583
  {
411
584
  "title": "Accessors",
412
585
  "children": [
413
- 37,
414
- 44
586
+ 26,
587
+ 33
415
588
  ]
416
589
  },
417
590
  {
418
591
  "title": "Methods",
419
592
  "children": [
420
- 39,
421
- 41
593
+ 28,
594
+ 30,
595
+ 11
422
596
  ]
423
597
  }
424
598
  ],
425
599
  "sources": [
426
600
  {
427
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
428
- "line": 6,
601
+ "fileName": "payload/packages/validator/src/Validator.ts",
602
+ "line": 10,
429
603
  "character": 13,
430
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L6"
604
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L10"
431
605
  }
432
606
  ],
433
607
  "typeParameters": [
434
608
  {
435
- "id": 46,
609
+ "id": 35,
436
610
  "name": "T",
437
611
  "kind": 131072,
438
612
  "kindString": "Type parameter",
@@ -453,7 +627,7 @@
453
627
  "typeArguments": [
454
628
  {
455
629
  "type": "reference",
456
- "id": 34,
630
+ "id": 20,
457
631
  "name": "T"
458
632
  }
459
633
  ],
@@ -466,7 +640,7 @@
466
640
  "typeArguments": [
467
641
  {
468
642
  "type": "reference",
469
- "id": 34,
643
+ "id": 20,
470
644
  "name": "T"
471
645
  }
472
646
  ],
@@ -476,703 +650,153 @@
476
650
  },
477
651
  {
478
652
  "id": 1,
479
- "name": "XyoSchemaNameValidator",
480
- "kind": 128,
481
- "kindString": "Class",
653
+ "name": "AllValidator",
654
+ "kind": 4194304,
655
+ "kindString": "Type alias",
482
656
  "flags": {},
483
- "comment": {
484
- "summary": [
485
- {
486
- "kind": "text",
487
- "text": "Validates a XYO schema structure and existence"
488
- }
489
- ]
490
- },
491
- "children": [
657
+ "sources": [
492
658
  {
659
+ "fileName": "payload/packages/validator/src/Validator.ts",
660
+ "line": 4,
661
+ "character": 12,
662
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4"
663
+ }
664
+ ],
665
+ "type": {
666
+ "type": "reflection",
667
+ "declaration": {
493
668
  "id": 2,
494
- "name": "constructor",
495
- "kind": 512,
496
- "kindString": "Constructor",
669
+ "name": "__type",
670
+ "kind": 65536,
671
+ "kindString": "Type literal",
497
672
  "flags": {},
498
- "sources": [
499
- {
500
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
501
- "line": 10,
502
- "character": 2,
503
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L10"
504
- }
505
- ],
506
- "signatures": [
673
+ "children": [
507
674
  {
508
675
  "id": 3,
509
- "name": "new XyoSchemaNameValidator",
510
- "kind": 16384,
511
- "kindString": "Constructor signature",
676
+ "name": "all",
677
+ "kind": 2048,
678
+ "kindString": "Method",
512
679
  "flags": {},
513
- "parameters": [
680
+ "sources": [
681
+ {
682
+ "fileName": "payload/packages/validator/src/Validator.ts",
683
+ "line": 5,
684
+ "character": 2,
685
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L5"
686
+ }
687
+ ],
688
+ "signatures": [
514
689
  {
515
690
  "id": 4,
516
- "name": "schema",
517
- "kind": 32768,
518
- "kindString": "Parameter",
519
- "flags": {
520
- "isOptional": true
521
- },
691
+ "name": "all",
692
+ "kind": 4096,
693
+ "kindString": "Call signature",
694
+ "flags": {},
522
695
  "type": {
523
- "type": "intrinsic",
524
- "name": "string"
696
+ "type": "array",
697
+ "elementType": {
698
+ "type": "reference",
699
+ "name": "Error",
700
+ "qualifiedName": "Error",
701
+ "package": "typescript"
702
+ }
525
703
  }
526
704
  }
527
- ],
528
- "type": {
529
- "type": "reference",
530
- "id": 1,
531
- "name": "XyoSchemaNameValidator"
532
- }
533
- }
534
- ]
535
- },
536
- {
537
- "id": 6,
538
- "name": "_parts",
539
- "kind": 1024,
540
- "kindString": "Property",
541
- "flags": {
542
- "isPrivate": true,
543
- "isOptional": true
544
- },
545
- "sources": [
546
- {
547
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
548
- "line": 8,
549
- "character": 10,
550
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L8"
705
+ ]
551
706
  }
552
707
  ],
553
- "type": {
554
- "type": "array",
555
- "elementType": {
556
- "type": "intrinsic",
557
- "name": "string"
558
- }
559
- }
560
- },
561
- {
562
- "id": 7,
563
- "name": "_rootDomain",
564
- "kind": 1024,
565
- "kindString": "Property",
566
- "flags": {
567
- "isPrivate": true,
568
- "isOptional": true
569
- },
570
- "sources": [
708
+ "groups": [
571
709
  {
572
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
573
- "line": 9,
574
- "character": 10,
575
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L9"
710
+ "title": "Methods",
711
+ "children": [
712
+ 3
713
+ ]
576
714
  }
577
715
  ],
578
- "type": {
579
- "type": "intrinsic",
580
- "name": "string"
581
- }
582
- },
583
- {
584
- "id": 5,
585
- "name": "schema",
586
- "kind": 1024,
587
- "kindString": "Property",
588
- "flags": {
589
- "isPublic": true,
590
- "isOptional": true
591
- },
592
716
  "sources": [
593
717
  {
594
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
595
- "line": 7,
596
- "character": 9,
597
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L7"
718
+ "fileName": "payload/packages/validator/src/Validator.ts",
719
+ "line": 4,
720
+ "character": 27,
721
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4"
598
722
  }
599
- ],
600
- "type": {
601
- "type": "intrinsic",
602
- "name": "string"
603
- }
604
- },
723
+ ]
724
+ }
725
+ }
726
+ },
727
+ {
728
+ "id": 5,
729
+ "name": "AllValidatorFactory",
730
+ "kind": 4194304,
731
+ "kindString": "Type alias",
732
+ "flags": {},
733
+ "sources": [
605
734
  {
606
- "id": 8,
607
- "name": "isLowercase",
608
- "kind": 262144,
609
- "kindString": "Accessor",
735
+ "fileName": "payload/packages/validator/src/Validator.ts",
736
+ "line": 8,
737
+ "character": 12,
738
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8"
739
+ }
740
+ ],
741
+ "type": {
742
+ "type": "reflection",
743
+ "declaration": {
744
+ "id": 6,
745
+ "name": "__type",
746
+ "kind": 65536,
747
+ "kindString": "Type literal",
610
748
  "flags": {},
611
749
  "sources": [
612
750
  {
613
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
614
- "line": 19,
615
- "character": 6,
616
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L19"
751
+ "fileName": "payload/packages/validator/src/Validator.ts",
752
+ "line": 8,
753
+ "character": 34,
754
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8"
617
755
  }
618
756
  ],
619
- "getSignature": {
620
- "id": 9,
621
- "name": "isLowercase",
622
- "kind": 524288,
623
- "kindString": "Get signature",
624
- "flags": {},
625
- "comment": {
626
- "summary": [
627
- {
628
- "kind": "text",
629
- "text": "Checks whether the schema is all lowercase"
630
- }
631
- ],
632
- "blockTags": [
633
- {
634
- "tag": "@returns",
635
- "content": [
636
- {
637
- "kind": "text",
638
- "text": "boolean"
639
- }
640
- ]
641
- }
642
- ]
643
- },
644
- "type": {
645
- "type": "intrinsic",
646
- "name": "boolean"
647
- }
648
- }
649
- },
650
- {
651
- "id": 10,
652
- "name": "levels",
653
- "kind": 262144,
654
- "kindString": "Accessor",
655
- "flags": {},
656
- "sources": [
757
+ "signatures": [
657
758
  {
658
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
659
- "line": 28,
660
- "character": 6,
661
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L28"
662
- }
663
- ],
664
- "getSignature": {
665
- "id": 11,
666
- "name": "levels",
667
- "kind": 524288,
668
- "kindString": "Get signature",
669
- "flags": {},
670
- "comment": {
671
- "summary": [
759
+ "id": 7,
760
+ "name": "__type",
761
+ "kind": 4096,
762
+ "kindString": "Call signature",
763
+ "flags": {},
764
+ "parameters": [
672
765
  {
673
- "kind": "text",
674
- "text": "Levels in the schema"
766
+ "id": 8,
767
+ "name": "schema",
768
+ "kind": 32768,
769
+ "kindString": "Parameter",
770
+ "flags": {},
771
+ "type": {
772
+ "type": "intrinsic",
773
+ "name": "string"
774
+ }
675
775
  }
676
776
  ],
677
- "blockTags": [
678
- {
679
- "tag": "@returns",
680
- "content": [
681
- {
682
- "kind": "text",
683
- "text": "number"
684
- }
685
- ]
686
- }
687
- ]
688
- },
689
- "type": {
690
- "type": "union",
691
- "types": [
692
- {
693
- "type": "intrinsic",
694
- "name": "undefined"
695
- },
696
- {
697
- "type": "intrinsic",
698
- "name": "number"
699
- }
700
- ]
701
- }
702
- }
703
- },
704
- {
705
- "id": 12,
706
- "name": "parts",
707
- "kind": 262144,
708
- "kindString": "Accessor",
709
- "flags": {},
710
- "sources": [
711
- {
712
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
713
- "line": 37,
714
- "character": 6,
715
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L37"
716
- }
717
- ],
718
- "getSignature": {
719
- "id": 13,
720
- "name": "parts",
721
- "kind": 524288,
722
- "kindString": "Get signature",
723
- "flags": {},
724
- "comment": {
725
- "summary": [
726
- {
727
- "kind": "text",
728
- "text": "The schema converted into a string array split on '.'"
729
- }
730
- ],
731
- "blockTags": [
732
- {
733
- "tag": "@returns",
734
- "content": [
735
- {
736
- "kind": "text",
737
- "text": "string[]"
738
- }
739
- ]
740
- }
741
- ]
742
- },
743
- "type": {
744
- "type": "union",
745
- "types": [
746
- {
747
- "type": "intrinsic",
748
- "name": "undefined"
749
- },
750
- {
751
- "type": "array",
752
- "elementType": {
753
- "type": "intrinsic",
754
- "name": "string"
755
- }
756
- }
757
- ]
758
- }
759
- }
760
- },
761
- {
762
- "id": 14,
763
- "name": "rootDomain",
764
- "kind": 262144,
765
- "kindString": "Accessor",
766
- "flags": {},
767
- "sources": [
768
- {
769
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
770
- "line": 49,
771
- "character": 6,
772
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L49"
773
- }
774
- ],
775
- "getSignature": {
776
- "id": 15,
777
- "name": "rootDomain",
778
- "kind": 524288,
779
- "kindString": "Get signature",
780
- "flags": {},
781
- "comment": {
782
- "summary": [
783
- {
784
- "kind": "text",
785
- "text": "The rootDomain is the first two levels of the schema, in reverse order\nThis can be used to determine who 'owns' that schema, based on domain\nregistration"
786
- }
787
- ],
788
- "blockTags": [
789
- {
790
- "tag": "@returns",
791
- "content": [
792
- {
793
- "kind": "text",
794
- "text": "string"
795
- }
796
- ]
797
- }
798
- ]
799
- },
800
- "type": {
801
- "type": "union",
802
- "types": [
803
- {
804
- "type": "intrinsic",
805
- "name": "undefined"
806
- },
807
- {
808
- "type": "intrinsic",
809
- "name": "string"
810
- }
811
- ]
812
- }
813
- }
814
- },
815
- {
816
- "id": 16,
817
- "name": "all",
818
- "kind": 2048,
819
- "kindString": "Method",
820
- "flags": {
821
- "isPublic": true
822
- },
823
- "sources": [
824
- {
825
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
826
- "line": 59,
827
- "character": 9,
828
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L59"
829
- }
830
- ],
831
- "signatures": [
832
- {
833
- "id": 17,
834
- "name": "all",
835
- "kind": 4096,
836
- "kindString": "Call signature",
837
- "flags": {},
838
- "comment": {
839
- "summary": [
840
- {
841
- "kind": "text",
842
- "text": "Run all static validations"
843
- }
844
- ],
845
- "blockTags": [
846
- {
847
- "tag": "@returns",
848
- "content": [
849
- {
850
- "kind": "text",
851
- "text": "Error[]"
852
- }
853
- ]
854
- }
855
- ]
856
- },
857
- "type": {
858
- "type": "array",
859
- "elementType": {
860
- "type": "reference",
861
- "name": "Error",
862
- "qualifiedName": "Error",
863
- "package": "typescript"
864
- }
865
- }
866
- }
867
- ]
868
- },
869
- {
870
- "id": 18,
871
- "name": "allDynamic",
872
- "kind": 2048,
873
- "kindString": "Method",
874
- "flags": {
875
- "isPublic": true
876
- },
877
- "sources": [
878
- {
879
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
880
- "line": 73,
881
- "character": 15,
882
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L73"
883
- }
884
- ],
885
- "signatures": [
886
- {
887
- "id": 19,
888
- "name": "allDynamic",
889
- "kind": 4096,
890
- "kindString": "Call signature",
891
- "flags": {},
892
- "comment": {
893
- "summary": [
894
- {
895
- "kind": "text",
896
- "text": "Run all the validations"
897
- }
898
- ],
899
- "blockTags": [
900
- {
901
- "tag": "@returns",
902
- "content": [
903
- {
904
- "kind": "text",
905
- "text": "Error[]"
906
- }
907
- ]
908
- }
909
- ]
910
- },
911
777
  "type": {
912
778
  "type": "reference",
913
- "typeArguments": [
914
- {
915
- "type": "array",
916
- "elementType": {
917
- "type": "reference",
918
- "name": "Error",
919
- "qualifiedName": "Error",
920
- "package": "typescript"
921
- }
922
- }
923
- ],
924
- "name": "Promise",
925
- "qualifiedName": "Promise",
926
- "package": "typescript"
927
- }
928
- }
929
- ]
930
- },
931
- {
932
- "id": 20,
933
- "name": "domainExistenceDepth",
934
- "kind": 2048,
935
- "kindString": "Method",
936
- "flags": {
937
- "isPublic": true
938
- },
939
- "sources": [
940
- {
941
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
942
- "line": 86,
943
- "character": 15,
944
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L86"
945
- }
946
- ],
947
- "signatures": [
948
- {
949
- "id": 21,
950
- "name": "domainExistenceDepth",
951
- "kind": 4096,
952
- "kindString": "Call signature",
953
- "flags": {},
954
- "comment": {
955
- "summary": [
956
- {
957
- "kind": "text",
958
- "text": "Determines how many levels of the schema's reverse domain\npass DNS resolution"
959
- }
960
- ],
961
- "blockTags": [
962
- {
963
- "tag": "@returns",
964
- "content": [
965
- {
966
- "kind": "text",
967
- "text": "number (0 if none exist)"
968
- }
969
- ]
970
- }
971
- ]
972
- },
973
- "type": {
974
- "type": "reference",
975
- "typeArguments": [
976
- {
977
- "type": "intrinsic",
978
- "name": "number"
979
- }
980
- ],
981
- "name": "Promise",
982
- "qualifiedName": "Promise",
983
- "package": "typescript"
984
- }
985
- }
986
- ]
987
- },
988
- {
989
- "id": 24,
990
- "name": "domainLevel",
991
- "kind": 2048,
992
- "kindString": "Method",
993
- "flags": {
994
- "isPrivate": true
995
- },
996
- "sources": [
997
- {
998
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
999
- "line": 114,
1000
- "character": 10,
1001
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L114"
1002
- }
1003
- ],
1004
- "signatures": [
1005
- {
1006
- "id": 25,
1007
- "name": "domainLevel",
1008
- "kind": 4096,
1009
- "kindString": "Call signature",
1010
- "flags": {},
1011
- "comment": {
1012
- "summary": [
1013
- {
1014
- "kind": "text",
1015
- "text": "Get a domain for the schema at a certain level"
1016
- }
1017
- ],
1018
- "blockTags": [
1019
- {
1020
- "tag": "@returns",
1021
- "content": [
1022
- {
1023
- "kind": "text",
1024
- "text": "string"
1025
- }
1026
- ]
1027
- }
1028
- ]
1029
- },
1030
- "parameters": [
1031
- {
1032
- "id": 26,
1033
- "name": "level",
1034
- "kind": 32768,
1035
- "kindString": "Parameter",
1036
- "flags": {},
1037
- "comment": {
1038
- "summary": [
1039
- {
1040
- "kind": "text",
1041
- "text": "Zero based level to check"
1042
- }
1043
- ]
1044
- },
1045
- "type": {
1046
- "type": "intrinsic",
1047
- "name": "number"
1048
- }
1049
- }
1050
- ],
1051
- "type": {
1052
- "type": "union",
1053
- "types": [
1054
- {
1055
- "type": "intrinsic",
1056
- "name": "undefined"
1057
- },
1058
- {
1059
- "type": "intrinsic",
1060
- "name": "string"
1061
- }
1062
- ]
1063
- }
1064
- }
1065
- ]
1066
- },
1067
- {
1068
- "id": 22,
1069
- "name": "rootDomainExists",
1070
- "kind": 2048,
1071
- "kindString": "Method",
1072
- "flags": {
1073
- "isPublic": true
1074
- },
1075
- "sources": [
1076
- {
1077
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
1078
- "line": 103,
1079
- "character": 15,
1080
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L103"
1081
- }
1082
- ],
1083
- "signatures": [
1084
- {
1085
- "id": 23,
1086
- "name": "rootDomainExists",
1087
- "kind": 4096,
1088
- "kindString": "Call signature",
1089
- "flags": {},
1090
- "comment": {
1091
- "summary": [
1092
- {
1093
- "kind": "text",
1094
- "text": "Checks if the root domain validates via DNS resolution"
1095
- }
1096
- ],
1097
- "blockTags": [
1098
- {
1099
- "tag": "@returns",
1100
- "content": [
1101
- {
1102
- "kind": "text",
1103
- "text": "boolean"
1104
- }
1105
- ]
1106
- }
1107
- ]
1108
- },
1109
- "type": {
1110
- "type": "reference",
1111
- "typeArguments": [
1112
- {
1113
- "type": "intrinsic",
1114
- "name": "boolean"
1115
- }
1116
- ],
1117
- "name": "Promise",
1118
- "qualifiedName": "Promise",
1119
- "package": "typescript"
779
+ "id": 1,
780
+ "name": "AllValidator"
1120
781
  }
1121
782
  }
1122
783
  ]
1123
784
  }
1124
- ],
1125
- "groups": [
1126
- {
1127
- "title": "Constructors",
1128
- "children": [
1129
- 2
1130
- ]
1131
- },
1132
- {
1133
- "title": "Properties",
1134
- "children": [
1135
- 6,
1136
- 7,
1137
- 5
1138
- ]
1139
- },
1140
- {
1141
- "title": "Accessors",
1142
- "children": [
1143
- 8,
1144
- 10,
1145
- 12,
1146
- 14
1147
- ]
1148
- },
1149
- {
1150
- "title": "Methods",
1151
- "children": [
1152
- 16,
1153
- 18,
1154
- 20,
1155
- 24,
1156
- 22
1157
- ]
1158
- }
1159
- ],
1160
- "sources": [
1161
- {
1162
- "fileName": "payload/packages/validator/src/SchemaNameValidator.ts",
1163
- "line": 6,
1164
- "character": 13,
1165
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L6"
1166
- }
1167
- ]
785
+ }
1168
786
  }
1169
787
  ],
1170
788
  "groups": [
1171
789
  {
1172
790
  "title": "Classes",
1173
791
  "children": [
1174
- 27,
1175
- 1
792
+ 9
793
+ ]
794
+ },
795
+ {
796
+ "title": "Type Aliases",
797
+ "children": [
798
+ 1,
799
+ 5
1176
800
  ]
1177
801
  }
1178
802
  ],
@@ -1181,7 +805,7 @@
1181
805
  "fileName": "payload/packages/validator/src/index.ts",
1182
806
  "line": 1,
1183
807
  "character": 0,
1184
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/40f316a9a/packages/protocol/packages/payload/packages/validator/src/index.ts#L1"
808
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/12ad73647/packages/protocol/packages/payload/packages/validator/src/index.ts#L1"
1185
809
  }
1186
810
  ]
1187
811
  }