@solibo/solibo-sdk 1.56.0 → 1.57.0
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/client/bankAccounts.d.mts +1 -1
- package/client/economy.d.mts +1 -1
- package/client/utilityUsage.d.mts +3 -0
- package/client/utilityUsage.mjs +85 -0
- package/client-core.mjs +36 -0
- package/client.d.mts +49 -0
- package/client.mjs +1 -0
- package/core.d.mts +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
- package/operations/bankAccounts.d.mts +1 -1
- package/operations/economy.d.mts +1 -1
- package/operations/utilityUsage.d.mts +6 -0
- package/operations/utilityUsage.mjs +20 -0
- package/package.json +17 -1
- package/solibo-cycles/kotlin-kotlin-stdlib-12.mjs +10 -10
- package/solibo-cycles/kotlinx-coroutines-core-16.mjs +5 -5
- package/solibo-cycles/kotlinx-coroutines-core-17.mjs +1 -1
- package/solibo-cycles/solibo-sdk-sdk-core-53.mjs +116 -36
- package/solibo-sdk-sdk/no/solibo/oss/sdk/api/HomeApi.export.d.mts +1 -0
- package/solibo-sdk-sdk/no/solibo/oss/sdk/api/HomeApi.mjs +7 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/EconomyHomeApi.export.d.mts +2 -1
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/EconomyHomeApi.export.mjs +2 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/EconomyHomeApi.mjs +16 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/apis/UtilityUsageApi.export.d.mts +15 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/apis/UtilityUsageApi.export.mjs +22 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/apis/UtilityUsageApi.mjs +257 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyUtilityUsageOperation.export.d.mts +3 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyUtilityUsageOperation.export.mjs +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyUtilityUsageOperation.mjs +161 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowSectionUtilityUsageOperation.export.d.mts +3 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowSectionUtilityUsageOperation.export.mjs +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/client/operations/ShowSectionUtilityUsageOperation.mjs +162 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilitySeries.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilitySeries.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilitySeries.mjs +265 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilityUsage.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilityUsage.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/CompanyUtilityUsage.mjs +253 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilitySeries.export.d.mts +19 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilitySeries.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilitySeries.mjs +293 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/SectionUtilityUsage.mjs +253 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageInterval.export.d.mts +53 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageInterval.export.mjs +39 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageInterval.mjs +177 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsagePoint.export.d.mts +17 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsagePoint.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsagePoint.mjs +210 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageRange.export.d.mts +18 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageRange.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageRange.mjs +256 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageTotal.export.d.mts +19 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageTotal.export.mjs +12 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageTotal.mjs +266 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageUnit.export.d.mts +41 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageUnit.export.mjs +35 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/UsageUnit.mjs +168 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/Utility.export.d.mts +61 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/Utility.export.mjs +42 -0
- package/solibo-sdk-sdk-api-economy/no/solibo/oss/sdk/api/gen/models/Utility.mjs +186 -0
- package/solibo-sdk-sdk-api-economy.mjs +13 -0
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/auth/SharedSessionRefresh.js.mjs +353 -0
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
- package/solibo-sdk-sdk.d.mts +291 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { Companion_getInstance1wyy0wro2w031 as Companion_getInstance } from './UsageInterval.mjs';
|
|
2
|
+
import { LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Lazy.mjs';
|
|
3
|
+
import { lazy1261dae0bgscp as lazy } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/kotlin.mjs';
|
|
4
|
+
import {
|
|
5
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
6
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
7
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
8
|
+
import {
|
|
9
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
10
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
11
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
12
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
13
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
14
|
+
import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
|
|
15
|
+
import { LocalDateSerializer_getInstance3qg2c8779i3ej as LocalDateSerializer_getInstance } from '../../../../../../../../Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs';
|
|
16
|
+
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
17
|
+
import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
|
|
18
|
+
import {
|
|
19
|
+
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
20
|
+
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
21
|
+
} from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs';
|
|
22
|
+
import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
|
|
23
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
24
|
+
import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
|
|
25
|
+
import { __soliboBoundaryState, __soliboRegisterLookup, __soliboToJs, __soliboToKt } from '../../../../../../../../solibo-boundary.mjs';
|
|
26
|
+
import { LocalDate_init_$Create$141ylgrv6grnp as __soliboLocalDate } from '../../../../../../../../Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs';
|
|
27
|
+
import { UsageInterval1v8f8kmnzc4jk as __soliboType_UsageInterval } from './UsageInterval.mjs';
|
|
28
|
+
//region block: imports
|
|
29
|
+
var imul = Math.imul;
|
|
30
|
+
//endregion
|
|
31
|
+
//region block: pre-declaration
|
|
32
|
+
//endregion
|
|
33
|
+
function UsageRange$Companion$$childSerializers$_anonymous__qz3d9u() {
|
|
34
|
+
return Companion_getInstance().serializer_9w0wvi_k$();
|
|
35
|
+
}
|
|
36
|
+
var CompanionClass;
|
|
37
|
+
function Companion() {
|
|
38
|
+
if (CompanionClass === VOID) {
|
|
39
|
+
initMetadataForCompanion($);
|
|
40
|
+
function $() {
|
|
41
|
+
Companion_instance = this;
|
|
42
|
+
var tmp = this;
|
|
43
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
44
|
+
// Inline function 'kotlin.arrayOf' call
|
|
45
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
46
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
47
|
+
tmp.$childSerializers_1 = [null, lazy(tmp_0, UsageRange$Companion$$childSerializers$_anonymous__qz3d9u), null];
|
|
48
|
+
}
|
|
49
|
+
CompanionClass = $;
|
|
50
|
+
}
|
|
51
|
+
return CompanionClass;
|
|
52
|
+
}
|
|
53
|
+
var Companion_instance;
|
|
54
|
+
function Companion_getInstance_0() {
|
|
55
|
+
if (Companion_instance == null)
|
|
56
|
+
new (Companion())();
|
|
57
|
+
return Companion_instance;
|
|
58
|
+
}
|
|
59
|
+
var $serializerClass;
|
|
60
|
+
function $serializer() {
|
|
61
|
+
if ($serializerClass === VOID) {
|
|
62
|
+
initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
|
|
63
|
+
function $() {
|
|
64
|
+
$serializer_instance = this;
|
|
65
|
+
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.UsageRange', this, 3);
|
|
66
|
+
tmp0_serialDesc.addElement_5pzumi_k$('from', false);
|
|
67
|
+
tmp0_serialDesc.addElement_5pzumi_k$('interval', false);
|
|
68
|
+
tmp0_serialDesc.addElement_5pzumi_k$('until', false);
|
|
69
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
70
|
+
}
|
|
71
|
+
protoOf($).serialize_at9nx4_k$ = function (encoder, value) {
|
|
72
|
+
var tmp0_desc = this.descriptor_1;
|
|
73
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
74
|
+
var tmp2_cached = Companion_getInstance_0().$childSerializers_1;
|
|
75
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, LocalDateSerializer_getInstance(), value.from);
|
|
76
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1].get_value_j01efc_k$(), value.interval);
|
|
77
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, LocalDateSerializer_getInstance(), value.until);
|
|
78
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
79
|
+
};
|
|
80
|
+
protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
|
|
81
|
+
return this.serialize_at9nx4_k$(encoder, value instanceof UsageRange() ? value : THROW_CCE());
|
|
82
|
+
};
|
|
83
|
+
protoOf($).deserialize_sy6x50_k$ = function (decoder) {
|
|
84
|
+
var tmp0_desc = this.descriptor_1;
|
|
85
|
+
var tmp1_flag = true;
|
|
86
|
+
var tmp2_index = 0;
|
|
87
|
+
var tmp3_bitMask0 = 0;
|
|
88
|
+
var tmp4_local0 = null;
|
|
89
|
+
var tmp5_local1 = null;
|
|
90
|
+
var tmp6_local2 = null;
|
|
91
|
+
var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
92
|
+
var tmp8_cached = Companion_getInstance_0().$childSerializers_1;
|
|
93
|
+
if (tmp7_input.decodeSequentially_xlblqy_k$()) {
|
|
94
|
+
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, LocalDateSerializer_getInstance(), tmp4_local0);
|
|
95
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
96
|
+
tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1].get_value_j01efc_k$(), tmp5_local1);
|
|
97
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
98
|
+
tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, LocalDateSerializer_getInstance(), tmp6_local2);
|
|
99
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
100
|
+
} else
|
|
101
|
+
while (tmp1_flag) {
|
|
102
|
+
tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
103
|
+
switch (tmp2_index) {
|
|
104
|
+
case -1:
|
|
105
|
+
tmp1_flag = false;
|
|
106
|
+
break;
|
|
107
|
+
case 0:
|
|
108
|
+
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, LocalDateSerializer_getInstance(), tmp4_local0);
|
|
109
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
110
|
+
break;
|
|
111
|
+
case 1:
|
|
112
|
+
tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp8_cached[1].get_value_j01efc_k$(), tmp5_local1);
|
|
113
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
114
|
+
break;
|
|
115
|
+
case 2:
|
|
116
|
+
tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, LocalDateSerializer_getInstance(), tmp6_local2);
|
|
117
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
118
|
+
break;
|
|
119
|
+
default:
|
|
120
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
tmp7_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
124
|
+
return UsageRange_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
125
|
+
};
|
|
126
|
+
protoOf($).get_descriptor_wjt6a0_k$ = function () {
|
|
127
|
+
return this.descriptor_1;
|
|
128
|
+
};
|
|
129
|
+
protoOf($).childSerializers_5ghqw5_k$ = function () {
|
|
130
|
+
var tmp0_cached = Companion_getInstance_0().$childSerializers_1;
|
|
131
|
+
// Inline function 'kotlin.arrayOf' call
|
|
132
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
133
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
134
|
+
return [LocalDateSerializer_getInstance(), tmp0_cached[1].get_value_j01efc_k$(), LocalDateSerializer_getInstance()];
|
|
135
|
+
};
|
|
136
|
+
protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
137
|
+
$serializerClass = $;
|
|
138
|
+
}
|
|
139
|
+
return $serializerClass;
|
|
140
|
+
}
|
|
141
|
+
var $serializer_instance;
|
|
142
|
+
function $serializer_getInstance() {
|
|
143
|
+
if ($serializer_instance == null)
|
|
144
|
+
new ($serializer())();
|
|
145
|
+
return $serializer_instance;
|
|
146
|
+
}
|
|
147
|
+
function UsageRange_init_$Init$(seen0, from, interval, until, serializationConstructorMarker, $this) {
|
|
148
|
+
if (!(7 === (7 & seen0))) {
|
|
149
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().descriptor_1);
|
|
150
|
+
}
|
|
151
|
+
$this.from = from;
|
|
152
|
+
$this.interval = interval;
|
|
153
|
+
$this.until = until;
|
|
154
|
+
return $this;
|
|
155
|
+
}
|
|
156
|
+
function UsageRange_init_$Create$(seen0, from, interval, until, serializationConstructorMarker) {
|
|
157
|
+
return UsageRange_init_$Init$(seen0, from, interval, until, serializationConstructorMarker, objectCreate(protoOf(UsageRange())));
|
|
158
|
+
}
|
|
159
|
+
var UsageRangeClass;
|
|
160
|
+
function UsageRange() {
|
|
161
|
+
if (UsageRangeClass === VOID) {
|
|
162
|
+
initMetadataForClass($, 'UsageRange', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
163
|
+
function $(from, interval, until) {
|
|
164
|
+
var __soliboProps = arguments.length === 1 && typeof from === 'object' && from !== null && from.constructor === Object;
|
|
165
|
+
var __soliboTmp, __soliboConverted = false;
|
|
166
|
+
if (__soliboProps) {
|
|
167
|
+
const props = from;
|
|
168
|
+
from = ('from' in props ? props.from : VOID);
|
|
169
|
+
if (from != null && typeof from === 'object' && typeof from.getFullYear === 'function') {
|
|
170
|
+
from = new __soliboLocalDate(from.getFullYear(), from.getMonth() + 1, from.getDate());
|
|
171
|
+
} else if (typeof from === 'string') {
|
|
172
|
+
const __ld = from.split('-').map(Number);
|
|
173
|
+
from = new __soliboLocalDate(__ld[0], __ld[1], __ld[2]);
|
|
174
|
+
}
|
|
175
|
+
interval = ('interval' in props ? props.interval : VOID);
|
|
176
|
+
until = ('until' in props ? props.until : VOID);
|
|
177
|
+
if (until != null && typeof until === 'object' && typeof until.getFullYear === 'function') {
|
|
178
|
+
until = new __soliboLocalDate(until.getFullYear(), until.getMonth() + 1, until.getDate());
|
|
179
|
+
} else if (typeof until === 'string') {
|
|
180
|
+
const __ld = until.split('-').map(Number);
|
|
181
|
+
until = new __soliboLocalDate(__ld[0], __ld[1], __ld[2]);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if ((__soliboTmp = __soliboToKt(interval, ["enum","UsageInterval"])) !== interval) { interval = __soliboTmp; __soliboConverted = true; }
|
|
185
|
+
Companion_getInstance_0();
|
|
186
|
+
this.from = from;
|
|
187
|
+
this.interval = interval;
|
|
188
|
+
this.until = until;
|
|
189
|
+
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
190
|
+
}
|
|
191
|
+
protoOf($).get_from_wom7eb_k$ = function () {
|
|
192
|
+
return this.from;
|
|
193
|
+
};
|
|
194
|
+
protoOf($).get_interval_mdbp0y_k$ = function () {
|
|
195
|
+
return this.interval;
|
|
196
|
+
};
|
|
197
|
+
protoOf($).get_until_izq2b9_k$ = function () {
|
|
198
|
+
return this.until;
|
|
199
|
+
};
|
|
200
|
+
protoOf($).component1_7eebsc_k$ = function () {
|
|
201
|
+
return this.from;
|
|
202
|
+
};
|
|
203
|
+
protoOf($).component2_7eebsb_k$ = function () {
|
|
204
|
+
return this.interval;
|
|
205
|
+
};
|
|
206
|
+
protoOf($).component3_7eebsa_k$ = function () {
|
|
207
|
+
return this.until;
|
|
208
|
+
};
|
|
209
|
+
protoOf($).copy_pbpxnd_k$ = function (from, interval, until) {
|
|
210
|
+
return new (UsageRange())(from, interval, until);
|
|
211
|
+
};
|
|
212
|
+
protoOf($).copy = function (from, interval, until, $super) {
|
|
213
|
+
from = from === VOID ? this.from : from;
|
|
214
|
+
interval = interval === VOID ? this.interval : interval;
|
|
215
|
+
until = until === VOID ? this.until : until;
|
|
216
|
+
return $super === VOID ? this.copy_pbpxnd_k$(from, interval, until) : $super.copy_pbpxnd_k$.call(this, from, interval, until);
|
|
217
|
+
};
|
|
218
|
+
protoOf($).toString = function () {
|
|
219
|
+
return 'UsageRange(from=' + this.from.toString() + ', interval=' + this.interval.toString() + ', until=' + this.until.toString() + ')';
|
|
220
|
+
};
|
|
221
|
+
protoOf($).hashCode = function () {
|
|
222
|
+
var result = this.from.hashCode();
|
|
223
|
+
result = imul(result, 31) + this.interval.hashCode() | 0;
|
|
224
|
+
result = imul(result, 31) + this.until.hashCode() | 0;
|
|
225
|
+
return result;
|
|
226
|
+
};
|
|
227
|
+
protoOf($).equals = function (other) {
|
|
228
|
+
if (this === other)
|
|
229
|
+
return true;
|
|
230
|
+
if (!(other instanceof UsageRange()))
|
|
231
|
+
return false;
|
|
232
|
+
if (!this.from.equals(other.from))
|
|
233
|
+
return false;
|
|
234
|
+
if (!this.interval.equals(other.interval))
|
|
235
|
+
return false;
|
|
236
|
+
if (!this.until.equals(other.until))
|
|
237
|
+
return false;
|
|
238
|
+
return true;
|
|
239
|
+
};
|
|
240
|
+
/* Solibo boundary patches */
|
|
241
|
+
Object.defineProperty($, 'name', { value: "UsageRange", configurable: true });
|
|
242
|
+
__soliboRegisterLookup("UsageRange", () => $);
|
|
243
|
+
UsageRangeClass = $;
|
|
244
|
+
}
|
|
245
|
+
return UsageRangeClass;
|
|
246
|
+
}
|
|
247
|
+
//region block: exports
|
|
248
|
+
export {
|
|
249
|
+
$serializer_getInstance as $serializer_getInstance18vq10ylvyfab,
|
|
250
|
+
UsageRange as UsageRange393sew4768m2p,
|
|
251
|
+
};
|
|
252
|
+
//endregion
|
|
253
|
+
|
|
254
|
+
/* Solibo boundary lookups */
|
|
255
|
+
__soliboRegisterLookup("UsageInterval", () => __soliboType_UsageInterval());
|
|
256
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare class UsageTotal {
|
|
4
|
+
constructor(averagePerSection: Nullable<number> | undefined, periodStart: any/* LocalDate */, reportingSections: bigint, total: number);
|
|
5
|
+
get averagePerSection(): Nullable<number>;
|
|
6
|
+
get periodStart(): any/* LocalDate */;
|
|
7
|
+
get reportingSections(): bigint;
|
|
8
|
+
get total(): number;
|
|
9
|
+
copy(averagePerSection?: Nullable<number>, periodStart?: any/* LocalDate */, reportingSections?: bigint, total?: number): UsageTotal;
|
|
10
|
+
toString(): string;
|
|
11
|
+
hashCode(): number;
|
|
12
|
+
equals(other: Nullable<any>): boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace UsageTotal {
|
|
15
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
16
|
+
namespace $metadata$ {
|
|
17
|
+
const constructor: abstract new () => UsageTotal;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UsageTotalioghuaxfdft5 as UsageTotal } from './UsageTotal.mjs';
|
|
2
|
+
//region block: imports
|
|
3
|
+
//endregion
|
|
4
|
+
//region block: pre-declaration
|
|
5
|
+
//endregion
|
|
6
|
+
//region block: exports
|
|
7
|
+
var UsageTotal_0 = UsageTotal();
|
|
8
|
+
export {
|
|
9
|
+
UsageTotal_0 as UsageTotal,
|
|
10
|
+
};
|
|
11
|
+
//endregion
|
|
12
|
+
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import {
|
|
2
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
3
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
4
|
+
getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
|
|
5
|
+
equals2au1ep9vhcato as equals,
|
|
6
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
7
|
+
import {
|
|
8
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
9
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
10
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
11
|
+
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
12
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
13
|
+
import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
|
|
14
|
+
import {
|
|
15
|
+
DoubleSerializer_getInstance1tuvibnyg07o1 as DoubleSerializer_getInstance,
|
|
16
|
+
LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
|
|
17
|
+
} from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs';
|
|
18
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
19
|
+
import { LocalDateSerializer_getInstance3qg2c8779i3ej as LocalDateSerializer_getInstance } from '../../../../../../../../Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs';
|
|
20
|
+
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
21
|
+
import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
|
|
22
|
+
import { get_nullable197rfua9r7fsz as get_nullable } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs';
|
|
23
|
+
import {
|
|
24
|
+
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
25
|
+
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
26
|
+
} from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs';
|
|
27
|
+
import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
|
|
28
|
+
import { getNumberHashCode2l4nbdcihl25f as getNumberHashCode } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/bitUtils.mjs';
|
|
29
|
+
import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
|
|
30
|
+
import { __soliboBoundaryState, __soliboRegisterLookup, __soliboToJs, __soliboToKt } from '../../../../../../../../solibo-boundary.mjs';
|
|
31
|
+
import { LocalDate_init_$Create$141ylgrv6grnp as __soliboLocalDate } from '../../../../../../../../Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs';
|
|
32
|
+
//region block: imports
|
|
33
|
+
var imul = Math.imul;
|
|
34
|
+
//endregion
|
|
35
|
+
//region block: pre-declaration
|
|
36
|
+
//endregion
|
|
37
|
+
var CompanionClass;
|
|
38
|
+
function Companion() {
|
|
39
|
+
if (CompanionClass === VOID) {
|
|
40
|
+
initMetadataForCompanion($);
|
|
41
|
+
function $() {
|
|
42
|
+
}
|
|
43
|
+
CompanionClass = $;
|
|
44
|
+
}
|
|
45
|
+
return CompanionClass;
|
|
46
|
+
}
|
|
47
|
+
var Companion_instance;
|
|
48
|
+
function Companion_getInstance() {
|
|
49
|
+
return Companion_instance;
|
|
50
|
+
}
|
|
51
|
+
var $serializerClass;
|
|
52
|
+
function $serializer() {
|
|
53
|
+
if ($serializerClass === VOID) {
|
|
54
|
+
initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
|
|
55
|
+
function $() {
|
|
56
|
+
$serializer_instance = this;
|
|
57
|
+
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.UsageTotal', this, 4);
|
|
58
|
+
tmp0_serialDesc.addElement_5pzumi_k$('averagePerSection', true);
|
|
59
|
+
tmp0_serialDesc.addElement_5pzumi_k$('periodStart', false);
|
|
60
|
+
tmp0_serialDesc.addElement_5pzumi_k$('reportingSections', false);
|
|
61
|
+
tmp0_serialDesc.addElement_5pzumi_k$('total', false);
|
|
62
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
63
|
+
}
|
|
64
|
+
protoOf($).serialize_m6tz27_k$ = function (encoder, value) {
|
|
65
|
+
var tmp0_desc = this.descriptor_1;
|
|
66
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
67
|
+
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.averagePerSection == null)) {
|
|
68
|
+
tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, DoubleSerializer_getInstance(), value.averagePerSection);
|
|
69
|
+
}
|
|
70
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, LocalDateSerializer_getInstance(), value.periodStart);
|
|
71
|
+
tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 2, value.reportingSections);
|
|
72
|
+
tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 3, value.total);
|
|
73
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
74
|
+
};
|
|
75
|
+
protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
|
|
76
|
+
return this.serialize_m6tz27_k$(encoder, value instanceof UsageTotal() ? value : THROW_CCE());
|
|
77
|
+
};
|
|
78
|
+
protoOf($).deserialize_sy6x50_k$ = function (decoder) {
|
|
79
|
+
var tmp0_desc = this.descriptor_1;
|
|
80
|
+
var tmp1_flag = true;
|
|
81
|
+
var tmp2_index = 0;
|
|
82
|
+
var tmp3_bitMask0 = 0;
|
|
83
|
+
var tmp4_local0 = null;
|
|
84
|
+
var tmp5_local1 = null;
|
|
85
|
+
var tmp6_local2 = 0n;
|
|
86
|
+
var tmp7_local3 = 0.0;
|
|
87
|
+
var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
88
|
+
if (tmp8_input.decodeSequentially_xlblqy_k$()) {
|
|
89
|
+
tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
90
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
91
|
+
tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, LocalDateSerializer_getInstance(), tmp5_local1);
|
|
92
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
93
|
+
tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2);
|
|
94
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
95
|
+
tmp7_local3 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3);
|
|
96
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
97
|
+
} else
|
|
98
|
+
while (tmp1_flag) {
|
|
99
|
+
tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
100
|
+
switch (tmp2_index) {
|
|
101
|
+
case -1:
|
|
102
|
+
tmp1_flag = false;
|
|
103
|
+
break;
|
|
104
|
+
case 0:
|
|
105
|
+
tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
106
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
107
|
+
break;
|
|
108
|
+
case 1:
|
|
109
|
+
tmp5_local1 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, LocalDateSerializer_getInstance(), tmp5_local1);
|
|
110
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
111
|
+
break;
|
|
112
|
+
case 2:
|
|
113
|
+
tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2);
|
|
114
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
115
|
+
break;
|
|
116
|
+
case 3:
|
|
117
|
+
tmp7_local3 = tmp8_input.decodeDoubleElement_isei84_k$(tmp0_desc, 3);
|
|
118
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
119
|
+
break;
|
|
120
|
+
default:
|
|
121
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
tmp8_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
125
|
+
return UsageTotal_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
126
|
+
};
|
|
127
|
+
protoOf($).get_descriptor_wjt6a0_k$ = function () {
|
|
128
|
+
return this.descriptor_1;
|
|
129
|
+
};
|
|
130
|
+
protoOf($).childSerializers_5ghqw5_k$ = function () {
|
|
131
|
+
// Inline function 'kotlin.arrayOf' call
|
|
132
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
133
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
134
|
+
return [get_nullable(DoubleSerializer_getInstance()), LocalDateSerializer_getInstance(), LongSerializer_getInstance(), DoubleSerializer_getInstance()];
|
|
135
|
+
};
|
|
136
|
+
protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
137
|
+
$serializerClass = $;
|
|
138
|
+
}
|
|
139
|
+
return $serializerClass;
|
|
140
|
+
}
|
|
141
|
+
var $serializer_instance;
|
|
142
|
+
function $serializer_getInstance() {
|
|
143
|
+
if ($serializer_instance == null)
|
|
144
|
+
new ($serializer())();
|
|
145
|
+
return $serializer_instance;
|
|
146
|
+
}
|
|
147
|
+
function UsageTotal_init_$Init$(seen0, averagePerSection, periodStart, reportingSections, total, serializationConstructorMarker, $this) {
|
|
148
|
+
if (!(14 === (14 & seen0))) {
|
|
149
|
+
throwMissingFieldException(seen0, 14, $serializer_getInstance().descriptor_1);
|
|
150
|
+
}
|
|
151
|
+
if (0 === (seen0 & 1))
|
|
152
|
+
$this.averagePerSection = null;
|
|
153
|
+
else
|
|
154
|
+
$this.averagePerSection = averagePerSection;
|
|
155
|
+
$this.periodStart = periodStart;
|
|
156
|
+
$this.reportingSections = reportingSections;
|
|
157
|
+
$this.total = total;
|
|
158
|
+
return $this;
|
|
159
|
+
}
|
|
160
|
+
function UsageTotal_init_$Create$(seen0, averagePerSection, periodStart, reportingSections, total, serializationConstructorMarker) {
|
|
161
|
+
return UsageTotal_init_$Init$(seen0, averagePerSection, periodStart, reportingSections, total, serializationConstructorMarker, objectCreate(protoOf(UsageTotal())));
|
|
162
|
+
}
|
|
163
|
+
var UsageTotalClass;
|
|
164
|
+
function UsageTotal() {
|
|
165
|
+
if (UsageTotalClass === VOID) {
|
|
166
|
+
initMetadataForClass($, 'UsageTotal', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
167
|
+
function $(averagePerSection, periodStart, reportingSections, total) {
|
|
168
|
+
var __soliboProps = arguments.length === 1 && typeof averagePerSection === 'object' && averagePerSection !== null && averagePerSection.constructor === Object;
|
|
169
|
+
var __soliboTmp, __soliboConverted = false;
|
|
170
|
+
if (__soliboProps) {
|
|
171
|
+
const props = averagePerSection;
|
|
172
|
+
averagePerSection = ('averagePerSection' in props ? props.averagePerSection : VOID);
|
|
173
|
+
periodStart = ('periodStart' in props ? props.periodStart : VOID);
|
|
174
|
+
if (periodStart != null && typeof periodStart === 'object' && typeof periodStart.getFullYear === 'function') {
|
|
175
|
+
periodStart = new __soliboLocalDate(periodStart.getFullYear(), periodStart.getMonth() + 1, periodStart.getDate());
|
|
176
|
+
} else if (typeof periodStart === 'string') {
|
|
177
|
+
const __ld = periodStart.split('-').map(Number);
|
|
178
|
+
periodStart = new __soliboLocalDate(__ld[0], __ld[1], __ld[2]);
|
|
179
|
+
}
|
|
180
|
+
reportingSections = ('reportingSections' in props ? props.reportingSections : VOID);
|
|
181
|
+
total = ('total' in props ? props.total : VOID);
|
|
182
|
+
}
|
|
183
|
+
if ((__soliboTmp = __soliboToKt(reportingSections, ["bigint"])) !== reportingSections) { reportingSections = __soliboTmp; __soliboConverted = true; }
|
|
184
|
+
averagePerSection = averagePerSection === VOID ? null : averagePerSection;
|
|
185
|
+
this.averagePerSection = averagePerSection;
|
|
186
|
+
this.periodStart = periodStart;
|
|
187
|
+
this.reportingSections = reportingSections;
|
|
188
|
+
this.total = total;
|
|
189
|
+
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
190
|
+
}
|
|
191
|
+
protoOf($).get_averagePerSection_mg0bx8_k$ = function () {
|
|
192
|
+
return this.averagePerSection;
|
|
193
|
+
};
|
|
194
|
+
protoOf($).get_periodStart_260qiw_k$ = function () {
|
|
195
|
+
return this.periodStart;
|
|
196
|
+
};
|
|
197
|
+
protoOf($).get_reportingSections_qynvmb_k$ = function () {
|
|
198
|
+
return this.reportingSections;
|
|
199
|
+
};
|
|
200
|
+
protoOf($).get_total_iz6wij_k$ = function () {
|
|
201
|
+
return this.total;
|
|
202
|
+
};
|
|
203
|
+
protoOf($).component1_7eebsc_k$ = function () {
|
|
204
|
+
return this.averagePerSection;
|
|
205
|
+
};
|
|
206
|
+
protoOf($).component2_7eebsb_k$ = function () {
|
|
207
|
+
return this.periodStart;
|
|
208
|
+
};
|
|
209
|
+
protoOf($).component3_7eebsa_k$ = function () {
|
|
210
|
+
return this.reportingSections;
|
|
211
|
+
};
|
|
212
|
+
protoOf($).component4_7eebs9_k$ = function () {
|
|
213
|
+
return this.total;
|
|
214
|
+
};
|
|
215
|
+
protoOf($).copy_f6smjm_k$ = function (averagePerSection, periodStart, reportingSections, total) {
|
|
216
|
+
return new (UsageTotal())(averagePerSection, periodStart, reportingSections, total);
|
|
217
|
+
};
|
|
218
|
+
protoOf($).copy = function (averagePerSection, periodStart, reportingSections, total, $super) {
|
|
219
|
+
averagePerSection = averagePerSection === VOID ? this.averagePerSection : averagePerSection;
|
|
220
|
+
periodStart = periodStart === VOID ? this.periodStart : periodStart;
|
|
221
|
+
reportingSections = reportingSections === VOID ? this.reportingSections : reportingSections;
|
|
222
|
+
total = total === VOID ? this.total : total;
|
|
223
|
+
return $super === VOID ? this.copy_f6smjm_k$(averagePerSection, periodStart, reportingSections, total) : $super.copy_f6smjm_k$.call(this, averagePerSection, periodStart, reportingSections, total);
|
|
224
|
+
};
|
|
225
|
+
protoOf($).toString = function () {
|
|
226
|
+
return 'UsageTotal(averagePerSection=' + this.averagePerSection + ', periodStart=' + this.periodStart.toString() + ', reportingSections=' + this.reportingSections.toString() + ', total=' + this.total + ')';
|
|
227
|
+
};
|
|
228
|
+
protoOf($).hashCode = function () {
|
|
229
|
+
var result = this.averagePerSection == null ? 0 : getNumberHashCode(this.averagePerSection);
|
|
230
|
+
result = imul(result, 31) + this.periodStart.hashCode() | 0;
|
|
231
|
+
result = imul(result, 31) + getBigIntHashCode(this.reportingSections) | 0;
|
|
232
|
+
result = imul(result, 31) + getNumberHashCode(this.total) | 0;
|
|
233
|
+
return result;
|
|
234
|
+
};
|
|
235
|
+
protoOf($).equals = function (other) {
|
|
236
|
+
if (this === other)
|
|
237
|
+
return true;
|
|
238
|
+
if (!(other instanceof UsageTotal()))
|
|
239
|
+
return false;
|
|
240
|
+
if (!equals(this.averagePerSection, other.averagePerSection))
|
|
241
|
+
return false;
|
|
242
|
+
if (!this.periodStart.equals(other.periodStart))
|
|
243
|
+
return false;
|
|
244
|
+
if (!(this.reportingSections === other.reportingSections))
|
|
245
|
+
return false;
|
|
246
|
+
if (!equals(this.total, other.total))
|
|
247
|
+
return false;
|
|
248
|
+
return true;
|
|
249
|
+
};
|
|
250
|
+
/* Solibo boundary patches */
|
|
251
|
+
Object.defineProperty($, 'name', { value: "UsageTotal", configurable: true });
|
|
252
|
+
__soliboRegisterLookup("UsageTotal", () => $);
|
|
253
|
+
UsageTotalClass = $;
|
|
254
|
+
}
|
|
255
|
+
return UsageTotalClass;
|
|
256
|
+
}
|
|
257
|
+
//region block: init
|
|
258
|
+
Companion_instance = new (Companion())();
|
|
259
|
+
//endregion
|
|
260
|
+
//region block: exports
|
|
261
|
+
export {
|
|
262
|
+
$serializer_getInstance as $serializer_getInstanceepfe1zdizl8w,
|
|
263
|
+
UsageTotal as UsageTotalioghuaxfdft5,
|
|
264
|
+
};
|
|
265
|
+
//endregion
|
|
266
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare abstract class UsageUnit {
|
|
4
|
+
private constructor();
|
|
5
|
+
static get KWH(): UsageUnit & {
|
|
6
|
+
get name(): "KWH";
|
|
7
|
+
get ordinal(): 0;
|
|
8
|
+
};
|
|
9
|
+
static get M3(): UsageUnit & {
|
|
10
|
+
get name(): "M3";
|
|
11
|
+
get ordinal(): 1;
|
|
12
|
+
};
|
|
13
|
+
static get Kwh(): UsageUnit & {
|
|
14
|
+
get name(): "KWH";
|
|
15
|
+
get ordinal(): 0;
|
|
16
|
+
};
|
|
17
|
+
static values(): [typeof UsageUnit.KWH, typeof UsageUnit.M3];
|
|
18
|
+
static valueOf(value: string): UsageUnit;
|
|
19
|
+
get name(): "KWH" | "M3";
|
|
20
|
+
get ordinal(): 0 | 1;
|
|
21
|
+
get value(): string;
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace UsageUnit {
|
|
25
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
26
|
+
namespace $metadata$ {
|
|
27
|
+
const constructor: abstract new () => UsageUnit;
|
|
28
|
+
}
|
|
29
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
30
|
+
private constructor();
|
|
31
|
+
}
|
|
32
|
+
namespace Companion {
|
|
33
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
34
|
+
namespace $metadata$ {
|
|
35
|
+
abstract class constructor /* implements SerializerFactory */ {
|
|
36
|
+
fromValue(value: string): Nullable<UsageUnit>;
|
|
37
|
+
private constructor();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UsageUnit3qr9kg6b9hrp7 as UsageUnit,
|
|
3
|
+
values260gx3rdg8o9b as values,
|
|
4
|
+
valueOfnwauqgkdkmtb as valueOf,
|
|
5
|
+
UsageUnit_KWH_getInstance3ppyrhwbgdrka as UsageUnit_KWH_getInstance,
|
|
6
|
+
UsageUnit_M3_getInstance3aiq0abdnnrxu as UsageUnit_M3_getInstance,
|
|
7
|
+
Companionpl8kfp7seiaz as Companion,
|
|
8
|
+
Companion_getInstance3aklyq2lu788w as Companion_getInstance,
|
|
9
|
+
} from './UsageUnit.mjs';
|
|
10
|
+
import { defineProp3ur6h3slcvq4x as defineProp } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
11
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
12
|
+
import { __soliboWrapAccessor, __soliboWrapMethod } from '../../../../../../../../solibo-boundary.mjs';
|
|
13
|
+
//region block: imports
|
|
14
|
+
//endregion
|
|
15
|
+
//region block: pre-declaration
|
|
16
|
+
//endregion
|
|
17
|
+
//region block: exports
|
|
18
|
+
var UsageUnit_0 = UsageUnit();
|
|
19
|
+
UsageUnit_0.values = values;
|
|
20
|
+
UsageUnit_0.valueOf = valueOf;
|
|
21
|
+
defineProp(UsageUnit_0, 'KWH', UsageUnit_KWH_getInstance, VOID, true);
|
|
22
|
+
defineProp(UsageUnit_0, 'M3', UsageUnit_M3_getInstance, VOID, true);
|
|
23
|
+
defineProp(UsageUnit_0, 'Companion', Companion_getInstance, VOID, true);
|
|
24
|
+
/* Enum aliases for UsageUnit */
|
|
25
|
+
Object.defineProperties(UsageUnit_0, {
|
|
26
|
+
"Kwh": { get() { return UsageUnit_0.KWH; }, enumerable: true, configurable: true }
|
|
27
|
+
});
|
|
28
|
+
/* Solibo boundary patches */
|
|
29
|
+
__soliboWrapMethod(UsageUnit_0, "values", {"isStatic":true});
|
|
30
|
+
__soliboWrapMethod(UsageUnit_0, "valueOf", {"isStatic":true});
|
|
31
|
+
export {
|
|
32
|
+
UsageUnit_0 as UsageUnit,
|
|
33
|
+
};
|
|
34
|
+
//endregion
|
|
35
|
+
|