@longvansoftware/storefront-js-client 1.5.5 → 1.5.6
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.
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.js +9 -7
- package/dist/src/graphql/cloud/mutations.d.ts +8 -0
- package/dist/src/graphql/cloud/mutations.js +115 -0
- package/dist/src/graphql/cloud/queries.d.ts +5 -0
- package/dist/src/graphql/cloud/queries.js +121 -0
- package/dist/src/graphql/computing/mutations.d.ts +10 -0
- package/dist/src/graphql/computing/mutations.js +110 -0
- package/dist/src/graphql/computing/queries.d.ts +1 -0
- package/dist/src/graphql/computing/queries.js +27 -14
- package/dist/src/graphql/crm/mutations.d.ts +2 -0
- package/dist/src/graphql/crm/mutations.js +54 -1
- package/dist/src/graphql/crm/queries.d.ts +4 -0
- package/dist/src/graphql/crm/queries.js +187 -61
- package/dist/src/graphql/payment/queries.d.ts +1 -0
- package/dist/src/graphql/payment/queries.js +25 -3
- package/dist/src/graphql/product/queries.d.ts +2 -0
- package/dist/src/graphql/product/queries.js +57 -1
- package/dist/src/lib/SDK.d.ts +5 -1
- package/dist/src/lib/SDK.js +9 -3
- package/dist/src/lib/cloud/index.d.ts +25 -0
- package/dist/src/lib/cloud/index.js +248 -0
- package/dist/src/lib/computing/index.d.ts +12 -0
- package/dist/src/lib/computing/index.js +195 -2
- package/dist/src/lib/crm/index.d.ts +8 -2
- package/dist/src/lib/crm/index.js +123 -15
- package/dist/src/lib/order/index.js +3 -3
- package/dist/src/lib/payment/index.d.ts +1 -0
- package/dist/src/lib/payment/index.js +16 -0
- package/dist/src/lib/product/index.d.ts +2 -0
- package/dist/src/lib/product/index.js +33 -0
- package/dist/src/lib/serviceSDK.js +7 -0
- package/dist/src/types/cloud.d.ts +40 -0
- package/dist/src/types/cloud.js +2 -0
- package/dist/src/types/computing.d.ts +16 -0
- package/dist/src/types/computing.js +2 -0
- package/dist/src/types/crm.d.ts +71 -0
- package/package.json +1 -1
package/dist/config/config.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const environmentEndpoints: {
|
|
|
10
10
|
warehouse: string;
|
|
11
11
|
computing: string;
|
|
12
12
|
campaign: string;
|
|
13
|
+
cloud: string;
|
|
13
14
|
};
|
|
14
15
|
live: {
|
|
15
16
|
product: string;
|
|
@@ -22,5 +23,6 @@ export declare const environmentEndpoints: {
|
|
|
22
23
|
warehouse: string;
|
|
23
24
|
computing: string;
|
|
24
25
|
campaign: string;
|
|
26
|
+
cloud: string;
|
|
25
27
|
};
|
|
26
28
|
};
|
package/dist/config/config.js
CHANGED
|
@@ -13,17 +13,19 @@ exports.environmentEndpoints = {
|
|
|
13
13
|
warehouse: "https://portal.dev.longvan.vn/facility-api/public-facility/1.0.0",
|
|
14
14
|
computing: "https://api-gateway.dev.longvan.vn/computing-service/graphql",
|
|
15
15
|
campaign: "https://crm.dev.longvan.vn/campaign-gateway/graphql",
|
|
16
|
+
cloud: "https://api-gateway.dev.longvan.vn/cloud-service-api/graphql",
|
|
16
17
|
},
|
|
17
18
|
live: {
|
|
18
|
-
product: "https://product-service.
|
|
19
|
-
crm: "https://crm-ticket-gateway.
|
|
20
|
-
auth: "https://crm.
|
|
21
|
-
order: "https://storefront.
|
|
22
|
-
user: "https://user.
|
|
23
|
-
payment: "https://portal.
|
|
24
|
-
service: "https://portal.
|
|
19
|
+
product: "https://product-service.longvan.vn/product-service/graphql",
|
|
20
|
+
crm: "https://crm-ticket-gateway.longvan.vn/crm-graph-gateway/graphql",
|
|
21
|
+
auth: "https://crm.longvan.vn/authorization-gateway/graphql",
|
|
22
|
+
order: "https://storefront.longvan.vn/v2",
|
|
23
|
+
user: "https://user.longvan.vn/user-gateway/graphql",
|
|
24
|
+
payment: "https://portal.longvan.vn/invoice-gateway/graphql",
|
|
25
|
+
service: "https://portal.longvan.vn/service-api/graphql",
|
|
25
26
|
warehouse: "https://portal.dev.longvan.vn/facility-api/public-facility/1.0.0",
|
|
26
27
|
computing: "https://api-gateway.longvan.vn/computing-service/graphql",
|
|
27
28
|
campaign: "https://crm.dev.longvan.vn/campaign-gateway/graphql",
|
|
29
|
+
cloud: "https://api-gateway.longvan.vn/cloud-service-api/graphql"
|
|
28
30
|
},
|
|
29
31
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const CHANGE_SERVICE_NAME: import("graphql").DocumentNode;
|
|
2
|
+
export declare const CREATE_USER_MAIL_HOSTING: import("graphql").DocumentNode;
|
|
3
|
+
export declare const DELETE_USER_MAIL_HOSTING: import("graphql").DocumentNode;
|
|
4
|
+
export declare const UPDATE_DOMAIN_NAME: import("graphql").DocumentNode;
|
|
5
|
+
export declare const UPDATE_USER_NAME: import("graphql").DocumentNode;
|
|
6
|
+
export declare const UPDATE_PASSWORD: import("graphql").DocumentNode;
|
|
7
|
+
export declare const UPDATE_USER_PASSWORD: import("graphql").DocumentNode;
|
|
8
|
+
export declare const UPDATE_DNS: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
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 = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.CHANGE_SERVICE_NAME = (0, graphql_tag_1.gql) `
|
|
6
|
+
mutation ChangeServiceName(
|
|
7
|
+
$serviceId: String!
|
|
8
|
+
$updateBy: String!
|
|
9
|
+
$name: String!
|
|
10
|
+
) {
|
|
11
|
+
changeServiceName(serviceId: $serviceId, updateBy: $updateBy, name: $name) {
|
|
12
|
+
partnerId
|
|
13
|
+
status
|
|
14
|
+
ownerId
|
|
15
|
+
startDate
|
|
16
|
+
endDate
|
|
17
|
+
actionRequest {
|
|
18
|
+
id
|
|
19
|
+
name
|
|
20
|
+
uri
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
exports.CREATE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
26
|
+
mutation CreateUserMailHosting(
|
|
27
|
+
$serviceId: String!
|
|
28
|
+
$username: String!
|
|
29
|
+
$password: String!
|
|
30
|
+
$fullName: String!
|
|
31
|
+
) {
|
|
32
|
+
createUserMailHosting(
|
|
33
|
+
serviceId: $serviceId
|
|
34
|
+
username: $username
|
|
35
|
+
password: $password
|
|
36
|
+
fullName: $fullName
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
exports.DELETE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
41
|
+
mutation DeleteUserMailHosting($serviceId: String!, $username: String!) {
|
|
42
|
+
deleteUserMailHosting(serviceId: $serviceId, username: $username)
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
exports.UPDATE_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
46
|
+
mutation UpdateDomainName(
|
|
47
|
+
$serviceId: String!
|
|
48
|
+
$updateBy: String!
|
|
49
|
+
$updateData: String!
|
|
50
|
+
) {
|
|
51
|
+
updateDomainName(
|
|
52
|
+
serviceId: $serviceId
|
|
53
|
+
updateBy: $updateBy
|
|
54
|
+
updateData: $updateData
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
exports.UPDATE_USER_NAME = (0, graphql_tag_1.gql) `
|
|
59
|
+
mutation UpdateUserName(
|
|
60
|
+
$serviceId: String!
|
|
61
|
+
$updateBy: String!
|
|
62
|
+
$updateData: String!
|
|
63
|
+
) {
|
|
64
|
+
updateUsername(
|
|
65
|
+
serviceId: $serviceId
|
|
66
|
+
updateBy: $updateBy
|
|
67
|
+
updateData: $updateData
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
exports.UPDATE_PASSWORD = (0, graphql_tag_1.gql) `
|
|
72
|
+
mutation UpdatePassword(
|
|
73
|
+
$serviceId: String!
|
|
74
|
+
$updateBy: String!
|
|
75
|
+
$updateData: String!
|
|
76
|
+
) {
|
|
77
|
+
updatePassword(
|
|
78
|
+
serviceId: $serviceId
|
|
79
|
+
updateBy: $updateBy
|
|
80
|
+
updateData: $updateData
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
exports.UPDATE_USER_PASSWORD = (0, graphql_tag_1.gql) `
|
|
85
|
+
mutation UpdateUserPassword(
|
|
86
|
+
$serviceId: String!
|
|
87
|
+
$username: String!
|
|
88
|
+
$password: String!
|
|
89
|
+
) {
|
|
90
|
+
updateUserPassword(
|
|
91
|
+
serviceId: $serviceId
|
|
92
|
+
username: $username
|
|
93
|
+
password: $password
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
97
|
+
exports.UPDATE_DNS = (0, graphql_tag_1.gql) `
|
|
98
|
+
mutation UpdateDNS(
|
|
99
|
+
$serviceId: String!
|
|
100
|
+
$dns1: String
|
|
101
|
+
$dns2: String
|
|
102
|
+
$dns3: String
|
|
103
|
+
$dns4: String
|
|
104
|
+
$createBy: String
|
|
105
|
+
) {
|
|
106
|
+
updateDNS(
|
|
107
|
+
serviceId: $serviceId
|
|
108
|
+
dns1: $dns1
|
|
109
|
+
dns2: $dns2
|
|
110
|
+
dns3: $dns3
|
|
111
|
+
dns4: $dns4
|
|
112
|
+
createBy: $createBy
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const SERVICE_DETAIL: import("graphql").DocumentNode;
|
|
2
|
+
export declare const GET_MAIL_RESOURCE: import("graphql").DocumentNode;
|
|
3
|
+
export declare const GET_USER_MAIL_HOSTING: import("graphql").DocumentNode;
|
|
4
|
+
export declare const SERVICE_TYPE: import("graphql").DocumentNode;
|
|
5
|
+
export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
|
+
query ServiceDetail($serviceId: String) {
|
|
7
|
+
serviceDetail(serviceId: $serviceId) {
|
|
8
|
+
service {
|
|
9
|
+
serviceId
|
|
10
|
+
partnerId
|
|
11
|
+
serviceName
|
|
12
|
+
type
|
|
13
|
+
typeName
|
|
14
|
+
status
|
|
15
|
+
ownerId
|
|
16
|
+
startDate
|
|
17
|
+
endDate
|
|
18
|
+
serviceType
|
|
19
|
+
actionRequest {
|
|
20
|
+
id
|
|
21
|
+
name
|
|
22
|
+
type
|
|
23
|
+
uri
|
|
24
|
+
}
|
|
25
|
+
urlPrivate
|
|
26
|
+
urlPublic
|
|
27
|
+
username
|
|
28
|
+
password
|
|
29
|
+
attrs
|
|
30
|
+
}
|
|
31
|
+
resources {
|
|
32
|
+
type
|
|
33
|
+
name
|
|
34
|
+
total
|
|
35
|
+
unit
|
|
36
|
+
value
|
|
37
|
+
component
|
|
38
|
+
}
|
|
39
|
+
configs {
|
|
40
|
+
configId
|
|
41
|
+
name
|
|
42
|
+
configValue
|
|
43
|
+
}
|
|
44
|
+
extraData {
|
|
45
|
+
title
|
|
46
|
+
content {
|
|
47
|
+
name
|
|
48
|
+
type
|
|
49
|
+
value
|
|
50
|
+
action
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
exports.GET_MAIL_RESOURCE = (0, graphql_tag_1.gql) `
|
|
57
|
+
query GetMailResource($serviceId: String!) {
|
|
58
|
+
getMailResource(serviceId: $serviceId) {
|
|
59
|
+
accountTotal
|
|
60
|
+
accountUsed
|
|
61
|
+
accountRemain
|
|
62
|
+
storageTotal
|
|
63
|
+
storageUsed
|
|
64
|
+
storageRemain
|
|
65
|
+
storageRemainUnit
|
|
66
|
+
storageTotalUnit
|
|
67
|
+
storageUsedUnit
|
|
68
|
+
enableAntiVirus
|
|
69
|
+
enableAntiSpam
|
|
70
|
+
attachmentLimitUnit
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
exports.GET_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
75
|
+
query GetUserMailResource($serviceId: String!) {
|
|
76
|
+
getUserMailHosting(serviceId: $serviceId) {
|
|
77
|
+
email
|
|
78
|
+
username
|
|
79
|
+
fullName
|
|
80
|
+
storageUsedUnit
|
|
81
|
+
storageUsed
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
exports.SERVICE_TYPE = (0, graphql_tag_1.gql) `
|
|
86
|
+
query {
|
|
87
|
+
serviceTypes
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
|
|
91
|
+
query SearchService($filter: CloudServiceFilterInput) {
|
|
92
|
+
searchService(filter: $filter) {
|
|
93
|
+
total
|
|
94
|
+
offset
|
|
95
|
+
maxResult
|
|
96
|
+
resultList {
|
|
97
|
+
serviceId
|
|
98
|
+
partnerId
|
|
99
|
+
serviceName
|
|
100
|
+
type
|
|
101
|
+
typeName
|
|
102
|
+
status
|
|
103
|
+
ownerId
|
|
104
|
+
startDate
|
|
105
|
+
endDate
|
|
106
|
+
serviceType
|
|
107
|
+
actionRequest {
|
|
108
|
+
id
|
|
109
|
+
name
|
|
110
|
+
type
|
|
111
|
+
uri
|
|
112
|
+
}
|
|
113
|
+
urlPrivate
|
|
114
|
+
urlPublic
|
|
115
|
+
username
|
|
116
|
+
password
|
|
117
|
+
attrs
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const RESTARTVM: import("graphql").DocumentNode;
|
|
2
|
+
export declare const UPDATE_DESCRIPTION_PORTNAT: import("graphql").DocumentNode;
|
|
3
|
+
export declare const CREATE_PORT_NAT: import("graphql").DocumentNode;
|
|
4
|
+
export declare const UPDATE_PORT_NAT: import("graphql").DocumentNode;
|
|
5
|
+
export declare const REMOVE_PORT_NAT: import("graphql").DocumentNode;
|
|
6
|
+
export declare const POWER_ON: import("graphql").DocumentNode;
|
|
7
|
+
export declare const POWER_OFF: import("graphql").DocumentNode;
|
|
8
|
+
export declare const CREATE_SNAP_SHOT: import("graphql").DocumentNode;
|
|
9
|
+
export declare const ROLLBACK_SNAPSHOT: import("graphql").DocumentNode;
|
|
10
|
+
export declare const DELETE_SNAPSHOT: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
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
|
+
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
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
exports.POWER_ON = (0, graphql_tag_1.gql) `
|
|
55
|
+
mutation PowerOn($computingId: String!, $actor: String!) {
|
|
56
|
+
powerOn(computingId: $computingId, actor: $actor)
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
exports.POWER_OFF = (0, graphql_tag_1.gql) `
|
|
60
|
+
mutation PowerOff($computingId: String!, $actor: String!) {
|
|
61
|
+
powerOff(computingId: $computingId, actor: $actor)
|
|
62
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
110
|
+
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
|
3
|
+
exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
|
-
query ComputingDetail($computingId: String!){
|
|
6
|
+
query ComputingDetail($computingId: String!) {
|
|
7
7
|
computingDetail(computingId: $computingId) {
|
|
8
8
|
id
|
|
9
9
|
name
|
|
@@ -19,17 +19,30 @@ query ComputingDetail($computingId: String!){
|
|
|
19
19
|
}
|
|
20
20
|
`;
|
|
21
21
|
exports.PORTNATS = (0, graphql_tag_1.gql) `
|
|
22
|
-
query PortNats($computingId: String!){
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
query PortNats($computingId: String!) {
|
|
23
|
+
portNats(computingId: $computingId) {
|
|
24
|
+
id
|
|
25
|
+
action
|
|
26
|
+
protocol
|
|
27
|
+
originalAddress
|
|
28
|
+
originalPort
|
|
29
|
+
translatedAddress
|
|
30
|
+
translatedPort
|
|
31
|
+
description
|
|
32
|
+
status
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
exports.SNAP_SHOTS = (0, graphql_tag_1.gql) `
|
|
37
|
+
query Snapshots($computingId: String!) {
|
|
38
|
+
snapshots(computingId: $computingId) {
|
|
39
|
+
id
|
|
40
|
+
computingId
|
|
41
|
+
snapshotId
|
|
42
|
+
name
|
|
43
|
+
status
|
|
44
|
+
createdStamp
|
|
45
|
+
endDate
|
|
46
|
+
}
|
|
33
47
|
}
|
|
34
|
-
}
|
|
35
48
|
`;
|
|
@@ -4,3 +4,5 @@ export declare const UPDATE_WORK_EFFORT_DESCRIPTION: import("graphql").DocumentN
|
|
|
4
4
|
export declare const UPDATE_WORK_EFFORT_NAME: import("graphql").DocumentNode;
|
|
5
5
|
export declare const UPDATE_WORK_EFFORT_STATUS: import("graphql").DocumentNode;
|
|
6
6
|
export declare const ADD_ATTACHMENT_FOR_WORK_EFFORT: import("graphql").DocumentNode;
|
|
7
|
+
export declare const ADD_TICKED: import("graphql").DocumentNode;
|
|
8
|
+
export declare const ADD_COMMENT: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION = void 0;
|
|
3
|
+
exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
|
|
6
6
|
mutation AddOpportunity(
|
|
@@ -261,3 +261,56 @@ exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
`;
|
|
264
|
+
exports.ADD_TICKED = (0, graphql_tag_1.gql) `
|
|
265
|
+
mutation AddTicket(
|
|
266
|
+
$partyId: String!
|
|
267
|
+
$performerId: String!
|
|
268
|
+
$addTicketRequest: AddTicketRequest!
|
|
269
|
+
$addAttachmentRequest: [AddAttachmentRequest]
|
|
270
|
+
) {
|
|
271
|
+
addTicket(
|
|
272
|
+
partyId: $partyId
|
|
273
|
+
performerId: $performerId
|
|
274
|
+
addTicketRequest: $addTicketRequest
|
|
275
|
+
addAttachmentRequest: $addAttachmentRequest
|
|
276
|
+
) {
|
|
277
|
+
id
|
|
278
|
+
partyId
|
|
279
|
+
name
|
|
280
|
+
description
|
|
281
|
+
status
|
|
282
|
+
parentId
|
|
283
|
+
stmId
|
|
284
|
+
createdStamp
|
|
285
|
+
updatedStamp
|
|
286
|
+
endDateExpect
|
|
287
|
+
priorityName
|
|
288
|
+
targetId
|
|
289
|
+
targetType
|
|
290
|
+
extSource
|
|
291
|
+
connectorId
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
`;
|
|
295
|
+
exports.ADD_COMMENT = (0, graphql_tag_1.gql) `
|
|
296
|
+
mutation AddComment(
|
|
297
|
+
$partyId: String!
|
|
298
|
+
$performerId: String!
|
|
299
|
+
$format: CommentFormat!
|
|
300
|
+
$content: String
|
|
301
|
+
$referId: String!
|
|
302
|
+
$addAttachmentRequest: [AddAttachmentRequest]
|
|
303
|
+
) {
|
|
304
|
+
addComment(
|
|
305
|
+
partyId: $partyId
|
|
306
|
+
performerId: $performerId
|
|
307
|
+
format: $format
|
|
308
|
+
content: $content
|
|
309
|
+
referId: $referId
|
|
310
|
+
addAttachmentRequest: $addAttachmentRequest
|
|
311
|
+
) {
|
|
312
|
+
id
|
|
313
|
+
content
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
`;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export declare const GET_LIST_OPPORTUNITY_QUERY: import("graphql").DocumentNode;
|
|
2
2
|
export declare const GET_LIST_TODO: import("graphql").DocumentNode;
|
|
3
3
|
export declare const GET_LIST_WORK_EFFORT_TYPE: import("graphql").DocumentNode;
|
|
4
|
+
export declare const GET_LIST_TICKET: import("graphql").DocumentNode;
|
|
5
|
+
export declare const GET_TICKET_BY_ID: import("graphql").DocumentNode;
|
|
6
|
+
export declare const GET_ATTACHMENT_BY_WORK_EFFORT_ID: import("graphql").DocumentNode;
|
|
7
|
+
export declare const GET_LIST_COMMENT: import("graphql").DocumentNode;
|