@fabriktor/fx 0.0.205 → 0.0.207

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/README.md CHANGED
@@ -14,15 +14,6 @@
14
14
  This package is designed exclusively for Fabriktor's frontend operational needs and is
15
15
  not intended for public usage.
16
16
 
17
- The Timesheets workspace restores open punches across employers and payroll
18
- periods before consulting current preferences. It follows the stored start for
19
- work and transport, confirms the actual returned punch, and requires an explicit
20
- time when continuing a shift from an earlier day. Manual day replacement is one
21
- request. Civil time input resolves to UTC with an explicit choice for repeated
22
- daylight-saving times; the backend remains authoritative for duration, overlap
23
- and persistence rules. Route arrival cues follow the stored active transport
24
- across midnight; unresolved multiple open punches still require recovery first.
25
-
26
17
  ---
27
18
 
28
19
  ## License
@@ -1,5 +1,5 @@
1
1
  import type { PreferencesOperator } from "@fabriktor/client";
2
- import { type InPrefApp, type PrefApp, type InPrefClient, type InPrefCompany, type InPrefEmployee, type OperationResult, type PrefPayment, type PrefClient, type PrefEmployee, type PrefCompany, type PrefVisibility, type PrefLanguage, type PrefNotif, type PrefEmail, type PrefTutorial } from "@fabriktor/schema";
2
+ import { type InPrefApp, type PrefApp, type InPrefClient, type InPrefCompany, type InPrefEmployee, type OperationResult, type PrefPayment, type PrefClient, type PrefEmployee, type PrefCompany, type PrefVisibility, type PrefLanguage, type PrefNotif, type PrefEmail } from "@fabriktor/schema";
3
3
  import { EventBus } from "../core/events.js";
