@kubun/protocol 0.2.3 → 0.2.5
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 +11 -10
- package/lib/models/cluster.d.ts.map +1 -1
- package/lib/models/cluster.js +54 -4
- package/lib/models/document.d.ts +14 -14
- package/lib/models/json-schema.d.ts +5 -5
- package/lib/models/json-schema.js +0 -1
- package/lib/services/graph.d.ts +18 -18
- package/package.json +1 -1
package/lib/models/cluster.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type SetDocumentModel = Omit<DocumentModel, 'version' | 'behavior' | 'int
|
|
|
8
8
|
behavior?: DocumentModelBehavior;
|
|
9
9
|
uniqueFields?: Array<string>;
|
|
10
10
|
interfaces?: Array<string>;
|
|
11
|
-
schema
|
|
11
|
+
schema?: JSONSchema.Object;
|
|
12
12
|
fieldsMeta?: DocumentFieldsMeta;
|
|
13
13
|
};
|
|
14
14
|
type JSONSchemaScalar = JSONSchema.Boolean | JSONSchema.Integer | JSONSchema.Number | JSONSchema.String;
|
|
@@ -43,10 +43,10 @@ export declare const validateDocumentModel: import("@enkaku/schema").Validator<{
|
|
|
43
43
|
max?: number | undefined;
|
|
44
44
|
type: "number";
|
|
45
45
|
} | {
|
|
46
|
+
title?: string | undefined;
|
|
46
47
|
default?: string | undefined;
|
|
47
48
|
type: "string";
|
|
48
49
|
const: string;
|
|
49
|
-
title: string;
|
|
50
50
|
} | {
|
|
51
51
|
maxLength?: number | undefined;
|
|
52
52
|
minLength?: number | undefined;
|
|
@@ -122,10 +122,10 @@ export declare const validateDocumentModel: import("@enkaku/schema").Validator<{
|
|
|
122
122
|
max?: number | undefined;
|
|
123
123
|
type: "number";
|
|
124
124
|
} | {
|
|
125
|
+
title?: string | undefined;
|
|
125
126
|
default?: string | undefined;
|
|
126
127
|
type: "string";
|
|
127
128
|
const: string;
|
|
128
|
-
title: string;
|
|
129
129
|
} | {
|
|
130
130
|
maxLength?: number | undefined;
|
|
131
131
|
minLength?: number | undefined;
|
|
@@ -201,10 +201,10 @@ export declare const validateDocumentModel: import("@enkaku/schema").Validator<{
|
|
|
201
201
|
max?: number | undefined;
|
|
202
202
|
type: "number";
|
|
203
203
|
} | {
|
|
204
|
+
title?: string | undefined;
|
|
204
205
|
default?: string | undefined;
|
|
205
206
|
type: "string";
|
|
206
207
|
const: string;
|
|
207
|
-
title: string;
|
|
208
208
|
} | {
|
|
209
209
|
maxLength?: number | undefined;
|
|
210
210
|
minLength?: number | undefined;
|
|
@@ -365,7 +365,7 @@ export declare const clusterModel: {
|
|
|
365
365
|
readonly type: "string";
|
|
366
366
|
};
|
|
367
367
|
};
|
|
368
|
-
readonly required: readonly ["type", "
|
|
368
|
+
readonly required: readonly ["type", "const"];
|
|
369
369
|
readonly additionalProperties: false;
|
|
370
370
|
}, {
|
|
371
371
|
readonly type: "object";
|
|
@@ -670,7 +670,7 @@ export declare const clusterModel: {
|
|
|
670
670
|
readonly type: "string";
|
|
671
671
|
};
|
|
672
672
|
};
|
|
673
|
-
readonly required: readonly ["type", "
|
|
673
|
+
readonly required: readonly ["type", "const"];
|
|
674
674
|
readonly additionalProperties: false;
|
|
675
675
|
}, {
|
|
676
676
|
readonly type: "object";
|
|
@@ -981,7 +981,7 @@ export declare const clusterModel: {
|
|
|
981
981
|
readonly type: "string";
|
|
982
982
|
};
|
|
983
983
|
};
|
|
984
|
-
readonly required: readonly ["type", "
|
|
984
|
+
readonly required: readonly ["type", "const"];
|
|
985
985
|
readonly additionalProperties: false;
|
|
986
986
|
}, {
|
|
987
987
|
readonly type: "object";
|
|
@@ -1236,10 +1236,10 @@ export declare const validateClusterModel: import("@enkaku/schema").Validator<{
|
|
|
1236
1236
|
max?: number | undefined;
|
|
1237
1237
|
type: "number";
|
|
1238
1238
|
} | {
|
|
1239
|
+
title?: string | undefined;
|
|
1239
1240
|
default?: string | undefined;
|
|
1240
1241
|
type: "string";
|
|
1241
1242
|
const: string;
|
|
1242
|
-
title: string;
|
|
1243
1243
|
} | {
|
|
1244
1244
|
maxLength?: number | undefined;
|
|
1245
1245
|
minLength?: number | undefined;
|
|
@@ -1315,10 +1315,10 @@ export declare const validateClusterModel: import("@enkaku/schema").Validator<{
|
|
|
1315
1315
|
max?: number | undefined;
|
|
1316
1316
|
type: "number";
|
|
1317
1317
|
} | {
|
|
1318
|
+
title?: string | undefined;
|
|
1318
1319
|
default?: string | undefined;
|
|
1319
1320
|
type: "string";
|
|
1320
1321
|
const: string;
|
|
1321
|
-
title: string;
|
|
1322
1322
|
} | {
|
|
1323
1323
|
maxLength?: number | undefined;
|
|
1324
1324
|
minLength?: number | undefined;
|
|
@@ -1394,10 +1394,10 @@ export declare const validateClusterModel: import("@enkaku/schema").Validator<{
|
|
|
1394
1394
|
max?: number | undefined;
|
|
1395
1395
|
type: "number";
|
|
1396
1396
|
} | {
|
|
1397
|
+
title?: string | undefined;
|
|
1397
1398
|
default?: string | undefined;
|
|
1398
1399
|
type: "string";
|
|
1399
1400
|
const: string;
|
|
1400
|
-
title: string;
|
|
1401
1401
|
} | {
|
|
1402
1402
|
maxLength?: number | undefined;
|
|
1403
1403
|
minLength?: number | undefined;
|
|
@@ -1458,6 +1458,7 @@ export declare class ClusterBuilder {
|
|
|
1458
1458
|
get cluster(): DocumentModelsCluster;
|
|
1459
1459
|
get length(): number;
|
|
1460
1460
|
build(): ClusterModel;
|
|
1461
|
+
get(id: DocumentModelID | string | number): DocumentModel;
|
|
1461
1462
|
add(inputModel: SetDocumentModel): DocumentModelID;
|
|
1462
1463
|
addAll(models: Array<SetDocumentModel>): Array<DocumentModelID>;
|
|
1463
1464
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../../src/models/cluster.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAA4C,MAAM,gBAAgB,CAAA;AAC1F,OAAO,EAAE,eAAe,EAAyD,MAAM,WAAW,CAAA;AAClG,O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;AAEjE,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,oBAAoB,CA0BzE;AAED,qBAAa,cAAc;;IAGzB,IAAI,OAAO,IAAI,qBAAqB,CAEnC;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,KAAK,IAAI,YAAY;IAgBrB,GAAG,CAAC,EAAE,EAAE,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa;IAmBzD,GAAG,CAAC,UAAU,EAAE,gBAAgB,GAAG,eAAe;IAmDlD,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC;CAOhE"}
|
package/lib/models/cluster.js
CHANGED
|
@@ -80,7 +80,7 @@ function normalizeDocumentSchema(schema) {
|
|
|
80
80
|
throw new Error('Document schema must contain at least one property');
|
|
81
81
|
}
|
|
82
82
|
const properties = {};
|
|
83
|
-
const refs = {};
|
|
83
|
+
const refs = schema.$defs ?? {};
|
|
84
84
|
for (const [key, value] of entries){
|
|
85
85
|
properties[key] = {
|
|
86
86
|
$ref: encodeSchema(refs, value)
|
|
@@ -181,15 +181,65 @@ export class ClusterBuilder {
|
|
|
181
181
|
record
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
+
get(id) {
|
|
185
|
+
let index;
|
|
186
|
+
if (typeof id === 'number') {
|
|
187
|
+
index = id;
|
|
188
|
+
} else {
|
|
189
|
+
const docID = typeof id === 'string' ? DocumentModelID.fromString(id) : id;
|
|
190
|
+
if (!docID.isLocal) {
|
|
191
|
+
throw new Error('Invalid DocumentModelID to access model in cluster: must be a local ID');
|
|
192
|
+
}
|
|
193
|
+
index = docID.index;
|
|
194
|
+
}
|
|
195
|
+
const model = this.#cluster[index];
|
|
196
|
+
if (model == null) {
|
|
197
|
+
throw new RangeError(`Invalid cluster index: ${index}`);
|
|
198
|
+
}
|
|
199
|
+
return model;
|
|
200
|
+
}
|
|
184
201
|
add(inputModel) {
|
|
202
|
+
const interfaceIDs = inputModel.interfaces ?? [];
|
|
203
|
+
const interfaces = new Set();
|
|
204
|
+
const schemaProperties = {};
|
|
205
|
+
const schemaReferences = {};
|
|
206
|
+
const schemaRequired = new Set();
|
|
207
|
+
const fieldsMeta = {};
|
|
208
|
+
// Add interface fields
|
|
209
|
+
for (const interfaceModel of interfaceIDs.map((id)=>this.get(id))){
|
|
210
|
+
for (const interfaceID of interfaceModel.interfaces){
|
|
211
|
+
interfaces.add(interfaceID);
|
|
212
|
+
}
|
|
213
|
+
for (const requiredKey of interfaceModel.schema.required){
|
|
214
|
+
schemaRequired.add(requiredKey);
|
|
215
|
+
}
|
|
216
|
+
Object.assign(schemaProperties, interfaceModel.schema.properties);
|
|
217
|
+
Object.assign(schemaReferences, interfaceModel.schema.$defs);
|
|
218
|
+
Object.assign(fieldsMeta, interfaceModel.fieldsMeta ?? {});
|
|
219
|
+
}
|
|
220
|
+
// Add model extra fields
|
|
221
|
+
for (const interfaceID of interfaceIDs){
|
|
222
|
+
interfaces.add(interfaceID);
|
|
223
|
+
}
|
|
224
|
+
for (const requiredKey of inputModel.schema?.required ?? []){
|
|
225
|
+
schemaRequired.add(requiredKey);
|
|
226
|
+
}
|
|
227
|
+
Object.assign(schemaProperties, inputModel.schema?.properties ?? {});
|
|
228
|
+
Object.assign(fieldsMeta, inputModel.fieldsMeta ?? {});
|
|
185
229
|
const index = this.#cluster.length;
|
|
186
230
|
const model = {
|
|
187
231
|
version: '1.0',
|
|
188
232
|
behavior: 'default',
|
|
189
|
-
interfaces: [],
|
|
190
233
|
...inputModel,
|
|
191
|
-
|
|
192
|
-
|
|
234
|
+
interfaces: Array.from(interfaces),
|
|
235
|
+
schema: normalizeDocumentSchema({
|
|
236
|
+
type: 'object',
|
|
237
|
+
properties: schemaProperties,
|
|
238
|
+
required: Array.from(schemaRequired),
|
|
239
|
+
additionalProperties: false,
|
|
240
|
+
$defs: schemaReferences
|
|
241
|
+
}),
|
|
242
|
+
fieldsMeta: normalizeFieldsMeta(fieldsMeta)
|
|
193
243
|
};
|
|
194
244
|
assertType(validateDocumentModel, model);
|
|
195
245
|
this.#cluster.push(model);
|
package/lib/models/document.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare const documentModelSchema: {
|
|
|
110
110
|
readonly type: "string";
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
readonly required: readonly ["type", "
|
|
113
|
+
readonly required: readonly ["type", "const"];
|
|
114
114
|
readonly additionalProperties: false;
|
|
115
115
|
}, {
|
|
116
116
|
readonly type: "object";
|
|
@@ -393,7 +393,7 @@ export declare const documentModelBase: {
|
|
|
393
393
|
readonly type: "string";
|
|
394
394
|
};
|
|
395
395
|
};
|
|
396
|
-
readonly required: readonly ["type", "
|
|
396
|
+
readonly required: readonly ["type", "const"];
|
|
397
397
|
readonly additionalProperties: false;
|
|
398
398
|
}, {
|
|
399
399
|
readonly type: "object";
|
|
@@ -699,7 +699,7 @@ export declare const documentModelDefault: {
|
|
|
699
699
|
readonly type: "string";
|
|
700
700
|
};
|
|
701
701
|
};
|
|
702
|
-
readonly required: readonly ["type", "
|
|
702
|
+
readonly required: readonly ["type", "const"];
|
|
703
703
|
readonly additionalProperties: false;
|
|
704
704
|
}, {
|
|
705
705
|
readonly type: "object";
|
|
@@ -1005,7 +1005,7 @@ export declare const documentModelInterface: {
|
|
|
1005
1005
|
readonly type: "string";
|
|
1006
1006
|
};
|
|
1007
1007
|
};
|
|
1008
|
-
readonly required: readonly ["type", "
|
|
1008
|
+
readonly required: readonly ["type", "const"];
|
|
1009
1009
|
readonly additionalProperties: false;
|
|
1010
1010
|
}, {
|
|
1011
1011
|
readonly type: "object";
|
|
@@ -1317,7 +1317,7 @@ export declare const documentModelUnique: {
|
|
|
1317
1317
|
readonly type: "string";
|
|
1318
1318
|
};
|
|
1319
1319
|
};
|
|
1320
|
-
readonly required: readonly ["type", "
|
|
1320
|
+
readonly required: readonly ["type", "const"];
|
|
1321
1321
|
readonly additionalProperties: false;
|
|
1322
1322
|
}, {
|
|
1323
1323
|
readonly type: "object";
|
|
@@ -1625,7 +1625,7 @@ export declare const documentModel: {
|
|
|
1625
1625
|
readonly type: "string";
|
|
1626
1626
|
};
|
|
1627
1627
|
};
|
|
1628
|
-
readonly required: readonly ["type", "
|
|
1628
|
+
readonly required: readonly ["type", "const"];
|
|
1629
1629
|
readonly additionalProperties: false;
|
|
1630
1630
|
}, {
|
|
1631
1631
|
readonly type: "object";
|
|
@@ -1930,7 +1930,7 @@ export declare const documentModel: {
|
|
|
1930
1930
|
readonly type: "string";
|
|
1931
1931
|
};
|
|
1932
1932
|
};
|
|
1933
|
-
readonly required: readonly ["type", "
|
|
1933
|
+
readonly required: readonly ["type", "const"];
|
|
1934
1934
|
readonly additionalProperties: false;
|
|
1935
1935
|
}, {
|
|
1936
1936
|
readonly type: "object";
|
|
@@ -2241,7 +2241,7 @@ export declare const documentModel: {
|
|
|
2241
2241
|
readonly type: "string";
|
|
2242
2242
|
};
|
|
2243
2243
|
};
|
|
2244
|
-
readonly required: readonly ["type", "
|
|
2244
|
+
readonly required: readonly ["type", "const"];
|
|
2245
2245
|
readonly additionalProperties: false;
|
|
2246
2246
|
}, {
|
|
2247
2247
|
readonly type: "object";
|
|
@@ -2553,7 +2553,7 @@ export declare const documentModelsCluster: {
|
|
|
2553
2553
|
readonly type: "string";
|
|
2554
2554
|
};
|
|
2555
2555
|
};
|
|
2556
|
-
readonly required: readonly ["type", "
|
|
2556
|
+
readonly required: readonly ["type", "const"];
|
|
2557
2557
|
readonly additionalProperties: false;
|
|
2558
2558
|
}, {
|
|
2559
2559
|
readonly type: "object";
|
|
@@ -2858,7 +2858,7 @@ export declare const documentModelsCluster: {
|
|
|
2858
2858
|
readonly type: "string";
|
|
2859
2859
|
};
|
|
2860
2860
|
};
|
|
2861
|
-
readonly required: readonly ["type", "
|
|
2861
|
+
readonly required: readonly ["type", "const"];
|
|
2862
2862
|
readonly additionalProperties: false;
|
|
2863
2863
|
}, {
|
|
2864
2864
|
readonly type: "object";
|
|
@@ -3169,7 +3169,7 @@ export declare const documentModelsCluster: {
|
|
|
3169
3169
|
readonly type: "string";
|
|
3170
3170
|
};
|
|
3171
3171
|
};
|
|
3172
|
-
readonly required: readonly ["type", "
|
|
3172
|
+
readonly required: readonly ["type", "const"];
|
|
3173
3173
|
readonly additionalProperties: false;
|
|
3174
3174
|
}, {
|
|
3175
3175
|
readonly type: "object";
|
|
@@ -3482,7 +3482,7 @@ export declare const documentModelsRecord: {
|
|
|
3482
3482
|
readonly type: "string";
|
|
3483
3483
|
};
|
|
3484
3484
|
};
|
|
3485
|
-
readonly required: readonly ["type", "
|
|
3485
|
+
readonly required: readonly ["type", "const"];
|
|
3486
3486
|
readonly additionalProperties: false;
|
|
3487
3487
|
}, {
|
|
3488
3488
|
readonly type: "object";
|
|
@@ -3787,7 +3787,7 @@ export declare const documentModelsRecord: {
|
|
|
3787
3787
|
readonly type: "string";
|
|
3788
3788
|
};
|
|
3789
3789
|
};
|
|
3790
|
-
readonly required: readonly ["type", "
|
|
3790
|
+
readonly required: readonly ["type", "const"];
|
|
3791
3791
|
readonly additionalProperties: false;
|
|
3792
3792
|
}, {
|
|
3793
3793
|
readonly type: "object";
|
|
@@ -4098,7 +4098,7 @@ export declare const documentModelsRecord: {
|
|
|
4098
4098
|
readonly type: "string";
|
|
4099
4099
|
};
|
|
4100
4100
|
};
|
|
4101
|
-
readonly required: readonly ["type", "
|
|
4101
|
+
readonly required: readonly ["type", "const"];
|
|
4102
4102
|
readonly additionalProperties: false;
|
|
4103
4103
|
}, {
|
|
4104
4104
|
readonly type: "object";
|
|
@@ -73,7 +73,7 @@ export declare const stringConstModel: {
|
|
|
73
73
|
readonly type: "string";
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
readonly required: readonly ["type", "
|
|
76
|
+
readonly required: readonly ["type", "const"];
|
|
77
77
|
readonly additionalProperties: false;
|
|
78
78
|
};
|
|
79
79
|
export type StringConstModel = FromSchema<typeof stringConstModel>;
|
|
@@ -181,7 +181,7 @@ export declare const stringModel: {
|
|
|
181
181
|
readonly type: "string";
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
|
-
readonly required: readonly ["type", "
|
|
184
|
+
readonly required: readonly ["type", "const"];
|
|
185
185
|
readonly additionalProperties: false;
|
|
186
186
|
}, {
|
|
187
187
|
readonly type: "object";
|
|
@@ -331,7 +331,7 @@ export declare const scalarModel: {
|
|
|
331
331
|
readonly type: "string";
|
|
332
332
|
};
|
|
333
333
|
};
|
|
334
|
-
readonly required: readonly ["type", "
|
|
334
|
+
readonly required: readonly ["type", "const"];
|
|
335
335
|
readonly additionalProperties: false;
|
|
336
336
|
}, {
|
|
337
337
|
readonly type: "object";
|
|
@@ -686,7 +686,7 @@ export declare const typeModel: {
|
|
|
686
686
|
readonly type: "string";
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
readonly required: readonly ["type", "
|
|
689
|
+
readonly required: readonly ["type", "const"];
|
|
690
690
|
readonly additionalProperties: false;
|
|
691
691
|
}, {
|
|
692
692
|
readonly type: "object";
|
|
@@ -915,7 +915,7 @@ export declare const referencesRecordModel: {
|
|
|
915
915
|
readonly type: "string";
|
|
916
916
|
};
|
|
917
917
|
};
|
|
918
|
-
readonly required: readonly ["type", "
|
|
918
|
+
readonly required: readonly ["type", "const"];
|
|
919
919
|
readonly additionalProperties: false;
|
|
920
920
|
}, {
|
|
921
921
|
readonly type: "object";
|
package/lib/services/graph.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export declare const deployGraphParams: {
|
|
|
114
114
|
readonly type: "string";
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
readonly required: readonly ["type", "
|
|
117
|
+
readonly required: readonly ["type", "const"];
|
|
118
118
|
readonly additionalProperties: false;
|
|
119
119
|
}, {
|
|
120
120
|
readonly type: "object";
|
|
@@ -419,7 +419,7 @@ export declare const deployGraphParams: {
|
|
|
419
419
|
readonly type: "string";
|
|
420
420
|
};
|
|
421
421
|
};
|
|
422
|
-
readonly required: readonly ["type", "
|
|
422
|
+
readonly required: readonly ["type", "const"];
|
|
423
423
|
readonly additionalProperties: false;
|
|
424
424
|
}, {
|
|
425
425
|
readonly type: "object";
|
|
@@ -730,7 +730,7 @@ export declare const deployGraphParams: {
|
|
|
730
730
|
readonly type: "string";
|
|
731
731
|
};
|
|
732
732
|
};
|
|
733
|
-
readonly required: readonly ["type", "
|
|
733
|
+
readonly required: readonly ["type", "const"];
|
|
734
734
|
readonly additionalProperties: false;
|
|
735
735
|
}, {
|
|
736
736
|
readonly type: "object";
|
|
@@ -1074,7 +1074,7 @@ export declare const deployGraphResult: {
|
|
|
1074
1074
|
readonly type: "string";
|
|
1075
1075
|
};
|
|
1076
1076
|
};
|
|
1077
|
-
readonly required: readonly ["type", "
|
|
1077
|
+
readonly required: readonly ["type", "const"];
|
|
1078
1078
|
readonly additionalProperties: false;
|
|
1079
1079
|
}, {
|
|
1080
1080
|
readonly type: "object";
|
|
@@ -1379,7 +1379,7 @@ export declare const deployGraphResult: {
|
|
|
1379
1379
|
readonly type: "string";
|
|
1380
1380
|
};
|
|
1381
1381
|
};
|
|
1382
|
-
readonly required: readonly ["type", "
|
|
1382
|
+
readonly required: readonly ["type", "const"];
|
|
1383
1383
|
readonly additionalProperties: false;
|
|
1384
1384
|
}, {
|
|
1385
1385
|
readonly type: "object";
|
|
@@ -1690,7 +1690,7 @@ export declare const deployGraphResult: {
|
|
|
1690
1690
|
readonly type: "string";
|
|
1691
1691
|
};
|
|
1692
1692
|
};
|
|
1693
|
-
readonly required: readonly ["type", "
|
|
1693
|
+
readonly required: readonly ["type", "const"];
|
|
1694
1694
|
readonly additionalProperties: false;
|
|
1695
1695
|
}, {
|
|
1696
1696
|
readonly type: "object";
|
|
@@ -2046,7 +2046,7 @@ export declare const loadGraphResult: {
|
|
|
2046
2046
|
readonly type: "string";
|
|
2047
2047
|
};
|
|
2048
2048
|
};
|
|
2049
|
-
readonly required: readonly ["type", "
|
|
2049
|
+
readonly required: readonly ["type", "const"];
|
|
2050
2050
|
readonly additionalProperties: false;
|
|
2051
2051
|
}, {
|
|
2052
2052
|
readonly type: "object";
|
|
@@ -2351,7 +2351,7 @@ export declare const loadGraphResult: {
|
|
|
2351
2351
|
readonly type: "string";
|
|
2352
2352
|
};
|
|
2353
2353
|
};
|
|
2354
|
-
readonly required: readonly ["type", "
|
|
2354
|
+
readonly required: readonly ["type", "const"];
|
|
2355
2355
|
readonly additionalProperties: false;
|
|
2356
2356
|
}, {
|
|
2357
2357
|
readonly type: "object";
|
|
@@ -2662,7 +2662,7 @@ export declare const loadGraphResult: {
|
|
|
2662
2662
|
readonly type: "string";
|
|
2663
2663
|
};
|
|
2664
2664
|
};
|
|
2665
|
-
readonly required: readonly ["type", "
|
|
2665
|
+
readonly required: readonly ["type", "const"];
|
|
2666
2666
|
readonly additionalProperties: false;
|
|
2667
2667
|
}, {
|
|
2668
2668
|
readonly type: "object";
|
|
@@ -3148,7 +3148,7 @@ export declare const graphProtocol: {
|
|
|
3148
3148
|
readonly type: "string";
|
|
3149
3149
|
};
|
|
3150
3150
|
};
|
|
3151
|
-
readonly required: readonly ["type", "
|
|
3151
|
+
readonly required: readonly ["type", "const"];
|
|
3152
3152
|
readonly additionalProperties: false;
|
|
3153
3153
|
}, {
|
|
3154
3154
|
readonly type: "object";
|
|
@@ -3453,7 +3453,7 @@ export declare const graphProtocol: {
|
|
|
3453
3453
|
readonly type: "string";
|
|
3454
3454
|
};
|
|
3455
3455
|
};
|
|
3456
|
-
readonly required: readonly ["type", "
|
|
3456
|
+
readonly required: readonly ["type", "const"];
|
|
3457
3457
|
readonly additionalProperties: false;
|
|
3458
3458
|
}, {
|
|
3459
3459
|
readonly type: "object";
|
|
@@ -3764,7 +3764,7 @@ export declare const graphProtocol: {
|
|
|
3764
3764
|
readonly type: "string";
|
|
3765
3765
|
};
|
|
3766
3766
|
};
|
|
3767
|
-
readonly required: readonly ["type", "
|
|
3767
|
+
readonly required: readonly ["type", "const"];
|
|
3768
3768
|
readonly additionalProperties: false;
|
|
3769
3769
|
}, {
|
|
3770
3770
|
readonly type: "object";
|
|
@@ -4107,7 +4107,7 @@ export declare const graphProtocol: {
|
|
|
4107
4107
|
readonly type: "string";
|
|
4108
4108
|
};
|
|
4109
4109
|
};
|
|
4110
|
-
readonly required: readonly ["type", "
|
|
4110
|
+
readonly required: readonly ["type", "const"];
|
|
4111
4111
|
readonly additionalProperties: false;
|
|
4112
4112
|
}, {
|
|
4113
4113
|
readonly type: "object";
|
|
@@ -4412,7 +4412,7 @@ export declare const graphProtocol: {
|
|
|
4412
4412
|
readonly type: "string";
|
|
4413
4413
|
};
|
|
4414
4414
|
};
|
|
4415
|
-
readonly required: readonly ["type", "
|
|
4415
|
+
readonly required: readonly ["type", "const"];
|
|
4416
4416
|
readonly additionalProperties: false;
|
|
4417
4417
|
}, {
|
|
4418
4418
|
readonly type: "object";
|
|
@@ -4723,7 +4723,7 @@ export declare const graphProtocol: {
|
|
|
4723
4723
|
readonly type: "string";
|
|
4724
4724
|
};
|
|
4725
4725
|
};
|
|
4726
|
-
readonly required: readonly ["type", "
|
|
4726
|
+
readonly required: readonly ["type", "const"];
|
|
4727
4727
|
readonly additionalProperties: false;
|
|
4728
4728
|
}, {
|
|
4729
4729
|
readonly type: "object";
|
|
@@ -5082,7 +5082,7 @@ export declare const graphProtocol: {
|
|
|
5082
5082
|
readonly type: "string";
|
|
5083
5083
|
};
|
|
5084
5084
|
};
|
|
5085
|
-
readonly required: readonly ["type", "
|
|
5085
|
+
readonly required: readonly ["type", "const"];
|
|
5086
5086
|
readonly additionalProperties: false;
|
|
5087
5087
|
}, {
|
|
5088
5088
|
readonly type: "object";
|
|
@@ -5387,7 +5387,7 @@ export declare const graphProtocol: {
|
|
|
5387
5387
|
readonly type: "string";
|
|
5388
5388
|
};
|
|
5389
5389
|
};
|
|
5390
|
-
readonly required: readonly ["type", "
|
|
5390
|
+
readonly required: readonly ["type", "const"];
|
|
5391
5391
|
readonly additionalProperties: false;
|
|
5392
5392
|
}, {
|
|
5393
5393
|
readonly type: "object";
|
|
@@ -5698,7 +5698,7 @@ export declare const graphProtocol: {
|
|
|
5698
5698
|
readonly type: "string";
|
|
5699
5699
|
};
|
|
5700
5700
|
};
|
|
5701
|
-
readonly required: readonly ["type", "
|
|
5701
|
+
readonly required: readonly ["type", "const"];
|
|
5702
5702
|
readonly additionalProperties: false;
|
|
5703
5703
|
}, {
|
|
5704
5704
|
readonly type: "object";
|