@longvansoftware/storefront-js-client 1.0.12 → 1.0.13
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 -93
- package/dist/src/graphql/auth/mutations.js +88 -88
- package/dist/src/graphql/crm/mutations.js +248 -248
- package/dist/src/graphql/crm/queries.js +148 -148
- package/dist/src/graphql/payment/mutations.js +30 -30
- package/dist/src/graphql/payment/queries.js +7 -7
- package/dist/src/graphql/product/queries.js +314 -314
- package/dist/src/graphql/user/mutations.js +80 -80
- package/dist/src/graphql/user/queries.js +28 -28
- package/dist/src/lib/SDK.d.ts +2 -0
- package/dist/src/lib/SDK.js +3 -2
- package/dist/src/lib/crm/index.d.ts +1 -1
- package/dist/src/lib/crm/index.js +3 -3
- package/dist/src/lib/service.js +4 -4
- package/package.json +42 -42
|
@@ -2,257 +2,257 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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;
|
|
4
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
|
-
}
|
|
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
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
|
-
}
|
|
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
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
|
-
}
|
|
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
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
|
-
}
|
|
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
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
|
-
}
|
|
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
232
|
`;
|
|
233
|
-
exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
234
|
-
mutation ($partyId: String!, $performerId: String!, $workEffortId: String!, $attachments: [AddAttachmentRequest]) {
|
|
235
|
-
addAttachmentForWorkEffort(
|
|
236
|
-
partyId: $partyId
|
|
237
|
-
performerId: $performerId
|
|
238
|
-
workEffortId: $workEffortId
|
|
239
|
-
addAttachmentRequest: $attachments
|
|
240
|
-
) {
|
|
241
|
-
id
|
|
242
|
-
createdStamp
|
|
243
|
-
updatedStamp
|
|
244
|
-
updatedBy
|
|
245
|
-
createdBy
|
|
246
|
-
partyId
|
|
247
|
-
path
|
|
248
|
-
srcId
|
|
249
|
-
srcName
|
|
250
|
-
srcPath
|
|
251
|
-
srcConfigPathId
|
|
252
|
-
name
|
|
253
|
-
fileType
|
|
254
|
-
type
|
|
255
|
-
referId
|
|
256
|
-
}
|
|
257
|
-
}
|
|
233
|
+
exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
234
|
+
mutation ($partyId: String!, $performerId: String!, $workEffortId: String!, $attachments: [AddAttachmentRequest]) {
|
|
235
|
+
addAttachmentForWorkEffort(
|
|
236
|
+
partyId: $partyId
|
|
237
|
+
performerId: $performerId
|
|
238
|
+
workEffortId: $workEffortId
|
|
239
|
+
addAttachmentRequest: $attachments
|
|
240
|
+
) {
|
|
241
|
+
id
|
|
242
|
+
createdStamp
|
|
243
|
+
updatedStamp
|
|
244
|
+
updatedBy
|
|
245
|
+
createdBy
|
|
246
|
+
partyId
|
|
247
|
+
path
|
|
248
|
+
srcId
|
|
249
|
+
srcName
|
|
250
|
+
srcPath
|
|
251
|
+
srcConfigPathId
|
|
252
|
+
name
|
|
253
|
+
fileType
|
|
254
|
+
type
|
|
255
|
+
referId
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
258
|
`;
|