@longvansoftware/service-js-client 1.0.2
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/README.md +93 -0
- package/dist/config/config.d.ts +26 -0
- package/dist/config/config.js +29 -0
- package/dist/src/graphql/auth/mutations.d.ts +7 -0
- package/dist/src/graphql/auth/mutations.js +99 -0
- package/dist/src/graphql/auth/queries.d.ts +1 -0
- package/dist/src/graphql/auth/queries.js +25 -0
- 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 +3 -0
- package/dist/src/graphql/computing/queries.js +48 -0
- package/dist/src/graphql/crm/mutations.d.ts +8 -0
- package/dist/src/graphql/crm/mutations.js +316 -0
- package/dist/src/graphql/crm/queries.d.ts +7 -0
- package/dist/src/graphql/crm/queries.js +281 -0
- package/dist/src/graphql/payment/mutations.d.ts +1 -0
- package/dist/src/graphql/payment/mutations.js +35 -0
- package/dist/src/graphql/payment/queries.d.ts +2 -0
- package/dist/src/graphql/payment/queries.js +23 -0
- package/dist/src/graphql/product/mutations.d.ts +0 -0
- package/dist/src/graphql/product/mutations.js +1 -0
- package/dist/src/graphql/product/queries.d.ts +11 -0
- package/dist/src/graphql/product/queries.js +431 -0
- package/dist/src/graphql/service/mutations.d.ts +10 -0
- package/dist/src/graphql/service/mutations.js +284 -0
- package/dist/src/graphql/service/queries.d.ts +6 -0
- package/dist/src/graphql/service/queries.js +174 -0
- package/dist/src/graphql/user/mutations.d.ts +4 -0
- package/dist/src/graphql/user/mutations.js +118 -0
- package/dist/src/graphql/user/queries.d.ts +13 -0
- package/dist/src/graphql/user/queries.js +252 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +5 -0
- package/dist/src/lib/SDK.d.ts +42 -0
- package/dist/src/lib/SDK.js +71 -0
- package/dist/src/lib/auth/index.d.ts +27 -0
- package/dist/src/lib/auth/index.js +72 -0
- 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 +25 -0
- package/dist/src/lib/computing/index.js +254 -0
- package/dist/src/lib/crm/index.d.ts +21 -0
- package/dist/src/lib/crm/index.js +296 -0
- package/dist/src/lib/order/index.d.ts +452 -0
- package/dist/src/lib/order/index.js +1204 -0
- package/dist/src/lib/payment/index.d.ts +7 -0
- package/dist/src/lib/payment/index.js +69 -0
- package/dist/src/lib/product/index.d.ts +37 -0
- package/dist/src/lib/product/index.js +132 -0
- package/dist/src/lib/service/index.d.ts +94 -0
- package/dist/src/lib/service/index.js +348 -0
- package/dist/src/lib/service.d.ts +14 -0
- package/dist/src/lib/service.js +101 -0
- package/dist/src/lib/serviceSDK.d.ts +18 -0
- package/dist/src/lib/serviceSDK.js +187 -0
- package/dist/src/lib/user/index.d.ts +23 -0
- package/dist/src/lib/user/index.js +345 -0
- package/dist/src/lib/warehouse/index.d.ts +20 -0
- package/dist/src/lib/warehouse/index.js +48 -0
- package/dist/src/types/auth.d.ts +82 -0
- package/dist/src/types/auth.js +2 -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 +291 -0
- package/dist/src/types/crm.js +2 -0
- package/dist/src/types/order.d.ts +54 -0
- package/dist/src/types/order.js +2 -0
- package/dist/src/types/product.d.ts +63 -0
- package/dist/src/types/product.js +2 -0
- package/dist/src/types/service.d.ts +29 -0
- package/dist/src/types/service.js +2 -0
- package/dist/src/types/user.d.ts +95 -0
- package/dist/src/types/user.js +2 -0
- package/dist/src/types/warehouse.d.ts +5 -0
- package/dist/src/types/warehouse.js +2 -0
- package/dist/src/utils/helpers.d.ts +4 -0
- package/dist/src/utils/helpers.js +41 -0
- package/package.json +43 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
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
|
+
ips
|
15
|
+
province
|
16
|
+
console
|
17
|
+
existPortNat
|
18
|
+
}
|
19
|
+
}
|
20
|
+
`;
|
21
|
+
exports.PORTNATS = (0, graphql_tag_1.gql) `
|
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
|
+
}
|
47
|
+
}
|
48
|
+
`;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const ADD_OPPORTUNITY_MUTATION: import("graphql").DocumentNode;
|
2
|
+
export declare const UPDATE_STATUS_ATTACHMENT_BY_ID: import("graphql").DocumentNode;
|
3
|
+
export declare const UPDATE_WORK_EFFORT_DESCRIPTION: import("graphql").DocumentNode;
|
4
|
+
export declare const UPDATE_WORK_EFFORT_NAME: import("graphql").DocumentNode;
|
5
|
+
export declare const UPDATE_WORK_EFFORT_STATUS: import("graphql").DocumentNode;
|
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;
|
@@ -0,0 +1,316 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
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
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
|
6
|
+
mutation AddOpportunity(
|
7
|
+
$partyId: String!
|
8
|
+
$addOpportunityRequest: AddOpportunityRequest!
|
9
|
+
$performerId: String!
|
10
|
+
) {
|
11
|
+
addOpportunity(
|
12
|
+
partyId: $partyId
|
13
|
+
addOpportunityRequest: $addOpportunityRequest
|
14
|
+
performerId: $performerId
|
15
|
+
) {
|
16
|
+
goal
|
17
|
+
campaignId
|
18
|
+
valueReal
|
19
|
+
valueExpect
|
20
|
+
successRate
|
21
|
+
referName
|
22
|
+
referPhone
|
23
|
+
referEmail
|
24
|
+
id
|
25
|
+
createdBy
|
26
|
+
ownerId
|
27
|
+
workEffortTypeId
|
28
|
+
partyId
|
29
|
+
name
|
30
|
+
description
|
31
|
+
parentId
|
32
|
+
status
|
33
|
+
stmId
|
34
|
+
createdStamp
|
35
|
+
updatedStamp
|
36
|
+
endDateExpect
|
37
|
+
priorityName
|
38
|
+
targetId
|
39
|
+
targetType
|
40
|
+
targetUrl
|
41
|
+
extSource
|
42
|
+
connectorId
|
43
|
+
processResult
|
44
|
+
}
|
45
|
+
}
|
46
|
+
`;
|
47
|
+
exports.UPDATE_STATUS_ATTACHMENT_BY_ID = (0, graphql_tag_1.gql) `
|
48
|
+
mutation UpdateStatusAttachmentById(
|
49
|
+
$performerId: String!
|
50
|
+
$attachmentId: String!
|
51
|
+
$status: String!
|
52
|
+
) {
|
53
|
+
updateStatusAttachmentById(
|
54
|
+
performerId: $performerId
|
55
|
+
attachmentId: $attachmentId
|
56
|
+
status: $status
|
57
|
+
) {
|
58
|
+
id
|
59
|
+
createdStamp
|
60
|
+
updatedStamp
|
61
|
+
updatedBy
|
62
|
+
createdBy
|
63
|
+
partyId
|
64
|
+
path
|
65
|
+
srcId
|
66
|
+
srcName
|
67
|
+
srcPath
|
68
|
+
srcConfigPathId
|
69
|
+
name
|
70
|
+
fileType
|
71
|
+
type
|
72
|
+
status
|
73
|
+
referId
|
74
|
+
}
|
75
|
+
}
|
76
|
+
`;
|
77
|
+
exports.UPDATE_WORK_EFFORT_DESCRIPTION = (0, graphql_tag_1.gql) `
|
78
|
+
mutation UpdateWorkEffortDescription(
|
79
|
+
$performerId: String!
|
80
|
+
$workEffortId: String!
|
81
|
+
$description: String!
|
82
|
+
) {
|
83
|
+
updateWorkEffortDescription(
|
84
|
+
performerId: $performerId
|
85
|
+
workEffortId: $workEffortId
|
86
|
+
description: $description
|
87
|
+
) {
|
88
|
+
id
|
89
|
+
createdStamp
|
90
|
+
updatedStamp
|
91
|
+
createdBy
|
92
|
+
updatedBy
|
93
|
+
name
|
94
|
+
partyId
|
95
|
+
targetId
|
96
|
+
targetType
|
97
|
+
targetUrl
|
98
|
+
description
|
99
|
+
status
|
100
|
+
parentId
|
101
|
+
workEffortTypeId
|
102
|
+
stmId
|
103
|
+
workflowId
|
104
|
+
endDateExpect
|
105
|
+
endDateActual
|
106
|
+
startDateActual
|
107
|
+
startDateExpect
|
108
|
+
source
|
109
|
+
ownerId
|
110
|
+
priorityName
|
111
|
+
priorityValue
|
112
|
+
extSource
|
113
|
+
extSourceTopicId
|
114
|
+
extSourceSocialAppId
|
115
|
+
extSourceSupportChannelType
|
116
|
+
extSourceSocialChannelType
|
117
|
+
extSourceSocialAppName
|
118
|
+
extSourceTopicUrl
|
119
|
+
connectorId
|
120
|
+
mode
|
121
|
+
partyGroupIds
|
122
|
+
tagIds
|
123
|
+
processResult
|
124
|
+
}
|
125
|
+
}
|
126
|
+
`;
|
127
|
+
exports.UPDATE_WORK_EFFORT_NAME = (0, graphql_tag_1.gql) `
|
128
|
+
mutation UpdateWorkEffortName(
|
129
|
+
$partyId: String!
|
130
|
+
$performerId: String!
|
131
|
+
$workEffortId: String!
|
132
|
+
$newName: String!
|
133
|
+
) {
|
134
|
+
updateWorkEffortName(
|
135
|
+
partyId: $partyId
|
136
|
+
performerId: $performerId
|
137
|
+
workEffortId: $workEffortId
|
138
|
+
newName: $newName
|
139
|
+
) {
|
140
|
+
id
|
141
|
+
createdStamp
|
142
|
+
updatedStamp
|
143
|
+
createdBy
|
144
|
+
updatedBy
|
145
|
+
name
|
146
|
+
partyId
|
147
|
+
targetId
|
148
|
+
targetType
|
149
|
+
targetUrl
|
150
|
+
description
|
151
|
+
status
|
152
|
+
parentId
|
153
|
+
workEffortTypeId
|
154
|
+
stmId
|
155
|
+
workflowId
|
156
|
+
endDateExpect
|
157
|
+
endDateActual
|
158
|
+
startDateActual
|
159
|
+
startDateExpect
|
160
|
+
source
|
161
|
+
ownerId
|
162
|
+
priorityName
|
163
|
+
priorityValue
|
164
|
+
extSource
|
165
|
+
extSourceTopicId
|
166
|
+
extSourceSocialAppId
|
167
|
+
extSourceSupportChannelType
|
168
|
+
extSourceSocialChannelType
|
169
|
+
extSourceSocialAppName
|
170
|
+
extSourceTopicUrl
|
171
|
+
connectorId
|
172
|
+
mode
|
173
|
+
partyGroupIds
|
174
|
+
tagIds
|
175
|
+
processResult
|
176
|
+
}
|
177
|
+
}
|
178
|
+
`;
|
179
|
+
exports.UPDATE_WORK_EFFORT_STATUS = (0, graphql_tag_1.gql) `
|
180
|
+
mutation UpdateWorkEffortStatus(
|
181
|
+
$partyId: String!
|
182
|
+
$performerId: String!
|
183
|
+
$workEffortId: String!
|
184
|
+
$source: String!
|
185
|
+
$status: String!
|
186
|
+
) {
|
187
|
+
updateWorkEffortStatus(
|
188
|
+
partyId: $partyId
|
189
|
+
performerId: $performerId
|
190
|
+
workEffortId: $workEffortId
|
191
|
+
source: $source
|
192
|
+
status: $status
|
193
|
+
) {
|
194
|
+
id
|
195
|
+
createdStamp
|
196
|
+
updatedStamp
|
197
|
+
createdBy
|
198
|
+
updatedBy
|
199
|
+
name
|
200
|
+
partyId
|
201
|
+
targetId
|
202
|
+
targetType
|
203
|
+
targetUrl
|
204
|
+
description
|
205
|
+
status
|
206
|
+
parentId
|
207
|
+
workEffortTypeId
|
208
|
+
stmId
|
209
|
+
workflowId
|
210
|
+
endDateExpect
|
211
|
+
endDateActual
|
212
|
+
startDateActual
|
213
|
+
startDateExpect
|
214
|
+
source
|
215
|
+
ownerId
|
216
|
+
priorityName
|
217
|
+
priorityValue
|
218
|
+
extSource
|
219
|
+
extSourceTopicId
|
220
|
+
extSourceSocialAppId
|
221
|
+
extSourceSupportChannelType
|
222
|
+
extSourceSocialChannelType
|
223
|
+
extSourceSocialAppName
|
224
|
+
extSourceTopicUrl
|
225
|
+
connectorId
|
226
|
+
mode
|
227
|
+
partyGroupIds
|
228
|
+
tagIds
|
229
|
+
processResult
|
230
|
+
}
|
231
|
+
}
|
232
|
+
`;
|
233
|
+
exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
234
|
+
mutation (
|
235
|
+
$partyId: String!
|
236
|
+
$performerId: String!
|
237
|
+
$workEffortId: String!
|
238
|
+
$attachments: [AddAttachmentRequest]
|
239
|
+
) {
|
240
|
+
addAttachmentForWorkEffort(
|
241
|
+
partyId: $partyId
|
242
|
+
performerId: $performerId
|
243
|
+
workEffortId: $workEffortId
|
244
|
+
addAttachmentRequest: $attachments
|
245
|
+
) {
|
246
|
+
id
|
247
|
+
createdStamp
|
248
|
+
updatedStamp
|
249
|
+
updatedBy
|
250
|
+
createdBy
|
251
|
+
partyId
|
252
|
+
path
|
253
|
+
srcId
|
254
|
+
srcName
|
255
|
+
srcPath
|
256
|
+
srcConfigPathId
|
257
|
+
name
|
258
|
+
fileType
|
259
|
+
type
|
260
|
+
referId
|
261
|
+
}
|
262
|
+
}
|
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
|
+
`;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const GET_LIST_OPPORTUNITY_QUERY: import("graphql").DocumentNode;
|
2
|
+
export declare const GET_LIST_TODO: import("graphql").DocumentNode;
|
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;
|
@@ -0,0 +1,281 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
6
|
+
query GetListOpportunity(
|
7
|
+
$partyId: String!
|
8
|
+
$performerId: String!
|
9
|
+
$getOpportunityRequest: GetOpportunityRequest!
|
10
|
+
) {
|
11
|
+
getListOpportunity(
|
12
|
+
partyId: $partyId
|
13
|
+
performerId: $performerId
|
14
|
+
getOpportunityRequest: $getOpportunityRequest
|
15
|
+
) {
|
16
|
+
total
|
17
|
+
data {
|
18
|
+
goal
|
19
|
+
campaignId
|
20
|
+
valueReal
|
21
|
+
valueExpect
|
22
|
+
successRate
|
23
|
+
referName
|
24
|
+
referPhone
|
25
|
+
referEmail
|
26
|
+
id
|
27
|
+
createdBy
|
28
|
+
ownerId
|
29
|
+
workEffortTypeId
|
30
|
+
partyId
|
31
|
+
name
|
32
|
+
description
|
33
|
+
parentId
|
34
|
+
status
|
35
|
+
stmId
|
36
|
+
createdStamp
|
37
|
+
updatedStamp
|
38
|
+
endDateExpect
|
39
|
+
priorityName
|
40
|
+
targetId
|
41
|
+
targetType
|
42
|
+
targetUrl
|
43
|
+
extSource
|
44
|
+
connectorId
|
45
|
+
processResult
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
`;
|
50
|
+
exports.GET_LIST_TODO = (0, graphql_tag_1.gql) `
|
51
|
+
query GetListTodo($partyId: String!, $workEffortId: [String]!) {
|
52
|
+
getListTodo(partyId: $partyId, workEffortId: $workEffortId) {
|
53
|
+
workEffortId
|
54
|
+
toDoList {
|
55
|
+
listAttachment {
|
56
|
+
id
|
57
|
+
createdStamp
|
58
|
+
createdBy
|
59
|
+
updatedBy
|
60
|
+
updatedStamp
|
61
|
+
partyId
|
62
|
+
path
|
63
|
+
srcId
|
64
|
+
srcName
|
65
|
+
srcPath
|
66
|
+
srcConfigPathId
|
67
|
+
name
|
68
|
+
fileType
|
69
|
+
type
|
70
|
+
status
|
71
|
+
referId
|
72
|
+
}
|
73
|
+
isDone
|
74
|
+
id
|
75
|
+
workEffortTypeId
|
76
|
+
workEffortType {
|
77
|
+
id
|
78
|
+
name
|
79
|
+
group
|
80
|
+
createdStamp
|
81
|
+
updatedStamp
|
82
|
+
updatedBy
|
83
|
+
createdBy
|
84
|
+
partyId
|
85
|
+
actionLinkId
|
86
|
+
partyGroupIds
|
87
|
+
description
|
88
|
+
workFlow {
|
89
|
+
stages {
|
90
|
+
id
|
91
|
+
name
|
92
|
+
mode
|
93
|
+
workEffortTypeId
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
partyId
|
98
|
+
name
|
99
|
+
description
|
100
|
+
parentId
|
101
|
+
parentType
|
102
|
+
status
|
103
|
+
createdStamp
|
104
|
+
updatedStamp
|
105
|
+
source
|
106
|
+
mode
|
107
|
+
connectorId
|
108
|
+
actionLink {
|
109
|
+
name
|
110
|
+
uri
|
111
|
+
type
|
112
|
+
partyId
|
113
|
+
fromCollection
|
114
|
+
toCollection
|
115
|
+
group
|
116
|
+
params
|
117
|
+
id
|
118
|
+
createdStamp
|
119
|
+
updatedStamp
|
120
|
+
updatedBy
|
121
|
+
createdBy
|
122
|
+
}
|
123
|
+
partyGroupIds
|
124
|
+
tagIds
|
125
|
+
processResult
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
`;
|
130
|
+
exports.GET_LIST_WORK_EFFORT_TYPE = (0, graphql_tag_1.gql) `
|
131
|
+
query GetListWorkEffortType($partyId: String!, $id: String!) {
|
132
|
+
getListWorkEffortType(
|
133
|
+
partyId: $partyId
|
134
|
+
getWorkEffortTypeRequest: { id: $id, isPagination: true }
|
135
|
+
) {
|
136
|
+
id
|
137
|
+
name
|
138
|
+
group
|
139
|
+
createdStamp
|
140
|
+
updatedStamp
|
141
|
+
updatedBy
|
142
|
+
createdBy
|
143
|
+
partyId
|
144
|
+
actionLinkId
|
145
|
+
partyGroupIds
|
146
|
+
description
|
147
|
+
workFlow {
|
148
|
+
stages {
|
149
|
+
id
|
150
|
+
name
|
151
|
+
mode
|
152
|
+
workEffortTypeId
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
`;
|
158
|
+
exports.GET_LIST_TICKET = (0, graphql_tag_1.gql) `
|
159
|
+
query GetListTicket(
|
160
|
+
$partyId: String!
|
161
|
+
$performerId: String!
|
162
|
+
$getTicketRequest: GetTicketRequest!
|
163
|
+
) {
|
164
|
+
getListTicket(
|
165
|
+
partyId: $partyId
|
166
|
+
performerId: $performerId
|
167
|
+
getTicketRequest: $getTicketRequest
|
168
|
+
) {
|
169
|
+
total
|
170
|
+
data {
|
171
|
+
id
|
172
|
+
ownerId
|
173
|
+
workEffortTypeId
|
174
|
+
partyId
|
175
|
+
name
|
176
|
+
description
|
177
|
+
status
|
178
|
+
parentId
|
179
|
+
stmId
|
180
|
+
createdStamp
|
181
|
+
updatedStamp
|
182
|
+
endDateExpect
|
183
|
+
endDateActual
|
184
|
+
priorityName
|
185
|
+
targetId
|
186
|
+
targetType
|
187
|
+
extSource
|
188
|
+
connectorId
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
`;
|
193
|
+
exports.GET_TICKET_BY_ID = (0, graphql_tag_1.gql) `
|
194
|
+
query GetTicketById($ticketId: String!) {
|
195
|
+
getTicketById(ticketId: $ticketId) {
|
196
|
+
id
|
197
|
+
accountable {
|
198
|
+
id
|
199
|
+
status
|
200
|
+
partyId
|
201
|
+
salutation
|
202
|
+
firstName
|
203
|
+
middleName
|
204
|
+
lastName
|
205
|
+
fullName
|
206
|
+
}
|
207
|
+
workEffortTypeId
|
208
|
+
workEffortType {
|
209
|
+
id
|
210
|
+
name
|
211
|
+
group
|
212
|
+
createdStamp
|
213
|
+
updatedStamp
|
214
|
+
}
|
215
|
+
partyId
|
216
|
+
name
|
217
|
+
description
|
218
|
+
status
|
219
|
+
parentId
|
220
|
+
createdStamp
|
221
|
+
updatedStamp
|
222
|
+
endDateExpect
|
223
|
+
endDateActual
|
224
|
+
priorityName
|
225
|
+
targetId
|
226
|
+
targetType
|
227
|
+
extSource
|
228
|
+
}
|
229
|
+
}
|
230
|
+
`;
|
231
|
+
exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = (0, graphql_tag_1.gql) `
|
232
|
+
query GetAttachmentByWorkEffortId(
|
233
|
+
$partyId: String!
|
234
|
+
$workEffortIds: [String]!
|
235
|
+
) {
|
236
|
+
getAttachmentByWorkEffortId(
|
237
|
+
partyId: $partyId
|
238
|
+
workEffortIds: $workEffortIds
|
239
|
+
) {
|
240
|
+
id
|
241
|
+
createdStamp
|
242
|
+
updatedStamp
|
243
|
+
updatedBy
|
244
|
+
createdBy
|
245
|
+
partyId
|
246
|
+
path
|
247
|
+
srcId
|
248
|
+
srcName
|
249
|
+
srcPath
|
250
|
+
srcConfigPathId
|
251
|
+
name
|
252
|
+
fileType
|
253
|
+
type
|
254
|
+
status
|
255
|
+
referId
|
256
|
+
}
|
257
|
+
}
|
258
|
+
`;
|
259
|
+
exports.GET_LIST_COMMENT = (0, graphql_tag_1.gql) `
|
260
|
+
query GetListComment($partyId: String!, $getCommentRequest: GetCommentRequest!) {
|
261
|
+
getListComment(partyId: $partyId, getCommentRequest: $getCommentRequest) {
|
262
|
+
total
|
263
|
+
data {
|
264
|
+
id
|
265
|
+
createdStamp
|
266
|
+
updatedStamp
|
267
|
+
updatedBy
|
268
|
+
createdBy{
|
269
|
+
id
|
270
|
+
fullName
|
271
|
+
}
|
272
|
+
type
|
273
|
+
format
|
274
|
+
content
|
275
|
+
referId
|
276
|
+
referSource
|
277
|
+
attachId
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
`;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const CREATE_PAYMENT_ORDER_MUTATION: import("graphql").DocumentNode;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CREATE_PAYMENT_ORDER_MUTATION = void 0;
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.CREATE_PAYMENT_ORDER_MUTATION = (0, graphql_tag_1.gql) `
|
6
|
+
mutation CreatePaymentOrder(
|
7
|
+
$orgId: String!
|
8
|
+
$orderId: String!
|
9
|
+
$paymentMethod: String!
|
10
|
+
$storeId: String!
|
11
|
+
$source: String!
|
12
|
+
$appliedAmount: BigDecimal!
|
13
|
+
$payDate: String!
|
14
|
+
$returnUrl: String
|
15
|
+
$paymentType: String!
|
16
|
+
$createBy: String!
|
17
|
+
) {
|
18
|
+
createPaymentOrder(
|
19
|
+
orgId: $orgId
|
20
|
+
orderId: $orderId
|
21
|
+
paymentMethod: $paymentMethod
|
22
|
+
storeId: $storeId
|
23
|
+
source: $source
|
24
|
+
appliedAmount: $appliedAmount
|
25
|
+
payDate: $payDate
|
26
|
+
returnUrl: $returnUrl
|
27
|
+
paymentType: $paymentType
|
28
|
+
createBy: $createBy
|
29
|
+
) {
|
30
|
+
code
|
31
|
+
message
|
32
|
+
data
|
33
|
+
}
|
34
|
+
}
|
35
|
+
`;
|