@xyo-network/payload-validator 2.42.15 → 2.42.17

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 (43) hide show
  1. package/dist/cjs/{Validator/Validator.d.ts → Validator.d.ts} +7 -2
  2. package/dist/cjs/Validator.d.ts.map +1 -0
  3. package/dist/cjs/{Validator/Validator.js → Validator.js} +10 -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 +241 -706
  10. package/dist/esm/{Validator/Validator.d.ts → Validator.d.ts} +7 -2
  11. package/dist/esm/Validator.d.ts.map +1 -0
  12. package/dist/esm/{Validator/Validator.js → Validator.js} +9 -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 +4 -5
  19. package/src/{Validator/Validator.spec.ts → Validator.spec.ts} +0 -0
  20. package/src/{Validator/Validator.ts → Validator.ts} +17 -4
  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.map +0 -1
  27. package/dist/cjs/Validator/Validator.js.map +0 -1
  28. package/dist/cjs/Validator/index.d.ts +0 -2
  29. package/dist/cjs/Validator/index.d.ts.map +0 -1
  30. package/dist/cjs/Validator/index.js +0 -5
  31. package/dist/cjs/Validator/index.js.map +0 -1
  32. package/dist/esm/SchemaNameValidator.d.ts +0 -68
  33. package/dist/esm/SchemaNameValidator.d.ts.map +0 -1
  34. package/dist/esm/SchemaNameValidator.js +0 -114
  35. package/dist/esm/SchemaNameValidator.js.map +0 -1
  36. package/dist/esm/Validator/Validator.d.ts.map +0 -1
  37. package/dist/esm/Validator/Validator.js.map +0 -1
  38. package/dist/esm/Validator/index.d.ts +0 -2
  39. package/dist/esm/Validator/index.d.ts.map +0 -1
  40. package/dist/esm/Validator/index.js +0 -2
  41. package/dist/esm/Validator/index.js.map +0 -1
  42. package/src/SchemaNameValidator.ts +0 -120
  43. 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": 8,
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": 13,
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": 15,
26
26
  "character": 2,
27
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/632d43894/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L9"
27
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L15"
28
28
  }
29
29
  ],
30
30
  "signatures": [
31
31
  {
32
- "id": 29,
32
+ "id": 14,
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": 19,
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": 15,
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": 16,
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
+ 16
88
88
  ]
89
89
  }
90
90
  ],
@@ -113,14 +113,14 @@
113
113
  {
114
114
  "type": "reflection",
115
115
  "declaration": {
116
- "id": 32,
116
+ "id": 17,
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": 18,
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
+ 18
146
146
  ]
147
147
  }
148
148
  ],
@@ -161,25 +161,25 @@
161
161
  ],
162
162
  "parameters": [
163
163
  {
164
- "id": 35,
164
+ "id": 20,
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": 19,
172
172
  "name": "T"
173
173
  }
174
174
  }
175
175
  ],
176
176
  "type": {
177
177
  "type": "reference",
178
- "id": 27,
178
+ "id": 8,
179
179
  "typeArguments": [
180
180
  {
181
181
  "type": "reference",
182
- "id": 34,
182
+ "id": 19,
183
183
  "name": "T"
184
184
  }
185
185
  ],
@@ -197,7 +197,7 @@
197
197
  }
198
198
  },
199
199
  {
200
- "id": 36,
200
+ "id": 21,
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": 13,
212
212
  "character": 10,
213
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/632d43894/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L7"
213
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L13"
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": 28,
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": 19,
240
240
  "name": "T"
241
241
  },
242
242
  "inheritedFrom": {
@@ -245,34 +245,76 @@
245
245
  }
246
246
  },
