@nxtedition/types 23.0.2 → 23.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asset.d.ts +10 -0
- package/dist/asset.js +1 -0
- package/dist/common/clone.d.ts +32 -0
- package/dist/common/clone.js +602 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/nxtpression.d.ts +19 -0
- package/dist/common/nxtpression.js +240 -0
- package/dist/common/search.d.ts +69 -0
- package/dist/common/search.js +1591 -0
- package/dist/common/settings.d.ts +6 -5
- package/dist/common/settings.js +89 -36
- package/dist/domains/asset.d.ts +22 -0
- package/dist/domains/asset.js +232 -0
- package/dist/domains/clone.d.ts +14 -0
- package/dist/domains/clone.js +192 -0
- package/dist/domains/connection.d.ts +39 -15
- package/dist/domains/connection.js +621 -174
- package/dist/domains/design.d.ts +24 -0
- package/dist/domains/design.js +303 -0
- package/dist/domains/file.d.ts +17 -0
- package/dist/domains/file.js +233 -0
- package/dist/domains/index.d.ts +11 -1
- package/dist/domains/index.js +5 -0
- package/dist/domains/media.d.ts +28 -0
- package/dist/domains/media.js +346 -0
- package/dist/domains/published.d.ts +18 -0
- package/dist/domains/published.js +164 -0
- package/dist/domains/revs.d.ts +13 -0
- package/dist/domains/revs.js +125 -0
- package/dist/domains/search.d.ts +3 -0
- package/dist/domains/search.js +62 -13
- package/dist/domains/settings.js +70 -26
- package/dist/domains/user.d.ts +14 -0
- package/dist/domains/user.js +141 -0
- package/dist/index.d.ts +20 -6
- package/dist/index.js +135 -0
- package/dist/rpc.d.ts +8 -13
- package/dist/rpc.js +9 -9
- package/dist/schema.json +724 -1546
- package/package.json +1 -1
package/dist/common/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export * from './block.js';
|
|
3
|
+
export * from './clone.js';
|
|
3
4
|
export * from './file.js';
|
|
4
5
|
export * from './location.js';
|
|
6
|
+
export * from './nxtpression.js';
|
|
5
7
|
export * from './lock.js';
|
|
6
8
|
export * from './rule.js';
|
|
9
|
+
export * from './search.js';
|
|
7
10
|
export * from './settings.js';
|
|
8
11
|
export * from './error.js';
|
|
9
12
|
export const isMessage = input => {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export type Nxtpression<ReturnValue = string, Context extends object = object> = String & {
|
|
3
|
+
/**
|
|
4
|
+
* TS-HACK: this property doesn't really exist on the nxtpression string,
|
|
5
|
+
* it is only here to make sure the generic Context won't get stripped.
|
|
6
|
+
*/
|
|
7
|
+
__context?: Context;
|
|
8
|
+
/**
|
|
9
|
+
* TS-HACK: this property doesn't really exist on the nxtpression string,
|
|
10
|
+
* it is only here to make sure the generic Context won't get stripped.
|
|
11
|
+
*/
|
|
12
|
+
__returnValue?: ReturnValue;
|
|
13
|
+
};
|
|
14
|
+
export declare const isNxtpression: (input: unknown) => input is Nxtpression<string, object>;
|
|
15
|
+
export declare const assertNxtpression: (input: unknown) => Nxtpression<string, object>;
|
|
16
|
+
export declare const randomNxtpression: () => string;
|
|
17
|
+
export declare const assertGuardNxtpression: __AssertionGuard<Nxtpression>;
|
|
18
|
+
export declare const stringifyNxtpression: (input: Nxtpression<string, object>) => string;
|
|
19
|
+
export declare const assertStringifyNxtpression: (input: unknown) => string;
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isNxtpression = input => {
|
|
3
|
+
const $io0 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io1(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
|
|
4
|
+
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
5
|
+
return true;
|
|
6
|
+
const value = input[key];
|
|
7
|
+
if (undefined === value)
|
|
8
|
+
return true;
|
|
9
|
+
if ("number" === typeof Number(key))
|
|
10
|
+
return "string" === typeof value;
|
|
11
|
+
return true;
|
|
12
|
+
});
|
|
13
|
+
const $io1 = input => true;
|
|
14
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
15
|
+
};
|
|
16
|
+
export const assertNxtpression = (input, errorFactory) => {
|
|
17
|
+
const __is = input => {
|
|
18
|
+
const $io0 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io1(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
|
|
19
|
+
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
20
|
+
return true;
|
|
21
|
+
const value = input[key];
|
|
22
|
+
if (undefined === value)
|
|
23
|
+
return true;
|
|
24
|
+
if ("number" === typeof Number(key))
|
|
25
|
+
return "string" === typeof value;
|
|
26
|
+
return true;
|
|
27
|
+
});
|
|
28
|
+
const $io1 = input => true;
|
|
29
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
30
|
+
};
|
|
31
|
+
if (false === __is(input))
|
|
32
|
+
((input, _path, _exceptionable = true) => {
|
|
33
|
+
const $guard = __typia.createAssert.guard;
|
|
34
|
+
const $join = __typia.createAssert.join;
|
|
35
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
|
|
36
|
+
path: _path + ".length",
|
|
37
|
+
expected: "number",
|
|
38
|
+
value: input.length
|
|
39
|
+
}, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
|
|
40
|
+
path: _path + ".__context",
|
|
41
|
+
expected: "(object | undefined)",
|
|
42
|
+
value: input.__context
|
|
43
|
+
}, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
|
|
44
|
+
path: _path + ".__context",
|
|
45
|
+
expected: "(object | undefined)",
|
|
46
|
+
value: input.__context
|
|
47
|
+
}, errorFactory)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue || $guard(_exceptionable, {
|
|
48
|
+
path: _path + ".__returnValue",
|
|
49
|
+
expected: "(string | undefined)",
|
|
50
|
+
value: input.__returnValue
|
|
51
|
+
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
52
|
+
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
53
|
+
return true;
|
|
54
|
+
const value = input[key];
|
|
55
|
+
if (undefined === value)
|
|
56
|
+
return true;
|
|
57
|
+
if ("number" === typeof Number(key))
|
|
58
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
59
|
+
path: _path + $join(key),
|
|
60
|
+
expected: "string",
|
|
61
|
+
value: value
|
|
62
|
+
}, errorFactory);
|
|
63
|
+
return true;
|
|
64
|
+
}));
|
|
65
|
+
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
66
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
67
|
+
path: _path + "",
|
|
68
|
+
expected: "Nxtpression<string, object>",
|
|
69
|
+
value: input
|
|
70
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
71
|
+
path: _path + "",
|
|
72
|
+
expected: "Nxtpression<string, object>",
|
|
73
|
+
value: input
|
|
74
|
+
}, errorFactory);
|
|
75
|
+
})(input, "$input", true);
|
|
76
|
+
return input;
|
|
77
|
+
};
|
|
78
|
+
export const randomNxtpression = generator => {
|
|
79
|
+
const $generator = __typia.createRandom.generator;
|
|
80
|
+
const $pick = __typia.createRandom.pick;
|
|
81
|
+
const $ro0 = (_recursive = false, _depth = 0) => {
|
|
82
|
+
const output = {
|
|
83
|
+
length: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
84
|
+
__context: $pick([
|
|
85
|
+
() => undefined,
|
|
86
|
+
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
87
|
+
])(),
|
|
88
|
+
__returnValue: $pick([
|
|
89
|
+
() => undefined,
|
|
90
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
91
|
+
])()
|
|
92
|
+
};
|
|
93
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
|
|
94
|
+
return output;
|
|
95
|
+
};
|
|
96
|
+
const $ro1 = (_recursive = false, _depth = 0) => {};
|
|
97
|
+
return $ro0();
|
|
98
|
+
};
|
|
99
|
+
export const assertGuardNxtpression = (input, errorFactory) => {
|
|
100
|
+
const __is = input => {
|
|
101
|
+
const $io0 = input => "number" === typeof input.length && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io1(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
|
|
102
|
+
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
103
|
+
return true;
|
|
104
|
+
const value = input[key];
|
|
105
|
+
if (undefined === value)
|
|
106
|
+
return true;
|
|
107
|
+
if ("number" === typeof Number(key))
|
|
108
|
+
return "string" === typeof value;
|
|
109
|
+
return true;
|
|
110
|
+
});
|
|
111
|
+
const $io1 = input => true;
|
|
112
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
113
|
+
};
|
|
114
|
+
if (false === __is(input))
|
|
115
|
+
((input, _path, _exceptionable = true) => {
|
|
116
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
117
|
+
const $join = __typia.createAssertGuard.join;
|
|
118
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
|
|
119
|
+
path: _path + ".length",
|
|
120
|
+
expected: "number",
|
|
121
|
+
value: input.length
|
|
122
|
+
}, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
|
|
123
|
+
path: _path + ".__context",
|
|
124
|
+
expected: "(object | undefined)",
|
|
125
|
+
value: input.__context
|
|
126
|
+
}, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
|
|
127
|
+
path: _path + ".__context",
|
|
128
|
+
expected: "(object | undefined)",
|
|
129
|
+
value: input.__context
|
|
130
|
+
}, errorFactory)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue || $guard(_exceptionable, {
|
|
131
|
+
path: _path + ".__returnValue",
|
|
132
|
+
expected: "(string | undefined)",
|
|
133
|
+
value: input.__returnValue
|
|
134
|
+
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
135
|
+
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
136
|
+
return true;
|
|
137
|
+
const value = input[key];
|
|
138
|
+
if (undefined === value)
|
|
139
|
+
return true;
|
|
140
|
+
if ("number" === typeof Number(key))
|
|
141
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
142
|
+
path: _path + $join(key),
|
|
143
|
+
expected: "string",
|
|
144
|
+
value: value
|
|
145
|
+
}, errorFactory);
|
|
146
|
+
return true;
|
|
147
|
+
}));
|
|
148
|
+
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
149
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
150
|
+
path: _path + "",
|
|
151
|
+
expected: "Nxtpression<string, object>",
|
|
152
|
+
value: input
|
|
153
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
154
|
+
path: _path + "",
|
|
155
|
+
expected: "Nxtpression<string, object>",
|
|
156
|
+
value: input
|
|
157
|
+
}, errorFactory);
|
|
158
|
+
})(input, "$input", true);
|
|
159
|
+
};
|
|
160
|
+
export const stringifyNxtpression = input => {
|
|
161
|
+
const $io1 = input => true;
|
|
162
|
+
const $string = __typia.json.createStringify.string;
|
|
163
|
+
const $tail = __typia.json.createStringify.tail;
|
|
164
|
+
const $so0 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? $string(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
165
|
+
return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
|
|
166
|
+
return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
|
|
167
|
+
return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
168
|
+
return $so0(input);
|
|
169
|
+
};
|
|
170
|
+
export const assertStringifyNxtpression = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
171
|
+
const __is = input => {
|
|
172
|
+
const $io0 = input => "number" === typeof input.length && !Number.isNaN(input.length) && (undefined === input.__context || "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io1(input.__context)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue) && Object.keys(input).every(key => {
|
|
173
|
+
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
174
|
+
return true;
|
|
175
|
+
const value = input[key];
|
|
176
|
+
if (undefined === value)
|
|
177
|
+
return true;
|
|
178
|
+
if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
|
|
179
|
+
return "string" === typeof value;
|
|
180
|
+
return true;
|
|
181
|
+
});
|
|
182
|
+
const $io1 = input => true;
|
|
183
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
184
|
+
};
|
|
185
|
+
if (false === __is(input))
|
|
186
|
+
((input, _path, _exceptionable = true) => {
|
|
187
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
188
|
+
const $join = __typia.json.createAssertStringify.join;
|
|
189
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.length && !Number.isNaN(input.length) || $guard(_exceptionable, {
|
|
190
|
+
path: _path + ".length",
|
|
191
|
+
expected: "number",
|
|
192
|
+
value: input.length
|
|
193
|
+
}, errorFactory)) && (undefined === input.__context || ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
|
|
194
|
+
path: _path + ".__context",
|
|
195
|
+
expected: "(object | undefined)",
|
|
196
|
+
value: input.__context
|
|
197
|
+
}, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
|
|
198
|
+
path: _path + ".__context",
|
|
199
|
+
expected: "(object | undefined)",
|
|
200
|
+
value: input.__context
|
|
201
|
+
}, errorFactory)) && (undefined === input.__returnValue || "string" === typeof input.__returnValue || $guard(_exceptionable, {
|
|
202
|
+
path: _path + ".__returnValue",
|
|
203
|
+
expected: "(string | undefined)",
|
|
204
|
+
value: input.__returnValue
|
|
205
|
+
}, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
206
|
+
if (["length", "__context", "__returnValue"].some(prop => key === prop))
|
|
207
|
+
return true;
|
|
208
|
+
const value = input[key];
|
|
209
|
+
if (undefined === value)
|
|
210
|
+
return true;
|
|
211
|
+
if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
|
|
212
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
213
|
+
path: _path + $join(key),
|
|
214
|
+
expected: "string",
|
|
215
|
+
value: value
|
|
216
|
+
}, errorFactory);
|
|
217
|
+
return true;
|
|
218
|
+
}));
|
|
219
|
+
const $ao1 = (input, _path, _exceptionable = true) => true;
|
|
220
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
221
|
+
path: _path + "",
|
|
222
|
+
expected: "Nxtpression<string, object>",
|
|
223
|
+
value: input
|
|
224
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
225
|
+
path: _path + "",
|
|
226
|
+
expected: "Nxtpression<string, object>",
|
|
227
|
+
value: input
|
|
228
|
+
}, errorFactory);
|
|
229
|
+
})(input, "$input", true);
|
|
230
|
+
return input;
|
|
231
|
+
}; const stringify = input => {
|
|
232
|
+
const $io1 = input => true;
|
|
233
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
234
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
235
|
+
const $so0 = input => `{${$tail(`${undefined === input.__context ? "" : `"__context":${undefined !== input.__context ? "{}" : undefined},`}${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? $string(input.__returnValue) : undefined},`}"length":${input.length},${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
236
|
+
return ""; if (["__context", "__returnValue", "length"].some(regular => regular === key))
|
|
237
|
+
return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
|
|
238
|
+
return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
|
|
239
|
+
return $so0(input);
|
|
240
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export type Search<Type extends "simple" | "conditional" = "simple"> = {
|
|
3
|
+
type: Type;
|
|
4
|
+
} & Type extends "simple" ? SimpleSearch : ConditionalSearch;
|
|
5
|
+
export declare const isSearch: (input: unknown) => input is SimpleSearch;
|
|
6
|
+
export declare const assertSearch: (input: unknown) => SimpleSearch;
|
|
7
|
+
export declare const randomSearch: () => SimpleSearch;
|
|
8
|
+
export declare const assertGuardSearch: __AssertionGuard<Search>;
|
|
9
|
+
export declare const stringifySearch: (input: SimpleSearch) => string;
|
|
10
|
+
export declare const assertStringifySearch: (input: unknown) => string;
|
|
11
|
+
export interface SimpleSearch {
|
|
12
|
+
type: "simple";
|
|
13
|
+
user?: string;
|
|
14
|
+
mode?: "fuzzy" | "exact" | "similarity";
|
|
15
|
+
query?: string;
|
|
16
|
+
count?: number;
|
|
17
|
+
deleted?: boolean;
|
|
18
|
+
hidden?: boolean;
|
|
19
|
+
sortBy?: string;
|
|
20
|
+
refreshInterval?: number;
|
|
21
|
+
highlight?: SearchHighlightOption;
|
|
22
|
+
}
|
|
23
|
+
export declare const isSimpleSearch: (input: unknown) => input is SimpleSearch;
|
|
24
|
+
export declare const assertSimpleSearch: (input: unknown) => SimpleSearch;
|
|
25
|
+
export declare const randomSimpleSearch: () => SimpleSearch;
|
|
26
|
+
export declare const assertGuardSimpleSearch: __AssertionGuard<SimpleSearch>;
|
|
27
|
+
export declare const stringifySimpleSearch: (input: SimpleSearch) => string;
|
|
28
|
+
export declare const assertStringifySimpleSearch: (input: unknown) => string;
|
|
29
|
+
export interface ConditionalSearch {
|
|
30
|
+
type: "conditional";
|
|
31
|
+
user?: string;
|
|
32
|
+
searchIds?: string[];
|
|
33
|
+
searches?: string[];
|
|
34
|
+
mode?: "fuzzy" | "exact" | "similarity";
|
|
35
|
+
query?: string;
|
|
36
|
+
sort?: string;
|
|
37
|
+
hidden?: boolean;
|
|
38
|
+
deleted?: boolean;
|
|
39
|
+
count?: number;
|
|
40
|
+
refreshInterval?: number;
|
|
41
|
+
highlight?: SearchHighlightOption;
|
|
42
|
+
timeField?: string;
|
|
43
|
+
startTime?: string;
|
|
44
|
+
endTime?: string;
|
|
45
|
+
geoField?: string;
|
|
46
|
+
geoBounds?: {
|
|
47
|
+
x1: number;
|
|
48
|
+
y1: number;
|
|
49
|
+
x2: number;
|
|
50
|
+
y2: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export declare const isConditionalSearch: (input: unknown) => input is ConditionalSearch;
|
|
54
|
+
export declare const assertConditionalSearch: (input: unknown) => ConditionalSearch;
|
|
55
|
+
export declare const randomConditionalSearch: () => ConditionalSearch;
|
|
56
|
+
export declare const assertGuardConditionalSearch: __AssertionGuard<ConditionalSearch>;
|
|
57
|
+
export declare const stringifyConditionalSearch: (input: ConditionalSearch) => string;
|
|
58
|
+
export declare const assertStringifyConditionalSearch: (input: unknown) => string;
|
|
59
|
+
export interface SearchHighlightOption {
|
|
60
|
+
fields: {
|
|
61
|
+
[field: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export declare const isSearchHighlightOption: (input: unknown) => input is SearchHighlightOption;
|
|
65
|
+
export declare const assertSearchHighlightOption: (input: unknown) => SearchHighlightOption;
|
|
66
|
+
export declare const randomSearchHighlightOption: () => SearchHighlightOption;
|
|
67
|
+
export declare const assertGuardSearchHighlightOption: __AssertionGuard<SearchHighlightOption>;
|
|
68
|
+
export declare const stringifySearchHighlightOption: (input: SearchHighlightOption) => string;
|
|
69
|
+
export declare const assertStringifySearchHighlightOption: (input: unknown) => string;
|