@sparkvault/sdk-js 15.11.7 → 15.11.9

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.
@@ -12,11 +12,27 @@ export interface HelpDeskFormController extends HelpDeskFormHandle {
12
12
  * editing.
13
13
  */
14
14
  requestDismiss(): void;
15
- /** Only unsent, idle text may move to a freshly authorized support composition. */
16
- getComposition(): {
15
+ /**
16
+ * Put a composition in the subject and description without changing what
17
+ * the form was filled with: text that differs from that fill, such as edits
18
+ * carried from an earlier form for this request, stays the customer's own,
19
+ * so closing asks first.
20
+ */
21
+ restoreComposition(composition: {
22
+ subject: string;
23
+ body: string;
24
+ }): void;
25
+ /**
26
+ * Fill the form with newer text: each field the customer has not written
27
+ * in, blank or still reading what the form was filled with, takes it, and
28
+ * a field holding their own text keeps it. The newer text is then what the
29
+ * form was filled with; files, name and email stay. Refused (false, nothing
30
+ * changed) while a send is under way, unanswered or done.
31
+ */
32
+ refill(composition: {
17
33
  subject: string;
18
34
  body: string;
19
- } | null;
35
+ }): boolean;
20
36
  /** Clear a resolved access-gate error without changing a draft or uncertain send. */
21
37
  resumeAfterAccess(): void;
22
38
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The subject a support issue prefills: its first line or sentence that holds
3
+ * a word and says more than a greeting (its first one when none does),
4
+ * shortened at a word boundary with an ellipsis to fit MAX_SUBJECT_LEN. The
5
+ * message carries the whole issue, so the subject only needs to name it.
6
+ */
7
+ export declare function issueSubject(issue: string): string;