Add quoteCount to embed view ()

Co-authored-by: devin ivy <devinivy@gmail.com>
This commit is contained in:
Hailey 2024-08-22 09:49:06 -07:00 committed by GitHub
parent 5fef534610
commit 4ab2483547
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with 82 additions and 0 deletions
.changeset
lexicons/app/bsky/embed
packages
api/src/client
lexicons.ts
types/app/bsky/embed
bsky
ozone/src/lexicon
lexicons.ts
types/app/bsky/embed
pds
src/lexicon
lexicons.ts
types/app/bsky/embed
tests/proxied/__snapshots__

@ -0,0 +1,6 @@
---
"@atproto/bsky": patch
"@atproto/api": patch
---
add `quoteCount` to embed view

@ -50,6 +50,7 @@
"replyCount": { "type": "integer" },
"repostCount": { "type": "integer" },
"likeCount": { "type": "integer" },
"quoteCount": { "type": "integer" },
"embeds": {
"type": "array",
"items": {

@ -5034,6 +5034,9 @@ export const schemaDict = {
likeCount: {
type: 'integer',
},
quoteCount: {
type: 'integer',
},
embeds: {
type: 'array',
items: {

@ -67,6 +67,7 @@ export interface ViewRecord {
replyCount?: number
repostCount?: number
likeCount?: number
quoteCount?: number
embeds?: (
| AppBskyEmbedImages.View
| AppBskyEmbedExternal.View

@ -5034,6 +5034,9 @@ export const schemaDict = {
likeCount: {
type: 'integer',
},
quoteCount: {
type: 'integer',
},
embeds: {
type: 'array',
items: {

@ -67,6 +67,7 @@ export interface ViewRecord {
replyCount?: number
repostCount?: number
likeCount?: number
quoteCount?: number
embeds?: (
| AppBskyEmbedImages.View
| AppBskyEmbedExternal.View

@ -950,6 +950,7 @@ export class Views {
likeCount: postView.likeCount,
replyCount: postView.replyCount,
repostCount: postView.repostCount,
quoteCount: postView.quoteCount,
indexedAt: postView.indexedAt,
embeds: depth > 1 ? undefined : postView.embed ? [postView.embed] : [],
}

@ -656,6 +656,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -939,6 +940,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -958,6 +960,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(5)",
@ -1162,6 +1165,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(3)",
@ -1464,6 +1468,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(5)",

@ -290,6 +290,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(9)",
@ -340,6 +341,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(7)",

@ -291,6 +291,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(9)",
@ -341,6 +342,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(7)",
@ -852,6 +854,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -871,6 +874,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(1)",
@ -1162,6 +1166,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -1616,6 +1621,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",
@ -1635,6 +1641,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(10)",
@ -2054,6 +2061,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(10)",
@ -2104,6 +2112,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(9)",

@ -73,6 +73,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(3)",

@ -73,6 +73,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(3)",

@ -483,6 +483,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(10)",
@ -533,6 +534,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(9)",

@ -199,6 +199,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(3)",
@ -340,6 +341,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(3)",
@ -359,6 +361,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(6)",

@ -148,6 +148,7 @@ Object {
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(1)",
@ -254,6 +255,7 @@ Object {
},
],
"likeCount": 0,
"quoteCount": 2,
"replyCount": 0,
"repostCount": 0,
"uri": "record(1)",
@ -351,6 +353,7 @@ Object {
},
],
"likeCount": 0,
"quoteCount": 2,
"replyCount": 0,
"repostCount": 0,
"uri": "record(1)",

@ -375,6 +375,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(6)",
@ -1356,6 +1357,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(15)",
@ -1936,6 +1938,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",
@ -1963,6 +1966,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(8)",
@ -2680,6 +2684,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(8)",
@ -2730,6 +2735,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(7)",
@ -2958,6 +2964,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",
@ -2985,6 +2992,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(8)",
@ -3167,6 +3175,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",
@ -3439,6 +3448,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(4)",
@ -3466,6 +3476,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -4197,6 +4208,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -4247,6 +4259,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(0)",
@ -4454,6 +4467,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(4)",
@ -4725,6 +4739,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -4752,6 +4767,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(1)",
@ -5295,6 +5311,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(1)",
@ -5345,6 +5362,7 @@ Array [
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(0)",
@ -5519,6 +5537,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(2)",
@ -6276,6 +6295,7 @@ Array [
},
],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(12)",
@ -6303,6 +6323,7 @@ Array [
},
],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",

@ -5034,6 +5034,9 @@ export const schemaDict = {
likeCount: {
type: 'integer',
},
quoteCount: {
type: 'integer',
},
embeds: {
type: 'array',
items: {

@ -67,6 +67,7 @@ export interface ViewRecord {
replyCount?: number
repostCount?: number
likeCount?: number
quoteCount?: number
embeds?: (
| AppBskyEmbedImages.View
| AppBskyEmbedExternal.View

@ -5034,6 +5034,9 @@ export const schemaDict = {
likeCount: {
type: 'integer',
},
quoteCount: {
type: 'integer',
},
embeds: {
type: 'array',
items: {

@ -67,6 +67,7 @@ export interface ViewRecord {
replyCount?: number
repostCount?: number
likeCount?: number
quoteCount?: number
embeds?: (
| AppBskyEmbedImages.View
| AppBskyEmbedExternal.View

@ -120,6 +120,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(5)",

@ -1309,6 +1309,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(9)",
@ -1359,6 +1360,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(7)",
@ -1697,6 +1699,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(0)",
@ -2163,6 +2166,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",
@ -2182,6 +2186,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(8)",
@ -2863,6 +2868,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(8)",
@ -2913,6 +2919,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 1,
"uri": "record(7)",
@ -3127,6 +3134,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",
@ -3146,6 +3154,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 2,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(8)",
@ -3322,6 +3331,7 @@ Object {
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"quoteCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(11)",