@longvansoftware/service-js-client 1.16.1 → 1.16.3

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 (95) hide show
  1. package/README.md +93 -93
  2. package/dist/src/graphql/accounting_service/mutations.js +96 -96
  3. package/dist/src/graphql/accounting_service/queries.js +57 -57
  4. package/dist/src/graphql/auth/mutations.js +235 -235
  5. package/dist/src/graphql/auth/queries.js +68 -68
  6. package/dist/src/graphql/cloud/mutations.js +282 -282
  7. package/dist/src/graphql/cloud/queries.js +341 -341
  8. package/dist/src/graphql/computing/mutations.js +303 -303
  9. package/dist/src/graphql/computing/queries.js +548 -548
  10. package/dist/src/graphql/crm/mutations.d.ts +2 -0
  11. package/dist/src/graphql/crm/mutations.js +427 -391
  12. package/dist/src/graphql/crm/queries.d.ts +1 -0
  13. package/dist/src/graphql/crm/queries.js +392 -358
  14. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  15. package/dist/src/graphql/crm_camping/queries.js +228 -199
  16. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  17. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  18. package/dist/src/graphql/payment/mutations.js +45 -45
  19. package/dist/src/graphql/payment/queries.js +60 -60
  20. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  21. package/dist/src/graphql/paymentLV/queries.js +75 -75
  22. package/dist/src/graphql/product/queries.d.ts +1 -0
  23. package/dist/src/graphql/product/queries.js +910 -892
  24. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  25. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  26. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  27. package/dist/src/graphql/resource_permission/queries.js +13 -13
  28. package/dist/src/graphql/service/mutations.js +228 -228
  29. package/dist/src/graphql/service/queries.js +128 -128
  30. package/dist/src/graphql/user/mutations.js +214 -214
  31. package/dist/src/graphql/user/queries.js +312 -312
  32. package/dist/src/lib/crm/index.d.ts +3 -0
  33. package/dist/src/lib/crm/index.js +51 -0
  34. package/dist/src/lib/crm_camping/index.d.ts +1 -1
  35. package/dist/src/lib/crm_camping/index.js +10 -6
  36. package/dist/src/lib/product/index.d.ts +1 -0
  37. package/dist/src/lib/product/index.js +18 -0
  38. package/dist/src/lib/service.d.ts +14 -0
  39. package/dist/src/lib/service.js +101 -0
  40. package/dist/src/lib/serviceSDK.js +12 -12
  41. package/dist/src/utils/build-field-string.d.ts +1 -0
  42. package/dist/src/utils/build-field-string.js +16 -0
  43. package/package.json +43 -44
  44. package/dist/src/graphql/campaign/mutations.d.ts +0 -1
  45. package/dist/src/graphql/campaign/mutations.js +0 -34
  46. package/dist/src/graphql/campaign/queries.d.ts +0 -9
  47. package/dist/src/graphql/campaign/queries.js +0 -412
  48. package/dist/src/graphql/cashbook/queries.d.ts +0 -2
  49. package/dist/src/graphql/cashbook/queries.js +0 -99
  50. package/dist/src/graphql/paymentV2/mutations.d.ts +0 -3
  51. package/dist/src/graphql/paymentV2/mutations.js +0 -54
  52. package/dist/src/graphql/paymentV2/queries.d.ts +0 -6
  53. package/dist/src/graphql/paymentV2/queries.js +0 -186
  54. package/dist/src/graphql/store/mutations.d.ts +0 -1
  55. package/dist/src/graphql/store/mutations.js +0 -29
  56. package/dist/src/graphql/store/queries.d.ts +0 -1
  57. package/dist/src/graphql/store/queries.js +0 -29
  58. package/dist/src/lib/accounting/index.d.ts +0 -5
  59. package/dist/src/lib/accounting/index.js +0 -32
  60. package/dist/src/lib/campaign/index.d.ts +0 -20
  61. package/dist/src/lib/campaign/index.js +0 -213
  62. package/dist/src/lib/cashbook/index.d.ts +0 -6
  63. package/dist/src/lib/cashbook/index.js +0 -56
  64. package/dist/src/lib/comhub/index.d.ts +0 -6
  65. package/dist/src/lib/comhub/index.js +0 -50
  66. package/dist/src/lib/deepLinkVietQr/index.d.ts +0 -6
  67. package/dist/src/lib/deepLinkVietQr/index.js +0 -45
  68. package/dist/src/lib/getImage/index.d.ts +0 -4
  69. package/dist/src/lib/getImage/index.js +0 -10
  70. package/dist/src/lib/image/index.d.ts +0 -7
  71. package/dist/src/lib/image/index.js +0 -49
  72. package/dist/src/lib/omnigateway/index.d.ts +0 -7
  73. package/dist/src/lib/omnigateway/index.js +0 -58
  74. package/dist/src/lib/paymentV2/index.d.ts +0 -13
  75. package/dist/src/lib/paymentV2/index.js +0 -163
  76. package/dist/src/lib/portal/index.d.ts +0 -21
  77. package/dist/src/lib/portal/index.js +0 -225
  78. package/dist/src/lib/store/index.d.ts +0 -30
  79. package/dist/src/lib/store/index.js +0 -74
  80. package/dist/src/lib/token/index.d.ts +0 -5
  81. package/dist/src/lib/token/index.js +0 -32
  82. package/dist/src/lib/upload/index.d.ts +0 -5
  83. package/dist/src/lib/upload/index.js +0 -35
  84. package/dist/src/lib/warehouseV2/index.d.ts +0 -13
  85. package/dist/src/lib/warehouseV2/index.js +0 -54
  86. package/dist/src/lib/zca/index.d.ts +0 -12
  87. package/dist/src/lib/zca/index.js +0 -41
  88. package/dist/src/types/campaign.d.ts +0 -14
  89. package/dist/src/types/campaign.js +0 -2
  90. package/dist/src/types/invoice.d.ts +0 -13
  91. package/dist/src/types/invoice.js +0 -2
  92. package/dist/src/types/store.d.ts +0 -158
  93. package/dist/src/types/store.js +0 -3
  94. package/dist/src/utils/validatePhoneNumber.d.ts +0 -1
  95. package/dist/src/utils/validatePhoneNumber.js +0 -20
