@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,537 @@
1
+ {
2
+ "id": "1ad39a2f-a342-43c6-8873-d3a22e836be5",
3
+ "prevId": "fc1ef674-ce73-4596-9190-bde841d806c9",
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.cursors": {
112
+ "name": "cursors",
113
+ "schema": "",
114
+ "columns": {
115
+ "key": {
116
+ "name": "key",
117
+ "type": "text",
118
+ "primaryKey": true,
119
+ "notNull": true
120
+ },
121
+ "value": {
122
+ "name": "value",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true
126
+ }
127
+ },
128
+ "indexes": {},
129
+ "foreignKeys": {},
130
+ "compositePrimaryKeys": {},
131
+ "uniqueConstraints": {},
132
+ "policies": {},
133
+ "checkConstraints": {},
134
+ "isRLSEnabled": false
135
+ },
136
+ "public.launches": {
137
+ "name": "launches",
138
+ "schema": "",
139
+ "columns": {
140
+ "id": {
141
+ "name": "id",
142
+ "type": "integer",
143
+ "primaryKey": true,
144
+ "notNull": true,
145
+ "identity": {
146
+ "type": "byDefault",
147
+ "name": "launches_id_seq",
148
+ "schema": "public",
149
+ "increment": "1",
150
+ "startWith": "1",
151
+ "minValue": "1",
152
+ "maxValue": "2147483647",
153
+ "cache": "1",
154
+ "cycle": false
155
+ }
156
+ },
157
+ "repo": {
158
+ "name": "repo",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": true
162
+ },
163
+ "ref": {
164
+ "name": "ref",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": true
168
+ },
169
+ "trigger": {
170
+ "name": "trigger",
171
+ "type": "text",
172
+ "primaryKey": false,
173
+ "notNull": true
174
+ },
175
+ "kind": {
176
+ "name": "kind",
177
+ "type": "text",
178
+ "primaryKey": false,
179
+ "notNull": true
180
+ },
181
+ "brand": {
182
+ "name": "brand",
183
+ "type": "text",
184
+ "primaryKey": false,
185
+ "notNull": true
186
+ },
187
+ "status": {
188
+ "name": "status",
189
+ "type": "text",
190
+ "primaryKey": false,
191
+ "notNull": true
192
+ },
193
+ "detail": {
194
+ "name": "detail",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": false
198
+ },
199
+ "created_at": {
200
+ "name": "created_at",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
205
+ },
206
+ "updated_at": {
207
+ "name": "updated_at",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
212
+ }
213
+ },
214
+ "indexes": {},
215
+ "foreignKeys": {},
216
+ "compositePrimaryKeys": {},
217
+ "uniqueConstraints": {
218
+ "launches_repo_ref_unique": {
219
+ "name": "launches_repo_ref_unique",
220
+ "nullsNotDistinct": false,
221
+ "columns": [
222
+ "repo",
223
+ "ref"
224
+ ]
225
+ }
226
+ },
227
+ "policies": {},
228
+ "checkConstraints": {},
229
+ "isRLSEnabled": false
230
+ },
231
+ "public.metrics": {
232
+ "name": "metrics",
233
+ "schema": "",
234
+ "columns": {
235
+ "launch_id": {
236
+ "name": "launch_id",
237
+ "type": "integer",
238
+ "primaryKey": false,
239
+ "notNull": true
240
+ },
241
+ "post_id": {
242
+ "name": "post_id",
243
+ "type": "integer",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "source": {
248
+ "name": "source",
249
+ "type": "text",
250
+ "primaryKey": false,
251
+ "notNull": true
252
+ },
253
+ "name": {
254
+ "name": "name",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": true
258
+ },
259
+ "value": {
260
+ "name": "value",
261
+ "type": "double precision",
262
+ "primaryKey": false,
263
+ "notNull": true
264
+ },
265
+ "taken_at": {
266
+ "name": "taken_at",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": true
270
+ }
271
+ },
272
+ "indexes": {
273
+ "metrics_by_launch": {
274
+ "name": "metrics_by_launch",
275
+ "columns": [
276
+ {
277
+ "expression": "launch_id",
278
+ "isExpression": false,
279
+ "asc": true,
280
+ "nulls": "last"
281
+ },
282
+ {
283
+ "expression": "source",
284
+ "isExpression": false,
285
+ "asc": true,
286
+ "nulls": "last"
287
+ },
288
+ {
289
+ "expression": "name",
290
+ "isExpression": false,
291
+ "asc": true,
292
+ "nulls": "last"
293
+ },
294
+ {
295
+ "expression": "taken_at",
296
+ "isExpression": false,
297
+ "asc": true,
298
+ "nulls": "last"
299
+ }
300
+ ],
301
+ "isUnique": false,
302
+ "concurrently": false,
303
+ "method": "btree",
304
+ "with": {}
305
+ },
306
+ "metrics_by_post": {
307
+ "name": "metrics_by_post",
308
+ "columns": [
309
+ {
310
+ "expression": "post_id",
311
+ "isExpression": false,
312
+ "asc": true,
313
+ "nulls": "last"
314
+ }
315
+ ],
316
+ "isUnique": false,
317
+ "concurrently": false,
318
+ "method": "btree",
319
+ "with": {}
320
+ }
321
+ },
322
+ "foreignKeys": {
323
+ "metrics_launch_id_launches_id_fk": {
324
+ "name": "metrics_launch_id_launches_id_fk",
325
+ "tableFrom": "metrics",
326
+ "tableTo": "launches",
327
+ "columnsFrom": [
328
+ "launch_id"
329
+ ],
330
+ "columnsTo": [
331
+ "id"
332
+ ],
333
+ "onDelete": "no action",
334
+ "onUpdate": "no action"
335
+ },
336
+ "metrics_post_id_posts_id_fk": {
337
+ "name": "metrics_post_id_posts_id_fk",
338
+ "tableFrom": "metrics",
339
+ "tableTo": "posts",
340
+ "columnsFrom": [
341
+ "post_id"
342
+ ],
343
+ "columnsTo": [
344
+ "id"
345
+ ],
346
+ "onDelete": "no action",
347
+ "onUpdate": "no action"
348
+ }
349
+ },
350
+ "compositePrimaryKeys": {},
351
+ "uniqueConstraints": {},
352
+ "policies": {},
353
+ "checkConstraints": {},
354
+ "isRLSEnabled": false
355
+ },
356
+ "public.posts": {
357
+ "name": "posts",
358
+ "schema": "",
359
+ "columns": {
360
+ "id": {
361
+ "name": "id",
362
+ "type": "integer",
363
+ "primaryKey": true,
364
+ "notNull": true,
365
+ "identity": {
366
+ "type": "byDefault",
367
+ "name": "posts_id_seq",
368
+ "schema": "public",
369
+ "increment": "1",
370
+ "startWith": "1",
371
+ "minValue": "1",
372
+ "maxValue": "2147483647",
373
+ "cache": "1",
374
+ "cycle": false
375
+ }
376
+ },
377
+ "launch_id": {
378
+ "name": "launch_id",
379
+ "type": "integer",
380
+ "primaryKey": false,
381
+ "notNull": true
382
+ },
383
+ "channel": {
384
+ "name": "channel",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": true
388
+ },
389
+ "account_id": {
390
+ "name": "account_id",
391
+ "type": "integer",
392
+ "primaryKey": false,
393
+ "notNull": false
394
+ },
395
+ "kind": {
396
+ "name": "kind",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": true
400
+ },
401
+ "external_id": {
402
+ "name": "external_id",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": false
406
+ },
407
+ "url": {
408
+ "name": "url",
409
+ "type": "text",
410
+ "primaryKey": false,
411
+ "notNull": false
412
+ },
413
+ "status": {
414
+ "name": "status",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "default": "'live'"
419
+ },
420
+ "content_hash": {
421
+ "name": "content_hash",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": false
425
+ },
426
+ "scheduled_at": {
427
+ "name": "scheduled_at",
428
+ "type": "text",
429
+ "primaryKey": false,
430
+ "notNull": false
431
+ },
432
+ "published_at": {
433
+ "name": "published_at",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
438
+ },
439
+ "updated_at": {
440
+ "name": "updated_at",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
445
+ }
446
+ },
447
+ "indexes": {},
448
+ "foreignKeys": {
449
+ "posts_launch_id_launches_id_fk": {
450
+ "name": "posts_launch_id_launches_id_fk",
451
+ "tableFrom": "posts",
452
+ "tableTo": "launches",
453
+ "columnsFrom": [
454
+ "launch_id"
455
+ ],
456
+ "columnsTo": [
457
+ "id"
458
+ ],
459
+ "onDelete": "no action",
460
+ "onUpdate": "no action"
461
+ },
462
+ "posts_account_id_accounts_id_fk": {
463
+ "name": "posts_account_id_accounts_id_fk",
464
+ "tableFrom": "posts",
465
+ "tableTo": "accounts",
466
+ "columnsFrom": [
467
+ "account_id"
468
+ ],
469
+ "columnsTo": [
470
+ "id"
471
+ ],
472
+ "onDelete": "set null",
473
+ "onUpdate": "no action"
474
+ }
475
+ },
476
+ "compositePrimaryKeys": {},
477
+ "uniqueConstraints": {
478
+ "posts_piece_unique": {
479
+ "name": "posts_piece_unique",
480
+ "nullsNotDistinct": true,
481
+ "columns": [
482
+ "launch_id",
483
+ "channel",
484
+ "account_id",
485
+ "kind"
486
+ ]
487
+ }
488
+ },
489
+ "policies": {},
490
+ "checkConstraints": {},
491
+ "isRLSEnabled": false
492
+ },
493
+ "public.settings": {
494
+ "name": "settings",
495
+ "schema": "",
496
+ "columns": {
497
+ "key": {
498
+ "name": "key",
499
+ "type": "text",
500
+ "primaryKey": true,
501
+ "notNull": true
502
+ },
503
+ "value": {
504
+ "name": "value",
505
+ "type": "jsonb",
506
+ "primaryKey": false,
507
+ "notNull": true
508
+ },
509
+ "updated_at": {
510
+ "name": "updated_at",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": true,
514
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
515
+ }
516
+ },
517
+ "indexes": {},
518
+ "foreignKeys": {},
519
+ "compositePrimaryKeys": {},
520
+ "uniqueConstraints": {},
521
+ "policies": {},
522
+ "checkConstraints": {},
523
+ "isRLSEnabled": false
524
+ }
525
+ },
526
+ "enums": {},
527
+ "schemas": {},
528
+ "sequences": {},
529
+ "roles": {},
530
+ "policies": {},
531
+ "views": {},
532
+ "_meta": {
533
+ "columns": {},
534
+ "schemas": {},
535
+ "tables": {}
536
+ }
537
+ }