@creator.co/creatorco-kysely-types 1.0.88 → 1.0.90

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
@@ -19,6 +19,16 @@ export declare const CampaignToSocialPostStatus: {
19
19
  readonly declined: "declined";
20
20
  };
21
21
  export type CampaignToSocialPostStatus = (typeof CampaignToSocialPostStatus)[keyof typeof CampaignToSocialPostStatus];
22
+ export declare const AffiliateCommissionType: {
23
+ readonly commission: "commission";
24
+ readonly sale: "sale";
25
+ };
26
+ export type AffiliateCommissionType = (typeof AffiliateCommissionType)[keyof typeof AffiliateCommissionType];
27
+ export declare const AffiliateResolverType: {
28
+ readonly coupon: "coupon";
29
+ readonly link: "link";
30
+ };
31
+ export type AffiliateResolverType = (typeof AffiliateResolverType)[keyof typeof AffiliateResolverType];
22
32
  export declare const ConnectionStatus: {
23
33
  readonly CONNECTED: "CONNECTED";
24
34
  readonly ERROR: "ERROR";
package/enums.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigurationStatus = exports.Status = exports.ShopifyStoreSyncStatus = exports.SocialProfileContactSource = exports.ConnectionStatus = exports.CampaignToSocialPostStatus = exports.trolleyPaymentStatus = exports.trolleyPaymentType = void 0;
3
+ exports.ConfigurationStatus = exports.Status = exports.ShopifyStoreSyncStatus = exports.SocialProfileContactSource = exports.ConnectionStatus = exports.AffiliateResolverType = exports.AffiliateCommissionType = exports.CampaignToSocialPostStatus = exports.trolleyPaymentStatus = exports.trolleyPaymentType = void 0;
4
4
  exports.trolleyPaymentType = {
5
5
  optIn: "optIn",
6
6
  tip: "tip",
@@ -19,6 +19,14 @@ exports.CampaignToSocialPostStatus = {
19
19
  approved: "approved",
20
20
  declined: "declined"
21
21
  };
22
+ exports.AffiliateCommissionType = {
23
+ commission: "commission",
24
+ sale: "sale"
25
+ };
26
+ exports.AffiliateResolverType = {
27
+ coupon: "coupon",
28
+ link: "link"
29
+ };
22
30
  exports.ConnectionStatus = {
23
31
  CONNECTED: "CONNECTED",
24
32
  ERROR: "ERROR",
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;IACtB,UAAU,EAAE,YAAY;CAClB,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,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACd,CAAC;AAEE,QAAA,gBAAgB,GAAG;IAC5B,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;CAC5B,CAAC;AAEE,QAAA,0BAA0B,GAAG;IACtC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAEE,QAAA,sBAAsB,GAAG;IAClC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACR,CAAC;AAEE,QAAA,MAAM,GAAG;IAClB,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;CACtB,CAAC;AAEE,QAAA,mBAAmB,GAAG;IAC/B,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;CACV,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;IACtB,UAAU,EAAE,YAAY;CAClB,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,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACd,CAAC;AAEE,QAAA,uBAAuB,GAAG;IACnC,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;CACN,CAAC;AAEE,QAAA,qBAAqB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAEE,QAAA,gBAAgB,GAAG;IAC5B,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;CAC5B,CAAC;AAEE,QAAA,0BAA0B,GAAG;IACtC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAEE,QAAA,sBAAsB,GAAG;IAClC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACR,CAAC;AAEE,QAAA,MAAM,GAAG;IAClB,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;CACtB,CAAC;AAEE,QAAA,mBAAmB,GAAG;IAC/B,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;CACV,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, CampaignToSocialPostStatus, ConnectionStatus, SocialProfileContactSource, ShopifyStoreSyncStatus, Status, ConfigurationStatus } from "./enums";
8
+ import type { trolleyPaymentType, trolleyPaymentStatus, CampaignToSocialPostStatus, AffiliateCommissionType, AffiliateResolverType, ConnectionStatus, SocialProfileContactSource, ShopifyStoreSyncStatus, Status, ConfigurationStatus } from "./enums";
9
9
 
10
10
  export type AffiliateClick = {
11
11
  id: GeneratedAlways<number>;
@@ -16,6 +16,16 @@ export type AffiliateClick = {
16
16
  metaData: Generated<Json>;
17
17
  affiliateLinkId: number;
18
18
  };
19
+ export type AffiliateConfiguration = {
20
+ id: GeneratedAlways<number>;
21
+ integrationId: string;
22
+ platform: string;
23
+ extraData: Generated<Json>;
24
+ editorUserId: number | null;
25
+ brandId: number;
26
+ createdAt: Generated<Timestamp>;
27
+ updatedAt: Timestamp;
28
+ };
19
29
  export type AffiliateEvent = {
20
30
  id: GeneratedAlways<number>;
21
31
  event: string;
@@ -47,6 +57,27 @@ export type AffiliatePayoutBatch = {
47
57
  trolleyBatchId: string | null;
48
58
  userId: number;
49
59
  };
60
+ export type AffiliatePricingGroup = {
61
+ id: GeneratedAlways<number>;
62
+ rules: Json;
63
+ commissionType: AffiliateCommissionType;
64
+ value: number;
65
+ affiliateConfigurationId: number;
66
+ editorUserId: number | null;
67
+ createdAt: Generated<Timestamp>;
68
+ updatedAt: Timestamp;
69
+ };
70
+ export type AffiliateResolver = {
71
+ id: GeneratedAlways<number>;
72
+ type: AffiliateResolverType;
73
+ value: string;
74
+ extraData: Generated<Json>;
75
+ editorUserId: number | null;
76
+ createdAt: Generated<Timestamp>;
77
+ updatedAt: Timestamp;
78
+ campaignId: number;
79
+ optInId: number | null;
80
+ };
50
81
  export type ArchivedSocialPost = {
51
82
  id: GeneratedAlways<number>;
52
83
  phylloId: string | null;
@@ -541,6 +572,17 @@ export type ListToSocialPost = {
541
572
  listId: number;
542
573
  postId: number;
543
574
  };
575
+ export type LLMPrompt = {
576
+ id: GeneratedAlways<string>;
577
+ collectionName: string;
578
+ version: number;
579
+ steps: Json;
580
+ published: Generated<boolean>;
581
+ extraData: Generated<Json>;
582
+ editorUserId: number | null;
583
+ createdAt: Generated<Timestamp>;
584
+ updatedAt: Timestamp;
585
+ };
544
586
  export type Log = {
545
587
  id: GeneratedAlways<number>;
546
588
  userId: number | null;
@@ -1036,8 +1078,11 @@ export type DB = {
1036
1078
  _CreditRefundBatchToSocialProfile: CreditRefundBatchToSocialProfile;
1037
1079
  affiliatePayoutBatch: AffiliatePayoutBatch;
1038
1080
  AffiliateClick: AffiliateClick;
1081
+ AffiliateConfiguration: AffiliateConfiguration;
1039
1082
  AffiliateEvent: AffiliateEvent;
1040
1083
  AffiliateLink: AffiliateLink;
1084
+ AffiliatePricingGroup: AffiliatePricingGroup;
1085
+ AffiliateResolver: AffiliateResolver;
1041
1086
  archivedSocialPost: ArchivedSocialPost;
1042
1087
  brand: Brand;
1043
1088
  brandContract: BrandContract;
@@ -1079,6 +1124,7 @@ export type DB = {
1079
1124
  instagramprofile: InstagramProfile;
1080
1125
  latestCreatorPaymentTransaction: LatestCreatorPaymentTransaction;
1081
1126
  listtosocialpost: ListToSocialPost;
1127
+ llmPrompt: LLMPrompt;
1082
1128
  Log: Log;
1083
1129
  message: Message;
1084
1130
  messagetemplate: MessageTemplate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/creatorco-kysely-types",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "types": "./index.d.ts",
5
5
  "type": "commonjs",
6
6
  "devDependencies": {