pareto 0.51.1 → 0.53.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.
Files changed (109) hide show
  1. package/auto.dist/auto.globals.d.ts +22 -0
  2. package/auto.dist/auto.globals.js +2 -0
  3. package/auto.dist/index.d.ts +3 -0
  4. package/auto.dist/index.js +40 -0
  5. package/auto.dist/public/cosmos__2__pareto/auto.api.d.ts +6 -0
  6. package/auto.dist/public/cosmos__2__pareto/auto.api.js +3 -0
  7. package/auto.dist/public/cosmos__2__pareto/auto.implementation.d.ts +2 -0
  8. package/auto.dist/public/cosmos__2__pareto/auto.implementation.js +6 -0
  9. package/auto.dist/public/cosmos__2__pareto/auto.provided_interface_glossary.d.ts +3045 -0
  10. package/auto.dist/public/cosmos__2__pareto/auto.provided_interface_glossary.js +3 -0
  11. package/auto.dist/public/cosmos__2__pareto/auto.provided_interface_glossary.shadow.d.ts +29 -0
  12. package/auto.dist/public/cosmos__2__pareto/auto.provided_interface_glossary.shadow.js +3 -0
  13. package/auto.dist/public/cosmos__2__pareto/implementations/library2ParetoComparators.alg.d.ts +2 -0
  14. package/auto.dist/public/cosmos__2__pareto/implementations/library2ParetoComparators.alg.js +359 -0
  15. package/auto.dist/public/cosmos__2__pareto/index.d.ts +2 -0
  16. package/auto.dist/public/cosmos__2__pareto/index.js +19 -0
  17. package/auto.dist/public/fountain__pen/auto.api.d.ts +6 -0
  18. package/auto.dist/public/fountain__pen/auto.api.js +3 -0
  19. package/auto.dist/public/fountain__pen/auto.implementation.d.ts +2 -0
  20. package/auto.dist/public/fountain__pen/auto.implementation.js +6 -0
  21. package/auto.dist/public/fountain__pen/auto.provided_interface_glossary.d.ts +29 -0
  22. package/auto.dist/public/fountain__pen/auto.provided_interface_glossary.js +3 -0
  23. package/auto.dist/public/fountain__pen/auto.provided_interface_glossary.shadow.d.ts +9 -0
  24. package/auto.dist/public/fountain__pen/auto.provided_interface_glossary.shadow.js +3 -0
  25. package/auto.dist/public/fountain__pen/implementations/serialize.alg.d.ts +2 -0
  26. package/auto.dist/public/fountain__pen/implementations/serialize.alg.js +98 -0
  27. package/auto.dist/public/fountain__pen/index.d.ts +2 -0
  28. package/auto.dist/public/fountain__pen/index.js +19 -0
  29. package/auto.dist/public/glossaries/cosmos__type__system.d.ts +1760 -0
  30. package/auto.dist/public/glossaries/cosmos__type__system.js +3 -0
  31. package/auto.dist/public/glossaries/cosmos__type__system.shadow.d.ts +8 -0
  32. package/auto.dist/public/glossaries/cosmos__type__system.shadow.js +3 -0
  33. package/auto.dist/public/glossaries/pareto.d.ts +1267 -0
  34. package/auto.dist/public/glossaries/pareto.js +3 -0
  35. package/auto.dist/public/glossaries/pareto.shadow.d.ts +8 -0
  36. package/auto.dist/public/glossaries/pareto.shadow.js +3 -0
  37. package/auto.dist/public/pareto__2__typescript/auto.api.d.ts +6 -0
  38. package/auto.dist/public/pareto__2__typescript/auto.api.js +3 -0
  39. package/auto.dist/public/pareto__2__typescript/auto.implementation.d.ts +2 -0
  40. package/auto.dist/public/pareto__2__typescript/auto.implementation.js +6 -0
  41. package/auto.dist/public/pareto__2__typescript/auto.provided_interface_glossary.d.ts +1318 -0
  42. package/auto.dist/public/pareto__2__typescript/auto.provided_interface_glossary.js +3 -0
  43. package/auto.dist/public/pareto__2__typescript/auto.provided_interface_glossary.shadow.d.ts +30 -0
  44. package/auto.dist/public/pareto__2__typescript/auto.provided_interface_glossary.shadow.js +3 -0
  45. package/auto.dist/public/pareto__2__typescript/implementations/serializeCompilationUnit.alg.d.ts +2 -0
  46. package/auto.dist/public/pareto__2__typescript/implementations/serializeCompilationUnit.alg.js +510 -0
  47. package/auto.dist/public/pareto__2__typescript/index.d.ts +2 -0
  48. package/auto.dist/public/pareto__2__typescript/index.js +19 -0
  49. package/auto.dist/public/shorthands/pareto.d.ts +48 -0
  50. package/auto.dist/public/shorthands/pareto.js +241 -0
  51. package/auto.pareto/$.data.ts +45 -0
  52. package/auto.pareto/auto.dependencies/index.ts +9 -0
  53. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/$.data.ts +58 -0
  54. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/arithmetic/api.data.ts +26 -0
  55. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/arithmetic/glossary.data.ts +76 -0
  56. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/array/api.data.ts +21 -0
  57. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/array/glossary.data.ts +60 -0
  58. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/boolean/api.data.ts +21 -0
  59. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/boolean/glossary.data.ts +45 -0
  60. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/build/api.data.ts +25 -0
  61. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/build/glossary.data.ts +133 -0
  62. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/collation/api.data.ts +15 -0
  63. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/collation/glossary.data.ts +34 -0
  64. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/dictionary/api.data.ts +60 -0
  65. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/dictionary/glossary.data.ts +130 -0
  66. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/filesystem/api.data.ts +19 -0
  67. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/filesystem/glossary.data.ts +189 -0
  68. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/foreach/api.data.ts +25 -0
  69. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/foreach/glossary.data.ts +78 -0
  70. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/http/api.data.ts +16 -0
  71. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/http/glossary.data.ts +69 -0
  72. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/json/api.data.ts +16 -0
  73. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/json/glossary.data.ts +51 -0
  74. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/nested/api.data.ts +15 -0
  75. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/nested/glossary.data.ts +29 -0
  76. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/numerical_predicates/api.data.ts +18 -0
  77. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/numerical_predicates/glossary.data.ts +40 -0
  78. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/path/api.data.ts +19 -0
  79. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/path/glossary.data.ts +35 -0
  80. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/resolve/api.data.ts +20 -0
  81. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/resolve/glossary.data.ts +84 -0
  82. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/string/api.data.ts +26 -0
  83. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/string/glossary.data.ts +75 -0
  84. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/tostring/api.data.ts +19 -0
  85. package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/tostring/glossary.data.ts +42 -0
  86. package/auto.pareto/auto.dependencies/res-typescript/$.data.ts +35 -0
  87. package/auto.pareto/auto.dependencies/res-typescript/modules/naming/api.data.ts +15 -0
  88. package/auto.pareto/auto.dependencies/res-typescript/modules/naming/glossary.data.ts +34 -0
  89. package/auto.pareto/auto.dependencies/res-typescript/modules/serialize/api.data.ts +18 -0
  90. package/auto.pareto/auto.dependencies/res-typescript/modules/serialize/glossary.data.ts +42 -0
  91. package/auto.pareto/glossaries/auto.cosmos_type_system.data.ts +1674 -0
  92. package/auto.pareto/glossaries/auto.pareto.data.ts +1283 -0
  93. package/auto.pareto/modules/cosmos2pareto/api.data.ts +18 -0
  94. package/auto.pareto/modules/cosmos2pareto/glossary.data.ts +41 -0
  95. package/auto.pareto/modules/fountain_pen/api.data.ts +17 -0
  96. package/auto.pareto/modules/fountain_pen/glossary.data.ts +32 -0
  97. package/auto.pareto/modules/pareto2typescript/api.data.ts +24 -0
  98. package/auto.pareto/modules/pareto2typescript/glossary.data.ts +47 -0
  99. package/package.json +25 -50
  100. package/README.md +0 -30
  101. package/dist/examples/UnsafePromise.d.ts +0 -0
  102. package/dist/examples/UnsafePromise.js +0 -2
  103. package/dist/examples/UnsafePromise.js.map +0 -1
  104. package/dist/src/index.d.ts +0 -2
  105. package/dist/src/index.js +0 -29
  106. package/dist/src/index.js.map +0 -1
  107. package/dist/test/index.d.ts +0 -0
  108. package/dist/test/index.js +0 -2
  109. package/dist/test/index.js.map +0 -1
