ogi-addon 1.9.2 → 1.9.4

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 (58) hide show
  1. package/build/Configuration-CdRZbO6z.d.mts +21 -0
  2. package/build/Configuration-WeOm-F0_.d.cts +21 -0
  3. package/build/ConfigurationBuilder-BSuJ4rSI.cjs +302 -0
  4. package/build/ConfigurationBuilder-BSuJ4rSI.cjs.map +1 -0
  5. package/build/ConfigurationBuilder-BbZDA_xx.d.mts +132 -0
  6. package/build/ConfigurationBuilder-CfHLKMTO.d.cts +132 -0
  7. package/build/EventResponse-CQhmdz3C.d.mts +430 -0
  8. package/build/EventResponse-D1c-Df5W.d.cts +430 -0
  9. package/build/EventResponse.cjs +55 -79
  10. package/build/EventResponse.cjs.map +1 -1
  11. package/build/EventResponse.d.cts +2 -45
  12. package/build/EventResponse.d.mts +2 -0
  13. package/build/EventResponse.mjs +58 -0
  14. package/build/EventResponse.mjs.map +1 -0
  15. package/build/SearchEngine-CRQWXfo6.d.mts +22 -0
  16. package/build/SearchEngine-DBSUNM4A.d.cts +22 -0
  17. package/build/SearchEngine.cjs +0 -19
  18. package/build/SearchEngine.d.cts +2 -20
  19. package/build/SearchEngine.d.mts +2 -0
  20. package/build/SearchEngine.mjs +1 -0
  21. package/build/config/Configuration.cjs +56 -370
  22. package/build/config/Configuration.cjs.map +1 -1
  23. package/build/config/Configuration.d.cts +3 -20
  24. package/build/config/Configuration.d.mts +3 -0
  25. package/build/config/Configuration.mjs +52 -0
  26. package/build/config/Configuration.mjs.map +1 -0
  27. package/build/config/ConfigurationBuilder.cjs +9 -292
  28. package/build/config/ConfigurationBuilder.d.cts +2 -130
  29. package/build/config/ConfigurationBuilder.d.mts +2 -0
  30. package/build/config/ConfigurationBuilder.mjs +221 -0
  31. package/build/config/ConfigurationBuilder.mjs.map +1 -0
  32. package/build/main.cjs +510 -1074
  33. package/build/main.cjs.map +1 -1
  34. package/build/main.d.cts +5 -385
  35. package/build/main.d.mts +5 -0
  36. package/build/main.mjs +510 -0
  37. package/build/main.mjs.map +1 -0
  38. package/package.json +9 -9
  39. package/src/config/Configuration.ts +18 -7
  40. package/src/main.ts +19 -12
  41. package/{tsup.config.js → tsdown.config.js} +2 -1
  42. package/build/EventResponse.d.ts +0 -45
  43. package/build/EventResponse.js +0 -62
  44. package/build/EventResponse.js.map +0 -1
  45. package/build/SearchEngine.cjs.map +0 -1
  46. package/build/SearchEngine.d.ts +0 -20
  47. package/build/SearchEngine.js +0 -1
  48. package/build/SearchEngine.js.map +0 -1
  49. package/build/config/Configuration.d.ts +0 -20
  50. package/build/config/Configuration.js +0 -329
  51. package/build/config/Configuration.js.map +0 -1
  52. package/build/config/ConfigurationBuilder.cjs.map +0 -1
  53. package/build/config/ConfigurationBuilder.d.ts +0 -130
  54. package/build/config/ConfigurationBuilder.js +0 -251
  55. package/build/config/ConfigurationBuilder.js.map +0 -1
  56. package/build/main.d.ts +0 -385
  57. package/build/main.js +0 -1045
  58. package/build/main.js.map +0 -1
