db5 0.6.31 → 0.7.0
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/package.json +1 -42
- package/README.md +0 -3
- package/bin/astnCompact.mjs +0 -3
- package/bin/astnExpand.mjs +0 -3
- package/dist/schemaHost.d.ts +0 -2
- package/dist/schemaHost.js +0 -8
- package/dist/schemaHost.js.map +0 -1
- package/dist/src/implementations/getSchemaSchemaBuilder.d.ts +0 -2
- package/dist/src/implementations/getSchemaSchemaBuilder.js +0 -33
- package/dist/src/implementations/getSchemaSchemaBuilder.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.d.ts +0 -13
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.js +0 -3
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/IReference.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/generics/IReference.js +0 -3
- package/dist/src/implementations/inMemoryDataset/generics/IReference.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/index.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/generics/index.js +0 -15
- package/dist/src/implementations/inMemoryDataset/generics/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/Global.d.ts +0 -5
- package/dist/src/implementations/inMemoryDataset/implementation/Global.js +0 -13
- package/dist/src/implementations/inMemoryDataset/implementation/Global.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/Root.d.ts +0 -22
- package/dist/src/implementations/inMemoryDataset/implementation/Root.js +0 -55
- package/dist/src/implementations/inMemoryDataset/implementation/Root.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.js +0 -467
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.js +0 -243
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.d.ts +0 -35
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.js +0 -215
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.d.ts +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.js +0 -14
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.js +0 -72
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.d.ts +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.js +0 -48
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.js +0 -27
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.d.ts +0 -38
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.js +0 -85
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.js +0 -23
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.js +0 -16
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.d.ts +0 -22
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.js +0 -94
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.d.ts +0 -42
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.js +0 -122
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.js +0 -21
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.js +0 -20
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.js +0 -59
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.d.ts +0 -56
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.js +0 -127
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.d.ts +0 -11
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.js +0 -23
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.d.ts +0 -9
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.js +0 -16
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.d.ts +0 -32
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.js +0 -114
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.d.ts +0 -12
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.js +0 -34
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.d.ts +0 -36
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.js +0 -74
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.d.ts +0 -21
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.js +0 -68
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.js +0 -20
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.d.ts +0 -0
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.d.ts +0 -5
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.js +0 -99
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.d.ts +0 -12
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.js +0 -238
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js +0 -175
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/index.d.ts +0 -1
- package/dist/src/implementations/inMemoryDataset/index.js +0 -6
- package/dist/src/implementations/inMemoryDataset/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/types.d.ts +0 -45
- package/dist/src/implementations/inMemoryDataset/types.js +0 -3
- package/dist/src/implementations/inMemoryDataset/types.js.map +0 -1
- package/dist/src/implementations/index.d.ts +0 -3
- package/dist/src/implementations/index.js +0 -16
- package/dist/src/implementations/index.js.map +0 -1
- package/dist/src/implementations/makeNativeHTTPrequest.d.ts +0 -4
- package/dist/src/implementations/makeNativeHTTPrequest.js +0 -76
- package/dist/src/implementations/makeNativeHTTPrequest.js.map +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +0 -15
- package/dist/src/index.js.map +0 -1
- package/dist/src/interfaces/SchemaHost.d.ts +0 -4
- package/dist/src/interfaces/SchemaHost.js +0 -3
- package/dist/src/interfaces/SchemaHost.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/asyncAPI.d.ts +0 -96
- package/dist/src/interfaces/asyncAPI/asyncAPI.js +0 -3
- package/dist/src/interfaces/asyncAPI/asyncAPI.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/generic/index.d.ts +0 -1
- package/dist/src/interfaces/asyncAPI/generic/index.js +0 -14
- package/dist/src/interfaces/asyncAPI/generic/index.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/generic/subscribables.d.ts +0 -15
- package/dist/src/interfaces/asyncAPI/generic/subscribables.js +0 -3
- package/dist/src/interfaces/asyncAPI/generic/subscribables.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/index.d.ts +0 -2
- package/dist/src/interfaces/asyncAPI/index.js +0 -15
- package/dist/src/interfaces/asyncAPI/index.js.map +0 -1
- package/dist/src/interfaces/index.d.ts +0 -2
- package/dist/src/interfaces/index.js +0 -15
- package/dist/src/interfaces/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.d.ts +0 -15
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.js +0 -81
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.js +0 -113
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.d.ts +0 -9
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.js +0 -44
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.js +0 -110
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.d.ts +0 -45
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.js +0 -3
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.js +0 -405
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.d.ts +0 -4
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.js +0 -98
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.d.ts +0 -15
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.js +0 -81
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.d.ts +0 -9
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.js +0 -44
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.js +0 -387
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.d.ts +0 -6
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.js +0 -84
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.js +0 -131
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.js +0 -15
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.d.ts +0 -4
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.js +0 -233
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.d.ts +0 -64
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.js +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.js.map +0 -1
- package/dist/tsbin/astnCompact.d.ts +0 -1
- package/dist/tsbin/astnCompact.js +0 -5
- package/dist/tsbin/astnCompact.js.map +0 -1
- package/dist/tsbin/astnExpand.d.ts +0 -1
- package/dist/tsbin/astnExpand.js +0 -5
- package/dist/tsbin/astnExpand.js.map +0 -1
- package/dist/tsbin/serialize.d.ts +0 -2
- package/dist/tsbin/serialize.js +0 -88
- package/dist/tsbin/serialize.js.map +0 -1
package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.serializeMetaData = void 0;
|
|
4
|
-
function assertUnreachable(_x) {
|
|
5
|
-
throw new Error("unreachable");
|
|
6
|
-
}
|
|
7
|
-
function serializeMetaData(schema) {
|
|
8
|
-
const events = [];
|
|
9
|
-
function addEvent(e) {
|
|
10
|
-
//console.error(JSON.stringify(e))
|
|
11
|
-
events.push({
|
|
12
|
-
annotation: null,
|
|
13
|
-
type: e,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function serializeDictionary(dict, entryCallback) {
|
|
17
|
-
addEvent(["open object", {
|
|
18
|
-
type: ["dictionary"],
|
|
19
|
-
}]);
|
|
20
|
-
dict.forEach((entry, key) => {
|
|
21
|
-
addEvent(["simple string", {
|
|
22
|
-
value: key,
|
|
23
|
-
wrapping: ["quote", {}],
|
|
24
|
-
}]);
|
|
25
|
-
entryCallback(entry);
|
|
26
|
-
});
|
|
27
|
-
addEvent(["close object", {
|
|
28
|
-
//
|
|
29
|
-
}]);
|
|
30
|
-
}
|
|
31
|
-
function serializeVerboseType(properties) {
|
|
32
|
-
addEvent(["open object", {
|
|
33
|
-
type: ["verbose type"],
|
|
34
|
-
}]);
|
|
35
|
-
Object.keys(properties).sort().forEach(key => {
|
|
36
|
-
addEvent(["simple string", {
|
|
37
|
-
value: key,
|
|
38
|
-
wrapping: ["apostrophe", {}],
|
|
39
|
-
}]);
|
|
40
|
-
properties[key]();
|
|
41
|
-
});
|
|
42
|
-
addEvent(["close object", {
|
|
43
|
-
//
|
|
44
|
-
}]);
|
|
45
|
-
}
|
|
46
|
-
function serializeTaggedUnion(option, callback) {
|
|
47
|
-
addEvent(["tagged union", {}]);
|
|
48
|
-
addEvent(["simple string", {
|
|
49
|
-
value: option,
|
|
50
|
-
wrapping: ["apostrophe", {}],
|
|
51
|
-
}]);
|
|
52
|
-
callback();
|
|
53
|
-
}
|
|
54
|
-
function serializeQuotedString(value) {
|
|
55
|
-
addEvent(["simple string", {
|
|
56
|
-
value: value,
|
|
57
|
-
wrapping: ["quote", {}],
|
|
58
|
-
}]);
|
|
59
|
-
}
|
|
60
|
-
function serializeReference(reference) {
|
|
61
|
-
addEvent(["simple string", {
|
|
62
|
-
value: reference.name,
|
|
63
|
-
wrapping: ["quote", {}],
|
|
64
|
-
}]);
|
|
65
|
-
}
|
|
66
|
-
function serializeNonWrappedString(value) {
|
|
67
|
-
addEvent(["simple string", {
|
|
68
|
-
value: value,
|
|
69
|
-
wrapping: ["none", {}],
|
|
70
|
-
}]);
|
|
71
|
-
}
|
|
72
|
-
function serializeNodeDefinition(node) {
|
|
73
|
-
serializeVerboseType({
|
|
74
|
-
properties: () => {
|
|
75
|
-
serializeDictionary(node.properties, propDef => {
|
|
76
|
-
serializeVerboseType({
|
|
77
|
-
type: () => {
|
|
78
|
-
serializeTaggedUnion(propDef.type[0], () => {
|
|
79
|
-
switch (propDef.type[0]) {
|
|
80
|
-
case "dictionary": {
|
|
81
|
-
const $$ = propDef.type[1];
|
|
82
|
-
serializeVerboseType({
|
|
83
|
-
"key": () => {
|
|
84
|
-
serializeVerboseType({
|
|
85
|
-
"default value": () => {
|
|
86
|
-
serializeQuotedString($$.key["default value"]);
|
|
87
|
-
},
|
|
88
|
-
"quoted": () => {
|
|
89
|
-
serializeNonWrappedString($$.key.quoted ? "true" : "false");
|
|
90
|
-
},
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
"node": () => {
|
|
94
|
-
serializeNodeDefinition($$.node);
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
case "list": {
|
|
100
|
-
const $$ = propDef.type[1];
|
|
101
|
-
serializeVerboseType({
|
|
102
|
-
"node": () => {
|
|
103
|
-
serializeNodeDefinition($$.node);
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
case "component": {
|
|
109
|
-
const $ = propDef.type[1];
|
|
110
|
-
serializeVerboseType({
|
|
111
|
-
type: () => {
|
|
112
|
-
serializeReference($.type);
|
|
113
|
-
},
|
|
114
|
-
});
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
case "tagged union": {
|
|
118
|
-
const $ = propDef.type[1];
|
|
119
|
-
serializeVerboseType({
|
|
120
|
-
"default state": () => {
|
|
121
|
-
serializeReference($["default option"]);
|
|
122
|
-
},
|
|
123
|
-
"states": () => {
|
|
124
|
-
serializeDictionary($.options, state => {
|
|
125
|
-
serializeVerboseType({
|
|
126
|
-
node: () => serializeNodeDefinition(state.node),
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
},
|
|
130
|
-
});
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
133
|
-
case "simple string": {
|
|
134
|
-
const $ = propDef.type[1];
|
|
135
|
-
serializeVerboseType({
|
|
136
|
-
"default value": () => {
|
|
137
|
-
serializeQuotedString($["default value"]);
|
|
138
|
-
},
|
|
139
|
-
"quoted": () => {
|
|
140
|
-
serializeNonWrappedString($.quoted ? "true" : "false");
|
|
141
|
-
},
|
|
142
|
-
});
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
case "multiline string": {
|
|
146
|
-
//const $ = propDef.type[1]
|
|
147
|
-
serializeVerboseType({});
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
default:
|
|
151
|
-
assertUnreachable(propDef.type[0]);
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
},
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
serializeVerboseType({
|
|
161
|
-
"component types": () => {
|
|
162
|
-
serializeDictionary(schema["component types"], componentType => {
|
|
163
|
-
serializeVerboseType({
|
|
164
|
-
node: () => serializeNodeDefinition(componentType.node),
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
},
|
|
168
|
-
"root type": () => {
|
|
169
|
-
serializeReference(schema["root type"]);
|
|
170
|
-
},
|
|
171
|
-
});
|
|
172
|
-
return events;
|
|
173
|
-
}
|
|
174
|
-
exports.serializeMetaData = serializeMetaData;
|
|
175
|
-
//# sourceMappingURL=serializeMetaData.js.map
|
package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializeMetaData.js","sourceRoot":"","sources":["../../../../../../src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.ts"],"names":[],"mappings":";;;AAEA,SAAS,iBAAiB,CAAK,EAAS;IACp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ACjB,IAAI,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC,IAAI,CAAC;iBAC1D,CAAC,CAAA;YACN,CAAC,CACJ,CAAA;QACL,CAAC;QACD,WAAW,EAAE,GAAG,EAAE;YACd,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;QAC3C,CAAC;KACJ,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACjB,CAAC;AAxLD,8CAwLC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createInMemoryDataset } from "./implementation/createDataset";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createInMemoryDataset = void 0;
|
|
4
|
-
var createDataset_1 = require("./implementation/createDataset");
|
|
5
|
-
Object.defineProperty(exports, "createInMemoryDataset", { enumerable: true, get: function () { return createDataset_1.createInMemoryDataset; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/implementations/inMemoryDataset/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsE;AAA7D,sHAAA,qBAAqB,OAAA"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as g from "./generics";
|
|
2
|
-
/**
|
|
3
|
-
* this set of types defines a schema that only describes the data structure,
|
|
4
|
-
* not any additional validation rules to which a dataset should confirm.
|
|
5
|
-
* The DB5 database requires an instance of this schema to load the data
|
|
6
|
-
*/
|
|
7
|
-
export declare type CollectionDefinition = {
|
|
8
|
-
readonly "type": CollectionTypeDefinition;
|
|
9
|
-
};
|
|
10
|
-
export declare type CollectionTypeDefinition = ["dictionary", DictionaryDefinition] | ["list", ListDefinition];
|
|
11
|
-
export declare type ComponentDefinition = {
|
|
12
|
-
readonly "type": g.IReference<ComponentTypeDefinition>;
|
|
13
|
-
};
|
|
14
|
-
export declare type ComponentTypeDefinition = {
|
|
15
|
-
readonly "node": NodeDefinition;
|
|
16
|
-
};
|
|
17
|
-
export declare type DictionaryDefinition = {
|
|
18
|
-
readonly "key property": g.IReference<PropertyDefinition>;
|
|
19
|
-
readonly "node": NodeDefinition;
|
|
20
|
-
};
|
|
21
|
-
export declare type ListDefinition = {
|
|
22
|
-
readonly "node": NodeDefinition;
|
|
23
|
-
};
|
|
24
|
-
export declare type NodeDefinition = {
|
|
25
|
-
readonly "properties": g.IReadonlyDictionary<PropertyDefinition>;
|
|
26
|
-
};
|
|
27
|
-
export declare type PropertyDefinition = {
|
|
28
|
-
readonly "type": PropertyTypeDefinition;
|
|
29
|
-
};
|
|
30
|
-
export declare type PropertyTypeDefinition = ["collection", CollectionDefinition] | ["component", ComponentDefinition] | ["tagged union", TaggedUnionDefinition] | ["string", StringValueDefinition];
|
|
31
|
-
export declare type Schema = {
|
|
32
|
-
readonly "component types": g.IReadonlyDictionary<ComponentTypeDefinition>;
|
|
33
|
-
readonly "root type": g.IReference<ComponentTypeDefinition>;
|
|
34
|
-
};
|
|
35
|
-
export declare type OptionDefinition = {
|
|
36
|
-
readonly "node": NodeDefinition;
|
|
37
|
-
};
|
|
38
|
-
export declare type TaggedUnionDefinition = {
|
|
39
|
-
readonly "options": g.IReadonlyDictionary<OptionDefinition>;
|
|
40
|
-
readonly "default option": g.IReference<OptionDefinition>;
|
|
41
|
-
};
|
|
42
|
-
export declare type StringValueDefinition = {
|
|
43
|
-
readonly "default value": string;
|
|
44
|
-
readonly "quoted": boolean;
|
|
45
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/implementations/inMemoryDataset/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./makeNativeHTTPrequest"), exports);
|
|
14
|
-
__exportStar(require("./inMemoryDataset"), exports);
|
|
15
|
-
__exportStar(require("./getSchemaSchemaBuilder"), exports);
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/implementations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0DAAuC;AACvC,oDAAiC;AACjC,2DAAwC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as p from "pareto";
|
|
2
|
-
import { SchemaHost } from "../interfaces/SchemaHost";
|
|
3
|
-
import { RetrievalError } from "astn";
|
|
4
|
-
export declare function makeNativeHTTPrequest(schemaHost: SchemaHost, schema: string, timeout: number): p.IUnsafeValue<p.IStream<string, null>, RetrievalError>;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.makeNativeHTTPrequest = void 0;
|
|
23
|
-
const http = __importStar(require("http"));
|
|
24
|
-
const p20 = __importStar(require("pareto-20"));
|
|
25
|
-
function makeNativeHTTPrequest(schemaHost, schema, timeout) {
|
|
26
|
-
return p20.wrapUnsafeFunction((onError, onSucces) => {
|
|
27
|
-
const path = `${schemaHost.pathStart}/${encodeURI(schema)}`.replace(/\/\//g, "/");
|
|
28
|
-
const request = http.request({
|
|
29
|
-
host: schemaHost.host,
|
|
30
|
-
path: path,
|
|
31
|
-
timeout: timeout,
|
|
32
|
-
}, res => {
|
|
33
|
-
if (res.statusCode !== 200) {
|
|
34
|
-
onError(["not found", {}]);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
//below code is streaming but unstable
|
|
38
|
-
// onSucces(p20.createStream((_limiter, consumer) => {
|
|
39
|
-
// res.on('data', chunk => {
|
|
40
|
-
// res.pause()
|
|
41
|
-
// consumer.onData(chunk.toString()).handle(
|
|
42
|
-
// _abortRequested => {
|
|
43
|
-
// res.resume()
|
|
44
|
-
// }
|
|
45
|
-
// )
|
|
46
|
-
// })
|
|
47
|
-
// res.on('end', () => {
|
|
48
|
-
// consumer.onEnd(false, null)
|
|
49
|
-
// })
|
|
50
|
-
// }))
|
|
51
|
-
let complete = "";
|
|
52
|
-
onSucces(p20.createStream((_limiter, consumer) => {
|
|
53
|
-
res.on('data', chunk => {
|
|
54
|
-
complete += chunk.toString();
|
|
55
|
-
});
|
|
56
|
-
res.on('end', () => {
|
|
57
|
-
consumer.onData(complete).handle(_abortRequested => {
|
|
58
|
-
//
|
|
59
|
-
consumer.onEnd(false, null);
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}));
|
|
63
|
-
});
|
|
64
|
-
request.on('timeout', () => {
|
|
65
|
-
console.error("timeout");
|
|
66
|
-
onError(["other", { description: "timeout" }]);
|
|
67
|
-
});
|
|
68
|
-
request.on('error', e => {
|
|
69
|
-
console.error(e.message);
|
|
70
|
-
onError(["other", { description: e.message }]);
|
|
71
|
-
});
|
|
72
|
-
request.end();
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
exports.makeNativeHTTPrequest = makeNativeHTTPrequest;
|
|
76
|
-
//# sourceMappingURL=makeNativeHTTPrequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeNativeHTTPrequest.js","sourceRoot":"","sources":["../../../src/implementations/makeNativeHTTPrequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAC5B,+CAAgC;AAKhC,SAAgB,qBAAqB,CACjC,UAAsB,EACtB,MAAc,EACd,OAAe;IAEf,OAAO,GAAG,CAAC,kBAAkB,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;QAEhD,MAAM,IAAI,GAAG,GAAG,UAAU,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;QACjF,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CACxB;YACI,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;SACnB,EACD,GAAG,CAAC,EAAE;YACF,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG,EAAE;g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C,OAAO,EAAE,CAAC,CAAC,CAAA;QAClD,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,EAAE,CAAA;IACjB,CAAC,CAAC,CAAA;AACN,CAAC;AAhED,sDAgEC"}
|
package/dist/src/index.d.ts
DELETED
package/dist/src/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./interfaces"), exports);
|
|
14
|
-
__exportStar(require("./implementations"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA4B;AAC5B,oDAAiC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaHost.js","sourceRoot":"","sources":["../../../src/interfaces/SchemaHost.ts"],"names":[],"mappings":""}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { InternalSchemaSpecification } from "astn";
|
|
2
|
-
import * as g from "./generic";
|
|
3
|
-
export interface IFocussable {
|
|
4
|
-
setFocus(): void;
|
|
5
|
-
}
|
|
6
|
-
export interface Collection {
|
|
7
|
-
readonly entries: g.ISubscribableArray;
|
|
8
|
-
addEntry(): void;
|
|
9
|
-
copyEntriesToHere(forEach: (callback: (entry: Entry) => void) => void): void;
|
|
10
|
-
}
|
|
11
|
-
export interface Command {
|
|
12
|
-
execute(): void;
|
|
13
|
-
}
|
|
14
|
-
export interface Component {
|
|
15
|
-
readonly node: Node;
|
|
16
|
-
}
|
|
17
|
-
export interface Dataset {
|
|
18
|
-
readonly errorManager: ErrorManager;
|
|
19
|
-
readonly errorAmount: g.ISubscribableValue<number>;
|
|
20
|
-
readonly hasUndoActions: g.ISubscribableValue<boolean>;
|
|
21
|
-
readonly hasRedoActions: g.ISubscribableValue<boolean>;
|
|
22
|
-
readonly hasUnserializedChanges: g.ISubscribableValue<boolean>;
|
|
23
|
-
readonly rootNode: Node;
|
|
24
|
-
serialize(internalSchemaSpecification: InternalSchemaSpecification, callback: (data: string) => void): void;
|
|
25
|
-
purgeChanges(): void;
|
|
26
|
-
redo(): void;
|
|
27
|
-
undo(): void;
|
|
28
|
-
}
|
|
29
|
-
export interface Entry {
|
|
30
|
-
readonly node: Node;
|
|
31
|
-
readonly hasSubEntryErrors: g.ISubscribableValue<boolean>;
|
|
32
|
-
readonly tempSubEntryErrorsCount: g.ISubscribableValue<number>;
|
|
33
|
-
readonly isAdded: g.ISubscribableValue<boolean>;
|
|
34
|
-
readonly status: g.ISubscribableValue<EntryStatus>;
|
|
35
|
-
delete(): void;
|
|
36
|
-
}
|
|
37
|
-
export interface ErrorManager {
|
|
38
|
-
readonly validationErrors: g.ISubscribableArray;
|
|
39
|
-
}
|
|
40
|
-
export declare type EntryStatus = ["active"] | [
|
|
41
|
-
"inactive",
|
|
42
|
-
{
|
|
43
|
-
readonly reason: ["deleted"] | ["moved"];
|
|
44
|
-
}
|
|
45
|
-
];
|
|
46
|
-
export declare type PotentialError = {
|
|
47
|
-
readonly isInErrorState: g.ISubscribableValue<boolean>;
|
|
48
|
-
};
|
|
49
|
-
export interface Property {
|
|
50
|
-
type: PropertyType;
|
|
51
|
-
}
|
|
52
|
-
export declare type PropertyType = ["collection", Collection] | ["component", Component] | ["state group", StateGroup] | ["value", Value];
|
|
53
|
-
export interface Node {
|
|
54
|
-
getCollection(name: string): Collection;
|
|
55
|
-
getComponent(name: string): Component;
|
|
56
|
-
getTaggedUnion(name: string): StateGroup;
|
|
57
|
-
getValue(name: string): Value;
|
|
58
|
-
forEachProperty(callback: (property: Property, key: string) => void): void;
|
|
59
|
-
}
|
|
60
|
-
export interface State {
|
|
61
|
-
readonly node: Node;
|
|
62
|
-
readonly isCurrentState: g.ISubscribableValue<boolean>;
|
|
63
|
-
readonly key: string;
|
|
64
|
-
}
|
|
65
|
-
export interface StateGroup {
|
|
66
|
-
readonly statesOverTime: g.ISubscribableArray;
|
|
67
|
-
readonly changeStatus: g.ISubscribableValue<StateGroupChangeStatus>;
|
|
68
|
-
readonly createdInNewContext: g.ISubscribableValue<boolean>;
|
|
69
|
-
readonly currentStateKey: g.ISubscribableValue<string>;
|
|
70
|
-
setMainFocussableRepresentation(focussable: IFocussable): void;
|
|
71
|
-
updateState(stateName: string): void;
|
|
72
|
-
}
|
|
73
|
-
export declare type StateGroupChangeStatus = ["not changed"] | [
|
|
74
|
-
"changed",
|
|
75
|
-
{
|
|
76
|
-
readonly originalStateName: string;
|
|
77
|
-
}
|
|
78
|
-
];
|
|
79
|
-
export interface ValidationError {
|
|
80
|
-
readonly focussable: g.ISubscribableValue<g.IMaybe<IFocussable>>;
|
|
81
|
-
}
|
|
82
|
-
export interface Value {
|
|
83
|
-
readonly value: g.ISubscribableValue<string>;
|
|
84
|
-
readonly isDuplicate: PotentialError;
|
|
85
|
-
readonly valueIsInvalid: PotentialError;
|
|
86
|
-
readonly createdInNewContext: g.ISubscribableValue<boolean>;
|
|
87
|
-
readonly changeStatus: g.ISubscribableValue<ValueChangeStatus>;
|
|
88
|
-
updateValue(v: string): void;
|
|
89
|
-
setMainFocussableRepresentation(f: IFocussable): void;
|
|
90
|
-
}
|
|
91
|
-
export declare type ValueChangeStatus = ["not changed"] | [
|
|
92
|
-
"changed",
|
|
93
|
-
{
|
|
94
|
-
readonly originalValue: string;
|
|
95
|
-
}
|
|
96
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asyncAPI.js","sourceRoot":"","sources":["../../../../src/interfaces/asyncAPI/asyncAPI.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./subscribables";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./subscribables"), exports);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interfaces/asyncAPI/generic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare type Unsubscriber = () => void;
|
|
2
|
-
export interface IMaybe<T> {
|
|
3
|
-
ifExists(callback: (t: T) => void): void;
|
|
4
|
-
map<RT>(exists: (t: T) => RT, onNotExists: () => RT): RT;
|
|
5
|
-
}
|
|
6
|
-
export interface ISubscribableValue<T> {
|
|
7
|
-
subscribeToValue(callback: (value: T) => void): Unsubscriber;
|
|
8
|
-
map<NewT>(callback: (t: T) => NewT): ISubscribableValue<NewT>;
|
|
9
|
-
}
|
|
10
|
-
export interface ISubscribableEntry {
|
|
11
|
-
subscribeToDeletion(subscriber: () => void): Unsubscriber;
|
|
12
|
-
}
|
|
13
|
-
export interface ISubscribableArray {
|
|
14
|
-
subscribeToEntries(subscriber: (newEntry: ISubscribableEntry) => void): Unsubscriber;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribables.js","sourceRoot":"","sources":["../../../../../src/interfaces/asyncAPI/generic/subscribables.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./generic"), exports);
|
|
14
|
-
__exportStar(require("./asyncAPI"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/asyncAPI/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./SchemaHost"), exports);
|
|
14
|
-
__exportStar(require("./asyncAPI"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA4B;AAC5B,6CAA0B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as astncore from "astn-core";
|
|
2
|
-
export interface MutableDictionary<T> extends astncore.IReadonlyDictionary<T> {
|
|
3
|
-
add(key: string, value: T): void;
|
|
4
|
-
}
|
|
5
|
-
export declare function createDictionary<T>(imp: {
|
|
6
|
-
[key: string]: T;
|
|
7
|
-
}): MutableDictionary<T>;
|
|
8
|
-
export declare class Lookup<T> {
|
|
9
|
-
private readonly imp;
|
|
10
|
-
constructor(imp: {
|
|
11
|
-
[key: string]: T;
|
|
12
|
-
});
|
|
13
|
-
add(key: string, value: T): void;
|
|
14
|
-
get(key: string): T;
|
|
15
|
-
}
|