@studyportals/inlinesearch-interfaces 1.0.4 → 2.0.0-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.
@@ -3,5 +3,6 @@ export declare enum InlineSearchCommands {
3
3
  INLINE_SEARCH_APP_RENDER_EVENT = "InlineSearch:AppRenderEvent",
4
4
  INLINE_SEARCH_APP_USER_INPUT_EVENT = "InlineSearch:AppUserInputEvent",
5
5
  INLINE_SEARCH_SUGGESTION_CLICK_EVENT = "InlineSearch:SuggestionClickEvent",
6
+ INLINE_SEARCH_SEND_EVENT = "InlineSearch:SendEvent",
6
7
  INLINE_SEARCH_APP_USER_KEYBOARD_EVENT = "InlineSearch:AppUserKeyboardEvent"
7
8
  }
@@ -7,5 +7,6 @@ var InlineSearchCommands;
7
7
  InlineSearchCommands["INLINE_SEARCH_APP_RENDER_EVENT"] = "InlineSearch:AppRenderEvent";
8
8
  InlineSearchCommands["INLINE_SEARCH_APP_USER_INPUT_EVENT"] = "InlineSearch:AppUserInputEvent";
9
9
  InlineSearchCommands["INLINE_SEARCH_SUGGESTION_CLICK_EVENT"] = "InlineSearch:SuggestionClickEvent";
10
+ InlineSearchCommands["INLINE_SEARCH_SEND_EVENT"] = "InlineSearch:SendEvent";
10
11
  InlineSearchCommands["INLINE_SEARCH_APP_USER_KEYBOARD_EVENT"] = "InlineSearch:AppUserKeyboardEvent";
11
12
  })(InlineSearchCommands || (exports.InlineSearchCommands = InlineSearchCommands = {}));
@@ -0,0 +1,8 @@
1
+ import { IEvent } from '@studyportals/event-aggregation-service-interface';
2
+ import { InlineSearchCommands } from '../enums';
3
+ export declare class InlineSearchSendEvent implements IEvent {
4
+ static readonly EventType = InlineSearchCommands.INLINE_SEARCH_SEND_EVENT;
5
+ readonly timestamp: Date;
6
+ readonly eventType = InlineSearchCommands.INLINE_SEARCH_SEND_EVENT;
7
+ static is(event: IEvent): event is InlineSearchSendEvent;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InlineSearchSendEvent = void 0;
4
+ const enums_1 = require("../enums");
5
+ class InlineSearchSendEvent {
6
+ constructor() {
7
+ this.timestamp = new Date();
8
+ this.eventType = InlineSearchSendEvent.EventType;
9
+ }
10
+ static is(event) {
11
+ return event.eventType === InlineSearchSendEvent.EventType;
12
+ }
13
+ }
14
+ exports.InlineSearchSendEvent = InlineSearchSendEvent;
15
+ InlineSearchSendEvent.EventType = enums_1.InlineSearchCommands.INLINE_SEARCH_SEND_EVENT;
package/events/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './InlineSearchAppUserInputEvent';
3
3
  export * from './InlineSearchReadyEvent';
4
4
  export * from './InlineSearchSuggestionClickEvent';
5
5
  export * from './InlineSearchAppUserKeyboardEvent';
6
+ export * from './InlineSearchSendEvent';
package/events/index.js CHANGED
@@ -19,3 +19,4 @@ __exportStar(require("./InlineSearchAppUserInputEvent"), exports);
19
19
  __exportStar(require("./InlineSearchReadyEvent"), exports);
20
20
  __exportStar(require("./InlineSearchSuggestionClickEvent"), exports);
21
21
  __exportStar(require("./InlineSearchAppUserKeyboardEvent"), exports);
22
+ __exportStar(require("./InlineSearchSendEvent"), exports);
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "@studyportals/inlinesearch-interfaces",
3
- "version": "1.0.4",
4
- "description": "The interfaces exposed by InlineSearch-Service",
5
- "main": "index.js",
6
- "scripts": {
7
- "prepare-deployment": "npm run build && cp package.json bin/package.json",
8
- "deploy": "npm ci && npm run prepare-deployment && npm publish ./bin --auth-type=legacy && rm -rf node_modules",
9
- "build": "rm -rf bin && tsc",
10
- "deploy-patch": "npm version patch && npm run deploy",
11
- "deploy-minor": "npm version minor && npm run deploy",
12
- "deploy-major": "npm version major && npm run deploy",
13
- "deploy-beta": "npm ci && npm run prepare-deployment && npm publish ./bin --tag beta && rm -rf node_modules"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/studyportals/InlineSearch-Service.git"
18
- },
19
- "author": "Samurai Pizza Cats",
20
- "license": "ISC",
21
- "homepage": "https://github.com/studyportals/InlineSearch-Service#readme",
22
- "bugs": {
23
- "url": "https://github.com/studyportals/InlineSearch-Service/issues"
24
- },
25
- "devDependencies": {
26
- "typescript": "^5.7.3"
27
- }
28
- }
1
+ {
2
+ "name": "@studyportals/inlinesearch-interfaces",
3
+ "version": "2.0.0-0",
4
+ "description": "The interfaces exposed by InlineSearch-Service",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "prepare-deployment": "npm run build && cp package.json bin/package.json",
8
+ "deploy": "npm ci && npm run prepare-deployment && npm publish ./bin --auth-type=legacy && rm -rf node_modules",
9
+ "build": "rm -rf bin && tsc",
10
+ "deploy-patch": "npm version patch && npm run deploy",
11
+ "deploy-minor": "npm version minor && npm run deploy",
12
+ "deploy-major": "npm version major && npm run deploy",
13
+ "deploy-beta": "npm ci && npm run prepare-deployment && npm publish ./bin --tag beta && rm -rf node_modules"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/studyportals/InlineSearch-Service.git"
18
+ },
19
+ "author": "Samurai Pizza Cats",
20
+ "license": "ISC",
21
+ "homepage": "https://github.com/studyportals/InlineSearch-Service#readme",
22
+ "bugs": {
23
+ "url": "https://github.com/studyportals/InlineSearch-Service/issues"
24
+ },
25
+ "devDependencies": {
26
+ "typescript": "^5.7.3"
27
+ }
28
+ }