@studyportals/inlinesearch-interfaces 1.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.
- package/InLineSearchApplication.interface.d.ts +4 -0
- package/InLineSearchApplication.interface.js +2 -0
- package/commands/RenderInLineSearchCommand.d.ts +4 -0
- package/commands/RenderInLineSearchCommand.js +9 -0
- package/commands/index.d.ts +1 -0
- package/commands/index.js +17 -0
- package/events/InLineSearchAppRenderEvent.d.ts +10 -0
- package/events/InLineSearchAppRenderEvent.js +15 -0
- package/events/InLineSearchAppUserInputEvent.d.ts +9 -0
- package/events/InLineSearchAppUserInputEvent.js +15 -0
- package/events/index.d.ts +2 -0
- package/events/index.js +18 -0
- package/index.d.ts +2 -0
- package/index.js +18 -0
- package/package.json +28 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RenderInLineSearchCommand = void 0;
|
|
4
|
+
class RenderInLineSearchCommand {
|
|
5
|
+
constructor(node) {
|
|
6
|
+
this.node = node;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.RenderInLineSearchCommand = RenderInLineSearchCommand;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RenderInLineSearchCommand';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./RenderInLineSearchCommand"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IEvent } from '@studyportals/event-aggregation-service-interface';
|
|
2
|
+
import { RenderInLineSearchCommand } from '../commands/RenderInLineSearchCommand';
|
|
3
|
+
export declare class InLineSearchAppRenderEvent implements IEvent {
|
|
4
|
+
static readonly EventType = "SearchPage:InLineSearchAppRenderEvent";
|
|
5
|
+
readonly timestamp: Date;
|
|
6
|
+
readonly eventType = "SearchPage:InLineSearchAppRenderEvent";
|
|
7
|
+
readonly command: RenderInLineSearchCommand;
|
|
8
|
+
constructor(command: RenderInLineSearchCommand);
|
|
9
|
+
static is(event: IEvent): event is InLineSearchAppRenderEvent;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InLineSearchAppRenderEvent = void 0;
|
|
4
|
+
class InLineSearchAppRenderEvent {
|
|
5
|
+
constructor(command) {
|
|
6
|
+
this.timestamp = new Date();
|
|
7
|
+
this.eventType = InLineSearchAppRenderEvent.EventType;
|
|
8
|
+
this.command = command;
|
|
9
|
+
}
|
|
10
|
+
static is(event) {
|
|
11
|
+
return event.eventType === InLineSearchAppRenderEvent.EventType;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.InLineSearchAppRenderEvent = InLineSearchAppRenderEvent;
|
|
15
|
+
InLineSearchAppRenderEvent.EventType = 'SearchPage:InLineSearchAppRenderEvent';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEvent } from '@studyportals/event-aggregation-service-interface';
|
|
2
|
+
export declare class InLineSearchAppUserInputEvent implements IEvent {
|
|
3
|
+
static readonly EventType = "SearchPage:InLineSearchAppUserInputEvent";
|
|
4
|
+
readonly timestamp: Date;
|
|
5
|
+
readonly eventType = "SearchPage:InLineSearchAppUserInputEvent";
|
|
6
|
+
readonly userInput: string;
|
|
7
|
+
constructor(userInput: string);
|
|
8
|
+
static is(event: IEvent): event is InLineSearchAppUserInputEvent;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InLineSearchAppUserInputEvent = void 0;
|
|
4
|
+
class InLineSearchAppUserInputEvent {
|
|
5
|
+
constructor(userInput) {
|
|
6
|
+
this.timestamp = new Date();
|
|
7
|
+
this.eventType = InLineSearchAppUserInputEvent.EventType;
|
|
8
|
+
this.userInput = userInput;
|
|
9
|
+
}
|
|
10
|
+
static is(event) {
|
|
11
|
+
return event.eventType === InLineSearchAppUserInputEvent.EventType;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.InLineSearchAppUserInputEvent = InLineSearchAppUserInputEvent;
|
|
15
|
+
InLineSearchAppUserInputEvent.EventType = 'SearchPage:InLineSearchAppUserInputEvent';
|
package/events/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./InLineSearchAppRenderEvent"), exports);
|
|
18
|
+
__exportStar(require("./InLineSearchAppUserInputEvent"), exports);
|
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("commands"), exports);
|
|
18
|
+
__exportStar(require("events"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@studyportals/inlinesearch-interfaces",
|
|
3
|
+
"version": "1.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 && 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
|
+
}
|