@sparkvault/sdk-js 15.16.0 → 15.17.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 +46 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +74 -39
- package/dist/index.mjs +46 -6
- package/dist/index.mjs.map +1 -1
- package/dist/products/notify/types.d.ts +74 -39
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11504,6 +11504,19 @@ const NOTIFY_SEND_ID_MAX_LENGTH = 128;
|
|
|
11504
11504
|
*/
|
|
11505
11505
|
const NOTIFY_DESTINATION_KINDS = Object.freeze(['webhook', 'slack', 'teams']);
|
|
11506
11506
|
|
|
11507
|
+
/**
|
|
11508
|
+
* Why a destination's post FAILED: the `reason` a send status reports beside
|
|
11509
|
+
* that state.
|
|
11510
|
+
*
|
|
11511
|
+
* - POSSIBLY_DELIVERED: the post was sent and its answer was lost, so it may
|
|
11512
|
+
* have landed; it is never tried again, since that could post it twice.
|
|
11513
|
+
* - ATTEMPTS_EXHAUSTED: every attempt met a fault that may clear, and none was left.
|
|
11514
|
+
*/
|
|
11515
|
+
const NOTIFY_DESTINATION_FAILURE_REASON = Object.freeze({
|
|
11516
|
+
POSSIBLY_DELIVERED: 'possibly_delivered',
|
|
11517
|
+
ATTEMPTS_EXHAUSTED: 'attempts_exhausted'
|
|
11518
|
+
});
|
|
11519
|
+
|
|
11507
11520
|
/**
|
|
11508
11521
|
* The Notify category a help desk's alerts to its own staff are classified
|
|
11509
11522
|
* as: a new request in a team's queue, a customer's message, an assignment, a
|
|
@@ -11528,6 +11541,30 @@ const NOTIFY_INBOX_MARK_STATES = Object.freeze(['seen', 'read', 'archived']);
|
|
|
11528
11541
|
*/
|
|
11529
11542
|
const NOTIFY_INBOX_BULK_MARK_STATES = Object.freeze(['seen', 'read']);
|
|
11530
11543
|
|
|
11544
|
+
/**
|
|
11545
|
+
* Why a channel step ended without reaching the person, beside its outcome:
|
|
11546
|
+
* the `reason` a send status reports on a `skipped` or `failed` entry of a
|
|
11547
|
+
* recipient's `channel_outcomes`. A closed set: every other skip or failure
|
|
11548
|
+
* reports no reason, but for a text or call passed over for the wait it would
|
|
11549
|
+
* have had (`skipped`, with its NOTIFY_PHONE_DEFERRAL_REASON).
|
|
11550
|
+
*
|
|
11551
|
+
* - PHONE_OPTED_OUT (`skipped`): the phone is on the opt-out list of
|
|
11552
|
+
* SparkVault's notification number, which every organization's texts and
|
|
11553
|
+
* calls go out from: its holder texted STOP to it. Nothing went out, the
|
|
11554
|
+
* recipient's other text or call steps on that phone are skipped the same
|
|
11555
|
+
* way, and their ladder carries on to its other channels: the list is the
|
|
11556
|
+
* number's, shared by every organization, so it is never read as an
|
|
11557
|
+
* unsubscribe from this one. Texting START or UNSTOP to the number takes the
|
|
11558
|
+
* phone off it.
|
|
11559
|
+
* - POSSIBLY_DELIVERED (`failed`): a text, call or email was handed on and
|
|
11560
|
+
* its answer was lost, so it may have reached the person. It is never sent
|
|
11561
|
+
* again, and a send to that recipient again could reach them twice.
|
|
11562
|
+
*/
|
|
11563
|
+
Object.freeze({
|
|
11564
|
+
PHONE_OPTED_OUT: 'phone_opted_out',
|
|
11565
|
+
POSSIBLY_DELIVERED: NOTIFY_DESTINATION_FAILURE_REASON.POSSIBLY_DELIVERED
|
|
11566
|
+
});
|
|
11567
|
+
|
|
11531
11568
|
/**
|
|
11532
11569
|
* The five secure-by-default preset bundles, in the send API's vocabulary.
|
|
11533
11570
|
*
|
|
@@ -20203,6 +20240,8 @@ function injectHelpDeskSupportStyles() {
|
|
|
20203
20240
|
.svhs-copy{margin:0 0 24px;color:${DS.slate600};font-size:14px;line-height:1.55}
|
|
20204
20241
|
.svhs-label{display:block;margin:0 0 7px;font-size:13px;font-weight:600;color:${DS.slate600}}
|
|
20205
20242
|
.svhs-issue{display:block;width:100%;min-height:120px;max-height:200px;resize:none;overflow-y:auto;border:1px solid ${DS.slate300};border-radius:8px;padding:12px 14px;background:${DS.white};color:${DS.slate900};font-size:16px!important;line-height:1.5!important;box-shadow:none}
|
|
20243
|
+
/* The heading is the field's label, so the field follows it at a label's distance from a question this large. */
|
|
20244
|
+
.svhs-heading+.svhs-issue{margin-top:16px}
|
|
20206
20245
|
.svhs-issue::placeholder{color:${DS.slate500};opacity:1}
|
|
20207
20246
|
.svhs-issue:focus{border-color:var(--hd-focus,var(--hd-accent-ink,${DS.action}))}
|
|
20208
20247
|
.svhs-primary,.svhs-secondary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:6px;font-size:14px!important;font-weight:600!important;line-height:1.4!important;text-decoration:none;transition:background 120ms cubic-bezier(.2,0,0,1)}
|
|
@@ -20852,10 +20891,11 @@ class SupportView {
|
|
|
20852
20891
|
this.identityNotice.hidden = true;
|
|
20853
20892
|
this.panel.append(this.identityNotice);
|
|
20854
20893
|
const intro = this.screen('issue', 'How can we help?');
|
|
20855
|
-
|
|
20856
|
-
const
|
|
20857
|
-
|
|
20858
|
-
this.issue.id =
|
|
20894
|
+
// The heading asks the question once, so it names the field too.
|
|
20895
|
+
const issueHeading = this.headings.get('issue');
|
|
20896
|
+
issueHeading.id = `${this.prefix}-issue-title`;
|
|
20897
|
+
this.issue.id = `${this.prefix}-issue`;
|
|
20898
|
+
this.issue.setAttribute('aria-labelledby', issueHeading.id);
|
|
20859
20899
|
this.issue.name = 'support_issue';
|
|
20860
20900
|
this.issue.placeholder = 'Describe what you need help with…';
|
|
20861
20901
|
this.issue.autocomplete = 'off';
|
|
@@ -20875,7 +20915,7 @@ class SupportView {
|
|
|
20875
20915
|
this.search();
|
|
20876
20916
|
}
|
|
20877
20917
|
});
|
|
20878
|
-
intro.append(
|
|
20918
|
+
intro.append(this.issue, this.issueError);
|
|
20879
20919
|
this.find = button('svhs-primary', 'Continue', () => this.search());
|
|
20880
20920
|
this.footer('issue', 'svhs-start-bottom').append(this.find);
|
|
20881
20921
|
const results = this.screen('results', 'These articles may help');
|
|
@@ -27102,7 +27142,7 @@ class SparkVault {
|
|
|
27102
27142
|
}
|
|
27103
27143
|
/** Get the SDK version */
|
|
27104
27144
|
static get version() {
|
|
27105
|
-
return '15.
|
|
27145
|
+
return '15.17.0';
|
|
27106
27146
|
}
|
|
27107
27147
|
}
|
|
27108
27148
|
if (typeof window !== 'undefined') {
|