@voyant-travel/operator-settings 0.2.2 → 0.2.4

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,67 @@
1
+ CREATE TABLE "booking_tax_settings" (
2
+ "id" text PRIMARY KEY NOT NULL,
3
+ "tax_price_mode" text DEFAULT 'inclusive' NOT NULL,
4
+ "tax_policy_profile_id" text,
5
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
6
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
7
+ );
8
+ --> statement-breakpoint
9
+ CREATE TABLE "operator_payment_defaults" (
10
+ "id" text PRIMARY KEY NOT NULL,
11
+ "customer_payment_policy" jsonb,
12
+ "booking_checkout_url_template" text,
13
+ "invoice_pay_url_template" text,
14
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
15
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
16
+ );
17
+ --> statement-breakpoint
18
+ CREATE TABLE "operator_payment_instructions" (
19
+ "id" text PRIMARY KEY NOT NULL,
20
+ "bank_transfer_beneficiary" text,
21
+ "iban" text,
22
+ "bank" text,
23
+ "notes" text,
24
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
25
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
26
+ );
27
+ --> statement-breakpoint
28
+ CREATE TABLE "operator_profile" (
29
+ "id" text PRIMARY KEY NOT NULL,
30
+ "name" text,
31
+ "legal_name" text,
32
+ "vat_id" text,
33
+ "registration_number" text,
34
+ "address" text,
35
+ "phone" text,
36
+ "email" text,
37
+ "website" text,
38
+ "license" text,
39
+ "license_authority" text,
40
+ "signatory_name" text,
41
+ "signatory_role" text,
42
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
43
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
44
+ );
45
+ --> statement-breakpoint
46
+ CREATE TABLE "operator_settings" (
47
+ "id" text PRIMARY KEY NOT NULL,
48
+ "name" text,
49
+ "legal_name" text,
50
+ "vat_id" text,
51
+ "registration_number" text,
52
+ "address" text,
53
+ "phone" text,
54
+ "email" text,
55
+ "website" text,
56
+ "iban" text,
57
+ "bank" text,
58
+ "license" text,
59
+ "license_authority" text,
60
+ "signatory_name" text,
61
+ "signatory_role" text,
62
+ "customer_payment_policy" jsonb,
63
+ "tax_price_mode" text DEFAULT 'inclusive' NOT NULL,
64
+ "tax_policy_profile_id" text,
65
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
66
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
67
+ );
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "postgresql",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "7",
8
+ "when": 1781942390081,
9
+ "tag": "0000_operator_settings_baseline",
10
+ "breakpoints": true
11
+ }
12
+ ]
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/operator-settings",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -35,16 +35,19 @@
35
35
  "hono": "^4.12.10",
36
36
  "zod": "^4.3.6",
37
37
  "@voyant-travel/db": "^0.108.3",
38
- "@voyant-travel/finance": "^0.125.0",
38
+ "@voyant-travel/finance": "^0.126.0",
39
39
  "@voyant-travel/hono": "^0.112.2"
40
40
  },
41
41
  "devDependencies": {
42
+ "drizzle-kit": "^0.31.10",
42
43
  "typescript": "^6.0.2",
43
44
  "vitest": "^4.0.0",
44
45
  "@voyant-travel/voyant-typescript-config": "^0.1.0"
45
46
  },
46
47
  "files": [
47
- "dist"
48
+ "dist",
49
+ "migrations/*.sql",
50
+ "migrations/meta/_journal.json"
48
51
  ],
49
52
  "publishConfig": {
50
53
  "access": "public"
@@ -65,7 +68,8 @@
65
68
  "lint": "biome check src/",
66
69
  "test": "vitest run",
67
70
  "build": "tsc -p tsconfig.json",
68
- "clean": "rm -rf dist tsconfig.tsbuildinfo"
71
+ "clean": "rm -rf dist tsconfig.tsbuildinfo",
72
+ "db:generate": "drizzle-kit generate --config=drizzle.migrations.config.ts --name=operator_settings_baseline"
69
73
  },
70
74
  "main": "./dist/index.js",
71
75
  "types": "./dist/index.d.ts"