@longvansoftware/storefront-js-client 2.3.4 → 2.3.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.
|
@@ -11,3 +11,4 @@ export declare const GET_CONNECTOR_BY_RESOURCE: import("graphql").DocumentNode;
|
|
|
11
11
|
export declare const GET_TAG: import("graphql").DocumentNode;
|
|
12
12
|
export declare const SEARCH_TOPIC: import("graphql").DocumentNode;
|
|
13
13
|
export declare const GET_MY_WORK_EFFORT_TODAY: import("graphql").DocumentNode;
|
|
14
|
+
export declare const GET_MESSAGES: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_MY_WORK_EFFORT_TODAY = exports.SEARCH_TOPIC = exports.GET_TAG = exports.GET_CONNECTOR_BY_RESOURCE = 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;
|
|
3
|
+
exports.GET_MESSAGES = exports.GET_MY_WORK_EFFORT_TODAY = exports.SEARCH_TOPIC = exports.GET_TAG = exports.GET_CONNECTOR_BY_RESOURCE = 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
5
|
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
|
6
6
|
query GetListOpportunity(
|
|
@@ -630,3 +630,35 @@ exports.GET_MY_WORK_EFFORT_TODAY = (0, graphql_tag_1.gql) `
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
`;
|
|
633
|
+
exports.GET_MESSAGES = (0, graphql_tag_1.gql) `
|
|
634
|
+
query GetMessages($topicId: String!, $pageSize: Int, $pageNumber: Int) {
|
|
635
|
+
getMessages(
|
|
636
|
+
topicId: $topicId
|
|
637
|
+
pageSize: $pageSize
|
|
638
|
+
pageNumber: $pageNumber
|
|
639
|
+
) {
|
|
640
|
+
total
|
|
641
|
+
data {
|
|
642
|
+
id
|
|
643
|
+
createdStamp
|
|
644
|
+
updatedStamp
|
|
645
|
+
updatedBy
|
|
646
|
+
type
|
|
647
|
+
format
|
|
648
|
+
content
|
|
649
|
+
referId
|
|
650
|
+
referSource
|
|
651
|
+
attachId
|
|
652
|
+
createdBy {
|
|
653
|
+
id
|
|
654
|
+
fullName
|
|
655
|
+
name
|
|
656
|
+
type
|
|
657
|
+
phone
|
|
658
|
+
email
|
|
659
|
+
}
|
|
660
|
+
attachmentUrl
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
`;
|
|
@@ -28,9 +28,10 @@ export declare class CrmService extends Service {
|
|
|
28
28
|
updateConnectorDescription(connectorId: string, description: string, updatedBy: string): Promise<any>;
|
|
29
29
|
getTags(connectorId: string): Promise<any>;
|
|
30
30
|
removeTag(connectorId: string, tagId: string, removedBy: string): Promise<any>;
|
|
31
|
-
searchTopic(
|
|
31
|
+
searchTopic(filterTopicRequest: any, pageSize: number, currentPage: number): Promise<any>;
|
|
32
32
|
closeTopic(id: string, updatedBy: string): Promise<any>;
|
|
33
33
|
createTopic(socialAppId: String, customerId: string, message: string): Promise<any>;
|
|
34
34
|
getTopicByCustomerId(filterTopicRequest: any, pageSize: number, currentPage: number): Promise<any>;
|
|
35
35
|
getMyWorkEffortToday(performerId: string, source: string): Promise<any>;
|
|
36
|
+
getMessages(topicId: String, pageSize: Number, pageNumber: Number): Promise<any>;
|
|
36
37
|
}
|
|
@@ -473,11 +473,11 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
-
searchTopic(
|
|
476
|
+
searchTopic(filterTopicRequest, pageSize, currentPage) {
|
|
477
477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
478
478
|
const query = queries_1.SEARCH_TOPIC;
|
|
479
479
|
const variables = {
|
|
480
|
-
filterTopicRequest:
|
|
480
|
+
filterTopicRequest: filterTopicRequest,
|
|
481
481
|
partnerId: this.orgId,
|
|
482
482
|
pageSize,
|
|
483
483
|
currentPage,
|
|
@@ -559,5 +559,22 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
559
559
|
}
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
+
getMessages(topicId, pageSize, pageNumber) {
|
|
563
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
564
|
+
const query = queries_1.GET_MESSAGES;
|
|
565
|
+
const variables = {
|
|
566
|
+
topicId,
|
|
567
|
+
pageSize,
|
|
568
|
+
pageNumber,
|
|
569
|
+
};
|
|
570
|
+
try {
|
|
571
|
+
const response = yield this.graphqlQuery(query, variables);
|
|
572
|
+
return response.getMessages;
|
|
573
|
+
}
|
|
574
|
+
catch (error) {
|
|
575
|
+
throw error;
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
}
|
|
562
579
|
}
|
|
563
580
|
exports.CrmService = CrmService;
|