@cosmicdrift/kumiko-samples 0.411.0 → 0.413.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.
Files changed (182) hide show
  1. package/package.json +1 -1
  2. package/packages/bundled-features/package.json +13 -13
  3. package/packages/bundled-features/src/admin-shell/feature.ts +1 -1
  4. package/packages/bundled-features/src/agent-tools/agent-doc-lint.ts +64 -3
  5. package/packages/bundled-features/src/agent-tools/agent-manifest.ts +13 -130
  6. package/packages/bundled-features/src/agent-tools/api-docs/anchors.ts +60 -0
  7. package/packages/bundled-features/src/agent-tools/api-docs/check.ts +25 -0
  8. package/packages/bundled-features/src/agent-tools/api-docs/collect-events.ts +140 -0
  9. package/packages/bundled-features/src/agent-tools/api-docs/collect.ts +175 -0
  10. package/packages/bundled-features/src/agent-tools/api-docs/curl.ts +28 -0
  11. package/packages/bundled-features/src/agent-tools/api-docs/error-table.ts +45 -0
  12. package/packages/bundled-features/src/agent-tools/api-docs/examples.ts +43 -0
  13. package/packages/bundled-features/src/agent-tools/api-docs/generate.ts +179 -0
  14. package/packages/bundled-features/src/agent-tools/api-docs/index-json.ts +29 -0
  15. package/packages/bundled-features/src/agent-tools/api-docs/index.ts +21 -0
  16. package/packages/bundled-features/src/agent-tools/api-docs/list-parameters.ts +38 -0
  17. package/packages/bundled-features/src/agent-tools/api-docs/markdown.ts +70 -0
  18. package/packages/bundled-features/src/agent-tools/api-docs/menu-path.ts +82 -0
  19. package/packages/bundled-features/src/agent-tools/api-docs/model.ts +83 -0
  20. package/packages/bundled-features/src/agent-tools/api-docs/problems.ts +58 -0
  21. package/packages/bundled-features/src/agent-tools/api-docs/render-events.ts +76 -0
  22. package/packages/bundled-features/src/agent-tools/api-docs/render-openapi.ts +216 -0
  23. package/packages/bundled-features/src/agent-tools/api-docs/render-overview.ts +86 -0
  24. package/packages/bundled-features/src/agent-tools/api-docs/render-reference.ts +79 -0
  25. package/packages/bundled-features/src/agent-tools/api-docs/render-tokens.ts +136 -0
  26. package/packages/bundled-features/src/agent-tools/api-docs/schema-fields.ts +167 -0
  27. package/packages/bundled-features/src/agent-tools/api-docs/section-ids.ts +28 -0
  28. package/packages/bundled-features/src/agent-tools/api-docs/system-only.ts +11 -0
  29. package/packages/bundled-features/src/agent-tools/api-docs/texts/de.ts +166 -0
  30. package/packages/bundled-features/src/agent-tools/api-docs/texts/en.ts +159 -0
  31. package/packages/bundled-features/src/agent-tools/api-docs/texts/es.ts +162 -0
  32. package/packages/bundled-features/src/agent-tools/api-docs/texts/fr.ts +169 -0
  33. package/packages/bundled-features/src/agent-tools/api-docs/texts/index.ts +67 -0
  34. package/packages/bundled-features/src/agent-tools/api-docs/texts/it.ts +165 -0
  35. package/packages/bundled-features/src/agent-tools/api-docs/texts/types.ts +130 -0
  36. package/packages/bundled-features/src/agent-tools/api-docs/ui-writes.ts +81 -0
  37. package/packages/bundled-features/src/agent-tools/changes.json +24 -0
  38. package/packages/bundled-features/src/agent-tools/handler-schema.ts +45 -0
  39. package/packages/bundled-features/src/agent-tools/index.ts +24 -0
  40. package/packages/bundled-features/src/agent-tools/labels.ts +181 -0
  41. package/packages/bundled-features/src/auth-email-password/boot-rules.ts +9 -0
  42. package/packages/bundled-features/src/auth-email-password/feature.ts +6 -19
  43. package/packages/bundled-features/src/auth-email-password/validate-options.ts +20 -0
  44. package/packages/bundled-features/src/billing-foundation/boot-rules.ts +26 -0
  45. package/packages/bundled-features/src/billing-foundation/validate-options.ts +59 -46
  46. package/packages/bundled-features/src/cap-overview/boot-rules.ts +14 -0
  47. package/packages/bundled-features/src/cap-overview/feature.ts +12 -5
  48. package/packages/bundled-features/src/documents/boot-rules.ts +14 -0
  49. package/packages/bundled-features/src/documents/feature.ts +8 -4
  50. package/packages/bundled-features/src/file-derivatives/boot-rules.ts +9 -0
  51. package/packages/bundled-features/src/file-derivatives/feature.ts +6 -3
  52. package/packages/bundled-features/src/folders/boot-rules.ts +9 -0
  53. package/packages/bundled-features/src/folders/feature.ts +6 -3
  54. package/packages/bundled-features/src/helpdesk/boot-rules.ts +9 -0
  55. package/packages/bundled-features/src/{contact → helpdesk}/challenge.ts +2 -2
  56. package/packages/bundled-features/src/{contact → helpdesk}/changes.json +6 -0
  57. package/packages/bundled-features/src/{contact/client/contact-client-source.ts → helpdesk/client/helpdesk-client-source.ts} +4 -4
  58. package/packages/bundled-features/src/helpdesk/client/helpdesk-website-client.ts +29 -0
  59. package/packages/bundled-features/src/helpdesk/client/index.ts +9 -0
  60. package/packages/bundled-features/src/{contact → helpdesk}/entity.ts +35 -31
  61. package/packages/bundled-features/src/{contact → helpdesk}/feature.ts +56 -52
  62. package/packages/bundled-features/src/{contact → helpdesk}/handlers/attempts.ts +3 -3
  63. package/packages/bundled-features/src/{contact → helpdesk}/handlers/challenge.query.ts +10 -10
  64. package/packages/bundled-features/src/{contact → helpdesk}/handlers/forward-request.write.ts +25 -23
  65. package/packages/bundled-features/src/{contact → helpdesk}/handlers/mark-done.write.ts +11 -11
  66. package/packages/bundled-features/src/{contact → helpdesk}/handlers/notify-reporter-in-app.write.ts +14 -14
  67. package/packages/bundled-features/src/{contact → helpdesk}/handlers/open-count.query.ts +4 -4
  68. package/packages/bundled-features/src/{contact → helpdesk}/handlers/open-count.ts +2 -2
  69. package/packages/bundled-features/src/{contact → helpdesk}/handlers/replies.query.ts +6 -6
  70. package/packages/bundled-features/src/{contact → helpdesk}/handlers/reply.write.ts +30 -30
  71. package/packages/bundled-features/src/{contact → helpdesk}/handlers/report.write.ts +29 -29
  72. package/packages/bundled-features/src/{contact → helpdesk}/handlers/request-delivery.query.ts +40 -40
  73. package/packages/bundled-features/src/{contact → helpdesk}/handlers/request-detail.query.ts +15 -15
  74. package/packages/bundled-features/src/{contact → helpdesk}/handlers/request-list.query.ts +2 -2
  75. package/packages/bundled-features/src/{contact → helpdesk}/handlers/send-reply-mail.write.ts +24 -24
  76. package/packages/bundled-features/src/{contact → helpdesk}/handlers/send-test.write.ts +18 -14
  77. package/packages/bundled-features/src/{contact → helpdesk}/handlers/submit.write.ts +32 -31
  78. package/packages/bundled-features/src/{contact → helpdesk}/handlers/take-over-uploads.ts +5 -5
  79. package/packages/bundled-features/src/{contact → helpdesk}/i18n.ts +78 -75
  80. package/packages/bundled-features/src/helpdesk/index.ts +29 -0
  81. package/packages/bundled-features/src/{contact → helpdesk}/lib.ts +32 -28
  82. package/packages/bundled-features/src/{contact → helpdesk}/mail.ts +56 -56
  83. package/packages/bundled-features/src/{contact → helpdesk}/options.ts +18 -16
  84. package/packages/bundled-features/src/helpdesk/panels.ts +28 -0
  85. package/packages/bundled-features/src/{contact → helpdesk}/payloads.ts +33 -33
  86. package/packages/bundled-features/src/{contact → helpdesk}/screens.ts +104 -104
  87. package/packages/bundled-features/src/{contact → helpdesk}/subject.ts +3 -3
  88. package/packages/bundled-features/src/{contact → helpdesk}/user-data-hooks.ts +17 -17
  89. package/packages/bundled-features/src/helpdesk/web/constants.ts +160 -0
  90. package/packages/bundled-features/src/helpdesk/web/index.ts +29 -0
  91. package/packages/bundled-features/src/host-routing/boot-rules.ts +27 -0
  92. package/packages/bundled-features/src/host-routing/validate-options.ts +36 -27
  93. package/packages/bundled-features/src/inbound-mail-foundation/changes.json +6 -0
  94. package/packages/bundled-features/src/inbound-mail-foundation/entities.ts +99 -71
  95. package/packages/bundled-features/src/inbound-mail-foundation/feature.ts +2 -2
  96. package/packages/bundled-features/src/jobs/boot-rules.ts +9 -0
  97. package/packages/bundled-features/src/jobs/feature.ts +9 -4
  98. package/packages/bundled-features/src/legal-pages/boot-rules.ts +19 -0
  99. package/packages/bundled-features/src/legal-pages/feature.ts +6 -3
  100. package/packages/bundled-features/src/legal-pages/lib/validate-routes.ts +11 -5
  101. package/packages/bundled-features/src/metrics/boot-rules.ts +15 -0
  102. package/packages/bundled-features/src/metrics/validate.ts +8 -2
  103. package/packages/bundled-features/src/notes-history/boot-rules.ts +9 -0
  104. package/packages/bundled-features/src/notes-history/feature.ts +6 -3
  105. package/packages/bundled-features/src/personal-access-tokens/boot-rules.ts +9 -0
  106. package/packages/bundled-features/src/personal-access-tokens/changes.json +6 -0
  107. package/packages/bundled-features/src/personal-access-tokens/feature.ts +5 -2
  108. package/packages/bundled-features/src/personal-access-tokens/handlers/create.write.ts +7 -2
  109. package/packages/bundled-features/src/personal-access-tokens/i18n.ts +6 -1
  110. package/packages/bundled-features/src/personal-access-tokens/index.ts +37 -2
  111. package/packages/bundled-features/src/personal-access-tokens/scope-events-check.ts +31 -0
  112. package/packages/bundled-features/src/personal-access-tokens/screens.ts +9 -1
  113. package/packages/bundled-features/src/personal-access-tokens/web/constants.ts +1 -0
  114. package/packages/bundled-features/src/personal-access-tokens/web/scopes.ts +14 -0
  115. package/packages/bundled-features/src/presence/boot-rules.ts +9 -0
  116. package/packages/bundled-features/src/presence/options.ts +5 -1
  117. package/packages/bundled-features/src/readiness/boot-rules.ts +14 -0
  118. package/packages/bundled-features/src/readiness/probe-boot-check.ts +8 -6
  119. package/packages/bundled-features/src/shared/assert-no-where-rule-in-ownership-write.ts +6 -4
  120. package/packages/bundled-features/src/shared/boot-rules.ts +9 -0
  121. package/packages/bundled-features/src/subscription-mollie/boot-rules.ts +19 -0
  122. package/packages/bundled-features/src/subscription-mollie/feature.ts +18 -10
  123. package/packages/bundled-features/src/tags/boot-rules.ts +9 -0
  124. package/packages/bundled-features/src/tags/feature.ts +6 -3
  125. package/packages/bundled-features/src/template-resolver/boot-rules.ts +19 -0
  126. package/packages/bundled-features/src/template-resolver/feature.ts +14 -10
  127. package/packages/bundled-features/src/tenant/boot-rules.ts +9 -0
  128. package/packages/bundled-features/src/tenant/feature.ts +5 -3
  129. package/samples/apps/marketing-demo/README.md +1 -1
  130. package/samples/apps/marketing-demo/playwright.config.ts +1 -1
  131. package/samples/apps/marketing-demo/src/app/client.tsx +3 -3
  132. package/samples/apps/marketing-demo/src/app/seed-data.ts +1 -1
  133. package/samples/apps/marketing-demo/src/app/seed.ts +4 -4
  134. package/samples/apps/marketing-demo/src/app/server.ts +3 -3
  135. package/samples/apps/marketing-demo/src/features/{helpdesk → ticketing}/feature.ts +15 -12
  136. package/samples/apps/marketing-demo/src/features/ticketing/i18n.ts +100 -0
  137. package/samples/apps/marketing-demo/src/features/{helpdesk → ticketing}/schema/ticket.ts +4 -4
  138. package/samples/apps/marketing-demo/src/features/ticketing/web/index.ts +7 -0
  139. package/samples/apps/use-all-bundled/feature-manifest.json +67 -67
  140. package/samples/apps/use-all-bundled/kumiko/migrations/0064_helpdesk-rename.rebuild.json +4 -0
  141. package/samples/apps/use-all-bundled/package.json +1 -1
  142. package/samples/apps/use-all-bundled/src/app/client.tsx +1 -1
  143. package/samples/apps/use-all-bundled/src/app/screens-feature.ts +10 -10
  144. package/samples/apps/use-all-bundled/src/run-config.ts +6 -6
  145. package/samples/recipes/api-docs/README.md +52 -0
  146. package/samples/recipes/api-docs/api-docs/de/events.md +62 -0
  147. package/samples/recipes/api-docs/api-docs/de/overview.md +100 -0
  148. package/samples/recipes/api-docs/api-docs/de/reference/tickets.md +305 -0
  149. package/samples/recipes/api-docs/api-docs/de/tokens.md +66 -0
  150. package/samples/recipes/api-docs/api-docs/en/events.md +62 -0
  151. package/samples/recipes/api-docs/api-docs/en/overview.md +100 -0
  152. package/samples/recipes/api-docs/api-docs/en/reference/tickets.md +305 -0
  153. package/samples/recipes/api-docs/api-docs/en/tokens.md +66 -0
  154. package/samples/recipes/api-docs/api-docs/index.json +371 -0
  155. package/samples/recipes/api-docs/api-docs/openapi.json +982 -0
  156. package/samples/recipes/api-docs/api-examples/ticket-close.json +21 -0
  157. package/samples/recipes/api-docs/api-examples/ticket-create.json +42 -0
  158. package/samples/recipes/api-docs/api-examples/ticket-detail.json +28 -0
  159. package/samples/recipes/api-docs/api-examples/ticket-list.json +31 -0
  160. package/samples/recipes/api-docs/api-examples/ticket-update.json +54 -0
  161. package/samples/recipes/api-docs/api-examples/webhooks/ticket-closed.json +8 -0
  162. package/samples/recipes/api-docs/api-examples/webhooks/ticket-created.json +10 -0
  163. package/samples/recipes/api-docs/kumiko.config.ts +33 -0
  164. package/samples/recipes/api-docs/package.json +14 -0
  165. package/samples/recipes/api-docs/src/feature.ts +218 -0
  166. package/samples/recipes/api-docs/tsconfig.json +22 -0
  167. package/samples/recipes/golden-path/src/feature.ts +1 -1
  168. package/samples/recipes/{contact → helpdesk}/README.md +16 -16
  169. package/samples/recipes/{contact → helpdesk}/package.json +2 -2
  170. package/samples/recipes/{contact → helpdesk}/src/feature.ts +6 -6
  171. package/packages/bundled-features/src/contact/client/contact-website-client.ts +0 -29
  172. package/packages/bundled-features/src/contact/client/index.ts +0 -9
  173. package/packages/bundled-features/src/contact/index.ts +0 -29
  174. package/packages/bundled-features/src/contact/panels.ts +0 -28
  175. package/packages/bundled-features/src/contact/web/constants.ts +0 -160
  176. package/packages/bundled-features/src/contact/web/index.ts +0 -29
  177. package/samples/apps/marketing-demo/src/features/helpdesk/i18n.ts +0 -100
  178. package/samples/apps/marketing-demo/src/features/helpdesk/web/index.ts +0 -7
  179. /package/packages/bundled-features/src/{contact → helpdesk}/handlers/access.ts +0 -0
  180. /package/packages/bundled-features/src/{contact → helpdesk}/pow.ts +0 -0
  181. /package/packages/bundled-features/src/{contact → helpdesk}/user-agent.ts +0 -0
  182. /package/samples/apps/marketing-demo/src/features/{helpdesk → ticketing}/schema/index.ts +0 -0
