@sparkvault/sdk-js 15.11.8 → 15.12.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/index.cjs +190 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -4
- package/dist/index.mjs +190 -42
- package/dist/index.mjs.map +1 -1
- package/dist/notify/types.d.ts +12 -4
- package/dist/products/help-desk/form.d.ts +19 -3
- package/dist/products/help-desk/support-subject.d.ts +7 -0
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/notify/types.d.ts
CHANGED
|
@@ -76,12 +76,20 @@ export interface NotifyInboxRow {
|
|
|
76
76
|
* building a URL from the code.
|
|
77
77
|
*/
|
|
78
78
|
pointer_url?: string;
|
|
79
|
+
/**
|
|
80
|
+
* True for a SEALED send's row, for good, whether or not its reveal still
|
|
81
|
+
* opens. A row is plain text, its `body` the whole message, only when
|
|
82
|
+
* `sealed` is false and it is not `recalled`; a sealed row's `body` is its
|
|
83
|
+
* sender's instructions about the reveal.
|
|
84
|
+
*/
|
|
85
|
+
sealed: boolean;
|
|
79
86
|
/**
|
|
80
87
|
* True only when there is a secure part left to reveal — exactly when
|
|
81
|
-
* `sparklink_code` is present. `false` does NOT mean "cleartext row": a
|
|
82
|
-
* row whose reveal no longer opens (opened, answered, expired or
|
|
83
|
-
* unlocked too, and so is a recalled one, with nothing behind it.
|
|
84
|
-
*
|
|
88
|
+
* `sparklink_code` is present. `false` does NOT mean "cleartext row": a
|
|
89
|
+
* `sealed` row whose reveal no longer opens (opened, answered, expired or
|
|
90
|
+
* gone) is unlocked too, and so is a recalled one, with nothing behind it.
|
|
91
|
+
* Show such a sealed row as no longer available rather than its
|
|
92
|
+
* instructions, which describe a link that opens nothing.
|
|
85
93
|
*/
|
|
86
94
|
locked: boolean;
|
|
87
95
|
/**
|
|
@@ -12,11 +12,27 @@ export interface HelpDeskFormController extends HelpDeskFormHandle {
|
|
|
12
12
|
* editing.
|
|
13
13
|
*/
|
|
14
14
|
requestDismiss(): void;
|
|
15
|
-
/**
|
|
16
|
-
|
|
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
|
-
}
|
|
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;
|