@@ -2,345 +2,345 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CREATE_COMPUTING_FOR_EC = exports.UPDATE_RAM = exports.UPDATE_CPU = exports.DELETE_COMPUTING = exports.RESTORE_COMPUTING_WAITING_REVOKE = exports.COMPUTING_WAITING_REVOKE = exports.UPDATE_NAME_COMPUTING = exports.CREATE_COMPUTING_FOR_DC = exports.UPDATE_DESCRIPTION_COMPUTING = exports.ADD_PORT_NAT = exports.STOP_USE_COMPUTING = exports.REMOVE_COMPUTING_IN_CLUSTER = exports.ADD_COMPUTING_IN_CLUSTER = exports.CREATE_CLUSTER = exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.RESTARTVM = (0, graphql_tag_1.gql) `
6
- mutation Restart($computingId: String!, $actor: String!) {
7
- restart(computingId: $computingId, actor: $actor)
8
- }
5
+ exports.RESTARTVM = (0, graphql_tag_1.gql) `
6
+ mutation Restart($computingId: String!, $actor: String!) {
7
+ restart(computingId: $computingId, actor: $actor)
8
+ }
9
9
  `;
10
- exports.UPDATE_DESCRIPTION_PORTNAT = (0, graphql_tag_1.gql) `
11
- mutation UpdateDescriptionPortNat(
12
- $portNatId: String!
13
- $description: String!
14
- $updateBy: String
15
- ) {
16
- updateDescriptionPortNat(
17
- portNatId: $portNatId
18
- description: $description
19
- updateBy: $updateBy
20
- )
21
- }
10
+ exports.UPDATE_DESCRIPTION_PORTNAT = (0, graphql_tag_1.gql) `
11
+ mutation UpdateDescriptionPortNat(
12
+ $portNatId: String!
13
+ $description: String!
14
+ $updateBy: String
15
+ ) {
16
+ updateDescriptionPortNat(
17
+ portNatId: $portNatId
18
+ description: $description
19
+ updateBy: $updateBy
20
+ )
21
+ }
22
22
  `;
