@snugdesk/core 0.2.16 → 0.2.18
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/fesm2022/snugdesk-core.mjs +49 -8
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +9 -6
- package/package.json +1 -1
|
@@ -1904,8 +1904,12 @@ const FIELDS_INTERACTION = `
|
|
|
1904
1904
|
metadata
|
|
1905
1905
|
subject
|
|
1906
1906
|
summary
|
|
1907
|
-
transcription
|
|
1908
|
-
|
|
1907
|
+
transcription {
|
|
1908
|
+
location
|
|
1909
|
+
}
|
|
1910
|
+
recording {
|
|
1911
|
+
location
|
|
1912
|
+
}
|
|
1909
1913
|
routeConfiguration {
|
|
1910
1914
|
teamId
|
|
1911
1915
|
routingLogic
|
|
@@ -1972,8 +1976,12 @@ const FIELDS_INTERACTION_EXPANDED = `
|
|
|
1972
1976
|
metadata
|
|
1973
1977
|
subject
|
|
1974
1978
|
summary
|
|
1975
|
-
transcription
|
|
1976
|
-
|
|
1979
|
+
transcription {
|
|
1980
|
+
location
|
|
1981
|
+
}
|
|
1982
|
+
recording {
|
|
1983
|
+
location
|
|
1984
|
+
}
|
|
1977
1985
|
routeConfiguration {
|
|
1978
1986
|
teamId
|
|
1979
1987
|
routingLogic
|
|
@@ -1996,7 +2004,7 @@ const FIELDS_INTERACTION_INVITEE = `
|
|
|
1996
2004
|
}
|
|
1997
2005
|
entityId
|
|
1998
2006
|
entity {
|
|
1999
|
-
${
|
|
2007
|
+
${FIELDS_ENTITY_MINIMAL}
|
|
2000
2008
|
}
|
|
2001
2009
|
teamId
|
|
2002
2010
|
userId
|
|
@@ -2578,6 +2586,16 @@ class InteractionService {
|
|
|
2578
2586
|
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2579
2587
|
return response.data.listInteractionMessageAttachmentsByInteractionMessageId;
|
|
2580
2588
|
}
|
|
2589
|
+
OnInteractionByEntityIdListener(entityId) {
|
|
2590
|
+
const statement = `subscription OnInteractionByEntityId($entityId: ID!) {
|
|
2591
|
+
OnInteractionByEntityId(entityId: $entityId) {
|
|
2592
|
+
${FIELDS_INTERACTION}
|
|
2593
|
+
}
|
|
2594
|
+
}`;
|
|
2595
|
+
const gqlAPIServiceArguments = { entityId };
|
|
2596
|
+
return this.appSyncService.subscribe(statement, gqlAPIServiceArguments);
|
|
2597
|
+
/* as Observable<SubscriptionResponse<Pick<__SubscriptionContainer, 'OnInteractionByEntityId'>>>; */
|
|
2598
|
+
}
|
|
2581
2599
|
OnInteractionInviteeByUserIdListener(userId) {
|
|
2582
2600
|
const statement = `subscription OnInteractionInviteeByUserId($userId: ID!) {
|
|
2583
2601
|
OnInteractionInviteeByUserId(userId: $userId) {
|
|
@@ -2611,6 +2629,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2611
2629
|
}], ctorParameters: () => [{ type: AppSyncHelperService }] });
|
|
2612
2630
|
|
|
2613
2631
|
const FIELDS_ENTITY_CONVERSATION = `
|
|
2632
|
+
id
|
|
2633
|
+
tenantId
|
|
2634
|
+
entityId
|
|
2635
|
+
entity {
|
|
2636
|
+
${FIELDS_ENTITY}
|
|
2637
|
+
}
|
|
2638
|
+
entityAddress
|
|
2639
|
+
interactionChannel
|
|
2640
|
+
interactionProvider
|
|
2641
|
+
isCampaignEngaged
|
|
2642
|
+
campaignId
|
|
2643
|
+
lastCampaignFlowNodeId
|
|
2644
|
+
lastInteractionMessageId
|
|
2645
|
+
metadata
|
|
2646
|
+
lastActivityAt
|
|
2647
|
+
lastMessageAt
|
|
2648
|
+
archivedAt
|
|
2649
|
+
blockedAt
|
|
2650
|
+
createdAt
|
|
2651
|
+
updatedAt
|
|
2652
|
+
deletedAt
|
|
2653
|
+
`;
|
|
2654
|
+
const FIELDS_ENTITY_CONVERSATION_MINIMAL = `
|
|
2614
2655
|
id
|
|
2615
2656
|
tenantId
|
|
2616
2657
|
entityId
|
|
@@ -2683,7 +2724,7 @@ class EntityConversationService {
|
|
|
2683
2724
|
async CreateEntityConversation(input, condition) {
|
|
2684
2725
|
const statement = `mutation CreateEntityConversation($input: CreateEntityConversationInput!, $condition: ModelEntityConversationConditionInput) {
|
|
2685
2726
|
createEntityConversation(input: $input, condition: $condition) {
|
|
2686
|
-
${
|
|
2727
|
+
${FIELDS_ENTITY_CONVERSATION_MINIMAL}
|
|
2687
2728
|
}
|
|
2688
2729
|
}`;
|
|
2689
2730
|
const gqlAPIServiceArguments = { input };
|
|
@@ -2696,7 +2737,7 @@ class EntityConversationService {
|
|
|
2696
2737
|
async UpdateEntityConversation(input, condition) {
|
|
2697
2738
|
const statement = `mutation UpdateEntityConversation($input: UpdateEntityConversationInput!, $condition: ModelEntityConversationConditionInput) {
|
|
2698
2739
|
updateEntityConversation(input: $input, condition: $condition) {
|
|
2699
|
-
${
|
|
2740
|
+
${FIELDS_ENTITY_CONVERSATION_MINIMAL}
|
|
2700
2741
|
}
|
|
2701
2742
|
}`;
|
|
2702
2743
|
const gqlAPIServiceArguments = { input };
|
|
@@ -3568,5 +3609,5 @@ class CustomValidators {
|
|
|
3568
3609
|
* Generated bundle index. Do not edit.
|
|
3569
3610
|
*/
|
|
3570
3611
|
|
|
3571
|
-
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
3612
|
+
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
3572
3613
|
//# sourceMappingURL=snugdesk-core.mjs.map
|