@yeyo11/shipcast 0.0.0-stage → 0.3.0

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.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -2
  3. package/dist/cli/shipcast.js +25240 -0
  4. package/dist/fonts/Fraunces-Roman.ttf +0 -0
  5. package/dist/fonts/Fraunces-WonkItalic.ttf +0 -0
  6. package/dist/fonts/InstrumentSans-Regular.ttf +0 -0
  7. package/dist/fonts/InstrumentSans-SemiBold.ttf +0 -0
  8. package/dist/fonts/OFL-Fraunces.txt +93 -0
  9. package/dist/fonts/OFL-InstrumentSans.txt +93 -0
  10. package/dist/fonts/README.md +14 -0
  11. package/drizzle/0000_registry.sql +54 -0
  12. package/drizzle/0001_post_model.sql +144 -0
  13. package/drizzle/0002_api_tokens.sql +9 -0
  14. package/drizzle/0003_jobs.sql +20 -0
  15. package/drizzle/0004_account_snapshots.sql +15 -0
  16. package/drizzle/0006_comments.sql +29 -0
  17. package/drizzle/0007_comments_paging.sql +2 -0
  18. package/drizzle/0008_assistant_sessions.sql +25 -0
  19. package/drizzle/0009_attention_dismissals.sql +4 -0
  20. package/drizzle/0010_comments_search.sql +4 -0
  21. package/drizzle/0011_launches_list.sql +3 -0
  22. package/drizzle/0012_telemetry.sql +40 -0
  23. package/drizzle/0013_publish_attempts.sql +18 -0
  24. package/drizzle/0014_secrets.sql +8 -0
  25. package/drizzle/0015_draft_snapshots.sql +13 -0
  26. package/drizzle/0016_metrics_checked_at.sql +1 -0
  27. package/drizzle/0017_metric_days.sql +25 -0
  28. package/drizzle/0018_launch_model.sql +124 -0
  29. package/drizzle/0019_launch_imports.sql +20 -0
  30. package/drizzle/0020_launch_deletions.sql +15 -0
  31. package/drizzle/0021_dedupe_key_backfill.sql +22 -0
  32. package/drizzle/0022_drop_draft_snapshots.sql +4 -0
  33. package/drizzle/0023_push_subscriptions.sql +14 -0
  34. package/drizzle/meta/0000_snapshot.json +400 -0
  35. package/drizzle/meta/0001_snapshot.json +537 -0
  36. package/drizzle/meta/0002_snapshot.json +604 -0
  37. package/drizzle/meta/0003_snapshot.json +732 -0
  38. package/drizzle/meta/0004_snapshot.json +816 -0
  39. package/drizzle/meta/0006_snapshot.json +1036 -0
  40. package/drizzle/meta/0007_snapshot.json +1084 -0
  41. package/drizzle/meta/0008_snapshot.json +1298 -0
  42. package/drizzle/meta/0009_snapshot.json +1324 -0
  43. package/drizzle/meta/0010_snapshot.json +1372 -0
  44. package/drizzle/meta/0011_snapshot.json +1448 -0
  45. package/drizzle/meta/0012_snapshot.json +1717 -0
  46. package/drizzle/meta/0013_snapshot.json +1844 -0
  47. package/drizzle/meta/0014_snapshot.json +1896 -0
  48. package/drizzle/meta/0015_snapshot.json +1978 -0
  49. package/drizzle/meta/0016_snapshot.json +1984 -0
  50. package/drizzle/meta/0017_snapshot.json +2112 -0
  51. package/drizzle/meta/0018_snapshot.json +3051 -0
  52. package/drizzle/meta/0019_snapshot.json +3198 -0
  53. package/drizzle/meta/0020_snapshot.json +3315 -0
  54. package/drizzle/meta/0021_snapshot.json +3315 -0
  55. package/drizzle/meta/0022_snapshot.json +3233 -0
  56. package/drizzle/meta/0023_snapshot.json +3333 -0
  57. package/drizzle/meta/_journal.json +167 -0
  58. package/package.json +62 -4
