@longvansoftware/service-js-client 1.15.7 → 1.15.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) 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/campaign/mutations.d.ts +1 -0
  7. package/dist/src/graphql/campaign/mutations.js +34 -0
  8. package/dist/src/graphql/campaign/queries.d.ts +9 -0
  9. package/dist/src/graphql/campaign/queries.js +412 -0
  10. package/dist/src/graphql/cashbook/queries.d.ts +2 -0
  11. package/dist/src/graphql/cashbook/queries.js +99 -0
  12. package/dist/src/graphql/cloud/mutations.d.ts +4 -0
  13. package/dist/src/graphql/cloud/mutations.js +287 -241
  14. package/dist/src/graphql/cloud/queries.js +341 -341
  15. package/dist/src/graphql/computing/mutations.js +303 -303
  16. package/dist/src/graphql/computing/queries.js +548 -548
  17. package/dist/src/graphql/crm/mutations.d.ts +1 -0
  18. package/dist/src/graphql/crm/mutations.js +392 -375
  19. package/dist/src/graphql/crm/queries.d.ts +1 -0
  20. package/dist/src/graphql/crm/queries.js +359 -332
  21. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  22. package/dist/src/graphql/crm_camping/queries.js +198 -198
  23. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  24. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  25. package/dist/src/graphql/payment/mutations.js +45 -45
  26. package/dist/src/graphql/payment/queries.js +60 -60
  27. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  28. package/dist/src/graphql/paymentLV/queries.js +75 -75
  29. package/dist/src/graphql/paymentV2/mutations.d.ts +3 -0
  30. package/dist/src/graphql/paymentV2/mutations.js +54 -0
  31. package/dist/src/graphql/paymentV2/queries.d.ts +6 -0
  32. package/dist/src/graphql/paymentV2/queries.js +186 -0
  33. package/dist/src/graphql/product/queries.js +891 -891
  34. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  35. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  36. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  37. package/dist/src/graphql/resource_permission/queries.js +13 -13
  38. package/dist/src/graphql/service/mutations.js +228 -228
  39. package/dist/src/graphql/service/queries.js +128 -128
  40. package/dist/src/graphql/store/mutations.d.ts +1 -0
  41. package/dist/src/graphql/store/mutations.js +29 -0
  42. package/dist/src/graphql/store/queries.d.ts +1 -0
  43. package/dist/src/graphql/store/queries.js +29 -0
  44. package/dist/src/graphql/user/mutations.js +214 -214
  45. package/dist/src/graphql/user/queries.js +312 -312
  46. package/dist/src/lib/accounting/index.d.ts +5 -0
  47. package/dist/src/lib/accounting/index.js +32 -0
  48. package/dist/src/lib/campaign/index.d.ts +20 -0
  49. package/dist/src/lib/campaign/index.js +213 -0
  50. package/dist/src/lib/cashbook/index.d.ts +6 -0
  51. package/dist/src/lib/cashbook/index.js +56 -0
  52. package/dist/src/lib/cloud/index.d.ts +4 -0
  53. package/dist/src/lib/cloud/index.js +69 -0
  54. package/dist/src/lib/comhub/index.d.ts +6 -0
  55. package/dist/src/lib/comhub/index.js +50 -0
  56. package/dist/src/lib/crm/index.d.ts +2 -0
  57. package/dist/src/lib/crm/index.js +40 -0
  58. package/dist/src/lib/deepLinkVietQr/index.d.ts +6 -0
  59. package/dist/src/lib/deepLinkVietQr/index.js +45 -0
  60. package/dist/src/lib/getImage/index.d.ts +4 -0
  61. package/dist/src/lib/getImage/index.js +10 -0
  62. package/dist/src/lib/image/index.d.ts +7 -0
  63. package/dist/src/lib/image/index.js +49 -0
  64. package/dist/src/lib/omnigateway/index.d.ts +7 -0
  65. package/dist/src/lib/omnigateway/index.js +58 -0
  66. package/dist/src/lib/paymentV2/index.d.ts +13 -0
  67. package/dist/src/lib/paymentV2/index.js +163 -0
  68. package/dist/src/lib/portal/index.d.ts +21 -0
  69. package/dist/src/lib/portal/index.js +225 -0
  70. package/dist/src/lib/serviceSDK.js +12 -12
  71. package/dist/src/lib/store/index.d.ts +30 -0
  72. package/dist/src/lib/store/index.js +74 -0
  73. package/dist/src/lib/token/index.d.ts +5 -0
  74. package/dist/src/lib/token/index.js +32 -0
  75. package/dist/src/lib/upload/index.d.ts +5 -0
  76. package/dist/src/lib/upload/index.js +35 -0
  77. package/dist/src/lib/warehouseV2/index.d.ts +13 -0
  78. package/dist/src/lib/warehouseV2/index.js +54 -0
  79. package/dist/src/lib/zca/index.d.ts +12 -0
  80. package/dist/src/lib/zca/index.js +41 -0
  81. package/dist/src/types/campaign.d.ts +14 -0
  82. package/dist/src/types/campaign.js +2 -0
  83. package/dist/src/types/invoice.d.ts +13 -0
  84. package/dist/src/types/invoice.js +2 -0
  85. package/dist/src/types/store.d.ts +158 -0
  86. package/dist/src/types/store.js +3 -0
  87. package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
  88. package/dist/src/utils/validatePhoneNumber.js +20 -0
  89. package/package.json +44 -43
  90. package/dist/src/lib/service.d.ts +0 -14
  91. package/dist/src/lib/service.js +0 -101
  92. package/dist/src/utils/build-field-string.d.ts +0 -1
  93. package/dist/src/utils/build-field-string.js +0 -16
