@aidc-toolkit/app-extension 1.0.44-beta → 1.0.45

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 (160) hide show
  1. package/dist/index.cjs +17 -0
  2. package/dist/index.d.cts +1752 -0
  3. package/dist/index.d.ts +1752 -26
  4. package/dist/index.js +1 -8
  5. package/package.json +5 -5
  6. package/tsconfig-src.tsbuildinfo +1 -1
  7. package/dist/app-extension.d.ts +0 -194
  8. package/dist/app-extension.d.ts.map +0 -1
  9. package/dist/app-extension.js +0 -133
  10. package/dist/app-extension.js.map +0 -1
  11. package/dist/app-helper-proxy.d.ts +0 -61
  12. package/dist/app-helper-proxy.d.ts.map +0 -1
  13. package/dist/app-helper-proxy.js +0 -333
  14. package/dist/app-helper-proxy.js.map +0 -1
  15. package/dist/descriptor.d.ts +0 -197
  16. package/dist/descriptor.d.ts.map +0 -1
  17. package/dist/descriptor.js +0 -44
  18. package/dist/descriptor.js.map +0 -1
  19. package/dist/generator/generator.d.ts +0 -124
  20. package/dist/generator/generator.d.ts.map +0 -1
  21. package/dist/generator/generator.js +0 -190
  22. package/dist/generator/generator.js.map +0 -1
  23. package/dist/generator/index.d.ts +0 -18
  24. package/dist/generator/index.d.ts.map +0 -1
  25. package/dist/generator/index.js +0 -18
  26. package/dist/generator/index.js.map +0 -1
  27. package/dist/generator/locale-resources-generator.d.ts +0 -2
  28. package/dist/generator/locale-resources-generator.d.ts.map +0 -1
  29. package/dist/generator/locale-resources-generator.js +0 -312
  30. package/dist/generator/locale-resources-generator.js.map +0 -1
  31. package/dist/gs1/character-set-proxy.d.ts +0 -13
  32. package/dist/gs1/character-set-proxy.d.ts.map +0 -1
  33. package/dist/gs1/character-set-proxy.js +0 -126
  34. package/dist/gs1/character-set-proxy.js.map +0 -1
  35. package/dist/gs1/check-proxy.d.ts +0 -11
  36. package/dist/gs1/check-proxy.d.ts.map +0 -1
  37. package/dist/gs1/check-proxy.js +0 -163
  38. package/dist/gs1/check-proxy.js.map +0 -1
  39. package/dist/gs1/gcp-length-proxy.d.ts +0 -11
  40. package/dist/gs1/gcp-length-proxy.d.ts.map +0 -1
  41. package/dist/gs1/gcp-length-proxy.js +0 -190
  42. package/dist/gs1/gcp-length-proxy.js.map +0 -1
  43. package/dist/gs1/gtin-creator-proxy.d.ts +0 -10
  44. package/dist/gs1/gtin-creator-proxy.d.ts.map +0 -1
  45. package/dist/gs1/gtin-creator-proxy.js +0 -85
  46. package/dist/gs1/gtin-creator-proxy.js.map +0 -1
  47. package/dist/gs1/gtin-descriptor.d.ts +0 -3
  48. package/dist/gs1/gtin-descriptor.d.ts.map +0 -1
  49. package/dist/gs1/gtin-descriptor.js +0 -8
  50. package/dist/gs1/gtin-descriptor.js.map +0 -1
  51. package/dist/gs1/gtin-validator-proxy.d.ts +0 -26
  52. package/dist/gs1/gtin-validator-proxy.d.ts.map +0 -1
  53. package/dist/gs1/gtin-validator-proxy.js +0 -256
  54. package/dist/gs1/gtin-validator-proxy.js.map +0 -1
  55. package/dist/gs1/identifier-creator-proxy.d.ts +0 -30
  56. package/dist/gs1/identifier-creator-proxy.d.ts.map +0 -1
  57. package/dist/gs1/identifier-creator-proxy.js +0 -302
  58. package/dist/gs1/identifier-creator-proxy.js.map +0 -1
  59. package/dist/gs1/identifier-descriptor.d.ts +0 -4
  60. package/dist/gs1/identifier-descriptor.d.ts.map +0 -1
  61. package/dist/gs1/identifier-descriptor.js +0 -14
  62. package/dist/gs1/identifier-descriptor.js.map +0 -1
  63. package/dist/gs1/identifier-type.d.ts +0 -22
  64. package/dist/gs1/identifier-type.d.ts.map +0 -1
  65. package/dist/gs1/identifier-type.js +0 -34
  66. package/dist/gs1/identifier-type.js.map +0 -1
  67. package/dist/gs1/identifier-validator-proxy.d.ts +0 -29
  68. package/dist/gs1/identifier-validator-proxy.d.ts.map +0 -1
  69. package/dist/gs1/identifier-validator-proxy.js +0 -212
  70. package/dist/gs1/identifier-validator-proxy.js.map +0 -1
  71. package/dist/gs1/index.d.ts +0 -11
  72. package/dist/gs1/index.d.ts.map +0 -1
  73. package/dist/gs1/index.js +0 -11
  74. package/dist/gs1/index.js.map +0 -1
  75. package/dist/gs1/non-gtin-creator-proxy.d.ts +0 -38
  76. package/dist/gs1/non-gtin-creator-proxy.d.ts.map +0 -1
  77. package/dist/gs1/non-gtin-creator-proxy.js +0 -301
  78. package/dist/gs1/non-gtin-creator-proxy.js.map +0 -1
  79. package/dist/gs1/non-gtin-validator-proxy.d.ts +0 -37
  80. package/dist/gs1/non-gtin-validator-proxy.d.ts.map +0 -1
  81. package/dist/gs1/non-gtin-validator-proxy.js +0 -302
  82. package/dist/gs1/non-gtin-validator-proxy.js.map +0 -1
  83. package/dist/gs1/prefix-definition-descriptor.d.ts +0 -4
  84. package/dist/gs1/prefix-definition-descriptor.d.ts.map +0 -1
  85. package/dist/gs1/prefix-definition-descriptor.js +0 -16
  86. package/dist/gs1/prefix-definition-descriptor.js.map +0 -1
  87. package/dist/gs1/prefix-manager-proxy.d.ts +0 -8
  88. package/dist/gs1/prefix-manager-proxy.d.ts.map +0 -1
  89. package/dist/gs1/prefix-manager-proxy.js +0 -94
  90. package/dist/gs1/prefix-manager-proxy.js.map +0 -1
  91. package/dist/gs1/variable-measure-proxy.d.ts +0 -7
  92. package/dist/gs1/variable-measure-proxy.d.ts.map +0 -1
  93. package/dist/gs1/variable-measure-proxy.js +0 -114
  94. package/dist/gs1/variable-measure-proxy.js.map +0 -1
  95. package/dist/gs1/verified-by-gs1-proxy.d.ts +0 -7
  96. package/dist/gs1/verified-by-gs1-proxy.d.ts.map +0 -1
  97. package/dist/gs1/verified-by-gs1-proxy.js +0 -106
  98. package/dist/gs1/verified-by-gs1-proxy.js.map +0 -1
  99. package/dist/index.d.ts.map +0 -1
  100. package/dist/index.js.map +0 -1
  101. package/dist/lib-proxy.d.ts +0 -135
  102. package/dist/lib-proxy.d.ts.map +0 -1
  103. package/dist/lib-proxy.js +0 -276
  104. package/dist/lib-proxy.js.map +0 -1
  105. package/dist/locale/en/locale-resources.d.ts +0 -752
  106. package/dist/locale/en/locale-resources.d.ts.map +0 -1
  107. package/dist/locale/en/locale-resources.js +0 -751
  108. package/dist/locale/en/locale-resources.js.map +0 -1
  109. package/dist/locale/fr/locale-resources.d.ts +0 -752
  110. package/dist/locale/fr/locale-resources.d.ts.map +0 -1
  111. package/dist/locale/fr/locale-resources.js +0 -751
  112. package/dist/locale/fr/locale-resources.js.map +0 -1
  113. package/dist/locale/i18n.d.ts +0 -27
  114. package/dist/locale/i18n.d.ts.map +0 -1
  115. package/dist/locale/i18n.js +0 -36
  116. package/dist/locale/i18n.js.map +0 -1
  117. package/dist/proxy.d.ts +0 -136
  118. package/dist/proxy.d.ts.map +0 -1
  119. package/dist/proxy.js +0 -295
  120. package/dist/proxy.js.map +0 -1
  121. package/dist/streaming.d.ts +0 -10
  122. package/dist/streaming.d.ts.map +0 -1
  123. package/dist/streaming.js +0 -2
  124. package/dist/streaming.js.map +0 -1
  125. package/dist/type.d.ts +0 -91
  126. package/dist/type.d.ts.map +0 -1
  127. package/dist/type.js +0 -2
  128. package/dist/type.js.map +0 -1
  129. package/dist/utility/character-set-descriptor.d.ts +0 -6
  130. package/dist/utility/character-set-descriptor.d.ts.map +0 -1
  131. package/dist/utility/character-set-descriptor.js +0 -28
  132. package/dist/utility/character-set-descriptor.js.map +0 -1
  133. package/dist/utility/character-set-proxy.d.ts +0 -31
  134. package/dist/utility/character-set-proxy.d.ts.map +0 -1
  135. package/dist/utility/character-set-proxy.js +0 -278
  136. package/dist/utility/character-set-proxy.js.map +0 -1
  137. package/dist/utility/index.d.ts +0 -4
  138. package/dist/utility/index.d.ts.map +0 -1
  139. package/dist/utility/index.js +0 -4
  140. package/dist/utility/index.js.map +0 -1
  141. package/dist/utility/reg-exp-proxy.d.ts +0 -8
  142. package/dist/utility/reg-exp-proxy.d.ts.map +0 -1
  143. package/dist/utility/reg-exp-proxy.js +0 -103
  144. package/dist/utility/reg-exp-proxy.js.map +0 -1
  145. package/dist/utility/string-descriptor.d.ts +0 -4
  146. package/dist/utility/string-descriptor.d.ts.map +0 -1
  147. package/dist/utility/string-descriptor.js +0 -12
  148. package/dist/utility/string-descriptor.js.map +0 -1
  149. package/dist/utility/string-proxy.d.ts +0 -7
  150. package/dist/utility/string-proxy.d.ts.map +0 -1
  151. package/dist/utility/string-proxy.js +0 -63
  152. package/dist/utility/string-proxy.js.map +0 -1
  153. package/dist/utility/transformer-descriptor.d.ts +0 -6
  154. package/dist/utility/transformer-descriptor.d.ts.map +0 -1
  155. package/dist/utility/transformer-descriptor.js +0 -24
  156. package/dist/utility/transformer-descriptor.js.map +0 -1
  157. package/dist/utility/transformer-proxy.d.ts +0 -9
  158. package/dist/utility/transformer-proxy.d.ts.map +0 -1
  159. package/dist/utility/transformer-proxy.js +0 -111
  160. package/dist/utility/transformer-proxy.js.map +0 -1
