@kosdev-code/kos-ddk-models 0.1.0-dev.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.
Files changed (280) hide show
  1. package/constants.d.ts +3 -0
  2. package/constants.d.ts.map +1 -0
  3. package/index.d.ts +28 -0
  4. package/index.d.ts.map +1 -0
  5. package/index.js +3102 -0
  6. package/index.js.map +1 -0
  7. package/index.mjs +3102 -0
  8. package/index.mjs.map +1 -0
  9. package/lib/agitation-control/agitation-control-model.d.ts +53 -0
  10. package/lib/agitation-control/agitation-control-model.d.ts.map +1 -0
  11. package/lib/agitation-control/agitation-control-registration.d.ts +88 -0
  12. package/lib/agitation-control/agitation-control-registration.d.ts.map +1 -0
  13. package/lib/agitation-control/index.d.ts +4 -0
  14. package/lib/agitation-control/index.d.ts.map +1 -0
  15. package/lib/agitation-control/types/index.d.ts +5 -0
  16. package/lib/animation/animation-model.d.ts +17 -0
  17. package/lib/animation/animation-model.d.ts.map +1 -0
  18. package/lib/animation/animation-registration.d.ts +85 -0
  19. package/lib/animation/animation-registration.d.ts.map +1 -0
  20. package/lib/animation/index.d.ts +4 -0
  21. package/lib/animation/index.d.ts.map +1 -0
  22. package/lib/animation/services/animation-services.d.ts +10 -0
  23. package/lib/animation/services/animation-services.d.ts.map +1 -0
  24. package/lib/animation/services/index.d.ts +2 -0
  25. package/lib/animation/services/index.d.ts.map +1 -0
  26. package/lib/animation/types/index.d.ts +12 -0
  27. package/lib/application/application-model.d.ts +36 -0
  28. package/lib/application/application-model.d.ts.map +1 -0
  29. package/lib/application/application-registration.d.ts +85 -0
  30. package/lib/application/application-registration.d.ts.map +1 -0
  31. package/lib/application/index.d.ts +4 -0
  32. package/lib/application/index.d.ts.map +1 -0
  33. package/lib/application/services/application-services.d.ts +32 -0
  34. package/lib/application/services/application-services.d.ts.map +1 -0
  35. package/lib/application/services/index.d.ts +2 -0
  36. package/lib/application/services/index.d.ts.map +1 -0
  37. package/lib/application/types/index.d.ts +29 -0
  38. package/lib/auth/auth-model.d.ts +20 -0
  39. package/lib/auth/auth-model.d.ts.map +1 -0
  40. package/lib/auth/auth-registration.d.ts +83 -0
  41. package/lib/auth/auth-registration.d.ts.map +1 -0
  42. package/lib/auth/index.d.ts +4 -0
  43. package/lib/auth/index.d.ts.map +1 -0
  44. package/lib/auth/services/auth-services.d.ts +9 -0
  45. package/lib/auth/services/auth-services.d.ts.map +1 -0
  46. package/lib/auth/services/index.d.ts +2 -0
  47. package/lib/auth/services/index.d.ts.map +1 -0
  48. package/lib/auth/types/index.d.ts +10 -0
  49. package/lib/carb-water/carb-water-model.d.ts +20 -0
  50. package/lib/carb-water/carb-water-model.d.ts.map +1 -0
  51. package/lib/carb-water/carb-water-registration.d.ts +84 -0
  52. package/lib/carb-water/carb-water-registration.d.ts.map +1 -0
  53. package/lib/carb-water/index.d.ts +4 -0
  54. package/lib/carb-water/index.d.ts.map +1 -0
  55. package/lib/carb-water/services/carb-water-services.d.ts +6 -0
  56. package/lib/carb-water/services/carb-water-services.d.ts.map +1 -0
  57. package/lib/carb-water/services/index.d.ts +2 -0
  58. package/lib/carb-water/services/index.d.ts.map +1 -0
  59. package/lib/carb-water/types/index.d.ts +1 -0
  60. package/lib/copy-logs/copy-logs-model.d.ts +48 -0
  61. package/lib/copy-logs/copy-logs-model.d.ts.map +1 -0
  62. package/lib/copy-logs/index.d.ts +5 -0
  63. package/lib/copy-logs/index.d.ts.map +1 -0
  64. package/lib/copy-logs/services/copy-logs-services.d.ts +21 -0
  65. package/lib/copy-logs/services/copy-logs-services.d.ts.map +1 -0
  66. package/lib/copy-logs/services/index.d.ts +2 -0
  67. package/lib/copy-logs/services/index.d.ts.map +1 -0
  68. package/lib/copy-logs/types/index.d.ts +8 -0
  69. package/lib/dashboard-operations/dashboard-operations-model.d.ts +31 -0
  70. package/lib/dashboard-operations/dashboard-operations-model.d.ts.map +1 -0
  71. package/lib/dashboard-operations/dashboard-operations-registration.d.ts +85 -0
  72. package/lib/dashboard-operations/dashboard-operations-registration.d.ts.map +1 -0
  73. package/lib/dashboard-operations/index.d.ts +4 -0
  74. package/lib/dashboard-operations/index.d.ts.map +1 -0
  75. package/lib/dashboard-operations/services/dashboard-operations-services.d.ts +7 -0
  76. package/lib/dashboard-operations/services/dashboard-operations-services.d.ts.map +1 -0
  77. package/lib/dashboard-operations/services/index.d.ts +2 -0
  78. package/lib/dashboard-operations/services/index.d.ts.map +1 -0
  79. package/lib/dashboard-operations/types/index.d.ts +19 -0
  80. package/lib/dispenser/dispenser-model.d.ts +16 -0
  81. package/lib/dispenser/dispenser-model.d.ts.map +1 -0
  82. package/lib/dispenser/dispenser-registration.d.ts +85 -0
  83. package/lib/dispenser/dispenser-registration.d.ts.map +1 -0
  84. package/lib/dispenser/index.d.ts +4 -0
  85. package/lib/dispenser/index.d.ts.map +1 -0
  86. package/lib/dispenser/services/dispenser-services.d.ts +10 -0
  87. package/lib/dispenser/services/dispenser-services.d.ts.map +1 -0
  88. package/lib/dispenser/services/index.d.ts +2 -0
  89. package/lib/dispenser/services/index.d.ts.map +1 -0
  90. package/lib/dispenser/types/index.d.ts +7 -0
  91. package/lib/dispenser-info/dispenser-info-model.d.ts +16 -0
  92. package/lib/dispenser-info/dispenser-info-model.d.ts.map +1 -0
  93. package/lib/dispenser-info/dispenser-info-registration.d.ts +83 -0
  94. package/lib/dispenser-info/dispenser-info-registration.d.ts.map +1 -0
  95. package/lib/dispenser-info/index.d.ts +4 -0
  96. package/lib/dispenser-info/index.d.ts.map +1 -0
  97. package/lib/dispenser-info/services/dispenser-info-services.d.ts +10 -0
  98. package/lib/dispenser-info/services/dispenser-info-services.d.ts.map +1 -0
  99. package/lib/dispenser-info/services/index.d.ts +2 -0
  100. package/lib/dispenser-info/services/index.d.ts.map +1 -0
  101. package/lib/dispenser-info/types/index.d.ts +8 -0
  102. package/lib/door/door-model.d.ts +24 -0
  103. package/lib/door/door-model.d.ts.map +1 -0
  104. package/lib/door/door-registration.d.ts +86 -0
  105. package/lib/door/door-registration.d.ts.map +1 -0
  106. package/lib/door/index.d.ts +4 -0
  107. package/lib/door/index.d.ts.map +1 -0
  108. package/lib/door/types/index.d.ts +3 -0
  109. package/lib/enrollment/enrollment-model.d.ts +17 -0
  110. package/lib/enrollment/enrollment-model.d.ts.map +1 -0
  111. package/lib/enrollment/enrollment-registration.d.ts +83 -0
  112. package/lib/enrollment/enrollment-registration.d.ts.map +1 -0
  113. package/lib/enrollment/index.d.ts +4 -0
  114. package/lib/enrollment/index.d.ts.map +1 -0
  115. package/lib/enrollment/services/enrollment-services.d.ts +10 -0
  116. package/lib/enrollment/services/enrollment-services.d.ts.map +1 -0
  117. package/lib/enrollment/services/index.d.ts +2 -0
  118. package/lib/enrollment/services/index.d.ts.map +1 -0
  119. package/lib/enrollment/types/index.d.ts +8 -0
  120. package/lib/extension/index.d.ts +2 -0
  121. package/lib/extension/index.d.ts.map +1 -0
  122. package/lib/ingredient-summary/index.d.ts +3 -0
  123. package/lib/ingredient-summary/index.d.ts.map +1 -0
  124. package/lib/ingredient-summary/ingredient-summary-model.d.ts +21 -0
  125. package/lib/ingredient-summary/ingredient-summary-model.d.ts.map +1 -0
  126. package/lib/ingredient-summary/ingredient-summary-registration.d.ts +83 -0
  127. package/lib/ingredient-summary/ingredient-summary-registration.d.ts.map +1 -0
  128. package/lib/ingredient-summary/types/index.d.ts +9 -0
  129. package/lib/lockout/index.d.ts +5 -0
  130. package/lib/lockout/index.d.ts.map +1 -0
  131. package/lib/lockout/lockout-model.d.ts +82 -0
  132. package/lib/lockout/lockout-model.d.ts.map +1 -0
  133. package/lib/lockout/lockout-registration.d.ts +88 -0
  134. package/lib/lockout/lockout-registration.d.ts.map +1 -0
  135. package/lib/lockout/services/index.d.ts +2 -0
  136. package/lib/lockout/services/index.d.ts.map +1 -0
  137. package/lib/lockout/services/lockout-services.d.ts +3 -0
  138. package/lib/lockout/services/lockout-services.d.ts.map +1 -0
  139. package/lib/lockout/types/index.d.ts +1 -0
  140. package/lib/macro-assignment/index.d.ts +3 -0
  141. package/lib/macro-assignment/index.d.ts.map +1 -0
  142. package/lib/macro-assignment/macro-assignment-model.d.ts +81 -0
  143. package/lib/macro-assignment/macro-assignment-model.d.ts.map +1 -0
  144. package/lib/macro-assignment/macro-assignment-registration.d.ts +85 -0
  145. package/lib/macro-assignment/macro-assignment-registration.d.ts.map +1 -0
  146. package/lib/macro-assignment/services/index.d.ts +2 -0
  147. package/lib/macro-assignment/services/index.d.ts.map +1 -0
  148. package/lib/macro-assignment/services/macro-assignment-services.d.ts +2 -0
  149. package/lib/macro-assignment/services/macro-assignment-services.d.ts.map +1 -0
  150. package/lib/macro-assignment/types/index.d.ts +37 -0
  151. package/lib/network-test/index.d.ts +5 -0
  152. package/lib/network-test/index.d.ts.map +1 -0
  153. package/lib/network-test/network-test-container-model.d.ts +26 -0
  154. package/lib/network-test/network-test-container-model.d.ts.map +1 -0
  155. package/lib/network-test/network-test-container-registration.d.ts +85 -0
  156. package/lib/network-test/network-test-container-registration.d.ts.map +1 -0
  157. package/lib/network-test/network-test-model.d.ts +24 -0
  158. package/lib/network-test/network-test-model.d.ts.map +1 -0
  159. package/lib/network-test/network-test-registration.d.ts +83 -0
  160. package/lib/network-test/network-test-registration.d.ts.map +1 -0
  161. package/lib/network-test/services/index.d.ts +2 -0
  162. package/lib/network-test/services/index.d.ts.map +1 -0
  163. package/lib/network-test/services/network-test-services.d.ts +36 -0
  164. package/lib/network-test/services/network-test-services.d.ts.map +1 -0
  165. package/lib/network-test/types/index.d.ts +42 -0
  166. package/lib/nutritive-sweetener/index.d.ts +4 -0
  167. package/lib/nutritive-sweetener/index.d.ts.map +1 -0
  168. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts +24 -0
  169. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts.map +1 -0
  170. package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts +84 -0
  171. package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts.map +1 -0
  172. package/lib/nutritive-sweetener/services/index.d.ts +2 -0
  173. package/lib/nutritive-sweetener/services/index.d.ts.map +1 -0
  174. package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts +6 -0
  175. package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts.map +1 -0
  176. package/lib/nutritive-sweetener/types/index.d.ts +1 -0
  177. package/lib/plain-water/index.d.ts +4 -0
  178. package/lib/plain-water/index.d.ts.map +1 -0
  179. package/lib/plain-water/plain-water-model.d.ts +21 -0
  180. package/lib/plain-water/plain-water-model.d.ts.map +1 -0
  181. package/lib/plain-water/plain-water-registration.d.ts +84 -0
  182. package/lib/plain-water/plain-water-registration.d.ts.map +1 -0
  183. package/lib/plain-water/services/index.d.ts +2 -0
  184. package/lib/plain-water/services/index.d.ts.map +1 -0
  185. package/lib/plain-water/services/plain-water-services.d.ts +6 -0
  186. package/lib/plain-water/services/plain-water-services.d.ts.map +1 -0
  187. package/lib/plain-water/types/index.d.ts +1 -0
  188. package/lib/reboot/index.d.ts +4 -0
  189. package/lib/reboot/index.d.ts.map +1 -0
  190. package/lib/reboot/reboot-model.d.ts +17 -0
  191. package/lib/reboot/reboot-model.d.ts.map +1 -0
  192. package/lib/reboot/reboot-registration.d.ts +83 -0
  193. package/lib/reboot/reboot-registration.d.ts.map +1 -0
  194. package/lib/reboot/services/index.d.ts +2 -0
  195. package/lib/reboot/services/index.d.ts.map +1 -0
  196. package/lib/reboot/services/reboot-services.d.ts +2 -0
  197. package/lib/reboot/services/reboot-services.d.ts.map +1 -0
  198. package/lib/reboot/types/index.d.ts +6 -0
  199. package/lib/registration.d.ts +3 -0
  200. package/lib/registration.d.ts.map +1 -0
  201. package/lib/settings/index.d.ts +4 -0
  202. package/lib/settings/index.d.ts.map +1 -0
  203. package/lib/settings/services/index.d.ts +2 -0
  204. package/lib/settings/services/index.d.ts.map +1 -0
  205. package/lib/settings/services/settings-services.d.ts +12 -0
  206. package/lib/settings/services/settings-services.d.ts.map +1 -0
  207. package/lib/settings/settings-model.d.ts +28 -0
  208. package/lib/settings/settings-model.d.ts.map +1 -0
  209. package/lib/settings/settings-registration.d.ts +85 -0
  210. package/lib/settings/settings-registration.d.ts.map +1 -0
  211. package/lib/settings/types/index.d.ts +24 -0
  212. package/lib/setup-step/index.d.ts +5 -0
  213. package/lib/setup-step/index.d.ts.map +1 -0
  214. package/lib/setup-step/services/index.d.ts +2 -0
  215. package/lib/setup-step/services/index.d.ts.map +1 -0
  216. package/lib/setup-step/services/setup-step-services.d.ts +13 -0
  217. package/lib/setup-step/services/setup-step-services.d.ts.map +1 -0
  218. package/lib/setup-step/setup-step-container-model.d.ts +32 -0
  219. package/lib/setup-step/setup-step-container-model.d.ts.map +1 -0
  220. package/lib/setup-step/setup-step-container-registration.d.ts +85 -0
  221. package/lib/setup-step/setup-step-container-registration.d.ts.map +1 -0
  222. package/lib/setup-step/setup-step-model.d.ts +24 -0
  223. package/lib/setup-step/setup-step-model.d.ts.map +1 -0
  224. package/lib/setup-step/setup-step-registration.d.ts +83 -0
  225. package/lib/setup-step/setup-step-registration.d.ts.map +1 -0
  226. package/lib/setup-step/types/index.d.ts +38 -0
  227. package/lib/trouble-action/index.d.ts +7 -0
  228. package/lib/trouble-action/index.d.ts.map +1 -0
  229. package/lib/trouble-action/trouble-action-model.d.ts +279 -0
  230. package/lib/trouble-action/trouble-action-model.d.ts.map +1 -0
  231. package/lib/trouble-action/types/index.d.ts +103 -0
  232. package/lib/utilities/index.d.ts +5 -0
  233. package/lib/utilities/index.d.ts.map +1 -0
  234. package/lib/utilities/services/index.d.ts +2 -0
  235. package/lib/utilities/services/index.d.ts.map +1 -0
  236. package/lib/utilities/services/utilities-services.d.ts +13 -0
  237. package/lib/utilities/services/utilities-services.d.ts.map +1 -0
  238. package/lib/utilities/types/index.d.ts +30 -0
  239. package/lib/utilities/utilities-container-model.d.ts +22 -0
  240. package/lib/utilities/utilities-container-model.d.ts.map +1 -0
  241. package/lib/utilities/utilities-container-registration.d.ts +85 -0
  242. package/lib/utilities/utilities-container-registration.d.ts.map +1 -0
  243. package/lib/utilities/utilities-model.d.ts +22 -0
  244. package/lib/utilities/utilities-model.d.ts.map +1 -0
  245. package/lib/utilities/utilities-registration.d.ts +83 -0
  246. package/lib/utilities/utilities-registration.d.ts.map +1 -0
  247. package/lib/utils/assembly-utils.d.ts +16 -0
  248. package/lib/utils/assembly-utils.d.ts.map +1 -0
  249. package/lib/utils/holder-view-extension.d.ts +15 -0
  250. package/lib/utils/holder-view-extension.d.ts.map +1 -0
  251. package/lib/utils/index.d.ts +5 -0
  252. package/lib/utils/index.d.ts.map +1 -0
  253. package/lib/utils/time-utils.d.ts +9 -0
  254. package/lib/utils/time-utils.d.ts.map +1 -0
  255. package/lib/utils/trouble-visibility-filter.d.ts +4 -0
  256. package/lib/utils/trouble-visibility-filter.d.ts.map +1 -0
  257. package/package.json +21 -0
  258. package/start/index.d.ts +5 -0
  259. package/start/index.d.ts.map +1 -0
  260. package/start/services/index.d.ts +2 -0
  261. package/start/services/index.d.ts.map +1 -0
  262. package/start/services/start-services.d.ts +6 -0
  263. package/start/services/start-services.d.ts.map +1 -0
  264. package/start/start-model.d.ts +20 -0
  265. package/start/start-model.d.ts.map +1 -0
  266. package/start/start-registration.d.ts +88 -0
  267. package/start/start-registration.d.ts.map +1 -0
  268. package/start/types/index.d.ts +1 -0
  269. package/types/global.d.ts +19 -0
  270. package/types/global.d.ts.map +1 -0
  271. package/types/index.d.ts +2 -0
  272. package/types/index.d.ts.map +1 -0
  273. package/utils/openapi-index.d.ts +2 -0
  274. package/utils/openapi-index.d.ts.map +1 -0
  275. package/utils/openapi.d.ts +9271 -0
  276. package/utils/services/kosdev.ddk/snapshot/openapi.d.ts +971 -0
  277. package/utils/services/kosdev.ddk/snapshot/service.d.ts +121 -0
  278. package/utils/services/kosdev.ddk/snapshot/service.d.ts.map +1 -0
  279. package/utils/services-index.d.ts +2 -0
  280. package/utils/services-index.d.ts.map +1 -0