@@ -0,0 +1,221 @@
1
+ import z, { ZodError } from "zod";
2
+
3
+ //#region src/config/ConfigurationBuilder.ts
4
+ const configValidation = z.object({
5
+ name: z.string().min(1),
6
+ displayName: z.string().min(1),
7
+ description: z.string().min(1)
8
+ });
9
+ function isStringOption(option) {
10
+ return option.type === "string";
11
+ }
12
+ function isNumberOption(option) {
13
+ return option.type === "number";
14
+ }
15
+ function isBooleanOption(option) {
16
+ return option.type === "boolean";
17
+ }
18
+ var ConfigurationBuilder = class {
19
+ options = [];
20
+ /**
21
+ * Add a number option to the configuration builder and return the builder for chaining. You must provide a name, display name, and description for the option.
22
+ * @param option { (option: NumberOption) => NumberOption }
23
+ * @returns
24
+ */
25
+ addNumberOption(option) {
26
+ let newOption = new NumberOption();
27
+ newOption = option(newOption);
28
+ this.options.push(newOption);
29
+ return this;
30
+ }
31
+ /**
32
+ * Add a string option to the configuration builder and return the builder for chaining. You must provide a name, display name, and description for the option.
33
+ * @param option { (option: StringOption) => StringOption }
34
+ */
35
+ addStringOption(option) {
36
+ let newOption = new StringOption();
37
+ newOption = option(newOption);
38
+ this.options.push(newOption);
39
+ return this;
40
+ }
41
+ /**
42
+ * Add a boolean option to the configuration builder and return the builder for chaining. You must provide a name, display name, and description for the option.
43
+ * @param option { (option: BooleanOption) => BooleanOption }
44
+ */
45
+ addBooleanOption(option) {
46
+ let newOption = new BooleanOption();
47
+ newOption = option(newOption);
48
+ this.options.push(newOption);
49
+ return this;
50
+ }
51
+ build(includeFunctions) {
52
+ let config = {};
53
+ this.options.forEach((option) => {
54
+ if (!includeFunctions) {
55
+ option = JSON.parse(JSON.stringify(option));
56
+ const optionData = configValidation.safeParse(option);
57
+ if (!optionData.success) throw new ZodError(optionData.error.errors);
58
+ config[option.name] = option;
59
+ } else config[option.name] = option;
60
+ });
61
+ return config;
62
+ }
63
+ };
64
+ var ConfigurationOption = class {
65
+ name = "";
66
+ defaultValue = "";
67
+ displayName = "";
68
+ description = "";
69
+ type = "unset";
70
+ /**
71
+ * Set the name of the option. **REQUIRED**
72
+ * @param name {string} The name of the option. This is used to reference the option in the configuration file.
73
+ */
74
+ setName(name) {
75
+ this.name = name;
76
+ return this;
77
+ }
78
+ /**
79
+ * Set the display name of the option. This is used to show the user a human readable version of what the option is. **REQUIRED**
80
+ * @param displayName {string} The display name of the option.
81
+ * @returns
82
+ */
83
+ setDisplayName(displayName) {
84
+ this.displayName = displayName;
85
+ return this;
86
+ }
87
+ /**
88
+ * Set the description of the option. This is to show the user a brief description of what this option does. **REQUIRED**
89
+ * @param description {string} The description of the option.
90
+ * @returns
91
+ */
92
+ setDescription(description) {
93
+ this.description = description;
94
+ return this;
95
+ }
96
+ /**
97
+ * Validation code for the option. This is called when the user provides input to the option. If the validation fails, the user will be prompted to provide input again.
98
+ * @param input {unknown} The input to validate
99
+ */
100
+ validate(input) {
101
+ throw new Error("Validation code not implemented. Value: " + input);
102
+ }
103
+ };
104
+ var StringOption = class extends ConfigurationOption {
105
+ allowedValues = [];
106
+ minTextLength = 0;
107
+ maxTextLength = Number.MAX_SAFE_INTEGER;
108
+ defaultValue = "";
109
+ inputType = "text";
110
+ type = "string";
111
+ /**
112
+ * Set the allowed values for the string. If the array is empty, any value is allowed. When provided, the client will act like this option is a dropdown.
113
+ * @param allowedValues {string[]} An array of allowed values for the string. If the array is empty, any value is allowed.
114
+ */
115
+ setAllowedValues(allowedValues) {
116
+ this.allowedValues = allowedValues;
117
+ return this;
118
+ }
119
+ /**
120
+ * Set the default value for the string. This value will be used if the user does not provide a value. **HIGHLY RECOMMENDED**
121
+ * @param defaultValue {string} The default value for the string.
122
+ */
123
+ setDefaultValue(defaultValue) {
124
+ this.defaultValue = defaultValue;
125
+ return this;
126
+ }
127
+ /**
128
+ * Set the minimum text length for the string. If the user provides a string that is less than this value, the validation will fail.
129
+ * @param minTextLength {number} The minimum text length for the string.
130
+ */
131
+ setMinTextLength(minTextLength) {
132
+ this.minTextLength = minTextLength;
133
+ return this;
134
+ }
135
+ /**
136
+ * Set the maximum text length for the string. If the user provides a string that is greater than this value, the validation will fail.
137
+ * @param maxTextLength {number} The maximum text length for the string.
138
+ */
139
+ setMaxTextLength(maxTextLength) {
140
+ this.maxTextLength = maxTextLength;
141
+ return this;
142
+ }
143
+ /**
144
+ * Set the input type for the string. This will change how the client renders the input.
145
+ * @param inputType {'text' | 'file' | 'password' | 'folder'} The input type for the string.
146
+ */
147
+ setInputType(inputType) {
148
+ this.inputType = inputType;
149
+ return this;
150
+ }
151
+ validate(input) {
152
+ if (typeof input !== "string") return [false, "Input is not a string"];
153
+ if (this.allowedValues.length === 0 && input.length !== 0) return [true, ""];
154
+ if (input.length < this.minTextLength || input.length > this.maxTextLength) return [false, "Input is not within the text length " + this.minTextLength + " and " + this.maxTextLength + " characters (currently " + input.length + " characters)"];
155
+ return [this.allowedValues.includes(input), "Input is not an allowed value"];
156
+ }
157
+ };
158
+ var NumberOption = class extends ConfigurationOption {
159
+ min = 0;
160
+ max = Number.MAX_SAFE_INTEGER;
161
+ defaultValue = 0;
162
+ type = "number";
163
+ inputType = "number";
164
+ /**
165
+ * Set the minimum value for the number. If the user provides a number that is less than this value, the validation will fail.
166
+ * @param min {number} The minimum value for the number.
167
+ */
168
+ setMin(min) {
169
+ this.min = min;
170
+ return this;
171
+ }
172
+ /**
173
+ * Set the input type for the number. This will change how the client renders the input.
174
+ * @param type {'range' | 'number'} The input type for the number.
175
+ */
176
+ setInputType(type) {
177
+ this.inputType = type;
178
+ return this;
179
+ }
180
+ /**
181
+ * Set the maximum value for the number. If the user provides a number that is greater than this value, the validation will fail.
182
+ * @param max {number} The maximum value for the number.
183
+ */
184
+ setMax(max) {
185
+ this.max = max;
186
+ return this;
187
+ }
188
+ /**
189
+ * Set the default value for the number. This value will be used if the user does not provide a value. **HIGHLY RECOMMENDED**
190
+ * @param defaultValue {number} The default value for the number.
191
+ */
192
+ setDefaultValue(defaultValue) {
193
+ this.defaultValue = defaultValue;
194
+ return this;
195
+ }
196
+ validate(input) {
197
+ if (isNaN(Number(input))) return [false, "Input is not a number"];
198
+ if (Number(input) < this.min || Number(input) > this.max) return [false, "Input is not within the range of " + this.min + " and " + this.max];
199
+ return [true, ""];
200
+ }
201
+ };
202
+ var BooleanOption = class extends ConfigurationOption {
203
+ type = "boolean";
204
+ defaultValue = false;
205
+ /**
206
+ * Set the default value for the boolean. This value will be used if the user does not provide a value. **HIGHLY RECOMMENDED**
207
+ * @param defaultValue {boolean} The default value for the boolean.
208
+ */
209
+ setDefaultValue(defaultValue) {
210
+ this.defaultValue = defaultValue;
211
+ return this;
212
+ }
213
+ validate(input) {
214
+ if (typeof input !== "boolean") return [false, "Input is not a boolean"];
215
+ return [true, ""];
216
+ }
217
+ };
218
+
219
+ //#endregion
220
+ export { BooleanOption, ConfigurationBuilder, ConfigurationOption, NumberOption, StringOption, isBooleanOption, isNumberOption, isStringOption };
221
+ //# sourceMappingURL=ConfigurationBuilder.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigurationBuilder.mjs","names":[],"sources":["../../src/config/ConfigurationBuilder.ts"],"sourcesContent":["import z, { ZodError } from 'zod';\n\nexport interface ConfigurationFile {\n [key: string]: ConfigurationOption;\n}\n\nconst configValidation = z.object({\n name: z.string().min(1),\n displayName: z.string().min(1),\n description: z.string().min(1),\n});\n\nexport function isStringOption(\n option: ConfigurationOption\n): option is StringOption {\n return option.type === 'string';\n}\n\nexport function isNumberOption(\n option: ConfigurationOption\n): option is NumberOption {\n return option.type === 'number';\n}\n\nexport function isBooleanOption(\n option: ConfigurationOption\n): option is BooleanOption {\n return option.type === 'boolean';\n}\n\nexport class ConfigurationBuilder {\n private options: ConfigurationOption[] = [];\n\n /**\n * Add a number option to the configuration builder and return the builder for chaining. You must provide a name, display name, and description for the option.\n * @param option { (option: NumberOption) => NumberOption }\n * @returns\n */\n public addNumberOption(\n option: (option: NumberOption) => NumberOption\n ): ConfigurationBuilder {\n let newOption = new NumberOption();\n newOption = option(newOption);\n this.options.push(newOption);\n return this;\n }\n\n /**\n * Add a string option to the configuration builder and return the builder for chaining. You must provide a name, display name, and description for the option.\n * @param option { (option: StringOption) => StringOption }\n */\n public addStringOption(option: (option: StringOption) => StringOption) {\n let newOption = new StringOption();\n newOption = option(newOption);\n this.options.push(newOption);\n return this;\n }\n\n /**\n * Add a boolean option to the configuration builder and return the builder for chaining. You must provide a name, display name, and description for the option.\n * @param option { (option: BooleanOption) => BooleanOption }\n */\n public addBooleanOption(option: (option: BooleanOption) => BooleanOption) {\n let newOption = new BooleanOption();\n newOption = option(newOption);\n this.options.push(newOption);\n return this;\n }\n\n public build(includeFunctions: boolean): ConfigurationFile {\n let config: ConfigurationFile = {};\n this.options.forEach((option) => {\n // remove all functions from the option object\n if (!includeFunctions) {\n option = JSON.parse(JSON.stringify(option));\n const optionData = configValidation.safeParse(option);\n if (!optionData.success) {\n throw new ZodError(optionData.error.errors);\n }\n\n config[option.name] = option;\n } else {\n config[option.name] = option;\n }\n });\n return config;\n }\n}\n\nexport type ConfigurationOptionType = 'string' | 'number' | 'boolean' | 'unset';\nexport class ConfigurationOption {\n public name: string = '';\n public defaultValue: unknown = '';\n public displayName: string = '';\n public description: string = '';\n public type: ConfigurationOptionType = 'unset';\n\n /**\n * Set the name of the option. **REQUIRED**\n * @param name {string} The name of the option. This is used to reference the option in the configuration file.\n */\n setName(name: string) {\n this.name = name;\n return this;\n }\n\n /**\n * Set the display name of the option. This is used to show the user a human readable version of what the option is. **REQUIRED**\n * @param displayName {string} The display name of the option.\n * @returns\n */\n setDisplayName(displayName: string) {\n this.displayName = displayName;\n return this;\n }\n\n /**\n * Set the description of the option. This is to show the user a brief description of what this option does. **REQUIRED**\n * @param description {string} The description of the option.\n * @returns\n */\n setDescription(description: string) {\n this.description = description;\n return this;\n }\n\n /**\n * Validation code for the option. This is called when the user provides input to the option. If the validation fails, the user will be prompted to provide input again.\n * @param input {unknown} The input to validate\n */\n validate(input: unknown): [boolean, string] {\n throw new Error('Validation code not implemented. Value: ' + input);\n }\n}\n\nexport class StringOption extends ConfigurationOption {\n public allowedValues: string[] = [];\n public minTextLength: number = 0;\n public maxTextLength: number = Number.MAX_SAFE_INTEGER;\n public defaultValue: string = '';\n public inputType: 'text' | 'file' | 'password' | 'folder' = 'text';\n public type: ConfigurationOptionType = 'string';\n\n /**\n * Set the allowed values for the string. If the array is empty, any value is allowed. When provided, the client will act like this option is a dropdown.\n * @param allowedValues {string[]} An array of allowed values for the string. If the array is empty, any value is allowed.\n */\n setAllowedValues(allowedValues: string[]): this {\n this.allowedValues = allowedValues;\n return this;\n }\n\n /**\n * Set the default value for the string. This value will be used if the user does not provide a value. **HIGHLY RECOMMENDED**\n * @param defaultValue {string} The default value for the string.\n */\n setDefaultValue(defaultValue: string): this {\n this.defaultValue = defaultValue;\n return this;\n }\n\n /**\n * Set the minimum text length for the string. If the user provides a string that is less than this value, the validation will fail.\n * @param minTextLength {number} The minimum text length for the string.\n */\n setMinTextLength(minTextLength: number): this {\n this.minTextLength = minTextLength;\n return this;\n }\n\n /**\n * Set the maximum text length for the string. If the user provides a string that is greater than this value, the validation will fail.\n * @param maxTextLength {number} The maximum text length for the string.\n */\n setMaxTextLength(maxTextLength: number): this {\n this.maxTextLength = maxTextLength;\n return this;\n }\n\n /**\n * Set the input type for the string. This will change how the client renders the input.\n * @param inputType {'text' | 'file' | 'password' | 'folder'} The input type for the string.\n */\n setInputType(inputType: 'text' | 'file' | 'password' | 'folder'): this {\n this.inputType = inputType;\n return this;\n }\n\n override validate(input: unknown): [boolean, string] {\n if (typeof input !== 'string') {\n return [false, 'Input is not a string'];\n }\n if (this.allowedValues.length === 0 && input.length !== 0)\n return [true, ''];\n if (\n input.length < this.minTextLength ||\n input.length > this.maxTextLength\n ) {\n return [\n false,\n 'Input is not within the text length ' +\n this.minTextLength +\n ' and ' +\n this.maxTextLength +\n ' characters (currently ' +\n input.length +\n ' characters)',\n ];\n }\n\n return [\n this.allowedValues.includes(input),\n 'Input is not an allowed value',\n ];\n }\n}\n\nexport class NumberOption extends ConfigurationOption {\n public min: number = 0;\n public max: number = Number.MAX_SAFE_INTEGER;\n public defaultValue: number = 0;\n public type: ConfigurationOptionType = 'number';\n public inputType: 'range' | 'number' = 'number';\n\n /**\n * Set the minimum value for the number. If the user provides a number that is less than this value, the validation will fail.\n * @param min {number} The minimum value for the number.\n */\n setMin(min: number): this {\n this.min = min;\n return this;\n }\n\n /**\n * Set the input type for the number. This will change how the client renders the input.\n * @param type {'range' | 'number'} The input type for the number.\n */\n setInputType(type: 'range' | 'number'): this {\n this.inputType = type;\n return this;\n }\n\n /**\n * Set the maximum value for the number. If the user provides a number that is greater than this value, the validation will fail.\n * @param max {number} The maximum value for the number.\n */\n setMax(max: number): this {\n this.max = max;\n return this;\n }\n\n /**\n * Set the default value for the number. This value will be used if the user does not provide a value. **HIGHLY RECOMMENDED**\n * @param defaultValue {number} The default value for the number.\n */\n setDefaultValue(defaultValue: number): this {\n this.defaultValue = defaultValue;\n return this;\n }\n\n override validate(input: unknown): [boolean, string] {\n if (isNaN(Number(input))) {\n return [false, 'Input is not a number'];\n }\n if (Number(input) < this.min || Number(input) > this.max) {\n return [\n false,\n 'Input is not within the range of ' + this.min + ' and ' + this.max,\n ];\n }\n return [true, ''];\n }\n}\n\nexport class BooleanOption extends ConfigurationOption {\n public type: ConfigurationOptionType = 'boolean';\n public defaultValue: boolean = false;\n\n /**\n * Set the default value for the boolean. This value will be used if the user does not provide a value. **HIGHLY RECOMMENDED**\n * @param defaultValue {boolean} The default value for the boolean.\n */\n setDefaultValue(defaultValue: boolean): this {\n this.defaultValue = defaultValue;\n return this;\n }\n\n override validate(input: unknown): [boolean, string] {\n if (typeof input !== 'boolean') {\n return [false, 'Input is not a boolean'];\n }\n return [true, ''];\n }\n}\n"],"mappings":";;;AAMA,MAAM,mBAAmB,EAAE,OAAO;CAChC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,aAAa,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC9B,aAAa,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC/B,CAAC;AAEF,SAAgB,eACd,QACwB;AACxB,QAAO,OAAO,SAAS;;AAGzB,SAAgB,eACd,QACwB;AACxB,QAAO,OAAO,SAAS;;AAGzB,SAAgB,gBACd,QACyB;AACzB,QAAO,OAAO,SAAS;;AAGzB,IAAa,uBAAb,MAAkC;CAChC,AAAQ,UAAiC,EAAE;;;;;;CAO3C,AAAO,gBACL,QACsB;EACtB,IAAI,YAAY,IAAI,cAAc;AAClC,cAAY,OAAO,UAAU;AAC7B,OAAK,QAAQ,KAAK,UAAU;AAC5B,SAAO;;;;;;CAOT,AAAO,gBAAgB,QAAgD;EACrE,IAAI,YAAY,IAAI,cAAc;AAClC,cAAY,OAAO,UAAU;AAC7B,OAAK,QAAQ,KAAK,UAAU;AAC5B,SAAO;;;;;;CAOT,AAAO,iBAAiB,QAAkD;EACxE,IAAI,YAAY,IAAI,eAAe;AACnC,cAAY,OAAO,U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