@@ -2,589 +2,589 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_COMPUTINGS_DYNAMIC = exports.GET_STOREGE_MAPPING_FOR_DC = exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
6
- query ComputingDetail($computingId: String!) {
7
- computingDetail(computingId: $computingId) {
8
- id
9
- name
10
- username
11
- password
12
- state
13
- os
14
- templateId
15
- ips
16
- province
17
- existPortNat
18
- ipConnect
19
- portConnect
20
- protocolConnect
21
- lastBackup
22
- backupSequence
23
- serviceId
24
- status
25
- statusDetail
26
- groupType
27
- colocationId
28
- ip
29
- region
30
- site
31
- rack
32
- location
33
- position
34
- deviceType
35
- url
36
- baremetalId
37
- platform
38
- description
39
- cpu
40
- cpuUnit
41
- ram
42
- ramUnit
43
- disks {
44
- index
45
- storageId
46
- size
47
- used
48
- unit
49
- }
50
- }
51
- }
5
+ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
6
+ query ComputingDetail($computingId: String!) {
7
+ computingDetail(computingId: $computingId) {
8
+ id
9
+ name
10
+ username
11
+ password
12
+ state
13
+ os
14
+ templateId
15
+ ips
16
+ province
17
+ existPortNat
18
+ ipConnect
19
+ portConnect
20
+ protocolConnect
21
+ lastBackup
22
+ backupSequence
23
+ serviceId
24
+ status
25
+ statusDetail
26
+ groupType
27
+ colocationId
28
+ ip
29
+ region
30
+ site
31
+ rack
32
+ location
33
+ position
34
+ deviceType
35
+ url
36
+ baremetalId
37
+ platform
38
+ description
39
+ cpu
40
+ cpuUnit
41
+ ram
42
+ ramUnit
43
+ disks {
44
+ index
45
+ storageId
46
+ size
47
+ used
48
+ unit
49
+ }
50
+ }
51
+ }
52
52
  `;
53
- exports.PORTNATS = (0, graphql_tag_1.gql) `
54
- query PortNats($computingId: String!) {
55
- portNats(computingId: $computingId) {
56
- id
57
- action
58
- protocol
59
- originalAddress
60
- originalPort
61
- translatedAddress
62
- translatedPort
63
- description
64
- status
65
- domain
66
- computingId
67
- }
68
- }
53
+ exports.PORTNATS = (0, graphql_tag_1.gql) `
54
+ query PortNats($computingId: String!) {
55
+ portNats(computingId: $computingId) {
56
+ id
57
+ action
58
+ protocol
59
+ originalAddress
60
+ originalPort
61
+ translatedAddress
62
+ translatedPort
63
+ description
64
+ status
65
+ domain
66
+ computingId
67
+ }
68
+ }
69
69
  `;
