@creator.co/creatorco-kysely-types 1.0.16 → 1.0.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.
Files changed (3) hide show
  1. package/enums.ts +15 -0
  2. package/index.d.ts +13 -1
  3. package/package.json +1 -1
package/enums.ts ADDED
@@ -0,0 +1,15 @@
1
+ export const trolleyPaymentType = {
2
+ optIn: "optIn",
3
+ tip: "tip",
4
+ affiliate: "affiliate"
5
+ } as const;
6
+ export type trolleyPaymentType = (typeof trolleyPaymentType)[keyof typeof trolleyPaymentType];
7
+ export const trolleyPaymentStatus = {
8
+ created: "created",
9
+ updated: "updated",
10
+ deleted: "deleted",
11
+ processed: "processed",
12
+ failed: "failed",
13
+ returned: "returned"
14
+ } as const;
15
+ export type trolleyPaymentStatus = (typeof trolleyPaymentStatus)[keyof typeof trolleyPaymentStatus];
package/index.d.ts CHANGED
@@ -5,6 +5,8 @@ export type Generated<T> = T extends ColumnType<infer S, infer I, infer U>
5
5
  : ColumnType<T, T | undefined, T>;
6
6
  export type Timestamp = ColumnType<Date, Date | string, Date | string>;
7
7
 
8
+ import type { trolleyPaymentType, trolleyPaymentStatus } from "./enums";
9
+
8
10
  export type AffiliateClick = {
9
11
  id: GeneratedAlways<number>;
10
12
  created: Generated<Timestamp>;
@@ -583,6 +585,15 @@ export type TiktokProfile = {
583
585
  userId: number | null;
584
586
  brandId: number | null;
585
587
  };
588
+ export type TrolleyPayment = {
589
+ id: GeneratedAlways<number>;
590
+ paymentId: string;
591
+ type: trolleyPaymentType | null;
592
+ status: Generated<trolleyPaymentStatus>;
593
+ optInId: number;
594
+ paymentAmount: number;
595
+ metaData: Generated<Json>;
596
+ };
586
597
  export type TwitchProfile = {
587
598
  id: GeneratedAlways<number>;
588
599
  twitchId: string;
@@ -628,7 +639,7 @@ export type User = {
628
639
  affiliateSlug: string | null;
629
640
  closed: Timestamp | null;
630
641
  closedReason: string | null;
631
- usercomLastSynced: Timestamp | null;
642
+ usercomLastSynced: Generated<Timestamp | null>;
632
643
  extraData: Generated<Json>;
633
644
  referrerId: number | null;
634
645
  };
@@ -725,6 +736,7 @@ export type DB = {
725
736
  state: State;
726
737
  step: Step;
727
738
  tiktokprofile: TiktokProfile;
739
+ TrolleyPayment: TrolleyPayment;
728
740
  twitchprofile: TwitchProfile;
729
741
  twitterprofile: TwitterProfile;
730
742
  user: User;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/creatorco-kysely-types",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "types": "./index.d.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {