@kubun/protocol 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/models/cluster.d.ts +177 -0
- package/lib/models/cluster.d.ts.map +1 -1
- package/lib/models/document.d.ts +518 -0
- package/lib/models/document.d.ts.map +1 -1
- package/lib/models/json-schema.d.ts +181 -0
- package/lib/models/json-schema.d.ts.map +1 -1
- package/lib/models/json-schema.js +44 -1
- package/lib/services/graph.d.ts +674 -6
- package/lib/services/graph.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/models/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,gBAAgB,CAAA;AAKxD,eAAO,MAAM,oBAAoB;;;CAA6D,CAAA;AAE9F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAMH,CAAA;AAC3B,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAErE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAGJ,CAAA;AAC3B,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEtE,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/models/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,gBAAgB,CAAA;AAKxD,eAAO,MAAM,oBAAoB;;;CAA6D,CAAA;AAE9F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAMH,CAAA;AAC3B,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAErE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAGJ,CAAA;AAC3B,MAAM,MAAM,kBAAkB,GAAG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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF,CAAA;AAC3B,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAElE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -56,6 +56,27 @@ export declare const numberModel: {
|
|
|
56
56
|
readonly additionalProperties: false;
|
|
57
57
|
};
|
|
58
58
|
export type NumberModel = FromSchema<typeof numberModel>;
|
|
59
|
+
export declare const stringConstModel: {
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly type: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly const: "string";
|
|
65
|
+
};
|
|
66
|
+
readonly title: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
readonly const: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
};
|
|
72
|
+
readonly default: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly required: readonly ["type", "title", "const"];
|
|
77
|
+
readonly additionalProperties: false;
|
|
78
|
+
};
|
|
79
|
+
export type StringConstModel = FromSchema<typeof stringConstModel>;
|
|
59
80
|
export declare const stringEnumModel: {
|
|
60
81
|
readonly type: "object";
|
|
61
82
|
readonly properties: {
|
|
@@ -98,6 +119,18 @@ export declare const stringFormatModel: {
|
|
|
98
119
|
readonly type: "string";
|
|
99
120
|
readonly enum: readonly ["date", "date-time", "duration", "time", "uri"];
|
|
100
121
|
};
|
|
122
|
+
readonly title: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
};
|
|
125
|
+
readonly default: {
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
};
|
|
128
|
+
readonly minLength: {
|
|
129
|
+
readonly type: "integer";
|
|
130
|
+
};
|
|
131
|
+
readonly maxLength: {
|
|
132
|
+
readonly type: "integer";
|
|
133
|
+
};
|
|
101
134
|
};
|
|
102
135
|
readonly required: readonly ["type", "format"];
|
|
103
136
|
readonly additionalProperties: false;
|
|
@@ -132,6 +165,25 @@ export declare const stringCustomModel: {
|
|
|
132
165
|
export type StringCustomModel = FromSchema<typeof stringCustomModel>;
|
|
133
166
|
export declare const stringModel: {
|
|
134
167
|
readonly anyOf: readonly [{
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly properties: {
|
|
170
|
+
readonly type: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
readonly const: "string";
|
|
173
|
+
};
|
|
174
|
+
readonly title: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
};
|
|
177
|
+
readonly const: {
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
};
|
|
180
|
+
readonly default: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly required: readonly ["type", "title", "const"];
|
|
185
|
+
readonly additionalProperties: false;
|
|
186
|
+
}, {
|
|
135
187
|
readonly type: "object";
|
|
136
188
|
readonly properties: {
|
|
137
189
|
readonly type: {
|
|
@@ -191,6 +243,18 @@ export declare const stringModel: {
|
|
|
191
243
|
readonly type: "string";
|
|
192
244
|
readonly enum: readonly ["date", "date-time", "duration", "time", "uri"];
|
|
193
245
|
};
|
|
246
|
+
readonly title: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
};
|
|
249
|
+
readonly default: {
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
};
|
|
252
|
+
readonly minLength: {
|
|
253
|
+
readonly type: "integer";
|
|
254
|
+
};
|
|
255
|
+
readonly maxLength: {
|
|
256
|
+
readonly type: "integer";
|
|
257
|
+
};
|
|
194
258
|
};
|
|
195
259
|
readonly required: readonly ["type", "format"];
|
|
196
260
|
readonly additionalProperties: false;
|
|
@@ -251,6 +315,25 @@ export declare const scalarModel: {
|
|
|
251
315
|
readonly additionalProperties: false;
|
|
252
316
|
}, {
|
|
253
317
|
readonly anyOf: readonly [{
|
|
318
|
+
readonly type: "object";
|
|
319
|
+
readonly properties: {
|
|
320
|
+
readonly type: {
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
readonly const: "string";
|
|
323
|
+
};
|
|
324
|
+
readonly title: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
};
|
|
327
|
+
readonly const: {
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
};
|
|
330
|
+
readonly default: {
|
|
331
|
+
readonly type: "string";
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
readonly required: readonly ["type", "title", "const"];
|
|
335
|
+
readonly additionalProperties: false;
|
|
336
|
+
}, {
|
|
254
337
|
readonly type: "object";
|
|
255
338
|
readonly properties: {
|
|
256
339
|
readonly type: {
|
|
@@ -310,6 +393,18 @@ export declare const scalarModel: {
|
|
|
310
393
|
readonly type: "string";
|
|
311
394
|
readonly enum: readonly ["date", "date-time", "duration", "time", "uri"];
|
|
312
395
|
};
|
|
396
|
+
readonly title: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
};
|
|
399
|
+
readonly default: {
|
|
400
|
+
readonly type: "string";
|
|
401
|
+
};
|
|
402
|
+
readonly minLength: {
|
|
403
|
+
readonly type: "integer";
|
|
404
|
+
};
|
|
405
|
+
readonly maxLength: {
|
|
406
|
+
readonly type: "integer";
|
|
407
|
+
};
|
|
313
408
|
};
|
|
314
409
|
readonly required: readonly ["type", "format"];
|
|
315
410
|
readonly additionalProperties: false;
|
|
@@ -356,6 +451,12 @@ export declare const arrayModel: {
|
|
|
356
451
|
readonly uniqueItems: {
|
|
357
452
|
readonly type: "boolean";
|
|
358
453
|
};
|
|
454
|
+
readonly minItems: {
|
|
455
|
+
readonly type: "integer";
|
|
456
|
+
};
|
|
457
|
+
readonly maxItems: {
|
|
458
|
+
readonly type: "integer";
|
|
459
|
+
};
|
|
359
460
|
};
|
|
360
461
|
readonly required: readonly ["type", "title", "items"];
|
|
361
462
|
readonly additionalProperties: false;
|
|
@@ -463,6 +564,12 @@ export declare const shapeModel: {
|
|
|
463
564
|
readonly uniqueItems: {
|
|
464
565
|
readonly type: "boolean";
|
|
465
566
|
};
|
|
567
|
+
readonly minItems: {
|
|
568
|
+
readonly type: "integer";
|
|
569
|
+
};
|
|
570
|
+
readonly maxItems: {
|
|
571
|
+
readonly type: "integer";
|
|
572
|
+
};
|
|
466
573
|
};
|
|
467
574
|
readonly required: readonly ["type", "title", "items"];
|
|
468
575
|
readonly additionalProperties: false;
|
|
@@ -563,6 +670,25 @@ export declare const typeModel: {
|
|
|
563
670
|
readonly additionalProperties: false;
|
|
564
671
|
}, {
|
|
565
672
|
readonly anyOf: readonly [{
|
|
673
|
+
readonly type: "object";
|
|
674
|
+
readonly properties: {
|
|
675
|
+
readonly type: {
|
|
676
|
+
readonly type: "string";
|
|
677
|
+
readonly const: "string";
|
|
678
|
+
};
|
|
679
|
+
readonly title: {
|
|
680
|
+
readonly type: "string";
|
|
681
|
+
};
|
|
682
|
+
readonly const: {
|
|
683
|
+
readonly type: "string";
|
|
684
|
+
};
|
|
685
|
+
readonly default: {
|
|
686
|
+
readonly type: "string";
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
readonly required: readonly ["type", "title", "const"];
|
|
690
|
+
readonly additionalProperties: false;
|
|
691
|
+
}, {
|
|
566
692
|
readonly type: "object";
|
|
567
693
|
readonly properties: {
|
|
568
694
|
readonly type: {
|
|
@@ -622,6 +748,18 @@ export declare const typeModel: {
|
|
|
622
748
|
readonly type: "string";
|
|
623
749
|
readonly enum: readonly ["date", "date-time", "duration", "time", "uri"];
|
|
624
750
|
};
|
|
751
|
+
readonly title: {
|
|
752
|
+
readonly type: "string";
|
|
753
|
+
};
|
|
754
|
+
readonly default: {
|
|
755
|
+
readonly type: "string";
|
|
756
|
+
};
|
|
757
|
+
readonly minLength: {
|
|
758
|
+
readonly type: "integer";
|
|
759
|
+
};
|
|
760
|
+
readonly maxLength: {
|
|
761
|
+
readonly type: "integer";
|
|
762
|
+
};
|
|
625
763
|
};
|
|
626
764
|
readonly required: readonly ["type", "format"];
|
|
627
765
|
readonly additionalProperties: false;
|
|
@@ -652,6 +790,12 @@ export declare const typeModel: {
|
|
|
652
790
|
readonly uniqueItems: {
|
|
653
791
|
readonly type: "boolean";
|
|
654
792
|
};
|
|
793
|
+
readonly minItems: {
|
|
794
|
+
readonly type: "integer";
|
|
795
|
+
};
|
|
796
|
+
readonly maxItems: {
|
|
797
|
+
readonly type: "integer";
|
|
798
|
+
};
|
|
655
799
|
};
|
|
656
800
|
readonly required: readonly ["type", "title", "items"];
|
|
657
801
|
readonly additionalProperties: false;
|
|
@@ -755,6 +899,25 @@ export declare const referencesRecordModel: {
|
|
|
755
899
|
readonly additionalProperties: false;
|
|
756
900
|
}, {
|
|
757
901
|
readonly anyOf: readonly [{
|
|
902
|
+
readonly type: "object";
|
|
903
|
+
readonly properties: {
|
|
904
|
+
readonly type: {
|
|
905
|
+
readonly type: "string";
|
|
906
|
+
readonly const: "string";
|
|
907
|
+
};
|
|
908
|
+
readonly title: {
|
|
909
|
+
readonly type: "string";
|
|
910
|
+
};
|
|
911
|
+
readonly const: {
|
|
912
|
+
readonly type: "string";
|
|
913
|
+
};
|
|
914
|
+
readonly default: {
|
|
915
|
+
readonly type: "string";
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
readonly required: readonly ["type", "title", "const"];
|
|
919
|
+
readonly additionalProperties: false;
|
|
920
|
+
}, {
|
|
758
921
|
readonly type: "object";
|
|
759
922
|
readonly properties: {
|
|
760
923
|
readonly type: {
|
|
@@ -814,6 +977,18 @@ export declare const referencesRecordModel: {
|
|
|
814
977
|
readonly type: "string";
|
|
815
978
|
readonly enum: readonly ["date", "date-time", "duration", "time", "uri"];
|
|
816
979
|
};
|
|
980
|
+
readonly title: {
|
|
981
|
+
readonly type: "string";
|
|
982
|
+
};
|
|
983
|
+
readonly default: {
|
|
984
|
+
readonly type: "string";
|
|
985
|
+
};
|
|
986
|
+
readonly minLength: {
|
|
987
|
+
readonly type: "integer";
|
|
988
|
+
};
|
|
989
|
+
readonly maxLength: {
|
|
990
|
+
readonly type: "integer";
|
|
991
|
+
};
|
|
817
992
|
};
|
|
818
993
|
readonly required: readonly ["type", "format"];
|
|
819
994
|
readonly additionalProperties: false;
|
|
@@ -844,6 +1019,12 @@ export declare const referencesRecordModel: {
|
|
|
844
1019
|
readonly uniqueItems: {
|
|
845
1020
|
readonly type: "boolean";
|
|
846
1021
|
};
|
|
1022
|
+
readonly minItems: {
|
|
1023
|
+
readonly type: "integer";
|
|
1024
|
+
};
|
|
1025
|
+
readonly maxItems: {
|
|
1026
|
+
readonly type: "integer";
|
|
1027
|
+
};
|
|
847
1028
|
};
|
|
848
1029
|
readonly required: readonly ["type", "title", "items"];
|
|
849
1030
|
readonly additionalProperties: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../src/models/json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,gBAAgB,CAAA;AAExD,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAQE,CAAA;AAC3B,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AAE1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CAUE,CAAA;AAC3B,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AAE1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;CAUG,CAAA;AAC3B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../src/models/json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,gBAAgB,CAAA;AAExD,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAQE,CAAA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEK,CAAA;AAC3B,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEpD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGP,CAAA;AAC3B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -58,6 +58,30 @@ export const numberModel = {
|
|
|
58
58
|
],
|
|
59
59
|
additionalProperties: false
|
|
60
60
|
};
|
|
61
|
+
export const stringConstModel = {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {
|
|
64
|
+
type: {
|
|
65
|
+
type: 'string',
|
|
66
|
+
const: 'string'
|
|
67
|
+
},
|
|
68
|
+
title: {
|
|
69
|
+
type: 'string'
|
|
70
|
+
},
|
|
71
|
+
const: {
|
|
72
|
+
type: 'string'
|
|
73
|
+
},
|
|
74
|
+
default: {
|
|
75
|
+
type: 'string'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
required: [
|
|
79
|
+
'type',
|
|
80
|
+
'title',
|
|
81
|
+
'const'
|
|
82
|
+
],
|
|
83
|
+
additionalProperties: false
|
|
84
|
+
};
|
|
61
85
|
// Uppercase characters and "_" to match GraphQL enum
|
|
62
86
|
const enumString = {
|
|
63
87
|
type: 'string',
|
|
@@ -103,7 +127,19 @@ export const stringFormatModel = {
|
|
|
103
127
|
type: 'string',
|
|
104
128
|
const: 'string'
|
|
105
129
|
},
|
|
106
|
-
format: supportedStringFormat
|
|
130
|
+
format: supportedStringFormat,
|
|
131
|
+
title: {
|
|
132
|
+
type: 'string'
|
|
133
|
+
},
|
|
134
|
+
default: {
|
|
135
|
+
type: 'string'
|
|
136
|
+
},
|
|
137
|
+
minLength: {
|
|
138
|
+
type: 'integer'
|
|
139
|
+
},
|
|
140
|
+
maxLength: {
|
|
141
|
+
type: 'integer'
|
|
142
|
+
}
|
|
107
143
|
},
|
|
108
144
|
required: [
|
|
109
145
|
'type',
|
|
@@ -141,6 +177,7 @@ export const stringCustomModel = {
|
|
|
141
177
|
};
|
|
142
178
|
export const stringModel = {
|
|
143
179
|
anyOf: [
|
|
180
|
+
stringConstModel,
|
|
144
181
|
stringCustomModel,
|
|
145
182
|
stringEnumModel,
|
|
146
183
|
stringFormatModel
|
|
@@ -182,6 +219,12 @@ export const arrayModel = {
|
|
|
182
219
|
items: refModel,
|
|
183
220
|
uniqueItems: {
|
|
184
221
|
type: 'boolean'
|
|
222
|
+
},
|
|
223
|
+
minItems: {
|
|
224
|
+
type: 'integer'
|
|
225
|
+
},
|
|
226
|
+
maxItems: {
|
|
227
|
+
type: 'integer'
|
|
185
228
|
}
|
|
186
229
|
},
|
|
187
230
|
required: [
|