stentor-models 1.65.9 → 1.66.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/Request/EventRequest.d.ts +22 -0
- package/lib/Request/EventRequest.js +3 -0
- package/lib/Request/EventRequest.js.map +1 -0
- package/lib/Request/Request.d.ts +5 -4
- package/lib/Request/Types.d.ts +2 -1
- package/lib/Request/index.d.ts +1 -0
- package/lib/Request/index.js +1 -0
- package/lib/Request/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
+
import { Event } from "../Events";
|
|
3
|
+
import { BaseRequest } from "./Request";
|
|
4
|
+
import { EventRequestType } from "./Types";
|
|
5
|
+
/**
|
|
6
|
+
* Event Request for sending simple events that require only acknowledgment.
|
|
7
|
+
*
|
|
8
|
+
* Events can be sent without expecting a response from the server except
|
|
9
|
+
* acknowledgment that the event was received.
|
|
10
|
+
*
|
|
11
|
+
* Events are based off of the base Event interface used by the EventService.
|
|
12
|
+
*/
|
|
13
|
+
export interface EventRequest extends BaseRequest {
|
|
14
|
+
/**
|
|
15
|
+
* The type of an event request is always "EVENT_REQUEST"
|
|
16
|
+
*/
|
|
17
|
+
type: EventRequestType;
|
|
18
|
+
/**
|
|
19
|
+
* Array of events to be sent to the event service
|
|
20
|
+
*/
|
|
21
|
+
events: Event[];
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventRequest.js","sourceRoot":"","sources":["../../src/Request/EventRequest.ts"],"names":[],"mappings":""}
|
package/lib/Request/Request.d.ts
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { Device } from "../Device";
|
|
3
3
|
import { Locale } from "../Locale";
|
|
4
4
|
import { AudioPlayerRequest } from "./AudioPlayerRequest";
|
|
5
|
+
import { ChannelActionRequest } from "./ChannelActionRequest";
|
|
6
|
+
import { DeliveryAddressRequest } from "./DeliveryAddressRequest";
|
|
7
|
+
import { EventRequest } from "./EventRequest";
|
|
5
8
|
import { InputUnknownRequest } from "./InputUnknownRequest";
|
|
6
9
|
import { IntentRequest } from "./IntentRequest";
|
|
7
10
|
import { LaunchRequest } from "./LaunchRequest";
|
|
@@ -13,11 +16,9 @@ import { RawQueryRequest } from "./RawQueryRequest";
|
|
|
13
16
|
import { SessionEndedRequest } from "./SessionEndedRequest";
|
|
14
17
|
import { SignInRequest } from "./SignInRequest";
|
|
15
18
|
import { SurfaceChangeRequest } from "./SurfaceChangeRequest";
|
|
16
|
-
import { RequestTypes } from "./Types";
|
|
17
|
-
import { DeliveryAddressRequest } from "./DeliveryAddressRequest";
|
|
18
19
|
import { TransactionDecisionRequest } from "./TransactionDecisionRequest";
|
|
19
20
|
import { TransactionRequirementCheckRequest } from "./TransactionRequirementCheckRequest";
|
|
20
|
-
import {
|
|
21
|
+
import { RequestTypes } from "./Types";
|
|
21
22
|
/**
|
|
22
23
|
* Shared parameters for each Request
|
|
23
24
|
*/
|
|
@@ -151,4 +152,4 @@ export interface ApiAccessData {
|
|
|
151
152
|
apiBaseUrl: string;
|
|
152
153
|
apiAuthToken: string;
|
|
153
154
|
}
|
|
154
|
-
export type Request = AudioPlayerRequest | ChannelActionRequest | DeliveryAddressRequest | InputUnknownRequest | IntentRequest | LaunchRequest | NotificationPermissionRequest | OptionSelectRequest | PermissionRequest | PlaybackControlRequest | RawQueryRequest | SessionEndedRequest | SignInRequest | SurfaceChangeRequest | TransactionDecisionRequest | TransactionRequirementCheckRequest;
|
|
155
|
+
export type Request = AudioPlayerRequest | ChannelActionRequest | DeliveryAddressRequest | EventRequest | InputUnknownRequest | IntentRequest | LaunchRequest | NotificationPermissionRequest | OptionSelectRequest | PermissionRequest | PlaybackControlRequest | RawQueryRequest | SessionEndedRequest | SignInRequest | SurfaceChangeRequest | TransactionDecisionRequest | TransactionRequirementCheckRequest;
|
package/lib/Request/Types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
2
|
export type AudioPlayerRequestType = "AUDIO_PLAYER_REQUEST";
|
|
3
3
|
export type ChannelActionRequestType = "CHANNEL_ACTION_REQUEST";
|
|
4
|
+
export type EventRequestType = "EVENT_REQUEST";
|
|
4
5
|
export type InputUnknownRequestType = "INPUT_UNKNOWN_REQUEST";
|
|
5
6
|
export type IntentRequestType = "INTENT_REQUEST";
|
|
6
7
|
export type LaunchRequestType = "LAUNCH_REQUEST";
|
|
@@ -15,7 +16,7 @@ export type SurfaceChangeRequestType = "SURFACE_CHANGE_REQUEST";
|
|
|
15
16
|
export type TransactionRequirementCheckType = "TRANSACTION_REQUIREMENT_CHECK_REQUEST";
|
|
16
17
|
export type TransactionDecisionType = "TRANSACTION_DECISION_REQUEST";
|
|
17
18
|
export type TransactionDeliveryAddressType = "TRANSACTION_DELIVERY_ADDRESS_REQUEST";
|
|
18
|
-
export type RequestTypes = AudioPlayerRequestType | ChannelActionRequestType | InputUnknownRequestType | IntentRequestType | LaunchRequestType | NotificationPermissionRequestType | OptionSelectRequestType | PermissionRequestType | PlaybackControlRequestType | RawQueryRequestType | SessionEndedRequestType | SignInRequestType | SurfaceChangeRequestType | TransactionRequirementCheckType | TransactionDecisionType | TransactionDeliveryAddressType;
|
|
19
|
+
export type RequestTypes = AudioPlayerRequestType | ChannelActionRequestType | EventRequestType | InputUnknownRequestType | IntentRequestType | LaunchRequestType | NotificationPermissionRequestType | OptionSelectRequestType | PermissionRequestType | PlaybackControlRequestType | RawQueryRequestType | SessionEndedRequestType | SignInRequestType | SurfaceChangeRequestType | TransactionRequirementCheckType | TransactionDecisionType | TransactionDeliveryAddressType;
|
|
19
20
|
export type LaunchRequestID = "LaunchRequest";
|
|
20
21
|
export type PermissionGrantID = "PermissionGrant";
|
|
21
22
|
export type InputUnknownID = "InputUnknown";
|
package/lib/Request/index.d.ts
CHANGED
package/lib/Request/index.js
CHANGED
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./AddressIntentRequest"), exports);
|
|
19
19
|
__exportStar(require("./AudioPlayerRequest"), exports);
|
|
20
20
|
__exportStar(require("./ChannelActionRequest"), exports);
|
|
21
|
+
__exportStar(require("./EventRequest"), exports);
|
|
21
22
|
__exportStar(require("./InputUnknownRequest"), exports);
|
|
22
23
|
__exportStar(require("./IntentRequest"), exports);
|
|
23
24
|
__exportStar(require("./KnowledgeBase"), exports);
|
package/lib/Request/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,yDAAuC;AACvC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD;AAChD,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,oDAAkC;AAClC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,yDAAuC;AACvC,uDAAqC;AACrC,yDAAuC;AACvC,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD;AAChD,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,oDAAkC;AAClC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.66.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": "2.0.2"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c316424dd34c83ea115fa5ca7f5711d43acc03f7"
|
|
37
37
|
}
|