Function
Static Public Summary | ||
public |
APIVersionNotAvailableError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
APIVersionNotImplementedError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
ActiveUserError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
AppProblemError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
BLError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
BadRequestError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
BaseError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
CORSDisabledError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
DuplicateEndUsersError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
FeatureUnavailableError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
IncompleteRequestBodyError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
IndirectCollectionAccessDisallowedError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
InsufficientCredentialsError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
InvalidCachedQuery(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
InvalidCredentialsError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
InvalidIdentifierError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
InvalidQuerySyntaxError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
JSONParseError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
KinveyError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
KinveyInternalErrorRetry(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
KinveyInternalErrorStop(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
MissingConfigurationError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
MissingQueryError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
MissingRequestHeaderError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
MissingRequestParameterError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
MobileIdentityConnectError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
NetworkConnectionError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
NoActiveUserError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
NoResponseError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
NotFoundError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
ParameterValueOutOfRangeError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
PopupError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
QueryError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
ResultSetSizeExceededError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
ServerError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
StaleRequestError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
SyncError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
TimeoutError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
UserAlreadyExistsError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
WritesToCollectionDisallowedError(message: *, debug: *, code: *, kinveyRequestId: *) |
|
public |
The version of your app. |
|
public |
Initializes the SDK with your app's configuration. |
|
public |
initialize(options: Object): Promise this function was deprecated. Please use init().
Initializes the SDK with your app's information. The SDK is initialized when the returned promise resolves. |
|
public |
Pings the Kinvey API service. |
|
public |
setAppVersion(appVersion: string) Set the version of your app. |
Static Public
public APIVersionNotAvailableError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {APIVersionNotAvailableError} from './core/errors/apiVersionNotAvailable.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public APIVersionNotImplementedError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {APIVersionNotImplementedError} from './core/errors/apiVersionNotImplemented.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public ActiveUserError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {ActiveUserError} from './core/errors/activeUser.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public AppProblemError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {AppProblemError} from './core/errors/appProblem.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public BLError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {BLError} from './core/errors/bl.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public BadRequestError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {BadRequestError} from './core/errors/badRequest.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public BaseError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {BaseError} from './core/errors/base.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public CORSDisabledError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {CORSDisabledError} from './core/errors/corsDisabled.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public DuplicateEndUsersError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {DuplicateEndUsersError} from './core/errors/duplicateEndUsers.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public FeatureUnavailableError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {FeatureUnavailableError} from './core/errors/featureUnavailable.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public IncompleteRequestBodyError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {IncompleteRequestBodyError} from './core/errors/incompleteRequestBody.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public IndirectCollectionAccessDisallowedError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {IndirectCollectionAccessDisallowedError} from './core/errors/indirectCollectionAccessDisallowed.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public InsufficientCredentialsError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {InsufficientCredentialsError} from './core/errors/insufficientCredentials.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public InvalidCachedQuery(message: *, debug: *, code: *, kinveyRequestId: *) source
import {InvalidCachedQuery} from './core/errors/invalidCachedQuery.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public InvalidCredentialsError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {InvalidCredentialsError} from './core/errors/invalidCredentials.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public InvalidIdentifierError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {InvalidIdentifierError} from './core/errors/invalidIdentifier.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public InvalidQuerySyntaxError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {InvalidQuerySyntaxError} from './core/errors/invalidQuerySyntax.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public JSONParseError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {JSONParseError} from './core/errors/jsonParse.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public KinveyError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {KinveyError} from './core/errors/kinvey.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public KinveyInternalErrorRetry(message: *, debug: *, code: *, kinveyRequestId: *) source
import {KinveyInternalErrorRetry} from './core/errors/kinveyInternalErrorRetry.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public KinveyInternalErrorStop(message: *, debug: *, code: *, kinveyRequestId: *) source
import {KinveyInternalErrorStop} from './core/errors/kinveyInternalErrorStop.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public MissingConfigurationError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {MissingConfigurationError} from './core/errors/missingConfiguration.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public MissingQueryError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {MissingQueryError} from './core/errors/missingQuery.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public MissingRequestHeaderError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {MissingRequestHeaderError} from './core/errors/missingRequestHeader.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public MissingRequestParameterError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {MissingRequestParameterError} from './core/errors/missingRequestParameter.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public MobileIdentityConnectError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {MobileIdentityConnectError} from './core/errors/mobileIdentityConnect.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public NetworkConnectionError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {NetworkConnectionError} from './core/errors/networkConnection.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public NoActiveUserError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {NoActiveUserError} from './core/errors/noActiveUser.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public NoResponseError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {NoResponseError} from './core/errors/noResponse.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public NotFoundError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {NotFoundError} from './core/errors/notFound.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public ParameterValueOutOfRangeError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {ParameterValueOutOfRangeError} from './core/errors/parameterValueOutOfRange.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public PopupError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {PopupError} from './core/errors/popup.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public QueryError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {QueryError} from './core/errors/query.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public ResultSetSizeExceededError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {ResultSetSizeExceededError} from './core/errors/resultSetSizeExceeded.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public ServerError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {ServerError} from './core/errors/server.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public StaleRequestError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {StaleRequestError} from './core/errors/staleRequest.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public SyncError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {SyncError} from './core/errors/sync.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public TimeoutError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {TimeoutError} from './core/errors/timeout.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public UserAlreadyExistsError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {UserAlreadyExistsError} from './core/errors/userAlreadyExists.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public WritesToCollectionDisallowedError(message: *, debug: *, code: *, kinveyRequestId: *) source
import {WritesToCollectionDisallowedError} from './core/errors/writesToCollectionDisallowed.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
debug | * | ||
code | * | ||
kinveyRequestId | * |
public getAppVersion(): string source
import {getAppVersion} from './core/kinvey.js'
The version of your app. It will sent with Network API requests
using the X-Kinvey-Api-Version
header.
Example:
var appVersion = Kinvey.getAppVersion();
public init(options: Object): Object source
import {init} from './core/kinvey.js'
Initializes the SDK with your app's configuration.
Params:
Name | Type | Attribute | Description |
options | Object | Options |
|
options.instanceId | string |
|
Custom subdomain for Kinvey API and MIC requests. |
options.apiHostname | string |
|
Deprecated: Use options.instanceId instead. |
options.micHostname | string |
|
Deprecated: Use options.instanceId instead. |
options.appKey | string |
|
App Key |
options.appSecret | string |
|
App Secret |
options.appVersion | string |
|
App Version |
Throw:
If an |
|
If an |
public initialize(options: Object): Promise source
import {initialize} from './core/kinvey.js'
Initializes the SDK with your app's information. The SDK is initialized when the returned promise resolves.
Params:
Name | Type | Attribute | Description |
options | Object | Options |
|
options.instanceId | string |
|
Custom subdomain for Kinvey API and MIC requests. |
options.apiHostname | string |
|
Deprecated: Use options.instanceId instead. |
options.micHostname | string |
|
Deprecated: Use options.instanceId instead. |
options.appKey | string |
|
App Key |
options.appSecret | string |
|
App Secret |
options.appVersion | string |
|
App Version |
Throw:
If an |
|
If neither an |
public ping(): Promise<Object> source
import {ping} from './core/kinvey.js'
Pings the Kinvey API service. This can be used to check if you have configured the SDK correctly.
Example:
var promise = Kinvey.ping()
.then(function(response) {
console.log('Kinvey Ping Success. Kinvey Service is alive, version: ' + response.version + ', response: ' + response.kinvey);
})
.catch(function(error) {
console.log('Kinvey Ping Failed. Response: ' + error.description);
});
public setAppVersion(appVersion: string) source
import {setAppVersion} from './core/kinvey.js'
Set the version of your app. It will be sent with Network API requests using the X-Kinvey-Api-Version header.
Params:
Name | Type | Attribute | Description |
appVersion | string | App version. |
Example:
Kinvey.setAppVersion('1.0.0');
// or
Kinvey.setAppVersion('v1');