okai 0.0.46 → 0.0.47
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/README.md +499 -1
- package/bin/okai.js +6 -0
- package/dist/client.d.ts +5 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +1 -0
- package/dist/client.js.map +1 -0
- package/dist/cs-apis.d.ts +10 -0
- package/dist/cs-apis.d.ts.map +1 -0
- package/dist/cs-apis.js +2 -1
- package/dist/cs-apis.js.map +1 -0
- package/dist/cs-ast.d.ts +62 -0
- package/dist/cs-ast.d.ts.map +1 -0
- package/dist/cs-ast.js +1 -0
- package/dist/cs-ast.js.map +1 -0
- package/dist/cs-gen.d.ts +29 -0
- package/dist/cs-gen.d.ts.map +1 -0
- package/dist/cs-gen.js +2 -1
- package/dist/cs-gen.js.map +1 -0
- package/dist/cs-migrations.d.ts +9 -0
- package/dist/cs-migrations.d.ts.map +1 -0
- package/dist/cs-migrations.js +1 -0
- package/dist/cs-migrations.js.map +1 -0
- package/dist/icons.d.ts +273 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +1 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -0
- package/dist/info.d.ts +13 -0
- package/dist/info.d.ts.map +1 -0
- package/dist/info.js +3 -2
- package/dist/info.js.map +1 -0
- package/dist/openai.d.ts +165 -0
- package/dist/openai.d.ts.map +1 -0
- package/dist/openai.js +1 -0
- package/dist/openai.js.map +1 -0
- package/dist/ts-ast.d.ts +15 -0
- package/dist/ts-ast.d.ts.map +1 -0
- package/dist/ts-ast.js +1 -0
- package/dist/ts-ast.js.map +1 -0
- package/dist/ts-once.d.ts +9 -0
- package/dist/ts-once.d.ts.map +1 -0
- package/dist/ts-once.js +1 -0
- package/dist/ts-once.js.map +1 -0
- package/dist/ts-parser.d.ts +110 -0
- package/dist/ts-parser.d.ts.map +1 -0
- package/dist/ts-parser.js +1 -0
- package/dist/ts-parser.js.map +1 -0
- package/dist/tsd-gen.d.ts +18 -0
- package/dist/tsd-gen.d.ts.map +1 -0
- package/dist/tsd-gen.js +1 -0
- package/dist/tsd-gen.js.map +1 -0
- package/dist/types.d.ts +759 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/dist/ui-mjs.d.ts +9 -0
- package/dist/ui-mjs.d.ts.map +1 -0
- package/dist/ui-mjs.js +1 -0
- package/dist/ui-mjs.js.map +1 -0
- package/dist/utils.d.ts +60 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +1 -0
- package/dist/utils.js.map +1 -0
- package/package.json +14 -13
- package/dist/okai.js +0 -4
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
export type GistFile = {
|
|
2
|
+
filename: string;
|
|
3
|
+
content: string;
|
|
4
|
+
type: string;
|
|
5
|
+
size: number;
|
|
6
|
+
raw_url: string;
|
|
7
|
+
};
|
|
8
|
+
export type Gist = {
|
|
9
|
+
description: string;
|
|
10
|
+
files: {
|
|
11
|
+
[key: string]: GistFile;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type ProjectInfo = {
|
|
15
|
+
projectName: string;
|
|
16
|
+
slnDir: string;
|
|
17
|
+
hostDir?: string;
|
|
18
|
+
migrationsDir?: string;
|
|
19
|
+
serviceModelDir?: string;
|
|
20
|
+
serviceInterfaceDir?: string;
|
|
21
|
+
uiMjsDir?: string;
|
|
22
|
+
userType?: string;
|
|
23
|
+
userIdType?: string;
|
|
24
|
+
userLabel?: string;
|
|
25
|
+
};
|
|
26
|
+
export type TsdHeader = {
|
|
27
|
+
prompt: string;
|
|
28
|
+
api: string;
|
|
29
|
+
migration?: string;
|
|
30
|
+
uiMjs?: string;
|
|
31
|
+
};
|
|
32
|
+
export interface TableDefinition {
|
|
33
|
+
name: string;
|
|
34
|
+
columns: ColumnDefinition[];
|
|
35
|
+
}
|
|
36
|
+
export interface ColumnDefinition {
|
|
37
|
+
columnName: string;
|
|
38
|
+
columnOrdinal: number;
|
|
39
|
+
columnSize: number;
|
|
40
|
+
numericPrecision: number;
|
|
41
|
+
numericScale: number;
|
|
42
|
+
isUnique: boolean;
|
|
43
|
+
isKey: boolean;
|
|
44
|
+
baseCatalogName: string;
|
|
45
|
+
baseColumnName: string;
|
|
46
|
+
baseTableName: string;
|
|
47
|
+
dataType: string;
|
|
48
|
+
allowDBNull: boolean;
|
|
49
|
+
providerType: number;
|
|
50
|
+
isAliased: boolean;
|
|
51
|
+
isExpression: boolean;
|
|
52
|
+
isAutoIncrement: boolean;
|
|
53
|
+
isRowVersion: boolean;
|
|
54
|
+
isHidden: boolean;
|
|
55
|
+
isLong: boolean;
|
|
56
|
+
isReadOnly: boolean;
|
|
57
|
+
dataTypeName: string;
|
|
58
|
+
columnDefinition: string;
|
|
59
|
+
}
|
|
60
|
+
export type FormStyle = "slideOver" | "card";
|
|
61
|
+
export type TableStyle = "simple" | "fullWidth" | "stripedRows" | "whiteBackground" | "uppercaseHeadings" | "verticalLines";
|
|
62
|
+
export type TableStyleOptions = TableStyle | TableStyle[] | string;
|
|
63
|
+
export type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
64
|
+
export type GridAllowOptions = "filtering" | "queryString" | "queryFilters";
|
|
65
|
+
export type GridShowOptions = "toolbar" | "preferences" | "pagingNav" | "pagingInfo" | "downloadCsv" | "refresh" | "copyApiUrl" | "resetPreferences" | "filtersView" | "newItem" | "forms";
|
|
66
|
+
export type MarkdownInputOptions = "bold" | "italics" | "link" | "image" | "blockquote" | "code" | "heading" | "orderedList" | "unorderedList" | "strikethrough" | "undo" | "redo" | "help";
|
|
67
|
+
export type ApiPrefs = {
|
|
68
|
+
take?: number;
|
|
69
|
+
selectedColumns?: string[];
|
|
70
|
+
};
|
|
71
|
+
export type ColumnSettings = {
|
|
72
|
+
filters: Filter[];
|
|
73
|
+
sort?: "ASC" | "DESC";
|
|
74
|
+
};
|
|
75
|
+
export type Filter = {
|
|
76
|
+
key: string;
|
|
77
|
+
name: string;
|
|
78
|
+
value: string;
|
|
79
|
+
values?: string[];
|
|
80
|
+
};
|
|
81
|
+
export type Column = {
|
|
82
|
+
name: string;
|
|
83
|
+
type: string;
|
|
84
|
+
meta: MetadataPropertyType;
|
|
85
|
+
settings: ColumnSettings;
|
|
86
|
+
fieldName?: string;
|
|
87
|
+
headerClass?: string;
|
|
88
|
+
cellClass?: string;
|
|
89
|
+
title?: string;
|
|
90
|
+
format?: string;
|
|
91
|
+
visibleFrom?: Breakpoint;
|
|
92
|
+
};
|
|
93
|
+
export type AutoQueryGridDefaults = {
|
|
94
|
+
deny?: GridAllowOptions[];
|
|
95
|
+
hide?: GridShowOptions[];
|
|
96
|
+
toolbarButtonClass?: string;
|
|
97
|
+
tableStyle?: TableStyleOptions;
|
|
98
|
+
take?: number;
|
|
99
|
+
maxFieldLength?: number;
|
|
100
|
+
};
|
|
101
|
+
export type ModalProvider = {
|
|
102
|
+
openModal: (info: {
|
|
103
|
+
name: string;
|
|
104
|
+
} & any, done: (result: any) => any) => void;
|
|
105
|
+
};
|
|
106
|
+
export interface IResponseError {
|
|
107
|
+
errorCode?: string;
|
|
108
|
+
fieldName?: string;
|
|
109
|
+
message?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface IResponseStatus extends IResponseError {
|
|
112
|
+
errors?: ResponseError[];
|
|
113
|
+
}
|
|
114
|
+
export type TransitionRule = {
|
|
115
|
+
cls: string;
|
|
116
|
+
from: string;
|
|
117
|
+
to: string;
|
|
118
|
+
};
|
|
119
|
+
export type TransitionRules = {
|
|
120
|
+
entering: TransitionRule;
|
|
121
|
+
leaving: TransitionRule;
|
|
122
|
+
};
|
|
123
|
+
export type AuthenticateResponse = {
|
|
124
|
+
userId?: string;
|
|
125
|
+
sessionId?: string;
|
|
126
|
+
userName?: string;
|
|
127
|
+
displayName?: string;
|
|
128
|
+
referrerUrl?: string;
|
|
129
|
+
bearerToken?: string;
|
|
130
|
+
refreshToken?: string;
|
|
131
|
+
profileUrl?: string;
|
|
132
|
+
roles?: string[];
|
|
133
|
+
permissions?: string[];
|
|
134
|
+
};
|
|
135
|
+
export interface AutoQueryApis {
|
|
136
|
+
Query?: MetadataOperationType;
|
|
137
|
+
QueryInto?: MetadataOperationType;
|
|
138
|
+
Create?: MetadataOperationType;
|
|
139
|
+
Update?: MetadataOperationType;
|
|
140
|
+
Patch?: MetadataOperationType;
|
|
141
|
+
Delete?: MetadataOperationType;
|
|
142
|
+
}
|
|
143
|
+
export interface UploadedFile {
|
|
144
|
+
fileName?: string;
|
|
145
|
+
filePath?: string;
|
|
146
|
+
contentType?: string;
|
|
147
|
+
contentLength?: number;
|
|
148
|
+
}
|
|
149
|
+
export interface InputProp extends InputInfo {
|
|
150
|
+
prop?: MetadataPropertyType;
|
|
151
|
+
op?: MetadataOperationType;
|
|
152
|
+
}
|
|
153
|
+
export interface ApiResponseType {
|
|
154
|
+
response?: any;
|
|
155
|
+
error?: ResponseStatus;
|
|
156
|
+
}
|
|
157
|
+
export interface ApiResponse {
|
|
158
|
+
response?: any;
|
|
159
|
+
error?: ResponseStatus;
|
|
160
|
+
get completed(): boolean;
|
|
161
|
+
get failed(): boolean;
|
|
162
|
+
get succeeded(): boolean;
|
|
163
|
+
get errorMessage(): string;
|
|
164
|
+
get errorCode(): string;
|
|
165
|
+
get errors(): ResponseError[];
|
|
166
|
+
get errorSummary(): string;
|
|
167
|
+
}
|
|
168
|
+
export interface ApiResult<TResponse> extends ApiResponse {
|
|
169
|
+
response?: TResponse;
|
|
170
|
+
error?: ResponseStatus;
|
|
171
|
+
get completed(): boolean;
|
|
172
|
+
get failed(): boolean;
|
|
173
|
+
get succeeded(): boolean;
|
|
174
|
+
get errorMessage(): string;
|
|
175
|
+
get errorCode(): string;
|
|
176
|
+
get errors(): ResponseError[];
|
|
177
|
+
get errorSummary(): string;
|
|
178
|
+
fieldError(fieldName: string): ResponseError;
|
|
179
|
+
fieldErrorMessage(fieldName: string): string;
|
|
180
|
+
hasFieldError(fieldName: string): boolean;
|
|
181
|
+
showSummary(exceptFields?: string[]): boolean;
|
|
182
|
+
summaryMessage(exceptFields?: string[]): string;
|
|
183
|
+
addFieldError(fieldName: string, message: string, errorCode?: string): void;
|
|
184
|
+
}
|
|
185
|
+
export interface ApiRequest {
|
|
186
|
+
[k: string]: any;
|
|
187
|
+
getTypeName(): string;
|
|
188
|
+
getMethod(): string;
|
|
189
|
+
createResponse(): any;
|
|
190
|
+
}
|
|
191
|
+
export interface IReturnVoid {
|
|
192
|
+
createResponse(): any;
|
|
193
|
+
}
|
|
194
|
+
export interface IReturn<T> {
|
|
195
|
+
createResponse(): T;
|
|
196
|
+
}
|
|
197
|
+
export interface ResponseStatus {
|
|
198
|
+
errorCode?: string;
|
|
199
|
+
message?: string;
|
|
200
|
+
stackTrace?: string;
|
|
201
|
+
errors?: ResponseError[];
|
|
202
|
+
meta?: {
|
|
203
|
+
[index: string]: string;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
export interface ResponseError {
|
|
207
|
+
errorCode?: string;
|
|
208
|
+
fieldName?: string;
|
|
209
|
+
message?: string;
|
|
210
|
+
meta?: {
|
|
211
|
+
[index: string]: string;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
export interface ErrorResponse {
|
|
215
|
+
responseStatus?: ResponseStatus;
|
|
216
|
+
}
|
|
217
|
+
export interface EmptyResponse {
|
|
218
|
+
responseStatus?: ResponseStatus;
|
|
219
|
+
}
|
|
220
|
+
export interface RedisEndpointInfo {
|
|
221
|
+
host: string;
|
|
222
|
+
port: number;
|
|
223
|
+
ssl?: boolean;
|
|
224
|
+
db: number;
|
|
225
|
+
username: string;
|
|
226
|
+
password: string;
|
|
227
|
+
}
|
|
228
|
+
export interface AppInfo {
|
|
229
|
+
baseUrl: string;
|
|
230
|
+
serviceStackVersion: string;
|
|
231
|
+
serviceName: string;
|
|
232
|
+
apiVersion: string;
|
|
233
|
+
serviceDescription: string;
|
|
234
|
+
serviceIconUrl: string;
|
|
235
|
+
brandUrl: string;
|
|
236
|
+
brandImageUrl: string;
|
|
237
|
+
textColor: string;
|
|
238
|
+
linkColor: string;
|
|
239
|
+
backgroundColor: string;
|
|
240
|
+
backgroundImageUrl: string;
|
|
241
|
+
iconUrl: string;
|
|
242
|
+
jsTextCase: string;
|
|
243
|
+
meta: {
|
|
244
|
+
[index: string]: string;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
export interface ImageInfo {
|
|
248
|
+
svg?: string;
|
|
249
|
+
uri?: string;
|
|
250
|
+
alt?: string;
|
|
251
|
+
cls?: string;
|
|
252
|
+
}
|
|
253
|
+
export interface LinkInfo {
|
|
254
|
+
id: string;
|
|
255
|
+
href: string;
|
|
256
|
+
label: string;
|
|
257
|
+
icon: ImageInfo;
|
|
258
|
+
show: string;
|
|
259
|
+
hide: string;
|
|
260
|
+
}
|
|
261
|
+
export interface ThemeInfo {
|
|
262
|
+
form: string;
|
|
263
|
+
modelIcon: ImageInfo;
|
|
264
|
+
}
|
|
265
|
+
export interface ApiCss {
|
|
266
|
+
form: string;
|
|
267
|
+
fieldset: string;
|
|
268
|
+
field: string;
|
|
269
|
+
}
|
|
270
|
+
export interface AppTags {
|
|
271
|
+
default: string;
|
|
272
|
+
other: string;
|
|
273
|
+
}
|
|
274
|
+
export interface LocodeUi {
|
|
275
|
+
css: ApiCss;
|
|
276
|
+
tags: AppTags;
|
|
277
|
+
maxFieldLength: number;
|
|
278
|
+
maxNestedFields: number;
|
|
279
|
+
maxNestedFieldLength: number;
|
|
280
|
+
}
|
|
281
|
+
export interface ExplorerUi {
|
|
282
|
+
css: ApiCss;
|
|
283
|
+
tags: AppTags;
|
|
284
|
+
}
|
|
285
|
+
export interface AdminUi {
|
|
286
|
+
css: ApiCss;
|
|
287
|
+
}
|
|
288
|
+
export interface FormatInfo {
|
|
289
|
+
method: string;
|
|
290
|
+
options?: string;
|
|
291
|
+
locale?: string;
|
|
292
|
+
}
|
|
293
|
+
export interface ApiFormat {
|
|
294
|
+
locale?: string;
|
|
295
|
+
assumeUtc?: boolean;
|
|
296
|
+
number?: FormatInfo;
|
|
297
|
+
date?: FormatInfo;
|
|
298
|
+
}
|
|
299
|
+
export interface UiInfo {
|
|
300
|
+
brandIcon: ImageInfo;
|
|
301
|
+
hideTags: string[];
|
|
302
|
+
modules: string[];
|
|
303
|
+
alwaysHideTags: string[];
|
|
304
|
+
adminLinks: LinkInfo[];
|
|
305
|
+
theme: ThemeInfo;
|
|
306
|
+
locode: LocodeUi;
|
|
307
|
+
explorer: ExplorerUi;
|
|
308
|
+
admin: AdminUi;
|
|
309
|
+
defaultFormats: ApiFormat;
|
|
310
|
+
meta: {
|
|
311
|
+
[index: string]: string;
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
export interface ConfigInfo {
|
|
315
|
+
debugMode?: boolean;
|
|
316
|
+
meta: {
|
|
317
|
+
[index: string]: string;
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
export interface NavItem {
|
|
321
|
+
label: string;
|
|
322
|
+
href: string;
|
|
323
|
+
exact?: boolean;
|
|
324
|
+
id: string;
|
|
325
|
+
className: string;
|
|
326
|
+
iconClass: string;
|
|
327
|
+
iconSrc: string;
|
|
328
|
+
show: string;
|
|
329
|
+
hide: string;
|
|
330
|
+
children: NavItem[];
|
|
331
|
+
meta: {
|
|
332
|
+
[index: string]: string;
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
export interface FieldCss {
|
|
336
|
+
field: string;
|
|
337
|
+
input: string;
|
|
338
|
+
label: string;
|
|
339
|
+
}
|
|
340
|
+
export interface InputInfo {
|
|
341
|
+
id: string;
|
|
342
|
+
name?: string;
|
|
343
|
+
type: string;
|
|
344
|
+
value?: string;
|
|
345
|
+
placeholder?: string;
|
|
346
|
+
help?: string;
|
|
347
|
+
label?: string;
|
|
348
|
+
title?: string;
|
|
349
|
+
size?: string;
|
|
350
|
+
pattern?: string;
|
|
351
|
+
readOnly?: boolean;
|
|
352
|
+
required?: boolean;
|
|
353
|
+
disabled?: boolean;
|
|
354
|
+
autocomplete?: string;
|
|
355
|
+
autofocus?: string;
|
|
356
|
+
min?: string;
|
|
357
|
+
max?: string;
|
|
358
|
+
step?: number;
|
|
359
|
+
minLength?: number;
|
|
360
|
+
maxLength?: number;
|
|
361
|
+
accept?: string;
|
|
362
|
+
capture?: string;
|
|
363
|
+
multiple?: boolean;
|
|
364
|
+
allowableValues?: string[];
|
|
365
|
+
allowableEntries?: KeyValuePair<string, string>[];
|
|
366
|
+
options?: string;
|
|
367
|
+
ignore?: boolean;
|
|
368
|
+
css?: FieldCss;
|
|
369
|
+
meta?: {
|
|
370
|
+
[index: string]: string;
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
export interface MetaAuthProvider {
|
|
374
|
+
name: string;
|
|
375
|
+
label: string;
|
|
376
|
+
type: string;
|
|
377
|
+
navItem: NavItem;
|
|
378
|
+
icon: ImageInfo;
|
|
379
|
+
formLayout: InputInfo[];
|
|
380
|
+
meta: {
|
|
381
|
+
[index: string]: string;
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
export interface AuthInfo {
|
|
385
|
+
hasAuthSecret?: boolean;
|
|
386
|
+
hasAuthRepository?: boolean;
|
|
387
|
+
includesRoles?: boolean;
|
|
388
|
+
includesOAuthTokens?: boolean;
|
|
389
|
+
htmlRedirect: string;
|
|
390
|
+
authProviders: MetaAuthProvider[];
|
|
391
|
+
roleLinks: {
|
|
392
|
+
[index: string]: LinkInfo[];
|
|
393
|
+
};
|
|
394
|
+
serviceRoutes: {
|
|
395
|
+
[index: string]: string[];
|
|
396
|
+
};
|
|
397
|
+
meta: {
|
|
398
|
+
[index: string]: string;
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
export interface AutoQueryConvention {
|
|
402
|
+
name: string;
|
|
403
|
+
value: string;
|
|
404
|
+
types?: string;
|
|
405
|
+
valueType?: string;
|
|
406
|
+
}
|
|
407
|
+
export interface AutoQueryInfo {
|
|
408
|
+
maxLimit?: number;
|
|
409
|
+
untypedQueries?: boolean;
|
|
410
|
+
rawSqlFilters?: boolean;
|
|
411
|
+
autoQueryViewer?: boolean;
|
|
412
|
+
async?: boolean;
|
|
413
|
+
orderByPrimaryKey?: boolean;
|
|
414
|
+
crudEvents?: boolean;
|
|
415
|
+
crudEventsServices?: boolean;
|
|
416
|
+
accessRole: string;
|
|
417
|
+
namedConnection: string;
|
|
418
|
+
viewerConventions: AutoQueryConvention[];
|
|
419
|
+
meta: {
|
|
420
|
+
[index: string]: string;
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
export interface ScriptMethodType {
|
|
424
|
+
name: string;
|
|
425
|
+
paramNames: string[];
|
|
426
|
+
paramTypes: string[];
|
|
427
|
+
returnType: string;
|
|
428
|
+
}
|
|
429
|
+
export interface ValidationInfo {
|
|
430
|
+
hasValidationSource?: boolean;
|
|
431
|
+
hasValidationSourceAdmin?: boolean;
|
|
432
|
+
serviceRoutes: {
|
|
433
|
+
[index: string]: string[];
|
|
434
|
+
};
|
|
435
|
+
typeValidators: ScriptMethodType[];
|
|
436
|
+
propertyValidators: ScriptMethodType[];
|
|
437
|
+
accessRole: string;
|
|
438
|
+
meta: {
|
|
439
|
+
[index: string]: string;
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
export interface SharpPagesInfo {
|
|
443
|
+
apiPath: string;
|
|
444
|
+
scriptAdminRole: string;
|
|
445
|
+
metadataDebugAdminRole: string;
|
|
446
|
+
metadataDebug?: boolean;
|
|
447
|
+
spaFallback?: boolean;
|
|
448
|
+
meta: {
|
|
449
|
+
[index: string]: string;
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
export interface RequestLogsInfo {
|
|
453
|
+
accessRole: string;
|
|
454
|
+
requiredRoles: string[];
|
|
455
|
+
requestLogger: string;
|
|
456
|
+
defaultLimit: number;
|
|
457
|
+
serviceRoutes: {
|
|
458
|
+
[index: string]: string[];
|
|
459
|
+
};
|
|
460
|
+
meta: {
|
|
461
|
+
[index: string]: string;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
export interface ProfilingInfo {
|
|
465
|
+
accessRole: string;
|
|
466
|
+
defaultLimit: number;
|
|
467
|
+
summaryFields: string[];
|
|
468
|
+
tagLabel: string;
|
|
469
|
+
meta: {
|
|
470
|
+
[index: string]: string;
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
export interface FilesUploadLocation {
|
|
474
|
+
name: string;
|
|
475
|
+
readAccessRole: string;
|
|
476
|
+
writeAccessRole: string;
|
|
477
|
+
allowExtensions: string[];
|
|
478
|
+
allowOperations: string;
|
|
479
|
+
maxFileCount?: number;
|
|
480
|
+
minFileBytes?: number;
|
|
481
|
+
maxFileBytes?: number;
|
|
482
|
+
}
|
|
483
|
+
export interface FilesUploadInfo {
|
|
484
|
+
basePath: string;
|
|
485
|
+
locations: FilesUploadLocation[];
|
|
486
|
+
meta: {
|
|
487
|
+
[index: string]: string;
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
export interface MetadataTypeName {
|
|
491
|
+
name: string;
|
|
492
|
+
namespace?: string;
|
|
493
|
+
genericArgs?: string[];
|
|
494
|
+
}
|
|
495
|
+
export interface MetadataDataContract {
|
|
496
|
+
name: string;
|
|
497
|
+
namespace: string;
|
|
498
|
+
}
|
|
499
|
+
export interface MetadataDataMember {
|
|
500
|
+
name: string;
|
|
501
|
+
order?: number;
|
|
502
|
+
isRequired?: boolean;
|
|
503
|
+
emitDefaultValue?: boolean;
|
|
504
|
+
}
|
|
505
|
+
export interface MetadataAttribute {
|
|
506
|
+
name: string;
|
|
507
|
+
constructorArgs?: MetadataPropertyType[];
|
|
508
|
+
args?: MetadataPropertyType[];
|
|
509
|
+
namespace?: string;
|
|
510
|
+
}
|
|
511
|
+
export interface RefInfo {
|
|
512
|
+
model: string;
|
|
513
|
+
selfId: string;
|
|
514
|
+
refId: string;
|
|
515
|
+
refLabel: string;
|
|
516
|
+
}
|
|
517
|
+
export interface MetadataPropertyType {
|
|
518
|
+
name: string;
|
|
519
|
+
type: string;
|
|
520
|
+
namespace?: string;
|
|
521
|
+
isValueType?: boolean;
|
|
522
|
+
isEnum?: boolean;
|
|
523
|
+
isPrimaryKey?: boolean;
|
|
524
|
+
genericArgs?: string[];
|
|
525
|
+
value?: string;
|
|
526
|
+
description?: string;
|
|
527
|
+
dataMember?: MetadataDataMember;
|
|
528
|
+
readOnly?: boolean;
|
|
529
|
+
paramType?: string;
|
|
530
|
+
displayType?: string;
|
|
531
|
+
isRequired?: boolean;
|
|
532
|
+
allowableValues?: string[];
|
|
533
|
+
allowableMin?: number;
|
|
534
|
+
allowableMax?: number;
|
|
535
|
+
attributes?: MetadataAttribute[];
|
|
536
|
+
uploadTo?: string;
|
|
537
|
+
input?: InputInfo;
|
|
538
|
+
format?: FormatInfo;
|
|
539
|
+
ref?: RefInfo;
|
|
540
|
+
}
|
|
541
|
+
export interface MetadataType {
|
|
542
|
+
name: string;
|
|
543
|
+
namespace?: string;
|
|
544
|
+
genericArgs?: string[];
|
|
545
|
+
inherits?: MetadataTypeName;
|
|
546
|
+
implements?: MetadataTypeName[];
|
|
547
|
+
displayType?: string;
|
|
548
|
+
description?: string;
|
|
549
|
+
notes?: string;
|
|
550
|
+
icon?: ImageInfo;
|
|
551
|
+
isNested?: boolean;
|
|
552
|
+
isEnum?: boolean;
|
|
553
|
+
isEnumInt?: boolean;
|
|
554
|
+
isInterface?: boolean;
|
|
555
|
+
isAbstract?: boolean;
|
|
556
|
+
dataContract?: MetadataDataContract;
|
|
557
|
+
properties?: MetadataPropertyType[];
|
|
558
|
+
attributes?: MetadataAttribute[];
|
|
559
|
+
innerTypes?: MetadataTypeName[];
|
|
560
|
+
enumNames?: string[];
|
|
561
|
+
enumValues?: string[];
|
|
562
|
+
enumMemberValues?: string[];
|
|
563
|
+
enumDescriptions?: (string | undefined)[];
|
|
564
|
+
meta?: {
|
|
565
|
+
[index: string]: string;
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
export interface MediaRule {
|
|
569
|
+
size: string;
|
|
570
|
+
rule: string;
|
|
571
|
+
applyTo: string[];
|
|
572
|
+
meta: {
|
|
573
|
+
[index: string]: string;
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
export interface AdminUsersInfo {
|
|
577
|
+
accessRole: string;
|
|
578
|
+
enabled: string[];
|
|
579
|
+
userAuth: MetadataType;
|
|
580
|
+
allRoles: string[];
|
|
581
|
+
allPermissions: string[];
|
|
582
|
+
queryUserAuthProperties: string[];
|
|
583
|
+
queryMediaRules: MediaRule[];
|
|
584
|
+
formLayout: InputInfo[];
|
|
585
|
+
css: ApiCss;
|
|
586
|
+
meta: {
|
|
587
|
+
[index: string]: string;
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
export interface AdminRedisInfo {
|
|
591
|
+
queryLimit: number;
|
|
592
|
+
databases: number[];
|
|
593
|
+
modifiableConnection?: boolean;
|
|
594
|
+
endpoint: RedisEndpointInfo;
|
|
595
|
+
meta: {
|
|
596
|
+
[index: string]: string;
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
export interface SchemaInfo {
|
|
600
|
+
alias: string;
|
|
601
|
+
name: string;
|
|
602
|
+
tables: string[];
|
|
603
|
+
}
|
|
604
|
+
export interface DatabaseInfo {
|
|
605
|
+
alias: string;
|
|
606
|
+
name: string;
|
|
607
|
+
schemas: SchemaInfo[];
|
|
608
|
+
}
|
|
609
|
+
export interface AdminDatabaseInfo {
|
|
610
|
+
queryLimit: number;
|
|
611
|
+
databases: DatabaseInfo[];
|
|
612
|
+
meta: {
|
|
613
|
+
[index: string]: string;
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
export interface PluginInfo {
|
|
617
|
+
loaded: string[];
|
|
618
|
+
auth: AuthInfo;
|
|
619
|
+
autoQuery: AutoQueryInfo;
|
|
620
|
+
validation: ValidationInfo;
|
|
621
|
+
sharpPages: SharpPagesInfo;
|
|
622
|
+
requestLogs: RequestLogsInfo;
|
|
623
|
+
profiling: ProfilingInfo;
|
|
624
|
+
filesUpload: FilesUploadInfo;
|
|
625
|
+
adminUsers: AdminUsersInfo;
|
|
626
|
+
adminRedis: AdminRedisInfo;
|
|
627
|
+
adminDatabase: AdminDatabaseInfo;
|
|
628
|
+
meta: {
|
|
629
|
+
[index: string]: string;
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
export interface CustomPluginInfo {
|
|
633
|
+
accessRole: string;
|
|
634
|
+
serviceRoutes: {
|
|
635
|
+
[index: string]: string[];
|
|
636
|
+
};
|
|
637
|
+
enabled: string[];
|
|
638
|
+
meta: {
|
|
639
|
+
[index: string]: string;
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
export interface MetadataTypesConfig {
|
|
643
|
+
baseUrl: string;
|
|
644
|
+
usePath: string;
|
|
645
|
+
makePartial: boolean;
|
|
646
|
+
makeVirtual: boolean;
|
|
647
|
+
makeInternal: boolean;
|
|
648
|
+
baseClass: string;
|
|
649
|
+
package: string;
|
|
650
|
+
addReturnMarker: boolean;
|
|
651
|
+
addDescriptionAsComments: boolean;
|
|
652
|
+
addDataContractAttributes: boolean;
|
|
653
|
+
addIndexesToDataMembers: boolean;
|
|
654
|
+
addGeneratedCodeAttributes: boolean;
|
|
655
|
+
addImplicitVersion?: number;
|
|
656
|
+
addResponseStatus: boolean;
|
|
657
|
+
addServiceStackTypes: boolean;
|
|
658
|
+
addModelExtensions: boolean;
|
|
659
|
+
addPropertyAccessors: boolean;
|
|
660
|
+
excludeGenericBaseTypes: boolean;
|
|
661
|
+
settersReturnThis: boolean;
|
|
662
|
+
makePropertiesOptional: boolean;
|
|
663
|
+
exportAsTypes: boolean;
|
|
664
|
+
excludeImplementedInterfaces: boolean;
|
|
665
|
+
addDefaultXmlNamespace: string;
|
|
666
|
+
makeDataContractsExtensible: boolean;
|
|
667
|
+
initializeCollections: boolean;
|
|
668
|
+
addNamespaces: string[];
|
|
669
|
+
defaultNamespaces: string[];
|
|
670
|
+
defaultImports: string[];
|
|
671
|
+
includeTypes: string[];
|
|
672
|
+
excludeTypes: string[];
|
|
673
|
+
exportTags: string[];
|
|
674
|
+
treatTypesAsStrings: string[];
|
|
675
|
+
exportValueTypes: boolean;
|
|
676
|
+
globalNamespace: string;
|
|
677
|
+
excludeNamespace: boolean;
|
|
678
|
+
dataClass: string;
|
|
679
|
+
dataClassJson: string;
|
|
680
|
+
ignoreTypes: string[];
|
|
681
|
+
exportTypes: string[];
|
|
682
|
+
exportAttributes: string[];
|
|
683
|
+
ignoreTypesInNamespaces: string[];
|
|
684
|
+
}
|
|
685
|
+
export interface MetadataRoute {
|
|
686
|
+
path: string;
|
|
687
|
+
verbs: string;
|
|
688
|
+
notes: string;
|
|
689
|
+
summary: string;
|
|
690
|
+
}
|
|
691
|
+
export interface ApiUiInfo {
|
|
692
|
+
locodeCss: ApiCss;
|
|
693
|
+
explorerCss: ApiCss;
|
|
694
|
+
formLayout: InputInfo[];
|
|
695
|
+
meta: {
|
|
696
|
+
[index: string]: string;
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
export interface MetadataOperationType {
|
|
700
|
+
request: MetadataType;
|
|
701
|
+
response?: MetadataType;
|
|
702
|
+
actions: string[];
|
|
703
|
+
returnsVoid?: boolean;
|
|
704
|
+
method: string;
|
|
705
|
+
returnType?: MetadataTypeName;
|
|
706
|
+
routes?: MetadataRoute[];
|
|
707
|
+
dataModel?: MetadataTypeName;
|
|
708
|
+
viewModel?: MetadataTypeName;
|
|
709
|
+
requiresAuth?: boolean;
|
|
710
|
+
requiredRoles?: string[];
|
|
711
|
+
requiresAnyRole?: string[];
|
|
712
|
+
requiredPermissions?: string[];
|
|
713
|
+
requiresAnyPermission?: string[];
|
|
714
|
+
tags?: string[];
|
|
715
|
+
ui?: ApiUiInfo;
|
|
716
|
+
}
|
|
717
|
+
export interface MetadataTypes {
|
|
718
|
+
config?: MetadataTypesConfig;
|
|
719
|
+
namespaces: string[];
|
|
720
|
+
types: MetadataType[];
|
|
721
|
+
operations: MetadataOperationType[];
|
|
722
|
+
}
|
|
723
|
+
export interface Pair {
|
|
724
|
+
key: string;
|
|
725
|
+
value?: any;
|
|
726
|
+
}
|
|
727
|
+
export interface KeyValuePair<TKey, TValue> {
|
|
728
|
+
key: TKey;
|
|
729
|
+
value: TValue;
|
|
730
|
+
}
|
|
731
|
+
export interface AppMetadata {
|
|
732
|
+
date: string;
|
|
733
|
+
app: AppInfo;
|
|
734
|
+
ui: UiInfo;
|
|
735
|
+
config: ConfigInfo;
|
|
736
|
+
contentTypeFormats: {
|
|
737
|
+
[index: string]: string;
|
|
738
|
+
};
|
|
739
|
+
httpHandlers: {
|
|
740
|
+
[index: string]: string;
|
|
741
|
+
};
|
|
742
|
+
plugins: PluginInfo;
|
|
743
|
+
customPlugins: {
|
|
744
|
+
[index: string]: CustomPluginInfo;
|
|
745
|
+
};
|
|
746
|
+
api: MetadataTypes;
|
|
747
|
+
meta: {
|
|
748
|
+
[index: string]: string;
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
export declare class MetadataApp implements IReturn<AppMetadata> {
|
|
752
|
+
view?: string;
|
|
753
|
+
includeTypes?: string[];
|
|
754
|
+
constructor(init?: Partial<MetadataApp>);
|
|
755
|
+
getTypeName(): string;
|
|
756
|
+
getMethod(): string;
|
|
757
|
+
createResponse(): AppMetadata;
|
|
758
|
+
}
|
|
759
|
+
//# sourceMappingURL=types.d.ts.map
|