@creator.co/creatorco-kysely-types 1.0.79 → 1.0.81

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
@@ -2,6 +2,7 @@ export declare const trolleyPaymentType: {
2
2
  readonly optIn: "optIn";
3
3
  readonly tip: "tip";
4
4
  readonly affiliate: "affiliate";
5
+ readonly withdrawal: "withdrawal";
5
6
  };
6
7
  export type trolleyPaymentType = (typeof trolleyPaymentType)[keyof typeof trolleyPaymentType];
7
8
  export declare const trolleyPaymentStatus: {
package/enums.js CHANGED
@@ -4,7 +4,8 @@ exports.ConfigurationStatus = exports.Status = exports.ShopifyStoreSyncStatus =
4
4
  exports.trolleyPaymentType = {
5
5
  optIn: "optIn",
6
6
  tip: "tip",
7
- affiliate: "affiliate"
7
+ affiliate: "affiliate",
8
+ withdrawal: "withdrawal"
8
9
  };
9
10
  exports.trolleyPaymentStatus = {
10
11
  pending: "pending",
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;AAEE,QAAA,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACd,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,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
@@ -88,7 +88,7 @@ export type Brand = {
88
88
  id: GeneratedAlways<number>;
89
89
  name: string;
90
90
  description: string | null;
91
- website: string;
91
+ website: string | null;
92
92
  monthlyContacts: number | null;
93
93
  monthlyReports: number | null;
94
94
  lastContactDistribution: Timestamp | null;
@@ -96,6 +96,7 @@ export type Brand = {
96
96
  affiliateBaseUrl: string | null;
97
97
  affiliateCommission: number | null;
98
98
  extraData: Generated<Json>;
99
+ idmId: string | null;
99
100
  specialistId: number | null;
100
101
  parentBrandId: number | null;
101
102
  searchName: Generated<string | null>;
@@ -525,6 +526,16 @@ export type InstagramProfile = {
525
526
  userId: number | null;
526
527
  brandId: number | null;
527
528
  };
529
+ export type LatestCreatorPaymentTransaction = {
530
+ id: number;
531
+ balance: number;
532
+ type: string;
533
+ date: Timestamp;
534
+ notes: string | null;
535
+ metaData: Json;
536
+ accountId: number;
537
+ creatorId: number | null;
538
+ };
528
539
  export type ListToSocialPost = {
529
540
  id: GeneratedAlways<number>;
530
541
  listId: number;
@@ -570,9 +581,6 @@ export type OptIn = {
570
581
  seen: Generated<boolean>;
571
582
  instructions: string | null;
572
583
  paymentAmount: number | null;
573
- /**
574
- * @deprecated join with TrolleyPayment for actual status
575
- */
576
584
  paymentStatus: Generated<string>;
577
585
  extraData: Generated<Json>;
578
586
  favoritedDate: Timestamp | null;
@@ -902,6 +910,7 @@ export type TrolleyPayment = {
902
910
  type: trolleyPaymentType | null;
903
911
  status: trolleyPaymentStatus;
904
912
  optInId: number | null;
913
+ paymentTransactionId: number | null;
905
914
  paymentAmount: number;
906
915
  metaData: Generated<Json>;
907
916
  };
@@ -1040,6 +1049,7 @@ export type DB = {
1040
1049
  image: Image;
1041
1050
  ImpactRadiusEvent: ImpactRadiusEvent;
1042
1051
  instagramprofile: InstagramProfile;
1052
+ latestCreatorPaymentTransaction: LatestCreatorPaymentTransaction;
1043
1053
  listtosocialpost: ListToSocialPost;
1044
1054
  Log: Log;
1045
1055
  message: Message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/creatorco-kysely-types",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "types": "./index.d.ts",
5
5
  "type": "commonjs",
6
6
  "devDependencies": {