@longvansoftware/service-js-client 2.5.6 → 2.5.7
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.
|
@@ -20,3 +20,4 @@ export declare const CHECK_DOMAIN_EXIST: DocumentNode;
|
|
|
20
20
|
export declare const SEARCH_ACTIONS: DocumentNode;
|
|
21
21
|
export declare const GET_ELASTIC_CLOUD_RESOURCE: DocumentNode;
|
|
22
22
|
export declare const SEARCH_SERVICE_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
23
|
+
export declare const SEARCH_ACTIONS_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SEARCH_SERVICE_DYNAMIC = exports.GET_ELASTIC_CLOUD_RESOURCE = exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = 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_DYNAMIC = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
|
|
3
|
+
exports.SEARCH_ACTIONS_DYNAMIC = exports.SEARCH_SERVICE_DYNAMIC = exports.GET_ELASTIC_CLOUD_RESOURCE = exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = 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_DYNAMIC = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
|
|
6
6
|
query CheckDomainNameAvailable($domainName: String!) {
|
|
@@ -391,3 +391,15 @@ const SEARCH_SERVICE_DYNAMIC = (fields = []) => {
|
|
|
391
391
|
`;
|
|
392
392
|
};
|
|
393
393
|
exports.SEARCH_SERVICE_DYNAMIC = SEARCH_SERVICE_DYNAMIC;
|
|
394
|
+
const SEARCH_ACTIONS_DYNAMIC = (fields = []) => {
|
|
395
|
+
const fieldStr = fields.join('\n ');
|
|
396
|
+
const hasFields = fields.length > 0;
|
|
397
|
+
return (0, graphql_tag_1.gql) `
|
|
398
|
+
query SearchActions($parameter: ParameterSearchAction) {
|
|
399
|
+
searchActions(parameter: $parameter) {
|
|
400
|
+
${hasFields ? `${fieldStr}` : ''}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
`;
|
|
404
|
+
};
|
|
405
|
+
exports.SEARCH_ACTIONS_DYNAMIC = SEARCH_ACTIONS_DYNAMIC;
|
|
@@ -47,6 +47,7 @@ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
|
|
47
47
|
used
|
|
48
48
|
unit
|
|
49
49
|
}
|
|
50
|
+
clientGroupId
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
`;
|
|
@@ -265,6 +266,7 @@ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
|
|
|
265
266
|
used
|
|
266
267
|
unit
|
|
267
268
|
}
|
|
269
|
+
clientGroupId
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
272
|
`;
|
|
@@ -367,6 +369,7 @@ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
|
|
|
367
369
|
used
|
|
368
370
|
unit
|
|
369
371
|
}
|
|
372
|
+
clientGroupId
|
|
370
373
|
}
|
|
371
374
|
}
|
|
372
375
|
`;
|
|
@@ -415,6 +418,7 @@ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
|
|
|
415
418
|
used
|
|
416
419
|
unit
|
|
417
420
|
}
|
|
421
|
+
clientGroupId
|
|
418
422
|
}
|
|
419
423
|
}
|
|
420
424
|
`;
|
|
@@ -54,4 +54,5 @@ export declare class CloudService extends Service {
|
|
|
54
54
|
getElasticCloudResource(serviceId: string): Promise<any>;
|
|
55
55
|
searchServiceDynamic(filter: Filter, fields: string[]): Promise<any>;
|
|
56
56
|
convertProductResourceOutputsToProductJsonList(productResourceInput: any, fields: string[]): Promise<any>;
|
|
57
|
+
searchActionsDynamic(parameter: any, fields: string[]): Promise<any>;
|
|
57
58
|
}
|
|
@@ -785,5 +785,21 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
785
785
|
}
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
|
+
searchActionsDynamic(parameter, fields) {
|
|
789
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
790
|
+
const query = (0, queries_1.SEARCH_ACTIONS_DYNAMIC)(fields);
|
|
791
|
+
const variables = {
|
|
792
|
+
parameter,
|
|
793
|
+
};
|
|
794
|
+
try {
|
|
795
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
|
796
|
+
return response.searchActions;
|
|
797
|
+
}
|
|
798
|
+
catch (error) {
|
|
799
|
+
console.log(`Error in searchActionsDynamic: ${error}`);
|
|
800
|
+
throw error;
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
}
|
|
788
804
|
}
|
|
789
805
|
exports.CloudService = CloudService;
|