pareto 0.59.0 → 0.61.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 (118) hide show
  1. package/auto.dist/data/boekhouding.data.js +271 -271
  2. package/auto.dist/index.d.ts +1 -1
  3. package/auto.dist/index.js +3 -3
  4. package/auto.dist/public/modules/main/implementations/temp_$compile_$boekhouding.alg.js +23 -20
  5. package/auto.dist/public/modules/pareto__2__fountain__pen/implementations/compilationUnit_$2_$Indented_$Lines.alg.js +8 -8
  6. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.api.d.ts +1 -1
  7. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.api.js +1 -1
  8. package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/auto.implementation.d.ts +2 -0
  9. package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/auto.implementation.js +6 -0
  10. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.d.ts +7 -5
  11. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
  12. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +3 -3
  13. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
  14. package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/implementations/map.alg.d.ts +0 -0
  15. package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/implementations/map.alg.js +2 -0
  16. package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/implementations/map__Block__2__Block.alg.d.ts +2 -0
  17. package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/implementations/map__Block__2__Block.alg.js +65 -0
  18. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/index.js +1 -1
  19. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/auto.api.d.ts +1 -1
  20. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/auto.implementation.d.ts +1 -1
  21. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/auto.implementation.js +4 -4
  22. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/auto.provided_interface_glossary.d.ts +42 -42
  23. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/auto.provided_interface_glossary.shadow.d.ts +3 -3
  24. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/implementations/map__Block__2__Block.alg.d.ts +2 -0
  25. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/implementations/map__Block__2__Block.alg.js +95 -0
  26. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/implementations/serialize.alg.d.ts +0 -2
  27. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/implementations/serialize.alg.js +1 -94
  28. package/auto.dist/public/modules/typescript__naming/implementations/createIdentifier.alg.js +3 -2
  29. package/auto.pareto/$.data.ts +2 -3
  30. package/auto.pareto/auto.dependencies/index.ts +3 -3
  31. package/auto.pareto/auto.dependencies/pareto-pure/$.data.ts +26 -16
  32. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/index.ts +1 -1
  33. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/$.data.ts +6 -8
  34. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +2 -0
  35. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/array/glossary.data.ts +89 -20
  36. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/buildInterfaceInitializers/glossary.data.ts +167 -0
  37. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/dictionary/api.data.ts +18 -13
  38. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +16 -3
  39. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +0 -1
  40. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/nested/glossary.data.ts +0 -6
  41. package/auto.pareto/auto.dependencies/{pareto-standard-library/modules/arithmetic → pareto-pure/auto.dependencies/pareto-standard-library/modules/number}/api.data.ts +0 -1
  42. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/{arithmetic → number}/glossary.data.ts +2 -11
  43. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/optional/api.data.ts +16 -0
  44. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/optional/glossary.data.ts +36 -0
  45. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +0 -1
  46. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +0 -14
  47. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +14 -2
  48. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +55 -6
  49. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +0 -7
  50. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +0 -13
  51. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.cosmos_type_system.data.ts +113 -65
  52. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.graphviz.data.ts +668 -0
  53. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/fountain_pen_directory.data.ts +45 -0
  54. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/{alan_light_intermediate.data.ts → fountain_pen_indented_file_with_escaped_strings.data.ts} +2 -0
  55. package/auto.pareto/auto.dependencies/pareto-pure/modules/{alan_light_2_alan_light_intermediate → alan_light_2_fountain_pen_indented_file_with_escaped_strings}/api.data.ts +1 -1
  56. package/auto.pareto/{modules/alan_light_intermediate_2 fountain_pen/glossary.data.ts → auto.dependencies/pareto-pure/modules/alan_light_2_fountain_pen_indented_file_with_escaped_strings/glossary.data.ts} +5 -5
  57. package/auto.pareto/auto.dependencies/pareto-pure/modules/{astn_2_fountain_pen → astn_2_fountain_pen_indented_file_with_escaped_strings}/api.data.ts +1 -1
  58. package/auto.pareto/auto.dependencies/pareto-pure/modules/{astn_2_fountain_pen → astn_2_fountain_pen_indented_file_with_escaped_strings}/glossary.data.ts +5 -5
  59. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_graphviz/api.data.ts +17 -0
  60. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_graphviz/glossary.data.ts +30 -0
  61. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_pareto/api.data.ts +1 -1
  62. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_pareto/glossary.data.ts +6 -6
  63. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_typescript_2_fountain_pen_directory/api.data.ts +17 -0
  64. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_typescript_2_fountain_pen_directory/glossary.data.ts +36 -0
  65. package/auto.pareto/auto.dependencies/pareto-pure/modules/{fountain_pen_2_fountain_pen → fountain_pen_indented_file_2_fountain_pen_indented_file}/api.data.ts +1 -1
  66. package/auto.pareto/auto.dependencies/pareto-pure/modules/{fountain_pen_2_fountain_pen → fountain_pen_indented_file_2_fountain_pen_indented_file}/glossary.data.ts +11 -9
  67. package/auto.pareto/auto.dependencies/pareto-pure/modules/{fountain_pen_2_lines → fountain_pen_lines_2_lines}/api.data.ts +1 -1
  68. package/auto.pareto/auto.dependencies/pareto-pure/modules/{fountain_pen_2_lines → fountain_pen_lines_2_lines}/glossary.data.ts +7 -7
  69. package/auto.pareto/auto.dependencies/pareto-pure/modules/graphviz_2_fountain_pen_indented_file_with_escaped_strings/api.data.ts +20 -0
  70. package/auto.pareto/auto.dependencies/pareto-pure/modules/{alan_light_2_alan_light_intermediate → graphviz_2_fountain_pen_indented_file_with_escaped_strings}/glossary.data.ts +5 -5
  71. package/auto.pareto/auto.dependencies/pareto-pure/modules/{pareto_2_typescript → pareto_2_typescript_intermediate}/api.data.ts +1 -1
  72. package/auto.pareto/auto.dependencies/pareto-pure/modules/{pareto_2_typescript → pareto_2_typescript_intermediate}/glossary.data.ts +6 -6
  73. package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_alan_light/api.data.ts +1 -1
  74. package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_alan_light/glossary.data.ts +5 -5
  75. package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_cosmos_type_system/glossary.data.ts +6 -6
  76. package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_pareto/glossary.data.ts +6 -6
  77. package/auto.pareto/auto.dependencies/pareto-standard-library/$.data.ts +6 -8
  78. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +2 -0
  79. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/glossary.data.ts +89 -20
  80. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/buildInterfaceInitializers/glossary.data.ts +167 -0
  81. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/api.data.ts +18 -13
  82. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +16 -3
  83. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +0 -1
  84. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/glossary.data.ts +0 -6
  85. package/auto.pareto/auto.dependencies/{pareto-pure/auto.dependencies/pareto-standard-library/modules/arithmetic → pareto-standard-library/modules/number}/api.data.ts +0 -1
  86. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/{arithmetic → number}/glossary.data.ts +2 -11
  87. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/optional/api.data.ts +16 -0
  88. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/optional/glossary.data.ts +36 -0
  89. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +0 -1
  90. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +0 -14
  91. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +14 -2
  92. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +55 -6
  93. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +0 -7
  94. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +0 -13
  95. package/auto.pareto/auto.dependencies/pareto-subatomic-library/$.data.ts +2 -0
  96. package/auto.pareto/auto.dependencies/pareto-subatomic-library/glossaries/lines.data.ts +27 -0
  97. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/array/glossary.data.ts +15 -5
  98. package/auto.pareto/{modules/alan_light_intermediate_2 fountain_pen/api.data.ts → auto.dependencies/pareto-subatomic-library/modules/filesystem/api.data.ts} +1 -1
  99. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/filesystem/glossary.data.ts +59 -0
  100. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/string/api.data.ts +1 -3
  101. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/string/glossary.data.ts +22 -10
  102. package/auto.pareto/modules/main/api.data.ts +0 -1
  103. package/auto.pareto/modules/pareto_2_fountain_pen/glossary.data.ts +2 -2
  104. package/auto.pareto/modules/string_aware_fountain_pen_2 fountain_pen/api.data.ts +15 -0
  105. package/auto.pareto/modules/string_aware_fountain_pen_2 fountain_pen/glossary.data.ts +27 -0
  106. package/auto.pareto/modules/typescript_intermediate_2_fountain_pen/api.data.ts +1 -1
  107. package/auto.pareto/modules/typescript_intermediate_2_fountain_pen/glossary.data.ts +4 -4
  108. package/package.json +8 -8
  109. package/auto.dist/public/modules/alan__light__intermediate__2__fountain__pen/auto.implementation.d.ts +0 -2
  110. package/auto.dist/public/modules/alan__light__intermediate__2__fountain__pen/auto.implementation.js +0 -6
  111. package/auto.dist/public/modules/alan__light__intermediate__2__fountain__pen/implementations/map.alg.d.ts +0 -2
  112. package/auto.dist/public/modules/alan__light__intermediate__2__fountain__pen/implementations/map.alg.js +0 -61
  113. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -125
  114. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -125
  115. /package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/index.d.ts +0 -0
  116. /package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/{build → buildInterfaceInitializers}/api.data.ts +0 -0
  117. /package/auto.pareto/auto.dependencies/pareto-pure/glossaries/{fountain_pen.data.ts → fountain_pen_indented_file.data.ts} +0 -0
  118. /package/auto.pareto/auto.dependencies/pareto-standard-library/modules/{build → buildInterfaceInitializers}/api.data.ts +0 -0
