@nymbalhq/platform 1.4.0 → 1.5.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 (29) hide show
  1. package/dist/{chunk-SNNK2OX3.js → chunk-NNDIAIT6.js} +73 -5
  2. package/dist/chunk-NNDIAIT6.js.map +1 -0
  3. package/dist/{chunk-GMV3B3SC.js → chunk-TRLERRUI.js} +424 -137
  4. package/dist/chunk-TRLERRUI.js.map +1 -0
  5. package/dist/db/schema/index.d.ts +795 -105
  6. package/dist/db/schema/index.js +1 -1
  7. package/dist/index.d.ts +218 -85
  8. package/dist/index.js +658 -199
  9. package/dist/index.js.map +1 -1
  10. package/dist/register-SBGUI2L5.js +8 -0
  11. package/migrations/postgres/0016_email_suppressions.sql +7 -0
  12. package/migrations/postgres/0017_order_shipments.sql +14 -0
  13. package/migrations/postgres/0018_order_key_expiry.sql +8 -0
  14. package/migrations/postgres/meta/0016_snapshot.json +2233 -0
  15. package/migrations/postgres/meta/0017_snapshot.json +2300 -0
  16. package/migrations/postgres/meta/0018_snapshot.json +2306 -0
  17. package/migrations/postgres/meta/_journal.json +21 -0
  18. package/migrations/sqlite/0016_email_suppressions.sql +7 -0
  19. package/migrations/sqlite/0017_order_shipments.sql +9 -0
  20. package/migrations/sqlite/0018_order_key_expiry.sql +25 -0
  21. package/migrations/sqlite/meta/0016_snapshot.json +1981 -0
  22. package/migrations/sqlite/meta/0017_snapshot.json +2041 -0
  23. package/migrations/sqlite/meta/0018_snapshot.json +2048 -0
  24. package/migrations/sqlite/meta/_journal.json +21 -0
  25. package/package.json +17 -47
  26. package/dist/chunk-GMV3B3SC.js.map +0 -1
  27. package/dist/chunk-SNNK2OX3.js.map +0 -1
  28. package/dist/register-N2XGSFUF.js +0 -8
  29. /package/dist/{register-N2XGSFUF.js.map → register-SBGUI2L5.js.map} +0 -0
@@ -1877,6 +1877,23 @@ declare const orderAccessKeys$1: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
1877
1877
  identity: undefined;
1878
1878
  generated: undefined;
1879
1879
  }, object>;
1880
+ expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1881
+ name: "expires_at";
1882
+ tableName: "order_access_keys";
1883
+ dataType: "string";
1884
+ columnType: "SQLiteText";
1885
+ data: string;
1886
+ driverParam: string;
1887
+ notNull: true;
1888
+ hasDefault: false;
1889
+ isPrimaryKey: false;
1890
+ isAutoincrement: false;
1891
+ hasRuntimeDefault: false;
1892
+ enumValues: [string, ...string[]];
1893
+ baseColumn: never;
1894
+ identity: undefined;
1895
+ generated: undefined;
1896
+ }, object>;
1880
1897
  };
1881
1898
  dialect: "sqlite";
1882
1899
  }>;
@@ -3384,6 +3401,164 @@ declare const alertSubscriptions$1: drizzle_orm_sqlite_core.SQLiteTableWithColum
3384
3401
  };
3385
3402
  dialect: "sqlite";
3386
3403
  }>;
