@studyportals/inlinesearch-interfaces 1.0.1-0 → 1.0.1-2
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum InlineSearchCommands {
|
|
2
2
|
INLINE_SEARCH_READY_EVENT = "InlineSearch:ReadyEvent",
|
|
3
3
|
INLINE_SEARCH_APP_RENDER_EVENT = "InlineSearch:AppRenderEvent",
|
|
4
|
-
INLINE_SEARCH_APP_USER_INPUT_EVENT = "InlineSearch:AppUserInputEvent"
|
|
4
|
+
INLINE_SEARCH_APP_USER_INPUT_EVENT = "InlineSearch:AppUserInputEvent",
|
|
5
|
+
INLINE_SEARCH_SUGGESTION_CLICK_EVENT = "InlineSearch:SuggestionClickEvent"
|
|
5
6
|
}
|
|
@@ -6,4 +6,5 @@ var InlineSearchCommands;
|
|
|
6
6
|
InlineSearchCommands["INLINE_SEARCH_READY_EVENT"] = "InlineSearch:ReadyEvent";
|
|
7
7
|
InlineSearchCommands["INLINE_SEARCH_APP_RENDER_EVENT"] = "InlineSearch:AppRenderEvent";
|
|
8
8
|
InlineSearchCommands["INLINE_SEARCH_APP_USER_INPUT_EVENT"] = "InlineSearch:AppUserInputEvent";
|
|
9
|
+
InlineSearchCommands["INLINE_SEARCH_SUGGESTION_CLICK_EVENT"] = "InlineSearch:SuggestionClickEvent";
|
|
9
10
|
})(InlineSearchCommands || (exports.InlineSearchCommands = InlineSearchCommands = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IEvent } from '@studyportals/event-aggregation-service-interface';
|
|
2
|
+
import { InlineSearchCommands } from '../enums';
|
|
3
|
+
export declare class InlineSearchSuggestionClickEvent implements IEvent {
|
|
4
|
+
static readonly EventType = InlineSearchCommands.INLINE_SEARCH_SUGGESTION_CLICK_EVENT;
|
|
5
|
+
readonly timestamp: Date;
|
|
6
|
+
readonly eventType = InlineSearchCommands.INLINE_SEARCH_SUGGESTION_CLICK_EVENT;
|
|
7
|
+
readonly suggestionText: string;
|
|
8
|
+
constructor(suggestionText: string);
|
|
9
|
+
static is(event: IEvent): event is InlineSearchSuggestionClickEvent;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineSearchSuggestionClickEvent = void 0;
|
|
4
|
+
const enums_1 = require("../enums");
|
|
5
|
+
class InlineSearchSuggestionClickEvent {
|
|
6
|
+
constructor(suggestionText) {
|
|
7
|
+
this.timestamp = new Date();
|
|
8
|
+
this.eventType = InlineSearchSuggestionClickEvent.EventType;
|
|
9
|
+
this.suggestionText = suggestionText;
|
|
10
|
+
}
|
|
11
|
+
static is(event) {
|
|
12
|
+
return (event.eventType === InlineSearchSuggestionClickEvent.EventType);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.InlineSearchSuggestionClickEvent = InlineSearchSuggestionClickEvent;
|
|
16
|
+
InlineSearchSuggestionClickEvent.EventType = enums_1.InlineSearchCommands.INLINE_SEARCH_SUGGESTION_CLICK_EVENT;
|
package/events/index.d.ts
CHANGED
package/events/index.js
CHANGED
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./InlineSearchAppRenderEvent"), exports);
|
|
18
18
|
__exportStar(require("./InlineSearchAppUserInputEvent"), exports);
|
|
19
19
|
__exportStar(require("./InlineSearchReadyEvent"), exports);
|
|
20
|
+
__exportStar(require("./InlineSearchSuggestionClickEvent"), exports);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/inlinesearch-interfaces",
|
|
3
|
-
"version": "1.0.1-
|
|
3
|
+
"version": "1.0.1-2",
|
|
4
4
|
"description": "The interfaces exposed by InlineSearch-Service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepare-deployment": "npm run build && cp package.json bin/package.json",
|
|
8
|
-
"deploy": "npm ci && npm run prepare-deployment && npm publish ./bin && rm -rf node_modules",
|
|
8
|
+
"deploy": "npm ci && npm run prepare-deployment && npm publish ./bin --auth-type=legacy && rm -rf node_modules",
|
|
9
9
|
"build": "rm -rf bin && tsc",
|
|
10
10
|
"deploy-patch": "npm version patch && npm run deploy",
|
|
11
11
|
"deploy-minor": "npm version minor && npm run deploy",
|
|
12
12
|
"deploy-major": "npm version major && npm run deploy",
|
|
13
|
-
"deploy-beta": "npm ci && npm run prepare-deployment && npm publish
|
|
13
|
+
"deploy-beta": "npm ci && npm run prepare-deployment && npm publish ./bin --tag beta && rm -rf node_modules"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|