@longvansoftware/service-js-client 1.12.6 → 1.12.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.
@@ -11,3 +11,6 @@ export declare const UPDATE_USER_PASSWORD: import("graphql").DocumentNode;
|
|
11
11
|
export declare const UPDATE_DNS: import("graphql").DocumentNode;
|
12
12
|
export declare const CREATE_DOMAIN_CONTACT: import("graphql").DocumentNode;
|
13
13
|
export declare const GET_ORDER_CHANGE_RESOURCE_TERM: import("graphql").DocumentNode;
|
14
|
+
export declare const CREATE_ACTION_CHANGE_IP_OF_SERVICE: import("graphql").DocumentNode;
|
15
|
+
export declare const UPDATE_ACTION_STATUS: import("graphql").DocumentNode;
|
16
|
+
export declare const UPDATE_ACTION_CUSTOM_ATTRIBUTE: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
|
3
|
+
exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = exports.UPDATE_ACTION_STATUS = exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
6
6
|
mutation GetDomainInfo($domainName: String!) {
|
@@ -196,3 +196,65 @@ exports.GET_ORDER_CHANGE_RESOURCE_TERM = (0, graphql_tag_1.gql) `
|
|
196
196
|
)
|
197
197
|
}
|
198
198
|
`;
|
199
|
+
exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = (0, graphql_tag_1.gql) `
|
200
|
+
mutation CreateActionChangeIpOfService(
|
201
|
+
$action: ActionInput!
|
202
|
+
$byUser: String!
|
203
|
+
) {
|
204
|
+
createActionChangeIpOfService(action: $action, byUser: $byUser) {
|
205
|
+
id
|
206
|
+
partyId
|
207
|
+
parentId
|
208
|
+
name
|
209
|
+
description
|
210
|
+
workEffortTypeId
|
211
|
+
targetId
|
212
|
+
targetType
|
213
|
+
targetUrl
|
214
|
+
status
|
215
|
+
endDateExpect
|
216
|
+
endDateActual
|
217
|
+
startDateActual
|
218
|
+
startDateExpect
|
219
|
+
totalTimeActual
|
220
|
+
source
|
221
|
+
ownerId
|
222
|
+
detailUrl
|
223
|
+
execDate
|
224
|
+
retryCount
|
225
|
+
exception
|
226
|
+
attributes
|
227
|
+
group
|
228
|
+
requesterId
|
229
|
+
receiverId
|
230
|
+
createdBy
|
231
|
+
createdStamp
|
232
|
+
updatedBy
|
233
|
+
updatedStamp
|
234
|
+
}
|
235
|
+
}
|
236
|
+
`;
|
237
|
+
exports.UPDATE_ACTION_STATUS = (0, graphql_tag_1.gql) `
|
238
|
+
mutation UpdateActionStatus(
|
239
|
+
$actionId: String!
|
240
|
+
$status: String!
|
241
|
+
$byUser: String!
|
242
|
+
) {
|
243
|
+
updateActionStatus(actionId: $actionId, status: $status, byUser: $byUser)
|
244
|
+
}
|
245
|
+
`;
|
246
|
+
exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
247
|
+
mutation UpdateActionCustomAttribute(
|
248
|
+
$actionId: String!
|
249
|
+
$attrName: String!
|
250
|
+
$attrValue: String!
|
251
|
+
$byUser: String!
|
252
|
+
) {
|
253
|
+
updateActionCustomAttribute(
|
254
|
+
actionId: $actionId
|
255
|
+
attrName: $attrName
|
256
|
+
attrValue: $attrValue
|
257
|
+
byUser: $byUser
|
258
|
+
)
|
259
|
+
}
|
260
|
+
`;
|
@@ -37,4 +37,8 @@ export declare class CloudService extends Service {
|
|
37
37
|
getDomainSupplier(serviceId: string): Promise<any>;
|
38
38
|
checkDomainExist(domainName: string): Promise<any>;
|
39
39
|
getOrderChangeResourceTerm(serviceId: string, createdBy: string): Promise<any>;
|
40
|
+
searchActions(parameter: any): Promise<any>;
|
41
|
+
createActionChangeIpOfService(action: any, byUser: string): Promise<any>;
|
42
|
+
updateActionStatus(actionId: string, status: string, byUser: string): Promise<any>;
|
43
|
+
updateActionCustomAttribute(actionId: string, attrName: string, attrValue: string, byUser: string): Promise<any>;
|
40
44
|
}
|
@@ -495,5 +495,75 @@ class CloudService extends serviceSDK_1.Service {
|
|
495
495
|
}
|
496
496
|
});
|
497
497
|
}
|
498
|
+
searchActions(parameter) {
|
499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
500
|
+
const query = queries_1.SEARCH_ACTIONS;
|
501
|
+
const variables = {
|
502
|
+
parameter: Object.assign(Object.assign({}, parameter), { partyId: this.orgId }),
|
503
|
+
};
|
504
|
+
try {
|
505
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
506
|
+
return response.searchActions;
|
507
|
+
}
|
508
|
+
catch (error) {
|
509
|
+
console.log(`Error in searchActions: ${error}`);
|
510
|
+
throw error;
|
511
|
+
}
|
512
|
+
});
|
513
|
+
}
|
514
|
+
createActionChangeIpOfService(action, byUser) {
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
516
|
+
const mutation = mutations_1.CREATE_ACTION_CHANGE_IP_OF_SERVICE;
|
517
|
+
const variables = {
|
518
|
+
action: Object.assign(Object.assign({}, action), { partyId: this.orgId }),
|
519
|
+
byUser,
|
520
|
+
};
|
521
|
+
try {
|
522
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
523
|
+
return response.createActionChangeIpOfService;
|
524
|
+
}
|
525
|
+
catch (error) {
|
526
|
+
console.log(`Error in createActionChangeIpOfService: ${error}`);
|
527
|
+
throw error;
|
528
|
+
}
|
529
|
+
});
|
530
|
+
}
|
531
|
+
updateActionStatus(actionId, status, byUser) {
|
532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
533
|
+
const mutation = mutations_1.UPDATE_ACTION_STATUS;
|
534
|
+
const variables = {
|
535
|
+
actionId,
|
536
|
+
status,
|
537
|
+
byUser,
|
538
|
+
};
|
539
|
+
try {
|
540
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
541
|
+
return response.updateActionStatus;
|
542
|
+
}
|
543
|
+
catch (error) {
|
544
|
+
console.log(`Error in updateActionStatus : ${error}`);
|
545
|
+
throw error;
|
546
|
+
}
|
547
|
+
});
|
548
|
+
}
|
549
|
+
updateActionCustomAttribute(actionId, attrName, attrValue, byUser) {
|
550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
551
|
+
const mutation = mutations_1.UPDATE_ACTION_CUSTOM_ATTRIBUTE;
|
552
|
+
const variables = {
|
553
|
+
actionId,
|
554
|
+
attrName,
|
555
|
+
attrValue,
|
556
|
+
byUser,
|
557
|
+
};
|
558
|
+
try {
|
559
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
560
|
+
return response.updateActionCustomAttribute;
|
561
|
+
}
|
562
|
+
catch (error) {
|
563
|
+
console.log(`Error in updateActionCustomAttribute : ${error}`);
|
564
|
+
throw error;
|
565
|
+
}
|
566
|
+
});
|
567
|
+
}
|
498
568
|
}
|
499
569
|
exports.CloudService = CloudService;
|