@creator.co/creatorco-kysely-types 1.0.22-alpha-a3bca2f → 1.0.22-alpha-ecfef27
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/index.d.ts +1 -38
- package/package.json +2 -2
- package/tsconfig.json +21 -0
- package/enums.ts +0 -20
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ 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
|
|
8
|
+
import type { trolleyPaymentType, trolleyPaymentStatus } from "./enums";
|
|
9
9
|
|
|
10
10
|
export type AffiliateClick = {
|
|
11
11
|
id: GeneratedAlways<number>;
|
|
@@ -177,10 +177,6 @@ export type CampaignToImage = {
|
|
|
177
177
|
campaignId: number;
|
|
178
178
|
type: string;
|
|
179
179
|
};
|
|
180
|
-
export type CampaignToShopifyProduct = {
|
|
181
|
-
campaignId: number;
|
|
182
|
-
shopifyProductId: number;
|
|
183
|
-
};
|
|
184
180
|
export type Category = {
|
|
185
181
|
id: GeneratedAlways<number>;
|
|
186
182
|
slug: string;
|
|
@@ -486,35 +482,6 @@ export type SequenceStep = {
|
|
|
486
482
|
order: number;
|
|
487
483
|
stepId: number;
|
|
488
484
|
};
|
|
489
|
-
export type ShopifyProduct = {
|
|
490
|
-
id: GeneratedAlways<number>;
|
|
491
|
-
shopifyId: string;
|
|
492
|
-
title: string;
|
|
493
|
-
handle: string;
|
|
494
|
-
imageUrl: string;
|
|
495
|
-
shopifyProductId: string;
|
|
496
|
-
metaData: Generated<Json>;
|
|
497
|
-
shopifyStoreId: number;
|
|
498
|
-
};
|
|
499
|
-
export type ShopifyProductVariation = {
|
|
500
|
-
id: GeneratedAlways<number>;
|
|
501
|
-
shopifyId: string;
|
|
502
|
-
title: string;
|
|
503
|
-
imageUrl: string;
|
|
504
|
-
metaData: Generated<Json>;
|
|
505
|
-
shopifyProductId: number;
|
|
506
|
-
};
|
|
507
|
-
export type ShopifyStore = {
|
|
508
|
-
id: GeneratedAlways<number>;
|
|
509
|
-
shopifyId: string | null;
|
|
510
|
-
name: string | null;
|
|
511
|
-
url: string;
|
|
512
|
-
accessToken: string | null;
|
|
513
|
-
syncStatus: Generated<ShopifyStoreSyncStatus>;
|
|
514
|
-
lastSynced: Timestamp | null;
|
|
515
|
-
metaData: Generated<Json>;
|
|
516
|
-
brandId: number;
|
|
517
|
-
};
|
|
518
485
|
export type SocialListeningList = {
|
|
519
486
|
id: GeneratedAlways<number>;
|
|
520
487
|
brandId: number;
|
|
@@ -721,7 +688,6 @@ export type DB = {
|
|
|
721
688
|
brandtoimage: BrandToImage;
|
|
722
689
|
branduserprofile: BrandUserProfile;
|
|
723
690
|
campaign: Campaign;
|
|
724
|
-
campaignToShopifyProduct: CampaignToShopifyProduct;
|
|
725
691
|
CampaignInvite: CampaignInvite;
|
|
726
692
|
campaignpin: CampaignPin;
|
|
727
693
|
campaignstep: CampaignStep;
|
|
@@ -759,9 +725,6 @@ export type DB = {
|
|
|
759
725
|
sequenceinboundemail: SequenceInboundEmail;
|
|
760
726
|
sequenceoutboundemail: SequenceOutboundEmail;
|
|
761
727
|
sequencestep: SequenceStep;
|
|
762
|
-
shopifyProduct: ShopifyProduct;
|
|
763
|
-
shopifyProductVariation: ShopifyProductVariation;
|
|
764
|
-
shopifyStore: ShopifyStore;
|
|
765
728
|
sociallisteninglist: SocialListeningList;
|
|
766
729
|
socialpost: SocialPost;
|
|
767
730
|
socialprofile: SocialProfile;
|
package/package.json
CHANGED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"exclude": ["**/*.test.*", "**/__mocks__/*", "**/__tests__/*", "**/tests/*", "./dist/**/*"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"lib": [
|
|
5
|
+
"es5",
|
|
6
|
+
"es6",
|
|
7
|
+
"dom"
|
|
8
|
+
],
|
|
9
|
+
"noImplicitAny": false,
|
|
10
|
+
"noEmitOnError": true,
|
|
11
|
+
"removeComments": false,
|
|
12
|
+
"downlevelIteration": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"sourceMap": true,
|
|
15
|
+
"target": "es5",
|
|
16
|
+
"outDir": "dist",
|
|
17
|
+
"declaration": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"strictNullChecks": true
|
|
20
|
+
}
|
|
21
|
+
}
|
package/enums.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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];
|
|
15
|
-
export const ShopifyStoreSyncStatus = {
|
|
16
|
-
syncing: "syncing",
|
|
17
|
-
synced: "synced",
|
|
18
|
-
error: "error"
|
|
19
|
-
} as const;
|
|
20
|
-
export type ShopifyStoreSyncStatus = (typeof ShopifyStoreSyncStatus)[keyof typeof ShopifyStoreSyncStatus];
|