70
- exports.SNAP_SHOTS = (0, graphql_tag_1.gql) `
71
- query Snapshots($computingId: String!) {
72
- snapshots(computingId: $computingId) {
73
- id
74
- computingId
75
- snapshotId
76
- name
77
- status
78
- createdStamp
79
- endDate
80
- }
81
- }
70
+ exports.SNAP_SHOTS = (0, graphql_tag_1.gql) `
71
+ query Snapshots($computingId: String!) {
72
+ snapshots(computingId: $computingId) {
73
+ id
74
+ computingId
75
+ snapshotId
76
+ name
77
+ status
78
+ createdStamp
79
+ endDate
80
+ }
81
+ }
82
82
  `;
83
- exports.RAM_USAGE_START_TIME = (0, graphql_tag_1.gql) `
84
- query RamUsageStartTime($computingId: String!, $startTime: String!) {
85
- ramUsageStartTime(computingId: $computingId, startTime: $startTime) {
86
- time
87
- value
88
- }
89
- }
83
+ exports.RAM_USAGE_START_TIME = (0, graphql_tag_1.gql) `
84
+ query RamUsageStartTime($computingId: String!, $startTime: String!) {
85
+ ramUsageStartTime(computingId: $computingId, startTime: $startTime) {
86
+ time
87
+ value
88
+ }
89
+ }
90
90
  `;
91
- exports.CPU_USAGE_START_TIME = (0, graphql_tag_1.gql) `
92
- query CpuUsageStartTime(
93
- $computingId: String!
94
- $startTime: String!
95
- $type: String
96
- ) {
97
- cpuUsageStartTime(
98
- computingId: $computingId
99
- startTime: $startTime
100
- type: $type
101
- ) {
102
- time
103
- value
104
- }
105
- }
91
+ exports.CPU_USAGE_START_TIME = (0, graphql_tag_1.gql) `
92
+ query CpuUsageStartTime(
93
+ $computingId: String!
94
+ $startTime: String!
95
+ $type: String
96
+ ) {
97
+ cpuUsageStartTime(
98
+ computingId: $computingId
99
+ startTime: $startTime
100
+ type: $type
101
+ ) {
102
+ time
103
+ value
104
+ }
105
+ }
106
106
  `;
107
- exports.NETWORK_USAGE_START_TIME = (0, graphql_tag_1.gql) `
108
- query NetworkUsageStartTime(
109
- $computingId: String!
110
- $type: String!
111
- $startTime: String!
112
- ) {
113
- networkUsageStartTime(
114
- computingId: $computingId
115
- type: $type
116
- startTime: $startTime
117
- ) {
118
- time
119
- value
120
- }
121
- }
107
+ exports.NETWORK_USAGE_START_TIME = (0, graphql_tag_1.gql) `
108
+ query NetworkUsageStartTime(
109
+ $computingId: String!
110
+ $type: String!
111
+ $startTime: String!
112
+ ) {
113
+ networkUsageStartTime(
114
+ computingId: $computingId
115
+ type: $type
116
+ startTime: $startTime
117
+ ) {
118
+ time
119
+ value
120
+ }
121
+ }
122
122
  `;
123
- exports.DISK_USAGE_START_TIME = (0, graphql_tag_1.gql) `
124
- query DiskUsageStartTime(
125
- $computingId: String!
126
- $type: String!
127
- $startTime: String!
128
- ) {
129
- diskUsageStartTime(
130
- computingId: $computingId
131
- type: $type
132
- startTime: $startTime
133
- ) {
134
- time
135
- value
136
- }
137
- }
123
+ exports.DISK_USAGE_START_TIME = (0, graphql_tag_1.gql) `
124
+ query DiskUsageStartTime(
125
+ $computingId: String!
126
+ $type: String!
127
+ $startTime: String!
128
+ ) {
129
+ diskUsageStartTime(
130
+ computingId: $computingId
131
+ type: $type
132
+ startTime: $startTime
133
+ ) {
134
+ time
135
+ value
136
+ }
137
+ }
138
138
  `;
139
- exports.RAM_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
140
- query RamUsageDateRange(
141
- $computingId: String!
142
- $fromDate: DateCustom!
143
- $toDate: DateCustom!
144
- ) {
145
- ramUsageDateRange(
146
- computingId: $computingId
147
- fromDate: $fromDate
148
- toDate: $toDate
149
- ) {
150
- time
151
- value
152
- }
153
- }
139
+ exports.RAM_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
140
+ query RamUsageDateRange(
141
+ $computingId: String!
142
+ $fromDate: DateCustom!
143
+ $toDate: DateCustom!
144
+ ) {
145
+ ramUsageDateRange(
146
+ computingId: $computingId
147
+ fromDate: $fromDate
148
+ toDate: $toDate
149
+ ) {
150
+ time
151
+ value
152
+ }
153
+ }
154
154
  `;