@@ -0,0 +1,25 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, sibling, group, member, number, type } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ // import { $ as g_collation } from "../collation/glossary.data"
11
+
12
+ export const $: g_project.D.API<pd.SourceLocation> = api(
13
+ glos,
14
+ {
15
+ "arrayForEach": algorithm("ArrayForEach", null, {}),
16
+ "dictionaryForEach": algorithm("DictionaryForEach", null, {
17
+ //FIXME "compare": sibling("collation", "IsABeforeB"),
18
+ }),
19
+ "enrichedArrayForEach": algorithm("EnrichedArrayForEach", null, {}),
20
+ "enrichedDictionaryForEach": algorithm("EnrichedDictionaryForEach", null, {
21
+ //FIXME "compare": sibling("collation", "IsABeforeB"),
22
+ }),
23
+ "decorateDictionaryEntriesWithKey": algorithm("DecorateDictionaryEntriesWithKey", null, {}),
24
+ }
25
+ )
@@ -0,0 +1,78 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ string,
5
+ dictionary, member, group,
6
+ array,
7
+ typeReference,
8
+ boolean,
9
+ ref,
10
+ sInterfaceMethod,
11
+ sfunction,
12
+ data,
13
+ procedure,
14
+ sInterfaceReference,
15
+ parametrizedType,
16
+ typeParameter,
17
+ sInterface,
18
+ optional,
19
+
20
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
21
+
22
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
23
+ const d = pd.d
24
+
25
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
26
+ 'glossary parameters': d({}),
27
+ 'imports': d({}),
28
+ 'root': {
29
+ 'namespaces': d({}),
30
+ 'data types': d({
31
+ "Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type")))),
32
+ "Dictionary": parametrizedType({ "Type": null }, dictionary(ref(typeParameter("Type")))),
33
+ "KeyValueDictionary": parametrizedType({ "Type": null }, dictionary(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
34
+ "KeyValuePair": parametrizedType({ "Type": null }, group({
35
+ "key": member(string()),
36
+ "value": member(ref(typeParameter("Type"))),
37
+ })),
38
+ "AnnotatedEntry": parametrizedType({ "Type": null }, group({
39
+ "isFirst": member(boolean()),
40
+ "isLast": member(boolean()),
41
+ "key": member(string()),
42
+ "value": member(ref(typeParameter("Type"))),
43
+ })),
44
+ "AnnotatedElement": parametrizedType({ "Type": null }, group({
45
+ "isFirst": member(boolean()),
46
+ "isLast": member(boolean()),
47
+ "value": member(ref(typeParameter("Type"))),
48
+ })),
49
+
50
+
51
+ }),
52
+ },
53
+ 'interface types': d({
54
+ "OnElement": sInterface(sInterfaceMethod(typeParameter("Type")), { "Type": null }),
55
+ "OnEntry": sInterface(sInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })), { "Type": null }),
56
+ "OnEnrichedDictionary": sInterface(['group', {
57
+ 'members': d({
58
+ "onEmpty": sInterfaceMethod(null),
59
+ "onNotEmpty": sInterfaceMethod(null, sInterfaceMethod(typeReference("AnnotatedEntry", { "Type": typeParameter("Type") }))),
60
+ }),
61
+ }], { "Type": null }),
62
+ "OnEnrichedArray": sInterface(['group', {
63
+ 'members': d({
64
+ "onEmpty": sInterfaceMethod(null),
65
+ "onNotEmpty": sInterfaceMethod(null, sInterfaceMethod(typeReference("AnnotatedElement", { "Type": typeParameter("Type") }))),
66
+ }),
67
+ }], { "Type": null }),
68
+ }),
69
+ 'algorithm types': d({
70
+ "ArrayForEach": procedure(data(typeReference("Array", { "Type": typeParameter("Type") })), sInterfaceReference("OnElement", { "Type": typeParameter("Type") }), { "Type": null }),
71
+ "DictionaryForEach": procedure(data(typeReference("Dictionary", { "Type": typeParameter("Type") })), sInterfaceReference("OnEntry", { "Type": typeParameter("Type") }), { "Type": null }),
72
+ "EnrichedDictionaryForEach": procedure(data(typeReference("Dictionary", { "Type": typeParameter("Type") })), sInterfaceReference("OnEnrichedDictionary", { "Type": typeParameter("Type") }), { "Type": null }),
73
+ "EnrichedArrayForEach": procedure(data(typeReference("Array", { "Type": typeParameter("Type") })), sInterfaceReference("OnEnrichedArray", { "Type": typeParameter("Type") }), { "Type": null }),
74
+ "DecorateDictionaryEntriesWithKey": sfunction(typeReference("KeyValueDictionary", { "Type": typeParameter("Type") }), data(typeReference("Dictionary", { "Type": typeParameter("Type") })), { "Type": null }),
75
+
76
+
77
+ }),
78
+ }
@@ -0,0 +1,16 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { array, glossary, group, member, number, ref, string, taggedUnion, type, typeReference } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ export const $: g_project.D.API<pd.SourceLocation> = api(
11
+ glos,
12
+ {
13
+ "initializeHTTPServerProxy": algorithm("Initialize HTTP Server Proxy", "Configuration", {}),
14
+ "initializeHTTPSServerProxy": algorithm("Initialize HTTP Server Proxy", "Configuration", {}),
15
+ }
16
+ )
@@ -0,0 +1,69 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ aInterface, aInterfaceMethod, aInterfaceReference, array, boolean,
5
+ group, member, ref, resource, streamconsumer, string, taggedUnion, type, typeReference
6
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
7
+
8
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
9
+
10
+ const d = pd.d
11
+
12
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
13
+ 'glossary parameters': d({}),
14
+ 'imports': d({
15
+ }),
16
+ 'root': {
17
+ 'namespaces': d({}),
18
+ 'data types': d({
19
+ "Path": type(array(string())),
20
+ "EncounteredErrors": type(boolean()),
21
+ "Data": type(taggedUnion({
22
+ "error": ref(typeReference("HTTPError")),
23
+ "data": string()
24
+ })),
25
+ "HTTPError": type(taggedUnion({
26
+ "unknown": string(),
27
+ })),
28
+
29
+
30
+ "Configuration": type(group({
31
+ "hostName": member(string()),
32
+ "contextPath": member(ref(typeReference("Path"))),
33
+ })),
34
+ }),
35
+ },
36
+ 'interface types': d({
37
+
38
+ //"HandleError": interfaceMethod(typeReference("HTTPError")),
39
+ // "ProcessHTTPResource": func(typeReference("common", "Path"), null, builderReference("Init"), null),
40
+ //"Init": aInterface(aInterfaceMethod(null, ['reference', aInterfaceReference("StreamConsumer")])),
41
+ // "Init": ['choice', {
42
+ // 'options': d({
43
+ // "success": ['reference', aInterfaceReference("StreamConsumer")],
44
+ // "error": ['reference', aInterfaceReference("ErrorStreamConsumer")],
45
+ // })
46
+ // }],
47
+ // "Init": builderMethod(null, ['reference', {
48
+ // 'context': ['local', null],
49
+ // 'interface': "StreamConsumer"
50
+ // }], false),
51
+ // "StreamConsumer": aInterface(streamconsumer(
52
+ // aInterfaceMethod(externalTypeReference("common", "String")),
53
+ // aInterfaceMethod(typeReference("EncounteredErrors")),
54
+ // )),
55
+ "Consumer": aInterface(streamconsumer(
56
+ aInterfaceMethod(typeReference("Data")),
57
+ aInterfaceMethod(null),
58
+ )),
59
+ }),
60
+ 'algorithm types': d({
61
+ "Initialize HTTP Server Proxy": resource(typeReference("Path"), aInterfaceReference("Consumer")),
62
+ // "HTTPRequest": a(, {
63
+ // "init": aInterfaceReference("Init"),
64
+ // "errorConsumer": aInterfaceReference("ErrorStreamConsumer")
65
+ // })
66
+
67
+ }),
68
+
69
+ }
@@ -0,0 +1,16 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, group, member, number, sInterface, sInterfaceMethod, string, type, typeReference } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ export const $: g_project.D.API<pd.SourceLocation> = api(
11
+ glos,
12
+ {
13
+ "convertJSON": algorithm("ConvertJSON", null, {}),
14
+ "unsafeConvertJSON": algorithm("UnsafeConvertJSON", null, {}),
15
+ }
16
+ )
@@ -0,0 +1,51 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ array, afunction, boolean, computed, data, dictionary,
5
+ glossaryParameter, group, member, number, optional, ref, sfunction, string, type, typeReference,
6
+ taggedUnion,
7
+ null_,
8
+ sInterface,
9
+ sInterfaceMethod
10
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
11
+
12
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
13
+
14
+ const d = pd.d
15
+
16
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
17
+ 'glossary parameters': d({
18
+ }),
19
+ 'imports': d({}),
20
+ 'root': {
21
+ 'namespaces': d({}),
22
+ 'data types': d({
23
+ "String": type(string()),
24
+ "Result": type(taggedUnion({
25
+ "success": ref(typeReference("JSONValue")),
26
+ "error": string(),
27
+ })),
28
+ //"Result": type(ref(glossaryParameter("Type"))),
29
+ "JSONValue": type(taggedUnion({
30
+ "object": dictionary(ref(typeReference("JSONValue"))),
31
+ "array": array(ref(typeReference("JSONValue"))),
32
+ "string": string(),
33
+ "number": number(),
34
+ "boolean": boolean(),
35
+ "null": null_(),
36
+ })),
37
+
38
+
39
+ }),
40
+ },
41
+ 'interface types': d({
42
+
43
+ }),
44
+ 'algorithm types': d({
45
+ "ConvertJSON": sfunction(typeReference("Result"), data(typeReference("String"))),
46
+
47
+ /*use this one if the application may crash if the JSON is invalid*/
48
+ "UnsafeConvertJSON": sfunction(typeReference("JSONValue"), data(typeReference("String"))),
49
+ //"Convert": sfunction(typeReference("Result"), data(typeReference("JSONValue"))),
50
+ }),
51
+ }
@@ -0,0 +1,15 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, group, member, number, type } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ export const $: g_project.D.API<pd.SourceLocation> = api(
11
+ glos,
12
+ {
13
+ "flatten": algorithm("Flatten", null, {})
14
+ }
15
+ )
@@ -0,0 +1,29 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ array, data, dictionary, externalTypeReference, glossaryParameter, group, member, null_, parametrizedType, ref, sfunction, string, taggedUnion, type, typeParameter, typeReference
5
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
6
+
7
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
8
+ const d = pd.d
9
+
10
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
11
+ 'glossary parameters': d({}),
12
+ 'imports': d({
13
+ }),
14
+ 'root': {
15
+ 'namespaces': d({}),
16
+ 'data types': d({
17
+ "Nested": parametrizedType({ "Type": null }, taggedUnion({
18
+ "single": ref(typeParameter("Type")),
19
+ "multiple": array(ref(typeReference("Nested", { "Type": typeParameter("Type")}))),
20
+ "none": null_(),
21
+ })),
22
+ "Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type"))))
23
+ }),
24
+ },
25
+ 'interface types': d({}),
26
+ 'algorithm types': d({
27
+ "Flatten": sfunction(typeReference("Array", { "Type": typeParameter("Type")}), data(typeReference("Nested", { "Type": typeParameter("Type")})), { "Type": null })
28
+ }),
29
+ }
@@ -0,0 +1,18 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, group, member, number, type } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ export const $: g_project.D.API<pd.SourceLocation> = api(
11
+ glos,
12
+ {
13
+ "smallerThan": algorithm("SmallerThan", null, {}),
14
+ "greaterThan": algorithm("GreaterThan", null, {}),
15
+ "isZero": algorithm("IsZero", null, {}),
16
+ "equal": algorithm("Equal", null, {}),
17
+ }
18
+ )
@@ -0,0 +1,40 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ array, boolean, data, dictionary, externalTypeReference, group, member, number, optional, sfunction,
5
+ type, typeReference
6
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
7
+
8
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
9
+
10
+ const d = pd.d
11
+
12
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
13
+ 'glossary parameters': d({}),
14
+ 'imports': d({
15
+ }),
16
+ 'root': {
17
+ 'namespaces': d({}),
18
+ 'data types': d({
19
+ "Boolean": type(boolean()),
20
+ "Number": type(number()),
21
+ "NumberPair": type(group({
22
+ "yin": member(number()),
23
+ "yang": member(number()),
24
+ })),
25
+ "CompareData": type(group({
26
+ "benchmark": member(number()),
27
+ "focus": member(number()),
28
+ })),
29
+
30
+ }),
31
+ },
32
+ 'interface types': d({}),
33
+ 'algorithm types': d({
34
+ "IsZero": sfunction(typeReference("Boolean"), data(typeReference("Number"))),
35
+
36
+ "GreaterThan": sfunction(typeReference("Boolean"), data(typeReference("CompareData"))),
37
+ "SmallerThan": sfunction(typeReference("Boolean"), data(typeReference("CompareData"))),
38
+ "Equal": sfunction(typeReference("Boolean"), data(typeReference("NumberPair"))),
39
+ }),
40
+ }
@@ -0,0 +1,19 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, group, member, number, type } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ export const $: g_project.D.API<pd.SourceLocation> = api(
11
+ glos,
12
+ {
13
+
14
+ "convertWindowsPathToPosixPath": algorithm("ConvertWindowsPathToPosixPath", null, {}),
15
+ "basename": algorithm("Basename", null, {}),
16
+ "dirname": algorithm("Dirname", null, {}),
17
+ "parseFilePath": algorithm("ParseFilePath", null, {}),
18
+ }
19
+ )
@@ -0,0 +1,35 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ array, data, externalTypeReference, group, member, sfunction, string, type, typeReference
5
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
6
+
7
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
8
+ const d = pd.d
9
+
10
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
11
+ 'glossary parameters': d({}),
12
+ 'imports': d({
13
+ }),
14
+ 'root': {
15
+ 'namespaces': d({}),
16
+ 'data types': d({
17
+ "String": type(string()),
18
+ "ParseFilePathData": type(group({
19
+ "filePath": member(string()),
20
+ "pathSeparator": member(string()),
21
+ })),
22
+ "ParsedFilePath": type(group({
23
+ "directoryPath": member(array(string())),
24
+ "baseName": member(string()),
25
+ })),
26
+ }),
27
+ },
28
+ 'interface types': d({}),
29
+ 'algorithm types': d({
30
+ "ConvertWindowsPathToPosixPath": sfunction(typeReference("String"), data(typeReference("String"))),
31
+ "Basename": sfunction(typeReference("String"), data(typeReference("String"))),
32
+ "Dirname": sfunction(typeReference("String"), data(typeReference("String"))),
33
+ "ParseFilePath": sfunction(typeReference("ParsedFilePath"), data(typeReference("ParseFilePathData"))),
34
+ }),
35
+ }
@@ -0,0 +1,20 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, group, member, number, sInterface, sInterfaceMethod, string, type, typeReference } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ export const $: g_project.D.API<pd.SourceLocation> = api(
11
+ glos,
12
+ {
13
+ "sortTopologically": algorithm("SortTopologically", null, {}),
14
+ // "unsafeResolveDictionary": algorithm("UnsafeResolveDictionary", null, {}),
15
+ // "safeResolveDictionary": algorithm("SafeResolveDictionary", null, {
16
+ // }, {
17
+ // "onError": sideEffect("OnError", 'sync')
18
+ // }),
19
+ }
20
+ )
@@ -0,0 +1,84 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ string, member, group,
5
+ typeReference,
6
+ data,
7
+ sfunction,
8
+ type,
9
+ externalTypeReference,
10
+ boolean,
11
+ parametrizedType,
12
+ dictionary,
13
+ ref,
14
+ typeParameter,
15
+ array,
16
+ null_,
17
+ computed,
18
+ sInterface,
19
+ sInterfaceMethod,
20
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
21
+
22
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
23
+ const d = pd.d
24
+
25
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
26
+ 'glossary parameters':d({}),
27
+ 'imports': d({
28
+ }),
29
+ 'root': {
30
+ 'namespaces': d({}),
31
+ 'data types': d({
32
+ "Dictionary": parametrizedType({ "Type": null }, dictionary(ref(typeParameter("Type")))),
33
+ "Array": parametrizedType({ "Type": null }, array(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
34
+ "KeyValuePair": parametrizedType({ "Type": null }, group({
35
+ "key": member(string()),
36
+ "value": member(ref(typeParameter("Type"))),
37
+ })),
38
+ "AnySibling": parametrizedType({ "Type": null }, computed(ref(typeParameter("Type")))),
39
+
40
+ "DependencyDictionary": parametrizedType({ "Type": null }, dictionary(group({
41
+ "value": member(ref(typeParameter("Type"))),
42
+ "dependencies": member(dictionary(null_())),
43
+ }))),
44
+
45
+
46
+ "Error": type(string()),
47
+
48
+ }),
49
+ },
50
+ 'interface types': d({
51
+ "OnError": sInterface(sInterfaceMethod(typeReference("Error"))),
52
+
53
+
54
+ }),
55
+ 'algorithm types': d({
56
+ "SortTopologically": sfunction(
57
+ typeReference("Array", { "Type": typeParameter("Type") }),
58
+ data(typeReference("DependencyDictionary", { "Type": typeParameter("Type") })),
59
+ { "Type": null }
60
+ ),
61
+ // "UnsafeResolveDictionary": scallbackfunction(
62
+ // typeReference("Dictionary", { "Type": typeParameter("Out") }),
63
+ // data(typeReference("Dictionary", { "Type": typeParameter("In") })),
64
+ // {
65
+ // "map": scallback(typeParameter("Out"), typeReference("KeyValuePair", { "Type": typeParameter("In") }), {
66
+ // "non circular siblings": typeParameter("Out"),
67
+ // "all siblings": typeReference("AnySibling", { "Type": typeParameter("Out") }),
68
+ // })
69
+ // },
70
+ // { "In": null, "Out": null }
71
+ // ),
72
+ // "SafeResolveDictionary": scallbackfunction(
73
+ // typeReference("Dictionary", { "Type": typeParameter("Out") }),
74
+ // data(typeReference("Dictionary", { "Type": typeParameter("In") })),
75
+ // {
76
+ // "map": scallback(typeParameter("Out"), typeReference("KeyValuePair", { "Type": typeParameter("In") }), {
77
+ // "non circular siblings": typeParameter("Out"),
78
+ // "all siblings": typeReference("AnySibling", { "Type": typeParameter("Out") }),
79
+ // })
80
+ // },
81
+ // { "In": null, "Out": null }
82
+ // ),
83
+ }),
84
+ }
@@ -0,0 +1,26 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, group, member, number, type } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+
10
+ export const $: g_project.D.API<pd.SourceLocation> = api(
11
+ glos,
12
+ {
13
+
14
+ "escape": algorithm("Escape", null, {}),
15
+ "fromCharacterArray": algorithm("FromCharacterArray", null, {}),
16
+ "join": algorithm("Join", null, {}),
17
+ "length": algorithm("Length", null, {}),
18
+ "replaceAll": algorithm("ReplaceAll", null, {}),
19
+ "split": algorithm("Split", null, {}),
20
+ "splitIn2": algorithm("SplitIn2", null, {}),
21
+ "startsWith": algorithm("StartsWith", null, {}),
22
+ "substr": algorithm("Substr", null, {}),
23
+ "toCharacterArray": algorithm("ToCharacterArray", null, {}),
24
+ "trimEnd": algorithm("TrimEnd", null, {}),
25
+ }
26
+ )
@@ -0,0 +1,75 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ aInterface,
5
+ aInterfaceMethod,
6
+ aInterfaceReference,
7
+ array, boolean, data, group, member, number, optional, sfunction, streamconsumer, string, type, typeReference
8
+ } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
9
+
10
+ import * as g_glossary from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
11
+
12
+ const d = pd.d
13
+
14
+ export const $: g_glossary.D.Glossary<pd.SourceLocation> = {
15
+ 'glossary parameters': d({}),
16
+ 'imports': d({
17
+ }),
18
+ 'root': {
19
+ 'namespaces': d({}),
20
+ 'data types': d({
21
+ "String": type(string()),
22
+ "Length": type(number()),
23
+ "Boolean": type(boolean()),
24
+ "CharacterArray": type(array(number())),
25
+ "SplitData": type(group({
26
+ "value": member(string()),
27
+ "splitter": member(string()),
28
+ })),
29
+ "SplitIn2Result": type(group({
30
+ "head": member(string()),
31
+ "tail": member(optional(string())),
32
+ })),
33
+ "SplitResult": type(array(string())),
34
+ "StartsWithData": type(group({
35
+ "contextString": member(string()),
36
+ "searchString": member(string()),
37
+ })),
38
+ "SubstrData": type(group({
39
+ "value": member(string()),
40
+ "begin": member(number()),
41
+ "length": member(number()),
42
+ })),
43
+ "ReplaceAllData": type(group({
44
+ "value": member(string()),
45
+ "pattern": member(string()),
46
+ "replacement": member(string()),
47
+ })),
48
+ "JoinData": type(group({
49
+ "first": member(string()),
50
+ "second": member(string()),
51
+ })),
52
+
53
+ "EscapeParameters": type(group({
54
+ "string": member(string()),
55
+ "escape": member(string()),
56
+ "patterns to escape": member(array(string())),
57
+ }))
58
+ }),
59
+ },
60
+ 'interface types': d({}),
61
+ 'algorithm types': d({
62
+ "Escape": sfunction(typeReference("String"), data(typeReference("EscapeParameters"))),
63
+
64
+ "ReplaceAll": sfunction(typeReference("String"), data(typeReference("ReplaceAllData"))),
65
+ "Substr": sfunction(typeReference("String"), data(typeReference("SubstrData"))),
66
+ "ToCharacterArray": sfunction(typeReference("CharacterArray"), data(typeReference("String"))),
67
+ "Join": sfunction(typeReference("String"), data(typeReference("JoinData"))),
68
+ "FromCharacterArray": sfunction(typeReference("String"), data(typeReference("CharacterArray"))),
69
+ "Split": sfunction(typeReference("SplitResult"), data(typeReference("SplitData"))),
70
+ "SplitIn2": sfunction(typeReference("SplitIn2Result"), data(typeReference("SplitData"))),
71
+ "Length": sfunction(typeReference("Length"), data(typeReference("String"))),
72
+ "TrimEnd": sfunction(typeReference("String"), data(typeReference("String"))),
73
+ "StartsWith": sfunction(typeReference("Boolean"), data(typeReference("StartsWithData"))),
74
+ }),
75
+ }
@@ -0,0 +1,19 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands"
4
+
5
+ import * as g_project from "lib-pareto-typescript-project/dist/modules/pareto_type_system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, member, type, group, string, optional, number } from 'lib-pareto-typescript-project/dist/modules/pareto_type_system/shorthands'
9
+ export const $: g_project.D.API<pd.SourceLocation> = api(
10
+ glos,
11
+ {
12
+ "getArrayAsString": algorithm("GetArrayAsString", "Configuration", {}),
13
+ "getLengthAsString": algorithm("GetLengthAsString", null, {}),
14
+ "getKeysAsString": algorithm("GetKeysAsString", "Configuration", {}),
15
+
16
+ "getNumberOfKeysAsString": algorithm("GetNumberOfKeysAsString", null, {}),
17
+
18
+ }
19
+ )