stentor-models 1.56.43 → 1.56.47

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/Context.d.ts CHANGED
@@ -5,7 +5,7 @@ import { AbstractResponseBuilder } from "./Response";
5
5
  import { SessionStore, Storage } from "./Storage";
6
6
  import { UserDataType } from "./UserData";
7
7
  import { UserProfile } from "./UserProfile";
8
- import { CrmService, SMSService } from "./Services";
8
+ import { CrmService, ErrorService, SMSService } from "./Services";
9
9
  export declare enum UserDataRequestStatus {
10
10
  DEFERRED = 0,
11
11
  AVAILABLE = 1,
@@ -29,6 +29,10 @@ export interface ContextServices {
29
29
  * Service for sending text messages
30
30
  */
31
31
  smsService?: SMSService;
32
+ /**
33
+ * Access to the event service for reporting runtime errors.
34
+ */
35
+ eventService?: ErrorService;
32
36
  }
33
37
  /**
34
38
  * Context object that is passed around while formulating the response.
@@ -0,0 +1,5 @@
1
+ /*! Copyright (c) 2022, XAPPmedia */
2
+ import { ErrorEvent } from "../Events";
3
+ export interface ErrorService {
4
+ error(error: Error): ErrorEvent;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ErrorService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorService.js","sourceRoot":"","sources":["../../src/Services/ErrorService.ts"],"names":[],"mappings":""}
@@ -1,7 +1,8 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  export * from "./AppService";
3
- export * from "./HandlerService";
4
3
  export * from "./CrmService";
4
+ export * from "./ErrorService";
5
+ export * from "./HandlerService";
5
6
  export * from "./KnowledgeBaseService";
6
7
  export * from "./PIIService";
7
8
  export * from "./SMSService";
@@ -16,8 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /*! Copyright (c) 2019, XAPPmedia */
18
18
  __exportStar(require("./AppService"), exports);
19
- __exportStar(require("./HandlerService"), exports);
20
19
  __exportStar(require("./CrmService"), exports);
20
+ __exportStar(require("./ErrorService"), exports);
21
+ __exportStar(require("./HandlerService"), exports);
21
22
  __exportStar(require("./KnowledgeBaseService"), exports);
22
23
  __exportStar(require("./PIIService"), exports);
23
24
  __exportStar(require("./SMSService"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,+CAA6B;AAC7B,mDAAiC;AACjC,+CAA6B;AAC7B,yDAAuC;AACvC,+CAA6B;AAC7B,+CAA6B;AAC7B,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,+CAA6B;AAC7B,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,yDAAuC;AACvC,+CAA6B;AAC7B,+CAA6B;AAC7B,uDAAqC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.56.43",
7
+ "version": "1.56.47",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -31,7 +31,7 @@
31
31
  "clean": "rm -rf ./lib/* && rm -rf ./dist/*"
32
32
  },
33
33
  "dependencies": {
34
- "@xapp/patterns": "1.40.215"
34
+ "@xapp/patterns": "1.40.235"
35
35
  },
36
- "gitHead": "eac6a53f3581aabe1c59eece9170af0b64c5446f"
36
+ "gitHead": "20d9bded9bcec8258e960a9c7951ff98ab267aef"
37
37
  }