@fmsim/board 0.0.62 → 0.0.64

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 (65) hide show
  1. package/custom-elements.json +2281 -1834
  2. package/dist/src/layers/mcs-mouse-event-layer.d.ts +30 -0
  3. package/dist/src/layers/mcs-mouse-event-layer.js +114 -0
  4. package/dist/src/layers/mcs-mouse-event-layer.js.map +1 -0
  5. package/dist/src/layers/tooltip-decorator.d.ts +2 -0
  6. package/dist/src/layers/tooltip-decorator.js +41 -0
  7. package/dist/src/layers/tooltip-decorator.js.map +1 -0
  8. package/dist/src/ox-board-component-info.d.ts +21 -0
  9. package/dist/src/ox-board-component-info.js +218 -0
  10. package/dist/src/ox-board-component-info.js.map +1 -0
  11. package/dist/src/ox-board-modeller.js +0 -1
  12. package/dist/src/ox-board-modeller.js.map +1 -1
  13. package/dist/src/ox-board-viewer.d.ts +5 -1
  14. package/dist/src/ox-board-viewer.js +49 -3
  15. package/dist/src/ox-board-viewer.js.map +1 -1
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/package.json +3 -3
  18. package/dist/src/graphql/board.d.ts +0 -6
  19. package/dist/src/graphql/board.js +0 -139
  20. package/dist/src/graphql/board.js.map +0 -1
  21. package/dist/src/graphql/data-subscription.d.ts +0 -5
  22. package/dist/src/graphql/data-subscription.js +0 -24
  23. package/dist/src/graphql/data-subscription.js.map +0 -1
  24. package/dist/src/graphql/favorite-board.d.ts +0 -1
  25. package/dist/src/graphql/favorite-board.js +0 -23
  26. package/dist/src/graphql/favorite-board.js.map +0 -1
  27. package/dist/src/graphql/group.d.ts +0 -7
  28. package/dist/src/graphql/group.js +0 -125
  29. package/dist/src/graphql/group.js.map +0 -1
  30. package/dist/src/graphql/index.d.ts +0 -4
  31. package/dist/src/graphql/index.js +0 -5
  32. package/dist/src/graphql/index.js.map +0 -1
  33. package/dist/src/graphql/play-group.d.ts +0 -8
  34. package/dist/src/graphql/play-group.js +0 -173
  35. package/dist/src/graphql/play-group.js.map +0 -1
  36. package/dist/src/graphql/scenario.d.ts +0 -6
  37. package/dist/src/graphql/scenario.js +0 -69
  38. package/dist/src/graphql/scenario.js.map +0 -1
  39. package/dist/src/layers/bouncing-arrow-decorator.d.ts +0 -1
  40. package/dist/src/layers/bouncing-arrow-decorator.js +0 -40
  41. package/dist/src/layers/bouncing-arrow-decorator.js.map +0 -1
  42. package/dist/src/layers/event-handlers.d.ts +0 -1
  43. package/dist/src/layers/event-handlers.js +0 -70
  44. package/dist/src/layers/event-handlers.js.map +0 -1
  45. package/dist/src/layers/mcs-event-handlers.d.ts +0 -1
  46. package/dist/src/layers/mcs-event-handlers.js +0 -73
  47. package/dist/src/layers/mcs-event-handlers.js.map +0 -1
  48. package/dist/src/layers/ox-mini-map.d.ts +0 -1
  49. package/dist/src/layers/ox-mini-map.js +0 -189
  50. package/dist/src/layers/ox-mini-map.js.map +0 -1
  51. package/dist/src/layers/scroll-layer.d.ts +0 -24
  52. package/dist/src/layers/scroll-layer.js +0 -125
  53. package/dist/src/layers/scroll-layer.js.map +0 -1
  54. package/dist/src/layers/shift-handler.d.ts +0 -1
  55. package/dist/src/layers/shift-handler.js +0 -38
  56. package/dist/src/layers/shift-handler.js.map +0 -1
  57. package/dist/src/layers/zoom-handler.d.ts +0 -1
  58. package/dist/src/layers/zoom-handler.js +0 -36
  59. package/dist/src/layers/zoom-handler.js.map +0 -1
  60. package/dist/src/ox-board-viewer-backup.d.ts +0 -64
  61. package/dist/src/ox-board-viewer-backup.js +0 -529
  62. package/dist/src/ox-board-viewer-backup.js.map +0 -1
  63. package/dist/src/ox-board-viewer-other.d.ts +0 -19
  64. package/dist/src/ox-board-viewer-other.js +0 -82
  65. package/dist/src/ox-board-viewer-other.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fmsim/board",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "description": "보드 구성을 위한 기본 UI (웹)컴포넌트들을 제공합니다.",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -84,7 +84,7 @@
