@contrail/extensions-sdk 1.0.8 → 1.0.9

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.
Files changed (38) hide show
  1. package/.github/pull_request_template.md +30 -30
  2. package/.github/workflows/empty.yml +11 -11
  3. package/.github/workflows/sdk-lib.yml +27 -27
  4. package/README.md +2 -2
  5. package/home-hero.svg +11 -11
  6. package/lib/actions/actions.d.ts +16 -16
  7. package/lib/actions/actions.js +11 -11
  8. package/lib/apps/app-context.d.ts +55 -55
  9. package/lib/apps/app-context.js +19 -19
  10. package/lib/apps/boards.d.ts +22 -20
  11. package/lib/apps/boards.js +48 -43
  12. package/lib/apps/index.d.ts +3 -3
  13. package/lib/apps/index.js +22 -22
  14. package/lib/apps/plan.d.ts +15 -15
  15. package/lib/apps/plan.js +59 -59
  16. package/lib/entities/entities-action-handler.d.ts +22 -22
  17. package/lib/entities/entities-action-handler.js +57 -57
  18. package/lib/entities/entities-client.d.ts +22 -22
  19. package/lib/entities/entities-client.js +68 -68
  20. package/lib/entities/index.d.ts +1 -1
  21. package/lib/entities/index.js +17 -17
  22. package/lib/extensions/app-extension-host.d.ts +6 -6
  23. package/lib/extensions/app-extension-host.js +52 -52
  24. package/lib/extensions/app-extension-message-handler.d.ts +7 -7
  25. package/lib/extensions/app-extension-message-handler.js +2 -2
  26. package/lib/extensions/app-extension.d.ts +7 -7
  27. package/lib/extensions/app-extension.js +58 -58
  28. package/lib/extensions/index.d.ts +3 -3
  29. package/lib/extensions/index.js +19 -19
  30. package/lib/index.d.ts +4 -4
  31. package/lib/index.js +20 -20
  32. package/lib/types/index.d.ts +1 -1
  33. package/lib/types/index.js +17 -17
  34. package/lib/types/types-action-handler.d.ts +18 -18
  35. package/lib/types/types-action-handler.js +45 -45
  36. package/lib/types/types-client.d.ts +8 -8
  37. package/lib/types/types-client.js +43 -43
  38. package/package.json +51 -51