23
- exports.CREATE_PORT_NAT = (0, graphql_tag_1.gql) `
24
- mutation CreatePortNat(
25
- $portNatId: String!
26
- $translatedPort: String!
27
- $createBy: String
28
- ) {
29
- createPortNat(
30
- portNatId: $portNatId
31
- translatedPort: $translatedPort
32
- createBy: $createBy
33
- )
34
- }
23
+ exports.CREATE_PORT_NAT = (0, graphql_tag_1.gql) `
24
+ mutation CreatePortNat(
25
+ $portNatId: String!
26
+ $translatedPort: String!
27
+ $createBy: String
28
+ ) {
29
+ createPortNat(
30
+ portNatId: $portNatId
31
+ translatedPort: $translatedPort
32
+ createBy: $createBy
33
+ )
34
+ }
35
35
  `;
36
- exports.UPDATE_PORT_NAT = (0, graphql_tag_1.gql) `
37
- mutation UpdatePortNat(
38
- $portNatId: String!
39
- $translatedPort: String!
40
- $updateBy: String
41
- ) {
42
- updatePortNat(
43
- portNatId: $portNatId
44
- translatedPort: $translatedPort
45
- updateBy: $updateBy
46
- )
47
- }
36
+ exports.UPDATE_PORT_NAT = (0, graphql_tag_1.gql) `
37
+ mutation UpdatePortNat(
38
+ $portNatId: String!
39
+ $translatedPort: String!
40
+ $updateBy: String
41
+ ) {
42
+ updatePortNat(
43
+ portNatId: $portNatId
44
+ translatedPort: $translatedPort
45
+ updateBy: $updateBy
46
+ )
47
+ }
48
48
  `;
49
- exports.REMOVE_PORT_NAT = (0, graphql_tag_1.gql) `
50
- mutation RemovePortNat($portNatId: String!, $updateBy: String) {
51
- removePortNat(portNatId: $portNatId, updateBy: $updateBy)
52
- }
49
+ exports.REMOVE_PORT_NAT = (0, graphql_tag_1.gql) `
50
+ mutation RemovePortNat($portNatId: String!, $updateBy: String) {
51
+ removePortNat(portNatId: $portNatId, updateBy: $updateBy)
52
+ }
53
53
  `;
54
- exports.POWER_ON = (0, graphql_tag_1.gql) `
55
- mutation PowerOn($computingId: String!, $actor: String!) {
56
- powerOn(computingId: $computingId, actor: $actor)
57
- }
54
+ exports.POWER_ON = (0, graphql_tag_1.gql) `
55
+ mutation PowerOn($computingId: String!, $actor: String!) {
56
+ powerOn(computingId: $computingId, actor: $actor)
57
+ }
58
58
  `;
59
- exports.POWER_OFF = (0, graphql_tag_1.gql) `
60
- mutation PowerOff($computingId: String!, $actor: String!) {
61
- powerOff(computingId: $computingId, actor: $actor)
62
- }
59
+ exports.POWER_OFF = (0, graphql_tag_1.gql) `
60
+ mutation PowerOff($computingId: String!, $actor: String!) {
61
+ powerOff(computingId: $computingId, actor: $actor)
62
+ }
63
63
  `;
64
- exports.CREATE_SNAP_SHOT = (0, graphql_tag_1.gql) `
65
- mutation CreateSnapshot(
66
- $computingId: String!
67
- $snapshotName: String!
68
- $createBy: String
69
- ) {
70
- createSnapshot(
71
- computingId: $computingId
72
- snapshotName: $snapshotName
73
- createBy: $createBy
74
- ) {
75
- id
76
- computingId
77
- snapshotId
78
- name
79
- status
80
- createdStamp
81
- endDate
82
- }
83
- }
64
+ exports.CREATE_SNAP_SHOT = (0, graphql_tag_1.gql) `
65
+ mutation CreateSnapshot(
66
+ $computingId: String!
67
+ $snapshotName: String!
68
+ $createBy: String
69
+ ) {
70
+ createSnapshot(
71
+ computingId: $computingId
72
+ snapshotName: $snapshotName
73
+ createBy: $createBy
74
+ ) {
75
+ id
76
+ computingId
77
+ snapshotId
78
+ name
79
+ status
80
+ createdStamp
81
+ endDate
82
+ }
83
+ }
84
84
  `;
