* Mirror new fields on labelerViewDetailed (cherry picked from commit 33fdceec26c189995936129355135fdb1480a738) (cherry picked from commit fe5626639e2d9d03448d8a7e829ad4d8b5e54ec3) * Mirror new labeler service record properties on labelerViewDetailed lexicons (cherry picked from commit 6a490f83232c258ac4cc2cd46379048195c4710f) * Include new labeler service record properties on the labelerViewDetailed reponse from the app view. (cherry picked from commit 279ed6472d370a61bf669656fda2fddaf2f88621) * Format (cherry picked from commit 620346d1e15d130e11fea45cf05d12d246b8e605) * Fix up bad conflict resolution in test suite (cherry picked from commit efa04cf592088be0bb8c7c96eb2d45ecbc1a2ea4) * Import order (cherry picked from commit 82567caaf53daa09951f71704827ff8d48f1bcc3)
219 lines
5.7 KiB
Plaintext
219 lines
5.7 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`labeler service views fetches labelers 1`] = `
|
|
Object {
|
|
"views": Array [
|
|
Object {
|
|
"$type": "app.bsky.labeler.defs#labelerView",
|
|
"cid": "cids(0)",
|
|
"creator": Object {
|
|
"associated": Object {
|
|
"labeler": true,
|
|
},
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 1,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"like": "record(4)",
|
|
},
|
|
},
|
|
Object {
|
|
"$type": "app.bsky.labeler.defs#labelerView",
|
|
"cid": "cids(3)",
|
|
"creator": Object {
|
|
"associated": Object {
|
|
"labeler": true,
|
|
},
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "hi im bob label_me",
|
|
"did": "user(2)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(5)",
|
|
"viewer": Object {},
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`labeler service views fetches labelers detailed 1`] = `
|
|
Object {
|
|
"views": Array [
|
|
Object {
|
|
"$type": "app.bsky.labeler.defs#labelerViewDetailed",
|
|
"cid": "cids(0)",
|
|
"creator": Object {
|
|
"associated": Object {
|
|
"labeler": true,
|
|
},
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 1,
|
|
"policies": Object {
|
|
"labelValues": Array [
|
|
"spam",
|
|
"!hide",
|
|
"scam",
|
|
"impersonation",
|
|
],
|
|
},
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"like": "record(4)",
|
|
},
|
|
},
|
|
Object {
|
|
"$type": "app.bsky.labeler.defs#labelerViewDetailed",
|
|
"cid": "cids(3)",
|
|
"creator": Object {
|
|
"associated": Object {
|
|
"labeler": true,
|
|
},
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "hi im bob label_me",
|
|
"did": "user(2)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"policies": Object {
|
|
"labelValues": Array [
|
|
"nudity",
|
|
"sexual",
|
|
"porn",
|
|
],
|
|
},
|
|
"uri": "record(5)",
|
|
"viewer": Object {},
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`labeler service views returns additional labeler data 1`] = `
|
|
Object {
|
|
"views": Array [
|
|
Object {
|
|
"$type": "app.bsky.labeler.defs#labelerViewDetailed",
|
|
"cid": "cids(0)",
|
|
"creator": Object {
|
|
"associated": Object {
|
|
"labeler": true,
|
|
},
|
|
"did": "user(0)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"policies": Object {
|
|
"labelValues": Array [
|
|
"spam",
|
|
"!hide",
|
|
"scam",
|
|
"impersonation",
|
|
],
|
|
},
|
|
"reasonTypes": Array [
|
|
"com.atproto.moderation.defs#reasonOther",
|
|
],
|
|
"subjectCollections": Array [
|
|
"app.bsky.feed.post",
|
|
],
|
|
"subjectTypes": Array [
|
|
"record",
|
|
],
|
|
"uri": "record(0)",
|
|
"viewer": Object {},
|
|
},
|
|
],
|
|
}
|
|
`;
|