84
84
  "storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
85
85
  },
86
86
  "dependencies": {
87
- "@fmsim/api": "^0.0.62",
87
+ "@fmsim/api": "^0.0.64",
88
88
  "@open-wc/scoped-elements": "^2.0.0-next.6",
89
89
  "@operato/app": "^1.3.7",
90
90
  "@operato/data-grist": "^1.3.5",
@@ -145,5 +145,5 @@
145
145
  "prettier --write"
146
146
  ]
147
147
  },
148
- "gitHead": "12bf470581d2bfc9f2ee6b23711afb48d5529021"
148
+ "gitHead": "bdac895881016592e3900e0173ca603f9dd9821a"
149
149
  }
@@ -1,6 +0,0 @@
1
- import { Board } from '../types';
2
- export declare function fetchBoardList(listParam?: {}): Promise<any>;
3
- export declare function fetchBoard(id: string): Promise<any>;
4
- export declare function createBoard(board: Board): Promise<any>;
5
- export declare function updateBoard(board: Board): Promise<any>;
6
- export declare function deleteBoard(id: string): Promise<any>;
@@ -1,139 +0,0 @@
1
- import { buildArgs, client } from '@operato/graphql';
2
- import gql from 'graphql-tag';
3
- export async function fetchBoardList(listParam = {}) {
4
- const response = await client.query({
5
- query: gql `
6
- {
7
- boards(${buildArgs(listParam)}) {
8
- items {
9
- id
10
- name
11
- description
12
- thumbnail
13
- createdAt
14
- updatedAt
15
- }
16
- total
17
- }
18
- }
19
- `
20
- });
21
- return response.data;
22
- }
23
- export async function fetchBoard(id) {
24
- const response = await client.query({
25
- query: gql `
26
- query FetchBoardById($id: String!) {
27
- board(id: $id) {
28
- id
29
- name
30
- description
31
- group {
32
- id
33
- name
34
- }
35
- thumbnail
36
- model
37
- createdAt
38
- creator {
39
- id
40
- name
41
- }
42
- updatedAt
43
- updater {
44
- id
45
- name
46
- }
47
- }
48
-
49
- themes {
50
- items {
51
- name
52
- description
53
- type
54
- value
55
- }
56
- }
57
- }
58
- `,
59
- variables: { id }
60
- });
61
- return response.data;
62
- }
63
- export async function createBoard(board) {
64
- /*
65
- input NewBoard {
66
- name : String!
67
- description : String
68
- model : String!
69
- groupId : String!
70
- }
71
- */
72
- board.model = JSON.stringify(board.model);
73
- const response = await client.mutate({
74
- mutation: gql `
75
- mutation CreateBoard($board: NewBoard!) {
76
- createBoard(board: $board) {
77
- id
78
- name
79
- description
80
- model
81
- createdAt
82
- updatedAt
83
- }
84
- }
85
- `,
86
- variables: {
87
- board
88
- }
89
- });
90
- return response.data;
91
- }
92
- export async function updateBoard(board) {
93
- /*
94
- input BoardPatch {
95
- name : String
96
- description : String
97
- model : String
98
- }
99
- */
100
- var { id, name, description, model, groupId } = board;
101
- model = JSON.stringify(model);
102
- const response = await client.mutate({
103
- mutation: gql `
104
- mutation UpdateBoard($id: String!, $patch: BoardPatch!) {
105
- updateBoard(id: $id, patch: $patch) {
106
- id
107
- name
108
- description
109
- model
110
- group {
111
- id
112
- name
113
- }
114
- createdAt
115
- updatedAt
116
- }
117
- }
118
- `,
119
- variables: {
120
- id,
121
- patch: { name, description, model, groupId }
122
- }
123
- });
124
- return response.data;
125
- }
126
- export async function deleteBoard(id) {
127
- const response = await client.mutate({
128
- mutation: gql `
129
- mutation ($id: String!) {
130
- deleteBoard(id: $id)
131
- }
132
- `,
133
- variables: {
134
- id
135
- }
136
- });
137
- return response.data;
138
- }
139
- //# sourceMappingURL=board.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"board.js","sourceRoot":"","sources":["../../../src/graphql/board.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAGpD,OAAO,GAAG,MAAM,aAAa,CAAA;AAE7B,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,SAAS,GAAG,EAAE;IACjD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;QAClC,KAAK,EAAE,GAAG,CAAA;;iBAEG,SAAS,CAAC,SAAS,CAAC;;;;;;;;;;;;KAYh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AK,UAAU,WAAW,CAAC,EAAU;IAC1C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;KAIZ;QACD,SAAS,EAAE;YACT,EAAE;SACH;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC","sourcesContent":["import { buildArgs, client } from '@operato/graphql'\n\nimport { Board } from '../types'\nimport gql from 'graphql-tag'\n\nexport async function fetchBoardList(listParam = {}) {\n const response = await client.query({\n query: gql`\n {\n boards(${buildArgs(listParam)}) {\n items {\n id\n name\n description\n thumbnail\n createdAt\n updatedAt\n }\n total\n }\n }\n `\n })\n\n return response.data\n}\n\nexport async function fetchBoard(id: string) {\n const response = await client.query({\n query: gql`\n query FetchBoardById($id: String!) {\n board(id: $id) {\n id\n name\n description\n group {\n id\n name\n }\n thumbnail\n model\n createdAt\n creator {\n id\n name\n }\n updatedAt\n updater {\n id\n name\n }\n }\n\n themes {\n items {\n name\n description\n type\n value\n }\n }\n }\n `,\n variables: { id }\n })\n\n return response.data\n}\n\nexport async function createBoard(board: Board) {\n /*\n input NewBoard {\n name : String!\n description : String\n model : String!\n groupId : String!\n }\n */\n\n board.model = JSON.stringify(board.model)\n\n const response = await client.mutate({\n mutation: gql`\n mutation CreateBoard($board: NewBoard!) {\n createBoard(board: $board) {\n id\n name\n description\n model\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n board\n }\n })\n\n return response.data\n}\n\nexport async function updateBoard(board: Board) {\n /*\n input BoardPatch {\n name : String\n description : String\n model : String\n }\n */\n var { id, name, description, model, groupId } = board\n model = JSON.stringify(model)\n\n const response = await client.mutate({\n mutation: gql`\n mutation UpdateBoard($id: String!, $patch: BoardPatch!) {\n updateBoard(id: $id, patch: $patch) {\n id\n name\n description\n model\n group {\n id\n name\n }\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n id,\n patch: { name, description, model, groupId }\n }\n })\n\n return response.data\n}\n\nexport async function deleteBoard(id: string) {\n const response = await client.mutate({\n mutation: gql`\n mutation ($id: String!) {\n deleteBoard(id: $id)\n }\n `,\n variables: {\n id\n }\n })\n\n return response.data\n}\n"]}
@@ -1,5 +0,0 @@
1
- import { Component, DataSubscriptionProvider } from '@hatiolab/things-scene';
2
- export declare class DataSubscriptionProviderImpl implements DataSubscriptionProvider {
3
- subscribe(tag: string, component: Component): Promise<import("zen-observable-ts").Subscription>;
4
- dispose(): void;
5
- }
@@ -1,24 +0,0 @@
1
- import gql from 'graphql-tag';
2
- import { subscribe } from '@operato/graphql';
3
- export class DataSubscriptionProviderImpl {
4
- async subscribe(tag, component) {
5
- return await subscribe({
6
- query: gql `
7
- subscription {
8
- data(tag: "${tag}") {
9
- tag
10
- data
11
- }
12
- }
13
- `
14
- }, {
15
- next: async ({ data }) => {
16
- if (data) {
17
- component.data = data.data.data;
18
- }
19
- }
20
- });
21
- }
22
- dispose() { }
23
- }
24
- //# sourceMappingURL=data-subscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-subscription.js","sourceRoot":"","sources":["../../../src/graphql/data-subscription.ts"],"names":[],"mappings":"AAEA,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAE5C,MAAM,OAAO,4BAA4B;IACvC,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,SAAoB;QAC/C,OAAO,MAAM,SAAS,CACpB;YACE,KAAK,EAAE,GAAG,CAAA;;iCAEe,GAAG;;;;;iBAKnB;SACV,EACD;YACE,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAiB,EAAE,EAAE;gBACtC,IAAI,IAAI,EAAE;oBACR,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;iBAChC;YACH,CAAC;SACF,CACF,CAAA;IACH,CAAC;IAED,OAAO,KAAI,CAAC;CACb","sourcesContent":["import { Component, DataSubscriptionProvider } from '@hatiolab/things-scene'\n\nimport gql from 'graphql-tag'\nimport { subscribe } from '@operato/graphql'\n\nexport class DataSubscriptionProviderImpl implements DataSubscriptionProvider {\n async subscribe(tag: string, component: Component) {\n return await subscribe(\n {\n query: gql`\n subscription {\n data(tag: \"${tag}\") {\n tag\n data\n }\n }\n `\n },\n {\n next: async ({ data }: { data: any }) => {\n if (data) {\n component.data = data.data.data\n }\n }\n }\n )\n }\n\n dispose() {}\n}\n"]}
@@ -1 +0,0 @@
1
- export declare function fetchFavoriteBoardList(listParam?: {}): Promise<any>;
@@ -1,23 +0,0 @@
1
- import { buildArgs, client } from '@operato/graphql';
2
- import gql from 'graphql-tag';
3
- export async function fetchFavoriteBoardList(listParam = {}) {
4
- const response = await client.query({
5
- query: gql `
6
- {
7
- favoriteBoards(${buildArgs(listParam)}) {
8
- items {
9
- id
10
- name
11
- description
12
- thumbnail
13
- createdAt
14
- updatedAt
15
- }
16
- total
17
- }
18
- }
19
- `
20
- });
21
- return response.data;
22
- }
23
- //# sourceMappingURL=favorite-board.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"favorite-board.js","sourceRoot":"","sources":["../../../src/graphql/favorite-board.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,GAAG,MAAM,aAAa,CAAA;AAE7B,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,SAAS,GAAG,EAAE;IACzD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;QAClC,KAAK,EAAE,GAAG,CAAA;;yBAEW,SAAS,CAAC,SAAS,CAAC;;;;;;;;;;;;KAYxC;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC","sourcesContent":["import { buildArgs, client } from '@operato/graphql'\n\nimport gql from 'graphql-tag'\n\nexport async function fetchFavoriteBoardList(listParam = {}) {\n const response = await client.query({\n query: gql`\n {\n favoriteBoards(${buildArgs(listParam)}) {\n items {\n id\n name\n description\n thumbnail\n createdAt\n updatedAt\n }\n total\n }\n }\n `\n })\n\n return response.data\n}\n"]}
@@ -1,7 +0,0 @@
1
- import { BoardGroup } from '../types';
2
- export declare function fetchGroupById(id: string): Promise<any>;
3
- export declare function updateGroup(group: BoardGroup): Promise<any>;
4
- export declare function deleteGroup(id: string): Promise<any>;
5
- export declare function fetchGroupList(): Promise<any>;
6
- export declare function createGroup(group: BoardGroup): Promise<any>;
7
- export declare function joinGroup(boardId: string, groupId: string): Promise<any>;
@@ -1,125 +0,0 @@
1
- import { client } from '@operato/graphql';
2
- import gql from 'graphql-tag';
3
- export async function fetchGroup(id) {
4
- const response = await client.query({
5
- query: gql `
6
- query FetchGroupById($id: String!) {
7
- group(id: $id) {
8
- id
9
- name
10
- description
11
- createdAt
12
- creator {
13
- id
14
- name
15
- }
16
- updatedAt
17
- updater {
18
- id
19
- name
20
- }
21
- }
22
- }
23
- `,
24
- variables: { id }
25
- });
26
- return response.data;
27
- }
28
- export async function updateGroup(group) {
29
- var { id, name, description } = group;
30
- const response = await client.mutate({
31
- mutation: gql `
32
- mutation UpdateGroup($id: String!, $patch: GroupPatch!) {
33
- updateGroup(id: $id, patch: $patch) {
34
- id
35
- name
36
- description
37
- createdAt
38
- updatedAt
39
- }
40
- }
41
- `,
42
- variables: {
43
- id,
44
- patch: { name, description }
45
- }
46
- });
47
- return response.data;
48
- }
49
- export async function deleteGroup(id) {
50
- const response = await client.mutate({
51
- mutation: gql `
52
- mutation ($id: String!) {
53
- deleteGroup(id: $id)
54
- }
55
- `,
56
- variables: {
57
- id
58
- }
59
- });
60
- return response.data;
61
- }
62
- export async function fetchGroupList() {
63
- const response = await client.query({
64
- query: gql `
65
- {
66
- groups {
67
- items {
68
- id
69
- name
70
- description
71
- createdAt
72
- updatedAt
73
- }
74
- total
75
- }
76
- }
77
- `
78
- });
79
- return response.data;
80
- }
81
- export async function createGroup(group) {
82
- const response = await client.mutate({
83
- mutation: gql `
84
- mutation CreateGroup($group: NewGroup!) {
85
- createGroup(group: $group) {
86
- id
87
- name
88
- description
89
- createdAt
90
- updatedAt
91
- }
92
- }
93
- `,
94
- variables: { group }
95
- });
96
- return response.data;
97
- }
98
- export async function joinGroup(boardId, groupId) {
99
- const response = await client.mutate({
100
- mutation: gql `
101
- mutation JoinGroup($id: String!, $boardIds: [String!]!) {
102
- joinGroup(id: $id, boardIds: $boardIds) {
103
- id
104
- name
105
- description
106
- boards {
107
- id
108
- name
109
- description
110
- createdAt
111
- updatedAt
112
- }
113
- createdAt
114
- updatedAt
115
- }
116
- }
117
- `,
118
- variables: {
119
- id: groupId,
120
- boardIds: [boardId]
121
- }
122
- });
123
- return response.data;
124
- }
125
- //# sourceMappingURL=group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/graphql/group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,GAAG,MAAM,aAAa,CAAA;AAE7B,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAU;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;QAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;KAkBT;QACD,SAAS,EAAE,EAAE,EAAE,EAAE;KAClB,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,KAAiB;IACjD,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,KAAK,CAAA;IAErC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;;;;;;;KAUZ;QACD,SAAS,EAAE;YACT,EAAE;YACF,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;SAC7B;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,EAAU;IAC1C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;KAIZ;QACD,SAAS,EAAE;YACT,EAAE;SACH;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;QAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;KAaT;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,KAAiB;IACjD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;;;;;;;KAUZ;QACD,SAAS,EAAE,EAAE,KAAK,EAAE;KACrB,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,OAAe,EAAE,OAAe;IAC9D,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;KAiBZ;QACD,SAAS,EAAE;YACT,EAAE,EAAE,OAAO;YACX,QAAQ,EAAE,CAAC,OAAO,CAAC;SACpB;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC","sourcesContent":["import { BoardGroup } from '../types'\nimport { client } from '@operato/graphql'\nimport gql from 'graphql-tag'\n\nexport async function fetchGroup(id: string) {\n const response = await client.query({\n query: gql`\n query FetchGroupById($id: String!) {\n group(id: $id) {\n id\n name\n description\n createdAt\n creator {\n id\n name\n }\n updatedAt\n updater {\n id\n name\n }\n }\n }\n `,\n variables: { id }\n })\n\n return response.data\n}\n\nexport async function updateGroup(group: BoardGroup) {\n var { id, name, description } = group\n\n const response = await client.mutate({\n mutation: gql`\n mutation UpdateGroup($id: String!, $patch: GroupPatch!) {\n updateGroup(id: $id, patch: $patch) {\n id\n name\n description\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n id,\n patch: { name, description }\n }\n })\n\n return response.data\n}\n\nexport async function deleteGroup(id: string) {\n const response = await client.mutate({\n mutation: gql`\n mutation ($id: String!) {\n deleteGroup(id: $id)\n }\n `,\n variables: {\n id\n }\n })\n\n return response.data\n}\n\nexport async function fetchGroupList() {\n const response = await client.query({\n query: gql`\n {\n groups {\n items {\n id\n name\n description\n createdAt\n updatedAt\n }\n total\n }\n }\n `\n })\n\n return response.data\n}\n\nexport async function createGroup(group: BoardGroup) {\n const response = await client.mutate({\n mutation: gql`\n mutation CreateGroup($group: NewGroup!) {\n createGroup(group: $group) {\n id\n name\n description\n createdAt\n updatedAt\n }\n }\n `,\n variables: { group }\n })\n\n return response.data\n}\n\nexport async function joinGroup(boardId: string, groupId: string) {\n const response = await client.mutate({\n mutation: gql`\n mutation JoinGroup($id: String!, $boardIds: [String!]!) {\n joinGroup(id: $id, boardIds: $boardIds) {\n id\n name\n description\n boards {\n id\n name\n description\n createdAt\n updatedAt\n }\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n id: groupId,\n boardIds: [boardId]\n }\n })\n\n return response.data\n}\n"]}
@@ -1,4 +0,0 @@
1
- export * from './board';
2
- export * from './group';
3
- export * from './play-group';
4
- export * from './favorite-board';
@@ -1,5 +0,0 @@
1
- export * from './board';
2
- export * from './group';
3
- export * from './play-group';
4
- export * from './favorite-board';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA","sourcesContent":["export * from './board'\nexport * from './group'\nexport * from './play-group'\nexport * from './favorite-board'\n"]}
@@ -1,8 +0,0 @@
1
- import { PlayGroup } from '../types';
2
- export declare function fetchPlayGroupList(): Promise<any>;
3
- export declare function fetchPlayGroup(groupId: string): Promise<any>;
4
- export declare function createPlayGroup(group: PlayGroup): Promise<any>;
5
- export declare function updatePlayGroup(group: PlayGroup): Promise<any>;
6
- export declare function deletePlayGroup(id: string): Promise<any>;
7
- export declare function joinPlayGroup(boardId: string, group: PlayGroup): Promise<any>;
8
- export declare function leavePlayGroup(boardId: string, groupId: string): Promise<any>;
@@ -1,173 +0,0 @@
1
- import { client } from '@operato/graphql';
2
- import gql from 'graphql-tag';
3
- export async function fetchPlayGroupList() {
4
- const response = await client.query({
5
- query: gql `
6
- {
7
- playGroups {
8
- items {
9
- id
10
- name
11
- description
12
- }
13
- total
14
- }
15
- }
16
- `
17
- });
18
- return response.data;
19
- }
20
- export async function fetchPlayGroup(groupId) {
21
- const response = await client.query({
22
- query: gql `
23
- query FetchPlayGroup($id: String!) {
24
- playGroup(id: $id) {
25
- id
26
- name
27
- description
28
- boards {
29
- id
30
- name
31
- description
32
- model
33
- thumbnail
34
- createdAt
35
- creator {
36
- id
37
- name
38
- }
39
- updatedAt
40
- updater {
41
- id
42
- name
43
- }
44
- }
45
- createdAt
46
- creator {
47
- id
48
- name
49
- }
50
- updatedAt
51
- updater {
52
- id
53
- name
54
- }
55
- }
56
- }
57
- `,
58
- variables: {
59
- id: groupId
60
- }
61
- });
62
- return response.data;
63
- }
64
- export async function createPlayGroup(group) {
65
- var { name, description } = group;
66
- const response = await client.mutate({
67
- mutation: gql `
68
- mutation CreatePlayGroup($playGroup: NewPlayGroup!) {
69
- createPlayGroup(playGroup: $playGroup) {
70
- id
71
- name
72
- description
73
- createdAt
74
- updatedAt
75
- }
76
- }
77
- `,
78
- variables: {
79
- playGroup: { name, description }
80
- }
81
- });
82
- return response.data;
83
- }
84
- export async function updatePlayGroup(group) {
85
- var { id, name, description } = group;
86
- const response = await client.mutate({
87
- mutation: gql `
88
- mutation UpdatePlayGroup($id: String!, $patch: PlayGroupPatch!) {
89
- updatePlayGroup(id: $id, patch: $patch) {
90
- id
91
- name
92
- description
93
- createdAt
94
- updatedAt
95
- }
96
- }
97
- `,
98
- variables: {
99
- id,
100
- patch: { name, description }
101
- }
102
- });
103
- return response.data;
104
- }
105
- export async function deletePlayGroup(id) {
106
- const response = await client.mutate({
107
- mutation: gql `
108
- mutation ($id: String!) {
109
- deletePlayGroup(id: $id)
110
- }
111
- `,
112
- variables: {
113
- id
114
- }
115
- });
116
- return response.data;
117
- }
118
- export async function joinPlayGroup(boardId, group) {
119
- var { id, name, description } = group;
120
- const response = await client.mutate({
121
- mutation: gql `
122
- mutation JoinPlayGroup($id: String!, $boardIds: [String!]!) {
123
- joinPlayGroup(id: $id, boardIds: $boardIds) {
124
- id
125
- name
126
- description
127
- boards {
128
- id
129
- name
130
- description
131
- createdAt
132
- updatedAt
133
- }
134
- createdAt
135
- updatedAt
136
- }
137
- }
138
- `,
139
- variables: {
140
- id,
141
- boardIds: [boardId]
142
- }
143
- });
144
- return response.data;
145
- }
146
- export async function leavePlayGroup(boardId, groupId) {
147
- const response = await client.mutate({
148
- mutation: gql `
149
- mutation ($id: String!, $boardIds: [String]!) {
150
- leavePlayGroup(id: $id, boardIds: $boardIds) {
151
- id
152
- name
153
- description
154
- boards {
155
- id
156
- name
157
- description
158
- createdAt
159
- updatedAt
160
- }
161
- createdAt
162
- updatedAt
163
- }
164
- }
165
- `,
166
- variables: {
167
- id: groupId,
168
- boardIds: [boardId]
169
- }
170
- });
171
- return response.data;
172
- }
173
- //# sourceMappingURL=play-group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"play-group.js","sourceRoot":"","sources":["../../../src/graphql/play-group.ts"],"names":[],"mappings":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EAAE;SAC7B;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,EAAU;IAC9C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;KAIZ;QACD,SAAS,EAAE;YACT,EAAE;SACH;KACF,CAAC,CAAA;IACF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAe,EAAE,KAAgB;IACnE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,KAAK,CAAA;IAErC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;KAiBZ;QACD,SAAS,EAAE;YACT,EAAE;YACF,QAAQ,EAAE,CAAC,OAAO,CAAC;SACpB;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAAe,EAAE,OAAe;IACnE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;KAiBZ;QACD,SAAS,EAAE;YACT,EAAE,EAAE,OAAO;YACX,QAAQ,EAAE,CAAC,OAAO,CAAC;SACpB;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC","sourcesContent":["import { PlayGroup } from '../types'\nimport { client } from '@operato/graphql'\nimport gql from 'graphql-tag'\n\nexport async function fetchPlayGroupList() {\n const response = await client.query({\n query: gql`\n {\n playGroups {\n items {\n id\n name\n description\n }\n total\n }\n }\n `\n })\n\n return response.data\n}\n\nexport async function fetchPlayGroup(groupId: string) {\n const response = await client.query({\n query: gql`\n query FetchPlayGroup($id: String!) {\n playGroup(id: $id) {\n id\n name\n description\n boards {\n id\n name\n description\n model\n thumbnail\n createdAt\n creator {\n id\n name\n }\n updatedAt\n updater {\n id\n name\n }\n }\n createdAt\n creator {\n id\n name\n }\n updatedAt\n updater {\n id\n name\n }\n }\n }\n `,\n variables: {\n id: groupId\n }\n })\n\n return response.data\n}\n\nexport async function createPlayGroup(group: PlayGroup) {\n var { name, description } = group\n\n const response = await client.mutate({\n mutation: gql`\n mutation CreatePlayGroup($playGroup: NewPlayGroup!) {\n createPlayGroup(playGroup: $playGroup) {\n id\n name\n description\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n playGroup: { name, description }\n }\n })\n\n return response.data\n}\n\nexport async function updatePlayGroup(group: PlayGroup) {\n var { id, name, description } = group\n\n const response = await client.mutate({\n mutation: gql`\n mutation UpdatePlayGroup($id: String!, $patch: PlayGroupPatch!) {\n updatePlayGroup(id: $id, patch: $patch) {\n id\n name\n description\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n id,\n patch: { name, description }\n }\n })\n\n return response.data\n}\n\nexport async function deletePlayGroup(id: string) {\n const response = await client.mutate({\n mutation: gql`\n mutation ($id: String!) {\n deletePlayGroup(id: $id)\n }\n `,\n variables: {\n id\n }\n })\n return response.data\n}\n\nexport async function joinPlayGroup(boardId: string, group: PlayGroup) {\n var { id, name, description } = group\n\n const response = await client.mutate({\n mutation: gql`\n mutation JoinPlayGroup($id: String!, $boardIds: [String!]!) {\n joinPlayGroup(id: $id, boardIds: $boardIds) {\n id\n name\n description\n boards {\n id\n name\n description\n createdAt\n updatedAt\n }\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n id,\n boardIds: [boardId]\n }\n })\n\n return response.data\n}\n\nexport async function leavePlayGroup(boardId: string, groupId: string) {\n const response = await client.mutate({\n mutation: gql`\n mutation ($id: String!, $boardIds: [String]!) {\n leavePlayGroup(id: $id, boardIds: $boardIds) {\n id\n name\n description\n boards {\n id\n name\n description\n createdAt\n updatedAt\n }\n createdAt\n updatedAt\n }\n }\n `,\n variables: {\n id: groupId,\n boardIds: [boardId]\n }\n })\n\n return response.data\n}\n"]}
@@ -1,6 +0,0 @@
1
- export declare const scenarios: () => Promise<{
2
- name: string;
3
- description: string;
4
- }[]>;
5
- export declare const startScenario: (scenarioName: string, instanceName: string, variables: string | number | object) => Promise<any>;
6
- export declare const runScenario: (scenarioName: string, variables: string | number | object) => Promise<any>;