@@ -1,197 +0,0 @@
1
- /**
2
- * Core descriptor.
3
- */
4
- interface Descriptor {
5
- /**
6
- * Name.
7
- */
8
- readonly name: string;
9
- }
10
- /**
11
- * Types supported by proxy methods.
12
- */
13
- export declare const Types: {
14
- /**
15
- * String.
16
- */
17
- readonly String: 0;
18
- /**
19
- * Number or enumeration.
20
- */
21
- readonly Number: 1;
22
- /**
23
- * Boolean.
24
- */
25
- readonly Boolean: 2;
26
- /**
27
- * Any.
28
- */
29
- readonly Any: 3;
30
- };
31
- /**
32
- * Type key.
33
- */
34
- export type TypeKey = keyof typeof Types;
35
- /**
36
- * Type.
37
- */
38
- export type Type = typeof Types[TypeKey];
39
- /**
40
- * Multiplicities supported by proxy methods.
41
- */
42
- export declare const Multiplicities: {
43
- /**
44
- * Parameter or return value is a singleton.
45
- */
46
- readonly Singleton: 0;
47
- /**
48
- * Parameter or return value is a singleton or an array.
49
- */
50
- readonly Array: 1;
51
- /**
52
- * Parameter or return value is a singleton, an array, or a matrix.
53
- */
54
- readonly Matrix: 2;
55
- /**
56
- * Parameter value is a singleton or array but is treated as a singleton internally and doesn't drive multiplicity
57
- * of the return value. Return value is an array for use as a singleton array parameter.
58
- */
59
- readonly SingletonArray: 3;
60
- };
61
- /**
62
- * Multiplicity key.
63
- */
64
- export type MultiplicityKey = keyof typeof Multiplicities;
65
- /**
66
- * Multiplicity.
67
- */
68
- export type Multiplicity = typeof Multiplicities[MultiplicityKey];
69
- /**
70
- * Type descriptor.
71
- */
72
- interface TypeDescriptor extends Descriptor {
73
- /**
74
- * Type.
75
- */
76
- readonly type: Type;
77
- /**
78
- * Multiplicity.
79
- */
80
- readonly multiplicity: Multiplicity;
81
- }
82
- /**
83
- * Parameter descriptor.
84
- */
85
- export interface ParameterDescriptor extends TypeDescriptor {
86
- /**
87
- * True if required.
88
- */
89
- readonly isRequired: boolean;
90
- }
91
- /**
92
- * Extends parameter descriptor.
93
- */
94
- export interface ExtendsParameterDescriptor extends Partial<ParameterDescriptor> {
95
- /**
96
- * Parameter descriptor that this one extends.
97
- */
98
- readonly extendsDescriptor: ParameterDescriptor | ExtendsParameterDescriptor;
99
- /**
100
- * Sort order within extended parameter descriptor.
101
- */
102
- readonly sortOrder?: number;
103
- }
104
- /**
105
- * Replacement parameter descriptor.
106
- */
107
- export interface ReplacementParameterDescriptor {
108
- /**
109
- * Name to replace.
110
- */
111
- readonly name: string;
112
- /**
113
- * Replacement parameter descriptor.
114
- */
115
- readonly replacement: ParameterDescriptor;
116
- }
117
- /**
118
- * Method descriptor.
119
- */
120
- export interface MethodDescriptor extends TypeDescriptor {
121
- /**
122
- * If true, method is asynchronous.
123
- */
124
- readonly isAsync?: true;
125
- /**
126
- * If true, function is hidden from user interface.
127
- */
128
- readonly isHidden?: true;
129
- /**
130
- * If true, application-specific invocation context is required.
131
- */
132
- readonly requiresContext?: true;
133
- /**
134
- * If true, function is volatile and should be reevaluated regularly.
135
- */
136
- readonly isVolatile?: true;
137
- /**
138
- * If true, function opens a stream that updates asynchronously.
139
- */
140
- readonly isStream?: true;
141
- /**
142
- * Number of characters to capitalize at the start of the method name for title case; defaults to 1.
143
- */
144
- readonly titleCaseStart?: number;
145
- /**
146
- * If true, method infix is ignored.
147
- */
148
- readonly ignoreInfix?: true;
149
- /**
150
- * String before which method infix appears. If undefined, infix is appended to the method name. Ignored if
151
- * `ignoreInfix` is true.
152
- */
153
- readonly infixBefore?: string;
154
- /**
155
- * Parameter descriptors.
156
- */
157
- readonly parameterDescriptors: readonly ParameterDescriptor[];
158
- /**
159
- * Function name with optional infix.
160
- */
161
- readonly functionName: string;
162
- /**
163
- * Function name in optional namespace with optional infix.
164
- */
165
- readonly namespaceFunctionName: string;
166
- }
167
- /**
168
- * Class descriptor.
169
- */
170
- export interface ClassDescriptor extends Descriptor {
171
- /**
172
- * Class namespace. If not provided, class is at the top level.
173
- */
174
- readonly namespace?: string | undefined;
175
- /**
176
- * Category.
177
- */
178
- readonly category: string;
179
- /**
180
- * Method infix. If undefined, method name is generated verbatim.
181
- */
182
- readonly methodInfix?: string | undefined;
183
- /**
184
- * Replacement parameter descriptors for class hierarchies where parameter types can narrow
185
- */
186
- readonly replacementParameterDescriptors?: ReplacementParameterDescriptor[];
187
- /**
188
- * Class name in optional namespace.
189
- */
190
- readonly namespaceClassName: string;
191
- /**
192
- * Method descriptors.
193
- */
194
- readonly methodDescriptors: readonly MethodDescriptor[];
195
- }
196
- export {};
197
- //# sourceMappingURL=descriptor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"descriptor.d.ts","sourceRoot":"","sources":["../src/descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,UAAU,UAAU;IAChB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,KAAK;IACd;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEG,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,KAAK,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,IAAI,GA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AAI,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,oBAAoB,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAE9D;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,UAAU;IAC/C;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1C;;OAEG;IACH,QAAQ,CAAC,+BAA+B,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAE5E;;OAEG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC3D"}
@@ -1,44 +0,0 @@
1
- /**
2
- * Types supported by proxy methods.
3
- */
4
- export const Types = {
5
- /**
6
- * String.
7
- */
8
- String: 0,
9
- /**
10
- * Number or enumeration.
11
- */
12
- Number: 1,
13
- /**
14
- * Boolean.
15
- */
16
- Boolean: 2,
17
- /**
18
- * Any.
19
- */
20
- Any: 3
21
- };
22
- /**
23
- * Multiplicities supported by proxy methods.
24
- */
25
- export const Multiplicities = {
26
- /**
27
- * Parameter or return value is a singleton.
28
- */
29
- Singleton: 0,
30
- /**
31
- * Parameter or return value is a singleton or an array.
32
- */
33
- Array: 1,
34
- /**
35
- * Parameter or return value is a singleton, an array, or a matrix.
36
- */
37
- Matrix: 2,
38
- /**
39
- * Parameter value is a singleton or array but is treated as a singleton internally and doesn't drive multiplicity
40
- * of the return value. Return value is an array for use as a singleton array parameter.
41
- */
42
- SingletonArray: 3
43
- };
44
- //# sourceMappingURL=descriptor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"descriptor.js","sourceRoot":"","sources":["../src/descriptor.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB;;OAEG;IACH,MAAM,EAAE,CAAC;IAET;;OAEG;IACH,MAAM,EAAE,CAAC;IAET;;OAEG;IACH,OAAO,EAAE,CAAC;IAEV;;OAEG;IACH,GAAG,EAAE,CAAC;CACA,CAAC;AAYX;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,CAAC;IAER;;OAEG;IACH,MAAM,EAAE,CAAC;IAET;;;OAGG;IACH,cAAc,EAAE,CAAC;CACX,CAAC"}
@@ -1,124 +0,0 @@
1
- import { type Promisable } from "@aidc-toolkit/core";
2
- import type { Logger } from "tslog";
3
- import type { ClassDescriptor, MethodDescriptor } from "../descriptor.js";
4
- /**
5
- * Localization.
6
- */
7
- export interface Localization {
8
- /**
9
- * Name.
10
- */
11
- readonly name: string;
12
- /**
13
- * Description.
14
- */
15
- readonly description: string;
16
- }
17
- /**
18
- * Function localization.
19
- */
20
- export interface FunctionLocalization extends Localization {
21
- /**
22
- * Namespace function name.
23
- */
24
- readonly namespaceFunctionName: string;
25
- /**
26
- * Documentation URL.
27
- */
28
- readonly documentationURL: string;
29
- /**
30
- * Parameters map.
31
- */
32
- readonly parametersMap: ReadonlyMap<string, Localization>;
33
- }
34
- /**
35
- * Abstract generator.
36
- */
37
- export declare abstract class Generator {
38
- #private;
39
- /**
40
- * Constructor.
41
- *
42
- * @param version
43
- * Package version.
44
- *
45
- * @param includeLocalizations
46
- * Include localizations if true.
47
- */
48
- constructor(version: string, includeLocalizations?: boolean);
49
- /**
50
- * Get the logger.
51
- */
52
- get logger(): Logger<object>;
53
- /**
54
- * Get the package version.
55
- */
56
- get version(): string;
57
- /**
58
- * Get the locales.
59
- */
60
- protected get locales(): readonly string[];
61
- /**
62
- * Get the default locale.
63
- */
64
- protected get defaultLocale(): string;
65
- /**
66
- * Initialize the generation of the output.
67
- */
68
- protected abstract initialize(): Promisable<void>;
69
- /**
70
- * Create a namespace.
71
- *
72
- * @param namespace
73
- * Namespace.
74
- */
75
- protected abstract createNamespace(namespace: string | undefined): void;
76
- /**
77
- * Create a category.
78
- *
79
- * @param namespace
80
- * Namespace.
81
- *
82
- * @param category
83
- * Category.
84
- *
85
- * @param categoryLocalizationsMap
86
- * Category localizations map.
87
- */
88
- protected abstract createCategory(namespace: string | undefined, category: string, categoryLocalizationsMap: ReadonlyMap<string, string>): void;
89
- /**
90
- * Create a proxy object for a class.
91
- *
92
- * @param objectName
93
- * Object name, derived from namespace and class name.
94
- *
95
- * @param classDescriptor
96
- * Class descriptor.
97
- */
98
- protected abstract createProxyObject(objectName: string, classDescriptor: ClassDescriptor): void;
99
- /**
100
- * Create a proxy function for a class and method.
101
- *
102
- * @param classDescriptor
103
- * Class descriptor.
104
- *
105
- * @param methodDescriptor
106
- * Method descriptor.
107
- *
108
- * @param functionLocalizationsMap
109
- * Function localizations map.
110
- */
111
- protected abstract createProxyFunction(classDescriptor: ClassDescriptor, methodDescriptor: MethodDescriptor, functionLocalizationsMap: ReadonlyMap<string, FunctionLocalization>): void;
112
- /**
113
- * Finalize the generation of the output.
114
- *
115
- * @param success
116
- * True if successful.
117
- */
118
- protected abstract finalize(success: boolean): Promisable<void>;
119
- /**
120
- * Generate by processing individual imports.
121
- */
122
- generate(): Promise<void>;
123
- }
124
- //#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EvE;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,wBAAwB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAE/I;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GAAG,IAAI;IAEhG;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAAG,IAAI;IAEvL;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC;IA8B/D;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CA+GlC"}
@@ -1,190 +0,0 @@
1
- import { ALPHA_URL, getLogger, I18nEnvironments, websiteURL } from "@aidc-toolkit/core";
2
- import { AppHelperProxy } from "../app-helper-proxy.js";
3
- import * as GS1 from "../gs1/index.js";
4
- import { appExtensionResourceBundle, i18nAppExtensionInit, i18nextAppExtension } from "../locale/i18n.js";
5
- import { proxy } from "../proxy.js";
6
- import * as Utility from "../utility/index.js";
7
- /**
8
- * Dummy method to force proxies to register their decorators.
9
- *
10
- * @param _proxies
11
- * Proxies.
12
- */
13
- function registerProxies(..._proxies) {
14
- }
15
- registerProxies(AppHelperProxy, Utility, GS1);
16
- /**
17
- * Abstract generator.
18
- */
19
- export class Generator {
20
- /**
21
- * Documentation path, optionally preceded by locale.
22
- */
23
- static #DOCUMENTATION_PATH = "app-extension/";
24
- /**
25
- * Logger.
26
- */
27
- #logger = getLogger();
28
- /**
29
- * Package version.
30
- */
31
- #version;
32
- /**
33
- * Locales.
34
- */
35
- #locales;
36
- /**
37
- * Default locale.
38
- */
39
- #defaultLocale;
40
- /**
41
- * Constructor.
42
- *
43
- * @param version
44
- * Package version.
45
- *
46
- * @param includeLocalizations
47
- * Include localizations if true.
48
- */
49
- constructor(version, includeLocalizations = true) {
50
- this.#version = version;
51
- this.#locales = includeLocalizations ? Object.keys(appExtensionResourceBundle) : [];
52
- this.#defaultLocale = this.#locales[0] ?? "";
53
- }
54
- /**
55
- * Get the logger.
56
- */
57
- get logger() {
58
- return this.#logger;
59
- }
60
- /**
61
- * Get the package version.
62
- */
63
- get version() {
64
- return this.#version;
65
- }
66
- /**
67
- * Get the locales.
68
- */
69
- get locales() {
70
- return this.#locales;
71
- }
72
- /**
73
- * Get the default locale.
74
- */
75
- get defaultLocale() {
76
- return this.#defaultLocale;
77
- }
78
- /**
79
- * Generate a localization.
80
- *
81
- * @template TLocalization
82
- * Localization type.
83
- *
84
- * @param locale
85
- * Locale.
86
- *
87
- * @param key
88
- * Key.
89
- *
90
- * @param localizationCallback
91
- * Callback to finalize localization.
92
- *
93
- * @returns
94
- * Localization.
95
- */
96
- static #generateLocalization(locale, key, localizationCallback) {
97
- const lngReturnObjectsOption = {
98
- lng: locale,
99
- returnObjects: true
100
- };
101
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- Localized key exists and return type is Localization.
102
- return localizationCallback(locale, i18nextAppExtension.t(key, lngReturnObjectsOption));
103
- }
104
- /**
105
- * Generate by processing individual imports.
106
- */
107
- async generate() {
108
- let success = false;
109
- await i18nAppExtensionInit(I18nEnvironments.CLI);
110
- const documentationBaseURL = websiteURL(this.version, true, await ALPHA_URL);
111
- await this.initialize();
112
- const namespaceHierarchy = new Map();
113
- // Organize class descriptors by namespace and category.
114
- for (const classDescriptor of proxy.classDescriptors) {
115
- const namespace = classDescriptor.namespace;
116
- const category = classDescriptor.category;
117
- let categoryHierarchy = namespaceHierarchy.get(namespace);
118
- if (categoryHierarchy === undefined) {
119
- categoryHierarchy = new Map();
120
- namespaceHierarchy.set(namespace, categoryHierarchy);
121
- }
122
- let classDescriptors = categoryHierarchy.get(category);
123
- if (classDescriptors === undefined) {
124
- classDescriptors = [];
125
- categoryHierarchy.set(category, classDescriptors);
126
- }
127
- classDescriptors.push(classDescriptor);
128
- }
129
- try {
130
- for (const [namespace, categoryHierarchy] of namespaceHierarchy) {
131
- const namespacePrefix = namespace === undefined ? "" : `${namespace}.`;
132
- const namespacePath = namespace === undefined ? "" : `${namespace}/`;
133
- this.createNamespace(namespace);
134
- for (const [category, classDescriptors] of categoryHierarchy) {
135
- const namespaceCategory = `${namespacePrefix}${category}`;
136
- const categoriesKey = `Categories.${category}`;
137
- const namespaceCategoriesKey = `Categories.${namespaceCategory}`;
138
- const categoryLocalizationsMap = new Map(this.locales.map((locale) => {
139
- const lngOption = {
140
- lng: locale
141
- };
142
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- Localized key exists.
143
- return [locale, i18nextAppExtension.t((i18nextAppExtension.exists(namespaceCategoriesKey, lngOption) ? namespaceCategoriesKey : categoriesKey), lngOption)];
144
- }));
145
- this.createCategory(namespace, category, categoryLocalizationsMap);
146
- const namespaceClassNamesSet = new Set();
147
- for (const classDescriptor of classDescriptors) {
148
- const namespaceClassName = classDescriptor.namespaceClassName;
149
- if (namespaceClassNamesSet.has(namespaceClassName)) {
150
- throw new Error(`Duplicate class ${namespaceClassName}`);
151
- }
152
- namespaceClassNamesSet.add(namespaceClassName);
153
- // First capture group is:
154
- // - one or more uppercase letters followed by zero or more numbers; or
155
- // - single uppercase letter followed by zero or more characters except uppercase letters or period.
156
- //
157
- // Second capture group is:
158
- // - single uppercase letter followed by zero or more characters except period; or
159
- // - zero characters (empty string).
160
- //
161
- // Third capture group, separated by optional period, is:
162
- // - single uppercase letter followed by zero or more characters (remainder of string); or
163
- // - zero characters (empty string).
164
- const objectNameGroups = /^(?<namespaceFirstWord>[A-Z]+[0-9]*|[A-Z][^A-Z.]*)(?<namespaceRemaining>[A-Z][^.]*|)\.?(?<className>[A-Z].*|)$/u.exec(namespaceClassName)?.groups;
165
- if (objectNameGroups === undefined) {
166
- throw new Error(`${namespaceClassName} is not a valid namespace-qualified class name`);
167
- }
168
- this.createProxyObject(`${objectNameGroups["namespaceFirstWord"].toLowerCase()}${objectNameGroups["namespaceRemaining"]}${objectNameGroups["className"]}`, classDescriptor);
169
- for (const methodDescriptor of classDescriptor.methodDescriptors) {
170
- const functionLocalizationsMap = new Map(this.locales.map(locale => [locale, Generator.#generateLocalization(locale, `Functions.${methodDescriptor.namespaceFunctionName}`, (locale, localization) => ({
171
- ...localization,
172
- namespaceFunctionName: `${namespacePrefix}${localization.name}`,
173
- documentationURL: `${documentationBaseURL}/${locale === this.defaultLocale ? "" : `${locale}/`}${Generator.#DOCUMENTATION_PATH}${namespacePath}${localization.name}.html`,
174
- parametersMap: new Map(methodDescriptor.parameterDescriptors.map(parameterDescriptor =>
175
- // eslint-disable-next-line max-nested-callbacks -- Callback is empty.
176
- [parameterDescriptor.name, Generator.#generateLocalization(locale, `Parameters.${parameterDescriptor.name}`, (_locale, localization) => localization)]))
177
- }))]));
178
- this.createProxyFunction(classDescriptor, methodDescriptor, functionLocalizationsMap);
179
- }
180
- }
181
- }
182
- }
183
- success = true;
184
- }
185
- finally {
186
- await this.finalize(success);
187
- }
188
- }
189
- }
190
- //# sourceMappingURL=generator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../src/generator/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAmB,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGzG,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;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B,EAAE,GAAG,oBAAoB,IAAI,MAAM,KAAK,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,GAAG,SAAS,CAAC,mBAAmB,GAAG,aAAa,GAAG,YAAY,CAAC,IAAI,OAAO;oCACzK,aAAa,EAAE,IAAI,GAAG,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,GAAG,CAAC,mBAAmB,CAAC,EAAE;oCACnF,sEAAsE;oCACtE,CAAC,mBAAmB,CAAC,IAAI,EAAE,SAAS,CAAC,qBAAqB,CAAC,MAAM,EAAE,cAAc,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CACzJ,CAAC;iCACL,CAAC,CAAC,CAAC,CACP,CAAC,CAAC;4BAEH,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE,gBAAgB,EAAE,wBAAwB,CAAC,CAAC;wBAC1F,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;YAED,OAAO,GAAG,IAAI,CAAC;QACnB,CAAC;gBAAS,CAAC;YACP,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACjC,CAAC;IACL,CAAC"}
@@ -1,18 +0,0 @@
1
- /*!
2
- * Copyright © 2024-2026 Dolphin Data Development Ltd. and AIDC Toolkit
3
- * contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * https://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export * from "./generator.js";
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,gBAAgB,CAAC"}
@@ -1,18 +0,0 @@
1
- /*!
2
- * Copyright © 2024-2026 Dolphin Data Development Ltd. and AIDC Toolkit
3
- * contributors
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * https://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export * from "./generator.js";
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,gBAAgB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=locale-resources-generator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"locale-resources-generator.d.ts","sourceRoot":"","sources":["../../src/generator/locale-resources-generator.ts"],"names":[],"mappings":""}