@creator.co/creatorco-kysely-types 1.0.22-alpha-15b27e5 → 1.0.22-alpha-522fb1e

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 ADDED
@@ -0,0 +1,20 @@
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];
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,33 @@ 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
+ metaData: Generated<Json>;
496
+ shopifyStoreId: number;
497
+ };
498
+ export type ShopifyProductVariation = {
499
+ id: GeneratedAlways<number>;
500
+ shopifyId: string;
501
+ title: string;
502
+ imageUrl: string;
503
+ metaData: Generated<Json>;
504
+ shopifyProductId: number;
505
+ };
506
+ export type ShopifyStore = {
507
+ id: GeneratedAlways<number>;
508
+ name: string | null;
509
+ url: string;
510
+ accessToken: string | null;
511
+ syncStatus: Generated<ShopifyStoreSyncStatus>;
512
+ lastSynced: Timestamp | null;
513
+ metaData: Generated<Json>;
514
+ brandId: number;
515
+ };
485
516
  export type SocialListeningList = {
486
517
  id: GeneratedAlways<number>;
487
518
  brandId: number;
@@ -688,6 +719,7 @@ export type DB = {
688
719
  brandtoimage: BrandToImage;
689
720
  branduserprofile: BrandUserProfile;
690
721
  campaign: Campaign;
722
+ campaignToShopifyProduct: CampaignToShopifyProduct;
691
723
  CampaignInvite: CampaignInvite;
692
724
  campaignpin: CampaignPin;
693
725
  campaignstep: CampaignStep;
@@ -725,6 +757,9 @@ export type DB = {
725
757
  sequenceinboundemail: SequenceInboundEmail;
726
758
  sequenceoutboundemail: SequenceOutboundEmail;
727
759
  sequencestep: SequenceStep;
760
+ shopifyProduct: ShopifyProduct;
761
+ shopifyProductVariation: ShopifyProductVariation;
762
+ shopifyStore: ShopifyStore;
728
763
  sociallisteninglist: SocialListeningList;
729
764
  socialpost: SocialPost;
730
765
  socialprofile: SocialProfile;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@creator.co/creatorco-kysely-types",
3
- "version": "1.0.22-alpha-15b27e5",
3
+ "version": "1.0.22-alpha-522fb1e",
4
4
  "types": "./index.d.ts",
5
- "type": "commonjs",
5
+ "type": "module",
6
6
  "devDependencies": {
7
7
  "typescript": "^5.2.2"
8
8
  },
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
- }