@@ -1,29 +0,0 @@
1
- export {
2
- contactReplyEntity,
3
- contactReplyTable,
4
- contactRequestEntity,
5
- contactRequestTable,
6
- } from "./entity.ts";
7
- export { createContactFeature } from "./feature.ts";
8
- export type { ContactOptions } from "./options.ts";
9
- export { contactOpenRequestsPanels } from "./panels.ts";
10
- export {
11
- CONTACT_ADMIN_KINDS,
12
- CONTACT_CLIENT_PATH,
13
- CONTACT_DELIVERY_CHANNEL,
14
- CONTACT_DELIVERY_STATUS,
15
- CONTACT_FEATURE,
16
- CONTACT_FIELD_LIMITS,
17
- CONTACT_KIND,
18
- CONTACT_NOTIFICATION_TYPES,
19
- CONTACT_ORIGIN,
20
- CONTACT_REPLY_CHANNELS,
21
- CONTACT_SOURCE,
22
- CONTACT_STATUS,
23
- CONTACT_WEBSITE_KINDS,
24
- ContactConfigKeys,
25
- ContactErrors,
26
- ContactHandlers,
27
- ContactQueries,
28
- ContactScreens,
29
- } from "./web/constants.ts";
@@ -1,28 +0,0 @@
1
- import type { DashboardStatPanel } from "@cosmicdrift/kumiko-framework/ui-types";
2
- import {
3
- CONTACT_FEATURE,
4
- CONTACT_STATUS,
5
- ContactQueries,
6
- ContactScreens,
7
- } from "./web/constants.ts";
8
-
9
- // Stat tile for a dashboard: how many contact requests still wait for a first answer.
10
- export function contactOpenRequestsPanels(): readonly DashboardStatPanel[] {
11
- return [
12
- {
13
- kind: "stat",
14
- id: `${CONTACT_FEATURE}-open-requests`,
15
- label: "contact:overview.open",
16
- query: ContactQueries.requestList,
17
- params: {
18
- filters: [{ field: "status", op: "eq", value: CONTACT_STATUS.Open }],
19
- limit: 1,
20
- totalCount: true,
21
- },
22
- ignoreScreenFilter: true,
23
- valueField: "total",
24
- tone: "warn",
25
- navigate: { screen: ContactScreens.requestList },
26
- },
27
- ];
28
- }
@@ -1,160 +0,0 @@
1
- // Pure string constants, safe for browser code (see waitlist/web/constants.ts).
2
- export const CONTACT_FEATURE = "contact" as const;
3
-
4
- export const CONTACT_KIND = {
5
- Question: "question",
6
- Contact: "contact",
7
- Bug: "bug",
8
- Wish: "wish",
9
- } as const;
10
- export type ContactKind = (typeof CONTACT_KIND)[keyof typeof CONTACT_KIND];
11
-
12
- export const CONTACT_WEBSITE_KINDS = [
13
- CONTACT_KIND.Question,
14
- CONTACT_KIND.Contact,
15
- CONTACT_KIND.Bug,
16
- ] as const;
17
- export const CONTACT_ADMIN_KINDS = [
18
- CONTACT_KIND.Question,
19
- CONTACT_KIND.Bug,
20
- CONTACT_KIND.Wish,
21
- ] as const;
22
-
23
- export const CONTACT_STATUS = {
24
- Open: "open",
25
- Answered: "answered",
26
- Done: "done",
27
- } as const;
28
- export type ContactStatus = (typeof CONTACT_STATUS)[keyof typeof CONTACT_STATUS];
29
-
30
- export const CONTACT_SOURCE = {
31
- Website: "website",
32
- Admin: "admin",
33
- } as const;
34
- export type ContactSource = (typeof CONTACT_SOURCE)[keyof typeof CONTACT_SOURCE];
35
-
36
- export const CONTACT_REPLY_CHANNELS = {
37
- Email: "email",
38
- EmailAndInApp: "email+inApp",
39
- } as const;
40
- export type ContactReplyChannels =
41
- (typeof CONTACT_REPLY_CHANNELS)[keyof typeof CONTACT_REPLY_CHANNELS];
42
-
43
- export const CONTACT_ORIGIN = {
44
- Website: "website",
45
- AdminReport: "admin-report",
46
- } as const;
47
- export type ContactOrigin = (typeof CONTACT_ORIGIN)[keyof typeof CONTACT_ORIGIN];
48
-
49
- export const CONTACT_DELIVERY_CHANNEL = {
50
- Email: "email",
51
- Telegram: "telegram",
52
- ReplyEmail: "reply-email",
53
- ReplyInApp: "reply-in-app",
54
- } as const;
55
- export type ContactDeliveryChannel =
56
- (typeof CONTACT_DELIVERY_CHANNEL)[keyof typeof CONTACT_DELIVERY_CHANNEL];
57
-
58
- export const CONTACT_DELIVERY_STATUS = {
59
- Pending: "pending",
60
- Delivered: "delivered",
61
- Failed: "failed",
62
- Skipped: "skipped",
63
- Read: "read",
64
- } as const;
65
- export type ContactDeliveryStatus =
66
- (typeof CONTACT_DELIVERY_STATUS)[keyof typeof CONTACT_DELIVERY_STATUS];
67
-
68
- export type ContactPhoneMode = "off" | "optional" | "required";
69
-
70
- export const ContactHandlers = {
71
- submit: "contact:write:submit",
72
- report: "contact:write:report",
73
- reply: "contact:write:reply",
74
- markDone: "contact:write:mark-done",
75
- sendTest: "contact:write:send-test",
76
- forwardRequest: "contact:write:forward-request",
77
- sendReplyMail: "contact:write:send-reply-mail",
78
- notifyReporterInApp: "contact:write:notify-reporter-in-app",
79
- } as const;
80
-
81
- export const ContactQueries = {
82
- challenge: "contact:query:challenge",
83
- openCount: "contact:query:open-count",
84
- requestDetail: "contact:query:request-detail",
85
- replies: "contact:query:replies",
86
- requestDelivery: "contact:query:request-delivery",
87
- // Entity-convention list QN: entityList screens resolve their query by this shape.
88
- requestList: "contact:query:contact-request:list",
89
- } as const;
90
-
91
- export const ContactScreens = {
92
- requestList: "contact:screen:request-list",
93
- requestDetail: "contact:screen:request-detail",
94
- report: "contact:screen:report",
95
- reply: "contact:screen:reply",
96
- replyMail: "contact:screen:reply-mail",
97
- forwarding: "contact:screen:forwarding",
98
- } as const;
99
-
100
- // Files field of both upload forms (report, reply); the uploads are pending under the screen QN.
101
- export const CONTACT_UPLOAD_FIELD = "fileIds" as const;
102
-
103
- export const ContactConfigKeys = {
104
- replyTo: "contact:config:reply-to",
105
- telegramChat: "contact:config:telegram-chat",
106
- } as const;
107
-
108
- export const ContactErrors = {
109
- telegramChatMissing: "telegram_chat_missing",
110
- telegramTestFailed: "telegram_test_failed",
111
- notFound: "contact_request_not_found",
112
- phoneNotAllowed: "contact_phone_not_allowed",
113
- phoneRequired: "contact_phone_required",
114
- reporterEmailMissing: "contact_reporter_email_missing",
115
- attachmentNotFound: "contact_attachment_not_found",
116
- } as const;
117
-
118
- export const CONTACT_NOTIFICATION_TYPES = {
119
- newRequest: "contact:notify:new-request",
120
- confirmation: "contact:notify:confirmation",
121
- acknowledgement: "contact:notify:acknowledgement",
122
- reply: "contact:notify:reply",
123
- replyInApp: "contact:notify:reply-in-app",
124
- test: "contact:notify:test",
125
- } as const;
126
-
127
- export const CONTACT_CLIENT_PATH = "/contact/client.js" as const;
128
-
129
- export const CONTACT_FIELD_LIMITS = {
130
- name: 120,
131
- email: 254,
132
- phone: 40,
133
- subject: 200,
134
- message: 5000,
135
- locale: 35,
136
- honeypot: 500,
137
- page: 300,
138
- challenge: 64,
139
- nonce: 32,
140
- } as const;
141
-
142
- export const CONTACT_MAX_FILES = 5;
143
-
144
- export const CONTACT_SUBJECT_MAX_CHARS = 80;
145
-
146
- export const CONTACT_POW_BITS = { min: 8, max: 26, default: 19 } as const;
147
- export const CONTACT_DEFAULT_MIN_SUBMIT_SECONDS = 3;
148
- export const CONTACT_DEFAULT_CHALLENGE_TTL_MINUTES = 30;
149
- export const CONTACT_CHALLENGE_REDIS_PREFIX = "contact:challenge:" as const;
150
-
151
- export const CONTACT_REQUEST_ENTITY = "contact-request" as const;
152
- export const CONTACT_REPLY_ENTITY = "contact-reply" as const;
153
-
154
- export const contactIdempotencyKeys = {
155
- admins: (requestId: string) => `contact:request:${requestId}:admins`,
156
- telegram: (requestId: string) => `contact:request:${requestId}:telegram`,
157
- confirmation: (requestId: string) => `contact:request:${requestId}:confirmation`,
158
- reply: (replyId: string) => `contact:reply:${replyId}`,
159
- replyInApp: (replyId: string) => `contact:reply:${replyId}:in-app`,
160
- } as const;
@@ -1,29 +0,0 @@
1
- export {
2
- CONTACT_ADMIN_KINDS,
3
- CONTACT_CLIENT_PATH,
4
- CONTACT_DELIVERY_CHANNEL,
5
- CONTACT_DELIVERY_STATUS,
6
- CONTACT_FEATURE,
7
- CONTACT_FIELD_LIMITS,
8
- CONTACT_KIND,
9
- CONTACT_NOTIFICATION_TYPES,
10
- CONTACT_ORIGIN,
11
- CONTACT_REPLY_CHANNELS,
12
- CONTACT_SOURCE,
13
- CONTACT_STATUS,
14
- CONTACT_SUBJECT_MAX_CHARS,
15
- CONTACT_WEBSITE_KINDS,
16
- ContactConfigKeys,
17
- type ContactDeliveryChannel,
18
- type ContactDeliveryStatus,
19
- ContactErrors,
20
- ContactHandlers,
21
- type ContactKind,
22
- type ContactOrigin,
23
- type ContactPhoneMode,
24
- ContactQueries,
25
- type ContactReplyChannels,
26
- ContactScreens,
27
- type ContactSource,
28
- type ContactStatus,
29
- } from "./constants.ts";
@@ -1,100 +0,0 @@
1
- // Helpdesk-Feature i18n-Bundle. Gleiche Convention wie assets/.
2
-
3
- import type { TranslationsByLocale } from "@cosmicdrift/kumiko-renderer";
4
-
5
- export const helpdeskTranslations: TranslationsByLocale = {
6
- de: {
7
- "helpdesk:nav.list": "Helpdesk",
8
- "helpdesk:nav.new": "Neues Ticket",
9
- "helpdesk:actions.edit": "Bearbeiten",
10
-
11
- "screen:ticket-list.title": "Helpdesk",
12
- "screen:ticket-edit.title": "Ticket bearbeiten",
13
-
14
- "helpdesk:entity:ticket:field:title": "Titel",
15
- "helpdesk:entity:ticket:field:description": "Beschreibung",
16
- "helpdesk:entity:ticket:field:category": "Kategorie",
17
- "helpdesk:entity:ticket:field:severity": "Schweregrad",
18
- "helpdesk:entity:ticket:field:status": "Status",
19
- "helpdesk:entity:ticket:field:department": "Abteilung",
20
- "helpdesk:entity:ticket:field:assignee": "Zugewiesen an",
21
- "helpdesk:entity:ticket:field:reporter": "Gemeldet von",
22
- "helpdesk:entity:ticket:field:dueDate": "Fällig am",
23
- "helpdesk:entity:ticket:field:spentMinutes": "Aufwand (Min.)",
24
-
25
- "helpdesk:entity:ticket:field:severity:option:low": "Niedrig",
26
- "helpdesk:entity:ticket:field:severity:option:medium": "Mittel",
27
- "helpdesk:entity:ticket:field:severity:option:high": "Hoch",
28
- "helpdesk:entity:ticket:field:severity:option:critical": "Kritisch",
29
-
30
- "helpdesk:entity:ticket:field:status:option:open": "Offen",
31
- "helpdesk:entity:ticket:field:status:option:investigating": "In Bearbeitung",
32
- "helpdesk:entity:ticket:field:status:option:resolved": "Gelöst",
33
- "helpdesk:entity:ticket:field:status:option:closed": "Geschlossen",
34
-
35
- "helpdesk:entity:ticket:field:category:option:hardware": "Hardware",
36
- "helpdesk:entity:ticket:field:category:option:software": "Software",
37
- "helpdesk:entity:ticket:field:category:option:account": "Account",
38
- "helpdesk:entity:ticket:field:category:option:network": "Netzwerk",
39
- "helpdesk:entity:ticket:field:category:option:license": "Lizenz",
40
- "helpdesk:entity:ticket:field:category:option:other": "Sonstiges",
41
-
42
- "helpdesk:entity:ticket:field:department:option:it": "IT",
43
- "helpdesk:entity:ticket:field:department:option:marketing": "Marketing",
44
- "helpdesk:entity:ticket:field:department:option:sales": "Vertrieb",
45
- "helpdesk:entity:ticket:field:department:option:engineering": "Entwicklung",
46
- "helpdesk:entity:ticket:field:department:option:finance": "Finanzen",
47
- "helpdesk:entity:ticket:field:department:option:hr": "Personal",
48
-
49
- "helpdesk:section.ticket": "Ticket",
50
- "helpdesk:section.people": "Personen",
51
- "helpdesk:section.tracking": "Tracking",
52
- },
53
- en: {
54
- "helpdesk:nav.list": "Helpdesk",
55
- "helpdesk:nav.new": "New ticket",
56
- "helpdesk:actions.edit": "Edit",
57
-
58
- "screen:ticket-list.title": "Helpdesk",
59
- "screen:ticket-edit.title": "Edit ticket",
60
-
61
- "helpdesk:entity:ticket:field:title": "Title",
62
- "helpdesk:entity:ticket:field:description": "Description",
63
- "helpdesk:entity:ticket:field:category": "Category",
64
- "helpdesk:entity:ticket:field:severity": "Severity",
65
- "helpdesk:entity:ticket:field:status": "Status",
66
- "helpdesk:entity:ticket:field:department": "Department",
67
- "helpdesk:entity:ticket:field:assignee": "Assignee",
68
- "helpdesk:entity:ticket:field:reporter": "Reporter",
69
- "helpdesk:entity:ticket:field:dueDate": "Due date",
70
- "helpdesk:entity:ticket:field:spentMinutes": "Time spent (min)",
71
-
72
- "helpdesk:entity:ticket:field:severity:option:low": "Low",
73
- "helpdesk:entity:ticket:field:severity:option:medium": "Medium",
74
- "helpdesk:entity:ticket:field:severity:option:high": "High",
75
- "helpdesk:entity:ticket:field:severity:option:critical": "Critical",
76
-
77
- "helpdesk:entity:ticket:field:status:option:open": "Open",
78
- "helpdesk:entity:ticket:field:status:option:investigating": "Investigating",
79
- "helpdesk:entity:ticket:field:status:option:resolved": "Resolved",
80
- "helpdesk:entity:ticket:field:status:option:closed": "Closed",
81
-
82
- "helpdesk:entity:ticket:field:category:option:hardware": "Hardware",
83
- "helpdesk:entity:ticket:field:category:option:software": "Software",
84
- "helpdesk:entity:ticket:field:category:option:account": "Account",
85
- "helpdesk:entity:ticket:field:category:option:network": "Network",
86
- "helpdesk:entity:ticket:field:category:option:license": "License",
87
- "helpdesk:entity:ticket:field:category:option:other": "Other",
88
-
89
- "helpdesk:entity:ticket:field:department:option:it": "IT",
90
- "helpdesk:entity:ticket:field:department:option:marketing": "Marketing",
91
- "helpdesk:entity:ticket:field:department:option:sales": "Sales",
92
- "helpdesk:entity:ticket:field:department:option:engineering": "Engineering",
93
- "helpdesk:entity:ticket:field:department:option:finance": "Finance",
94
- "helpdesk:entity:ticket:field:department:option:hr": "HR",
95
-
96
- "helpdesk:section.ticket": "Ticket",
97
- "helpdesk:section.people": "People",
98
- "helpdesk:section.tracking": "Tracking",
99
- },
100
- };
@@ -1,7 +0,0 @@
1
- import type { ClientFeatureDefinition } from "@cosmicdrift/kumiko-renderer/web";
2
- import { helpdeskTranslations } from "../i18n";
3
-
4
- export const helpdeskClient: ClientFeatureDefinition = {
5
- name: "helpdesk",
6
- translations: helpdeskTranslations,
7
- };