155
- exports.CPU_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
156
- query CpuUsageDateRange(
157
- $computingId: String!
158
- $fromDate: DateCustom!
159
- $toDate: DateCustom!
160
- $type: String
161
- ) {
162
- cpuUsageDateRange(
163
- computingId: $computingId
164
- type: $type
165
- fromDate: $fromDate
166
- toDate: $toDate
167
- ) {
168
- time
169
- value
170
- }
171
- }
155
+ exports.CPU_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
156
+ query CpuUsageDateRange(
157
+ $computingId: String!
158
+ $fromDate: DateCustom!
159
+ $toDate: DateCustom!
160
+ $type: String
161
+ ) {
162
+ cpuUsageDateRange(
163
+ computingId: $computingId
164
+ type: $type
165
+ fromDate: $fromDate
166
+ toDate: $toDate
167
+ ) {
168
+ time
169
+ value
170
+ }
171
+ }
172
172
  `;
173
- exports.NETWORK_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
174
- query NetworkUsageDateRange(
175
- $computingId: String!
176
- $type: String!
177
- $fromDate: DateCustom!
178
- $toDate: DateCustom!
179
- ) {
180
- networkUsageDateRange(
181
- computingId: $computingId
182
- type: $type
183
- fromDate: $fromDate
184
- toDate: $toDate
185
- ) {
186
- time
187
- value
188
- }
189
- }
173
+ exports.NETWORK_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
174
+ query NetworkUsageDateRange(
175
+ $computingId: String!
176
+ $type: String!
177
+ $fromDate: DateCustom!
178
+ $toDate: DateCustom!
179
+ ) {
180
+ networkUsageDateRange(
181
+ computingId: $computingId
182
+ type: $type
183
+ fromDate: $fromDate
184
+ toDate: $toDate
185
+ ) {
186
+ time
187
+ value
188
+ }
189
+ }
190
190
  `;
191
- exports.DISK_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
192
- query DiskUsageDateRange(
193
- $computingId: String!
194
- $type: String!
195
- $fromDate: DateCustom!
196
- $toDate: DateCustom!
197
- ) {
198
- diskUsageDateRange(
199
- computingId: $computingId
200
- type: $type
201
- fromDate: $fromDate
202
- toDate: $toDate
203
- ) {
204
- time
205
- value
206
- }
207
- }
191
+ exports.DISK_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
192
+ query DiskUsageDateRange(
193
+ $computingId: String!
194
+ $type: String!
195
+ $fromDate: DateCustom!
196
+ $toDate: DateCustom!
197
+ ) {
198
+ diskUsageDateRange(
199
+ computingId: $computingId
200
+ type: $type
201
+ fromDate: $fromDate
202
+ toDate: $toDate
203
+ ) {
204
+ time
205
+ value
206
+ }
207
+ }
208
208
  `;
209
- exports.BACKUP_POINT = (0, graphql_tag_1.gql) `
210
- query BackupPoint($computingId: String!) {
211
- backupPoint(computingId: $computingId) {
212
- partnerId
213
- description
214
- format
215
- virtualId
216
- backupDate
217
- jobBackupId
218
- backupServerId
219
- vmId
220
- }
221
- }
209
+ exports.BACKUP_POINT = (0, graphql_tag_1.gql) `
210
+ query BackupPoint($computingId: String!) {
211
+ backupPoint(computingId: $computingId) {
212
+ partnerId
213
+ description
214
+ format
215
+ virtualId
216
+ backupDate
217
+ jobBackupId
218
+ backupServerId
219
+ vmId
220
+ }
221
+ }
222
222
  `;
