@salutejs/scenario
Advanced tools
Comparing version 0.16.1 to 0.17.0-canary.218.a265f174e3973eeee8dcb932610cab86f94cd820.0
@@ -55,2 +55,24 @@ "use strict"; | ||
}; | ||
var chooseProfileData = function (fields) { | ||
message = { | ||
messageId: messageId, | ||
sessionId: sessionId, | ||
uuid: uuid, | ||
messageName: 'CHOOSE_PROFILE_DATA', | ||
payload: { | ||
fields: fields, | ||
}, | ||
}; | ||
}; | ||
var getDetailedProfileData = function () { | ||
message = { | ||
messageId: messageId, | ||
sessionId: sessionId, | ||
uuid: uuid, | ||
messageName: 'DETAILED_PROFILE_DATA', | ||
payload: { | ||
fields: ['address'], | ||
}, | ||
}; | ||
}; | ||
return { | ||
@@ -143,2 +165,4 @@ appendBubble: function (bubble, options) { | ||
getProfileData: getProfileData, | ||
chooseProfileData: chooseProfileData, | ||
getDetailedProfileData: getDetailedProfileData, | ||
setIntent: function (intent) { | ||
@@ -145,0 +169,0 @@ if (message.messageName !== 'ANSWER_TO_USER') { |
@@ -51,4 +51,11 @@ import { SystemMessage, SystemMessageName, SystemMessagePayload, AssistantCommand, BubbleCommand, CardCommand, PolicyRunAppComand } from './systemMessage'; | ||
export declare type NLPResponseE = NLPResponseBody<Extract<NLPResponseType, 'ERROR'>, EPayload>; | ||
declare type ProfileDataFieldsType = 'address' | 'phone'; | ||
declare type ProfileDataPayloadFieldsType = { | ||
fields: Array<ProfileDataFieldsType>; | ||
}; | ||
export declare type NLPResponseGPD = NLPResponseBody<Extract<NLPResponseType, 'GET_PROFILE_DATA'>, SharedResponsePayload>; | ||
export declare type NLPResponse = NLPResponseATU | NLPResponseE | NLPResponseNF | NLPResponsePRA | NLPResponseGPD; | ||
export declare type NLPResponseCPD = NLPResponseBody<Extract<NLPResponseType, 'CHOOSE_PROFILE_DATA'>, SharedResponsePayload & ProfileDataPayloadFieldsType>; | ||
export declare type NLPResponseGDPD = NLPResponseBody<Extract<NLPResponseType, 'DETAILED_PROFILE_DATA'>, SharedResponsePayload & ProfileDataPayloadFieldsType>; | ||
export declare type NLPResponse = NLPResponseATU | NLPResponseE | NLPResponseNF | NLPResponsePRA | NLPResponseGPD | NLPResponseCPD | NLPResponseGDPD; | ||
export {}; | ||
//# sourceMappingURL=response.d.ts.map |
import { AppInfo, CharacterId, AppState, Message, SmartAppErrorCommand, EmotionId, Card, Bubble, Button, ASRHints, PolicyRunAppComand } from './systemMessage'; | ||
import { NLPRequest, NLPRequestTPD } from './request'; | ||
import { NLPResponse } from './response'; | ||
import { NLPResponse, NLPResponseCPD } from './response'; | ||
import { KeysetDictionary, I18nOptions } from './i18n'; | ||
@@ -86,2 +86,4 @@ interface IntentSlot { | ||
getProfileData: () => void; | ||
chooseProfileData: (fields: NLPResponseCPD['payload']['fields']) => void; | ||
getDetailedProfileData: () => void; | ||
openDeepLink: (deepLink: string) => void; | ||
@@ -88,0 +90,0 @@ readonly message: NLPResponse; |
{ | ||
"name": "@salutejs/scenario", | ||
"version": "0.16.1", | ||
"version": "0.17.0-canary.218.a265f174e3973eeee8dcb932610cab86f94cd820.0", | ||
"description": "Tiny helpers to make scenario for Salute family", | ||
@@ -39,3 +39,3 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>", | ||
}, | ||
"gitHead": "003be01f142e8a26d9a58137877bdd9046ac9435" | ||
"gitHead": "a265f174e3973eeee8dcb932610cab86f94cd820" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
316473
3938