85
- exports.ROLLBACK_SNAPSHOT = (0, graphql_tag_1.gql) `
86
- mutation RollbackSnapshot(
87
- $computingId: String!
88
- $snapshotId: String!
89
- $createBy: String
90
- ) {
91
- rollbackSnapshot(
92
- computingId: $computingId
93
- snapshotId: $snapshotId
94
- createBy: $createBy
95
- )
96
- }
85
+ exports.ROLLBACK_SNAPSHOT = (0, graphql_tag_1.gql) `
86
+ mutation RollbackSnapshot(
87
+ $computingId: String!
88
+ $snapshotId: String!
89
+ $createBy: String
90
+ ) {
91
+ rollbackSnapshot(
92
+ computingId: $computingId
93
+ snapshotId: $snapshotId
94
+ createBy: $createBy
95
+ )
96
+ }
97
97
  `;
98
- exports.DELETE_SNAPSHOT = (0, graphql_tag_1.gql) `
99
- mutation DeleteSnapshot(
100
- $computingId: String!
101
- $snapshotId: String!
102
- $updateBy: String
103
- ) {
104
- deleteSnapshot(
105
- computingId: $computingId
106
- snapshotId: $snapshotId
107
- updateBy: $updateBy
108
- )
109
- }
98
+ exports.DELETE_SNAPSHOT = (0, graphql_tag_1.gql) `
99
+ mutation DeleteSnapshot(
100
+ $computingId: String!
101
+ $snapshotId: String!
102
+ $updateBy: String
103
+ ) {
104
+ deleteSnapshot(
105
+ computingId: $computingId
106
+ snapshotId: $snapshotId
107
+ updateBy: $updateBy
108
+ )
109
+ }
110
110
  `;
111
- exports.CREATE_CLUSTER = (0, graphql_tag_1.gql) `
112
- mutation CreateCluster($ownerId: String!, $name: String!) {
113
- createCluster(ownerId: $ownerId, name: $name) {
114
- id
115
- name
116
- description
117
- }
118
- }
111
+ exports.CREATE_CLUSTER = (0, graphql_tag_1.gql) `
112
+ mutation CreateCluster($ownerId: String!, $name: String!) {
113
+ createCluster(ownerId: $ownerId, name: $name) {
114
+ id
115
+ name
116
+ description
117
+ }
118
+ }
119
119
  `;
120
- exports.ADD_COMPUTING_IN_CLUSTER = (0, graphql_tag_1.gql) `
121
- mutation AddComputingInCluster(
122
- $clusterId: String!
123
- $computingId: String!
124
- $userId: String!
125
- ) {
126
- addComputingInCluster(
127
- clusterId: $clusterId
128
- computingId: $computingId
129
- userId: $userId
130
- )
131
- }
120
+ exports.ADD_COMPUTING_IN_CLUSTER = (0, graphql_tag_1.gql) `
121
+ mutation AddComputingInCluster(
122
+ $clusterId: String!
123
+ $computingId: String!
124
+ $userId: String!
125
+ ) {
126
+ addComputingInCluster(
127
+ clusterId: $clusterId
128
+ computingId: $computingId
129
+ userId: $userId
130
+ )
131
+ }
132
132
  `;