4
4
  export type GetPrefAppOptions = {
5
5
  owner_id: string;
@@ -27,8 +27,6 @@ type PrefNotifInsertOptions = Parameters<PreferencesOperator["insertOnePrefNotif
27
27
  type PrefNotifReplaceOptions = Parameters<PreferencesOperator["replaceOnePrefNotif"]>[0];
28
28
  type PrefEmailInsertOptions = Parameters<PreferencesOperator["insertOnePrefEmail"]>[0];
29
29
  type PrefEmailReplaceOptions = Parameters<PreferencesOperator["replaceOnePrefEmail"]>[0];
30
- type PrefTutorialInsertOptions = Parameters<PreferencesOperator["insertOnePrefTutorial"]>[0];
31
- type PrefTutorialReplaceOptions = Parameters<PreferencesOperator["replaceOnePrefTutorial"]>[0];
32
30
  export type CreatePrefPaymentOptions = PrefPaymentInsertOptions;
33
31
  export type ReplacePrefPaymentOptions = PrefPaymentReplaceOptions;
34
32
  export type CreatePrefClientOptions = PrefClientInsertOptions;
@@ -45,8 +43,6 @@ export type CreatePrefNotifOptions = PrefNotifInsertOptions;
45
43
  export type ReplacePrefNotifOptions = PrefNotifReplaceOptions;
46
44
  export type CreatePrefEmailOptions = PrefEmailInsertOptions;
47
45
  export type ReplacePrefEmailOptions = PrefEmailReplaceOptions;
48
- export type CreatePrefTutorialOptions = PrefTutorialInsertOptions;
49
- export type ReplacePrefTutorialOptions = PrefTutorialReplaceOptions;
50
46
  export type GetPrefClientOptions = {
51
47
  owner_id: string;
52
48
  };
@@ -119,8 +115,6 @@ export interface PreferencesFXOperator {
119
115
  replacePrefNotif(opts: ReplacePrefNotifOptions): Promise<PrefNotif>;
120
116
  createPrefEmail(opts: CreatePrefEmailOptions): Promise<PrefEmail>;
121
117
  replacePrefEmail(opts: ReplacePrefEmailOptions): Promise<PrefEmail>;
122
- createPrefTutorial(opts: CreatePrefTutorialOptions): Promise<PrefTutorial>;
123
- replacePrefTutorial(opts: ReplacePrefTutorialOptions): Promise<PrefTutorial>;
124
118
  ensurePrefLanguage(opts: EnsurePrefLanguageOptions): Promise<OperationResult>;
125
119
  }
126
120
  export type PreferencesFXOptions = {
@@ -158,8 +152,6 @@ export declare class PreferencesFX implements PreferencesFXOperator {
158
152
  replacePrefNotif(opts: ReplacePrefNotifOptions): Promise<PrefNotif>;
159
153
  createPrefEmail(opts: CreatePrefEmailOptions): Promise<PrefEmail>;
160
154
  replacePrefEmail(opts: ReplacePrefEmailOptions): Promise<PrefEmail>;
161
- createPrefTutorial(opts: CreatePrefTutorialOptions): Promise<PrefTutorial>;
162
- replacePrefTutorial(opts: ReplacePrefTutorialOptions): Promise<PrefTutorial>;
163
155
  ensurePrefLanguage(opts: EnsurePrefLanguageOptions): Promise<OperationResult>;
164
156
  private queryPrefClient;
165
157
  private queryPrefEmployee;
@@ -173,7 +165,6 @@ export declare class PreferencesFX implements PreferencesFXOperator {
173
165
  private findPrefLanguage;
174
166
  private findPrefNotif;
175
167
  private findPrefEmail;
176
- private findPrefTutorial;
177
168
  }
178
169
  export declare function newPreferencesFX(opts: PreferencesFXOptions): PreferencesFX;
179
170
  export {};
@@ -31,9 +31,6 @@ const msgPrefNotifMissing = "Notification preference could not be resolved after
31
31
  const resourcePrefEmail = "pref_email";
32
32
  const msgCreatedPrefEmailIDMissing = "Created email preference response did not contain an ID.";
33
33
  const msgPrefEmailMissing = "Email preference could not be resolved after the mutation.";
34
- const resourcePrefTutorial = "pref_tutorial";
35
- const msgCreatedPrefTutorialIDMissing = "Created tutorial preference response did not contain an ID.";
36
- const msgPrefTutorialMissing = "Tutorial preference could not be resolved after the mutation.";
37
34
  export const PrefCompanyDocumentNote = {
38
35
  Invoice: "invoice",
39
36
  Estimate: "estimate",
@@ -308,15 +305,6 @@ export class PreferencesFX {
308
305
  await this.preferences.replaceOnePrefEmail(opts);
309
306
  return await this.findPrefEmail(opts.id);
310
307
  }
311
- async createPrefTutorial(opts) {
312
- const out = await this.preferences.insertOnePrefTutorial(opts);
313
- const id = requiredOperationID(out, msgCreatedPrefTutorialIDMissing);
314
- return await this.findPrefTutorial(id);
315
- }
316
- async replacePrefTutorial(opts) {
317
- await this.preferences.replaceOnePrefTutorial(opts);
318
- return await this.findPrefTutorial(opts.id);
319
- }
320
308
  async ensurePrefLanguage(opts) {
321
309
  const pref = await this.getPrefLanguage({ owner_id: opts.owner_id });
322
310
  const input = {
@@ -472,19 +460,6 @@ export class PreferencesFX {
472
460
  }
473
461
  return pref_email;
474
462
  }
475
- async findPrefTutorial(id) {
476
- const out = await this.preferences.findOnePrefTutorial({
477
- id,
478
- });
479
- const pref_tutorial = out.value;
480
- if (pref_tutorial === undefined) {
481
- throw errResolveFailed({
482
- resource: resourcePrefTutorial,
483
- msg: msgPrefTutorialMissing,
484
- });
485
- }
486
- return pref_tutorial;
487
- }
488
463
  }
489
464
  function prefCompanyInput(pref) {
490
465
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/fx",
3
- "version": "0.0.205",
3
+ "version": "0.0.207",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,9 +17,9 @@
17
17
  "typescript": "^6.0.3"
18
18
  },
19
19
  "dependencies": {
20
- "@fabriktor/client": "0.0.124",
20
+ "@fabriktor/client": "0.0.126",
21
21
  "@fabriktor/fx": "0.0.94",
22
- "@fabriktor/schema": "0.0.94",
22
+ "@fabriktor/schema": "0.0.95",
23
23
  "convert": "8.0.2"
24
24
  }
25
25
  }