@kosdev-code/kos-ddk-models 2.1.0 → 2.1.2

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 (108) hide show
  1. package/index.d.ts +0 -3
  2. package/index.d.ts.map +1 -1
  3. package/index.js +1 -1
  4. package/index.mjs +1339 -1635
  5. package/kos-models.json +358 -0
  6. package/lib/agitation-control/agitation-control-model.d.ts +5 -1
  7. package/lib/agitation-control/agitation-control-model.d.ts.map +1 -1
  8. package/lib/animation/animation-model.d.ts +4 -0
  9. package/lib/animation/animation-model.d.ts.map +1 -1
  10. package/lib/application/application-model.d.ts +4 -0
  11. package/lib/application/application-model.d.ts.map +1 -1
  12. package/lib/application/services/application-services.d.ts +3 -0
  13. package/lib/application/services/application-services.d.ts.map +1 -1
  14. package/lib/auth/auth-model.d.ts +4 -0
  15. package/lib/auth/auth-model.d.ts.map +1 -1
  16. package/lib/carb-water/carb-water-model.d.ts +5 -2
  17. package/lib/carb-water/carb-water-model.d.ts.map +1 -1
  18. package/lib/copy-logs/copy-logs-model.d.ts +4 -0
  19. package/lib/copy-logs/copy-logs-model.d.ts.map +1 -1
  20. package/lib/dashboard-operations/dashboard-operations-model.d.ts +4 -0
  21. package/lib/dashboard-operations/dashboard-operations-model.d.ts.map +1 -1
  22. package/lib/dispenser/dispenser-model.d.ts +4 -0
  23. package/lib/dispenser/dispenser-model.d.ts.map +1 -1
  24. package/lib/dispenser-info/dispenser-info-model.d.ts +4 -0
  25. package/lib/dispenser-info/dispenser-info-model.d.ts.map +1 -1
  26. package/lib/door/door-model.d.ts +6 -1
  27. package/lib/door/door-model.d.ts.map +1 -1
  28. package/lib/enrollment/enrollment-model.d.ts +4 -0
  29. package/lib/enrollment/enrollment-model.d.ts.map +1 -1
  30. package/lib/ingredient-summary/ingredient-summary-model.d.ts +4 -0
  31. package/lib/ingredient-summary/ingredient-summary-model.d.ts.map +1 -1
  32. package/lib/lockout/lockout-model.d.ts +4 -0
  33. package/lib/lockout/lockout-model.d.ts.map +1 -1
  34. package/lib/macro-assignment/macro-assignment-model.d.ts +4 -0
  35. package/lib/macro-assignment/macro-assignment-model.d.ts.map +1 -1
  36. package/lib/network-test/network-test-container-model.d.ts +4 -0
  37. package/lib/network-test/network-test-container-model.d.ts.map +1 -1
  38. package/lib/network-test/network-test-model.d.ts +4 -0
  39. package/lib/network-test/network-test-model.d.ts.map +1 -1
  40. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts +12 -5
  41. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts.map +1 -1
  42. package/lib/plain-water/plain-water-model.d.ts +5 -2
  43. package/lib/plain-water/plain-water-model.d.ts.map +1 -1
  44. package/lib/reboot/reboot-model.d.ts +4 -0
  45. package/lib/reboot/reboot-model.d.ts.map +1 -1
  46. package/lib/settings/settings-model.d.ts +8 -2
  47. package/lib/settings/settings-model.d.ts.map +1 -1
  48. package/lib/settings/types/index.d.ts +1 -1
  49. package/lib/setup-step/setup-step-container-model.d.ts +4 -0
  50. package/lib/setup-step/setup-step-container-model.d.ts.map +1 -1
  51. package/lib/setup-step/setup-step-model.d.ts +4 -0
  52. package/lib/setup-step/setup-step-model.d.ts.map +1 -1
  53. package/lib/trouble-action/index.d.ts +4 -1
  54. package/lib/trouble-action/index.d.ts.map +1 -1
  55. package/lib/trouble-action/trouble-action-model.d.ts +267 -7
  56. package/lib/trouble-action/trouble-action-model.d.ts.map +1 -1
  57. package/lib/trouble-action/types/index.d.ts +95 -0
  58. package/lib/utilities/services/utilities-services.d.ts +1 -1
  59. package/lib/utilities/services/utilities-services.d.ts.map +1 -1
  60. package/lib/utilities/utilities-container-model.d.ts +4 -0
  61. package/lib/utilities/utilities-container-model.d.ts.map +1 -1
  62. package/lib/utilities/utilities-model.d.ts +4 -0
  63. package/lib/utilities/utilities-model.d.ts.map +1 -1
  64. package/package.json +6 -5
  65. package/start/start-model.d.ts +4 -0
  66. package/start/start-model.d.ts.map +1 -1
  67. package/utils/openapi-index.d.ts +2 -0
  68. package/utils/openapi-index.d.ts.map +1 -0
  69. package/utils/services/kosdev.ddk/snapshot/openapi.d.ts +971 -0
  70. package/utils/services/kosdev.ddk/snapshot/service.d.ts +122 -0
  71. package/utils/services/kosdev.ddk/snapshot/service.d.ts.map +1 -0
  72. package/utils/services-index.d.ts +2 -0
  73. package/utils/services-index.d.ts.map +1 -0
  74. package/lib/fcm-pump/fcm-pump-model.d.ts +0 -28
  75. package/lib/fcm-pump/fcm-pump-model.d.ts.map +0 -1
  76. package/lib/fcm-pump/fcm-pump-registration.d.ts +0 -87
  77. package/lib/fcm-pump/fcm-pump-registration.d.ts.map +0 -1
  78. package/lib/fcm-pump/index.d.ts +0 -5
  79. package/lib/fcm-pump/index.d.ts.map +0 -1
  80. package/lib/fcm-pump/services/fcm-pump-services.d.ts +0 -17
  81. package/lib/fcm-pump/services/fcm-pump-services.d.ts.map +0 -1
  82. package/lib/fcm-pump/services/index.d.ts +0 -2
  83. package/lib/fcm-pump/services/index.d.ts.map +0 -1
  84. package/lib/fcm-pump/types/index.d.ts +0 -5
  85. package/lib/lfcv-pump/index.d.ts +0 -5
  86. package/lib/lfcv-pump/index.d.ts.map +0 -1
  87. package/lib/lfcv-pump/lfcv-pump-model.d.ts +0 -20
  88. package/lib/lfcv-pump/lfcv-pump-model.d.ts.map +0 -1
  89. package/lib/lfcv-pump/lfcv-pump-registration.d.ts +0 -87
  90. package/lib/lfcv-pump/lfcv-pump-registration.d.ts.map +0 -1
  91. package/lib/lfcv-pump/services/index.d.ts +0 -2
  92. package/lib/lfcv-pump/services/index.d.ts.map +0 -1
  93. package/lib/lfcv-pump/services/lfcv-pump-services.d.ts +0 -10
  94. package/lib/lfcv-pump/services/lfcv-pump-services.d.ts.map +0 -1
  95. package/lib/lfcv-pump/types/index.d.ts +0 -5
  96. package/lib/spm-pump/index.d.ts +0 -5
  97. package/lib/spm-pump/index.d.ts.map +0 -1
  98. package/lib/spm-pump/services/index.d.ts +0 -2
  99. package/lib/spm-pump/services/index.d.ts.map +0 -1
  100. package/lib/spm-pump/services/spm-pump-services.d.ts +0 -7
  101. package/lib/spm-pump/services/spm-pump-services.d.ts.map +0 -1
  102. package/lib/spm-pump/spm-pump-model.d.ts +0 -26
  103. package/lib/spm-pump/spm-pump-model.d.ts.map +0 -1
  104. package/lib/spm-pump/spm-pump-registration.d.ts +0 -87
  105. package/lib/spm-pump/spm-pump-registration.d.ts.map +0 -1
  106. package/lib/spm-pump/types/index.d.ts +0 -5
  107. package/lib/trouble-action/trouble-action-registration.d.ts +0 -89
  108. package/lib/trouble-action/trouble-action-registration.d.ts.map +0 -1
