Skip to content

Commit f710c95

Browse files
authored
Fix: enum for tx Label values (#66)
* Fix: enum for tx Label values * Bump version
1 parent e8a1681 commit f710c95

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

e2e/safe-collectibles-list.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ describe('getCollectibles tests', () => {
88

99
expect(data.length).toBeGreaterThanOrEqual(1)
1010
expect(typeof data[1].address).toBe('string')
11-
expect(data[0].description).toBe(null)
11+
expect(typeof data[0].description).toBe('string')
12+
expect(typeof data[0].name).toBe('string')
1213
expect(data[0].metadata).toBeDefined()
13-
expect(data[0].name).toBe(null)
1414
expect(data[0].tokenName.length).toBeGreaterThan(0)
1515
expect(data[0].tokenSymbol.length).toBeGreaterThan(0)
1616
expect(data[0].uri).toMatch(/^https?:\/\//)

package.json

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

src/types/transactions.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,16 @@ export type DateLabel = {
220220
type: 'DATE_LABEL'
221221
}
222222

223+
/**
224+
* @see https://gnosis.github.io/safe-client-gateway/docs/routes/transactions/models/summary/enum.Label.html
225+
*/
226+
export enum LabelValue {
227+
Queued = 'Queued',
228+
Next = 'Next',
229+
}
230+
223231
export type Label = {
224-
label: string
232+
label: LabelValue
225233
type: 'LABEL'
226234
}
227235

0 commit comments

Comments
 (0)