@mcurros2/microm 1.1.167-0 → 1.1.170-0
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/index.d.ts +16 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +343 -276
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface DBStatusResult {
|
|
|
38
38
|
Results: DBStatus[];
|
|
39
39
|
}
|
|
40
40
|
export function isDBStatusResult(data: any): data is DBStatusResult;
|
|
41
|
+
export function isIn<T>(value: T, ...params: T[]): boolean;
|
|
42
|
+
export function isPromise<T>(obj: unknown): obj is Promise<T>;
|
|
43
|
+
export function createKeysSet<T>(): Set<keyof T>;
|
|
44
|
+
export function createKeysArray<T>(): Array<keyof T>;
|
|
41
45
|
export interface IDataStorage {
|
|
42
46
|
saveData(app_id: string, key: string, data: unknown): Promise<void>;
|
|
43
47
|
readData(app_id: string, key: string): Promise<unknown | null>;
|
|
@@ -197,10 +201,6 @@ export const DefaultColumnsNames: string[];
|
|
|
197
201
|
export const DefaultColumns: () => IDefaultColumns;
|
|
198
202
|
export function hasValue(value: Value): boolean;
|
|
199
203
|
export function convertValueFromString(col: EntityColumn<Value>, value: string): Value;
|
|
200
|
-
export function isIn<T>(value: T, ...params: T[]): boolean;
|
|
201
|
-
export function isPromise<T>(obj: unknown): obj is Promise<T>;
|
|
202
|
-
export function createKeysSet<T>(): Set<keyof T>;
|
|
203
|
-
export function createKeysArray<T>(): Array<keyof T>;
|
|
204
204
|
export function areArraysContentsEqual(a: string[] | undefined, b: string[] | undefined): boolean;
|
|
205
205
|
export function arrayToObject<T, TValue>(values: T[], onGetKey: (item: T) => string, onGetValue?: (item: T) => TValue): Record<string, TValue>;
|
|
206
206
|
export function cloneColumns(source_columns: Record<string, EntityColumn<Value>>): Record<string, EntityColumn<Value>>;
|
|
@@ -3602,18 +3602,25 @@ export class MicroMClient {
|
|
|
3602
3602
|
getAPPID(): string;
|
|
3603
3603
|
startRecordPaths(): void;
|
|
3604
3604
|
stopRecordPaths(): void;
|
|
3605
|
-
|
|
3606
|
-
|
|
3605
|
+
oidcLoginAndRedirect(options: {
|
|
3606
|
+
targetLinkUri?: string;
|
|
3607
|
+
extraParams?: Record<string, string>;
|
|
3608
|
+
}): Promise<void>;
|
|
3609
|
+
get LOGGED_IN_USER(): Partial<MicroMClientClaimTypes> | undefined;
|
|
3610
|
+
getRememberUser(): Promise<string | null>;
|
|
3607
3611
|
isLoggedIn(): Promise<boolean>;
|
|
3608
3612
|
isLoggedInLocal(): Promise<boolean>;
|
|
3609
|
-
get LOGGED_IN_USER(): Partial<MicroMClientClaimTypes> | undefined;
|
|
3610
|
-
updateClientClaims(claims: Partial<MicroMClientClaimTypes>): Promise<void>;
|
|
3611
3613
|
login(username: string, password: string, rememberme?: boolean): Promise<MicroMToken>;
|
|
3614
|
+
localLogoff(): Promise<void>;
|
|
3615
|
+
logoff(): Promise<void>;
|
|
3616
|
+
updateClientClaims(claims: Partial<MicroMClientClaimTypes>): Promise<void>;
|
|
3612
3617
|
recoveryemail(username: string): Promise<DBStatusResult>;
|
|
3613
3618
|
recoverpassword(username: string, password: string, recoverycode: string): Promise<DBStatusResult>;
|
|
3614
3619
|
get TIMEZONE_OFFSET(): number;
|
|
3615
3620
|
getMenus(): Promise<Set<string>>;
|
|
3616
|
-
|
|
3621
|
+
getDocumentURL(fileGuid: string): string;
|
|
3622
|
+
getThumbnailURL(fileGuid: string, max_size?: number, quality?: number): string;
|
|
3623
|
+
upload(file: File, fileprocess_id: string, abort_signal?: AbortSignal | null, max_size?: number, quality?: number, onProgress?: FetchUploadProgress): Promise<FileUploadResponse>;
|
|
3617
3624
|
downloadBlob(fileUrl: string, abort_signal?: AbortSignal | null): Promise<Blob>;
|
|
3618
3625
|
get(entity_name: string, parent_keys: ValuesObject | null, values: ValuesObject, abort_signal?: AbortSignal | null): Promise<ValuesObject>;
|
|
3619
3626
|
insert(entity_name: string, parent_keys: ValuesObject | null, values: ValuesObject, recordsSelection: ValuesObject[] | null, abort_signal?: AbortSignal | null): Promise<DBStatusResult>;
|
|
@@ -3625,9 +3632,6 @@ export class MicroMClient {
|
|
|
3625
3632
|
process(entity_name: string, parent_keys: ValuesObject | null, values: ValuesObject, recordsSelection: ValuesObject[] | null, proc_name: string, abort_signal?: AbortSignal | null): Promise<DBStatusResult>;
|
|
3626
3633
|
action<TReturn>(entity_name: string, parent_keys: ValuesObject | null, values: ValuesObject, action_name: string, abort_signal?: AbortSignal | null): Promise<TReturn>;
|
|
3627
3634
|
import(entity_name: string, parent_keys: ValuesObject | null, values: ValuesObject, import_procname: string | null, abort_signal?: AbortSignal | null): Promise<ImpDataResult>;
|
|
3628
|
-
upload(file: File, fileprocess_id: string, abort_signal?: AbortSignal | null, max_size?: number, quality?: number, onProgress?: FetchUploadProgress): Promise<FileUploadResponse>;
|
|
3629
|
-
getDocumentURL(fileGuid: string): string;
|
|
3630
|
-
getThumbnailURL(fileGuid: string, max_size?: number, quality?: number): string;
|
|
3631
3635
|
}
|
|
3632
3636
|
export class RecordReader {
|
|
3633
3637
|
constructor(dataResult: DataResult);
|