@fmsim/api 0.0.50 → 0.0.52

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 (34) hide show
  1. package/custom-elements.json +145 -30
  2. package/dist/mcs-config/mcs_auto_config.json +4 -4
  3. package/dist/src/graphql/board.js +13 -3
  4. package/dist/src/graphql/board.js.map +1 -1
  5. package/dist/src/graphql/theme.js +1 -0
  6. package/dist/src/graphql/theme.js.map +1 -1
  7. package/dist/src/restful/attachment.js +7 -7
  8. package/dist/src/restful/attachment.js.map +1 -1
  9. package/dist/src/restful/board.js +8 -8
  10. package/dist/src/restful/board.js.map +1 -1
  11. package/dist/src/restful/common.d.ts +8 -5
  12. package/dist/src/restful/common.js +32 -26
  13. package/dist/src/restful/common.js.map +1 -1
  14. package/dist/src/restful/connection.js +6 -6
  15. package/dist/src/restful/connection.js.map +1 -1
  16. package/dist/src/restful/favorite-board.js +5 -5
  17. package/dist/src/restful/favorite-board.js.map +1 -1
  18. package/dist/src/restful/font.js +4 -4
  19. package/dist/src/restful/font.js.map +1 -1
  20. package/dist/src/restful/group.js +7 -7
  21. package/dist/src/restful/group.js.map +1 -1
  22. package/dist/src/restful/index.d.ts +1 -0
  23. package/dist/src/restful/index.js +1 -1
  24. package/dist/src/restful/index.js.map +1 -1
  25. package/dist/src/restful/machine.js +7 -7
  26. package/dist/src/restful/machine.js.map +1 -1
  27. package/dist/src/restful/scenario.js +11 -11
  28. package/dist/src/restful/scenario.js.map +1 -1
  29. package/dist/src/restful/theme.d.ts +3 -0
  30. package/dist/src/restful/theme.js +11 -0
  31. package/dist/src/restful/theme.js.map +1 -0
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/mcs-config/mcs_auto_config.json +4 -4
  34. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
- import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
1
+ import { callApi, getRestServiceFullPath } from './common';
2
2
  export function fetchFavoriteBoardList(listParam = {}) {
3
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchFavoriteBoardList', 'post', null, listParam);
3
+ return callApi(getRestServiceFullPath() + '/fetchFavoriteBoardList', 'post', null, listParam);
4
4
  }
5
5
  export function addFavorite(boardId) {
6
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/addFavorite', 'post', null, { boardId });
6
+ return callApi(getRestServiceFullPath() + '/addFavorite', 'post', null, { boardId });
7
7
  }
8
8
  export function removeFavorite(boardId) {
9
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/removeFavorite/' + boardId, 'delete', null, null);
9
+ return callApi(getRestServiceFullPath() + '/removeFavorite/' + boardId, 'delete', null, null);
10
10
  }
11
11
  export function refreshFavorites() {
12
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/refreshFavorites', 'get', null, null);
12
+ return callApi(getRestServiceFullPath() + '/refreshFavorites', 'get', null, null);
13
13
  }
14
14
  //# sourceMappingURL=favorite-board.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"favorite-board.js","sourceRoot":"","sources":["../../../src/restful/favorite-board.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,UAAU,sBAAsB,CAAC,YAAiB,EAAE;IACxD,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,yBAAyB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AAC/F,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;AACtF,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,kBAAkB,GAAG,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC/F,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,mBAAmB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACnF,CAAC","sourcesContent":["import { callApi, getRestServiceFullPath } from './common'\n\nexport function fetchFavoriteBoardList(listParam: any = {}) {\n return callApi(getRestServiceFullPath() + '/fetchFavoriteBoardList', 'post', null, listParam)\n}\n\nexport function addFavorite(boardId: string) {\n return callApi(getRestServiceFullPath() + '/addFavorite', 'post', null, { boardId })\n}\n\nexport function removeFavorite(boardId: string) {\n return callApi(getRestServiceFullPath() + '/removeFavorite/' + boardId, 'delete', null, null)\n}\n\nexport function refreshFavorites() {\n return callApi(getRestServiceFullPath() + '/refreshFavorites', 'get', null, null)\n}\n"]}
