@gandalan/weblibs 2.0.16 → 2.0.17

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.
@@ -12,45 +12,6 @@
12
12
  * @typedef {0 | 1 | 2} NeherApp3NotifyType
13
13
  */
14
14
 
15
- /**
16
- * @typedef {Object} ArtikelstammEintrag
17
- * @property {string} [KatalogArtikelGuid]
18
- * @property {string} [KatalogNummer]
19
- * @property {string} [Katalognummer]
20
- * @property {string} [Nummer]
21
- */
22
-
23
- /**
24
- * @typedef {Object} Variante
25
- * @property {string} [VarianteGuid]
26
- * @property {string} [Name]
27
- * @property {string} [Kuerzel]
28
- */
29
-
30
- /**
31
- * @typedef {Object} Werteliste
32
- * @property {string} [WerteListeGuid]
33
- * @property {string} [Name]
34
- */
35
-
36
- /**
37
- * @typedef {Object} NeherApp3ArtikelstammCache
38
- * @property {() => Promise<ArtikelstammEintrag[]>} getArtikelStamm
39
- * @property {() => Promise<Object[]>} getWarenGruppen
40
- * @property {(guid: string) => Promise<ArtikelstammEintrag | undefined>} getArtikelByGuid
41
- * @property {(nummer: string) => Promise<ArtikelstammEintrag | undefined>} getArtikelByKatalognummer
42
- */
43
-
44
- /**
45
- * @typedef {Object} NeherApp3ErfassungCache
46
- * @property {() => Promise<Variante[]>} getVarianten
47
- * @property {(variantenNameOderKuerzel: string) => Promise<Variante | undefined>} getVariante
48
- * @property {() => Promise<Werteliste[]>} getWertelisten
49
- * @property {(name: string) => Promise<Werteliste | undefined>} getWerteliste
50
- * @property {() => Promise<Object[]>} getScripts
51
- * @property {(v: Variante) => void} createUIMachine
52
- */
53
-
54
15
  /**
55
16
  * @typedef {Object} NeherApp3Props
56
17
  * @property {import("./fluentApi.js").FluentApi} api
@@ -94,12 +55,6 @@
94
55
  * @property {import("./fluentApi.js").FluentApi} [hostingEnvironment]
95
56
  */
96
57
 
97
- /**
98
- * @typedef {Object} NeherApp3CacheCollection
99
- * @property {NeherApp3ArtikelstammCache} artikelstamm
100
- * @property {NeherApp3ErfassungCache} erfassung
101
- */
102
-
103
58
  /**
104
59
  * A single message envelope delivered to handlers.
105
60
  * @typedef {Object} NeherMessage
@@ -400,7 +355,6 @@
400
355
  * @property {(appModule: NeherApp3Module | string) => Promise<void>} addApp
401
356
  * @property {(message: string, type?: NeherApp3NotifyType, cb?: function) => void} notify - Shows a notification. Type defaults to 0 (info). Callback is optional.
402
357
  * @property {NeherApp3ApiCollection} api
403
- * @property {NeherApp3CacheCollection} cache
404
358
  * @property {NeherApp3Messages} messages - In-realm message bus for module-to-module communication.
405
359
  * @property {NeherApp3I18n} i18n - Localization: register a module's translation catalog, translate, switch language, sort language-aware.
406
360
  * @property {Localize} localize - Shorthand for `i18n.localize` (namespace `shell`): a function for strings, a `use:` action for elements.
package/index.d.ts CHANGED
@@ -166,13 +166,6 @@ export type ArtikelApi = {
166
166
  resetCacheVariantenListen: () => Promise<void>;
167
167
  };
168
168
 
169
- export type ArtikelstammEintrag = {
170
- KatalogArtikelGuid?: string;
171
- KatalogNummer?: string;
172
- Katalognummer?: string;
173
- Nummer?: string;
174
- };
175
-
176
169
  export type ArtosStartSettingsDTO = {
177
170
  MaterialBedarfLogik: MaterialBedarfLogik;
178
171
  UserAuthToken: UserAuthTokenDTO;
@@ -2094,7 +2087,6 @@ export type NeherApp3 = {
2094
2087
  addApp: (appModule: NeherApp3Module | string) => Promise<void>;
2095
2088
  notify: (message: string, type?: NeherApp3NotifyType, cb?: Function) => void;
2096
2089
  api: NeherApp3ApiCollection;
2097
- cache: NeherApp3CacheCollection;
2098
2090
  messages: NeherApp3Messages;
2099
2091
  i18n: NeherApp3I18n;
2100
2092
  localize: Localize;
@@ -2109,27 +2101,6 @@ export type NeherApp3ApiCollection = {
2109
2101
  hostingEnvironment?: FluentApi;
2110
2102
  };
2111
2103
 
2112
- export type NeherApp3ArtikelstammCache = {
2113
- getArtikelStamm: () => Promise<ArtikelstammEintrag[]>;
2114
- getWarenGruppen: () => Promise<object[]>;
2115
- getArtikelByGuid: (guid: string) => Promise<ArtikelstammEintrag | undefined>;
2116
- getArtikelByKatalognummer: (nummer: string) => Promise<ArtikelstammEintrag | undefined>;
2117
- };
2118
-
2119
- export type NeherApp3CacheCollection = {
2120
- artikelstamm: NeherApp3ArtikelstammCache;
2121
- erfassung: NeherApp3ErfassungCache;
2122
- };
2123
-
2124
- export type NeherApp3ErfassungCache = {
2125
- getVarianten: () => Promise<Variante[]>;
2126
- getVariante: (variantenNameOderKuerzel: string) => Promise<Variante | undefined>;
2127
- getWertelisten: () => Promise<Werteliste[]>;
2128
- getWerteliste: (name: string) => Promise<Werteliste | undefined>;
2129
- getScripts: () => Promise<object[]>;
2130
- createUIMachine: (v: Variante) => void;
2131
- };
2132
-
2133
2104
  export type NeherApp3I18n = {
2134
2105
  register: (namespace: string, translations?: TranslationCatalogs) => NeherApp3I18nEndpoint;
2135
2106
  localize: Localize;
@@ -3158,12 +3129,6 @@ export type UtilityApi = {
3158
3129
  getOneBenutzerByKunde: (kundeGuid: string, email: string) => Promise<BenutzerDTO | undefined>;
3159
3130
  };
3160
3131
 
3161
- export type Variante = {
3162
- VarianteGuid?: string;
3163
- Name?: string;
3164
- Kuerzel?: string;
3165
- };
3166
-
3167
3132
  export type VarianteDTO = {
3168
3133
  VarianteGuid: string;
3169
3134
  UIDefinitionGuid: string;
@@ -3394,11 +3359,6 @@ export type WebJobHistorieDTO = {
3394
3359
  Text: string;
3395
3360
  };
3396
3361
 
3397
- export type Werteliste = {
3398
- WerteListeGuid?: string;
3399
- Name?: string;
3400
- };
3401
-
3402
3362
  export type WerteListeDTO = {
3403
3363
  Name: string;
3404
3364
  Version: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "WebLibs for Gandalan JS/TS projects",
5
5
  "keywords": [
6
6
  "gandalan"