From a06515f375d1ac37daa9ec1c80999e88dc813fce Mon Sep 17 00:00:00 2001 From: Marin Karamihalev <marin.karamihalev@iopsys.eu> Date: Wed, 18 Jan 2023 11:30:45 +0100 Subject: [PATCH] added notifretry option --- src/commands/recipes/subscribe.ts | 1 + src/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/commands/recipes/subscribe.ts b/src/commands/recipes/subscribe.ts index 160eb6b..2b19d8a 100644 --- a/src/commands/recipes/subscribe.ts +++ b/src/commands/recipes/subscribe.ts @@ -13,6 +13,7 @@ const make: MakeFn = (call, on): SubscribeRecipe => async (opts, callback) => { Enable: true, ID: id, NotifType: opts.notif, + NotifRetry: 'retry' in opts ? opts.retry : true, ReferenceList: refList, Persistent: false, }, diff --git a/src/types.ts b/src/types.ts index bf7f0ed..67c97dc 100644 --- a/src/types.ts +++ b/src/types.ts @@ -606,6 +606,7 @@ type NotifType = export interface SubscriptionOptions { id?: string; notif: NotifType; + retry?: boolean; reference: string | string[]; } -- GitLab