223
- exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
224
- query GetComputings($userId: String!) {
225
- getComputings(userId: $userId) {
226
- id
227
- name
228
- username
229
- password
230
- state
231
- os
232
- templateId
233
- ips
234
- province
235
- existPortNat
236
- ipConnect
237
- portConnect
238
- protocolConnect
239
- lastBackup
240
- backupSequence
241
- serviceId
242
- status
243
- statusDetail
244
- groupType
245
- colocationId
246
- ip
247
- region
248
- site
249
- rack
250
- location
251
- position
252
- deviceType
253
- url
254
- baremetalId
255
- platform
256
- description
257
- cpu
258
- cpuUnit
259
- ram
260
- ramUnit
261
- disks {
262
- index
263
- storageId
264
- size
265
- used
266
- unit
267
- }
268
- }
269
- }
223
+ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
224
+ query GetComputings($userId: String!) {
225
+ getComputings(userId: $userId) {
226
+ id
227
+ name
228
+ username
229
+ password
230
+ state
231
+ os
232
+ templateId
233
+ ips
234
+ province
235
+ existPortNat
236
+ ipConnect
237
+ portConnect
238
+ protocolConnect
239
+ lastBackup
240
+ backupSequence
241
+ serviceId
242
+ status
243
+ statusDetail
244
+ groupType
245
+ colocationId
246
+ ip
247
+ region
248
+ site
249
+ rack
250
+ location
251
+ position
252
+ deviceType
253
+ url
254
+ baremetalId
255
+ platform
256
+ description
257
+ cpu
258
+ cpuUnit
259
+ ram
260
+ ramUnit
261
+ disks {
262
+ index
263
+ storageId
264
+ size
265
+ used
266
+ unit
267
+ }
268
+ }
269
+ }
270
270
  `;
271
- exports.GET_LAB_INSTANCE = (0, graphql_tag_1.gql) `
272
- query GetLabInstance($articleId: String!, $labId: String!, $userId: String!) {
273
- getLabInstance(articleId: $articleId, labId: $labId, userId: $userId) {
274
- id
275
- name
276
- username
277
- password
278
- state
279
- os
280
- templateId
281
- ips
282
- province
283
- existPortNat
284
- ipConnect
285
- portConnect
286
- protocolConnect
287
- lastBackup
288
- backupSequence
289
- serviceId
290
- status
291
- statusDetail
292
- groupType
293
- colocationId
294
- ip
295
- region
296
- site
297
- rack
298
- location
299
- position
300
- deviceType
301
- url
302
- baremetalId
303
- platform
304
- }
305
- }
271
+ exports.GET_LAB_INSTANCE = (0, graphql_tag_1.gql) `
272
+ query GetLabInstance($articleId: String!, $labId: String!, $userId: String!) {
273
+ getLabInstance(articleId: $articleId, labId: $labId, userId: $userId) {
274
+ id
275
+ name
276
+ username
277
+ password
278
+ state
279
+ os
280
+ templateId
281
+ ips
282
+ province
283
+ existPortNat
284
+ ipConnect
285
+ portConnect
286
+ protocolConnect
287
+ lastBackup
288
+ backupSequence
289
+ serviceId
290
+ status
291
+ statusDetail
292
+ groupType
293
+ colocationId
294
+ ip
295
+ region
296
+ site
297
+ rack
298
+ location
299
+ position
300
+ deviceType
301
+ url
302
+ baremetalId
303
+ platform
304
+ }
305
+ }
306
306
  `;
307
- exports.GET_CLUSTERS = (0, graphql_tag_1.gql) `
308
- query getClusters($ownerId: String!) {
309
- getClusters(ownerId: $ownerId) {
310
- id
311
- name
312
- description
313
- }
314
- }
307
+ exports.GET_CLUSTERS = (0, graphql_tag_1.gql) `
308
+ query getClusters($ownerId: String!) {
309
+ getClusters(ownerId: $ownerId) {
310
+ id
311
+ name
312
+ description
313
+ }
314
+ }
315
315
  `;
316
- exports.GET_CLUSTER = (0, graphql_tag_1.gql) `
317
- query getCluster($clusterId: String!) {
318
- getCluster(clusterId: $clusterId) {
319
- id
320
- name
321
- description
322
- }
323
- }
316
+ exports.GET_CLUSTER = (0, graphql_tag_1.gql) `
317
+ query getCluster($clusterId: String!) {
318
+ getCluster(clusterId: $clusterId) {
319
+ id
320
+ name
321
+ description
322
+ }
323
+ }
324
324
  `;
