@aigens/aigens-sdk-core
Aigens Order.Place Core Plugin
Install
npm install @aigens/aigens-sdk-core
npx cap sync
API
echo(...)
echo(options: any) => Promise<any>
Returns: Promise<any>
dismiss(...)
dismiss(options: any) => Promise<any>
Returns: Promise<any>
finish(...)
finish(options: any) => Promise<any>
Returns: Promise<any>
getMember(...)
getMember(options: any) => Promise<{ member: Member; }>
Returns: Promise<{ member: Member; }>
getDeeplink(...)
getDeeplink(options: any) => Promise<{ deeplink: Deeplink; }>
Returns: Promise<{ deeplink: Deeplink; }>
openBrowser(...)
openBrowser(options: any) => Promise<any>
Returns: Promise<any>
isInstalledApp(...)
isInstalledApp(options: { key: string; }) => Promise<{ install: boolean; }>
Param | Type |
---|
options | { key: string; } |
Returns: Promise<{ install: boolean; }>
getIsProductionEnvironment()
getIsProductionEnvironment() => Promise<{ isPrd: boolean; }>
Returns: Promise<{ isPrd: boolean; }>
openExternalUrl(...)
openExternalUrl(options: { url: string; }) => Promise<any>
Param | Type |
---|
options | { url: string; } |
Returns: Promise<any>
checkNotificationPermissions()
checkNotificationPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
getFinishData(...)
getFinishData(options: any) => Promise<{ closedData: any; }>
Returns: Promise<{ closedData: any; }>
setTextZoom(...)
setTextZoom(options: { value: number; }) => Promise<any>
Param | Type |
---|
options | { value: number; } |
Returns: Promise<any>
readClipboard()
readClipboard() => Promise<any>
Promise<any>: { value: string, type: 'text/plain' }
Returns: Promise<any>
Interfaces
Member
Prop | Type |
---|
"memberCode" | string |
"source" | string |
"sessionId" | string |
"pushId" | string |
"deviceId" | string |
"universalLink" | string |
"appleMerchantId" | string |
"cachedOrderContext" | boolean |
"name" | string |
"email" | string |
"phone" | string |
Deeplink
Prop | Type |
---|
"addItemId" | string |
"addDiscountCode" | string |
"addOfferId" | string |
PermissionStatus
Type Aliases
PermissionState
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'