@snugdesk/core 0.2.13 → 0.2.16
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 +80 -2
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +22 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1002,11 +1002,15 @@ type Interaction = {
|
|
|
1002
1002
|
last_status?: InteractionStatus | null;
|
|
1003
1003
|
metadata?: string | null;
|
|
1004
1004
|
subject?: string | null;
|
|
1005
|
-
|
|
1005
|
+
summary?: string | null;
|
|
1006
|
+
transcription?: S3Object | null;
|
|
1007
|
+
recording?: S3Object | null;
|
|
1006
1008
|
startedAt?: number | null;
|
|
1007
1009
|
completedAt?: number | null;
|
|
1008
1010
|
duration?: number | null;
|
|
1009
|
-
|
|
1011
|
+
routeConfiguration?: InteractionRouteConfiguration | null;
|
|
1012
|
+
temp_isLocked?: boolean | null;
|
|
1013
|
+
temp_isAvailableTenantIdUnion?: string | null;
|
|
1010
1014
|
createdAt: number;
|
|
1011
1015
|
updatedAt: number;
|
|
1012
1016
|
deletedAt?: number | null;
|
|
@@ -1118,11 +1122,13 @@ type CreateInteractionInput = {
|
|
|
1118
1122
|
last_status?: InteractionStatus | null;
|
|
1119
1123
|
metadata?: string | null;
|
|
1120
1124
|
subject?: string | null;
|
|
1121
|
-
|
|
1125
|
+
summary?: string | null;
|
|
1126
|
+
transcription?: S3Object | null;
|
|
1127
|
+
recording?: S3Object | null;
|
|
1122
1128
|
startedAt?: number | null;
|
|
1123
1129
|
completedAt?: number | null;
|
|
1124
1130
|
duration?: number | null;
|
|
1125
|
-
|
|
1131
|
+
routeConfiguration?: InteractionRouteConfigurationInput | null;
|
|
1126
1132
|
temp_isLocked?: boolean | null;
|
|
1127
1133
|
temp_isAvailableTenantIdUnion?: string | null;
|
|
1128
1134
|
createdAt: number;
|
|
@@ -1147,11 +1153,13 @@ type UpdateInteractionInput = {
|
|
|
1147
1153
|
last_status?: InteractionStatus | null;
|
|
1148
1154
|
metadata?: string | null;
|
|
1149
1155
|
subject?: string | null;
|
|
1150
|
-
|
|
1156
|
+
summary?: string | null;
|
|
1157
|
+
transcription?: S3Object | null;
|
|
1158
|
+
recording?: S3Object | null;
|
|
1151
1159
|
startedAt?: number | null;
|
|
1152
1160
|
completedAt?: number | null;
|
|
1153
1161
|
duration?: number | null;
|
|
1154
|
-
|
|
1162
|
+
routeConfiguration?: InteractionRouteConfigurationInput | null;
|
|
1155
1163
|
temp_isLocked?: boolean | null;
|
|
1156
1164
|
temp_isAvailableTenantIdUnion?: string | null;
|
|
1157
1165
|
createdAt?: number | null;
|
|
@@ -1175,10 +1183,10 @@ type ModelInteractionConditionInput = {
|
|
|
1175
1183
|
last_status?: ModelInteractionStatusInput | null;
|
|
1176
1184
|
metadata?: ModelStringInput | null;
|
|
1177
1185
|
subject?: ModelStringInput | null;
|
|
1186
|
+
summary?: ModelStringInput | null;
|
|
1178
1187
|
startedAt?: ModelIntInput | null;
|
|
1179
1188
|
completedAt?: ModelIntInput | null;
|
|
1180
1189
|
duration?: ModelIntInput | null;
|
|
1181
|
-
summary?: ModelStringInput | null;
|
|
1182
1190
|
temp_isLocked?: ModelBooleanInput | null;
|
|
1183
1191
|
temp_isAvailableTenantIdUnion?: ModelStringInput | null;
|
|
1184
1192
|
createdAt?: ModelIntInput | null;
|
|
@@ -1206,10 +1214,10 @@ type ModelInteractionFilterInput = {
|
|
|
1206
1214
|
last_status?: ModelInteractionStatusInput | null;
|
|
1207
1215
|
metadata?: ModelStringInput | null;
|
|
1208
1216
|
subject?: ModelStringInput | null;
|
|
1217
|
+
summary?: ModelStringInput | null;
|
|
1209
1218
|
startedAt?: ModelIntInput | null;
|
|
1210
1219
|
completedAt?: ModelIntInput | null;
|
|
1211
1220
|
duration?: ModelIntInput | null;
|
|
1212
|
-
summary?: ModelStringInput | null;
|
|
1213
1221
|
temp_isLocked?: ModelBooleanInput | null;
|
|
1214
1222
|
temp_isAvailableTenantIdUnion?: ModelStringInput | null;
|
|
1215
1223
|
createdAt?: ModelIntInput | null;
|
|
@@ -1827,7 +1835,7 @@ type __SubscriptionContainer$4 = {
|
|
|
1827
1835
|
OnEntityConversationByTenantId: EntityConversation;
|
|
1828
1836
|
};
|
|
1829
1837
|
declare const FIELDS_ENTITY_CONVERSATION = "\n id\n tenantId\n entityId\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
1830
|
-
declare const FIELDS_ENTITY_CONVERSATION_EXPANDED = "\n id\n tenantId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n interactions (limit: 1, sortDirection: DESC) {\n items {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n
|
|
1838
|
+
declare const FIELDS_ENTITY_CONVERSATION_EXPANDED = "\n id\n tenantId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n interactions (limit: 1, sortDirection: DESC) {\n items {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n summary\n transcription\n recording\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n messages (limit: 1, sortDirection: DESC) {\n items {\n \n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n\n }\n nextToken\n }\n";
|
|
1831
1839
|
declare class EntityConversationService {
|
|
1832
1840
|
private readonly appSyncService;
|
|
1833
1841
|
constructor(appSyncService: AppSyncHelperService);
|
|
@@ -1884,9 +1892,9 @@ type __SubscriptionContainer$3 = {
|
|
|
1884
1892
|
OnInteractionMessageByEntityConversationId: InteractionMessage;
|
|
1885
1893
|
};
|
|
1886
1894
|
declare const FIELDS_INTERACTION_HOST = "\n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n";
|
|
1887
|
-
declare const FIELDS_INTERACTION = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n
|
|
1888
|
-
declare const FIELDS_INTERACTION_EXPANDED = "\n id\n tenantId\n widgetId\n widget {\n \n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n entityConversationId\n entityConversation {\n id\n tenantId\n entityId\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n
|
|
1889
|
-
declare const FIELDS_INTERACTION_INVITEE = "\n id\n interactionId\n interaction {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n
|
|
1895
|
+
declare const FIELDS_INTERACTION = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n summary\n transcription\n recording\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n createdAt\n updatedAt\n deletedAt\n";
|
|
1896
|
+
declare const FIELDS_INTERACTION_EXPANDED = "\n id\n tenantId\n widgetId\n widget {\n \n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n entityConversationId\n entityConversation {\n id\n tenantId\n entityId\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n summary\n transcription\n recording\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n";
|
|
1897
|
+
declare const FIELDS_INTERACTION_INVITEE = "\n id\n interactionId\n interaction {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n summary\n transcription\n recording\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n createdAt\n updatedAt\n deletedAt\n\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n userId\n isAdministrator\n temp_expiringAt\n expiredAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
1890
1898
|
declare const FIELDS_INTERACTION_ATTENDEE = "\n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
1891
1899
|
declare const FIELDS_INTERACTION_ATTENDEE_EXPANDED = "\n id\n interactionId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n interactionWidgetSessionId\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n userId\n user {\n \n id\n externalId\n tenantId\n email\n name\n image {\n key\n bucket\n location\n }\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
1892
1900
|
declare const FIELDS_INTERACTION_MESSAGE_ATTACHMENT = "\n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n";
|
|
@@ -1905,6 +1913,8 @@ declare class InteractionService {
|
|
|
1905
1913
|
CreateInteractionMessage(input: CreateInteractionMessageInput, condition?: ModelInteractionMessageConditionInput): Promise<InteractionMessage>;
|
|
1906
1914
|
CreateInteractionMessageAttachment(input: CreateInteractionMessageAttachmentInput, condition?: ModelInteractionMessageAttachmentConditionInput): Promise<InteractionMessageAttachment>;
|
|
1907
1915
|
ListInteractionsByTenantId(tenantId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionFilterInput, limit?: number, nextToken?: string): Promise<List<Interaction>>;
|
|
1916
|
+
ListInteractionsByEntityId(entityId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionFilterInput, limit?: number, nextToken?: string): Promise<List<Interaction>>;
|
|
1917
|
+
ListInteractionsByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionFilterInput, limit?: number, nextToken?: string): Promise<List<Interaction>>;
|
|
1908
1918
|
ListInteractionInviteesByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionInviteeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionInvitee>>;
|
|
1909
1919
|
ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
|
|
1910
1920
|
ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snugdesk/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Core utility and session management library required for all Snugdesk widgets. Handles authentication, configuration, and shared services.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": ">=19.0.0",
|