@frigear-nu/inbox 0.0.0-stage → 0.0.1

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.
Files changed (174) hide show
  1. package/README.md +39 -2
  2. package/dist/module.d.mts +452 -0
  3. package/dist/module.json +9 -0
  4. package/dist/module.mjs +242 -0
  5. package/dist/runtime/access.d.ts +1 -0
  6. package/dist/runtime/access.js +62 -0
  7. package/dist/runtime/app/components/InboxChannelSlideover.d.vue.ts +12 -0
  8. package/dist/runtime/app/components/InboxChannelSlideover.vue +171 -0
  9. package/dist/runtime/app/components/InboxChannelSlideover.vue.d.ts +12 -0
  10. package/dist/runtime/app/components/InboxComposer.d.vue.ts +12 -0
  11. package/dist/runtime/app/components/InboxComposer.vue +71 -0
  12. package/dist/runtime/app/components/InboxComposer.vue.d.ts +12 -0
  13. package/dist/runtime/app/components/InboxConversation.d.vue.ts +8 -0
  14. package/dist/runtime/app/components/InboxConversation.vue +82 -0
  15. package/dist/runtime/app/components/InboxConversation.vue.d.ts +8 -0
  16. package/dist/runtime/app/components/InboxHideSlideover.d.vue.ts +12 -0
  17. package/dist/runtime/app/components/InboxHideSlideover.vue +54 -0
  18. package/dist/runtime/app/components/InboxHideSlideover.vue.d.ts +12 -0
  19. package/dist/runtime/app/components/InboxMailboxSlideover.d.vue.ts +11 -0
  20. package/dist/runtime/app/components/InboxMailboxSlideover.vue +125 -0
  21. package/dist/runtime/app/components/InboxMailboxSlideover.vue.d.ts +11 -0
  22. package/dist/runtime/app/composables/index.d.ts +6 -0
  23. package/dist/runtime/app/composables/index.js +5 -0
  24. package/dist/runtime/app/composables/useInboxChannelActions.d.ts +15 -0
  25. package/dist/runtime/app/composables/useInboxChannelActions.js +45 -0
  26. package/dist/runtime/app/composables/useInboxLinks.d.ts +11 -0
  27. package/dist/runtime/app/composables/useInboxLinks.js +17 -0
  28. package/dist/runtime/app/composables/useInboxMailboxActions.d.ts +14 -0
  29. package/dist/runtime/app/composables/useInboxMailboxActions.js +47 -0
  30. package/dist/runtime/app/composables/useInboxThreadActions.d.ts +29 -0
  31. package/dist/runtime/app/composables/useInboxThreadActions.js +76 -0
  32. package/dist/runtime/app/composables/useInboxTranslate.d.ts +3 -0
  33. package/dist/runtime/app/composables/useInboxTranslate.js +7 -0
  34. package/dist/runtime/app/dashboard/InboxMine.d.vue.ts +3 -0
  35. package/dist/runtime/app/dashboard/InboxMine.vue +25 -0
  36. package/dist/runtime/app/dashboard/InboxMine.vue.d.ts +3 -0
  37. package/dist/runtime/app/dashboard/InboxUnassigned.d.vue.ts +3 -0
  38. package/dist/runtime/app/dashboard/InboxUnassigned.vue +25 -0
  39. package/dist/runtime/app/dashboard/InboxUnassigned.vue.d.ts +3 -0
  40. package/dist/runtime/app/pages/admin-settings.d.vue.ts +3 -0
  41. package/dist/runtime/app/pages/admin-settings.vue +161 -0
  42. package/dist/runtime/app/pages/admin-settings.vue.d.ts +3 -0
  43. package/dist/runtime/app/pages/admin-thread.d.vue.ts +3 -0
  44. package/dist/runtime/app/pages/admin-thread.vue +234 -0
  45. package/dist/runtime/app/pages/admin-thread.vue.d.ts +3 -0
  46. package/dist/runtime/app/pages/admin.d.vue.ts +3 -0
  47. package/dist/runtime/app/pages/admin.vue +211 -0
  48. package/dist/runtime/app/pages/admin.vue.d.ts +3 -0
  49. package/dist/runtime/channels/email.d.ts +2 -0
  50. package/dist/runtime/channels/email.js +8 -0
  51. package/dist/runtime/channels/form.d.ts +2 -0
  52. package/dist/runtime/channels/form.js +9 -0
  53. package/dist/runtime/channels/instagram.d.ts +2 -0
  54. package/dist/runtime/channels/instagram.js +5 -0
  55. package/dist/runtime/channels/messenger.d.ts +2 -0
  56. package/dist/runtime/channels/messenger.js +5 -0
  57. package/dist/runtime/channels/whatsapp.d.ts +2 -0
  58. package/dist/runtime/channels/whatsapp.js +5 -0
  59. package/dist/runtime/i18n/lang/da.json +247 -0
  60. package/dist/runtime/i18n/lang/en.json +247 -0
  61. package/dist/runtime/menus.d.ts +2 -0
  62. package/dist/runtime/menus.js +19 -0
  63. package/dist/runtime/server/db/schema.postgresql.d.ts +1216 -0
  64. package/dist/runtime/server/db/schema.postgresql.js +154 -0
  65. package/dist/runtime/server/db/schema.sqlite.d.ts +1294 -0
  66. package/dist/runtime/server/db/schema.sqlite.js +154 -0
  67. package/dist/runtime/server/plugins/forms.d.ts +2 -0
  68. package/dist/runtime/server/plugins/forms.js +55 -0
  69. package/dist/runtime/server/plugins/links.d.ts +2 -0
  70. package/dist/runtime/server/plugins/links.js +18 -0
  71. package/dist/runtime/server/plugins/notify.d.ts +2 -0
  72. package/dist/runtime/server/plugins/notify.js +24 -0
  73. package/dist/runtime/server/plugins/seed.d.ts +2 -0
  74. package/dist/runtime/server/plugins/seed.js +7 -0
  75. package/dist/runtime/server/plugins/teams.d.ts +2 -0
  76. package/dist/runtime/server/plugins/teams.js +3 -0
  77. package/dist/runtime/server/policies.d.ts +2 -0
  78. package/dist/runtime/server/policies.js +15 -0
  79. package/dist/runtime/server/routes/admin/audit.get.d.ts +2 -0
  80. package/dist/runtime/server/routes/admin/audit.get.js +43 -0
  81. package/dist/runtime/server/routes/admin/channel.delete.d.ts +2 -0
  82. package/dist/runtime/server/routes/admin/channel.delete.js +13 -0
  83. package/dist/runtime/server/routes/admin/channel.patch.d.ts +2 -0
  84. package/dist/runtime/server/routes/admin/channel.patch.js +24 -0
  85. package/dist/runtime/server/routes/admin/channels.get.d.ts +2 -0
  86. package/dist/runtime/server/routes/admin/channels.get.js +10 -0
  87. package/dist/runtime/server/routes/admin/channels.post.d.ts +2 -0
  88. package/dist/runtime/server/routes/admin/channels.post.js +21 -0
  89. package/dist/runtime/server/routes/admin/contact-erase.post.d.ts +2 -0
  90. package/dist/runtime/server/routes/admin/contact-erase.post.js +20 -0
  91. package/dist/runtime/server/routes/admin/contact-export.get.d.ts +2 -0
  92. package/dist/runtime/server/routes/admin/contact-export.get.js +41 -0
  93. package/dist/runtime/server/routes/admin/mailbox.delete.d.ts +2 -0
  94. package/dist/runtime/server/routes/admin/mailbox.delete.js +14 -0
  95. package/dist/runtime/server/routes/admin/mailbox.get.d.ts +2 -0
  96. package/dist/runtime/server/routes/admin/mailbox.get.js +9 -0
  97. package/dist/runtime/server/routes/admin/mailbox.patch.d.ts +2 -0
  98. package/dist/runtime/server/routes/admin/mailbox.patch.js +17 -0
  99. package/dist/runtime/server/routes/admin/mailboxes.get.d.ts +2 -0
  100. package/dist/runtime/server/routes/admin/mailboxes.get.js +5 -0
  101. package/dist/runtime/server/routes/admin/mailboxes.post.d.ts +2 -0
  102. package/dist/runtime/server/routes/admin/mailboxes.post.js +22 -0
  103. package/dist/runtime/server/routes/admin/summary.get.d.ts +2 -0
  104. package/dist/runtime/server/routes/admin/summary.get.js +19 -0
  105. package/dist/runtime/server/routes/admin/thread-assignees.get.d.ts +2 -0
  106. package/dist/runtime/server/routes/admin/thread-assignees.get.js +11 -0
  107. package/dist/runtime/server/routes/admin/thread-hide.post.d.ts +2 -0
  108. package/dist/runtime/server/routes/admin/thread-hide.post.js +23 -0
  109. package/dist/runtime/server/routes/admin/thread-messages.post.d.ts +2 -0
  110. package/dist/runtime/server/routes/admin/thread-messages.post.js +10 -0
  111. package/dist/runtime/server/routes/admin/thread-notes.post.d.ts +2 -0
  112. package/dist/runtime/server/routes/admin/thread-notes.post.js +10 -0
  113. package/dist/runtime/server/routes/admin/thread.get.d.ts +2 -0
  114. package/dist/runtime/server/routes/admin/thread.get.js +27 -0
  115. package/dist/runtime/server/routes/admin/thread.patch.d.ts +2 -0
  116. package/dist/runtime/server/routes/admin/thread.patch.js +23 -0
  117. package/dist/runtime/server/routes/admin/threads.get.d.ts +2 -0
  118. package/dist/runtime/server/routes/admin/threads.get.js +49 -0
  119. package/dist/runtime/server/routes/webhooks/channel.post.d.ts +2 -0
  120. package/dist/runtime/server/routes/webhooks/channel.post.js +11 -0
  121. package/dist/runtime/server/routes/webhooks/email.post.d.ts +2 -0
  122. package/dist/runtime/server/routes/webhooks/email.post.js +38 -0
  123. package/dist/runtime/server/routes/webhooks/meta.get.d.ts +2 -0
  124. package/dist/runtime/server/routes/webhooks/meta.get.js +19 -0
  125. package/dist/runtime/server/routes/webhooks/meta.post.d.ts +2 -0
  126. package/dist/runtime/server/routes/webhooks/meta.post.js +29 -0
  127. package/dist/runtime/server/search-index.d.ts +2 -0
  128. package/dist/runtime/server/search-index.js +7 -0
  129. package/dist/runtime/server/tasks/retention.d.ts +2 -0
  130. package/dist/runtime/server/tasks/retention.js +12 -0
  131. package/dist/runtime/server/utils/inbox-audit.d.ts +17 -0
  132. package/dist/runtime/server/utils/inbox-audit.js +35 -0
  133. package/dist/runtime/server/utils/inbox-channels.d.ts +42 -0
  134. package/dist/runtime/server/utils/inbox-channels.js +73 -0
  135. package/dist/runtime/server/utils/inbox-config.d.ts +12 -0
  136. package/dist/runtime/server/utils/inbox-config.js +8 -0
  137. package/dist/runtime/server/utils/inbox-dto.d.ts +19 -0
  138. package/dist/runtime/server/utils/inbox-dto.js +92 -0
  139. package/dist/runtime/server/utils/inbox-ingest.d.ts +43 -0
  140. package/dist/runtime/server/utils/inbox-ingest.js +136 -0
  141. package/dist/runtime/server/utils/inbox-integrations.d.ts +7 -0
  142. package/dist/runtime/server/utils/inbox-integrations.js +13 -0
  143. package/dist/runtime/server/utils/inbox-mailboxes.d.ts +14 -0
  144. package/dist/runtime/server/utils/inbox-mailboxes.js +27 -0
  145. package/dist/runtime/server/utils/inbox-registry.d.ts +7 -0
  146. package/dist/runtime/server/utils/inbox-registry.js +10 -0
  147. package/dist/runtime/server/utils/inbox-retention.d.ts +57 -0
  148. package/dist/runtime/server/utils/inbox-retention.js +167 -0
  149. package/dist/runtime/server/utils/inbox-schemas.d.ts +123 -0
  150. package/dist/runtime/server/utils/inbox-schemas.js +78 -0
  151. package/dist/runtime/server/utils/inbox-search.d.ts +8 -0
  152. package/dist/runtime/server/utils/inbox-search.js +2 -0
  153. package/dist/runtime/server/utils/inbox-seed.d.ts +9 -0
  154. package/dist/runtime/server/utils/inbox-seed.js +35 -0
  155. package/dist/runtime/server/utils/inbox-send.d.ts +25 -0
  156. package/dist/runtime/server/utils/inbox-send.js +84 -0
  157. package/dist/runtime/server/utils/inbox-tombstones.d.ts +25 -0
  158. package/dist/runtime/server/utils/inbox-tombstones.js +47 -0
  159. package/dist/runtime/server/utils/inbox-webhooks.d.ts +8 -0
  160. package/dist/runtime/server/utils/inbox-webhooks.js +10 -0
  161. package/dist/runtime/server/utils/inbox.d.ts +79 -0
  162. package/dist/runtime/server/utils/inbox.js +134 -0
  163. package/dist/runtime/utils/api.d.ts +40 -0
  164. package/dist/runtime/utils/api.js +43 -0
  165. package/dist/runtime/utils/index.d.ts +44 -0
  166. package/dist/runtime/utils/index.js +27 -0
  167. package/dist/runtime/utils/payloads.d.ts +99 -0
  168. package/dist/runtime/utils/payloads.js +173 -0
  169. package/dist/runtime/utils/registry.d.ts +17 -0
  170. package/dist/runtime/utils/registry.js +29 -0
  171. package/dist/runtime/utils/signature.d.ts +14 -0
  172. package/dist/runtime/utils/signature.js +16 -0
  173. package/dist/types.d.mts +7 -0
  174. package/package.json +118 -3