133
- exports.REMOVE_COMPUTING_IN_CLUSTER = (0, graphql_tag_1.gql) `
134
- mutation RemoveComputingInCluster(
135
- $clusterId: String!
136
- $computingId: String!
137
- $userId: String!
138
- ) {
139
- removeComputingInCluster(
140
- clusterId: $clusterId
141
- computingId: $computingId
142
- userId: $userId
143
- )
144
- }
133
+ exports.REMOVE_COMPUTING_IN_CLUSTER = (0, graphql_tag_1.gql) `
134
+ mutation RemoveComputingInCluster(
135
+ $clusterId: String!
136
+ $computingId: String!
137
+ $userId: String!
138
+ ) {
139
+ removeComputingInCluster(
140
+ clusterId: $clusterId
141
+ computingId: $computingId
142
+ userId: $userId
143
+ )
144
+ }
145
145
  `;
146
- exports.STOP_USE_COMPUTING = (0, graphql_tag_1.gql) `
147
- mutation StopUseComputing($computingId: String!, $userId: String!) {
148
- stopUseComputing(computingId: $computingId, userId: $userId) {
149
- id
150
- name
151
- username
152
- password
153
- state
154
- os
155
- templateId
156
- ips
157
- province
158
- existPortNat
159
- ipConnect
160
- portConnect
161
- protocolConnect
162
- lastBackup
163
- backupSequence
164
- serviceId
165
- status
166
- statusDetail
167
- groupType
168
- colocationId
169
- ip
170
- region
171
- site
172
- rack
173
- location
174
- position
175
- deviceType
176
- url
177
- baremetalId
178
- platform
179
- }
180
- }
146
+ exports.STOP_USE_COMPUTING = (0, graphql_tag_1.gql) `
147
+ mutation StopUseComputing($computingId: String!, $userId: String!) {
148
+ stopUseComputing(computingId: $computingId, userId: $userId) {
149
+ id
150
+ name
151
+ username
152
+ password
153
+ state
154
+ os
155
+ templateId
156
+ ips
157
+ province
158
+ existPortNat
159
+ ipConnect
160
+ portConnect
161
+ protocolConnect
162
+ lastBackup
163
+ backupSequence
164
+ serviceId
165
+ status
166
+ statusDetail
167
+ groupType
168
+ colocationId
169
+ ip
170
+ region
171
+ site
172
+ rack
173
+ location
174
+ position
175
+ deviceType
176
+ url
177
+ baremetalId
178
+ platform
179
+ }
180
+ }
181
181
  `;
182
- exports.ADD_PORT_NAT = (0, graphql_tag_1.gql) `
183
- mutation AddPortNat(
184
- $edgeId: String!
185
- $serviceId: String
186
- $computingId: String
187
- $originalAddress: String!
188
- $originalPort: String!
189
- $translatedAddress: String!
190
- $translatedPort: String!
191
- $action: String!
192
- $protocol: String!
193
- $description: String
194
- $createBy: String
195
- ) {
196
- addPortNat(
197
- edgeId: $edgeId
198
- serviceId: $serviceId
199
- computingId: $computingId
200
- originalAddress: $originalAddress
201
- originalPort: $originalPort
202
- translatedAddress: $translatedAddress
203
- translatedPort: $translatedPort
204
- action: $action
205
- protocol: $protocol
206
- description: $description
207
- createBy: $createBy
208
- )
209
- }
182
+ exports.ADD_PORT_NAT = (0, graphql_tag_1.gql) `
183
+ mutation AddPortNat(
184
+ $edgeId: String!
185
+ $serviceId: String
186
+ $computingId: String
187
+ $originalAddress: String!
188
+ $originalPort: String!
189
+ $translatedAddress: String!
190
+ $translatedPort: String!
191
+ $action: String!
192
+ $protocol: String!
193
+ $description: String
194
+ $createBy: String
195
+ ) {
196
+ addPortNat(
197
+ edgeId: $edgeId
198
+ serviceId: $serviceId
199
+ computingId: $computingId
200
+ originalAddress: $originalAddress
201
+ originalPort: $originalPort
202
+ translatedAddress: $translatedAddress
203
+ translatedPort: $translatedPort
204
+ action: $action
205
+ protocol: $protocol
206
+ description: $description
207
+ createBy: $createBy
208
+ )
209
+ }
210
210
  `;
211
- exports.UPDATE_DESCRIPTION_COMPUTING = (0, graphql_tag_1.gql) `
212
- mutation UpdateDescriptionComputing(
213
- $computingId: String!
214
- $description: String!
215
- $updateBy: String!
216
- ) {
217
- updateDescriptionComputing(
218
- computingId: $computingId
219
- description: $description
220
- updateBy: $updateBy
221
- )
222
- }
211
+ exports.UPDATE_DESCRIPTION_COMPUTING = (0, graphql_tag_1.gql) `
212
+ mutation UpdateDescriptionComputing(
213
+ $computingId: String!
214
+ $description: String!
215
+ $updateBy: String!
216
+ ) {
217
+ updateDescriptionComputing(
218
+ computingId: $computingId
219
+ description: $description
220
+ updateBy: $updateBy
221
+ )
222
+ }
223
223
  `;
