@flowselections/floriday-klanten-module 1.0.49 → 1.0.51
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.
- package/dist-lib/components/CustomerAvatar.js +1 -1
- package/dist-lib/components/klanten/BewerkKlant.js +1 -1
- package/dist-lib/components/klanten/BewerkKlantRoute.js +1 -1
- package/dist-lib/components/klanten/BulkStickerUploadDialog.js +1 -1
- package/dist-lib/components/klanten/CustomerAnalyticsTab.js +2 -2
- package/dist-lib/components/klanten/CustomerAssortmentTab.js +4 -4
- package/dist-lib/components/klanten/DeliveryLocationsTab.js +6 -6
- package/dist-lib/components/klanten/DiscountsTab.js +3 -3
- package/dist-lib/components/klanten/ExternalCacheBanner.d.ts +1 -1
- package/dist-lib/components/klanten/ExternalCacheBanner.d.ts.map +1 -1
- package/dist-lib/components/klanten/ExternalCacheBanner.js +2 -5
- package/dist-lib/components/klanten/FloridayNetworkStatus.d.ts.map +1 -1
- package/dist-lib/components/klanten/FloridayNetworkStatus.js +5 -3
- package/dist-lib/components/klanten/GroupedKlantDetailRoute.js +1 -1
- package/dist-lib/components/klanten/ImportKlanten.js +1 -1
- package/dist-lib/components/klanten/KlantBewerkenDialog.js +2 -2
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +15 -3
- package/dist-lib/components/klanten/KlantDetailLayout.d.ts +1 -1
- package/dist-lib/components/klanten/KlantDetailLayout.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetailLayout.js +7 -5
- package/dist-lib/components/klanten/KlantDetailRoute.js +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +18 -18
- package/dist-lib/components/klanten/LocalDiscountFormDialog.js +1 -1
- package/dist-lib/components/klanten/LocalDiscountsTab.js +2 -2
- package/dist-lib/components/klanten/NetwerkPagina.js +3 -3
- package/dist-lib/components/klanten/NieuweKlant.js +1 -1
- package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +1 -1
- package/dist-lib/components/klanten/OvernemenTwinfieldKlantRoute.js +1 -1
- package/dist-lib/components/klanten/RouteError.js +1 -1
- package/dist-lib/components/klanten/SyncStatusChip.d.ts.map +1 -1
- package/dist-lib/components/klanten/SyncStatusChip.js +5 -4
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.js +6 -6
- package/dist-lib/components/klanten/pricegroups/CustomerPriceGroupSelect.js +3 -3
- package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.js +1 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +13 -13
- package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.js +1 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.js +4 -4
- package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.js +1 -1
- package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts +1 -1
- package/dist-lib/components/klanten/pricegroups/UnknownFloridayMembers.d.ts +1 -1
- package/dist-lib/components/klanten/pricegroups/UnknownFloridayMembers.js +4 -4
- package/dist-lib/components/klanten/useCustomerDefaults.d.ts +1 -1
- package/dist-lib/index.d.ts +34 -34
- package/dist-lib/index.js +35 -35
- package/dist-lib/integrations/supabase/auth-attacher.js +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +450 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting/exact/client.server.d.ts +1 -1
- package/dist-lib/lib/accounting/exact/client.server.js +2 -2
- package/dist-lib/lib/accounting/exact/sync.server.d.ts +1 -1
- package/dist-lib/lib/accounting/exact/sync.server.js +3 -3
- package/dist-lib/lib/accounting/floriday/sync.server.d.ts +1 -1
- package/dist-lib/lib/accounting/floriday/sync.server.js +1 -1
- package/dist-lib/lib/accounting/registry.server.d.ts +1 -1
- package/dist-lib/lib/accounting/registry.server.js +2 -2
- package/dist-lib/lib/accounting/twinfield/client.server.js +2 -2
- package/dist-lib/lib/accounting/twinfield/field-coverage.test.js +6 -6
- package/dist-lib/lib/accounting/twinfield/mapping.js +3 -3
- package/dist-lib/lib/accounting/twinfield/rmw-push.server.d.ts +2 -2
- package/dist-lib/lib/accounting/twinfield/rmw-push.server.js +4 -4
- package/dist-lib/lib/accounting/twinfield/rmw.server.d.ts +1 -1
- package/dist-lib/lib/accounting/twinfield/rmw.server.js +2 -2
- package/dist-lib/lib/accounting/twinfield/sandbox-rmw.server.d.ts +6 -6
- package/dist-lib/lib/accounting/twinfield/sandbox-rmw.server.js +12 -12
- package/dist-lib/lib/accounting/twinfield/sandbox.server.js +3 -3
- package/dist-lib/lib/accounting/twinfield/sync.server.js +4 -4
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +7 -7
- package/dist-lib/lib/accounting/twinfield/worker.functions.js +6 -6
- package/dist-lib/lib/accounting/twinfield/worker.server.js +8 -8
- package/dist-lib/lib/accounting.functions.d.ts +4 -4
- package/dist-lib/lib/accounting.functions.js +2 -2
- package/dist-lib/lib/countries.test.js +3 -3
- package/dist-lib/lib/customer-analytics.functions.d.ts +1 -1
- package/dist-lib/lib/customer-analytics.functions.js +1 -1
- package/dist-lib/lib/customer-assortment.functions.d.ts +1 -1
- package/dist-lib/lib/customer-assortment.functions.js +3 -3
- package/dist-lib/lib/customer-defaults.test.js +3 -3
- package/dist-lib/lib/customer-insert.d.ts +1 -1
- package/dist-lib/lib/customer-insert.js +2 -2
- package/dist-lib/lib/customer-notes.functions.d.ts +2 -2
- package/dist-lib/lib/customer-notes.functions.js +1 -1
- package/dist-lib/lib/customer-orders.functions.d.ts +1 -1
- package/dist-lib/lib/customer-orders.functions.js +1 -1
- package/dist-lib/lib/customer-revenue.functions.d.ts +1 -1
- package/dist-lib/lib/customer-revenue.functions.js +2 -2
- package/dist-lib/lib/customer-schemas.js +1 -1
- package/dist-lib/lib/customer-schemas.test.js +1 -1
- package/dist-lib/lib/customer-stickers.functions.d.ts +9 -9
- package/dist-lib/lib/customer-stickers.functions.js +2 -2
- package/dist-lib/lib/customers.functions.d.ts +29 -29
- package/dist-lib/lib/customers.functions.js +11 -11
- package/dist-lib/lib/delivery-locations.functions.d.ts +7 -7
- package/dist-lib/lib/delivery-locations.functions.js +2 -2
- package/dist-lib/lib/external-customers.functions.d.ts +4 -4
- package/dist-lib/lib/external-customers.functions.js +2 -2
- package/dist-lib/lib/floriday-app-url.functions.d.ts +1 -1
- package/dist-lib/lib/floriday-app-url.functions.js +2 -2
- package/dist-lib/lib/floriday-assortment.functions.d.ts +1 -1
- package/dist-lib/lib/floriday-assortment.functions.js +2 -2
- package/dist-lib/lib/floriday-discounts.functions.d.ts +2 -2
- package/dist-lib/lib/floriday-discounts.functions.js +2 -2
- package/dist-lib/lib/floriday-network-status.functions.d.ts +3 -1
- package/dist-lib/lib/floriday-network-status.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-network-status.functions.js +39 -18
- package/dist-lib/lib/floriday-price-import.functions.d.ts +2 -2
- package/dist-lib/lib/floriday-price-import.functions.js +2 -2
- package/dist-lib/lib/floriday-sticker-import.functions.d.ts +1 -1
- package/dist-lib/lib/floriday-sticker-import.functions.js +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.js +1 -1
- package/dist-lib/lib/floriday-trade-settings.functions.d.ts +1 -1
- package/dist-lib/lib/floriday-trade-settings.functions.js +1 -1
- package/dist-lib/lib/friendly-twinfield-error.d.ts +8 -0
- package/dist-lib/lib/friendly-twinfield-error.d.ts.map +1 -0
- package/dist-lib/lib/friendly-twinfield-error.js +16 -0
- package/dist-lib/lib/local-discounts.functions.d.ts +7 -7
- package/dist-lib/lib/local-discounts.functions.js +1 -1
- package/dist-lib/lib/logistics-events.functions.d.ts +1 -1
- package/dist-lib/lib/logistics-events.functions.js +1 -1
- package/dist-lib/lib/logistics-strategy.functions.d.ts +4 -4
- package/dist-lib/lib/logistics-strategy.functions.js +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +1 -1
- package/dist-lib/lib/overdue-invoices.functions.js +2 -2
- package/dist-lib/lib/price-groups-local.functions.d.ts +15 -15
- package/dist-lib/lib/price-groups-local.functions.js +1 -1
- package/dist-lib/lib/price-groups.functions.d.ts +1 -1
- package/dist-lib/lib/price-groups.functions.js +1 -1
- package/dist-lib/lib/twinfield-adopt.functions.d.ts +5 -5
- package/dist-lib/lib/twinfield-adopt.functions.js +7 -7
- package/dist-lib/lib/twinfield-customer-defaults.functions.d.ts +2 -2
- package/dist-lib/lib/twinfield-customer-defaults.functions.js +2 -2
- package/dist-lib/lib/twinfield-customer-defaults.server.js +1 -1
- package/dist-lib/lib/twinfield-ledger.functions.d.ts +2 -2
- package/dist-lib/lib/twinfield-ledger.functions.js +2 -2
- package/dist-lib/lib/twinfield-ledger.server.js +2 -2
- package/dist-lib/lib/twinfield-required-fields.js +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** Standaardwaarden voor een nieuwe klant + of de gebruiker beheerder is (voor de melding). */
|
|
2
2
|
export declare const getTwinfieldCustomerDefaults: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
3
|
-
supabase: import("../integrations/supabase/auth-middleware").AuthedSupabaseClient;
|
|
3
|
+
supabase: import("../integrations/supabase/auth-middleware.js").AuthedSupabaseClient;
|
|
4
4
|
userId: string;
|
|
5
5
|
claims: import("@supabase/auth-js").JwtPayload;
|
|
6
6
|
}, undefined, undefined, undefined>], undefined, Promise<{
|
|
7
|
-
defaults: import("./twinfield-customer-defaults.server").CustomerDefaults;
|
|
7
|
+
defaults: import("./twinfield-customer-defaults.server.js").CustomerDefaults;
|
|
8
8
|
isAdmin: boolean;
|
|
9
9
|
}>>;
|
|
10
10
|
//# sourceMappingURL=twinfield-customer-defaults.functions.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createServerFn } from "@tanstack/react-start";
|
|
2
|
-
import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware";
|
|
2
|
+
import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
|
|
3
3
|
/** Standaardwaarden voor een nieuwe klant + of de gebruiker beheerder is (voor de melding). */
|
|
4
4
|
export const getTwinfieldCustomerDefaults = createServerFn({ method: "POST" })
|
|
5
5
|
.middleware([requireSupabaseAuth])
|
|
6
6
|
.handler(async ({ context }) => {
|
|
7
|
-
const { loadCustomerDefaults } = await import("./twinfield-customer-defaults.server");
|
|
7
|
+
const { loadCustomerDefaults } = await import("./twinfield-customer-defaults.server.js");
|
|
8
8
|
const defaults = await loadCustomerDefaults(context.supabase);
|
|
9
9
|
const { data: isAdmin } = await context.supabase.rpc("has_role", {
|
|
10
10
|
_user_id: context.userId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { countryNameFromIso, toIsoCountry } from "./countries";
|
|
1
|
+
import { countryNameFromIso, toIsoCountry } from "./countries.js";
|
|
2
2
|
export const EMPTY_CUSTOMER_DEFAULTS = {
|
|
3
3
|
ledger_account: null, country: null, language: null, payment_term_days: null,
|
|
4
4
|
missing: ["ledger_account", "country", "language", "payment_term_days"],
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Wordt gebruikt om het veld "Grootboekrekening" te vullen op het klantformulier.
|
|
4
4
|
*/
|
|
5
5
|
export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
6
|
-
supabase: import("../integrations/supabase/auth-middleware").AuthedSupabaseClient;
|
|
6
|
+
supabase: import("../integrations/supabase/auth-middleware.js").AuthedSupabaseClient;
|
|
7
7
|
userId: string;
|
|
8
8
|
claims: import("@supabase/auth-js").JwtPayload;
|
|
9
9
|
}, undefined, undefined, undefined>], (raw: {
|
|
10
10
|
force?: boolean;
|
|
11
11
|
}) => {
|
|
12
12
|
force: boolean;
|
|
13
|
-
}, Promise<import("./twinfield-ledger.server").LedgerFetchResult>>;
|
|
13
|
+
}, Promise<import("./twinfield-ledger.server.js").LedgerFetchResult>>;
|
|
14
14
|
//# sourceMappingURL=twinfield-ledger.functions.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createServerFn } from "@tanstack/react-start";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware";
|
|
3
|
+
import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
|
|
4
4
|
const input = z.object({ force: z.boolean().optional().default(false) });
|
|
5
5
|
/**
|
|
6
6
|
* Rekeningschema (grootboekrekeningen) van de actieve Twinfield-administratie.
|
|
@@ -10,6 +10,6 @@ export const listTwinfieldLedgerAccounts = createServerFn({ method: "POST" })
|
|
|
10
10
|
.middleware([requireSupabaseAuth])
|
|
11
11
|
.inputValidator((raw) => input.parse(raw ?? {}))
|
|
12
12
|
.handler(async ({ data }) => {
|
|
13
|
-
const { getLedgerAccounts } = await import("./twinfield-ledger.server");
|
|
13
|
+
const { getLedgerAccounts } = await import("./twinfield-ledger.server.js");
|
|
14
14
|
return getLedgerAccounts(data.force);
|
|
15
15
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { supabaseAdmin } from "../integrations/supabase/client.server";
|
|
2
|
-
import { loadActiveConnection, fetchTwinfieldToken, refreshAfter401, TwinfieldError, } from "./accounting/twinfield/client.server";
|
|
1
|
+
import { supabaseAdmin } from "../integrations/supabase/client.server.js";
|
|
2
|
+
import { loadActiveConnection, fetchTwinfieldToken, refreshAfter401, TwinfieldError, } from "./accounting/twinfield/client.server.js";
|
|
3
3
|
function xmlEscape(v) {
|
|
4
4
|
return v
|
|
5
5
|
.replace(/&/g, "&")
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* de Excel-import, de serverfuncties en de waarschuwingsbalk in het
|
|
5
5
|
* klantdetail, zodat de regels nergens uit elkaar kunnen lopen.
|
|
6
6
|
*/
|
|
7
|
-
import { toIsoCountry } from "./countries";
|
|
7
|
+
import { toIsoCountry } from "./countries.js";
|
|
8
8
|
// Twinfield eist alleen de naam. Adres, land en e-mail zijn optioneel; zonder
|
|
9
9
|
// e-mail gaat de betaalspecificatie naar bestandsbeheer en staat e-factureren uit.
|
|
10
10
|
export const TWINFIELD_REQUIRED_FIELDS = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowselections/floriday-klanten-module",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "vite dev",
|
|
25
25
|
"build": "vite build",
|
|
26
|
-
"build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node -e \"require('fs').writeFileSync('dist-lib/styles.css', '@source \\\"./\\\";\\n')\"",
|
|
26
|
+
"build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && node -e \"require('fs').writeFileSync('dist-lib/styles.css', '@source \\\"./\\\";\\n')\"",
|
|
27
27
|
"build:lib:watch": "tsc -p tsconfig.build.json --watch",
|
|
28
28
|
"build:dev": "vite build --mode development",
|
|
29
29
|
"preview": "vite preview",
|