325
- exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
326
- query GetComputingByCluster($clusterId: String!) {
327
- getComputingByCluster(clusterId: $clusterId) {
328
- id
329
- name
330
- username
331
- password
332
- state
333
- os
334
- templateId
335
- ips
336
- province
337
- existPortNat
338
- ipConnect
339
- portConnect
340
- protocolConnect
341
- lastBackup
342
- backupSequence
343
- serviceId
344
- status
345
- statusDetail
346
- groupType
347
- colocationId
348
- ip
349
- region
350
- site
351
- rack
352
- location
353
- position
354
- deviceType
355
- url
356
- baremetalId
357
- platform
358
- description
359
- cpu
360
- cpuUnit
361
- ram
362
- ramUnit
363
- disks {
364
- index
365
- storageId
366
- size
367
- used
368
- unit
369
- }
370
- }
371
- }
325
+ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
326
+ query GetComputingByCluster($clusterId: String!) {
327
+ getComputingByCluster(clusterId: $clusterId) {
328
+ id
329
+ name
330
+ username
331
+ password
332
+ state
333
+ os
334
+ templateId
335
+ ips
336
+ province
337
+ existPortNat
338
+ ipConnect
339
+ portConnect
340
+ protocolConnect
341
+ lastBackup
342
+ backupSequence
343
+ serviceId
344
+ status
345
+ statusDetail
346
+ groupType
347
+ colocationId
348
+ ip
349
+ region
350
+ site
351
+ rack
352
+ location
353
+ position
354
+ deviceType
355
+ url
356
+ baremetalId
357
+ platform
358
+ description
359
+ cpu
360
+ cpuUnit
361
+ ram
362
+ ramUnit
363
+ disks {
364
+ index
365
+ storageId
366
+ size
367
+ used
368
+ unit
369
+ }
370
+ }
371
+ }
372
372
  `;
373
- exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
374
- query GetComputingByService($serviceId: String!) {
375
- getComputingByService(serviceId: $serviceId) {
376
- id
377
- name
378
- username
379
- password
380
- state
381
- os
382
- templateId
383
- ips
384
- province
385
- existPortNat
386
- ipConnect
387
- portConnect
388
- protocolConnect
389
- lastBackup
390
- backupSequence
391
- serviceId
392
- status
393
- statusDetail
394
- groupType
395
- colocationId
396
- ip
397
- region
398
- site
399
- rack
400
- location
401
- position
402
- deviceType
403
- url
404
- baremetalId
405
- platform
406
- description
407
- cpu
408
- cpuUnit
409
- ram
410
- ramUnit
411
- disks {
412
- index
413
- storageId
414
- size
415
- used
416
- unit
417
- }
418
- }
419
- }
373
+ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
374
+ query GetComputingByService($serviceId: String!) {
375
+ getComputingByService(serviceId: $serviceId) {
376
+ id
377
+ name
378
+ username
379
+ password
380
+ state
381
+ os
382
+ templateId
383
+ ips
384
+ province
385
+ existPortNat
386
+ ipConnect
387
+ portConnect
388
+ protocolConnect
389
+ lastBackup
390
+ backupSequence
391
+ serviceId
392
+ status
393
+ statusDetail
394
+ groupType
395
+ colocationId
396
+ ip
397
+ region
398
+ site
399
+ rack
400
+ location
401
+ position
402
+ deviceType
403
+ url
404
+ baremetalId
405
+ platform
406
+ description
407
+ cpu
408
+ cpuUnit
409
+ ram
410
+ ramUnit
411
+ disks {
412
+ index
413
+ storageId
414
+ size
415
+ used
416
+ unit
417
+ }
418
+ }
419
+ }
420
420
  `;
