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

Gitter Chat Language grade: JavaScript build:started

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.

Notice:

Amplify@1.x.x has structural changes. For details please check Amplify Modularization.

Features / APIs

  • Authentication: APIs and building blocks for developers who want to create user authentication experiences.
  • Analytics: Easily collect analytics data for your app. Analytics data includes user sessions and other custom events that you want to track in your app.
  • API: Provides a simple solution when making HTTP requests. It provides an automatic, lightweight signing process which complies with AWS Signature Version 4.
  • GraphQL Client: Interact with your GraphQL server or AWS AppSync API with an easy-to-use & configured GraphQL client.
  • Storage: Provides a simple mechanism for managing user content for your app in public, protected or private storage buckets.
  • Push Notifications: Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.
  • Interactions: Create conversational bots powered by deep learning technologies.
  • PubSub: 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: Provides a solution for using AI and ML cloud services to enhance your application.

Visit our Web Site to learn more about AWS Amplify.

Installation

AWS Amplify is available as aws-amplify package on npm.

Web

$ npm install aws-amplify --save

or you could install the module you want to use individually:

$ npm install @aws-amplify/auth --save

React

If you are developing a React app, you can install an additional package aws-amplify-react containing Higher Order Components:

$ npm install aws-amplify --save
$ npm install aws-amplify-react --save

Angular

If you are developing an Angular app, you can install an additional package aws-amplify-angular. This package contains an Angular module with a provider and components:

$ npm install aws-amplify --save
$ npm install aws-amplify-angular --save

Visit our Installation Guide for Web to start building your web app.

Vue

If you are developing a Vue app, you can install an additional package aws-amplify-vue. This package contains a Vue plugin for the Amplify library along with Vue components:

$ npm install aws-amplify --save
$ npm install aws-amplify-vue --save

Visit our Installation Guide for Web to start building your Vue app.

React Native

For React Native development, install aws-amplify:

$ npm install aws-amplify --save

If you are developing a React Native app, you can install an additional package aws-amplify-react-native containing Higher Order Components:

$ npm install aws-amplify-react-native --save

Visit our Installation Guide for React Native to start building your web app.

Configuration

Somewhere in your app, preferably at the root level, configure Amplify with your resources.

Using AWS Resources

import Amplify from 'aws-amplify';
import aws_exports from './aws-exports';

Amplify.configure(aws_exports);

// or if you don't want to install all the categories
import Amplify from '@aws-amplify/core';
import Auth from '@aws-amplify/auth';
import aws_exports from './aws-exports';

// in this way you are only importing Auth and configuring it.
Amplify.configure(aws_exports);

Without AWS

Amplify.configure({
    API: {
        graphql_endpoint: 'https://www.example.com/my-graphql-endpoint',
    },
});

Examples

AWS Amplify supports many category scenarios such as Auth, Analytics, APIs and Storage as outlined in the Developer Guide. A couple of samples are below:

1. Collect user session metrics

By default, AWS Amplify can collect user session tracking data with a few lines of code:

import Analytics from '@aws-amplify/analytics';

Analytics.record('myCustomEvent');

See our Analytics Developer Guide for detailed information.

2. Add Authentication to your App

Add user sign up and sign in using two of the many methods available to the Auth class:

import Auth from '@aws-amplify/auth';

Auth.signUp({
    username: 'AmandaB',
    password: 'MyCoolPassword1!',
    attributes: {
        email: 'someemail@example.com',
    },
});

Auth.signIn(username, password)
    .then(success => console.log('successful sign in'))
    .catch(err => console.log(err));

See our Authentication Developer Guide for detailed information.

React / React Native

Adding authentication to your React or React Native app is as easy as wrapping your app's main component with our withAuthenticator higher order component. AWS Amplify will provide you customizable UI for common use cases such as user registration and login.

// For React
import { withAuthenticator } from 'aws-amplify-react';

// For React Native
import { withAuthenticator } from 'aws-amplify-react-native';

export default withAuthenticator(App);

Angular

To add authentication to your Angular app you can also use the built-in service provider and components:

// app.component.ts
import { AmplifyService }  from 'aws-amplify-angular';

...

constructor( public amplify:AmplifyService ) {
  // handle auth state changes
  this.amplify.authStateChange$
    .subscribe(authState => {
      this.authenticated = authState.state === 'signedIn';
      if (!authState.user) {
        this.user = null;
      } else {
        this.user = authState.user;
      }
  });
}

// app.component.html
<amplify-authenticator></amplify-authenticator>

See our Angular Guide for more details on Angular setup and usage.

3. Sign HTTP requests

AWS Amplify automatically signs your REST requests with AWS Signature Version 4 when using the API module:

import API from '@aws-amplify/api';

let apiName = 'MyApiName';
let path = '/path';
let options = {
  headers: {...} // OPTIONAL
}
API.get(apiName, path, options).then(response => {
  // Add your code here
});

See our API Developer Guide for detailed information.

4. GraphQL API Operations

To access a GraphQL API with your app, you need to make sure to configure the endpoint URL in your app’s configuration.

// configure a custom GraphQL endpoint
Amplify.configure({
    API: {
        graphql_endpoint: 'https://www.example.com/my-graphql-endpoint',
    },
});

// Or configure an AWS AppSync endpoint.
let myAppConfig = {
    // ...
    aws_appsync_graphqlEndpoint:
        'https://xxxxxx.appsync-api.us-east-1.amazonaws.com/graphql',
    aws_appsync_region: 'us-east-1',
    aws_appsync_authenticationType: 'API_KEY',
    aws_appsync_apiKey: 'da2-xxxxxxxxxxxxxxxxxxxxxxxxxx',
    // ...
};

Amplify.configure(myAppConfig);

queries

import API, { graphqlOperation } from '@aws-amplify/api';

const ListEvents = `query ListEvents {
  listEvents {
    items {
      id
      where
      description
    }
  }
}`;

const allEvents = await API.graphql(graphqlOperation(ListEvents));

mutations

import API, { graphqlOperation } from '@aws-amplify/api';

const CreateEvent = `mutation CreateEvent($name: String!, $when: String!, $where: String!, $description: String!) {
  createEvent(name: $name, when: $when, where: $where, description: $description) {
    id
    name
    where
    when
    description
  }
}`;

const eventDetails = {
    name: 'Party tonight!',
    when: '8:00pm',
    where: 'Ballroom',
    description: 'Coming together as a team!',
};

const newEvent = await API.graphql(graphqlOperation(CreateEvent, eventDetails));

subscriptions

import API, { graphqlOperation } from '@aws-amplify/api';

const SubscribeToEventComments = `subscription subscribeToComments {
  subscribeToComments {
    commentId
    content
  }
}`;

const subscription = API.graphql(
    graphqlOperation(SubscribeToEventComments)
).subscribe({
    next: eventData => console.log(eventData),
});

See our GraphQL API Developer Guide for detailed information.

5. Upload and Download public or private content

AWS Amplify provides an easy-to-use API to store and get content from public or private storage folders:

Storage.put(key, fileObj, { level: 'private' })
    .then(result => console.log(result))
    .catch(err => console.log(err));

// Store data with specifying its MIME type
Storage.put(key, fileObj, {
    level: 'private',
    contentType: 'text/plain',
})
    .then(result => console.log(result))
    .catch(err => console.log(err));

See our Storage Developer Guide for detailed information.

Index

Modules

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

AllOperators

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

ArrayOperators

ArrayOperators: object

Type declaration

  • contains: T
  • notContains: T

AssociatedWith

AssociatedWith: object

Type declaration

  • associatedWith: string
  • connectionType: "HAS_MANY" | "HAS_ONE"

AuthErrorMessages

AuthErrorMessages: object

Type declaration

AuthorizationRule

AuthorizationRule: object

Type declaration

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

BooleanOperators

BooleanOperators: EqualityOperators<T>

ClientMetaData

ClientMetaData: object | undefined

Config

Config: object

Type declaration

  • [key: string]: string | number

ConflictHandler

ConflictHandler: function

Type declaration

DataStoreConfig

DataStoreConfig: object

Type declaration

  • Optional DataStore?: object
    • Optional conflictHandler?: ConflictHandler
    • Optional errorHandler?: function
    • Optional fullSyncInterval?: number
    • Optional maxRecordsToSync?: number
  • Optional conflictHandler?: ConflictHandler
  • Optional errorHandler?: function
  • Optional fullSyncInterval?: number
  • Optional maxRecordsToSync?: number

Private DelayFunction

DelayFunction: function

Type declaration

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

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

      Returns number | false

