@longvansoftware/service-js-client 1.5.3 → 1.5.4
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.
@@ -7,3 +7,4 @@ export declare const GET_PRODUCTS_OF_SERVICE: import("graphql").DocumentNode;
|
|
7
7
|
export declare const GET_IPS_OF_SERVICE: import("graphql").DocumentNode;
|
8
8
|
export declare const GET_SERVICES_BY_ORDER_ID: import("graphql").DocumentNode;
|
9
9
|
export declare const CHECK_DOMAIN_NAME_AVAILABLE: import("graphql").DocumentNode;
|
10
|
+
export declare const GET_SERVICE_TYPE_LIST: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CHECK_DOMAIN_NAME_AVAILABLE = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = void 0;
|
3
|
+
exports.GET_SERVICE_TYPE_LIST = exports.CHECK_DOMAIN_NAME_AVAILABLE = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query ServiceDetail($serviceId: String) {
|
@@ -169,3 +169,12 @@ exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
|
|
169
169
|
}
|
170
170
|
}
|
171
171
|
`;
|
172
|
+
exports.GET_SERVICE_TYPE_LIST = (0, graphql_tag_1.gql) `
|
173
|
+
query {
|
174
|
+
getServiceTypeList {
|
175
|
+
id
|
176
|
+
key
|
177
|
+
value
|
178
|
+
}
|
179
|
+
}
|
180
|
+
`;
|
@@ -22,6 +22,20 @@ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
|
22
22
|
protocolConnect
|
23
23
|
lastBackup
|
24
24
|
backupSequence
|
25
|
+
serviceId
|
26
|
+
status
|
27
|
+
statusDetail
|
28
|
+
groupType
|
29
|
+
colocationId
|
30
|
+
ip
|
31
|
+
region
|
32
|
+
site
|
33
|
+
rack
|
34
|
+
location
|
35
|
+
position
|
36
|
+
deviceType
|
37
|
+
url
|
38
|
+
baremetalId
|
25
39
|
platform
|
26
40
|
}
|
27
41
|
}
|
@@ -218,6 +232,17 @@ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
|
|
218
232
|
serviceId
|
219
233
|
status
|
220
234
|
statusDetail
|
235
|
+
groupType
|
236
|
+
colocationId
|
237
|
+
ip
|
238
|
+
region
|
239
|
+
site
|
240
|
+
rack
|
241
|
+
location
|
242
|
+
position
|
243
|
+
deviceType
|
244
|
+
url
|
245
|
+
baremetalId
|
221
246
|
platform
|
222
247
|
}
|
223
248
|
}
|
@@ -301,6 +326,18 @@ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
|
|
301
326
|
serviceId
|
302
327
|
status
|
303
328
|
statusDetail
|
329
|
+
groupType
|
330
|
+
colocationId
|
331
|
+
ip
|
332
|
+
region
|
333
|
+
site
|
334
|
+
rack
|
335
|
+
location
|
336
|
+
position
|
337
|
+
deviceType
|
338
|
+
url
|
339
|
+
baremetalId
|
340
|
+
platform
|
304
341
|
}
|
305
342
|
}
|
306
343
|
`;
|
@@ -327,6 +364,17 @@ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
|
|
327
364
|
serviceId
|
328
365
|
status
|
329
366
|
statusDetail
|
367
|
+
groupType
|
368
|
+
colocationId
|
369
|
+
ip
|
370
|
+
region
|
371
|
+
site
|
372
|
+
rack
|
373
|
+
location
|
374
|
+
position
|
375
|
+
deviceType
|
376
|
+
url
|
377
|
+
baremetalId
|
330
378
|
platform
|
331
379
|
}
|
332
380
|
}
|
@@ -311,5 +311,19 @@ class CloudService extends serviceSDK_1.Service {
|
|
311
311
|
}
|
312
312
|
});
|
313
313
|
}
|
314
|
+
getServiceTypeList() {
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
316
|
+
const query = queries_1.GET_SERVICE_TYPE_LIST;
|
317
|
+
const variables = {};
|
318
|
+
try {
|
319
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
320
|
+
return response.getServiceTypeList;
|
321
|
+
}
|
322
|
+
catch (error) {
|
323
|
+
console.log(`Error in getServiceTypeList: ${error}`);
|
324
|
+
throw error;
|
325
|
+
}
|
326
|
+
});
|
327
|
+
}
|
314
328
|
}
|
315
329
|
exports.CloudService = CloudService;
|