@fmsim/api 0.0.49
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/.storybook/main.js +3 -0
- package/.storybook/server.mjs +8 -0
- package/custom-elements.json +1875 -0
- package/dist/mcs-config/mcs_auto_config.json +2298 -0
- package/dist/src/graphql/board.d.ts +7 -0
- package/dist/src/graphql/board.js +177 -0
- package/dist/src/graphql/board.js.map +1 -0
- package/dist/src/graphql/data-subscription.d.ts +5 -0
- package/dist/src/graphql/data-subscription.js +24 -0
- package/dist/src/graphql/data-subscription.js.map +1 -0
- package/dist/src/graphql/favorite-board.d.ts +4 -0
- package/dist/src/graphql/favorite-board.js +61 -0
- package/dist/src/graphql/favorite-board.js.map +1 -0
- package/dist/src/graphql/group.d.ts +7 -0
- package/dist/src/graphql/group.js +125 -0
- package/dist/src/graphql/group.js.map +1 -0
- package/dist/src/graphql/index.d.ts +6 -0
- package/dist/src/graphql/index.js +7 -0
- package/dist/src/graphql/index.js.map +1 -0
- package/dist/src/graphql/scenario.d.ts +6 -0
- package/dist/src/graphql/scenario.js +69 -0
- package/dist/src/graphql/scenario.js.map +1 -0
- package/dist/src/graphql/theme.d.ts +3 -0
- package/dist/src/graphql/theme.js +56 -0
- package/dist/src/graphql/theme.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +32 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/restful/attachment.d.ts +5 -0
- package/dist/src/restful/attachment.js +22 -0
- package/dist/src/restful/attachment.js.map +1 -0
- package/dist/src/restful/authHeader.d.ts +4 -0
- package/dist/src/restful/authHeader.js +22 -0
- package/dist/src/restful/authHeader.js.map +1 -0
- package/dist/src/restful/board.d.ts +8 -0
- package/dist/src/restful/board.js +28 -0
- package/dist/src/restful/board.js.map +1 -0
- package/dist/src/restful/common.d.ts +19 -0
- package/dist/src/restful/common.js +58 -0
- package/dist/src/restful/common.js.map +1 -0
- package/dist/src/restful/connection.d.ts +5 -0
- package/dist/src/restful/connection.js +17 -0
- package/dist/src/restful/connection.js.map +1 -0
- package/dist/src/restful/favorite-board.d.ts +4 -0
- package/dist/src/restful/favorite-board.js +14 -0
- package/dist/src/restful/favorite-board.js.map +1 -0
- package/dist/src/restful/font.d.ts +3 -0
- package/dist/src/restful/font.js +11 -0
- package/dist/src/restful/font.js.map +1 -0
- package/dist/src/restful/group.d.ts +6 -0
- package/dist/src/restful/group.js +18 -0
- package/dist/src/restful/group.js.map +1 -0
- package/dist/src/restful/index.d.ts +10 -0
- package/dist/src/restful/index.js +12 -0
- package/dist/src/restful/index.js.map +1 -0
- package/dist/src/restful/machine.d.ts +7 -0
- package/dist/src/restful/machine.js +24 -0
- package/dist/src/restful/machine.js.map +1 -0
- package/dist/src/restful/scenario.d.ts +8 -0
- package/dist/src/restful/scenario.js +36 -0
- package/dist/src/restful/scenario.js.map +1 -0
- package/dist/src/types.d.ts +37 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/mcs-config/mcs_auto_config.json +2298 -0
- package/package.json +88 -0
- package/web-dev-server.config.mjs +30 -0
- package/web-test-runner.config.mjs +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,4BAA4B;AAE5B,uCAAuC;AACvC,uCAAuC;AAEvC,cAAc;AACd,mDAAmD;AACnD,mDAAmD;AACnD,6CAA6C;AAC7C,6CAA6C;AAC7C,6CAA6C;AAC7C,2DAA2D;AAE3D,mEAAmE;AACnE,uDAAuD;AACvD,mDAAmD;AACnD,6CAA6C;AAE7C,mDAAmD;AACnD,6CAA6C;AAC7C,6CAA6C;AAC7C,mDAAmD;AACnD,6CAA6C;AAC7C,yCAAyC;AAEzC,yCAAyC;AACzC,iDAAiD;AACjD,6CAA6C;AAE7C,mDAAmD;AACnD,6DAA6D;AAC7D,+CAA+C;AAE/C,+EAA+E;AAC/E,IAAI;AAEJ,gCAAgC;AAEhC,6BAA6B","sourcesContent":["export * from './graphql'\n// export * from './restful'\n\n// import * as graphql from './graphql'\n// import * as restful from './restful'\n\n// class API {\n// public fetchBoardList = graphql.fetchBoardList\n// public fetchBoardById = graphql.fetchBoardById\n// public createBoard = graphql.createBoard\n// public updateBoard = graphql.updateBoard\n// public deleteBoard = graphql.deleteBoard\n// public fetchBoardInfoById = graphql.fetchBoardInfoById\n\n// public fetchFavoriteBoardList = graphql.fetchFavoriteBoardList\n// public refreshFavorites = graphql.refreshFavorites\n// public removeFavorite = graphql.removeFavorite\n// public addFavorite = graphql.addFavorite\n\n// public fetchGroupById = graphql.fetchGroupById\n// public updateGroup = graphql.updateGroup\n// public deleteGroup = graphql.deleteGroup\n// public fetchGroupList = graphql.fetchGroupList\n// public createGroup = graphql.createGroup\n// public joinGroup = graphql.joinGroup\n\n// public scenarios = graphql.scenarios\n// public startScenario = graphql.startScenario\n// public runScenario = graphql.runScenario\n\n// public fetchThemeList = graphql.fetchThemeList\n// public updateMultipleTheme = graphql.updateMultipleTheme\n// public deleteThemes = graphql.deleteThemes\n\n// public DataSubscriptionProviderImpl = graphql.DataSubscriptionProviderImpl\n// }\n\n// const APIInstance = new API()\n\n// export default APIInstance\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function fetchAttachmentList(listParam?: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
2
|
+
export declare function createAttachment(attachment: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function deleteAttachment(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
4
|
+
export declare function deleteAttachmentByRef(ref: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
5
|
+
export declare function deleteFile(fileId: string, param: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH, REST_SERVICE_MAIN_URL, REST_SERVICE_SECONDARY_URL } from './common';
|
|
2
|
+
export function fetchAttachmentList(listParam = {}) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchAttachmentList', 'post', null, listParam);
|
|
4
|
+
}
|
|
5
|
+
export function createAttachment(attachment) {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/createAttachment', 'post', null, attachment);
|
|
7
|
+
}
|
|
8
|
+
export function deleteAttachment(id) {
|
|
9
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteAttachment/' + id, 'delete', null, null);
|
|
10
|
+
}
|
|
11
|
+
export function deleteAttachmentByRef(ref) {
|
|
12
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteAttachmentByRef/' + ref, 'delete', null, null);
|
|
13
|
+
}
|
|
14
|
+
export function deleteFile(fileId, param) {
|
|
15
|
+
if (param === 'primary') {
|
|
16
|
+
return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/deleteFile/' + fileId, 'delete', null, null);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/deleteFile/' + fileId, 'delete', null, null);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../../src/restful/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAEjB,MAAM,UAAU,mBAAmB,CAAC,YAAiB,EAAE;IACrD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,sBAAsB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AACxG,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAe;IAC9C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,mBAAmB,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,CAAA;AACtG,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,EAAU;IACzC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxG,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,yBAAyB,GAAG,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC9G,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAc,EAAE,KAAU;IACnD,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,OAAO,OAAO,CAAC,qBAAqB,GAAG,iBAAiB,GAAG,cAAc,GAAG,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;KAC1G;SAAM;QACL,OAAO,OAAO,CAAC,0BAA0B,GAAG,iBAAiB,GAAG,cAAc,GAAG,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;KAC/G;AACH,CAAC","sourcesContent":["import {\n callApi,\n REST_SERVICE_URL,\n FREE_SERVICE_PATH,\n REST_SERVICE_MAIN_URL,\n REST_SERVICE_SECONDARY_URL\n} from './common'\n\nexport function fetchAttachmentList(listParam: any = {}) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchAttachmentList', 'post', null, listParam)\n}\n\nexport function createAttachment(attachment: any) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/createAttachment', 'post', null, attachment)\n}\n\nexport function deleteAttachment(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteAttachment/' + id, 'delete', null, null)\n}\n\nexport function deleteAttachmentByRef(ref: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteAttachmentByRef/' + ref, 'delete', null, null)\n}\n\nexport function deleteFile(fileId: string, param: any) {\n if (param === 'primary') {\n return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/deleteFile/' + fileId, 'delete', null, null)\n } else {\n return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/deleteFile/' + fileId, 'delete', null, null)\n }\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2020 SKCC & Smartworks.net, Inc. All Rights Reserved
|
|
3
|
+
*
|
|
4
|
+
* Use of this software is controlled by the terms and conditions found in the
|
|
5
|
+
* license agreement under which this software has been supplied.
|
|
6
|
+
*------------------------------------------------------------------------------
|
|
7
|
+
*
|
|
8
|
+
* Source Name: auth.header.js
|
|
9
|
+
* Description: 회원인증된 Auth Token정보를 Axios Header에 기록해주는 Java Script
|
|
10
|
+
* Authors: Y.S. Jung
|
|
11
|
+
* Update History:
|
|
12
|
+
* 2020.09.01 : Created by Y.S. Jung
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export default function authHeader() {
|
|
16
|
+
return {
|
|
17
|
+
'Access-Control-Allow-Origin': '*',
|
|
18
|
+
// 'Access-Control-Allow-Credentials':true,
|
|
19
|
+
'Content-Type': 'application/json; charset = utf-8'
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=authHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authHeader.js","sourceRoot":"","sources":["../../../src/restful/authHeader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU;IAChC,OAAO;QACL,6BAA6B,EAAE,GAAG;QAClC,2CAA2C;QAC3C,cAAc,EAAE,mCAAmC;KACpD,CAAA;AACH,CAAC","sourcesContent":["/*\n * Copyright (c) 2020 SKCC & Smartworks.net, Inc. All Rights Reserved\n *\n * Use of this software is controlled by the terms and conditions found in the\n * license agreement under which this software has been supplied.\n *------------------------------------------------------------------------------\n *\n * Source Name: \tauth.header.js\n * Description: 회원인증된 Auth Token정보를 Axios Header에 기록해주는 Java Script\n * Authors: Y.S. Jung\n * Update History:\n * 2020.09.01 : Created by Y.S. Jung\n *\n */\nexport default function authHeader() {\n return {\n 'Access-Control-Allow-Origin': '*',\n // 'Access-Control-Allow-Credentials':true,\n 'Content-Type': 'application/json; charset = utf-8'\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Board } from '../types';
|
|
2
|
+
export declare function fetchBoardList(listParam?: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function getBoardByUseMcsAutoConfigAndId(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
4
|
+
export declare function createBoard(board: Board): Promise<import("./common").RestfulReturnType | undefined>;
|
|
5
|
+
export declare function deleteBoard(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
6
|
+
export declare function fetchBoardById(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
7
|
+
export declare function fetchBoardInfoById(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
8
|
+
export declare function updateBoard(board: any, from?: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
|
|
2
|
+
export function fetchBoardList(listParam = {}) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchBoardList', 'post', null, listParam);
|
|
4
|
+
}
|
|
5
|
+
export function getBoardByUseMcsAutoConfigAndId(id) {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getBoardByUseMcsAutoConfigAndId/' + id, 'get', null, null);
|
|
7
|
+
}
|
|
8
|
+
export function createBoard(board) {
|
|
9
|
+
board.model = JSON.stringify(board.model);
|
|
10
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/createBoard', 'post', null, board);
|
|
11
|
+
}
|
|
12
|
+
export function deleteBoard(id) {
|
|
13
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteBoard/' + id, 'delete', null, null);
|
|
14
|
+
}
|
|
15
|
+
export function fetchBoardById(id) {
|
|
16
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchBoardById/' + id, 'get', null, null);
|
|
17
|
+
}
|
|
18
|
+
export async function fetchBoardInfoById(id) {
|
|
19
|
+
/* TODO implement me */
|
|
20
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchBoardInfoById/' + id, 'get', null, null);
|
|
21
|
+
}
|
|
22
|
+
export function updateBoard(board, from) {
|
|
23
|
+
if (!from) {
|
|
24
|
+
board.model = JSON.stringify(board.model);
|
|
25
|
+
}
|
|
26
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateBoard', 'put', null, board);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=board.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"board.js","sourceRoot":"","sources":["../../../src/restful/board.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEvE,MAAM,UAAU,cAAc,CAAC,YAAiB,EAAE;IAChD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AACnG,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,EAAU;IACxD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,mCAAmC,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACpH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IACzC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAC5F,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAU;IACpC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACnG,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACnG,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,EAAU;IACjD,uBAAuB;IACvB,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,sBAAsB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACvG,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAU,EAAE,IAAa;IACnD,IAAI,CAAC,IAAI,EAAE;QACT,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;KAC1C;IACD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAC3F,CAAC","sourcesContent":["import { Board } from '../types'\nimport { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common'\n\nexport function fetchBoardList(listParam: any = {}) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchBoardList', 'post', null, listParam)\n}\n\nexport function getBoardByUseMcsAutoConfigAndId(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getBoardByUseMcsAutoConfigAndId/' + id, 'get', null, null)\n}\n\nexport function createBoard(board: Board) {\n board.model = JSON.stringify(board.model)\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/createBoard', 'post', null, board)\n}\n\nexport function deleteBoard(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteBoard/' + id, 'delete', null, null)\n}\n\nexport function fetchBoardById(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchBoardById/' + id, 'get', null, null)\n}\n\nexport async function fetchBoardInfoById(id: string) {\n /* TODO implement me */\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchBoardInfoById/' + id, 'get', null, null)\n}\n\nexport function updateBoard(board: any, from?: string) {\n if (!from) {\n board.model = JSON.stringify(board.model)\n }\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateBoard', 'put', null, board)\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const REST_SERVICE_URL: string;
|
|
2
|
+
export declare const REST_SERVICE_MAIN_URL: string;
|
|
3
|
+
export declare const REST_SERVICE_SECONDARY_URL: string;
|
|
4
|
+
export declare const FREE_SERVICE_PATH: string;
|
|
5
|
+
export declare const UPLOAD_TEMP_URL = "uploadTempFile";
|
|
6
|
+
export type RestfulReturnType = {
|
|
7
|
+
data: {
|
|
8
|
+
errorMsg: string;
|
|
9
|
+
status: boolean;
|
|
10
|
+
[data: string]: any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare function callApi(url: string, method: string, params: any, data: any): Promise<RestfulReturnType | undefined>;
|
|
14
|
+
export declare function handleError(errorStatus: number, errorMessage?: string): void;
|
|
15
|
+
export declare function getRestServiceUrl(): string;
|
|
16
|
+
export declare function getRestServiceMainUrl(): string | false;
|
|
17
|
+
export declare function getRestServiceSecondaryUrl(): string | false;
|
|
18
|
+
export declare function getUploadTempUrl(): string;
|
|
19
|
+
export declare function getFreeServicePath(): string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import authHeader from './authHeader';
|
|
3
|
+
import mcsAutoConfig from '../../mcs-config/mcs_auto_config.json';
|
|
4
|
+
export const REST_SERVICE_URL = 'http://' + mcsAutoConfig.serverInfo.address;
|
|
5
|
+
export const REST_SERVICE_MAIN_URL = 'http://' + mcsAutoConfig.serverMainInfo.address;
|
|
6
|
+
export const REST_SERVICE_SECONDARY_URL = 'http://' + mcsAutoConfig.serverSecondaryInfo.address;
|
|
7
|
+
export const FREE_SERVICE_PATH = mcsAutoConfig.serverMainInfo.prefix;
|
|
8
|
+
export const UPLOAD_TEMP_URL = 'uploadTempFile';
|
|
9
|
+
export async function callApi(url, method, params, data) {
|
|
10
|
+
try {
|
|
11
|
+
if (method === 'get') {
|
|
12
|
+
return await axios.get(url, { headers: authHeader() });
|
|
13
|
+
}
|
|
14
|
+
else if (method === 'post') {
|
|
15
|
+
return await axios.post(url, data, { headers: authHeader() });
|
|
16
|
+
}
|
|
17
|
+
else if (method === 'put') {
|
|
18
|
+
return await axios.put(url, data, { headers: authHeader() });
|
|
19
|
+
}
|
|
20
|
+
else if (method === 'delete') {
|
|
21
|
+
return await axios.delete(url, { data, headers: authHeader() });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
handleError(e);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export function handleError(errorStatus, errorMessage) {
|
|
29
|
+
if (errorStatus) {
|
|
30
|
+
if (errorStatus !== 401) {
|
|
31
|
+
console.log('################## ommon.error.http-communication : ' + errorMessage + '#####################');
|
|
32
|
+
}
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
console.log('################## common.error.server-response : ' + errorMessage + '#####################');
|
|
36
|
+
}
|
|
37
|
+
export function getRestServiceUrl() {
|
|
38
|
+
return REST_SERVICE_URL;
|
|
39
|
+
}
|
|
40
|
+
export function getRestServiceMainUrl() {
|
|
41
|
+
if (REST_SERVICE_MAIN_URL === 'http://')
|
|
42
|
+
return false;
|
|
43
|
+
else
|
|
44
|
+
return REST_SERVICE_MAIN_URL;
|
|
45
|
+
}
|
|
46
|
+
export function getRestServiceSecondaryUrl() {
|
|
47
|
+
if (REST_SERVICE_SECONDARY_URL === 'http://')
|
|
48
|
+
return false;
|
|
49
|
+
else
|
|
50
|
+
return REST_SERVICE_SECONDARY_URL;
|
|
51
|
+
}
|
|
52
|
+
export function getUploadTempUrl() {
|
|
53
|
+
return UPLOAD_TEMP_URL;
|
|
54
|
+
}
|
|
55
|
+
export function getFreeServicePath() {
|
|
56
|
+
return FREE_SERVICE_PATH;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/restful/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,aAAa,MAAM,uCAAuC,CAAA;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,GAAG,aAAa,CAAC,UAAU,CAAC,OAAO,CAAA;AAC5E,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,GAAG,aAAa,CAAC,cAAc,CAAC,OAAO,CAAA;AACrF,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAS,GAAG,aAAa,CAAC,mBAAmB,CAAC,OAAO,CAAA;AAC/F,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,cAAc,CAAC,MAAM,CAAA;AACpE,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAU/C,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,GAAW,EACX,MAAc,EACd,MAAW,EACX,IAAS;IAET,IAAI;QACF,IAAI,MAAM,KAAK,KAAK,EAAE;YACpB,OAAO,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;SACvD;aAAM,IAAI,MAAM,KAAK,MAAM,EAAE;YAC5B,OAAO,MAAM,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;SAC9D;aAAM,IAAI,MAAM,KAAK,KAAK,EAAE;YAC3B,OAAO,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;SAC7D;aAAM,IAAI,MAAM,KAAK,QAAQ,EAAE;YAC9B,OAAO,MAAM,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;SAChE;KACF;IAAC,OAAO,CAAC,EAAE;QACV,WAAW,CAAC,CAAW,CAAC,CAAA;KACzB;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,WAAmB,EAAE,YAAqB;IACpE,IAAI,WAAW,EAAE;QACf,IAAI,WAAW,KAAK,GAAG,EAAE;YACvB,OAAO,CAAC,GAAG,CAAC,sDAAsD,GAAG,YAAY,GAAG,uBAAuB,CAAC,CAAA;SAC7G;QACD,OAAM;KACP;IACD,OAAO,CAAC,GAAG,CAAC,oDAAoD,GAAG,YAAY,GAAG,uBAAuB,CAAC,CAAA;AAC5G,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,gBAAgB,CAAA;AACzB,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,IAAI,qBAAqB,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;;QAChD,OAAO,qBAAqB,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,0BAA0B;IACxC,IAAI,0BAA0B,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;;QACrD,OAAO,0BAA0B,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,eAAe,CAAA;AACxB,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,iBAAiB,CAAA;AAC1B,CAAC","sourcesContent":["import axios from 'axios'\nimport authHeader from './authHeader'\nimport mcsAutoConfig from '../../mcs-config/mcs_auto_config.json'\n\nexport const REST_SERVICE_URL = 'http://' + mcsAutoConfig.serverInfo.address\nexport const REST_SERVICE_MAIN_URL = 'http://' + mcsAutoConfig.serverMainInfo.address\nexport const REST_SERVICE_SECONDARY_URL = 'http://' + mcsAutoConfig.serverSecondaryInfo.address\nexport const FREE_SERVICE_PATH = mcsAutoConfig.serverMainInfo.prefix\nexport const UPLOAD_TEMP_URL = 'uploadTempFile'\n\nexport type RestfulReturnType = {\n data: {\n errorMsg: string\n status: boolean\n [data: string]: any\n }\n}\n\nexport async function callApi(\n url: string,\n method: string,\n params: any,\n data: any\n): Promise<RestfulReturnType | undefined> {\n try {\n if (method === 'get') {\n return await axios.get(url, { headers: authHeader() })\n } else if (method === 'post') {\n return await axios.post(url, data, { headers: authHeader() })\n } else if (method === 'put') {\n return await axios.put(url, data, { headers: authHeader() })\n } else if (method === 'delete') {\n return await axios.delete(url, { data, headers: authHeader() })\n }\n } catch (e) {\n handleError(e as number)\n }\n}\n\nexport function handleError(errorStatus: number, errorMessage?: string) {\n if (errorStatus) {\n if (errorStatus !== 401) {\n console.log('################## ommon.error.http-communication : ' + errorMessage + '#####################')\n }\n return\n }\n console.log('################## common.error.server-response : ' + errorMessage + '#####################')\n}\n\nexport function getRestServiceUrl() {\n return REST_SERVICE_URL\n}\n\nexport function getRestServiceMainUrl() {\n if (REST_SERVICE_MAIN_URL === 'http://') return false\n else return REST_SERVICE_MAIN_URL\n}\n\nexport function getRestServiceSecondaryUrl() {\n if (REST_SERVICE_SECONDARY_URL === 'http://') return false\n else return REST_SERVICE_SECONDARY_URL\n}\n\nexport function getUploadTempUrl() {\n return UPLOAD_TEMP_URL\n}\n\nexport function getFreeServicePath() {\n return FREE_SERVICE_PATH\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function getConnections(connection?: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
2
|
+
export declare function updateConnections(connections: any[]): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function deleteConnetcionByName(names: string[]): Promise<import("./common").RestfulReturnType | undefined>;
|
|
4
|
+
export declare function connect(name: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
5
|
+
export declare function disconnect(name: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
|
|
2
|
+
export function getConnections(connection = {}) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getConnections', 'post', null, connection);
|
|
4
|
+
}
|
|
5
|
+
export function updateConnections(connections) {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateConnections', 'post', null, connections);
|
|
7
|
+
}
|
|
8
|
+
export function deleteConnetcionByName(names) {
|
|
9
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteConnetcionByName', 'post', null, { names });
|
|
10
|
+
}
|
|
11
|
+
export function connect(name) {
|
|
12
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/connect', 'post', null, { name });
|
|
13
|
+
}
|
|
14
|
+
export function disconnect(name) {
|
|
15
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/disconnect', 'post', null, { name });
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=connection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src/restful/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEvE,MAAM,UAAU,cAAc,CAAC,aAAkB,EAAE;IACjD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,CAAA;AACpG,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,WAAkB;IAClD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,oBAAoB,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAA;AACxG,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAAe;IACpD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,yBAAyB,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;AAC3G,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;AAC3F,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;AAC9F,CAAC","sourcesContent":["import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common'\n\nexport function getConnections(connection: any = {}) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getConnections', 'post', null, connection)\n}\n\nexport function updateConnections(connections: any[]) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateConnections', 'post', null, connections)\n}\n\nexport function deleteConnetcionByName(names: string[]) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteConnetcionByName', 'post', null, { names })\n}\n\nexport function connect(name: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/connect', 'post', null, { name })\n}\n\nexport function disconnect(name: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/disconnect', 'post', null, { name })\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function fetchFavoriteBoardList(listParam?: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
2
|
+
export declare function addFavorite(boardId: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function removeFavorite(boardId: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
4
|
+
export declare function refreshFavorites(): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
|
|
2
|
+
export function fetchFavoriteBoardList(listParam = {}) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchFavoriteBoardList', 'post', null, listParam);
|
|
4
|
+
}
|
|
5
|
+
export function addFavorite(boardId) {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/addFavorite', 'post', null, { boardId });
|
|
7
|
+
}
|
|
8
|
+
export function removeFavorite(boardId) {
|
|
9
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/removeFavorite/' + boardId, 'delete', null, null);
|
|
10
|
+
}
|
|
11
|
+
export function refreshFavorites() {
|
|
12
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/refreshFavorites', 'get', null, null);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=favorite-board.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"favorite-board.js","sourceRoot":"","sources":["../../../src/restful/favorite-board.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEvE,MAAM,UAAU,sBAAsB,CAAC,YAAiB,EAAE;IACxD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,yBAAyB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AAC3G,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;AAClG,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC3G,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,mBAAmB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC/F,CAAC","sourcesContent":["import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common'\n\nexport function fetchFavoriteBoardList(listParam: any = {}) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchFavoriteBoardList', 'post', null, listParam)\n}\n\nexport function addFavorite(boardId: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/addFavorite', 'post', null, { boardId })\n}\n\nexport function removeFavorite(boardId: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/removeFavorite/' + boardId, 'delete', null, null)\n}\n\nexport function refreshFavorites() {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/refreshFavorites', 'get', null, null)\n}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function fetchFontList(listParam?: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
2
|
+
export declare function setFont(font: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function deleteFont(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
|
|
2
|
+
export function fetchFontList(listParam = {}) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchFontList', 'post', null, listParam);
|
|
4
|
+
}
|
|
5
|
+
export function setFont(font) {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/setFont', 'post', null, font);
|
|
7
|
+
}
|
|
8
|
+
export function deleteFont(id) {
|
|
9
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteFont/' + id, 'delete', null, null);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=font.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.js","sourceRoot":"","sources":["../../../src/restful/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEvE,MAAM,UAAU,aAAa,CAAC,YAAiB,EAAE;IAC/C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AAClG,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAS;IAC/B,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACvF,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAU;IACnC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAClG,CAAC","sourcesContent":["import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common'\n\nexport function fetchFontList(listParam: any = {}) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchFontList', 'post', null, listParam)\n}\n\nexport function setFont(font: any) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/setFont', 'post', null, font)\n}\n\nexport function deleteFont(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteFont/' + id, 'delete', null, null)\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoardGroup } from '../types';
|
|
2
|
+
export declare function fetchGroupById(groupId: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function fetchGroupList(): Promise<import("./common").RestfulReturnType | undefined>;
|
|
4
|
+
export declare function createGroup(group: BoardGroup): Promise<import("./common").RestfulReturnType | undefined>;
|
|
5
|
+
export declare function updateGroup(group: BoardGroup): Promise<import("./common").RestfulReturnType | undefined>;
|
|
6
|
+
export declare function deleteGroup(groupId: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
|
|
2
|
+
export function fetchGroupById(groupId) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchGroupById/' + groupId, 'get', null, null);
|
|
4
|
+
}
|
|
5
|
+
export function fetchGroupList() {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchGroupList', 'get', null, null);
|
|
7
|
+
}
|
|
8
|
+
export function createGroup(group) {
|
|
9
|
+
// console.log('createGroup', (REST_SERVICE_URL + FREE_SERVICE_PATH))
|
|
10
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/createGroup', 'post', null, group);
|
|
11
|
+
}
|
|
12
|
+
export function updateGroup(group) {
|
|
13
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateGroup', 'put', null, group);
|
|
14
|
+
}
|
|
15
|
+
export function deleteGroup(groupId) {
|
|
16
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteGroup/' + groupId, 'delete', null, null);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/restful/group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEvE,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxG,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC7F,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,qEAAqE;IACrE,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAC5F,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAC3F,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,GAAG,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxG,CAAC","sourcesContent":["import { BoardGroup } from '../types'\nimport { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common'\n\nexport function fetchGroupById(groupId: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchGroupById/' + groupId, 'get', null, null)\n}\n\nexport function fetchGroupList() {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchGroupList', 'get', null, null)\n}\n\nexport function createGroup(group: BoardGroup) {\n // console.log('createGroup', (REST_SERVICE_URL + FREE_SERVICE_PATH))\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/createGroup', 'post', null, group)\n}\n\nexport function updateGroup(group: BoardGroup) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateGroup', 'put', null, group)\n}\n\nexport function deleteGroup(groupId: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteGroup/' + groupId, 'delete', null, null)\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './board';
|
|
2
|
+
export * from './authHeader';
|
|
3
|
+
export * from './favorite-board';
|
|
4
|
+
export * from './group';
|
|
5
|
+
export * from './font';
|
|
6
|
+
export * from './attachment';
|
|
7
|
+
export * from './connection';
|
|
8
|
+
export * from './scenario';
|
|
9
|
+
export * from './common';
|
|
10
|
+
export * from './machine';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './board';
|
|
2
|
+
export * from './authHeader';
|
|
3
|
+
export * from './favorite-board';
|
|
4
|
+
export * from './group';
|
|
5
|
+
export * from './font';
|
|
6
|
+
export * from './attachment';
|
|
7
|
+
export * from './connection';
|
|
8
|
+
export * from './scenario';
|
|
9
|
+
export * from './common';
|
|
10
|
+
export * from './machine';
|
|
11
|
+
// export * from './theme'
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/restful/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,0BAA0B","sourcesContent":["export * from './board'\nexport * from './authHeader'\nexport * from './favorite-board'\nexport * from './group'\nexport * from './font'\nexport * from './attachment'\nexport * from './connection'\nexport * from './scenario'\nexport * from './common'\nexport * from './machine'\n// export * from './theme'\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Board } from '../types';
|
|
2
|
+
export declare function getEqpNamesByIdType(id: string, type: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function setAutoMcsConfig(mcsAutoConfig: any, board: Board): Promise<import("./common").RestfulReturnType | undefined>;
|
|
4
|
+
export declare function getStockerPopupData(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
5
|
+
export declare function getStockerEqpPortPopupData(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
6
|
+
export declare function getProcessPopupData(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
7
|
+
export declare function getTransportPopupData(id: string): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
|
|
2
|
+
export function getEqpNamesByIdType(id, type) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getEqpNamesByIdType/' + id + '/' + type, 'get', null, null);
|
|
4
|
+
}
|
|
5
|
+
export function setAutoMcsConfig(mcsAutoConfig, board) {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/setAutoMcsConfig/', 'post', null, {
|
|
7
|
+
connections: mcsAutoConfig.mcsAutoConnections,
|
|
8
|
+
scenarios: mcsAutoConfig.mcsAutoScenarios,
|
|
9
|
+
board
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export function getStockerPopupData(id) {
|
|
13
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getStockerPopupData/' + id, 'get', null, null);
|
|
14
|
+
}
|
|
15
|
+
export function getStockerEqpPortPopupData(id) {
|
|
16
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getStockerEqpPortPopupData/' + id, 'get', null, null);
|
|
17
|
+
}
|
|
18
|
+
export function getProcessPopupData(id) {
|
|
19
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getProcessPopupData/' + id, 'get', null, null);
|
|
20
|
+
}
|
|
21
|
+
export function getTransportPopupData(id) {
|
|
22
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getTransportPopupData/' + id, 'get', null, null);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=machine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../src/restful/machine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEvE,MAAM,UAAU,mBAAmB,CAAC,EAAU,EAAE,IAAY;IAC1D,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,uBAAuB,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACrH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,aAAkB,EAAE,KAAY;IAC/D,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,oBAAoB,EAAE,MAAM,EAAE,IAAI,EAAE;QACxF,WAAW,EAAE,aAAa,CAAC,kBAAkB;QAC7C,SAAS,EAAE,aAAa,CAAC,gBAAgB;QACzC,KAAK;KACN,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,uBAAuB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxG,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EAAU;IACnD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,8BAA8B,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC/G,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,uBAAuB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxG,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,EAAU;IAC9C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,yBAAyB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC1G,CAAC","sourcesContent":["import { Board } from '../types'\nimport { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common'\n\nexport function getEqpNamesByIdType(id: string, type: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getEqpNamesByIdType/' + id + '/' + type, 'get', null, null)\n}\n\nexport function setAutoMcsConfig(mcsAutoConfig: any, board: Board) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/setAutoMcsConfig/', 'post', null, {\n connections: mcsAutoConfig.mcsAutoConnections,\n scenarios: mcsAutoConfig.mcsAutoScenarios,\n board\n })\n}\n\nexport function getStockerPopupData(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getStockerPopupData/' + id, 'get', null, null)\n}\n\nexport function getStockerEqpPortPopupData(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getStockerEqpPortPopupData/' + id, 'get', null, null)\n}\n\nexport function getProcessPopupData(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getProcessPopupData/' + id, 'get', null, null)\n}\n\nexport function getTransportPopupData(id: string) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getTransportPopupData/' + id, 'get', null, null)\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function fetchScenarios(scenario: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
2
|
+
export declare function updateScenarios(scenarios: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
3
|
+
export declare function deleteScenarioById(ids: string[]): Promise<import("./common").RestfulReturnType | undefined>;
|
|
4
|
+
export declare function fetchStepByScenarioId(listParam?: any): Promise<import("./common").RestfulReturnType | undefined>;
|
|
5
|
+
export declare function startScenario(params: any, serverType: string): Promise<import("./common").RestfulReturnType | undefined> | undefined;
|
|
6
|
+
export declare function stopScenario(params: any, serverType: string): Promise<import("./common").RestfulReturnType | undefined> | undefined;
|
|
7
|
+
export declare function updateSteps(steps: any[]): Promise<import("./common").RestfulReturnType | undefined>;
|
|
8
|
+
export declare function deleteStepById(ids: string[]): Promise<import("./common").RestfulReturnType | undefined>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH, REST_SERVICE_MAIN_URL, REST_SERVICE_SECONDARY_URL } from './common';
|
|
2
|
+
export function fetchScenarios(scenario) {
|
|
3
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchScenarios', 'post', null, scenario);
|
|
4
|
+
}
|
|
5
|
+
export function updateScenarios(scenarios) {
|
|
6
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateScenarios', 'post', null, scenarios);
|
|
7
|
+
}
|
|
8
|
+
export function deleteScenarioById(ids) {
|
|
9
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteScenarioById', 'post', null, { ids });
|
|
10
|
+
}
|
|
11
|
+
export function fetchStepByScenarioId(listParam = {}) {
|
|
12
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchStepByScenarioId', 'post', null, listParam);
|
|
13
|
+
}
|
|
14
|
+
export function startScenario(params, serverType) {
|
|
15
|
+
if (serverType === 'Main Server') {
|
|
16
|
+
return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/startScenario', 'post', null, params);
|
|
17
|
+
}
|
|
18
|
+
else if (serverType === 'Secondary Server') {
|
|
19
|
+
return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/startScenario', 'post', null, params);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export function stopScenario(params, serverType) {
|
|
23
|
+
if (serverType === 'Main Server') {
|
|
24
|
+
return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/stopScenario', 'post', null, params);
|
|
25
|
+
}
|
|
26
|
+
else if (serverType === 'Secondary Server') {
|
|
27
|
+
return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/stopScenario', 'post', null, params);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export function updateSteps(steps) {
|
|
31
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateSteps', 'post', null, steps);
|
|
32
|
+
}
|
|
33
|
+
export function deleteStepById(ids) {
|
|
34
|
+
return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteStepById', 'post', null, { ids });
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=scenario.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario.js","sourceRoot":"","sources":["../../../src/restful/scenario.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAEjB,MAAM,UAAU,cAAc,CAAC,QAAa;IAC1C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;AAClG,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,SAAc;IAC5C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AACpG,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,GAAa;IAC9C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,qBAAqB,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;AACrG,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,YAAiB,EAAE;IACvD,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,wBAAwB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AAC1G,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAW,EAAE,UAAkB;IAC3D,IAAI,UAAU,KAAK,aAAa,EAAE;QAChC,OAAO,OAAO,CAAC,qBAAqB,GAAG,iBAAiB,GAAG,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KACnG;SAAM,IAAI,UAAU,KAAK,kBAAkB,EAAE;QAC5C,OAAO,OAAO,CAAC,0BAA0B,GAAG,iBAAiB,GAAG,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KACxG;AACH,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAW,EAAE,UAAkB;IAC1D,IAAI,UAAU,KAAK,aAAa,EAAE;QAChC,OAAO,OAAO,CAAC,qBAAqB,GAAG,iBAAiB,GAAG,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KAClG;SAAM,IAAI,UAAU,KAAK,kBAAkB,EAAE;QAC5C,OAAO,OAAO,CAAC,0BAA0B,GAAG,iBAAiB,GAAG,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KACvG;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAC5F,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAa;IAC1C,OAAO,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;AACjG,CAAC","sourcesContent":["import {\n callApi,\n REST_SERVICE_URL,\n FREE_SERVICE_PATH,\n REST_SERVICE_MAIN_URL,\n REST_SERVICE_SECONDARY_URL\n} from './common'\n\nexport function fetchScenarios(scenario: any) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchScenarios', 'post', null, scenario)\n}\n\nexport function updateScenarios(scenarios: any) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateScenarios', 'post', null, scenarios)\n}\n\nexport function deleteScenarioById(ids: string[]) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteScenarioById', 'post', null, { ids })\n}\n\nexport function fetchStepByScenarioId(listParam: any = {}) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchStepByScenarioId', 'post', null, listParam)\n}\n\nexport function startScenario(params: any, serverType: string) {\n if (serverType === 'Main Server') {\n return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/startScenario', 'post', null, params)\n } else if (serverType === 'Secondary Server') {\n return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/startScenario', 'post', null, params)\n }\n}\n\nexport function stopScenario(params: any, serverType: string) {\n if (serverType === 'Main Server') {\n return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/stopScenario', 'post', null, params)\n } else if (serverType === 'Secondary Server') {\n return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/stopScenario', 'post', null, params)\n }\n}\n\nexport function updateSteps(steps: any[]) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateSteps', 'post', null, steps)\n}\n\nexport function deleteStepById(ids: string[]) {\n return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteStepById', 'post', null, { ids })\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Model } from '@hatiolab/things-scene';
|
|
2
|
+
export interface PalletItem {
|
|
3
|
+
type: string;
|
|
4
|
+
description: string;
|
|
5
|
+
icon: HTMLImageElement;
|
|
6
|
+
group: 'line' | 'shape' | 'textAndMedio' | 'chartAndGauge' | 'table' | 'container' | 'IoT' | '3D' | 'warehouse' | 'form' | 'etc' | string;
|
|
7
|
+
model: Model;
|
|
8
|
+
}
|
|
9
|
+
export interface Pallet {
|
|
10
|
+
name: string;
|
|
11
|
+
templates: PalletItem[];
|
|
12
|
+
}
|
|
13
|
+
export type ComponentTemplate = {
|
|
14
|
+
type: string;
|
|
15
|
+
description: string;
|
|
16
|
+
group: string | string[];
|
|
17
|
+
icon: any;
|
|
18
|
+
model: Model;
|
|
19
|
+
};
|
|
20
|
+
export type ComponentGroup = {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
templates: ComponentTemplate[];
|
|
25
|
+
};
|
|
26
|
+
export type Board = {
|
|
27
|
+
id?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
model?: any;
|
|
31
|
+
groupId?: string;
|
|
32
|
+
};
|
|
33
|
+
export type BoardGroup = {
|
|
34
|
+
id?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Model } from '@hatiolab/things-scene'\n\nexport interface PalletItem {\n type: string\n description: string\n icon: HTMLImageElement\n group:\n | 'line'\n | 'shape'\n | 'textAndMedio'\n | 'chartAndGauge'\n | 'table'\n | 'container'\n | 'IoT'\n | '3D'\n | 'warehouse'\n | 'form'\n | 'etc'\n | string\n model: Model\n}\n\nexport interface Pallet {\n name: string\n templates: PalletItem[]\n}\n\nexport type ComponentTemplate = {\n type: string\n description: string\n group: string | string[]\n icon: any\n model: Model\n}\n\nexport type ComponentGroup = {\n name: string\n description: string\n icon: string\n templates: ComponentTemplate[]\n}\n\nexport type Board = {\n id?: string\n name?: string\n description?: string\n model?: any\n groupId?: string\n}\n\nexport type BoardGroup = {\n id?: string\n name?: string\n description?: string\n}\n"]}
|