From fe0441e3b8fec44179cbc2d985200aecaa016899 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 13 Sep 2021 14:07:36 -0400 Subject: [PATCH] Multiput message interface --- utils/GunSmith/Smith.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/utils/GunSmith/Smith.ts b/utils/GunSmith/Smith.ts index c47402bc..b14fed6f 100644 --- a/utils/GunSmith/Smith.ts +++ b/utils/GunSmith/Smith.ts @@ -43,6 +43,13 @@ namespace Smith { type: 'put' } + export interface SmithMsgMultiPut { + ids: string[] + data: GunT.ValidDataValue + path: string + type: 'multiPut' + } + export type SmithMsg = | SmithMsgInit | SmithMsgAuth @@ -50,6 +57,7 @@ namespace Smith { | SmithMsgLoad | SmithMsgMapOn | SmithMsgPut + | SmithMsgMultiPut | BatchSmithMsg export type BatchSmithMsg = SmithMsg[] @@ -86,10 +94,17 @@ namespace Smith { type: 'put' } + export interface GunMsgMultiPut { + ack: GunT.Ack + ids: string[] + type: 'multiPut' + } + export type GunMsg = | GunMsgAuth | GunMsgOn | GunMsgMapOn | GunMsgLoad | GunMsgPut + | GunMsgMultiPut }