Socket
Socket
Sign inDemoInstall

@salutejs/scenario

Package Overview
Dependencies
Maintainers
3
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salutejs/scenario - npm Package Compare versions

Comparing version 0.16.1 to 0.17.0-canary.218.a265f174e3973eeee8dcb932610cab86f94cd820.0

24

dist/lib/createSaluteResponse.js

@@ -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') {

9

dist/lib/types/response.d.ts

@@ -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

4

dist/lib/types/salute.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc