Options
All
  • Public
  • Public/Protected
  • All
Menu
AWS Amplify

Discord Chat Language grade: JavaScript build:started

Reporting Bugs / Feature Requests

Open Bugs Feature Requests Closed Issues

Note aws-amplify 5 has been released. If you are looking for upgrade guidance click here

AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications

AWS Amplify provides a declarative and easy-to-use interface across different categories of cloud operations. AWS Amplify goes well with any JavaScript based frontend workflow and React Native for mobile developers.

Our default implementation works with Amazon Web Services (AWS), but AWS Amplify is designed to be open and pluggable for any custom backend or service.

Visit our Documentation site to learn more about AWS Amplify. Please see our Amplify JavaScript page within our Documentation site for information around the full list of features we support.

Features

Category AWS Provider Description
Authentication Amazon Cognito APIs and Building blocks to create Authentication experiences.
Analytics Amazon Pinpoint Collect Analytics data for your application including tracking user sessions.
REST API Amazon API Gateway Sigv4 signing and AWS auth for API Gateway and other REST endpoints.
GraphQL API AWS AppSync Interact with your GraphQL or AWS AppSync endpoint(s).
DataStore AWS AppSync Programming model for shared and distributed data, with simple online/offline synchronization.
Storage Amazon S3 Manages content in public, protected, private storage buckets.
Geo (Developer preview) Amazon Location Service Provides APIs and UI components for maps and location search for JavaScript-based web apps.
Push Notifications Amazon Pinpoint Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.
Interactions Amazon Lex Create conversational bots powered by deep learning technologies.
PubSub AWS IoT Provides connectivity with cloud-based message-oriented middleware.
Internationalization --- A lightweight internationalization solution.
Cache --- Provides a generic LRU cache for JavaScript developers to store data with priority and expiration settings.
Predictions Various* Connect your app with machine learning services like NLP, computer vision, TTS, and more.
  • Predictions utilizes a range of Amazon's Machine Learning services, including: Amazon Comprehend, Amazon Polly, Amazon Rekognition, Amazon Textract, and Amazon Translate.

Getting Started

AWS Amplify is available as aws-amplify on npm.

To get started pick your platform from our Getting Started home page

Notice:

