@sparkvault/sdk-js 15.16.1 → 15.17.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.
- package/dist/index.cjs +41 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +74 -39
- package/dist/index.mjs +41 -3
- 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
|
*
|
|
@@ -13123,8 +13160,9 @@ Array.from({ length: 1 << BRAND_BITS.size }, (_, mask) =>
|
|
|
13123
13160
|
* the code step's words),
|
|
13124
13161
|
* merge and pending-attachment timings, hold presets, tag and size limits,
|
|
13125
13162
|
* the operator display and desk mode choices, the operator queue's views and
|
|
13126
|
-
* orders, the reply review list's views and states
|
|
13127
|
-
* histogram's bucket edges
|
|
13163
|
+
* orders, the reply review list's views and states, the response-time
|
|
13164
|
+
* histogram's bucket edges and the sections of a desk's settings an address
|
|
13165
|
+
* names live here for the same reason. So do the one rule a tag is stored by
|
|
13128
13166
|
* (ticketTag), which Core applies where it stores a tag and the console
|
|
13129
13167
|
* applies where one is typed, and the one rule a typed or pasted sign-in
|
|
13130
13168
|
* code is read by (helpDeskPinDigits), which every sign-in form applies. So
|
|
@@ -27105,7 +27143,7 @@ class SparkVault {
|
|
|
27105
27143
|
}
|
|
27106
27144
|
/** Get the SDK version */
|
|
27107
27145
|
static get version() {
|
|
27108
|
-
return '15.
|
|
27146
|
+
return '15.17.1';
|
|
27109
27147
|
}
|
|
27110
27148
|
}
|
|
27111
27149
|
if (typeof window !== 'undefined') {
|