@snugdesk/core 0.2.17 → 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 +11 -1
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2004,7 +2004,7 @@ const FIELDS_INTERACTION_INVITEE = `
|
|
|
2004
2004
|
}
|
|
2005
2005
|
entityId
|
|
2006
2006
|
entity {
|
|
2007
|
-
${
|
|
2007
|
+
${FIELDS_ENTITY_MINIMAL}
|
|
2008
2008
|
}
|
|
2009
2009
|
teamId
|
|
2010
2010
|
userId
|
|
@@ -2586,6 +2586,16 @@ class InteractionService {
|
|
|
2586
2586
|
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2587
2587
|
return response.data.listInteractionMessageAttachmentsByInteractionMessageId;
|
|
2588
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
|
+
}
|
|
2589
2599
|
OnInteractionInviteeByUserIdListener(userId) {
|
|
2590
2600
|
const statement = `subscription OnInteractionInviteeByUserId($userId: ID!) {
|
|
2591
2601
|
OnInteractionInviteeByUserId(userId: $userId) {
|