247
247
  {
248
- "id": 37,
248
+ "id": 9,
249
+ "name": "schemaNameValidatorFactory",
250
+ "kind": 1024,
251
+ "kindString": "Property",
252
+ "flags": {
253
+ "isPrivate": true,
254
+ "isStatic": true
255
+ },
256
+ "sources": [
257
+ {
258
+ "fileName": "payload/packages/validator/src/Validator.ts",
259
+ "line": 11,
260
+ "character": 17,
261
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L11"
262
+ }
263
+ ],
264
+ "type": {
265
+ "type": "union",
266
+ "types": [
267
+ {
268
+ "type": "literal",
269
+ "value": null
270
+ },
271
+ {
272
+ "type": "reference",
273
+ "id": 5,
274
+ "name": "AllValidatorFactory"
275
+ }
276
+ ]
277
+ },
278
+ "defaultValue": "null"
279
+ },
280
+ {
281
+ "id": 22,
249
282
  "name": "schemaValidator",
250
283
  "kind": 262144,
251
284
  "kindString": "Accessor",
252
285
  "flags": {},
253
286
  "sources": [
254
287
  {
255
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
256
- "line": 13,
288
+ "fileName": "payload/packages/validator/src/Validator.ts",
289
+ "line": 19,
257
290
  "character": 6,
258
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/632d43894/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L13"
291
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L19"
259
292
  }
260
293
  ],
261
294
  "getSignature": {
262
- "id": 38,
295
+ "id": 23,
263
296
  "name": "schemaValidator",
264
297
  "kind": 524288,
265
298
  "kindString": "Get signature",
266
299
  "flags": {},
267
300
  "type": {
268
- "type": "reference",
269
- "id": 1,
270
- "name": "XyoSchemaNameValidator"
301
+ "type": "union",
302
+ "types": [
303
+ {
304
+ "type": "intrinsic",
305
+ "name": "undefined"
306
+ },
307
+ {
308
+ "type": "reference",
309
+ "id": 1,
310
+ "name": "AllValidator"
311
+ }
312
+ ]
271
313
  }
272
314
  }
273
315
  },
274
316
  {
275
- "id": 44,
317
+ "id": 29,
276
318
  "name": "stringKeyObj",
277
319
  "kind": 262144,
278
320
  "kindString": "Accessor",
@@ -287,7 +329,7 @@
287
329
  }
288
330
  ],
289
331
  "getSignature": {
290
- "id": 45,
332
+ "id": 30,
291
333
  "name": "stringKeyObj",
292
334
  "kind": 524288,
293
335
  "kindString": "Get signature",
@@ -307,7 +349,7 @@
307
349
  }
308
350
  },
309
351
  {
310
- "id": 39,
352
+ "id": 24,
311
353
  "name": "schemaName",
312
354
  "kind": 2048,
313
355
  "kindString": "Method",
@@ -316,15 +358,15 @@
316
358
  },
317
359
  "sources": [
318
360
  {
319
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
320
- "line": 18,
361
+ "fileName": "payload/packages/validator/src/Validator.ts",
362
+ "line": 31,
321
363
  "character": 9,
322
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/632d43894/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L18"
364
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L31"
323
365
  }
324
366
  ],
325
367
  "signatures": [
326
368
  {
327
- "id": 40,
369
+ "id": 25,
328
370
  "name": "schemaName",
329
371
  "kind": 4096,
330
372
  "kindString": "Call signature",
@@ -342,7 +384,7 @@
342
384
  ]
343
385
  },
344
386
  {
345
- "id": 41,
387
+ "id": 26,
346
388
  "name": "validate",
347
389
  "kind": 2048,
348
390
  "kindString": "Method",
@@ -351,15 +393,15 @@
351
393
  },
352
394
  "sources": [
353
395
  {
354
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
355
- "line": 28,
396
+ "fileName": "payload/packages/validator/src/Validator.ts",
397
+ "line": 41,
356
398
  "character": 9,
357
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/632d43894/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L28"
399
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L41"
358
400
  }
359
401
  ],
360
402
  "signatures": [
361
403
  {
362
- "id": 42,
404
+ "id": 27,
363
405
  "name": "validate",
364
406
  "kind": 4096,
365
407
  "kindString": "Call signature",
@@ -391,48 +433,104 @@
391
433
  "type": "reference",
392
434
  "name": "Validator.validate"
393
435
  }
436
+ },
437
+ {
438
+ "id": 10,
439
+ "name": "setSchemaNameValidatorFactory",
440
+ "kind": 2048,
441
+ "kindString": "Method",
442
+ "flags": {
443
+ "isPublic": true,
444
+ "isStatic": true
445
+ },
446
+ "sources": [
447
+ {
448
+ "fileName": "payload/packages/validator/src/Validator.ts",
449
+ "line": 27,
450
+ "character": 16,
451
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L27"
452
+ }
453
+ ],
454
+ "signatures": [
455
+ {
456
+ "id": 11,
457
+ "name": "setSchemaNameValidatorFactory",
458
+ "kind": 4096,
459
+ "kindString": "Call signature",
460
+ "flags": {},
461
+ "parameters": [
462
+ {
463
+ "id": 12,
464
+ "name": "factory",
465
+ "kind": 32768,
466
+ "kindString": "Parameter",
467
+ "flags": {},
468
+ "type": {
469
+ "type": "union",
470
+ "types": [
471
+ {
472
+ "type": "literal",
473
+ "value": null
474
+ },
475
+ {
476
+ "type": "reference",
477
+ "id": 5,
478
+ "name": "AllValidatorFactory"
479
+ }
480
+ ]
481
+ }
482
+ }
483
+ ],
484
+ "type": {
485
+ "type": "intrinsic",
486
+ "name": "void"
487
+ }
488
+ }
489
+ ]
394
490
  }
