@monkeyplus/payscope 1.0.8 → 1.0.10

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.
@@ -1,4 +1,4 @@
1
- import { Checkout, ItemTable, Product, ProductStock, Provider, ResponsePay, Store, Transaction } from "./db.mjs";
1
+ import { Checkout, ItemTable, Product, ProductStock, Provider, ResponsePay, Store, Transaction } from "./ecommerce.mjs";
2
2
  import { Model } from "@monkeyplus/unorm";
3
3
  interface CustomerObjectBase<T> {
4
4
  id: string;
@@ -1,65 +1,8 @@
1
- import { __exportAll } from "../_chunks/rolldown-runtime.mjs";
2
1
  import { auth_exports } from "./schemas/auth.mjs";
3
- import { account, auth, buys, checkouts, countries, customBigSerial, customerAddresses, customerBillings, customerBuys, customerReturns, customerWhislists, customers, discountCoupons, discounts, drivers, ecommerce, extensions, keys, links, namespaceKeys, orders, paymentAttempts, payments, pgmigrations, productStocks, productTaxXRefs, products, quote, quoteGroups, quoteQuotes, quoteVersions, recurringPayments, refunds, reportBuys, reportDebts, reportLogs, reportMessages, reportPayments, sCustomers, secures, session, sessions, stores, subscriptions, taxes, teamUserXRefs, teamZoneXRefs, teams, transactions, typeTaxes, user, users, verification, zones } from "../_chunks/database.mjs";
2
+ import { ecommerce_exports } from "./schemas/ecommerce.mjs";
4
3
  import process from "node:process";
5
4
  import { defineRelations } from "drizzle-orm";
6
5
  import { drizzle } from "drizzle-orm/postgres-js";
7
- var ecommerce_exports = /* @__PURE__ */ __exportAll({
8
- account: () => account,
9
- auth: () => auth,
10
- buys: () => buys,
11
- checkouts: () => checkouts,
12
- countries: () => countries,
13
- customBigSerial: () => customBigSerial,
14
- customerAddresses: () => customerAddresses,
15
- customerBillings: () => customerBillings,
16
- customerBuys: () => customerBuys,
17
- customerReturns: () => customerReturns,
18
- customerWhislists: () => customerWhislists,
19
- customers: () => customers,
20
- discountCoupons: () => discountCoupons,
21
- discounts: () => discounts,
22
- drivers: () => drivers,
23
- ecommerce: () => ecommerce,
24
- extensions: () => extensions,
25
- keys: () => keys,
26
- links: () => links,
27
- namespaceKeys: () => namespaceKeys,
28
- orders: () => orders,
29
- paymentAttempts: () => paymentAttempts,
30
- payments: () => payments,
31
- pgmigrations: () => pgmigrations,
32
- productStocks: () => productStocks,
33
- productTaxXRefs: () => productTaxXRefs,
34
- products: () => products,
35
- quote: () => quote,
36
- quoteGroups: () => quoteGroups,
37
- quoteQuotes: () => quoteQuotes,
38
- quoteVersions: () => quoteVersions,
39
- recurringPayments: () => recurringPayments,
40
- refunds: () => refunds,
41
- reportBuys: () => reportBuys,
42
- reportDebts: () => reportDebts,
43
- reportLogs: () => reportLogs,
44
- reportMessages: () => reportMessages,
45
- reportPayments: () => reportPayments,
46
- sCustomers: () => sCustomers,
47
- secures: () => secures,
48
- session: () => session,
49
- sessions: () => sessions,
50
- stores: () => stores,
51
- subscriptions: () => subscriptions,
52
- taxes: () => taxes,
53
- teamUserXRefs: () => teamUserXRefs,
54
- teamZoneXRefs: () => teamZoneXRefs,
55
- teams: () => teams,
56
- transactions: () => transactions,
57
- typeTaxes: () => typeTaxes,
58
- user: () => user,
59
- users: () => users,
60
- verification: () => verification,
61
- zones: () => zones
62
- });
63
6
  const dbAuth = drizzle(process.env.DATABASE_URL, { relations: defineRelations(auth_exports) });
64
7
  const db = drizzle(process.env.PAYSCOPE_URL, { relations: defineRelations(ecommerce_exports, (r) => ({
65
8
  products: { taxes: r.many.productTaxXRefs({
@@ -1,4 +1,5 @@
1
- import { Connector, Database } from "../_chunks/db.mjs";
1
+ import { Connector } from "../_chunks/ecommerce.mjs";
2
+ import { Database } from "../_chunks/db.mjs";
2
3
  import { CreatePayment, Graphql, UseTasks } from "../_chunks/index.mjs";
3
4
  interface CustomErrorOptions {
4
5
  message: string;
@@ -1,4 +1,5 @@
1
- import { Database, Store } from "../_chunks/db.mjs";
1
+ import { Store } from "../_chunks/ecommerce.mjs";
2
+ import { Database } from "../_chunks/db.mjs";
2
3
  import { Graphql, Payment } from "../_chunks/index.mjs";
3
4
  import { MiddlewareInputContext, MiddlewareOptions, StrictEndpoint } from "../_chunks/libs/better-call.mjs";
4
5
  import { H3, H3Event } from "h3";
@@ -0,0 +1,2 @@
1
+ import { ProductExtras, StoreExtensions, StoreSettings, TeamInsert, UsersTeamsInsert, ZoneInsert, ZoneTeamXRefsInsert, account, auth, buys, checkouts, countries, customBigSerial, customerAddresses, customerBillings, customerBuys, customerReturns, customerWhislists, customers, discountCoupons, discounts, drivers, ecommerce, extensions, keys, links, namespaceKeys, orders, paymentAttempts, payments, pgmigrations, productStocks, productTaxXRefs, products, quote, quoteGroups, quoteQuotes, quoteVersions, recurringPayments, refunds, reportBuys, reportDebts, reportLogs, reportMessages, reportPayments, sCustomers, secures, session, sessions, stores, subscriptions, taxes, teamUserXRefs, teamZoneXRefs, teams, transactions, typeTaxes, user, users, verification, zones } from "../../_chunks/ecommerce.mjs";
2
+ export { ProductExtras, StoreExtensions, StoreSettings, TeamInsert, UsersTeamsInsert, ZoneInsert, ZoneTeamXRefsInsert, account, auth, buys, checkouts, countries, customBigSerial, customerAddresses, customerBillings, customerBuys, customerReturns, customerWhislists, customers, discountCoupons, discounts, drivers, ecommerce, extensions, keys, links, namespaceKeys, orders, paymentAttempts, payments, pgmigrations, productStocks, productTaxXRefs, products, quote, quoteGroups, quoteQuotes, quoteVersions, recurringPayments, refunds, reportBuys, reportDebts, reportLogs, reportMessages, reportPayments, sCustomers, secures, session, sessions, stores, subscriptions, taxes, teamUserXRefs, teamZoneXRefs, teams, transactions, typeTaxes, user, users, verification, zones };
@@ -0,0 +1,59 @@
1
+ import { __exportAll } from "../../_chunks/rolldown-runtime.mjs";
2
+ import { account, auth, buys, checkouts, countries, customBigSerial, customerAddresses, customerBillings, customerBuys, customerReturns, customerWhislists, customers, discountCoupons, discounts, drivers, ecommerce, extensions, keys, links, namespaceKeys, orders, paymentAttempts, payments, pgmigrations, productStocks, productTaxXRefs, products, quote, quoteGroups, quoteQuotes, quoteVersions, recurringPayments, refunds, reportBuys, reportDebts, reportLogs, reportMessages, reportPayments, sCustomers, secures, session, sessions, stores, subscriptions, taxes, teamUserXRefs, teamZoneXRefs, teams, transactions, typeTaxes, user, users, verification, zones } from "../../_chunks/database.mjs";
3
+ var ecommerce_exports = /* @__PURE__ */ __exportAll({
4
+ account: () => account,
5
+ auth: () => auth,
6
+ buys: () => buys,
7
+ checkouts: () => checkouts,
8
+ countries: () => countries,
9
+ customBigSerial: () => customBigSerial,
10
+ customerAddresses: () => customerAddresses,
11
+ customerBillings: () => customerBillings,
12
+ customerBuys: () => customerBuys,
13
+ customerReturns: () => customerReturns,
14
+ customerWhislists: () => customerWhislists,
15
+ customers: () => customers,
16
+ discountCoupons: () => discountCoupons,
17
+ discounts: () => discounts,
18
+ drivers: () => drivers,
19
+ ecommerce: () => ecommerce,
20
+ extensions: () => extensions,
21
+ keys: () => keys,
22
+ links: () => links,
23
+ namespaceKeys: () => namespaceKeys,
24
+ orders: () => orders,
25
+ paymentAttempts: () => paymentAttempts,
26
+ payments: () => payments,
27
+ pgmigrations: () => pgmigrations,
28
+ productStocks: () => productStocks,
29
+ productTaxXRefs: () => productTaxXRefs,
30
+ products: () => products,
31
+ quote: () => quote,
32
+ quoteGroups: () => quoteGroups,
33
+ quoteQuotes: () => quoteQuotes,
34
+ quoteVersions: () => quoteVersions,
35
+ recurringPayments: () => recurringPayments,
36
+ refunds: () => refunds,
37
+ reportBuys: () => reportBuys,
38
+ reportDebts: () => reportDebts,
39
+ reportLogs: () => reportLogs,
40
+ reportMessages: () => reportMessages,
41
+ reportPayments: () => reportPayments,
42
+ sCustomers: () => sCustomers,
43
+ secures: () => secures,
44
+ session: () => session,
45
+ sessions: () => sessions,
46
+ stores: () => stores,
47
+ subscriptions: () => subscriptions,
48
+ taxes: () => taxes,
49
+ teamUserXRefs: () => teamUserXRefs,
50
+ teamZoneXRefs: () => teamZoneXRefs,
51
+ teams: () => teams,
52
+ transactions: () => transactions,
53
+ typeTaxes: () => typeTaxes,
54
+ user: () => user,
55
+ users: () => users,
56
+ verification: () => verification,
57
+ zones: () => zones
58
+ });
59
+ export { account, auth, buys, checkouts, countries, customBigSerial, customerAddresses, customerBillings, customerBuys, customerReturns, customerWhislists, customers, discountCoupons, discounts, drivers, ecommerce, ecommerce_exports, extensions, keys, links, namespaceKeys, orders, paymentAttempts, payments, pgmigrations, productStocks, productTaxXRefs, products, quote, quoteGroups, quoteQuotes, quoteVersions, recurringPayments, refunds, reportBuys, reportDebts, reportLogs, reportMessages, reportPayments, sCustomers, secures, session, sessions, stores, subscriptions, taxes, teamUserXRefs, teamZoneXRefs, teams, transactions, typeTaxes, user, users, verification, zones };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@monkeyplus/payscope",
3
3
  "type": "module",
4
- "version": "1.0.8",
4
+ "version": "1.0.10",
5
5
  "packageManager": "pnpm@10.8.1",
6
6
  "author": "",
7
7
  "keywords": [],