224
- exports.CREATE_COMPUTING_FOR_DC = (0, graphql_tag_1.gql) `
225
- mutation CreateComputingForDC(
226
- $name: String!
227
- $username: String!
228
- $password: String!
229
- $description: String!
230
- $templateId: String!
231
- $interfaces: [InterfacesInput]!
232
- $cpu: CpuInput!
233
- $ram: RamInput!
234
- $resourcePoolId: String!
235
- $disks: [DiskInput!]!
236
- $createBy: String!
237
- ) {
238
- createComputingForDC(
239
- createComputingInputForDC: {
240
- name: $name
241
- username: $username
242
- password: $password
243
- description: $description
244
- templateId: $templateId
245
- interfaces: $interfaces
246
- cpu: $cpu
247
- ram: $ram
248
- resourcePoolId: $resourcePoolId
249
- disks: $disks
250
- }
251
- createBy: $createBy
252
- ) {
253
- computingId
254
- message
255
- }
256
- }
224
+ exports.CREATE_COMPUTING_FOR_DC = (0, graphql_tag_1.gql) `
225
+ mutation CreateComputingForDC(
226
+ $name: String!
227
+ $username: String!
228
+ $password: String!
229
+ $description: String!
230
+ $templateId: String!
231
+ $interfaces: [InterfacesInput]!
232
+ $cpu: CpuInput!
233
+ $ram: RamInput!
234
+ $resourcePoolId: String!
235
+ $disks: [DiskInput!]!
236
+ $createBy: String!
237
+ ) {
238
+ createComputingForDC(
239
+ createComputingInputForDC: {
240
+ name: $name
241
+ username: $username
242
+ password: $password
243
+ description: $description
244
+ templateId: $templateId
245
+ interfaces: $interfaces
246
+ cpu: $cpu
247
+ ram: $ram
248
+ resourcePoolId: $resourcePoolId
249
+ disks: $disks
250
+ }
251
+ createBy: $createBy
252
+ ) {
253
+ computingId
254
+ message
255
+ }
256
+ }
257
257
  `;
258
- exports.UPDATE_NAME_COMPUTING = (0, graphql_tag_1.gql) `
259
- mutation UpdateNameComputing(
260
- $computingId: String!
261
- $name: String!
262
- $updateBy: String
263
- ) {
264
- updateNameComputing(
265
- computingId: $computingId
266
- name: $name
267
- updateBy: $updateBy
268
- )
269
- }
258
+ exports.UPDATE_NAME_COMPUTING = (0, graphql_tag_1.gql) `
259
+ mutation UpdateNameComputing(
260
+ $computingId: String!
261
+ $name: String!
262
+ $updateBy: String
263
+ ) {
264
+ updateNameComputing(
265
+ computingId: $computingId
266
+ name: $name
267
+ updateBy: $updateBy
268
+ )
269
+ }
270
270
  `;
271
271
  const COMPUTING_WAITING_REVOKE = (fields = []) => {
272
272
  const fieldStr = fields.join("\n ");
273
273
  const hasFields = fields.length > 0;
274
- return (0, graphql_tag_1.gql) `
275
- mutation ComputingWaitingRevoke($computingId: String! $userId: String!) {
276
- computingWaitingRevoke(computingId: $computingId, userId: $userId)
277
- ${hasFields ? `{ ${fieldStr} }` : ""}
278
- }
274
+ return (0, graphql_tag_1.gql) `
275
+ mutation ComputingWaitingRevoke($computingId: String! $userId: String!) {
276
+ computingWaitingRevoke(computingId: $computingId, userId: $userId)
277
+ ${hasFields ? `{ ${fieldStr} }` : ""}
278
+ }
279
279
  `;
280
280
  };
281
281
  exports.COMPUTING_WAITING_REVOKE = COMPUTING_WAITING_REVOKE;
282
282
  const RESTORE_COMPUTING_WAITING_REVOKE = (fields = []) => {
283
283
  const fieldStr = fields.join("\n ");
284
284
  const hasFields = fields.length > 0;
285
- return (0, graphql_tag_1.gql) `
286
- mutation RestoreComputingWaitingRevoke($computingId: String! $userId: String!) {
287
- restoreComputingWaitingRevoke(computingId: $computingId, userId: $userId)
288
- ${hasFields ? `{ ${fieldStr} }` : ""}
289
- }
285
+ return (0, graphql_tag_1.gql) `
286
+ mutation RestoreComputingWaitingRevoke($computingId: String! $userId: String!) {
287
+ restoreComputingWaitingRevoke(computingId: $computingId, userId: $userId)
288
+ ${hasFields ? `{ ${fieldStr} }` : ""}
289
+ }
290
290
  `;
291
291
  };