421
- exports.GET_EDGES = (0, graphql_tag_1.gql) `
422
- query getEdges($serviceId: String!) {
423
- getEdges(serviceId: $serviceId) {
424
- id
425
- name
426
- status
427
- partnerId
428
- createdStamp
429
- description
430
- }
431
- }
421
+ exports.GET_EDGES = (0, graphql_tag_1.gql) `
422
+ query getEdges($serviceId: String!) {
423
+ getEdges(serviceId: $serviceId) {
424
+ id
425
+ name
426
+ status
427
+ partnerId
428
+ createdStamp
429
+ description
430
+ }
431
+ }
432
432
  `;
433
- exports.GET_PORT_NATS_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
434
- query getPortNatsByServiceId($serviceId: String!) {
435
- getPortNatsByServiceId(serviceId: $serviceId) {
436
- id
437
- action
438
- protocol
439
- originalAddress
440
- originalPort
441
- translatedAddress
442
- translatedPort
443
- description
444
- status
445
- domain
446
- computingId
447
- }
448
- }
433
+ exports.GET_PORT_NATS_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
434
+ query getPortNatsByServiceId($serviceId: String!) {
435
+ getPortNatsByServiceId(serviceId: $serviceId) {
436
+ id
437
+ action
438
+ protocol
439
+ originalAddress
440
+ originalPort
441
+ translatedAddress
442
+ translatedPort
443
+ description
444
+ status
445
+ domain
446
+ computingId
447
+ }
448
+ }
449
449
  `;
450
- exports.GET_TEMPLATE = (0, graphql_tag_1.gql) `
451
- query {
452
- getTemplates {
453
- id
454
- name
455
- osType
456
- username
457
- resourceRecommend {
458
- cpu {
459
- size
460
- used
461
- unit
462
- }
463
- ram {
464
- size
465
- used
466
- unit
467
- }
468
- disk {
469
- index
470
- storageId
471
- size
472
- used
473
- unit
474
- }
475
- }
476
- resourceMinimum {
477
- cpu {
478
- size
479
- used
480
- unit
481
- }
482
- ram {
483
- size
484
- used
485
- unit
486
- }
487
- disk {
488
- index
489
- storageId
490
- size
491
- used
492
- unit
493
- }
494
- }
495
- }
496
- }
450
+ exports.GET_TEMPLATE = (0, graphql_tag_1.gql) `
451
+ query {
452
+ getTemplates {
453
+ id
454
+ name
455
+ osType
456
+ username
457
+ resourceRecommend {
458
+ cpu {
459
+ size
460
+ used
461
+ unit
462
+ }
463
+ ram {
464
+ size
465
+ used
466
+ unit
467
+ }
468
+ disk {
469
+ index
470
+ storageId
471
+ size
472
+ used
473
+ unit
474
+ }
475
+ }
476
+ resourceMinimum {
477
+ cpu {
478
+ size
479
+ used
480
+ unit
481
+ }
482
+ ram {
483
+ size
484
+ used
485
+ unit
486
+ }
487
+ disk {
488
+ index
489
+ storageId
490
+ size
491
+ used
492
+ unit
493
+ }
494
+ }
495
+ }
496
+ }
497
497
  `;
498
- exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = (0, graphql_tag_1.gql) `
499
- query GetAvailableSubnetIPsByResourcePoolId($resourcePoolId: String!) {
500
- getAvailableSubnetIPsByResourcePoolId(resourcePoolId: $resourcePoolId) {
501
- parentSubnetId
502
- address
503
- description
504
- status
505
- rangeIpType
506
- createTime
507
- updateTime
508
- }
509
- }
498
+ exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = (0, graphql_tag_1.gql) `
499
+ query GetAvailableSubnetIPsByResourcePoolId($resourcePoolId: String!) {
500
+ getAvailableSubnetIPsByResourcePoolId(resourcePoolId: $resourcePoolId) {
501
+ parentSubnetId
502
+ address
503
+ description
504
+ status
505
+ rangeIpType
506
+ createTime
507
+ updateTime
508
+ }
509
+ }
510
510
  `;
