@snugdesk/core 0.2.31 → 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 +25 -22
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +15 -12
- 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"
|
|
@@ -2537,19 +2538,21 @@ interface EmailMessageMetadata {
|
|
|
2537
2538
|
spamReason?: string;
|
|
2538
2539
|
}
|
|
2539
2540
|
|
|
2540
|
-
interface
|
|
2541
|
+
interface InteractionMessageTemplate {
|
|
2541
2542
|
id: string;
|
|
2542
2543
|
tenantId: string;
|
|
2543
2544
|
name: string;
|
|
2544
2545
|
subject?: string;
|
|
2545
2546
|
body: string;
|
|
2547
|
+
metadata?: Record<string, any>;
|
|
2546
2548
|
variables?: Record<string, any>[];
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
createdByUserId: string;
|
|
2549
|
+
interactionChannel?: string;
|
|
2550
|
+
interactionProvider?: string;
|
|
2550
2551
|
createdAt: number;
|
|
2551
2552
|
updatedAt: number;
|
|
2552
2553
|
deletedAt?: number;
|
|
2554
|
+
updatedByUserId: string;
|
|
2555
|
+
updatedByUserSessionId?: string;
|
|
2553
2556
|
}
|
|
2554
2557
|
|
|
2555
2558
|
interface EmailConversationFilters {
|
|
@@ -2603,16 +2606,16 @@ declare class EmailConversationResolverService {
|
|
|
2603
2606
|
static ɵprov: i0.ɵɵInjectableDeclaration<EmailConversationResolverService>;
|
|
2604
2607
|
}
|
|
2605
2608
|
|
|
2606
|
-
declare const
|
|
2607
|
-
declare class
|
|
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 {
|
|
2608
2611
|
private appSyncHelperService;
|
|
2609
2612
|
constructor(appSyncHelperService: AppSyncHelperService);
|
|
2610
|
-
listTemplates(tenantId: string,
|
|
2611
|
-
getTemplate(templateId: string): Promise<
|
|
2613
|
+
listTemplates(tenantId: string, interactionChannel?: string): Promise<List<InteractionMessageTemplate>>;
|
|
2614
|
+
getTemplate(templateId: string): Promise<InteractionMessageTemplate | null>;
|
|
2612
2615
|
renderTemplate(body: string, variables: Record<string, any>): string;
|
|
2613
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2614
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2616
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionMessageTemplateService, never>;
|
|
2617
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionMessageTemplateService>;
|
|
2615
2618
|
}
|
|
2616
2619
|
|
|
2617
|
-
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CommonService, CustomPipesModule, CustomValidators, DomainNamePipe, EmailConversationResolverService, EmailEntityResolverService,
|
|
2618
|
-
export type { AmplifyConfig, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, CreateUserInput, Currency, EmailConversationFilters, EmailHeaders, EmailMessageMetadata,
|
|
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",
|