@@ -1,11 +1,11 @@
1
- import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
1
+ import { callApi, getRestServiceFullPath } from './common';
2
2
  export function fetchFontList(listParam = {}) {
3
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchFontList', 'post', null, listParam);
3
+ return callApi(getRestServiceFullPath() + '/fetchFontList', 'post', null, listParam);
4
4
  }
5
5
  export function setFont(font) {
6
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/setFont', 'post', null, font);
6
+ return callApi(getRestServiceFullPath() + '/setFont', 'post', null, font);
7
7
  }
8
8
  export function deleteFont(id) {
9
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteFont/' + id, 'delete', null, null);
9
+ return callApi(getRestServiceFullPath() + '/deleteFont/' + id, 'delete', null, null);
10
10
  }
11
11
  //# sourceMappingURL=font.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"font.js","sourceRoot":"","sources":["../../../src/restful/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,UAAU,aAAa,CAAC,YAAiB,EAAE;IAC/C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AACtF,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAS;IAC/B,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC3E,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAU;IACnC,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,cAAc,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACtF,CAAC","sourcesContent":["import { callApi, getRestServiceFullPath } from './common'\n\nexport function fetchFontList(listParam: any = {}) {\n return callApi(getRestServiceFullPath() + '/fetchFontList', 'post', null, listParam)\n}\n\nexport function setFont(font: any) {\n return callApi(getRestServiceFullPath() + '/setFont', 'post', null, font)\n}\n\nexport function deleteFont(id: string) {\n return callApi(getRestServiceFullPath() + '/deleteFont/' + id, 'delete', null, null)\n}\n"]}
@@ -1,18 +1,18 @@
1
- import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
1
+ import { callApi, getRestServiceFullPath } from './common';
2
2
  export function fetchGroupById(groupId) {
3
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchGroupById/' + groupId, 'get', null, null);
3
+ return callApi(getRestServiceFullPath() + '/fetchGroupById/' + groupId, 'get', null, null);
4
4
  }
5
5
  export function fetchGroupList() {
6
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchGroupList', 'get', null, null);
6
+ return callApi(getRestServiceFullPath() + '/fetchGroupList', 'get', null, null);
7
7
  }
8
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);
9
+ // console.log('createGroup', (getRestServiceFullPath()))
10
+ return callApi(getRestServiceFullPath() + '/createGroup', 'post', null, group);
11
11
  }
12
12
  export function updateGroup(group) {
13
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateGroup', 'put', null, group);
13
+ return callApi(getRestServiceFullPath() + '/updateGroup', 'put', null, group);
14
14
  }
15
15
  export function deleteGroup(groupId) {
16
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteGroup/' + groupId, 'delete', null, null);
16
+ return callApi(getRestServiceFullPath() + '/deleteGroup/' + groupId, 'delete', null, null);
17
17
  }
18
18
  //# sourceMappingURL=group.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/restful/group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,kBAAkB,GAAG,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC5F,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACjF,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,yDAAyD;IACzD,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAChF,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAC/E,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,eAAe,GAAG,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC5F,CAAC","sourcesContent":["import { BoardGroup } from '../types'\nimport { callApi, getRestServiceFullPath } from './common'\n\nexport function fetchGroupById(groupId: string) {\n return callApi(getRestServiceFullPath() + '/fetchGroupById/' + groupId, 'get', null, null)\n}\n\nexport function fetchGroupList() {\n return callApi(getRestServiceFullPath() + '/fetchGroupList', 'get', null, null)\n}\n\nexport function createGroup(group: BoardGroup) {\n // console.log('createGroup', (getRestServiceFullPath()))\n return callApi(getRestServiceFullPath() + '/createGroup', 'post', null, group)\n}\n\nexport function updateGroup(group: BoardGroup) {\n return callApi(getRestServiceFullPath() + '/updateGroup', 'put', null, group)\n}\n\nexport function deleteGroup(groupId: string) {\n return callApi(getRestServiceFullPath() + '/deleteGroup/' + groupId, 'delete', null, null)\n}\n"]}