511
- exports.GET_AVAILABLE_STORAGES_FOR_DC = (0, graphql_tag_1.gql) `
512
- query GetAvailableStoragesForDC($resourcePoolId: String!) {
513
- getAvailableStoragesForDC(resourcePoolId: $resourcePoolId) {
514
- id
515
- partnerId
516
- configId
517
- virtualId
518
- name
519
- status
520
- platform
521
- description
522
- createdStamp
523
- updatedStamp
524
- }
525
- }
511
+ exports.GET_AVAILABLE_STORAGES_FOR_DC = (0, graphql_tag_1.gql) `
512
+ query GetAvailableStoragesForDC($resourcePoolId: String!) {
513
+ getAvailableStoragesForDC(resourcePoolId: $resourcePoolId) {
514
+ id
515
+ partnerId
516
+ configId
517
+ virtualId
518
+ name
519
+ status
520
+ platform
521
+ description
522
+ createdStamp
523
+ updatedStamp
524
+ }
525
+ }
526
526
  `;
527
- exports.GET_RESOUCE_POOL_BY_SERVICE = (0, graphql_tag_1.gql) `
528
- query GetResourcePoolsByService($serviceId: String!) {
529
- getResourcePoolsByService(serviceId: $serviceId) {
530
- id
531
- name
532
- status
533
- platform
534
- cpu {
535
- size
536
- used
537
- unit
538
- }
539
- ram {
540
- size
541
- used
542
- unit
543
- }
544
- disks {
545
- index
546
- storageId
547
- size
548
- used
549
- unit
550
- }
551
- }
552
- }
527
+ exports.GET_RESOUCE_POOL_BY_SERVICE = (0, graphql_tag_1.gql) `
528
+ query GetResourcePoolsByService($serviceId: String!) {
529
+ getResourcePoolsByService(serviceId: $serviceId) {
530
+ id
531
+ name
532
+ status
533
+ platform
534
+ cpu {
535
+ size
536
+ used
537
+ unit
538
+ }
539
+ ram {
540
+ size
541
+ used
542
+ unit
543
+ }
544
+ disks {
545
+ index
546
+ storageId
547
+ size
548
+ used
549
+ unit
550
+ }
551
+ }
552
+ }
553
553
  `;
554
- exports.GET_CONSOLE = (0, graphql_tag_1.gql) `
555
- query GetConsole($computingId: String!) {
556
- getConsole(computingId: $computingId) {
557
- console
558
- cookieName
559
- cookieValue
560
- }
561
- }
554
+ exports.GET_CONSOLE = (0, graphql_tag_1.gql) `
555
+ query GetConsole($computingId: String!) {
556
+ getConsole(computingId: $computingId) {
557
+ console
558
+ cookieName
559
+ cookieValue
560
+ }
561
+ }
562
562
  `;
563
563
  const GET_COMPUTING_WAIT_REVOKE = (fields = []) => {
564
564
  const fieldStr = fields.join("\n ");
565
565
  const hasFields = fields.length > 0;
566
- return (0, graphql_tag_1.gql) `
567
- query GetComputingWaitRevoke($serviceId: String!) {
568
- getComputingWaitRevoke(serviceId: $serviceId) ${hasFields ? `{ ${fieldStr} }` : ""}
569
- }
566
+ return (0, graphql_tag_1.gql) `
567
+ query GetComputingWaitRevoke($serviceId: String!) {
568
+ getComputingWaitRevoke(serviceId: $serviceId) ${hasFields ? `{ ${fieldStr} }` : ""}
569
+ }
570
570
  `;
571
571
  };
572
572
  exports.GET_COMPUTING_WAIT_REVOKE = GET_COMPUTING_WAIT_REVOKE;
573
- exports.GET_STOREGE_MAPPING_FOR_DC = (0, graphql_tag_1.gql) `
574
- query GetStorageMappingForDC($resourcePoolId: String!) {
575
- getStorageMappingForDC(resourcePoolId: $resourcePoolId) {
576
- name
577
- storageId
578
- }
579
- }
573
+ exports.GET_STOREGE_MAPPING_FOR_DC = (0, graphql_tag_1.gql) `
574
+ query GetStorageMappingForDC($resourcePoolId: String!) {
575
+ getStorageMappingForDC(resourcePoolId: $resourcePoolId) {
576
+ name
577
+ storageId
578
+ }
579
+ }
580
580
  `;
581
581
  const GET_COMPUTINGS_DYNAMIC = (fields = []) => {
582
582
  const fieldStr = fields.join("\n ");
583
583
  const hasFields = fields.length > 0;
584
- return (0, graphql_tag_1.gql) `
585
- query GetComputings($userId: String!) {
586
- getComputings(userId: $userId) ${hasFields ? `{ ${fieldStr} }` : ""}
587
- }
584
+ return (0, graphql_tag_1.gql) `
585
+ query GetComputings($userId: String!) {
586
+ getComputings(userId: $userId) ${hasFields ? `{ ${fieldStr} }` : ""}
587
+ }
588
588
  `;
589
589
  };
590
590
  exports.GET_COMPUTINGS_DYNAMIC = GET_COMPUTINGS_DYNAMIC;