@stashfin/mysql2 1.0.4 → 1.0.6

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,23 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export type JSONPrimitive = string | number | boolean | null;
3
+ export type JSONValue = JSONPrimitive | JSONObject | JSONArray;
4
+ export type JSONObject = {
5
+ [member: string]: JSONValue;
6
+ };
7
+ export type JSONArray = Array<JSONValue>;
8
+ /**
9
+ * Exposes all fields present in journey_steps as a typescript
10
+ * interface.
11
+ */
12
+ export interface JourneySteps {
13
+ id: number;
14
+ category: string;
15
+ step: string;
16
+ data: JSONValue;
17
+ /** Defaults to: CURRENT_TIMESTAMP. */
18
+ created_at?: Date | null;
19
+ /** Defaults to: CURRENT_TIMESTAMP. */
20
+ updated_at?: Date | null;
21
+ }
22
+ export interface JourneyStepsModel extends JourneySteps, RowDataPacket {
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface StashCashTable {
3
+ id?: number;
4
+ customer_id: number;
5
+ locked: number;
6
+ unlocked: number;
7
+ created_at: Date;
8
+ updated_at: Date;
9
+ is_active: boolean;
10
+ is_deleted: boolean;
11
+ }
12
+ export interface StashCashTrascationTable {
13
+ id?: number;
14
+ customer_id: number;
15
+ campaign_id: number;
16
+ txn_id: number;
17
+ sc_type: string;
18
+ amount: number;
19
+ balance: number;
20
+ remaining: number;
21
+ txn_type: string;
22
+ status: string;
23
+ expiry: Date;
24
+ created_at: Date;
25
+ updated_at: Date;
26
+ is_active: boolean;
27
+ is_deleted: boolean;
28
+ }
29
+ export interface StashCashModel extends StashCashTable, RowDataPacket {
30
+ }
31
+ export interface StashCashTrascationModel extends StashCashTrascationTable, RowDataPacket {
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,8 +8,7 @@
8
8
  "build": "tsc --build",
9
9
  "postbuild": "cp package.json dist/ ",
10
10
  "publish:patch": "npm version patch && npm run build && cd dist && npm publish --access public",
11
- "publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public",
12
- "publish:local": "npm run build && cd dist && npm link"
11
+ "publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public"
13
12
  },
14
13
  "keywords": [],
15
14
  "author": "Yogesh Randive",