@salutejs/scenario
Advanced tools
Comparing version 0.12.0-canary.200.85ea4c7724458b276bdbd1c2434a785048d80125.0 to 0.12.0-canary.200.e9020dfde3cdd7c82fcd5576d2b9d3dc6ec47c9a.0
{ | ||
"name": "@salutejs/scenario", | ||
"version": "0.12.0-canary.200.85ea4c7724458b276bdbd1c2434a785048d80125.0", | ||
"version": "0.12.0-canary.200.e9020dfde3cdd7c82fcd5576d2b9d3dc6ec47c9a.0", | ||
"description": "Tiny helpers to make scenario for Salute family", | ||
@@ -39,3 +39,3 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>", | ||
}, | ||
"gitHead": "85ea4c7724458b276bdbd1c2434a785048d80125" | ||
"gitHead": "e9020dfde3cdd7c82fcd5576d2b9d3dc6ec47c9a" | ||
} |
@@ -152,3 +152,3 @@ # @salutejs/scenario | ||
```ts | ||
import { createSmartPushSender, SendPushConfiguration } from 'salutejs/scenario'; | ||
import { createSmartPushSender, SendPushConfiguration, SmartPushResponse } from 'salutejs/scenario'; | ||
@@ -175,3 +175,3 @@ const pushes: SendPushConfiguration[] = [{ | ||
pushes.map((push) => | ||
sender.send(push).then(({ payload }) => { | ||
sender.send(push).then(({ payload }: SmartPushResponse) => { | ||
if (payload.validation.results.some(({ status }) => status.code !== 0)) { | ||
@@ -178,0 +178,0 @@ throw new Error('Уведомление не отправлено'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303171