@creator.co/creatorco-kysely-types 1.0.23 → 1.0.24-alpha-b01aec2

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.d.ts CHANGED
@@ -12,3 +12,9 @@ export declare const trolleyPaymentStatus: {
12
12
  readonly returned: "returned";
13
13
  };
14
14
  export type trolleyPaymentStatus = (typeof trolleyPaymentStatus)[keyof typeof trolleyPaymentStatus];
15
+ export declare const ShopifyStoreSyncStatus: {
16
+ readonly syncing: "syncing";
17
+ readonly synced: "synced";
18
+ readonly error: "error";
19
+ };
20
+ export type ShopifyStoreSyncStatus = (typeof ShopifyStoreSyncStatus)[keyof typeof ShopifyStoreSyncStatus];
package/enums.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.trolleyPaymentStatus = exports.trolleyPaymentType = void 0;
3
+ exports.ShopifyStoreSyncStatus = exports.trolleyPaymentStatus = exports.trolleyPaymentType = void 0;
4
4
  exports.trolleyPaymentType = {
5
5
  optIn: "optIn",
6
6
  tip: "tip",
@@ -13,4 +13,9 @@ exports.trolleyPaymentStatus = {
13
13
  failed: "failed",
14
14
  returned: "returned"
15
15
  };
16
+ exports.ShopifyStoreSyncStatus = {
17
+ syncing: "syncing",
18
+ synced: "synced",
19
+ error: "error"
20
+ };
16
21
  //# sourceMappingURL=enums.js.map
package/enums.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;CAChB,CAAC;AAEE,QAAA,oBAAoB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACd,CAAC"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;CAChB,CAAC;AAEE,QAAA,oBAAoB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACd,CAAC;AAEE,QAAA,sBAAsB,GAAG;IAClC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACR,CAAC"}
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>;
@@ -86,6 +86,7 @@ export type Campaign = {
86
86
  status: Generated<string>;
87
87
  date: Generated<Timestamp>;
88
88
  publishDate: Timestamp | null;
89
+ sfSyncDate: Timestamp | null;
89
90
  description: string | null;
90
91
  productDescription: string | null;
91
92
  prizeDescription: string | null;
@@ -177,6 +178,10 @@ export type CampaignToImage = {
177
178
  campaignId: number;
178
179
  type: string;
179
180
  };
181
+ export type CampaignToShopifyProduct = {
182
+ campaignId: number;
183
+ shopifyProductId: number;
184
+ };
180
185
  export type Category = {
181
186
  id: GeneratedAlways<number>;
182
187
  slug: string;
@@ -482,6 +487,33 @@ export type SequenceStep = {
482
487
  order: number;
483
488
  stepId: number;
484
489
  };
490
+ export type ShopifyProduct = {
491
+ id: GeneratedAlways<number>;
492
+ shopifyId: string;
493
+ title: string;
494
+ handle: string;
495
+ imageUrl: 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
+ name: string | null;
510
+ url: string;
511
+ accessToken: string | null;
512
+ syncStatus: Generated<ShopifyStoreSyncStatus>;
513
+ lastSynced: Timestamp | null;
514
+ metaData: Generated<Json>;
515
+ brandId: number;
516
+ };
485
517
  export type SocialListeningList = {
486
518
  id: GeneratedAlways<number>;
487
519
  brandId: number;
@@ -688,6 +720,7 @@ export type DB = {
688
720
  brandtoimage: BrandToImage;
689
721
  branduserprofile: BrandUserProfile;
690
722
  campaign: Campaign;
723
+ campaignToShopifyProduct: CampaignToShopifyProduct;
691
724
  CampaignInvite: CampaignInvite;
692
725
  campaignpin: CampaignPin;
693
726
  campaignstep: CampaignStep;
@@ -725,6 +758,9 @@ export type DB = {
725
758
  sequenceinboundemail: SequenceInboundEmail;
726
759
  sequenceoutboundemail: SequenceOutboundEmail;
727
760
  sequencestep: SequenceStep;
761
+ shopifyProduct: ShopifyProduct;
762
+ shopifyProductVariation: ShopifyProductVariation;
763
+ shopifyStore: ShopifyStore;
728
764
  sociallisteninglist: SocialListeningList;
729
765
  socialpost: SocialPost;
730
766
  socialprofile: SocialProfile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/creatorco-kysely-types",
3
- "version": "1.0.23",
3
+ "version": "1.0.24-alpha-b01aec2",
4
4
  "types": "./index.d.ts",
5
5
  "type": "commonjs",
6
6
  "devDependencies": {