@@ -0,0 +1,247 @@
1
+ {
2
+ "inbox": {
3
+ "audit": {
4
+ "action": "What",
5
+ "actions": {
6
+ "assigned": "Assigned",
7
+ "erased": "Erased the contact",
8
+ "exported": "Exported the contact",
9
+ "hidden": "Changed who sees it",
10
+ "linked": "Linked",
11
+ "noted": "Added a note",
12
+ "replied": "Replied",
13
+ "retention": "Retention",
14
+ "status": "Changed the status",
15
+ "viewed": "Viewed"
16
+ },
17
+ "actor": "Who",
18
+ "system": "System",
19
+ "title": "Activity",
20
+ "when": "When"
21
+ },
22
+ "channels": {
23
+ "address": "Address",
24
+ "addressEmail": "The address people write to, such as support{'@'}example.com.",
25
+ "addressForm": "The slug of the form, such as contact.",
26
+ "addressInstagram": "The id of the Instagram professional account.",
27
+ "addressMessenger": "The id of the Facebook page.",
28
+ "addressOther": "The identity of the mailbox on this channel.",
29
+ "addressRequired": "Fill in the address.",
30
+ "addressWhatsapp": "The phone number id of the WhatsApp Business number (not the phone number).",
31
+ "channel": "Channel",
32
+ "connect": "Connect channel",
33
+ "connected": "Connected {address}",
34
+ "description": "Messages to this address land in the mailbox, and replies go out the same way.",
35
+ "enabled": "On",
36
+ "enabledHelp": "A channel that is off drops new messages and sends no replies.",
37
+ "fields": "Form fields",
38
+ "fieldsHelp": "The field keys of the name, email and message. Defaults: name, email, message.",
39
+ "mailbox": "Mailbox",
40
+ "mailboxRequired": "Choose a mailbox.",
41
+ "off": "Off",
42
+ "on": "On",
43
+ "replyTo": "Reply-To address",
44
+ "replyToHelp": "Where answers to replies go. Defaults to the address above, or the mailbox's email address.",
45
+ "save": "Save channel",
46
+ "saved": "Saved {address}",
47
+ "secret": "Token",
48
+ "secretMissing": "{name} missing",
49
+ "secretRef": "Secret name",
50
+ "secretRefHelp": "Upper case letters, digits and \"_\", such as WHATSAPP_TOKEN.",
51
+ "secretRefMeta": "The name of the access token in the server config: inbox.secrets.NAME, set with NUXT_INBOX_SECRETS_NAME.",
52
+ "secretRefOptional": "Only for channels that need a token of their own.",
53
+ "state": "State"
54
+ },
55
+ "composer": {
56
+ "addNote": "Add note",
57
+ "note": "Internal note",
58
+ "notePlaceholder": "Write a note for the team. It is never sent.",
59
+ "noted": "Note added",
60
+ "reply": "Reply",
61
+ "replyPlaceholder": "Write a reply. It goes out by {channel}.",
62
+ "send": "Send reply",
63
+ "sendAndClose": "Send and close",
64
+ "sent": "Reply sent by {channel}",
65
+ "title": "Answer"
66
+ },
67
+ "contact": {
68
+ "anonymous": "Unnamed contact",
69
+ "email": "Email",
70
+ "erase": "Erase contact",
71
+ "eraseDescription": "Their name, email address and phone number are removed and every message in their threads is blanked. The threads stay, empty. This cannot be undone.",
72
+ "eraseFailed": "Could not erase the contact",
73
+ "eraseTitle": "Erase {name}?",
74
+ "erased": "Erased {name}",
75
+ "erasedOn": "Erased {date}",
76
+ "export": "Export contact data",
77
+ "exportFailed": "Could not export the contact",
78
+ "exported": "Exported {name}",
79
+ "externalId": "Channel id",
80
+ "name": "Name",
81
+ "phone": "Phone",
82
+ "piiHidden": "Contact details are only shown to people allowed to see them.",
83
+ "title": "Contact",
84
+ "unnamed": "this contact"
85
+ },
86
+ "dashboard": {
87
+ "mine": "Assigned to me",
88
+ "mineHint": "Open threads waiting for your answer",
89
+ "unassigned": "Unassigned messages",
90
+ "unassignedHint": "Open threads nobody has picked up"
91
+ },
92
+ "hide": {
93
+ "description": "People without the role no longer see the thread, as if it did not exist. Its assignee is dropped when they lack the role.",
94
+ "everyone": "Everyone with access to the mailbox",
95
+ "hidden": "Hidden below {role}",
96
+ "label": "Who sees the thread",
97
+ "role": "{role} and up",
98
+ "save": "Save who sees it",
99
+ "shown": "Shown to everyone with access",
100
+ "title": "Hide from lower roles"
101
+ },
102
+ "list": {
103
+ "active": "Open and pending",
104
+ "allChannels": "All channels",
105
+ "allMailboxes": "All mailboxes",
106
+ "allStatuses": "Any status",
107
+ "anyone": "Anyone",
108
+ "assignee": "Assignee",
109
+ "channel": "Channel",
110
+ "clearFilters": "Clear filters",
111
+ "description": "Messages from the contact form, email, WhatsApp, Messenger and Instagram, answered from one place.",
112
+ "empty": "No messages yet",
113
+ "emptyDescription": "Messages show up here once a channel is connected to a mailbox you read.",
114
+ "forbidden": "You do not have access to the inbox",
115
+ "lastMessage": "Last message",
116
+ "loadFailed": "The inbox could not be loaded",
117
+ "mailbox": "Mailbox",
118
+ "mine": "Assigned to me",
119
+ "noMatches": "No threads match your filters",
120
+ "nobody": "Unassigned",
121
+ "nobodyShort": "—",
122
+ "search": "Search subjects",
123
+ "status": "Status",
124
+ "thread": "Thread",
125
+ "title": "Inbox"
126
+ },
127
+ "menu": {
128
+ "admin": {
129
+ "description": "Messages from the contact form, email, WhatsApp, Messenger and Instagram.",
130
+ "label": "Inbox"
131
+ }
132
+ },
133
+ "permissions": {
134
+ "assign": "Assign inbox threads",
135
+ "assignDescription": "Assign threads to the people who answer them.",
136
+ "channels": "Manage inbox channels",
137
+ "channelsDescription": "Connect the contact form, email addresses, WhatsApp numbers and Meta pages to mailboxes.",
138
+ "hide": "Hide inbox threads",
139
+ "hideDescription": "Hide a thread from everybody below one of your own roles.",
140
+ "inboxAuditPii": "Read the inbox audit log",
141
+ "inboxAuditPiiDescription": "See who viewed, answered, assigned, hid, exported and erased what.",
142
+ "manage": "Manage inboxes",
143
+ "manageDescription": "Create, edit and delete mailboxes, read every mailbox and erase contacts.",
144
+ "pii": "See inbox contact details",
145
+ "piiDescription": "See the email address, phone number and channel id of the people who write in, and export their data.",
146
+ "read": "Read inboxes",
147
+ "readDescription": "Read the threads of the mailboxes you have access to.",
148
+ "reply": "Answer in inboxes",
149
+ "replyDescription": "Reply to the threads of the mailboxes you have access to, write internal notes and change their status."
150
+ },
151
+ "settings": {
152
+ "addChannel": "Connect channel",
153
+ "addMailbox": "Add mailbox",
154
+ "addMailboxDescription": "A shared inbox. Connect channels to it once it is created.",
155
+ "channelOff": "Turned off {address}",
156
+ "channelOn": "Turned on {address}",
157
+ "channels": "Channels",
158
+ "channelsDescription": "Each connects an address on a channel to a mailbox. Tokens stay in the server config.",
159
+ "channelsFailed": "The channels could not be loaded",
160
+ "channelsForbidden": "Only admins signed in with a session manage channels",
161
+ "createMailbox": "Create mailbox",
162
+ "days": "{count} days",
163
+ "defaultRetention": "Default",
164
+ "deleteMailbox": "Delete mailbox",
165
+ "deleteMailboxDescription": "Its channels are disconnected. A mailbox that still has threads cannot be deleted.",
166
+ "deleteMailboxFailed": "Could not delete the mailbox",
167
+ "deleteMailboxTitle": "Delete {name}?",
168
+ "description": "Mailboxes, who reads them, and the channels that deliver into them.",
169
+ "disconnect": "Disconnect channel",
170
+ "disconnectDescription": "New messages to it are dropped. Its threads stay in the mailbox, but replies to them can no longer be sent.",
171
+ "disconnectFailed": "Could not disconnect the channel",
172
+ "disconnectTitle": "Disconnect {address}?",
173
+ "disconnected": "Disconnected {address}",
174
+ "editChannel": "Edit channel",
175
+ "editMailbox": "Edit mailbox",
176
+ "key": "Key",
177
+ "keyDescription": "A stable name for code and seeds, such as support.",
178
+ "keyHelp": "Letters, digits, \".\", \"_\" and \"-\".",
179
+ "mailboxCreated": "Created {name}",
180
+ "mailboxDeleted": "Deleted {name}",
181
+ "mailboxSaved": "Saved {name}",
182
+ "mailboxes": "Mailboxes",
183
+ "mailboxesFailed": "The mailboxes could not be loaded",
184
+ "name": "Name",
185
+ "nameRequired": "Give the mailbox a name.",
186
+ "noChannels": "No channels connected",
187
+ "noChannelsDescription": "Connect the contact form, an email address, a WhatsApp number or a Meta page.",
188
+ "noMailboxes": "No mailboxes yet",
189
+ "noMailboxesDescription": "Add a shared mailbox, such as Support, then connect channels to it.",
190
+ "owner": "Owner",
191
+ "ownerHelp": "A team mailbox is read by the team's leads.",
192
+ "ownerPlatform": "Platform",
193
+ "ownerTeam": "A team",
194
+ "readers": "Who reads it",
195
+ "readersHelp": "Staff who manage inboxes always do. A platform mailbox needs at least one rule.",
196
+ "retention": "Keep closed threads for",
197
+ "retentionHelp": "Days after the last message. Leave empty for the default.",
198
+ "retentionShort": "Keeps closed threads",
199
+ "saveMailbox": "Save mailbox",
200
+ "staffOnly": "Staff only",
201
+ "team": "Team id",
202
+ "teamLeads": "Team leads",
203
+ "title": "Inbox settings",
204
+ "turnOff": "Turn off channel",
205
+ "turnOn": "Turn on channel",
206
+ "moreGrants": "{count} more"
207
+ },
208
+ "status": {
209
+ "closed": "Closed",
210
+ "open": "Open",
211
+ "pending": "Pending"
212
+ },
213
+ "thread": {
214
+ "assignToMe": "Assign thread to me",
215
+ "assignTo": "Assign thread",
216
+ "assigneeSearch": "Search people",
217
+ "assigneesEmpty": "Nobody else can read this thread",
218
+ "cc": "Cc: {recipients}",
219
+ "assigned": "Assigned {subject}",
220
+ "backToInbox": "Back to the inbox",
221
+ "close": "Close thread",
222
+ "conversation": "Conversation",
223
+ "details": "Details",
224
+ "hiddenBelow": "Hidden below {role}",
225
+ "hide": "Hide from lower roles",
226
+ "loadFailed": "The thread could not be loaded",
227
+ "mailbox": "Mailbox",
228
+ "noSubject": "(no subject)",
229
+ "notFound": "This thread does not exist",
230
+ "noteLabel": "Internal note, not sent",
231
+ "open": "Open thread",
232
+ "removed": "Removed under the retention policy or on request.",
233
+ "reopen": "Reopen thread",
234
+ "staff": "Staff",
235
+ "started": "Started",
236
+ "statusChanged": {
237
+ "closed": "Closed {subject}",
238
+ "open": "Reopened {subject}",
239
+ "pending": "Marked {subject} as pending"
240
+ },
241
+ "unassign": "Unassign thread",
242
+ "unassigned": "Unassigned {subject}",
243
+ "visibleTo": "Seen by"
244
+ },
245
+ "tryAgain": "Try again"
246
+ }
247
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@frigear-nu/menu/types").MenuSource;
2
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { defineMenuItem, defineMenuSource, extendMenuItem } from "@frigear-nu/menu/utils";
2
+ import { useRuntimeConfig } from "#imports";
3
+ import { inboxAccess } from "./access.js";
4
+ export default defineMenuSource(() => {
5
+ const config = useRuntimeConfig().public.inbox;
6
+ if (config?.pages?.admin) {
7
+ extendMenuItem("admin.nav", defineMenuItem({
8
+ id: "inbox-admin",
9
+ label: "Inbox",
10
+ labelKey: "inbox.menu.admin.label",
11
+ description: "Messages from the contact form, email, WhatsApp, Messenger and Instagram.",
12
+ descriptionKey: "inbox.menu.admin.description",
13
+ icon: "i-lucide-inbox",
14
+ to: config.pages.admin,
15
+ permission: inboxAccess.permissions.read,
16
+ order: 15
17
+ }));
18
+ }
19
+ });