@studyportals/inlinesearch-interfaces 1.0.0-1 → 1.0.1-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/commands/{RenderInLineSearchCommand.d.ts → RenderInlineSearchCommand.d.ts} +1 -1
- package/commands/RenderInlineSearchCommand.js +9 -0
- package/commands/index.d.ts +1 -1
- package/commands/index.js +1 -1
- package/enums/InlineSearchCommands.d.ts +5 -0
- package/enums/InlineSearchCommands.js +9 -0
- package/enums/index.d.ts +1 -0
- package/enums/index.js +17 -0
- package/events/InlineSearchAppRenderEvent.d.ts +11 -0
- package/events/InlineSearchAppRenderEvent.js +16 -0
- package/events/InlineSearchAppUserInputEvent.d.ts +10 -0
- package/events/InlineSearchAppUserInputEvent.js +16 -0
- package/events/InlineSearchReadyEvent.d.ts +11 -0
- package/events/InlineSearchReadyEvent.js +16 -0
- package/events/index.d.ts +3 -2
- package/events/index.js +3 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/InLineSearchApplication.interface.d.ts +0 -4
- package/commands/RenderInLineSearchCommand.js +0 -9
- package/events/InLineSearchAppRenderEvent.d.ts +0 -10
- package/events/InLineSearchAppRenderEvent.js +0 -15
- package/events/InLineSearchAppUserInputEvent.d.ts +0 -9
- package/events/InLineSearchAppUserInputEvent.js +0 -15
- /package/{InLineSearchApplication.interface.js → InlineSearchApplication.interface.js} +0 -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;
|
package/commands/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './RenderInlineSearchCommand';
|
package/commands/index.js
CHANGED
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./RenderInlineSearchCommand"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineSearchCommands = void 0;
|
|
4
|
+
var InlineSearchCommands;
|
|
5
|
+
(function (InlineSearchCommands) {
|
|
6
|
+
InlineSearchCommands["INLINE_SEARCH_READY_EVENT"] = "InlineSearch:ReadyEvent";
|
|
7
|
+
InlineSearchCommands["INLINE_SEARCH_APP_RENDER_EVENT"] = "InlineSearch:AppRenderEvent";
|
|
8
|
+
InlineSearchCommands["INLINE_SEARCH_APP_USER_INPUT_EVENT"] = "InlineSearch:AppUserInputEvent";
|
|
9
|
+
})(InlineSearchCommands || (exports.InlineSearchCommands = InlineSearchCommands = {}));
|
package/enums/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InlineSearchCommands';
|
package/enums/index.js
ADDED
|
@@ -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("./InlineSearchCommands"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IEvent } from '@studyportals/event-aggregation-service-interface';
|
|
2
|
+
import { RenderInlineSearchCommand } from '../commands/RenderInlineSearchCommand';
|
|
3
|
+
import { InlineSearchCommands } from '../enums';
|
|
4
|
+
export declare class InlineSearchAppRenderEvent implements IEvent {
|
|
5
|
+
static readonly EventType = InlineSearchCommands.INLINE_SEARCH_APP_RENDER_EVENT;
|
|
6
|
+
readonly timestamp: Date;
|
|
7
|
+
readonly eventType = InlineSearchCommands.INLINE_SEARCH_APP_RENDER_EVENT;
|
|
8
|
+
readonly command: RenderInlineSearchCommand;
|
|
9
|
+
constructor(command: RenderInlineSearchCommand);
|
|
10
|
+
static is(event: IEvent): event is InlineSearchAppRenderEvent;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineSearchAppRenderEvent = void 0;
|
|
4
|
+
const enums_1 = require("../enums");
|
|
5
|
+
class InlineSearchAppRenderEvent {
|
|
6
|
+
constructor(command) {
|
|
7
|
+
this.timestamp = new Date();
|
|
8
|
+
this.eventType = InlineSearchAppRenderEvent.EventType;
|
|
9
|
+
this.command = command;
|
|
10
|
+
}
|
|
11
|
+
static is(event) {
|
|
12
|
+
return event.eventType === InlineSearchAppRenderEvent.EventType;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.InlineSearchAppRenderEvent = InlineSearchAppRenderEvent;
|
|
16
|
+
InlineSearchAppRenderEvent.EventType = enums_1.InlineSearchCommands.INLINE_SEARCH_APP_RENDER_EVENT;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IEvent } from '@studyportals/event-aggregation-service-interface';
|
|
2
|
+
import { InlineSearchCommands } from '../enums';
|
|
3
|
+
export declare class InlineSearchAppUserInputEvent implements IEvent {
|
|
4
|
+
static readonly EventType = InlineSearchCommands.INLINE_SEARCH_APP_USER_INPUT_EVENT;
|
|
5
|
+
readonly timestamp: Date;
|
|
6
|
+
readonly eventType = InlineSearchCommands.INLINE_SEARCH_APP_USER_INPUT_EVENT;
|
|
7
|
+
readonly userInput: string;
|
|
8
|
+
constructor(userInput: string);
|
|
9
|
+
static is(event: IEvent): event is InlineSearchAppUserInputEvent;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineSearchAppUserInputEvent = void 0;
|
|
4
|
+
const enums_1 = require("../enums");
|
|
5
|
+
class InlineSearchAppUserInputEvent {
|
|
6
|
+
constructor(userInput) {
|
|
7
|
+
this.timestamp = new Date();
|
|
8
|
+
this.eventType = InlineSearchAppUserInputEvent.EventType;
|
|
9
|
+
this.userInput = userInput;
|
|
10
|
+
}
|
|
11
|
+
static is(event) {
|
|
12
|
+
return event.eventType === InlineSearchAppUserInputEvent.EventType;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.InlineSearchAppUserInputEvent = InlineSearchAppUserInputEvent;
|
|
16
|
+
InlineSearchAppUserInputEvent.EventType = enums_1.InlineSearchCommands.INLINE_SEARCH_APP_USER_INPUT_EVENT;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IEvent } from '@studyportals/event-aggregation-service-interface';
|
|
2
|
+
import { InlineSearchCommands } from '../enums';
|
|
3
|
+
import { IInlineSearchApplication } from '../InlineSearchApplication.interface';
|
|
4
|
+
export declare class InlineSearchReadyEvent implements IEvent {
|
|
5
|
+
static readonly EventType = InlineSearchCommands.INLINE_SEARCH_READY_EVENT;
|
|
6
|
+
readonly timestamp: Date;
|
|
7
|
+
readonly eventType = InlineSearchCommands.INLINE_SEARCH_READY_EVENT;
|
|
8
|
+
inlineSearchApplication: IInlineSearchApplication;
|
|
9
|
+
constructor(inlineSearchApplication: IInlineSearchApplication);
|
|
10
|
+
static is(event: IEvent): event is InlineSearchReadyEvent;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineSearchReadyEvent = void 0;
|
|
4
|
+
const enums_1 = require("../enums");
|
|
5
|
+
class InlineSearchReadyEvent {
|
|
6
|
+
constructor(inlineSearchApplication) {
|
|
7
|
+
this.timestamp = new Date();
|
|
8
|
+
this.eventType = InlineSearchReadyEvent.EventType;
|
|
9
|
+
this.inlineSearchApplication = inlineSearchApplication;
|
|
10
|
+
}
|
|
11
|
+
static is(event) {
|
|
12
|
+
return event.eventType === InlineSearchReadyEvent.EventType;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.InlineSearchReadyEvent = InlineSearchReadyEvent;
|
|
16
|
+
InlineSearchReadyEvent.EventType = enums_1.InlineSearchCommands.INLINE_SEARCH_READY_EVENT;
|
package/events/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './InlineSearchAppRenderEvent';
|
|
2
|
+
export * from './InlineSearchAppUserInputEvent';
|
|
3
|
+
export * from './InlineSearchReadyEvent';
|
package/events/index.js
CHANGED
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./InlineSearchAppRenderEvent"), exports);
|
|
18
|
+
__exportStar(require("./InlineSearchAppUserInputEvent"), exports);
|
|
19
|
+
__exportStar(require("./InlineSearchReadyEvent"), exports);
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./commands"), exports);
|
|
18
18
|
__exportStar(require("./events"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./InlineSearchApplication.interface"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/inlinesearch-interfaces",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.1-0",
|
|
4
4
|
"description": "The interfaces exposed by InlineSearch-Service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
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 ./bin --tag beta && rm -rf node_modules"
|
|
13
|
+
"deploy-beta": "npm ci && npm run prepare-deployment && npm publish --auth-type=legacy ./bin --tag beta && rm -rf node_modules"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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';
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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';
|
|
File without changes
|