@salutejs/scenario
Advanced tools
Comparing version 0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 to 0.21.0-canary.257.f5255b560cad6ed19a0aa104a969a33e388b0c41.0
@@ -52,3 +52,3 @@ /** | ||
export declare type EmotionId = 'igrivost' | 'udovolstvie' | 'podavleniye_gneva' | 'smushchennaya_ulibka' | 'simpatiya' | 'oups' | 'laugh' | 'ok_prinyato' | 'bespokoistvo' | 'predvkusheniye' | 'vinovatiy' | 'zhdu_otvet' | 'zadumalsa' | 'neznayu' | 'nedoumenie' | 'nedovolstvo' | 'nesoglasie' | 'pechal' | 'radost' | 'sochuvstvie' | 'strakh' | 'zainteresovannost'; | ||
export declare type Action = TextAction | DeepLinkAction | SendContactPhone | ServerAction | CopyTextAction; | ||
export declare type Action = TextAction | DeepLinkAction | SendContactPhone | ServerAction | StartSmartSearchAction | CopyTextAction; | ||
export declare type Card = ListCard | GalleryCard | GridCard | DiscoveryCard | QRCodeCard | WidgetTitleCard | WidgetGallery | WidgetGalleryWithCategories | WidgetSingleCard | WidgetTwoColumns; | ||
@@ -828,2 +828,25 @@ /** | ||
/** | ||
* Запрос поиска от сценария. | ||
*/ | ||
export interface StartSmartSearchAction { | ||
/** | ||
* Тип действия. | ||
*/ | ||
type: 'start_smart_search'; | ||
/** | ||
* Данные запроса. | ||
*/ | ||
start_smart_search: { | ||
/** | ||
* Текст запроса, который прислал сценарий. | ||
*/ | ||
query: string; | ||
/** | ||
* Время за которое поиск должен ответить. | ||
*/ | ||
timeoutMS?: string; | ||
}; | ||
[k: string]: unknown; | ||
} | ||
/** | ||
* Закрытие смартапа. | ||
@@ -830,0 +853,0 @@ */ |
{ | ||
"name": "@salutejs/scenario", | ||
"version": "0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0", | ||
"version": "0.21.0-canary.257.f5255b560cad6ed19a0aa104a969a33e388b0c41.0", | ||
"description": "Tiny helpers to make scenario for Salute family", | ||
@@ -30,8 +30,6 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>", | ||
"lint": "eslint --ext .js,.ts ./src", | ||
"test": "../../node_modules/.bin/jest --config ../../jest.config.ts", | ||
"generate-scheme": "json2ts --input schemas/SystemMessage/system_message.json --output src/lib/types/systemMessage.ts --cwd=schemas --style.parser=typescript --style.arrowParens=always --style.printWidth=120 --style.endOfLine=auto --style.semi --style.singleQuote --style.tabWidth=4 --style.trailingComma=all" | ||
"test": "../../node_modules/.bin/jest --config ../../jest.config.ts" | ||
}, | ||
"devDependencies": { | ||
"@types/node-fetch": "2.5.10", | ||
"json-schema-to-typescript": "^10.1.5", | ||
"typescript": "4.1.3" | ||
@@ -42,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "6d705d3146d91c408819e8a3d4167b9e3c3c8e8e" | ||
"gitHead": "f5255b560cad6ed19a0aa104a969a33e388b0c41" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
327001
2
4059