@kosdev-code/kos-freestyle-sdk 2.0.45 → 2.0.46

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 (121) hide show
  1. package/extension-utils-COesmx4N.js +201 -0
  2. package/extension-utils-COesmx4N.js.map +1 -0
  3. package/extension-utils-yKcm_im8.cjs +2 -0
  4. package/extension-utils-yKcm_im8.cjs.map +1 -0
  5. package/freestyle-registration-manager-D57Lznu_.js +1111 -0
  6. package/freestyle-registration-manager-D57Lznu_.js.map +1 -0
  7. package/freestyle-registration-manager-Dx8XJMpl.cjs +2 -0
  8. package/freestyle-registration-manager-Dx8XJMpl.cjs.map +1 -0
  9. package/index.cjs +1 -1
  10. package/index.js +28 -43
  11. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +5 -195
  12. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
  13. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts +87 -0
  14. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map +1 -0
  15. package/models/models/agitation-required-trouble/index.d.ts +2 -4
  16. package/models/models/agitation-required-trouble/index.d.ts.map +1 -1
  17. package/models/models/carb-agitator/carb-agitator-model.d.ts +6 -296
  18. package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
  19. package/models/models/{fcm-pump/fcm-pump-registration.d.ts → carb-agitator/carb-agitator-registration.d.ts} +20 -23
  20. package/models/models/carb-agitator/carb-agitator-registration.d.ts.map +1 -0
  21. package/models/models/carb-agitator/index.d.ts +1 -1
  22. package/models/models/carb-agitator/index.d.ts.map +1 -1
  23. package/models/models/carb-agitator/types/index.d.ts +8 -1
  24. package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts +8 -5
  25. package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts.map +1 -1
  26. package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +2 -4
  27. package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -1
  28. package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts +1 -5
  29. package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts.map +1 -1
  30. package/models/models/ice-agitator/ice-agitator-model.d.ts +9 -9
  31. package/models/models/ice-agitator/ice-agitator-model.d.ts.map +1 -1
  32. package/models/models/{spm-pump/spm-pump-registration.d.ts → ice-agitator/ice-agitator-registration.d.ts} +21 -23
  33. package/models/models/ice-agitator/ice-agitator-registration.d.ts.map +1 -0
  34. package/models/models/ice-agitator/index.d.ts +2 -1
  35. package/models/models/ice-agitator/index.d.ts.map +1 -1
  36. package/models/models/index.d.ts +0 -4
  37. package/models/models/index.d.ts.map +1 -1
  38. package/models/models/remote-tray/remote-tray-container-model.d.ts +14 -5
  39. package/models/models/remote-tray/remote-tray-container-model.d.ts.map +1 -1
  40. package/models/models/types/assembly.d.ts +3 -7
  41. package/models/models/types/assembly.d.ts.map +1 -1
  42. package/models/utils/extension-utils.d.ts +0 -3
  43. package/models/utils/extension-utils.d.ts.map +1 -1
  44. package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +7 -2
  45. package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -1
  46. package/models/utils/freestyle-registration-manager.d.ts +3 -3
  47. package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
  48. package/models/utils/index.d.ts +0 -1
  49. package/models/utils/index.d.ts.map +1 -1
  50. package/models.cjs +1 -1
  51. package/models.js +21 -36
  52. package/package.json +2 -3
  53. package/ui.cjs +1 -1
  54. package/ui.js +2 -2
  55. package/use-nutrition-info-Bb4itG4D.cjs +2 -0
  56. package/{use-nutrition-info-C_myxRvf.cjs.map → use-nutrition-info-Bb4itG4D.cjs.map} +1 -1
  57. package/{use-nutrition-info-CPEwk_O-.js → use-nutrition-info-Ca9_UnOV.js} +8 -8
  58. package/{use-nutrition-info-CPEwk_O-.js.map → use-nutrition-info-Ca9_UnOV.js.map} +1 -1
  59. package/extension-utils--qB2FP1I.js +0 -237
  60. package/extension-utils--qB2FP1I.js.map +0 -1
  61. package/extension-utils-DQSu9dSv.cjs +0 -2
  62. package/extension-utils-DQSu9dSv.cjs.map +0 -1
  63. package/kos-models.json +0 -180
  64. package/models/models/carb-agitator/services/carb-tank-services.d.ts +0 -29
  65. package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +0 -1
  66. package/models/models/cgp-pump/cgp-pump-model.d.ts +0 -24
  67. package/models/models/cgp-pump/cgp-pump-model.d.ts.map +0 -1
  68. package/models/models/cgp-pump/index.d.ts +0 -4
  69. package/models/models/cgp-pump/index.d.ts.map +0 -1
  70. package/models/models/cgp-pump/types/index.d.ts +0 -5
  71. package/models/models/fcm-pump/fcm-pump-model.d.ts +0 -28
  72. package/models/models/fcm-pump/fcm-pump-model.d.ts.map +0 -1
  73. package/models/models/fcm-pump/fcm-pump-registration.d.ts.map +0 -1
  74. package/models/models/fcm-pump/index.d.ts +0 -5
  75. package/models/models/fcm-pump/index.d.ts.map +0 -1
  76. package/models/models/fcm-pump/services/fcm-pump-services.d.ts +0 -17
  77. package/models/models/fcm-pump/services/fcm-pump-services.d.ts.map +0 -1
  78. package/models/models/fcm-pump/services/index.d.ts +0 -2
  79. package/models/models/fcm-pump/services/index.d.ts.map +0 -1
  80. package/models/models/fcm-pump/types/index.d.ts +0 -5
  81. package/models/models/lfcv-pump/index.d.ts +0 -3
  82. package/models/models/lfcv-pump/index.d.ts.map +0 -1
  83. package/models/models/lfcv-pump/lfcv-pump-model.d.ts +0 -21
  84. package/models/models/lfcv-pump/lfcv-pump-model.d.ts.map +0 -1
  85. package/models/models/lfcv-pump/types/index.d.ts +0 -5
  86. package/models/models/spm-pump/index.d.ts +0 -5
  87. package/models/models/spm-pump/index.d.ts.map +0 -1
  88. package/models/models/spm-pump/services/index.d.ts +0 -2
  89. package/models/models/spm-pump/services/index.d.ts.map +0 -1
  90. package/models/models/spm-pump/services/spm-pump-services.d.ts +0 -7
  91. package/models/models/spm-pump/services/spm-pump-services.d.ts.map +0 -1
  92. package/models/models/spm-pump/spm-pump-model.d.ts +0 -26
  93. package/models/models/spm-pump/spm-pump-model.d.ts.map +0 -1
  94. package/models/models/spm-pump/spm-pump-registration.d.ts.map +0 -1
  95. package/models/models/spm-pump/types/index.d.ts +0 -5
  96. package/models/utils/extensions/trouble/trouble-utils.d.ts +0 -10
  97. package/models/utils/extensions/trouble/trouble-utils.d.ts.map +0 -1
  98. package/models/utils/openapi-index.d.ts +0 -3
  99. package/models/utils/openapi-index.d.ts.map +0 -1
  100. package/models/utils/services/freestyle/1.6.5/openapi.d.ts +0 -1462
  101. package/models/utils/services/freestyle/1.6.5/service.d.ts +0 -122
  102. package/models/utils/services/freestyle/1.6.5/service.d.ts.map +0 -1
  103. package/models/utils/services/freestyle/1.8.1/openapi.d.ts +0 -1656
  104. package/models/utils/services/freestyle/1.8.1/service.d.ts +0 -122
  105. package/models/utils/services/freestyle/1.8.1/service.d.ts.map +0 -1
  106. package/models/utils/services/freestyle/daily/openapi.d.ts +0 -1937
  107. package/models/utils/services/freestyle/daily/service.d.ts +0 -122
  108. package/models/utils/services/freestyle/daily/service.d.ts.map +0 -1
  109. package/models/utils/services/handle/1.8.1/openapi.d.ts +0 -237
  110. package/models/utils/services/handle/1.8.1/service.d.ts +0 -122
  111. package/models/utils/services/handle/1.8.1/service.d.ts.map +0 -1
  112. package/models/utils/services/handle/daily/openapi.d.ts +0 -420
  113. package/models/utils/services/handle/daily/service.d.ts +0 -122
  114. package/models/utils/services/handle/daily/service.d.ts.map +0 -1
  115. package/models/utils/services-index.d.ts +0 -10
  116. package/models/utils/services-index.d.ts.map +0 -1
  117. package/service-BuugCicr.js +0 -1907
  118. package/service-BuugCicr.js.map +0 -1
  119. package/service-DSV9Dr2d.cjs +0 -2
  120. package/service-DSV9Dr2d.cjs.map +0 -1
  121. package/use-nutrition-info-C_myxRvf.cjs +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"freestyle-nozzle-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-nozzle/freestyle-nozzle-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,UAAU,2BAA2B,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAC9B,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;AAEjD,qBAEa,wBACX,YAAW,aAAa,EAAE,gBAAgB;IAE1C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,cAAc,CAAC,CAAiC;gBAEtD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,sBAAsB,EAC/B,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,EAE9B;IACD,IAAI,aAAa,+CAEhB;IAED,IAAI,gBAAgB;;;MAEnB;IAOK,uBAAuB;IA0BvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,MAAM,IAAI,IAAI;IAGR,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