395
491
  ],
396
492
  "groups": [
397
493
  {
398
494
  "title": "Constructors",
399
495
  "children": [
400
- 28
496
+ 13
401
497
  ]
402
498
  },
403
499
  {
404
500
  "title": "Properties",
405
501
  "children": [
406
- 36,
407
- 43
502
+ 21,
503
+ 28,
504
+ 9
408
505
  ]
409
506
  },
410
507
  {
411
508
  "title": "Accessors",
412
509
  "children": [
413
- 37,
414
- 44
510
+ 22,
511
+ 29
415
512
  ]
416
513
  },
417
514
  {
418
515
  "title": "Methods",
419
516
  "children": [
420
- 39,
421
- 41
517
+ 24,
518
+ 26,
519
+ 10
422
520
  ]
423
521
  }
424
522
  ],
425
523
  "sources": [
426
524
  {
427
- "fileName": "payload/packages/validator/src/Validator/Validator.ts",
428
- "line": 6,
525
+ "fileName": "payload/packages/validator/src/Validator.ts",
526
+ "line": 10,
429
527
  "character": 13,
430
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/632d43894/packages/protocol/packages/payload/packages/validator/src/Validator/Validator.ts#L6"
528
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L10"
431
529
  }
432
530
  ],
433
531
  "typeParameters": [
434
532
  {
435
- "id": 46,
533
+ "id": 31,
436
534
  "name": "T",
437
535
  "kind": 131072,
438
536
  "kindString": "Type parameter",
@@ -453,7 +551,7 @@
453
551
  "typeArguments": [
454
552
  {
455
553
  "type": "reference",
456
- "id": 34,
554
+ "id": 19,
457
555
  "name": "T"
458
556
  }
459
557
  ],
@@ -466,7 +564,7 @@
466
564
  "typeArguments": [
467
565
  {
468
566
  "type": "reference",
469
- "id": 34,
567
+ "id": 19,
470
568
  "name": "T"
471
569
  }
472
570
  ],
@@ -476,442 +574,49 @@
476
574
  },
477
575
  {
478
576
  "id": 1,
479
- "name": "XyoSchemaNameValidator",
480
- "kind": 128,
481
- "kindString": "Class",
577
+ "name": "AllValidator",
578
+ "kind": 4194304,
579
+ "kindString": "Type alias",
482
580
  "flags": {},
483
- "comment": {
484
- "summary": [
485
- {
486
- "kind": "text",
487
- "text": "Validates a XYO schema structure and existence"
488
- }
489
- ]
490
- },
491
- "children": [
581
+ "sources": [
492
582
  {
583
+ "fileName": "payload/packages/validator/src/Validator.ts",
584
+ "line": 4,
585
+ "character": 12,
586
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4"
587
+ }
588
+ ],
589
+ "type": {
590
+ "type": "reflection",
591
+ "declaration": {
493
592
  "id": 2,
494
- "name": "constructor",
495
- "kind": 512,
496
- "kindString": "Constructor",
593
+ "name": "__type",
594
+ "kind": 65536,
595
+ "kindString": "Type literal",
497
596
  "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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L10"
504
- }
505
- ],
506
- "signatures": [
597
+ "children": [
507
598
  {
508
599
  "id": 3,
509
- "name": "new XyoSchemaNameValidator",
510
- "kind": 16384,
511
- "kindString": "Constructor signature",
600
+ "name": "all",
601
+ "kind": 2048,
602
+ "kindString": "Method",
512
603
  "flags": {},
513
- "parameters": [
604
+ "sources": [
514
605
  {
515
- "id": 4,
516
- "name": "schema",
517
- "kind": 32768,
518
- "kindString": "Parameter",
519
- "flags": {
520
- "isOptional": true
521
- },
522
- "type": {
523
- "type": "intrinsic",
524
- "name": "string"
525
- }
606
+ "fileName": "payload/packages/validator/src/Validator.ts",
607
+ "line": 5,
608
+ "character": 2,
609
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L5"
526
610
  }
527
611
  ],
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L8"
551
- }
552
- ],
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": [
571
- {
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L9"
576
- }
577
- ],
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
- "sources": [
593
- {
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L7"
598
- }
599
- ],
600
- "type": {
601
- "type": "intrinsic",
602
- "name": "string"
603
- }
604
- },
605
- {
606
- "id": 8,
607
- "name": "isLowercase",
608
- "kind": 262144,
609
- "kindString": "Accessor",
610
- "flags": {},
611
- "sources": [
612
- {
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L19"
617
- }
618
- ],
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": [
657
- {
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/632d43894/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": [
672
- {
673
- "kind": "text",
674
- "text": "Levels in the schema"
675
- }
676
- ],
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
- },
612
+ "signatures": [
696
613
  {
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/632d43894/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/632d43894/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/632d43894/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/632d43894/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
- "type": {
912
- "type": "reference",
913
- "typeArguments": [
914
- {
614
+ "id": 4,
615
+ "name": "all",
616
+ "kind": 4096,
617
+ "kindString": "Call signature",
618
+ "flags": {},
619
+ "type": {
915
620
  "type": "array",
916
621
  "elementType": {
917
622
  "type": "reference",
@@ -920,259 +625,89 @@
920
625
  "package": "typescript"
921
626
  }
922
627
  }
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L86"
628
+ }
629
+ ]
945
630
  }
946
631
  ],
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": [
632
+ "groups": [
997
633
  {
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L114"
634
+ "title": "Methods",
635
+ "children": [
636
+ 3
637
+ ]
1002
638
  }
1003
639
  ],
1004
- "signatures": [
640
+ "sources": [
1005
641
  {
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
- }
642
+ "fileName": "payload/packages/validator/src/Validator.ts",
643
+ "line": 4,
644
+ "character": 27,
645
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4"
1064
646
  }
1065
647
  ]
1066
- },
648
+ }
649
+ }
650
+ },
651
+ {
652
+ "id": 5,
653
+ "name": "AllValidatorFactory",
654
+ "kind": 4194304,
655
+ "kindString": "Type alias",
656
+ "flags": {},
657
+ "sources": [
1067
658
  {
1068
- "id": 22,
1069
- "name": "rootDomainExists",
1070
- "kind": 2048,
1071
- "kindString": "Method",
1072
- "flags": {
1073
- "isPublic": true
1074
- },
659
+ "fileName": "payload/packages/validator/src/Validator.ts",
660
+ "line": 8,
661
+ "character": 12,
662
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8"
663
+ }
664
+ ],
665
+ "type": {
666
+ "type": "reflection",
667
+ "declaration": {
668
+ "id": 6,
669
+ "name": "__type",
670
+ "kind": 65536,
671
+ "kindString": "Type literal",
672
+ "flags": {},
1075
673
  "sources": [
1076
674
  {
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L103"
675
+ "fileName": "payload/packages/validator/src/Validator.ts",
676
+ "line": 8,
677
+ "character": 34,
678
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8"
1081
679
  }
1082
680
  ],
1083
681
  "signatures": [
1084
682
  {
1085
- "id": 23,
1086
- "name": "rootDomainExists",
683
+ "id": 7,
684
+ "name": "__type",
1087
685
  "kind": 4096,
1088
686
  "kindString": "Call signature",
1089
687
  "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
688
  "type": {
1110
689
  "type": "reference",
1111
- "typeArguments": [
1112
- {
1113
- "type": "intrinsic",
1114
- "name": "boolean"
1115
- }
1116
- ],
1117
- "name": "Promise",
1118
- "qualifiedName": "Promise",
1119
- "package": "typescript"
690
+ "id": 1,
691
+ "name": "AllValidator"
1120
692
  }
1121
693
  }
1122
694
  ]
1123
695
  }
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/632d43894/packages/protocol/packages/payload/packages/validator/src/SchemaNameValidator.ts#L6"
1166
- }
1167
- ]
696
+ }
1168
697
  }
1169
698
  ],
1170
699
  "groups": [
1171
700
  {
1172
701
  "title": "Classes",
1173
702
  "children": [
1174
- 27,
1175
- 1
703
+ 8
704
+ ]
705
+ },
706
+ {
707
+ "title": "Type Aliases",
708
+ "children": [
709
+ 1,
710
+ 5
1176
711
  ]
1177
712
  }
1178
713
  ],
@@ -1181,7 +716,7 @@
1181
716
  "fileName": "payload/packages/validator/src/index.ts",
1182
717
  "line": 1,
1183
718
  "character": 0,
1184
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/632d43894/packages/protocol/packages/payload/packages/validator/src/index.ts#L1"
719
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c269dbc10/packages/protocol/packages/payload/packages/validator/src/index.ts#L1"
1185
720
  }
1186
721
  ]
1187
722
  }