@@ -8,3 +8,4 @@ export * from './connection';
8
8
  export * from './scenario';
9
9
  export * from './common';
10
10
  export * from './machine';
11
+ export * from './theme';
@@ -8,5 +8,5 @@ export * from './connection';
8
8
  export * from './scenario';
9
9
  export * from './common';
10
10
  export * from './machine';
11
- // export * from './theme'
11
+ export * from './theme';
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +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"]}
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,cAAc,SAAS,CAAA","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'\nexport * from './theme'\n"]}
@@ -1,24 +1,24 @@
1
- import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH } from './common';
1
+ import { callApi, getRestServiceFullPath } from './common';
2
2
  export function getEqpNamesByIdType(id, type) {
3
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getEqpNamesByIdType/' + id + '/' + type, 'get', null, null);
3
+ return callApi(getRestServiceFullPath() + '/getEqpNamesByIdType/' + id + '/' + type, 'get', null, null);
4
4
  }
5
5
  export function setAutoMcsConfig(mcsAutoConfig, board) {
6
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/setAutoMcsConfig/', 'post', null, {
6
+ return callApi(getRestServiceFullPath() + '/setAutoMcsConfig/', 'post', null, {
7
7
  connections: mcsAutoConfig.mcsAutoConnections,
8
8
  scenarios: mcsAutoConfig.mcsAutoScenarios,
9
9
  board
10
10
  });
11
11
  }
12
12
  export function getStockerPopupData(id) {
13
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getStockerPopupData/' + id, 'get', null, null);
13
+ return callApi(getRestServiceFullPath() + '/getStockerPopupData/' + id, 'get', null, null);
14
14
  }
15
15
  export function getStockerEqpPortPopupData(id) {
16
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getStockerEqpPortPopupData/' + id, 'get', null, null);
16
+ return callApi(getRestServiceFullPath() + '/getStockerEqpPortPopupData/' + id, 'get', null, null);
17
17
  }
18
18
  export function getProcessPopupData(id) {
19
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getProcessPopupData/' + id, 'get', null, null);
19
+ return callApi(getRestServiceFullPath() + '/getProcessPopupData/' + id, 'get', null, null);
20
20
  }
21
21
  export function getTransportPopupData(id) {
22
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/getTransportPopupData/' + id, 'get', null, null);
22
+ return callApi(getRestServiceFullPath() + '/getTransportPopupData/' + id, 'get', null, null);
23
23
  }
24
24
  //# sourceMappingURL=machine.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../src/restful/machine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,UAAU,mBAAmB,CAAC,EAAU,EAAE,IAAY;IAC1D,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,uBAAuB,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACzG,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,aAAkB,EAAE,KAAY;IAC/D,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,oBAAoB,EAAE,MAAM,EAAE,IAAI,EAAE;QAC5E,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,sBAAsB,EAAE,GAAG,uBAAuB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC5F,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EAAU;IACnD,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,8BAA8B,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACnG,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,uBAAuB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC5F,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,EAAU;IAC9C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,yBAAyB,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC9F,CAAC","sourcesContent":["import { Board } from '../types'\nimport { callApi, getRestServiceFullPath } from './common'\n\nexport function getEqpNamesByIdType(id: string, type: string) {\n return callApi(getRestServiceFullPath() + '/getEqpNamesByIdType/' + id + '/' + type, 'get', null, null)\n}\n\nexport function setAutoMcsConfig(mcsAutoConfig: any, board: Board) {\n return callApi(getRestServiceFullPath() + '/setAutoMcsConfig/', 'post', null, {\n connections: mcsAutoConfig.mcsAutoConnections,\n scenarios: mcsAutoConfig.mcsAutoScenarios,\n board\n })\n}\n\nexport function getStockerPopupData(id: string) {\n return callApi(getRestServiceFullPath() + '/getStockerPopupData/' + id, 'get', null, null)\n}\n\nexport function getStockerEqpPortPopupData(id: string) {\n return callApi(getRestServiceFullPath() + '/getStockerEqpPortPopupData/' + id, 'get', null, null)\n}\n\nexport function getProcessPopupData(id: string) {\n return callApi(getRestServiceFullPath() + '/getProcessPopupData/' + id, 'get', null, null)\n}\n\nexport function getTransportPopupData(id: string) {\n return callApi(getRestServiceFullPath() + '/getTransportPopupData/' + id, 'get', null, null)\n}\n"]}