3404
+ /**
3405
+ * One row per normalised address that hard-bounced or complained, which is sent no more alert mail. The first reason
3406
+ * stays; `event_id` is the feedback event that suppressed it.
3407
+ */
3408
+ declare const emailSuppressions$1: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3409
+ name: "email_suppressions";
3410
+ schema: undefined;
3411
+ columns: {
3412
+ email: drizzle_orm_sqlite_core.SQLiteColumn<{
3413
+ name: "email";
3414
+ tableName: "email_suppressions";
3415
+ dataType: "string";
3416
+ columnType: "SQLiteText";
3417
+ data: string;
3418
+ driverParam: string;
3419
+ notNull: true;
3420
+ hasDefault: false;
3421
+ isPrimaryKey: true;
3422
+ isAutoincrement: false;
3423
+ hasRuntimeDefault: false;
3424
+ enumValues: [string, ...string[]];
3425
+ baseColumn: never;
3426
+ identity: undefined;
3427
+ generated: undefined;
3428
+ }, object>;
3429
+ reason: drizzle_orm_sqlite_core.SQLiteColumn<{
3430
+ name: "reason";
3431
+ tableName: "email_suppressions";
3432
+ dataType: "string";
3433
+ columnType: "SQLiteText";
3434
+ data: string;
3435
+ driverParam: string;
3436
+ notNull: true;
3437
+ hasDefault: false;
3438
+ isPrimaryKey: false;
3439
+ isAutoincrement: false;
3440
+ hasRuntimeDefault: false;
3441
+ enumValues: [string, ...string[]];
3442
+ baseColumn: never;
3443
+ identity: undefined;
3444
+ generated: undefined;
3445
+ }, object>;
3446
+ eventId: drizzle_orm_sqlite_core.SQLiteColumn<{
3447
+ name: "event_id";
3448
+ tableName: "email_suppressions";
3449
+ dataType: "string";
3450
+ columnType: "SQLiteText";
3451
+ data: string;
3452
+ driverParam: string;
3453
+ notNull: true;
3454
+ hasDefault: false;
3455
+ isPrimaryKey: false;
3456
+ isAutoincrement: false;
3457
+ hasRuntimeDefault: false;
3458
+ enumValues: [string, ...string[]];
3459
+ baseColumn: never;
3460
+ identity: undefined;
3461
+ generated: undefined;
3462
+ }, object>;
3463
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
3464
+ name: "created_at";
3465
+ tableName: "email_suppressions";
3466
+ dataType: "string";
3467
+ columnType: "SQLiteText";
3468
+ data: string;
3469
+ driverParam: string;
3470
+ notNull: true;
3471
+ hasDefault: false;
3472
+ isPrimaryKey: false;
3473
+ isAutoincrement: false;
3474
+ hasRuntimeDefault: false;
3475
+ enumValues: [string, ...string[]];
3476
+ baseColumn: never;
3477
+ identity: undefined;
3478
+ generated: undefined;
3479
+ }, object>;
3480
+ };
3481
+ dialect: "sqlite";
3482
+ }>;
3483
+ /**
3484
+ * The parcel each shipped order went out in, written by the ship action: how a carrier's tracking update finds its
3485
+ * orders. `tracking_number` is normalised; one parcel may carry two orders, so it is not unique.
3486
+ */
3487
+ declare const orderShipments$1: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3488
+ name: "order_shipments";
3489
+ schema: undefined;
3490
+ columns: {
3491
+ orderId: drizzle_orm_sqlite_core.SQLiteColumn<{
3492
+ name: "order_id";
3493
+ tableName: "order_shipments";
3494
+ dataType: "string";
3495
+ columnType: "SQLiteText";
3496
+ data: string;
3497
+ driverParam: string;
3498
+ notNull: true;
3499
+ hasDefault: false;
3500
+ isPrimaryKey: true;
3501
+ isAutoincrement: false;
3502
+ hasRuntimeDefault: false;
3503
+ enumValues: [string, ...string[]];
3504
+ baseColumn: never;
3505
+ identity: undefined;
3506
+ generated: undefined;
3507
+ }, object>;
3508
+ carrier: drizzle_orm_sqlite_core.SQLiteColumn<{
3509
+ name: "carrier";
3510
+ tableName: "order_shipments";
3511
+ dataType: "string";
3512
+ columnType: "SQLiteText";
3513
+ data: string;
3514
+ driverParam: string;
3515
+ notNull: true;
3516
+ hasDefault: false;
3517
+ isPrimaryKey: false;
3518
+ isAutoincrement: false;
3519
+ hasRuntimeDefault: false;
3520
+ enumValues: [string, ...string[]];
3521
+ baseColumn: never;
3522
+ identity: undefined;
3523
+ generated: undefined;
3524
+ }, object>;
3525
+ trackingNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
3526
+ name: "tracking_number";
3527
+ tableName: "order_shipments";
3528
+ dataType: "string";
3529
+ columnType: "SQLiteText";
3530
+ data: string;
3531
+ driverParam: string;
3532
+ notNull: true;
3533
+ hasDefault: false;
3534
+ isPrimaryKey: false;
3535
+ isAutoincrement: false;
3536
+ hasRuntimeDefault: false;
3537
+ enumValues: [string, ...string[]];
3538
+ baseColumn: never;
3539
+ identity: undefined;
3540
+ generated: undefined;
3541
+ }, object>;
3542
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
3543
+ name: "created_at";
3544
+ tableName: "order_shipments";
3545
+ dataType: "string";
3546
+ columnType: "SQLiteText";
3547
+ data: string;
3548
+ driverParam: string;
3549
+ notNull: true;
3550
+ hasDefault: false;
3551
+ isPrimaryKey: false;
3552
+ isAutoincrement: false;
3553
+ hasRuntimeDefault: false;
3554
+ enumValues: [string, ...string[]];
3555
+ baseColumn: never;
3556
+ identity: undefined;
3557
+ generated: undefined;
3558
+ }, object>;
3559
+ };
3560
+ dialect: "sqlite";
3561
+ }>;
3387
3562
  declare const schema$1: {
3388
3563
  categories: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3389
3564
  name: "categories";
@@ -5084,6 +5259,23 @@ declare const schema$1: {
5084
5259
  identity: undefined;
5085
5260
  generated: undefined;
5086
5261
  }, object>;
5262
+ expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
5263
+ name: "expires_at";
5264
+ tableName: "order_access_keys";
5265
+ dataType: "string";
5266
+ columnType: "SQLiteText";
5267
+ data: string;
5268
+ driverParam: string;
5269
+ notNull: true;
5270
+ hasDefault: false;
5271
+ isPrimaryKey: false;
5272
+ isAutoincrement: false;
5273
+ hasRuntimeDefault: false;
5274
+ enumValues: [string, ...string[]];
5275
+ baseColumn: never;
5276
+ identity: undefined;
5277
+ generated: undefined;
5278
+ }, object>;
5087
5279
  };