@@ -0,0 +1,2 @@
1
+ export * from './settings-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ddk-models/src/lib/settings/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { ncuiLanguageDataProps } from '../types';
2
+ interface SettingsResponse {
3
+ id: string;
4
+ }
5
+ /**
6
+ * @category Service
7
+ * Retrieves the initial settings data.
8
+ */
9
+ export declare const getSettings: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<SettingsResponse[]> | undefined>;
10
+ export declare const getNcuiLanguage: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<ncuiLanguageDataProps[][]> | undefined>;
11
+ export {};
12
+ //# sourceMappingURL=settings-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-services.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ddk-models/src/lib/settings/services/settings-services.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAYjD,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,qGAIvB,CAAC;AAEF,eAAO,MAAM,eAAe,4GAK3B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { IKosModelLogger, KosConfigProperty, KosContextLogger, KosCreationContext, KosServiceResponse } from '@kosdev-code/kos-ui-sdk';
2
+ import { SettingsModel, SettingsOptions, ncuiLanguageDataProps } from './types';
3
+ export declare const MODEL_TYPE = "settings-model";
4
+ /**
5
+ * @kosService ddk.settings
6
+ * @kosApiLevel 1
7
+ */
8
+ export declare class SettingsModelImpl implements SettingsModel, IKosModelLogger {
9
+ id: string;
10
+ logger: KosContextLogger;
11
+ ncuiLanguageData: KosServiceResponse<ncuiLanguageDataProps> | undefined;
12
+ resolveDelaysMs: KosConfigProperty<number>;
13
+ dateFormat: KosConfigProperty<number>;
14
+ timeFormat: KosConfigProperty<number>;
15
+ hidePlainWaterBev: KosConfigProperty<boolean>;
16
+ hideCarbWaterBev: KosConfigProperty<boolean>;
17
+ ncuiLanguage: KosConfigProperty<string>;
18
+ name: KosConfigProperty<string>;
19
+ activateAndRebootTime: KosConfigProperty<number>;
20
+ horizontalMode: KosConfigProperty<boolean>;
21
+ constructor(modelId: string, _options: SettingsOptions, context: KosCreationContext);
22
+ ready(): Promise<void>;
23
+ getNcuiLanguageList(): Promise<void>;
24
+ load(): Promise<void>;
25
+ handleUpdateDisplayMode(): void;
26
+ updateDisplayMode(): void;
27
+ }
28
+ //# sourceMappingURL=settings-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-model.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/settings/settings-model.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAE3C;;;GAGG;AACH,qBACa,iBAAkB,YAAW,aAAa,EAAE,eAAe;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,gBAAgB,CAAC;IACzB,gBAAgB,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;IAOxE,eAAe,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAO5C,UAAU,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMvC,UAAU,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMvC,iBAAiB,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAM/C,gBAAgB,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAM9C,YAAY,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMzC,IAAI,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMjC,qBAAqB,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMlD,cAAc,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBAE1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,kBAAkB;IAQvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBpC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB3B,uBAAuB;IAIvB,iBAAiB;CAOlB"}
@@ -0,0 +1,85 @@
1
+ import { SingletonKosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
2
+ import { SettingsModel, SettingsOptions } from './types';
3
+ /**
4
+ * # Settings
5
+ *
6
+ * The registration bean includes convenience methods for creating and working with SettingsModel instances.
7
+ *
8
+ * ## type
9
+ * The type property is a string that identifies the model type.
10
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
11
+ * used when declaring dependencies on models.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ *
16
+ * @kosDependency({modelType: Settings.type, id: "settingsId"})
17
+ * private settingsModel: SettingsModel;
18
+ * ```
19
+ *
20
+ *
21
+ * ## factory
22
+ *
23
+ * The factory method creates a factory function that can be used to create new SettingsModel instances.
24
+ *
25
+
26
+ * As this is a singleton model, the factory function accepts the model options as its argument.
27
+ *
28
+ * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
29
+ * in this case and the existing model will be returned in its current state.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const model = Settings.factory({
34
+ * // Add option data
35
+ * });
36
+ * ```
37
+
38
+
39
+ *
40
+ * ## predicate
41
+ *
42
+ * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a SettingsModel.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ *
47
+ * const model: IKosDataModel = ...; // some model
48
+ *
49
+ * if (Settings.predicate(model)) {
50
+ * // if the function evaluates to true, the model is narrowed down to SettingsModel
51
+ * // and the compiler will know that the model has the SettingsModel interface
52
+ * model.updateAvailability(false);
53
+ * }
54
+ * ```
55
+ *
56
+ * ## registration
57
+ *
58
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
59
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
60
+ *
61
+ *
62
+ * @example
63
+ *
64
+ * In an application registration file you can declare the model registration as follows:
65
+ *
66
+ * **registration.ts**
67
+ * ```typescript
68
+ * import { Settings } from "@kos-ui/kos-dispenser-model";
69
+ * ...
70
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
71
+ * export const kosModels: IKosRegistry["models"] = {
72
+ * ...Settings.registration,
73
+ * };
74
+ * ```
75
+ *
76
+ * ## registration.singleton
77
+
78
+ * The settings model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
79
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
80
+ *
81
+ * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
82
+
83
+ * */
84
+ export declare const Settings: Readonly<SingletonKosModelRegistrationBean<SettingsModel, SettingsOptions>>;
85
+ //# sourceMappingURL=settings-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-registration.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/settings/settings-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAGjF,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAC7B,iCAAiC,CAAC,aAAa,EAAE,eAAe,CAAC,CAWlE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { IKosDataModel, KosConfigProperty, KosServiceResponse } from '@kosdev-code/kos-ui-sdk';
2
+ export interface SettingsOptions {}
3
+
4
+ export interface languagesProps {
5
+ name: string;
6
+ locale: string;
7
+ }
8
+ export interface ncuiLanguageDataProps {
9
+ languages: languagesProps[];
10
+ }
11
+
12
+ export interface SettingsModel extends SettingsOptions, IKosDataModel {
13
+ activateAndRebootTime: KosConfigProperty<number>;
14
+ dateFormat: KosConfigProperty<number>;
15
+ hideCarbWaterBev: KosConfigProperty<boolean>;
16
+ hidePlainWaterBev: KosConfigProperty<boolean>;
17
+ horizontalMode: KosConfigProperty<boolean>;
18
+ id: string;
19
+ name: KosConfigProperty<string>;
20
+ ncuiLanguage: KosConfigProperty<string>;
21
+ ncuiLanguageData: KosServiceResponse<ncuiLanguageDataProps> | undefined;
22
+ resolveDelaysMs: KosConfigProperty<number>;
23
+ timeFormat: KosConfigProperty<number>;
24
+ }
@@ -0,0 +1,5 @@
1
+ export { SetupStepContainer } from './setup-step-container-registration';
2
+ export { SetupStep } from './setup-step-registration';
3
+ export type * from './types';
4
+ export * as SetupStepServices from './services';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/setup-step/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,iBAAiB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './setup-step-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ddk-models/src/lib/setup-step/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface SetupStepResponse {
2
+ name: string;
3
+ complete: boolean;
4
+ preStep: boolean;
5
+ exclusive: boolean;
6
+ }
7
+ /**
8
+ * @category Service
9
+ * Retrieves the initial setup-step data.
10
+ */
11
+ export declare const getSetupSteps: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<SetupStepResponse[]> | undefined>;
12
+ export declare const markStepComplete: (stepId: string) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<any> | undefined>;
13
+ //# sourceMappingURL=setup-step-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-step-services.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ddk-models/src/lib/setup-step/services/setup-step-services.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,sGAMzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,QAAQ,MAAM,mFAOpD,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { IKosModelContainer, KosCreationContext } from '@kosdev-code/kos-ui-sdk';
2
+ import { AuthModel } from '../auth';
3
+ import { SetupStepResponse } from './services';
4
+ import { SetupStepContainerModel, SetupStepContainerOptions, SetupStepModel } from './types';
5
+ export declare const MODEL_TYPE = "setup-step-container-model";
6
+ /**
7
+ * @kosService ddk.setup-step
8
+ * @kosApiLevel 1
9
+ */
10
+ export declare class SetupStepContainerModelImpl implements SetupStepContainerModel {
11
+ id: string;
12
+ private _currentStep?;
13
+ private logger;
14
+ models: IKosModelContainer<SetupStepModel>;
15
+ authModel: AuthModel;
16
+ constructor(modelId: string, options: SetupStepContainerOptions, context: KosCreationContext);
17
+ get currentStep(): SetupStepModel | undefined;
18
+ setCurrentStep(id: string): void;
19
+ nextStep(): void;
20
+ get hasIncompletePreSteps(): boolean;
21
+ get setupRequired(): boolean;
22
+ get firstIncompleteStep(): SetupStepModel | undefined;
23
+ get isLastStep(): boolean;
24
+ get data(): SetupStepModel[];
25
+ getModel(id: string): SetupStepModel | undefined;
26
+ addModel(model: SetupStepModel): void;
27
+ removeModel(id: string): void;
28
+ init(): Promise<void>;
29
+ load(): Promise<void>;
30
+ handleStepChanges(steps: SetupStepResponse[]): void;
31
+ }
32
+ //# sourceMappingURL=setup-step-container-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-step-container-model.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/setup-step/setup-step-container-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAElB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEnE,OAAO,KAAK,EAEV,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,+BAA+B,CAAC;AAevD;;;GAGG;AACH,qBACa,2BAA4B,YAAW,uBAAuB;IACzE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,YAAY,CAAC,CAAiB;IACtC,OAAO,CAAC,MAAM,CAAmB;IACvB,MAAM,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAGrD,SAAS,EAAG,SAAS,CAAC;gBAGpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,kBAAkB;IAe7B,IAAI,WAAW,+BAEd;IAED,cAAc,CAAC,EAAE,EAAE,MAAM;IAMzB,QAAQ;IAYR,IAAI,qBAAqB,YAExB;IAED,IAAI,aAAa,YAEhB;IACD,IAAI,mBAAmB,+BAEtB;IACD,IAAI,UAAU,YAIb;IAED,IAAI,IAAI,qBAEP;IAED,QAAQ,CAAC,EAAE,EAAE,MAAM;IAInB,QAAQ,CAAC,KAAK,EAAE,cAAc;IAI9B,WAAW,CAAC,EAAE,EAAE,MAAM;IAKhB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA2B3B,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,EAAE;CAe7C"}
@@ -0,0 +1,85 @@
1
+ import { SingletonKosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
2
+ import { SetupStepContainerModel, SetupStepContainerOptions } from './types';
3
+ /**
4
+ * # SetupStepContainer
5
+ *
6
+ * The registration bean includes convenience methods for creating and working with SetupStepContainerModel instances.
7
+ *
8
+ * ## type
9
+ * The type property is a string that identifies the model type.
10
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
11
+ * used when declaring dependencies on models.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ *
16
+ * @kosDependency({modelType: SetupStepContainer.type, id: "setupStepContainerId"})
17
+ * private setupStepContainerModel: SetupStepContainerModel;
18
+ * ```
19
+ *
20
+ *
21
+ * ## factory
22
+ *
23
+ * The factory method creates a factory function that can be used to create new SetupStepContainerModel instances.
24
+ *
25
+
26
+ * As this is a singleton model, the factory function accepts the model options as its argument.
27
+ *
28
+ * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
29
+ * in this case and the existing model will be returned in its current state.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const model = SetupStepContainer.factory({
34
+ * // Add option data
35
+ * });
36
+ * ```
37
+
38
+
39
+ *
40
+ * ## predicate
41
+ *
42
+ * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a SetupStepContainerModel.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ *
47
+ * const model: IKosDataModel = ...; // some model
48
+ *
49
+ * if (SetupStepContainer.predicate(model)) {
50
+ * // if the function evaluates to true, the model is narrowed down to SetupStepContainerModel
51
+ * // and the compiler will know that the model has the SetupStepContainerModel interface
52
+ * model.updateAvailability(false);
53
+ * }
54
+ * ```
55
+ *
56
+ * ## registration
57
+ *
58
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
59
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
60
+ *
61
+ *
62
+ * @example
63
+ *
64
+ * In an application registration file you can declare the model registration as follows:
65
+ *
66
+ * **registration.ts**
67
+ * ```typescript
68
+ * import { SetupStepContainer } from "@kos-ui/kos-dispenser-model";
69
+ * ...
70
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
71
+ * export const kosModels: IKosRegistry["models"] = {
72
+ * ...SetupStepContainer.registration,
73
+ * };
74
+ * ```
75
+ *
76
+ * ## registration.singleton
77
+
78
+ * The setupStepContainer model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
79
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
80
+ *
81
+ * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
82
+
83
+ * */
84
+ export declare const SetupStepContainer: Readonly<SingletonKosModelRegistrationBean<SetupStepContainerModel, SetupStepContainerOptions>>;
85
+ //# sourceMappingURL=setup-step-container-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-step-container-registration.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/setup-step/setup-step-container-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAMjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CACvC,iCAAiC,CAC/B,uBAAuB,EACvB,yBAAyB,CAC1B,CAeF,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { IKosDataModel, KosCreationContext } from '@kosdev-code/kos-ui-sdk';
2
+ import { SetupStepModel, SetupStepOptions } from './types';
3
+ export declare const MODEL_TYPE = "setup-step-model";
4
+ /**
5
+ * @kosService ddk.setup-step
6
+ * @kosApiLevel 1
7
+ */
8
+ export declare class SetupStepModelImpl implements SetupStepModel, IKosDataModel {
9
+ id: string;
10
+ idx: number;
11
+ name: string;
12
+ complete: boolean;
13
+ preStep: boolean;
14
+ exclusive: boolean;
15
+ private logger;
16
+ constructor(modelId: string, options: SetupStepOptions, context: KosCreationContext);
17
+ updateModel(options: SetupStepOptions): void;
18
+ get titleKey(): string;
19
+ get bodyKey(): string;
20
+ completeStep(): Promise<void>;
21
+ init(): Promise<void>;
22
+ load(): Promise<void>;
23
+ }
24
+ //# sourceMappingURL=setup-step-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-step-model.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/setup-step/setup-step-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhE,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C;;;GAGG;AACH,qBACa,kBAAmB,YAAW,cAAc,EAAE,aAAa;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IAEnB,OAAO,CAAC,MAAM,CAAmB;gBAE/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;IAW7B,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAQ5C,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,WAEV;IAEK,YAAY;IAWZ,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,83 @@
1
+ import { KosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
2
+ import { SetupStepModel, SetupStepOptions } from './types';
3
+ /**
4
+ * # SetupStep
5
+ *
6
+ * The registration bean includes convenience methods for creating and working with SetupStepModel instances.
7
+ *
8
+ * ## type
9
+ * The type property is a string that identifies the model type.
10
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
11
+ * used when declaring dependencies on models.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ *
16
+ * @kosDependency({modelType: SetupStep.type, id: "setupStepId"})
17
+ * private setupStepModel: SetupStepModel;
18
+ * ```
19
+ *
20
+ *
21
+ * ## factory
22
+ *
23
+ * The factory method creates a factory function that can be used to create new SetupStepModel instances.
24
+ *
25
+
26
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
27
+ *
28
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
29
+ * in this case and the existing model will be returned in its current state.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const model = SetupStep.factory("setupStepId")({
34
+ * // Add option data
35
+ * });
36
+ * ```
37
+
38
+
39
+ *
40
+ * ## predicate
41
+ *
42
+ * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a SetupStepModel.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ *
47
+ * const model: IKosDataModel = ...; // some model
48
+ *
49
+ * if (SetupStep.predicate(model)) {
50
+ * // if the function evaluates to true, the model is narrowed down to SetupStepModel
51
+ * // and the compiler will know that the model has the SetupStepModel interface
52
+ * model.updateAvailability(false);
53
+ * }
54
+ * ```
55
+ *
56
+ * ## registration
57
+ *
58
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
59
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
60
+ *
61
+ *
62
+ * @example
63
+ *
64
+ * In an application registration file you can declare the model registration as follows:
65
+ *
66
+ * **registration.ts**
67
+ * ```typescript
68
+ * import { SetupStep } from "@kos-ui/kos-dispenser-model";
69
+ * ...
70
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
71
+ * export const kosModels: IKosRegistry["models"] = {
72
+ * ...SetupStep.registration,
73
+ * };
74
+ * ```
75
+ *
76
+ * ## registration.singleton
77
+
78
+ * The setupStep model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
79
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
80
+
81
+ * */
82
+ export declare const SetupStep: Readonly<KosModelRegistrationBean<SetupStepModel, SetupStepOptions>>;
83
+ //# sourceMappingURL=setup-step-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-step-registration.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/setup-step/setup-step-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,wBAAwB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAW3D,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { IKosIdentifiable, IKosModelHolder, IKosDataModel } from '@kosdev-code/kos-ui-sdk';
2
+ // --------------- SetupStep ---------------
3
+
4
+ export interface SetupStepOptions {
5
+ name: string;
6
+ idx: number;
7
+ complete: boolean; // true if the step is complete
8
+ preStep: boolean; // true if this step is a pre-step
9
+ exclusive: boolean; // if true, hide all non-exclusive steps
10
+ }
11
+
12
+ export interface SetupStepModel extends IKosDataModel {
13
+ idx: number;
14
+ name: string;
15
+ complete: boolean; // true if the step is complete
16
+ preStep: boolean; // true if this step is a pre-step
17
+ exclusive: boolean; // if true, hide all non-exclusive steps
18
+ readonly titleKey: string;
19
+ updateModel: (options: SetupStepOptions) => void;
20
+ completeStep: () => Promise<void>;
21
+ }
22
+
23
+ // --------------- SetupStepContainer ---------------
24
+ export interface SetupStepContainerOptions {}
25
+
26
+ export interface SetupStepContainerModel
27
+ extends IKosDataModel,
28
+ IKosModelHolder<SetupStepModel> {
29
+ currentStep?: SetupStepModel;
30
+ readonly setupRequired: boolean;
31
+ readonly hasIncompletePreSteps: boolean;
32
+ setCurrentStep: (id: stepName) => void;
33
+ nextStep: () => void;
34
+ readonly firstIncompleteStep: SetupStepModel<IKosDataModel>;
35
+ readonly isLastStep: boolean;
36
+ }
37
+
38
+ export type IdentifiableStep = SetupStepOptions & IKosIdentifiable;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * (C) Copyright 2024, TCCC, All rights reserved.
3
+ */
4
+ export { TroubleAction as TroubleActionManager } from './trouble-action-model';
5
+ export type { TroubleActionModel as TroubleActionManagerModel } from './trouble-action-model';
6
+ export type { TroubleActionData as TroubleActionManagerData, TroubleActionOptions as TroubleActionManagerOptions, } from './types';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/trouble-action/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,YAAY,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAC9F,YAAY,EACV,iBAAiB,IAAI,wBAAwB,EAC7C,oBAAoB,IAAI,2BAA2B,GACpD,MAAM,SAAS,CAAC"}