@@ -1,36 +1,36 @@
1
- import { callApi, REST_SERVICE_URL, FREE_SERVICE_PATH, REST_SERVICE_MAIN_URL, REST_SERVICE_SECONDARY_URL } from './common';
1
+ import { callApi, getRestServiceFullPath, getRestServiceMainFullPath, getRestServiceSecondaryFullPath } from './common';
2
2
  export function fetchScenarios(scenario) {
3
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchScenarios', 'post', null, scenario);
3
+ return callApi(getRestServiceFullPath() + '/fetchScenarios', 'post', null, scenario);
4
4
  }
5
5
  export function updateScenarios(scenarios) {
6
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateScenarios', 'post', null, scenarios);
6
+ return callApi(getRestServiceFullPath() + '/updateScenarios', 'post', null, scenarios);
7
7
  }
8
8
  export function deleteScenarioById(ids) {
9
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteScenarioById', 'post', null, { ids });
9
+ return callApi(getRestServiceFullPath() + '/deleteScenarioById', 'post', null, { ids });
10
10
  }
11
11
  export function fetchStepByScenarioId(listParam = {}) {
12
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/fetchStepByScenarioId', 'post', null, listParam);
12
+ return callApi(getRestServiceFullPath() + '/fetchStepByScenarioId', 'post', null, listParam);
13
13
  }
14
14
  export function startScenario(params, serverType) {
15
15
  if (serverType === 'Main Server') {
16
- return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/startScenario', 'post', null, params);
16
+ return callApi(getRestServiceMainFullPath() + '/startScenario', 'post', null, params);
17
17
  }
18
18
  else if (serverType === 'Secondary Server') {
19
- return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/startScenario', 'post', null, params);
19
+ return callApi(getRestServiceSecondaryFullPath() + '/startScenario', 'post', null, params);
20
20
  }
21
21
  }
22
22
  export function stopScenario(params, serverType) {
23
23
  if (serverType === 'Main Server') {
24
- return callApi(REST_SERVICE_MAIN_URL + FREE_SERVICE_PATH + '/stopScenario', 'post', null, params);
24
+ return callApi(getRestServiceMainFullPath() + '/stopScenario', 'post', null, params);
25
25
  }
26
26
  else if (serverType === 'Secondary Server') {
27
- return callApi(REST_SERVICE_SECONDARY_URL + FREE_SERVICE_PATH + '/stopScenario', 'post', null, params);
27
+ return callApi(getRestServiceSecondaryFullPath() + '/stopScenario', 'post', null, params);
28
28
  }
29
29
  }
30
30
  export function updateSteps(steps) {
31
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/updateSteps', 'post', null, steps);
31
+ return callApi(getRestServiceFullPath() + '/updateSteps', 'post', null, steps);
32
32
  }
33
33
  export function deleteStepById(ids) {
34
- return callApi(REST_SERVICE_URL + FREE_SERVICE_PATH + '/deleteStepById', 'post', null, { ids });
34
+ return callApi(getRestServiceFullPath() + '/deleteStepById', 'post', null, { ids });
35
35
  }
