@yongdall/web 0.4.2 → 0.4.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/index.d.mts +56 -0
- package/index.mjs +14 -14
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1326,6 +1326,62 @@ type DataSource = {
|
|
|
1326
1326
|
})[];
|
|
1327
1327
|
map: Record<string, any>;
|
|
1328
1328
|
model?: string | null | undefined;
|
|
1329
|
+
service?: {
|
|
1330
|
+
then<TResult1 = ModelConfiguration | null, TResult2 = never>(onfulfilled?: ((value: ModelConfiguration | null) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
1331
|
+
catch<TResult2 = never>(onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<ModelConfiguration | TResult2 | null>;
|
|
1332
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<ModelConfiguration | null>;
|
|
1333
|
+
query({
|
|
1334
|
+
values,
|
|
1335
|
+
where,
|
|
1336
|
+
orWhere,
|
|
1337
|
+
sort,
|
|
1338
|
+
limit,
|
|
1339
|
+
page,
|
|
1340
|
+
offset,
|
|
1341
|
+
select,
|
|
1342
|
+
total,
|
|
1343
|
+
primary
|
|
1344
|
+
}?: Search.Param): Promise<{
|
|
1345
|
+
documents: any[];
|
|
1346
|
+
total: number;
|
|
1347
|
+
}>;
|
|
1348
|
+
getOptions(): Record<string, any>[];
|
|
1349
|
+
/**
|
|
1350
|
+
* @overload
|
|
1351
|
+
* @param {boolean} [options]
|
|
1352
|
+
* @returns {Promise<Record<string, any>[]>}
|
|
1353
|
+
*/
|
|
1354
|
+
options(options?: boolean | undefined): Promise<Record<string, any>[]>;
|
|
1355
|
+
/**
|
|
1356
|
+
* @overload
|
|
1357
|
+
* @param {Search.Param} options
|
|
1358
|
+
* @returns {Promise<{options: Record<string, any>[]; total: number}>}
|
|
1359
|
+
*/
|
|
1360
|
+
options(options: Search.Param): Promise<{
|
|
1361
|
+
options: Record<string, any>[];
|
|
1362
|
+
total: number;
|
|
1363
|
+
}>;
|
|
1364
|
+
option(id: string | number): Promise<any>;
|
|
1365
|
+
create(data: Record<string, any>): Promise<any>;
|
|
1366
|
+
document(id: string | number): {
|
|
1367
|
+
then<TResult1 = Record<string, any>, TResult2 = never>(onfulfilled?: ((value: Record<string, any>) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
1368
|
+
catch<TResult2 = never>(onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<Record<string, any> | TResult2>;
|
|
1369
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<Record<string, any>>;
|
|
1370
|
+
get: () => Promise<Record<string, any>>;
|
|
1371
|
+
update(data: Record<string, any>): Promise<any>;
|
|
1372
|
+
delete(): Promise<void>;
|
|
1373
|
+
field(field: string): {
|
|
1374
|
+
then<TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
1375
|
+
catch<TResult2 = never>(onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<any>;
|
|
1376
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<any>;
|
|
1377
|
+
get: () => Promise<any>;
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
loadModel: (force?: boolean) => Promise<ModelConfiguration | null>;
|
|
1381
|
+
loadScript: (force?: boolean) => Promise<ModelScriptConfiguration | null>;
|
|
1382
|
+
getModel: () => ModelConfiguration | null;
|
|
1383
|
+
getScript: () => ModelScriptConfiguration | null;
|
|
1384
|
+
} | null | undefined;
|
|
1329
1385
|
where: (Search.Match | Search.Children)[];
|
|
1330
1386
|
orWhere: (Search.Match | Search.Children | Search.Or)[];
|
|
1331
1387
|
};
|