EndpointBuffer

EndpointBuffer: Array<EventObject>

EndpointFailureData

EndpointFailureData: object

Type declaration

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

EnumFieldType

EnumFieldType: object

Type declaration

  • enum: string

EqualityOperators

EqualityOperators: object

Type declaration

  • eq: T
  • ne: T

ErrorHandler

ErrorHandler: function

Type declaration

Event

Event: object

Type declaration

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

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

EventsBufferConfig

EventsBufferConfig: object

Type declaration

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

FederatedSignInOptions

FederatedSignInOptions: object

Type declaration

FederatedSignInOptionsCustom

FederatedSignInOptionsCustom: object

Type declaration

  • customProvider: string
  • Optional customState?: string

GraphQLCondition

GraphQLCondition: Partial<object | object>

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

IdentifySource

InternalSchema

InternalSchema: object

Type declaration

LegacyCallback

LegacyCallback: object

Type declaration

LegacyProvider

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

MapTypeToOperands

MapTypeToOperands: object

Type declaration

ModelAssociation

ModelAttribute

ModelAttribute: object

Type declaration

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

ModelAttributes

ModelAttributes: ModelAttribute[]

ModelField

ModelField: object

Type declaration

ModelFieldType

ModelFieldType: object

Type declaration

  • model: string

ModelFields

ModelFields: Record<string, ModelField>

ModelInit

ModelInit: Omit<T, "id">

ModelInstanceCreator

ModelInstanceCreator: typeof modelInstanceCreator

ModelInstanceMetadata

ModelInstanceMetadata: object

Type declaration

  • _deleted: boolean
  • _lastChangedAt: number
  • _version: number
  • id: string

ModelPredicate

ModelPredicate: object & PredicateGroups<M>

MutableModel

MutableModel: Omit<object, "id">

NamespaceResolver

NamespaceResolver: function

Type declaration

NetworkStatus

NetworkStatus: object

Type declaration

  • online: boolean

NumberOperators

NumberOperators: ScalarNumberOperators<T> & object

OAuthOpts

ObserverQuery

ObserverQuery: object

Type declaration

  • observer: SubscriptionObserver<any>
  • query: string
  • Optional startAckTimeoutId?: any
  • Optional subscriptionFailedCallback?: Function
  • Optional subscriptionReadyCallback?: Function
  • subscriptionState: SUBSCRIPTION_STATUS
  • variables: object

PaginationInput

PaginationInput: object

Type declaration

  • Optional limit?: number
  • Optional page?: number

PersistentModel

PersistentModel: Readonly<object & Record<string, any>>

PersistentModelConstructor

PersistentModelConstructor: object

Type declaration

PhoneFieldOutput

PhoneFieldOutput: object

Type declaration

  • country_code: string
  • local_phone_number: string

Polygon

Polygon: Point[]

PredicateExpression

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

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

Properties

Properties: object

Type declaration

  • [key: string]: any

PutEventsResponse

PutEventsResponse: object

Type declaration

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

RelationType

RelationType: object

Type declaration

  • fieldName: string
  • modelName: string
  • relationType: "HAS_ONE" | "HAS_MANY" | "BELONGS_TO"
  • Optional targetName?: string

RelationshipType

RelationshipType: object

Type declaration

  • [modelName: string]: object

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

SchemaModels

SchemaModels: Record<string, SchemaModel>

SchemaNamespace

SchemaNamespace: UserSchema & object

SchemaNamespaces

SchemaNamespaces: Record<string, SchemaNamespace>

SignInOpts

StartParams

StartParams: object

Type declaration

  • fullSyncInterval: number

StorageFacade

StorageFacade: Omit<Adapter, "setUp">

StorageSubscriptionMessage

StorageSubscriptionMessage: SubscriptionMessage<any> & object

StringOperators

StringOperators: ScalarNumberOperators<T> & object

SubscriptionMessage

SubscriptionMessage: object

Type declaration

SumerianSceneOptions

SumerianSceneOptions: SceneOptions & object

SyncConflict

SyncConflict: object

Type declaration

SyncError

SyncError: object

Type declaration

SyncModelPage

SyncModelPage: object

Type declaration

SystemComponent

SystemComponent: object

Type declaration

TargetNameAssociation

TargetNameAssociation: object

Type declaration

  • connectionType: "BELONGS_TO"
  • targetName: string

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

UserSchema

UserSchema: object

Type declaration

UsernameFieldOutput

UsernameFieldOutput: object

Type declaration

  • Optional country_code?: string
  • Optional email?: string
  • Optional local_phone_number?: string
  • Optional username?: string

UsernamePasswordOpts

UsernamePasswordOpts: object

Type declaration

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

Variables

Const ACCEPTED_CODES

ACCEPTED_CODES: number[] = [202]

Const AMPLIFY_SYMBOL

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

Const API

API: APIClass = _instance

Const AUTHENTICATOR_AUTHSTATE

AUTHENTICATOR_AUTHSTATE: "amplify-authenticator-authState" = "amplify-authenticator-authState"

Const AmazonButton

AmazonButton: (Anonymous class) = withAmazon(Button)

Const AmazonSignInButton

AmazonSignInButton: object

Type declaration

Const Analytics

Analytics: AnalyticsClass = _instance

Const AsyncStorage

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

Const Auth

Auth: AuthClass = _instance

Const Auth0Button

Auth0Button: (Anonymous class) = withAuth0(Button)

Const BAD_REQUEST_CODE

BAD_REQUEST_CODE: 400 = 400

Const BEACON_SUPPORTED

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

Const BUFFER_SIZE

BUFFER_SIZE: 1000 = 1000

Const Base64

Base64: any = require('crypto-js/enc-base64')

Const CACHE_EXPIRY_IN_DAYS

CACHE_EXPIRY_IN_DAYS: 7 = 7

Const CONNECTION_INIT_TIMEOUT

CONNECTION_INIT_TIMEOUT: 15000 = 15000

Time in milleseconds to wait for GQL_CONNECTION_INIT message

Const CREDENTIALS_TTL

CREDENTIALS_TTL: number = 50 * 60 * 1000

Const DATASTORE

DATASTORE: DATASTORE = NAMESPACES.DATASTORE

Const DB_NAME

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

Const DEFAULT_ALGORITHM

DEFAULT_ALGORITHM: "AWS4-HMAC-SHA256" = "AWS4-HMAC-SHA256"

Const DEFAULT_CACHE_PREFIX

DEFAULT_CACHE_PREFIX: "peronslize" = "peronslize"

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_RECORDS_TO_SYNC

DEFAULT_MAX_RECORDS_TO_SYNC: 10000 = 10000

Const DEFAULT_MSG

DEFAULT_MSG: "Authentication Error" = "Authentication Error"

Const DEFAULT_PAGINATION_LIMIT

DEFAULT_PAGINATION_LIMIT: 100 = 100

Const DEFAULT_PORT

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

Const DEFAULT_PROVIDER

DEFAULT_PROVIDER: "AWSS3" = "AWSS3"

Const DEFAULT_PROVIDER_NAME

DEFAULT_PROVIDER_NAME: "SumerianProvider" = "SumerianProvider"

Const DELIMITER

DELIMITER: "." = "."

Const DISCARD

DISCARD: unique symbol = Symbol('DISCARD')

Const Default_Track_Events

Default_Track_Events: string[] = ['componentDidMount','componentDidUpdate','compomentWillUnmount','compomentDidCatch','render',]

Const EXPIRED_TOKEN_CODE

EXPIRED_TOKEN_CODE: "ExpiredTokenException" = "ExpiredTokenException"

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 FacebookButton

FacebookButton: (Anonymous class) = withFacebook(Button)

Const FacebookSignInButton

FacebookSignInButton: object

Type declaration

Const GoogleButton

GoogleButton: (Anonymous class) = withGoogle(Button)

Const GoogleSignInButton

GoogleSignInButton: object

Type declaration

Const HTTPS_PORT

HTTPS_PORT: "443" = "443"

Const HTTP_PORT

HTTP_PORT: "80" = "80"

Const Hub

Hub: HubClass = new HubClass('__default__')

Const IDENTIFY_EVENT

IDENTIFY_EVENT: "Identify" = "Identify"

Const INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER

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

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 IOT_SERVICE_NAME

IOT_SERVICE_NAME: "iotdevicegateway" = "iotdevicegateway"

LexAudio

LexAudio: any

Const Linking

Linking: object

Type declaration

Const MAX_ATTEMPTS

MAX_ATTEMPTS: 10 = 10

