@@ -22,6 +22,17 @@ export const MockOrganization: TypesGen.Organization = {
22
22
is_default : false ,
23
23
} ;
24
24
25
+ export const MockOrganization2 : TypesGen . Organization = {
26
+ id : "8efa9208-656a-422d-842d-b9dec0cf1bf3" ,
27
+ name : "my-second-organization" ,
28
+ display_name : "My Second Organization" ,
29
+ description : "A second organization that gets used for stuff." ,
30
+ icon : "" ,
31
+ created_at : "" ,
32
+ updated_at : "" ,
33
+ is_default : false ,
34
+ } ;
35
+
25
36
export const MockDefaultOrganization : TypesGen . Organization = {
26
37
...MockOrganization ,
27
38
is_default : true ,
@@ -2148,16 +2159,19 @@ export const MockEntitlementsWithUserLimit: TypesGen.Entitlements = {
2148
2159
2149
2160
export const MockExperiments : TypesGen . Experiment [ ] = [ ] ;
2150
2161
2162
+ /**
2163
+ * An audit log for MockOrganization.
2164
+ */
2151
2165
export const MockAuditLog : TypesGen . AuditLog = {
2152
2166
id : "fbd2116a-8961-4954-87ae-e4575bd29ce0" ,
2153
2167
request_id : "53bded77-7b9d-4e82-8771-991a34d759f9" ,
2154
2168
time : "2022-05-19T16:45:57.122Z" ,
2155
2169
organization_id : MockOrganization . id ,
2156
2170
organization : {
2157
2171
id : MockOrganization . id ,
2158
- name : "mock name" ,
2159
- display_name : "mock display name" ,
2160
- icon : "/emojis/1f48f-1f3ff.png" ,
2172
+ name : MockOrganization . name ,
2173
+ display_name : MockOrganization . display_name ,
2174
+ icon : MockOrganization . icon ,
2161
2175
} ,
2162
2176
ip : "127.0.0.1" ,
2163
2177
user_agent :
@@ -2182,12 +2196,22 @@ export const MockAuditLog: TypesGen.AuditLog = {
2182
2196
is_deleted : false ,
2183
2197
} ;
2184
2198
2199
+ /**
2200
+ * An audit log for MockOrganization2.
2201
+ */
2185
2202
export const MockAuditLog2 : TypesGen . AuditLog = {
2186
2203
...MockAuditLog ,
2187
2204
id : "53bded77-7b9d-4e82-8771-991a34d759f9" ,
2188
2205
action : "write" ,
2189
2206
time : "2022-05-20T16:45:57.122Z" ,
2190
2207
description : "{user} updated workspace {target}" ,
2208
+ organization_id : MockOrganization2 . id ,
2209
+ organization : {
2210
+ id : MockOrganization2 . id ,
2211
+ name : MockOrganization2 . name ,
2212
+ display_name : MockOrganization2 . display_name ,
2213
+ icon : MockOrganization2 . icon ,
2214
+ } ,
2191
2215
diff : {
2192
2216
workspace_name : {
2193
2217
old : "old-workspace-name" ,
@@ -2212,6 +2236,37 @@ export const MockAuditLog2: TypesGen.AuditLog = {
2212
2236
} ,
2213
2237
} ;
2214
2238
2239
+ /**
2240
+ * An audit log without an organization.
2241
+ */
2242
+ export const MockAuditLog3 : TypesGen . AuditLog = {
2243
+ id : "8efa9208-656a-422d-842d-b9dec0cf1bf3" ,
2244
+ request_id : "57ee9510-8330-480d-9ffa-4024e5805465" ,
2245
+ time : "2024-06-11T01:32:11.123Z" ,
2246
+ organization_id : "00000000-0000-0000-000000000000" ,
2247
+ ip : "127.0.0.1" ,
2248
+ user_agent :
2249
+ '"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"' ,
2250
+ resource_type : "template" ,
2251
+ resource_id : "a624458c-1562-4689-a671-42c0b7d2d0c5" ,
2252
+ resource_target : "docker" ,
2253
+ resource_icon : "" ,
2254
+ action : "write" ,
2255
+ diff : {
2256
+ display_name : {
2257
+ old : "old display" ,
2258
+ new : "new display" ,
2259
+ secret : false ,
2260
+ } ,
2261
+ } ,
2262
+ status_code : 200 ,
2263
+ additional_fields : { } ,
2264
+ description : "{user} updated template {target}" ,
2265
+ user : MockUser ,
2266
+ resource_link : "/templates/docker" ,
2267
+ is_deleted : false ,
2268
+ } ;
2269
+
2215
2270
export const MockWorkspaceCreateAuditLogForDifferentOwner = {
2216
2271
...MockAuditLog ,
2217
2272
additional_fields : {
0 commit comments