@@ -14,6 +14,8 @@ export const $: g_project.D.API = api(
14
14
  "append": algorithm("Append", null, {}),
15
15
  "prepend": algorithm("Prepend", null, {}),
16
16
  "zip": algorithm("Zip", null, {}),
17
+ "flattenTree": algorithm("FlattenTree", null, {}),
18
+ "unsafeSortTopologically": algorithm("SortTopologically", null, {}),
17
19
 
18
20
  }
19
21
  )
@@ -1,7 +1,9 @@
1
1
  import * as pd from 'pareto-core-data'
2
2
 
3
3
  import {
4
- array, data, dictionary, externalTypeReference, group, member, number, optional, parametrizedType, ref, sfunction,
4
+ array, data, dictionary, externalTypeReference, group, member, null_, number, optional, parametrizedType, ref, sfunction,
5
+ string,
6
+ taggedUnion,
5
7
  type, typeParameter, typeReference
6
8
  } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
7
9
 
@@ -16,37 +18,104 @@ export const $: g_glossary.D.Glossary = {
16
18
  'root': {
17
19
  'namespaces': d({}),
18
20
  'data types': d({
19
- "Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type")))),
20
- "ArrayOfArrays": parametrizedType({ "Type": null }, array(ref(typeReference("Array", { "Type": typeParameter("Type") })))),
21
+ //out
22
+ "Array": parametrizedType(
23
+ { "Type": null },
24
+ array(ref(typeParameter("Type")))
25
+ ),
21
26
 
