Sha256: 6dd9241452fc9ce70432e7223018a5d04aeaf91733a714f1778c3cd81b79306b

Contents?: true

Size: 1.77 KB

Versions: 18

Compression:

Stored size: 1.77 KB

Contents

import { KeyValuePair } from '../types';
import { UdfDataType } from '../types/graphql.v2';
export declare const encrypt: (plainText: string, publicKey: string) => Promise<string>;
export default function buildTree(nodes: any[]): any;
export declare const deepEqual: (x: any, y: any) => boolean;
export declare const popupCenter: (url: string, { w, h }?: {
    w: number;
    h: number;
}) => void;
export declare const createCssClassStyleSheet: (className: string, styleSheet: any) => void;
export declare const serialize: (obj: any) => string;
export declare const objectToQueryString: (queryParameters: {
    [x: string]: string;
}) => string;
export declare const convertUdv: (data: Array<{
    key: string;
    dataType: UdfDataType;
    value: any;
}>) => Array<{
    key: string;
    dataType: UdfDataType;
    value: any;
}>;
export declare const convertUdvToKeyValuePair: (data: Array<{
    key: string;
    dataType: UdfDataType;
    value?: any;
}>) => KeyValuePair;
export declare const isWechatBrowser: () => boolean;
export declare const formatAuthorizedResources: (resources: any[]) => any[];
export declare function generateUidKey(number: number): string;
interface UploadRes {
    key: string;
    url: string;
}
export declare const xhrUpload: (file: File | Blob, url: string) => Promise<UploadRes>;
export declare function uploadFile<T extends boolean = false>(opts: {
    accept: string;
    multiple?: T;
    url: string;
}): Promise<T extends true ? UploadRes[] : UploadRes>;
export declare const convertKeyValueListToObject: (data: Array<{
    key: string;
    value: any;
}>) => any;
export declare const convertObjectToKeyValueList: (data: {
    [x: string]: any;
}) => {
    key: string;
    value: any;
}[];
export declare function generateRandomString(length?: number): string;
export {};

Version data entries

18 entries across 6 versions & 1 rubygems

Version Path
authing_ruby-1.1.4 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts
authing_ruby-1.1.4 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts
authing_ruby-1.1.4 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts
authing_ruby-1.1.3 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts
authing_ruby-1.1.3 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts
authing_ruby-1.1.3 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts
authing_ruby-1.1.2 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts
authing_ruby-1.1.2 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts
authing_ruby-1.1.2 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts
authing_ruby-1.1.1 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts
authing_ruby-1.1.1 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts
authing_ruby-1.1.1 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts
authing_ruby-1.1.0 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts
authing_ruby-1.1.0 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts
authing_ruby-1.1.0 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts
authing_ruby-1.0.9 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts
authing_ruby-1.0.9 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts
authing_ruby-1.0.9 lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts