@snugdesk/core 0.2.30 → 0.2.32
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 +371 -90
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +246 -114
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -359,6 +359,7 @@ type S3Object = {
|
|
|
359
359
|
};
|
|
360
360
|
declare enum ProcessingStatus {
|
|
361
361
|
PENDING = "PENDING",
|
|
362
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
362
363
|
SUCCESS = "SUCCESS",
|
|
363
364
|
FAILED = "FAILED",
|
|
364
365
|
RETRYING = "RETRYING"
|
|
@@ -1300,6 +1301,8 @@ declare enum InteractionStatus {
|
|
|
1300
1301
|
}
|
|
1301
1302
|
declare enum InteractionProvider {
|
|
1302
1303
|
AVAYA_IPO = "AVAYA_IPO",
|
|
1304
|
+
EMAIL_SMTP = "EMAIL_SMTP",
|
|
1305
|
+
EMAIL_SES = "EMAIL_SES",
|
|
1303
1306
|
FACEBOOK = "FACEBOOK",
|
|
1304
1307
|
INSTAGRAM = "INSTAGRAM",
|
|
1305
1308
|
OZONETEL = "OZONETEL",
|
|
@@ -1901,115 +1904,6 @@ type InteractionRouteConfigurationInput = {
|
|
|
1901
1904
|
maxWaitTimeoutSeconds?: number | null;
|
|
1902
1905
|
};
|
|
1903
1906
|
|
|
1904
|
-
type EntityConversation = {
|
|
1905
|
-
id: string;
|
|
1906
|
-
tenantId: string;
|
|
1907
|
-
entityId?: string | null;
|
|
1908
|
-
entity?: Entity | null;
|
|
1909
|
-
entityAddress: string;
|
|
1910
|
-
interactionChannel: InteractionChannel;
|
|
1911
|
-
interactionProvider: InteractionProvider;
|
|
1912
|
-
isCampaignEngaged: boolean;
|
|
1913
|
-
campaignId?: string | null;
|
|
1914
|
-
lastCampaignFlowNodeId?: string | null;
|
|
1915
|
-
lastInteractionMessageId?: string | null;
|
|
1916
|
-
metadata?: string | null;
|
|
1917
|
-
lastActivityAt?: number | null;
|
|
1918
|
-
lastMessageAt?: number | null;
|
|
1919
|
-
archivedAt?: number | null;
|
|
1920
|
-
blockedAt?: number | null;
|
|
1921
|
-
createdAt: number;
|
|
1922
|
-
updatedAt: number;
|
|
1923
|
-
deletedAt?: number | null;
|
|
1924
|
-
interactions?: List<Interaction> | null;
|
|
1925
|
-
messages?: List<InteractionMessage> | null;
|
|
1926
|
-
};
|
|
1927
|
-
type CreateEntityConversationInput = {
|
|
1928
|
-
id?: string | null;
|
|
1929
|
-
tenantId: string;
|
|
1930
|
-
entityId?: string | null;
|
|
1931
|
-
entityAddress: string;
|
|
1932
|
-
interactionChannel: InteractionChannel;
|
|
1933
|
-
interactionProvider: InteractionProvider;
|
|
1934
|
-
isCampaignEngaged: boolean;
|
|
1935
|
-
campaignId?: string | null;
|
|
1936
|
-
lastCampaignFlowNodeId?: string | null;
|
|
1937
|
-
lastInteractionMessageId?: string | null;
|
|
1938
|
-
metadata?: string | null;
|
|
1939
|
-
lastActivityAt?: number | null;
|
|
1940
|
-
lastMessageAt?: number | null;
|
|
1941
|
-
archivedAt?: number | null;
|
|
1942
|
-
blockedAt?: number | null;
|
|
1943
|
-
createdAt: number;
|
|
1944
|
-
updatedAt: number;
|
|
1945
|
-
deletedAt?: number | null;
|
|
1946
|
-
};
|
|
1947
|
-
type UpdateEntityConversationInput = {
|
|
1948
|
-
id: string;
|
|
1949
|
-
tenantId?: string | null;
|
|
1950
|
-
entityId?: string | null;
|
|
1951
|
-
entityAddress?: string | null;
|
|
1952
|
-
interactionChannel?: InteractionChannel | null;
|
|
1953
|
-
interactionProvider?: InteractionProvider | null;
|
|
1954
|
-
isCampaignEngaged?: boolean | null;
|
|
1955
|
-
campaignId?: string | null;
|
|
1956
|
-
lastCampaignFlowNodeId?: string | null;
|
|
1957
|
-
lastInteractionMessageId?: string | null;
|
|
1958
|
-
metadata?: string | null;
|
|
1959
|
-
lastActivityAt?: number | null;
|
|
1960
|
-
lastMessageAt?: number | null;
|
|
1961
|
-
archivedAt?: number | null;
|
|
1962
|
-
blockedAt?: number | null;
|
|
1963
|
-
createdAt?: number | null;
|
|
1964
|
-
updatedAt?: number | null;
|
|
1965
|
-
deletedAt?: number | null;
|
|
1966
|
-
};
|
|
1967
|
-
type ModelEntityConversationConditionInput = {
|
|
1968
|
-
tenantId?: ModelIDInput | null;
|
|
1969
|
-
entityId?: ModelIDInput | null;
|
|
1970
|
-
entityAddress?: ModelStringInput | null;
|
|
1971
|
-
interactionChannel?: ModelInteractionChannelInput | null;
|
|
1972
|
-
interactionProvider?: ModelInteractionProviderInput | null;
|
|
1973
|
-
isCampaignEngaged?: ModelBooleanInput | null;
|
|
1974
|
-
campaignId?: ModelIDInput | null;
|
|
1975
|
-
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
1976
|
-
lastInteractionMessageId?: ModelIDInput | null;
|
|
1977
|
-
metadata?: ModelStringInput | null;
|
|
1978
|
-
lastActivityAt?: ModelIntInput | null;
|
|
1979
|
-
lastMessageAt?: ModelIntInput | null;
|
|
1980
|
-
archivedAt?: ModelIntInput | null;
|
|
1981
|
-
blockedAt?: ModelIntInput | null;
|
|
1982
|
-
createdAt?: ModelIntInput | null;
|
|
1983
|
-
updatedAt?: ModelIntInput | null;
|
|
1984
|
-
deletedAt?: ModelIntInput | null;
|
|
1985
|
-
and?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
1986
|
-
or?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
1987
|
-
not?: ModelEntityConversationConditionInput | null;
|
|
1988
|
-
};
|
|
1989
|
-
type ModelEntityConversationFilterInput = {
|
|
1990
|
-
id?: ModelIDInput | null;
|
|
1991
|
-
tenantId?: ModelIDInput | null;
|
|
1992
|
-
entityId?: ModelIDInput | null;
|
|
1993
|
-
entityAddress?: ModelStringInput | null;
|
|
1994
|
-
interactionChannel?: ModelInteractionChannelInput | null;
|
|
1995
|
-
interactionProvider?: ModelInteractionProviderInput | null;
|
|
1996
|
-
isCampaignEngaged?: ModelBooleanInput | null;
|
|
1997
|
-
campaignId?: ModelIDInput | null;
|
|
1998
|
-
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
1999
|
-
lastInteractionMessageId?: ModelIDInput | null;
|
|
2000
|
-
metadata?: ModelStringInput | null;
|
|
2001
|
-
lastActivityAt?: ModelIntInput | null;
|
|
2002
|
-
lastMessageAt?: ModelIntInput | null;
|
|
2003
|
-
archivedAt?: ModelIntInput | null;
|
|
2004
|
-
blockedAt?: ModelIntInput | null;
|
|
2005
|
-
createdAt?: ModelIntInput | null;
|
|
2006
|
-
updatedAt?: ModelIntInput | null;
|
|
2007
|
-
deletedAt?: ModelIntInput | null;
|
|
2008
|
-
and?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2009
|
-
or?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2010
|
-
not?: ModelEntityConversationFilterInput | null;
|
|
2011
|
-
};
|
|
2012
|
-
|
|
2013
1907
|
type Ticket = {
|
|
2014
1908
|
id: string;
|
|
2015
1909
|
externalId?: string | null;
|
|
@@ -2205,6 +2099,126 @@ type ModelTicketTypeFilterInput = {
|
|
|
2205
2099
|
not?: ModelTicketTypeFilterInput | null;
|
|
2206
2100
|
};
|
|
2207
2101
|
|
|
2102
|
+
type EntityConversation = {
|
|
2103
|
+
id: string;
|
|
2104
|
+
tenantId: string;
|
|
2105
|
+
entityId?: string | null;
|
|
2106
|
+
entity?: Entity | null;
|
|
2107
|
+
entityAddress: string;
|
|
2108
|
+
interactionChannel: InteractionChannel;
|
|
2109
|
+
interactionProvider: InteractionProvider;
|
|
2110
|
+
isCampaignEngaged: boolean;
|
|
2111
|
+
campaignId?: string | null;
|
|
2112
|
+
lastCampaignFlowNodeId?: string | null;
|
|
2113
|
+
lastInteractionMessageId?: string | null;
|
|
2114
|
+
metadata?: string | null;
|
|
2115
|
+
lastActivityAt?: number | null;
|
|
2116
|
+
lastMessageAt?: number | null;
|
|
2117
|
+
archivedAt?: number | null;
|
|
2118
|
+
blockedAt?: number | null;
|
|
2119
|
+
isTicketCreated: boolean;
|
|
2120
|
+
ticketId?: string | null;
|
|
2121
|
+
ticket?: Ticket | null;
|
|
2122
|
+
createdAt: number;
|
|
2123
|
+
updatedAt: number;
|
|
2124
|
+
deletedAt?: number | null;
|
|
2125
|
+
interactions?: List<Interaction> | null;
|
|
2126
|
+
messages?: List<InteractionMessage> | null;
|
|
2127
|
+
};
|
|
2128
|
+
type CreateEntityConversationInput = {
|
|
2129
|
+
id?: string | null;
|
|
2130
|
+
tenantId: string;
|
|
2131
|
+
entityId?: string | null;
|
|
2132
|
+
entityAddress: string;
|
|
2133
|
+
interactionChannel: InteractionChannel;
|
|
2134
|
+
interactionProvider: InteractionProvider;
|
|
2135
|
+
isCampaignEngaged: boolean;
|
|
2136
|
+
campaignId?: string | null;
|
|
2137
|
+
lastCampaignFlowNodeId?: string | null;
|
|
2138
|
+
lastInteractionMessageId?: string | null;
|
|
2139
|
+
metadata?: string | null;
|
|
2140
|
+
lastActivityAt?: number | null;
|
|
2141
|
+
lastMessageAt?: number | null;
|
|
2142
|
+
archivedAt?: number | null;
|
|
2143
|
+
blockedAt?: number | null;
|
|
2144
|
+
isTicketCreated: boolean;
|
|
2145
|
+
ticketId?: string | null;
|
|
2146
|
+
createdAt: number;
|
|
2147
|
+
updatedAt: number;
|
|
2148
|
+
deletedAt?: number | null;
|
|
2149
|
+
};
|
|
2150
|
+
type UpdateEntityConversationInput = {
|
|
2151
|
+
id: string;
|
|
2152
|
+
tenantId?: string | null;
|
|
2153
|
+
entityId?: string | null;
|
|
2154
|
+
entityAddress?: string | null;
|
|
2155
|
+
interactionChannel?: InteractionChannel | null;
|
|
2156
|
+
interactionProvider?: InteractionProvider | null;
|
|
2157
|
+
isCampaignEngaged?: boolean | null;
|
|
2158
|
+
campaignId?: string | null;
|
|
2159
|
+
lastCampaignFlowNodeId?: string | null;
|
|
2160
|
+
lastInteractionMessageId?: string | null;
|
|
2161
|
+
metadata?: string | null;
|
|
2162
|
+
lastActivityAt?: number | null;
|
|
2163
|
+
lastMessageAt?: number | null;
|
|
2164
|
+
archivedAt?: number | null;
|
|
2165
|
+
blockedAt?: number | null;
|
|
2166
|
+
isTicketCreated?: boolean | null;
|
|
2167
|
+
ticketId?: string | null;
|
|
2168
|
+
createdAt?: number | null;
|
|
2169
|
+
updatedAt?: number | null;
|
|
2170
|
+
deletedAt?: number | null;
|
|
2171
|
+
};
|
|
2172
|
+
type ModelEntityConversationConditionInput = {
|
|
2173
|
+
tenantId?: ModelIDInput | null;
|
|
2174
|
+
entityId?: ModelIDInput | null;
|
|
2175
|
+
entityAddress?: ModelStringInput | null;
|
|
2176
|
+
interactionChannel?: ModelInteractionChannelInput | null;
|
|
2177
|
+
interactionProvider?: ModelInteractionProviderInput | null;
|
|
2178
|
+
isCampaignEngaged?: ModelBooleanInput | null;
|
|
2179
|
+
campaignId?: ModelIDInput | null;
|
|
2180
|
+
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
2181
|
+
lastInteractionMessageId?: ModelIDInput | null;
|
|
2182
|
+
metadata?: ModelStringInput | null;
|
|
2183
|
+
lastActivityAt?: ModelIntInput | null;
|
|
2184
|
+
lastMessageAt?: ModelIntInput | null;
|
|
2185
|
+
archivedAt?: ModelIntInput | null;
|
|
2186
|
+
blockedAt?: ModelIntInput | null;
|
|
2187
|
+
isTicketCreated?: ModelBooleanInput | null;
|
|
2188
|
+
ticketId?: ModelIDInput | null;
|
|
2189
|
+
createdAt?: ModelIntInput | null;
|
|
2190
|
+
updatedAt?: ModelIntInput | null;
|
|
2191
|
+
deletedAt?: ModelIntInput | null;
|
|
2192
|
+
and?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
2193
|
+
or?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
2194
|
+
not?: ModelEntityConversationConditionInput | null;
|
|
2195
|
+
};
|
|
2196
|
+
type ModelEntityConversationFilterInput = {
|
|
2197
|
+
id?: ModelIDInput | null;
|
|
2198
|
+
tenantId?: ModelIDInput | null;
|
|
2199
|
+
entityId?: ModelIDInput | null;
|
|
2200
|
+
entityAddress?: ModelStringInput | null;
|
|
2201
|
+
interactionChannel?: ModelInteractionChannelInput | null;
|
|
2202
|
+
interactionProvider?: ModelInteractionProviderInput | null;
|
|
2203
|
+
isCampaignEngaged?: ModelBooleanInput | null;
|
|
2204
|
+
campaignId?: ModelIDInput | null;
|
|
2205
|
+
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
2206
|
+
lastInteractionMessageId?: ModelIDInput | null;
|
|
2207
|
+
metadata?: ModelStringInput | null;
|
|
2208
|
+
lastActivityAt?: ModelIntInput | null;
|
|
2209
|
+
lastMessageAt?: ModelIntInput | null;
|
|
2210
|
+
archivedAt?: ModelIntInput | null;
|
|
2211
|
+
blockedAt?: ModelIntInput | null;
|
|
2212
|
+
isTicketCreated?: ModelBooleanInput | null;
|
|
2213
|
+
ticketId?: ModelIDInput | null;
|
|
2214
|
+
createdAt?: ModelIntInput | null;
|
|
2215
|
+
updatedAt?: ModelIntInput | null;
|
|
2216
|
+
deletedAt?: ModelIntInput | null;
|
|
2217
|
+
and?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2218
|
+
or?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2219
|
+
not?: ModelEntityConversationFilterInput | null;
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2208
2222
|
declare const FIELDS_LANGUAGE = "\n code\n nameEn\n nameLocal\n";
|
|
2209
2223
|
declare const FIELDS_COUNTRY = "\n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n";
|
|
2210
2224
|
declare const FIELDS_PHONE_NUMBER = "\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n";
|
|
@@ -2249,9 +2263,9 @@ declare class EntityService {
|
|
|
2249
2263
|
type __SubscriptionContainer$4 = {
|
|
2250
2264
|
OnEntityConversationByTenantId: EntityConversation;
|
|
2251
2265
|
};
|
|
2252
|
-
declare const FIELDS_ENTITY_CONVERSATION = "\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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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";
|
|
2253
|
-
declare const FIELDS_ENTITY_CONVERSATION_MINIMAL = "\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";
|
|
2254
|
-
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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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 subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\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";
|
|
2266
|
+
declare const FIELDS_ENTITY_CONVERSATION = "\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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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 isTicketCreated\n ticketId\n createdAt\n updatedAt\n deletedAt\n";
|
|
2267
|
+
declare const FIELDS_ENTITY_CONVERSATION_MINIMAL = "\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 isTicketCreated\n ticketId\n createdAt\n updatedAt\n deletedAt\n";
|
|
2268
|
+
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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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 isTicketCreated\n ticketId\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 subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\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";
|
|
2255
2269
|
declare class EntityConversationService {
|
|
2256
2270
|
private readonly appSyncService;
|
|
2257
2271
|
constructor(appSyncService: AppSyncHelperService);
|
|
@@ -2485,5 +2499,123 @@ declare class CustomValidators {
|
|
|
2485
2499
|
static trimLength(minLength: number): ValidatorFn;
|
|
2486
2500
|
}
|
|
2487
2501
|
|
|
2488
|
-
|
|
2489
|
-
|
|
2502
|
+
interface OAuthConfig {
|
|
2503
|
+
clientId: string;
|
|
2504
|
+
clientSecret: string;
|
|
2505
|
+
refreshToken: string;
|
|
2506
|
+
accessToken?: string;
|
|
2507
|
+
tokenExpiry?: number;
|
|
2508
|
+
}
|
|
2509
|
+
interface MailboxConfig {
|
|
2510
|
+
displayName: string;
|
|
2511
|
+
sendingMethod: 'SMTP' | 'SES';
|
|
2512
|
+
smtpHost?: string;
|
|
2513
|
+
smtpPort?: number;
|
|
2514
|
+
smtpUsername?: string;
|
|
2515
|
+
smtpPassword?: string;
|
|
2516
|
+
smtpEncryption?: 'TLS' | 'SSL';
|
|
2517
|
+
oauthConfig?: OAuthConfig;
|
|
2518
|
+
signature?: string;
|
|
2519
|
+
isDefault: boolean;
|
|
2520
|
+
isActive: boolean;
|
|
2521
|
+
replyToAddress?: string;
|
|
2522
|
+
sesConfigurationSetName?: string;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
interface EmailMessageMetadata {
|
|
2526
|
+
emailMessageId: string;
|
|
2527
|
+
inReplyTo?: string;
|
|
2528
|
+
references?: string[];
|
|
2529
|
+
cc?: string[];
|
|
2530
|
+
bcc?: string[];
|
|
2531
|
+
subject: string;
|
|
2532
|
+
from: string;
|
|
2533
|
+
to: string[];
|
|
2534
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
2535
|
+
sesMessageId?: string;
|
|
2536
|
+
deliveryStatus?: 'SENT' | 'DELIVERED' | 'BOUNCED' | 'FAILED';
|
|
2537
|
+
isSpam?: boolean;
|
|
2538
|
+
spamReason?: string;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
interface InteractionMessageTemplate {
|
|
2542
|
+
id: string;
|
|
2543
|
+
tenantId: string;
|
|
2544
|
+
name: string;
|
|
2545
|
+
subject?: string;
|
|
2546
|
+
body: string;
|
|
2547
|
+
metadata?: Record<string, any>;
|
|
2548
|
+
variables?: Record<string, any>[];
|
|
2549
|
+
interactionChannel?: string;
|
|
2550
|
+
interactionProvider?: string;
|
|
2551
|
+
createdAt: number;
|
|
2552
|
+
updatedAt: number;
|
|
2553
|
+
deletedAt?: number;
|
|
2554
|
+
updatedByUserId: string;
|
|
2555
|
+
updatedByUserSessionId?: string;
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
interface EmailConversationFilters {
|
|
2559
|
+
endpointId?: string;
|
|
2560
|
+
isRead?: boolean;
|
|
2561
|
+
hasTicket?: boolean;
|
|
2562
|
+
isSpam?: boolean;
|
|
2563
|
+
dateFrom?: number;
|
|
2564
|
+
dateTo?: number;
|
|
2565
|
+
searchQuery?: string;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
declare function sanitizeHtmlBody(html: string): string;
|
|
2569
|
+
|
|
2570
|
+
declare class EmailEntityResolverService {
|
|
2571
|
+
private entityService;
|
|
2572
|
+
constructor(entityService: EntityService);
|
|
2573
|
+
resolveEntity(tenantId: string, senderEmail: string, senderName?: string): Promise<Entity | null>;
|
|
2574
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmailEntityResolverService, never>;
|
|
2575
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EmailEntityResolverService>;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
interface EmailHeaders {
|
|
2579
|
+
messageId: string;
|
|
2580
|
+
inReplyTo?: string;
|
|
2581
|
+
references?: string[];
|
|
2582
|
+
subject: string;
|
|
2583
|
+
to?: string[];
|
|
2584
|
+
cc?: string[];
|
|
2585
|
+
}
|
|
2586
|
+
declare class EmailConversationResolverService {
|
|
2587
|
+
private entityConversationService;
|
|
2588
|
+
private interactionService;
|
|
2589
|
+
constructor(entityConversationService: EntityConversationService, interactionService: InteractionService);
|
|
2590
|
+
/**
|
|
2591
|
+
* Resolves an existing conversation or returns null if no match found.
|
|
2592
|
+
* 5-step matching:
|
|
2593
|
+
* 1. Parse encoded reply address (reply+{tenantId}_{conversationId}@reply.platform.com)
|
|
2594
|
+
* 2. Match In-Reply-To header → InteractionMessage.metadata.emailMessageId
|
|
2595
|
+
* 3. Match References header → conversation metadata.threadReferences
|
|
2596
|
+
* 4. Normalize subject (remove Re:, Fwd:, FW:) → match conversation metadata.subject
|
|
2597
|
+
* 5. No match → return null (caller creates new EntityConversation)
|
|
2598
|
+
*/
|
|
2599
|
+
resolveConversation(tenantId: string, entityId: string, emailHeaders: EmailHeaders, endpointId: string): Promise<EntityConversation | null>;
|
|
2600
|
+
parseReplyAddress(recipients: string[]): string | null;
|
|
2601
|
+
normalizeSubject(subject: string): string;
|
|
2602
|
+
private matchByInReplyTo;
|
|
2603
|
+
private matchByReferences;
|
|
2604
|
+
private matchBySubject;
|
|
2605
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmailConversationResolverService, never>;
|
|
2606
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EmailConversationResolverService>;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
declare const FIELDS_INTERACTION_MESSAGE_TEMPLATE = "\n id\n tenantId\n name\n subject\n body\n metadata\n variables\n interactionChannel\n InteractionProvider\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
|
|
2610
|
+
declare class InteractionMessageTemplateService {
|
|
2611
|
+
private appSyncHelperService;
|
|
2612
|
+
constructor(appSyncHelperService: AppSyncHelperService);
|
|
2613
|
+
listTemplates(tenantId: string, interactionChannel?: string): Promise<List<InteractionMessageTemplate>>;
|
|
2614
|
+
getTemplate(templateId: string): Promise<InteractionMessageTemplate | null>;
|
|
2615
|
+
renderTemplate(body: string, variables: Record<string, any>): string;
|
|
2616
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionMessageTemplateService, never>;
|
|
2617
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionMessageTemplateService>;
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CommonService, CustomPipesModule, CustomValidators, DomainNamePipe, EmailConversationResolverService, EmailEntityResolverService, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_COUNTRY, 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_ENDPOINT_MINIMAL, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MESSAGE_TEMPLATE, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_LANGUAGE, FIELDS_PHONE_NUMBER, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TENANT_COMPLIANCE_DOCUMENT, FIELDS_TENANT_EXPANDED, FIELDS_TENANT_MINIMAL, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionMessageTemplateService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantComplianceDocumentStatus, TenantComplianceDocumentType, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig, sanitizeHtmlBody };
|
|
2621
|
+
export type { AmplifyConfig, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, CreateUserInput, Currency, EmailConversationFilters, EmailHeaders, EmailMessageMetadata, EncryptedStorageKeys, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionMessageTemplate, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetUserSetting, Language, List, MailboxConfig, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionEndpointConditionInput, ModelInteractionEndpointFilterInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelProcessingStatusInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTenantComplianceDocumentConditionInput, ModelTenantComplianceDocumentFilterInput, ModelTenantComplianceDocumentStatusInput, ModelTenantComplianceDocumentTypeInput, ModelTenantConditionInput, ModelTicketConditionInput, ModelTicketFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserConditionInput, ModelUserFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, ModelUserTypeInput, OAuthConfig, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantBillingInformation, TenantComplianceDocument, TenantContactInformation, TenantPreferences, TenantSSOConfiguration, TenantSecurity, Ticket, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionEndpointInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateTenantComplianceDocumentInput, UpdateTenantInput, UpdateUserInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snugdesk/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32",
|
|
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",
|