File tree Expand file tree Collapse file tree 4 files changed +13
-18
lines changed Expand file tree Collapse file tree 4 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 38
38
"react-dom" : " 17.0.2" ,
39
39
"react-router-dom" : " 6.3.0" ,
40
40
"swr" : " 1.2.2" ,
41
+ "uuid" : " ^8.3.2" ,
41
42
"xstate" : " 4.30.6" ,
42
43
"yup" : " 0.32.11"
43
44
},
57
58
"@types/react" : " 17.0.43" ,
58
59
"@types/react-dom" : " 17.0.14" ,
59
60
"@types/superagent" : " 4.1.15" ,
61
+ "@types/uuid" : " ^8.3.4" ,
60
62
"@typescript-eslint/eslint-plugin" : " 5.18.0" ,
61
63
"@typescript-eslint/parser" : " 5.18.0" ,
62
64
"@xstate/cli" : " 0.1.6" ,
Original file line number Diff line number Diff line change 1
- import internal from "stream" ;
2
-
3
1
/**
4
2
* `BuildInfoResponse` must be kept in sync with the go struct in buildinfo.go.
5
3
*/
@@ -77,18 +75,12 @@ export interface UserAgent {
77
75
readonly os : string
78
76
}
79
77
80
- export interface Cursor {
78
+ export interface Pager {
81
79
after : string
82
80
before : string
83
81
limit : number
84
82
total : number
85
83
}
86
- export interface Pager {
87
- cursor : Cursor
88
- next : string
89
- previous : string
90
- total : number
91
- }
92
84
93
85
export interface PagedUsers {
94
86
page : UserResponse [ ]
Original file line number Diff line number Diff line change 8
8
Workspace ,
9
9
Pager
10
10
} from "../api/types"
11
+ import { v4 as uuidv4 } from 'uuid' ;
11
12
12
13
export const MockSessionToken = { session_token : "my-session-token" }
13
14
@@ -33,15 +34,10 @@ export const MockUser2: UserResponse = {
33
34
}
34
35
35
36
export const MockPager : Pager = {
36
- cursor : {
37
- after : "" ,
38
- before : "" ,
39
- limit : 10 ,
40
- total : 25
41
- } ,
42
- next : "" ,
43
- previous : "" ,
44
- total : 25
37
+ after : uuidv4 ( ) ,
38
+ before : uuidv4 ( ) ,
39
+ limit : 10 ,
40
+ total : 25
45
41
}
46
42
47
43
export const MockOrganization : Organization = {
Original file line number Diff line number Diff line change 3751
3751
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
3752
3752
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
3753
3753
3754
+ "@types/uuid@^8.3.4":
3755
+ version "8.3.4"
3756
+ resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc"
3757
+ integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==
3758
+
3754
3759
"@types/webpack-env@^1.16.0":
3755
3760
version "1.16.3"
3756
3761
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.16.3.tgz#b776327a73e561b71e7881d0cd6d34a1424db86a"
You can’t perform that action at this time.
0 commit comments