@consilioweb/payload-support 0.10.0 → 0.11.0
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/dist/components/TicketConversation/locales/en.json +25 -1
- package/dist/components/TicketConversation/locales/fr.json +25 -1
- package/dist/index.cjs +799 -4
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +800 -6
- package/dist/styles/TicketDetail.module.scss +294 -0
- package/dist/views/TicketDetailView/client.cjs +455 -249
- package/dist/views/TicketDetailView/client.js +456 -250
- package/dist/views/TicketInboxView/client.cjs +10 -9
- package/dist/views/TicketInboxView/client.js +2 -1
- package/package.json +1 -1
- package/src/collections/ClientSummaries.ts +16 -0
- package/src/collections/TicketCollaborators.ts +93 -0
- package/src/collections/TicketFeedback.ts +116 -0
- package/src/collections/TicketMessages.ts +9 -0
- package/src/collections/Tickets.ts +31 -1
- package/src/collections/index.ts +2 -0
- package/src/components/TicketConversation/locales/en.json +25 -1
- package/src/components/TicketConversation/locales/fr.json +25 -1
- package/src/endpoints/escalate.ts +44 -0
- package/src/endpoints/index.ts +15 -0
- package/src/endpoints/invite-collaborator.ts +215 -0
- package/src/endpoints/kb-search.ts +156 -0
- package/src/endpoints/ticket-feedback.ts +104 -0
- package/src/endpoints/transfer-ticket.ts +248 -0
- package/src/index.ts +1 -0
- package/src/plugin.ts +4 -0
- package/src/portal/auth/ChatWidget.tsx +11 -0
- package/src/portal/auth/dashboard/DashboardClient.tsx +85 -99
- package/src/portal/auth/dashboard/page.tsx +11 -2
- package/src/portal/auth/tickets/detail/TransferAndInviteActions.tsx +402 -0
- package/src/portal/auth/tickets/detail/page.tsx +122 -23
- package/src/portal/auth/tickets/new/KbDeflection.tsx +128 -0
- package/src/portal/auth/tickets/new/page.tsx +203 -100
- package/src/portal/locales/en.json +5 -0
- package/src/portal/locales/fr.json +5 -0
- package/src/styles/TicketDetail.module.scss +294 -0
- package/src/types.ts +19 -0
- package/src/utils/slugs.ts +2 -0
- package/src/views/TicketDetailView/client.tsx +346 -89
- package/src/views/TicketInboxView/client.tsx +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -115,6 +115,7 @@ interface SupportPluginConfig {
|
|
|
115
115
|
slaPolicies?: string;
|
|
116
116
|
macros?: string;
|
|
117
117
|
ticketStatuses?: string;
|
|
118
|
+
ticketFeedback?: string;
|
|
118
119
|
};
|
|
119
120
|
/** Admin notification collection slug (default: 'admin-notifications') */
|
|
120
121
|
notificationSlug?: string;
|
|
@@ -235,6 +236,7 @@ interface CollectionSlugs {
|
|
|
235
236
|
slaPolicies: string;
|
|
236
237
|
macros: string;
|
|
237
238
|
ticketStatuses: string;
|
|
239
|
+
ticketFeedback: string;
|
|
238
240
|
users: string;
|
|
239
241
|
media: string;
|
|
240
242
|
}
|
|
@@ -398,4 +400,16 @@ declare function createMacrosCollection(slugs: CollectionSlugs): CollectionConfi
|
|
|
398
400
|
|
|
399
401
|
declare function createTicketStatusesCollection(slugs: CollectionSlugs): CollectionConfig;
|
|
400
402
|
|
|
401
|
-
|
|
403
|
+
/**
|
|
404
|
+
* Collaborators (viewers/contributors) added to a ticket by the primary client owner.
|
|
405
|
+
*
|
|
406
|
+
* Created via the `/api/support/tickets/:id/invite` endpoint. Each row links a
|
|
407
|
+
* ticket to a `support-clients` (the invitee) with a role: `viewer` (read-only)
|
|
408
|
+
* or `collaborator` (can post messages, when wired up later).
|
|
409
|
+
*
|
|
410
|
+
* Access logic on Tickets/TicketMessages should OR this table to grant access
|
|
411
|
+
* to invited clients without losing existing ownership-based rules.
|
|
412
|
+
*/
|
|
413
|
+
declare function createTicketCollaboratorsCollection(slugs: CollectionSlugs): CollectionConfig;
|
|
414
|
+
|
|
415
|
+
export { type AIProviderConfig, type ActivityEntryData, type CannedResponseData, type ClientData, type CollectionSlugs, DEFAULT_FEATURES, DEFAULT_SETTINGS, DEFAULT_SLUGS, DEFAULT_USER_PREFS, type EmailConfig, type MessageData, type SatisfactionSurveyData, type SupportFeatures, type SupportPluginConfig, type SupportSettings, type TicketData, type TicketSynthesisResult, type TimeEntryData, type UserPrefs, calculateBusinessHoursDeadline, createAdminNotification, createAssignSlaDeadlines, createAuthLogsCollection, createCannedResponsesCollection, createChatMessagesCollection, createCheckSlaOnReply, createCheckSlaOnResolve, createEmailLogsCollection, createKnowledgeBaseCollection, createMacrosCollection, createPendingEmailsCollection, createSatisfactionSurveysCollection, createSlaPoliciesCollection, createSupportClientsCollection, createTicketActivityLogCollection, createTicketCollaboratorsCollection, createTicketMessagesCollection, createTicketStatusEmail, createTicketStatusesCollection, createTicketsCollection, createTimeEntriesCollection, createWebhookEndpointsCollection, dispatchWebhook, generateTicketSynthesis, readSupportSettings, readUserPrefs, resolveSlugs, supportPlugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ interface SupportPluginConfig {
|
|
|
115
115
|
slaPolicies?: string;
|
|
116
116
|
macros?: string;
|
|
117
117
|
ticketStatuses?: string;
|
|
118
|
+
ticketFeedback?: string;
|
|
118
119
|
};
|
|
119
120
|
/** Admin notification collection slug (default: 'admin-notifications') */
|
|
120
121
|
notificationSlug?: string;
|
|
@@ -235,6 +236,7 @@ interface CollectionSlugs {
|
|
|
235
236
|
slaPolicies: string;
|
|
236
237
|
macros: string;
|
|
237
238
|
ticketStatuses: string;
|
|
239
|
+
ticketFeedback: string;
|
|
238
240
|
users: string;
|
|
239
241
|
media: string;
|
|
240
242
|
}
|
|
@@ -398,4 +400,16 @@ declare function createMacrosCollection(slugs: CollectionSlugs): CollectionConfi
|
|
|
398
400
|
|
|
399
401
|
declare function createTicketStatusesCollection(slugs: CollectionSlugs): CollectionConfig;
|
|
400
402
|
|
|
401
|
-
|
|
403
|
+
/**
|
|
404
|
+
* Collaborators (viewers/contributors) added to a ticket by the primary client owner.
|
|
405
|
+
*
|
|
406
|
+
* Created via the `/api/support/tickets/:id/invite` endpoint. Each row links a
|
|
407
|
+
* ticket to a `support-clients` (the invitee) with a role: `viewer` (read-only)
|
|
408
|
+
* or `collaborator` (can post messages, when wired up later).
|
|
409
|
+
*
|
|
410
|
+
* Access logic on Tickets/TicketMessages should OR this table to grant access
|
|
411
|
+
* to invited clients without losing existing ownership-based rules.
|
|
412
|
+
*/
|
|
413
|
+
declare function createTicketCollaboratorsCollection(slugs: CollectionSlugs): CollectionConfig;
|
|
414
|
+
|
|
415
|
+
export { type AIProviderConfig, type ActivityEntryData, type CannedResponseData, type ClientData, type CollectionSlugs, DEFAULT_FEATURES, DEFAULT_SETTINGS, DEFAULT_SLUGS, DEFAULT_USER_PREFS, type EmailConfig, type MessageData, type SatisfactionSurveyData, type SupportFeatures, type SupportPluginConfig, type SupportSettings, type TicketData, type TicketSynthesisResult, type TimeEntryData, type UserPrefs, calculateBusinessHoursDeadline, createAdminNotification, createAssignSlaDeadlines, createAuthLogsCollection, createCannedResponsesCollection, createChatMessagesCollection, createCheckSlaOnReply, createCheckSlaOnResolve, createEmailLogsCollection, createKnowledgeBaseCollection, createMacrosCollection, createPendingEmailsCollection, createSatisfactionSurveysCollection, createSlaPoliciesCollection, createSupportClientsCollection, createTicketActivityLogCollection, createTicketCollaboratorsCollection, createTicketMessagesCollection, createTicketStatusEmail, createTicketStatusesCollection, createTicketsCollection, createTimeEntriesCollection, createWebhookEndpointsCollection, dispatchWebhook, generateTicketSynthesis, readSupportSettings, readUserPrefs, resolveSlugs, supportPlugin };
|