* Make codegen types stricter * Add .js file extension to import statements in generated code * Fixes a bug that would clear interests prefs when updating hidden posts prefs.
347 lines
9.5 KiB
Plaintext
347 lines
9.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`moderation-events get event gets an event by specific id 1`] = `
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(2)",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "X",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonMisleading",
|
|
},
|
|
"id": 1,
|
|
"subject": Object {
|
|
"$type": "tools.ozone.moderation.defs#repoView",
|
|
"did": "user(0)",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"moderation": Object {
|
|
"subjectStatus": Object {
|
|
"accountStats": Object {
|
|
"$type": "tools.ozone.moderation.defs#accountStats",
|
|
"appealCount": 0,
|
|
"escalateCount": 1,
|
|
"reportCount": 4,
|
|
"suspendCount": 0,
|
|
"takedownCount": 0,
|
|
},
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"hosting": Object {
|
|
"$type": "tools.ozone.moderation.defs#accountHosting",
|
|
"status": "unknown",
|
|
},
|
|
"id": 1,
|
|
"lastReportedAt": "1970-01-01T00:00:00.000Z",
|
|
"lastReviewedAt": "1970-01-01T00:00:00.000Z",
|
|
"lastReviewedBy": "user(1)",
|
|
"priorityScore": 0,
|
|
"recordsStats": Object {
|
|
"$type": "tools.ozone.moderation.defs#recordsStats",
|
|
"appealedCount": 0,
|
|
"escalatedCount": 0,
|
|
"pendingCount": 2,
|
|
"processedCount": 0,
|
|
"reportedCount": 2,
|
|
"subjectCount": 2,
|
|
"takendownCount": 0,
|
|
"totalReports": 3,
|
|
},
|
|
"reviewState": "tools.ozone.moderation.defs#reviewEscalated",
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectRepoHandle": "alice.test",
|
|
"tags": Array [
|
|
"report:misleading",
|
|
"lang:und",
|
|
"report:spam",
|
|
],
|
|
"takendown": false,
|
|
"updatedAt": "1970-01-01T00:00:00.000Z",
|
|
},
|
|
},
|
|
"relatedRecords": Array [
|
|
Object {
|
|
"$type": "app.bsky.actor.profile",
|
|
"avatar": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(0)",
|
|
},
|
|
"size": 3976,
|
|
},
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"displayName": "ali",
|
|
"labels": Object {
|
|
"$type": "com.atproto.label.defs#selfLabels",
|
|
"values": Array [
|
|
Object {
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectBlobs": Array [],
|
|
}
|
|
`;
|
|
|
|
exports[`moderation-events query events returns all events for record or repo 1`] = `
|
|
Array [
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "alice.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "X",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 11,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "bob.test",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(2)",
|
|
"creatorHandle": "mod-authority.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventTag",
|
|
"add": Array [
|
|
"report:spam",
|
|
"lang:en",
|
|
"lang:i",
|
|
],
|
|
"remove": Array [],
|
|
},
|
|
"id": 6,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "bob.test",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "alice.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "X",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 5,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "bob.test",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`moderation-events query events returns all events for record or repo 2`] = `
|
|
Array [
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(0)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "X",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 10,
|
|
"subject": Object {
|
|
"$type": "com.atproto.repo.strongRef",
|
|
"cid": "cids(0)",
|
|
"uri": "record(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "mod-authority.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventTag",
|
|
"add": Array [
|
|
"report:spam",
|
|
"lang:en",
|
|
],
|
|
"remove": Array [],
|
|
},
|
|
"id": 4,
|
|
"subject": Object {
|
|
"$type": "com.atproto.repo.strongRef",
|
|
"cid": "cids(0)",
|
|
"uri": "record(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(0)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "X",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 3,
|
|
"subject": Object {
|
|
"$type": "com.atproto.repo.strongRef",
|
|
"cid": "cids(0)",
|
|
"uri": "record(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`moderation-events query events returns events matching multiple keywords in comment 1`] = `
|
|
Array [
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "rainy days feel lazy",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 17,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "november rain",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 15,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`moderation-events query events returns events matching multiple keywords in comment 2`] = `
|
|
Array [
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "rainy days feel lazy",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 17,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "november rain",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 15,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`moderation-events query events returns events matching multiple keywords in comment 3`] = `
|
|
Array [
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "rainy days feel lazy",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 17,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"createdBy": "user(1)",
|
|
"creatorHandle": "bob.test",
|
|
"event": Object {
|
|
"$type": "tools.ozone.moderation.defs#modEventReport",
|
|
"comment": "november rain",
|
|
"isReporterMuted": false,
|
|
"reportType": "com.atproto.moderation.defs#reasonSpam",
|
|
},
|
|
"id": 15,
|
|
"subject": Object {
|
|
"$type": "com.atproto.admin.defs#repoRef",
|
|
"did": "user(0)",
|
|
},
|
|
"subjectBlobCids": Array [],
|
|
"subjectHandle": "alice.test",
|
|
},
|
|
]
|
|
`;
|