292
292
  exports.RESTORE_COMPUTING_WAITING_REVOKE = RESTORE_COMPUTING_WAITING_REVOKE;
293
293
  const DELETE_COMPUTING = (fields = []) => {
294
294
  const fieldStr = fields.join("\n ");
295
295
  const hasFields = fields.length > 0;
296
- return (0, graphql_tag_1.gql) `
297
- mutation DeleteComputing($computingId: String! $userId: String!) {
298
- deleteComputing(computingId: $computingId, userId: $userId) ${hasFields ? `{ ${fieldStr} }` : ""}
299
- }
296
+ return (0, graphql_tag_1.gql) `
297
+ mutation DeleteComputing($computingId: String! $userId: String!) {
298
+ deleteComputing(computingId: $computingId, userId: $userId) ${hasFields ? `{ ${fieldStr} }` : ""}
299
+ }
300
300
  `;
301
301
  };
302
302
  exports.DELETE_COMPUTING = DELETE_COMPUTING;
303
- exports.UPDATE_CPU = (0, graphql_tag_1.gql) `
304
- mutation UpdateCPU(
305
- $computingId: String!
306
- $socket: Int!
307
- $corePerSocket: Int!
308
- $updateBy: String!
309
- ) {
310
- updateCPU(
311
- computingId: $computingId
312
- socket: $socket
313
- corePerSocket: $corePerSocket
314
- updateBy: $updateBy
315
- )
316
- }
303
+ exports.UPDATE_CPU = (0, graphql_tag_1.gql) `
304
+ mutation UpdateCPU(
305
+ $computingId: String!
306
+ $socket: Int!
307
+ $corePerSocket: Int!
308
+ $updateBy: String!
309
+ ) {
310
+ updateCPU(
311
+ computingId: $computingId
312
+ socket: $socket
313
+ corePerSocket: $corePerSocket
314
+ updateBy: $updateBy
315
+ )
316
+ }
317
317
  `;
318
- exports.UPDATE_RAM = (0, graphql_tag_1.gql) `
319
- mutation UpdateRAM(
320
- $computingId: String!
321
- $size: Int!
322
- $unit: String!
323
- $updateBy: String!
324
- ) {
325
- updateRAM(
326
- computingId: $computingId
327
- size: $size
328
- unit: $unit
329
- updateBy: $updateBy
330
- )
331
- }
318
+ exports.UPDATE_RAM = (0, graphql_tag_1.gql) `
319
+ mutation UpdateRAM(
320
+ $computingId: String!
321
+ $size: Int!
322
+ $unit: String!
323
+ $updateBy: String!
324
+ ) {
325
+ updateRAM(
326
+ computingId: $computingId
327
+ size: $size
328
+ unit: $unit
329
+ updateBy: $updateBy
330
+ )
331
+ }
332
332
  `;
333
- exports.CREATE_COMPUTING_FOR_EC = (0, graphql_tag_1.gql) `
334
- mutation CreateComputingForEC(
335
- $createComputingInputForEC: CreateComputingInputForEC!
336
- $createBy: String!
337
- ) {
338
- createComputingForEC(
339
- createComputingInputForEC: $createComputingInputForEC
340
- createBy: $createBy
341
- ) {
342
- computingId
343
- message
344
- }
345
- }
333
+ exports.CREATE_COMPUTING_FOR_EC = (0, graphql_tag_1.gql) `
334
+ mutation CreateComputingForEC(
335
+ $createComputingInputForEC: CreateComputingInputForEC!
336
+ $createBy: String!
337
+ ) {
338
+ createComputingForEC(
339
+ createComputingInputForEC: $createComputingInputForEC
340
+ createBy: $createBy
341
+ ) {
342
+ computingId
343
+ message
344
+ }
345
+ }
346
346
  `;