22
- "AppendParameters": parametrizedType({ "Type": null }, group({
23
- "array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
24
- "element": member(ref(typeParameter("Type"))),
25
- })),
26
- "PrependParameters": parametrizedType({ "Type": null }, group({
27
- "array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
28
- "element": member(ref(typeParameter("Type"))),
29
- })),
30
- "ArrayTuple": parametrizedType({ "Benchmark": null, "Focus": null }, group({
31
- "benchmark": member(ref(typeReference("Array", { "Type": typeParameter("Benchmark") }))),
32
- "focus": member(ref(typeReference("Array", { "Type": typeParameter("Focus") }))),
27
+ "ZippedArray": parametrizedType(
28
+ { "Benchmark": null, "Focus": null },
29
+ array(group({
30
+ "benchmark": member(ref(typeParameter("Benchmark"))),
31
+ "focus": member(ref(typeParameter("Focus"))),
32
+ }))
33
+ ),
34
+
35
+ //in
36
+ "ArrayOfArrays": parametrizedType(
37
+ { "Type": null },
38
+ array(ref(typeReference("Array", { "Type": typeParameter("Type") })))),
39
+
40
+ "AppendParameters": parametrizedType(
41
+ { "Type": null },
42
+ group({
43
+ "array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
44
+ "element": member(ref(typeParameter("Type"))),
45
+ })
46
+ ),
47
+ "PrependParameters": parametrizedType(
48
+ { "Type": null },
49
+ group({
50
+ "array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
51
+ "element": member(ref(typeParameter("Type"))),
52
+ })
53
+ ),
54
+ "ArrayTuple": parametrizedType(
55
+ { "Benchmark": null, "Focus": null },
56
+ group({
57
+ "benchmark": member(ref(typeReference("Array", { "Type": typeParameter("Benchmark") }))),
58
+ "focus": member(ref(typeReference("Array", { "Type": typeParameter("Focus") }))),
59
+ })
60
+ ),
61
+ "Nested": parametrizedType({ "Type": null }, taggedUnion({
62
+ "single": ref(typeParameter("Type")),
63
+ "multiple": array(ref(typeReference("Nested", { "Type": typeParameter("Type") }))),
64
+ "none": null_(),
33
65
  })),
34
- "ZippedArray": parametrizedType({ "Benchmark": null, "Focus": null }, array(group({
35
- "benchmark": member(ref(typeParameter("Benchmark"))),
36
- "focus": member(ref(typeParameter("Focus"))),
66
+ // "Array": parametrizedType({ "Type": null }, array(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
67
+ // "KeyValuePair": parametrizedType({ "Type": null }, group({
68
+ // "key": member(string()),
69
+ // "value": member(ref(typeParameter("Type"))),
70
+ // })),
71
+
72
+ "DependencyDictionary": parametrizedType({ "Type": null }, dictionary(group({
73
+ "value": member(ref(typeParameter("Type"))),
74
+ "dependencies": member(dictionary(null_())),
37
75
  }))),
38
76
 
77
+
78
+ "KeyValuePairArray": parametrizedType({ "Type": null }, array(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
79
+ "KeyValuePair": parametrizedType({ "Type": null }, group({
80
+ "key": member(string()),
81
+ "value": member(ref(typeParameter("Type"))),
82
+ })),
83
+
39
84
  }),
40
85
  },
41
86
  'interface types': d({}),
42
87
  'algorithm types': d({
43
- "Append": sfunction(typeReference("Array", { "Type": typeParameter("Type") }), data(typeReference("AppendParameters", { "Type": typeParameter("Type") })), { "Type": null }),
44
- "Prepend": sfunction(typeReference("Array", { "Type": typeParameter("Type") }), data(typeReference("PrependParameters", { "Type": typeParameter("Type") })), { "Type": null }),
45
- "FlattenArrayOfArrays": sfunction(typeReference("Array", { "Type": typeParameter("Type") }), data(typeReference("ArrayOfArrays", { "Type": typeParameter("Type") })), { "Type": null }),
88
+ "Append": sfunction(
89
+ typeReference("Array", { "Type": typeParameter("Type") }),
90
+ data(typeReference("AppendParameters", { "Type": typeParameter("Type") })),
91
+ { "Type": null }
92
+ ),
93
+ "Prepend": sfunction(
94
+ typeReference("Array", { "Type": typeParameter("Type") }),
95
+ data(typeReference("PrependParameters", { "Type": typeParameter("Type") })),
96
+ { "Type": null }
97
+ ),
98
+ "FlattenArrayOfArrays": sfunction(
99
+ typeReference("Array", { "Type": typeParameter("Type") }),
100
+ data(typeReference("ArrayOfArrays", { "Type": typeParameter("Type") })),
101
+ { "Type": null },
102
+ ),
103
+ "FlattenTree": sfunction(
104
+ typeReference("Array", { "Type": typeParameter("Type") }),
105
+ data(typeReference("Nested", { "Type": typeParameter("Type") })),
106
+ { "Type": null }
107
+ ),
46
108
  "Zip": sfunction(
47
109
  typeReference("ZippedArray", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") }),
48
110
  data(typeReference("ArrayTuple", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") })),
49
111
  { "Benchmark": null, "Focus": null }
50
112
  ),
113
+
114
+
115
+ "SortTopologically": sfunction(
116
+ typeReference("KeyValuePairArray", { "Type": typeParameter("Type") }),
117
+ data(typeReference("DependencyDictionary", { "Type": typeParameter("Type") })),
118
+ { "Type": null }
119
+ ),
51
120
  }),
52
121
  }
@@ -0,0 +1,167 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ aInterfaceMethod,
5
+ aInterfaceReference,
6
+ array, dictionary, ref, typeParameter, group, sInf, member,
7
+ sfunction,
8
+ sInterfaceMethod, sInterfaceReference, streamconsumer, string, taggedUnion, type, typeReference, aInterface, sInterface, parametrizedType,
9
+ infInit
10
+ } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
11
+
12
+ import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
13
+ const d = pd.d
14
+
15
+ export const $: g_glossary.D.Glossary = {
16
+ 'glossary parameters': d({}),
17
+ 'imports': d({
18
+ }),
19
+ 'root': {
20
+ 'namespaces': d({}),
21
+ 'data types': d({
22
+ "Simple Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type")))),
23
+
24
+ "Simple Dictionary": parametrizedType({ "Type": null }, dictionary(ref(typeParameter("Type")))),
25
+ "Simple String": type(string()),
26
+
27
+ "Array": parametrizedType({ "Type": null, "EndType": null }, group({
28
+ "array": member(array(ref(typeParameter("Type")))),
29
+ "end": member(ref(typeParameter("EndType"))),
30
+ })),
31
+ "Dictionary": parametrizedType({ "Type": null, "EndType": null }, group({
32
+ "dictionary": member(dictionary(ref(typeParameter("Type")))),
33
+ "end": member(ref(typeParameter("EndType"))),
34
+ })),
35
+ "String": parametrizedType({ "EndType": null }, group({
36
+ "string": member(string()),
37
+ "end": member(ref(typeParameter("EndType"))),
38
+ })),
39
+ "KeyValuePair": parametrizedType({ "Type": null }, group({
40
+ "key": member(string()),
41
+ "value": member(ref(typeParameter("Type"))),
42
+ })),
43
+
44
+ "DictionaryBuildStrategy": type(taggedUnion({
45
+ "ignore": group({}),
46
+ "overwrite": group({}),
47
+ })),
48
+ "Startstring": type(string()),
49
+ }),
50
+ },
51
+ 'interface types': d({
52
+ "Array": aInterface(
53
+ aInterfaceMethod(typeReference("Array", {
54
+ "Type": typeParameter("Type"),
55
+ "EndType": typeParameter("EndType")
56
+ })),
57
+ { "Type": null, "EndType": null }
58
+ ),
59
+ "Dictionary": aInterface(
60
+ aInterfaceMethod(typeReference("Dictionary", {
61
+ "Type": typeParameter("Type"),
62
+ "EndType": typeParameter("EndType")
63
+ })),
64
+ { "Type": null, "EndType": null }
65
+ ),
66
+ "Elements": aInterface(
67
+ streamconsumer(
68
+ aInterfaceMethod(typeParameter("Type")),
69
+ aInterfaceMethod(typeParameter("EndType")),
70
+ ),
71
+ { "Type": null, "EndType": null }
72
+ ),
73
+ "Entries": aInterface(
74
+ streamconsumer(
75
+ aInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })),
76
+ aInterfaceMethod(typeParameter("EndType")),
77
+ ),
78
+ { "Type": null, "EndType": null }
79
+ ),
80
+ "DuplicatesHandler": aInterface(
81
+ streamconsumer(
82
+ aInterfaceMethod(typeReference("Simple String")),
83
+ aInterfaceMethod(null),
84
+ )
85
+ ),
86
+ "StringConsumer": aInterface(
87
+ aInterfaceMethod(typeReference("String", { "EndType": typeParameter("EndType") })),
88
+ { "EndType": null }
89
+ ),
90
+ "StringStreamConsumer": aInterface(
91
+ streamconsumer(
92
+ aInterfaceMethod(typeReference("Simple String")),
93
+ aInterfaceMethod(typeParameter("EndType")),
94
+ ),
95
+ { "EndType": null }
96
+ ),
97
+ "Add": sInterface(
98
+ sInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })),
99
+ { "Type": null }
100
+ ),
101
+ "Push": sInterface(
102
+ sInterfaceMethod(typeParameter("Type")),
103
+ { "Type": null }
104
+ ),
105
+ }),
106
+ 'algorithm types': d({
107
+ "CreateArrayBuilder": infInit(
108
+ aInterfaceReference("Elements", {
109
+ "Type": typeParameter("Type"),
110
+ "EndType": typeParameter("EndType"),
111
+ }),
112
+ {
113
+ "handler": aInterfaceReference("Array", {
114
+ "Type": typeParameter("Type"),
115
+ "EndType": typeParameter("EndType"),
116
+ }),
117
+ },
118
+ { "Type": null, "EndType": null }
119
+ ),
120
+ "CreateUnsafeDictionaryBuilder": infInit(
121
+ aInterfaceReference("Entries", {
122
+ "Type": typeParameter("Type"),
123
+ "EndType": typeParameter("EndType"),
124
+ }),
125
+ {
126
+ "handler": aInterfaceReference("Dictionary", {
127
+ "Type": typeParameter("Type"),
128
+ "EndType": typeParameter("EndType")
129
+ }),
130
+ },
131
+ { "Type": null, "EndType": null }
132
+ ),
133
+ "CreateSafeDictionaryBuilder": infInit(
134
+ aInterfaceReference("Entries", {
135
+ "Type": typeParameter("Type"),
136
+ "EndType": typeParameter("EndType"),
137
+ }),
138
+ {
139
+ "handler": aInterfaceReference("Dictionary", {
140
+ "Type": typeParameter("Type"),
141
+ "EndType": typeParameter("EndType")
142
+ }),
143
+ "duplicatesHandler": aInterfaceReference("DuplicatesHandler"),
144
+
145
+ },
146
+ { "Type": null, "EndType": null }
147
+ ),
148
+ "CreateStringBuilder": infInit(
149
+ aInterfaceReference("StringStreamConsumer", { "EndType": typeParameter("EndType") }),
150
+ {
151
+ "handler": aInterfaceReference("StringConsumer", { "EndType": typeParameter("EndType") }),
152
+ },
153
+ { "EndType": null }
154
+ ),
155
+ // "BuildArray": sfunction(typeReference("Simple Array", {
156
+ // "Type": typeParameter("Type"),
157
+ // }), sInf(sInterfaceReference("Push", { "Type": typeParameter("Type") })), { "Type": null }),
158
+ // "BuildUnsafeDictionary": sfunction(typeReference("Simple Dictionary", {
159
+ // "Type": typeParameter("Type"),
160
+ // }), sInf(sInterfaceReference("Add", { "Type": typeParameter("Type") })), { "Type": null }),
161
+ // "BuildSafeDictionary": sfunction(typeReference("Simple Dictionary", {
162
+ // "Type": typeParameter("Type"),
163
+ // }), sInf(sInterfaceReference("Add", { "Type": typeParameter("Type") })), { "Type": null }),
164
+
165
+ }),
166
+
167
+ }
@@ -10,7 +10,21 @@ import { aInterface, aInterfaceMethod, glossary, group, member, number, sInterfa
10
10
  export const $: g_project.D.API = api(
11
11
  glos,
12
12
  {
13
+ "decorateDictionaryEntriesWithKey": algorithm("DecorateDictionaryEntriesWithKey", null, {}),
14
+
13
15
  "filter": algorithm("Filter", null, {}),
16
+ /**
17
+ * the keys of the outermost dictionary is combined with the key of the innermost dictionary
18
+ */
19
+ "flattenDictionaryOfDictionaries": algorithm("FlattenDictionaryOfDictionaries", null, {}),
20
+ /**
21
+ * 2 dictionaries are combined into 1 dictionary. is a key exists in both directories, only the entry of the last dictionary will be used.
22
+ */
23
+ "mergeAndOverwrite": algorithm("MergeAndOverwrite", null, {}),
24
+ /**
25
+ * 2 dictionaries are combined into 1 dictionary. is a key exists in both directories, only the entry of the first dictionary will be used.
26
+ */
27
+ "mergeAndIgnore": algorithm("MergeAndIgnore", null, {}),
14
28
  /**
15
29
  * a dictionary with containing entries with values and a key candidate is transformed
16
30
  * into a dictionary where the new key of the entry is the candidate. If candidates are not unique
@@ -26,24 +40,15 @@ export const $: g_project.D.API = api(
26
40
  * if the key is not unique the function panics
27
41
  */
28
42
  "unsafeAddEntry": algorithm("UnsafeAddEntry", null, {}),
43
+ /**
44
+ * prepends and appends strings to all keys in the dictionary
45
+ */
46
+ "wrapKeys": algorithm("WrapKeys", null, {}),
29
47
  /**
30
48
  * a focus dictionary is matched to a benchmark dictionary resulting in a result dictionary
31
49
  * this last dictionary contains all entries found in the benchmark dictionary.
32
50
  * each entry value is optionally supplemented with the value of the focus entry, if found.
33
51
  */
34
52
  "zip": algorithm("Zip", null, {}),
35
- /**
36
- * 2 dictionaries are combined into 1 dictionary. is a key exists in both directories, only the entry of the last dictionary will be used.
37
- */
38
- "mergeAndOverwrite": algorithm("MergeAndOverwrite", null, {}),
39
- /**
40
- * the keys of the outermost dictionary is combined with the key of the innermost dictionary
41
- */
42
- "flattenDictionaryOfDictionaries": algorithm("FlattenDictionaryOfDictionaries", null, {}),
43
- /**
44
- * 2 dictionaries are combined into 1 dictionary. is a key exists in both directories, only the entry of the first dictionary will be used.
45
- */
46
- "mergeAndIgnore": algorithm("MergeAndIgnore", null, {}),
47
- "decorateDictionaryEntriesWithKey": algorithm("DecorateDictionaryEntriesWithKey", null, {}),
48
53
  }
49
54
  )
@@ -65,7 +65,11 @@ export const $: g_glossary.D.Glossary = {
65
65
  "KeyValueDictionary": parametrizedType({ "Type": null }, dictionary(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
66
66
 
67
67
  "RekeyDictionary": parametrizedType({ "Type": null }, dictionary(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
68
-
68
+ "WrapKeysData": parametrizedType({ "Type": null }, group({
69
+ "dictionary": member(ref(typeReference("Dictionary", { "Type": typeParameter("Type") }))),
70
+ "prefix": member(string()),
71
+ "suffix": member(string()),
72
+ })),
69
73
  }),
70
74
  },
71
75
  'interface types': d({
@@ -110,8 +114,17 @@ export const $: g_glossary.D.Glossary = {
110
114
  typeReference("Dictionary", { "Type": typeParameter("Type") }),
111
115
  data(typeReference("MergeParameters", { "Type": typeParameter("Type") })),
112
116
  { "Type": null }
113
- ),
114
- "DecorateDictionaryEntriesWithKey": sfunction(typeReference("KeyValueDictionary", { "Type": typeParameter("Type") }), data(typeReference("Dictionary", { "Type": typeParameter("Type") })), { "Type": null }),
117
+ ),
118
+ "DecorateDictionaryEntriesWithKey": sfunction(
119
+ typeReference("KeyValueDictionary", { "Type": typeParameter("Type") }),
120
+ data(typeReference("Dictionary", { "Type": typeParameter("Type") })),
121
+ { "Type": null }
122
+ ),
123
+ "WrapKeys": sfunction(
124
+ typeReference("Dictionary", { "Type": typeParameter("Type") }),
125
+ data(typeReference("WrapKeysData", { "Type": typeParameter("Type") })),
126
+ { "Type": null }
127
+ ),
115
128
 
116
129
  }),
117
130
 
@@ -10,6 +10,5 @@ import { glossary, group, member, number, type } from "pareto-pure/auto.dist/pub
10
10
  export const $: g_project.D.API = api(
11
11
  glos,
12
12
  {
13
- "flatten": algorithm("Flatten", null, {})
14
13
  }
15
14
  )
@@ -14,16 +14,10 @@ export const $: g_glossary.D.Glossary = {
14
14
  'root': {
15
15
  'namespaces': d({}),
16
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
17
  "Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type"))))
