@creator.co/creatorco-kysely-types 1.0.22-alpha-f7bb6e5 → 1.0.22-alpha-a3bca2f
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 +6 -0
- package/index.d.ts +38 -1
- package/package.json +2 -2
- package/tsconfig.json +0 -21
package/enums.ts
CHANGED
|
@@ -12,3 +12,9 @@ export const trolleyPaymentStatus = {
|
|
|
12
12
|
returned: "returned"
|
|
13
13
|
} as const;
|
|
14
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];
|
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 } from "./enums";
|
|
8
|
+
import type { trolleyPaymentType, trolleyPaymentStatus, ShopifyStoreSyncStatus } from "./enums";
|
|
9
9
|
|
|
10
10
|
export type AffiliateClick = {
|
|
11
11
|
id: GeneratedAlways<number>;
|
|
@@ -177,6 +177,10 @@ export type CampaignToImage = {
|
|
|
177
177
|
campaignId: number;
|
|
178
178
|
type: string;
|
|
179
179
|
};
|
|
180
|
+
export type CampaignToShopifyProduct = {
|
|
181
|
+
campaignId: number;
|
|
182
|
+
shopifyProductId: number;
|
|
183
|
+
};
|
|
180
184
|
export type Category = {
|
|
181
185
|
id: GeneratedAlways<number>;
|
|
182
186
|
slug: string;
|
|
@@ -482,6 +486,35 @@ export type SequenceStep = {
|
|
|
482
486
|
order: number;
|
|
483
487
|
stepId: number;
|
|
484
488
|
};
|
|
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
|
+
};
|
|
485
518
|
export type SocialListeningList = {
|
|
486
519
|
id: GeneratedAlways<number>;
|
|
487
520
|
brandId: number;
|
|
@@ -688,6 +721,7 @@ export type DB = {
|
|
|
688
721
|
brandtoimage: BrandToImage;
|
|
689
722
|
branduserprofile: BrandUserProfile;
|
|
690
723
|
campaign: Campaign;
|
|
724
|
+
campaignToShopifyProduct: CampaignToShopifyProduct;
|
|
691
725
|
CampaignInvite: CampaignInvite;
|
|
692
726
|
campaignpin: CampaignPin;
|
|
693
727
|
campaignstep: CampaignStep;
|
|
@@ -725,6 +759,9 @@ export type DB = {
|
|
|
725
759
|
sequenceinboundemail: SequenceInboundEmail;
|
|
726
760
|
sequenceoutboundemail: SequenceOutboundEmail;
|
|
727
761
|
sequencestep: SequenceStep;
|
|
762
|
+
shopifyProduct: ShopifyProduct;
|
|
763
|
+
shopifyProductVariation: ShopifyProductVariation;
|
|
764
|
+
shopifyStore: ShopifyStore;
|
|
728
765
|
sociallisteninglist: SocialListeningList;
|
|
729
766
|
socialpost: SocialPost;
|
|
730
767
|
socialprofile: SocialProfile;
|
package/package.json
CHANGED
package/tsconfig.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|