@creator.co/creatorco-kysely-types 1.0.15 → 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.
- package/enums.ts +15 -0
- package/index.d.ts +13 -2
- 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>;
|
|
@@ -496,7 +498,6 @@ export type SocialPost = {
|
|
|
496
498
|
data: Generated<Json>;
|
|
497
499
|
lastFetched: Timestamp | null;
|
|
498
500
|
lastWebhook: Timestamp | null;
|
|
499
|
-
isStale: boolean | null;
|
|
500
501
|
posted: Timestamp | null;
|
|
501
502
|
title: string | null;
|
|
502
503
|
description: string | null;
|
|
@@ -584,6 +585,15 @@ export type TiktokProfile = {
|
|
|
584
585
|
userId: number | null;
|
|
585
586
|
brandId: number | null;
|
|
586
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
|
+
};
|
|
587
597
|
export type TwitchProfile = {
|
|
588
598
|
id: GeneratedAlways<number>;
|
|
589
599
|
twitchId: string;
|
|
@@ -629,7 +639,7 @@ export type User = {
|
|
|
629
639
|
affiliateSlug: string | null;
|
|
630
640
|
closed: Timestamp | null;
|
|
631
641
|
closedReason: string | null;
|
|
632
|
-
usercomLastSynced: Timestamp | null
|
|
642
|
+
usercomLastSynced: Generated<Timestamp | null>;
|
|
633
643
|
extraData: Generated<Json>;
|
|
634
644
|
referrerId: number | null;
|
|
635
645
|
};
|
|
@@ -726,6 +736,7 @@ export type DB = {
|
|
|
726
736
|
state: State;
|
|
727
737
|
step: Step;
|
|
728
738
|
tiktokprofile: TiktokProfile;
|
|
739
|
+
TrolleyPayment: TrolleyPayment;
|
|
729
740
|
twitchprofile: TwitchProfile;
|
|
730
741
|
twitterprofile: TwitterProfile;
|
|
731
742
|
user: User;
|