@@ -1,89 +0,0 @@
1
- import { TroubleActionModel } from './trouble-action-model';
2
- import { TroubleActionOptions } from './types';
3
- import { SingletonKosModelRegistrationFactory } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
4
-
5
- /**
6
- * # TroubleAction
7
- *
8
- * The registration bean includes convenience methods for creating and working with TroubleActionModel instances.
9
- *
10
- * ## type
11
- * The type property is a string that identifies the model type.
12
- * 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
13
- * used when declaring dependencies on models.
14
- *
15
- * @example
16
- * ```typescript
17
- *
18
- * @kosDependency({modelType: TroubleAction.type, id: "troubleActionId"})
19
- * private troubleActionModel: TroubleActionModel;
20
- * ```
21
- *
22
- *
23
- * ## factory
24
- *
25
- * The factory method creates a factory function that can be used to create new TroubleActionModel instances.
26
- *
27
-
28
- * As this is a singleton model, the factory function accepts the model options as its argument.
29
- *
30
- * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
31
- * in this case and the existing model will be returned in its current state.
32
- *
33
- * @example
34
- * ```typescript
35
- * const model = TroubleAction.factory({
36
- * // Add option data
37
- * });
38
- * ```
39
-
40
-
41
- *
42
- * ## predicate
43
- *
44
- * [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 TroubleActionModel.
45
- *
46
- * @example
47
- * ```typescript
48
- *
49
- * const model: IKosDataModel = ...; // some model
50
- *
51
- * if (TroubleAction.predicate(model)) {
52
- * // if the function evaluates to true, the model is narrowed down to TroubleActionModel
53
- * // and the compiler will know that the model has the TroubleActionModel interface
54
- * model.updateAvailability(false);
55
- * }
56
- * ```
57
- *
58
- * ## registration
59
- *
60
- * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
61
- * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
62
- *
63
- *
64
- * @example
65
- *
66
- * In an application registration file you can declare the model registration as follows:
67
- *
68
- * **registration.ts**
69
- * ```typescript
70
- * import { TroubleAction } from "@kos-ui/project-models";
71
- * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
72
- *
73
- * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
74
- *
75
- * KosModelRegistry.dispense
76
- * .models()
77
- * .model(TroubleAction);
78
- * ```
79
- *
80
- * ## registration.singleton
81
-
82
- * The troubleAction model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
83
- * If the model does not yet exist, it will be created passing in the provided options to initialize it.
84
- *
85
- * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
86
-
87
- * */
88
- export declare const TroubleAction: SingletonKosModelRegistrationFactory<TroubleActionModel, TroubleActionOptions>;
89
- //# sourceMappingURL=trouble-action-registration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trouble-action-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/trouble-action/trouble-action-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkFK;AACL,eAAO,MAAM,aAAa,gFAMxB,CAAC"}