stentor 1.57.107 → 1.57.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +6 -6
- package/lib/index.js +11 -5
- package/lib/index.js.map +1 -1
- package/package.json +18 -18
package/lib/index.d.ts
CHANGED
|
@@ -5,22 +5,22 @@ import { INPUT_UNKNOWN_ID, INPUT_UNKNOWN_REQUEST_TYPE, INPUT_UNKNOWN, INTENT_REQ
|
|
|
5
5
|
export { INPUT_UNKNOWN_ID, INPUT_UNKNOWN_REQUEST_TYPE, INPUT_UNKNOWN, INTENT_REQUEST_TYPE, LAUNCH_REQUEST_ID, LAUNCH_REQUEST_TYPE, OPTION_SELECT_ID, OPTION_SELECT_REQUEST_TYPE, };
|
|
6
6
|
import { determine } from "stentor-determiner";
|
|
7
7
|
export { determine };
|
|
8
|
-
import { isAnonymousUser, isInputUnknownRequest, isIntentRequest, isLaunchRequest, isNotificationPermissionRequest, isOptionSelectRequest, isPermissionRequest, isSessionEndedRequest, isSignInRequest, isSurfaceRequest,
|
|
9
|
-
export { isAnonymousUser, isInputUnknownRequest, isIntentRequest, isLaunchRequest, isNotificationPermissionRequest, isOptionSelectRequest, isPermissionRequest, isSessionEndedRequest, isSignInRequest, isSurfaceRequest,
|
|
8
|
+
import { hasSessionId, isAnonymousUser, isDeliveryAddressRequest, isInputUnknownRequest, isIntentRequest, isLaunchRequest, isNotificationPermissionRequest, isOptionSelectRequest, isPermissionRequest, isSessionEndedRequest, isSignInRequest, isSurfaceRequest, isTransactionDecisionRequest, isTransactionRequirementCheckRequest } from "stentor-guards";
|
|
9
|
+
export { hasSessionId, isAnonymousUser, isDeliveryAddressRequest, isInputUnknownRequest, isIntentRequest, isLaunchRequest, isNotificationPermissionRequest, isOptionSelectRequest, isPermissionRequest, isSessionEndedRequest, isSignInRequest, isSurfaceRequest, isTransactionDecisionRequest, isTransactionRequirementCheckRequest, };
|
|
10
10
|
import { AbstractHandler, ConversationHandler, determinePath, getMatchedSlotData, getSlotType } from "stentor-handler";
|
|
11
11
|
export { AbstractHandler, ConversationHandler, determinePath, getMatchedSlotData, getSlotType };
|
|
12
12
|
import { HandlerFactory, HandlersArray, HandlersKeyValue, HandlersMap } from "stentor-handler-factory";
|
|
13
13
|
export { HandlerFactory, HandlersArray, HandlersKeyValue, HandlersMap };
|
|
14
14
|
import { log } from "stentor-logger";
|
|
15
15
|
export { log };
|
|
16
|
-
import { Channel, Content, Context, Data, DateTime, DateTimeRange, Device, Forward, Handler, Intent, IntentRequest, KnowledgeBaseDocument, KnowledgeBaseFAQ, KnowledgeBaseResult, KnowledgeBaseSuggested, List, ListButton, ListItem, OptionSelectRequest, Redirect, Request, RequestSlot, RequestSlotMap, Response, ResponseOutput, RuntimeCallback, RuntimeContext, Storage, UserStorageService } from "stentor-models";
|
|
17
|
-
export { Channel, Content, Context, Data, DateTime, DateTimeRange, Device, Forward, Handler, Intent, IntentRequest, KnowledgeBaseFAQ, KnowledgeBaseResult, KnowledgeBaseSuggested,
|
|
16
|
+
import { Channel, Content, Context, CrmService, Data, DateTime, DateTimeRange, Device, ErrorService, Forward, Handler, Intent, IntentRequest, KnowledgeBaseDocument, KnowledgeBaseFAQ, KnowledgeBaseResult, KnowledgeBaseSuggested, LeadFormField, List, ListButton, ListItem, Message, OptionSelectRequest, Redirect, Request, RequestSlot, RequestSlotMap, Response, ResponseOutput, RuntimeCallback, RuntimeContext, Storage, UserStorageService } from "stentor-models";
|
|
17
|
+
export { Channel, Content, Context, CrmService, Data, DateTime, DateTimeRange, Device, ErrorService, Forward, Handler, Intent, IntentRequest, KnowledgeBaseDocument, KnowledgeBaseFAQ, KnowledgeBaseResult, KnowledgeBaseSuggested, LeadFormField, List, ListButton, ListItem, Message, OptionSelectRequest, Redirect, Request, RequestSlot, RequestSlotMap, Response, ResponseOutput, RuntimeCallback, RuntimeContext, Storage, UserStorageService, };
|
|
18
18
|
import { InputUnknownRequestBuilder, IntentRequestBuilder, LaunchRequestBuilder, SessionEndedRequestBuilder } from "stentor-request";
|
|
19
19
|
export { InputUnknownRequestBuilder, IntentRequestBuilder, LaunchRequestBuilder, SessionEndedRequestBuilder };
|
|
20
20
|
import { compileResponse, concatResponseOutput, determineResponse, determineSegment, getResponse, ResponseBuilder } from "stentor-response";
|
|
21
21
|
export { compileResponse, concatResponseOutput, determineResponse, determineSegment, getResponse, ResponseBuilder };
|
|
22
|
-
import { dessmlify, estimateSize, existsAndNotEmpty, findValueForKey, formatNumberForDisplay,
|
|
23
|
-
export { dessmlify, estimateSize, existsAndNotEmpty, findValueForKey, formatNumberForDisplay,
|
|
22
|
+
import { dessmlify, estimateSize, existsAndNotEmpty, findValueForKey, formatNumberForDisplay, getResponseByTag, getSlots, isDateTime, isDateTimeRange, keyFromRequest, listisize, numberToWord, pruneEmpty, random, requestSlotsToString, requestSlotValueToString, responseToMessage, ssmlify, toResponseOutput } from "stentor-utils";
|
|
23
|
+
export { dessmlify, estimateSize, existsAndNotEmpty, findValueForKey, formatNumberForDisplay, getResponseByTag, getSlots, isDateTime, isDateTimeRange, keyFromRequest, listisize, numberToWord, pruneEmpty, random, requestSlotsToString, requestSlotValueToString, responseToMessage, ssmlify, toResponseOutput };
|
|
24
24
|
import { FetchService, WithTimeout, TimeoutError } from "stentor-service-fetch";
|
|
25
25
|
export { FetchService, WithTimeout, TimeoutError };
|
|
26
26
|
export * from "./services/Secrets";
|
package/lib/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.TimeoutError = exports.FetchService = exports.ssmlify = exports.random = exports.pruneEmpty = exports.numberToWord = exports.listisize = void 0;
|
|
17
|
+
exports.isDateTime = exports.getSlots = exports.getResponseByTag = exports.formatNumberForDisplay = exports.findValueForKey = exports.existsAndNotEmpty = exports.estimateSize = exports.dessmlify = exports.ResponseBuilder = exports.getResponse = exports.determineSegment = exports.determineResponse = exports.concatResponseOutput = exports.compileResponse = exports.SessionEndedRequestBuilder = exports.LaunchRequestBuilder = exports.IntentRequestBuilder = exports.InputUnknownRequestBuilder = exports.log = exports.HandlerFactory = exports.getSlotType = exports.getMatchedSlotData = exports.determinePath = exports.ConversationHandler = exports.AbstractHandler = exports.isTransactionRequirementCheckRequest = exports.isTransactionDecisionRequest = exports.isSurfaceRequest = exports.isSignInRequest = exports.isSessionEndedRequest = exports.isPermissionRequest = exports.isOptionSelectRequest = exports.isNotificationPermissionRequest = exports.isLaunchRequest = exports.isIntentRequest = exports.isInputUnknownRequest = exports.isDeliveryAddressRequest = exports.isAnonymousUser = exports.hasSessionId = exports.determine = exports.OPTION_SELECT_REQUEST_TYPE = exports.OPTION_SELECT_ID = exports.LAUNCH_REQUEST_TYPE = exports.LAUNCH_REQUEST_ID = exports.INTENT_REQUEST_TYPE = exports.INPUT_UNKNOWN = exports.INPUT_UNKNOWN_REQUEST_TYPE = exports.INPUT_UNKNOWN_ID = exports.ContextFactory = exports.ContextBuilder = void 0;
|
|
18
|
+
exports.TimeoutError = exports.FetchService = exports.toResponseOutput = exports.ssmlify = exports.responseToMessage = exports.requestSlotValueToString = exports.requestSlotsToString = exports.random = exports.pruneEmpty = exports.numberToWord = exports.listisize = exports.keyFromRequest = exports.isDateTimeRange = void 0;
|
|
19
19
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
20
20
|
const stentor_context_1 = require("stentor-context");
|
|
21
21
|
Object.defineProperty(exports, "ContextBuilder", { enumerable: true, get: function () { return stentor_context_1.ContextBuilder; } });
|
|
@@ -32,7 +32,9 @@ Object.defineProperty(exports, "OPTION_SELECT_REQUEST_TYPE", { enumerable: true,
|
|
|
32
32
|
const stentor_determiner_1 = require("stentor-determiner");
|
|
33
33
|
Object.defineProperty(exports, "determine", { enumerable: true, get: function () { return stentor_determiner_1.determine; } });
|
|
34
34
|
const stentor_guards_1 = require("stentor-guards");
|
|
35
|
+
Object.defineProperty(exports, "hasSessionId", { enumerable: true, get: function () { return stentor_guards_1.hasSessionId; } });
|
|
35
36
|
Object.defineProperty(exports, "isAnonymousUser", { enumerable: true, get: function () { return stentor_guards_1.isAnonymousUser; } });
|
|
37
|
+
Object.defineProperty(exports, "isDeliveryAddressRequest", { enumerable: true, get: function () { return stentor_guards_1.isDeliveryAddressRequest; } });
|
|
36
38
|
Object.defineProperty(exports, "isInputUnknownRequest", { enumerable: true, get: function () { return stentor_guards_1.isInputUnknownRequest; } });
|
|
37
39
|
Object.defineProperty(exports, "isIntentRequest", { enumerable: true, get: function () { return stentor_guards_1.isIntentRequest; } });
|
|
38
40
|
Object.defineProperty(exports, "isLaunchRequest", { enumerable: true, get: function () { return stentor_guards_1.isLaunchRequest; } });
|
|
@@ -42,9 +44,8 @@ Object.defineProperty(exports, "isPermissionRequest", { enumerable: true, get: f
|
|
|
42
44
|
Object.defineProperty(exports, "isSessionEndedRequest", { enumerable: true, get: function () { return stentor_guards_1.isSessionEndedRequest; } });
|
|
43
45
|
Object.defineProperty(exports, "isSignInRequest", { enumerable: true, get: function () { return stentor_guards_1.isSignInRequest; } });
|
|
44
46
|
Object.defineProperty(exports, "isSurfaceRequest", { enumerable: true, get: function () { return stentor_guards_1.isSurfaceRequest; } });
|
|
45
|
-
Object.defineProperty(exports, "isTransactionRequirementCheckRequest", { enumerable: true, get: function () { return stentor_guards_1.isTransactionRequirementCheckRequest; } });
|
|
46
47
|
Object.defineProperty(exports, "isTransactionDecisionRequest", { enumerable: true, get: function () { return stentor_guards_1.isTransactionDecisionRequest; } });
|
|
47
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "isTransactionRequirementCheckRequest", { enumerable: true, get: function () { return stentor_guards_1.isTransactionRequirementCheckRequest; } });
|
|
48
49
|
const stentor_handler_1 = require("stentor-handler");
|
|
49
50
|
Object.defineProperty(exports, "AbstractHandler", { enumerable: true, get: function () { return stentor_handler_1.AbstractHandler; } });
|
|
50
51
|
Object.defineProperty(exports, "ConversationHandler", { enumerable: true, get: function () { return stentor_handler_1.ConversationHandler; } });
|
|
@@ -73,15 +74,20 @@ Object.defineProperty(exports, "estimateSize", { enumerable: true, get: function
|
|
|
73
74
|
Object.defineProperty(exports, "existsAndNotEmpty", { enumerable: true, get: function () { return stentor_utils_1.existsAndNotEmpty; } });
|
|
74
75
|
Object.defineProperty(exports, "findValueForKey", { enumerable: true, get: function () { return stentor_utils_1.findValueForKey; } });
|
|
75
76
|
Object.defineProperty(exports, "formatNumberForDisplay", { enumerable: true, get: function () { return stentor_utils_1.formatNumberForDisplay; } });
|
|
77
|
+
Object.defineProperty(exports, "getResponseByTag", { enumerable: true, get: function () { return stentor_utils_1.getResponseByTag; } });
|
|
76
78
|
Object.defineProperty(exports, "getSlots", { enumerable: true, get: function () { return stentor_utils_1.getSlots; } });
|
|
77
|
-
Object.defineProperty(exports, "keyFromRequest", { enumerable: true, get: function () { return stentor_utils_1.keyFromRequest; } });
|
|
78
79
|
Object.defineProperty(exports, "isDateTime", { enumerable: true, get: function () { return stentor_utils_1.isDateTime; } });
|
|
79
80
|
Object.defineProperty(exports, "isDateTimeRange", { enumerable: true, get: function () { return stentor_utils_1.isDateTimeRange; } });
|
|
81
|
+
Object.defineProperty(exports, "keyFromRequest", { enumerable: true, get: function () { return stentor_utils_1.keyFromRequest; } });
|
|
80
82
|
Object.defineProperty(exports, "listisize", { enumerable: true, get: function () { return stentor_utils_1.listisize; } });
|
|
81
83
|
Object.defineProperty(exports, "numberToWord", { enumerable: true, get: function () { return stentor_utils_1.numberToWord; } });
|
|
82
84
|
Object.defineProperty(exports, "pruneEmpty", { enumerable: true, get: function () { return stentor_utils_1.pruneEmpty; } });
|
|
83
85
|
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return stentor_utils_1.random; } });
|
|
86
|
+
Object.defineProperty(exports, "requestSlotsToString", { enumerable: true, get: function () { return stentor_utils_1.requestSlotsToString; } });
|
|
87
|
+
Object.defineProperty(exports, "requestSlotValueToString", { enumerable: true, get: function () { return stentor_utils_1.requestSlotValueToString; } });
|
|
88
|
+
Object.defineProperty(exports, "responseToMessage", { enumerable: true, get: function () { return stentor_utils_1.responseToMessage; } });
|
|
84
89
|
Object.defineProperty(exports, "ssmlify", { enumerable: true, get: function () { return stentor_utils_1.ssmlify; } });
|
|
90
|
+
Object.defineProperty(exports, "toResponseOutput", { enumerable: true, get: function () { return stentor_utils_1.toResponseOutput; } });
|
|
85
91
|
const stentor_service_fetch_1 = require("stentor-service-fetch");
|
|
86
92
|
Object.defineProperty(exports, "FetchService", { enumerable: true, get: function () { return stentor_service_fetch_1.FetchService; } });
|
|
87
93
|
Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return stentor_service_fetch_1.TimeoutError; } });
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,qDAAiE;AACxD,+FADA,gCAAc,OACA;AAAE,+FADA,gCAAc,OACA;AAEvC,yDAS2B;AAEvB,iGAVA,oCAAgB,OAUA;AAChB,2GAVA,8CAA0B,OAUA;AAC1B,8FAVA,iCAAa,OAUA;AACb,oGAVA,uCAAmB,OAUA;AACnB,kGAVA,qCAAiB,OAUA;AACjB,oGAVA,uCAAmB,OAUA;AACnB,iGAVA,oCAAgB,OAUA;AAChB,2GAVA,8CAA0B,OAUA;AAG9B,2DAA+C;AACtC,0FADA,8BAAS,OACA;AAElB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,qDAAiE;AACxD,+FADA,gCAAc,OACA;AAAE,+FADA,gCAAc,OACA;AAEv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AoBuB;AAEnB,0FArBA,yBAAS,OAqBA;AACT,6FArBA,4BAAY,OAqBA;AACZ,kGArBA,iCAAiB,OAqBA;AACjB,gGArBA,+BAAe,OAqBA;AACf,uGArBA,sCAAsB,OAqBA;AACtB,iGArBA,gCAAgB,OAqBA;AAChB,yFArBA,wBAAQ,OAqBA;AACR,2FArBA,0BAAU,OAqBA;AACV,gGArBA,+BAAe,OAqBA;AACf,+FArBA,8BAAc,OAqBA;AACd,0FArBA,yBAAS,OAqBA;AACT,6FArBA,4BAAY,OAqBA;AACZ,2FArBA,0BAAU,OAqBA;AACV,uFArBA,sBAAM,OAqBA;AACN,qGArBA,oCAAoB,OAqBA;AACpB,yGArBA,wCAAwB,OAqBA;AACxB,kGArBA,iCAAiB,OAqBA;AACjB,wFArBA,uBAAO,OAqBA;AACP,iGArBA,gCAAgB,OAqBA;AAGpB,iEAAgF;AACvE,6FADA,oCAAY,OACA;AAAe,6FADA,oCAAY,OACA;AAEhD,qDAAmC;AACnC,8CAA4B"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.57.
|
|
7
|
+
"version": "1.57.109",
|
|
8
8
|
"description": "SDK for building omni-channel conversational assistants",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"sinon": "15.0.3",
|
|
32
32
|
"sinon-chai": "3.7.0",
|
|
33
33
|
"ts-node": "10.9.1",
|
|
34
|
-
"typescript": "
|
|
34
|
+
"typescript": "5.0.4"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"api": "api-extractor run --local",
|
|
@@ -47,24 +47,24 @@
|
|
|
47
47
|
"body-parser": "1.20.2",
|
|
48
48
|
"dotenv": "16.0.3",
|
|
49
49
|
"express": "4.18.2",
|
|
50
|
-
"stentor-constants": "1.57.
|
|
51
|
-
"stentor-context": "1.57.
|
|
52
|
-
"stentor-determiner": "1.57.
|
|
53
|
-
"stentor-handler": "1.57.
|
|
54
|
-
"stentor-handler-factory": "1.57.
|
|
55
|
-
"stentor-logger": "1.57.
|
|
56
|
-
"stentor-models": "1.57.
|
|
57
|
-
"stentor-request": "1.57.
|
|
58
|
-
"stentor-response": "1.57.
|
|
59
|
-
"stentor-runtime": "1.57.
|
|
60
|
-
"stentor-service-event": "1.57.
|
|
61
|
-
"stentor-service-fetch": "1.57.
|
|
62
|
-
"stentor-service-ovai": "1.57.
|
|
63
|
-
"stentor-service-studio": "1.57.
|
|
64
|
-
"stentor-utils": "1.57.
|
|
50
|
+
"stentor-constants": "1.57.109",
|
|
51
|
+
"stentor-context": "1.57.109",
|
|
52
|
+
"stentor-determiner": "1.57.109",
|
|
53
|
+
"stentor-handler": "1.57.109",
|
|
54
|
+
"stentor-handler-factory": "1.57.109",
|
|
55
|
+
"stentor-logger": "1.57.109",
|
|
56
|
+
"stentor-models": "1.57.109",
|
|
57
|
+
"stentor-request": "1.57.109",
|
|
58
|
+
"stentor-response": "1.57.109",
|
|
59
|
+
"stentor-runtime": "1.57.109",
|
|
60
|
+
"stentor-service-event": "1.57.109",
|
|
61
|
+
"stentor-service-fetch": "1.57.109",
|
|
62
|
+
"stentor-service-ovai": "1.57.109",
|
|
63
|
+
"stentor-service-studio": "1.57.109",
|
|
64
|
+
"stentor-utils": "1.57.109"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"aws-sdk": "2.X"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "e168ed118105d2c60d465d6e21eed1db2a24a2aa"
|
|
70
70
|
}
|