5088
5280
  dialect: "sqlite";
5089
5281
  }>;
@@ -6578,90 +6770,242 @@ declare const schema$1: {
6578
6770
  };
6579
6771
  dialect: "sqlite";
6580
6772
  }>;
6581
- };
6582
-
6583
- declare namespace sqliteSchema {
6584
- export {
6585
- alertSubscriptions$1 as alertSubscriptions,
6586
- auditEntries$1 as auditEntries,
6587
- carts$1 as carts,
6588
- categories$1 as categories,
6589
- customers$1 as customers,
6590
- events$1 as events,
6591
- inventoryReservations$1 as inventoryReservations,
6592
- orderAccessKeys$1 as orderAccessKeys,
6593
- orderHistory$1 as orderHistory,
6594
- orderRefunds$1 as orderRefunds,
6595
- orderSequences$1 as orderSequences,
6596
- orders$1 as orders,
6597
- processedEvents$1 as processedEvents,
6598
- productCategories$1 as productCategories,
6599
- products$1 as products,
6600
- refreshTokens$1 as refreshTokens,
6601
- reviews$1 as reviews,
6602
- schema$1 as schema,
6603
- settings$1 as settings,
6604
- stockAdjustments$1 as stockAdjustments,
6605
- variants$1 as variants,
6606
- };
6607
- }
6608
-
6609
- declare const categories: drizzle_orm_pg_core.PgTableWithColumns<{
6610
- name: "categories";
6611
- schema: undefined;
6612
- columns: {
6613
- id: drizzle_orm_pg_core.PgColumn<{
6614
- name: "id";
6615
- tableName: "categories";
6616
- dataType: "string";
6617
- columnType: "PgText";
6618
- data: string;
6619
- driverParam: string;
6620
- notNull: true;
6621
- hasDefault: false;
6622
- isPrimaryKey: true;
6623
- isAutoincrement: false;
6624
- hasRuntimeDefault: false;
6625
- enumValues: [string, ...string[]];
6626
- baseColumn: never;
6627
- identity: undefined;
6628
- generated: undefined;
6629
- }, {}, {}>;
6630
- parentId: drizzle_orm_pg_core.PgColumn<{
6631
- name: "parent_id";
6632
- tableName: "categories";
6633
- dataType: "string";
6634
- columnType: "PgText";
6635
- data: string;
6636
- driverParam: string;
6637
- notNull: false;
6638
- hasDefault: false;
6639
- isPrimaryKey: false;
6640
- isAutoincrement: false;
6641
- hasRuntimeDefault: false;
6642
- enumValues: [string, ...string[]];
6643
- baseColumn: never;
6644
- identity: undefined;
6645
- generated: undefined;
6646
- }, {}, {}>;
6647
- slug: drizzle_orm_pg_core.PgColumn<{
6648
- name: "slug";
6649
- tableName: "categories";
6650
- dataType: "string";
6651
- columnType: "PgText";
6652
- data: string;
6653
- driverParam: string;
6654
- notNull: true;
6655
- hasDefault: false;
6656
- isPrimaryKey: false;
6657
- isAutoincrement: false;
6658
- hasRuntimeDefault: false;
6659
- enumValues: [string, ...string[]];
6660
- baseColumn: never;
6661
- identity: undefined;
6662
- generated: undefined;
6663
- }, {}, {}>;
6664
- name: drizzle_orm_pg_core.PgColumn<{
6773
+ emailSuppressions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6774
+ name: "email_suppressions";
6775
+ schema: undefined;
6776
+ columns: {
6777
+ email: drizzle_orm_sqlite_core.SQLiteColumn<{
6778
+ name: "email";
6779
+ tableName: "email_suppressions";
6780
+ dataType: "string";
6781
+ columnType: "SQLiteText";
6782
+ data: string;
6783
+ driverParam: string;
6784
+ notNull: true;
6785
+ hasDefault: false;
6786
+ isPrimaryKey: true;
6787
+ isAutoincrement: false;
6788
+ hasRuntimeDefault: false;
6789
+ enumValues: [string, ...string[]];
6790
+ baseColumn: never;
6791
+ identity: undefined;
6792
+ generated: undefined;
6793
+ }, object>;
6794
+ reason: drizzle_orm_sqlite_core.SQLiteColumn<{
6795
+ name: "reason";
6796
+ tableName: "email_suppressions";
6797
+ dataType: "string";
6798
+ columnType: "SQLiteText";
6799
+ data: string;
6800
+ driverParam: string;
6801
+ notNull: true;
6802
+ hasDefault: false;
6803
+ isPrimaryKey: false;
6804
+ isAutoincrement: false;
6805
+ hasRuntimeDefault: false;
6806
+ enumValues: [string, ...string[]];
6807
+ baseColumn: never;
6808
+ identity: undefined;
6809
+ generated: undefined;
6810
+ }, object>;
6811
+ eventId: drizzle_orm_sqlite_core.SQLiteColumn<{
6812
+ name: "event_id";
6813
+ tableName: "email_suppressions";
6814
+ dataType: "string";
6815
+ columnType: "SQLiteText";
6816
+ data: string;
6817
+ driverParam: string;
6818
+ notNull: true;
6819
+ hasDefault: false;
6820
+ isPrimaryKey: false;
6821
+ isAutoincrement: false;
6822
+ hasRuntimeDefault: false;
6823
+ enumValues: [string, ...string[]];
6824
+ baseColumn: never;
6825
+ identity: undefined;
6826
+ generated: undefined;
6827
+ }, object>;
6828
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6829
+ name: "created_at";
6830
+ tableName: "email_suppressions";
6831
+ dataType: "string";
6832
+ columnType: "SQLiteText";
6833
+ data: string;
6834
+ driverParam: string;
6835
+ notNull: true;
6836
+ hasDefault: false;
6837
+ isPrimaryKey: false;
6838
+ isAutoincrement: false;
6839
+ hasRuntimeDefault: false;
6840
+ enumValues: [string, ...string[]];
6841
+ baseColumn: never;
6842
+ identity: undefined;
6843
+ generated: undefined;
6844
+ }, object>;
6845
+ };
6846
+ dialect: "sqlite";
6847
+ }>;
6848
+ orderShipments: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6849
+ name: "order_shipments";
6850
+ schema: undefined;
6851
+ columns: {
6852
+ orderId: drizzle_orm_sqlite_core.SQLiteColumn<{
6853
+ name: "order_id";
6854
+ tableName: "order_shipments";
6855
+ dataType: "string";
6856
+ columnType: "SQLiteText";
6857
+ data: string;
6858
+ driverParam: string;
6859
+ notNull: true;
6860
+ hasDefault: false;
6861
+ isPrimaryKey: true;
6862
+ isAutoincrement: false;
6863
+ hasRuntimeDefault: false;
6864
+ enumValues: [string, ...string[]];
6865
+ baseColumn: never;
6866
+ identity: undefined;
6867
+ generated: undefined;
6868
+ }, object>;
6869
+ carrier: drizzle_orm_sqlite_core.SQLiteColumn<{
6870
+ name: "carrier";
6871
+ tableName: "order_shipments";
6872
+ dataType: "string";
6873
+ columnType: "SQLiteText";
6874
+ data: string;
6875
+ driverParam: string;
6876
+ notNull: true;
6877
+ hasDefault: false;
6878
+ isPrimaryKey: false;
6879
+ isAutoincrement: false;
6880
+ hasRuntimeDefault: false;
6881
+ enumValues: [string, ...string[]];
6882
+ baseColumn: never;
6883
+ identity: undefined;
6884
+ generated: undefined;
6885
+ }, object>;
6886
+ trackingNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
6887
+ name: "tracking_number";
6888
+ tableName: "order_shipments";
6889
+ dataType: "string";
6890
+ columnType: "SQLiteText";
6891
+ data: string;
6892
+ driverParam: string;
6893
+ notNull: true;
6894
+ hasDefault: false;
6895
+ isPrimaryKey: false;
6896
+ isAutoincrement: false;
6897
+ hasRuntimeDefault: false;
6898
+ enumValues: [string, ...string[]];
6899
+ baseColumn: never;
6900
+ identity: undefined;
6901
+ generated: undefined;
6902
+ }, object>;
6903
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6904
+ name: "created_at";
6905
+ tableName: "order_shipments";
6906
+ dataType: "string";
6907
+ columnType: "SQLiteText";
6908
+ data: string;
6909
+ driverParam: string;
6910
+ notNull: true;
6911
+ hasDefault: false;
6912
+ isPrimaryKey: false;
6913
+ isAutoincrement: false;
6914
+ hasRuntimeDefault: false;
6915
+ enumValues: [string, ...string[]];
6916
+ baseColumn: never;
6917
+ identity: undefined;
6918
+ generated: undefined;
6919
+ }, object>;
6920
+ };
6921
+ dialect: "sqlite";
6922
+ }>;
6923
+ };
6924
+
6925
+ declare namespace sqliteSchema {
6926
+ export {
6927
+ alertSubscriptions$1 as alertSubscriptions,
6928
+ auditEntries$1 as auditEntries,
6929
+ carts$1 as carts,
6930
+ categories$1 as categories,
6931
+ customers$1 as customers,
6932
+ emailSuppressions$1 as emailSuppressions,
6933
+ events$1 as events,
6934
+ inventoryReservations$1 as inventoryReservations,
6935
+ orderAccessKeys$1 as orderAccessKeys,
6936
+ orderHistory$1 as orderHistory,
6937
+ orderRefunds$1 as orderRefunds,
6938
+ orderSequences$1 as orderSequences,
6939
+ orderShipments$1 as orderShipments,
6940
+ orders$1 as orders,
6941
+ processedEvents$1 as processedEvents,
6942
+ productCategories$1 as productCategories,
6943
+ products$1 as products,
6944
+ refreshTokens$1 as refreshTokens,
6945
+ reviews$1 as reviews,
6946
+ schema$1 as schema,
6947
+ settings$1 as settings,
6948
+ stockAdjustments$1 as stockAdjustments,
6949
+ variants$1 as variants,
6950
+ };
6951
+ }
6952
+
6953
+ declare const categories: drizzle_orm_pg_core.PgTableWithColumns<{
6954
+ name: "categories";
6955
+ schema: undefined;
6956
+ columns: {
6957
+ id: drizzle_orm_pg_core.PgColumn<{
6958
+ name: "id";
6959
+ tableName: "categories";
6960
+ dataType: "string";
6961
+ columnType: "PgText";
6962
+ data: string;
6963
+ driverParam: string;
6964
+ notNull: true;
6965
+ hasDefault: false;
6966
+ isPrimaryKey: true;
6967
+ isAutoincrement: false;
6968
+ hasRuntimeDefault: false;
6969
+ enumValues: [string, ...string[]];
6970
+ baseColumn: never;
6971
+ identity: undefined;
6972
+ generated: undefined;
6973
+ }, {}, {}>;
6974
+ parentId: drizzle_orm_pg_core.PgColumn<{
6975
+ name: "parent_id";
6976
+ tableName: "categories";
6977
+ dataType: "string";
6978
+ columnType: "PgText";
6979
+ data: string;
6980
+ driverParam: string;
6981
+ notNull: false;
6982
+ hasDefault: false;
6983
+ isPrimaryKey: false;
6984
+ isAutoincrement: false;
6985
+ hasRuntimeDefault: false;
6986
+ enumValues: [string, ...string[]];
6987
+ baseColumn: never;
6988
+ identity: undefined;
6989
+ generated: undefined;
6990
+ }, {}, {}>;
6991
+ slug: drizzle_orm_pg_core.PgColumn<{
6992
+ name: "slug";
6993
+ tableName: "categories";
6994
+ dataType: "string";
6995
+ columnType: "PgText";
6996
+ data: string;
6997
+ driverParam: string;
6998
+ notNull: true;
6999
+ hasDefault: false;
7000
+ isPrimaryKey: false;
7001
+ isAutoincrement: false;
7002
+ hasRuntimeDefault: false;
7003
+ enumValues: [string, ...string[]];
7004
+ baseColumn: never;
7005
+ identity: undefined;
7006
+ generated: undefined;
7007
+ }, {}, {}>;
7008
+ name: drizzle_orm_pg_core.PgColumn<{
6665
7009
  name: "name";
6666
7010
  tableName: "categories";
6667
7011
  dataType: "string";
@@ -8482,6 +8826,23 @@ declare const orderAccessKeys: drizzle_orm_pg_core.PgTableWithColumns<{
8482
8826
  identity: undefined;
8483
8827
  generated: undefined;
8484
8828
  }, {}, {}>;
8829
+ expiresAt: drizzle_orm_pg_core.PgColumn<{
8830
+ name: "expires_at";
8831
+ tableName: "order_access_keys";
8832
+ dataType: "date";
8833
+ columnType: "PgTimestamp";
8834
+ data: Date;
8835
+ driverParam: string;
8836
+ notNull: true;
8837
+ hasDefault: false;
8838
+ isPrimaryKey: false;
8839
+ isAutoincrement: false;
8840
+ hasRuntimeDefault: false;
8841
+ enumValues: undefined;
8842
+ baseColumn: never;
8843
+ identity: undefined;
8844
+ generated: undefined;
8845
+ }, {}, {}>;
8485
8846
  };
8486
8847
  dialect: "pg";
8487
8848
  }>;
@@ -9989,27 +10350,185 @@ declare const alertSubscriptions: drizzle_orm_pg_core.PgTableWithColumns<{
9989
10350
  };
9990
10351
  dialect: "pg";
9991
10352
  }>;
