@tellescope/sdk 1.4.26 → 1.4.27
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/lib/cjs/sdk.d.ts +3 -0
- package/lib/cjs/sdk.d.ts.map +1 -1
- package/lib/cjs/sdk.js +1 -0
- package/lib/cjs/sdk.js.map +1 -1
- package/lib/cjs/tests/tests.d.ts.map +1 -1
- package/lib/cjs/tests/tests.js +37 -21
- package/lib/cjs/tests/tests.js.map +1 -1
- package/lib/cjs/tests/webhooks_tests.js +13 -7
- package/lib/cjs/tests/webhooks_tests.js.map +1 -1
- package/lib/esm/sdk.d.ts +5 -2
- package/lib/esm/sdk.d.ts.map +1 -1
- package/lib/esm/sdk.js +1 -0
- package/lib/esm/sdk.js.map +1 -1
- package/lib/esm/tests/tests.d.ts.map +1 -1
- package/lib/esm/tests/tests.js +37 -21
- package/lib/esm/tests/tests.js.map +1 -1
- package/lib/esm/tests/webhooks_tests.js +13 -7
- package/lib/esm/tests/webhooks_tests.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/sdk.ts +7 -0
- package/src/tests/tests.ts +6 -5
- package/src/tests/webhooks_tests.ts +6 -0
|
@@ -226,6 +226,12 @@ const endusers_tests = async (isSubscribed: boolean) => {
|
|
|
226
226
|
'Enduser update error', 'Update enduser webhook', isSubscribed
|
|
227
227
|
)
|
|
228
228
|
|
|
229
|
+
await sdk.api.endusers.set_password({ id: enduser.id, password: 'initialPassword' })
|
|
230
|
+
await check_next_webhook(
|
|
231
|
+
a => (a.records?.[0] as any)?.password === 'initialPassword',
|
|
232
|
+
'Enduser set password error', 'Set enduser password webhook', isSubscribed
|
|
233
|
+
)
|
|
234
|
+
|
|
229
235
|
// cleanup
|
|
230
236
|
if (isSubscribed) {
|
|
231
237
|
await sdk.api.webhooks.update({ subscriptionUpdates: {
|