@creator.co/creatorco-kysely-types 1.0.16 → 1.0.18
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.
- package/enums.ts +14 -0
- package/index.d.ts +13 -1
- package/package.json +1 -1
package/enums.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
pending: "pending",
|
|
9
|
+
processing: "processing",
|
|
10
|
+
processed: "processed",
|
|
11
|
+
failed: "failed",
|
|
12
|
+
returned: "returned"
|
|
13
|
+
} as const;
|
|
14
|
+
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: 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;
|