@stashfin/mysql2 1.4.263 → 1.4.265

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.
@@ -0,0 +1,35 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface Payout {
3
+ payout: number;
4
+ fixedPayout?: number | null;
5
+ payout_model: 'fixed' | 'percentage';
6
+ currency: string;
7
+ }
8
+ export interface Goal {
9
+ id: string;
10
+ title: string;
11
+ value: string;
12
+ payout_model: string;
13
+ payout: Payout;
14
+ }
15
+ export interface CampaignTable {
16
+ id?: number;
17
+ brand_id: number;
18
+ title: string;
19
+ description: any;
20
+ kpi: any;
21
+ thumbnail: string;
22
+ currency: string;
23
+ preview_url: string | null;
24
+ model: string;
25
+ categories: string | null;
26
+ tracking_link: string;
27
+ goals: string | null;
28
+ default_goal?: string;
29
+ payouts: string | null;
30
+ is_active?: boolean;
31
+ created_at?: Date;
32
+ updated_at?: Date;
33
+ }
34
+ export interface CampaignModel extends CampaignTable, RowDataPacket {
35
+ }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,8 @@ export interface PartnerCustomerTable {
3
3
  id?: number;
4
4
  customer_id: number;
5
5
  partner_id: string;
6
+ pan?: string;
7
+ product_code: 'PL' | 'LAMF' | 'EV' | null;
6
8
  partner_customer_id?: string;
7
9
  partner_lead_status?: number;
8
10
  utm_source: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.263",
3
+ "version": "1.4.265",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,21 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
- export type JSONPrimitive = string | number | boolean | null;
3
- export type JSONValue = JSONObject | JSONArray;
4
- export type JSONObject = {
5
- [member: string]: JSONPrimitive;
6
- };
7
- export type JSONArray = Array<JSONValue>;
8
- export interface BannerTable {
9
- id: number;
10
- name: string;
11
- image_url: string;
12
- web_url?: string | null;
13
- landing_page?: string | null;
14
- api_mode?: string | null;
15
- app_version: number;
16
- status: string;
17
- created_at: Date;
18
- updated_at: Date;
19
- }
20
- export interface BannerModel extends BannerTable, RowDataPacket {
21
- }