Amplify 5.x.x has breaking changes. Please see the breaking changes below:

  • If you are using default exports from any Amplify package, then you will need to migrate to using named exports. For example:

    - import Amplify from 'aws-amplify';
    + import { Amplify } from 'aws-amplify'
    
    - import Analytics from '@aws-amplify/analytics';
    + import { Analytics } from '@aws-amplify/analytics';
    // or better
    + import { Analytics } from 'aws-amplify';
    
    - import Storage from '@aws-amplify/storage';
    + import { Storage } from '@aws-amplify/storage';
    // or better
    + import { Storage } from 'aws-amplify';
  • Datastore predicate syntax has changed, impacting the DataStore.query, DataStore.save, DataStore.delete, and DataStore.observe interfaces. For example:

    - await DataStore.delete(Post, (post) => post.status('eq', PostStatus.INACTIVE));
    + await DataStore.delete(Post, (post) => post.status.eq(PostStatus.INACTIVE));
    
    - await DataStore.query(Post, p => p.and( p => [p.title('eq', 'Amplify Getting Started Guide'), p.score('gt', 8)]));
    + await DataStore.query(Post, p => p.and( p => [p.title.eq('Amplify Getting Started Guide'), p.score.gt(8)]));
  • Storage.list has changed the name of the maxKeys parameter to pageSize and has a new return type that contains the results list. For example:

    - const photos = await Storage.list('photos/', { maxKeys: 100 });
    - const { key } = photos[0];
    
    + const photos = await Storage.list('photos/', { pageSize: 100 });
    + const { key } = photos.results[0];
  • Storage.put with resumable turned on has changed the key to no longer include the bucket name. For example:

    - let uploadedObjectKey;
    - Storage.put(file.name, file, {
    -   resumable: true,
    -   // Necessary to parse the bucket name out to work with the key
    -   completeCallback: (obj) => uploadedObjectKey = obj.key.substring( obj.key.indexOf("/") + 1 )
    - }
    
    + let uploadedObjectKey;
    + Storage.put(file.name, file, {
    +   resumable: true,
    +   completeCallback: (obj) => uploadedObjectKey = obj.key
    + }
  • Analytics.record no longer accepts string as input. For example:

    - Analytics.record('my example event');
    + Analytics.record({ name: 'my example event' });
  • The JS export has been removed from @aws-amplify/core in favor of exporting the functions it contained.

  • Any calls to Amplify.Auth, Amplify.Cache, and Amplify.ServiceWorker are no longer supported. Instead, your code should use the named exports. For example:

    - import { Amplify } from 'aws-amplify';
    - Amplify.configure(...);
    - // ...
    - Amplify.Auth.signIn(...);
    
    + import { Amplify, Auth } from 'aws-amplify';
    + Amplify.configure(...);
    + // ...
    + Auth.signIn(...);

Amplify 4.x.x has breaking changes for React Native. Please see the breaking changes below:

  • If you are using React Native (vanilla or Expo), you will need to add the following React Native community dependencies:
    • @react-native-community/netinfo
    • @react-native-async-storage/async-storage
// React Native
yarn add aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage
npx pod-install

// Expo
yarn add aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage

Amplify 3.x.x has breaking changes. Please see the breaking changes below:

  • AWS.credentials and AWS.config don’t exist anymore in Amplify JavaScript.
    • Both options will not be available to use in version 3. You will not be able to use and set your own credentials.
    • For more information on this change, please see the AWS SDK for JavaScript v3
  • aws-sdk@2.x has been removed from Amplify@3.x.x in favor of version 3 of aws-sdk-js. We recommend to migrate to aws-sdk-js-v3 if you rely on AWS services that are not supported by Amplify, since aws-sdk-js-v3 is imported modularly.

If you can't migrate to aws-sdk-js-v3 or rely on aws-sdk@2.x, you will need to import it separately.

  • If you are using exported paths within your Amplify JS application, (e.g. import from "@aws-amplify/analytics/lib/Analytics") this will now break and no longer will be supported. You will need to change to named imports:

    import { Analytics } from 'aws-amplify';
  • If you are using categories as Amplify.<Category>, this will no longer work and we recommend to import the category you are needing to use:

    import { Auth } from 'aws-amplify';

DataStore Docs

For more information on contributing to DataStore / how DataStore works, see the DataStore Docs

Index

Namespaces

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

AWSAppSyncRealTimeAuthInput

AWSAppSyncRealTimeAuthInput: Partial<AWSAppSyncRealTimeProviderOptions> & object

AWSLexProviderSendResponse

AWSLexProviderSendResponse: PostTextCommandOutput | PostContentCommandOutputFormatted

AWSLexV2ProviderSendResponse

AWSLexV2ProviderSendResponse: RecognizeTextCommandOutput | RecognizeUtteranceCommandOutputFormatted

AbortMultipartUploadInput

AbortMultipartUploadInput: Pick<AbortMultipartUploadCommandInput, "Bucket" | "Key" | "UploadId">

ActionMap

ActionMap: object

Type declaration

Alignment

Alignment: object[keyof typeof Alignment]

AllFieldOperators

AllFieldOperators: keyof AllOperators

AllOperators

AllOperators: NumberOperators<any> & StringOperators<any> & ArrayOperators<any>

AmazonLocationServiceBatchGeofenceError

AmazonLocationServiceBatchGeofenceError: Omit<GeofenceError, "error"> & object

AmazonLocationServiceBatchGeofenceErrorMessages

AmazonLocationServiceBatchGeofenceErrorMessages: "AccessDeniedException" | "InternalServerException" | "ResourceNotFoundException" | "ThrottlingException" | "ValidationException"

AmazonLocationServiceDeleteGeofencesResults

AmazonLocationServiceDeleteGeofencesResults: Omit<DeleteGeofencesResults, "errors"> & object

AmazonLocationServiceGeofence

AmazonLocationServiceGeofence: Omit<Geofence, "status"> & object

AmazonLocationServiceGeofenceOptions

AmazonLocationServiceGeofenceOptions: GeofenceOptions & object

AmazonLocationServiceGeofenceStatus

AmazonLocationServiceGeofenceStatus: "ACTIVE" | "PENDING" | "FAILED" | "DELETED" | "DELETING"

AmazonLocationServiceListGeofenceOptions

AmazonLocationServiceListGeofenceOptions: ListGeofenceOptions & object

AmplifyContext

AmplifyContext: object

Type declaration

  • Auth: typeof Auth
  • Cache: typeof Cache
  • InternalAPI: typeof InternalAPI

AmplifyThemeType

AmplifyThemeType: Record<string, any>

ApiInfo

ApiInfo: object

Type declaration

  • Optional custom_header?: function
      • (): object
      • Returns object

        • [key: string]: string
  • endpoint: string
  • Optional region?: string
  • Optional service?: string

ArchiveStatus

ArchiveStatus: object[keyof typeof ArchiveStatus]

ArrayOperators

ArrayOperators: object

Type declaration

  • contains: T
  • notContains: T

AssociatedWith

AssociatedWith: object

Type declaration

  • associatedWith: string | string[]
  • connectionType: "HAS_MANY" | "HAS_ONE"
  • Optional targetName?: string
  • Optional targetNames?: string[]

AttributeType

AttributeType: object[keyof typeof AttributeType]

AuthErrorMessages

AuthErrorMessages: object

Type declaration

AuthModeStrategy

AuthModeStrategy: function

Type declaration

AuthModeStrategyParams

AuthModeStrategyParams: object

Type declaration

AuthModeStrategyReturn

AuthModeStrategyReturn: GRAPHQL_AUTH_MODE | GRAPHQL_AUTH_MODE[] | undefined | null

AuthProviders

AuthProviders: object

Type declaration

  • functionAuthProvider: function

AuthorizationInfo

AuthorizationInfo: object

Type declaration

  • authMode: GRAPHQL_AUTH_MODE
  • isOwner: boolean
  • Optional ownerField?: string
  • Optional ownerValue?: string

AuthorizationRule

AuthorizationRule: object

Type declaration

  • areSubscriptionsPublic: boolean
  • authStrategy: "owner" | "groups" | "private" | "public"
  • groupClaim: string
  • groups: [string]
  • groupsField: string
  • identityClaim: string
  • ownerField: string
  • provider: "userPools" | "oidc" | "iam" | "apiKey"

AutoTrackAttributes

AutoTrackAttributes: function | EventAttributes

BlockList

BlockList: Block[]

BooleanOperators

BooleanOperators: EqualityOperators<T>

BoundingBox

Optional height

height: Number

Optional left

left: Number

Optional top

top: Number

Optional width

width: Number

ButtonAction

ButtonAction: object[keyof typeof ButtonAction]

ChannelType

ChannelType: "ADM" | "APNS" | "APNS_SANDBOX" | "APNS_VOIP" | "APNS_VOIP_SANDBOX" | "BAIDU" | "CUSTOM" | "EMAIL" | "GCM" | "IN_APP" | "PUSH" | "SMS" | "VOICE"

ChecksumAlgorithm

ChecksumAlgorithm: object[keyof typeof ChecksumAlgorithm]

ChecksumMode

ChecksumMode: object[keyof typeof ChecksumMode]

ClientMetaData

ClientMetaData: object | undefined

CommonStorageOptions

CommonStorageOptions: Omit<StorageOptions, "credentials" | "region" | "bucket" | "dangerouslyConnectToHttpEndpointForTesting">

CompatibleHttpResponse

CompatibleHttpResponse: Omit<HttpResponse, "body"> & object

Compatible type for S3 streaming body exposed via Amplify public interfaces, like GetObjectCommandOutput exposed via download API. It's also compatible with the custom transfer handler interface HttpResponse.body.

internal

CompleteMultipartUploadInput

CompleteMultipartUploadInput: Pick<CompleteMultipartUploadCommandInput, "Bucket" | "Key" | "UploadId" | "MultipartUpload" | "SSECustomerAlgorithm" | "SSECustomerKey" | "SSECustomerKeyMD5">

CompositeIdentifier

CompositeIdentifier: IdentifierBrand<object, "CompositeIdentifier">

ConditionProducer

ConditionProducer: function

Type declaration

    • (...args: A): A["length"] extends keyof Lookup<T> ? Lookup<T>[A["length"]] : never
    • Parameters

      • Rest ...args: A

      Returns A["length"] extends keyof Lookup<T> ? Lookup<T>[A["length"]] : never

Config

Config: object

Type declaration

  • [key: string]: string | number

ConfigParameter

ConfigParameter: Parameters<F>[StorageProviderApiOptionsIndexMap[U]]

ConfiguredMiddleware

ConfiguredMiddleware: function

Type declaration

ConflictHandler

ConflictHandler: function

Type declaration

ConnectionStatus

ConnectionStatus: object

Type declaration

  • online: boolean

Context

Context: object

Type declaration

  • Optional req?: any

ControlMessageType

ControlMessageType: object

Type declaration

  • Optional data?: any
  • type: T

Coordinates

Coordinates: [Longitude, Latitude]

CopyObjectInput

CopyObjectInput: Pick<CopyObjectCommandInput, "Bucket" | "CopySource" | "Key" | "MetadataDirective" | "CacheControl" | "ContentType" | "ContentDisposition" | "ContentLanguage" | "Expires" | "ACL" | "ServerSideEncryption" | "SSECustomerAlgorithm" | "SSECustomerKey" | "SSECustomerKeyMD5" | "SSEKMSKeyId" | "Tagging" | "Metadata">

CreateMultipartUploadInput

CreateMultipartUploadInput: Extract<CreateMultipartUploadCommandInput, PutObjectInput>

CustomIdentifier

CustomIdentifier: CompositeIdentifier<T, [K]>

CustomPrefix

CustomPrefix: object

Type declaration

CustomUserAgentDetails

CustomUserAgentDetailsBase

CustomUserAgentDetailsBase: object

Type declaration

  • Optional additionalInfo?: AWSUserAgent

    Accepts an array of arrays with exactly 1 or 2 values and translates those arrays to "item" or "item1/item2" strings on the custom user agent

  • Optional framework?: Framework

DailyInAppMessageCounter

DailyInAppMessageCounter: object

Type declaration

  • count: number
  • lastCountTimestamp: string

DataObject

DataObject: object

Type declaration

  • data: Record<string, unknown>

DataPayload

DataPayload: object

Type declaration

DataStoreConfig

DataStoreConfig: object

Type declaration

DataStoreSnapshot

DataStoreSnapshot: object

Type declaration

  • isSynced: boolean
  • items: T[]

DeepWritable

DeepWritable: object

Type declaration

DefaultPersistentModelMetaData

DefaultPersistentModelMetaData: object

Type declaration

DeferredCallbackResolverOptions

DeferredCallbackResolverOptions: object

Type declaration

  • callback: function
      • (): void
      • Returns void

  • Optional errorHandler?: function
      • (error: string): void
      • Parameters

        • error: string

        Returns void

  • Optional maxInterval?: number

DeleteGeofencesResults

DeleteGeofencesResults: object

Type declaration

DeleteObjectInput

DeleteObjectInput: Pick<DeleteObjectCommandInput, "Bucket" | "Key">

DimensionType

DimensionType: object[keyof typeof DimensionType]

EncodingType

EncodingType: object[keyof typeof EncodingType]

EndpointBuffer

EndpointBuffer: Array<EventObject>

EndpointFailureData

EndpointFailureData: object

Type declaration

  • endpointObject: EventObject
  • err: any
  • update_params: any

EndpointResolverOptions

EndpointResolverOptions: object

Basic option type for endpoint resolvers. It contains region only.

Type declaration

  • region: string

EnumFieldType

EnumFieldType: object

Type declaration

  • enum: string

EqualityOperators

EqualityOperators: object

Type declaration

  • eq: T
  • ne: T

ErrorHandler

ErrorHandler: function

Type declaration

ErrorMap

ErrorMap: Partial<object>

ErrorParser

ErrorParser: function

parse errors from given response. If no error code is found, return undefined. This function is protocol-specific (e.g. JSON, XML, etc.)

Type declaration

ErrorType

ErrorType: "ConfigError" | "BadModel" | "BadRecord" | "Unauthorized" | "Transient" | "Unknown"

Event

Event: object

Type declaration

  • attributes: string
  • eventId: string
  • immediate: boolean
  • metrics: string
  • name: string
  • session: object

Optional AppPackageName

AppPackageName: string

The package name of the app that's recording the event.

Optional AppTitle

AppTitle: string

The title of the app that's recording the event.

Optional AppVersionCode

AppVersionCode: string

The version number of the app that's recording the event.

Optional Attributes

Attributes: Record<string, string>

One or more custom attributes that are associated with the event.

Optional ClientSdkVersion

ClientSdkVersion: string

The version of the SDK that's running on the client device.

EventType

EventType: string | undefined

The name of the event.

Optional Metrics

Metrics: Record<string, number>

One or more custom metrics that are associated with the event.

Optional SdkName

SdkName: string

The name of the SDK that's being used to record the event.

Optional Session

Session: Session

Information about the session in which the event occurred.

Timestamp

Timestamp: string | undefined

The date and time, in ISO 8601 format, when the event occurred.

EventBuffer

EventBuffer: Array<EventMap>

EventConfig

EventConfig: object

Type declaration

  • appId: string
  • endpointId: string
  • region: string
  • resendLimit: number

EventMap

EventMap: object

Type declaration

EventObject

EventObject: object

Type declaration

EventParams

EventParams: object

Type declaration

  • config: EventConfig
  • credentials: object
  • event: Event
  • resendLimit: number
  • timestamp: string

EventType

EventsBufferConfig

EventsBufferConfig: object

Type declaration

  • bufferSize: number
  • flushInterval: number
  • flushSize: number
  • resendLimit: number

FeatureType

FeatureType: "TABLES" | "FORMS" | string

FeatureTypes

FeatureTypes: FeatureType[]

FederatedSignInOptions

FederatedSignInOptions: object

Type declaration

FederatedSignInOptionsCustom

FederatedSignInOptionsCustom: object

Type declaration

  • customProvider: string
  • Optional customState?: string

FieldAssociation

FieldAssociation: object

Type declaration

  • connectionType: "HAS_ONE" | "BELONGS_TO" | "HAS_MANY"

FilterType

FilterType: object[keyof typeof FilterType]

Geofence

Geofence: GeofenceBase & object

GeofenceBase

GeofenceBase: object

Type declaration

  • Optional createTime?: Date
  • geofenceId: GeofenceId
  • Optional updateTime?: Date

GeofenceError

GeofenceError: object

Type declaration

  • error: object
    • code: string
    • message: string
  • geofenceId: GeofenceId

GeofenceId

GeofenceId: string

GeofenceInput

GeofenceInput: object

Type declaration

GeofenceOptions

GeofenceOptions: object

Type declaration

  • Optional providerName?: string

GeofencePolygon

GeofencePolygon: LinearRing[]

GetObjectInput

GetObjectInput: Pick<GetObjectCommandInput, "Bucket" | "Key" | "ResponseCacheControl" | "ResponseContentDisposition" | "ResponseContentEncoding" | "ResponseContentLanguage" | "ResponseContentType" | "SSECustomerAlgorithm" | "SSECustomerKey" | "SSECustomerKeyMD5">

GraphQLCondition

GraphQLCondition: Partial<GraphQLField | object>

GraphQLField

GraphQLField: object

Type declaration

  • [field: string]: object
    • [operator: string]: string | number | [number, number]

GraphQLFilter

GraphQLFilter: Partial<GraphQLField | object | object | object>

GraphQLOperation

GraphQLOperation: Source | string

GraphQLSource or string, the type of the parameter for calling graphql.parse

see:

https://graphql.org/graphql-js/language/#parse

GraphQLQuery

GraphQLQuery: T & object

GraphQLSubscription

GraphQLSubscription: T & object

GraphqlAuthModes

GraphqlAuthModes: keyof typeof GRAPHQL_AUTH_MODE

GroupOperator

GroupOperator: "and" | "or" | "not"

HeadObjectInput

HeadObjectInput: Pick<HeadObjectCommandInput, "Bucket" | "Key" | "SSECustomerKey" | "SSECustomerKeyMD5" | "SSECustomerAlgorithm">

Headers

Headers: Record<string, string>

Use basic Record interface to workaround fetch Header class not available in Node.js The header names must be lowercased. TODO: use LowerCase intrinsic when we can support typescript 4.0

HttpTransferHandler

HubCallback

HubCallback: function

Type declaration

HubCapsule

HubCapsule: object

Type declaration

  • channel: string
  • Optional patternInfo?: string[]
  • payload: HubPayload
  • source: string

HubPayload

HubPayload: object

Type declaration

  • Optional data?: any
  • event: string
  • Optional message?: string

Identifier

Identifier: ManagedIdentifier<T, any> | OptionallyManagedIdentifier<T, any> | CompositeIdentifier<T, any> | CustomIdentifier<T, any>

IdentifierBrand

IdentifierBrand: T & object

IdentifierFieldOrIdentifierObject

IdentifierFieldOrIdentifierObject: Pick<T, IdentifierFields<T, M>> | IdentifierFieldValue<T, M>

IdentifierFieldValue

IdentifierFieldValue: MetadataOrDefault<T, M>["identifier"] extends CompositeIdentifier<T, any> ? MetadataOrDefault<T, M>["identifier"]["fields"] extends [any] ? T[MetadataOrDefault<T, M>["identifier"]["fields"][0]] : never : T[MetadataOrDefault<T, M>["identifier"]["field"]]

IdentifierFields

IdentifierFields: string

IdentifierFieldsForInit

IdentifierFieldsForInit: MetadataOrDefault<T, M>["identifier"] extends DefaultPersistentModelMetaData | ManagedIdentifier<T, any> ? never : MetadataOrDefault<T, M>["identifier"] extends OptionallyManagedIdentifier<T, any> ? IdentifierFields<T, M> : MetadataOrDefault<T, M>["identifier"] extends CompositeIdentifier<T, any> ? IdentifierFields<T, M> : never

IdentifySource

ImageBlob

ImageBlob: Buffer | Uint8Array | Blob | string

InAppMessageAction

InAppMessageAction: "CLOSE" | "DEEP_LINK" | "LINK"

InAppMessageConflictHandler

InAppMessageConflictHandler: function

Type declaration

    • (messages: InAppMessage[]): InAppMessage
    • Parameters

      • messages: InAppMessage[]

      Returns InAppMessage

InAppMessageCountMap

InAppMessageCountMap: Record<string, number>

InAppMessageCounts

InAppMessageCounts: object

Type declaration

  • dailyCount: number
  • sessionCount: number
  • totalCount: number

InAppMessageLayout

InAppMessageLayout: "BOTTOM_BANNER" | "CAROUSEL" | "FULL_SCREEN" | "MIDDLE_BANNER" | "MODAL" | "TOP_BANNER"

InAppMessageTextAlign

InAppMessageTextAlign: "center" | "left" | "right"

InAppMessagingEvent

InAppMessagingEvent: object

Type declaration

  • Optional attributes?: Record<string, string>
  • Optional metrics?: Record<string, number>
  • name: string

IndexOptions

IndexOptions: object

Type declaration

  • Optional unique?: boolean

IndexesType

IndexesType: Array<[string, string[], object]>

InferInstructionResultType

InferInstructionResultType: undefined

InferOptionTypeFromTransferHandler

InferOptionTypeFromTransferHandler: Parameters<T>[1]

Type to infer the option type of a transfer handler type.

Instruction

InteractionsMessage

InteractionsResponse

InteractionsResponse: object

Type declaration

  • [key: string]: any

InteractionsTextMessage

InteractionsTextMessage: object

Type declaration

  • content: string
  • options: object
    • messageType: "text"

InteractionsVoiceMessage

InteractionsVoiceMessage: object

Type declaration

  • content: object
  • options: object
    • messageType: "voice"

InternalNotificationsSubCategory

InternalNotificationsSubCategory: "InternalInAppMessaging"

InternalSchema

InternalSchema: object

Type declaration

InternalSubscriptionMessage

InternalSubscriptionMessage: object

Type declaration

JobEntry

JobEntry: object

Completely internal to BackgroundProcessManager, and describes the structure of an entry in the jobs registry.

Type declaration

  • Optional description?: string

    An object provided by the caller that can be used to identify the description of the job, which can otherwise be unclear from the promise and terminate function. The description can be a string. (May be extended later to also support object refs.)

    Useful for troubleshooting why a manager is waiting for long periods of time on close().

  • promise: Promise<any>

    The underlying promise provided by the job function to wait for.

  • terminate: function

    Request the termination of the job.

      • (): void
      • Returns void

KeyType

KeyType: object

Type declaration

  • Optional compositeKeys?: Set<string>[]
  • Optional primaryKey?: string[]

KeysOfSuperType

KeysOfSuperType: object[keyof T]

KeysOfType

KeysOfType: object[keyof T]

KnownOS

KnownOS: "windows" | "macos" | "unix" | "linux" | "ios" | "android" | "web"

Last

Last: T[Exclude<keyof T, keyof Tail<T>>]

Latitude

Latitude: number

Layout

Layout: object[keyof typeof Layout]

LegacyCallback

LegacyCallback: object

Type declaration

LegacyProvider

LegacyProvider: "google" | "facebook" | "amazon" | "developer" | string

LinearRing

LinearRing: Coordinates[]

LinkedConnectionState

LinkedConnectionState: "connected" | "disconnected"

LinkedConnectionStates

LinkedConnectionStates: object

Type declaration

LinkedHealthState

LinkedHealthState: "healthy" | "unhealthy"

ListGeofenceOptions

ListGeofenceOptions: GeofenceOptions & object

ListGeofenceResults

ListGeofenceResults: object

Type declaration

  • entries: Geofence[]
  • nextToken: string | undefined

ListObjectsCommandOutputContent

ListObjectsCommandOutputContent: _Object

ListObjectsV2Input

ListObjectsV2Input: ListObjectsV2CommandInput

ListPartsInput

ListPartsInput: Pick<ListPartsCommandInput, "Bucket" | "Key" | "UploadId" | "SSECustomerAlgorithm" | "SSECustomerKey" | "SSECustomerKeyMD5">

Longitude

Longitude: number

Lookup

Lookup: object

Type declaration

ManagedIdentifier

ManagedIdentifier: IdentifierBrand<object, "ManagedIdentifier">

MapEntry

MapEntry: [string, RegExp, string]

MapTypeToOperands

MapTypeToOperands: object

Type declaration

MatchableTypes

MatchableTypes: string | string[] | number | number[] | boolean | boolean[]

MergeNoConflictKeys

MergeNoConflictKeys: Options extends [infer OnlyOption] ? OnlyOption : Options extends [infer FirstOption, infer SecondOption] ? FirstOption & SecondOption : Options extends [infer FirstOption, any] ? FirstOption & MergeNoConflictKeys<RestOptions> : never

Type to intersect multiple types if they have no conflict keys.

MetadataDirective

MetadataDirective: object[keyof typeof MetadataDirective]

MetadataOrDefault

MetadataOrDefault: T extends object ? T[typeof __modelMeta__] : DefaultPersistentModelMetaData

MetadataReadOnlyFields

MetadataReadOnlyFields: Extract<MetadataOrDefault<T, M>["readOnlyFields"] | M["readOnlyFields"], keyof T>

MetricsComparator

MetricsComparator: function

Type declaration

    • (metricsVal: number, eventVal: number): boolean
    • Parameters

      • metricsVal: number
      • eventVal: number

      Returns boolean

Middleware

Middleware: function

A slimmed down version of the AWS SDK v3 middleware, only handling tasks after Serde.

Type declaration

MiddlewareContext

MiddlewareContext: object

The context object to store states across the middleware chain.

Type declaration

  • Optional attemptsCount?: number

    The number of times the request has been attempted. This is set by retry middleware

MiddlewareHandler

MiddlewareHandler: function

A slimmed down version of the AWS SDK v3 middleware handler, only handling instantiated requests

Type declaration

    • (request: Input): Promise<Output>
    • Parameters

      • request: Input

      Returns Promise<Output>

ModelAssociation

ModelAttribute

ModelAttribute: object

Type declaration

  • Optional properties?: Record<string, any>
  • type: string

ModelAttributeAuth

ModelAttributeAuth: object

Type declaration

ModelAttributeAuthProperty

ModelAttributeAuthProperty: object

Type declaration

ModelAttributeCompositeKey

ModelAttributeCompositeKey: object

Type declaration

  • properties: object
    • fields: [string, string, string, string, string]
    • name: string
  • type: "key"

ModelAttributeKey

ModelAttributeKey: object

Type declaration

  • properties: object
    • fields: string[]
    • Optional name?: string
  • type: "key"

ModelAttributePrimaryKey

ModelAttributePrimaryKey: object

Type declaration

  • properties: object
    • fields: string[]
    • name: never
  • type: "key"

ModelAttributes

ModelAttributes: ModelAttribute[]

ModelAuthModes

ModelAuthModes: Record<string, object>

ModelAuthRule

ModelAuthRule: object

Type declaration

  • allow: string
  • Optional groupClaim?: string
  • Optional groups?: string[]
  • Optional groupsField?: string
  • Optional identityClaim?: string
  • Optional operations?: string[]
  • Optional ownerField?: string
  • Optional provider?: string

ModelField

ModelField: object

Type declaration

ModelFieldType

ModelFieldType: object

Type declaration

ModelFields

ModelFields: Record<string, ModelField>

ModelInit

ModelInit: object & object

ModelInitBase

ModelInitBase: Omit<T, typeof __modelMeta__ | IdentifierFields<T, M> | MetadataReadOnlyFields<T, M>>

ModelInstanceCreator

ModelInstanceCreator: typeof modelInstanceCreator

Constructs a model and records it with its metadata in a weakset. Allows for the separate storage of core model fields and Amplify/DataStore metadata fields that the customer app does not want exposed.

param

The model constructor.

param

Init data that would normally be passed to the constructor.

returns

The initialized model.

ModelInstanceMetadata

ModelInstanceMetadata: object

Type declaration

  • _deleted: boolean
  • _lastChangedAt: number
  • _version: number

ModelInstanceMetadataWithId

ModelInstanceMetadataWithId: ModelInstanceMetadata & object

ModelKeys

ModelKeys: object

Type declaration

ModelMeta

ModelMeta: object

Type declaration

ModelPredicate

ModelPredicate: object & PredicateGroups<M>

ModelPredicateAggregateExtender

ModelPredicateAggregateExtender: function

Type declaration

ModelPredicateExtender

ModelPredicateExtender: function

A function that accepts a ModelPrecicate, which it must use to return a final condition.

This is used as predicates in DataStore.save(), DataStore.delete(), and DataStore sync expressions.

DataStore.save(record, model => model.field.eq('some value'))

Logical operators are supported. But, condtiions are related records are NOT supported. E.g.,

DataStore.delete(record, model => model.or(m => [
    m.field.eq('whatever'),
    m.field.eq('whatever else')
]))

Type declaration

ModelPredicateNegation

ModelPredicateNegation: function

Type declaration

ModelPredicateOperator

ModelPredicateOperator: function

Type declaration

MutableModel

MutableModel: DeepWritable<Omit<T, IdentifierFields<T, M> | MetadataReadOnlyFields<T, M>>> & Readonly<Pick<T, IdentifierFields<T, M> | MetadataReadOnlyFields<T, M>>>

MutationProcessorEvent

MutationProcessorEvent: object

Type declaration

NELatitude

NELatitude: Latitude

NELongitude

NELongitude: Longitude

NamespaceResolver

NamespaceResolver: function

Type declaration

NetworkStatus

NetworkStatus: object

Type declaration

  • online: boolean

NonModelFieldType

NonModelFieldType: object

Type declaration

  • nonModel: string

NonModelTypeConstructor

NonModelTypeConstructor: object

Type declaration

NonNeverKeys

NonNeverKeys: object[keyof T]

NotificationsCategory

NotificationsCategory: "Notifications"

NotificationsSubCategory

NotificationsSubCategory: "InAppMessaging" | "PushNotification"

NumberOperators

NumberOperators: ScalarNumberOperators<T> & object

OAuthOpts

ObjectCannedACL

ObjectCannedACL: object[keyof typeof ObjectCannedACL]

ObjectLockLegalHoldStatus

ObjectLockLegalHoldStatus: object[keyof typeof ObjectLockLegalHoldStatus]

ObjectLockMode

ObjectLockMode: object[keyof typeof ObjectLockMode]

ObjectStorageClass

ObjectStorageClass: object[keyof typeof ObjectStorageClass]

ObserveQueryOptions

ObserveQueryOptions: Pick<ProducerPaginationInput<T>, "sort">

ObserverQuery

ObserverQuery: object

Type declaration

  • observer: PubSubContentObserver
  • query: string
  • Optional startAckTimeoutId?: ReturnType<typeof setTimeout>
  • Optional subscriptionFailedCallback?: Function
  • Optional subscriptionReadyCallback?: Function
  • subscriptionState: SUBSCRIPTION_STATUS
  • variables: Record<string, unknown>

OmitOptionalFields

OmitOptionalFields: Omit<T, KeysOfSuperType<T, undefined> | OptionalRelativesOf<T>>

OmitOptionalRelatives

OmitOptionalRelatives: Omit<T, OptionalRelativesOf<T>>

OnMessageInteractionEventHandler

OnMessageInteractionEventHandler: function

Type declaration

    • (message: InAppMessage): any
    • Parameters

      • message: InAppMessage

      Returns any

OnPushNotificationMessageHandler

OnPushNotificationMessageHandler: function

Type declaration

OnTokenReceivedHandler

OnTokenReceivedHandler: function

Type declaration

    • (token: string): any
    • Parameters

      • token: string

      Returns any

Option

Option: Option0 | Option1<T>

Option0

Option0: []

Option1

Option1: [V5ModelPredicate<T> | undefined]

OptionToMiddleware

OptionToMiddleware: Options extends [] ? [] : Options extends [infer LastOption] ? [Middleware<Request, Response, LastOption>] : Options extends [infer FirstOption, any] ? [Middleware<Request, Response, FirstOption>, any] : never

Type to convert a middleware option type to a middleware type with the given option type.

OptionalRelativesOf

OptionalRelativesOf: KeysOfType<T, AsyncCollection<any>> | KeysOfSuperType<T, Promise<undefined>>

OptionalizeKey

OptionalizeKey: Omit<T, K & keyof T> & object

OptionallyManagedIdentifier

OptionallyManagedIdentifier: IdentifierBrand<object, "OptionallyManagedIdentifier">

PaginationInput

PaginationInput: object

Type declaration

  • Optional limit?: number
  • Optional page?: number
  • Optional sort?: SortPredicate<T>

ParameterizedStatement

ParameterizedStatement: [string, any[]]

ParsedMessagePayload

ParsedMessagePayload: object

Type declaration

  • payload: object
    • connectionTimeoutMs: number
    • Optional errors?: [object]
  • type: string

PersistentModel

PersistentModel: Readonly<Record<string, any>>

PersistentModelConstructor

PersistentModelConstructor: object

Type declaration

PersistentModelMetaData

PersistentModelMetaData: object

Type declaration

  • Optional identifier?: Identifier<T>
  • Optional readOnlyFields?: string

PickOptionalFields

PickOptionalFields: Pick<T, KeysOfSuperType<T, undefined> | OptionalRelativesOf<T>>

PickOptionalRelatives

PickOptionalRelatives: Pick<T, OptionalRelativesOf<T>>

PickProviderOutput

PickProviderOutput: T extends StorageProvider ? T["getProviderName"] extends "AWSS3" ? DefaultOutput : T extends StorageProviderWithCopy & StorageProviderWithGetProperties ? ReturnType<T[api]> : T extends StorageProviderWithCopy ? ReturnType<T[Exclude<api, "getProperties">]> : T extends StorageProviderWithGetProperties ? ReturnType<T[Exclude<api, "copy">]> : ReturnType<T[Exclude<api, "copy" | "getProperties">]> : T extends object ? T extends object ? DefaultOutput : Promise<any> : DefaultOutput

Utility type for checking if the generic type is a provider or a Record that has the key 'provider'. If it's a provider, check if it's the S3 Provider, use the default type else use the generic's 'get' method return type. If it's a Record, check if provider is 'AWSS3', use the default type else use any.

PlaceGeometry

PlaceGeometry: object

Type declaration

PlatformDetectionEntry

PlatformDetectionEntry: object

Type declaration

  • detectionMethod: function
      • (): boolean
      • Returns boolean

  • platform: Framework

Polygon

Polygon: Array<Point> | Iterable<Point>

PolygonGeometry

PolygonGeometry: object

Type declaration

PredicateExpression

PredicateExpression: TypeName<FT> extends keyof MapTypeToOperands<FT> ? function : never

PredicateFieldType

PredicateFieldType: NonNullable<Scalar<T extends Promise<infer InnerPromiseType> ? InnerPromiseType : T extends AsyncCollection<infer InnerCollectionType> ? InnerCollectionType : T>>

PredicateGroups

PredicateGroups: object

Type declaration

PredicateObject

PredicateObject: object

Type declaration

  • field: keyof T
  • operand: any
  • operator: keyof AllOperators

PredicatesGroup

PredicatesGroup: object

Type declaration

ProducerModelPredicate

ProducerModelPredicate: function

Type declaration

ProducerPaginationInput

ProducerPaginationInput: object

Type declaration

ProducerSortPredicate

ProducerSortPredicate: function

Type declaration

Properties

Properties: object

Type declaration

  • [key: string]: any

PropertyNameWithStringValue

PropertyNameWithStringValue: string

PropertyNameWithSubsequentDeserializer

PropertyNameWithSubsequentDeserializer: [string, function]

PubSubContent

PubSubContent: Record<string, unknown> | string

PubSubContentObserver

PubSubContentObserver: SubscriptionObserver<PubSubContent>

PubSubObservable

PubSubObservable: object

Type declaration

PutEventsResponse

PutEventsResponse: object

Type declaration

  • EventsResponse: object
    • Optional Results?: object
      • [endpointId: string]: object
        • Optional EventsItemResponse?: object
          • [eventId: string]: object
            • Optional Message?: string
            • Optional StatusCode?: number

EventsResponse

EventsResponse: EventsResponse | undefined

Provides information about endpoints and the events that they're associated with.

PutObjectCommandInputType

PutObjectCommandInputType: Omit<PutObjectRequest, "Body"> & object

PutObjectInput

PutObjectInput: Pick<PutObjectCommandInput, "Bucket" | "Key" | "Body" | "ServerSideEncryption" | "SSECustomerAlgorithm" | "SSECustomerKey" | "SSECustomerKeyMD5" | "SSEKMSKeyId" | "ACL" | "CacheControl" | "ContentDisposition" | "ContentEncoding" | "ContentType" | "ContentMD5" | "Expires" | "Metadata" | "Tagging">

Reference: S3ProviderPutConfig

PutResult

PutResult: object

Type declaration

  • key: string

RecursiveModelPredicate

RecursiveModelPredicate: object & object & PredicateInternalsKey

RecursiveModelPredicateAggregateExtender

RecursiveModelPredicateAggregateExtender: function

Type declaration

RecursiveModelPredicateExtender

RecursiveModelPredicateExtender: function

A function that accepts a RecursiveModelPrecicate, which it must use to return a final condition.

This is used in DataStore.query(), DataStore.observe(), and DataStore.observeQuery() as the second argument. E.g.,

DataStore.query(MyModel, model => model.field.eq('some value'))

More complex queries should also be supported. E.g.,

DataStore.query(MyModel, model => model.and(m => [
  m.relatedEntity.or(relative => [
    relative.relativeField.eq('whatever'),
    relative.relativeField.eq('whatever else')
  ]),
  m.myModelField.ne('something')
]))

Type declaration

RecursiveModelPredicateNegation

RecursiveModelPredicateNegation: function

Type declaration

RecursiveModelPredicateOperator

RecursiveModelPredicateOperator: function

RelationType

RelationType: object

Type declaration

  • Optional associatedWith?: string | string[]
  • fieldName: string
  • modelName: string
  • relationType: "HAS_ONE" | "HAS_MANY" | "BELONGS_TO"
  • Optional targetName?: string
  • Optional targetNames?: string[]

RelationshipType

RelationshipType: object

Type declaration

ReplicationStatus

ReplicationStatus: object[keyof typeof ReplicationStatus]

RequestCharged

RequestCharged: object[keyof typeof RequestCharged]

RequestPayer

RequestPayer: object[keyof typeof RequestPayer]

ResponseBodyMixin

ResponseBodyMixin: Pick<Body, "blob" | "json" | "text">

Reduce the API surface of Fetch API's Body mixin to only the methods we need. In React Native, body.arrayBuffer() is not supported. body.formData() is not supported for now.

ResumableUploadConfig

ResumableUploadConfig: object

Type declaration

S3Bucket

S3Bucket: string

S3ClientOptions

S3ClientOptions: StorageOptions & object & S3ProviderListConfig

S3CopyDestination

S3CopyDestination: Omit<S3CopyTarget, "identityId">

S3CopySource

S3CopySource: S3CopyTarget

S3EndpointResolverOptions

S3EndpointResolverOptions: EndpointResolverOptions & object

Options for endpoint resolver.

internal

S3ObjectName

S3ObjectName: string

S3ObjectVersion

S3ObjectVersion: string

S3ProviderCopyConfig

S3ProviderCopyConfig: Omit<CommonStorageOptions, "level"> & object

Configuration options for the S3 copy function.

remarks

The acl parameter may now only be used for S3 buckets with specific Object Owner settings. Usage of this parameter is not considered a recommended practice: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html

S3ProviderCopyOutput

S3ProviderCopyOutput: object

Type declaration

  • key: string

S3ProviderGetConfig

S3ProviderGetConfig: CommonStorageOptions & object

S3ProviderGetOuput

S3ProviderGetOuput: T extends object ? GetObjectOutput : string

S3ProviderGetPropertiesConfig

S3ProviderGetPropertiesConfig: CommonStorageOptions & object

S3ProviderGetPropertiesOutput

S3ProviderGetPropertiesOutput: object

Type declaration

  • contentLength: number
  • contentType: string
  • eTag: string
  • lastModified: Date
  • metadata: Record<string, string>

S3ProviderListConfig

S3ProviderListConfig: CommonStorageOptions & object

S3ProviderListOutput

S3ProviderListOutput: object

Type declaration

S3ProviderPutConfig

S3ProviderPutConfig: CommonStorageOptions & object | object & object

Configuration options for the S3 put function.

remarks

The acl parameter may now only be used for S3 buckets with specific Object Owner settings. Usage of this parameter is not considered a recommended practice: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html

S3ProviderPutOutput

S3ProviderPutOutput: T extends object ? UploadTask : Promise<PutResult>

S3ProviderRemoveConfig

S3ProviderRemoveConfig: CommonStorageOptions & object

S3ProviderRemoveOutput

S3ProviderRemoveOutput: DeleteObjectOutput

SWLatitude

SWLatitude: Latitude

SWLongitude

SWLongitude: Longitude

SaveGeofencesResults

SaveGeofencesResults: object

Type declaration

Scalar

Scalar: T extends Array<infer InnerType> ? InnerType : T

ScalarNumberOperators

ScalarNumberOperators: EqualityOperators<T> & object

Schema

Schema: UserSchema & object

SchemaEnum

SchemaEnum: object

Type declaration

  • name: string
  • values: string[]

SchemaEnums

SchemaEnums: Record<string, SchemaEnum>

SchemaModel

SchemaModel: object

Type declaration

  • Optional allFields?: ModelFields

    Explicitly defined fields plus implied fields. (E.g., foreign keys.)

  • Optional attributes?: ModelAttributes
  • fields: ModelFields

    Explicitly defined fields.

  • name: string
  • pluralName: string
  • Optional syncable?: boolean

SchemaModels

SchemaModels: Record<string, SchemaModel>

SchemaNamespace

SchemaNamespace: UserSchema & object

SchemaNamespaces

SchemaNamespaces: Record<string, SchemaNamespace>

SchemaNonModel

SchemaNonModel: object

Type declaration

SchemaNonModels

SchemaNonModels: Record<string, SchemaNonModel>

SearchByCoordinatesOptions

SearchByCoordinatesOptions: object

Type declaration

  • Optional maxResults?: number
  • Optional providerName?: string
  • Optional searchIndexName?: string

SearchByTextOptions

SearchForSuggestionsResult

SearchForSuggestionsResult: object

Type declaration

  • Optional placeId?: string
  • text: string

SearchForSuggestionsResults

SearchForSuggestionsResults: SearchForSuggestionsResult[]

ServerSideEncryption

ServerSideEncryption: object[keyof typeof ServerSideEncryption]

SessionState

SessionState: "started" | "ended"

SessionStateChangeHandler

SessionStateChangeHandler: function

Type declaration

SettableFieldType

SettableFieldType: T extends Promise<infer InnerPromiseType> ? undefined extends InnerPromiseType ? InnerPromiseType | null : InnerPromiseType : T extends AsyncCollection<infer InnerCollectionType> ? InnerCollectionType[] | undefined : undefined extends T ? T | null : T

SettingMetaData

SettingMetaData: object

Type declaration

SignInOpts

SortPredicate

SortPredicate: object

Type declaration

SortPredicateExpression

SortPredicateExpression: TypeName<FT> extends keyof MapTypeToOperands<FT> ? function : never

SortPredicateObject

SortPredicateObject: object

Type declaration

  • field: keyof T
  • sortDirection: keyof typeof SortDirection

SortPredicatesGroup

SortPredicatesGroup: SortPredicateObject<T>[]

SourceData

SourceData: string | ArrayBuffer | ArrayBufferView

StartParams

StartParams: object

Type declaration

  • fullSyncInterval: number

StorageAccessLevel

StorageAccessLevel: "public" | "protected" | "private"

StorageCopyConfig

StorageCopyConfig: T extends StorageProviderWithCopy ? StorageOperationConfig<T, "copy"> : StorageOperationConfigMap<StorageOperationConfig<AWSS3Provider, "copy">, T>

StorageCopyDestination

StorageCopyDestination: Omit<StorageCopyTarget, "identityId">

StorageCopyOutput

StorageCopyOutput: PickProviderOutput<Promise<S3ProviderCopyOutput>, T, "copy">

StorageCopySource

StorageCopySource: StorageCopyTarget

StorageCopyTarget

StorageCopyTarget: object

Type declaration

  • Optional identityId?: string
  • key: string
  • Optional level?: string

StorageFacade

StorageFacade: Omit<Adapter, "setUp">

StorageGetConfig

StorageGetConfig: T extends StorageProvider ? StorageOperationConfig<T, "get"> : StorageOperationConfigMap<StorageOperationConfig<AWSS3Provider, "get">, T>

StorageGetOutput

StorageGetOutput: PickProviderOutput<Promise<S3ProviderGetOuput<T>>, T, "get">

StorageGetPropertiesConfig

StorageGetPropertiesConfig: T extends StorageProviderWithGetProperties ? StorageOperationConfig<T, "getProperties"> : StorageOperationConfigMap<StorageOperationConfig<AWSS3Provider, "getProperties">, T>

StorageGetPropertiesOutput

StorageGetPropertiesOutput: PickProviderOutput<Promise<S3ProviderGetPropertiesOutput>, T, "getProperties">

StorageListConfig

StorageListConfig: T extends StorageProvider ? StorageOperationConfig<T, "list"> : StorageOperationConfigMap<StorageOperationConfig<AWSS3Provider, "list">, T>

StorageListOutput

StorageListOutput: PickProviderOutput<Promise<S3ProviderListOutput>, T, "list">

StorageOperationConfig

StorageOperationConfig: ReturnType<T["getProviderName"]> extends "AWSS3" ? ConfigParameter<AWSS3Provider[U], U> : T extends StorageProviderWithGetProperties & StorageProviderWithCopy ? ConfigParameter<T[U], U> & object : T extends StorageProviderWithCopy ? ConfigParameter<T[Exclude<U, "getProperties">], U> & object : T extends StorageProviderWithGetProperties ? ConfigParameter<T[Exclude<U, "copy">], U> & object : ConfigParameter<T[Exclude<U, "copy" | "getProperties">], U> & object

If provider is AWSS3, provider doesn't have to be specified since it's the default, else it has to be passed into config.

StorageOperationConfigMap

StorageOperationConfigMap: T extends object ? T extends object ? Default : T & object : Default

Utility type to allow custom provider to use any config keys, if provider is set to AWSS3 then it should use AWSS3Provider's config.

StorageProviderApi

StorageProviderApi: "copy" | "get" | "put" | "remove" | "list" | "getProperties"

StorageProviderApiOptionsIndexMap

StorageProviderApiOptionsIndexMap: object

Type declaration

  • copy: 2
  • get: 1
  • getProperties: 1
  • list: 1
  • put: 2
  • remove: 1

StoragePutConfig

StoragePutConfig: T extends StorageProvider ? StorageOperationConfig<T, "put"> : StorageOperationConfigMap<StorageOperationConfig<AWSS3Provider, "put">, T>

StoragePutOutput

StoragePutOutput: PickProviderOutput<S3ProviderPutOutput<T>, T, "put">

StorageRemoveConfig

StorageRemoveConfig: T extends StorageProvider ? StorageOperationConfig<T, "remove"> : StorageOperationConfigMap<StorageOperationConfig<AWSS3Provider, "remove">, T>

StorageRemoveOutput

StorageRemoveOutput: PickProviderOutput<Promise<S3ProviderRemoveOutput>, T, "remove">

StorageSubscriptionMessage

StorageSubscriptionMessage: InternalSubscriptionMessage<T> & object

Store

Store: Record<string, string>

StringOperators

StringOperators: ScalarNumberOperators<T> & object

SubscriptionMessage

SubscriptionMessage: Pick<InternalSubscriptionMessage<T>, "opType" | "element" | "model" | "condition">

SyncConflict

SyncConflict: object

Type declaration

SyncError

SyncError: object

Type declaration

  • Optional cause?: Error
  • Optional errorInfo?: string
  • errorType: ErrorType
  • localModel: T
  • message: string
  • Optional model?: string
  • operation: string
  • process: ProcessName
  • Optional recoverySuggestion?: string
  • remoteModel: T

SyncExpression

SyncExpression: Promise<object>

SyncModelPage

SyncModelPage: object

Type declaration

SystemComponent

SystemComponent: object

Type declaration

TaggingDirective

TaggingDirective: object[keyof typeof TaggingDirective]

Tail

Tail: function extends function ? R : never

TargetNameAssociation

TargetNameAssociation: object

Type declaration

  • connectionType: "BELONGS_TO"
  • Optional targetName?: string
  • Optional targetNames?: string[]

TextDetectionList

TextDetectionList: TextDetection[]

TrackerTypes

TrackerTypes: keyof typeof trackers

Trackers

Trackers: object[TrackerTypes]

TypeConstructorMap

TypeConstructorMap: Record<string, PersistentModelConstructor<any> | NonModelTypeConstructor<unknown>>

TypeName

TypeName: T extends string ? "string" : T extends number ? "number" : T extends boolean ? "boolean" : T extends string[] ? "string[]" : T extends number[] ? "number[]" : T extends boolean[] ? "boolean[]" : never

UntypedCondition

UntypedCondition: object

Type declaration

UploadPartCommandInputType

UploadPartCommandInputType: Omit<UploadPartRequest, "Body"> & object

UploadPartInput

UploadPartInput: Pick<UploadPartCommandInput, "PartNumber" | "Body" | "UploadId" | "Bucket" | "Key" | "ContentMD5" | "SSECustomerAlgorithm" | "SSECustomerKey" | "SSECustomerKeyMD5">

UserAgentDetailsWithCategory

UserAgentDetailsWithCategory: CustomUserAgentDetailsBase & object

UserInfo

UserInfo: object

Type declaration

  • Optional attributes?: Record<string, string[]>
  • Optional demographic?: object
    • Optional appVersion?: string
    • Optional locale?: string
    • Optional make?: string
    • Optional model?: string
    • Optional modelVersion?: string
    • Optional platform?: string
    • Optional platformVersion?: string
    • Optional timezone?: string
  • Optional location?: object
    • Optional city?: string
    • Optional country?: string
    • Optional latitude?: number
    • Optional longitude?: number
    • Optional postalCode?: string
    • Optional region?: string
  • Optional metrics?: Record<string, number>

UserSchema

UserSchema: object

Type declaration

UsernamePasswordOpts

UsernamePasswordOpts: object

Type declaration

  • password: string
  • username: string
  • Optional validationData?: object
    • [key: string]: any

V5ModelPredicate

V5ModelPredicate: WithoutNevers<object> & object & PredicateInternalsKey

ValuePredicate

ValuePredicate: object

Type declaration

WithoutNevers

WithoutNevers: Pick<T, NonNeverKeys<T>>

_S3ProviderPutConfig

_S3ProviderPutConfig: object

Type declaration

  • Optional SSECustomerAlgorithm?: PutObjectInput["SSECustomerAlgorithm"]
  • Optional SSECustomerKey?: PutObjectInput["SSECustomerKey"]
  • Optional SSECustomerKeyMD5?: PutObjectInput["SSECustomerKeyMD5"]
  • Optional SSEKMSKeyId?: PutObjectInput["SSEKMSKeyId"]
  • Optional acl?: PutObjectInput["ACL"]
  • Optional bucket?: PutObjectInput["Bucket"]
  • Optional cacheControl?: PutObjectInput["CacheControl"]
  • Optional contentDisposition?: PutObjectInput["ContentDisposition"]
  • Optional contentEncoding?: PutObjectInput["ContentEncoding"]
  • Optional contentType?: PutObjectInput["ContentType"]
  • Optional expires?: PutObjectInput["Expires"]
  • Optional metadata?: PutObjectInput["Metadata"]
  • Optional progressCallback?: function
      • (progress: any): any
      • Parameters

        • progress: any

        Returns any

  • Optional provider?: "AWSS3"
  • Optional resumable?: boolean
  • Optional serverSideEncryption?: PutObjectInput["ServerSideEncryption"]
  • Optional tagging?: PutObjectInput["Tagging"]
  • Optional track?: boolean
  • Optional useAccelerateEndpoint?: boolean

lexV2BaseReqParams

lexV2BaseReqParams: object

Type declaration

  • botAliasId: string
  • botId: string
  • localeId: string
  • sessionId: string

searchByPlaceIdOptions

searchByPlaceIdOptions: object

Type declaration

  • Optional searchIndexName?: string

Variables

Const ABORT_ERROR_CODE

ABORT_ERROR_CODE: "ERR_ABORTED" = "ERR_ABORTED"

Const ABORT_ERROR_MESSAGE

ABORT_ERROR_MESSAGE: "Request aborted" = "Request aborted"

Const ACCEPTED_CODES

ACCEPTED_CODES: number[] = [202]

Const ALGORITHM_QUERY_PARAM

ALGORITHM_QUERY_PARAM: "X-Amz-Algorithm" = "X-Amz-Algorithm"

Const AMPLIFY_SYMBOL

AMPLIFY_SYMBOL: Symbol = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'? Symbol.for('amplify_default'): '@@amplify_default') as Symbol

Const AMZ_DATE_HEADER

AMZ_DATE_HEADER: string = AMZ_DATE_QUERY_PARAM.toLowerCase()

Const AMZ_DATE_QUERY_PARAM

AMZ_DATE_QUERY_PARAM: "X-Amz-Date" = "X-Amz-Date"

Const ANDROID_CAMPAIGN_ACTIVITY_ID_KEY

ANDROID_CAMPAIGN_ACTIVITY_ID_KEY: "pinpoint.campaign.campaign_activity_id" = "pinpoint.campaign.campaign_activity_id"

Const ANDROID_CAMPAIGN_ID_KEY

ANDROID_CAMPAIGN_ID_KEY: "pinpoint.campaign.campaign_id" = "pinpoint.campaign.campaign_id"

Const ANDROID_CAMPAIGN_TREATMENT_ID_KEY

ANDROID_CAMPAIGN_TREATMENT_ID_KEY: "pinpoint.campaign.treatment_id" = "pinpoint.campaign.treatment_id"

Const API

API: APIClass = new APIClass(null)

Const AUTH_HEADER

AUTH_HEADER: "authorization" = "authorization"

Const AWS_CLOUDWATCH_BASE_BUFFER_SIZE

AWS_CLOUDWATCH_BASE_BUFFER_SIZE: 26 = 26

Const AWS_CLOUDWATCH_CATEGORY

AWS_CLOUDWATCH_CATEGORY: "Logging" = "Logging"

Const AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE

AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE: 1048576 = 1048576

Const AWS_CLOUDWATCH_MAX_EVENT_SIZE

AWS_CLOUDWATCH_MAX_EVENT_SIZE: 256000 = 256000

Const AWS_CLOUDWATCH_PROVIDER_NAME

AWS_CLOUDWATCH_PROVIDER_NAME: "AWSCloudWatch" = "AWSCloudWatch"

Const AWS_ENDPOINT_REGEX

AWS_ENDPOINT_REGEX: RegExp = /([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(.cn)?$/

Const Alignment

Alignment: object

Type declaration

  • Readonly CENTER: "CENTER"
  • Readonly LEFT: "LEFT"
  • Readonly RIGHT: "RIGHT"

AmplifyRTNPushNotification

AmplifyRTNPushNotification: PushNotificationNativeModule

Const Analytics

Analytics: AnalyticsClass = new AnalyticsClass()

Const ArchiveStatus

ArchiveStatus: object

Type declaration

  • Readonly ARCHIVE_ACCESS: "ARCHIVE_ACCESS"
  • Readonly DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS"

Const AsyncStorage

AsyncStorage: any = browserOrNode().isBrowser? new StorageHelper().getStorage(): undefined

Const AttributeType

AttributeType: object

Type declaration

  • Readonly AFTER: "AFTER"
  • Readonly BEFORE: "BEFORE"
  • Readonly BETWEEN: "BETWEEN"
  • Readonly CONTAINS: "CONTAINS"
  • Readonly EXCLUSIVE: "EXCLUSIVE"
  • Readonly INCLUSIVE: "INCLUSIVE"
  • Readonly ON: "ON"

Const Auth

Auth: AuthClass = new AuthClass(null)

Const BACKGROUND_TASK_TIMEOUT

BACKGROUND_TASK_TIMEOUT: 25 = 25

Const BASE_USER_AGENT

BASE_USER_AGENT: "aws-amplify" = `aws-amplify`

Const BEACON_SUPPORTED

BEACON_SUPPORTED: boolean = typeof navigator !== 'undefined' &&navigator &&typeof navigator.sendBeacon === 'function'

Const BUFFER_SIZE

BUFFER_SIZE: 1000 = 1000

Const BrowserStorageCache

BrowserStorageCache: ICache = new BrowserStorageCacheClass()

Buffer

Buffer: any = require('buffer/').Buffer

Const ButtonAction

ButtonAction: object

Type declaration

  • Readonly CLOSE: "CLOSE"
  • Readonly DEEP_LINK: "DEEP_LINK"
  • Readonly LINK: "LINK"

Const CACHE_EXPIRY_IN_DAYS

CACHE_EXPIRY_IN_DAYS: 7 = 7

Const CANCELED_ERROR_CODE

CANCELED_ERROR_CODE: "ERR_CANCELED" = "ERR_CANCELED"

Const CANCELED_ERROR_MESSAGE

CANCELED_ERROR_MESSAGE: "canceled" = "canceled"

Const CLOCK_SKEW_ERROR_CODES

CLOCK_SKEW_ERROR_CODES: string[] = ['AuthFailure','InvalidSignatureException','RequestExpired','RequestInTheFuture','RequestTimeTooSkewed','SignatureDoesNotMatch','BadRequestException', // API Gateway]

Const COGNITO_IDENTITY_KEY_PREFIX

COGNITO_IDENTITY_KEY_PREFIX: "CognitoIdentityId-" = "CognitoIdentityId-"

Const COLLECTION

COLLECTION: "Collection" = "Collection"

Const CONNECTION_INIT_TIMEOUT

CONNECTION_INIT_TIMEOUT: 15000 = 15000

Time in milleseconds to wait for GQL_CONNECTION_INIT message

Const CONNECTION_STATE_CHANGE

CONNECTION_STATE_CHANGE: "ConnectionStateChange" = "ConnectionStateChange"

Const CONTENT_SHA256_HEADER

CONTENT_SHA256_HEADER: "x-amz-content-sha256" = "x-amz-content-sha256"

Const CREDENTIALS_TTL

CREDENTIALS_TTL: number = 50 * 60 * 1000

Const CREDENTIAL_QUERY_PARAM

CREDENTIAL_QUERY_PARAM: "X-Amz-Credential" = "X-Amz-Credential"

Const ChannelType

ChannelType: object

Type declaration

  • Readonly ADM: "ADM"
  • Readonly APNS: "APNS"
  • Readonly APNS_SANDBOX: "APNS_SANDBOX"
  • Readonly APNS_VOIP: "APNS_VOIP"
  • Readonly APNS_VOIP_SANDBOX: "APNS_VOIP_SANDBOX"
  • Readonly BAIDU: "BAIDU"
  • Readonly CUSTOM: "CUSTOM"
  • Readonly EMAIL: "EMAIL"
  • Readonly GCM: "GCM"
  • Readonly IN_APP: "IN_APP"
  • Readonly PUSH: "PUSH"
  • Readonly SMS: "SMS"
  • Readonly VOICE: "VOICE"

Const ChecksumAlgorithm

ChecksumAlgorithm: object

Type declaration

  • Readonly CRC32: "CRC32"
  • Readonly CRC32C: "CRC32C"
  • Readonly SHA1: "SHA1"
  • Readonly SHA256: "SHA256"

Const ChecksumMode

ChecksumMode: object

Type declaration

  • Readonly ENABLED: "ENABLED"

Const Credentials

Credentials: CredentialsClass = new CredentialsClass(null)

Const DATA

DATA: "Data" = "Data"

Const DATASTORE

DATASTORE: DATASTORE = NAMESPACES.DATASTORE

Const DB_NAME

DB_NAME: "amplify-datastore" = "amplify-datastore"

Const DB_VERSION

DB_VERSION: 3 = 3

Const DEEP_LINK_ACTION

DEEP_LINK_ACTION: "deeplink" = "deeplink"

Const DEFAULT_CACHE_PREFIX

DEFAULT_CACHE_PREFIX: "personalize" = "personalize"

Const DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT

DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT: number = 65 * 1000

Default Time in milleseconds to alert for missed GQL_CONNECTION_KEEP_ALIVE message

Const DEFAULT_KEEP_ALIVE_TIMEOUT

DEFAULT_KEEP_ALIVE_TIMEOUT: number = 5 * 60 * 1000

Default Time in milleseconds to wait for GQL_CONNECTION_KEEP_ALIVE message

Const DEFAULT_MAX_DELAY_MS

DEFAULT_MAX_DELAY_MS: number = 5 * 60 * 1000

Const DEFAULT_PART_SIZE

DEFAULT_PART_SIZE: number = 5 * MiB

Const DEFAULT_PORT

DEFAULT_PORT: RegExp = RegExp(':(' + HTTP_PORT + '|' + HTTPS_PORT + ')$')

Const DEFAULT_PRESIGN_EXPIRATION

DEFAULT_PRESIGN_EXPIRATION: 900 = 900

Const DEFAULT_PRIMARY_KEY_VALUE_SEPARATOR

DEFAULT_PRIMARY_KEY_VALUE_SEPARATOR: "#" = "#"

Used by the Async Storage Adapter to concatenate key values for a record. For instance, if a model has the following keys: customId: ID! @primaryKey(sortKeyFields: ["createdAt"]), we concatenate the customId and createdAt as: 12-234-5#2022-09-28T00:00:00.000Z

Const DEFAULT_PROVIDER

DEFAULT_PROVIDER: "AWSS3" = "AWSS3"

Const DEFAULT_QUEUE_SIZE

DEFAULT_QUEUE_SIZE: 4 = 4

Const DEFAULT_RETRY_ATTEMPTS

DEFAULT_RETRY_ATTEMPTS: 3 = 3

Const DEFAULT_STORAGE_LEVEL

DEFAULT_STORAGE_LEVEL: "public" = "public"

Const DELIMITER

DELIMITER: "." = "."

Const DELIVERY_TYPE

DELIVERY_TYPE: "IN_APP_MESSAGE" = "IN_APP_MESSAGE"

Const DISCARD

DISCARD: unique symbol = Symbol('DISCARD')

Const DOMAIN_PATTERN

DOMAIN_PATTERN: RegExp = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/

Const DOTS_PATTERN

DOTS_PATTERN: RegExp = /\.\./

Const DimensionType

DimensionType: object

Type declaration

  • Readonly EXCLUSIVE: "EXCLUSIVE"
  • Readonly INCLUSIVE: "INCLUSIVE"

Const EMPTY_HASH

EMPTY_HASH: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

Const EXPIRED_TOKEN_CODE

EXPIRED_TOKEN_CODE: "ExpiredTokenException" = "ExpiredTokenException"

Const EXPIRES_QUERY_PARAM

EXPIRES_QUERY_PARAM: "X-Amz-Expires" = "X-Amz-Expires"

Const EncodingType

EncodingType: object

Type declaration

  • Readonly url: "url"

Const ExpoSQLiteAdapter

ExpoSQLiteAdapter: CommonSQLiteAdapter = new CommonSQLiteAdapter(new ExpoSQLiteDatabase())

Const FIVE_MINUTES_IN_MS

FIVE_MINUTES_IN_MS: number = 1000 * 60 * 5

Date & time utility functions to abstract the aws-sdk away from users. (v2 => v3 modularization is a breaking change)

see

https://github.com/aws/aws-sdk-js/blob/6edf586dcc1de7fe8fbfbbd9a0d2b1847921e6e1/lib/util.js#L262

Const FLUSH_INTERVAL

FLUSH_INTERVAL: number = 5 * 1000

Const FLUSH_SIZE

FLUSH_SIZE: 5 = 5

Const FLUSH_SIZE_THRESHHOLD

FLUSH_SIZE_THRESHHOLD: 10 = 10

Const FORBIDDEN_CODE

FORBIDDEN_CODE: 403 = 403

Const FORBIDDEN_HEADERS

FORBIDDEN_HEADERS: string[] = ['host']

Const FilterType

FilterType: object

Type declaration

  • Readonly ENDPOINT: "ENDPOINT"
  • Readonly SYSTEM: "SYSTEM"

Const Geo

Geo: GeoClass = new GeoClass()

Const GiB

GiB: number = 1024 * MiB

Const GraphQLAPI

GraphQLAPI: GraphQLAPIClass = new GraphQLAPIClass(null)

Const HOST_HEADER

HOST_HEADER: "host" = "host"

Const HTTPS_PORT

HTTPS_PORT: "443" = "443"

Const HTTP_PORT

HTTP_PORT: "80" = "80"

Const Hub

Hub: HubClass = new HubClass('__default__')

Const ID

ID: "id" = "id"

Const IDENTIFIER_KEY_SEPARATOR

IDENTIFIER_KEY_SEPARATOR: "-" = "-"

Used for generating spinal-cased index name from an array of key field names. E.g. for keys [id, title] => 'id-title'

Const IDENTIFY_EVENT

IDENTIFY_EVENT: "Identify" = "Identify"

Const INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER

INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER: symbol | "@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER" = hasSymbol? Symbol.for('INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER'): '@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER'

Const INVALID_CRED

INVALID_CRED: ICredentials = { accessKeyId: '', secretAccessKey: '' } as ICredentials

Const INVALID_PARAMETER_ERROR_MSG

INVALID_PARAMETER_ERROR_MSG: "Invalid parameter for ComplteMultipartUpload API" = "Invalid parameter for ComplteMultipartUpload API"

Const IOT_SERVICE_NAME

IOT_SERVICE_NAME: "iotdevicegateway" = "iotdevicegateway"

Const IP_ADDRESS_PATTERN

IP_ADDRESS_PATTERN: RegExp = /(\d+\.){3}\d+/

Const InMemoryCache

InMemoryCache: ICache = new InMemoryCacheClass()

Const Interactions

Interactions: InteractionsClass = new InteractionsClass()

Const InternalAPI

InternalAPI: InternalAPIClass = new InternalAPIClass(null)

Const InternalGeo

InternalGeo: InternalGeoClass = new InternalGeoClass()

Const InternalGraphQLAPI

InternalGraphQLAPI: InternalGraphQLAPIClass = new InternalGraphQLAPIClass(null)

Const InternalInAppMessaging

InternalInAppMessaging: InternalInAppMessagingClass = new InternalInAppMessagingClass()

Const InternalPubSub

InternalPubSub: InternalPubSubClass = new InternalPubSubClass()

Const InternalStorage

InternalStorage: InternalStorageClass = new InternalStorageClass()

Const KEY_TYPE_IDENTIFIER

KEY_TYPE_IDENTIFIER: "aws4_request" = "aws4_request"

Const LANGUAGES_CODE_IN_8KHZ

LANGUAGES_CODE_IN_8KHZ: string[] = ['fr-FR', 'en-AU', 'en-GB', 'fr-CA']

Const Layout

Layout: object

Type declaration

  • Readonly BOTTOM_BANNER: "BOTTOM_BANNER"
  • Readonly CAROUSEL: "CAROUSEL"
  • Readonly MIDDLE_BANNER: "MIDDLE_BANNER"
  • Readonly MOBILE_FEED: "MOBILE_FEED"
  • Readonly OVERLAYS: "OVERLAYS"
  • Readonly TOP_BANNER: "TOP_BANNER"

Const Linking

Linking: object

Type declaration

Const MAX_ATTEMPTS

MAX_ATTEMPTS: 10 = 10

Const MAX_AUTOSIGNIN_POLLING_MS

MAX_AUTOSIGNIN_POLLING_MS: number = 3 * 60 * 1000

Const MAX_DELAY_MS

MAX_DELAY_MS: 5000 = 5000

Const MAX_DEVICES

MAX_DEVICES: 60 = 60

Const MAX_OBJECT_SIZE

MAX_OBJECT_SIZE: number = 5 * TiB

Const MAX_PARTS_COUNT

MAX_PARTS_COUNT: 10000 = 10000

Const MAX_RETRY_DELAY_MS

MAX_RETRY_DELAY_MS: number = 5 * 60 * 1000

Const MEMORY_KEY_PREFIX

MEMORY_KEY_PREFIX: "@MemoryStorage:" = "@MemoryStorage:"

Const MESSAGE_DAILY_COUNT_KEY

MESSAGE_DAILY_COUNT_KEY: "pinpointProvider_inAppMessages_dailyCount" = "pinpointProvider_inAppMessages_dailyCount"

Const MESSAGE_TOTAL_COUNT_KEY

MESSAGE_TOTAL_COUNT_KEY: "pinpointProvider_inAppMessages_totalCount" = "pinpointProvider_inAppMessages_totalCount"

Const MIME_MAP

MIME_MAP: object[] = [{ type: 'text/plain', ext: 'txt' },{ type: 'text/html', ext: 'html' },{ type: 'text/javascript', ext: 'js' },{ type: 'text/css', ext: 'css' },{ type: 'text/csv', ext: 'csv' },{ type: 'text/yaml', ext: 'yml' },{ type: 'text/yaml', ext: 'yaml' },{ type: 'text/calendar', ext: 'ics' },{ type: 'text/calendar', ext: 'ical' },{ type: 'image/apng', ext: 'apng' },{ type: 'image/bmp', ext: 'bmp' },{ type: 'image/gif', ext: 'gif' },{ type: 'image/x-icon', ext: 'ico' },{ type: 'image/x-icon', ext: 'cur' },{ type: 'image/jpeg', ext: 'jpg' },{ type: 'image/jpeg', ext: 'jpeg' },{ type: 'image/jpeg', ext: 'jfif' },{ type: 'image/jpeg', ext: 'pjp' },{ type: 'image/jpeg', ext: 'pjpeg' },{ type: 'image/png', ext: 'png' },{ type: 'image/svg+xml', ext: 'svg' },{ type: 'image/tiff', ext: 'tif' },{ type: 'image/tiff', ext: 'tiff' },{ type: 'image/webp', ext: 'webp' },{ type: 'application/json', ext: 'json' },{ type: 'application/xml', ext: 'xml' },{ type: 'application/x-sh', ext: 'sh' },{ type: 'application/zip', ext: 'zip' },{ type: 'application/x-rar-compressed', ext: 'rar' },{ type: 'application/x-tar', ext: 'tar' },{ type: 'application/x-bzip', ext: 'bz' },{ type: 'application/x-bzip2', ext: 'bz2' },{ type: 'application/pdf', ext: 'pdf' },{ type: 'application/java-archive', ext: 'jar' },{ type: 'application/msword', ext: 'doc' },{ type: 'application/vnd.ms-excel', ext: 'xls' },{ type: 'application/vnd.ms-excel', ext: 'xlsx' },{ type: 'message/rfc822', ext: 'eml' },]

Const MOBILE_SERVICE_NAME

MOBILE_SERVICE_NAME: "mobiletargeting" = "mobiletargeting"

Const MULTI_OR_CONDITION_SCAN_BREAKPOINT

MULTI_OR_CONDITION_SCAN_BREAKPOINT: 7 = 7

The point after which queries composed of multiple simple OR conditions should scan-and-filter instead of individual queries for each condition.

At some point, this should be configurable and/or dynamic based on table size and possibly even on observed average seek latency. For now, it's based on an manual "binary search" for the breakpoint as measured in the unit test suite. This isn't necessarily optimal. But, it's at least derived empirically, rather than theoretically and without any verification!

REMEMBER! If you run more realistic benchmarks and update this value, update this comment so the validity and accuracy of future query tuning exercises can be compared to the methods used to derive the current value. E.g.,

  1. In browser benchmark > unit test benchmark
  2. Multi-browser benchmark > single browser benchmark
  3. Benchmarks of various table sizes > static table size benchmark

etc...

Const MapEntries

MapEntries: MapEntry[] = [['User does not exist', /user.*not.*exist/i],['User already exists', /user.*already.*exist/i],['Incorrect username or password', /incorrect.*username.*password/i],['Invalid password format', /validation.*password/i],['Invalid phone number format',/invalid.*phone/i,'Invalid phone number format. Please use a phone number format of +12345678900',],]

Const MetadataDirective

MetadataDirective: object

Type declaration

  • Readonly COPY: "COPY"
  • Readonly REPLACE: "REPLACE"

Const MiB

MiB: number = 1024 * 1024

Const NETWORK_ERROR_CODE

NETWORK_ERROR_CODE: "ECONNABORTED" = "ECONNABORTED"

Const NETWORK_ERROR_MESSAGE

NETWORK_ERROR_MESSAGE: "Network Error" = "Network Error"

Const NON_RETRYABLE_CODES

NON_RETRYABLE_CODES: number[] = [400, 401, 403]

Const NO_CREDS_ERROR_STRING

NO_CREDS_ERROR_STRING: "No credentials" = "No credentials"

Const Notifications

Notifications: NotificationsClass = new NotificationsClass()

Const OAUTH_FLOW_MS_TIMEOUT

OAUTH_FLOW_MS_TIMEOUT: number = 10 * 1000

Const ONE_YEAR_IN_MS

ONE_YEAR_IN_MS: number = 365 * 24 * 60 * 60 * 1000

Const OS

OS: "android" | "ios" | "windows" | "macos" | "web" | "unix" | "linux" | "unknown" = getOS()

Const ObjectCannedACL

ObjectCannedACL: object

Type declaration

  • Readonly authenticated_read: "authenticated-read"
  • Readonly aws_exec_read: "aws-exec-read"
  • Readonly bucket_owner_full_control: "bucket-owner-full-control"
  • Readonly bucket_owner_read: "bucket-owner-read"
  • Readonly private: "private"
  • Readonly public_read: "public-read"
  • Readonly public_read_write: "public-read-write"

Const ObjectLockLegalHoldStatus

ObjectLockLegalHoldStatus: object

Type declaration

  • Readonly OFF: "OFF"
  • Readonly ON: "ON"

Const ObjectLockMode

ObjectLockMode: object

Type declaration

  • Readonly COMPLIANCE: "COMPLIANCE"
  • Readonly GOVERNANCE: "GOVERNANCE"

Const ObjectStorageClass

ObjectStorageClass: object

Type declaration

  • Readonly DEEP_ARCHIVE: "DEEP_ARCHIVE"
  • Readonly GLACIER: "GLACIER"
  • Readonly GLACIER_IR: "GLACIER_IR"
  • Readonly INTELLIGENT_TIERING: "INTELLIGENT_TIERING"
  • Readonly ONEZONE_IA: "ONEZONE_IA"
  • Readonly OUTPOSTS: "OUTPOSTS"
  • Readonly REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY"
  • Readonly SNOW: "SNOW"
  • Readonly STANDARD: "STANDARD"
  • Readonly STANDARD_IA: "STANDARD_IA"

Const PERSONALIZE_CACHE

PERSONALIZE_CACHE: "_awsct" = "_awsct"

Const PERSONALIZE_CACHE_SESSIONID

PERSONALIZE_CACHE_SESSIONID: "_awsct_sid" = "_awsct_sid"

Const PERSONALIZE_CACHE_USERID

PERSONALIZE_CACHE_USERID: "_awsct_uid" = "_awsct_uid"

Const PREV_URL_KEY

PREV_URL_KEY: "aws-amplify-analytics-prevUrl" = "aws-amplify-analytics-prevUrl"

Const PRIME_FRAMEWORK_DELAY

PRIME_FRAMEWORK_DELAY: 1000 = 1000

Const PredicateAll

PredicateAll: unique symbol = Symbol('A predicate that matches all records')

Const Predictions

Predictions: PredictionsClass = new PredictionsClass({})

Const PubSub

PubSub: PubSubClass = new PubSubClass()

Const RECONNECTING_IN

RECONNECTING_IN: 5000 = 5000

Const RECONNECT_DELAY

RECONNECT_DELAY: number = 5 * 1000

Default delay time in milleseconds between when reconnect is triggered vs when it is attempted

Const RECONNECT_INTERVAL

RECONNECT_INTERVAL: number = 60 * 1000

Default interval time in milleseconds between when reconnect is re-attempted

Const REGION_SET_PARAM

REGION_SET_PARAM: "X-Amz-Region-Set" = "X-Amz-Region-Set"

Const REMOTE_NOTIFICATION_OPENED

REMOTE_NOTIFICATION_OPENED: "remoteNotificationOpened" = "remoteNotificationOpened"

Const REMOTE_NOTIFICATION_RECEIVED

REMOTE_NOTIFICATION_RECEIVED: "remoteNotificationReceived" = "remoteNotificationReceived"

Const REMOTE_TOKEN_RECEIVED

REMOTE_TOKEN_RECEIVED: "remoteTokenReceived" = "remoteTokenReceived"

Const RESEND_LIMIT

RESEND_LIMIT: 5 = 5

Const RETRYABLE_CODES

RETRYABLE_CODES: number[] = [429, 500]

Const RETRY_ERROR_CODES

RETRY_ERROR_CODES: string[] = ['ResourceNotFoundException','InvalidSequenceTokenException',]

RNFS

RNFS: any

Const RNPushNotification

RNPushNotification: any = NativeModules.RNPushNotification

Const RTN_MODULE

RTN_MODULE: "@aws-amplify/rtn-push-notification" = "@aws-amplify/rtn-push-notification"

Const ReplicationStatus

ReplicationStatus: object

Type declaration

  • Readonly COMPLETE: "COMPLETE"
  • Readonly FAILED: "FAILED"
  • Readonly PENDING: "PENDING"
  • Readonly REPLICA: "REPLICA"

Const RequestCharged

RequestCharged: object

Type declaration

  • Readonly requester: "requester"

Const RequestPayer

RequestPayer: object

Type declaration

  • Readonly requester: "requester"

Const RestAPI

RestAPI: RestAPIClass = new RestAPIClass(null)

Const SELF

SELF: "_self" = "_self"

Const SEND_DOWNLOAD_PROGRESS_EVENT

SEND_DOWNLOAD_PROGRESS_EVENT: "sendDownloadProgress" = "sendDownloadProgress"

Const SEND_UPLOAD_PROGRESS_EVENT

SEND_UPLOAD_PROGRESS_EVENT: "sendUploadProgress" = "sendUploadProgress"

Const SERVICE_NAME

SERVICE_NAME: "s3" = "s3"

The service name used to sign requests if the API requires authentication. The service name used to sign requests if the API requires authentication. The service name used to sign requests if the API requires authentication.

Const SESSION_START

SESSION_START: "_session.start" = "_session.start"

Const SESSION_STOP

SESSION_STOP: "_session.stop" = "_session.stop"

Const SETTING_SCHEMA_VERSION

SETTING_SCHEMA_VERSION: "schemaVersion" = "schemaVersion"

Const SHA256_ALGORITHM_IDENTIFIER

SHA256_ALGORITHM_IDENTIFIER: "AWS4-HMAC-SHA256" = "AWS4-HMAC-SHA256"

Const SIGNATURE_IDENTIFIER

SIGNATURE_IDENTIFIER: "AWS4" = "AWS4"

Const SIGNATURE_QUERY_PARAM

SIGNATURE_QUERY_PARAM: "X-Amz-Signature" = "X-Amz-Signature"

Const SIGNED_HEADERS_QUERY_PARAM

SIGNED_HEADERS_QUERY_PARAM: "X-Amz-SignedHeaders" = "X-Amz-SignedHeaders"

Const SKEW_WINDOW

SKEW_WINDOW: number = 5 * 60 * 1000

Const SQLiteAdapter

SQLiteAdapter: CommonSQLiteAdapter = new CommonSQLiteAdapter(new SQLiteDatabase())

Const SSR_RESET_TIMEOUT

SSR_RESET_TIMEOUT: 10 = 10

Const START_ACK_TIMEOUT

START_ACK_TIMEOUT: 15000 = 15000

Time in milleseconds to wait for GQL_START_ACK message

Const STORAGE

STORAGE: STORAGE = NAMESPACES.STORAGE

Const STORAGE_KEY_SUFFIX

STORAGE_KEY_SUFFIX: "_inAppMessages" = "_inAppMessages"

Const SYNC

SYNC: SYNC = NAMESPACES.SYNC

Const ServerSideEncryption

ServerSideEncryption: object

Type declaration

  • Readonly AES256: "AES256"
  • Readonly aws_kms: "aws:kms"

Sound

Sound: any

Const StorageInstance

StorageInstance: Storage = getInstance()

Const THROTTLING_ERROR_CODES

THROTTLING_ERROR_CODES: string[] = ['BandwidthLimitExceeded','EC2ThrottledException','LimitExceededException','PriorRequestNotComplete','ProvisionedThroughputExceededException','RequestLimitExceeded','RequestThrottled','RequestThrottledException','SlowDown','ThrottledException','Throttling','ThrottlingException','TooManyRequestsException',]

Const TIMEOUT_ERROR_CODES

TIMEOUT_ERROR_CODES: string[] = ['TimeoutError','RequestTimeout','RequestTimeoutException',]

Const TIMER_INTERVAL

TIMER_INTERVAL: number = 30 * 1000

Const TOKEN_HEADER

TOKEN_HEADER: string = TOKEN_QUERY_PARAM.toLowerCase()

Const TOKEN_QUERY_PARAM

TOKEN_QUERY_PARAM: "X-Amz-Security-Token" = "X-Amz-Security-Token"

Const TaggingDirective

TaggingDirective: object

Type declaration

  • Readonly COPY: "COPY"
  • Readonly REPLACE: "REPLACE"

Const TiB

TiB: number = 1024 * GiB

Const UNSIGNED_PAYLOAD

UNSIGNED_PAYLOAD: "UNSIGNED-PAYLOAD" = "UNSIGNED-PAYLOAD"

Const UPDATE_ENDPOINT

UPDATE_ENDPOINT: "_update_endpoint" = "_update_endpoint"

Const UPLOADS_STORAGE_KEY

UPLOADS_STORAGE_KEY: "__uploadInProgress" = "__uploadInProgress"

Const URL_ACTION

URL_ACTION: "url" = "url"

Const USER

USER: USER = NAMESPACES.USER

Const USER_ADMIN_SCOPE

USER_ADMIN_SCOPE: "aws.cognito.signin.user.admin" = "aws.cognito.signin.user.admin"

Const USER_AGENT_HEADER

USER_AGENT_HEADER: "x-amz-user-agent" = "x-amz-user-agent"

Voice

Voice: any

Const WEB_RESET_TIMEOUT

WEB_RESET_TIMEOUT: 10 = 10

Const __identifierBrand__

__identifierBrand__: keyof symbol

Each identifier type is represented using nominal types, see: https://basarat.gitbook.io/typescript/main-1/nominaltyping

Const __modelMeta__

__modelMeta__: keyof symbol

Let _config

_config: any = null

Let _i18n

_i18n: any = null

Let _instance

_instance: Storage = null

Configure & register Storage singleton instance.

Const a

a: HTMLAnchorElement = browserOrNode().isBrowser ? document.createElement('a') : null

Const abortMultipartUpload

abortMultipartUpload: function = composeServiceApi(s3TransferHandler,abortMultipartUploadSerializer,abortMultipartUploadDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Let analyticsConfigured

analyticsConfigured: boolean = false

Const anyGlobal

anyGlobal: any = global as any

Const attachedModelInstances

attachedModelInstances: WeakMap<object, ModelAttachment> = new WeakMap<PersistentModel, ModelAttachment>()

Tells us which data source a model is attached to (lazy loads from).

If Deatched, the model's lazy properties will only ever return properties from memory provided at construction time.

Let authConfigured

authConfigured: boolean = false

Const authenticatedHandler

authenticatedHandler: (Anonymous function) = composeTransferHandler<[UserAgentOptions, RetryOptions<HttpResponse>, SigningOptions],HttpRequest,HttpResponse>(fetchTransferHandler, [userAgentMiddleware,retryMiddleware,signingMiddleware,])

Const buttonColor

buttonColor: "#ff9900" = "#ff9900"

Const cache

cache: object

Type declaration

Const cognitoIdentityTransferHandler

cognitoIdentityTransferHandler: (Anonymous function) = composeTransferHandler<[Parameters<typeof disableCacheMiddleware>[0]],HttpRequest,HttpResponse,typeof unauthenticatedHandler>(unauthenticatedHandler, [disableCacheMiddleware])

A Cognito Identity-specific transfer handler that does NOT sign requests, and disables caching.

internal

Const comparisonKeys

comparisonKeys: Set<string> = new Set(['eq','ne','gt','lt','ge','le','contains','notContains','beginsWith','between',])

The valid comparison operators that can be used as keys in a predicate comparison object.

Const completeMultipartUpload

completeMultipartUpload: function = composeServiceApi(s3TransferHandler,completeMultipartUploadSerializer,completeMultipartUploadDeserializer,{...defaultConfig,responseType: 'text',retryDecider: retryWhenErrorWith200StatusCode,})

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Const copyObject

copyObject: function = composeServiceApi(s3TransferHandler,copyObjectSerializer,copyObjectDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Const createMultipartUpload

createMultipartUpload: function = composeServiceApi(s3TransferHandler,createMultipartUploadSerializer,createMultipartUploadDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Let credentialsConfigured

credentialsConfigured: boolean = false

Const customDomainPath

customDomainPath: "/realtime" = "/realtime"

Let dataMemory

dataMemory: object

Type declaration

Let dataStoreClasses

dataStoreClasses: TypeConstructorMap

Const deepSquidInk

deepSquidInk: "#152939" = "#152939"

Const defaultModules

defaultModules: (AuthClass | APIClass | DataStore)[] = [API, Auth, DataStore]

Const deleteObject

deleteObject: function = composeServiceApi(s3TransferHandler,deleteObjectSerializer,deleteObjectDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Const detectionMap

detectionMap: PlatformDetectionEntry[] = [// First, detect mobile{ platform: Framework.Expo, detectionMethod: expoDetect },{ platform: Framework.ReactNative, detectionMethod: reactNativeDetect },// Next, detect web frameworks{ platform: Framework.NextJs, detectionMethod: nextWebDetect },{ platform: Framework.Nuxt, detectionMethod: nuxtWebDetect },{ platform: Framework.Angular, detectionMethod: angularWebDetect },{ platform: Framework.React, detectionMethod: reactWebDetect },{ platform: Framework.VueJs, detectionMethod: vueWebDetect },{ platform: Framework.Svelte, detectionMethod: svelteWebDetect },{ platform: Framework.WebUnknown, detectionMethod: webDetect },// Last, detect ssr frameworks{ platform: Framework.NextJsSSR, detectionMethod: nextSSRDetect },{ platform: Framework.NuxtSSR, detectionMethod: nuxtSSRDetect },{ platform: Framework.ReactSSR, detectionMethod: reactSSRDetect },{ platform: Framework.VueJsSSR, detectionMethod: vueSSRDetect },{ platform: Framework.AngularSSR, detectionMethod: angularSSRDetect },{ platform: Framework.SvelteSSR, detectionMethod: svelteSSRDetect },]

Const disabledButtonColor

disabledButtonColor: "#ff990080" = "#ff990080"

Let endpointUpdated

endpointUpdated: boolean = false

Let eventAttributesMemo

eventAttributesMemo: object

Type declaration

Const eventBuilder

eventBuilder: EventStreamMarshaller = new EventStreamMarshaller(toUtf8, fromUtf8)

Const eventListeners

eventListeners: Record<string, Set<EventListener<Function>>>

Let eventMetricsMemo

eventMetricsMemo: object

Type declaration

Let eventNameMemo

eventNameMemo: object

Type declaration

Let frameworkCache

frameworkCache: Framework | undefined

Const frameworkChangeObservers

frameworkChangeObservers: function[] = []

Const getCredentialsForIdentity

getCredentialsForIdentity: (Anonymous function) = composeServiceApi(cognitoIdentityTransferHandler,getCredentialsForIdentitySerializer,getCredentialsForIdentityDeserializer,defaultConfig)
internal

Const getGroupId

getGroupId: (Anonymous function) = (() => {let seed = 1;return () => `group_${seed++}`;})()

Small utility function to generate a monotonically increasing ID. Used by GroupCondition to help keep track of which group is doing what, when, and where during troubleshooting.

Const getId

getId: (Anonymous function) = composeServiceApi(cognitoIdentityTransferHandler,getIdSerializer,getIdDeserializer,defaultConfig)
internal

Const getInAppMessages

getInAppMessages: (Anonymous function) = composeServiceApi(authenticatedHandler,getInAppMessagesSerializer,getInAppMessagesDeserializer,defaultConfig)
internal

Const getObject

getObject: function = composeServiceApi(s3TransferHandler,getObjectSerializer,getObjectDeserializer,{ ...defaultConfig, responseType: 'blob' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Const groupKeys

groupKeys: Set<string> = new Set(['and', 'or', 'not'])

The valid logical grouping keys for a predicate group.

Let handler

handler: any

Const hasSymbol

hasSymbol: boolean = typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'

This Symbol is used to reference an internal-only PubSub provider that is used for AppSync/GraphQL subscriptions in the API category.

Const headObject

headObject: function = composeServiceApi(s3TransferHandler,headObjectSerializer,headObjectDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Let hidden

hidden: string

Const initPatches

initPatches: WeakMap<object, Patch[]> = new WeakMap<PersistentModel, Patch[]>()

Records the patches (as if against an empty object) used to initialize an instance of a Model. This can be used for determining which fields to send to the cloud durnig a CREATE mutation.

Let initialEventSent

initialEventSent: boolean = false

Const instance

instance: DataStore = new DataStore()

Const instancesMetadata

instancesMetadata: WeakSet<object & object> = new WeakSet<ModelInit<any, any>>()

Collection of instantiated models to allow storage of metadata apart from the model visible to the consuming app -- in case the app doesn't have metadata fields (_version, _deleted, etc.) exposed on the model itself.

isBrowser

isBrowser: boolean

isNode

isNode: boolean

Const linkUnderlayColor

linkUnderlayColor: "#FFF" = "#FFF"

Const listObjectsV2

listObjectsV2: function = composeServiceApi(s3TransferHandler,listObjectsV2Serializer,listObjectsV2Deserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Const listParts

listParts: function = composeServiceApi(s3TransferHandler,listPartsSerializer,listPartsDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Const lists

lists: MethodEmbed[] = []

Const localTestingStorageEndpoint

localTestingStorageEndpoint: "http://localhost:20005" = "http://localhost:20005"

Const logger

logger: ConsoleLogger = new Logger('StorageClass')

Const loggerStorageInstance

loggerStorageInstance: ConsoleLogger = new Logger('Storage')

Const metadataFields

metadataFields: ("_version" | "_lastChangedAt" | "_deleted")[] = <(keyof ModelInstanceMetadata)[]>(Object.keys(dummyMetadata))

Const modelInstanceAssociationsMap

modelInstanceAssociationsMap: WeakMap<object, object> = new WeakMap<PersistentModel, object>()

Maps a model to its related models for memoization/immutability.

Const modelNamespaceMap

modelNamespaceMap: WeakMap<object, string> = new WeakMap<PersistentModelConstructor<any>,string>()

Const modelPatchesMap

modelPatchesMap: WeakMap<object, [Patch[], object]> = new WeakMap<PersistentModel,[Patch[], PersistentModel]>()

Stores data for crafting the correct update mutation input for a model.

  • Patch[] - array of changed fields and metadata.
  • PersistentModel - the source model, used for diffing object-type fields.

Const monotonicFactoriesMap

monotonicFactoriesMap: Map<string, ULID> = new Map<string, ULID>()

Const nativeMatches

nativeMatches: any = proto? proto.matches ||// @ts-ignoreproto.matchesSelector ||// @ts-ignoreproto.webkitMatchesSelector ||// @ts-ignoreproto.mozMatchesSelector ||// @ts-ignoreproto.msMatchesSelector ||// @ts-ignoreproto.oMatchesSelector: null

Const nonModelClasses

nonModelClasses: WeakSet<object> = new WeakSet<NonModelTypeConstructor<any>>()

Const obj

obj: object

Type declaration

  • Optional oauth_state?: string
  • Optional ouath_pkce_key?: string

Const ops

ops: ("beginsWith" | "contains" | "notContains" | "between" | "eq" | "ne" | "le" | "lt" | "ge" | "gt")[] = [...comparisonKeys] as AllFieldOperators[]

Const originalJitteredBackoff

originalJitteredBackoff: function = jitteredBackoff(MAX_RETRY_DELAY_MS)

Type declaration

    • (attempt: number, args?: any[], error?: Error): number | false
    • Parameters

      • attempt: number
      • Optional args: any[]
      • Optional error: Error

      Returns number | false

Const ownSymbol

ownSymbol: unique symbol = Symbol('sync')

Const placeholderColor

placeholderColor: "#C7C7CD" = "#C7C7CD"

Const predicateInternalsMap

predicateInternalsMap: Map<PredicateInternalsKey, GroupCondition> = new Map<PredicateInternalsKey, GroupCondition>()

A map from keys (exposed to customers) to the internal predicate data structures invoking code should not muck with.

Const predicatesAllSet

predicatesAllSet: WeakSet<function> = new WeakSet<ProducerModelPredicate<any>>()

Let privateModeCheckResult

privateModeCheckResult: any

Const proto

proto: Element = browserOrNode().isBrowser && window['Element']? window['Element'].prototype: null

Const putEvents

putEvents: (Anonymous function) = composeServiceApi(authenticatedHandler,putEventsSerializer,putEventsDeserializer,defaultConfig)
internal

Const putObject

putObject: function = composeServiceApi(s3TransferHandler,putObjectSerializer,putObjectDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Const queryType

queryType: keyof symbol

Const requiredModules

requiredModules: (CredentialsClass | AuthClass)[] = [// API cannot function without AuthAuth,// Auth cannot function without CredentialsCredentials,]

Let resetTriggered

resetTriggered: boolean = false

Const s3TransferHandler

s3TransferHandler: typeof s3BrowserTransferhandler = composeTransferHandler<[{}], HttpRequest, HttpResponse>(authenticatedHandler,[contentSha256Middleware])

S3 transfer handler for browser and React Native based on XHR. On top of basic transfer handler, it also supports x-amz-content-sha256 header, and request&response process tracking. S3 transfer handler for node based on Node-fetch. On top of basic transfer handler, it also supports x-amz-content-sha256 header. However, it does not support request&response process tracking like browser.

internal
internal

Let safariCompatabilityModeResult

safariCompatabilityModeResult: any

Let schema

Const signUpWithEmailFields

signUpWithEmailFields: ISignUpField[] = [{label: 'Email',key: 'email',required: true,placeholder: 'Email',type: 'email',displayOrder: 1,testID: TEST_ID.AUTH.EMAIL_INPUT,},{label: 'Password',key: 'password',required: true,placeholder: 'Password',type: 'password',displayOrder: 2,testID: TEST_ID.AUTH.PASSWORD_INPUT,},{label: 'Phone Number',key: 'phone_number',placeholder: 'Phone Number',required: true,displayOrder: 3,testID: TEST_ID.AUTH.PHONE_INPUT,},]

Const signUpWithPhoneNumberFields

signUpWithPhoneNumberFields: ISignUpField[] = [{label: 'Phone Number',key: 'phone_number',placeholder: 'Phone Number',required: true,displayOrder: 1,testID: TEST_ID.AUTH.PHONE_INPUT,},{label: 'Password',key: 'password',required: true,placeholder: 'Password',type: 'password',displayOrder: 2,testID: TEST_ID.AUTH.PASSWORD_INPUT,},{label: 'Email',key: 'email',required: true,placeholder: 'Email',type: 'email',displayOrder: 3,testID: TEST_ID.AUTH.EMAIL_INPUT,},]

Const standardDomainPattern

standardDomainPattern: RegExp = /^https:\/\/\w{26}\.appsync\-api\.\w{2}(?:(?:\-\w{2,})+)\-\d\.amazonaws.com(?:\.cn)?\/graphql$/i

Let storageClasses

storageClasses: TypeConstructorMap

Let store

store: object

provide an object as the in-memory cache

Type declaration

Let syncClasses

syncClasses: TypeConstructorMap

Let syncSubscription

syncSubscription: Subscription

Const textInputBorderColor

textInputBorderColor: "#C4C4C4" = "#C4C4C4"

Const textInputColor

textInputColor: "#000000" = "#000000"

Let timer

timer: any = null

Const topicSymbol

topicSymbol: symbol | "@@topic" = typeof Symbol !== 'undefined' ? Symbol('topic') : '@@topic'

Const topologicallySortedModels

topologicallySortedModels: WeakMap<object & object, string[]> = new WeakMap<SchemaNamespace, string[]>()

Const ulid

ulid: ULID = monotonicUlidFactory(Date.now())

Const unauthenticatedHandler

unauthenticatedHandler: (Anonymous function) = composeTransferHandler<[UserAgentOptions, RetryOptions<HttpResponse>],HttpRequest,HttpResponse>(fetchTransferHandler, [userAgentMiddleware, retryMiddleware])

Const updateEndpoint

updateEndpoint: (Anonymous function) = composeServiceApi(authenticatedHandler,updateEndpointSerializer,updateEndpointDeserializer,defaultConfig)
internal

Const uploadPart

uploadPart: function = composeServiceApi(s3TransferHandler,uploadPartSerializer,uploadPartDeserializer,{ ...defaultConfig, responseType: 'text' })

Type declaration

    • (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input): Promise<Output>
    • Parameters

      • config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>
      • input: Input

      Returns Promise<Output>

Let userClasses

userClasses: TypeConstructorMap

Const version

version: "5.3.5" = "5.3.5"

Let visibilityChange

visibilityChange: string

Const waitForInit

waitForInit: Promise<void> = new Promise<void>((res, rej) => {if (!browserOrNode().isBrowser) {logger.debug('not in the browser, directly resolved');return res();}const fb = window['FB'];if (fb) {logger.debug('FB SDK already loaded');return res();} else {setTimeout(() => {return res();}, 2000);}})

Functions

Const AmplifyButton

ChatBotInputs

  • ChatBotInputs(props: any): Element

ChatBotMicButton

  • ChatBotMicButton(props: any): Element

ChatBotTextButton

  • ChatBotTextButton(props: any): Element

ChatBotTextInput

  • ChatBotTextInput(props: any): Element

Const Container

Const EmptyContainer

  • EmptyContainer(__namedParameters: object): Element

Const ErrorRow

Const FormField

Const Header

Const LinkCell

Const ReachabilityMonitor

  • ReachabilityMonitor(): Observable<object>
  • ReachabilityMonitor(): Observable<object>

Const SignedOutMessage

  • SignedOutMessage(props: any): Element

Const Wrapper

_getPredictionsIdentifyAmplifyUserAgent

  • _getPredictionsIdentifyAmplifyUserAgent(): [string, string][]

_isInteger

  • _isInteger(value: any): boolean

Const abortMultipartUploadDeserializer

Const abortMultipartUploadSerializer

Const addEventListener

Const addOrIncrementMetadataAttempts

  • addOrIncrementMetadataAttempts(nextHandlerOutput: Object, attempts: number): void

Const analyticsEvent

  • analyticsEvent(payload: any): void

angularSSRDetect

  • angularSSRDetect(): boolean

angularWebDetect

  • angularWebDetect(): boolean

Const assignStringVariables

  • assignStringVariables(values: Record<string, object | undefined>): Record<string, string>

asyncEvery

  • asyncEvery(items: Record<string, any>[], matches: function): Promise<boolean>
  • An aysnc implementation of Array.every(). Returns as soon as a non-match is found.

    Parameters

    • items: Record<string, any>[]

      The items to check.

    • matches: function

      The async matcher function, expected to return Promise: true for a matching item, false otherwise.

    Returns Promise<boolean>

    A Promise<boolean>, true if every item matches; false otherwise.

asyncFilter

  • asyncFilter<T>(items: T[], matches: function): Promise<T[]>
  • An async implementation of Array.filter(). Returns after all items have been filtered. TODO: Return AsyncIterable.

    Type parameters

    • T

    Parameters

    • items: T[]

      The items to filter.

    • matches: function

      The async matcher function, expected to return Promise: true for a matching item, false otherwise.

        • Parameters

          • item: T

          Returns Promise<boolean>

    Returns Promise<T[]>

    A Promise<T> of matching items.

asyncSome

  • asyncSome(items: Record<string, any>[], matches: function): Promise<boolean>
  • An aysnc implementation of Array.some(). Returns as soon as a match is found.

    Parameters

    • items: Record<string, any>[]

      The items to check.

    • matches: function

      The async matcher function, expected to return Promise: true for a matching item, false otherwise.

    Returns Promise<boolean>

    A Promise<boolean>, true if "some" items match; false otherwise.

attached

Const authEvent

  • authEvent(payload: any): Promise<any>

Const base64ToArrayBuffer

  • base64ToArrayBuffer(base64: string): Uint8Array
  • base64ToArrayBuffer(base64: string): Uint8Array

blobToArrayBuffer

  • blobToArrayBuffer(blob: Blob): Promise<Uint8Array>

browserClientInfo

  • browserClientInfo(): object | object

Const browserOrNode

  • browserOrNode(): object

browserTimezone

  • browserTimezone(): string

browserType

  • browserType(userAgent: string): object

buildGraphQLOperation

Const buildHttpRpcRequest

  • buildHttpRpcRequest(__namedParameters: object, headers: Headers, body: any): HttpRequest

Const buildSeedPredicate

  • Creates a predicate without any conditions that can be passed to customer code to have conditions added to it.

    For example, in this query:

    await DataStore.query(
        Model,
        item => item.field.eq('value')
    );

    buildSeedPredicate(Model) is used to create item, which is passed to the predicate function, which in turn uses that "seed" predicate (item) to build a predicate tree.

    Type parameters

    Parameters

    Returns object & object & PredicateInternalsKey

buildSpecialNullComparison

  • buildSpecialNullComparison(field: any, operator: any, operand: any): string
  • If the given (operator, operand) indicate the need for a special NULL comparison, that WHERE clause condition will be returned. If not special NULL handling is needed, null will be returned, and the caller should construct the WHERE clause component using the normal operator map(s) and parameterization.

    Parameters

    • field: any
    • operator: any

      "beginsWith" | "contains" | "notContains" | "between" | "eq" | "ne" | "le" | "lt" | "ge" | "gt"

    • operand: any

      any

    Returns string

    (string | null) The WHERE clause component or null if N/A.

buildSubscriptionGraphQLOperation

Const byteLength

  • byteLength(x: unknown): number

bytesToBase64

  • bytesToBase64(bytes: Uint8Array): string

Const calculateContentMd5

  • calculateContentMd5(content: Blob | string): Promise<string>
  • calculateContentMd5(content: Blob | string): Promise<string>

Const calculatePartSize

  • calculatePartSize(totalSize: number): number

Const cancellableSleep

  • cancellableSleep(timeoutMs: number, abortSignal?: AbortSignal): Promise<void>

Const castInstanceType

categorizeRekognitionBlocks

categorizeTextractBlocks

Const checkReadOnlyPropertyOnCreate

  • checkReadOnlyPropertyOnCreate<T>(draft: T, modelDefinition: SchemaModel): void

Const checkReadOnlyPropertyOnUpdate

  • checkReadOnlyPropertyOnUpdate(patches: Patch[], modelDefinition: SchemaModel): void

Const checkSchemaCodegenVersion

  • checkSchemaCodegenVersion(codegenVersion: string): void
  • Throws an exception if the schema is using a codegen version that is not supported.

    Set the supported version by setting majorVersion and minorVersion This functions similar to ^ version range. The tested codegenVersion major version must exactly match the set majorVersion The tested codegenVersion minor version must be gt or equal to the set minorVersion Example: For a min supported version of 5.4.0 set majorVersion = 5 and minorVersion = 4

    This regex will not work when setting a supported range with minor version of 2 or more digits. i.e. minorVersion = 10 will not work The regex will work for testing a codegenVersion with multi digit minor versions as long as the minimum minorVersion is single digit. i.e. codegenVersion = 5.30.1, majorVersion = 5, minorVersion = 4 PASSES

    Parameters

    • codegenVersion: string

      schema codegenVersion

    Returns void

Const checkSchemaInitialized

  • checkSchemaInitialized(): void
  • Throws an exception if the schema has not been initialized by initSchema().

    To be called before trying to access schema.

    Currently this only needs to be called in start() and clear() because all other functions will call start first.

    Returns void

checkSchemaVersion

  • checkSchemaVersion(storage: Storage, version: string): Promise<void>
  • Queries the DataStore metadata tables to see if they are the expected version. If not, clobbers the whole DB. If so, leaves them alone. Otherwise, simply writes the schema version.

    SIDE EFFECT:

    1. Creates a transaction
    2. Updates data.

    Parameters

    • storage: Storage

      Storage adapter containing the metadata.

    • version: string

      The expected schema version.

    Returns Promise<void>

Const clearAll

  • clearAll(): void
  • clearAll(): void

clearCache

  • clearCache(): void

Const clearMemo

  • clearMemo(): void

Const clientInfo

  • clientInfo(): object
  • clientInfo(): object

closest

  • closest(element: any, selector: any, shouldCheckSelf?: boolean): any
  • Gets the closest parent element that matches the passed selector.

    Parameters

    • element: any

      The element whose parents to check.

    • selector: any

      The CSS selector to match against.

    • Default value shouldCheckSelf: boolean = false

      True if the selector should test against the passed element itself.

    Returns any

    The matching element or undefined.

comparePartNumber

Const completeMultipartUploadDeserializer

Const completeMultipartUploadSerializer

Const composeServiceApi

  • composeServiceApi<TransferHandlerOptions, Input, Output, DefaultConfig>(transferHandler: TransferHandler<HttpRequest, HttpResponse, TransferHandlerOptions>, serializer: function, deserializer: function, defaultConfig: DefaultConfig): (Anonymous function)

Const composeTransferHandler

  • composeTransferHandler<MiddlewareOptionsArr, Request, Response, CoreHandler>(coreHandler: CoreHandler, middleware: OptionToMiddleware<Request, Response, MiddlewareOptionsArr>): (Anonymous function)
  • Compose a transfer handler with a core transfer handler and a list of middleware.

    internal

    Type parameters

    • MiddlewareOptionsArr: any[]

    • Request: RequestBase

    • Response: ResponseBase

    • CoreHandler: TransferHandler<Request, Response, any>

    Parameters

    • coreHandler: CoreHandler

      Core transfer handler

    • middleware: OptionToMiddleware<Request, Response, MiddlewareOptionsArr>

      List of middleware

    Returns (Anonymous function)

    A transfer handler whose option type is the union of the core transfer handler's option type and the middleware's option type.

Const configure

  • configure(config: any): void

Const connectionTimeout

  • connectionTimeout(error: any): boolean

constructKeyValue

constructTable

  • constructTable(table: Block, blockMap: object): Table

Const contentSha256Middleware

  • contentSha256Middleware(options: object): (Anonymous function)

Const convert

  • convert(stream: object): Promise<Uint8Array>
  • convert(stream: object): Promise<Uint8Array>

Const convertResponseHeaders

  • convertResponseHeaders(xhrHeaders: string): Record<string, string>

convertToPlaceholder

  • convertToPlaceholder(str: string): string

Const copyObjectDeserializer

Const copyObjectSerializer

Const coreEvent

  • coreEvent(payload: any): void

countFilterCombinations

  • example

    returns 2

    { type: "or", predicates: [
    { field: "username", operator: "beginsWith", operand: "a" },
    { field: "title", operator: "contains", operand: "abc" },
    ]}

    Parameters

    Returns number

    the total number of OR'd predicates in the filter group

createInMemoryStore

Const createModelClass

  • createModelClass<T>(modelDefinition: SchemaModel): object

Const createMultipartUploadDeserializer

Const createMultipartUploadSerializer

createMutationInstanceFromModelOperation

Const createNonModelClass

Const createTypeClasses

  • createTypeClasses(namespace: object & object): object

Const credentialsProvider

  • credentialsProvider(): Promise<object>

Const defaultAuthStrategy

  • defaultAuthStrategy(): any[]

defaultConflictHandler

defaultErrorHandler

Const defaultUrlOpener

  • defaultUrlOpener(url: any, redirectUrl: any): Promise<any>

delegate

  • delegate(ancestor: any, eventType: any, selector: any, callback: any, opts?: object): object
  • Delegates the handling of events for an element matching a selector to an ancestor of the matching element.

    Parameters

    • ancestor: any

      The ancestor element to add the listener to.

    • eventType: any

      The event type to listen to.

    • selector: any

      A CSS selector to match against child elements.

    • callback: any

      A function to run any time the event happens.

    • Default value opts: object = {}

      A configuration options object. The available options: - useCapture: If true, bind to the event capture phase. - deep: If true, delegate into shadow trees.

    Returns object

    The delegate object. It contains a destroy method.

deleteByIdStatement

deleteByPredicateStatement

Const deleteObjectDeserializer

Const deleteObjectSerializer

Const deserializeBoolean

  • deserializeBoolean(value?: string): boolean | undefined

Const deserializeChecksumAlgorithmList

  • deserializeChecksumAlgorithmList(output: any[]): string[]

Const deserializeCommonPrefix

  • deserializeCommonPrefix(output: any): object

Const deserializeCommonPrefixList

  • deserializeCommonPrefixList(output: any[]): object[]

Const deserializeCompletedPartList

Const deserializeCredentials

  • deserializeCredentials(output?: unknown): Credentials

Const deserializeMetadata

deserializeModel

Const deserializeNumber

  • deserializeNumber(value?: string): number

Const deserializeObject

  • deserializeObject(output: any): object

Const deserializeObjectList

  • deserializeObjectList(output: any[]): object[]

Const deserializeOwner

  • deserializeOwner(output: any): object

Const deserializeTimestamp

  • deserializeTimestamp(value: string): Date | undefined

detect

Const detectFramework

dimToMake

  • dimToMake(dim: any): object

dimension

  • dimension(): object

Const disableCacheMiddleware

  • disableCacheMiddleware(): (Anonymous function)

dispatch

  • dispatch(element: any, eventType: any, evtName?: string, init_dict?: object): any
  • Dispatches an event on the passed element.

    Parameters

    • element: any

      The DOM element to dispatch the event on.

    • eventType: any

      The type of event to dispatch.

    • Default value evtName: string = "Event"
    • Default value init_dict: object = {}

    Returns any

    The return value of element.dispatchEvent, which will be false if any of the event listeners called preventDefault.

Const dispatchAnalyticsEvent

  • dispatchAnalyticsEvent(event: any, data: any): void
  • dispatchAnalyticsEvent(event: string, data: any, message: string): void

Const dispatchApiEvent

  • dispatchApiEvent(event: string, data: Record<string, unknown>, message: string): void

Const dispatchAuthEvent

  • dispatchAuthEvent(event: string, data: any, message: string): void
  • dispatchAuthEvent(event: string, data: any, message: string): void

Const dispatchCredentialsEvent

  • dispatchCredentialsEvent(event: string, data: any, message: string): void

Const dispatchInAppMessagingEvent

  • dispatchInAppMessagingEvent(event: string, data: any, message?: string): void

Const dispatchPubSubEvent

  • dispatchPubSubEvent(event: string, data: Record<string, unknown>, message: string): void

Const dispatchPushNotificationEvent

  • dispatchPushNotificationEvent(event: string, data: any, message?: string): void

Const dispatchStorageEvent

  • dispatchStorageEvent(track: boolean, event: string, attrs: any, metrics: any, message: string): void

Const documentExists

  • documentExists(): boolean

dynamicAuthFields

  • dynamicAuthFields(modelDefinition: SchemaModel): Set<string>

Const emptyArrayGuard

  • emptyArrayGuard<T>(value: any, deserializer: function): T

Const endpointResolver

  • endpointResolver(__namedParameters: object): object
  • endpointResolver(__namedParameters: object): object
  • endpointResolver(options: S3EndpointResolverOptions, apiInput?: object): object
  • The endpoint resolver function that returns the endpoint URL for a given region. The endpoint resolver function that returns the endpoint URL for a given region. The endpoint resolver function that returns the endpoint URL for a given region, and input parameters.

    Parameters

    • __namedParameters: object
      • region: string

    Returns object

    • url: URL
  • The endpoint resolver function that returns the endpoint URL for a given region. The endpoint resolver function that returns the endpoint URL for a given region. The endpoint resolver function that returns the endpoint URL for a given region, and input parameters.

    Parameters

    • __namedParameters: object
      • region: string

    Returns object

    • url: URL
  • The endpoint resolver function that returns the endpoint URL for a given region. The endpoint resolver function that returns the endpoint URL for a given region. The endpoint resolver function that returns the endpoint URL for a given region, and input parameters.

    Parameters

    Returns object

    • url: URL

Const escapeUri

  • escapeUri(uri: string): string

Const establishRelationAndKeys

Const exhaustiveCheck

  • exhaustiveCheck(obj: never, throwOnError?: boolean): void

expoDetect

  • expoDetect(): boolean

Const extendedEncodeURIComponent

  • extendedEncodeURIComponent(uri: string): string

Const extractContent

  • extractContent(__namedParameters: object): InAppMessageContent[]

extractContentsFromBlock

  • extractContentsFromBlock(block: Block, blockMap: object): Content

Const extractKeyIfExists

Const extractMetadata

  • extractMetadata(__namedParameters: object): InAppMessage["metadata"]

Const extractPrimaryKeyFieldNames

  • extractPrimaryKeyFieldNames(modelDefinition: SchemaModel): string[]

Const extractPrimaryKeyValues

  • extractPrimaryKeyValues<T>(model: T, keyFields: string[]): string[]

Const extractPrimaryKeysAndValues

  • extractPrimaryKeysAndValues<T>(model: T, keyFields: string[]): any

Const extractTargetNamesFromSrc

  • Backwards-compatability for schema generated prior to custom primary key support: the single field targetName has been replaced with an array of targetNames. targetName and targetNames are exclusive (will never exist on the same schema)

    Parameters

    Returns string[] | undefined

    array of targetNames, or undefined

Const fetchTransferHandler

  • fetchTransferHandler(__namedParameters: object, __namedParameters: object): Promise<object>
  • Parameters

    • __namedParameters: object
      • body: string | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>
      • headers: object
      • method: string
      • url: URL
    • __namedParameters: object
      • abortSignal: AbortSignal

    Returns Promise<object>

Const filenameToContentType

  • filenameToContentType(filename: any, defVal?: string): string
  • Parameters

    • filename: any
    • Default value defVal: string = "application/octet-stream"

    Returns string

filterFields

generateRTFRemediation

Const generateRandomString

  • generateRandomString(): string

generateSchemaStatements

generateSelectionSet

Const getAmplifyUserAgent

Const getAmplifyUserAgentObject

  • getAmplifyUserAgentObject(__namedParameters?: object): AWSUserAgent

Const getAnalyticsEvent

  • getAnalyticsEvent(__namedParameters: object, event: AWSPinpointMessageEvent): AWSPinpointAnalyticsEvent | null

Const getAnalyticsEventAttributes

  • getAnalyticsEventAttributes(data: PushNotificationMessage["data"]): object

getAnalyticsUserAgent

  • getAnalyticsUserAgent(action: AnalyticsAction): UserAgent

getAnalyticsUserAgentString

  • getAnalyticsUserAgentString(action: AnalyticsAction): string

Const getApnsAction

Const getApnsOptions

Const getAttachment

getAttributes

  • getAttributes(element: any): object
  • Gets all attributes of an element as a plain JavaScriot object.

    Parameters

    • element: any

      The element whose attributes to get.

    Returns object

    An object whose keys are the attribute keys and whose values are the attribute values. If no attributes exist, an empty object is returned.

getAuthRules

  • getAuthRules(__namedParameters: object): GRAPHQL_AUTH_MODE[]

getAuthorizationRules

getBoundingBox

  • getBoundingBox(geometry: Geometry): BoundingBox

getByteLength

  • getByteLength(str: string): number

Const getCanonicalHeaders

  • getCanonicalHeaders(headers: HttpRequest["headers"]): string
  • Returns canonical headers.

    internal

    Parameters

    • headers: HttpRequest["headers"]

      Headers from the request.

    Returns string

    Request headers that will be signed, and their values, separated by newline characters. Header names must use lowercase characters, must appear in alphabetical order, and must be followed by a colon (:). For the values, trim any leading or trailing spaces, convert sequential spaces to a single space, and separate the values for a multi-value header using commas.

Const getCanonicalQueryString

  • getCanonicalQueryString(searchParams: URLSearchParams): string
  • Returns a canonical query string.

    internal

    Parameters

    • searchParams: URLSearchParams

      searchParams from the request url.

    Returns string

    URL-encoded query string parameters, separated by ampersands (&). Percent-encode reserved characters, including the space character. Encode names and values separately. If there are empty parameters, append the equals sign to the parameter name before encoding. After encoding, sort the parameters alphabetically by key name. If there is no query string, use an empty string ("").

Const getCanonicalRequest

  • getCanonicalRequest(__namedParameters: object, uriEscapePath?: boolean): string
  • Returns a canonical request.

    internal

    Parameters

    • __namedParameters: object
      • body: string | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>
      • headers: object
      • method: string
      • url: URL
    • Default value uriEscapePath: boolean = true

      Whether to uri encode the path as part of canonical uri. It's used for S3 only where the pathname is already uri encoded, and the signing process is not expected to uri encode it again. Defaults to true.

    Returns string

    String created by by concatenating the following strings, separated by newline characters:

    • HTTPMethod
    • CanonicalUri
    • CanonicalQueryString
    • CanonicalHeaders
    • SignedHeaders
    • HashedPayload

Const getCanonicalUri

  • getCanonicalUri(pathname: string, uriEscapePath?: boolean): string
  • Returns a canonical uri.

    internal

    Parameters

    • pathname: string

      pathname from request url.

    • Default value uriEscapePath: boolean = true

      Whether to uri encode the path as part of canonical uri. It's used for S3 only where the pathname is already uri encoded, and the signing process is not expected to uri encode it again. Defaults to true.

    Returns string

    URI-encoded version of the absolute path component URL (everything between the host and the question mark character (?) that starts the query string parameters). If the absolute path is empty, a forward slash character (/).

getClientSideAuthError

  • getClientSideAuthError(error: any): NO_API_KEY | NO_CURRENT_USER | NO_CREDENTIALS | NO_FEDERATED_JWT | NO_AUTH_TOKEN

Const getComparator

getConnectionFields

Const getCredentialScope

  • getCredentialScope(date: string, region: string, service: string): string
  • Returns the credential scope which restricts the resulting signature to the specified region and service.

    internal

    Parameters

    • date: string

      Current date in the format 'YYYYMMDD'.

    • region: string

      AWS region in which the service resides.

    • service: string

      Service to which the signed request is being sent.

    Returns string

    A string representing the credential scope with format 'YYYYMMDD/region/service/aws4_request'.

Const getCredentialsForIdentityDeserializer

  • getCredentialsForIdentityDeserializer(response: HttpResponse): Promise<GetCredentialsForIdentityOutput>

Const getCredentialsForIdentitySerializer

getCurrTime

  • getCurrTime(): number

Const getDateHeader

  • getDateHeader(__namedParameters?: object): string | undefined

Const getDefaultAdapter

Const getDnsSuffix

  • getDnsSuffix(region: string): string
  • Get the AWS Services endpoint URL's DNS suffix for a given region. A typical AWS regional service endpoint URL will follow this pattern: {endpointPrefix}.{region}.{dnsSuffix}. For example, the endpoint URL for Cognito Identity in us-east-1 will be cognito-identity.us-east-1.amazonaws.com. Here the DnsSuffix is amazonaws.com.

    internal

    Parameters

    • region: string

    Returns string

    The DNS suffix

Const getFcmAction

Const getFcmOptions

getForbiddenError

  • getForbiddenError(error: any): any

Const getFormattedDates

Const getGeoUserAgentDetails

Const getHashedData

Const getHashedDataAsHex

Const getHashedPayload

  • getHashedPayload(body: HttpRequest["body"]): string

Const getIdDeserializer

Const getIdSerializer

getIdentifierValue

getImplicitOwnerField

Const getInAppMessagesDeserializer

Const getInAppMessagesSerializer

Const getIndex

  • getIndex(rel: RelationType[], src: string): string | undefined

Const getIndexFromAssociation

  • getIndexFromAssociation(indexes: IndexesType, src: string | string[]): string | undefined

Const getIndexKeys

Const getInstance

  • getInstance(context: any, methodName: any): MethodEmbed
  • getInstance(): Storage

getMetadataFields

  • getMetadataFields(): ReadonlyArray<string>

getModelAuthModes

  • getModelAuthModes(__namedParameters: object): Promise<object>

getModelConstructorByModelName

Const getModelDefinition

getMutationErrorType

getNamespace

getNonModelFields

getNow

  • getNow(): number

Const getOS

  • getOS(): PlatformInterface["OS"]

Const getObjectDeserializer

Const getObjectSerializer

Const getOperationType

  • getOperationType(operation: any): any

Const getOptions

  • getOptions(request: any, accessInfo: any, serviceInfo: any, expiration?: any): object
  • Parameters

    • request: any
    • accessInfo: any
    • serviceInfo: any
    • Optional expiration: any

    Returns object

    • credentials: object
      • accessKeyId: any
      • secretAccessKey: any
    • signingDate: any
    • signingRegion: any
    • signingService: any

getOwnerFields

Const getPKCE

  • getPKCE(): string
  • getPKCE(): string

getPolygon

Const getPrefix

  • getPrefix(config: object): string

Const getPresignedGetObjectUrl

getProviderFromRule

Const getRetryDecider

  • getRetryDecider(errorParser: ErrorParser): (Anonymous function)

getSQLiteType

  • getSQLiteType(scalar: keyof Omit<typeof GraphQLScalarType, "getJSType" | "getValidationFunction" | "getSQLiteType">): "TEXT" | "INTEGER" | "REAL" | "BLOB"

getScalarFields

Const getSharedHeaders

  • getSharedHeaders(operation: string): Headers
  • getSharedHeaders(): Headers

Const getSignature

  • getSignature(request: HttpRequest, __namedParameters: object): string

Const getSignedHeaders

  • getSignedHeaders(headers: HttpRequest["headers"]): string

Const getSigningKey

  • getSigningKey(secretAccessKey: string, date: string, region: string, service: string): Uint8Array
  • Returns a signing key to be used for signing requests.

    internal

    Parameters

    • secretAccessKey: string

      AWS secret access key from credentials.

    • date: string

      Current date in the format 'YYYYMMDD'.

    • region: string

      AWS region in which the service resides.

    • service: string

      Service to which the signed request is being sent.

    Returns Uint8Array

    Uint8Array calculated from its composite parts.

Const getSigningValues

Const getSkewCorrectedDate

  • getSkewCorrectedDate(systemClockOffset: number): Date

Const getStartOfDay

  • getStartOfDay(): string

Const getState

  • getState(): string
  • getState(): string

Const getStorageUserAgentValue

Const getStorename

  • getStorename(namespace: string, modelName: string): string

Const getStringToSign

  • getStringToSign(date: string, credentialScope: string, hashedRequest: string): string
  • Returns a string to be signed.

    internal

    Parameters

    • date: string

      Current date in the format 'YYYYMMDDThhmmssZ'.

    • credentialScope: string

      String representing the credential scope with format 'YYYYMMDD/region/service/aws4_request'.

    • hashedRequest: string

      Hashed canonical request.

    Returns string

    A string created by by concatenating the following strings, separated by newline characters:

    • Algorithm
    • RequestDateTime
    • CredentialScope
    • HashedCanonicalRequest

getSubscriptionErrorType

getSyncErrorType

Const getTimestampFields

getTokenForCustomAuth

  • getTokenForCustomAuth(authMode: GRAPHQL_AUTH_MODE, amplifyConfig?: Record<string, any>): Promise<string | undefined>

Const getUpdatedSystemClockOffset

  • getUpdatedSystemClockOffset(clockTimeInMilliseconds: number, currentSystemClockOffset: number): number

Const getUrl

  • getUrl(): string

Const getUserAgentValue

getUserGroupsFromToken

Const getValueFromTextNode

  • getValueFromTextNode(obj: any): any

Const globalExists

  • globalExists(): boolean

Const globalThisExists

  • globalThisExists(): boolean

Const graphqlOperation

  • graphqlOperation(query: any, variables?: object, authToken?: string): object
  • graphqlOperation(query: any, variables?: object, authToken?: string): object

Const gzipDecompressToString

  • gzipDecompressToString(data: Uint8Array): Promise<string>
  • gzipDecompressToString(data: Uint8Array): Promise<string>

hasCustomState

  • hasCustomState(obj: any): boolean

Const hasOnlyNamespaceAttributes

  • hasOnlyNamespaceAttributes(node: Element): boolean

Const headObjectDeserializer

Const headObjectSerializer

Const hexEncode

  • hexEncode(c: string): string
  • hexEncode(c: string): string

Const implicitAuthFieldsForModel

  • implicitAuthFieldsForModel(model: SchemaModel): string[]

inMemoryPagination

  • inMemoryPagination<T>(records: T[], pagination?: PaginationInput<T>): T[]
  • Statelessly extracts the specified page from an array.

    Type parameters

    Parameters

    • records: T[]

      The source array to extract a page from.

    • Optional pagination: PaginationInput<T>

      A definition of the page to extract.

    Returns T[]

    This items from records matching the pagination definition.

Const indexNameFromKeys

  • indexNameFromKeys(keys: string[]): string

Const initSchema

  • initSchema(userSchema: Schema): object

Const initializeInstance

Const internals

  • Takes a key object from registerPredicateInternals() to fetch an internal GroupCondition object, which can then be used to query storage or test/match objects.

    This indirection exists to hide GroupCondition from public interfaces, since GroupCondition contains extra methods and properties that public callers should not use.

    Parameters

    • key: any

      A key object previously returned by registerPredicateInternals()

    Returns GroupCondition

Const interpretLayout

  • interpretLayout(layout: PinpointInAppMessage["InAppMessage"]["Layout"]): InAppMessageLayout

invalidParameter

  • invalidParameter(name: string): Error

Const isAWSDate

  • isAWSDate(val: string): boolean

Const isAWSDateTime

  • isAWSDateTime(val: string): boolean

Const isAWSEmail

  • isAWSEmail(val: string): boolean

Const isAWSIPAddress

  • isAWSIPAddress(val: string): boolean

Const isAWSJSON

  • isAWSJSON(val: string): boolean

Const isAWSPhone

  • isAWSPhone(val: string): boolean

Const isAWSTime

  • isAWSTime(val: string): boolean

Const isAWSTimestamp

  • isAWSTimestamp(val: number): boolean

Const isAWSURL

  • isAWSURL(val: string): boolean

Const isActive

  • isActive(appState: any): boolean

Const isAppInForeground

  • isAppInForeground(): boolean
  • isAppInForeground(): boolean

Const isArrayBuffer

  • isArrayBuffer(arg: any): arg
  • isArrayBuffer(x: unknown): x

isAssociatedWith

  • isAssociatedWith(obj: any): obj

Const isBeforeEndDate

  • isBeforeEndDate(__namedParameters: object): boolean

Const isBlob

  • isBlob(x: unknown): x

isBytesSource

  • isBytesSource(obj: any): obj

Const isCancelError

  • isCancelError(error: unknown): boolean

Const isClockSkewError

  • isClockSkewError(errorCode?: string): boolean
  • Given an error code, returns true if it is related to a clock skew error.

    internal

    Parameters

    • Optional errorCode: string

      String representation of some error.

    Returns boolean

    True if given error is present in CLOCK_SKEW_ERROR_CODES, false otherwise.

Const isClockSkewed

  • isClockSkewed(clockTimeInMilliseconds: number, clockOffsetInMilliseconds: number): boolean
  • Checks if the provided date is within the skew window of 5 minutes.

    internal

    Parameters

    • clockTimeInMilliseconds: number

      Time to check for skew in milliseconds.

    • clockOffsetInMilliseconds: number

      Offset to check clock against in milliseconds.

    Returns boolean

    True if skewed. False otherwise.

isCognitoHostedOpts

  • isCognitoHostedOpts(oauth: OAuthOpts): oauth

Const isComparison

  • isComparison(o: any): boolean
  • Determines whether an object is a GraphQL style predicate comparison node, which must be an object containing a single "comparison operator" key, which then contains the operand or operands to compare against.

    Parameters

    • o: any

      The object to test.

    Returns boolean

Const isConnectionError

  • isConnectionError(error?: Error): boolean

Const isDnsCompatibleBucketName

  • isDnsCompatibleBucketName(bucketName: string): boolean

Const isDocumentNode

  • isDocumentNode(node: Node): node

Const isElementNode

  • isElementNode(node: Node): node

Const isEmpty

  • isEmpty(obj?: object): boolean
  • isEmpty(o: any): boolean

isEnumFieldType

  • isEnumFieldType(obj: any): obj

isFederatedSignInOptions

  • isFederatedSignInOptions(obj: any): obj

isFederatedSignInOptionsCustom

  • isFederatedSignInOptionsCustom(obj: any): obj

isFieldAssociation

  • isFieldAssociation(obj: any, fieldName: string): obj

Const isFile

  • isFile(x: unknown): x

isFileSource

  • isFileSource(obj: any): obj

isGraphQLScalarType

  • isGraphQLScalarType(obj: any): obj

Const isGroup

  • isGroup(o: any): boolean
  • Determines whether an object is a GraphQL style predicate "group", which must be an object containing a single "group key", which then contains the child condition(s).

    E.g.,

    { and: [ ... ] }
    { not: { ... } }

    Parameters

    • o: any

      The object to test.

    Returns boolean

Const isIdManaged

Const isIdOptionallyManaged

  • isIdOptionallyManaged(modelDefinition: SchemaModel): boolean

isIdentifierObject

  • isIdentifierObject<T>(obj: any, modelDefinition: SchemaModel): obj

isIdentifyCelebrities

  • isIdentifyCelebrities(obj: any): obj

isIdentifyEntitiesInput

  • isIdentifyEntitiesInput(obj: any): obj

isIdentifyFromCollection

  • isIdentifyFromCollection(obj: any): obj

isIdentifyLabelsInput

  • isIdentifyLabelsInput(obj: any): obj

isIdentifyTextInput

  • isIdentifyTextInput(obj: any): obj

Const isInactive

  • isInactive(appState: any): boolean

isInteger

  • isInteger(value: any): boolean

isInterpretTextInput

  • isInterpretTextInput(obj: any): obj

isLegacyCallback

  • isLegacyCallback(callback: any): callback

Const isMetadataBearer

  • isMetadataBearer(response: unknown): response

isModelAttributeAuth

isModelAttributeCompositeKey

isModelAttributeKey

isModelAttributePrimaryKey

Const isModelConstructor

  • isModelConstructor<T>(obj: any): obj

isModelFieldType

  • isModelFieldType<T>(obj: any): obj

Const isNamespaceAttributeName

  • isNamespaceAttributeName(name: string): boolean

Const isNonModelConstructor

  • isNonModelConstructor(obj: any): obj

isNonModelFieldType

  • isNonModelFieldType(obj: any): obj

Const isNonRetryableError

  • isNonRetryableError(obj: any): obj

Const isNullOrUndefined

  • isNullOrUndefined(val: any): boolean

isPredicateGroup

  • isPredicateGroup<T>(obj: any): obj

isPredicateObj

  • isPredicateObj<T>(obj: any): obj

isPredicatesAll

  • isPredicatesAll(predicate: any): predicate

Const isPrivateMode

  • isPrivateMode(): Promise<unknown>

isQueryOne

  • isQueryOne(obj: any): obj

Const isQuietTime

  • isQuietTime(message: PinpointInAppMessage): boolean

Const isSafariCompatabilityMode

  • isSafariCompatabilityMode(): Promise<any>
  • Whether the browser's implementation of IndexedDB breaks on array lookups against composite indexes whose keypath contains a single column.

    E.g., Whether store.createIndex(indexName, ['id']) followed by store.index(indexName).get([1]) will ever return records.

    In all known, modern Safari browsers as of Q4 2022, the query against an index like this will always return undefined. So, the index needs to be created as a scalar.

    Returns Promise<any>

isSchemaModel

  • isSchemaModel(obj: any): obj

isSchemaModelWithAttributes

Const isServerSideError

  • isServerSideError(statusCode?: number, errorCode?: string): boolean

Const isSourceData

  • isSourceData(body: HttpRequest["body"]): body

isSpeechToTextInput

  • isSpeechToTextInput(obj: any): obj

isStorageSource

  • isStorageSource(obj: any): obj

Const isStrictObject

  • isStrictObject(obj: any): boolean
  • Return true if the object is a strict object which means it's not Array, Function, Number, String, Boolean or Null

    Parameters

    • obj: any

      the Object

    Returns boolean

isTargetNameAssociation

  • isTargetNameAssociation(obj: any): obj

Const isTextFile

  • isTextFile(contentType: any): boolean

Const isTextOnlyElementNode

  • isTextOnlyElementNode(node: Element): boolean

isTextToSpeechInput

  • isTextToSpeechInput(obj: any): obj

Const isThrottlingError

  • isThrottlingError(statusCode?: number, errorCode?: string): boolean

isTranslateTextInput

  • isTranslateTextInput(obj: any): obj

isUsernamePasswordOpts

  • isUsernamePasswordOpts(obj: any): obj

Const isValid

  • isValid(o: any): any

Const isValidModelConstructor

  • isValidModelConstructor<T>(obj: any): obj

Const isWebWorker

  • isWebWorker(): boolean

Const keyPrefixMatch

  • keyPrefixMatch(object: object, prefix: string): boolean

Const keysEqual

  • keysEqual(keysA: any, keysB: any): boolean

Const keysFromModel

  • keysFromModel(model: any): string

Const launchUri

  • launchUri(url: string): Promise<Window>
  • launchUri(url: any): any

limitClauseFromPagination

Const listObjectsV2Deserializer

Const listObjectsV2Serializer

Const listPartsDeserializer

Const listPartsSerializer

Const listener

  • listener(capsule: any): void

Const loadS3Config

makeCamelCase

  • makeCamelCase(obj: object, keys?: string[]): object
  • Changes object keys to camel case. If optional parameter keys is given, then we extract only the keys specified in keys.

    Parameters

    • obj: object
    • Optional keys: string[]

    Returns object

makeCamelCaseArray

  • makeCamelCaseArray(objArr: object[], keys?: string[]): object[]

Const makeQuerablePromise

  • makeQuerablePromise(promise: any): any

Const map

  • map<Instructions>(obj: Record<string, any>, instructions: Instructions): object
  • Maps an object to a new object using the provided instructions. The instructions are a map of the returning mapped object's property names to a single instruction of how to map the value from the original object to the new object. There are two types of instructions:

    1. A string representing the property name of the original object to map to the new object. The value mapped from the original object will be the same as the value in the new object, and it can ONLY be string.

    2. An array of two elements. The first element is the property name of the original object to map to the new object. The second element is a function that takes the value from the original object and returns the value to be mapped to the new object. The function can return any type.

    Example:

    const input = {
      Foo: 'foo',
      BarList: [{value: 'bar1'}, {value: 'bar2'}]
    }
    const output = map(input, {
      someFoo: 'Foo',
      bar: ['BarList', (barList) => barList.map(bar => bar.value)]
      baz: 'Baz' // Baz does not exist in input, so it will not be in the output.
    });
    // output = { someFoo: 'foo', bar: ['bar1', 'bar2'] }
    internal

    Type parameters

    • Instructions: object

    Parameters

    • obj: Record<string, any>

      The object containing the data to compose mapped object.

    • instructions: Instructions

      The instructions mapping the object values to the new object.

    Returns object

    A new object with the mapped values.

mapErrorToType

mapSearchOptions

  • mapSearchOptions(options: any, locationServiceInput: any): any

matches

  • matches(element: any, test: any): any
  • Tests if a DOM elements matches any of the test DOM elements or selectors.

    Parameters

    • element: any

      The DOM element to test.

    • test: any

      A DOM element, a CSS selector, or an array of DOM elements or CSS selectors to match against.

    Returns any

    True of any part of the test matches.

Const matchesAttributes

  • matchesAttributes(__namedParameters: object, __namedParameters: object): boolean

Const matchesEventType

  • matchesEventType(__namedParameters: object, __namedParameters: object): any

Const matchesMetrics

  • matchesMetrics(__namedParameters: object, __namedParameters: object): boolean

matchesSelector

  • matchesSelector(element: any, selector: any): any
  • Tests whether a DOM element matches a selector. This polyfills the native Element.prototype.matches method across browsers.

    Parameters

    • element: any

      The DOM element to test.

    • selector: any

      The CSS selector to test element against.

    Returns any

    True if the selector matches.

mergePatches

  • mergePatches<T>(originalSource: T, oldPatches: Patch[], newPatches: Patch[]): Patch[]
  • merge two sets of patches created by immer produce. newPatches take precedent over oldPatches for patches modifying the same path. In the case many consecutive pathces are merged the original model should always be the root model.

    Example: A -> B, patches1 B -> C, patches2

    mergePatches(A, patches1, patches2) to get patches for A -> C

    Type parameters

    • T

    Parameters

    • originalSource: T

      the original Model the patches should be applied to

    • oldPatches: Patch[]

      immer produce patch list

    • newPatches: Patch[]

      immer produce patch list (will take precedence)

    Returns Patch[]

    merged patches

missingConfig

  • missingConfig(name: string): Error

modelCreateTableStatement

  • modelCreateTableStatement(model: SchemaModel, userModel?: boolean): string

modelInsertStatement

modelInstanceCreator

modelUpdateStatement

monotonicUlidFactory

  • monotonicUlidFactory(seed?: number): ULID

mqttTopicMatch

  • mqttTopicMatch(filter: string, topic: string): boolean

Const multiAuthStrategy

  • multiAuthStrategy(amplifyContext: AmplifyContext): (Anonymous function)
  • Returns an array of auth modes to try based on the schema, model, and authenticated user (or lack thereof). Rules are sourced from getAuthRules and returned in the order they ought to be attempted.

    see

    sortAuthRulesWithPriority

    see

    getAuthRules

    Parameters

    Returns (Anonymous function)

    A sorted array of auth modes to attempt.

Const namespaceResolver

  • namespaceResolver(modelConstructor: object): string

nextSSRDetect

  • nextSSRDetect(): boolean

nextWebDetect

  • nextWebDetect(): boolean

Const normalize

  • Updates a draft to standardize its customer-defined fields so that they are consistent with the data as it would look after having been synchronized from Cloud storage.

    The exceptions to this are:

    1. Non-schema/Internal [sync] metadata fields.
    2. Cloud-managed fields, which are null until set by cloud storage.

    This function should be expanded if/when deviations between canonical Cloud storage data and locally managed data are found. For now, the known areas that require normalization are:

    1. Ensuring all non-metadata fields are defined. (I.e., turn undefined -> null.)

    Type parameters

    Parameters

    • modelDefinition: SchemaModel | SchemaNonModel

      Definition for the draft. Used to discover all fields.

    • draft: Draft<T>

      The instance draft to apply normalizations to.

    Returns void

Const normalizeApnsMessage

Const normalizeFcmMessage

Const normalizeNativeMessage

Const normalizeNativePermissionStatus

Const notifyEventListeners

  • notifyEventListeners(type: EventType, ...args: any[]): void

Const notifyEventListenersAndAwaitHandlers

  • notifyEventListenersAndAwaitHandlers(type: EventType, ...args: any[]): Promise<void[]>

nuxtSSRDetect

  • nuxtSSRDetect(): boolean

nuxtWebDetect

  • nuxtWebDetect(): boolean

Const objectLessAttributes

  • objectLessAttributes(obj: any, less: any): any

Const observeFrameworkChanges

  • observeFrameworkChanges(fcn: function): void

orderByClauseFromSort

parents

  • parents(ele: any): any[]

Const parseAWSExports

  • parseAWSExports(config: any): AmplifyConfig

Const parseJsonBody

Const parseJsonError

Const parseMetadata

Const parseServiceInfo

  • parseServiceInfo(url: URL): object

parseUrl

  • parseUrl(u: any): any

Const parseXmlBody

  • parseXmlBody(response: HttpResponse): Promise<any>

Const parseXmlBodyOrThrow

  • parseXmlBodyOrThrow(response: HttpResponse): Promise<any>

Const parseXmlError

  • parseXmlError(response?: HttpResponse): Promise<Error & object>

Const parseXmlNode

  • parseXmlNode(node: Node): any

predicateFor

predicateToGraphQLCondition

predicateToGraphQLFilter

  • remarks

    Flattens redundant list predicates

    example
    { and:[{ and:[{ username:  { eq: 'bob' }}] }] }

    Becomes

    { and:[{ username: { eq: 'bob' }}] }

    Parameters

    • predicatesGroup: PredicatesGroup<any>

      Predicate Group

    • Default value fieldsToOmit: string[] = []
    • Default value root: boolean = true

    Returns GraphQLFilter

    GQL Filter Expression from Predicate Group

prepareValueForDML

  • prepareValueForDML(value: unknown): any

Const presignUrl

  • presignUrl(__namedParameters: object, __namedParameters: object): URL
  • Given a Presignable object, returns a Signature Version 4 presigned URL object.

    Parameters

    • __namedParameters: object
      • body: string | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>
      • method: string
      • url: URL
    • __namedParameters: object
      • expiration: number
      • options: options

    Returns URL

    A URL with authentication query params which can grant temporary access to AWS resources.

Const prng

  • prng(): number

Const processCompositeKeys

Const processExists

  • processExists(): boolean

Const putEventsDeserializer

Const putEventsSerializer

Const putObjectDeserializer

Const putObjectSerializer

queryAllStatement

queryByIdStatement

queryOneStatement

Const randomBytes

  • randomBytes(nBytes: number): Buffer

reactNativeDetect

  • reactNativeDetect(): boolean

reactSSRDetect

  • reactSSRDetect(): boolean

reactWebDetect

  • reactWebDetect(): boolean

Const readBlobAsText

  • readBlobAsText(blob: Blob): Promise<string>

Const readFile

  • readFile(file: Blob): Promise<ArrayBuffer>

Const readFileToBase64

  • readFileToBase64(blob: Blob): Promise<string>

Const recordAnalyticsEvent

recursivePredicateFor

  • Creates a "seed" predicate that can be used to build an executable condition. This is used in query(), for example, to seed customer- E.g.,

    const p = predicateFor({builder: modelConstructor, schema: modelSchema, pkField: string[]});
    p.and(child => [
      child.field.eq('whatever'),
      child.childModel.childField.eq('whatever else'),
      child.childModel.or(child => [
        child.otherField.contains('x'),
        child.otherField.contains('y'),
        child.otherField.contains('z'),
      ])
    ])

    predicateFor() returns objecst with recursive getters. To facilitate this, a query and tail can be provided to "accumulate" nested conditions.

    Type parameters

    Parameters

    • ModelType: ModelMeta<T>

      The ModelMeta used to build child properties.

    • Default value allowRecursion: boolean = true
    • Optional field: string

      Scopes the query branch to a field.

    • Optional query: GroupCondition

      A base query to build on. Omit to start a new query.

    • Optional tail: GroupCondition

      The point in an existing query to attach new conditions to.

    Returns RecursiveModelPredicate<T> & PredicateInternalsKey

    A ModelPredicate (builder) that customers can create queries with. (As shown in function description.)

registerNonModelClass

Const registerPredicateInternals

  • registerPredicateInternals(condition: GroupCondition, key?: any): any
  • Creates a link between a key (and generates a key if needed) and an internal GroupCondition, which allows us to return a key object instead of the gory conditions details to customers/invoking code.

    Parameters

    • condition: GroupCondition

      The internal condition to keep hidden.

    • Optional key: any

      The object DataStore will use to find the internal condition. If no key is given, an empty one is created.

    Returns any

repeatedFieldInGroup

  • example

    returns "username"

    { type: "and", predicates: [
            { field: "username", operator: "beginsWith", operand: "a" },
            { field: "username", operator: "contains", operand: "abc" },
    ] }

    Parameters

    Returns string | null

    name of repeated field | null

resetTimeout

  • resetTimeout(framework: Framework, delay: number): void

Const retryMiddleware

  • retryMiddleware<TInput, TOutput>(__namedParameters: object): (Anonymous function)
  • Retry middleware

    Type parameters

    • TInput

    • TOutput

    Parameters

    • __namedParameters: object
      • abortSignal: AbortSignal
      • computeDelay: function
          • (attempt: number): number
          • Parameters

            • attempt: number

            Returns number

      • maxAttempts: number
      • retryDecider: function
          • (response?: TResponse, error?: unknown): Promise<boolean>
          • Parameters

            • Optional response: TResponse
            • Optional error: unknown

            Returns Promise<boolean>

    Returns (Anonymous function)

Const retryWhenErrorWith200StatusCode

  • retryWhenErrorWith200StatusCode(response: HttpResponse, error?: Error): Promise<boolean>

Const sendEvents

  • sendEvents(): void

Const serializeCompletedMultipartUpload

Const serializeCompletedPartList

Const serializeMetadata

  • serializeMetadata(metadata?: Record<string, string>): Record<string, string>

serializeModel

  • serializeModel<T>(model: T | T[]): JSON

Const serializeObjectConfigsToHeaders

Const serializeObjectSsecOptionsToHeaders

Const serializePathnameObjectKey

  • serializePathnameObjectKey(url: URL, key: string): string

Const serverError

  • serverError(error: any): boolean

Const sessionTokenRequiredInSigning

  • sessionTokenRequiredInSigning(service: string): boolean

Const setPKCE

  • setPKCE(private_key: string): void
  • setPKCE(private_key: string): void

Const setState

  • setState(state: string): void
  • setState(state: string): void

Const setTestId

  • setTestId(id: string): object | object

Const shouldSendBody

  • shouldSendBody(method: string): boolean

Const signRequest

Const signingMiddleware

  • signingMiddleware(__namedParameters: object): (Anonymous function)
  • Middleware that SigV4 signs request with AWS credentials, and correct system clock offset. This middleware is expected to be placed after retry middleware.

    Parameters

    • __namedParameters: object
      • credentials: Credentials | function
      • region: string
      • service: string
      • uriEscapePath: boolean

    Returns (Anonymous function)

Const simulateAxiosCanceledError

Const simulateAxiosError

sortAuthRulesWithPriority

Const sortByField

  • sortByField(list: any, field: any, dir: any): boolean

sortCompareFunction

Const storageEvent

  • storageEvent(payload: any): void

svelteSSRDetect

  • svelteSSRDetect(): boolean

svelteWebDetect

  • svelteWebDetect(): boolean

syncExpression

toBase64

  • toBase64(input: string | ArrayBufferView): string

Const transferKeyToLowerCase

  • transferKeyToLowerCase(obj: any, whiteListForItself?: any[], whiteListForChildren?: any[]): any
  • transfer the first letter of the keys to lowercase

    Parameters

    • obj: any

      the object need to be transferred

    • Default value whiteListForItself: any[] = []

      whitelist itself from being transferred

    • Default value whiteListForChildren: any[] = []

      whitelist its children keys from being transferred

    Returns any

Const transferKeyToUpperCase

  • transferKeyToUpperCase(obj: any, whiteListForItself?: any[], whiteListForChildren?: any[]): any
  • transfer the first letter of the keys to lowercase

    Parameters

    • obj: any

      the object need to be transferred

    • Default value whiteListForItself: any[] = []

      whitelist itself from being transferred

    • Default value whiteListForChildren: any[] = []

      whitelist its children keys from being transferred

    Returns any

Const traverseModel

  • traverseModel<T>(srcModelName: string, instance: T, namespace: SchemaNamespace, modelInstanceCreator: ModelInstanceCreator, getModelConstructorByModelName: function): object[]

Const unGzipBase64AsJson

  • unGzipBase64AsJson(gzipBase64: string | undefined): Promise<any>

unwrapObservableError

  • unwrapObservableError(observableError: any): any
  • Get the first error reason of an observable. Allows for error maps to be easily applied to observable errors

    Parameters

    • observableError: any

      an error from ZenObservable subscribe error callback

    Returns any

Const updateEndpointDeserializer

Const updateEndpointSerializer

Const updateSet

  • updateSet(model: any): [string, any[]]

Const uploadPartDeserializer

Const uploadPartSerializer

urlSafeDecode

  • urlSafeDecode(hex: string): string

urlSafeEncode

  • urlSafeEncode(str: string): string

Const userAgentIncludes

  • userAgentIncludes(text: string): boolean

Const userAgentMiddleware

  • userAgentMiddleware(__namedParameters: object): (Anonymous function)
  • Middleware injects user agent string to specified header(default to 'x-amz-user-agent'), if the header is not set already.

    TODO: incorporate new user agent design

    Parameters

    • __namedParameters: object
      • userAgentHeader: string
      • userAgentValue: string

    Returns (Anonymous function)

utf8Encode

  • utf8Encode(input: string): Uint8Array

validateCoordinates

validateGeofenceId

  • validateGeofenceId(geofenceId: GeofenceId): void

validateGeofencesInput

validateLinearRing

Const validateModelFields

validatePolygon

Const validatePredicate

  • validatePredicate<T>(model: T, groupType: keyof PredicateGroups<T>, predicatesOrGroups: (object | object)[]): any

Const validatePredicateField

  • validatePredicateField<T>(value: T, operator: keyof AllOperators, operand: T | [T, T]): boolean

valuesEqual

  • valuesEqual(valA: any, valB: any, nullish?: boolean): boolean

Const valuesFromModel

  • valuesFromModel(model: any): [string, any[]]

vueSSRDetect

  • vueSSRDetect(): boolean

vueWebDetect

  • vueWebDetect(): boolean

webDetect

  • webDetect(): boolean

whereClauseFromPredicate

Const whereConditionFromPredicateObject

Const windowExists

  • windowExists(): boolean

withAuthenticator

  • withAuthenticator<Props>(Comp: React.ComponentType<Props>, includeGreetings?: boolean | object, authenticatorComponents?: any[], federated?: any, theme?: AmplifyThemeType, signUpConfig?: ISignUpConfig): Wrapper
  • Type parameters

    • Props: object

    Parameters

    • Comp: React.ComponentType<Props>
    • Default value includeGreetings: boolean | object = false
    • Default value authenticatorComponents: any[] = []
    • Default value federated: any = null
    • Default value theme: AmplifyThemeType = null
    • Default value signUpConfig: ISignUpConfig = {}

    Returns Wrapper

Const withMemoization

  • withMemoization<T>(payloadAccessor: function): (Anonymous function)
  • Cache the payload of a response body. It allows multiple calls to the body, for example, when reading the body in both retry decider and error deserializer. Caching body is allowed here because we call the body accessor(blob(), json(), etc.) when body is small or streaming implementation is not available(RN).

    internal

    Type parameters

    • T

    Parameters

    Returns (Anonymous function)

withOAuth

withSSRContext

  • withSSRContext(context?: Context): AmplifyClass

Const xhrTransferHandler

Object literals

Const AWS_APPSYNC_REALTIME_HEADERS

AWS_APPSYNC_REALTIME_HEADERS: object

accept

accept: string = "application/json, text/javascript"

content-encoding

content-encoding: string = "amz-1.0"

content-type

content-type: string = "application/json; charset=UTF-8"

Const Amplify

Amplify: object = new AmplifyClass()

configure

configure: configure = configure

Const AppState

AppState: object

addEventListener

  • addEventListener(action: any, handler: any): any

Const CONNECTION_CHANGE

CONNECTION_CHANGE: object

CLOSED

CLOSED: object

connectionState

connectionState: "disconnected" = "disconnected"

CLOSING_CONNECTION

CLOSING_CONNECTION: object

intendedConnectionState

intendedConnectionState: "disconnected" = "disconnected"

CONNECTION_ESTABLISHED

CONNECTION_ESTABLISHED: object

connectionState

connectionState: "connected" = "connected"

CONNECTION_FAILED

CONNECTION_FAILED: object

connectionState

connectionState: "disconnected" = "disconnected"

intendedConnectionState

intendedConnectionState: "disconnected" = "disconnected"

KEEP_ALIVE

KEEP_ALIVE: object

keepAliveState

keepAliveState: "healthy" = "healthy"

KEEP_ALIVE_MISSED

KEEP_ALIVE_MISSED: object

keepAliveState

keepAliveState: "unhealthy" = "unhealthy"

OFFLINE

OFFLINE: object

networkState

networkState: "disconnected" = "disconnected"

ONLINE

ONLINE: object

networkState

networkState: "connected" = "connected"

OPENING_CONNECTION

OPENING_CONNECTION: object

connectionState

connectionState: "connecting" = "connecting"

intendedConnectionState

intendedConnectionState: "connected" = "connected"

Const Constants

Constants: object

userAgent

userAgent: string = Platform.userAgent

Const DateUtils

DateUtils: object

clockOffset

clockOffset: number = 0

Milliseconds to offset the date to compensate for clock skew between device & services

getClockOffset

  • getClockOffset(): any

getDateFromHeaderString

  • getDateFromHeaderString(header: string): Date

getDateWithClockOffset

  • getDateWithClockOffset(): Date

getHeaderStringFromDate

  • getHeaderStringFromDate(date?: Date): string

isClockSkewError

  • isClockSkewError(error: any): boolean

isClockSkewed

  • isClockSkewed(serverDate: Date): boolean

setClockOffset

  • setClockOffset(offset: number): void

Const LOG_LEVELS

LOG_LEVELS: object

DEBUG

DEBUG: number = 2

ERROR

ERROR: number = 5

INFO

INFO: number = 3

VERBOSE

VERBOSE: number = 1

WARN

WARN: number = 4

Const MIC_BUTTON_TEXT

MIC_BUTTON_TEXT: object

PASSIVE

PASSIVE: string = "🎤"

RECORDING

RECORDING: string = "🔴"

Const Platform

Platform: object = new PlatformBuilder()

OS

OS: "android" | "ios" | "windows" | "macos" | "web" | "unix" | "linux" | "unknown"

Const STATES

STATES: object

INITIAL

INITIAL: string = "INITIAL"

LISTENING

LISTENING: string = "LISTENING"

SENDING

SENDING: string = "SENDING"

SPEAKING

SPEAKING: string = "SPEAKING"

Const authErrorMessages

authErrorMessages: object

autoSignInError

autoSignInError: object

message

message: AuthErrorStrings = AuthErrorStrings.AUTOSIGNIN_ERROR

default

default: object

message

message: AuthErrorStrings = AuthErrorStrings.DEFAULT_MSG

deviceConfig

deviceConfig: object

message

message: AuthErrorStrings = AuthErrorStrings.DEVICE_CONFIG

emptyChallengeResponse

emptyChallengeResponse: object

message

message: AuthErrorStrings = AuthErrorStrings.EMPTY_CHALLENGE

emptyCode

emptyCode: object

message

message: AuthErrorStrings = AuthErrorStrings.EMPTY_CODE

emptyPassword

emptyPassword: object

message

message: AuthErrorStrings = AuthErrorStrings.EMPTY_PASSWORD

emptyUsername

emptyUsername: object

message

message: AuthErrorStrings = AuthErrorStrings.EMPTY_USERNAME

invalidMFA

invalidMFA: object

message

message: AuthErrorStrings = AuthErrorStrings.INVALID_MFA

invalidUsername

invalidUsername: object

message

message: AuthErrorStrings = AuthErrorStrings.INVALID_USERNAME

missingAuthConfig

missingAuthConfig: object

log

log: string = `Error: Amplify has not been configured correctly.The configuration object is missing required auth properties.This error is typically caused by one of the following scenarios:1. Did you run \`amplify push\` after adding auth via \`amplify add auth\`?See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.`

message

message: AuthErrorStrings = AuthErrorStrings.DEFAULT_MSG

networkError

networkError: object

message

message: AuthErrorStrings = AuthErrorStrings.NETWORK_ERROR

noConfig

noConfig: object

log

log: string = `Error: Amplify has not been configured correctly.This error is typically caused by one of the following scenarios:1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry pointSee https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information2. There might be multiple conflicting versions of amplify packages in your node_modules.Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)`

message

message: AuthErrorStrings = AuthErrorStrings.DEFAULT_MSG

noMFA

noMFA: object

message

message: AuthErrorStrings = AuthErrorStrings.NO_MFA

noUserSession

noUserSession: object

message

message: AuthErrorStrings = AuthErrorStrings.NO_USER_SESSION

signUpError

signUpError: object

log

log: string = "The first parameter should either be non-null string or object"

message

message: AuthErrorStrings = AuthErrorStrings.SIGN_UP_ERROR

Const comparisonOperatorMap

comparisonOperatorMap: object

eq

eq: string = "="

ge

ge: string = ">="

gt

gt: string = ">"

le

le: string = "<="

lt

lt: string = "<"

ne

ne: string = "!="

Const defaultConfig

defaultConfig: object

Default cache config

internal
internal
internal

capacityInBytes

capacityInBytes: number = 1048576

computeDelay

computeDelay: function = jitteredBackoff

Type declaration

    • (attempt: number): number
    • Parameters

      • attempt: number

      Returns number

defaultPriority

defaultPriority: number = 5

defaultTTL

defaultTTL: number = 259200000

endpointResolver

endpointResolver: endpointResolver

itemMaxSize

itemMaxSize: number = 210000

keyPrefix

keyPrefix: string = "aws-amplify-cache"

retryDecider

retryDecider: function = getRetryDecider(parseXmlError)

Type declaration

    • (response?: HttpResponse, error?: Error): Promise<boolean>
    • Parameters

      • Optional response: HttpResponse
      • Optional error: Error

      Returns Promise<boolean>

service

service: string = SERVICE_NAME

storage

storage: any = new StorageHelper().getStorage()

uriEscapePath

uriEscapePath: boolean = false

useAccelerateEndpoint

useAccelerateEndpoint: boolean = false

userAgentValue

userAgentValue: string = getAmplifyUserAgent()

warningThreshold

warningThreshold: number = 0.8

Const defaultOpts

defaultOpts: object

enable

enable: false = false

events

events: string[] = ['click']

getUrl

getUrl: getUrl

provider

provider: string = "AWSPinpoint"

selectorPrefix

selectorPrefix: string = "data-amplify-analytics-"

Const defaultPartition

defaultPartition: object

Default partition for AWS services. This is used when the region is not provided or the region is not recognized.

internal

id

id: string = "aws"

regionRegex

regionRegex: string = "^(us|eu|ap|sa|ca|me|af)\-\w+\-\d+$"

regions

regions: string[] = ['aws-global']

outputs

outputs: object

dnsSuffix

dnsSuffix: string = "amazonaws.com"

Const dict

dict: object

de

de: object

Account recovery requires verified contact information

Account recovery requires verified contact information: string = "Zurücksetzen des Account benötigt einen verifizierten Account"

An account with the given email already exists.

An account with the given email already exists.: string = "Ein Account mit dieser Email existiert bereits."

Back to Sign In

Back to Sign In: string = "Zurück zur Anmeldung"

Change Password

Change Password: string = "Passwort ändern"

Code

Code: string = "Code"

Confirm

Confirm: string = "Bestätigen"

Confirm Sign In

Confirm Sign In: string = "Anmeldung bestätigen"

Confirm Sign Up

Confirm Sign Up: string = "Registrierung bestätigen"

Confirm a Code

Confirm a Code: string = "Code bestätigen"

Confirmation Code

Confirmation Code: string = "Bestätigungs-Code"

Create Account

Create Account: string = "Account erstellen"

Create a new account

Create a new account: string = "Erstelle einen neuen Account"

Create account

Create account: string = "Hier registrieren"

Email

Email: string = "Email"

Enter your password

Enter your password: string = "Geben Sie Ihr Passwort ein"

Enter your username

Enter your username: string = "Geben Sie Ihren Benutzernamen ein"

Forgot Password

Forgot Password: string = "Passwort vergessen"

Forgot your password?

Forgot your password? : string = "Passwort vergessen? "

Have an account?

Have an account? : string = "Schon registriert? "

Incorrect username or password

Incorrect username or password: string = "Falscher Benutzername oder falsches Passwort"

Invalid password format

Invalid password format: string = "Ungültiges Passwort-Format"

Invalid phone number format

Invalid phone number format: string = `Ungültiges Telefonummern-Format.Benutze eine Nummer im Format: +12345678900`

Loading...

Loading...: string = "Lädt..."

Lost your code?

Lost your code? : string = "Code verloren? "

New Password

New Password: string = "Neues Passwort"

No account?

No account? : string = "Kein Account? "

Password

Password: string = "Passwort"

Password attempts exceeded

Password attempts exceeded: string = "Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht"

Phone Number

Phone Number: string = "Telefonnummer"

Resend Code

Resend Code: string = "Code erneut senden"

Reset password

Reset password: string = "Passwort zurücksetzen"

Reset your password

Reset your password: string = "Zurücksetzen des Passworts"

Send Code

Send Code: string = "Code senden"

Sign In

Sign In: string = "Anmelden"

Sign Out

Sign Out: string = "Abmelden"

Sign Up

Sign Up: string = "Registrieren"

Sign in

Sign in: string = "Anmelden"

Sign in to your account

Sign in to your account: string = "Melden Sie sich mit Ihrem Account an"

Skip

Skip: string = "Überspringen"

Submit

Submit: string = "Abschicken"

User already exists

User already exists: string = "Dieser Benutzer existiert bereits"

User does not exist

User does not exist: string = "Dieser Benutzer existiert nicht"

Username

Username: string = "Benutzername"

Username cannot be empty

Username cannot be empty: string = "Benutzername darf nicht leer sein"

Verify

Verify: string = "Verifizieren"

Verify Contact

Verify Contact: string = "Kontakt verifizieren"

es

es: object

Account recovery requires verified contact information

Account recovery requires verified contact information: string = "La recuperación de la cuenta requiere información de contacto verificada"

Back to Sign In

Back to Sign In: string = "Iniciar sesión"

Change Password

Change Password: string = "Cambia la contraseña"

Code

Code: string = "Código"

Confirm

Confirm: string = "Confirmar"

Confirm Sign In

Confirm Sign In: string = "Confirmar inicio de sesión"

Confirm Sign Up

Confirm Sign Up: string = "Confirmar Registración"

Confirm a Code

Confirm a Code: string = "Confirmar un código"

Confirmation Code

Confirmation Code: string = "Codigo de confirmación"

Create a new account

Create a new account: string = "Crear una cuenta nueva"

Email

Email: string = "Email"

Forgot Password

Forgot Password: string = "Se te olvidó la contraseña?"

Incorrect username or password

Incorrect username or password: string = "Nombre de usuario o contraseña incorrecta"

Invalid password format

Invalid password format: string = "Formato de contraseña inválido"

Invalid phone number format

Invalid phone number format: string = "Formato de número de teléfono inválido.Utilice el formato de número de teléfono +12345678900"

Loading...

Loading...: string = "Cargando..."

New Password

New Password: string = "Nueva contraseña"

Password

Password: string = "Contraseña"

Phone Number

Phone Number: string = "Número de teléfono"

Resend Code

Resend Code: string = "Mandar codigo otra vez"

Resend a Code

Resend a Code: string = "Reenviar un código"

Send Code

Send Code: string = "Enviar código"

Sign In

Sign In: string = "Iniciar sesíon"

Sign Out

Sign Out: string = "Desconectar"

Sign Up

Sign Up: string = "Regístrase"

Sign in to your account

Sign in to your account: string = "Iniciar sesíon"

Skip

Skip: string = "Omitir"

Submit

Submit: string = "Enviar"

User already exists

User already exists: string = "El usuario ya existe"

User does not exist

User does not exist: string = "El usuario no existe"

Username

Username: string = "Nombre de usuario"

Username cannot be empty

Username cannot be empty: string = "El campo de usuario no puede estar vacido"

Verify

Verify: string = "Verificar"

Verify Contact

Verify Contact: string = "Verificar contacto"

fr

fr: object

Account recovery requires verified contact information

Account recovery requires verified contact information: string = "La récupération du compte nécessite des informations de contact vérifiées"

An account with the given email already exists.

An account with the given email already exists.: string = "Un utilisateur avec cette adresse email existe déjà."

Back to Sign In

Back to Sign In: string = "Retour à la connexion"

Change Password

Change Password: string = "Changer le mot de passe"

Code

Code: string = "Code"

Confirm

Confirm: string = "Confirmer"

Confirm Sign In

Confirm Sign In: string = "Confirmer la connexion"

Confirm Sign Up

Confirm Sign Up: string = "Confirmer l'inscription"

Confirm a Code

Confirm a Code: string = "Confirmer un code"

Create Account

Create Account: string = "Créer un compte"

Create a new account

Create a new account: string = "Créer un nouveau compte"

Create account

Create account: string = "Créer un compte"

Email

Email: string = "Email"

Enter your password

Enter your password: string = "Saisissez votre mot de passe"

Enter your username

Enter your username: string = "Saisissez votre nom d'utilisateur"

Forgot Password

Forgot Password: string = "Mot de passe oublié"

Forgot your password?

Forgot your password? : string = "Mot de passe oublié ? "

Have an account?

Have an account? : string = "Déjà un compte ? "

Incorrect username or password

Incorrect username or password: string = "identifiant ou mot de passe incorrect"

Invalid password format

Invalid password format: string = "format de mot de passe invalide"

Invalid phone number format

Invalid phone number format: string = `Format de numéro de téléphone invalide.Veuillez utiliser un format de numéro de téléphone du +12345678900`

Loading...

Loading...: string = "S'il vous plaît, attendez"

New Password

New Password: string = "nouveau mot de passe"

No account?

No account? : string = "Pas de compte ? "

Password

Password: string = "Mot de passe"

Phone Number

Phone Number: string = "Numéro de téléphone"

Resend a Code

Resend a Code: string = "Renvoyer un code"

Reset password

Reset password: string = "Réinitialisez votre mot de passe"

Reset your password

Reset your password: string = "Réinitialisez votre mot de passe"

Send Code

Send Code: string = "Envoyer le code"

Sign In

Sign In: string = "Se connecter"

Sign Out

Sign Out: string = "Déconnexion"

Sign Up

Sign Up: string = "S'inscrire"

Sign in

Sign in: string = "Se connecter"

Sign in to your account

Sign in to your account: string = "Connectez-vous à votre compte"

Skip

Skip: string = "Sauter"

Submit

Submit: string = "Soumettre"

User already exists

User already exists: string = "L'utilisateur existe déjà"

User does not exist

User does not exist: string = "L'utilisateur n'existe pas"

Username

Username: string = "Nom d'utilisateur"

Username cannot be empty

Username cannot be empty: string = "Le nom d'utilisateur doit être renseigné"

Verify

Verify: string = "Vérifier"

Verify Contact

Verify Contact: string = "Vérifier le contact"

it

it: object

Account recovery requires verified contact information

Account recovery requires verified contact information: string = "Ripristino del conto richiede un account verificati"

An account with the given email already exists.

An account with the given email already exists.: string = "Un account con questa email esiste già."

Back to Sign In

Back to Sign In: string = "Torna alla Login"

Change Password

Change Password: string = "Cambia la password"

Code

Code: string = "Codice"

Confirm

Confirm: string = "Conferma"

Confirm Sign In

Confirm Sign In: string = "Conferma di applicazione"

Confirm Sign Up

Confirm Sign Up: string = "Registrazione Conferma"

Confirm a Code

Confirm a Code: string = "Codice Conferma"

Confirmation Code

Confirmation Code: string = "Codice di verifica"

Create Account

Create Account: string = "Crea account"

Create a new account

Create a new account: string = "Creare un nuovo account"

Create account

Create account: string = "Registrati"

Email

Email: string = "E-mail"

Enter your password

Enter your password: string = "Inserire la password"

Enter your username

Enter your username: string = "Inserisci il tuo nome utente"

Forgot Password

Forgot Password: string = "Password dimenticata"

Forgot your password?

Forgot your password?: string = "Password dimenticata?"

Have an account?

Have an account? : string = "Già registrato?"

Incorrect username or password

Incorrect username or password: string = "Nome utente o password errati"

Invalid password format

Invalid password format: string = "Formato della password non valido"

Invalid phone number format

Invalid phone number format: string = "Utilizzo non valido Telefonummern formattare un numero nel formato :. 12.345.678,9 mille"

Loading

Loading: string = "Caricamento in corso"

Lost your code?

Lost your code?: string = "Perso codice?"

New Password

New Password: string = "Nuova password"

No account?

No account? : string = "Nessun account?"

Password

Password: string = "Password"

Password attempts exceeded

Password attempts exceeded: string = "Il numero massimo di tentativi di accesso falliti è stato raggiunto"

Phone Number

Phone Number: string = "Numero di telefono"

Resend Code

Resend Code: string = "Codice Rispedisci"

Reset password

Reset password: string = "Ripristina password"

Reset your password

Reset your password: string = "Resetta password"

Send Code

Send Code: string = "Invia codice"

Sign In

Sign In: string = "Accesso"

Sign Out

Sign Out: string = "Esci"

Sign Up

Sign Up: string = "Iscriviti"

Sign in

Sign in: string = "Accesso"

Sign in to your account

Sign in to your account: string = "Accedi con il tuo account a"

Skip

Skip: string = "Salta"

Submit

Submit: string = "Sottoscrivi"

User already exists

User already exists: string = "Questo utente esiste già"

User does not exist

User does not exist: string = "Questo utente non esiste"

Username

Username: string = "Nome utente"

Username cannot be empty

Username cannot be empty: string = "Nome utente non può essere vuoto"

Verify

Verify: string = "Verifica"

Verify Contact

Verify Contact: string = "Contatto verifica"

zh

zh: object

Account recovery requires verified contact information

Account recovery requires verified contact information: string = "账户恢复需要验证过的联系方式"

Back to Sign In

Back to Sign In: string = "回到登录"

Change Password

Change Password: string = "改变密码"

Code

Code: string = "确认码"

Confirm

Confirm: string = "确认"

Confirm Sign In

Confirm Sign In: string = "确认登录"

Confirm Sign Up

Confirm Sign Up: string = "确认注册"

Confirm a Code

Confirm a Code: string = "确认码"

Email

Email: string = "邮箱"

Forgot Password

Forgot Password: string = "忘记密码"

Incorrect username or password

Incorrect username or password: string = "用户名或密码错误"

Invalid password format

Invalid password format: string = "密码格式错误"

Invalid phone number format

Invalid phone number format: string = "电话格式错误,请使用格式 +12345678900"

Loading...

Loading...: string = "请稍候"

New Password

New Password: string = "新密码"

Password

Password: string = "密码"

Phone Number

Phone Number: string = "电话"

Resend a Code

Resend a Code: string = "重发确认码"

Send Code

Send Code: string = "发送确认码"

Sign In

Sign In: string = "登录"

Sign Out

Sign Out: string = "退出"

Sign Up

Sign Up: string = "注册"

Skip

Skip: string = "跳过"

Submit

Submit: string = "提交"

User already exists

User already exists: string = "用户已经存在"

User does not exist

User does not exist: string = "用户不存在"

Username

Username: string = "用户名"

Verify

Verify: string = "验证"

Verify Contact

Verify Contact: string = "验证联系方式"

Const dummyMetadata

dummyMetadata: object

_deleted

_deleted: undefined = undefined!

_lastChangedAt

_lastChangedAt: undefined = undefined!

_version

_version: undefined = undefined!

Const errorMessages

errorMessages: object

deleteByPkWithCompositeKeyPresent

deleteByPkWithCompositeKeyPresent: string = "Models with composite primary keys cannot be deleted by a single key value, unless using a predicate. Use object literal syntax for composite keys instead: https://docs.amplify.aws/lib/datastore/advanced-workflows/q/platform/js/#querying-records-with-custom-primary-keys"

idEmptyString

idEmptyString: string = "An index field cannot contain an empty string value"

observeWithObjectLiteral

observeWithObjectLiteral: string = "Object literal syntax cannot be used with observe. Use a predicate instead: https://docs.amplify.aws/lib/datastore/data-access/q/platform/js/#predicates"

queryByPkWithCompositeKeyPresent

queryByPkWithCompositeKeyPresent: string = "Models with composite primary keys cannot be queried by a single key value. Use object literal syntax for composite keys instead: https://docs.amplify.aws/lib/datastore/advanced-workflows/q/platform/js/#querying-records-with-custom-primary-keys"

Const icons

icons: object

warning

warning: any = require('./warning.png')

Const labelMap

labelMap: object

email

email: string = "Email"

phone_number

phone_number: string = "Phone Number"

username

username: string = "Username"

Const logicalOperatorMap

logicalOperatorMap: object

beginsWith

beginsWith: string = "= 1"

between

between: string = "BETWEEN"

contains

contains: string = "> 0"

notContains

notContains: string = "= 0"

Const minWidth

minWidth: object

minWidth

minWidth: number = Platform.OS === 'android' ? 16 : 0

Const mutationErrorMap

mutationErrorMap: object

BadModel

  • BadModel(): false

BadRecord

  • BadRecord(error: Error): boolean

ConfigError

  • ConfigError(): false

Transient

  • Transient(error: Error): boolean

Unauthorized

  • Unauthorized(error: Error): boolean

Const negations

negations: object

Maps operators to negated operators. Used to facilitate propagation of negation down a tree of conditions.

and

and: string = "or"

contains

contains: string = "notContains"

eq

eq: string = "ne"

ge

ge: string = "lt"

gt

gt: string = "le"

le

le: string = "gt"

lt

lt: string = "ge"

ne

ne: string = "eq"

not

not: string = "and"

notContains

notContains: string = "contains"

or

or: string = "and"

Const opResultDefaults

opResultDefaults: object

items

items: undefined[] = []

nextToken

nextToken: null = null

startedAt

startedAt: null = null

Const parser

parser: object

Pure JS XML parser that can be used in Non-browser environments, like React Native and Node.js. This is the same XML parser implementation as used in AWS SDK S3 client. It depends on pure JavaScript XML parser library fast-xml-parser. Drop-in replacement for fast-xml-parser's XmlParser class used in the AWS SDK S3 client XML deserializer. This implementation is not tested against the full xml conformance test suite. It is only tested against the XML responses from S3. This implementation requires the DOMParser class in the runtime.

Ref: https://github.com/aws/aws-sdk-js-v3/blob/1e806ba3f4a83c9e3eb0b41a3a7092da93826b8f/clients/client-s3/src/protocols/Aws_restXml.ts#L12938-L12959

parse

  • parse(xmlStr: string): any
  • parse(xmlStr: string): any

Const partitionsInfo

partitionsInfo: object

This data is adapted from the partition file from AWS SDK shared utilities but remove some contents for bundle size concern. Information removed are dualStackDnsSuffix, supportDualStack, supportFIPS, restricted partitions, and list of regions for each partition other than global regions.

internal

partitions

partitions: object[] = [defaultPartition,{id: 'aws-cn',outputs: {dnsSuffix: 'amazonaws.com.cn',},regionRegex: '^cn\\-\\w+\\-\\d+$',regions: ['aws-cn-global'],},]

Const sortDirectionMap

sortDirectionMap: object

ASCENDING

ASCENDING: string = "ASC"

DESCENDING

DESCENDING: string = "DESC"

Const styles

styles: object

buttonMic

buttonMic: object

backgroundColor

backgroundColor: string = "#ffc266"

container

container: object

alignItems

alignItems: string = "center"

alignSelf

alignSelf: string = "stretch"

backgroundColor

backgroundColor: string = "#fff"

flex

flex: number = 1

flexDirection

flexDirection: string = "column"

justifyContent

justifyContent: string = "center"

inputContainer

inputContainer: object

flexDirection

flexDirection: string = "row"

itemBot

itemBot: object

alignSelf

alignSelf: string = "flex-start"

backgroundColor

backgroundColor: string = "#0099FF"

borderRadius

borderRadius: number = 15

color

color: string = "white"

margin

margin: number = 8

overflow

overflow: string = "hidden"

padding

padding: number = 8

textAlign

textAlign: string = "left"

itemMe

itemMe: object

alignSelf

alignSelf: string = "flex-end"

backgroundColor

backgroundColor: string = "#CCCCCC"

borderRadius

borderRadius: number = 15

margin

margin: number = 8

overflow

overflow: string = "hidden"

padding

padding: number = 8

textAlign

textAlign: string = "right"

list

list: object

alignSelf

alignSelf: string = "stretch"

flex

flex: number = 1

flexDirection

flexDirection: string = "column"

padding

padding: number = 5

textInput

textInput: object

flex

flex: number = 1

Const subscriptionErrorMap

subscriptionErrorMap: object

BadModel

  • BadModel(): false

BadRecord

  • BadRecord(): false

ConfigError

  • ConfigError(): false

Transient

  • Transient(observableError: Error): boolean

Unauthorized

  • Unauthorized(observableError: Error): boolean

Const syncErrorMap

syncErrorMap: object

BadModel

  • BadModel(): false

BadRecord

  • BadRecord(error: Error): boolean

ConfigError

  • ConfigError(): false

Transient

  • Transient(error: Error): boolean

Unauthorized

  • Unauthorized(error: Error): boolean

Const trackers

trackers: object

event

event: EventTracker = EventTracker

pageView

pageView: PageViewTracker = PageViewTracker

session

session: SessionTracker = SessionTracker

Const utils

utils: object

USER

isModelConstructor

isModelConstructor: isModelConstructor

isNonModelConstructor

isNonModelConstructor: isNonModelConstructor

traverseModel

traverseModel: traverseModel

validatePredicate

validatePredicate: validatePredicate