Const MAX_DELAY_MS

MAX_DELAY_MS: 5000 = 5000

Const MEMORY_KEY_PREFIX

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

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/png', ext: 'png' },{ type: 'image/gif', ext: 'gif' },{ type: 'image/jpeg', ext: 'jpg' },{ type: 'image/jpeg', ext: 'jpeg' },{ type: 'image/bmp', ext: 'bmp' },{ type: 'image/x-icon', ext: 'ico' },{ type: 'image/tiff', ext: 'tif' },{ type: 'image/tiff', ext: 'tiff' },{ type: 'image/svg+xml', ext: 'svg' },{ 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 MapEntries

MapEntries: (string | RegExp)[][] = [['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 NON_RETRYABLE_CODES

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

Const OAuthButton

OAuthButton: (Anonymous class) = withOAuth(Button)

Const OAuthSignInButton

OAuthSignInButton: object

Type declaration

OS

OS: any

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 QRCode

QRCode: any = require('qrcode.react')

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 RNPushNotification

RNPushNotification: any = NativeModules.RNPushNotification

Const SCENE_CONTAINER_DOM_ID

SCENE_CONTAINER_DOM_ID: "scene-container-dom-id" = "scene-container-dom-id"

Const SCENE_DOM_ID

SCENE_DOM_ID: "scene-dom-id" = "scene-dom-id"

Const SELF

SELF: "_self" = "_self"

Const SERVICE_NAME

SERVICE_NAME: "iotdevicegateway" = "iotdevicegateway"

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

SHA256: any = require('crypto-js/sha256')

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 SUMERIAN_SERVICE_NAME

SUMERIAN_SERVICE_NAME: "sumerian" = "sumerian"

Const SYNC

SYNC: SYNC = NAMESPACES.SYNC

Const TIMER_INTERVAL

TIMER_INTERVAL: number = 30 * 1000

Const UPDATE_ENDPOINT

UPDATE_ENDPOINT: "_update_endpoint" = "_update_endpoint"

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"

Let _config

_config: any = null

Let _i18n

_i18n: any = null

Let _instance

_instance: XRClass = null

Const a

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

Let amplifyConfig

amplifyConfig: Record<string, any>

Let analyticsConfigured

analyticsConfigured: boolean = false

Const anyGlobal

anyGlobal: any = global as any

Let audioControl

audioControl: any

Let authConfigured

authConfigured: boolean = false

Const cache

cache: object

Type declaration

Const classNamespaceMap

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

Const components

components: (AuthenticatorIonicComponent | ConfirmSignInComponentIonic | ConfirmSignUpComponentIonic | ForgotPasswordComponentIonic | GreetingComponentIonic | SignInComponentIonic | SignUpComponentIonic | UsernameFieldComponentIonic | PhoneFieldComponentIonic | RequireNewPasswordComponentIonic | PhotoPickerIonicComponent | S3AlbumComponentIonic | S3ImageComponentIonic | ChatbotComponentIonic | SumerianSceneComponentIonic | SumerianSceneLoadingComponentIonic)[] = [AuthenticatorIonicComponent,ConfirmSignInComponentIonic,ConfirmSignUpComponentIonic,ForgotPasswordComponentIonic,GreetingComponentIonic,SignInComponentIonic,SignUpComponentIonic,UsernameFieldComponentIonic,PhoneFieldComponentIonic,RequireNewPasswordComponentIonic,PhotoPickerIonicComponent,S3AlbumComponentIonic,S3ImageComponentIonic,ChatbotComponentIonic,SumerianSceneComponentIonic,SumerianSceneLoadingComponentIonic,]

Let conflictHandler

conflictHandler: ConflictHandler

Const countrylist

countrylist: object[] = [{ countryCode: 'US', value: '1', label: 'USA (+1)' },{ countryCode: 'GB', value: '44', label: 'UK (+44)' },{ countryCode: 'DZ', value: '213', label: 'Algeria (+213)' },{ countryCode: 'AD', value: '376', label: 'Andorra (+376)' },{ countryCode: 'AO', value: '244', label: 'Angola (+244)' },{ countryCode: 'AI', value: '1264', label: 'Anguilla (+1264)' },{ countryCode: 'AG', value: '1268', label: 'Antigua & Barbuda (+1268)' },{ countryCode: 'AR', value: '54', label: 'Argentina (+54)' },{ countryCode: 'AM', value: '374', label: 'Armenia (+374)' },{ countryCode: 'AW', value: '297', label: 'Aruba (+297)' },{ countryCode: 'AU', value: '61', label: 'Australia (+61)' },{ countryCode: 'AT', value: '43', label: 'Austria (+43)' },{ countryCode: 'AZ', value: '994', label: 'Azerbaijan (+994)' },{ countryCode: 'BS', value: '1242', label: 'Bahamas (+1242)' },{ countryCode: 'BH', value: '973', label: 'Bahrain (+973)' },{ countryCode: 'BD', value: '880', label: 'Bangladesh (+880)' },{ countryCode: 'BB', value: '1246', label: 'Barbados (+1246)' },{ countryCode: 'BY', value: '375', label: 'Belarus (+375)' },{ countryCode: 'BE', value: '32', label: 'Belgium (+32)' },{ countryCode: 'BZ', value: '501', label: 'Belize (+501)' },{ countryCode: 'BJ', value: '229', label: 'Benin (+229)' },{ countryCode: 'BM', value: '1441', label: 'Bermuda (+1441)' },{ countryCode: 'BT', value: '975', label: 'Bhutan (+975)' },{ countryCode: 'BO', value: '591', label: 'Bolivia (+591)' },{ countryCode: 'BA', value: '387', label: 'Bosnia Herzegovina (+387)' },{ countryCode: 'BW', value: '267', label: 'Botswana (+267)' },{ countryCode: 'BR', value: '55', label: 'Brazil (+55)' },{ countryCode: 'BN', value: '673', label: 'Brunei (+673)' },{ countryCode: 'BG', value: '359', label: 'Bulgaria (+359)' },{ countryCode: 'BF', value: '226', label: 'Burkina Faso (+226)' },{ countryCode: 'BI', value: '257', label: 'Burundi (+257)' },{ countryCode: 'KH', value: '855', label: 'Cambodia (+855)' },{ countryCode: 'CM', value: '237', label: 'Cameroon (+237)' },{ countryCode: 'CA', value: '1', label: 'Canada (+1)' },{ countryCode: 'CV', value: '238', label: 'Cape Verde Islands (+238)' },{ countryCode: 'KY', value: '1345', label: 'Cayman Islands (+1345)' },{ countryCode: 'CF', value: '236', label: 'Central African Republic (+236)' },{ countryCode: 'CL', value: '56', label: 'Chile (+56)' },{ countryCode: 'CN', value: '86', label: 'China (+86)' },{ countryCode: 'CO', value: '57', label: 'Colombia (+57)' },{ countryCode: 'KM', value: '269', label: 'Comoros (+269)' },{ countryCode: 'CG', value: '242', label: 'Congo (+242)' },{ countryCode: 'CK', value: '682', label: 'Cook Islands (+682)' },{ countryCode: 'CR', value: '506', label: 'Costa Rica (+506)' },{ countryCode: 'HR', value: '385', label: 'Croatia (+385)' },{ countryCode: 'CU', value: '53', label: 'Cuba (+53)' },{ countryCode: 'CW', value: '599', label: 'Curacao (+599)' },{ countryCode: 'CY', value: '90392', label: 'Cyprus North (+90392)' },{ countryCode: 'CY', value: '357', label: 'Cyprus South (+357)' },{ countryCode: 'CZ', value: '420', label: 'Czech Republic (+420)' },{ countryCode: 'DK', value: '45', label: 'Denmark (+45)' },{ countryCode: 'DJ', value: '253', label: 'Djibouti (+253)' },{ countryCode: 'DM', value: '1809', label: 'Dominica (+1809)' },{ countryCode: 'DO', value: '1809', label: 'Dominican Republic (+1809)' },{ countryCode: 'EC', value: '593', label: 'Ecuador (+593)' },{ countryCode: 'EG', value: '20', label: 'Egypt (+20)' },{ countryCode: 'SV', value: '503', label: 'El Salvador (+503)' },{ countryCode: 'GQ', value: '240', label: 'Equatorial Guinea (+240)' },{ countryCode: 'ER', value: '291', label: 'Eritrea (+291)' },{ countryCode: 'EE', value: '372', label: 'Estonia (+372)' },{ countryCode: 'ET', value: '251', label: 'Ethiopia (+251)' },{ countryCode: 'FK', value: '500', label: 'Falkland Islands (+500)' },{ countryCode: 'FO', value: '298', label: 'Faroe Islands (+298)' },{ countryCode: 'FJ', value: '679', label: 'Fiji (+679)' },{ countryCode: 'FI', value: '358', label: 'Finland (+358)' },{ countryCode: 'FR', value: '33', label: 'France (+33)' },{ countryCode: 'GF', value: '594', label: 'French Guiana (+594)' },{ countryCode: 'PF', value: '689', label: 'French Polynesia (+689)' },{ countryCode: 'GA', value: '241', label: 'Gabon (+241)' },{ countryCode: 'GM', value: '220', label: 'Gambia (+220)' },{ countryCode: 'GE', value: '7880', label: 'Georgia (+7880)' },{ countryCode: 'DE', value: '49', label: 'Germany (+49)' },{ countryCode: 'GH', value: '233', label: 'Ghana (+233)' },{ countryCode: 'GI', value: '350', label: 'Gibraltar (+350)' },{ countryCode: 'GR', value: '30', label: 'Greece (+30)' },{ countryCode: 'GL', value: '299', label: 'Greenland (+299)' },{ countryCode: 'GD', value: '1473', label: 'Grenada (+1473)' },{ countryCode: 'GP', value: '590', label: 'Guadeloupe (+590)' },{ countryCode: 'GU', value: '671', label: 'Guam (+671)' },{ countryCode: 'GT', value: '502', label: 'Guatemala (+502)' },{ countryCode: 'GN', value: '224', label: 'Guinea (+224)' },{ countryCode: 'GW', value: '245', label: 'Guinea - Bissau (+245)' },{ countryCode: 'GY', value: '592', label: 'Guyana (+592)' },{ countryCode: 'HT', value: '509', label: 'Haiti (+509)' },{ countryCode: 'HN', value: '504', label: 'Honduras (+504)' },{ countryCode: 'HK', value: '852', label: 'Hong Kong (+852)' },{ countryCode: 'HU', value: '36', label: 'Hungary (+36)' },{ countryCode: 'IS', value: '354', label: 'Iceland (+354)' },{ countryCode: 'IN', value: '91', label: 'India (+91)' },{ countryCode: 'ID', value: '62', label: 'Indonesia (+62)' },{ countryCode: 'IR', value: '98', label: 'Iran (+98)' },{ countryCode: 'IQ', value: '964', label: 'Iraq (+964)' },{ countryCode: 'IE', value: '353', label: 'Ireland (+353)' },{ countryCode: 'IL', value: '972', label: 'Israel (+972)' },{ countryCode: 'IT', value: '39', label: 'Italy (+39)' },{ countryCode: 'JM', value: '1876', label: 'Jamaica (+1876)' },{ countryCode: 'JP', value: '81', label: 'Japan (+81)' },{ countryCode: 'JO', value: '962', label: 'Jordan (+962)' },{ countryCode: 'KZ', value: '7', label: 'Kazakhstan (+7)' },{ countryCode: 'KE', value: '254', label: 'Kenya (+254)' },{ countryCode: 'KI', value: '686', label: 'Kiribati (+686)' },{ countryCode: 'KP', value: '850', label: 'Korea North (+850)' },{ countryCode: 'KR', value: '82', label: 'Korea South (+82)' },{ countryCode: 'KW', value: '965', label: 'Kuwait (+965)' },{ countryCode: 'KG', value: '996', label: 'Kyrgyzstan (+996)' },{ countryCode: 'LA', value: '856', label: 'Laos (+856)' },{ countryCode: 'LV', value: '371', label: 'Latvia (+371)' },{ countryCode: 'LB', value: '961', label: 'Lebanon (+961)' },{ countryCode: 'LS', value: '266', label: 'Lesotho (+266)' },{ countryCode: 'LR', value: '231', label: 'Liberia (+231)' },{ countryCode: 'LY', value: '218', label: 'Libya (+218)' },{ countryCode: 'LI', value: '417', label: 'Liechtenstein (+417)' },{ countryCode: 'LT', value: '370', label: 'Lithuania (+370)' },{ countryCode: 'LU', value: '352', label: 'Luxembourg (+352)' },{ countryCode: 'MO', value: '853', label: 'Macao (+853)' },{ countryCode: 'MK', value: '389', label: 'Macedonia (+389)' },{ countryCode: 'MG', value: '261', label: 'Madagascar (+261)' },{ countryCode: 'MW', value: '265', label: 'Malawi (+265)' },{ countryCode: 'MY', value: '60', label: 'Malaysia (+60)' },{ countryCode: 'MV', value: '960', label: 'Maldives (+960)' },{ countryCode: 'ML', value: '223', label: 'Mali (+223)' },{ countryCode: 'MT', value: '356', label: 'Malta (+356)' },{ countryCode: 'MH', value: '692', label: 'Marshall Islands (+692)' },{ countryCode: 'MQ', value: '596', label: 'Martinique (+596)' },{ countryCode: 'MR', value: '222', label: 'Mauritania (+222)' },{ countryCode: 'YT', value: '269', label: 'Mayotte (+269)' },{ countryCode: 'MX', value: '52', label: 'Mexico (+52)' },{ countryCode: 'FM', value: '691', label: 'Micronesia (+691)' },{ countryCode: 'MD', value: '373', label: 'Moldova (+373)' },{ countryCode: 'MC', value: '377', label: 'Monaco (+377)' },{ countryCode: 'MN', value: '976', label: 'Mongolia (+976)' },{ countryCode: 'MS', value: '1664', label: 'Montserrat (+1664)' },{ countryCode: 'MA', value: '212', label: 'Morocco (+212)' },{ countryCode: 'MZ', value: '258', label: 'Mozambique (+258)' },{ countryCode: 'MN', value: '95', label: 'Myanmar (+95)' },{ countryCode: 'NA', value: '264', label: 'Namibia (+264)' },{ countryCode: 'NR', value: '674', label: 'Nauru (+674)' },{ countryCode: 'NP', value: '977', label: 'Nepal (+977)' },{ countryCode: 'NL', value: '31', label: 'Netherlands (+31)' },{ countryCode: 'NC', value: '687', label: 'New Caledonia (+687)' },{ countryCode: 'NZ', value: '64', label: 'New Zealand (+64)' },{ countryCode: 'NI', value: '505', label: 'Nicaragua (+505)' },{ countryCode: 'NE', value: '227', label: 'Niger (+227)' },{ countryCode: 'NG', value: '234', label: 'Nigeria (+234)' },{ countryCode: 'NU', value: '683', label: 'Niue (+683)' },{ countryCode: 'NF', value: '672', label: 'Norfolk Islands (+672)' },{ countryCode: 'NP', value: '670', label: 'Northern Marianas (+670)' },{ countryCode: 'NO', value: '47', label: 'Norway (+47)' },{ countryCode: 'OM', value: '968', label: 'Oman (+968)' },{ countryCode: 'PW', value: '680', label: 'Palau (+680)' },{ countryCode: 'PA', value: '507', label: 'Panama (+507)' },{ countryCode: 'PG', value: '675', label: 'Papua New Guinea (+675)' },{ countryCode: 'PY', value: '595', label: 'Paraguay (+595)' },{ countryCode: 'PE', value: '51', label: 'Peru (+51)' },{ countryCode: 'PH', value: '63', label: 'Philippines (+63)' },{ countryCode: 'PL', value: '48', label: 'Poland (+48)' },{ countryCode: 'PT', value: '351', label: 'Portugal (+351)' },{ countryCode: 'PR', value: '1787', label: 'Puerto Rico (+1787)' },{ countryCode: 'QA', value: '974', label: 'Qatar (+974)' },{ countryCode: 'RE', value: '262', label: 'Reunion (+262)' },{ countryCode: 'RO', value: '40', label: 'Romania (+40)' },{ countryCode: 'RU', value: '7', label: 'Russia (+7)' },{ countryCode: 'RW', value: '250', label: 'Rwanda (+250)' },{ countryCode: 'SM', value: '378', label: 'San Marino (+378)' },{ countryCode: 'ST', value: '239', label: 'Sao Tome & Principe (+239)' },{ countryCode: 'SA', value: '966', label: 'Saudi Arabia (+966)' },{ countryCode: 'SN', value: '221', label: 'Senegal (+221)' },{ countryCode: 'CS', value: '381', label: 'Serbia (+381)' },{ countryCode: 'SC', value: '248', label: 'Seychelles (+248)' },{ countryCode: 'SL', value: '232', label: 'Sierra Leone (+232)' },{ countryCode: 'SX', value: '1', label: 'Sint Maarten (+1)' },{ countryCode: 'SG', value: '65', label: 'Singapore (+65)' },{ countryCode: 'SK', value: '421', label: 'Slovak Republic (+421)' },{ countryCode: 'SI', value: '386', label: 'Slovenia (+386)' },{ countryCode: 'SB', value: '677', label: 'Solomon Islands (+677)' },{ countryCode: 'SO', value: '252', label: 'Somalia (+252)' },{ countryCode: 'ZA', value: '27', label: 'South Africa (+27)' },{ countryCode: 'ES', value: '34', label: 'Spain (+34)' },{ countryCode: 'LK', value: '94', label: 'Sri Lanka (+94)' },{ countryCode: 'SH', value: '290', label: 'St. Helena (+290)' },{ countryCode: 'KN', value: '1869', label: 'St. Kitts (+1869)' },{ countryCode: 'SC', value: '1758', label: 'St. Lucia (+1758)' },{ countryCode: 'SD', value: '249', label: 'Sudan (+249)' },{ countryCode: 'SR', value: '597', label: 'Suriname (+597)' },{ countryCode: 'SZ', value: '268', label: 'Swaziland (+268)' },{ countryCode: 'SE', value: '46', label: 'Sweden (+46)' },{ countryCode: 'CH', value: '41', label: 'Switzerland (+41)' },{ countryCode: 'SI', value: '963', label: 'Syria (+963)' },{ countryCode: 'TW', value: '886', label: 'Taiwan (+886)' },{ countryCode: 'TJ', value: '7', label: 'Tajikstan (+7)' },{ countryCode: 'TH', value: '66', label: 'Thailand (+66)' },{ countryCode: 'TG', value: '228', label: 'Togo (+228)' },{ countryCode: 'TO', value: '676', label: 'Tonga (+676)' },{ countryCode: 'TT', value: '1868', label: 'Trinidad & Tobago (+1868)' },{ countryCode: 'TN', value: '216', label: 'Tunisia (+216)' },{ countryCode: 'TR', value: '90', label: 'Turkey (+90)' },{ countryCode: 'TM', value: '7', label: 'Turkmenistan (+7)' },{ countryCode: 'TM', value: '993', label: 'Turkmenistan (+993)' },{ countryCode: 'TC', value: '1649', label: 'Turks & Caicos Islands (+1649)' },{ countryCode: 'TV', value: '688', label: 'Tuvalu (+688)' },{ countryCode: 'UG', value: '256', label: 'Uganda (+256)' },{ countryCode: 'UA', value: '380', label: 'Ukraine (+380)' },{ countryCode: 'AE', value: '971', label: 'United Arab Emirates (+971)' },{ countryCode: 'UY', value: '598', label: 'Uruguay (+598)' },{ countryCode: 'UZ', value: '7', label: 'Uzbekistan (+7)' },{ countryCode: 'VU', value: '678', label: 'Vanuatu (+678)' },{ countryCode: 'VA', value: '379', label: 'Vatican City (+379)' },{ countryCode: 'VE', value: '58', label: 'Venezuela (+58)' },{ countryCode: 'VN', value: '84', label: 'Vietnam (+84)' },{ countryCode: 'VG', value: '84', label: 'Virgin Islands - British (+1284)' },{ countryCode: 'VI', value: '84', label: 'Virgin Islands - US (+1340)' },{ countryCode: 'WF', value: '681', label: 'Wallis and Futuna (+681)' },{ countryCode: 'YE', value: '969', label: 'Yemen (North) (+969)' },{ countryCode: 'YE', value: '967', label: 'Yemen (South) (+967)' },{ countryCode: 'ZM', value: '260', label: 'Zambia (+260)' },{ countryCode: 'ZW', value: '263', label: 'Zimbabwe (+263)' },]

Const crypto

crypto: any = AWS['util'].crypto

Let dataMemory

dataMemory: object

Type declaration

Let dataStoreClasses

dataStoreClasses: object

Type declaration

Let endpointUpdated

endpointUpdated: boolean = false

Let errorHandler

errorHandler: function

Type declaration

Const eventBuilder

eventBuilder: EventStreamMarshaller = new EventStreamMarshaller(toUtf8, fromUtf8)

Let fullSyncInterval

fullSyncInterval: number

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.

Let initialEventSent

initialEventSent: boolean = false

Const instance

instance: Credentials = new Credentials(null)

Const instancesMetadata

instancesMetadata: WeakSet<object> = new WeakSet<ModelInit<PersistentModel & Partial<ModelInstanceMetadata>>>()

Const lists

lists: MethodEmbed[] = []

Const localTestingStorageEndpoint

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

Const logger

logger: any = new Logger('XR')

Let maxRecordsToSync

maxRecordsToSync: number

Const metadataFields

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

Const nativeMatches

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

Const obj

obj: object

Type declaration

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

Const ownSymbol

ownSymbol: unique symbol = Symbol('sync')

Const packageInfo

packageInfo: any = require('../../package.json')

Const predicatesAllSet

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

Let privateModeCheckResult

privateModeCheckResult: any

Const proto

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

Let schema

Const signUpWithEmailFields

signUpWithEmailFields: ISignUpField[] = [{label: 'Email',key: 'email',required: true,placeholder: 'Email',type: 'email',displayOrder: 1,},{label: 'Password',key: 'password',required: true,placeholder: 'Password',type: 'password',displayOrder: 2,},{label: 'Phone Number',key: 'phone_number',placeholder: 'Phone Number',required: true,displayOrder: 3,},]

Const signUpWithPhoneNumberFields

signUpWithPhoneNumberFields: ISignUpField[] = [{label: 'Phone Number',key: 'phone_number',placeholder: 'Phone Number',required: true,displayOrder: 1,},{label: 'Password',key: 'password',required: true,placeholder: 'Password',type: 'password',displayOrder: 2,},{label: 'Email',key: 'email',required: true,placeholder: 'Email',type: 'email',displayOrder: 3,},]

Let storage

storage: Storage

Let storageClasses

storageClasses: object

Type declaration

Let store

store: object

provide an object as the in-memory cache

Type declaration

Let sync

Let syncClasses

syncClasses: object

Type declaration

Let syncSubscription

syncSubscription: Subscription

Const template

template: string = `<div class={{AmplifyUI.loadingOverlay}}><div class={{AmplifyUI.loadingContainer}}><div class={{AmplifyUI.loadingLogo}} data-test="${sumerianScene.loadingLogo}"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"viewBox="0 0 2000 1195" style="enable-background:new 0 0 2000 1195;" xml:space="preserve"><g><path class="st0" d="M1026.8,146.2c-0.7,2.3-1.2,3.7-1.6,5.1C991.8,291,958.5,430.6,925,570.3c-1.6,6.7-3.8,13.3-6.2,19.7c-3.9,10.4-12,16.3-22.8,16.5c-26.3,0.5-52.6,0.5-78.9,0c-9.5-0.2-17.3-5.3-21.2-14.2c-4.1-9.2-7.6-18.7-10.6-28.3c-51-167.3-101.9-334.6-152.7-502c-2.5-8.4-4.7-16.9-6.2-25.5c-2-11.7,3.8-18.9,15.5-19c24.6-0.2,49.2,0.1,73.8,0.4c12,0.2,21.1,5.9,24.8,17.3c5.4,16.3,10.1,32.8,14.4,49.4c33.9,133.3,67.7,266.6,101.5,399.9c0.3,1.3,0.8,2.6,1.5,5c0.7-2,1.3-3,1.5-4.1c19.9-84.2,39.7-168.4,59.6-252.7c14.5-61.3,28.9-122.6,43.4-183.8c0.9-3.6,2.1-7.1,3.2-10.6c4-13.2,13.5-19.8,26.6-20.1c24.1-0.6,48.2-0.5,72.3,0c12.6,0.2,21.5,7.2,25.1,19.2c3.9,12.9,7.1,26,10.1,39.1c32.5,137.8,65,275.6,97.5,413.4c0.3,1.4,0.8,2.8,1.7,5.7c1.7-6.1,3-10.7,4.2-15.3c36.8-142.6,73.6-285.2,110.5-427.8c1.4-5.5,3.7-10.8,5.7-16.2c4.5-12,13.8-17.8,26.1-18.1c21.7-0.6,43.5-0.5,65.2-0.7c2.2,0,4.4,0,6.6,0.3c9.9,1,14.9,5.9,14.3,15.9c-0.4,7.5-1.8,15.1-4.1,22.3c-33.5,107.9-67.2,215.6-100.9,323.5c-20.5,65.7-41,131.4-61.6,197.1c-1.3,4-2.8,7.9-4.3,11.9c-4.9,12.9-14.9,19.1-28.1,19.4c-23.9,0.5-47.9,0.4-71.8,0c-13.6-0.2-23.3-7.1-27.2-20.2c-4.5-15.5-8.3-31.2-12.1-46.9c-31.2-129.6-62.3-259.3-93.4-388.9C1028,150.1,1027.5,148.7,1026.8,146.2z"/><path class="st0" d="M995.7,1194.2c-23.1,0-46.2,0.8-69.3-0.2c-25.4-1.1-50.7-3.5-76-5.7c-77.9-7-154.6-20.9-230.3-40.5c-68.1-17.6-134.6-40.1-199.4-67.3C330.7,1042.5,245.3,996,164.5,941c-53.7-36.6-104.7-76.7-153-120.1c-3.5-3.1-6.6-6.8-9-10.8c-3.5-5.8-3.4-12.1,0.8-17.5c4.3-5.6,10.5-7.4,17.2-5.7c4.5,1.2,8.8,3.3,12.9,5.5c42.2,22.1,83.9,45.3,126.7,66.4c63.2,31.2,128.6,57.4,195.1,80.8c68.4,24,137.7,44.8,208.4,60.6c48.4,10.8,97.2,19.9,146,28.7c29.8,5.3,59.9,8.8,89.9,12.3c23.4,2.7,46.9,4.6,70.3,6.3c22.8,1.7,45.7,3.3,68.5,4c39.8,1.1,79.5,2.1,119.3,1.8c29.9-0.2,59.9-2,89.8-4c26.2-1.7,52.4-3.7,78.4-7.1c46.8-6.2,93.6-12.7,140.1-20.9c99-17.3,196-42.9,290.8-76.1c40.7-14.3,80.6-30.6,120.8-46.1c12-4.6,23.6-5.4,34.7,2c11.5,7.7,15.3,22.7,7.6,34.2c-4,6-9.6,11.4-15.4,15.7c-81,59.3-169.6,104.7-262.8,141.3c-77,30.2-156,53.6-237,70.3c-37.9,7.8-76.1,13.8-114.3,19.6c-24.7,3.7-49.7,6-74.7,8.2c-22.1,1.9-44.3,3.3-66.5,4.1c-17.8,0.7-35.7,0.1-53.6,0.1C995.7,1194.3,995.7,1194.2,995.7,1194.2z"/><path class="st0" d="M1714.8,0c39.2,0.9,85.7,8.5,130.2,26.1c9.3,3.7,17.9,9.3,26.1,15.1c9,6.4,13.3,15.9,13.4,27.1c0,12,0.1,23.9,0,35.9c0,2.5-0.4,5.1-1,7.5c-2.1,8.7-7.4,12.7-16.2,11.4c-5.7-0.9-11.6-2.6-16.8-5c-46.6-21.8-95.9-30.1-147-28.3c-21.5,0.8-42.6,3.5-62.7,11.9c-37.6,15.6-54.4,54.2-39.7,91c7.1,17.8,21.1,28.8,37.3,37.7c21.4,11.8,44.5,19.1,67.6,26.5c31.6,10,63.3,19.7,94.6,30.6c28.5,9.9,55.1,24,76.4,46.1c23.3,24.1,36.4,53.2,39.9,86.5c9.1,86.7-40.5,150.8-109.3,180.7c-38.9,16.8-79.7,24.4-122,24.6c-56.9,0.2-112-9.7-164.9-30.7c-9.4-3.8-18.3-9.3-26.9-14.8c-9.7-6.2-13.6-16.1-13.9-27.3c-0.4-13-0.3-26-0.1-38.9c0.3-14.9,8.1-21.1,22.5-17.3c8.2,2.2,16.2,5.6,24.1,9c52.7,22.5,107.7,31.7,164.8,29.6c24.9-0.9,49.4-4.7,72-16c29.7-14.9,45.7-38.5,44.5-72.4c-0.9-23.7-11.9-41.7-31.7-54.4c-17.2-10.9-36.1-18-55.4-24.1c-36.4-11.5-73.1-22.4-109.3-34.6c-30.8-10.4-58.7-26.2-81.4-50.2c-43.4-45.8-56.3-116.8-30.6-172.5c18.1-39.3,48.5-66.6,86.9-85.5C1624,6.4,1664.5,0,1714.8,0z"/><path class="st0" d="M1860.6,746.5c33.3,0.4,66.3,2.8,98.5,11.6c8.4,2.3,16.5,5.8,24.6,9.1c7.5,3.1,11.9,9.2,13.5,17.2c2.5,12.2,3.1,24.5,2.5,37.1c-1.2,24-5,47.5-10.5,70.8c-12.3,51.3-31.6,99.8-60.1,144.4c-16.5,25.9-36,49.3-59.4,69.2c-5.2,4.4-10.7,8.3-17.9,8.4c-6.8,0-10.7-3.5-10.3-10.2c0.2-4.1,1.3-8.3,2.9-12.1c17-42.7,33.7-85.6,47-129.7c7.6-25.2,14.3-50.6,16.5-76.9c0.7-8.8,0.1-17.9-1.1-26.7c-1.6-12-9.3-19.8-20.2-24.6c-12.5-5.4-25.8-8.2-39.2-9.1c-18.6-1.3-37.4-2.3-56-2c-20.7,0.4-41.3,2.1-62,3.7c-18.8,1.4-37.5,3.3-56.3,5.2c-9.9,1-19.7,2.4-29.5,3.6c-1,0.1-2,0.4-3,0.3c-4.8-0.2-9.7-0.8-12.4-5.4c-2.7-4.6-1.8-9.7,1.5-13.2c5.1-5.5,10.6-10.8,16.9-14.9c36.4-24,76.8-38.4,119.4-46.2c22.1-4,44.6-5.9,67-8.3C1842.1,746.9,1851.4,746.9,1860.6,746.5z"/><path class="st0" d="M591.6,541.4c-21.4-36.5-29.7-76.2-29.7-117.9c-0.1-70.3,0.1-140.6-0.1-211c-0.1-29.6-3.8-58.8-13-87.1c-15.6-48-45.4-83.2-92.4-102.9C424.8,9.3,391.7,3.9,357.9,2c-63.7-3.6-125.3,6.4-184.7,29.3c-11.7,4.5-23,10.3-34.3,16c-11.6,5.8-17.3,15.4-17.1,28.6c0.2,12.6-0.1,25.3,0,37.9c0,2.9,0.1,5.8,0.7,8.5c2,9.5,7.9,13.7,17.3,11.2c8.4-2.2,16.8-5,24.9-8.2c40.4-15.9,81.7-28.9,125.3-32.1c29.7-2.2,59.3-1.4,88.3,6.5c24.2,6.6,44.8,18.5,57.2,41.5c10.1,18.6,15.1,38.7,16.1,59.5c1.3,24.7,1,49.5,1.4,74.3c0,0.8-0.2,1.6-0.3,2.8c-16.1-3.3-31.5-6.6-47.1-9.5c-46.9-8.6-94.1-13.2-141.8-7.7c-33.5,3.9-65.4,12.9-94.4,30.5c-37.4,22.6-64.8,53.5-78.2,95.7c-10.9,34.3-11.9,69.4-4.4,104.4c12,56.1,44.4,96,97.9,117.4c41.8,16.6,85.2,17.2,128.9,9.5c57.4-10.1,104-39.3,142.3-82.5c1.3-1.5,2.7-2.9,4.3-4.8c1.7,3.4,3.1,6.2,4.5,9c10.4,21.4,22.2,42,38.5,59.7c11.2,12.1,24,14.5,37.5,5.8c14.5-9.3,28.8-18.8,42.9-28.6C597.7,567,600.3,556.1,591.6,541.4zM448.3,436.2c-7.1,29.5-25.4,50.8-49.1,68.2c-22,16.2-47.4,23.8-73.8,28.5c-20.7,3.6-41.6,4.4-62.3-0.2c-35.6-8-59.6-35.5-63.5-72.3c-2.3-21.9-1.9-43.5,7-64.1c11.9-27.6,34-43.2,61.9-51.5c21.4-6.4,43.4-7.9,63.7-7.5c41.1,0.2,79.8,5.3,117.9,14.4c1.6,0.4,4.1,2.4,4.1,3.7C454.7,382.5,454.7,409.6,448.3,436.2z"/></g></svg></div><div class={{AmplifyUI.loadingSceneName}} data-test="${sumerianScene.loadingSceneName}">{{sceneName}}</div><div *ngIf="sceneError" class={{AmplifyUI.sceneErrorText}} data-test="${sumerianScene.errorText}">{{sceneError}}</div><div *ngIf="!sceneError" class={{AmplifyUI.loadingBar}} data-test="${sumerianScene.loadingBar}"><div class={{AmplifyUI.loadingBarFill}} [ngStyle]="{ 'width': loadPercentage + '%' }"></div></div></div></div>`

Const topicSymbol

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

Const topologicallySortedModels

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

Const transparent1X1

transparent1X1: "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" = "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="

Const url

url: any = require('url')

Const urlLib

urlLib: any = require('url')

Let userClasses

userClasses: object

Type declaration

Const waitForInit

waitForInit: Promise<unknown> = new Promise((res, rej) => {if (!JS.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);}})

Const white1X1

white1X1: "data:image/gif;base64,R0lGODlhAQABAIAAAP7//wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" = "data:image/gif;base64,R0lGODlhAQABAIAAAP7//wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="

Functions

Const ActionRow

  • ActionRow(props: any): any
  • ActionRow(props: any): any

marginBottom

marginBottom: string = "15px"

AmplifyMessageMap

  • AmplifyMessageMap(message: any): any

Const Button

  • Button(props: any): any
  • Button(props: any): any
  • Button(props: any): Element
  • Button(props: any): Element
  • Button(props: any): Element
  • Button(props: any): Element
  • Button(props: any): Element

backgroundColor

backgroundColor: string = "#fff"

backgroundImage

backgroundImage: string = "none"

border

border: string = "1px solid transparent"

borderColor

borderColor: string = "#ccc"

borderRadius

borderRadius: string = "4px"

color

color: string = "#333"

cursor

cursor: string = "pointer"

display

display: string = "inline-block"

fontSize

fontSize: string = "14px"

fontWeight

fontWeight: number = 400

letterSpacing

letterSpacing: string = "1.1px"

lineHeight

lineHeight: string = "1.42857143"

marginBottom

marginBottom: string = "0"

minWidth

minWidth: string = "153px"

padding

padding: string = "6px 12px"

textAlign

textAlign: string = "center"

textTransform

textTransform: string = "uppercase"

touchAction

touchAction: string = "manipulation"

userSelect

userSelect: string = "none"

verticalAlign

verticalAlign: string = "middle"

whiteSpace

whiteSpace: string = "nowrap"

Const ButtonContent

  • ButtonContent(props: any): any

Const ButtonRow

  • ButtonRow(props: any): any

ChatBotInputs

  • ChatBotInputs(props: any): Element

ChatBotMicButton

  • ChatBotMicButton(props: any): Element

ChatBotTextButton

  • ChatBotTextButton(props: any): Element

ChatBotTextInput

  • ChatBotTextInput(props: any): Element

Const Checkbox

  • Checkbox(props: any): any

Const CheckboxRow

  • CheckboxRow(props: any): Element

Const Container

  • Container(props: any): any
  • Container(props: any): any

color

color: string = "#212529"

fontFamily

fontFamily: string = `-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`

fontWeight

fontWeight: string = "400"

lineHeight

lineHeight: string = "1.5"

paddingLeft

paddingLeft: string = "15px"

paddingRight

paddingRight: string = "15px"

textAlign

textAlign: string = "left"

Const EmptyContainer

  • EmptyContainer(__namedParameters: object): Element

Const ErrorSection

  • ErrorSection(props: any): any

backgroundColor

backgroundColor: string = "#f0ad4e"

border

border: string = "1px solid #eea236"

borderRadius

borderRadius: string = "4px"

color

color: string = "#fff"

marginBottom

marginBottom: string = "20px"

textAlign

textAlign: string = "left"

Const ErrorSectionContent

  • ErrorSectionContent(props: any): any

Const FormContainer

  • FormContainer(props: any): any
  • FormContainer(props: any): any

margin

margin: string = "5% auto 50px"

marginTop

marginTop: string = "20px"

textAlign

textAlign: string = "center"

Const FormRow

  • FormRow(props: any): any
  • FormRow(props: any): any

marginBottom

marginBottom: string = "15px"

Const FormSection

  • FormSection(props: any): Element
  • FormSection(props: any): Element

backgroundColor

backgroundColor: string = "#fff"

border

border: string = "1px solid #ddd"

borderRadius

borderRadius: string = "4px"

boxShadow

boxShadow: string = "1px 1px 4px 0 rgba(0,0,0,0.15)"

display

display: string = "inline-block"

marginBottom

marginBottom: string = "20px"

minWidth

minWidth: string = "380px"

padding

padding: string = "35px 40px"

position

position: string = "relative"

textAlign

textAlign: string = "left"

width

width: string = "400px"

Const IconButton

  • IconButton(props: any): Element

Const InputRow

  • InputRow(props: any): Element
  • InputRow(props: any): Element

Const Label

  • Label(props: any): any
  • Label(props: any): any

Const Link

  • Link(props: any): any
  • Link(props: any): any

Const Loading

  • Loading(props: any): Element

constructor

showComponent

  • showComponent(theme: any): Element

Const MessageContent

  • MessageContent(props: any): any

Const MessageRow

  • MessageRow(props: any): Element

Const Nav

  • Nav(props: any): any
  • Nav(props: any): any

margin

margin: string = "7.5px"

Const NavBar

  • NavBar(props: any): any
  • NavBar(props: any): any

border

border: string = "1px solid transparent"

borderColor

borderColor: string = "#e7e7e7"

position

position: string = "relative"

Const NavButton

  • NavButton(props: any): any
  • NavButton(props: any): any

backgroundColor

backgroundColor: string = "#fff"

backgroundImage

backgroundImage: string = "none"

border

border: string = "1px solid transparent"

borderColor

borderColor: string = "#ccc"

borderRadius

borderRadius: string = "4px"

color

color: string = "#333"

cursor

cursor: string = "pointer"

display

display: string = "inline-block"

fontSize

fontSize: string = "14px"

fontWeight

fontWeight: number = 400

lineHeight

lineHeight: string = "1.42857143"

marginBottom

marginBottom: string = "8px"

marginTop

marginTop: string = "8px"

padding

padding: string = "6px 12px"

textAlign

textAlign: string = "center"

touchAction

touchAction: string = "manipulation"

userSelect

userSelect: string = "none"

verticalAlign

verticalAlign: string = "middle"

whiteSpace

whiteSpace: string = "nowrap"

Const NavItem

  • NavItem(props: any): any
  • NavItem(props: any): any

display

display: string = "inline-block"

lineHeight

lineHeight: string = "20px"

padding

padding: string = "10px 5px"

Const NavRight

  • NavRight(props: any): any
  • NavRight(props: any): any

textAlign

textAlign: string = "right"

Const PhotoPickerButton

  • PhotoPickerButton(props: any): Element

Const PhotoPlaceholder

  • PhotoPlaceholder(props: any): Element

Const Radio

  • Radio(props: any): any
  • Radio(props: any): any

marginRight

marginRight: string = "18px"

verticalAlign

verticalAlign: string = "bottom"

Const RadioRow

  • RadioRow(props: any): Element
  • RadioRow(props: any): Element

Const SectionBody

  • SectionBody(props: any): any
  • SectionBody(props: any): any

marginBottom

marginBottom: string = "30px"

padding

padding: string = "15px"

Const SectionFooter

  • SectionFooter(props: any): any
  • SectionFooter(props: any): any

alignItems

alignItems: string = "flex-start"

backgroundColor

backgroundColor: string = "#f5f5f5"

borderTop

borderTop: string = "1px solid #ddd"

borderTopLeftRadius

borderTopLeftRadius: string = "3px"

borderTopRightRadius

borderTopRightRadius: string = "3px"

color

color: string = "#333"

display

display: string = "flex"

flexDirection

flexDirection: string = "row-reverse"

fontSize

fontSize: string = "14px"

padding

padding: string = "10px 15px"

Const SectionFooterContent

  • SectionFooterContent(props: any): any

Const SectionHeader

  • SectionHeader(props: any): any
  • SectionHeader(props: any): any

backgroundColor

backgroundColor: string = "#337ab7"

borderBottom

borderBottom: string = "1px solid transparent"

borderColor

borderColor: string = "#337ab7"

borderTopLeftRadius

borderTopLeftRadius: string = "3px"

borderTopRightRadius

borderTopRightRadius: string = "3px"

color

color: string = "#fff"

fontSize

fontSize: string = "18px"

fontWeight

fontWeight: string = "500"

marginBottom

marginBottom: string = "30px"

padding

padding: string = "10px 15px"

textAlign

textAlign: string = "center"

Const SectionHeaderContent

  • SectionHeaderContent(props: any): any
  • SectionHeaderContent(props: any): any

Const SelectInput

  • SelectInput(props: any): Element

Const SignInButton

  • SignInButton(props: any): any
  • SignInButton(props: any): any

borderRadius

borderRadius: string = "4px"

color

color: string = "#fff"

cursor

cursor: string = "pointer"

display

display: string = "block"

fontFamily

fontFamily: string = "Amazon Ember"

fontSize

fontSize: string = "14px"

marginBottom

marginBottom: string = "10px"

marginTop

marginTop: string = "2px"

overflow

overflow: string = "hidden"

padding

padding: string = "6px 12px 6px 44px"

position

position: string = "relative"

textAlign

textAlign: string = "left"

textOverflow

textOverflow: string = "ellipsis"

whiteSpace

whiteSpace: string = "nowrap"

width

width: string = "100%"

#amazon_signin_btn

#amazon_signin_btn: object

backgroundColor

backgroundColor: string = "#FF9900"

border

border: string = "none"

#facebook_signin_btn

#facebook_signin_btn: object

backgroundColor

backgroundColor: string = "#3b5998"

borderColor

borderColor: string = "rgba(0,0,0,0.2)"

color

color: string = "#fff"

#google_signin_btn

#google_signin_btn: object

backgroundColor

backgroundColor: string = "#dd4b39"

border

border: string = "1px solid #4285F4"

borderColor

borderColor: string = "rgba(0,0,0,0.2)"

color

color: string = "#fff"

fontFamily

fontFamily: string = "Roboto"

Const Space

  • Space(props: any): any

display

display: string = "inline-block"

width

width: string = "20px"

Const Toast

  • Toast(props: any): Element

Const Tooltip

  • Tooltip(props: any): Element

_isInteger

  • _isInteger(value: any): boolean

Const analyticsEvent

  • analyticsEvent(payload: any): void

authDecorator

  • authDecorator(authState: Subject<AuthState>, authModule: any): void

Const authEvent

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

Const beforeAfter

  • beforeAfter(el: any): any
  • beforeAfter(el: any): any

blobToArrayBuffer

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

browserClientInfo

  • browserClientInfo(): object | object

browserTimezone

  • browserTimezone(): string

browserType

  • browserType(userAgent: any): object

buildGraphQLOperation

buildSubscriptionGraphQLOperation

calcKey

  • calcKey(file: any, fileToKey: any): string

Private Const canonical_headers

  • canonical_headers(headers: any): string

Private Const canonical_query

  • canonical_query(query: any): any

Private Const canonical_request

  • canonical_request(request: any): string

categorizeRekognitionBlocks

categorizeTextractBlocks

check

  • check(authState: Subject<AuthState>, Auth: any): void

checkSchemaVersion

  • checkSchemaVersion(storage: Storage, version: string): Promise<void>

clear

  • clear(): Promise<void>

Const clearAll

  • clearAll(): void
  • clearAll(): 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.

Const composePhoneNumber

  • composePhoneNumber(countryCode: any, local_phone_number: any): string

configure

constructKeyValue

  • constructKeyValue(keyBlock: Block, blockMap: object): KeyValue

constructTable

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

convertToPlaceholder

  • convertToPlaceholder(str: any): any

Const createModelClass

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

Const createModelClassses

  • createModelClassses(namespace: object & object): object

createMutationInstanceFromModelOperation

Const credential_scope

  • credential_scope(d_str: any, region: any, service: any): string

decorateConfirmSignUp

  • decorateConfirmSignUp(authState: Subject<AuthState>, Auth: any): void

decorateSignIn

  • decorateSignIn(authState: Subject<AuthState>, Auth: any): void

decorateSignOut

  • decorateSignOut(authState: Subject<AuthState>, Auth: any): void

decorateSignUp

  • decorateSignUp(authState: Subject<AuthState>, Auth: any): void

defaultConflictHandler

defaultErrorHandler

  • defaultErrorHandler(error: SyncError): void

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.

dimToMake

  • dimToMake(dim: any): object

dimension

  • dimension(): object

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: any, message: string): void

