@monkeyplus/payscope 1.0.3 → 1.0.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.
@@ -7080,6 +7080,10 @@ declare const db: import("drizzle-orm/postgres-js").PostgresJsDatabase<import("d
7080
7080
  stores: {
7081
7081
  country: import("drizzle-orm").One<"countries", true>;
7082
7082
  };
7083
+ orders: {
7084
+ transaction: import("drizzle-orm").One<"transactions", true>;
7085
+ store: import("drizzle-orm").One<"stores", true>;
7086
+ };
7083
7087
  countries: {
7084
7088
  taxesList: import("drizzle-orm").Many<"taxes">;
7085
7089
  };
@@ -74,6 +74,16 @@ const db = drizzle(process.env.PAYSCOPE_URL, { relations: defineRelations(ecomme
74
74
  from: r.stores.countryId,
75
75
  to: r.countries.id
76
76
  }) },
77
+ orders: {
78
+ transaction: r.one.transactions({
79
+ from: r.orders.transactionId,
80
+ to: r.transactions.id
81
+ }),
82
+ store: r.one.stores({
83
+ from: r.sessions.storeId,
84
+ to: r.stores.id
85
+ })
86
+ },
77
87
  countries: { taxesList: r.many.taxes({
78
88
  from: r.countries.id,
79
89
  to: r.taxes.countryId
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@monkeyplus/payscope",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "packageManager": "pnpm@10.8.1",
6
6
  "author": "",
7
7
  "keywords": [],