1
+ {"version":3,"file":"freestyle-nozzle-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-nozzle/freestyle-nozzle-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,UAAU,2BAA2B,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAC9B,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;AAEjD,qBAEa,wBACX,YAAW,aAAa,EAAE,gBAAgB;IAE1C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,cAAc,CAAC,CAAiC;IACxD,OAAO,CAAC,SAAS,CAA6B;gBAE5C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,sBAAsB,EAC/B,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,EAE9B;IACD,IAAI,aAAa,+CAEhB;IAIK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA2B3B,MAAM,IAAI,IAAI;IAMR,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -1,6 +1,6 @@
1
1
  import { IceAgitatorOptions } from './types';
2
2
  import { PourState } from '@kosdev-code/kos-dispense-sdk';
3
- import { IKosDataModel, KosConfigProperty, KosLoggerAware, KosModelRegistrationType, KosMultipleFutureAwareFull, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
3
+ import { FutureAwareContainer, FutureContainer, IKosDataModel, KosConfigProperty, KosCreationContext, MultiFutureAware, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
4
4
 
5
5
  export type IceAgitatorModel = PublicModelInterface<IceAgitatorModelImpl>;
6
6
  export declare class IceAgitatorEvents {
@@ -8,14 +8,11 @@ export declare class IceAgitatorEvents {
8
8
  static TOPIC_AGITATION_ENDED: string;
9
9
  }
10
10
  export declare const MODEL_TYPE = "ice-agitator-model";
11
- type IceAgitatorModelType = KosMultipleFutureAwareFull<"pour" | "agitate" | "gate">;
12
- export interface IceAgitatorModelImpl extends IceAgitatorModelType, KosLoggerAware {
13
- }
14
- export declare class IceAgitatorModelImpl implements IKosDataModel {
15
- static Registration: KosModelRegistrationType<IceAgitatorModelImpl, IceAgitatorOptions>;
11
+ export declare class IceAgitatorModelImpl implements IKosDataModel, FutureContainer {
16
12
  id: string;
17
13
  name: string;
18
14
  path: string;
15
+ futureHandler: FutureAwareContainer<Record<string, unknown>> & MultiFutureAware<Record<string, unknown>>;
19
16
  volWithoutIceMl: KosConfigProperty<number>;
20
17
  durationSec: KosConfigProperty<number>;
21
18
  enableIceChuteClear: KosConfigProperty<boolean>;
@@ -30,11 +27,16 @@ export declare class IceAgitatorModelImpl implements IKosDataModel {
30
27
  private iceChuteOpen;
31
28
  statePath: string;
32
29
  private _allIceTypes;
30
+ private logger;
33
31
  currentState: PourState;
34
- constructor(modelId: string, options: IceAgitatorOptions);
32
+ constructor(modelId: string, options: IceAgitatorOptions, context: KosCreationContext);
35
33
  get iceTypes(): string[];
36
34
  get isAgitating(): boolean;
37
35
  get isIceChuteOpen(): boolean;
36
+ get future(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>> | undefined;
37
+ get pourFuture(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>> | undefined;
38
+ get agitateFuture(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>> | undefined;
39
+ get gateFuture(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>> | undefined;
38
40
  /**
39
41
  * A derived value that indicates if the nozzle is currently pouring a beverage.
40
42
  * @readonly
@@ -61,6 +63,4 @@ export declare class IceAgitatorModelImpl implements IKosDataModel {
61
63
  init(): Promise<void>;
62
64
  load(): Promise<void>;
63
65
  }
64
- export declare const IceAgitator: KosModelRegistrationType<IceAgitatorModelImpl, IceAgitatorOptions>;
65
- export {};
66
66
  //# sourceMappingURL=ice-agitator-model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ice-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/ice-agitator-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,0BAA0B,EAE1B,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAS1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAE1E,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,uBAAuB,SAA2C;IACzE,MAAM,CAAC,qBAAqB,SAAyC;CACtE;AAED,eAAO,MAAM,UAAU,uBAAuB,CAAC;AAI/C,KAAK,oBAAoB,GAAG,0BAA0B,CACpD,MAAM,GAAG,SAAS,GAAG,MAAM,CAC5B,CAAC;AAGF,MAAM,WAAW,oBACf,SAAQ,oBAAoB,EAC1B,cAAc;CAAG;AAErB,qBAGa,oBAAqB,YAAW,aAAa;IACxD,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAC3C,oBAAoB,EACpB,kBAAkB,CACnB,CAAC;IACF,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAOb,eAAe,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAS5C,WAAW,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMxC,mBAAmB,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAMjD,uBAAuB,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMpD,wBAAwB,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMrD,6BAA6B,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAM1D,cAAc,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAM3C,IAAI,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMjC,cAAc,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAS3C,aAAa,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAE1C,OAAO,CAAC,SAAS,CAAyB;IAG1C,OAAO,CAAC,YAAY,CAAyB;IAE7C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,YAAY,CAAW;IAE/B,YAAY,EAAE,SAAS,CAAkB;gBAC7B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB;IAQxD,IAAI,QAAQ,IAAI,MAAM,EAAE,CAEvB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,cAAc,IAAI,OAAO,CAE5B;IAID;;;OAGG;IACH,IAAI,SAAS,YAOZ;IAED;;;;;SAKK;IACL,IAAI,OAAO,YAEV;IACD,OAAO,CAAC,eAAe;IAQV,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM;IAyBrC;;SAEK;IACQ,iBAAiB;IAkBxB,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM;IAc5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM;IAa/B,qBAAqB;IAaf,aAAa,CAAC,IAAI,EAAE,MAAM;IAIhC,kBAAkB,6FAGhB;IAEI,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAa5B;AAED,eAAO,MAAM,WAAW,oEAAoC,CAAC"}
1
+ {"version":3,"file":"ice-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/ice-agitator-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,iBAAiB,EAEjB,kBAAkB,EAElB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAcjC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAS1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAE1E,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,uBAAuB,SAA2C;IACzE,MAAM,CAAC,qBAAqB,SAAyC;CACtE;AACD,eAAO,MAAM,UAAU,uBAAuB,CAAC;AAE/C,qBACa,oBAAqB,YAAW,aAAa,EAAE,eAAe;IACzE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC1D,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAK5C,eAAe,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAS5C,WAAW,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMxC,mBAAmB,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAMjD,uBAAuB,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMpD,wBAAwB,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMrD,6BAA6B,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAM1D,cAAc,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAM3C,IAAI,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMjC,cAAc,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAS3C,aAAa,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAE1C,OAAO,CAAC,SAAS,CAAyB;IAG1C,OAAO,CAAC,YAAY,CAAyB;IAE7C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,YAAY,CAAW;IAC/B,OAAO,CAAC,MAAM,CAAmB;IACjC,YAAY,EAAE,SAAS,CAAkB;gBAEvC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB;IAY7B,IAAI,QAAQ,IAAI,MAAM,EAAE,CAEvB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,MAAM,wFAET;IAED,IAAI,UAAU,wFAEb;IAED,IAAI,aAAa,wFAEhB;IACD,IAAI,UAAU,wFAEb;IAED;;;OAGG;IACH,IAAI,SAAS,YAOZ;IAED;;;;;SAKK;IACL,IAAI,OAAO,YAEV;IACD,OAAO,CAAC,eAAe;IAQV,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM;IAyBrC;;SAEK;IACQ,iBAAiB;IAiBxB,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM;IAc5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM;IAa/B,qBAAqB;IAaf,aAAa,CAAC,IAAI,EAAE,MAAM;IAIhC,kBAAkB,6FAGhB;IAEI,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAS5B"}
@@ -1,11 +1,11 @@
1
- import { SpmPumpModel } from './spm-pump-model';
2
- import { SpmPumpOptions } from './types';
1
+ import { IceAgitatorOptions } from './types';
2
+ import { IceAgitatorModel } from './ice-agitator-model';
3
3
  import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
4
 
5
5
  /**
6
- * # SpmPump
6
+ * # IceAgitator
7
7
  *
8
- * The registration bean includes convenience methods for creating and working with SpmPumpModel instances.
8
+ * The registration bean includes convenience methods for creating and working with IceAgitatorModel instances.
9
9
  *
10
10
  * ## type
11
11
  * The type property is a string that identifies the model type.
@@ -15,14 +15,14 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
15
15
  * @example
16
16
  * ```typescript
17
17
  *
18
- * @kosDependency({modelType: SpmPump.type, id: "spmPumpId"})
19
- * private spmPumpModel: SpmPumpModel;
18
+ * @kosDependency({modelType: IceAgitator.type, id: "iceAgitatorId"})
19
+ * private iceAgitatorModel: IceAgitatorModel;
20
20
  * ```
21
21
  *
22
22
  *
23
23
  * ## factory
24
24
  *
25
- * The factory method creates a factory function that can be used to create new SpmPumpModel instances.
25
+ * The factory method creates a factory function that can be used to create new IceAgitatorModel instances.
26
26
  *
27
27
 
28
28
  * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
@@ -32,7 +32,7 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
32
32
  *
33
33
  * @example
34
34
  * ```typescript
35
- * const model = SpmPump.factory("spmPumpId")({
35
+ * const model = IceAgitator.factory("iceAgitatorId")({
36
36
  * // Add option data
37
37
  * });
38
38
  * ```
@@ -41,16 +41,16 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
41
41
  *
42
42
  * ## predicate
43
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 SpmPumpModel.
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 IceAgitatorModel.
45
45
  *
46
46
  * @example
47
47
  * ```typescript
48
48
  *
49
49
  * const model: IKosDataModel = ...; // some model
50
50
  *
51
- * if (SpmPump.predicate(model)) {
52
- * // if the function evaluates to true, the model is narrowed down to SpmPumpModel
53
- * // and the compiler will know that the model has the SpmPumpModel interface
51
+ * if (IceAgitator.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to IceAgitatorModel
53
+ * // and the compiler will know that the model has the IceAgitatorModel interface
54
54
  * model.updateAvailability(false);
55
55
  * }
56
56
  * ```
@@ -67,21 +67,19 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
67
67
  *
68
68
  * **registration.ts**
69
69
  * ```typescript
70
- * import { SpmPump } 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(SpmPump);
70
+ * import { IceAgitator } from "@kos-ui/kos-dispenser-model";
71
+ * ...
72
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
73
+ * export const kosModels: IKosRegistry["models"] = {
74
+ * ...IceAgitator.registration,
75
+ * };
78
76
  * ```
79
77
  *
80
78
  * ## registration.singleton
81
79
 
82
- * The spmPump 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.
80
+ * The iceAgitator 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.
83
81
  * If the factory function is called with an ID that already exists, the existing model will be returned.
84
82
 
85
83
  * */
86
- export declare const SpmPump: KosModelRegistrationFactory<SpmPumpModel, SpmPumpOptions>;
87
- //# sourceMappingURL=spm-pump-registration.d.ts.map
84
+ export declare const IceAgitator: KosModelRegistrationFactory<IceAgitatorModel, IceAgitatorOptions>;
85
+ //# sourceMappingURL=ice-agitator-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ice-agitator-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/ice-agitator-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AAEL,eAAO,MAAM,WAAW,mEAMtB,CAAC"}
@@ -1,3 +1,4 @@
1
- export { IceAgitator, IceAgitatorEvents, type IceAgitatorModel, } from './ice-agitator-model';
1
+ export { IceAgitatorEvents, type IceAgitatorModel } from './ice-agitator-model';
2
+ export { IceAgitator } from './ice-agitator-registration';
2
3
  export type * from './types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAE9B,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,mBAAmB,SAAS,CAAC"}
@@ -1,14 +1,10 @@
1
1
  export * from './carb-agitator';
2
2
  export * from './cartridge-agitator';
3
- export * from './cgp-pump';
4
- export * from './fcm-pump';
5
3
  export * from './freestyle-assembly';
6
4
  export * from './freestyle-holder';
7
5
  export * from './freestyle-nozzle';
8
6
  export * from './freestyle-pump';
9
7
  export * from './ice-agitator';
10
- export * from './lfcv-pump';
11
- export * from './spm-pump';
12
8
  export * from './types/assembly';
13
9
  export * from './types/ingredients';
14
10
  export * from './types/pumps';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -1,12 +1,21 @@
1
+ import { RemoteTrayContainerOptions } from './types';
1
2
  import { RemoteTrayModel } from './remote-tray-model';
2
- import { IKosDataModel, IKosIdentifiable, KosContainerAware, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
3
+ import { IKosDataModel, IKosIdentifiable, IKosModelContainer, IKosModelHolder, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
3
4
 
4
5
  export declare const MODEL_TYPE = "remote-tray-container-model";
5
6
  export type RemoteTrayContainerModel = PublicModelInterface<RemoteTrayContainerModelImpl>;
6
- export interface RemoteTrayContainerModelImpl extends KosContainerAware<RemoteTrayModel> {
7
- }
8
- export declare class RemoteTrayContainerModelImpl implements IKosIdentifiable, IKosDataModel {
7
+ export declare class RemoteTrayContainerModelImpl implements IKosIdentifiable, IKosModelHolder<RemoteTrayModel>, IKosDataModel {
9
8
  id: string;
10
- constructor(modelId: string);
9
+ private logger;
10
+ private _models;
11
+ constructor(modelId: string, options: RemoteTrayContainerOptions, context: KosCreationContext);
12
+ getModel(id: string): RemoteTrayModel | undefined;
13
+ get models(): IKosModelContainer<RemoteTrayModel>;
14
+ get data(): RemoteTrayModel[];
15
+ updateModel(_options: RemoteTrayContainerOptions): void;
16
+ addModel(model: RemoteTrayModel): void;
17
+ removeModel(id: string): void;
18
+ init(): Promise<void>;
19
+ load(): Promise<void>;
11
20
  }
12
21
  //# sourceMappingURL=remote-tray-container-model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-tray-container-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/remote-tray/remote-tray-container-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,UAAU,gCAAgC,CAAC;AAExD,MAAM,MAAM,wBAAwB,GAClC,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;AAGrD,MAAM,WAAW,4BACf,SAAQ,iBAAiB,CAAC,eAAe,CAAC;CAAG;AAC/C,qBAGa,4BACX,YAAW,gBAAgB,EAAE,aAAa;IAE1C,EAAE,EAAE,MAAM,CAAC;gBAEC,OAAO,EAAE,MAAM;CAG5B"}
1
+ {"version":3,"file":"remote-tray-container-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/remote-tray/remote-tray-container-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAEf,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAE1D,eAAO,MAAM,UAAU,gCAAgC,CAAC;AAExD,MAAM,MAAM,wBAAwB,GAClC,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;AAErD,qBACa,4BACX,YAAW,gBAAgB,EAAE,eAAe,CAAC,eAAe,CAAC,EAAE,aAAa;IAE5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACvB,OAAO,CAAC,OAAO,CAAsC;gBAE7D,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,kBAAkB;IAY7B,QAAQ,CAAC,EAAE,EAAE,MAAM;IAGnB,IAAI,MAAM,wCAET;IACD,IAAI,IAAI,sBAEP;IAED,WAAW,CAAC,QAAQ,EAAE,0BAA0B,GAAG,IAAI;IAIvD,QAAQ,CAAC,KAAK,EAAE,eAAe;IAI/B,WAAW,CAAC,EAAE,EAAE,MAAM;IAKhB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAMrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -1,25 +1,21 @@
1
1
  import { RemoteTrayContainerModel } from '../remote-tray';
2
2
  import { IceAgitatorModel } from '../ice-agitator';
3
3
  import { CartridgeAgitatorContainerModel } from '../cartridge-agitator';
4
- import { KosStateProp } from '@kosdev-code/kos-ui-sdk';
4
+ import { CarbAgitatorModel } from '../carb-agitator';
5
5
 
6
6
  export interface FreestyleHolderModelExt {
7
7
  agitated?: boolean;
8
8
  }
9
9
  export interface FreestyleModelAssemblyExt {
10
10
  iceAgitator: IceAgitatorModel;
11
+ carbAgitator: CarbAgitatorModel;
11
12
  cartridgeAgitators: CartridgeAgitatorContainerModel;
12
13
  remoteTrays: RemoteTrayContainerModel;
13
14
  supportsIce: boolean;
14
15
  supportsCarb: boolean;
15
16
  }
16
- export type Agitator = IceAgitatorModel;
17
+ export type Agitator = IceAgitatorModel | CarbAgitatorModel;
17
18
  export interface ActiveAware {
18
19
  active: boolean;
19
20
  }
20
- export interface ProbeAware {
21
- highProbeWet: KosStateProp<boolean>;
22
- lowProbeWet: KosStateProp<boolean>;
23
- filling: KosStateProp<boolean>;
24
- }
25
21
  //# sourceMappingURL=assembly.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/types/assembly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,kBAAkB,EAAE,+BAA+B,CAAC;IACpD,WAAW,EAAE,wBAAwB,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,QAAQ,GAAG,gBAAgB,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAEpC,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAEnC,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/types/assembly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,YAAY,EAAE,iBAAiB,CAAC;IAChC,kBAAkB,EAAE,+BAA+B,CAAC;IACpD,WAAW,EAAE,wBAAwB,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB"}
@@ -16,9 +16,6 @@ export declare class FreestyleExtensionManager {
16
16
  registerFreestyleAssemblyMapper(): void;
17
17
  registerFreestyleIngredientIndex(): void;
18
18
  registerFreestyleIngredientDataMapper(): void;
19
- registerFreestyleColorMapper(): void;
20
- registerFreestyleRankMapper(): void;
21
- registerFreestyleRoleMapper(): void;
22
19
  registerFreestyleIceAgitator(): void;
23
20
  registerFreestyleAgitationRequiredTroubleMapper(): void;
24
21
  initializeFreestyleExtension(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extension-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,oBAAoB,EAKrB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,4CAA4C,CAAC;AAWpD,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAE9D,qBAAa,yBAAyB;IACpC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,wBAAwB,CAAC;gBACvB,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB;IAK1E;;;SAGK;IACL,+BAA+B,CAAC,KAAK,GAAE,uBAA4B;IAQnE,+BAA+B;IAI/B,+BAA+B;IAI/B,gCAAgC;IAIhC,qCAAqC;IAIrC,4BAA4B;IAI5B,2BAA2B;IAI3B,2BAA2B;IAI3B,4BAA4B;IAS5B,+CAA+C;IAS/C,4BAA4B;CAW7B;AACD;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,SAAS,EAAE,yBAAyB,CAAC;;CAMtC"}
1
+ {"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extension-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,oBAAoB,EAKrB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,4CAA4C,CAAC;AAMpD,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAE9D,qBAAa,yBAAyB;IACpC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,wBAAwB,CAAC;gBACvB,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB;IAK1E;;;SAGK;IACL,+BAA+B,CAAC,KAAK,GAAE,uBAA4B;IAQnE,+BAA+B;IAI/B,+BAA+B;IAI/B,gCAAgC;IAIhC,qCAAqC;IAIrC,4BAA4B;IAS5B,+CAA+C;IAS/C,4BAA4B;CAQ7B;AACD;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,SAAS,EAAE,yBAAyB,CAAC;;CAMtC"}
@@ -1,14 +1,19 @@
1
1
  import { FreestyleAssemblyResponse } from './types';
2
2
  import { FreestyleModelAssemblyExt } from '../../../models/types/assembly';
3
+ import { IceAgitatorModel } from '../../../models/ice-agitator';
4
+ import { CarbAgitatorModel } from '../../../models/carb-agitator';
3
5
  import { DataMapper } from '@kosdev-code/kos-ui-sdk';
4
6
 
5
- export type AgitatorTypes = "iceAgitator";
7
+ export type AgitatorTypes = "iceAgitator" | "carbAgitator";
6
8
  export declare const AGITATOR_KEYS: AgitatorTypes[];
7
9
  export declare const AGITATOR_FACTORY_MAP: {
8
- iceAgitator: import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<import('../../../models/ice-agitator/ice-agitator-model').IceAgitatorModelImpl, import('../../../models/ice-agitator').IceAgitatorOptions>;
10
+ iceAgitator: (id: string) => (options?: import('../../../models/ice-agitator').IceAgitatorOptions | undefined, parentId?: string | undefined) => IceAgitatorModel;
11
+ carbAgitator: (id: string) => (options?: import('../../../models/carb-agitator').CarbAgitatorOptions | undefined, parentId?: string | undefined) => CarbAgitatorModel;
9
12
  };
10
13
  export declare const AGITATOR_NAME_MAP: {
11
14
  iceAgitator: string;
15
+ carbAgitator: string;
16
+ cartridgeAgitator: string;
12
17
  };
13
18
  export declare const freestyleAssemblyDataMapper: DataMapper<FreestyleAssemblyResponse, FreestyleModelAssemblyExt>;
14
19
  //# sourceMappingURL=assembly-data-mapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assembly-data-mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/assembly/assembly-data-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAYlE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGzD,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAC1C,eAAO,MAAM,aAAa,EAAE,aAAa,EAAoB,CAAC;AAC9D,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AACF,eAAO,MAAM,iBAAiB;;CAE7B,CAAC;AAIF,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAClD,yBAAyB,EACzB,yBAAyB,CAiE1B,CAAC"}
1
+ {"version":3,"file":"assembly-data-mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/assembly/assembly-data-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGzD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;AAC3D,eAAO,MAAM,aAAa,EAAE,aAAa,EAAoC,CAAC;AAC9E,eAAO,MAAM,oBAAoB;;;CAGhC,CAAC;AACF,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAC;AAIF,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAClD,yBAAyB,EACzB,yBAAyB,CA8D1B,CAAC"}
@@ -3,7 +3,7 @@ import { KosModelRegistry as DispenseModelRegistration } from '@kosdev-code/kos-
3
3
 
4
4
  export declare const registerFreestyleModels: <R>(root: R) => () => {
5
5
  preload: (type: string) => RegistrationResult<R>;
6
- model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<R>;
6
+ model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('packages/sdk/kos-ui-sdk/src/core/core/registration/model-registration').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<R>;
7
7
  companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<R>;
8
8
  legacy: <T_1 extends import('@kosdev-code/kos-ui-sdk').IKosModelRegistration>(type: string, registration: T_1) => RegistrationResult<R>;
9
9
  };
@@ -20,7 +20,7 @@ declare const _KosModelRegistry: {
20
20
  models: () => RegistrationResult<{}>;
21
21
  };
22
22
  preload: (type: string) => RegistrationResult<unknown>;
23
- model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<unknown>;
23
+ model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('packages/sdk/kos-ui-sdk/src/core/core/registration/model-registration').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<unknown>;
24
24
  companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<unknown>;
25
25
  dispense: {
26
26
  models: () => RegistrationResult<{
@@ -28,7 +28,7 @@ declare const _KosModelRegistry: {
28
28
  models: () => RegistrationResult<{}>;
29
29
  };
30
30
  preload: (type: string) => RegistrationResult<unknown>;
31
- model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<unknown>;
31
+ model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('packages/sdk/kos-ui-sdk/src/core/core/registration/model-registration').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<unknown>;
32
32
  companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<unknown>;
33
33
  }>;
34
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"freestyle-registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/freestyle-registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,IAAI,yBAAyB,EAU9C,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAKL,mBAAmB,EAEnB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAmBjC,eAAO,MAAM,uBAAuB,YACxB,CAAC;;;;;CA+GV,CAAC;AAEJ,KAAK,aAAa,CAAC,CAAC,IAAI,OAAO,yBAAyB,GAAG;IACzD,SAAS,EAAE;QAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IACnD,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACtE,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAEtB,CAAC;AAcF,KAAK,oBAAoB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,gBAAgB,EAAE,oBAA+C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"freestyle-registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/freestyle-registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,IAAI,yBAAyB,EAU9C,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAKL,mBAAmB,EAEnB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAYjC,eAAO,MAAM,uBAAuB,YACxB,CAAC;;;;;CA2GV,CAAC;AAEJ,KAAK,aAAa,CAAC,CAAC,IAAI,OAAO,yBAAyB,GAAG;IACzD,SAAS,EAAE;QAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IACnD,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACtE,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAEtB,CAAC;AAcF,KAAK,oBAAoB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,gBAAgB,EAAE,oBAA+C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -2,5 +2,4 @@ export * from './extension-utils';
2
2
  export * from './extensions/assembly/types';
3
3
  export * from './extensions/availability/types';
4
4
  export * from './freestyle-registration-manager';
5
- export * from './services-index';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC"}
package/models.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./service-DSV9Dr2d.cjs"),r=require("./extension-utils-DQSu9dSv.cjs");require("@kosdev-code/kos-ui-sdk");require("@kosdev-code/kos-dispense-sdk");exports.AGITATION_REQUIRED_TROUBLE=e.AGITATION_REQUIRED_TROUBLE;exports.AgitationRequiredTrouble=e.AgitationRequiredTrouble;exports.CarbAgitator=e.CarbAgitator;exports.CartridgeAgitator=e.CartridgeAgitator;exports.CartridgeAgitatorContainer=e.CartridgeAgitatorContainer;exports.CartridgeAgitatorEvents=e.CartridgeAgitatorEvents;exports.CgpPump=e.CgpPump;exports.FREESTYLE_SERVICE=e.service;exports.FREESTYLE_SERVICE_1_6_5=e.service$1;exports.FREESTYLE_SERVICE_1_8_1=e.service;exports.FREESTYLE_SERVICE_DAILY=e.service$2;exports.FREESTYLE_SERVICE_LATEST=e.service$2;exports.FcmPump=e.FcmPump;exports.FreestyleAssembly=e.FreestyleAssembly;exports.FreestyleHolder=e.FreestyleHolder;exports.FreestyleNozzle=e.FreestyleNozzle;exports.FreestylePump=e.FreestylePump;exports.HANDLE_SERVICE=e.service$3;exports.HANDLE_SERVICE_1_8_1=e.service$3;exports.HANDLE_SERVICE_DAILY=e.service$4;exports.HANDLE_SERVICE_LATEST=e.service$4;exports.IceAgitator=e.IceAgitator;exports.IceAgitatorEvents=e.IceAgitatorEvents;exports.KosModelRegistry=e.KosModelRegistry;exports.LfcvPump=e.LfcvPump;exports.SpmPump=e.SpmPump;exports.registerFreestyleModels=e.registerFreestyleModels;exports.EXTENSION_PLUGIN_VISIBILITY=r.EXTENSION_PLUGIN_VISIBILITY;exports.FcmPumpServices=r.index;exports.FreestyleExtensionManager=r.FreestyleExtensionManager;exports.FreestyleNozzleServices=r.index$1;exports.FreestylePumpServices=r.index$2;exports.KosExtensionManager=r.KosExtensionManager;exports.SpmPumpServices=r.index$3;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./freestyle-registration-manager-Dx8XJMpl.cjs"),r=require("./extension-utils-yKcm_im8.cjs");require("@kosdev-code/kos-ui-sdk");require("@kosdev-code/kos-dispense-sdk");exports.AGITATION_REQUIRED_TROUBLE=e.AGITATION_REQUIRED_TROUBLE;exports.AgitationRequiredTrouble=e.AgitationRequiredTrouble;exports.CarbAgitator=e.CarbAgitator;exports.CartridgeAgitator=e.CartridgeAgitator;exports.CartridgeAgitatorContainer=e.CartridgeAgitatorContainer;exports.CartridgeAgitatorEvents=e.CartridgeAgitatorEvents;exports.FreestyleAssembly=e.FreestyleAssembly;exports.FreestyleHolder=e.FreestyleHolder;exports.FreestyleNozzle=e.FreestyleNozzle;exports.FreestylePump=e.FreestylePump;exports.IceAgitator=e.IceAgitator;exports.IceAgitatorEvents=e.IceAgitatorEvents;exports.KosModelRegistry=e.KosModelRegistry;exports.registerFreestyleModels=e.registerFreestyleModels;exports.EXTENSION_PLUGIN_VISIBILITY=r.EXTENSION_PLUGIN_VISIBILITY;exports.FreestyleExtensionManager=r.FreestyleExtensionManager;exports.FreestyleNozzleServices=r.index;exports.FreestylePumpServices=r.index$1;exports.KosExtensionManager=r.KosExtensionManager;
2
2
  //# sourceMappingURL=models.cjs.map
package/models.js CHANGED
@@ -1,41 +1,26 @@
1
- import { A as r, j as t, C as _, c as i, a as S, b as o, d as I, s as m, k as A, s as R, l as L, l, F, e as g, f as C, g as p, h as T, m as n, m as c, n as u, n as y, I as N, i as V, K as P, L as d, S as Y, r as v } from "./service-BuugCicr.js";
2
- import { E as b, i as H, F as f, a as x, b as z, K, c as M } from "./extension-utils--qB2FP1I.js";
1
+ import { A as t, h as o, C as i, c as g, a as l, b as I, F as n, d as A, e as y, f as E, g as F, I as d, K as m, r as p } from "./freestyle-registration-manager-D57Lznu_.js";
2
+ import { E as N, F as T, i as c, a as R, K as b } from "./extension-utils-COesmx4N.js";
3
3
  import "@kosdev-code/kos-ui-sdk";
4
4
  import "@kosdev-code/kos-dispense-sdk";
5
5
  export {
6
- r as AGITATION_REQUIRED_TROUBLE,
7
- t as AgitationRequiredTrouble,
8
- _ as CarbAgitator,
9
- i as CartridgeAgitator,
10
- S as CartridgeAgitatorContainer,
11
- o as CartridgeAgitatorEvents,
12
- I as CgpPump,
13
- b as EXTENSION_PLUGIN_VISIBILITY,
14
- m as FREESTYLE_SERVICE,
15
- A as FREESTYLE_SERVICE_1_6_5,
16
- R as FREESTYLE_SERVICE_1_8_1,
17
- L as FREESTYLE_SERVICE_DAILY,
18
- l as FREESTYLE_SERVICE_LATEST,
19
- F as FcmPump,
20
- H as FcmPumpServices,
21
- g as FreestyleAssembly,
22
- f as FreestyleExtensionManager,
23
- C as FreestyleHolder,
24
- p as FreestyleNozzle,
25
- x as FreestyleNozzleServices,
26
- T as FreestylePump,
27
- z as FreestylePumpServices,
28
- n as HANDLE_SERVICE,
29
- c as HANDLE_SERVICE_1_8_1,
30
- u as HANDLE_SERVICE_DAILY,
31
- y as HANDLE_SERVICE_LATEST,
32
- N as IceAgitator,
33
- V as IceAgitatorEvents,
34
- K as KosExtensionManager,
35
- P as KosModelRegistry,
36
- d as LfcvPump,
37
- Y as SpmPump,
38
- M as SpmPumpServices,
39
- v as registerFreestyleModels
6
+ t as AGITATION_REQUIRED_TROUBLE,
7
+ o as AgitationRequiredTrouble,
8
+ i as CarbAgitator,
9
+ g as CartridgeAgitator,
10
+ l as CartridgeAgitatorContainer,
11
+ I as CartridgeAgitatorEvents,
12
+ N as EXTENSION_PLUGIN_VISIBILITY,
13
+ n as FreestyleAssembly,
14
+ T as FreestyleExtensionManager,
15
+ A as FreestyleHolder,
16
+ y as FreestyleNozzle,
17
+ c as FreestyleNozzleServices,
18
+ E as FreestylePump,
19
+ R as FreestylePumpServices,
20
+ F as IceAgitator,
21
+ d as IceAgitatorEvents,
22
+ b as KosExtensionManager,
23
+ m as KosModelRegistry,
24
+ p as registerFreestyleModels
40
25
  };
41
26
  //# sourceMappingURL=models.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosdev-code/kos-freestyle-sdk",
3
- "version": "2.0.45",
3
+ "version": "2.0.46",
4
4
  "type": "module",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",
@@ -26,13 +26,12 @@
26
26
  "@kosdev-code/kos-ui-sdk": "~2.0.0",
27
27
  "@kosdev-code/kos-dispense-sdk": "~2.0.0"
28
28
  },
29
- "kosModels": "./kos-models.json",
30
29
  "publishConfig": {
31
30
  "registry": "https://registry.npmjs.org/"
32
31
  },
33
32
  "kos": {
34
33
  "build": {
35
- "gitHash": "7e66917455c898a3f35128681c753862339b5fe3"
34
+ "gitHash": "b01d233cf06c6bc0ac931637ac0882a9a84f7125"
36
35
  }
37
36
  }
38
37
  }
package/ui.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-nutrition-info-C_myxRvf.cjs");require("@kosdev-code/kos-dispense-sdk");require("@kosdev-code/kos-ui-sdk");require("./service-DSV9Dr2d.cjs");require("@emotion/react/jsx-runtime");require("react");exports.useFreestyleAssemblyContext=e.useFreestyleAssemblyContext;exports.useFreestyleNozzleContext=e.useFreestyleNozzleContext;exports.useIceAgitator=e.useIceAgitator;exports.useNutritionInfo=e.useNutritionInfo;exports.withIceAgitator=e.withIceAgitator;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-nutrition-info-Bb4itG4D.cjs");require("@kosdev-code/kos-dispense-sdk");require("@kosdev-code/kos-ui-sdk");require("./freestyle-registration-manager-Dx8XJMpl.cjs");require("@emotion/react/jsx-runtime");require("react");exports.useFreestyleAssemblyContext=e.useFreestyleAssemblyContext;exports.useFreestyleNozzleContext=e.useFreestyleNozzleContext;exports.useIceAgitator=e.useIceAgitator;exports.useNutritionInfo=e.useNutritionInfo;exports.withIceAgitator=e.withIceAgitator;
2
2
  //# sourceMappingURL=ui.cjs.map
package/ui.js CHANGED
@@ -1,7 +1,7 @@
1
- import { u as m, a as p, b as u, c as l, w as n } from "./use-nutrition-info-CPEwk_O-.js";
1
+ import { u as m, a as p, b as u, c as l, w as n } from "./use-nutrition-info-Ca9_UnOV.js";
2
2
  import "@kosdev-code/kos-dispense-sdk";
3
3
  import "@kosdev-code/kos-ui-sdk";
4
- import "./service-BuugCicr.js";
4
+ import "./freestyle-registration-manager-D57Lznu_.js";
5
5
  import "@emotion/react/jsx-runtime";
6
6
  import "react";
7
7
  export {
@@ -0,0 +1,2 @@
1
+ "use strict";const f=require("@kosdev-code/kos-dispense-sdk"),r=require("@kosdev-code/kos-ui-sdk"),i=require("./freestyle-registration-manager-Dx8XJMpl.cjs"),c=require("@emotion/react/jsx-runtime"),u=require("react"),d=()=>{const{model:e}=f.useAssemblyContext();return e?r.getKosCompanionModel(e,i.FreestyleAssembly.type):null},y=()=>{const{model:e}=f.useNozzleContext();return e?r.getKosCompanionModel(e,i.FreestyleNozzle.type):null},a=e=>{const t=e;return r.useKosModel({modelId:t,modelType:i.IceAgitator.type,options:{}})};function m(e){return t=>s=>{const{model:n,status:o,KosModelLoader:l}=a(t);return c.jsx(l,{...o,children:c.jsx(e,{...s,iceAgitator:n})})}}const g=(e,t)=>{if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0},z=e=>{const t=y(),[s,n]=u.useState(),o=u.useRef([]);return u.useEffect(()=>{t&&!g(e,o.current)&&(t.cupSizes=e,o.current=e);const l=r.kosAutoEffect(()=>{t&&n(t.nutritionInfo)});return()=>{l()}},[e,t]),s};exports.useFreestyleAssemblyContext=d;exports.useFreestyleNozzleContext=y;exports.useIceAgitator=a;exports.useNutritionInfo=z;exports.withIceAgitator=m;
2
+ //# sourceMappingURL=use-nutrition-info-Bb4itG4D.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-nutrition-info-C_myxRvf.cjs","sources":["../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-assembly/use-freestyle-assembly.ts","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.ts","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/ice-agitator/use-ice-agitator.ts","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/ice-agitator/with-ice-agitator.tsx","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/nutrition/use-nutrition-info.ts"],"sourcesContent":["import { useAssemblyContext } from \"@kosdev-code/kos-dispense-sdk\";\nimport { getKosCompanionModel } from \"@kosdev-code/kos-ui-sdk\";\nimport {\n FreestyleAssembly,\n type FreestyleAssemblyModel,\n} from \"../../../models\";\n\nexport const useFreestyleAssemblyContext =\n (): FreestyleAssemblyModel | null => {\n const { model } = useAssemblyContext();\n\n const freestyleAssembly = model\n ? getKosCompanionModel<FreestyleAssemblyModel>(\n model,\n FreestyleAssembly.type\n )\n : null;\n\n return freestyleAssembly;\n };\n","import { useNozzleContext } from \"@kosdev-code/kos-dispense-sdk\";\nimport { getKosCompanionModel } from \"@kosdev-code/kos-ui-sdk\";\nimport { FreestyleNozzle, type FreestyleNozzleModel } from \"../../../models\";\n\nexport const useFreestyleNozzleContext = (): FreestyleNozzleModel | null => {\n const { model } = useNozzleContext();\n\n const freestyleNozzle = model\n ? getKosCompanionModel<FreestyleNozzleModel>(model, FreestyleNozzle.type)\n : null;\n\n return freestyleNozzle;\n};\n","import { useKosModel } from \"@kosdev-code/kos-ui-sdk\";\nimport { IceAgitator, type IceAgitatorModel } from \"../../../models\";\n\nexport const useIceAgitator = (id: string) => {\n const modelId = id;\n const result = useKosModel<IceAgitatorModel>({\n modelId,\n modelType: IceAgitator.type,\n options: {},\n });\n\n return result;\n};\n","import { IceAgitatorModel } from \"../../../models\";\nimport { useIceAgitator } from \"./use-ice-agitator\";\n\nexport interface IceAgitatorProps {\n iceAgitator: IceAgitatorModel;\n}\n\nexport function withIceAgitator<T extends IceAgitatorProps = IceAgitatorProps>(\n WrappedComponent: React.ComponentType<T>\n) {\n return (id: string) => (props: Omit<T, keyof IceAgitatorProps>) => {\n const { model, status, KosModelLoader } = useIceAgitator(id);\n\n return (\n <KosModelLoader {...status}>\n <WrappedComponent {...(props as T)} iceAgitator={model} />\n </KosModelLoader>\n );\n };\n}\n","import { kosAutoEffect } from \"@kosdev-code/kos-ui-sdk\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport type { FreestyleNozzleServices } from \"../../../models\";\nimport { useFreestyleNozzleContext } from \"../freestyle-nozzle\";\n\n// Custom function to check deep equality of two arrays\nconst arraysEqual = (a: number[], b: number[]): boolean => {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n};\n\nexport const useNutritionInfo = (cupSizes: number[]) => {\n const freestyleNozzle = useFreestyleNozzleContext();\n const [nutritionInfo, setNutritionInfo] =\n useState<FreestyleNozzleServices.FreestyleNutritionInfoResponse>();\n\n // Use a ref to keep track of the previous cupSizes value\n const prevCupSizesRef = useRef<number[]>([]);\n\n useEffect(() => {\n if (freestyleNozzle && !arraysEqual(cupSizes, prevCupSizesRef.current)) {\n freestyleNozzle.cupSizes = cupSizes;\n prevCupSizesRef.current = cupSizes;\n }\n const disposer = kosAutoEffect(() => {\n if (freestyleNozzle) {\n setNutritionInfo(freestyleNozzle.nutritionInfo);\n }\n });\n\n return () => {\n disposer();\n };\n }, [cupSizes, freestyleNozzle]);\n\n return nutritionInfo;\n};\n"],"names":["useFreestyleAssemblyContext","model","useAssemblyContext","getKosCompanionModel","FreestyleAssembly","useFreestyleNozzleContext","useNozzleContext","FreestyleNozzle","useIceAgitator","id","modelId","useKosModel","IceAgitator","withIceAgitator","WrappedComponent","props","status","KosModelLoader","jsx","arraysEqual","a","b","i","useNutritionInfo","cupSizes","freestyleNozzle","nutritionInfo","setNutritionInfo","useState","prevCupSizesRef","useRef","useEffect","disposer","kosAutoEffect"],"mappings":"kMAOaA,EACX,IAAqC,CACnC,KAAM,CAAE,MAAAC,CAAA,EAAUC,qBAAA,EASlB,OAP0BD,EACtBE,EAAAA,qBACEF,EACAG,oBAAkB,IAAA,EAEpB,IAGN,ECfWC,EAA4B,IAAmC,CAC1E,KAAM,CAAE,MAAAJ,CAAA,EAAUK,mBAAA,EAMlB,OAJwBL,EACpBE,EAAAA,qBAA2CF,EAAOM,EAAAA,gBAAgB,IAAI,EACtE,IAGN,ECTaC,EAAkBC,GAAe,CAC5C,MAAMC,EAAUD,EAOhB,OANeE,EAAAA,YAA8B,CAC3C,QAAAD,EACA,UAAWE,EAAAA,YAAY,KACvB,QAAS,CAAA,CAAC,CACX,CAGH,ECLO,SAASC,EACdC,EACA,CACA,OAAQL,GAAgBM,GAA2C,CACjE,KAAM,CAAE,MAAAd,EAAO,OAAAe,EAAQ,eAAAC,CAAA,EAAmBT,EAAeC,CAAE,EAE3D,OACES,EAAAA,IAACD,EAAA,CAAgB,GAAGD,EAClB,SAAAE,EAAAA,IAACJ,GAAkB,GAAIC,EAAa,YAAad,CAAA,CAAO,CAAA,CAC1D,CAEJ,CACF,CCZA,MAAMkB,EAAc,CAACC,EAAaC,IAAyB,CACzD,GAAID,EAAE,SAAWC,EAAE,OAAQ,MAAO,GAClC,QAASC,EAAI,EAAGA,EAAIF,EAAE,OAAQE,IAC5B,GAAIF,EAAEE,CAAC,IAAMD,EAAEC,CAAC,EAAG,MAAO,GAE5B,MAAO,EACT,EAEaC,EAAoBC,GAAuB,CACtD,MAAMC,EAAkBpB,EAAA,EAClB,CAACqB,EAAeC,CAAgB,EACpCC,WAAA,EAGIC,EAAkBC,EAAAA,OAAiB,EAAE,EAE3CC,OAAAA,EAAAA,UAAU,IAAM,CACVN,GAAmB,CAACN,EAAYK,EAAUK,EAAgB,OAAO,IACnEJ,EAAgB,SAAWD,EAC3BK,EAAgB,QAAUL,GAE5B,MAAMQ,EAAWC,EAAAA,cAAc,IAAM,CAC/BR,GACFE,EAAiBF,EAAgB,aAAa,CAElD,CAAC,EAED,MAAO,IAAM,CACXO,EAAA,CACF,CACF,EAAG,CAACR,EAAUC,CAAe,CAAC,EAEvBC,CACT"}
1
+ {"version":3,"file":"use-nutrition-info-Bb4itG4D.cjs","sources":["../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-assembly/use-freestyle-assembly.ts","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.ts","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/ice-agitator/use-ice-agitator.ts","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/ice-agitator/with-ice-agitator.tsx","../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/nutrition/use-nutrition-info.ts"],"sourcesContent":["import { useAssemblyContext } from \"@kosdev-code/kos-dispense-sdk\";\nimport { getKosCompanionModel } from \"@kosdev-code/kos-ui-sdk\";\nimport {\n FreestyleAssembly,\n type FreestyleAssemblyModel,\n} from \"../../../models\";\n\nexport const useFreestyleAssemblyContext =\n (): FreestyleAssemblyModel | null => {\n const { model } = useAssemblyContext();\n\n const freestyleAssembly = model\n ? getKosCompanionModel<FreestyleAssemblyModel>(\n model,\n FreestyleAssembly.type\n )\n : null;\n\n return freestyleAssembly;\n };\n","import { useNozzleContext } from \"@kosdev-code/kos-dispense-sdk\";\nimport { getKosCompanionModel } from \"@kosdev-code/kos-ui-sdk\";\nimport { FreestyleNozzle, type FreestyleNozzleModel } from \"../../../models\";\n\nexport const useFreestyleNozzleContext = (): FreestyleNozzleModel | null => {\n const { model } = useNozzleContext();\n\n const freestyleNozzle = model\n ? getKosCompanionModel<FreestyleNozzleModel>(model, FreestyleNozzle.type)\n : null;\n\n return freestyleNozzle;\n};\n","import { useKosModel } from \"@kosdev-code/kos-ui-sdk\";\nimport { IceAgitator, type IceAgitatorModel } from \"../../../models\";\n\nexport const useIceAgitator = (id: string) => {\n const modelId = id;\n const result = useKosModel<IceAgitatorModel>({\n modelId,\n modelType: IceAgitator.type,\n options: {},\n });\n\n return result;\n};\n","import { IceAgitatorModel } from \"../../../models\";\nimport { useIceAgitator } from \"./use-ice-agitator\";\n\nexport interface IceAgitatorProps {\n iceAgitator: IceAgitatorModel;\n}\n\nexport function withIceAgitator<T extends IceAgitatorProps = IceAgitatorProps>(\n WrappedComponent: React.ComponentType<T>\n) {\n return (id: string) => (props: Omit<T, keyof IceAgitatorProps>) => {\n const { model, status, KosModelLoader } = useIceAgitator(id);\n\n return (\n <KosModelLoader {...status}>\n <WrappedComponent {...(props as T)} iceAgitator={model} />\n </KosModelLoader>\n );\n };\n}\n","import { kosAutoEffect } from \"@kosdev-code/kos-ui-sdk\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport type { FreestyleNozzleServices } from \"../../../models\";\nimport { useFreestyleNozzleContext } from \"../freestyle-nozzle\";\n\n// Custom function to check deep equality of two arrays\nconst arraysEqual = (a: number[], b: number[]): boolean => {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n};\n\nexport const useNutritionInfo = (cupSizes: number[]) => {\n const freestyleNozzle = useFreestyleNozzleContext();\n const [nutritionInfo, setNutritionInfo] =\n useState<FreestyleNozzleServices.FreestyleNutritionInfoResponse>();\n\n // Use a ref to keep track of the previous cupSizes value\n const prevCupSizesRef = useRef<number[]>([]);\n\n useEffect(() => {\n if (freestyleNozzle && !arraysEqual(cupSizes, prevCupSizesRef.current)) {\n freestyleNozzle.cupSizes = cupSizes;\n prevCupSizesRef.current = cupSizes;\n }\n const disposer = kosAutoEffect(() => {\n if (freestyleNozzle) {\n setNutritionInfo(freestyleNozzle.nutritionInfo);\n }\n });\n\n return () => {\n disposer();\n };\n }, [cupSizes, freestyleNozzle]);\n\n return nutritionInfo;\n};\n"],"names":["useFreestyleAssemblyContext","model","useAssemblyContext","getKosCompanionModel","FreestyleAssembly","useFreestyleNozzleContext","useNozzleContext","FreestyleNozzle","useIceAgitator","id","modelId","useKosModel","IceAgitator","withIceAgitator","WrappedComponent","props","status","KosModelLoader","jsx","arraysEqual","a","b","i","useNutritionInfo","cupSizes","freestyleNozzle","nutritionInfo","setNutritionInfo","useState","prevCupSizesRef","useRef","useEffect","disposer","kosAutoEffect"],"mappings":"yNAOaA,EACX,IAAqC,CACnC,KAAM,CAAE,MAAAC,CAAA,EAAUC,qBAAA,EASlB,OAP0BD,EACtBE,EAAAA,qBACEF,EACAG,oBAAkB,IAAA,EAEpB,IAGN,ECfWC,EAA4B,IAAmC,CAC1E,KAAM,CAAE,MAAAJ,CAAA,EAAUK,mBAAA,EAMlB,OAJwBL,EACpBE,EAAAA,qBAA2CF,EAAOM,EAAAA,gBAAgB,IAAI,EACtE,IAGN,ECTaC,EAAkBC,GAAe,CAC5C,MAAMC,EAAUD,EAOhB,OANeE,EAAAA,YAA8B,CAC3C,QAAAD,EACA,UAAWE,EAAAA,YAAY,KACvB,QAAS,CAAA,CAAC,CACX,CAGH,ECLO,SAASC,EACdC,EACA,CACA,OAAQL,GAAgBM,GAA2C,CACjE,KAAM,CAAE,MAAAd,EAAO,OAAAe,EAAQ,eAAAC,CAAA,EAAmBT,EAAeC,CAAE,EAE3D,OACES,EAAAA,IAACD,EAAA,CAAgB,GAAGD,EAClB,SAAAE,EAAAA,IAACJ,GAAkB,GAAIC,EAAa,YAAad,CAAA,CAAO,CAAA,CAC1D,CAEJ,CACF,CCZA,MAAMkB,EAAc,CAACC,EAAaC,IAAyB,CACzD,GAAID,EAAE,SAAWC,EAAE,OAAQ,MAAO,GAClC,QAASC,EAAI,EAAGA,EAAIF,EAAE,OAAQE,IAC5B,GAAIF,EAAEE,CAAC,IAAMD,EAAEC,CAAC,EAAG,MAAO,GAE5B,MAAO,EACT,EAEaC,EAAoBC,GAAuB,CACtD,MAAMC,EAAkBpB,EAAA,EAClB,CAACqB,EAAeC,CAAgB,EACpCC,WAAA,EAGIC,EAAkBC,EAAAA,OAAiB,EAAE,EAE3CC,OAAAA,EAAAA,UAAU,IAAM,CACVN,GAAmB,CAACN,EAAYK,EAAUK,EAAgB,OAAO,IACnEJ,EAAgB,SAAWD,EAC3BK,EAAgB,QAAUL,GAE5B,MAAMQ,EAAWC,EAAAA,cAAc,IAAM,CAC/BR,GACFE,EAAiBF,EAAgB,aAAa,CAElD,CAAC,EAED,MAAO,IAAM,CACXO,EAAA,CACF,CACF,EAAG,CAACR,EAAUC,CAAe,CAAC,EAEvBC,CACT"}
@@ -1,6 +1,6 @@
1
1
  import { useAssemblyContext as f, useNozzleContext as i } from "@kosdev-code/kos-dispense-sdk";
2
2
  import { getKosCompanionModel as u, useKosModel as c, kosAutoEffect as m } from "@kosdev-code/kos-ui-sdk";
3
- import { e as a, g as y, I as d } from "./service-BuugCicr.js";
3
+ import { F as a, e as y, g as d } from "./freestyle-registration-manager-D57Lznu_.js";
4
4
  import { jsx as l } from "@emotion/react/jsx-runtime";
5
5
  import { useState as p, useRef as z, useEffect as A } from "react";
6
6
  const E = () => {
@@ -9,17 +9,17 @@ const E = () => {
9
9
  e,
10
10
  a.type
11
11
  ) : null;
12
- }, I = () => {
12
+ }, g = () => {
13
13
  const { model: e } = i();
14
14
  return e ? u(e, y.type) : null;
15
- }, g = (e) => c({
15
+ }, I = (e) => c({
16
16
  modelId: e,
17
17
  modelType: d.type,
18
18
  options: {}
19
19
  });
20
20
  function K(e) {
21
21
  return (t) => (o) => {
22
- const { model: r, status: s, KosModelLoader: n } = g(t);
22
+ const { model: r, status: s, KosModelLoader: n } = I(t);
23
23
  return /* @__PURE__ */ l(n, { ...s, children: /* @__PURE__ */ l(e, { ...o, iceAgitator: r }) });
24
24
  };
25
25
  }
@@ -31,7 +31,7 @@ const N = (e, t) => {
31
31
  return !1;
32
32
  return !0;
33
33
  }, M = (e) => {
34
- const t = I(), [o, r] = p(), s = z([]);
34
+ const t = g(), [o, r] = p(), s = z([]);
35
35
  return A(() => {
36
36
  t && !N(e, s.current) && (t.cupSizes = e, s.current = e);
37
37
  const n = m(() => {
@@ -43,10 +43,10 @@ const N = (e, t) => {
43
43
  }, [e, t]), o;
44
44
  };
45
45
  export {
46
- I as a,
47
- g as b,
46
+ g as a,
47
+ I as b,
48
48
  M as c,
49
49
  E as u,
50
50
  K as w
51
51
  };
52
- //# sourceMappingURL=use-nutrition-info-CPEwk_O-.js.map
52
+ //# sourceMappingURL=use-nutrition-info-Ca9_UnOV.js.map