Const dispatchAuthEvent

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

Const dispatchStorageEvent

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

Const encrypt

  • encrypt(key: any, src: any, encoding?: any): any

Private Const escape_RFC3986

  • escape_RFC3986(component: any): any

Const establishRelation

Const exhaustiveCheck

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

extractContentsFromBlock

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

generateSelectionSet

  • generateSelectionSet(modelDefinition: SchemaModel): string

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.

getAuthorizationRules

getBoundingBox

  • getBoundingBox(geometry: Geometry | Geometry): BoundingBox

getByteLength

  • getByteLength(str: string): number

getConnectionFields

  • getConnectionFields(modelDefinition: SchemaModel): string[]

getCurrTime

  • getCurrTime(): number

Const getDefaultAdapter

  • getDefaultAdapter(): any

Const getIndex

getInstance

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

getMetadataFields

  • getMetadataFields(): ReadonlyArray<string>

getModelConstructorByModelName

  • getModelConstructorByModelName(namespaceName: NAMESPACES, modelName: string): object

Const getModelDefinition

getNamespace

Const getPKCE

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

getPolygon

  • getPolygon(geometry: Geometry | Geometry): Polygon

getScalarFields

Const getState

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

Const getUrl

  • getUrl(): string

Private Const get_authorization_header

  • get_authorization_header(algorithm: any, access_key: any, scope: any, signed_headers: any, signature: any): string

