abowire
Version:
This is the official **Abowire Javascript SDK**, which makes it easy to connect to the Abowire **GraphQL API** and includes all the required dependencies you need.
49 lines (48 loc) • 2.68 kB
TypeScript
import { Asserts, StringSchema } from 'yup';
import { Scope } from '../gen/graphql';
export type Locale = 'EN' | 'ES' | 'DE';
export declare const localeValidation: any;
export declare const configSchema: import("yup/lib/object").OptionalObjectSchema<{
clientId: StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
secret: StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
accountId: StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
scopes: any;
locale: any;
authUrl: StringSchema<string, import("yup/lib/types").AnyObject, string>;
graphqlUrl: StringSchema<string, import("yup/lib/types").AnyObject, string>;
checkSession: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
useStorage: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
enableLogging: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
autoLogin: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
}, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
clientId: StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
secret: StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
accountId: StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
scopes: any;
locale: any;
authUrl: StringSchema<string, import("yup/lib/types").AnyObject, string>;
graphqlUrl: StringSchema<string, import("yup/lib/types").AnyObject, string>;
checkSession: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
useStorage: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
enableLogging: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
autoLogin: import("yup").BooleanSchema<boolean, import("yup/lib/types").AnyObject, boolean>;
}>>;
export type SDKConfig = Asserts<typeof configSchema>;
export type BaseSDKConfigOptions = {
clientId?: string;
accountId?: string;
scopes?: Scope[];
locale?: Locale;
authUrl?: string;
graphqlUrl?: string;
};
export type NodeSDKConfig = BaseSDKConfigOptions & {
secret?: string;
};
export type BrowserSDKConfigOptions = BaseSDKConfigOptions & {
checkSession?: boolean;
useStorage?: boolean;
enableLogging?: boolean;
autoLogin?: boolean;
};
export type SDKConfigOptions = NodeSDKConfig | BrowserSDKConfigOptions;