Skip to content

Commit 6a678a7

Browse files
authored
add types for safe app social profiles and dev website (#114)
1 parent 485f68c commit 6a678a7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@safe-global/safe-gateway-typescript-sdk",
3-
"version": "3.6.0",
3+
"version": "3.7.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"files": [

src/types/safe-apps.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ export enum SafeAppFeatures {
2323
BATCHED_TRANSACTIONS = 'BATCHED_TRANSACTIONS',
2424
}
2525

26+
export enum SafeAppSocialPlatforms {
27+
TWITTER = 'TWITTER',
28+
GITHUB = 'GITHUB',
29+
DISCORD = 'DISCORD',
30+
}
31+
32+
export type SafeAppSocialProfile = {
33+
platform: SafeAppSocialPlatforms
34+
url: string
35+
}
36+
2637
export type SafeAppData = {
2738
id: number
2839
url: string
@@ -34,6 +45,8 @@ export type SafeAppData = {
3445
accessControl: SafeAppsAccessControlPolicies
3546
tags: string[]
3647
features: SafeAppFeatures[]
48+
socialProfiles: SafeAppSocialProfile[]
49+
developerWebsite?: string
3750
}
3851

3952
export type SafeAppsResponse = SafeAppData[]

0 commit comments

Comments
 (0)