Const get_signature

  • get_signature(signing_key: any, str_to_sign: any): any

Private Const get_signing_key

  • get_signing_key(secret_key: any, d_str: any, service_info: any): any

Const graphqlOperation

  • graphqlOperation(query: any, variables?: object): object
  • Parameters

    • query: any
    • Default value variables: object = {}

    Returns object

    • query: any
    • variables: object

Const hash

  • hash(src: any): any

includes

  • includes(ary: any, match: any): boolean

Const initSchema

  • initSchema(userSchema: Schema): object

invalidParameter

  • invalidParameter(name: any): Error

isAssociatedWith

  • isAssociatedWith(obj: any): obj

isBytesSource

  • isBytesSource(obj: any): obj

isCognitoHostedOpts

  • isCognitoHostedOpts(oauth: OAuthOpts): oauth

isEnumFieldType

  • isEnumFieldType(obj: any): obj

isFederatedSignInOptions

  • isFederatedSignInOptions(obj: any): obj

isFederatedSignInOptionsCustom

  • isFederatedSignInOptionsCustom(obj: any): obj

isFileSource

  • isFileSource(obj: any): obj

isGraphQLScalarType

  • isGraphQLScalarType(obj: any): 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

isInteger

  • isInteger(value: any): boolean

isInterpretTextInput

  • isInterpretTextInput(obj: any): obj

