energy-flow-control--types-and-enums 1.0.176 → 1.0.177
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/package.json +1 -1
- package/src/enums/index.ts +16 -0
- package/src/index.js +17 -1
- package/src/types/index.d.ts +34 -19
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
|
@@ -150,3 +150,19 @@ export enum EnumBillingPeriodState {
|
|
|
150
150
|
OPEN = 'OPEN',
|
|
151
151
|
CLOSED = 'CLOSED',
|
|
152
152
|
}
|
|
153
|
+
|
|
154
|
+
export enum EnumRowSlots {
|
|
155
|
+
'ONE' = 'col-1',
|
|
156
|
+
'TWO' = 'col-2',
|
|
157
|
+
'TREE' = 'col-3',
|
|
158
|
+
'FOUR' = 'col-4',
|
|
159
|
+
'FIVE' = 'col-5',
|
|
160
|
+
'SIX' = 'col-6',
|
|
161
|
+
'SEVEN' = 'col-7',
|
|
162
|
+
'EIGHT' = 'col-8',
|
|
163
|
+
'NINE' = 'col-9',
|
|
164
|
+
'TEN' = 'col-10',
|
|
165
|
+
'ELEVEN' = 'col-11',
|
|
166
|
+
'TWELVE' = 'col-12',
|
|
167
|
+
'AUTO' = 'col-auto',
|
|
168
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnumBillingPeriodState = exports.EnumPricingModel = exports.EnumCarOemModel = exports.EnumCarOem = exports.EnumEventSeverity = exports.EnumEventSource = exports.EnumUserStatus = exports.EnumGeneratorSetType = exports.EnumEquipmentType = exports.TimeInterval = exports.EnumCameraModel = exports.EnumCustomerContractState = exports.EnumPvStringState = exports.EnumHttpProtocol = exports.EnumInvoiceTopic = exports.EnumBookingReason = exports.EnumInvoiceState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumProsumerEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
|
|
3
|
+
exports.EnumRowSlots = exports.EnumBillingPeriodState = exports.EnumPricingModel = exports.EnumCarOemModel = exports.EnumCarOem = exports.EnumEventSeverity = exports.EnumEventSource = exports.EnumUserStatus = exports.EnumGeneratorSetType = exports.EnumEquipmentType = exports.TimeInterval = exports.EnumCameraModel = exports.EnumCustomerContractState = exports.EnumPvStringState = exports.EnumHttpProtocol = exports.EnumInvoiceTopic = exports.EnumBookingReason = exports.EnumInvoiceState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumProsumerEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
|
|
4
4
|
var EnumEquipmentState;
|
|
5
5
|
(function (EnumEquipmentState) {
|
|
6
6
|
EnumEquipmentState["ON"] = "ON";
|
|
@@ -152,3 +152,19 @@ var EnumBillingPeriodState;
|
|
|
152
152
|
EnumBillingPeriodState["OPEN"] = "OPEN";
|
|
153
153
|
EnumBillingPeriodState["CLOSED"] = "CLOSED";
|
|
154
154
|
})(EnumBillingPeriodState || (exports.EnumBillingPeriodState = EnumBillingPeriodState = {}));
|
|
155
|
+
var EnumRowSlots;
|
|
156
|
+
(function (EnumRowSlots) {
|
|
157
|
+
EnumRowSlots["ONE"] = "col-1";
|
|
158
|
+
EnumRowSlots["TWO"] = "col-2";
|
|
159
|
+
EnumRowSlots["TREE"] = "col-3";
|
|
160
|
+
EnumRowSlots["FOUR"] = "col-4";
|
|
161
|
+
EnumRowSlots["FIVE"] = "col-5";
|
|
162
|
+
EnumRowSlots["SIX"] = "col-6";
|
|
163
|
+
EnumRowSlots["SEVEN"] = "col-7";
|
|
164
|
+
EnumRowSlots["EIGHT"] = "col-8";
|
|
165
|
+
EnumRowSlots["NINE"] = "col-9";
|
|
166
|
+
EnumRowSlots["TEN"] = "col-10";
|
|
167
|
+
EnumRowSlots["ELEVEN"] = "col-11";
|
|
168
|
+
EnumRowSlots["TWELVE"] = "col-12";
|
|
169
|
+
EnumRowSlots["AUTO"] = "col-auto";
|
|
170
|
+
})(EnumRowSlots || (exports.EnumRowSlots = EnumRowSlots = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
EnumProsumerType,
|
|
18
18
|
EnumPvStringState,
|
|
19
19
|
EnumRemotelyControlledSwitchModel,
|
|
20
|
+
EnumRowSlots,
|
|
20
21
|
EnumTariffConsumptionType,
|
|
21
22
|
EnumThermometerModel,
|
|
22
23
|
} from '../enums'
|
|
@@ -126,24 +127,6 @@ export interface ITariffPlan {
|
|
|
126
127
|
positions: ITariffPlanPrice[]
|
|
127
128
|
}
|
|
128
129
|
|
|
129
|
-
export interface IConfigParam {
|
|
130
|
-
name: string
|
|
131
|
-
dataType: 'string' | 'integer' | 'float' | 'boolean' | 'password'
|
|
132
|
-
label: string
|
|
133
|
-
rules: {
|
|
134
|
-
required?: boolean
|
|
135
|
-
minLength?: number
|
|
136
|
-
minValue?: number
|
|
137
|
-
maxValue?: number
|
|
138
|
-
}
|
|
139
|
-
options?: ( number | string )[]
|
|
140
|
-
ui: {
|
|
141
|
-
prefix?: string
|
|
142
|
-
suffix?: string
|
|
143
|
-
minLengthInPx: number
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
130
|
export interface IAuthenticationConfig {
|
|
148
131
|
basic?: {
|
|
149
132
|
userName: string
|
|
@@ -517,7 +500,6 @@ export interface ICarToCustomer extends ITimeTravelProps {
|
|
|
517
500
|
customerId: number
|
|
518
501
|
}
|
|
519
502
|
|
|
520
|
-
|
|
521
503
|
export interface IElectricityProviderContract extends ITimeTravelProps {
|
|
522
504
|
contractStart: Date
|
|
523
505
|
contractEnd: Date | null
|
|
@@ -547,3 +529,36 @@ export interface IBillingPeriod extends ITimeTravelProps {
|
|
|
547
529
|
state: EnumBillingPeriodState
|
|
548
530
|
comment: string | null
|
|
549
531
|
}
|
|
532
|
+
|
|
533
|
+
export interface IConfigParam {
|
|
534
|
+
name: string
|
|
535
|
+
dataType: 'string' | 'integer' | 'float' | 'boolean' | 'password'
|
|
536
|
+
label: string
|
|
537
|
+
rules: {
|
|
538
|
+
required?: boolean
|
|
539
|
+
minLength?: number
|
|
540
|
+
minValue?: number
|
|
541
|
+
maxValue?: number
|
|
542
|
+
}
|
|
543
|
+
options?: ( number | string )[]
|
|
544
|
+
ui: {
|
|
545
|
+
prefix?: string
|
|
546
|
+
suffix?: string
|
|
547
|
+
minLengthInPx: number
|
|
548
|
+
width?: {
|
|
549
|
+
px?: number
|
|
550
|
+
slots?: EnumRowSlots
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export interface IAppValueCollection {
|
|
556
|
+
name: string
|
|
557
|
+
ui: {
|
|
558
|
+
width: {
|
|
559
|
+
px?: number
|
|
560
|
+
slots?: EnumRowSlots
|
|
561
|
+
}
|
|
562
|
+
params: IConfigParam[]
|
|
563
|
+
}
|
|
564
|
+
}
|