@longvansoftware/storefront-js-client 1.6.1 → 1.6.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.
@@ -1,325 +1,403 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_WORK_EFFORTS = 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;
3
+ exports.GET_WORK_EFFORT_BY_ID = exports.GET_WORK_EFFORTS = 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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
259
+ exports.GET_LIST_COMMENT = (0, graphql_tag_1.gql) `
260
+ query GetListComment(
261
+ $partyId: String!
262
+ $getCommentRequest: GetCommentRequest!
263
+ ) {
264
+ getListComment(partyId: $partyId, getCommentRequest: $getCommentRequest) {
265
+ total
266
+ data {
267
+ id
268
+ createdStamp
269
+ updatedStamp
270
+ updatedBy
271
+ createdBy {
272
+ id
273
+ fullName
274
+ }
275
+ type
276
+ format
277
+ content
278
+ referId
279
+ referSource
280
+ attachId
281
+ }
282
+ }
283
+ }
281
284
  `;
282
- exports.GET_WORK_EFFORTS = (0, graphql_tag_1.gql) `
283
- query GetWorkEfforts(
284
- $partnerId: String!
285
- $performerId: String!
286
- $source: String!
287
- $workEffortTypeId: String!
288
- ){
289
- getWorkEfforts(
290
- partnerId:$partnerId
291
- performerId:$performerId
292
- source: $source
293
- workEffortTypeId: $workEffortTypeId
294
- ){
295
- total
296
- data{
297
- id
298
- createdStamp
299
- updatedStamp
300
- createdBy
301
- updatedBy
302
- name
303
- partyId
304
- targetId
305
- targetType
306
- targetUrl
307
- description
308
- status
309
- parentId
310
- workEffortTypeId
311
- stmId
312
- workflowId
313
- endDateExpect
314
- endDateActual
315
- startDateActual
316
- startDateExpect
317
- source
318
- ownerId
319
- priorityName
320
- priorityValue
321
- extSource
322
- }
323
- }
324
- }
285
+ exports.GET_WORK_EFFORTS = (0, graphql_tag_1.gql) `
286
+ query GetWorkEfforts(
287
+ $partnerId: String!
288
+ $performerId: String!
289
+ $source: String!
290
+ $pageNumber: Int!
291
+ $pageSize: Int!
292
+ $sorts: [BaseSort]
293
+ ) {
294
+ getWorkEfforts(
295
+ partnerId: $partnerId
296
+ performerId: $performerId
297
+ source: $source
298
+ pageNumber: $pageNumber
299
+ pageSize: $pageSize
300
+ sorts: $sorts
301
+ ) {
302
+ total
303
+ data {
304
+ id
305
+ createdStamp
306
+ updatedStamp
307
+ createdBy
308
+ updatedBy
309
+ name
310
+ partyId
311
+ targetId
312
+ targetType
313
+ targetUrl
314
+ description
315
+ status
316
+ parentId
317
+ workEffortTypeId
318
+ stmId
319
+ workflowId
320
+ endDateExpect
321
+ endDateActual
322
+ startDateActual
323
+ startDateExpect
324
+ source
325
+ ownerId
326
+ priorityName
327
+ priorityValue
328
+ extSource
329
+ extSourceTopicId
330
+ extSourceSocialAppId
331
+ extSourceSupportChannelType
332
+ extSourceSocialChannelType
333
+ extSourceSocialAppName
334
+ extSourceTopicUrl
335
+ connectorId
336
+ mode
337
+ partyGroupIds
338
+ tagIds
339
+ processResult
340
+ }
341
+ }
342
+ }
343
+ `;
344
+ exports.GET_WORK_EFFORT_BY_ID = (0, graphql_tag_1.gql) `
345
+ query GetWorkEffortById($id: String!) {
346
+ getWorkEffortById(id: $id) {
347
+ id
348
+ createdStamp
349
+ updatedStamp
350
+ createdBy
351
+ updatedBy
352
+ name
353
+ partyId
354
+ targetId
355
+ targetType
356
+ targetUrl
357
+ description
358
+ status
359
+ parentId
360
+ workEffortTypeId
361
+ stmId
362
+ workflowId
363
+ endDateExpect
364
+ endDateActual
365
+ startDateActual
366
+ startDateExpect
367
+ source
368
+ ownerId
369
+ priorityName
370
+ priorityValue
371
+ extSource
372
+ extSourceTopicId
373
+ extSourceSocialAppId
374
+ extSourceSupportChannelType
375
+ extSourceSocialChannelType
376
+ extSourceSocialAppName
377
+ extSourceTopicUrl
378
+ connectorId
379
+ mode
380
+ partyGroupIds
381
+ tagIds
382
+ processResult
383
+ attachments {
384
+ id
385
+ createdStamp
386
+ updatedStamp
387
+ updatedBy
388
+ createdBy
389
+ partyId
390
+ path
391
+ srcId
392
+ srcName
393
+ srcPath
394
+ srcConfigPathId
395
+ name
396
+ fileType
397
+ type
398
+ status
399
+ referId
400
+ }
401
+ }
402
+ }
325
403
  `;