@verbatims/sdk 1.6.15 → 1.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/quotes.d.ts +226 -0
- package/dist/resources/quotes.d.ts.map +1 -1
- package/dist/resources/quotes.js +30 -0
- package/dist/resources/quotes.js.map +1 -1
- package/dist/resources/social.d.ts +272 -0
- package/dist/resources/social.d.ts.map +1 -0
- package/dist/resources/social.js +153 -0
- package/dist/resources/social.js.map +1 -0
- package/dist/types.d.ts +153 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +26 -0
- package/src/resources/__tests__/resources.test.ts +269 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/quotes.ts +33 -0
- package/src/resources/social.ts +190 -0
- package/src/types.ts +164 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import type { VerbatimsClient } from '../client';
|
|
2
|
+
import type { SocialQueueItem, ListSocialQueueParams, ListSocialPostsParams, AddToSocialQueueData, AddRandomToSocialQueueData, ClearSocialQueueData, ReorderSocialQueueData, RunSocialAutopostData } from '../types';
|
|
3
|
+
export declare class SocialResource {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: VerbatimsClient);
|
|
6
|
+
listPlatforms(): Promise<{
|
|
7
|
+
success: true;
|
|
8
|
+
data?: {
|
|
9
|
+
platform: "x" | "bluesky" | "instagram" | "threads" | "facebook" | "pinterest";
|
|
10
|
+
label: string;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
queue: {
|
|
13
|
+
queued: number;
|
|
14
|
+
processing: number;
|
|
15
|
+
posted: number;
|
|
16
|
+
failed: number;
|
|
17
|
+
};
|
|
18
|
+
}[] | undefined;
|
|
19
|
+
message?: string | undefined;
|
|
20
|
+
pagination?: {
|
|
21
|
+
page: number;
|
|
22
|
+
limit: number;
|
|
23
|
+
total: number;
|
|
24
|
+
totalPages: number;
|
|
25
|
+
hasMore: boolean;
|
|
26
|
+
} | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
listQueue(params?: ListSocialQueueParams): Promise<{
|
|
29
|
+
success: true;
|
|
30
|
+
data?: {
|
|
31
|
+
queue: {
|
|
32
|
+
id: number;
|
|
33
|
+
quote_id: number;
|
|
34
|
+
source_type: string;
|
|
35
|
+
source_id: number;
|
|
36
|
+
platform: "x" | "bluesky" | "instagram" | "threads" | "facebook" | "pinterest";
|
|
37
|
+
status: "queued" | "processing" | "posted" | "failed";
|
|
38
|
+
position: number;
|
|
39
|
+
scheduled_for: string | null;
|
|
40
|
+
created_at: string | null;
|
|
41
|
+
updated_at: string | null;
|
|
42
|
+
published_post_url: string | null;
|
|
43
|
+
published_external_post_id: string | null;
|
|
44
|
+
published_posted_at: string | null;
|
|
45
|
+
error_message: string | null;
|
|
46
|
+
quote_posts_count: number;
|
|
47
|
+
quote_text: string | null;
|
|
48
|
+
quote_language: string | null;
|
|
49
|
+
author_name: string | null;
|
|
50
|
+
reference_name: string | null;
|
|
51
|
+
resolved_content: {
|
|
52
|
+
source_type: string;
|
|
53
|
+
source_id: number;
|
|
54
|
+
primary_text: string | null;
|
|
55
|
+
secondary_text: string | null;
|
|
56
|
+
canonical_path: string | null;
|
|
57
|
+
title: string | null;
|
|
58
|
+
subtitle: string | null;
|
|
59
|
+
language: string | null;
|
|
60
|
+
} | null;
|
|
61
|
+
}[];
|
|
62
|
+
stats: {
|
|
63
|
+
queued: number;
|
|
64
|
+
processing: number;
|
|
65
|
+
posted: number;
|
|
66
|
+
failed: number;
|
|
67
|
+
};
|
|
68
|
+
} | undefined;
|
|
69
|
+
message?: string | undefined;
|
|
70
|
+
pagination?: {
|
|
71
|
+
page: number;
|
|
72
|
+
limit: number;
|
|
73
|
+
total: number;
|
|
74
|
+
totalPages: number;
|
|
75
|
+
hasMore: boolean;
|
|
76
|
+
} | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
paginateQueue(params?: ListSocialQueueParams): AsyncGenerator<SocialQueueItem>;
|
|
79
|
+
getQueueItem(id: number): Promise<{
|
|
80
|
+
success: true;
|
|
81
|
+
data?: {
|
|
82
|
+
id: number;
|
|
83
|
+
quote_id: number;
|
|
84
|
+
source_type: string;
|
|
85
|
+
source_id: number;
|
|
86
|
+
platform: "x" | "bluesky" | "instagram" | "threads" | "facebook" | "pinterest";
|
|
87
|
+
status: "queued" | "processing" | "posted" | "failed";
|
|
88
|
+
position: number;
|
|
89
|
+
scheduled_for: string | null;
|
|
90
|
+
created_at: string | null;
|
|
91
|
+
updated_at: string | null;
|
|
92
|
+
published_post_url: string | null;
|
|
93
|
+
published_external_post_id: string | null;
|
|
94
|
+
published_posted_at: string | null;
|
|
95
|
+
error_message: string | null;
|
|
96
|
+
quote_posts_count: number;
|
|
97
|
+
quote_text: string | null;
|
|
98
|
+
quote_language: string | null;
|
|
99
|
+
author_name: string | null;
|
|
100
|
+
reference_name: string | null;
|
|
101
|
+
resolved_content: {
|
|
102
|
+
source_type: string;
|
|
103
|
+
source_id: number;
|
|
104
|
+
primary_text: string | null;
|
|
105
|
+
secondary_text: string | null;
|
|
106
|
+
canonical_path: string | null;
|
|
107
|
+
title: string | null;
|
|
108
|
+
subtitle: string | null;
|
|
109
|
+
language: string | null;
|
|
110
|
+
} | null;
|
|
111
|
+
} | undefined;
|
|
112
|
+
message?: string | undefined;
|
|
113
|
+
pagination?: {
|
|
114
|
+
page: number;
|
|
115
|
+
limit: number;
|
|
116
|
+
total: number;
|
|
117
|
+
totalPages: number;
|
|
118
|
+
hasMore: boolean;
|
|
119
|
+
} | undefined;
|
|
120
|
+
}>;
|
|
121
|
+
addToQueue(data: AddToSocialQueueData): Promise<{
|
|
122
|
+
success: true;
|
|
123
|
+
data?: {
|
|
124
|
+
id: number;
|
|
125
|
+
quote_id: number;
|
|
126
|
+
source_type: string;
|
|
127
|
+
source_id: number;
|
|
128
|
+
position: number;
|
|
129
|
+
status?: "queued" | "processing" | "posted" | "failed" | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
message?: string | undefined;
|
|
132
|
+
pagination?: {
|
|
133
|
+
page: number;
|
|
134
|
+
limit: number;
|
|
135
|
+
total: number;
|
|
136
|
+
totalPages: number;
|
|
137
|
+
hasMore: boolean;
|
|
138
|
+
} | undefined;
|
|
139
|
+
count?: number | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
addRandomToQueue(data: AddRandomToSocialQueueData): Promise<{
|
|
142
|
+
success: true;
|
|
143
|
+
data?: {
|
|
144
|
+
id: number;
|
|
145
|
+
quote_id: number;
|
|
146
|
+
source_type: string;
|
|
147
|
+
source_id: number;
|
|
148
|
+
position: number;
|
|
149
|
+
status?: "queued" | "processing" | "posted" | "failed" | undefined;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
message?: string | undefined;
|
|
152
|
+
pagination?: {
|
|
153
|
+
page: number;
|
|
154
|
+
limit: number;
|
|
155
|
+
total: number;
|
|
156
|
+
totalPages: number;
|
|
157
|
+
hasMore: boolean;
|
|
158
|
+
} | undefined;
|
|
159
|
+
count?: number | undefined;
|
|
160
|
+
}>;
|
|
161
|
+
removeQueueItem(id: number): Promise<{
|
|
162
|
+
success: true;
|
|
163
|
+
data?: {
|
|
164
|
+
deleted: true;
|
|
165
|
+
id: number;
|
|
166
|
+
sourceType: string;
|
|
167
|
+
sourceId: number;
|
|
168
|
+
} | undefined;
|
|
169
|
+
message?: string | undefined;
|
|
170
|
+
pagination?: {
|
|
171
|
+
page: number;
|
|
172
|
+
limit: number;
|
|
173
|
+
total: number;
|
|
174
|
+
totalPages: number;
|
|
175
|
+
hasMore: boolean;
|
|
176
|
+
} | undefined;
|
|
177
|
+
}>;
|
|
178
|
+
clearQueue(data: ClearSocialQueueData): Promise<{
|
|
179
|
+
success: true;
|
|
180
|
+
data?: {
|
|
181
|
+
deleted: true;
|
|
182
|
+
platform: string;
|
|
183
|
+
deletedCount: number;
|
|
184
|
+
sourceTypes: {
|
|
185
|
+
sourceType: string;
|
|
186
|
+
count: number;
|
|
187
|
+
}[];
|
|
188
|
+
} | undefined;
|
|
189
|
+
message?: string | undefined;
|
|
190
|
+
pagination?: {
|
|
191
|
+
page: number;
|
|
192
|
+
limit: number;
|
|
193
|
+
total: number;
|
|
194
|
+
totalPages: number;
|
|
195
|
+
hasMore: boolean;
|
|
196
|
+
} | undefined;
|
|
197
|
+
}>;
|
|
198
|
+
reorderQueueItem(data: ReorderSocialQueueData): Promise<{
|
|
199
|
+
success: true;
|
|
200
|
+
data?: {
|
|
201
|
+
moved: boolean;
|
|
202
|
+
id?: number | undefined;
|
|
203
|
+
sourceType?: string | undefined;
|
|
204
|
+
sourceId?: number | undefined;
|
|
205
|
+
position?: number | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
message?: string | undefined;
|
|
208
|
+
pagination?: {
|
|
209
|
+
page: number;
|
|
210
|
+
limit: number;
|
|
211
|
+
total: number;
|
|
212
|
+
totalPages: number;
|
|
213
|
+
hasMore: boolean;
|
|
214
|
+
} | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
runNow(data?: RunSocialAutopostData): Promise<{
|
|
217
|
+
success: true;
|
|
218
|
+
data?: Record<string, unknown> | undefined;
|
|
219
|
+
message?: string | undefined;
|
|
220
|
+
pagination?: {
|
|
221
|
+
page: number;
|
|
222
|
+
limit: number;
|
|
223
|
+
total: number;
|
|
224
|
+
totalPages: number;
|
|
225
|
+
hasMore: boolean;
|
|
226
|
+
} | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
requeueQueueItem(id: number): Promise<{
|
|
229
|
+
success: true;
|
|
230
|
+
data?: {
|
|
231
|
+
requeued: true;
|
|
232
|
+
id: number;
|
|
233
|
+
} | undefined;
|
|
234
|
+
message?: string | undefined;
|
|
235
|
+
pagination?: {
|
|
236
|
+
page: number;
|
|
237
|
+
limit: number;
|
|
238
|
+
total: number;
|
|
239
|
+
totalPages: number;
|
|
240
|
+
hasMore: boolean;
|
|
241
|
+
} | undefined;
|
|
242
|
+
}>;
|
|
243
|
+
listPosts(params?: ListSocialPostsParams): Promise<{
|
|
244
|
+
success: true;
|
|
245
|
+
data?: {
|
|
246
|
+
posts: {
|
|
247
|
+
id: number;
|
|
248
|
+
quote_id: number;
|
|
249
|
+
source_type: string;
|
|
250
|
+
source_id: number;
|
|
251
|
+
queue_id: number | null;
|
|
252
|
+
platform: "x" | "bluesky" | "instagram" | "threads" | "facebook" | "pinterest";
|
|
253
|
+
status: "success" | "failed";
|
|
254
|
+
post_text: string | null;
|
|
255
|
+
post_url: string | null;
|
|
256
|
+
external_post_id: string | null;
|
|
257
|
+
error_message: string | null;
|
|
258
|
+
posted_at: string | null;
|
|
259
|
+
created_at: string | null;
|
|
260
|
+
}[];
|
|
261
|
+
} | undefined;
|
|
262
|
+
message?: string | undefined;
|
|
263
|
+
pagination?: {
|
|
264
|
+
page: number;
|
|
265
|
+
limit: number;
|
|
266
|
+
total: number;
|
|
267
|
+
totalPages: number;
|
|
268
|
+
hasMore: boolean;
|
|
269
|
+
} | undefined;
|
|
270
|
+
}>;
|
|
271
|
+
}
|
|
272
|
+
//# sourceMappingURL=social.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/resources/social.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAGhD,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,UAAU,CAAA;AAwHjB,qBAAa,cAAc;IACb,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,eAAe;IAErC,aAAa;;;;;;;;;;;;;;;;;;;;;;IAIb,SAAS,CAAC,MAAM,CAAC,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI9C,aAAa,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,cAAc,CAAC,eAAe,CAAC;IASxE,YAAY,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIvB,UAAU,CAAC,IAAI,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;IAIrC,gBAAgB,CAAC,IAAI,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;IAIjD,eAAe,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;IAI1B,UAAU,CAAC,IAAI,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;IAIrC,gBAAgB,CAAC,IAAI,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;IAI7C,MAAM,CAAC,IAAI,CAAC,EAAE,qBAAqB;;;;;;;;;;;;IAInC,gBAAgB,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;IAI3B,SAAS,CAAC,MAAM,CAAC,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/C"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { apiResponseSchema } from '../types';
|
|
3
|
+
import { paginate } from '../pagination';
|
|
4
|
+
const socialQueueStatsSchema = z.object({
|
|
5
|
+
queued: z.number(),
|
|
6
|
+
processing: z.number(),
|
|
7
|
+
posted: z.number(),
|
|
8
|
+
failed: z.number(),
|
|
9
|
+
});
|
|
10
|
+
const socialResolvedContentSchema = z.object({
|
|
11
|
+
source_type: z.string(),
|
|
12
|
+
source_id: z.number(),
|
|
13
|
+
primary_text: z.string().nullable(),
|
|
14
|
+
secondary_text: z.string().nullable(),
|
|
15
|
+
canonical_path: z.string().nullable(),
|
|
16
|
+
title: z.string().nullable(),
|
|
17
|
+
subtitle: z.string().nullable(),
|
|
18
|
+
language: z.string().nullable(),
|
|
19
|
+
});
|
|
20
|
+
const socialQueueItemSchema = z.object({
|
|
21
|
+
id: z.number(),
|
|
22
|
+
quote_id: z.number(),
|
|
23
|
+
source_type: z.string(),
|
|
24
|
+
source_id: z.number(),
|
|
25
|
+
platform: z.enum(['x', 'bluesky', 'instagram', 'threads', 'facebook', 'pinterest']),
|
|
26
|
+
status: z.enum(['queued', 'processing', 'posted', 'failed']),
|
|
27
|
+
position: z.number(),
|
|
28
|
+
scheduled_for: z.string().nullable(),
|
|
29
|
+
created_at: z.string().nullable(),
|
|
30
|
+
updated_at: z.string().nullable(),
|
|
31
|
+
published_post_url: z.string().nullable(),
|
|
32
|
+
published_external_post_id: z.string().nullable(),
|
|
33
|
+
published_posted_at: z.string().nullable(),
|
|
34
|
+
error_message: z.string().nullable(),
|
|
35
|
+
quote_posts_count: z.number(),
|
|
36
|
+
quote_text: z.string().nullable(),
|
|
37
|
+
quote_language: z.string().nullable(),
|
|
38
|
+
author_name: z.string().nullable(),
|
|
39
|
+
reference_name: z.string().nullable(),
|
|
40
|
+
resolved_content: socialResolvedContentSchema.nullable(),
|
|
41
|
+
});
|
|
42
|
+
const socialPostSchema = z.object({
|
|
43
|
+
id: z.number(),
|
|
44
|
+
quote_id: z.number(),
|
|
45
|
+
source_type: z.string(),
|
|
46
|
+
source_id: z.number(),
|
|
47
|
+
queue_id: z.number().nullable(),
|
|
48
|
+
platform: z.enum(['x', 'bluesky', 'instagram', 'threads', 'facebook', 'pinterest']),
|
|
49
|
+
status: z.enum(['success', 'failed']),
|
|
50
|
+
post_text: z.string().nullable(),
|
|
51
|
+
post_url: z.string().nullable(),
|
|
52
|
+
external_post_id: z.string().nullable(),
|
|
53
|
+
error_message: z.string().nullable(),
|
|
54
|
+
posted_at: z.string().nullable(),
|
|
55
|
+
created_at: z.string().nullable(),
|
|
56
|
+
});
|
|
57
|
+
const socialPlatformSchema = z.object({
|
|
58
|
+
platform: z.enum(['x', 'bluesky', 'instagram', 'threads', 'facebook', 'pinterest']),
|
|
59
|
+
label: z.string(),
|
|
60
|
+
enabled: z.boolean(),
|
|
61
|
+
queue: socialQueueStatsSchema,
|
|
62
|
+
});
|
|
63
|
+
const queuedItemSchema = z.object({
|
|
64
|
+
id: z.number(),
|
|
65
|
+
quote_id: z.number(),
|
|
66
|
+
source_type: z.string(),
|
|
67
|
+
source_id: z.number(),
|
|
68
|
+
position: z.number(),
|
|
69
|
+
status: z.enum(['queued', 'processing', 'posted', 'failed']).optional(),
|
|
70
|
+
});
|
|
71
|
+
const socialQueueListResponseSchema = apiResponseSchema(z.object({
|
|
72
|
+
queue: z.array(socialQueueItemSchema),
|
|
73
|
+
stats: socialQueueStatsSchema,
|
|
74
|
+
}));
|
|
75
|
+
const socialPostsListResponseSchema = apiResponseSchema(z.object({
|
|
76
|
+
posts: z.array(socialPostSchema),
|
|
77
|
+
}));
|
|
78
|
+
const socialPlatformsResponseSchema = apiResponseSchema(z.array(socialPlatformSchema));
|
|
79
|
+
const enqueueResponseSchema = apiResponseSchema(z.array(queuedItemSchema)).extend({
|
|
80
|
+
count: z.number().optional(),
|
|
81
|
+
});
|
|
82
|
+
const deleteQueueItemResponseSchema = apiResponseSchema(z.object({
|
|
83
|
+
deleted: z.literal(true),
|
|
84
|
+
id: z.number(),
|
|
85
|
+
sourceType: z.string(),
|
|
86
|
+
sourceId: z.number(),
|
|
87
|
+
}));
|
|
88
|
+
const clearQueueResponseSchema = apiResponseSchema(z.object({
|
|
89
|
+
deleted: z.literal(true),
|
|
90
|
+
platform: z.string(),
|
|
91
|
+
deletedCount: z.number(),
|
|
92
|
+
sourceTypes: z.array(z.object({
|
|
93
|
+
sourceType: z.string(),
|
|
94
|
+
count: z.number(),
|
|
95
|
+
})),
|
|
96
|
+
}));
|
|
97
|
+
const reorderQueueResponseSchema = apiResponseSchema(z.object({
|
|
98
|
+
moved: z.boolean(),
|
|
99
|
+
id: z.number().optional(),
|
|
100
|
+
sourceType: z.string().optional(),
|
|
101
|
+
sourceId: z.number().optional(),
|
|
102
|
+
position: z.number().optional(),
|
|
103
|
+
}));
|
|
104
|
+
const requeueQueueItemResponseSchema = apiResponseSchema(z.object({
|
|
105
|
+
requeued: z.literal(true),
|
|
106
|
+
id: z.number(),
|
|
107
|
+
}));
|
|
108
|
+
export class SocialResource {
|
|
109
|
+
client;
|
|
110
|
+
constructor(client) {
|
|
111
|
+
this.client = client;
|
|
112
|
+
}
|
|
113
|
+
async listPlatforms() {
|
|
114
|
+
return this.client.get('/social/platforms', {}, socialPlatformsResponseSchema);
|
|
115
|
+
}
|
|
116
|
+
async listQueue(params) {
|
|
117
|
+
return this.client.get('/social/queue', { params: params }, socialQueueListResponseSchema);
|
|
118
|
+
}
|
|
119
|
+
paginateQueue(params) {
|
|
120
|
+
return paginate((page) => this.listQueue({ ...params, page }).then(r => ({
|
|
121
|
+
data: r.data?.queue,
|
|
122
|
+
pagination: r.pagination,
|
|
123
|
+
})));
|
|
124
|
+
}
|
|
125
|
+
async getQueueItem(id) {
|
|
126
|
+
return this.client.get(`/social/queue/${id}`, {}, apiResponseSchema(socialQueueItemSchema));
|
|
127
|
+
}
|
|
128
|
+
async addToQueue(data) {
|
|
129
|
+
return this.client.post('/social/queue', data, {}, enqueueResponseSchema);
|
|
130
|
+
}
|
|
131
|
+
async addRandomToQueue(data) {
|
|
132
|
+
return this.client.post('/social/queue/bulk-random', data, {}, enqueueResponseSchema);
|
|
133
|
+
}
|
|
134
|
+
async removeQueueItem(id) {
|
|
135
|
+
return this.client.delete(`/social/queue/${id}`, {}, deleteQueueItemResponseSchema);
|
|
136
|
+
}
|
|
137
|
+
async clearQueue(data) {
|
|
138
|
+
return this.client.post('/social/queue/clear', data, {}, clearQueueResponseSchema);
|
|
139
|
+
}
|
|
140
|
+
async reorderQueueItem(data) {
|
|
141
|
+
return this.client.post('/social/queue/reorder', data, {}, reorderQueueResponseSchema);
|
|
142
|
+
}
|
|
143
|
+
async runNow(data) {
|
|
144
|
+
return this.client.post('/social/queue/run-now', data ?? {}, {}, apiResponseSchema(z.record(z.string(), z.unknown())));
|
|
145
|
+
}
|
|
146
|
+
async requeueQueueItem(id) {
|
|
147
|
+
return this.client.post(`/social/queue/${id}/requeue`, {}, {}, requeueQueueItemResponseSchema);
|
|
148
|
+
}
|
|
149
|
+
async listPosts(params) {
|
|
150
|
+
return this.client.get('/social/posts', { params: params }, socialPostsListResponseSchema);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=social.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/resources/social.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAYxC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAEF,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,M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,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAE,EAAE,EAAE,EAAE,6BAA6B,CAAC,CAAA;IACrF,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAA0B;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;IACpF,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,IAA4B;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;IACxF,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAA4B;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,IAAI,EAAE,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAA;IACxH,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,EAAU;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,8BAA8B,CAAC,CAAA;IAChG,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,MAA8B;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,MAAiC,EAAE,EAAE,6BAA6B,CAAC,CAAA;IACvH,CAAC;CACF"}
|
package/dist/types.d.ts
CHANGED
|
@@ -43,6 +43,39 @@ export interface QuoteReferenceInfo {
|
|
|
43
43
|
name: string;
|
|
44
44
|
type?: string;
|
|
45
45
|
}
|
|
46
|
+
export type ProvenanceStatus = 'unverified' | 'manually_verified' | 'externally_verified' | 'disputed';
|
|
47
|
+
export interface QuoteAttribution {
|
|
48
|
+
id: number;
|
|
49
|
+
quote_id: number;
|
|
50
|
+
author_id: number | null;
|
|
51
|
+
reference_id: number | null;
|
|
52
|
+
is_primary: boolean;
|
|
53
|
+
status: ProvenanceStatus;
|
|
54
|
+
verified_by?: number | null;
|
|
55
|
+
verified_at?: string | null;
|
|
56
|
+
notes?: string | null;
|
|
57
|
+
author?: {
|
|
58
|
+
id: number;
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
reference?: {
|
|
62
|
+
id: number;
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export interface QuoteSource {
|
|
67
|
+
id: number;
|
|
68
|
+
quote_id: number;
|
|
69
|
+
attribution_id: number | null;
|
|
70
|
+
source_type: string;
|
|
71
|
+
source_url?: string | null;
|
|
72
|
+
label?: string | null;
|
|
73
|
+
verification_status: ProvenanceStatus;
|
|
74
|
+
verified_by?: number | null;
|
|
75
|
+
verified_at?: string | null;
|
|
76
|
+
notes?: string | null;
|
|
77
|
+
is_primary: boolean;
|
|
78
|
+
}
|
|
46
79
|
export type QuoteStatus = 'draft' | 'pending' | 'approved' | 'rejected';
|
|
47
80
|
export interface QuoteStats {
|
|
48
81
|
views: number;
|
|
@@ -58,6 +91,12 @@ export interface QuoteWithRelations {
|
|
|
58
91
|
featured?: boolean;
|
|
59
92
|
author?: QuoteAuthor | null;
|
|
60
93
|
reference?: QuoteReferenceInfo | null;
|
|
94
|
+
source?: {
|
|
95
|
+
type: string;
|
|
96
|
+
url?: string | null;
|
|
97
|
+
} | null;
|
|
98
|
+
attributions?: QuoteAttribution[];
|
|
99
|
+
sources?: QuoteSource[];
|
|
61
100
|
tags?: Array<{
|
|
62
101
|
id: number;
|
|
63
102
|
name: string;
|
|
@@ -145,6 +184,8 @@ export interface CreateQuoteData {
|
|
|
145
184
|
language?: string;
|
|
146
185
|
author_id?: number;
|
|
147
186
|
reference_id?: number;
|
|
187
|
+
source_type?: string | null;
|
|
188
|
+
source_url?: string | null;
|
|
148
189
|
new_author?: {
|
|
149
190
|
name: string;
|
|
150
191
|
is_fictional?: boolean;
|
|
@@ -166,6 +207,8 @@ export interface UpdateQuoteData {
|
|
|
166
207
|
language?: string;
|
|
167
208
|
author_id?: number | null;
|
|
168
209
|
reference_id?: number | null;
|
|
210
|
+
source_type?: string | null;
|
|
211
|
+
source_url?: string | null;
|
|
169
212
|
}
|
|
170
213
|
export interface ModerateQuoteData {
|
|
171
214
|
action: 'approve' | 'reject';
|
|
@@ -421,4 +464,114 @@ export interface ThemeSuggestionsQuery {
|
|
|
421
464
|
tags?: string;
|
|
422
465
|
language?: string;
|
|
423
466
|
}
|
|
467
|
+
export type SocialPlatform = 'x' | 'bluesky' | 'instagram' | 'threads' | 'facebook' | 'pinterest';
|
|
468
|
+
export type SocialQueueStatus = 'queued' | 'processing' | 'posted' | 'failed';
|
|
469
|
+
export type SocialPostStatus = 'success' | 'failed';
|
|
470
|
+
export interface SocialQueueStats {
|
|
471
|
+
queued: number;
|
|
472
|
+
processing: number;
|
|
473
|
+
posted: number;
|
|
474
|
+
failed: number;
|
|
475
|
+
}
|
|
476
|
+
export interface SocialPlatformInfo {
|
|
477
|
+
platform: SocialPlatform;
|
|
478
|
+
label: string;
|
|
479
|
+
enabled: boolean;
|
|
480
|
+
queue: SocialQueueStats;
|
|
481
|
+
}
|
|
482
|
+
export interface SocialResolvedContent {
|
|
483
|
+
source_type: string;
|
|
484
|
+
source_id: number;
|
|
485
|
+
primary_text: string | null;
|
|
486
|
+
secondary_text: string | null;
|
|
487
|
+
canonical_path: string | null;
|
|
488
|
+
title: string | null;
|
|
489
|
+
subtitle: string | null;
|
|
490
|
+
language: string | null;
|
|
491
|
+
}
|
|
492
|
+
export interface SocialQueueItem {
|
|
493
|
+
id: number;
|
|
494
|
+
quote_id: number;
|
|
495
|
+
source_type: string;
|
|
496
|
+
source_id: number;
|
|
497
|
+
platform: SocialPlatform;
|
|
498
|
+
status: SocialQueueStatus;
|
|
499
|
+
position: number;
|
|
500
|
+
scheduled_for: string | null;
|
|
501
|
+
created_at: string | null;
|
|
502
|
+
updated_at: string | null;
|
|
503
|
+
published_post_url: string | null;
|
|
504
|
+
published_external_post_id: string | null;
|
|
505
|
+
published_posted_at: string | null;
|
|
506
|
+
error_message: string | null;
|
|
507
|
+
quote_posts_count: number;
|
|
508
|
+
quote_text: string | null;
|
|
509
|
+
quote_language: string | null;
|
|
510
|
+
author_name: string | null;
|
|
511
|
+
reference_name: string | null;
|
|
512
|
+
resolved_content: SocialResolvedContent | null;
|
|
513
|
+
}
|
|
514
|
+
export interface SocialPost {
|
|
515
|
+
id: number;
|
|
516
|
+
quote_id: number;
|
|
517
|
+
source_type: string;
|
|
518
|
+
source_id: number;
|
|
519
|
+
queue_id: number | null;
|
|
520
|
+
platform: SocialPlatform;
|
|
521
|
+
status: SocialPostStatus;
|
|
522
|
+
post_text: string | null;
|
|
523
|
+
post_url: string | null;
|
|
524
|
+
external_post_id: string | null;
|
|
525
|
+
error_message: string | null;
|
|
526
|
+
posted_at: string | null;
|
|
527
|
+
created_at: string | null;
|
|
528
|
+
}
|
|
529
|
+
export interface QueuedSocialItem {
|
|
530
|
+
id: number;
|
|
531
|
+
quote_id: number;
|
|
532
|
+
source_type: string;
|
|
533
|
+
source_id: number;
|
|
534
|
+
position: number;
|
|
535
|
+
status?: SocialQueueStatus;
|
|
536
|
+
}
|
|
537
|
+
export interface ListSocialQueueParams {
|
|
538
|
+
page?: number;
|
|
539
|
+
limit?: number;
|
|
540
|
+
platform?: SocialPlatform;
|
|
541
|
+
status?: SocialQueueStatus | 'active';
|
|
542
|
+
search?: string;
|
|
543
|
+
}
|
|
544
|
+
export interface ListSocialPostsParams {
|
|
545
|
+
page?: number;
|
|
546
|
+
limit?: number;
|
|
547
|
+
platform?: SocialPlatform;
|
|
548
|
+
status?: SocialPostStatus;
|
|
549
|
+
}
|
|
550
|
+
export interface AddToSocialQueueData {
|
|
551
|
+
quote_ids: number[];
|
|
552
|
+
platform?: SocialPlatform;
|
|
553
|
+
scheduled_for?: string | null;
|
|
554
|
+
}
|
|
555
|
+
export interface AddRandomToSocialQueueData {
|
|
556
|
+
platform?: SocialPlatform;
|
|
557
|
+
count?: number;
|
|
558
|
+
language?: string;
|
|
559
|
+
}
|
|
560
|
+
export interface ClearSocialQueueData {
|
|
561
|
+
platform: SocialPlatform;
|
|
562
|
+
confirm: boolean;
|
|
563
|
+
scope?: 'all' | 'finished';
|
|
564
|
+
}
|
|
565
|
+
export interface ReorderSocialQueueData {
|
|
566
|
+
id: number;
|
|
567
|
+
direction?: 'up' | 'down';
|
|
568
|
+
before_id?: number | null;
|
|
569
|
+
}
|
|
570
|
+
export interface RunSocialAutopostData {
|
|
571
|
+
platform?: SocialPlatform;
|
|
572
|
+
}
|
|
573
|
+
export interface SocialQueueListResult {
|
|
574
|
+
queue: SocialQueueItem[];
|
|
575
|
+
stats: SocialQueueStats;
|
|
576
|
+
}
|
|
424
577
|
//# sourceMappingURL=types.d.ts.map
|