atproto/packages/ozone/tests/__snapshots__/get-starter-pack.test.ts.snap
devin ivy af7d3912a3
Starter packs (#2553)
* lexicon: initial starter pack record lexicons

* lexicon: first pass on views for starter packs

* lexicon: add starter pack query endpoints, misc fixes

* lexicon: add starter pack related fields to profile views

* lexicon: codegen

* api prerelease

* bsky: protos for starter packs

* appview: implement starter pack endpoints in dataplane, protos update

* appview: starter pack hydration and view, mock dataplane indexing

* appview: wire-up starter pack graph endpoints

* appview: test basic starter packs functionality, update dev-env

* fix snaps for profile createdAt

* appview: fix list item count for starter packs in dataplane

* fix ozone snaps, tidy

* appview: reorg list aggs for starter packs

* appview: starter pack lexicon and proto tweaks, move around aggregations

* appview: fix views and snaps

* api prerelease

* fix snaps

* appview: misc proto updates for starter packs, snaps

* appview: add starter pack counts to profile detail

* build

* api prerelease

* pds: starter pack slur detection

* lexicon: starter pack notifications and batch fetch

* appview: starter pack notification and batch fetch

* appview: add starterpack-joined notif to dataplane and test

* api prerelease

* ozone: fix snaps

* pds build

*  Proxy starterpack requests through ozone and include takedowns (#2594)

*  Proxy starterpack requests through ozone and include takedowns

* 🧹 Cleanup

*  Commit snapshots

*  Update snapshot

* lexicon: move starterpacks back to TIDs

* changeset

---------

Co-authored-by: Foysal Ahamed <foysal@blueskyweb.xyz>
2024-06-24 21:04:33 -04:00

467 lines
12 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`admin get starter pack view getStarterPack() gets a starterpack by uri 1`] = `
Object {
"starterPack": Object {
"cid": "cids(0)",
"creator": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"displayName": "ali",
"handle": "alice.test",
"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,
"muted": false,
},
},
"feeds": Array [
Object {
"cid": "cids(3)",
"creator": Object {
"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,
"muted": false,
},
},
"did": "did:web:example.com",
"displayName": "alice's feedgen",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"uri": "record(2)",
"viewer": Object {},
},
],
"indexedAt": "1970-01-01T00:00:00.000Z",
"joinedAllTimeCount": 0,
"joinedWeekCount": 0,
"labels": Array [],
"list": Object {
"cid": "cids(4)",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"listItemCount": 3,
"name": "n/a",
"purpose": "app.bsky.graph.defs#referencelist",
"uri": "record(1)",
"viewer": Object {
"muted": false,
},
},
"listItemsSample": Array [
Object {
"subject": Object {
"did": "user(2)",
"handle": "carol.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"uri": "record(4)",
},
Object {
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(3)",
"displayName": "bobby",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"uri": "record(5)",
},
Object {
"subject": Object {
"associated": Object {
"chat": Object {
"allowIncoming": "none",
},
},
"did": "user(5)",
"handle": "dan.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"uri": "record(6)",
},
],
"record": Object {
"$type": "app.bsky.graph.starterpack",
"createdAt": "1970-01-01T00:00:00.000Z",
"feeds": Array [
Object {
"uri": "record(2)",
},
],
"list": "record(1)",
"name": "alice's starter pack",
},
"uri": "record(0)",
},
}
`;
exports[`admin get starter pack view getStarterPack() gets a starterpack while taken down 1`] = `
Object {
"cid": "cids(0)",
"creator": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"displayName": "ali",
"handle": "alice.test",
"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,
"muted": false,
},
},
"feeds": Array [
Object {
"cid": "cids(3)",
"creator": Object {
"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,
"muted": false,
},
},
"did": "did:web:example.com",
"displayName": "alice's feedgen",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"uri": "record(2)",
"viewer": Object {},
},
],
"indexedAt": "1970-01-01T00:00:00.000Z",
"joinedAllTimeCount": 0,
"joinedWeekCount": 0,
"labels": Array [],
"list": Object {
"cid": "cids(4)",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"listItemCount": 3,
"name": "n/a",
"purpose": "app.bsky.graph.defs#referencelist",
"uri": "record(1)",
"viewer": Object {
"muted": false,
},
},
"listItemsSample": Array [
Object {
"subject": Object {
"did": "user(2)",
"handle": "carol.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(6)",
"following": "record(5)",
"muted": false,
},
},
"uri": "record(4)",
},
Object {
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(3)",
"displayName": "bobby",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(9)",
"following": "record(8)",
"muted": false,
},
},
"uri": "record(7)",
},
Object {
"subject": Object {
"associated": Object {
"chat": Object {
"allowIncoming": "none",
},
},
"did": "user(5)",
"handle": "dan.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"following": "record(11)",
"muted": false,
},
},
"uri": "record(10)",
},
],
"record": Object {
"$type": "app.bsky.graph.starterpack",
"createdAt": "1970-01-01T00:00:00.000Z",
"feeds": Array [
Object {
"uri": "record(2)",
},
],
"list": "record(1)",
"name": "alice's starter pack",
},
"uri": "record(0)",
}
`;
exports[`admin get starter pack view getStarterPack() gets a starterpack while taken down 2`] = `
Object {
"cid": "cids(0)",
"creator": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"displayName": "ali",
"handle": "alice.test",
"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,
"muted": false,
},
},
"feeds": Array [
Object {
"cid": "cids(3)",
"creator": Object {
"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,
"muted": false,
},
},
"did": "did:web:example.com",
"displayName": "alice's feedgen",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"uri": "record(2)",
"viewer": Object {},
},
],
"indexedAt": "1970-01-01T00:00:00.000Z",
"joinedAllTimeCount": 0,
"joinedWeekCount": 0,
"labels": Array [
Object {
"cid": "cids(0)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(2)",
"uri": "record(0)",
"val": "!takedown",
},
],
"list": Object {
"cid": "cids(4)",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"listItemCount": 3,
"name": "n/a",
"purpose": "app.bsky.graph.defs#referencelist",
"uri": "record(1)",
"viewer": Object {
"muted": false,
},
},
"listItemsSample": Array [
Object {
"subject": Object {
"did": "user(3)",
"handle": "carol.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"uri": "record(4)",
},
Object {
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(4)",
"displayName": "bobby",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"uri": "record(5)",
},
Object {
"subject": Object {
"associated": Object {
"chat": Object {
"allowIncoming": "none",
},
},
"did": "user(6)",
"handle": "dan.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"uri": "record(6)",
},
],
"record": Object {
"$type": "app.bsky.graph.starterpack",
"createdAt": "1970-01-01T00:00:00.000Z",
"feeds": Array [
Object {
"uri": "record(2)",
},
],
"list": "record(1)",
"name": "alice's starter pack",
},
"uri": "record(0)",
}
`;