References
skygear-core/lib
summary | ||
public |
C ACL Access Control List |
|
public |
C Asset Asset |
|
public |
Auth container |
|
public |
BaseContainer provides the basic configuration for connecting to a Skygear server. |
|
public |
Container provides configuration for connecting to Skygear server, and accessors to other containers, providing various functionalities:
|
|
public |
C Database |
|
public |
|
|
public |
SkygearError is an error object containing information of an error occurred. |
|
public |
Geolocation |
|
public |
C Pubsub The Pubsub client |
|
public |
Pubsub container |
|
public |
Push container |
|
public |
C Query Query object provides database query functions. |
|
public |
Copyright 2015 Oursky Ltd. |
|
public |
C Record Record provides the model for Skygear Database to interact with server. |
|
public |
Reference |
|
public |
C Relation Relation |
|
public |
|
|
public |
Result of query relation API |
|
public |
Result of remove relation API |
|
public |
Result of add relation API |
|
public |
C Role Role |
|
public |
C Sequence Sequence |
|
public |
UnknownValue |
|
public |
|
|
public |
F isAsset(obj: *): Boolean Returns whether an object is a Skygear Asset. |
|
public |
F isRecord(obj: *): Boolean Returns whether an object is a Skygear Record. |
|
public |
F isRole(obj: *): * |
|
public |
F fromJSON(attrs: Object): Object Convert object from JSON representation |
|
public |
F getRoleNameFromParams(roleOrRoleName: Role | String): String |
|
public |
F getUserIDFromParams(userOrUserID: Record | String): String Get user ID from function parameter. |
|
public |
F isLocalStorageValid(): boolean |
|
public |
F isValueType(value: *): * |
|
public |
F toJSON(v: Object): Object Returns the specified value to a JSON representation. |
|
public |
V AccessLevel: {"NoAccessLevel": *, "ReadOnlyLevel": string, "ReadWriteLevel": string} |
|
public |
V USER_CHANGED: string |
|
public |
V UserRecord: Record |
|
public |
V ErrorCodes: {"UnknownError": number, "NetworkFailure": number, "RequestTimedOut": number, "NotAuthenticated": number, "PermissionDenied": number, "AccessKeyNotAccepted": number, "AccessTokenNotAccepted": number, "InvalidCredentials": number, "InvalidSignature": number, "BadRequest": number, "InvalidArgument": number, "Duplicated": number, "ResourceNotFound": number, "NotSupported": number, "NotImplemented": number, "ConstraintViolated": number, "IncompatibleSchema": number, "AtomicOperationFailure": number, "PartialOperationFailure": number, "UndefinedOperation": number, "PluginUnavailable": number, "PluginTimeout": number, "RecordQueryInvalid": number, "PluginInitializing": number, "ResponseTimeout": number, "DeniedArgument": number, "RecordQueryDenied": number, "NotConfigured": number, "PasswordPolicyViolated": number, "UserDisabled": number, "VerificationRequired": number, "AssetSizeTooLarge": number, "UnexpectedError": number} Enum for error codes |
|
public |
V Inward: String Inward relation direction |
|
public |
V Mutual: String Mutual relation direction |
|
public |
V Outward: String Outward relation direction |
|
public |
T FetchResult(recordType: String, recordIDs: String): Promise<FetchResult[]>: Record | Error Fetches records with the specified IDs. |
|
public |
T NonAtomicDeleteByIDResult(type: String, id: String[]): Promise<NonAtomicDeleteByIDResult[]>: String | Error Delete records specified by the type and their IDs non-atomicallly |
|
public |
T NonAtomicDeleteResult(records: Record[] | QueryResult): Promise<NonAtomicDeleteResult[]>: Record | Error Delete records from Skygear non-atomicallly |
|
public |
T NonAtomicSaveResult(records: Record[]): Promise<NonAtomicSaveResult[]>: Record | Error Saves records to Skygear non-atomically. |
skygear-core/lib/cloud
summary | ||
public |
|
|
public |
C FSSigner |
|
public |
C S3Signer |
|
public |
|
|
public |
|
|
public |
BaseAuthProvider provides example interface that an AuthProvider should provide. |
|
public |
|
|
public |
C Registry |
|
public |
Return a shared signer for the current configuration. |
|
public |
F staticAssetHandler(req: *): * staticAssetHandler — default handler for serving static assets with during development. |
|
public |
F getContainer(userId: String): CloudCodeContainer Get a configured CloudCodeContainer. |
|
public |
F async publishEventsToChannels(channels: String[], eventsData: Object[]): Promise<CloudCodeContainer> Publish multiple events to multiple channels. |
|
public |
F afterDelete(recordType: string, func: function(record: lib/record.js~Record, originalRecord: lib/record.js~Record, pool: pool, options: *): *, options: Object) afterDelete — executes decorated function after a record delete operation occurs |
|
public |
F afterSave(recordType: string, func: function(record: lib/record.js~Record, originalRecord: lib/record.js~Record, pool: pool, options: *): *, options: Object) afterSave — executes decorated function after a record save operation occurs |
|
public |
F beforeDelete(recordType: string, func: function(record: lib/record.js~Record, originalRecord: lib/record.js~Record, pool: pool, options: *): *, options: Object) beforeDelete — executes decorated function before a record delete operation occurs |
|
public |
F beforeSave(recordType: string, func: function(record: lib/record.js~Record, originalRecord: lib/record.js~Record, pool: pool, options: *): *, options: Object) beforeSave — executes decorated function before a record save operation occurs |
|
public |
F async configModule(moduleName: *, options: *) Import and config the cloud code plugin module. |
|
public |
F event(name: String, func: function(param: *), options: Object) You can register the cloud code to run at skygear life cycle event. |
|
public |
F every(cron: String, func: function(param: *), options: Object) You can register the cloud code to get run at specific time intervals like a cron job. |
|
public |
F handler(path: string, func: function(request: *, options: *): object, options: Object) You can configure the cloud code as an HTTP handler, which can respond to requests coming from outside the SDK. |
|
public |
F hook(name: String, func: function(newRecord: *, oldRecord: *, pool: *, options: *), options: Object) You can register the cloud code to run at database event. |
|
public |
F op(name: String, func: function(param: Object, options: *), options: Object) You can register the cloud code as lambda, with JSON input and output. |
|
public |
F provides(providerType: string, providerID: string, ProviderCls: object, options: object) Authentication Provider allows a plugin to authenticate user based on credentials from a third-party. |
|
public |
F staticAsset(mountPoint: string, func: function(): string) staticAsset — declare certain path to be serve in static asset. |
|
public |
F createLogger(name: *, context: {}, opts: {}): * |
|
public |
F poolConnect(callback: function(err: *, client: *, done: function): *) Connect to a pg connection provided by pg pool. |
|
public |
F databaseConfigFromURL(databaseURL: *): * |
|
public |
F parseInteger(val: *, defaultValue: *): * |
|
public |
V CloudCodeContainer: * |
|
public |
V ErrorCodes: * |
|
public |
V SkygearError: * |
|
public |
V log: * |
|
public |
V pool: * |
|
public |
V settings: * |
|
public |
V skyconfig: * |
|
public |
V pool: * Database connection pool of the Skygear PostgreSQL database. |
|
public |
|
|
public |
V settings: {"skygearAddress": *, "skygearEndpoint": *, "apiKey": *, "masterKey": *, "appName": *, "logLevel": *, "logFormat": *, "http": *, "debug": *, "pubsubURL": *, "serveStaticAssets": *, "collectAsset": *, "forceAsset": *, "databaseURL": *, "pgPoolMax": *, "pgPoolMin": *, "pgPoolIdleTimeoutMillis": *, "assetStore": *, "assetStoreSecret": *, "assetStoreURLPrefix": *, "assetStoreURLExpireDuration": *, "assetStoreS3AccessKey": *, "assetStoreS3SecretKey": *, "assetStoreS3Bucket": *, "assetStoreS3Region": *, "assetStoreS3URLPrefix": *, "cloudAssetHost": *, "cloudAssetToken": *, "cloudAssetStorePublic": *, "cloudAssetPublicPrefix": *, "cloudAssetPrivatePrefix": *, "loadModules": *} |
|
public |
V config: {} Copyright 2015 Oursky Ltd. |
skygear-core/lib/cloud/transport
summary | ||
public |
|
|
public |
This is thin response object trying to provide a http.ServerResponse like interface for setting response headers and body. |
|
public |
|
|
public |
|
skygear-core/lib/react-native
summary | ||
public |
|
skygear-sso/lib
summary | ||
public |
|
|
public |
|
|
public |
F async loginWithCustomToken(token: String): Promise Login with custom token. |
|
public |
F getLinkRedirectResult(): Promise Get redirect link result, return user from redirect based login flow if link success, promise resolve with result { result: 'OK' }. |
|
public |
F getLoginRedirectResult(): Promise Get redirect login result, return user from redirect based login flow if login success, promise resolve with logged in user. |
|
public |
F async getOAuthProviderProfiles(): Promise Get current user's provider profiles, can use for determine user logged in provider |
|
public |
F async iframeHandler(): Promise Iframe handler script. |
|
public |
F async linkOAuthProviderWithAccessToken(provider: String, accessToken: String): Promise Link oauth provider with access token |
|
public |
F async linkOAuthProviderWithPopup(provider: String, options: Object): Promise Link oauth provider with popup window |
|
public |
F linkOAuthProviderWithRedirect(provider: String, options: Object): Promise Link oauth provider with redirect |
|
public |
F async loginOAuthProviderWithAccessToken(provider: String, accessToken: String): Promise Login oauth provider with access token |
|
public |
F async loginOAuthProviderWithPopup(provider: String, options: Object): Promise Login oauth provider with popup window |
|
public |
F loginOAuthProviderWithRedirect(provider: String, options: Object): Promise Login oauth provider with redirect |
|
public |
F async oauthHandler(): Promise Auth flow handler script |
|
public |
F async unlinkOAuthProvider(provider: String): Promise Unlink oauth provider |
|
public |
F errorResponseFromMessage(message: *): * |