@@ -1,30 +1,30 @@
1
- ## What
2
- - [ ] Bugfix
3
- - [ ] Feature
4
- - [ ] Enhancement
5
-
6
- Description:
7
- <!--
8
- Describe the functional changes of the PR.
9
-
10
- If the mechanism of your change are complex, describe them in detail as you
11
- would if you were explaining them to a team mate.
12
-
13
- If the PR is simple, there is no need to repeat yourself. A small description
14
- is sufficient.
15
- -->
16
-
17
- ## Why
18
- <!--
19
- why is this change needed? Same rules as with #What
20
- -->
21
-
22
-
23
- ## Testing added
24
- <!--
25
- Describe the testing you added to this PR
26
- -->
27
-
28
-
29
- ## Link to Jira ticket(s)
30
-
1
+ ## What
2
+ - [ ] Bugfix
3
+ - [ ] Feature
4
+ - [ ] Enhancement
5
+
6
+ Description:
7
+ <!--
8
+ Describe the functional changes of the PR.
9
+
10
+ If the mechanism of your change are complex, describe them in detail as you
11
+ would if you were explaining them to a team mate.
12
+
13
+ If the PR is simple, there is no need to repeat yourself. A small description
14
+ is sufficient.
15
+ -->
16
+
17
+ ## Why
18
+ <!--
19
+ why is this change needed? Same rules as with #What
20
+ -->
21
+
22
+
23
+ ## Testing added
24
+ <!--
25
+ Describe the testing you added to this PR
26
+ -->
27
+
28
+
29
+ ## Link to Jira ticket(s)
30
+
@@ -1,11 +1,11 @@
1
- name: empty-passing-test
2
- on:
3
- pull_request
4
- jobs:
5
- test:
6
- runs-on: ubuntu-20.04
7
- strategy:
8
- matrix:
9
- node-version: [16.17.0]
10
- steps:
11
- - run: 'echo "empty test for passing status checks"'
1
+ name: empty-passing-test
2
+ on:
3
+ pull_request
4
+ jobs:
5
+ test:
6
+ runs-on: ubuntu-20.04
7
+ strategy:
8
+ matrix:
9
+ node-version: [16.17.0]
10
+ steps:
11
+ - run: 'echo "empty test for passing status checks"'
@@ -1,27 +1,27 @@
1
- name: sdk-lib-tests
2
- on:
3
- pull_request:
4
- # run this workflow when files these files change
5
- paths:
6
- - "**"
7
- workflow_dispatch: # allow running in github actions manually
8
- jobs:
9
- test:
10
- runs-on: ubuntu-20.04
11
- steps:
12
- - name: Node.js
13
- uses: actions/setup-node@v3
14
- with:
15
- node-version: ${{ matrix.node-version }}
16
-
17
- - uses: actions/checkout@v3
18
-
19
- - name: NPM Install
20
- env:
21
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22
- run: npm ci
23
-
24
- - name: Unit Tests -
25
- env:
26
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27
- run: npm test
1
+ name: sdk-lib-tests
2
+ on:
3
+ pull_request:
4
+ # run this workflow when files these files change
5
+ paths:
6
+ - "**"
7
+ workflow_dispatch: # allow running in github actions manually
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-20.04
11
+ steps:
12
+ - name: Node.js
13
+ uses: actions/setup-node@v3
14
+ with:
15
+ node-version: ${{ matrix.node-version }}
16
+
17
+ - uses: actions/checkout@v3
18
+
19
+ - name: NPM Install
20
+ env:
21
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22
+ run: npm ci
23
+
24
+ - name: Unit Tests -
25
+ env:
26
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27
+ run: npm test
package/README.md CHANGED
@@ -1,2 +1,2 @@
1
- # Contrail Extensions SDK
2
- Client library for interfacing with VibeIQ's services and apps from an extension.
1
+ # Contrail Extensions SDK
2
+ Client library for interfacing with VibeIQ's services and apps from an extension.
package/home-hero.svg CHANGED
@@ -1,11 +1,11 @@
1
- <svg width="635" height="433" viewBox="0 0 635 433" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_309_15692)">
3
- <path d="M656.604 384.076C457.662 384.076 414.538 48.9114 216.574 48.9114C172.144 48.9339 129.54 66.5999 98.1308 98.0252C66.7213 129.451 49.077 172.063 49.077 216.494" stroke="#202532" stroke-width="97.8221" stroke-miterlimit="10"/>
4
- <path d="M49.077 216.494C49.077 309.04 128.454 384.076 216.66 384.076C415.601 384.076 457.747 48.9114 656.689 48.9114C701.134 48.9114 743.76 66.5673 775.188 97.9952C806.615 129.423 824.272 172.048 824.272 216.494C824.272 260.94 806.615 303.565 775.188 334.993C743.76 366.421 701.134 384.076 656.689 384.076" stroke="#00ABE9" stroke-width="97.8221" stroke-miterlimit="10"/>
5
- </g>
6
- <defs>
7
- <clipPath id="clip0_309_15692">
8
- <rect width="873.016" height="432.987" fill="white" transform="translate(0.166809)"/>
9
- </clipPath>
10
- </defs>
11
- </svg>
1
+ <svg width="635" height="433" viewBox="0 0 635 433" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_309_15692)">
3
+ <path d="M656.604 384.076C457.662 384.076 414.538 48.9114 216.574 48.9114C172.144 48.9339 129.54 66.5999 98.1308 98.0252C66.7213 129.451 49.077 172.063 49.077 216.494" stroke="#202532" stroke-width="97.8221" stroke-miterlimit="10"/>
4
+ <path d="M49.077 216.494C49.077 309.04 128.454 384.076 216.66 384.076C415.601 384.076 457.747 48.9114 656.689 48.9114C701.134 48.9114 743.76 66.5673 775.188 97.9952C806.615 129.423 824.272 172.048 824.272 216.494C824.272 260.94 806.615 303.565 775.188 334.993C743.76 366.421 701.134 384.076 656.689 384.076" stroke="#00ABE9" stroke-width="97.8221" stroke-miterlimit="10"/>
5
+ </g>
6
+ <defs>
7
+ <clipPath id="clip0_309_15692">
8
+ <rect width="873.016" height="432.987" fill="white" transform="translate(0.166809)"/>
9
+ </clipPath>
10
+ </defs>
11
+ </svg>
@@ -1,16 +1,16 @@
1
- import { AppContext } from "../apps/app-context";
2
- import { EntitiesClientAction } from "../entities/entities-action-handler";
3
- import { AppExtensionMessage } from "../extensions/app-extension-message-handler";
4
- import { TypesClientAction } from "../types/types-action-handler";
5
- export interface RegisterExtensionActions {
6
- init(context: AppContext): void;
7
- }
8
- export interface ExtensionActions {
9
- close(): void;
10
- sendMessageToEntitiesClient(message: EntitiesClientAction): Promise<any>;
11
- sendMessageToTypesClient(message: TypesClientAction): Promise<any>;
12
- sendMessageToHost(message: AppExtensionMessage): Promise<any>;
13
- }
14
- export declare let EXTENSION_ACTIONS: ExtensionActions;
15
- export declare function setExtensionActions(actions: ExtensionActions): void;
16
- export declare function getExtensionActions(): ExtensionActions;
1
+ import { AppContext } from "../apps/app-context";
2
+ import { EntitiesClientAction } from "../entities/entities-action-handler";
3
+ import { AppExtensionMessage } from "../extensions/app-extension-message-handler";
4
+ import { TypesClientAction } from "../types/types-action-handler";
5
+ export interface RegisterExtensionActions {
6
+ init(context: AppContext): void;
7
+ }
8
+ export interface ExtensionActions {
9
+ close(): void;
10
+ sendMessageToEntitiesClient(message: EntitiesClientAction): Promise<any>;
11
+ sendMessageToTypesClient(message: TypesClientAction): Promise<any>;
12
+ sendMessageToHost(message: AppExtensionMessage): Promise<any>;
13
+ }
14
+ export declare let EXTENSION_ACTIONS: ExtensionActions;
15
+ export declare function setExtensionActions(actions: ExtensionActions): void;
16
+ export declare function getExtensionActions(): ExtensionActions;
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExtensionActions = exports.setExtensionActions = exports.EXTENSION_ACTIONS = void 0;
4
- function setExtensionActions(actions) {
5
- exports.EXTENSION_ACTIONS = actions;
6
- }
7
- exports.setExtensionActions = setExtensionActions;
8
- function getExtensionActions() {
9
- return exports.EXTENSION_ACTIONS;
10
- }
11
- exports.getExtensionActions = getExtensionActions;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getExtensionActions = exports.setExtensionActions = exports.EXTENSION_ACTIONS = void 0;
4
+ function setExtensionActions(actions) {
5
+ exports.EXTENSION_ACTIONS = actions;
6
+ }
7
+ exports.setExtensionActions = setExtensionActions;
8
+ function getExtensionActions() {
9
+ return exports.EXTENSION_ACTIONS;
10
+ }
11
+ exports.getExtensionActions = getExtensionActions;
@@ -1,55 +1,55 @@
1
- import { User } from "@contrail/entity-types";
2
- export declare enum VibeIQAppType {
3
- BOARDS = "boards",
4
- PLAN = "plan",
5
- SHOWCASE = "showcase",
6
- ADMIN_CONSOLE = "admin_console"
7
- }
8
- export interface AppContext {
9
- appContext?: {
10
- plan?: PlanContext;
11
- board?: BoardContext;
12
- selectedElements?: any[];
13
- vibeIQApp?: VibeIQAppType;
14
- };
15
- user?: User;
16
- }
17
- export interface PlanContext {
18
- id: string;
19
- name: string;
20
- orgId: string;
21
- targetAssortmentId: string;
22
- workspaceId: string;
23
- itemIds?: string[];
24
- planPlaceholders?: any[];
25
- filteredPlanPlaceholderIds?: string[];
26
- hasFilter: boolean;
27
- }
28
- export interface BoardContext {
29
- id: string;
30
- name: string;
31
- orgId: string;
32
- backingAssortmentId?: string;
33
- documentId?: string;
34
- document?: {
35
- id: string;
36
- name: string;
37
- orgId: string;
38
- ownedByReference: string;
39
- size: {
40
- width: string;
41
- height: string;
42
- };
43
- elements: any[];
44
- documentElementSortOrder: any;
45
- modelBindings: any;
46
- workspaceId: string;
47
- };
48
- previewFileId?: string;
49
- rootWorkspaceId?: string;
50
- typeId?: string;
51
- workspaceId?: string;
52
- }
53
- export declare const CONTEXT: AppContext;
54
- export declare function setAppContext(context: AppContext): void;
55
- export declare function getAppContext(): AppContext;
1
+ import { User } from "@contrail/entity-types";
2
+ export declare enum VibeIQAppType {
3
+ BOARDS = "boards",
4
+ PLAN = "plan",
5
+ SHOWCASE = "showcase",
6
+ ADMIN_CONSOLE = "admin_console"
7
+ }
8
+ export interface AppContext {
9
+ appContext?: {
10
+ plan?: PlanContext;
11
+ board?: BoardContext;
12
+ selectedElements?: any[];
13
+ vibeIQApp?: VibeIQAppType;
14
+ };
15
+ user?: User;
16
+ }
17
+ export interface PlanContext {
18
+ id: string;
19
+ name: string;
20
+ orgId: string;
21
+ targetAssortmentId: string;
22
+ workspaceId: string;
23
+ itemIds?: string[];
24
+ planPlaceholders?: any[];
25
+ filteredPlanPlaceholderIds?: string[];
26
+ hasFilter: boolean;
27
+ }
28
+ export interface BoardContext {
29
+ id: string;
30
+ name: string;
31
+ orgId: string;
32
+ backingAssortmentId?: string;
33
+ documentId?: string;
34
+ document?: {
35
+ id: string;
36
+ name: string;
37
+ orgId: string;
38
+ ownedByReference: string;
39
+ size: {
40
+ width: string;
41
+ height: string;
42
+ };
43
+ elements: any[];
44
+ documentElementSortOrder: any;
45
+ modelBindings: any;
46
+ workspaceId: string;
47
+ };
48
+ previewFileId?: string;
49
+ rootWorkspaceId?: string;
50
+ typeId?: string;
51
+ workspaceId?: string;
52
+ }
53
+ export declare const CONTEXT: AppContext;
54
+ export declare function setAppContext(context: AppContext): void;
55
+ export declare function getAppContext(): AppContext;
@@ -1,19 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAppContext = exports.setAppContext = exports.CONTEXT = exports.VibeIQAppType = void 0;
4
- var VibeIQAppType;
5
- (function (VibeIQAppType) {
6
- VibeIQAppType["BOARDS"] = "boards";
7
- VibeIQAppType["PLAN"] = "plan";
8
- VibeIQAppType["SHOWCASE"] = "showcase";
9
- VibeIQAppType["ADMIN_CONSOLE"] = "admin_console";
10
- })(VibeIQAppType = exports.VibeIQAppType || (exports.VibeIQAppType = {}));
11
- exports.CONTEXT = {};
12
- function setAppContext(context) {
13
- Object.assign(exports.CONTEXT, context);
14
- }
15
- exports.setAppContext = setAppContext;
16
- function getAppContext() {
17
- return exports.CONTEXT;
18
- }
19
- exports.getAppContext = getAppContext;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAppContext = exports.setAppContext = exports.CONTEXT = exports.VibeIQAppType = void 0;
4
+ var VibeIQAppType;
5
+ (function (VibeIQAppType) {
6
+ VibeIQAppType["BOARDS"] = "boards";
7
+ VibeIQAppType["PLAN"] = "plan";
8
+ VibeIQAppType["SHOWCASE"] = "showcase";
9
+ VibeIQAppType["ADMIN_CONSOLE"] = "admin_console";
10
+ })(VibeIQAppType = exports.VibeIQAppType || (exports.VibeIQAppType = {}));
11
+ exports.CONTEXT = {};
12
+ function setAppContext(context) {
13
+ Object.assign(exports.CONTEXT, context);
14
+ }
15
+ exports.setAppContext = setAppContext;
16
+ function getAppContext() {
17
+ return exports.CONTEXT;
18
+ }
19
+ exports.getAppContext = getAppContext;
@@ -1,20 +1,22 @@
1
- import { DocumentElement } from '@contrail/documents';
2
- export declare enum BoardCommand {
3
- ADD_ELEMENTS = "board:add_elements",
4
- DELETE_ELEMENTS = "board:delete_elements",
5
- MODIFY_ELEMENTS = "board:modify_elements"
6
- }
7
- export interface BoardDocumentElement extends DocumentElement {
8
- [key: string]: any;
9
- }
10
- export interface BoardDocumentElementChanges {
11
- id: string;
12
- changes: BoardDocumentElement;
13
- }
14
- export declare class BoardsApp {
15
- static getCurrentBoard(): any;
16
- static addElements(elements: Array<BoardDocumentElement>): void;
17
- static deleteElements(elements: Array<BoardDocumentElement>): void;
18
- static modifyElements(changeObjects: Array<BoardDocumentElementChanges>): void;
19
- private static validateBoardContext;
20
- }
1
+ import { DocumentElement } from '@contrail/documents';
2
+ export declare enum BoardCommand {
3
+ ADD_ELEMENTS = "board:add_elements",
4
+ DELETE_ELEMENTS = "board:delete_elements",
5
+ MODIFY_ELEMENTS = "board:modify_elements",
6
+ GET_ELEMENTS = "board:get_elements"
7
+ }
8
+ export interface BoardDocumentElement extends DocumentElement {
9
+ [key: string]: any;
10
+ }
11
+ export interface BoardDocumentElementChanges {
12
+ id: string;
13
+ changes: BoardDocumentElement;
14
+ }
15
+ export declare class BoardsApp {
16
+ static getCurrentBoard(): any;
17
+ static addElements(elements: Array<BoardDocumentElement>): void;
18
+ static deleteElements(elements: Array<BoardDocumentElement>): void;
19
+ static modifyElements(changeObjects: Array<BoardDocumentElementChanges>): void;
20
+ static getElements(criteria: object): Promise<Array<DocumentElement>>;
21
+ private static validateBoardContext;
22
+ }
@@ -1,43 +1,48 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoardsApp = exports.BoardCommand = void 0;
4
- const actions_1 = require("../actions/actions");
5
- const app_context_1 = require("./app-context");
6
- var BoardCommand;
7
- (function (BoardCommand) {
8
- BoardCommand["ADD_ELEMENTS"] = "board:add_elements";
9
- BoardCommand["DELETE_ELEMENTS"] = "board:delete_elements";
10
- BoardCommand["MODIFY_ELEMENTS"] = "board:modify_elements";
11
- })(BoardCommand = exports.BoardCommand || (exports.BoardCommand = {}));
12
- class BoardsApp {
13
- static getCurrentBoard() {
14
- BoardsApp.validateBoardContext();
15
- return (0, app_context_1.getAppContext)().appContext.board;
16
- }
17
- static addElements(elements) {
18
- BoardsApp.validateBoardContext();
19
- if (elements === null || elements === void 0 ? void 0 : elements.length) {
20
- (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.ADD_ELEMENTS, data: elements });
21
- }
22
- }
23
- static deleteElements(elements) {
24
- BoardsApp.validateBoardContext();
25
- const elementsWithIds = elements.filter((element) => !!element.id);
26
- if (elementsWithIds === null || elementsWithIds === void 0 ? void 0 : elementsWithIds.length) {
27
- (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.DELETE_ELEMENTS, data: elementsWithIds });
28
- }
29
- }
30
- static modifyElements(changeObjects) {
31
- BoardsApp.validateBoardContext();
32
- if (changeObjects === null || changeObjects === void 0 ? void 0 : changeObjects.length) {
33
- (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.MODIFY_ELEMENTS, data: changeObjects });
34
- }
35
- }
36
- static validateBoardContext() {
37
- const context = (0, app_context_1.getAppContext)();
38
- if (context.appContext.vibeIQApp !== app_context_1.VibeIQAppType.BOARDS || !context.appContext.board) {
39
- throw new Error("App extension has not been initialized with Board context.");
40
- }
41
- }
42
- }
43
- exports.BoardsApp = BoardsApp;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoardsApp = exports.BoardCommand = void 0;
4
+ const actions_1 = require("../actions/actions");
5
+ const app_context_1 = require("./app-context");
6
+ var BoardCommand;
7
+ (function (BoardCommand) {
8
+ BoardCommand["ADD_ELEMENTS"] = "board:add_elements";
9
+ BoardCommand["DELETE_ELEMENTS"] = "board:delete_elements";
10
+ BoardCommand["MODIFY_ELEMENTS"] = "board:modify_elements";
11
+ BoardCommand["GET_ELEMENTS"] = "board:get_elements";
12
+ })(BoardCommand = exports.BoardCommand || (exports.BoardCommand = {}));
13
+ class BoardsApp {
14
+ static getCurrentBoard() {
15
+ BoardsApp.validateBoardContext();
16
+ return (0, app_context_1.getAppContext)().appContext.board;
17
+ }
18
+ static addElements(elements) {
19
+ BoardsApp.validateBoardContext();
20
+ if (elements === null || elements === void 0 ? void 0 : elements.length) {
21
+ (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.ADD_ELEMENTS, data: elements });
22
+ }
23
+ }
24
+ static deleteElements(elements) {
25
+ BoardsApp.validateBoardContext();
26
+ const elementsWithIds = elements.filter((element) => !!element.id);
27
+ if (elementsWithIds === null || elementsWithIds === void 0 ? void 0 : elementsWithIds.length) {
28
+ (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.DELETE_ELEMENTS, data: elementsWithIds });
29
+ }
30
+ }
31
+ static modifyElements(changeObjects) {
32
+ BoardsApp.validateBoardContext();
33
+ if (changeObjects === null || changeObjects === void 0 ? void 0 : changeObjects.length) {
34
+ (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.MODIFY_ELEMENTS, data: changeObjects });
35
+ }
36
+ }
37
+ static getElements(criteria) {
38
+ BoardsApp.validateBoardContext();
39
+ return (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.GET_ELEMENTS, data: criteria });
40
+ }
41
+ static validateBoardContext() {
42
+ const context = (0, app_context_1.getAppContext)();
43
+ if (context.appContext.vibeIQApp !== app_context_1.VibeIQAppType.BOARDS || !context.appContext.board) {
44
+ throw new Error("App extension has not been initialized with Board context.");
45
+ }
46
+ }
47
+ }
48
+ exports.BoardsApp = BoardsApp;
@@ -1,3 +1,3 @@
1
- export { getAppContext, AppContext, BoardContext, PlanContext, VibeIQAppType } from './app-context';
2
- export * from './boards';
3
- export * from './plan';
1
+ export { getAppContext, AppContext, BoardContext, PlanContext, VibeIQAppType } from './app-context';
2
+ export * from './boards';
3
+ export * from './plan';
package/lib/apps/index.js CHANGED
@@ -1,22 +1,22 @@
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
- exports.VibeIQAppType = exports.getAppContext = void 0;
18
- var app_context_1 = require("./app-context");
19
- Object.defineProperty(exports, "getAppContext", { enumerable: true, get: function () { return app_context_1.getAppContext; } });
20
- Object.defineProperty(exports, "VibeIQAppType", { enumerable: true, get: function () { return app_context_1.VibeIQAppType; } });
21
- __exportStar(require("./boards"), exports);
22
- __exportStar(require("./plan"), exports);
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
+ exports.VibeIQAppType = exports.getAppContext = void 0;
18
+ var app_context_1 = require("./app-context");
19
+ Object.defineProperty(exports, "getAppContext", { enumerable: true, get: function () { return app_context_1.getAppContext; } });
20
+ Object.defineProperty(exports, "VibeIQAppType", { enumerable: true, get: function () { return app_context_1.VibeIQAppType; } });
21
+ __exportStar(require("./boards"), exports);
22
+ __exportStar(require("./plan"), exports);
@@ -1,15 +1,15 @@
1
- import { PlanContext } from "./app-context";
2
- export declare enum PlanCommand {
3
- ADD_ROWS = "plan:add_rows",
4
- SHOW_MESSAGE = "plan:show_message",
5
- CLEAR_SELECTED_ROWS = "plan:clear_selected_rows"
6
- }
7
- export declare class PlanApp {
8
- static getCurrentPlan(): PlanContext;
9
- static getAllPlanPlaceholders(): any[];
10
- static getFilteredPlanPlaceholders(): any[];
11
- static addRows(collectionElements: Array<any>): void;
12
- static clearSelectedRows(): void;
13
- static showMessage(message: string): void;
14
- private static validatePlanContext;
15
- }
1
+ import { PlanContext } from "./app-context";
2
+ export declare enum PlanCommand {
3
+ ADD_ROWS = "plan:add_rows",
4
+ SHOW_MESSAGE = "plan:show_message",
5
+ CLEAR_SELECTED_ROWS = "plan:clear_selected_rows"
6
+ }
7
+ export declare class PlanApp {
8
+ static getCurrentPlan(): PlanContext;
9
+ static getAllPlanPlaceholders(): any[];
10
+ static getFilteredPlanPlaceholders(): any[];
11
+ static addRows(collectionElements: Array<any>): void;
12
+ static clearSelectedRows(): void;
13
+ static showMessage(message: string): void;
14
+ private static validatePlanContext;
15
+ }