From 44b84f0754169a707472655811020f6e542a6e5d Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sat, 17 Dec 2022 22:01:48 +0330 Subject: [PATCH] feat(fetch): add AlwatrDocumentStorage type --- core/fetch/src/type.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/fetch/src/type.ts b/core/fetch/src/type.ts index 745d3586a..32e316370 100644 --- a/core/fetch/src/type.ts +++ b/core/fetch/src/type.ts @@ -128,3 +128,15 @@ export type AlwatrServiceResponse, TMeta = Recor | AlwatrServiceResponseSuccess | AlwatrServiceResponseSuccessWithMeta | AlwatrServiceResponseFailed; + +export type AlwatrDocumentMeta = { + formatVersion: number; + reversion: number; + lastUpdated: number; + lastAutoId: number; +}; + +export type AlwatrDocumentStorage = Omit< + AlwatrServiceResponseSuccessWithMeta, AlwatrDocumentMeta>, + 'statusCode' | 'errorCode' +>;