23
18
  }),
24
19
  },
25
20
  'interface types': d({}),
26
21
  'algorithm types': d({
27
- "Flatten": sfunction(typeReference("Array", { "Type": typeParameter("Type")}), data(typeReference("Nested", { "Type": typeParameter("Type")})), { "Type": null })
28
22
  }),
29
23
  }
@@ -11,7 +11,6 @@ export const $: g_project.D.API = api(
11
11
  glos,
12
12
  {
13
13
  "add": algorithm("Add", null, {}),
14
- "divideWithRemainder": algorithm("DivideWithRemainder", null, {}),
15
14
  "increment": algorithm("Increment", "IncrementConfig", {}),
16
15
  "min": algorithm("Min", null, {}),
17
16
  "max": algorithm("Max", null, {}),
@@ -19,19 +19,10 @@ export const $: g_glossary.D.Glossary = {
19
19
  "Number": type(number()),
20
20
  "OptionalNumber": type(optional(number())),
21
21
  "NumberRange": type(array(number())),
22
- "DivisionData": type(group({
23
- "numerator": member(number()),
24
- "denominator": member(number()),
25
- })),
26
22
  "NumberTuple": type(group({
27
23
  "yin": member(number()),
28
24
  "yang": member(number()),
29
25
  })),
30
- "DivisionResult": type(optional(group({
31
- "quotient": member(number()),
32
- "remainder": member(number()),
33
-
34
- }))),
35
26
  "SubtractData": type(group({
36
27
  "minuend": member(number()),
37
28
  "subtrahend": member(number()),
@@ -52,10 +43,10 @@ export const $: g_glossary.D.Glossary = {
52
43
  // "Array Multiply": sfunction(typeReference("Number"), data(typeReference("NumberRange"))),
53
44
  "Negate": sfunction(typeReference("Number"), data(typeReference("Number"))),
54
45
  /**
55
- * if the denominator is 0, the return value is null
46
+ * if the denominator is 0, the return value is not set
56
47
  * (division by 0),
57
48
  */
58
- "DivideWithRemainder": sfunction(typeReference("DivisionResult"), data(typeReference("DivisionData"))),
49
+
59
50
  /**
60
51
  * calculates the max of an array of numbers. If there are no entries, the result value is 0
61
52
  */
@@ -0,0 +1,16 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import { algorithm, algref, api } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
4
+
5
+ import * as g_project from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
6
+
7
+ import { $ as glos } from "./glossary.data"
8
+ import { glossary, group, member, number, type } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
9
+
10
+ export const $: g_project.D.API = api(
11
+ glos,
12
+ {
13
+ "divide": algorithm("Divide", null, {}),
14
+ "divisionRemainder": algorithm("DivisionRemainder", null, {}),
15
+ }
16
+ )
@@ -0,0 +1,36 @@
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 "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
7
+
8
+ import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
9
+
10
+ const d = pd.d
11
+
12
+ export const $: g_glossary.D.Glossary = {
13
+ 'glossary parameters': d({}),
14
+ 'imports': d({
15
+ }),
16
+ 'root': {
17
+ 'namespaces': d({}),
18
+ 'data types': d({
19
+ "OptionalNumber": type(optional(number())),
20
+ "DivisionData": type(group({
21
+ "numerator": member(number()),
22
+ "denominator": member(number()),
23
+ })),
24
+ }),
25
+ },
26
+ 'interface types': d({}),
27
+ 'algorithm types': d({
28
+ /**
29
+ * if the denominator is 0, the return value is not set
30
+ * (division by 0),
31
+ */
32
+ "Divide": sfunction(typeReference("OptionalNumber"), data(typeReference("DivisionData"))),
33
+ "DivisionRemainder": sfunction(typeReference("OptionalNumber"), data(typeReference("DivisionData"))),
34
+ }),
35
+
36
+ }
@@ -10,6 +10,5 @@ import { glossary, group, member, number, sInterface, sInterfaceMethod, string,
10
10
  export const $: g_project.D.API = api(
11
11
  glos,
12
12
  {
13
- "unsafeSortTopologically": algorithm("SortTopologically", null, {}),
14
13
  }
15
14
  )
@@ -29,24 +29,10 @@ export const $: g_glossary.D.Glossary = {
29
29
  'root': {
30
30
  'namespaces': d({}),
31
31
  'data types': d({
32
- "Array": parametrizedType({ "Type": null }, array(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
33
- "KeyValuePair": parametrizedType({ "Type": null }, group({
34
- "key": member(string()),
35
- "value": member(ref(typeParameter("Type"))),
36
- })),
37
32
 
38
- "DependencyDictionary": parametrizedType({ "Type": null }, dictionary(group({
39
- "value": member(ref(typeParameter("Type"))),
40
- "dependencies": member(dictionary(null_())),
41
- }))),
42
33
  }),
43
34
  },
44
35
  'interface types': d({}),
45
36
  'algorithm types': d({
46
- "SortTopologically": sfunction(
47
- typeReference("Array", { "Type": typeParameter("Type") }),
48
- data(typeReference("DependencyDictionary", { "Type": typeParameter("Type") })),
49
- { "Type": null }
50
- ),
51
37
  }),
52
38
  }
@@ -10,8 +10,20 @@ import { glossary, group, member, number, type } from "pareto-pure/auto.dist/pub
10
10
  export const $: g_project.D.API = api(
11
11
  glos,
12
12
  {
13
- "join": algorithm("Join", null, {}),
13
+ "join 2 strings": algorithm("Join 2 Strings", null, {}),
14
+ "join array of strings": algorithm("Join Array Of Strings", null, {}),
14
15
  "repeat": algorithm("Repeat", null, {}),
15
- "foo": algorithm("Foo", null, {}),
16
+
17
+ /**
18
+ * this functon joins an array of strings into a single string, using a separator, and optionally a maximum number of elements to join
19
+ */
20
+ "getArrayAsString": algorithm("GetArrayAsString", "Configuration", {}),
21
+
22
+ "getLengthAsString": algorithm("GetLengthAsString", null, {}),
23
+
24
+ //this one implicitely sorts the keys
25
+ //"getKeysAsString": algorithm("GetKeysAsString", "Configuration", {}),
26
+
27
+ "getNumberOfKeysAsString": algorithm("GetNumberOfKeysAsString", null, {}),
16
28
  }
17
29
  )