@operato/twin-kernel 0.7.77 → 0.7.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract.d.ts +11 -0
- package/dist/ems-kernel.js +4 -0
- package/dist-cjs/index.cjs +4 -0
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -2041,6 +2041,17 @@ export interface EnergyState {
|
|
|
2041
2041
|
* 청구서보다 이쪽이 먼저다: 청구서는 끝난 기간의 정산이고 이것은 지금 적용되는 값이다.
|
|
2042
2042
|
*/
|
|
2043
2043
|
tariffBasis?: EnergyTariffBasisData;
|
|
2044
|
+
/**
|
|
2045
|
+
* 이 트윈의 **발전 정격**과 그 근거 — 이용률의 분모(§ `generationRated`).
|
|
2046
|
+
*
|
|
2047
|
+
* 선언에서 고른 값이라 상태에 낸다. 읽는 쪽이 모델을 다시 뒤지면 고르는 규칙이 두 벌이 되고,
|
|
2048
|
+
* 그때부터 두 화면이 다른 이용률을 말한다.
|
|
2049
|
+
*/
|
|
2050
|
+
generationRated?: {
|
|
2051
|
+
kW: number;
|
|
2052
|
+
basis: 'ac' | 'dc';
|
|
2053
|
+
from: 'equipment' | 'location';
|
|
2054
|
+
};
|
|
2044
2055
|
/**
|
|
2045
2056
|
* 이 청구 주기의 **최고 수요** — 기본요금이 이 값으로 다시 정해진다.
|
|
2046
2057
|
*
|
package/dist/ems-kernel.js
CHANGED
|
@@ -1589,6 +1589,10 @@ export class EmsKernel extends FlowEngine {
|
|
|
1589
1589
|
...(this.unclosedGenerationPeriods ? { unclosedGenerationPeriods: this.unclosedGenerationPeriods } : {}),
|
|
1590
1590
|
...(this.lastBill ? { lastBill: { ...this.lastBill } } : {}),
|
|
1591
1591
|
...(this.tariffBasis ? { tariffBasis: { ...this.tariffBasis } } : {}),
|
|
1592
|
+
...(() => {
|
|
1593
|
+
const r = this.generationRated();
|
|
1594
|
+
return r ? { generationRated: r } : {};
|
|
1595
|
+
})(),
|
|
1592
1596
|
...(this.demandHigh ? { demandHigh: { ...this.demandHigh } } : {}),
|
|
1593
1597
|
...(contractKW !== undefined ? { contractKW } : {}),
|
|
1594
1598
|
/* 물류 흐름 요청을 받은 적이 있나 — 있으면 이 트윈에 엉뚱한 명령이 오고 있다는 사실이다. */
|
package/dist-cjs/index.cjs
CHANGED
|
@@ -8922,6 +8922,10 @@ var EmsKernel = class extends FlowEngine {
|
|
|
8922
8922
|
...this.unclosedGenerationPeriods ? { unclosedGenerationPeriods: this.unclosedGenerationPeriods } : {},
|
|
8923
8923
|
...this.lastBill ? { lastBill: { ...this.lastBill } } : {},
|
|
8924
8924
|
...this.tariffBasis ? { tariffBasis: { ...this.tariffBasis } } : {},
|
|
8925
|
+
...(() => {
|
|
8926
|
+
const r = this.generationRated();
|
|
8927
|
+
return r ? { generationRated: r } : {};
|
|
8928
|
+
})(),
|
|
8925
8929
|
...this.demandHigh ? { demandHigh: { ...this.demandHigh } } : {},
|
|
8926
8930
|
...contractKW !== void 0 ? { contractKW } : {},
|
|
8927
8931
|
/* 물류 흐름 요청을 받은 적이 있나 — 있으면 이 트윈에 엉뚱한 명령이 오고 있다는 사실이다. */
|
package/package.json
CHANGED