9992
- declare const schema: {
9993
- categories: drizzle_orm_pg_core.PgTableWithColumns<{
9994
- name: "categories";
9995
- schema: undefined;
9996
- columns: {
9997
- id: drizzle_orm_pg_core.PgColumn<{
9998
- name: "id";
9999
- tableName: "categories";
10000
- dataType: "string";
10001
- columnType: "PgText";
10002
- data: string;
10003
- driverParam: string;
10004
- notNull: true;
10005
- hasDefault: false;
10006
- isPrimaryKey: true;
10007
- isAutoincrement: false;
10008
- hasRuntimeDefault: false;
10009
- enumValues: [string, ...string[]];
10010
- baseColumn: never;
10011
- identity: undefined;
10012
- generated: undefined;
10353
+ /**
10354
+ * One row per normalised address that hard-bounced or complained, which is sent no more alert mail. The first reason
10355
+ * stays; `event_id` is the feedback event that suppressed it.
10356
+ */
10357
+ declare const emailSuppressions: drizzle_orm_pg_core.PgTableWithColumns<{
10358
+ name: "email_suppressions";
10359
+ schema: undefined;
10360
+ columns: {
10361
+ email: drizzle_orm_pg_core.PgColumn<{
10362
+ name: "email";
10363
+ tableName: "email_suppressions";
10364
+ dataType: "string";
10365
+ columnType: "PgText";
10366
+ data: string;
10367
+ driverParam: string;
10368
+ notNull: true;
10369
+ hasDefault: false;
10370
+ isPrimaryKey: true;
10371
+ isAutoincrement: false;
10372
+ hasRuntimeDefault: false;
10373
+ enumValues: [string, ...string[]];
10374
+ baseColumn: never;
10375
+ identity: undefined;
10376
+ generated: undefined;
10377
+ }, {}, {}>;
10378
+ reason: drizzle_orm_pg_core.PgColumn<{
10379
+ name: "reason";
10380
+ tableName: "email_suppressions";
10381
+ dataType: "string";
10382
+ columnType: "PgText";
10383
+ data: string;
10384
+ driverParam: string;
10385
+ notNull: true;
10386
+ hasDefault: false;
10387
+ isPrimaryKey: false;
10388
+ isAutoincrement: false;
10389
+ hasRuntimeDefault: false;
10390
+ enumValues: [string, ...string[]];
10391
+ baseColumn: never;
10392
+ identity: undefined;
10393
+ generated: undefined;
10394
+ }, {}, {}>;
10395
+ eventId: drizzle_orm_pg_core.PgColumn<{
10396
+ name: "event_id";
10397
+ tableName: "email_suppressions";
10398
+ dataType: "string";
10399
+ columnType: "PgText";
10400
+ data: string;
10401
+ driverParam: string;
10402
+ notNull: true;
10403
+ hasDefault: false;
10404
+ isPrimaryKey: false;
10405
+ isAutoincrement: false;
10406
+ hasRuntimeDefault: false;
10407
+ enumValues: [string, ...string[]];
10408
+ baseColumn: never;
10409
+ identity: undefined;
10410
+ generated: undefined;
10411
+ }, {}, {}>;
10412
+ createdAt: drizzle_orm_pg_core.PgColumn<{
10413
+ name: "created_at";
10414
+ tableName: "email_suppressions";
10415
+ dataType: "date";
10416
+ columnType: "PgTimestamp";
10417
+ data: Date;
10418
+ driverParam: string;
10419
+ notNull: true;
10420
+ hasDefault: false;
10421
+ isPrimaryKey: false;
10422
+ isAutoincrement: false;
10423
+ hasRuntimeDefault: false;
10424
+ enumValues: undefined;
10425
+ baseColumn: never;
10426
+ identity: undefined;
10427
+ generated: undefined;
10428
+ }, {}, {}>;
10429
+ };
10430
+ dialect: "pg";
10431
+ }>;
10432
+ /**
10433
+ * The parcel each shipped order went out in, written by the ship action: how a carrier's tracking update finds its
10434
+ * orders. `tracking_number` is normalised; one parcel may carry two orders, so it is not unique.
10435
+ */
10436
+ declare const orderShipments: drizzle_orm_pg_core.PgTableWithColumns<{
10437
+ name: "order_shipments";
10438
+ schema: undefined;
10439
+ columns: {
10440
+ orderId: drizzle_orm_pg_core.PgColumn<{
10441
+ name: "order_id";
10442
+ tableName: "order_shipments";
10443
+ dataType: "string";
10444
+ columnType: "PgText";
10445
+ data: string;
10446
+ driverParam: string;
10447
+ notNull: true;
10448
+ hasDefault: false;
10449
+ isPrimaryKey: true;
10450
+ isAutoincrement: false;
10451
+ hasRuntimeDefault: false;
10452
+ enumValues: [string, ...string[]];
10453
+ baseColumn: never;
10454
+ identity: undefined;
10455
+ generated: undefined;
10456
+ }, {}, {}>;
10457
+ carrier: drizzle_orm_pg_core.PgColumn<{
10458
+ name: "carrier";
10459
+ tableName: "order_shipments";
10460
+ dataType: "string";
10461
+ columnType: "PgText";
10462
+ data: string;
10463
+ driverParam: string;
10464
+ notNull: true;
10465
+ hasDefault: false;
10466
+ isPrimaryKey: false;
10467
+ isAutoincrement: false;
10468
+ hasRuntimeDefault: false;
10469
+ enumValues: [string, ...string[]];
10470
+ baseColumn: never;
10471
+ identity: undefined;
10472
+ generated: undefined;
10473
+ }, {}, {}>;
10474
+ trackingNumber: drizzle_orm_pg_core.PgColumn<{
10475
+ name: "tracking_number";
10476
+ tableName: "order_shipments";
10477
+ dataType: "string";
10478
+ columnType: "PgText";
10479
+ data: string;
10480
+ driverParam: string;
10481
+ notNull: true;
10482
+ hasDefault: false;
10483
+ isPrimaryKey: false;
10484
+ isAutoincrement: false;
10485
+ hasRuntimeDefault: false;
10486
+ enumValues: [string, ...string[]];
10487
+ baseColumn: never;
10488
+ identity: undefined;
10489
+ generated: undefined;
10490
+ }, {}, {}>;
10491
+ createdAt: drizzle_orm_pg_core.PgColumn<{
10492
+ name: "created_at";
10493
+ tableName: "order_shipments";
10494
+ dataType: "date";
10495
+ columnType: "PgTimestamp";
10496
+ data: Date;
10497
+ driverParam: string;
10498
+ notNull: true;
10499
+ hasDefault: false;
10500
+ isPrimaryKey: false;
10501
+ isAutoincrement: false;
10502
+ hasRuntimeDefault: false;
10503
+ enumValues: undefined;
10504
+ baseColumn: never;
10505
+ identity: undefined;
10506
+ generated: undefined;
10507
+ }, {}, {}>;
10508
+ };
10509
+ dialect: "pg";
10510
+ }>;
10511
+ declare const schema: {
10512
+ categories: drizzle_orm_pg_core.PgTableWithColumns<{
10513
+ name: "categories";
10514
+ schema: undefined;
10515
+ columns: {
10516
+ id: drizzle_orm_pg_core.PgColumn<{
10517
+ name: "id";
10518
+ tableName: "categories";
10519
+ dataType: "string";
10520
+ columnType: "PgText";
10521
+ data: string;
10522
+ driverParam: string;
10523
+ notNull: true;
10524
+ hasDefault: false;
10525
+ isPrimaryKey: true;
10526
+ isAutoincrement: false;
10527
+ hasRuntimeDefault: false;
10528
+ enumValues: [string, ...string[]];
10529
+ baseColumn: never;
10530
+ identity: undefined;
10531
+ generated: undefined;
10013
10532
  }, {}, {}>;
10014
10533
  parentId: drizzle_orm_pg_core.PgColumn<{
10015
10534
  name: "parent_id";
@@ -11689,6 +12208,23 @@ declare const schema: {
11689
12208
  identity: undefined;
11690
12209
  generated: undefined;
11691
12210
  }, {}, {}>;
12211
+ expiresAt: drizzle_orm_pg_core.PgColumn<{
12212
+ name: "expires_at";
12213
+ tableName: "order_access_keys";
12214
+ dataType: "date";
12215
+ columnType: "PgTimestamp";
12216
+ data: Date;
12217
+ driverParam: string;
12218
+ notNull: true;
12219
+ hasDefault: false;
12220
+ isPrimaryKey: false;
12221
+ isAutoincrement: false;
12222
+ hasRuntimeDefault: false;
12223
+ enumValues: undefined;
12224
+ baseColumn: never;
12225
+ identity: undefined;
12226
+ generated: undefined;
12227
+ }, {}, {}>;
11692
12228
  };
11693
12229
  dialect: "pg";
11694
12230
  }>;
@@ -13183,6 +13719,156 @@ declare const schema: {
13183
13719
  };
13184
13720
  dialect: "pg";
13185
13721
  }>;
13722
+ emailSuppressions: drizzle_orm_pg_core.PgTableWithColumns<{
13723
+ name: "email_suppressions";
13724
+ schema: undefined;
13725
+ columns: {
13726
+ email: drizzle_orm_pg_core.PgColumn<{
13727
+ name: "email";
13728
+ tableName: "email_suppressions";
13729
+ dataType: "string";
13730
+ columnType: "PgText";
13731
+ data: string;
13732
+ driverParam: string;
13733
+ notNull: true;
13734
+ hasDefault: false;
13735
+ isPrimaryKey: true;
13736
+ isAutoincrement: false;
13737
+ hasRuntimeDefault: false;
13738
+ enumValues: [string, ...string[]];
13739
+ baseColumn: never;
13740
+ identity: undefined;
13741
+ generated: undefined;
13742
+ }, {}, {}>;
13743
+ reason: drizzle_orm_pg_core.PgColumn<{
13744
+ name: "reason";
13745
+ tableName: "email_suppressions";
13746
+ dataType: "string";
13747
+ columnType: "PgText";
13748
+ data: string;
13749
+ driverParam: string;
13750
+ notNull: true;
13751
+ hasDefault: false;
13752
+ isPrimaryKey: false;
13753
+ isAutoincrement: false;
13754
+ hasRuntimeDefault: false;
13755
+ enumValues: [string, ...string[]];
13756
+ baseColumn: never;
13757
+ identity: undefined;
13758
+ generated: undefined;
13759
+ }, {}, {}>;
13760
+ eventId: drizzle_orm_pg_core.PgColumn<{
13761
+ name: "event_id";
13762
+ tableName: "email_suppressions";
13763
+ dataType: "string";
13764
+ columnType: "PgText";
13765
+ data: string;
13766
+ driverParam: string;
13767
+ notNull: true;
13768
+ hasDefault: false;
13769
+ isPrimaryKey: false;
13770
+ isAutoincrement: false;
13771
+ hasRuntimeDefault: false;
13772
+ enumValues: [string, ...string[]];
13773
+ baseColumn: never;
13774
+ identity: undefined;
13775
+ generated: undefined;
13776
+ }, {}, {}>;
13777
+ createdAt: drizzle_orm_pg_core.PgColumn<{
13778
+ name: "created_at";
13779
+ tableName: "email_suppressions";
13780
+ dataType: "date";
13781
+ columnType: "PgTimestamp";
13782
+ data: Date;
13783
+ driverParam: string;
13784
+ notNull: true;
13785
+ hasDefault: false;
13786
+ isPrimaryKey: false;
13787
+ isAutoincrement: false;
13788
+ hasRuntimeDefault: false;
13789
+ enumValues: undefined;
13790
+ baseColumn: never;
13791
+ identity: undefined;
13792
+ generated: undefined;
13793
+ }, {}, {}>;
13794
+ };
13795
+ dialect: "pg";
13796
+ }>;
13797
+ orderShipments: drizzle_orm_pg_core.PgTableWithColumns<{
13798
+ name: "order_shipments";
13799
+ schema: undefined;
13800
+ columns: {
13801
+ orderId: drizzle_orm_pg_core.PgColumn<{
13802
+ name: "order_id";
13803
+ tableName: "order_shipments";
13804
+ dataType: "string";
13805
+ columnType: "PgText";
13806
+ data: string;
13807
+ driverParam: string;
13808
+ notNull: true;
13809
+ hasDefault: false;
13810
+ isPrimaryKey: true;
13811
+ isAutoincrement: false;
13812
+ hasRuntimeDefault: false;
13813
+ enumValues: [string, ...string[]];
13814
+ baseColumn: never;
13815
+ identity: undefined;
13816
+ generated: undefined;
13817
+ }, {}, {}>;
13818
+ carrier: drizzle_orm_pg_core.PgColumn<{
13819
+ name: "carrier";
13820
+ tableName: "order_shipments";
13821
+ dataType: "string";
13822
+ columnType: "PgText";
13823
+ data: string;
13824
+ driverParam: string;
13825
+ notNull: true;
13826
+ hasDefault: false;
13827
+ isPrimaryKey: false;
13828
+ isAutoincrement: false;
13829
+ hasRuntimeDefault: false;
13830
+ enumValues: [string, ...string[]];
13831
+ baseColumn: never;
13832
+ identity: undefined;
13833
+ generated: undefined;
13834
+ }, {}, {}>;
13835
+ trackingNumber: drizzle_orm_pg_core.PgColumn<{
13836
+ name: "tracking_number";
13837
+ tableName: "order_shipments";
13838
+ dataType: "string";
13839
+ columnType: "PgText";
13840
+ data: string;
13841
+ driverParam: string;
13842
+ notNull: true;
13843
+ hasDefault: false;
13844
+ isPrimaryKey: false;
13845
+ isAutoincrement: false;
13846
+ hasRuntimeDefault: false;
13847
+ enumValues: [string, ...string[]];
13848
+ baseColumn: never;
13849
+ identity: undefined;
13850
+ generated: undefined;
13851
+ }, {}, {}>;
13852
+ createdAt: drizzle_orm_pg_core.PgColumn<{
13853
+ name: "created_at";
13854
+ tableName: "order_shipments";
13855
+ dataType: "date";
13856
+ columnType: "PgTimestamp";
13857
+ data: Date;
13858
+ driverParam: string;
13859
+ notNull: true;
13860
+ hasDefault: false;
13861
+ isPrimaryKey: false;
13862
+ isAutoincrement: false;
13863
+ hasRuntimeDefault: false;
13864
+ enumValues: undefined;
13865
+ baseColumn: never;
13866
+ identity: undefined;
13867
+ generated: undefined;
13868
+ }, {}, {}>;
13869
+ };
13870
+ dialect: "pg";
13871
+ }>;
13186
13872
  };
13187
13873
 
13188
13874
  declare const postgresSchema_alertSubscriptions: typeof alertSubscriptions;
@@ -13190,12 +13876,14 @@ declare const postgresSchema_auditEntries: typeof auditEntries;
13190
13876
  declare const postgresSchema_carts: typeof carts;
13191
13877
  declare const postgresSchema_categories: typeof categories;
13192
13878
  declare const postgresSchema_customers: typeof customers;
13879
+ declare const postgresSchema_emailSuppressions: typeof emailSuppressions;
13193
13880
  declare const postgresSchema_events: typeof events;
13194
13881
  declare const postgresSchema_inventoryReservations: typeof inventoryReservations;
13195
13882
  declare const postgresSchema_orderAccessKeys: typeof orderAccessKeys;
13196
13883
  declare const postgresSchema_orderHistory: typeof orderHistory;
13197
13884
  declare const postgresSchema_orderRefunds: typeof orderRefunds;
13198
13885
  declare const postgresSchema_orderSequences: typeof orderSequences;
13886
+ declare const postgresSchema_orderShipments: typeof orderShipments;
13199
13887
  declare const postgresSchema_orders: typeof orders;
13200
13888
  declare const postgresSchema_processedEvents: typeof processedEvents;
13201
13889
  declare const postgresSchema_productCategories: typeof productCategories;
@@ -13213,12 +13901,14 @@ declare namespace postgresSchema {
13213
13901
  postgresSchema_carts as carts,
13214
13902
  postgresSchema_categories as categories,
13215
13903
  postgresSchema_customers as customers,
13904
+ postgresSchema_emailSuppressions as emailSuppressions,
13216
13905
  postgresSchema_events as events,
13217
13906
  postgresSchema_inventoryReservations as inventoryReservations,
13218
13907
  postgresSchema_orderAccessKeys as orderAccessKeys,
13219
13908
  postgresSchema_orderHistory as orderHistory,
13220
13909
  postgresSchema_orderRefunds as orderRefunds,
13221
13910
  postgresSchema_orderSequences as orderSequences,
13911
+ postgresSchema_orderShipments as orderShipments,
13222
13912
  postgresSchema_orders as orders,
13223
13913
  postgresSchema_processedEvents as processedEvents,
13224
13914
  postgresSchema_productCategories as productCategories,