@sparkvault/sdk-js 15.14.3 → 15.15.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 +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +56 -10
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/products/index.d.ts +1 -1
- package/dist/products/notify/index.d.ts +8 -4
- package/dist/products/notify/types.d.ts +48 -6
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12154,10 +12154,13 @@ class NotifyProductModule {
|
|
|
12154
12154
|
/**
|
|
12155
12155
|
* The account's effective Notify config (secure defaults deep-merged with its
|
|
12156
12156
|
* overrides) plus the raw override delta, so an editor can show what is
|
|
12157
|
-
* customized versus default
|
|
12157
|
+
* customized versus default, and the `version` of the stored config they
|
|
12158
|
+
* show (0 before anything is saved, one higher with each save). Answers can
|
|
12159
|
+
* arrive out of order, as two overlapping `updateConfig` calls' can: the one
|
|
12160
|
+
* with the higher `version` is the newer config, so keep that one.
|
|
12158
12161
|
*
|
|
12159
12162
|
* @example
|
|
12160
|
-
* const { effective, overrides } = await sv.products.notify.getConfig();
|
|
12163
|
+
* const { effective, overrides, version } = await sv.products.notify.getConfig();
|
|
12161
12164
|
*/
|
|
12162
12165
|
async getConfig() {
|
|
12163
12166
|
const response = await this.http.get(this.path `/v1/products/notify/config`);
|
|
@@ -12191,7 +12194,8 @@ class NotifyProductModule {
|
|
|
12191
12194
|
* (`details: { sections, required_role: 'admin' }`). A ladder naming a channel
|
|
12192
12195
|
* other than `in_app` and `email` is refused 403 `NOTIFY_CHANNEL_NOT_AVAILABLE`
|
|
12193
12196
|
* (`details: { field, channels }`); a save that overlapping saves kept
|
|
12194
|
-
* outracing is refused 409 `CONFLICT`: reload and patch again.
|
|
12197
|
+
* outracing is refused 409 `CONFLICT`: reload and patch again. A save answers
|
|
12198
|
+
* as `getConfig` does, its `version` the one this save wrote.
|
|
12195
12199
|
*
|
|
12196
12200
|
* @example
|
|
12197
12201
|
* await sv.products.notify.updateConfig({
|
|
@@ -27081,7 +27085,7 @@ class SparkVault {
|
|
|
27081
27085
|
}
|
|
27082
27086
|
/** Get the SDK version */
|
|
27083
27087
|
static get version() {
|
|
27084
|
-
return '15.
|
|
27088
|
+
return '15.15.0';
|
|
27085
27089
|
}
|
|
27086
27090
|
}
|
|
27087
27091
|
if (typeof window !== 'undefined') {
|