stentor-models 1.56.126 → 1.57.0
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/Channel/Channeled.d.ts +17 -0
- package/lib/Channel/Channeled.js +4 -0
- package/lib/Channel/Channeled.js.map +1 -0
- package/lib/Channel/index.d.ts +1 -0
- package/lib/Channel/index.js +1 -0
- package/lib/Channel/index.js.map +1 -1
- package/lib/Response/AbstractResponseBuilder.d.ts +1 -1
- package/lib/Response/Response.d.ts +2 -1
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*! Copyright (c) 2022, XAPP AI */
|
|
2
|
+
/**
|
|
3
|
+
* Interface to use on objects to help filter by channels.
|
|
4
|
+
*/
|
|
5
|
+
export interface Channeled {
|
|
6
|
+
/**
|
|
7
|
+
* Description of the channel that will be
|
|
8
|
+
*/
|
|
9
|
+
channel: {
|
|
10
|
+
/**
|
|
11
|
+
* String to match with the name of the channel that will match. It can either be the exact name of the
|
|
12
|
+
* channel or a regex string to match multiple.
|
|
13
|
+
*/
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare type Channelable<T> = T & Channeled;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Channeled.js","sourceRoot":"","sources":["../../src/Channel/Channeled.ts"],"names":[],"mappings":";AAAA,kCAAkC"}
|
package/lib/Channel/index.d.ts
CHANGED
package/lib/Channel/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
18
18
|
__exportStar(require("./Channel"), exports);
|
|
19
19
|
__exportStar(require("./ChannelData"), exports);
|
|
20
|
+
__exportStar(require("./Channeled"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/lib/Channel/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Channel/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,4CAA0B;AAC1B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Channel/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,4CAA0B;AAC1B,gDAA8B;AAC9B,8CAA4B"}
|
|
@@ -12,7 +12,7 @@ import { ResponseOutput } from "./ResponseOutput";
|
|
|
12
12
|
import { OrderDescription, PaymentParameters } from "./Transactions";
|
|
13
13
|
export interface ResponseBuilderProps {
|
|
14
14
|
/**
|
|
15
|
-
* Capabilities of the current device
|
|
15
|
+
* Capabilities of the current device used by the builder
|
|
16
16
|
*/
|
|
17
17
|
device: Readonly<Device>;
|
|
18
18
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
2
|
import { Actionable } from "../Action";
|
|
3
|
+
import { Channeled } from "../Channel/Channeled";
|
|
3
4
|
import { Conditioned } from "../Conditional";
|
|
4
5
|
import { LastActive, Scheduled } from "../DateTime";
|
|
5
6
|
import { Display } from "../Display";
|
|
@@ -73,7 +74,7 @@ export interface ResponseData {
|
|
|
73
74
|
/**
|
|
74
75
|
* A response that expects a user's input.
|
|
75
76
|
*/
|
|
76
|
-
export interface SimpleResponse<T = string | ResponseOutput> extends Partial<Actionable>, Partial<Conditioned> {
|
|
77
|
+
export interface SimpleResponse<T = string | ResponseOutput> extends Partial<Actionable>, Partial<Conditioned>, Partial<Channeled> {
|
|
77
78
|
/**
|
|
78
79
|
* Name of the response.
|
|
79
80
|
*
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.57.0",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "1.40.343"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "49d4e56874c967af5ef1dc0da757bdd6d819ae82"
|
|
37
37
|
}
|