36
36
  //# sourceMappingURL=scenario.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"scenario.js","sourceRoot":"","sources":["../../../src/restful/scenario.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAEvH,MAAM,UAAU,cAAc,CAAC,QAAa;IAC1C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;AACtF,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,SAAc;IAC5C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AACxF,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,GAAa;IAC9C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,qBAAqB,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;AACzF,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,YAAiB,EAAE;IACvD,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,wBAAwB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AAC9F,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAW,EAAE,UAAkB;IAC3D,IAAI,UAAU,KAAK,aAAa,EAAE;QAChC,OAAO,OAAO,CAAC,0BAA0B,EAAE,GAAG,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KACtF;SAAM,IAAI,UAAU,KAAK,kBAAkB,EAAE;QAC5C,OAAO,OAAO,CAAC,+BAA+B,EAAE,GAAG,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KAC3F;AACH,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAW,EAAE,UAAkB;IAC1D,IAAI,UAAU,KAAK,aAAa,EAAE;QAChC,OAAO,OAAO,CAAC,0BAA0B,EAAE,GAAG,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KACrF;SAAM,IAAI,UAAU,KAAK,kBAAkB,EAAE;QAC5C,OAAO,OAAO,CAAC,+BAA+B,EAAE,GAAG,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KAC1F;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAChF,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAa;IAC1C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;AACrF,CAAC","sourcesContent":["import { callApi, getRestServiceFullPath, getRestServiceMainFullPath, getRestServiceSecondaryFullPath } from './common'\n\nexport function fetchScenarios(scenario: any) {\n return callApi(getRestServiceFullPath() + '/fetchScenarios', 'post', null, scenario)\n}\n\nexport function updateScenarios(scenarios: any) {\n return callApi(getRestServiceFullPath() + '/updateScenarios', 'post', null, scenarios)\n}\n\nexport function deleteScenarioById(ids: string[]) {\n return callApi(getRestServiceFullPath() + '/deleteScenarioById', 'post', null, { ids })\n}\n\nexport function fetchStepByScenarioId(listParam: any = {}) {\n return callApi(getRestServiceFullPath() + '/fetchStepByScenarioId', 'post', null, listParam)\n}\n\nexport function startScenario(params: any, serverType: string) {\n if (serverType === 'Main Server') {\n return callApi(getRestServiceMainFullPath() + '/startScenario', 'post', null, params)\n } else if (serverType === 'Secondary Server') {\n return callApi(getRestServiceSecondaryFullPath() + '/startScenario', 'post', null, params)\n }\n}\n\nexport function stopScenario(params: any, serverType: string) {\n if (serverType === 'Main Server') {\n return callApi(getRestServiceMainFullPath() + '/stopScenario', 'post', null, params)\n } else if (serverType === 'Secondary Server') {\n return callApi(getRestServiceSecondaryFullPath() + '/stopScenario', 'post', null, params)\n }\n}\n\nexport function updateSteps(steps: any[]) {\n return callApi(getRestServiceFullPath() + '/updateSteps', 'post', null, steps)\n}\n\nexport function deleteStepById(ids: string[]) {\n return callApi(getRestServiceFullPath() + '/deleteStepById', 'post', null, { ids })\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export declare function getThemes(theme?: any): Promise<import("./common").RestfulReturnType | undefined>;
2
+ export declare function updateThemes(themes: any[]): Promise<import("./common").RestfulReturnType | undefined>;
3
+ export declare function deleteThemeByName(names: string[]): Promise<import("./common").RestfulReturnType | undefined>;
@@ -0,0 +1,11 @@
1
+ import { callApi, getRestServiceFullPath } from './common';
2
+ export function getThemes(theme = {}) {
3
+ return callApi(getRestServiceFullPath() + '/getThemes', 'post', null, theme);
4
+ }
5
+ export function updateThemes(themes) {
6
+ return callApi(getRestServiceFullPath() + '/updateThemes', 'post', null, themes);
7
+ }
8
+ export function deleteThemeByName(names) {
9
+ return callApi(getRestServiceFullPath() + '/deleteThemeByName', 'post', null, { names });
10
+ }
11
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/restful/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,UAAU,SAAS,CAAC,QAAa,EAAE;IACvC,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAC9E,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAa;IACxC,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;AAClF,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAe;IAC/C,OAAO,OAAO,CAAC,sBAAsB,EAAE,GAAG,oBAAoB,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;AAC1F,CAAC","sourcesContent":["import { callApi, getRestServiceFullPath } from './common'\n\nexport function getThemes(theme: any = {}) {\n return callApi(getRestServiceFullPath() + '/getThemes', 'post', null, theme)\n}\n\nexport function updateThemes(themes: any[]) {\n return callApi(getRestServiceFullPath() + '/updateThemes', 'post', null, themes)\n}\n\nexport function deleteThemeByName(names: string[]) {\n return callApi(getRestServiceFullPath() + '/deleteThemeByName', 'post', null, { names })\n}\n"]}