@devpad/api 2.6.1 → 2.6.3

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.
@@ -186,6 +186,43 @@ declare const GitHubRepoMetaSchema: z.ZodObject<{
186
186
  is_private: boolean;
187
187
  pushed_at: string | null;
188
188
  }>;
189
+ declare const GitHubRepoSyncStateSchema: z.ZodObject<{
190
+ pushed_at: z.ZodNullable<z.ZodString>;
191
+ synced_at: z.ZodString;
192
+ }, "strip", z.ZodTypeAny, {
193
+ pushed_at: string | null;
194
+ synced_at: string;
195
+ }, {
196
+ pushed_at: string | null;
197
+ synced_at: string;
198
+ }>;
199
+ declare const GitHubSyncStateSchema: z.ZodObject<{
200
+ repos: z.ZodRecord<z.ZodString, z.ZodObject<{
201
+ pushed_at: z.ZodNullable<z.ZodString>;
202
+ synced_at: z.ZodString;
203
+ }, "strip", z.ZodTypeAny, {
204
+ pushed_at: string | null;
205
+ synced_at: string;
206
+ }, {
207
+ pushed_at: string | null;
208
+ synced_at: string;
209
+ }>>;
210
+ updated_at: z.ZodString;
211
+ }, "strip", z.ZodTypeAny, {
212
+ updated_at: string;
213
+ repos: Record<string, {
214
+ pushed_at: string | null;
215
+ synced_at: string;
216
+ }>;
217
+ }, {
218
+ updated_at: string;
219
+ repos: Record<string, {
220
+ pushed_at: string | null;
221
+ synced_at: string;
222
+ }>;
223
+ }>;
224
+ type GitHubRepoSyncState = z.infer<typeof GitHubRepoSyncStateSchema>;
225
+ type GitHubSyncState = z.infer<typeof GitHubSyncStateSchema>;
189
226
  declare const GitHubMetaStoreSchema: z.ZodObject<{
190
227
  username: z.ZodString;
191
228
  repositories: z.ZodArray<z.ZodObject<{
@@ -219,6 +256,31 @@ declare const GitHubMetaStoreSchema: z.ZodObject<{
219
256
  total_repos_available: z.ZodNumber;
220
257
  repos_fetched: z.ZodNumber;
221
258
  fetched_at: z.ZodString;
259
+ sync_state: z.ZodOptional<z.ZodObject<{
260
+ repos: z.ZodRecord<z.ZodString, z.ZodObject<{
261
+ pushed_at: z.ZodNullable<z.ZodString>;
262
+ synced_at: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ pushed_at: string | null;
265
+ synced_at: string;
266
+ }, {
267
+ pushed_at: string | null;
268
+ synced_at: string;
269
+ }>>;
270
+ updated_at: z.ZodString;
271
+ }, "strip", z.ZodTypeAny, {
272
+ updated_at: string;
273
+ repos: Record<string, {
274
+ pushed_at: string | null;
275
+ synced_at: string;
276
+ }>;
277
+ }, {
278
+ updated_at: string;
279
+ repos: Record<string, {
280
+ pushed_at: string | null;
281
+ synced_at: string;
282
+ }>;
283
+ }>>;
222
284
  }, "strip", z.ZodTypeAny, {
223
285
  fetched_at: string;
224
286
  username: string;
@@ -234,6 +296,13 @@ declare const GitHubMetaStoreSchema: z.ZodObject<{
234
296
  }[];
235
297
  total_repos_available: number;
236
298
  repos_fetched: number;
299
+ sync_state?: {
300
+ updated_at: string;
301
+ repos: Record<string, {
302
+ pushed_at: string | null;
303
+ synced_at: string;
304
+ }>;
305
+ } | undefined;
237
306
  }, {
238
307
  fetched_at: string;
239
308
  username: string;
@@ -249,6 +318,13 @@ declare const GitHubMetaStoreSchema: z.ZodObject<{
249
318
  }[];
250
319
  total_repos_available: number;
251
320
  repos_fetched: number;
321
+ sync_state?: {
322
+ updated_at: string;
323
+ repos: Record<string, {
324
+ pushed_at: string | null;
325
+ synced_at: string;
326
+ }>;
327
+ } | undefined;
252
328
  }>;
253
329
  type GitHubRepoMeta = z.infer<typeof GitHubRepoMetaSchema>;
254
330
  type GitHubMetaStore = z.infer<typeof GitHubMetaStoreSchema>;
@@ -1672,4 +1748,4 @@ type TweetUrl = z.infer<typeof TweetUrlSchema>;
1672
1748
  type TwitterTweet = z.infer<typeof TwitterTweetSchema>;
1673
1749
  type TwitterTweetsStore = z.infer<typeof TwitterTweetsStoreSchema>;
1674
1750
 
1675
- export { type AccountId, type Brand, type ConnectionId, type GitHubMetaStore, GitHubMetaStoreSchema, type GitHubRepoCommit, GitHubRepoCommitSchema, type GitHubRepoCommitsStore, GitHubRepoCommitsStoreSchema, type GitHubRepoMeta, GitHubRepoMetaSchema, type GitHubRepoPR, GitHubRepoPRSchema, type GitHubRepoPRsStore, GitHubRepoPRsStoreSchema, type ProfileId, type RedditComment, RedditCommentSchema, type RedditCommentsStore, RedditCommentsStoreSchema, type RedditMetaStore, RedditMetaStoreSchema, type RedditPost, RedditPostSchema, type RedditPostsStore, RedditPostsStoreSchema, type TweetMedia, TweetMediaSchema, type TweetMetrics, TweetMetricsSchema, type TweetUrl, TweetUrlSchema, type TwitterMetaStore, TwitterMetaStoreSchema, type TwitterTweet, TwitterTweetSchema, type TwitterTweetsStore, TwitterTweetsStoreSchema, type TwitterUserMetrics, TwitterUserMetricsSchema, type UserId, accountId, connectionId, isValidId, profileId, userId };
1751
+ export { type AccountId, type Brand, type ConnectionId, type GitHubMetaStore, GitHubMetaStoreSchema, type GitHubRepoCommit, GitHubRepoCommitSchema, type GitHubRepoCommitsStore, GitHubRepoCommitsStoreSchema, type GitHubRepoMeta, GitHubRepoMetaSchema, type GitHubRepoPR, GitHubRepoPRSchema, type GitHubRepoPRsStore, GitHubRepoPRsStoreSchema, type GitHubRepoSyncState, GitHubRepoSyncStateSchema, type GitHubSyncState, GitHubSyncStateSchema, type ProfileId, type RedditComment, RedditCommentSchema, type RedditCommentsStore, RedditCommentsStoreSchema, type RedditMetaStore, RedditMetaStoreSchema, type RedditPost, RedditPostSchema, type RedditPostsStore, RedditPostsStoreSchema, type TweetMedia, TweetMediaSchema, type TweetMetrics, TweetMetricsSchema, type TweetUrl, TweetUrlSchema, type TwitterMetaStore, TwitterMetaStoreSchema, type TwitterTweet, TwitterTweetSchema, type TwitterTweetsStore, TwitterTweetsStoreSchema, type TwitterUserMetrics, TwitterUserMetricsSchema, type UserId, accountId, connectionId, isValidId, profileId, userId };
@@ -223,12 +223,21 @@ var GitHubRepoMetaSchema = z2.object({
223
223
  pushed_at: z2.string().datetime().nullable(),
224
224
  updated_at: z2.string().datetime()
225
225
  });
226
+ var GitHubRepoSyncStateSchema = z2.object({
227
+ pushed_at: z2.string().datetime().nullable(),
228
+ synced_at: z2.string().datetime()
229
+ });
230
+ var GitHubSyncStateSchema = z2.object({
231
+ repos: z2.record(z2.string(), GitHubRepoSyncStateSchema),
232
+ updated_at: z2.string().datetime()
233
+ });
226
234
  var GitHubMetaStoreSchema = z2.object({
227
235
  username: z2.string(),
228
236
  repositories: z2.array(GitHubRepoMetaSchema),
229
237
  total_repos_available: z2.number(),
230
238
  repos_fetched: z2.number(),
231
- fetched_at: z2.string().datetime()
239
+ fetched_at: z2.string().datetime(),
240
+ sync_state: GitHubSyncStateSchema.optional()
232
241
  });
233
242
  var GitHubRepoPRSchema = z2.object({
234
243
  id: z2.number(),
@@ -616,7 +625,9 @@ export {
616
625
  GitHubRepoPRSchema,
617
626
  GitHubRepoPRsStoreSchema,
618
627
  GitHubRepoSchema,
628
+ GitHubRepoSyncStateSchema,
619
629
  GitHubSettingsSchema,
630
+ GitHubSyncStateSchema,
620
631
  MULTI_STORE_PLATFORMS,
621
632
  PLATFORMS,
622
633
  PRCommitSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/api",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "TypeScript client library for the devpad API - project and task management made simple",
5
5
  "keywords": [
6
6
  "api",
@@ -68,7 +68,7 @@
68
68
  "zod": "^3.22.4"
69
69
  },
70
70
  "devDependencies": {
71
- "@devpad/schema": "^2.6.1",
71
+ "@devpad/schema": "^2.6.3",
72
72
  "@types/node": "^20.11.24",
73
73
  "bun-types": "latest",
74
74
  "tsup": "^8.0.0",