@longvansoftware/service-js-client 1.13.9 → 1.14.0
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/src/graphql/crm/queries.d.ts +0 -3
- package/dist/src/graphql/crm/queries.js +1 -28
- package/dist/src/graphql/crm_camping/queries.d.ts +3 -0
- package/dist/src/graphql/crm_camping/queries.js +28 -1
- package/dist/src/lib/crm/index.d.ts +0 -3
- package/dist/src/lib/crm/index.js +0 -55
- package/dist/src/lib/crm_camping/index.d.ts +3 -0
- package/dist/src/lib/crm_camping/index.js +55 -0
- package/package.json +1 -1
@@ -3,9 +3,6 @@ export declare const GET_LIST_TODO: import("graphql").DocumentNode;
|
|
3
3
|
export declare const GET_LIST_WORK_EFFORT_TYPE: import("graphql").DocumentNode;
|
4
4
|
export declare const GET_LIST_TICKET: import("graphql").DocumentNode;
|
5
5
|
export declare const GET_TICKET_BY_ID: import("graphql").DocumentNode;
|
6
|
-
export declare const GET_AVERAGE_RATING: import("graphql").DocumentNode;
|
7
|
-
export declare const GET_URL_EVALUATION: import("graphql").DocumentNode;
|
8
|
-
export declare const GET_NUMBER_OF_TICKET_EVALUATION: import("graphql").DocumentNode;
|
9
6
|
export declare const GET_ATTACHMENT_BY_WORK_EFFORT_ID: import("graphql").DocumentNode;
|
10
7
|
export declare const GET_LIST_COMMENT: import("graphql").DocumentNode;
|
11
8
|
export declare const GET_RESUME_ID_BY_RESOURCE: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.
|
3
|
+
exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = 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
5
|
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
6
6
|
query GetListOpportunity(
|
@@ -218,33 +218,6 @@ exports.GET_TICKET_BY_ID = (0, graphql_tag_1.gql) `
|
|
218
218
|
}
|
219
219
|
}
|
220
220
|
`;
|
221
|
-
exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
|
222
|
-
query GetAverageRating($targetIds: [String]!, $customerId: String, $evaluationType: String, $orgId: String) {
|
223
|
-
getAverageRating(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId,) {
|
224
|
-
url
|
225
|
-
targetId
|
226
|
-
evaluationType
|
227
|
-
averageRating
|
228
|
-
haveEvaluation
|
229
|
-
}
|
230
|
-
}
|
231
|
-
`;
|
232
|
-
exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
|
233
|
-
query GetUrlEvaluation($targetIds: [String]!, $customerId: String, $evaluationType: String, $orgId: String) {
|
234
|
-
getUrlEvaluation(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId,) {
|
235
|
-
url
|
236
|
-
targetId
|
237
|
-
evaluationType
|
238
|
-
averageRating
|
239
|
-
haveEvaluation
|
240
|
-
}
|
241
|
-
}
|
242
|
-
`;
|
243
|
-
exports.GET_NUMBER_OF_TICKET_EVALUATION = (0, graphql_tag_1.gql) `
|
244
|
-
query GetNumberOfTicketEvaluation($customerId: String, $orgId: String) {
|
245
|
-
getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId,)
|
246
|
-
}
|
247
|
-
`;
|
248
221
|
exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = (0, graphql_tag_1.gql) `
|
249
222
|
query GetAttachmentByWorkEffortId(
|
250
223
|
$partyId: String!
|
@@ -2,3 +2,6 @@ export declare const SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION: import("graphql")
|
|
2
2
|
export declare const GET_CAMPAIGN_ACTION_BY_ID: import("graphql").DocumentNode;
|
3
3
|
export declare const SUGGEST_VOUCHER: import("graphql").DocumentNode;
|
4
4
|
export declare const GET_VOUCHERS: import("graphql").DocumentNode;
|
5
|
+
export declare const GET_AVERAGE_RATING: import("graphql").DocumentNode;
|
6
|
+
export declare const GET_URL_EVALUATION: import("graphql").DocumentNode;
|
7
|
+
export declare const GET_NUMBER_OF_TICKET_EVALUATION: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_VOUCHERS = exports.SUGGEST_VOUCHER = exports.GET_CAMPAIGN_ACTION_BY_ID = exports.SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION = void 0;
|
3
|
+
exports.GET_NUMBER_OF_TICKET_EVALUATION = exports.GET_URL_EVALUATION = exports.GET_AVERAGE_RATING = exports.GET_VOUCHERS = exports.SUGGEST_VOUCHER = exports.GET_CAMPAIGN_ACTION_BY_ID = exports.SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION = (0, graphql_tag_1.gql) `
|
6
6
|
query SearchProductQuantityPromotionAction(
|
@@ -182,3 +182,30 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
182
182
|
}
|
183
183
|
}
|
184
184
|
`;
|
185
|
+
exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
|
186
|
+
query GetAverageRating($targetIds: [String]!, $customerId: String!, $evaluationType: String!, $orgId: String!) {
|
187
|
+
getAverageRating(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId) {
|
188
|
+
url
|
189
|
+
targetId
|
190
|
+
evaluationType
|
191
|
+
averageRating
|
192
|
+
haveEvaluation
|
193
|
+
}
|
194
|
+
}
|
195
|
+
`;
|
196
|
+
exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
|
197
|
+
query GetUrlEvaluation($targetIds: [String]!, $customerId: String!, $evaluationType: String!, $orgId: String!) {
|
198
|
+
getUrlEvaluation(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId,) {
|
199
|
+
url
|
200
|
+
targetId
|
201
|
+
evaluationType
|
202
|
+
averageRating
|
203
|
+
haveEvaluation
|
204
|
+
}
|
205
|
+
}
|
206
|
+
`;
|
207
|
+
exports.GET_NUMBER_OF_TICKET_EVALUATION = (0, graphql_tag_1.gql) `
|
208
|
+
query GetNumberOfTicketEvaluation($customerId: String!, $orgId: String!) {
|
209
|
+
getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId,)
|
210
|
+
}
|
211
|
+
`;
|
@@ -16,9 +16,6 @@ export declare class CrmService extends Service {
|
|
16
16
|
getListTicket(performerId: string, getTicketRequest: getTicketRequest): Promise<any>;
|
17
17
|
addTicket(performerId: string, addTicketRequest: AddTicketRequest, addAttachmentRequest: [AddAttachmentRequest]): Promise<any>;
|
18
18
|
getTicketById(ticketId: string): Promise<any>;
|
19
|
-
getAverageRating(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
|
20
|
-
getUrlEvaluation(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
|
21
|
-
getNumberOfTicketEvaluation(customerId: string): Promise<any>;
|
22
19
|
getAttachmentByWorkEffortId(workEffortIds: [string]): Promise<any>;
|
23
20
|
getListComment(getCommentRequest: GetCommentRequest): Promise<any>;
|
24
21
|
addComment(params: any): Promise<any>;
|
@@ -240,61 +240,6 @@ class CrmService extends serviceSDK_1.Service {
|
|
240
240
|
}
|
241
241
|
});
|
242
242
|
}
|
243
|
-
getAverageRating(targetIds, customerId, evaluationType) {
|
244
|
-
return __awaiter(this, void 0, void 0, function* () {
|
245
|
-
const query = queries_1.GET_AVERAGE_RATING;
|
246
|
-
const variables = {
|
247
|
-
targetIds,
|
248
|
-
customerId,
|
249
|
-
evaluationType,
|
250
|
-
orgId: this.orgId
|
251
|
-
};
|
252
|
-
try {
|
253
|
-
const response = yield this.graphqlQueryV2(query, variables);
|
254
|
-
return response.getAverageRating;
|
255
|
-
}
|
256
|
-
catch (error) {
|
257
|
-
console.log(`Error in getAverageRating: ${error}`);
|
258
|
-
throw error;
|
259
|
-
}
|
260
|
-
});
|
261
|
-
}
|
262
|
-
getUrlEvaluation(targetIds, customerId, evaluationType) {
|
263
|
-
return __awaiter(this, void 0, void 0, function* () {
|
264
|
-
const query = queries_1.GET_URL_EVALUATION;
|
265
|
-
const variables = {
|
266
|
-
targetIds,
|
267
|
-
customerId,
|
268
|
-
evaluationType,
|
269
|
-
orgId: this.orgId
|
270
|
-
};
|
271
|
-
try {
|
272
|
-
const response = yield this.graphqlQueryV2(query, variables);
|
273
|
-
return response.getUrlEvaluation;
|
274
|
-
}
|
275
|
-
catch (error) {
|
276
|
-
console.log(`Error in getUrlEvaluation: ${error}`);
|
277
|
-
throw error;
|
278
|
-
}
|
279
|
-
});
|
280
|
-
}
|
281
|
-
getNumberOfTicketEvaluation(customerId) {
|
282
|
-
return __awaiter(this, void 0, void 0, function* () {
|
283
|
-
const query = queries_1.GET_NUMBER_OF_TICKET_EVALUATION;
|
284
|
-
const variables = {
|
285
|
-
customerId,
|
286
|
-
orgId: this.orgId
|
287
|
-
};
|
288
|
-
try {
|
289
|
-
const response = yield this.graphqlQueryV2(query, variables);
|
290
|
-
return response.getNumberOfTicketEvaluation;
|
291
|
-
}
|
292
|
-
catch (error) {
|
293
|
-
console.log(`Error in getNumberOfTicketEvaluation: ${error}`);
|
294
|
-
throw error;
|
295
|
-
}
|
296
|
-
});
|
297
|
-
}
|
298
243
|
getAttachmentByWorkEffortId(workEffortIds) {
|
299
244
|
return __awaiter(this, void 0, void 0, function* () {
|
300
245
|
const query = queries_1.GET_ATTACHMENT_BY_WORK_EFFORT_ID;
|
@@ -8,4 +8,7 @@ export declare class CrmCampingService extends Service {
|
|
8
8
|
getCampaignActionById(campaignActionId: string): Promise<any>;
|
9
9
|
suggestVoucher(customerId: string, scope: string | null, isNewCustomer: boolean): Promise<any>;
|
10
10
|
searchVouchers(campaignId: String, campaignActionId: String, campaignActionType: String, customerId: String, pageNumber: number, pageSize: number): Promise<any>;
|
11
|
+
getAverageRating(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
|
12
|
+
getUrlEvaluation(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
|
13
|
+
getNumberOfTicketEvaluation(customerId: string): Promise<any>;
|
11
14
|
}
|
@@ -130,5 +130,60 @@ class CrmCampingService extends serviceSDK_1.Service {
|
|
130
130
|
}
|
131
131
|
});
|
132
132
|
}
|
133
|
+
getAverageRating(targetIds, customerId, evaluationType) {
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
135
|
+
const query = queries_1.GET_AVERAGE_RATING;
|
136
|
+
const variables = {
|
137
|
+
targetIds,
|
138
|
+
customerId,
|
139
|
+
evaluationType,
|
140
|
+
orgId: this.orgId
|
141
|
+
};
|
142
|
+
try {
|
143
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
144
|
+
return response.getAverageRating;
|
145
|
+
}
|
146
|
+
catch (error) {
|
147
|
+
console.log(`Error in getAverageRating: ${error}`);
|
148
|
+
throw error;
|
149
|
+
}
|
150
|
+
});
|
151
|
+
}
|
152
|
+
getUrlEvaluation(targetIds, customerId, evaluationType) {
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
154
|
+
const query = queries_1.GET_URL_EVALUATION;
|
155
|
+
const variables = {
|
156
|
+
targetIds,
|
157
|
+
customerId,
|
158
|
+
evaluationType,
|
159
|
+
orgId: this.orgId
|
160
|
+
};
|
161
|
+
try {
|
162
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
163
|
+
return response.getUrlEvaluation;
|
164
|
+
}
|
165
|
+
catch (error) {
|
166
|
+
console.log(`Error in getUrlEvaluation: ${error}`);
|
167
|
+
throw error;
|
168
|
+
}
|
169
|
+
});
|
170
|
+
}
|
171
|
+
getNumberOfTicketEvaluation(customerId) {
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
173
|
+
const query = queries_1.GET_NUMBER_OF_TICKET_EVALUATION;
|
174
|
+
const variables = {
|
175
|
+
customerId,
|
176
|
+
orgId: this.orgId
|
177
|
+
};
|
178
|
+
try {
|
179
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
180
|
+
return response.getNumberOfTicketEvaluation;
|
181
|
+
}
|
182
|
+
catch (error) {
|
183
|
+
console.log(`Error in getNumberOfTicketEvaluation: ${error}`);
|
184
|
+
throw error;
|
185
|
+
}
|
186
|
+
});
|
187
|
+
}
|
133
188
|
}
|
134
189
|
exports.CrmCampingService = CrmCampingService;
|