@flowselections/actie-mail-kwekers-erp-mathot 1.0.21 → 1.0.22

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.
@@ -326,16 +326,22 @@ export const sendCampaign = createServerFn({ method: "POST" })
326
326
  // een mislukking wordt altijd gelogd.
327
327
  if (sentIds.length > 0) {
328
328
  const dispatchBase = (process.env.PUBLIC_BASE_URL ?? origin ?? "").replace(/\/$/, "");
329
- if (!dispatchBase) {
330
- console.warn("[aanbiedingsmailtje] Outbox-dispatcher overgeslagen: geen basis-URL bekend " +
331
- "(stel PUBLIC_BASE_URL in). De cron verwerkt de wachtrij binnen een minuut.");
329
+ const dispatchKey = process.env.SUPABASE_ANON_KEY ??
330
+ process.env.SUPABASE_PUBLISHABLE_KEY ??
331
+ process.env.VITE_SUPABASE_PUBLISHABLE_KEY;
332
+ if (!dispatchBase || !dispatchKey) {
333
+ console.warn("[aanbiedingsmailtje] Outbox-dispatcher overgeslagen: geen basis-URL of Supabase-key bekend " +
334
+ "(stel PUBLIC_BASE_URL en SUPABASE_ANON_KEY/SUPABASE_PUBLISHABLE_KEY in). De cron verwerkt de wachtrij binnen een minuut.");
332
335
  }
333
336
  else {
334
337
  const dispatchUrl = `${dispatchBase}/api/public/email-auth/outbox-process`;
335
338
  try {
336
339
  const res = await fetch(dispatchUrl, {
337
340
  method: "POST",
338
- headers: { "Content-Type": "application/json" },
341
+ headers: {
342
+ "Content-Type": "application/json",
343
+ apikey: dispatchKey,
344
+ },
339
345
  body: "{}",
340
346
  });
341
347
  if (!res.ok) {
@@ -10453,6 +10453,63 @@ export declare const getCampaignStats: import("@tanstack/start-client-core").Req
10453
10453
  referencedColumns: ["id"];
10454
10454
  }];
10455
10455
  };
10456
+ medewerker_details: {
10457
+ Row: {
10458
+ color: string | null;
10459
+ created_at: string;
10460
+ hours_fri: number | null;
10461
+ hours_mon: number | null;
10462
+ hours_thu: number | null;
10463
+ hours_tue: number | null;
10464
+ hours_wed: number | null;
10465
+ id: string;
10466
+ is_active: boolean;
10467
+ leave_balance_hours: number;
10468
+ persnr: string | null;
10469
+ phone: string | null;
10470
+ profile_id: string;
10471
+ updated_at: string;
10472
+ };
10473
+ Insert: {
10474
+ color?: string | null;
10475
+ created_at?: string;
10476
+ hours_fri?: number | null;
10477
+ hours_mon?: number | null;
10478
+ hours_thu?: number | null;
10479
+ hours_tue?: number | null;
10480
+ hours_wed?: number | null;
10481
+ id?: string;
10482
+ is_active?: boolean;
10483
+ leave_balance_hours?: number;
10484
+ persnr?: string | null;
10485
+ phone?: string | null;
10486
+ profile_id: string;
10487
+ updated_at?: string;
10488
+ };
10489
+ Update: {
10490
+ color?: string | null;
10491
+ created_at?: string;
10492
+ hours_fri?: number | null;
10493
+ hours_mon?: number | null;
10494
+ hours_thu?: number | null;
10495
+ hours_tue?: number | null;
10496
+ hours_wed?: number | null;
10497
+ id?: string;
10498
+ is_active?: boolean;
10499
+ leave_balance_hours?: number;
10500
+ persnr?: string | null;
10501
+ phone?: string | null;
10502
+ profile_id?: string;
10503
+ updated_at?: string;
10504
+ };
10505
+ Relationships: [{
10506
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10507
+ columns: ["profile_id"];
10508
+ isOneToOne: true;
10509
+ referencedRelation: "profiles";
10510
+ referencedColumns: ["id"];
10511
+ }];
10512
+ };
10456
10513
  module_features: {
10457
10514
  Row: {
10458
10515
  created_at: string;
@@ -15103,6 +15160,42 @@ export declare const getCampaignStats: import("@tanstack/start-client-core").Req
15103
15160
  };
15104
15161
  Relationships: [];
15105
15162
  };
15163
+ sick_periods: {
15164
+ Row: {
15165
+ created_at: string;
15166
+ employee_id: string;
15167
+ end_date: string | null;
15168
+ id: string;
15169
+ notes: string | null;
15170
+ start_date: string;
15171
+ updated_at: string;
15172
+ };
15173
+ Insert: {
15174
+ created_at?: string;
15175
+ employee_id: string;
15176
+ end_date?: string | null;
15177
+ id?: string;
15178
+ notes?: string | null;
15179
+ start_date: string;
15180
+ updated_at?: string;
15181
+ };
15182
+ Update: {
15183
+ created_at?: string;
15184
+ employee_id?: string;
15185
+ end_date?: string | null;
15186
+ id?: string;
15187
+ notes?: string | null;
15188
+ start_date?: string;
15189
+ updated_at?: string;
15190
+ };
15191
+ Relationships: [{
15192
+ foreignKeyName: "sick_periods_employee_id_fkey";
15193
+ columns: ["employee_id"];
15194
+ isOneToOne: false;
15195
+ referencedRelation: "profiles";
15196
+ referencedColumns: ["id"];
15197
+ }];
15198
+ };
15106
15199
  sidebar_config: {
15107
15200
  Row: {
15108
15201
  id: string;
@@ -19787,6 +19880,13 @@ export declare const getCampaignStats: import("@tanstack/start-client-core").Req
19787
19880
  };
19788
19881
  Returns: string;
19789
19882
  };
19883
+ employee_day_hours: {
19884
+ Args: {
19885
+ _day: string;
19886
+ _employee_id: string;
19887
+ };
19888
+ Returns: number;
19889
+ };
19790
19890
  enqueue_cart_replan_if_unlocked: {
19791
19891
  Args: {
19792
19892
  p_order_id: string;
@@ -20163,9 +20263,19 @@ export declare const getCampaignStats: import("@tanstack/start-client-core").Req
20163
20263
  Args: never;
20164
20264
  Returns: {
20165
20265
  avatar_url: string;
20266
+ color: string;
20166
20267
  display_name: string;
20167
20268
  email: string;
20269
+ hours_fri: number;
20270
+ hours_mon: number;
20271
+ hours_thu: number;
20272
+ hours_tue: number;
20273
+ hours_wed: number;
20168
20274
  id: string;
20275
+ is_active: boolean;
20276
+ leave_balance_hours: number;
20277
+ persnr: string;
20278
+ phone: string;
20169
20279
  roles: string[];
20170
20280
  }[];
20171
20281
  };
@@ -21871,6 +21981,12 @@ export declare const getCampaignStats: import("@tanstack/start-client-core").Req
21871
21981
  };
21872
21982
  Returns: undefined;
21873
21983
  };
21984
+ sync_sick_time_off: {
21985
+ Args: {
21986
+ _period_id: string;
21987
+ };
21988
+ Returns: number;
21989
+ };
21874
21990
  trade_item_stock_duplicates: {
21875
21991
  Args: never;
21876
21992
  Returns: {