From 2a20ab46f932d589432dc8bfe793b2e4e1582b58 Mon Sep 17 00:00:00 2001 From: Rishikesh Yadav <120367811+rishikesh-y@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:27:58 +0530 Subject: [PATCH] [Skit-303]: Add desktop & mobile screenshots in registry schema (#167) * added mobile screenshots field * updated package version --- package.json | 2 +- src/interfaces/dAppSchema.ts | 1 + src/interfaces/dAppStoreSchema.ts | 4 ++++ .../merokuDappStore.dAppImagesSchema.json | 23 +++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index beff795..f6ea32c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@merokudao/dapp-store-registry", - "version": "0.1.99", + "version": "0.1.100", "description": "The dApp Store registry for MerokuDAO dAapp Store", "repository": { "type": "git", diff --git a/src/interfaces/dAppSchema.ts b/src/interfaces/dAppSchema.ts index edfe150..b0a83ff 100644 --- a/src/interfaces/dAppSchema.ts +++ b/src/interfaces/dAppSchema.ts @@ -39,6 +39,7 @@ export interface Images { logo?: string; banner?: string; screenshots?: string[]; + mobileScreenshots?: string[]; } /** diff --git a/src/interfaces/dAppStoreSchema.ts b/src/interfaces/dAppStoreSchema.ts index cb3440d..224a99d 100644 --- a/src/interfaces/dAppStoreSchema.ts +++ b/src/interfaces/dAppStoreSchema.ts @@ -29,12 +29,14 @@ export interface StoreSchema { logo?: string; banner?: string; screenshots?: string[]; + mobileScreenshots?: string[]; }; cdn?: { images?: { logo?: string; banner?: string; screenshots?: string[]; + mobileScreenshots?: string[]; }; }; isForMatureAudience: boolean; @@ -70,12 +72,14 @@ export interface EnrichFieldSchema { logo?: string; banner?: string; screenshots?: ScreenShotSchema[]; + mobileScreenshots?: ScreenShotSchema[]; }; cdn?: { images?: { logo?: string; banner?: string; screenshots?: ScreenShotSchema[]; + mobileScreenshots?: ScreenShotSchema[]; }; }; description?: string; diff --git a/src/schemas/merokuDappStore.dAppImagesSchema.json b/src/schemas/merokuDappStore.dAppImagesSchema.json index e278387..858da2b 100644 --- a/src/schemas/merokuDappStore.dAppImagesSchema.json +++ b/src/schemas/merokuDappStore.dAppImagesSchema.json @@ -29,7 +29,30 @@ }, "minItems": 1, "description": "A list of URLs to the screenshots of the dApp. Should be 1284 x 2778 and in PNG format" + }, + "mobileScreenshots": { + "type": "array", + "items": { + "type": "string", + "format": "uri", + "pattern": "^(https?|http?|ipfs?)://", + "minLength": 1 + }, + "minItems": 1, + "description": "A list of URLs to the mobile screenshots of the dApp" } }, + "anyOf": [ + { + "required": [ + "screenshots" + ] + }, + { + "required": [ + "mobileScreenshots" + ] + } + ], "additionalProperties": false }