@@ -0,0 +1,604 @@
1
+ {
2
+ "id": "7e23a3a3-8bae-4f58-b7c5-eb2b9203226c",
3
+ "prevId": "1ad39a2f-a342-43c6-8873-d3a22e836be5",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accounts": {
8
+ "name": "accounts",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "integer",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "identity": {
17
+ "type": "byDefault",
18
+ "name": "accounts_id_seq",
19
+ "schema": "public",
20
+ "increment": "1",
21
+ "startWith": "1",
22
+ "minValue": "1",
23
+ "maxValue": "2147483647",
24
+ "cache": "1",
25
+ "cycle": false
26
+ }
27
+ },
28
+ "network": {
29
+ "name": "network",
30
+ "type": "text",
31
+ "primaryKey": false,
32
+ "notNull": true
33
+ },
34
+ "brand": {
35
+ "name": "brand",
36
+ "type": "text",
37
+ "primaryKey": false,
38
+ "notNull": true
39
+ },
40
+ "label": {
41
+ "name": "label",
42
+ "type": "text",
43
+ "primaryKey": false,
44
+ "notNull": true
45
+ },
46
+ "settings": {
47
+ "name": "settings",
48
+ "type": "text",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "default": "'{}'"
52
+ },
53
+ "is_primary": {
54
+ "name": "is_primary",
55
+ "type": "integer",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "default": 0
59
+ },
60
+ "status": {
61
+ "name": "status",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "default": "'unchecked'"
66
+ },
67
+ "identity": {
68
+ "name": "identity",
69
+ "type": "text",
70
+ "primaryKey": false,
71
+ "notNull": false
72
+ },
73
+ "problem": {
74
+ "name": "problem",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ },
79
+ "checked_at": {
80
+ "name": "checked_at",
81
+ "type": "text",
82
+ "primaryKey": false,
83
+ "notNull": false
84
+ },
85
+ "created_at": {
86
+ "name": "created_at",
87
+ "type": "text",
88
+ "primaryKey": false,
89
+ "notNull": true,
90
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
91
+ }
92
+ },
93
+ "indexes": {},
94
+ "foreignKeys": {},
95
+ "compositePrimaryKeys": {},
96
+ "uniqueConstraints": {
97
+ "accounts_network_brand_label_unique": {
98
+ "name": "accounts_network_brand_label_unique",
99
+ "nullsNotDistinct": false,
100
+ "columns": [
101
+ "network",
102
+ "brand",
103
+ "label"
104
+ ]
105
+ }
106
+ },
107
+ "policies": {},
108
+ "checkConstraints": {},
109
+ "isRLSEnabled": false
110
+ },
111
+ "public.api_tokens": {
112
+ "name": "api_tokens",
113
+ "schema": "",
114
+ "columns": {
115
+ "id": {
116
+ "name": "id",
117
+ "type": "integer",
118
+ "primaryKey": true,
119
+ "notNull": true,
120
+ "identity": {
121
+ "type": "byDefault",
122
+ "name": "api_tokens_id_seq",
123
+ "schema": "public",
124
+ "increment": "1",
125
+ "startWith": "1",
126
+ "minValue": "1",
127
+ "maxValue": "2147483647",
128
+ "cache": "1",
129
+ "cycle": false
130
+ }
131
+ },
132
+ "name": {
133
+ "name": "name",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true
137
+ },
138
+ "hash": {
139
+ "name": "hash",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "scopes": {
145
+ "name": "scopes",
146
+ "type": "text[]",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "created_at": {
151
+ "name": "created_at",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": true,
155
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
156
+ },
157
+ "last_used_at": {
158
+ "name": "last_used_at",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": false
162
+ },
163
+ "revoked_at": {
164
+ "name": "revoked_at",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": false
168
+ }
169
+ },
170
+ "indexes": {},
171
+ "foreignKeys": {},
172
+ "compositePrimaryKeys": {},
173
+ "uniqueConstraints": {},
174
+ "policies": {},
175
+ "checkConstraints": {},
176
+ "isRLSEnabled": false
177
+ },
178
+ "public.cursors": {
179
+ "name": "cursors",
180
+ "schema": "",
181
+ "columns": {
182
+ "key": {
183
+ "name": "key",
184
+ "type": "text",
185
+ "primaryKey": true,
186
+ "notNull": true
187
+ },
188
+ "value": {
189
+ "name": "value",
190
+ "type": "text",
191
+ "primaryKey": false,
192
+ "notNull": true
193
+ }
194
+ },
195
+ "indexes": {},
196
+ "foreignKeys": {},
197
+ "compositePrimaryKeys": {},
198
+ "uniqueConstraints": {},
199
+ "policies": {},
200
+ "checkConstraints": {},
201
+ "isRLSEnabled": false
202
+ },
203
+ "public.launches": {
204
+ "name": "launches",
205
+ "schema": "",
206
+ "columns": {
207
+ "id": {
208
+ "name": "id",
209
+ "type": "integer",
210
+ "primaryKey": true,
211
+ "notNull": true,
212
+ "identity": {
213
+ "type": "byDefault",
214
+ "name": "launches_id_seq",
215
+ "schema": "public",
216
+ "increment": "1",
217
+ "startWith": "1",
218
+ "minValue": "1",
219
+ "maxValue": "2147483647",
220
+ "cache": "1",
221
+ "cycle": false
222
+ }
223
+ },
224
+ "repo": {
225
+ "name": "repo",
226
+ "type": "text",
227
+ "primaryKey": false,
228
+ "notNull": true
229
+ },
230
+ "ref": {
231
+ "name": "ref",
232
+ "type": "text",
233
+ "primaryKey": false,
234
+ "notNull": true
235
+ },
236
+ "trigger": {
237
+ "name": "trigger",
238
+ "type": "text",
239
+ "primaryKey": false,
240
+ "notNull": true
241
+ },
242
+ "kind": {
243
+ "name": "kind",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true
247
+ },
248
+ "brand": {
249
+ "name": "brand",
250
+ "type": "text",
251
+ "primaryKey": false,
252
+ "notNull": true
253
+ },
254
+ "status": {
255
+ "name": "status",
256
+ "type": "text",
257
+ "primaryKey": false,
258
+ "notNull": true
259
+ },
260
+ "detail": {
261
+ "name": "detail",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": false
265
+ },
266
+ "created_at": {
267
+ "name": "created_at",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": true,
271
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
272
+ },
273
+ "updated_at": {
274
+ "name": "updated_at",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
279
+ }
280
+ },
281
+ "indexes": {},
282
+ "foreignKeys": {},
283
+ "compositePrimaryKeys": {},
284
+ "uniqueConstraints": {
285
+ "launches_repo_ref_unique": {
286
+ "name": "launches_repo_ref_unique",
287
+ "nullsNotDistinct": false,
288
+ "columns": [
289
+ "repo",
290
+ "ref"
291
+ ]
292
+ }
293
+ },
294
+ "policies": {},
295
+ "checkConstraints": {},
296
+ "isRLSEnabled": false
297
+ },
298
+ "public.metrics": {
299
+ "name": "metrics",
300
+ "schema": "",
301
+ "columns": {
302
+ "launch_id": {
303
+ "name": "launch_id",
304
+ "type": "integer",
305
+ "primaryKey": false,
306
+ "notNull": true
307
+ },
308
+ "post_id": {
309
+ "name": "post_id",
310
+ "type": "integer",
311
+ "primaryKey": false,
312
+ "notNull": false
313
+ },
314
+ "source": {
315
+ "name": "source",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": true
319
+ },
320
+ "name": {
321
+ "name": "name",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": true
325
+ },
326
+ "value": {
327
+ "name": "value",
328
+ "type": "double precision",
329
+ "primaryKey": false,
330
+ "notNull": true
331
+ },
332
+ "taken_at": {
333
+ "name": "taken_at",
334
+ "type": "text",
335
+ "primaryKey": false,
336
+ "notNull": true
337
+ }
338
+ },
339
+ "indexes": {
340
+ "metrics_by_launch": {
341
+ "name": "metrics_by_launch",
342
+ "columns": [
343
+ {
344
+ "expression": "launch_id",
345
+ "isExpression": false,
346
+ "asc": true,
347
+ "nulls": "last"
348
+ },
349
+ {
350
+ "expression": "source",
351
+ "isExpression": false,
352
+ "asc": true,
353
+ "nulls": "last"
354
+ },
355
+ {
356
+ "expression": "name",
357
+ "isExpression": false,
358
+ "asc": true,
359
+ "nulls": "last"
360
+ },
361
+ {
362
+ "expression": "taken_at",
363
+ "isExpression": false,
364
+ "asc": true,
365
+ "nulls": "last"
366
+ }
367
+ ],
368
+ "isUnique": false,
369
+ "concurrently": false,
370
+ "method": "btree",
371
+ "with": {}
372
+ },
373
+ "metrics_by_post": {
374
+ "name": "metrics_by_post",
375
+ "columns": [
376
+ {
377
+ "expression": "post_id",
378
+ "isExpression": false,
379
+ "asc": true,
380
+ "nulls": "last"
381
+ }
382
+ ],
383
+ "isUnique": false,
384
+ "concurrently": false,
385
+ "method": "btree",
386
+ "with": {}
387
+ }
388
+ },
389
+ "foreignKeys": {
390
+ "metrics_launch_id_launches_id_fk": {
391
+ "name": "metrics_launch_id_launches_id_fk",
392
+ "tableFrom": "metrics",
393
+ "tableTo": "launches",
394
+ "columnsFrom": [
395
+ "launch_id"
396
+ ],
397
+ "columnsTo": [
398
+ "id"
399
+ ],
400
+ "onDelete": "no action",
401
+ "onUpdate": "no action"
402
+ },
403
+ "metrics_post_id_posts_id_fk": {
404
+ "name": "metrics_post_id_posts_id_fk",
405
+ "tableFrom": "metrics",
406
+ "tableTo": "posts",
407
+ "columnsFrom": [
408
+ "post_id"
409
+ ],
410
+ "columnsTo": [
411
+ "id"
412
+ ],
413
+ "onDelete": "no action",
414
+ "onUpdate": "no action"
415
+ }
416
+ },
417
+ "compositePrimaryKeys": {},
418
+ "uniqueConstraints": {},
419
+ "policies": {},
420
+ "checkConstraints": {},
421
+ "isRLSEnabled": false
422
+ },
423
+ "public.posts": {
424
+ "name": "posts",
425
+ "schema": "",
426
+ "columns": {
427
+ "id": {
428
+ "name": "id",
429
+ "type": "integer",
430
+ "primaryKey": true,
431
+ "notNull": true,
432
+ "identity": {
433
+ "type": "byDefault",
434
+ "name": "posts_id_seq",
435
+ "schema": "public",
436
+ "increment": "1",
437
+ "startWith": "1",
438
+ "minValue": "1",
439
+ "maxValue": "2147483647",
440
+ "cache": "1",
441
+ "cycle": false
442
+ }
443
+ },
444
+ "launch_id": {
445
+ "name": "launch_id",
446
+ "type": "integer",
447
+ "primaryKey": false,
448
+ "notNull": true
449
+ },
450
+ "channel": {
451
+ "name": "channel",
452
+ "type": "text",
453
+ "primaryKey": false,
454
+ "notNull": true
455
+ },
456
+ "account_id": {
457
+ "name": "account_id",
458
+ "type": "integer",
459
+ "primaryKey": false,
460
+ "notNull": false
461
+ },
462
+ "kind": {
463
+ "name": "kind",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": true
467
+ },
468
+ "external_id": {
469
+ "name": "external_id",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": false
473
+ },
474
+ "url": {
475
+ "name": "url",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": false
479
+ },
480
+ "status": {
481
+ "name": "status",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": true,
485
+ "default": "'live'"
486
+ },
487
+ "content_hash": {
488
+ "name": "content_hash",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": false
492
+ },
493
+ "scheduled_at": {
494
+ "name": "scheduled_at",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": false
498
+ },
499
+ "published_at": {
500
+ "name": "published_at",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
505
+ },
506
+ "updated_at": {
507
+ "name": "updated_at",
508
+ "type": "text",
509
+ "primaryKey": false,
510
+ "notNull": true,
511
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
512
+ }
513
+ },
514
+ "indexes": {},
515
+ "foreignKeys": {
516
+ "posts_launch_id_launches_id_fk": {
517
+ "name": "posts_launch_id_launches_id_fk",
518
+ "tableFrom": "posts",
519
+ "tableTo": "launches",
520
+ "columnsFrom": [
521
+ "launch_id"
522
+ ],
523
+ "columnsTo": [
524
+ "id"
525
+ ],
526
+ "onDelete": "no action",
527
+ "onUpdate": "no action"
528
+ },
529
+ "posts_account_id_accounts_id_fk": {
530
+ "name": "posts_account_id_accounts_id_fk",
531
+ "tableFrom": "posts",
532
+ "tableTo": "accounts",
533
+ "columnsFrom": [
534
+ "account_id"
535
+ ],
536
+ "columnsTo": [
537
+ "id"
538
+ ],
539
+ "onDelete": "set null",
540
+ "onUpdate": "no action"
541
+ }
542
+ },
543
+ "compositePrimaryKeys": {},
544
+ "uniqueConstraints": {
545
+ "posts_piece_unique": {
546
+ "name": "posts_piece_unique",
547
+ "nullsNotDistinct": true,
548
+ "columns": [
549
+ "launch_id",
550
+ "channel",
551
+ "account_id",
552
+ "kind"
553
+ ]
554
+ }
555
+ },
556
+ "policies": {},
557
+ "checkConstraints": {},
558
+ "isRLSEnabled": false
559
+ },
560
+ "public.settings": {
561
+ "name": "settings",
562
+ "schema": "",
563
+ "columns": {
564
+ "key": {
565
+ "name": "key",
566
+ "type": "text",
567
+ "primaryKey": true,
568
+ "notNull": true
569
+ },
570
+ "value": {
571
+ "name": "value",
572
+ "type": "jsonb",
573
+ "primaryKey": false,
574
+ "notNull": true
575
+ },
576
+ "updated_at": {
577
+ "name": "updated_at",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": true,
581
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
582
+ }
583
+ },
584
+ "indexes": {},
585
+ "foreignKeys": {},
586
+ "compositePrimaryKeys": {},
587
+ "uniqueConstraints": {},
588
+ "policies": {},
589
+ "checkConstraints": {},
590
+ "isRLSEnabled": false
591
+ }
592
+ },
593
+ "enums": {},
594
+ "schemas": {},
595
+ "sequences": {},
596
+ "roles": {},
597
+ "policies": {},
598
+ "views": {},
599
+ "_meta": {
600
+ "columns": {},
601
+ "schemas": {},
602
+ "tables": {}
603
+ }
604
+ }