isLegacyCallback

  • isLegacyCallback(callback: any): callback

Const isModelConstructor

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

isModelFieldType

  • isModelFieldType(obj: any): obj

Const isNonRetryableError

  • isNonRetryableError(obj: any): obj

isPredicateGroup

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

isPredicateObj

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

isPredicatesAll

Const isPrivateMode

  • isPrivateMode(): Promise<unknown>

isSpeechToTextInput

  • isSpeechToTextInput(obj: any): obj

isStorageSource

  • isStorageSource(obj: any): obj

isTargetNameAssociation

  • isTargetNameAssociation(obj: any): obj

isTextToSpeechInput

  • isTextToSpeechInput(obj: any): obj

isTranslateTextInput

  • isTranslateTextInput(obj: any): obj

isUsernamePasswordOpts

  • isUsernamePasswordOpts(obj: any): obj

Const isValidModelConstructor

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

jitteredBackoff

Private Const jitteredExponentialRetry

  • jitteredExponentialRetry(functionToRetry: Function, args: any[], maxDelayMs?: number): any

Const launchUri

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

listen

  • listen(authState: Subject<AuthState>): void

Const listener

  • listener(capsule: any): void

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[]

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.

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.

missingConfig

  • missingConfig(name: any): Error

modelInstanceCreator

mqttTopicMatch

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

Const namespaceResolver

  • namespaceResolver(modelConstructor: object): string