@solibo/home-api 1.41.0 → 1.42.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/kotlin-kotlin-stdlib.mjs +4 -8
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +2 -2
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-api-accounting.mjs +581 -514
- package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-board.mjs +531 -472
- package/solibo-sdk-sdk-api-board.mjs.map +1 -1
- package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
- package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-company.mjs +4382 -3959
- package/solibo-sdk-sdk-api-company.mjs.map +1 -1
- package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
- package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
- package/solibo-sdk-sdk-api-document.mjs +7517 -6991
- package/solibo-sdk-sdk-api-document.mjs.map +1 -1
- package/solibo-sdk-sdk-api-economy.mjs +966 -856
- package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
- package/solibo-sdk-sdk-api-expense.mjs +1015 -902
- package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
- package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
- package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
- package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
- package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-insurance.mjs +778 -695
- package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
- package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
- package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
- package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
- package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
- package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
- package/solibo-sdk-sdk-api-marketing.mjs +383 -337
- package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
- package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
- package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
- package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
- package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
- package/solibo-sdk-sdk-api-person.mjs +1488 -1339
- package/solibo-sdk-sdk-api-person.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
- package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
- package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
- package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
- package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
- package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
- package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
- package/solibo-sdk-sdk-api-section.mjs +4076 -3685
- package/solibo-sdk-sdk-api-section.mjs.map +1 -1
- package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
- package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
- package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
- package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
- package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
- package/solibo-sdk-sdk-api-task.mjs +818 -727
- package/solibo-sdk-sdk-api-task.mjs.map +1 -1
- package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
- package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
- package/solibo-sdk-sdk-api-user.mjs +1059 -945
- package/solibo-sdk-sdk-api-user.mjs.map +1 -1
- package/solibo-sdk-sdk-core.mjs +121 -155
- package/solibo-sdk-sdk-core.mjs.map +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +716 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getKClass3t8tygqu4lcxf as getKClass,
|
|
3
|
-
KtList3hktaavzmj137 as KtList,
|
|
4
|
-
arrayOf1akklvh2at202 as arrayOf,
|
|
5
|
-
createKType31ecntyyaay3k as createKType,
|
|
6
|
-
createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
|
|
7
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
8
|
-
isInterface3d6p8outrmvmk as isInterface,
|
|
9
|
-
protoOf180f3jzyo7rfj as protoOf,
|
|
10
|
-
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
11
3
|
VOID3gxj6tk5isa35 as VOID,
|
|
4
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
12
5
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
13
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
14
6
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
7
|
+
await3n7kedgocftsv as await_0,
|
|
8
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
9
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
10
|
+
promisify1z0ncraq1ipzh as promisify,
|
|
11
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
15
13
|
listOf1jh22dvmctj1r as listOf,
|
|
16
14
|
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
17
15
|
replace3le3ie7l9k8aq as replace,
|
|
18
|
-
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
19
16
|
Unitkvevlwgzwiuc as Unit,
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
18
|
+
createKType31ecntyyaay3k as createKType,
|
|
22
19
|
listOfvhqybd2zx248 as listOf_0,
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
KtList3hktaavzmj137 as KtList,
|
|
21
|
+
createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
|
|
22
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
23
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
24
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
25
25
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
26
26
|
toString30pk9tzaqopn as toString,
|
|
27
27
|
equals2au1ep9vhcato as equals,
|
|
@@ -42,29 +42,11 @@ import {
|
|
|
42
42
|
defineProp3ur6h3slcvq4x as defineProp,
|
|
43
43
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
44
44
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
45
|
-
import {
|
|
46
|
-
serializer1hwzc6m64v1op as serializer,
|
|
47
|
-
KSerializerzf77vz1967fq as KSerializer,
|
|
48
|
-
SerializableWithd2dap36updxd as SerializableWith,
|
|
49
|
-
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
|
|
50
|
-
InstantSerializer_getInstance1n2pd669tdsta as InstantSerializer_getInstance,
|
|
51
|
-
UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$,
|
|
52
|
-
get_nullable197rfua9r7fsz as get_nullable,
|
|
53
|
-
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
54
|
-
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
55
|
-
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
56
|
-
StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
|
|
57
|
-
ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
|
|
58
|
-
LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
|
|
59
|
-
LinkedHashMapSerializermaoj2nyji7op as LinkedHashMapSerializer,
|
|
60
|
-
createAnnotatedEnumSerializer20ay4pme9p2h9 as createAnnotatedEnumSerializer,
|
|
61
|
-
SerializerFactory1qv9hivitncuv as SerializerFactory,
|
|
62
|
-
BooleanSerializer_getInstance22aja3hu17sxf as BooleanSerializer_getInstance,
|
|
63
|
-
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
64
45
|
import {
|
|
65
46
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
66
47
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
67
48
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
49
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
68
50
|
RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
|
|
69
51
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
70
52
|
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
@@ -75,51 +57,69 @@ import {
|
|
|
75
57
|
Base64ByteArray15zeye4j39p4v as Base64ByteArray,
|
|
76
58
|
toMultiValue5gsdsvx60e2f as toMultiValue,
|
|
77
59
|
map1gud2hobp4wg5 as map,
|
|
78
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
79
60
|
$serializer_getInstance2u6e9d36lcolu as $serializer_getInstance,
|
|
80
61
|
$serializer_getInstance2ubvlf5l752ie as $serializer_getInstance_0,
|
|
81
62
|
} from './solibo-sdk-sdk-core.mjs';
|
|
82
63
|
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from './ktor-ktor-utils.mjs';
|
|
83
64
|
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from './ktor-ktor-client-core.mjs';
|
|
65
|
+
import {
|
|
66
|
+
serializer1hwzc6m64v1op as serializer,
|
|
67
|
+
KSerializerzf77vz1967fq as KSerializer,
|
|
68
|
+
SerializableWithd2dap36updxd as SerializableWith,
|
|
69
|
+
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
|
|
70
|
+
InstantSerializer_getInstance1n2pd669tdsta as InstantSerializer_getInstance,
|
|
71
|
+
UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$,
|
|
72
|
+
get_nullable197rfua9r7fsz as get_nullable,
|
|
73
|
+
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
74
|
+
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
75
|
+
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
76
|
+
StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
|
|
77
|
+
ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
|
|
78
|
+
LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
|
|
79
|
+
LinkedHashMapSerializermaoj2nyji7op as LinkedHashMapSerializer,
|
|
80
|
+
createAnnotatedEnumSerializer20ay4pme9p2h9 as createAnnotatedEnumSerializer,
|
|
81
|
+
SerializerFactory1qv9hivitncuv as SerializerFactory,
|
|
82
|
+
BooleanSerializer_getInstance22aja3hu17sxf as BooleanSerializer_getInstance,
|
|
83
|
+
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
84
84
|
//region block: imports
|
|
85
85
|
var imul = Math.imul;
|
|
86
86
|
//endregion
|
|
87
87
|
//region block: pre-declaration
|
|
88
|
-
initMetadataForCompanion(Companion, VOID, [KSerializer]);
|
|
89
|
-
initMetadataForClass(ListVacantStorageRoomsResponse, 'ListVacantStorageRoomsResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_0});
|
|
90
|
-
initMetadataForCoroutine($assignStorageRoomToOrganizationCOROUTINE$, CoroutineImpl);
|
|
91
88
|
initMetadataForCoroutine($assignStorageRoomToOrganization$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
92
|
-
initMetadataForCoroutine($assignStorageRoomToPersonCOROUTINE$, CoroutineImpl);
|
|
93
89
|
initMetadataForCoroutine($assignStorageRoomToPerson$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
94
|
-
initMetadataForCoroutine($assignStorageRoomToSectionCOROUTINE$, CoroutineImpl);
|
|
95
90
|
initMetadataForCoroutine($assignStorageRoomToSection$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
96
|
-
initMetadataForCoroutine($createStorageRoomCOROUTINE$, CoroutineImpl);
|
|
97
91
|
initMetadataForCoroutine($createStorageRoom$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
98
|
-
initMetadataForCoroutine($deleteStorageRoomCOROUTINE$, CoroutineImpl);
|
|
99
92
|
initMetadataForCoroutine($deleteStorageRoom$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
100
|
-
initMetadataForCoroutine($exportStorageRoomsCOROUTINE$, CoroutineImpl);
|
|
101
93
|
initMetadataForCoroutine($exportStorageRooms$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
102
|
-
initMetadataForCoroutine($indexStorageRoomCOROUTINE$, CoroutineImpl);
|
|
103
94
|
initMetadataForCoroutine($indexStorageRoom$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
104
|
-
initMetadataForCoroutine($indexStorageRoomsUserCOROUTINE$, CoroutineImpl);
|
|
105
95
|
initMetadataForCoroutine($indexStorageRoomsUser$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
106
|
-
initMetadataForCoroutine($listVacantStorageRoomsCOROUTINE$, CoroutineImpl);
|
|
107
96
|
initMetadataForCoroutine($listVacantStorageRooms$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
108
|
-
initMetadataForCoroutine($showStorageRoomCOROUTINE$, CoroutineImpl);
|
|
109
97
|
initMetadataForCoroutine($showStorageRoom$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
110
|
-
initMetadataForCoroutine($storageRoomAllocationOverviewCOROUTINE$, CoroutineImpl);
|
|
111
98
|
initMetadataForCoroutine($storageRoomAllocationOverview$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
112
|
-
initMetadataForCoroutine($storageRoomVacancyCOROUTINE$, CoroutineImpl);
|
|
113
99
|
initMetadataForCoroutine($storageRoomVacancy$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
114
|
-
initMetadataForCoroutine($unAssignStorageRoomToOrganizationCOROUTINE$, CoroutineImpl);
|
|
115
100
|
initMetadataForCoroutine($unAssignStorageRoomToOrganization$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
116
|
-
initMetadataForCoroutine($unAssignStorageRoomToPersonCOROUTINE$, CoroutineImpl);
|
|
117
101
|
initMetadataForCoroutine($unAssignStorageRoomToPerson$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
118
|
-
initMetadataForCoroutine($unAssignStorageRoomToSectionCOROUTINE$, CoroutineImpl);
|
|
119
102
|
initMetadataForCoroutine($unAssignStorageRoomToSection$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
120
|
-
initMetadataForCoroutine($updateStorageRoomCOROUTINE$, CoroutineImpl);
|
|
121
103
|
initMetadataForCoroutine($updateStorageRoom$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
122
104
|
initMetadataForClass(StorageApi, 'StorageApi', create, ApiClient, VOID, [4, 2, 1, 7, 3]);
|
|
105
|
+
initMetadataForCoroutine($assignStorageRoomToOrganizationOperationCOROUTINE$, CoroutineImpl);
|
|
106
|
+
initMetadataForCoroutine($assignStorageRoomToPersonOperationCOROUTINE$, CoroutineImpl);
|
|
107
|
+
initMetadataForCoroutine($assignStorageRoomToSectionOperationCOROUTINE$, CoroutineImpl);
|
|
108
|
+
initMetadataForCoroutine($createStorageRoomOperationCOROUTINE$, CoroutineImpl);
|
|
109
|
+
initMetadataForCoroutine($deleteStorageRoomOperationCOROUTINE$, CoroutineImpl);
|
|
110
|
+
initMetadataForCoroutine($exportStorageRoomsOperationCOROUTINE$, CoroutineImpl);
|
|
111
|
+
initMetadataForCoroutine($indexStorageRoomOperationCOROUTINE$, CoroutineImpl);
|
|
112
|
+
initMetadataForCoroutine($indexStorageRoomsUserOperationCOROUTINE$, CoroutineImpl);
|
|
113
|
+
initMetadataForCompanion(Companion, VOID, [KSerializer]);
|
|
114
|
+
initMetadataForClass(ListVacantStorageRoomsResponse, 'ListVacantStorageRoomsResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_0});
|
|
115
|
+
initMetadataForCoroutine($listVacantStorageRoomsOperationCOROUTINE$, CoroutineImpl);
|
|
116
|
+
initMetadataForCoroutine($showStorageRoomOperationCOROUTINE$, CoroutineImpl);
|
|
117
|
+
initMetadataForCoroutine($storageRoomAllocationOverviewOperationCOROUTINE$, CoroutineImpl);
|
|
118
|
+
initMetadataForCoroutine($storageRoomVacancyOperationCOROUTINE$, CoroutineImpl);
|
|
119
|
+
initMetadataForCoroutine($unAssignStorageRoomToOrganizationOperationCOROUTINE$, CoroutineImpl);
|
|
120
|
+
initMetadataForCoroutine($unAssignStorageRoomToPersonOperationCOROUTINE$, CoroutineImpl);
|
|
121
|
+
initMetadataForCoroutine($unAssignStorageRoomToSectionOperationCOROUTINE$, CoroutineImpl);
|
|
122
|
+
initMetadataForCoroutine($updateStorageRoomOperationCOROUTINE$, CoroutineImpl);
|
|
123
123
|
initMetadataForCompanion(Companion_0);
|
|
124
124
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
125
125
|
initMetadataForClass(AssignStorageRoomCommand, 'AssignStorageRoomCommand', AssignStorageRoomCommand, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
@@ -168,36 +168,6 @@ function get_storage(_this__u8e3s4) {
|
|
|
168
168
|
function _get_storage_$lambda_85v83v(arguments_0) {
|
|
169
169
|
return create(arguments_0.baseUrl_1, arguments_0.httpClientEngine_1, arguments_0.httpClientConfig_1);
|
|
170
170
|
}
|
|
171
|
-
function Companion() {
|
|
172
|
-
Companion_instance_0 = this;
|
|
173
|
-
var tmp = this;
|
|
174
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
175
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
176
|
-
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(StorageRoomVacant), arrayOf([]), false))]), false));
|
|
177
|
-
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
178
|
-
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
179
|
-
}
|
|
180
|
-
protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
|
|
181
|
-
return this.descriptor_1;
|
|
182
|
-
};
|
|
183
|
-
protoOf(Companion).serialize_4an8jl_k$ = function (encoder, value) {
|
|
184
|
-
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
185
|
-
};
|
|
186
|
-
protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
|
|
187
|
-
return this.serialize_4an8jl_k$(encoder, value instanceof ListVacantStorageRoomsResponse ? value : THROW_CCE());
|
|
188
|
-
};
|
|
189
|
-
protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
|
|
190
|
-
return new ListVacantStorageRoomsResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
191
|
-
};
|
|
192
|
-
protoOf(Companion).serializer_9w0wvi_k$ = function () {
|
|
193
|
-
return Companion_getInstance_0();
|
|
194
|
-
};
|
|
195
|
-
var Companion_instance_0;
|
|
196
|
-
function Companion_getInstance_0() {
|
|
197
|
-
if (Companion_instance_0 == null)
|
|
198
|
-
new Companion();
|
|
199
|
-
return Companion_instance_0;
|
|
200
|
-
}
|
|
201
171
|
function StorageApi_init_$Init$(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer, $this) {
|
|
202
172
|
baseUrl = baseUrl === VOID ? 'https://home.solibo.no/api' : baseUrl;
|
|
203
173
|
httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
|
|
@@ -218,76 +188,6 @@ function StorageApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
218
188
|
function createWithClient(baseUrl, httpClient) {
|
|
219
189
|
return StorageApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(StorageApi)));
|
|
220
190
|
}
|
|
221
|
-
function ListVacantStorageRoomsResponse(value) {
|
|
222
|
-
Companion_getInstance_0();
|
|
223
|
-
this.value_1 = value;
|
|
224
|
-
}
|
|
225
|
-
function StorageApi$listVacantStorageRooms$lambda($this$map) {
|
|
226
|
-
return $this$map.value_1;
|
|
227
|
-
}
|
|
228
|
-
function $assignStorageRoomToOrganizationCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, organizationId, assignStorageRoomCommand, resultContinuation) {
|
|
229
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
230
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
231
|
-
this.companyId_1 = companyId;
|
|
232
|
-
this.storageRoomId_1 = storageRoomId;
|
|
233
|
-
this.organizationId_1 = organizationId;
|
|
234
|
-
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
235
|
-
}
|
|
236
|
-
protoOf($assignStorageRoomToOrganizationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
237
|
-
var suspendResult = this.result_1;
|
|
238
|
-
$sm: do
|
|
239
|
-
try {
|
|
240
|
-
var tmp = this.state_1;
|
|
241
|
-
switch (tmp) {
|
|
242
|
-
case 0:
|
|
243
|
-
this.exceptionState_1 = 2;
|
|
244
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
245
|
-
var localVariableBody = this.assignStorageRoomCommand_1;
|
|
246
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
247
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
248
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
249
|
-
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{organizationId}', this.organizationId_1.toString());
|
|
250
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
251
|
-
this.state_1 = 1;
|
|
252
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
253
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
254
|
-
return suspendResult;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
continue $sm;
|
|
258
|
-
case 1:
|
|
259
|
-
var this_0 = suspendResult;
|
|
260
|
-
var tmp_0 = getKClass(Unit);
|
|
261
|
-
var tmp_1 = null instanceof Unit;
|
|
262
|
-
var tmp_2;
|
|
263
|
-
try {
|
|
264
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
265
|
-
} catch ($p) {
|
|
266
|
-
var tmp_3;
|
|
267
|
-
if ($p instanceof Error) {
|
|
268
|
-
var _unused_var__etf5q3 = $p;
|
|
269
|
-
tmp_3 = null;
|
|
270
|
-
} else {
|
|
271
|
-
throw $p;
|
|
272
|
-
}
|
|
273
|
-
tmp_2 = tmp_3;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
277
|
-
case 2:
|
|
278
|
-
throw this.exception_1;
|
|
279
|
-
}
|
|
280
|
-
} catch ($p_0) {
|
|
281
|
-
var e = $p_0;
|
|
282
|
-
if (this.exceptionState_1 === 2) {
|
|
283
|
-
throw e;
|
|
284
|
-
} else {
|
|
285
|
-
this.state_1 = this.exceptionState_1;
|
|
286
|
-
this.exception_1 = e;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
while (true);
|
|
290
|
-
};
|
|
291
191
|
function $assignStorageRoomToOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, organizationId, assignStorageRoomCommand, resultContinuation) {
|
|
292
192
|
CoroutineImpl.call(this, resultContinuation);
|
|
293
193
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -344,7 +244,7 @@ protoOf($assignStorageRoomToOrganization$suspendBridgeCOROUTINE$).doResume_5yljm
|
|
|
344
244
|
}
|
|
345
245
|
while (true);
|
|
346
246
|
};
|
|
347
|
-
function $
|
|
247
|
+
function $assignStorageRoomToPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, personId, assignStorageRoomCommand, resultContinuation) {
|
|
348
248
|
CoroutineImpl.call(this, resultContinuation);
|
|
349
249
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
350
250
|
this.companyId_1 = companyId;
|
|
@@ -352,53 +252,46 @@ function $assignStorageRoomToPersonCOROUTINE$(_this__u8e3s4, companyId, storageR
|
|
|
352
252
|
this.personId_1 = personId;
|
|
353
253
|
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
354
254
|
}
|
|
355
|
-
protoOf($
|
|
255
|
+
protoOf($assignStorageRoomToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
356
256
|
var suspendResult = this.result_1;
|
|
357
257
|
$sm: do
|
|
358
258
|
try {
|
|
359
259
|
var tmp = this.state_1;
|
|
360
260
|
switch (tmp) {
|
|
361
261
|
case 0:
|
|
362
|
-
this.exceptionState_1 =
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{personId}', this.personId_1.toString());
|
|
369
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
370
|
-
this.state_1 = 1;
|
|
371
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
372
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
373
|
-
return suspendResult;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
continue $sm;
|
|
377
|
-
case 1:
|
|
378
|
-
var this_0 = suspendResult;
|
|
379
|
-
var tmp_0 = getKClass(Unit);
|
|
380
|
-
var tmp_1 = null instanceof Unit;
|
|
381
|
-
var tmp_2;
|
|
382
|
-
try {
|
|
383
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
384
|
-
} catch ($p) {
|
|
385
|
-
var tmp_3;
|
|
386
|
-
if ($p instanceof Error) {
|
|
387
|
-
var _unused_var__etf5q3 = $p;
|
|
388
|
-
tmp_3 = null;
|
|
389
|
-
} else {
|
|
390
|
-
throw $p;
|
|
262
|
+
this.exceptionState_1 = 4;
|
|
263
|
+
if (this._this__u8e3s4__1.assignStorageRoomToPerson === protoOf(StorageApi).assignStorageRoomToPerson) {
|
|
264
|
+
this.state_1 = 2;
|
|
265
|
+
suspendResult = this._this__u8e3s4__1.assignStorageRoomToPerson_m9s4dw_k$(this.companyId_1, this.storageRoomId_1, this.personId_1, this.assignStorageRoomCommand_1, this);
|
|
266
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
267
|
+
return suspendResult;
|
|
391
268
|
}
|
|
392
|
-
|
|
269
|
+
continue $sm;
|
|
270
|
+
} else {
|
|
271
|
+
this.state_1 = 1;
|
|
272
|
+
suspendResult = await_0(this._this__u8e3s4__1.assignStorageRoomToPerson(this.companyId_1, this.storageRoomId_1, this.personId_1, this.assignStorageRoomCommand_1), this);
|
|
273
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
274
|
+
return suspendResult;
|
|
275
|
+
}
|
|
276
|
+
continue $sm;
|
|
393
277
|
}
|
|
394
278
|
|
|
395
|
-
|
|
279
|
+
case 1:
|
|
280
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
281
|
+
this.state_1 = 3;
|
|
282
|
+
continue $sm;
|
|
396
283
|
case 2:
|
|
284
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
285
|
+
this.state_1 = 3;
|
|
286
|
+
continue $sm;
|
|
287
|
+
case 3:
|
|
288
|
+
return this.WHEN_RESULT0__1;
|
|
289
|
+
case 4:
|
|
397
290
|
throw this.exception_1;
|
|
398
291
|
}
|
|
399
|
-
} catch ($
|
|
400
|
-
var e = $
|
|
401
|
-
if (this.exceptionState_1 ===
|
|
292
|
+
} catch ($p) {
|
|
293
|
+
var e = $p;
|
|
294
|
+
if (this.exceptionState_1 === 4) {
|
|
402
295
|
throw e;
|
|
403
296
|
} else {
|
|
404
297
|
this.state_1 = this.exceptionState_1;
|
|
@@ -407,15 +300,15 @@ protoOf($assignStorageRoomToPersonCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
407
300
|
}
|
|
408
301
|
while (true);
|
|
409
302
|
};
|
|
410
|
-
function $
|
|
303
|
+
function $assignStorageRoomToSection$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, sectionId, assignStorageRoomCommand, resultContinuation) {
|
|
411
304
|
CoroutineImpl.call(this, resultContinuation);
|
|
412
305
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
413
306
|
this.companyId_1 = companyId;
|
|
414
307
|
this.storageRoomId_1 = storageRoomId;
|
|
415
|
-
this.
|
|
308
|
+
this.sectionId_1 = sectionId;
|
|
416
309
|
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
417
310
|
}
|
|
418
|
-
protoOf($
|
|
311
|
+
protoOf($assignStorageRoomToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
419
312
|
var suspendResult = this.result_1;
|
|
420
313
|
$sm: do
|
|
421
314
|
try {
|
|
@@ -423,16 +316,16 @@ protoOf($assignStorageRoomToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
423
316
|
switch (tmp) {
|
|
424
317
|
case 0:
|
|
425
318
|
this.exceptionState_1 = 4;
|
|
426
|
-
if (this._this__u8e3s4__1.
|
|
319
|
+
if (this._this__u8e3s4__1.assignStorageRoomToSection === protoOf(StorageApi).assignStorageRoomToSection) {
|
|
427
320
|
this.state_1 = 2;
|
|
428
|
-
suspendResult = this._this__u8e3s4__1.
|
|
321
|
+
suspendResult = this._this__u8e3s4__1.assignStorageRoomToSection_goueeg_k$(this.companyId_1, this.storageRoomId_1, this.sectionId_1, this.assignStorageRoomCommand_1, this);
|
|
429
322
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
430
323
|
return suspendResult;
|
|
431
324
|
}
|
|
432
325
|
continue $sm;
|
|
433
326
|
} else {
|
|
434
327
|
this.state_1 = 1;
|
|
435
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
328
|
+
suspendResult = await_0(this._this__u8e3s4__1.assignStorageRoomToSection(this.companyId_1, this.storageRoomId_1, this.sectionId_1, this.assignStorageRoomCommand_1), this);
|
|
436
329
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
437
330
|
return suspendResult;
|
|
438
331
|
}
|
|
@@ -463,61 +356,52 @@ protoOf($assignStorageRoomToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
463
356
|
}
|
|
464
357
|
while (true);
|
|
465
358
|
};
|
|
466
|
-
function $
|
|
359
|
+
function $createStorageRoom$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, createStorageRoomCommand, resultContinuation) {
|
|
467
360
|
CoroutineImpl.call(this, resultContinuation);
|
|
468
361
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
469
362
|
this.companyId_1 = companyId;
|
|
470
|
-
this.
|
|
471
|
-
this.sectionId_1 = sectionId;
|
|
472
|
-
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
363
|
+
this.createStorageRoomCommand_1 = createStorageRoomCommand;
|
|
473
364
|
}
|
|
474
|
-
protoOf($
|
|
365
|
+
protoOf($createStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
475
366
|
var suspendResult = this.result_1;
|
|
476
367
|
$sm: do
|
|
477
368
|
try {
|
|
478
369
|
var tmp = this.state_1;
|
|
479
370
|
switch (tmp) {
|
|
480
371
|
case 0:
|
|
481
|
-
this.exceptionState_1 =
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/section/{sectionId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{sectionId}', this.sectionId_1.toString());
|
|
488
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
489
|
-
this.state_1 = 1;
|
|
490
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
491
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
492
|
-
return suspendResult;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
continue $sm;
|
|
496
|
-
case 1:
|
|
497
|
-
var this_0 = suspendResult;
|
|
498
|
-
var tmp_0 = getKClass(Unit);
|
|
499
|
-
var tmp_1 = null instanceof Unit;
|
|
500
|
-
var tmp_2;
|
|
501
|
-
try {
|
|
502
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
503
|
-
} catch ($p) {
|
|
504
|
-
var tmp_3;
|
|
505
|
-
if ($p instanceof Error) {
|
|
506
|
-
var _unused_var__etf5q3 = $p;
|
|
507
|
-
tmp_3 = null;
|
|
508
|
-
} else {
|
|
509
|
-
throw $p;
|
|
372
|
+
this.exceptionState_1 = 4;
|
|
373
|
+
if (this._this__u8e3s4__1.createStorageRoom === protoOf(StorageApi).createStorageRoom) {
|
|
374
|
+
this.state_1 = 2;
|
|
375
|
+
suspendResult = this._this__u8e3s4__1.createStorageRoom_r029k3_k$(this.companyId_1, this.createStorageRoomCommand_1, this);
|
|
376
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
377
|
+
return suspendResult;
|
|
510
378
|
}
|
|
511
|
-
|
|
379
|
+
continue $sm;
|
|
380
|
+
} else {
|
|
381
|
+
this.state_1 = 1;
|
|
382
|
+
suspendResult = await_0(this._this__u8e3s4__1.createStorageRoom(this.companyId_1, this.createStorageRoomCommand_1), this);
|
|
383
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
384
|
+
return suspendResult;
|
|
385
|
+
}
|
|
386
|
+
continue $sm;
|
|
512
387
|
}
|
|
513
388
|
|
|
514
|
-
|
|
389
|
+
case 1:
|
|
390
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
391
|
+
this.state_1 = 3;
|
|
392
|
+
continue $sm;
|
|
515
393
|
case 2:
|
|
394
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
395
|
+
this.state_1 = 3;
|
|
396
|
+
continue $sm;
|
|
397
|
+
case 3:
|
|
398
|
+
return this.WHEN_RESULT0__1;
|
|
399
|
+
case 4:
|
|
516
400
|
throw this.exception_1;
|
|
517
401
|
}
|
|
518
|
-
} catch ($
|
|
519
|
-
var e = $
|
|
520
|
-
if (this.exceptionState_1 ===
|
|
402
|
+
} catch ($p) {
|
|
403
|
+
var e = $p;
|
|
404
|
+
if (this.exceptionState_1 === 4) {
|
|
521
405
|
throw e;
|
|
522
406
|
} else {
|
|
523
407
|
this.state_1 = this.exceptionState_1;
|
|
@@ -526,15 +410,13 @@ protoOf($assignStorageRoomToSectionCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
526
410
|
}
|
|
527
411
|
while (true);
|
|
528
412
|
};
|
|
529
|
-
function $
|
|
413
|
+
function $deleteStorageRoom$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, resultContinuation) {
|
|
530
414
|
CoroutineImpl.call(this, resultContinuation);
|
|
531
415
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
532
416
|
this.companyId_1 = companyId;
|
|
533
417
|
this.storageRoomId_1 = storageRoomId;
|
|
534
|
-
this.sectionId_1 = sectionId;
|
|
535
|
-
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
536
418
|
}
|
|
537
|
-
protoOf($
|
|
419
|
+
protoOf($deleteStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
538
420
|
var suspendResult = this.result_1;
|
|
539
421
|
$sm: do
|
|
540
422
|
try {
|
|
@@ -542,16 +424,16 @@ protoOf($assignStorageRoomToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
542
424
|
switch (tmp) {
|
|
543
425
|
case 0:
|
|
544
426
|
this.exceptionState_1 = 4;
|
|
545
|
-
if (this._this__u8e3s4__1.
|
|
427
|
+
if (this._this__u8e3s4__1.deleteStorageRoom === protoOf(StorageApi).deleteStorageRoom) {
|
|
546
428
|
this.state_1 = 2;
|
|
547
|
-
suspendResult = this._this__u8e3s4__1.
|
|
429
|
+
suspendResult = this._this__u8e3s4__1.deleteStorageRoom_tqcdkp_k$(this.companyId_1, this.storageRoomId_1, this);
|
|
548
430
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
549
431
|
return suspendResult;
|
|
550
432
|
}
|
|
551
433
|
continue $sm;
|
|
552
434
|
} else {
|
|
553
435
|
this.state_1 = 1;
|
|
554
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
436
|
+
suspendResult = await_0(this._this__u8e3s4__1.deleteStorageRoom(this.companyId_1, this.storageRoomId_1), this);
|
|
555
437
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
556
438
|
return suspendResult;
|
|
557
439
|
}
|
|
@@ -582,59 +464,51 @@ protoOf($assignStorageRoomToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
582
464
|
}
|
|
583
465
|
while (true);
|
|
584
466
|
};
|
|
585
|
-
function $
|
|
467
|
+
function $exportStorageRooms$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, resultContinuation) {
|
|
586
468
|
CoroutineImpl.call(this, resultContinuation);
|
|
587
469
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
588
470
|
this.companyId_1 = companyId;
|
|
589
|
-
this.createStorageRoomCommand_1 = createStorageRoomCommand;
|
|
590
471
|
}
|
|
591
|
-
protoOf($
|
|
472
|
+
protoOf($exportStorageRooms$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
592
473
|
var suspendResult = this.result_1;
|
|
593
474
|
$sm: do
|
|
594
475
|
try {
|
|
595
476
|
var tmp = this.state_1;
|
|
596
477
|
switch (tmp) {
|
|
597
478
|
case 0:
|
|
598
|
-
this.exceptionState_1 =
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
var tmp1_path = replace('/companies/{companyId}/storageRooms', '{companyId}', this.companyId_1.toString());
|
|
605
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
606
|
-
this.state_1 = 1;
|
|
607
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
608
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
609
|
-
return suspendResult;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
continue $sm;
|
|
613
|
-
case 1:
|
|
614
|
-
var this_0 = suspendResult;
|
|
615
|
-
var tmp_0 = getKClass(StorageRoom);
|
|
616
|
-
var tmp_1 = null instanceof StorageRoom;
|
|
617
|
-
var tmp_2;
|
|
618
|
-
try {
|
|
619
|
-
tmp_2 = createKType(getKClass(StorageRoom), arrayOf([]), false);
|
|
620
|
-
} catch ($p) {
|
|
621
|
-
var tmp_3;
|
|
622
|
-
if ($p instanceof Error) {
|
|
623
|
-
var _unused_var__etf5q3 = $p;
|
|
624
|
-
tmp_3 = null;
|
|
625
|
-
} else {
|
|
626
|
-
throw $p;
|
|
479
|
+
this.exceptionState_1 = 4;
|
|
480
|
+
if (this._this__u8e3s4__1.exportStorageRooms === protoOf(StorageApi).exportStorageRooms) {
|
|
481
|
+
this.state_1 = 2;
|
|
482
|
+
suspendResult = this._this__u8e3s4__1.exportStorageRooms_j0m1jf_k$(this.companyId_1, this);
|
|
483
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
484
|
+
return suspendResult;
|
|
627
485
|
}
|
|
628
|
-
|
|
486
|
+
continue $sm;
|
|
487
|
+
} else {
|
|
488
|
+
this.state_1 = 1;
|
|
489
|
+
suspendResult = await_0(this._this__u8e3s4__1.exportStorageRooms(this.companyId_1), this);
|
|
490
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
491
|
+
return suspendResult;
|
|
492
|
+
}
|
|
493
|
+
continue $sm;
|
|
629
494
|
}
|
|
630
495
|
|
|
631
|
-
|
|
496
|
+
case 1:
|
|
497
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
498
|
+
this.state_1 = 3;
|
|
499
|
+
continue $sm;
|
|
632
500
|
case 2:
|
|
501
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
502
|
+
this.state_1 = 3;
|
|
503
|
+
continue $sm;
|
|
504
|
+
case 3:
|
|
505
|
+
return this.WHEN_RESULT0__1;
|
|
506
|
+
case 4:
|
|
633
507
|
throw this.exception_1;
|
|
634
508
|
}
|
|
635
|
-
} catch ($
|
|
636
|
-
var e = $
|
|
637
|
-
if (this.exceptionState_1 ===
|
|
509
|
+
} catch ($p) {
|
|
510
|
+
var e = $p;
|
|
511
|
+
if (this.exceptionState_1 === 4) {
|
|
638
512
|
throw e;
|
|
639
513
|
} else {
|
|
640
514
|
this.state_1 = this.exceptionState_1;
|
|
@@ -643,13 +517,18 @@ protoOf($createStorageRoomCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
643
517
|
}
|
|
644
518
|
while (true);
|
|
645
519
|
};
|
|
646
|
-
function $
|
|
520
|
+
function $indexStorageRoom$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, search, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
647
521
|
CoroutineImpl.call(this, resultContinuation);
|
|
648
522
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
649
523
|
this.companyId_1 = companyId;
|
|
650
|
-
this.
|
|
524
|
+
this.search_1 = search;
|
|
525
|
+
this.assigned_1 = assigned;
|
|
526
|
+
this.fields_1 = fields;
|
|
527
|
+
this.pageToken_1 = pageToken;
|
|
528
|
+
this.autoPaginate_1 = autoPaginate;
|
|
529
|
+
this.count_1 = count;
|
|
651
530
|
}
|
|
652
|
-
protoOf($
|
|
531
|
+
protoOf($indexStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
653
532
|
var suspendResult = this.result_1;
|
|
654
533
|
$sm: do
|
|
655
534
|
try {
|
|
@@ -657,16 +536,16 @@ protoOf($createStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
657
536
|
switch (tmp) {
|
|
658
537
|
case 0:
|
|
659
538
|
this.exceptionState_1 = 4;
|
|
660
|
-
if (this._this__u8e3s4__1.
|
|
539
|
+
if (this._this__u8e3s4__1.indexStorageRoom === protoOf(StorageApi).indexStorageRoom) {
|
|
661
540
|
this.state_1 = 2;
|
|
662
|
-
suspendResult = this._this__u8e3s4__1.
|
|
541
|
+
suspendResult = this._this__u8e3s4__1.indexStorageRoom$default_lrb8pn_k$(this.companyId_1, this.search_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
663
542
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
543
|
return suspendResult;
|
|
665
544
|
}
|
|
666
545
|
continue $sm;
|
|
667
546
|
} else {
|
|
668
547
|
this.state_1 = 1;
|
|
669
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
548
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexStorageRoom(this.companyId_1, this.search_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
670
549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
671
550
|
return suspendResult;
|
|
672
551
|
}
|
|
@@ -697,59 +576,57 @@ protoOf($createStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
697
576
|
}
|
|
698
577
|
while (true);
|
|
699
578
|
};
|
|
700
|
-
function $
|
|
579
|
+
function $indexStorageRoomsUser$suspendBridgeCOROUTINE$(_this__u8e3s4, companyIds, search, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
701
580
|
CoroutineImpl.call(this, resultContinuation);
|
|
702
581
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
703
|
-
this.
|
|
704
|
-
this.
|
|
582
|
+
this.companyIds_1 = companyIds;
|
|
583
|
+
this.search_1 = search;
|
|
584
|
+
this.assigned_1 = assigned;
|
|
585
|
+
this.fields_1 = fields;
|
|
586
|
+
this.pageToken_1 = pageToken;
|
|
587
|
+
this.autoPaginate_1 = autoPaginate;
|
|
588
|
+
this.count_1 = count;
|
|
705
589
|
}
|
|
706
|
-
protoOf($
|
|
590
|
+
protoOf($indexStorageRoomsUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
707
591
|
var suspendResult = this.result_1;
|
|
708
592
|
$sm: do
|
|
709
593
|
try {
|
|
710
594
|
var tmp = this.state_1;
|
|
711
595
|
switch (tmp) {
|
|
712
596
|
case 0:
|
|
713
|
-
this.exceptionState_1 =
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
var tmp1_path = replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString());
|
|
720
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
721
|
-
this.state_1 = 1;
|
|
722
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
723
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
724
|
-
return suspendResult;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
continue $sm;
|
|
728
|
-
case 1:
|
|
729
|
-
var this_0 = suspendResult;
|
|
730
|
-
var tmp_0 = getKClass(Unit);
|
|
731
|
-
var tmp_1 = null instanceof Unit;
|
|
732
|
-
var tmp_2;
|
|
733
|
-
try {
|
|
734
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
735
|
-
} catch ($p) {
|
|
736
|
-
var tmp_3;
|
|
737
|
-
if ($p instanceof Error) {
|
|
738
|
-
var _unused_var__etf5q3 = $p;
|
|
739
|
-
tmp_3 = null;
|
|
740
|
-
} else {
|
|
741
|
-
throw $p;
|
|
597
|
+
this.exceptionState_1 = 4;
|
|
598
|
+
if (this._this__u8e3s4__1.indexStorageRoomsUser === protoOf(StorageApi).indexStorageRoomsUser) {
|
|
599
|
+
this.state_1 = 2;
|
|
600
|
+
suspendResult = this._this__u8e3s4__1.indexStorageRoomsUser$default_lyz231_k$(this.companyIds_1, this.search_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
601
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
602
|
+
return suspendResult;
|
|
742
603
|
}
|
|
743
|
-
|
|
604
|
+
continue $sm;
|
|
605
|
+
} else {
|
|
606
|
+
this.state_1 = 1;
|
|
607
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexStorageRoomsUser(this.companyIds_1, this.search_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
608
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
609
|
+
return suspendResult;
|
|
610
|
+
}
|
|
611
|
+
continue $sm;
|
|
744
612
|
}
|
|
745
613
|
|
|
746
|
-
|
|
614
|
+
case 1:
|
|
615
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
616
|
+
this.state_1 = 3;
|
|
617
|
+
continue $sm;
|
|
747
618
|
case 2:
|
|
619
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
620
|
+
this.state_1 = 3;
|
|
621
|
+
continue $sm;
|
|
622
|
+
case 3:
|
|
623
|
+
return this.WHEN_RESULT0__1;
|
|
624
|
+
case 4:
|
|
748
625
|
throw this.exception_1;
|
|
749
626
|
}
|
|
750
|
-
} catch ($
|
|
751
|
-
var e = $
|
|
752
|
-
if (this.exceptionState_1 ===
|
|
627
|
+
} catch ($p) {
|
|
628
|
+
var e = $p;
|
|
629
|
+
if (this.exceptionState_1 === 4) {
|
|
753
630
|
throw e;
|
|
754
631
|
} else {
|
|
755
632
|
this.state_1 = this.exceptionState_1;
|
|
@@ -758,13 +635,14 @@ protoOf($deleteStorageRoomCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
758
635
|
}
|
|
759
636
|
while (true);
|
|
760
637
|
};
|
|
761
|
-
function $
|
|
638
|
+
function $listVacantStorageRooms$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
|
|
762
639
|
CoroutineImpl.call(this, resultContinuation);
|
|
763
640
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
764
641
|
this.companyId_1 = companyId;
|
|
765
|
-
this.
|
|
642
|
+
this.searchDate_1 = searchDate;
|
|
643
|
+
this.fields_1 = fields;
|
|
766
644
|
}
|
|
767
|
-
protoOf($
|
|
645
|
+
protoOf($listVacantStorageRooms$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
768
646
|
var suspendResult = this.result_1;
|
|
769
647
|
$sm: do
|
|
770
648
|
try {
|
|
@@ -772,16 +650,16 @@ protoOf($deleteStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
772
650
|
switch (tmp) {
|
|
773
651
|
case 0:
|
|
774
652
|
this.exceptionState_1 = 4;
|
|
775
|
-
if (this._this__u8e3s4__1.
|
|
653
|
+
if (this._this__u8e3s4__1.listVacantStorageRooms === protoOf(StorageApi).listVacantStorageRooms) {
|
|
776
654
|
this.state_1 = 2;
|
|
777
|
-
suspendResult = this._this__u8e3s4__1.
|
|
655
|
+
suspendResult = this._this__u8e3s4__1.listVacantStorageRooms$default_62w6wj_k$(this.companyId_1, this.searchDate_1, this.fields_1, this);
|
|
778
656
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
779
657
|
return suspendResult;
|
|
780
658
|
}
|
|
781
659
|
continue $sm;
|
|
782
660
|
} else {
|
|
783
661
|
this.state_1 = 1;
|
|
784
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
662
|
+
suspendResult = await_0(this._this__u8e3s4__1.listVacantStorageRooms(this.companyId_1, this.searchDate_1, this.fields_1), this);
|
|
785
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
786
664
|
return suspendResult;
|
|
787
665
|
}
|
|
@@ -812,58 +690,53 @@ protoOf($deleteStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
812
690
|
}
|
|
813
691
|
while (true);
|
|
814
692
|
};
|
|
815
|
-
function $
|
|
693
|
+
function $showStorageRoom$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, fields, resultContinuation) {
|
|
816
694
|
CoroutineImpl.call(this, resultContinuation);
|
|
817
695
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
818
696
|
this.companyId_1 = companyId;
|
|
697
|
+
this.storageRoomId_1 = storageRoomId;
|
|
698
|
+
this.fields_1 = fields;
|
|
819
699
|
}
|
|
820
|
-
protoOf($
|
|
700
|
+
protoOf($showStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
821
701
|
var suspendResult = this.result_1;
|
|
822
702
|
$sm: do
|
|
823
703
|
try {
|
|
824
704
|
var tmp = this.state_1;
|
|
825
705
|
switch (tmp) {
|
|
826
706
|
case 0:
|
|
827
|
-
this.exceptionState_1 =
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
707
|
+
this.exceptionState_1 = 4;
|
|
708
|
+
if (this._this__u8e3s4__1.showStorageRoom === protoOf(StorageApi).showStorageRoom) {
|
|
709
|
+
this.state_1 = 2;
|
|
710
|
+
suspendResult = this._this__u8e3s4__1.showStorageRoom$default_gxpqt9_k$(this.companyId_1, this.storageRoomId_1, this.fields_1, this);
|
|
711
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
712
|
+
return suspendResult;
|
|
713
|
+
}
|
|
714
|
+
continue $sm;
|
|
715
|
+
} else {
|
|
716
|
+
this.state_1 = 1;
|
|
717
|
+
suspendResult = await_0(this._this__u8e3s4__1.showStorageRoom(this.companyId_1, this.storageRoomId_1, this.fields_1), this);
|
|
718
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
719
|
+
return suspendResult;
|
|
720
|
+
}
|
|
721
|
+
continue $sm;
|
|
839
722
|
}
|
|
840
723
|
|
|
841
|
-
continue $sm;
|
|
842
724
|
case 1:
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
var tmp_2;
|
|
847
|
-
try {
|
|
848
|
-
tmp_2 = createKType(getKClass(Base64ByteArray), arrayOf([]), false);
|
|
849
|
-
} catch ($p) {
|
|
850
|
-
var tmp_3;
|
|
851
|
-
if ($p instanceof Error) {
|
|
852
|
-
var _unused_var__etf5q3 = $p;
|
|
853
|
-
tmp_3 = null;
|
|
854
|
-
} else {
|
|
855
|
-
throw $p;
|
|
856
|
-
}
|
|
857
|
-
tmp_2 = tmp_3;
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
725
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
726
|
+
this.state_1 = 3;
|
|
727
|
+
continue $sm;
|
|
861
728
|
case 2:
|
|
729
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
730
|
+
this.state_1 = 3;
|
|
731
|
+
continue $sm;
|
|
732
|
+
case 3:
|
|
733
|
+
return this.WHEN_RESULT0__1;
|
|
734
|
+
case 4:
|
|
862
735
|
throw this.exception_1;
|
|
863
736
|
}
|
|
864
|
-
} catch ($
|
|
865
|
-
var e = $
|
|
866
|
-
if (this.exceptionState_1 ===
|
|
737
|
+
} catch ($p) {
|
|
738
|
+
var e = $p;
|
|
739
|
+
if (this.exceptionState_1 === 4) {
|
|
867
740
|
throw e;
|
|
868
741
|
} else {
|
|
869
742
|
this.state_1 = this.exceptionState_1;
|
|
@@ -872,12 +745,14 @@ protoOf($exportStorageRoomsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
872
745
|
}
|
|
873
746
|
while (true);
|
|
874
747
|
};
|
|
875
|
-
function $
|
|
748
|
+
function $storageRoomAllocationOverview$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
|
|
876
749
|
CoroutineImpl.call(this, resultContinuation);
|
|
877
750
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
878
751
|
this.companyId_1 = companyId;
|
|
752
|
+
this.searchDate_1 = searchDate;
|
|
753
|
+
this.fields_1 = fields;
|
|
879
754
|
}
|
|
880
|
-
protoOf($
|
|
755
|
+
protoOf($storageRoomAllocationOverview$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
881
756
|
var suspendResult = this.result_1;
|
|
882
757
|
$sm: do
|
|
883
758
|
try {
|
|
@@ -885,16 +760,16 @@ protoOf($exportStorageRooms$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
885
760
|
switch (tmp) {
|
|
886
761
|
case 0:
|
|
887
762
|
this.exceptionState_1 = 4;
|
|
888
|
-
if (this._this__u8e3s4__1.
|
|
763
|
+
if (this._this__u8e3s4__1.storageRoomAllocationOverview === protoOf(StorageApi).storageRoomAllocationOverview) {
|
|
889
764
|
this.state_1 = 2;
|
|
890
|
-
suspendResult = this._this__u8e3s4__1.
|
|
765
|
+
suspendResult = this._this__u8e3s4__1.storageRoomAllocationOverview$default_2ybare_k$(this.companyId_1, this.searchDate_1, this.fields_1, this);
|
|
891
766
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
892
767
|
return suspendResult;
|
|
893
768
|
}
|
|
894
769
|
continue $sm;
|
|
895
770
|
} else {
|
|
896
771
|
this.state_1 = 1;
|
|
897
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
772
|
+
suspendResult = await_0(this._this__u8e3s4__1.storageRoomAllocationOverview(this.companyId_1, this.searchDate_1, this.fields_1), this);
|
|
898
773
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
899
774
|
return suspendResult;
|
|
900
775
|
}
|
|
@@ -925,109 +800,110 @@ protoOf($exportStorageRooms$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
925
800
|
}
|
|
926
801
|
while (true);
|
|
927
802
|
};
|
|
928
|
-
function $
|
|
803
|
+
function $storageRoomVacancy$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, searchDate, fields, resultContinuation) {
|
|
929
804
|
CoroutineImpl.call(this, resultContinuation);
|
|
930
805
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
931
806
|
this.companyId_1 = companyId;
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
807
|
+
this.storageRoomId_1 = storageRoomId;
|
|
808
|
+
this.searchDate_1 = searchDate;
|
|
934
809
|
this.fields_1 = fields;
|
|
935
|
-
this.pageToken_1 = pageToken;
|
|
936
|
-
this.autoPaginate_1 = autoPaginate;
|
|
937
|
-
this.count_1 = count;
|
|
938
810
|
}
|
|
939
|
-
protoOf($
|
|
811
|
+
protoOf($storageRoomVacancy$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
940
812
|
var suspendResult = this.result_1;
|
|
941
813
|
$sm: do
|
|
942
814
|
try {
|
|
943
815
|
var tmp = this.state_1;
|
|
944
816
|
switch (tmp) {
|
|
945
817
|
case 0:
|
|
946
|
-
this.exceptionState_1 =
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
var value_0 = listOf_0('' + this.assigned_1);
|
|
962
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
if (this.fields_1 == null)
|
|
966
|
-
null;
|
|
967
|
-
else {
|
|
968
|
-
var value_1 = listOf_0(this.fields_1);
|
|
969
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_1);
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
if (this.pageToken_1 == null)
|
|
973
|
-
null;
|
|
974
|
-
else {
|
|
975
|
-
var tmp2_0 = 'pageToken';
|
|
976
|
-
var value_2 = listOf_0(this.pageToken_1);
|
|
977
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
if (this.autoPaginate_1 == null)
|
|
981
|
-
null;
|
|
982
|
-
else {
|
|
983
|
-
var tmp2_1 = 'autoPaginate';
|
|
984
|
-
var value_3 = listOf_0('' + this.autoPaginate_1);
|
|
985
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
if (this.count_1 == null)
|
|
989
|
-
null;
|
|
990
|
-
else {
|
|
991
|
-
var value_4 = listOf_0('' + this.count_1);
|
|
992
|
-
localVariableQuery.put_4fpzoq_k$('count', value_4);
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
996
|
-
var tmp6_method = RequestMethod_GET_getInstance();
|
|
997
|
-
var tmp7_path = replace('/companies/{companyId}/storageRooms', '{companyId}', this.companyId_1.toString());
|
|
998
|
-
var localVariableConfig = new RequestConfig(tmp6_method, tmp7_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
999
|
-
this.state_1 = 1;
|
|
1000
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1001
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1002
|
-
return suspendResult;
|
|
818
|
+
this.exceptionState_1 = 4;
|
|
819
|
+
if (this._this__u8e3s4__1.storageRoomVacancy === protoOf(StorageApi).storageRoomVacancy) {
|
|
820
|
+
this.state_1 = 2;
|
|
821
|
+
suspendResult = this._this__u8e3s4__1.storageRoomVacancy$default_glliei_k$(this.companyId_1, this.storageRoomId_1, this.searchDate_1, this.fields_1, this);
|
|
822
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
823
|
+
return suspendResult;
|
|
824
|
+
}
|
|
825
|
+
continue $sm;
|
|
826
|
+
} else {
|
|
827
|
+
this.state_1 = 1;
|
|
828
|
+
suspendResult = await_0(this._this__u8e3s4__1.storageRoomVacancy(this.companyId_1, this.storageRoomId_1, this.searchDate_1, this.fields_1), this);
|
|
829
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
830
|
+
return suspendResult;
|
|
831
|
+
}
|
|
832
|
+
continue $sm;
|
|
1003
833
|
}
|
|
1004
834
|
|
|
1005
|
-
continue $sm;
|
|
1006
835
|
case 1:
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
836
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
837
|
+
this.state_1 = 3;
|
|
838
|
+
continue $sm;
|
|
839
|
+
case 2:
|
|
840
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
841
|
+
this.state_1 = 3;
|
|
842
|
+
continue $sm;
|
|
843
|
+
case 3:
|
|
844
|
+
return this.WHEN_RESULT0__1;
|
|
845
|
+
case 4:
|
|
846
|
+
throw this.exception_1;
|
|
847
|
+
}
|
|
848
|
+
} catch ($p) {
|
|
849
|
+
var e = $p;
|
|
850
|
+
if (this.exceptionState_1 === 4) {
|
|
851
|
+
throw e;
|
|
852
|
+
} else {
|
|
853
|
+
this.state_1 = this.exceptionState_1;
|
|
854
|
+
this.exception_1 = e;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
while (true);
|
|
858
|
+
};
|
|
859
|
+
function $unAssignStorageRoomToOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, resultContinuation) {
|
|
860
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
861
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
862
|
+
this.companyId_1 = companyId;
|
|
863
|
+
this.storageRoomId_1 = storageRoomId;
|
|
864
|
+
this.organizationId_1 = organizationId;
|
|
865
|
+
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
866
|
+
}
|
|
867
|
+
protoOf($unAssignStorageRoomToOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
868
|
+
var suspendResult = this.result_1;
|
|
869
|
+
$sm: do
|
|
870
|
+
try {
|
|
871
|
+
var tmp = this.state_1;
|
|
872
|
+
switch (tmp) {
|
|
873
|
+
case 0:
|
|
874
|
+
this.exceptionState_1 = 4;
|
|
875
|
+
if (this._this__u8e3s4__1.unAssignStorageRoomToOrganization === protoOf(StorageApi).unAssignStorageRoomToOrganization) {
|
|
876
|
+
this.state_1 = 2;
|
|
877
|
+
suspendResult = this._this__u8e3s4__1.unAssignStorageRoomToOrganization$default_4jf7o7_k$(this.companyId_1, this.storageRoomId_1, this.organizationId_1, this.unassignStorageRoomCommand_1, this);
|
|
878
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
879
|
+
return suspendResult;
|
|
1020
880
|
}
|
|
1021
|
-
|
|
881
|
+
continue $sm;
|
|
882
|
+
} else {
|
|
883
|
+
this.state_1 = 1;
|
|
884
|
+
suspendResult = await_0(this._this__u8e3s4__1.unAssignStorageRoomToOrganization(this.companyId_1, this.storageRoomId_1, this.organizationId_1, this.unassignStorageRoomCommand_1), this);
|
|
885
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
886
|
+
return suspendResult;
|
|
887
|
+
}
|
|
888
|
+
continue $sm;
|
|
1022
889
|
}
|
|
1023
890
|
|
|
1024
|
-
|
|
891
|
+
case 1:
|
|
892
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
893
|
+
this.state_1 = 3;
|
|
894
|
+
continue $sm;
|
|
1025
895
|
case 2:
|
|
896
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
897
|
+
this.state_1 = 3;
|
|
898
|
+
continue $sm;
|
|
899
|
+
case 3:
|
|
900
|
+
return this.WHEN_RESULT0__1;
|
|
901
|
+
case 4:
|
|
1026
902
|
throw this.exception_1;
|
|
1027
903
|
}
|
|
1028
|
-
} catch ($
|
|
1029
|
-
var e = $
|
|
1030
|
-
if (this.exceptionState_1 ===
|
|
904
|
+
} catch ($p) {
|
|
905
|
+
var e = $p;
|
|
906
|
+
if (this.exceptionState_1 === 4) {
|
|
1031
907
|
throw e;
|
|
1032
908
|
} else {
|
|
1033
909
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1036,18 +912,15 @@ protoOf($indexStorageRoomCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1036
912
|
}
|
|
1037
913
|
while (true);
|
|
1038
914
|
};
|
|
1039
|
-
function $
|
|
915
|
+
function $unAssignStorageRoomToPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, personId, unassignStorageRoomCommand, resultContinuation) {
|
|
1040
916
|
CoroutineImpl.call(this, resultContinuation);
|
|
1041
917
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1042
918
|
this.companyId_1 = companyId;
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1046
|
-
this.pageToken_1 = pageToken;
|
|
1047
|
-
this.autoPaginate_1 = autoPaginate;
|
|
1048
|
-
this.count_1 = count;
|
|
919
|
+
this.storageRoomId_1 = storageRoomId;
|
|
920
|
+
this.personId_1 = personId;
|
|
921
|
+
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
1049
922
|
}
|
|
1050
|
-
protoOf($
|
|
923
|
+
protoOf($unAssignStorageRoomToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1051
924
|
var suspendResult = this.result_1;
|
|
1052
925
|
$sm: do
|
|
1053
926
|
try {
|
|
@@ -1055,16 +928,16 @@ protoOf($indexStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1055
928
|
switch (tmp) {
|
|
1056
929
|
case 0:
|
|
1057
930
|
this.exceptionState_1 = 4;
|
|
1058
|
-
if (this._this__u8e3s4__1.
|
|
931
|
+
if (this._this__u8e3s4__1.unAssignStorageRoomToPerson === protoOf(StorageApi).unAssignStorageRoomToPerson) {
|
|
1059
932
|
this.state_1 = 2;
|
|
1060
|
-
suspendResult = this._this__u8e3s4__1.
|
|
933
|
+
suspendResult = this._this__u8e3s4__1.unAssignStorageRoomToPerson$default_xws5on_k$(this.companyId_1, this.storageRoomId_1, this.personId_1, this.unassignStorageRoomCommand_1, this);
|
|
1061
934
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1062
935
|
return suspendResult;
|
|
1063
936
|
}
|
|
1064
937
|
continue $sm;
|
|
1065
938
|
} else {
|
|
1066
939
|
this.state_1 = 1;
|
|
1067
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
940
|
+
suspendResult = await_0(this._this__u8e3s4__1.unAssignStorageRoomToPerson(this.companyId_1, this.storageRoomId_1, this.personId_1, this.unassignStorageRoomCommand_1), this);
|
|
1068
941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1069
942
|
return suspendResult;
|
|
1070
943
|
}
|
|
@@ -1095,137 +968,15 @@ protoOf($indexStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1095
968
|
}
|
|
1096
969
|
while (true);
|
|
1097
970
|
};
|
|
1098
|
-
function $
|
|
971
|
+
function $unAssignStorageRoomToSection$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, resultContinuation) {
|
|
1099
972
|
CoroutineImpl.call(this, resultContinuation);
|
|
1100
973
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1101
|
-
this.
|
|
1102
|
-
this.
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1105
|
-
this.pageToken_1 = pageToken;
|
|
1106
|
-
this.autoPaginate_1 = autoPaginate;
|
|
1107
|
-
this.count_1 = count;
|
|
974
|
+
this.companyId_1 = companyId;
|
|
975
|
+
this.storageRoomId_1 = storageRoomId;
|
|
976
|
+
this.sectionId_1 = sectionId;
|
|
977
|
+
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
1108
978
|
}
|
|
1109
|
-
protoOf($
|
|
1110
|
-
var suspendResult = this.result_1;
|
|
1111
|
-
$sm: do
|
|
1112
|
-
try {
|
|
1113
|
-
var tmp = this.state_1;
|
|
1114
|
-
switch (tmp) {
|
|
1115
|
-
case 0:
|
|
1116
|
-
this.exceptionState_1 = 2;
|
|
1117
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1118
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1119
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1120
|
-
var tmp0_safe_receiver = this.companyIds_1;
|
|
1121
|
-
if (tmp0_safe_receiver == null)
|
|
1122
|
-
null;
|
|
1123
|
-
else {
|
|
1124
|
-
var tmp2 = 'companyIds';
|
|
1125
|
-
var value = toMultiValue(tmp0_safe_receiver, 'multi');
|
|
1126
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
if (this.search_1 == null)
|
|
1130
|
-
null;
|
|
1131
|
-
else {
|
|
1132
|
-
var value_0 = listOf_0(this.search_1);
|
|
1133
|
-
localVariableQuery.put_4fpzoq_k$('search', value_0);
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
if (this.assigned_1 == null)
|
|
1137
|
-
null;
|
|
1138
|
-
else {
|
|
1139
|
-
var tmp2_0 = 'assigned';
|
|
1140
|
-
var value_1 = listOf_0('' + this.assigned_1);
|
|
1141
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
if (this.fields_1 == null)
|
|
1145
|
-
null;
|
|
1146
|
-
else {
|
|
1147
|
-
var value_2 = listOf_0(this.fields_1);
|
|
1148
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_2);
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
if (this.pageToken_1 == null)
|
|
1152
|
-
null;
|
|
1153
|
-
else {
|
|
1154
|
-
var tmp2_1 = 'pageToken';
|
|
1155
|
-
var value_3 = listOf_0(this.pageToken_1);
|
|
1156
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
if (this.autoPaginate_1 == null)
|
|
1160
|
-
null;
|
|
1161
|
-
else {
|
|
1162
|
-
var tmp2_2 = 'autoPaginate';
|
|
1163
|
-
var value_4 = listOf_0('' + this.autoPaginate_1);
|
|
1164
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_2, value_4);
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
if (this.count_1 == null)
|
|
1168
|
-
null;
|
|
1169
|
-
else {
|
|
1170
|
-
var value_5 = listOf_0('' + this.count_1);
|
|
1171
|
-
localVariableQuery.put_4fpzoq_k$('count', value_5);
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1175
|
-
var tmp7_method = RequestMethod_GET_getInstance();
|
|
1176
|
-
var localVariableConfig = new RequestConfig(tmp7_method, '/companies/storageRooms', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1177
|
-
this.state_1 = 1;
|
|
1178
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1179
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1180
|
-
return suspendResult;
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
continue $sm;
|
|
1184
|
-
case 1:
|
|
1185
|
-
var this_0 = suspendResult;
|
|
1186
|
-
var tmp_0 = getKClass(PagedListStorageRoom);
|
|
1187
|
-
var tmp_1 = null instanceof PagedListStorageRoom;
|
|
1188
|
-
var tmp_2;
|
|
1189
|
-
try {
|
|
1190
|
-
tmp_2 = createKType(getKClass(PagedListStorageRoom), arrayOf([]), false);
|
|
1191
|
-
} catch ($p) {
|
|
1192
|
-
var tmp_3;
|
|
1193
|
-
if ($p instanceof Error) {
|
|
1194
|
-
var _unused_var__etf5q3 = $p;
|
|
1195
|
-
tmp_3 = null;
|
|
1196
|
-
} else {
|
|
1197
|
-
throw $p;
|
|
1198
|
-
}
|
|
1199
|
-
tmp_2 = tmp_3;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1203
|
-
case 2:
|
|
1204
|
-
throw this.exception_1;
|
|
1205
|
-
}
|
|
1206
|
-
} catch ($p_0) {
|
|
1207
|
-
var e = $p_0;
|
|
1208
|
-
if (this.exceptionState_1 === 2) {
|
|
1209
|
-
throw e;
|
|
1210
|
-
} else {
|
|
1211
|
-
this.state_1 = this.exceptionState_1;
|
|
1212
|
-
this.exception_1 = e;
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
while (true);
|
|
1216
|
-
};
|
|
1217
|
-
function $indexStorageRoomsUser$suspendBridgeCOROUTINE$(_this__u8e3s4, companyIds, search, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1218
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1219
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1220
|
-
this.companyIds_1 = companyIds;
|
|
1221
|
-
this.search_1 = search;
|
|
1222
|
-
this.assigned_1 = assigned;
|
|
1223
|
-
this.fields_1 = fields;
|
|
1224
|
-
this.pageToken_1 = pageToken;
|
|
1225
|
-
this.autoPaginate_1 = autoPaginate;
|
|
1226
|
-
this.count_1 = count;
|
|
1227
|
-
}
|
|
1228
|
-
protoOf($indexStorageRoomsUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
979
|
+
protoOf($unAssignStorageRoomToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1229
980
|
var suspendResult = this.result_1;
|
|
1230
981
|
$sm: do
|
|
1231
982
|
try {
|
|
@@ -1233,16 +984,16 @@ protoOf($indexStorageRoomsUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fun
|
|
|
1233
984
|
switch (tmp) {
|
|
1234
985
|
case 0:
|
|
1235
986
|
this.exceptionState_1 = 4;
|
|
1236
|
-
if (this._this__u8e3s4__1.
|
|
987
|
+
if (this._this__u8e3s4__1.unAssignStorageRoomToSection === protoOf(StorageApi).unAssignStorageRoomToSection) {
|
|
1237
988
|
this.state_1 = 2;
|
|
1238
|
-
suspendResult = this._this__u8e3s4__1.
|
|
989
|
+
suspendResult = this._this__u8e3s4__1.unAssignStorageRoomToSection$default_4z5wo9_k$(this.companyId_1, this.storageRoomId_1, this.sectionId_1, this.unassignStorageRoomCommand_1, this);
|
|
1239
990
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1240
991
|
return suspendResult;
|
|
1241
992
|
}
|
|
1242
993
|
continue $sm;
|
|
1243
994
|
} else {
|
|
1244
995
|
this.state_1 = 1;
|
|
1245
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
996
|
+
suspendResult = await_0(this._this__u8e3s4__1.unAssignStorageRoomToSection(this.companyId_1, this.storageRoomId_1, this.sectionId_1, this.unassignStorageRoomCommand_1), this);
|
|
1246
997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1247
998
|
return suspendResult;
|
|
1248
999
|
}
|
|
@@ -1273,92 +1024,14 @@ protoOf($indexStorageRoomsUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fun
|
|
|
1273
1024
|
}
|
|
1274
1025
|
while (true);
|
|
1275
1026
|
};
|
|
1276
|
-
function $
|
|
1277
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1278
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1279
|
-
this.companyId_1 = companyId;
|
|
1280
|
-
this.searchDate_1 = searchDate;
|
|
1281
|
-
this.fields_1 = fields;
|
|
1282
|
-
}
|
|
1283
|
-
protoOf($listVacantStorageRoomsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1284
|
-
var suspendResult = this.result_1;
|
|
1285
|
-
$sm: do
|
|
1286
|
-
try {
|
|
1287
|
-
var tmp = this.state_1;
|
|
1288
|
-
switch (tmp) {
|
|
1289
|
-
case 0:
|
|
1290
|
-
this.exceptionState_1 = 2;
|
|
1291
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1292
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1293
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1294
|
-
if (this.searchDate_1 == null)
|
|
1295
|
-
null;
|
|
1296
|
-
else {
|
|
1297
|
-
var tmp2 = 'searchDate';
|
|
1298
|
-
var value = listOf_0(this.searchDate_1.toString());
|
|
1299
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
if (this.fields_1 == null)
|
|
1303
|
-
null;
|
|
1304
|
-
else {
|
|
1305
|
-
var value_0 = listOf_0(this.fields_1);
|
|
1306
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1310
|
-
var tmp2_method = RequestMethod_GET_getInstance();
|
|
1311
|
-
var tmp3_path = replace('/companies/{companyId}/storageRooms/vacant', '{companyId}', this.companyId_1.toString());
|
|
1312
|
-
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1313
|
-
this.state_1 = 1;
|
|
1314
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1315
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1316
|
-
return suspendResult;
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
continue $sm;
|
|
1320
|
-
case 1:
|
|
1321
|
-
var this_0 = suspendResult;
|
|
1322
|
-
var tmp_0 = getKClass(ListVacantStorageRoomsResponse);
|
|
1323
|
-
var tmp_1 = null instanceof ListVacantStorageRoomsResponse;
|
|
1324
|
-
var tmp_2;
|
|
1325
|
-
try {
|
|
1326
|
-
tmp_2 = createKType(getKClass(ListVacantStorageRoomsResponse), arrayOf([]), false);
|
|
1327
|
-
} catch ($p) {
|
|
1328
|
-
var tmp_3;
|
|
1329
|
-
if ($p instanceof Error) {
|
|
1330
|
-
var _unused_var__etf5q3 = $p;
|
|
1331
|
-
tmp_3 = null;
|
|
1332
|
-
} else {
|
|
1333
|
-
throw $p;
|
|
1334
|
-
}
|
|
1335
|
-
tmp_2 = tmp_3;
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1339
|
-
return map(ARGUMENT, StorageApi$listVacantStorageRooms$lambda);
|
|
1340
|
-
case 2:
|
|
1341
|
-
throw this.exception_1;
|
|
1342
|
-
}
|
|
1343
|
-
} catch ($p_0) {
|
|
1344
|
-
var e = $p_0;
|
|
1345
|
-
if (this.exceptionState_1 === 2) {
|
|
1346
|
-
throw e;
|
|
1347
|
-
} else {
|
|
1348
|
-
this.state_1 = this.exceptionState_1;
|
|
1349
|
-
this.exception_1 = e;
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
while (true);
|
|
1353
|
-
};
|
|
1354
|
-
function $listVacantStorageRooms$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
|
|
1027
|
+
function $updateStorageRoom$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, updateStorageRoomCommand, resultContinuation) {
|
|
1355
1028
|
CoroutineImpl.call(this, resultContinuation);
|
|
1356
1029
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1357
1030
|
this.companyId_1 = companyId;
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1031
|
+
this.storageRoomId_1 = storageRoomId;
|
|
1032
|
+
this.updateStorageRoomCommand_1 = updateStorageRoomCommand;
|
|
1360
1033
|
}
|
|
1361
|
-
protoOf($
|
|
1034
|
+
protoOf($updateStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1362
1035
|
var suspendResult = this.result_1;
|
|
1363
1036
|
$sm: do
|
|
1364
1037
|
try {
|
|
@@ -1366,16 +1039,16 @@ protoOf($listVacantStorageRooms$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
|
|
|
1366
1039
|
switch (tmp) {
|
|
1367
1040
|
case 0:
|
|
1368
1041
|
this.exceptionState_1 = 4;
|
|
1369
|
-
if (this._this__u8e3s4__1.
|
|
1042
|
+
if (this._this__u8e3s4__1.updateStorageRoom === protoOf(StorageApi).updateStorageRoom) {
|
|
1370
1043
|
this.state_1 = 2;
|
|
1371
|
-
suspendResult = this._this__u8e3s4__1.
|
|
1044
|
+
suspendResult = this._this__u8e3s4__1.updateStorageRoom_corgr7_k$(this.companyId_1, this.storageRoomId_1, this.updateStorageRoomCommand_1, this);
|
|
1372
1045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1373
1046
|
return suspendResult;
|
|
1374
1047
|
}
|
|
1375
1048
|
continue $sm;
|
|
1376
1049
|
} else {
|
|
1377
1050
|
this.state_1 = 1;
|
|
1378
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
1051
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateStorageRoom(this.companyId_1, this.storageRoomId_1, this.updateStorageRoomCommand_1), this);
|
|
1379
1052
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1380
1053
|
return suspendResult;
|
|
1381
1054
|
}
|
|
@@ -1406,122 +1079,364 @@ protoOf($listVacantStorageRooms$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
|
|
|
1406
1079
|
}
|
|
1407
1080
|
while (true);
|
|
1408
1081
|
};
|
|
1409
|
-
function
|
|
1410
|
-
|
|
1411
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1412
|
-
this.companyId_1 = companyId;
|
|
1413
|
-
this.storageRoomId_1 = storageRoomId;
|
|
1414
|
-
this.fields_1 = fields;
|
|
1415
|
-
}
|
|
1416
|
-
protoOf($showStorageRoomCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1417
|
-
var suspendResult = this.result_1;
|
|
1418
|
-
$sm: do
|
|
1419
|
-
try {
|
|
1420
|
-
var tmp = this.state_1;
|
|
1421
|
-
switch (tmp) {
|
|
1422
|
-
case 0:
|
|
1423
|
-
this.exceptionState_1 = 2;
|
|
1424
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1425
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1426
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1427
|
-
if (this.fields_1 == null)
|
|
1428
|
-
null;
|
|
1429
|
-
else {
|
|
1430
|
-
var value = listOf_0(this.fields_1);
|
|
1431
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1435
|
-
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1436
|
-
var tmp2_path = replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString());
|
|
1437
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1438
|
-
this.state_1 = 1;
|
|
1439
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1440
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1441
|
-
return suspendResult;
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
continue $sm;
|
|
1445
|
-
case 1:
|
|
1446
|
-
var this_0 = suspendResult;
|
|
1447
|
-
var tmp_0 = getKClass(StorageRoom);
|
|
1448
|
-
var tmp_1 = null instanceof StorageRoom;
|
|
1449
|
-
var tmp_2;
|
|
1450
|
-
try {
|
|
1451
|
-
tmp_2 = createKType(getKClass(StorageRoom), arrayOf([]), false);
|
|
1452
|
-
} catch ($p) {
|
|
1453
|
-
var tmp_3;
|
|
1454
|
-
if ($p instanceof Error) {
|
|
1455
|
-
var _unused_var__etf5q3 = $p;
|
|
1456
|
-
tmp_3 = null;
|
|
1457
|
-
} else {
|
|
1458
|
-
throw $p;
|
|
1459
|
-
}
|
|
1460
|
-
tmp_2 = tmp_3;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1464
|
-
case 2:
|
|
1465
|
-
throw this.exception_1;
|
|
1466
|
-
}
|
|
1467
|
-
} catch ($p_0) {
|
|
1468
|
-
var e = $p_0;
|
|
1469
|
-
if (this.exceptionState_1 === 2) {
|
|
1470
|
-
throw e;
|
|
1471
|
-
} else {
|
|
1472
|
-
this.state_1 = this.exceptionState_1;
|
|
1473
|
-
this.exception_1 = e;
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
while (true);
|
|
1082
|
+
protoOf(StorageApi).assignStorageRoomToOrganization_q7k6om_k$ = function (companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion) {
|
|
1083
|
+
return assignStorageRoomToOrganizationOperation_0(this, companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
1477
1084
|
};
|
|
1478
|
-
function
|
|
1085
|
+
protoOf(StorageApi).assignStorageRoomToOrganization = function (companyId, storageRoomId, organizationId, assignStorageRoomCommand) {
|
|
1086
|
+
var tmp = this;
|
|
1087
|
+
return promisify(function ($completion) {
|
|
1088
|
+
return tmp.assignStorageRoomToOrganization_q7k6om_k$(companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
1089
|
+
});
|
|
1090
|
+
};
|
|
1091
|
+
protoOf(StorageApi).assignStorageRoomToOrganization$suspendBridge_2gh0vf_k$ = function (companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion) {
|
|
1092
|
+
var tmp = new $assignStorageRoomToOrganization$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
1093
|
+
tmp.result_1 = Unit_instance;
|
|
1094
|
+
tmp.exception_1 = null;
|
|
1095
|
+
return tmp.doResume_5yljmg_k$();
|
|
1096
|
+
};
|
|
1097
|
+
protoOf(StorageApi).assignStorageRoomToPerson_m9s4dw_k$ = function (companyId, storageRoomId, personId, assignStorageRoomCommand, $completion) {
|
|
1098
|
+
return assignStorageRoomToPersonOperation_0(this, companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
1099
|
+
};
|
|
1100
|
+
protoOf(StorageApi).assignStorageRoomToPerson = function (companyId, storageRoomId, personId, assignStorageRoomCommand) {
|
|
1101
|
+
var tmp = this;
|
|
1102
|
+
return promisify(function ($completion) {
|
|
1103
|
+
return tmp.assignStorageRoomToPerson_m9s4dw_k$(companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
1104
|
+
});
|
|
1105
|
+
};
|
|
1106
|
+
protoOf(StorageApi).assignStorageRoomToPerson$suspendBridge_5f5zcj_k$ = function (companyId, storageRoomId, personId, assignStorageRoomCommand, $completion) {
|
|
1107
|
+
var tmp = new $assignStorageRoomToPerson$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
1108
|
+
tmp.result_1 = Unit_instance;
|
|
1109
|
+
tmp.exception_1 = null;
|
|
1110
|
+
return tmp.doResume_5yljmg_k$();
|
|
1111
|
+
};
|
|
1112
|
+
protoOf(StorageApi).assignStorageRoomToSection_goueeg_k$ = function (companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion) {
|
|
1113
|
+
return assignStorageRoomToSectionOperation_0(this, companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
1114
|
+
};
|
|
1115
|
+
protoOf(StorageApi).assignStorageRoomToSection = function (companyId, storageRoomId, sectionId, assignStorageRoomCommand) {
|
|
1116
|
+
var tmp = this;
|
|
1117
|
+
return promisify(function ($completion) {
|
|
1118
|
+
return tmp.assignStorageRoomToSection_goueeg_k$(companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
protoOf(StorageApi).assignStorageRoomToSection$suspendBridge_5ssmef_k$ = function (companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion) {
|
|
1122
|
+
var tmp = new $assignStorageRoomToSection$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
1123
|
+
tmp.result_1 = Unit_instance;
|
|
1124
|
+
tmp.exception_1 = null;
|
|
1125
|
+
return tmp.doResume_5yljmg_k$();
|
|
1126
|
+
};
|
|
1127
|
+
protoOf(StorageApi).createStorageRoom_r029k3_k$ = function (companyId, createStorageRoomCommand, $completion) {
|
|
1128
|
+
return createStorageRoomOperation_0(this, companyId, createStorageRoomCommand, $completion);
|
|
1129
|
+
};
|
|
1130
|
+
protoOf(StorageApi).createStorageRoom = function (companyId, createStorageRoomCommand) {
|
|
1131
|
+
var tmp = this;
|
|
1132
|
+
return promisify(function ($completion) {
|
|
1133
|
+
return tmp.createStorageRoom_r029k3_k$(companyId, createStorageRoomCommand, $completion);
|
|
1134
|
+
});
|
|
1135
|
+
};
|
|
1136
|
+
protoOf(StorageApi).createStorageRoom$suspendBridge_78rflo_k$ = function (companyId, createStorageRoomCommand, $completion) {
|
|
1137
|
+
var tmp = new $createStorageRoom$suspendBridgeCOROUTINE$(this, companyId, createStorageRoomCommand, $completion);
|
|
1138
|
+
tmp.result_1 = Unit_instance;
|
|
1139
|
+
tmp.exception_1 = null;
|
|
1140
|
+
return tmp.doResume_5yljmg_k$();
|
|
1141
|
+
};
|
|
1142
|
+
protoOf(StorageApi).deleteStorageRoom_tqcdkp_k$ = function (companyId, storageRoomId, $completion) {
|
|
1143
|
+
return deleteStorageRoomOperation_0(this, companyId, storageRoomId, $completion);
|
|
1144
|
+
};
|
|
1145
|
+
protoOf(StorageApi).deleteStorageRoom = function (companyId, storageRoomId) {
|
|
1146
|
+
var tmp = this;
|
|
1147
|
+
return promisify(function ($completion) {
|
|
1148
|
+
return tmp.deleteStorageRoom_tqcdkp_k$(companyId, storageRoomId, $completion);
|
|
1149
|
+
});
|
|
1150
|
+
};
|
|
1151
|
+
protoOf(StorageApi).deleteStorageRoom$suspendBridge_tyrwo_k$ = function (companyId, storageRoomId, $completion) {
|
|
1152
|
+
var tmp = new $deleteStorageRoom$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, $completion);
|
|
1153
|
+
tmp.result_1 = Unit_instance;
|
|
1154
|
+
tmp.exception_1 = null;
|
|
1155
|
+
return tmp.doResume_5yljmg_k$();
|
|
1156
|
+
};
|
|
1157
|
+
protoOf(StorageApi).exportStorageRooms_j0m1jf_k$ = function (companyId, $completion) {
|
|
1158
|
+
return exportStorageRoomsOperation_0(this, companyId, $completion);
|
|
1159
|
+
};
|
|
1160
|
+
protoOf(StorageApi).exportStorageRooms = function (companyId) {
|
|
1161
|
+
var tmp = this;
|
|
1162
|
+
return promisify(function ($completion) {
|
|
1163
|
+
return tmp.exportStorageRooms_j0m1jf_k$(companyId, $completion);
|
|
1164
|
+
});
|
|
1165
|
+
};
|
|
1166
|
+
protoOf(StorageApi).exportStorageRooms$suspendBridge_kr2uto_k$ = function (companyId, $completion) {
|
|
1167
|
+
var tmp = new $exportStorageRooms$suspendBridgeCOROUTINE$(this, companyId, $completion);
|
|
1168
|
+
tmp.result_1 = Unit_instance;
|
|
1169
|
+
tmp.exception_1 = null;
|
|
1170
|
+
return tmp.doResume_5yljmg_k$();
|
|
1171
|
+
};
|
|
1172
|
+
protoOf(StorageApi).indexStorageRoom_yrdz4m_k$ = function (companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
1173
|
+
return indexStorageRoomOperation_0(this, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1174
|
+
};
|
|
1175
|
+
protoOf(StorageApi).indexStorageRoom$default_lrb8pn_k$ = function (companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1176
|
+
search = search === VOID ? null : search;
|
|
1177
|
+
assigned = assigned === VOID ? null : assigned;
|
|
1178
|
+
fields = fields === VOID ? null : fields;
|
|
1179
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1180
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1181
|
+
count = count === VOID ? null : count;
|
|
1182
|
+
return $super === VOID ? this.indexStorageRoom_yrdz4m_k$(companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexStorageRoom_yrdz4m_k$.call(this, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1183
|
+
};
|
|
1184
|
+
protoOf(StorageApi).indexStorageRoom = function (companyId, search, assigned, fields, pageToken, autoPaginate, count) {
|
|
1185
|
+
var tmp = this;
|
|
1186
|
+
return promisify(function ($completion) {
|
|
1187
|
+
return tmp.indexStorageRoom$default_lrb8pn_k$(companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1188
|
+
});
|
|
1189
|
+
};
|
|
1190
|
+
protoOf(StorageApi).indexStorageRoom$suspendBridge_hlpc3b_k$ = function (companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
1191
|
+
var tmp = new $indexStorageRoom$suspendBridgeCOROUTINE$(this, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1192
|
+
tmp.result_1 = Unit_instance;
|
|
1193
|
+
tmp.exception_1 = null;
|
|
1194
|
+
return tmp.doResume_5yljmg_k$();
|
|
1195
|
+
};
|
|
1196
|
+
protoOf(StorageApi).indexStorageRoomsUser_fi19vv_k$ = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
1197
|
+
return indexStorageRoomsUserOperation_0(this, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1198
|
+
};
|
|
1199
|
+
protoOf(StorageApi).indexStorageRoomsUser$default_lyz231_k$ = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1200
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
1201
|
+
search = search === VOID ? null : search;
|
|
1202
|
+
assigned = assigned === VOID ? null : assigned;
|
|
1203
|
+
fields = fields === VOID ? null : fields;
|
|
1204
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1205
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1206
|
+
count = count === VOID ? null : count;
|
|
1207
|
+
return $super === VOID ? this.indexStorageRoomsUser_fi19vv_k$(companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexStorageRoomsUser_fi19vv_k$.call(this, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1208
|
+
};
|
|
1209
|
+
protoOf(StorageApi).indexStorageRoomsUser = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count) {
|
|
1210
|
+
var tmp = this;
|
|
1211
|
+
return promisify(function ($completion) {
|
|
1212
|
+
return tmp.indexStorageRoomsUser$default_lyz231_k$(companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1213
|
+
});
|
|
1214
|
+
};
|
|
1215
|
+
protoOf(StorageApi).indexStorageRoomsUser$suspendBridge_dq6snq_k$ = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
1216
|
+
var tmp = new $indexStorageRoomsUser$suspendBridgeCOROUTINE$(this, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1217
|
+
tmp.result_1 = Unit_instance;
|
|
1218
|
+
tmp.exception_1 = null;
|
|
1219
|
+
return tmp.doResume_5yljmg_k$();
|
|
1220
|
+
};
|
|
1221
|
+
protoOf(StorageApi).listVacantStorageRooms_i9bgdk_k$ = function (companyId, searchDate, fields, $completion) {
|
|
1222
|
+
return listVacantStorageRoomsOperation_0(this, companyId, searchDate, fields, $completion);
|
|
1223
|
+
};
|
|
1224
|
+
protoOf(StorageApi).listVacantStorageRooms$default_62w6wj_k$ = function (companyId, searchDate, fields, $completion, $super) {
|
|
1225
|
+
searchDate = searchDate === VOID ? null : searchDate;
|
|
1226
|
+
fields = fields === VOID ? null : fields;
|
|
1227
|
+
return $super === VOID ? this.listVacantStorageRooms_i9bgdk_k$(companyId, searchDate, fields, $completion) : $super.listVacantStorageRooms_i9bgdk_k$.call(this, companyId, searchDate, fields, $completion);
|
|
1228
|
+
};
|
|
1229
|
+
protoOf(StorageApi).listVacantStorageRooms = function (companyId, searchDate, fields) {
|
|
1230
|
+
var tmp = this;
|
|
1231
|
+
return promisify(function ($completion) {
|
|
1232
|
+
return tmp.listVacantStorageRooms$default_62w6wj_k$(companyId, searchDate, fields, $completion);
|
|
1233
|
+
});
|
|
1234
|
+
};
|
|
1235
|
+
protoOf(StorageApi).listVacantStorageRooms$suspendBridge_700wuh_k$ = function (companyId, searchDate, fields, $completion) {
|
|
1236
|
+
var tmp = new $listVacantStorageRooms$suspendBridgeCOROUTINE$(this, companyId, searchDate, fields, $completion);
|
|
1237
|
+
tmp.result_1 = Unit_instance;
|
|
1238
|
+
tmp.exception_1 = null;
|
|
1239
|
+
return tmp.doResume_5yljmg_k$();
|
|
1240
|
+
};
|
|
1241
|
+
protoOf(StorageApi).showStorageRoom_fjvej5_k$ = function (companyId, storageRoomId, fields, $completion) {
|
|
1242
|
+
return showStorageRoomOperation_0(this, companyId, storageRoomId, fields, $completion);
|
|
1243
|
+
};
|
|
1244
|
+
protoOf(StorageApi).showStorageRoom$default_gxpqt9_k$ = function (companyId, storageRoomId, fields, $completion, $super) {
|
|
1245
|
+
fields = fields === VOID ? null : fields;
|
|
1246
|
+
return $super === VOID ? this.showStorageRoom_fjvej5_k$(companyId, storageRoomId, fields, $completion) : $super.showStorageRoom_fjvej5_k$.call(this, companyId, storageRoomId, fields, $completion);
|
|
1247
|
+
};
|
|
1248
|
+
protoOf(StorageApi).showStorageRoom = function (companyId, storageRoomId, fields) {
|
|
1249
|
+
var tmp = this;
|
|
1250
|
+
return promisify(function ($completion) {
|
|
1251
|
+
return tmp.showStorageRoom$default_gxpqt9_k$(companyId, storageRoomId, fields, $completion);
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
protoOf(StorageApi).showStorageRoom$suspendBridge_7ary0g_k$ = function (companyId, storageRoomId, fields, $completion) {
|
|
1255
|
+
var tmp = new $showStorageRoom$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, fields, $completion);
|
|
1256
|
+
tmp.result_1 = Unit_instance;
|
|
1257
|
+
tmp.exception_1 = null;
|
|
1258
|
+
return tmp.doResume_5yljmg_k$();
|
|
1259
|
+
};
|
|
1260
|
+
protoOf(StorageApi).storageRoomAllocationOverview_iq9fcx_k$ = function (companyId, searchDate, fields, $completion) {
|
|
1261
|
+
return storageRoomAllocationOverviewOperation_0(this, companyId, searchDate, fields, $completion);
|
|
1262
|
+
};
|
|
1263
|
+
protoOf(StorageApi).storageRoomAllocationOverview$default_2ybare_k$ = function (companyId, searchDate, fields, $completion, $super) {
|
|
1264
|
+
searchDate = searchDate === VOID ? null : searchDate;
|
|
1265
|
+
fields = fields === VOID ? null : fields;
|
|
1266
|
+
return $super === VOID ? this.storageRoomAllocationOverview_iq9fcx_k$(companyId, searchDate, fields, $completion) : $super.storageRoomAllocationOverview_iq9fcx_k$.call(this, companyId, searchDate, fields, $completion);
|
|
1267
|
+
};
|
|
1268
|
+
protoOf(StorageApi).storageRoomAllocationOverview = function (companyId, searchDate, fields) {
|
|
1269
|
+
var tmp = this;
|
|
1270
|
+
return promisify(function ($completion) {
|
|
1271
|
+
return tmp.storageRoomAllocationOverview$default_2ybare_k$(companyId, searchDate, fields, $completion);
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
protoOf(StorageApi).storageRoomAllocationOverview$suspendBridge_pmjs02_k$ = function (companyId, searchDate, fields, $completion) {
|
|
1275
|
+
var tmp = new $storageRoomAllocationOverview$suspendBridgeCOROUTINE$(this, companyId, searchDate, fields, $completion);
|
|
1276
|
+
tmp.result_1 = Unit_instance;
|
|
1277
|
+
tmp.exception_1 = null;
|
|
1278
|
+
return tmp.doResume_5yljmg_k$();
|
|
1279
|
+
};
|
|
1280
|
+
protoOf(StorageApi).storageRoomVacancy_dmxchr_k$ = function (companyId, storageRoomId, searchDate, fields, $completion) {
|
|
1281
|
+
return storageRoomVacancyOperation_0(this, companyId, storageRoomId, searchDate, fields, $completion);
|
|
1282
|
+
};
|
|
1283
|
+
protoOf(StorageApi).storageRoomVacancy$default_glliei_k$ = function (companyId, storageRoomId, searchDate, fields, $completion, $super) {
|
|
1284
|
+
searchDate = searchDate === VOID ? null : searchDate;
|
|
1285
|
+
fields = fields === VOID ? null : fields;
|
|
1286
|
+
return $super === VOID ? this.storageRoomVacancy_dmxchr_k$(companyId, storageRoomId, searchDate, fields, $completion) : $super.storageRoomVacancy_dmxchr_k$.call(this, companyId, storageRoomId, searchDate, fields, $completion);
|
|
1287
|
+
};
|
|
1288
|
+
protoOf(StorageApi).storageRoomVacancy = function (companyId, storageRoomId, searchDate, fields) {
|
|
1289
|
+
var tmp = this;
|
|
1290
|
+
return promisify(function ($completion) {
|
|
1291
|
+
return tmp.storageRoomVacancy$default_glliei_k$(companyId, storageRoomId, searchDate, fields, $completion);
|
|
1292
|
+
});
|
|
1293
|
+
};
|
|
1294
|
+
protoOf(StorageApi).storageRoomVacancy$suspendBridge_ptzshq_k$ = function (companyId, storageRoomId, searchDate, fields, $completion) {
|
|
1295
|
+
var tmp = new $storageRoomVacancy$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, searchDate, fields, $completion);
|
|
1296
|
+
tmp.result_1 = Unit_instance;
|
|
1297
|
+
tmp.exception_1 = null;
|
|
1298
|
+
return tmp.doResume_5yljmg_k$();
|
|
1299
|
+
};
|
|
1300
|
+
protoOf(StorageApi).unAssignStorageRoomToOrganization_cvco9z_k$ = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion) {
|
|
1301
|
+
return unAssignStorageRoomToOrganizationOperation_0(this, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
1302
|
+
};
|
|
1303
|
+
protoOf(StorageApi).unAssignStorageRoomToOrganization$default_4jf7o7_k$ = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion, $super) {
|
|
1304
|
+
unassignStorageRoomCommand = unassignStorageRoomCommand === VOID ? null : unassignStorageRoomCommand;
|
|
1305
|
+
return $super === VOID ? this.unAssignStorageRoomToOrganization_cvco9z_k$(companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion) : $super.unAssignStorageRoomToOrganization_cvco9z_k$.call(this, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
1306
|
+
};
|
|
1307
|
+
protoOf(StorageApi).unAssignStorageRoomToOrganization = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand) {
|
|
1308
|
+
var tmp = this;
|
|
1309
|
+
return promisify(function ($completion) {
|
|
1310
|
+
return tmp.unAssignStorageRoomToOrganization$default_4jf7o7_k$(companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
1311
|
+
});
|
|
1312
|
+
};
|
|
1313
|
+
protoOf(StorageApi).unAssignStorageRoomToOrganization$suspendBridge_ix0jra_k$ = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion) {
|
|
1314
|
+
var tmp = new $unAssignStorageRoomToOrganization$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
1315
|
+
tmp.result_1 = Unit_instance;
|
|
1316
|
+
tmp.exception_1 = null;
|
|
1317
|
+
return tmp.doResume_5yljmg_k$();
|
|
1318
|
+
};
|
|
1319
|
+
protoOf(StorageApi).unAssignStorageRoomToPerson_bu1cqt_k$ = function (companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion) {
|
|
1320
|
+
return unAssignStorageRoomToPersonOperation_0(this, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
1321
|
+
};
|
|
1322
|
+
protoOf(StorageApi).unAssignStorageRoomToPerson$default_xws5on_k$ = function (companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion, $super) {
|
|
1323
|
+
unassignStorageRoomCommand = unassignStorageRoomCommand === VOID ? null : unassignStorageRoomCommand;
|
|
1324
|
+
return $super === VOID ? this.unAssignStorageRoomToPerson_bu1cqt_k$(companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion) : $super.unAssignStorageRoomToPerson_bu1cqt_k$.call(this, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
1325
|
+
};
|
|
1326
|
+
protoOf(StorageApi).unAssignStorageRoomToPerson = function (companyId, storageRoomId, personId, unassignStorageRoomCommand) {
|
|
1327
|
+
var tmp = this;
|
|
1328
|
+
return promisify(function ($completion) {
|
|
1329
|
+
return tmp.unAssignStorageRoomToPerson$default_xws5on_k$(companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
1330
|
+
});
|
|
1331
|
+
};
|
|
1332
|
+
protoOf(StorageApi).unAssignStorageRoomToPerson$suspendBridge_wcau8s_k$ = function (companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion) {
|
|
1333
|
+
var tmp = new $unAssignStorageRoomToPerson$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
1334
|
+
tmp.result_1 = Unit_instance;
|
|
1335
|
+
tmp.exception_1 = null;
|
|
1336
|
+
return tmp.doResume_5yljmg_k$();
|
|
1337
|
+
};
|
|
1338
|
+
protoOf(StorageApi).unAssignStorageRoomToSection_ulyjhj_k$ = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion) {
|
|
1339
|
+
return unAssignStorageRoomToSectionOperation_0(this, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
1340
|
+
};
|
|
1341
|
+
protoOf(StorageApi).unAssignStorageRoomToSection$default_4z5wo9_k$ = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion, $super) {
|
|
1342
|
+
unassignStorageRoomCommand = unassignStorageRoomCommand === VOID ? null : unassignStorageRoomCommand;
|
|
1343
|
+
return $super === VOID ? this.unAssignStorageRoomToSection_ulyjhj_k$(companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion) : $super.unAssignStorageRoomToSection_ulyjhj_k$.call(this, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
1344
|
+
};
|
|
1345
|
+
protoOf(StorageApi).unAssignStorageRoomToSection = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand) {
|
|
1346
|
+
var tmp = this;
|
|
1347
|
+
return promisify(function ($completion) {
|
|
1348
|
+
return tmp.unAssignStorageRoomToSection$default_4z5wo9_k$(companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
1349
|
+
});
|
|
1350
|
+
};
|
|
1351
|
+
protoOf(StorageApi).unAssignStorageRoomToSection$suspendBridge_560bei_k$ = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion) {
|
|
1352
|
+
var tmp = new $unAssignStorageRoomToSection$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
1353
|
+
tmp.result_1 = Unit_instance;
|
|
1354
|
+
tmp.exception_1 = null;
|
|
1355
|
+
return tmp.doResume_5yljmg_k$();
|
|
1356
|
+
};
|
|
1357
|
+
protoOf(StorageApi).updateStorageRoom_corgr7_k$ = function (companyId, storageRoomId, updateStorageRoomCommand, $completion) {
|
|
1358
|
+
return updateStorageRoomOperation_0(this, companyId, storageRoomId, updateStorageRoomCommand, $completion);
|
|
1359
|
+
};
|
|
1360
|
+
protoOf(StorageApi).updateStorageRoom = function (companyId, storageRoomId, updateStorageRoomCommand) {
|
|
1361
|
+
var tmp = this;
|
|
1362
|
+
return promisify(function ($completion) {
|
|
1363
|
+
return tmp.updateStorageRoom_corgr7_k$(companyId, storageRoomId, updateStorageRoomCommand, $completion);
|
|
1364
|
+
});
|
|
1365
|
+
};
|
|
1366
|
+
protoOf(StorageApi).updateStorageRoom$suspendBridge_dnv9le_k$ = function (companyId, storageRoomId, updateStorageRoomCommand, $completion) {
|
|
1367
|
+
var tmp = new $updateStorageRoom$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, updateStorageRoomCommand, $completion);
|
|
1368
|
+
tmp.result_1 = Unit_instance;
|
|
1369
|
+
tmp.exception_1 = null;
|
|
1370
|
+
return tmp.doResume_5yljmg_k$();
|
|
1371
|
+
};
|
|
1372
|
+
function StorageApi() {
|
|
1373
|
+
}
|
|
1374
|
+
function assignStorageRoomToOrganizationOperation(client, companyId, storageRoomId, organizationId, assignStorageRoomCommand) {
|
|
1375
|
+
return promisify(function ($completion) {
|
|
1376
|
+
return assignStorageRoomToOrganizationOperation_0(client, companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
function assignStorageRoomToOrganizationOperation_0(client, companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion) {
|
|
1380
|
+
var tmp = new $assignStorageRoomToOrganizationOperationCOROUTINE$(client, companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
1381
|
+
tmp.result_1 = Unit_instance;
|
|
1382
|
+
tmp.exception_1 = null;
|
|
1383
|
+
return tmp.doResume_5yljmg_k$();
|
|
1384
|
+
}
|
|
1385
|
+
function $assignStorageRoomToOrganizationOperationCOROUTINE$(client, companyId, storageRoomId, organizationId, assignStorageRoomCommand, resultContinuation) {
|
|
1479
1386
|
CoroutineImpl.call(this, resultContinuation);
|
|
1480
|
-
this.
|
|
1387
|
+
this.client_1 = client;
|
|
1481
1388
|
this.companyId_1 = companyId;
|
|
1482
1389
|
this.storageRoomId_1 = storageRoomId;
|
|
1483
|
-
this.
|
|
1390
|
+
this.organizationId_1 = organizationId;
|
|
1391
|
+
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
1484
1392
|
}
|
|
1485
|
-
protoOf($
|
|
1393
|
+
protoOf($assignStorageRoomToOrganizationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1486
1394
|
var suspendResult = this.result_1;
|
|
1487
1395
|
$sm: do
|
|
1488
1396
|
try {
|
|
1489
1397
|
var tmp = this.state_1;
|
|
1490
1398
|
switch (tmp) {
|
|
1491
1399
|
case 0:
|
|
1492
|
-
this.exceptionState_1 =
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
return suspendResult;
|
|
1505
|
-
}
|
|
1506
|
-
continue $sm;
|
|
1400
|
+
this.exceptionState_1 = 2;
|
|
1401
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1402
|
+
var localVariableBody = this.assignStorageRoomCommand_1;
|
|
1403
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1404
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1405
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1406
|
+
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{organizationId}', this.organizationId_1.toString());
|
|
1407
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1408
|
+
this.state_1 = 1;
|
|
1409
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1410
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1411
|
+
return suspendResult;
|
|
1507
1412
|
}
|
|
1508
1413
|
|
|
1509
|
-
case 1:
|
|
1510
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1511
|
-
this.state_1 = 3;
|
|
1512
1414
|
continue $sm;
|
|
1415
|
+
case 1:
|
|
1416
|
+
var this_0 = suspendResult;
|
|
1417
|
+
var tmp_0 = getKClass(Unit);
|
|
1418
|
+
var tmp_1 = null instanceof Unit;
|
|
1419
|
+
var tmp_2;
|
|
1420
|
+
try {
|
|
1421
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1422
|
+
} catch ($p) {
|
|
1423
|
+
var tmp_3;
|
|
1424
|
+
if ($p instanceof Error) {
|
|
1425
|
+
var _unused_var__etf5q3 = $p;
|
|
1426
|
+
tmp_3 = null;
|
|
1427
|
+
} else {
|
|
1428
|
+
throw $p;
|
|
1429
|
+
}
|
|
1430
|
+
tmp_2 = tmp_3;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1513
1434
|
case 2:
|
|
1514
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1515
|
-
this.state_1 = 3;
|
|
1516
|
-
continue $sm;
|
|
1517
|
-
case 3:
|
|
1518
|
-
return this.WHEN_RESULT0__1;
|
|
1519
|
-
case 4:
|
|
1520
1435
|
throw this.exception_1;
|
|
1521
1436
|
}
|
|
1522
|
-
} catch ($
|
|
1523
|
-
var e = $
|
|
1524
|
-
if (this.exceptionState_1 ===
|
|
1437
|
+
} catch ($p_0) {
|
|
1438
|
+
var e = $p_0;
|
|
1439
|
+
if (this.exceptionState_1 === 2) {
|
|
1525
1440
|
throw e;
|
|
1526
1441
|
} else {
|
|
1527
1442
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1530,14 +1445,26 @@ protoOf($showStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1530
1445
|
}
|
|
1531
1446
|
while (true);
|
|
1532
1447
|
};
|
|
1533
|
-
function
|
|
1448
|
+
function assignStorageRoomToPersonOperation(client, companyId, storageRoomId, personId, assignStorageRoomCommand) {
|
|
1449
|
+
return promisify(function ($completion) {
|
|
1450
|
+
return assignStorageRoomToPersonOperation_0(client, companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
function assignStorageRoomToPersonOperation_0(client, companyId, storageRoomId, personId, assignStorageRoomCommand, $completion) {
|
|
1454
|
+
var tmp = new $assignStorageRoomToPersonOperationCOROUTINE$(client, companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
1455
|
+
tmp.result_1 = Unit_instance;
|
|
1456
|
+
tmp.exception_1 = null;
|
|
1457
|
+
return tmp.doResume_5yljmg_k$();
|
|
1458
|
+
}
|
|
1459
|
+
function $assignStorageRoomToPersonOperationCOROUTINE$(client, companyId, storageRoomId, personId, assignStorageRoomCommand, resultContinuation) {
|
|
1534
1460
|
CoroutineImpl.call(this, resultContinuation);
|
|
1535
|
-
this.
|
|
1461
|
+
this.client_1 = client;
|
|
1536
1462
|
this.companyId_1 = companyId;
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1463
|
+
this.storageRoomId_1 = storageRoomId;
|
|
1464
|
+
this.personId_1 = personId;
|
|
1465
|
+
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
1539
1466
|
}
|
|
1540
|
-
protoOf($
|
|
1467
|
+
protoOf($assignStorageRoomToPersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1541
1468
|
var suspendResult = this.result_1;
|
|
1542
1469
|
$sm: do
|
|
1543
1470
|
try {
|
|
@@ -1546,29 +1473,14 @@ protoOf($storageRoomAllocationOverviewCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1546
1473
|
case 0:
|
|
1547
1474
|
this.exceptionState_1 = 2;
|
|
1548
1475
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1549
|
-
var localVariableBody =
|
|
1476
|
+
var localVariableBody = this.assignStorageRoomCommand_1;
|
|
1550
1477
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1551
|
-
if (this.searchDate_1 == null)
|
|
1552
|
-
null;
|
|
1553
|
-
else {
|
|
1554
|
-
var tmp2 = 'searchDate';
|
|
1555
|
-
var value = listOf_0(this.searchDate_1.toString());
|
|
1556
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
if (this.fields_1 == null)
|
|
1560
|
-
null;
|
|
1561
|
-
else {
|
|
1562
|
-
var value_0 = listOf_0(this.fields_1);
|
|
1563
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
1478
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1567
|
-
var
|
|
1568
|
-
var
|
|
1569
|
-
var localVariableConfig = new RequestConfig(
|
|
1479
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1480
|
+
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{personId}', this.personId_1.toString());
|
|
1481
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1570
1482
|
this.state_1 = 1;
|
|
1571
|
-
suspendResult = this.
|
|
1483
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1572
1484
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1573
1485
|
return suspendResult;
|
|
1574
1486
|
}
|
|
@@ -1576,11 +1488,11 @@ protoOf($storageRoomAllocationOverviewCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1576
1488
|
continue $sm;
|
|
1577
1489
|
case 1:
|
|
1578
1490
|
var this_0 = suspendResult;
|
|
1579
|
-
var tmp_0 = getKClass(
|
|
1580
|
-
var tmp_1 = null instanceof
|
|
1491
|
+
var tmp_0 = getKClass(Unit);
|
|
1492
|
+
var tmp_1 = null instanceof Unit;
|
|
1581
1493
|
var tmp_2;
|
|
1582
1494
|
try {
|
|
1583
|
-
tmp_2 = createKType(getKClass(
|
|
1495
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1584
1496
|
} catch ($p) {
|
|
1585
1497
|
var tmp_3;
|
|
1586
1498
|
if ($p instanceof Error) {
|
|
@@ -1607,53 +1519,72 @@ protoOf($storageRoomAllocationOverviewCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1607
1519
|
}
|
|
1608
1520
|
while (true);
|
|
1609
1521
|
};
|
|
1610
|
-
function
|
|
1522
|
+
function assignStorageRoomToSectionOperation(client, companyId, storageRoomId, sectionId, assignStorageRoomCommand) {
|
|
1523
|
+
return promisify(function ($completion) {
|
|
1524
|
+
return assignStorageRoomToSectionOperation_0(client, companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
function assignStorageRoomToSectionOperation_0(client, companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion) {
|
|
1528
|
+
var tmp = new $assignStorageRoomToSectionOperationCOROUTINE$(client, companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
1529
|
+
tmp.result_1 = Unit_instance;
|
|
1530
|
+
tmp.exception_1 = null;
|
|
1531
|
+
return tmp.doResume_5yljmg_k$();
|
|
1532
|
+
}
|
|
1533
|
+
function $assignStorageRoomToSectionOperationCOROUTINE$(client, companyId, storageRoomId, sectionId, assignStorageRoomCommand, resultContinuation) {
|
|
1611
1534
|
CoroutineImpl.call(this, resultContinuation);
|
|
1612
|
-
this.
|
|
1535
|
+
this.client_1 = client;
|
|
1613
1536
|
this.companyId_1 = companyId;
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1537
|
+
this.storageRoomId_1 = storageRoomId;
|
|
1538
|
+
this.sectionId_1 = sectionId;
|
|
1539
|
+
this.assignStorageRoomCommand_1 = assignStorageRoomCommand;
|
|
1616
1540
|
}
|
|
1617
|
-
protoOf($
|
|
1541
|
+
protoOf($assignStorageRoomToSectionOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1618
1542
|
var suspendResult = this.result_1;
|
|
1619
1543
|
$sm: do
|
|
1620
1544
|
try {
|
|
1621
1545
|
var tmp = this.state_1;
|
|
1622
1546
|
switch (tmp) {
|
|
1623
1547
|
case 0:
|
|
1624
|
-
this.exceptionState_1 =
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
return suspendResult;
|
|
1637
|
-
}
|
|
1638
|
-
continue $sm;
|
|
1548
|
+
this.exceptionState_1 = 2;
|
|
1549
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1550
|
+
var localVariableBody = this.assignStorageRoomCommand_1;
|
|
1551
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1552
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1553
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1554
|
+
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/section/{sectionId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{sectionId}', this.sectionId_1.toString());
|
|
1555
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1556
|
+
this.state_1 = 1;
|
|
1557
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1558
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1559
|
+
return suspendResult;
|
|
1639
1560
|
}
|
|
1640
1561
|
|
|
1641
|
-
case 1:
|
|
1642
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1643
|
-
this.state_1 = 3;
|
|
1644
1562
|
continue $sm;
|
|
1563
|
+
case 1:
|
|
1564
|
+
var this_0 = suspendResult;
|
|
1565
|
+
var tmp_0 = getKClass(Unit);
|
|
1566
|
+
var tmp_1 = null instanceof Unit;
|
|
1567
|
+
var tmp_2;
|
|
1568
|
+
try {
|
|
1569
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1570
|
+
} catch ($p) {
|
|
1571
|
+
var tmp_3;
|
|
1572
|
+
if ($p instanceof Error) {
|
|
1573
|
+
var _unused_var__etf5q3 = $p;
|
|
1574
|
+
tmp_3 = null;
|
|
1575
|
+
} else {
|
|
1576
|
+
throw $p;
|
|
1577
|
+
}
|
|
1578
|
+
tmp_2 = tmp_3;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1645
1582
|
case 2:
|
|
1646
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1647
|
-
this.state_1 = 3;
|
|
1648
|
-
continue $sm;
|
|
1649
|
-
case 3:
|
|
1650
|
-
return this.WHEN_RESULT0__1;
|
|
1651
|
-
case 4:
|
|
1652
1583
|
throw this.exception_1;
|
|
1653
1584
|
}
|
|
1654
|
-
} catch ($
|
|
1655
|
-
var e = $
|
|
1656
|
-
if (this.exceptionState_1 ===
|
|
1585
|
+
} catch ($p_0) {
|
|
1586
|
+
var e = $p_0;
|
|
1587
|
+
if (this.exceptionState_1 === 2) {
|
|
1657
1588
|
throw e;
|
|
1658
1589
|
} else {
|
|
1659
1590
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1662,15 +1593,24 @@ protoOf($storageRoomAllocationOverview$suspendBridgeCOROUTINE$).doResume_5yljmg_
|
|
|
1662
1593
|
}
|
|
1663
1594
|
while (true);
|
|
1664
1595
|
};
|
|
1665
|
-
function
|
|
1596
|
+
function createStorageRoomOperation(client, companyId, createStorageRoomCommand) {
|
|
1597
|
+
return promisify(function ($completion) {
|
|
1598
|
+
return createStorageRoomOperation_0(client, companyId, createStorageRoomCommand, $completion);
|
|
1599
|
+
});
|
|
1600
|
+
}
|
|
1601
|
+
function createStorageRoomOperation_0(client, companyId, createStorageRoomCommand, $completion) {
|
|
1602
|
+
var tmp = new $createStorageRoomOperationCOROUTINE$(client, companyId, createStorageRoomCommand, $completion);
|
|
1603
|
+
tmp.result_1 = Unit_instance;
|
|
1604
|
+
tmp.exception_1 = null;
|
|
1605
|
+
return tmp.doResume_5yljmg_k$();
|
|
1606
|
+
}
|
|
1607
|
+
function $createStorageRoomOperationCOROUTINE$(client, companyId, createStorageRoomCommand, resultContinuation) {
|
|
1666
1608
|
CoroutineImpl.call(this, resultContinuation);
|
|
1667
|
-
this.
|
|
1609
|
+
this.client_1 = client;
|
|
1668
1610
|
this.companyId_1 = companyId;
|
|
1669
|
-
this.
|
|
1670
|
-
this.searchDate_1 = searchDate;
|
|
1671
|
-
this.fields_1 = fields;
|
|
1611
|
+
this.createStorageRoomCommand_1 = createStorageRoomCommand;
|
|
1672
1612
|
}
|
|
1673
|
-
protoOf($
|
|
1613
|
+
protoOf($createStorageRoomOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1674
1614
|
var suspendResult = this.result_1;
|
|
1675
1615
|
$sm: do
|
|
1676
1616
|
try {
|
|
@@ -1679,29 +1619,14 @@ protoOf($storageRoomVacancyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1679
1619
|
case 0:
|
|
1680
1620
|
this.exceptionState_1 = 2;
|
|
1681
1621
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1682
|
-
var localVariableBody =
|
|
1622
|
+
var localVariableBody = this.createStorageRoomCommand_1;
|
|
1683
1623
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1684
|
-
if (this.searchDate_1 == null)
|
|
1685
|
-
null;
|
|
1686
|
-
else {
|
|
1687
|
-
var tmp2 = 'searchDate';
|
|
1688
|
-
var value = listOf_0(this.searchDate_1.toString());
|
|
1689
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
if (this.fields_1 == null)
|
|
1693
|
-
null;
|
|
1694
|
-
else {
|
|
1695
|
-
var value_0 = listOf_0(this.fields_1);
|
|
1696
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
1624
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1700
|
-
var
|
|
1701
|
-
var
|
|
1702
|
-
var localVariableConfig = new RequestConfig(
|
|
1625
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1626
|
+
var tmp1_path = replace('/companies/{companyId}/storageRooms', '{companyId}', this.companyId_1.toString());
|
|
1627
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1703
1628
|
this.state_1 = 1;
|
|
1704
|
-
suspendResult = this.
|
|
1629
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1705
1630
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1706
1631
|
return suspendResult;
|
|
1707
1632
|
}
|
|
@@ -1709,11 +1634,11 @@ protoOf($storageRoomVacancyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1709
1634
|
continue $sm;
|
|
1710
1635
|
case 1:
|
|
1711
1636
|
var this_0 = suspendResult;
|
|
1712
|
-
var tmp_0 = getKClass(
|
|
1713
|
-
var tmp_1 = null instanceof
|
|
1637
|
+
var tmp_0 = getKClass(StorageRoom);
|
|
1638
|
+
var tmp_1 = null instanceof StorageRoom;
|
|
1714
1639
|
var tmp_2;
|
|
1715
1640
|
try {
|
|
1716
|
-
tmp_2 = createKType(getKClass(
|
|
1641
|
+
tmp_2 = createKType(getKClass(StorageRoom), arrayOf([]), false);
|
|
1717
1642
|
} catch ($p) {
|
|
1718
1643
|
var tmp_3;
|
|
1719
1644
|
if ($p instanceof Error) {
|
|
@@ -1740,54 +1665,70 @@ protoOf($storageRoomVacancyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1740
1665
|
}
|
|
1741
1666
|
while (true);
|
|
1742
1667
|
};
|
|
1743
|
-
function
|
|
1668
|
+
function deleteStorageRoomOperation(client, companyId, storageRoomId) {
|
|
1669
|
+
return promisify(function ($completion) {
|
|
1670
|
+
return deleteStorageRoomOperation_0(client, companyId, storageRoomId, $completion);
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
function deleteStorageRoomOperation_0(client, companyId, storageRoomId, $completion) {
|
|
1674
|
+
var tmp = new $deleteStorageRoomOperationCOROUTINE$(client, companyId, storageRoomId, $completion);
|
|
1675
|
+
tmp.result_1 = Unit_instance;
|
|
1676
|
+
tmp.exception_1 = null;
|
|
1677
|
+
return tmp.doResume_5yljmg_k$();
|
|
1678
|
+
}
|
|
1679
|
+
function $deleteStorageRoomOperationCOROUTINE$(client, companyId, storageRoomId, resultContinuation) {
|
|
1744
1680
|
CoroutineImpl.call(this, resultContinuation);
|
|
1745
|
-
this.
|
|
1681
|
+
this.client_1 = client;
|
|
1746
1682
|
this.companyId_1 = companyId;
|
|
1747
1683
|
this.storageRoomId_1 = storageRoomId;
|
|
1748
|
-
this.searchDate_1 = searchDate;
|
|
1749
|
-
this.fields_1 = fields;
|
|
1750
1684
|
}
|
|
1751
|
-
protoOf($
|
|
1685
|
+
protoOf($deleteStorageRoomOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1752
1686
|
var suspendResult = this.result_1;
|
|
1753
1687
|
$sm: do
|
|
1754
1688
|
try {
|
|
1755
1689
|
var tmp = this.state_1;
|
|
1756
1690
|
switch (tmp) {
|
|
1757
1691
|
case 0:
|
|
1758
|
-
this.exceptionState_1 =
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
return suspendResult;
|
|
1771
|
-
}
|
|
1772
|
-
continue $sm;
|
|
1692
|
+
this.exceptionState_1 = 2;
|
|
1693
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1694
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1695
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1696
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1697
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1698
|
+
var tmp1_path = replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString());
|
|
1699
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1700
|
+
this.state_1 = 1;
|
|
1701
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1702
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1703
|
+
return suspendResult;
|
|
1773
1704
|
}
|
|
1774
1705
|
|
|
1775
|
-
case 1:
|
|
1776
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1777
|
-
this.state_1 = 3;
|
|
1778
1706
|
continue $sm;
|
|
1707
|
+
case 1:
|
|
1708
|
+
var this_0 = suspendResult;
|
|
1709
|
+
var tmp_0 = getKClass(Unit);
|
|
1710
|
+
var tmp_1 = null instanceof Unit;
|
|
1711
|
+
var tmp_2;
|
|
1712
|
+
try {
|
|
1713
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1714
|
+
} catch ($p) {
|
|
1715
|
+
var tmp_3;
|
|
1716
|
+
if ($p instanceof Error) {
|
|
1717
|
+
var _unused_var__etf5q3 = $p;
|
|
1718
|
+
tmp_3 = null;
|
|
1719
|
+
} else {
|
|
1720
|
+
throw $p;
|
|
1721
|
+
}
|
|
1722
|
+
tmp_2 = tmp_3;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1779
1726
|
case 2:
|
|
1780
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1781
|
-
this.state_1 = 3;
|
|
1782
|
-
continue $sm;
|
|
1783
|
-
case 3:
|
|
1784
|
-
return this.WHEN_RESULT0__1;
|
|
1785
|
-
case 4:
|
|
1786
1727
|
throw this.exception_1;
|
|
1787
1728
|
}
|
|
1788
|
-
} catch ($
|
|
1789
|
-
var e = $
|
|
1790
|
-
if (this.exceptionState_1 ===
|
|
1729
|
+
} catch ($p_0) {
|
|
1730
|
+
var e = $p_0;
|
|
1731
|
+
if (this.exceptionState_1 === 2) {
|
|
1791
1732
|
throw e;
|
|
1792
1733
|
} else {
|
|
1793
1734
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1796,15 +1737,23 @@ protoOf($storageRoomVacancy$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
1796
1737
|
}
|
|
1797
1738
|
while (true);
|
|
1798
1739
|
};
|
|
1799
|
-
function
|
|
1740
|
+
function exportStorageRoomsOperation(client, companyId) {
|
|
1741
|
+
return promisify(function ($completion) {
|
|
1742
|
+
return exportStorageRoomsOperation_0(client, companyId, $completion);
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
function exportStorageRoomsOperation_0(client, companyId, $completion) {
|
|
1746
|
+
var tmp = new $exportStorageRoomsOperationCOROUTINE$(client, companyId, $completion);
|
|
1747
|
+
tmp.result_1 = Unit_instance;
|
|
1748
|
+
tmp.exception_1 = null;
|
|
1749
|
+
return tmp.doResume_5yljmg_k$();
|
|
1750
|
+
}
|
|
1751
|
+
function $exportStorageRoomsOperationCOROUTINE$(client, companyId, resultContinuation) {
|
|
1800
1752
|
CoroutineImpl.call(this, resultContinuation);
|
|
1801
|
-
this.
|
|
1753
|
+
this.client_1 = client;
|
|
1802
1754
|
this.companyId_1 = companyId;
|
|
1803
|
-
this.storageRoomId_1 = storageRoomId;
|
|
1804
|
-
this.organizationId_1 = organizationId;
|
|
1805
|
-
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
1806
1755
|
}
|
|
1807
|
-
protoOf($
|
|
1756
|
+
protoOf($exportStorageRoomsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1808
1757
|
var suspendResult = this.result_1;
|
|
1809
1758
|
$sm: do
|
|
1810
1759
|
try {
|
|
@@ -1813,14 +1762,14 @@ protoOf($unAssignStorageRoomToOrganizationCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
1813
1762
|
case 0:
|
|
1814
1763
|
this.exceptionState_1 = 2;
|
|
1815
1764
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1816
|
-
var localVariableBody =
|
|
1765
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1817
1766
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1818
1767
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1819
|
-
var tmp0_method =
|
|
1820
|
-
var tmp1_path = replace(
|
|
1768
|
+
var tmp0_method = RequestMethod_GET_getInstance();
|
|
1769
|
+
var tmp1_path = replace('/companies/{companyId}/storageRooms/export', '{companyId}', this.companyId_1.toString());
|
|
1821
1770
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1822
1771
|
this.state_1 = 1;
|
|
1823
|
-
suspendResult = this.
|
|
1772
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1824
1773
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1825
1774
|
return suspendResult;
|
|
1826
1775
|
}
|
|
@@ -1828,11 +1777,11 @@ protoOf($unAssignStorageRoomToOrganizationCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
1828
1777
|
continue $sm;
|
|
1829
1778
|
case 1:
|
|
1830
1779
|
var this_0 = suspendResult;
|
|
1831
|
-
var tmp_0 = getKClass(
|
|
1832
|
-
var tmp_1 = null instanceof
|
|
1780
|
+
var tmp_0 = getKClass(Base64ByteArray);
|
|
1781
|
+
var tmp_1 = null instanceof Base64ByteArray;
|
|
1833
1782
|
var tmp_2;
|
|
1834
1783
|
try {
|
|
1835
|
-
tmp_2 = createKType(getKClass(
|
|
1784
|
+
tmp_2 = createKType(getKClass(Base64ByteArray), arrayOf([]), false);
|
|
1836
1785
|
} catch ($p) {
|
|
1837
1786
|
var tmp_3;
|
|
1838
1787
|
if ($p instanceof Error) {
|
|
@@ -1859,54 +1808,126 @@ protoOf($unAssignStorageRoomToOrganizationCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
1859
1808
|
}
|
|
1860
1809
|
while (true);
|
|
1861
1810
|
};
|
|
1862
|
-
function
|
|
1811
|
+
function indexStorageRoomOperation(client, companyId, search, assigned, fields, pageToken, autoPaginate, count) {
|
|
1812
|
+
return promisify(function ($completion) {
|
|
1813
|
+
return indexStorageRoomOperation_0(client, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
function indexStorageRoomOperation_0(client, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
1817
|
+
search = search === VOID ? null : search;
|
|
1818
|
+
assigned = assigned === VOID ? null : assigned;
|
|
1819
|
+
fields = fields === VOID ? null : fields;
|
|
1820
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1821
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1822
|
+
count = count === VOID ? null : count;
|
|
1823
|
+
var tmp = new $indexStorageRoomOperationCOROUTINE$(client, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1824
|
+
tmp.result_1 = Unit_instance;
|
|
1825
|
+
tmp.exception_1 = null;
|
|
1826
|
+
return tmp.doResume_5yljmg_k$();
|
|
1827
|
+
}
|
|
1828
|
+
function $indexStorageRoomOperationCOROUTINE$(client, companyId, search, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1863
1829
|
CoroutineImpl.call(this, resultContinuation);
|
|
1864
|
-
this.
|
|
1830
|
+
this.client_1 = client;
|
|
1865
1831
|
this.companyId_1 = companyId;
|
|
1866
|
-
this.
|
|
1867
|
-
this.
|
|
1868
|
-
this.
|
|
1832
|
+
this.search_1 = search;
|
|
1833
|
+
this.assigned_1 = assigned;
|
|
1834
|
+
this.fields_1 = fields;
|
|
1835
|
+
this.pageToken_1 = pageToken;
|
|
1836
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1837
|
+
this.count_1 = count;
|
|
1869
1838
|
}
|
|
1870
|
-
protoOf($
|
|
1839
|
+
protoOf($indexStorageRoomOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1871
1840
|
var suspendResult = this.result_1;
|
|
1872
1841
|
$sm: do
|
|
1873
1842
|
try {
|
|
1874
1843
|
var tmp = this.state_1;
|
|
1875
1844
|
switch (tmp) {
|
|
1876
1845
|
case 0:
|
|
1877
|
-
this.exceptionState_1 =
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1846
|
+
this.exceptionState_1 = 2;
|
|
1847
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1848
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1849
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1850
|
+
if (this.search_1 == null)
|
|
1851
|
+
null;
|
|
1852
|
+
else {
|
|
1853
|
+
var value = listOf_0(this.search_1);
|
|
1854
|
+
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
if (this.assigned_1 == null)
|
|
1858
|
+
null;
|
|
1859
|
+
else {
|
|
1860
|
+
var tmp2 = 'assigned';
|
|
1861
|
+
var value_0 = listOf_0('' + this.assigned_1);
|
|
1862
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
if (this.fields_1 == null)
|
|
1866
|
+
null;
|
|
1867
|
+
else {
|
|
1868
|
+
var value_1 = listOf_0(this.fields_1);
|
|
1869
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_1);
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
if (this.pageToken_1 == null)
|
|
1873
|
+
null;
|
|
1874
|
+
else {
|
|
1875
|
+
var tmp2_0 = 'pageToken';
|
|
1876
|
+
var value_2 = listOf_0(this.pageToken_1);
|
|
1877
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
if (this.autoPaginate_1 == null)
|
|
1881
|
+
null;
|
|
1882
|
+
else {
|
|
1883
|
+
var tmp2_1 = 'autoPaginate';
|
|
1884
|
+
var value_3 = listOf_0('' + this.autoPaginate_1);
|
|
1885
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
if (this.count_1 == null)
|
|
1889
|
+
null;
|
|
1890
|
+
else {
|
|
1891
|
+
var value_4 = listOf_0('' + this.count_1);
|
|
1892
|
+
localVariableQuery.put_4fpzoq_k$('count', value_4);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1896
|
+
var tmp6_method = RequestMethod_GET_getInstance();
|
|
1897
|
+
var tmp7_path = replace('/companies/{companyId}/storageRooms', '{companyId}', this.companyId_1.toString());
|
|
1898
|
+
var localVariableConfig = new RequestConfig(tmp6_method, tmp7_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1899
|
+
this.state_1 = 1;
|
|
1900
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1901
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1902
|
+
return suspendResult;
|
|
1892
1903
|
}
|
|
1893
1904
|
|
|
1894
|
-
case 1:
|
|
1895
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1896
|
-
this.state_1 = 3;
|
|
1897
1905
|
continue $sm;
|
|
1906
|
+
case 1:
|
|
1907
|
+
var this_0 = suspendResult;
|
|
1908
|
+
var tmp_0 = getKClass(PagedListStorageRoom);
|
|
1909
|
+
var tmp_1 = null instanceof PagedListStorageRoom;
|
|
1910
|
+
var tmp_2;
|
|
1911
|
+
try {
|
|
1912
|
+
tmp_2 = createKType(getKClass(PagedListStorageRoom), arrayOf([]), false);
|
|
1913
|
+
} catch ($p) {
|
|
1914
|
+
var tmp_3;
|
|
1915
|
+
if ($p instanceof Error) {
|
|
1916
|
+
var _unused_var__etf5q3 = $p;
|
|
1917
|
+
tmp_3 = null;
|
|
1918
|
+
} else {
|
|
1919
|
+
throw $p;
|
|
1920
|
+
}
|
|
1921
|
+
tmp_2 = tmp_3;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1898
1925
|
case 2:
|
|
1899
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1900
|
-
this.state_1 = 3;
|
|
1901
|
-
continue $sm;
|
|
1902
|
-
case 3:
|
|
1903
|
-
return this.WHEN_RESULT0__1;
|
|
1904
|
-
case 4:
|
|
1905
1926
|
throw this.exception_1;
|
|
1906
1927
|
}
|
|
1907
|
-
} catch ($
|
|
1908
|
-
var e = $
|
|
1909
|
-
if (this.exceptionState_1 ===
|
|
1928
|
+
} catch ($p_0) {
|
|
1929
|
+
var e = $p_0;
|
|
1930
|
+
if (this.exceptionState_1 === 2) {
|
|
1910
1931
|
throw e;
|
|
1911
1932
|
} else {
|
|
1912
1933
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1915,15 +1936,36 @@ protoOf($unAssignStorageRoomToOrganization$suspendBridgeCOROUTINE$).doResume_5yl
|
|
|
1915
1936
|
}
|
|
1916
1937
|
while (true);
|
|
1917
1938
|
};
|
|
1918
|
-
function
|
|
1939
|
+
function indexStorageRoomsUserOperation(client, companyIds, search, assigned, fields, pageToken, autoPaginate, count) {
|
|
1940
|
+
return promisify(function ($completion) {
|
|
1941
|
+
return indexStorageRoomsUserOperation_0(client, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
function indexStorageRoomsUserOperation_0(client, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
1945
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
1946
|
+
search = search === VOID ? null : search;
|
|
1947
|
+
assigned = assigned === VOID ? null : assigned;
|
|
1948
|
+
fields = fields === VOID ? null : fields;
|
|
1949
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1950
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1951
|
+
count = count === VOID ? null : count;
|
|
1952
|
+
var tmp = new $indexStorageRoomsUserOperationCOROUTINE$(client, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
1953
|
+
tmp.result_1 = Unit_instance;
|
|
1954
|
+
tmp.exception_1 = null;
|
|
1955
|
+
return tmp.doResume_5yljmg_k$();
|
|
1956
|
+
}
|
|
1957
|
+
function $indexStorageRoomsUserOperationCOROUTINE$(client, companyIds, search, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1919
1958
|
CoroutineImpl.call(this, resultContinuation);
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1959
|
+
this.client_1 = client;
|
|
1960
|
+
this.companyIds_1 = companyIds;
|
|
1961
|
+
this.search_1 = search;
|
|
1962
|
+
this.assigned_1 = assigned;
|
|
1963
|
+
this.fields_1 = fields;
|
|
1964
|
+
this.pageToken_1 = pageToken;
|
|
1965
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1966
|
+
this.count_1 = count;
|
|
1925
1967
|
}
|
|
1926
|
-
protoOf($
|
|
1968
|
+
protoOf($indexStorageRoomsUserOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1927
1969
|
var suspendResult = this.result_1;
|
|
1928
1970
|
$sm: do
|
|
1929
1971
|
try {
|
|
@@ -1932,14 +1974,67 @@ protoOf($unAssignStorageRoomToPersonCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1932
1974
|
case 0:
|
|
1933
1975
|
this.exceptionState_1 = 2;
|
|
1934
1976
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1935
|
-
var localVariableBody =
|
|
1977
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1936
1978
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1979
|
+
var tmp0_safe_receiver = this.companyIds_1;
|
|
1980
|
+
if (tmp0_safe_receiver == null)
|
|
1981
|
+
null;
|
|
1982
|
+
else {
|
|
1983
|
+
var tmp2 = 'companyIds';
|
|
1984
|
+
var value = toMultiValue(tmp0_safe_receiver, 'multi');
|
|
1985
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
if (this.search_1 == null)
|
|
1989
|
+
null;
|
|
1990
|
+
else {
|
|
1991
|
+
var value_0 = listOf_0(this.search_1);
|
|
1992
|
+
localVariableQuery.put_4fpzoq_k$('search', value_0);
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
if (this.assigned_1 == null)
|
|
1996
|
+
null;
|
|
1997
|
+
else {
|
|
1998
|
+
var tmp2_0 = 'assigned';
|
|
1999
|
+
var value_1 = listOf_0('' + this.assigned_1);
|
|
2000
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
if (this.fields_1 == null)
|
|
2004
|
+
null;
|
|
2005
|
+
else {
|
|
2006
|
+
var value_2 = listOf_0(this.fields_1);
|
|
2007
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_2);
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
if (this.pageToken_1 == null)
|
|
2011
|
+
null;
|
|
2012
|
+
else {
|
|
2013
|
+
var tmp2_1 = 'pageToken';
|
|
2014
|
+
var value_3 = listOf_0(this.pageToken_1);
|
|
2015
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
if (this.autoPaginate_1 == null)
|
|
2019
|
+
null;
|
|
2020
|
+
else {
|
|
2021
|
+
var tmp2_2 = 'autoPaginate';
|
|
2022
|
+
var value_4 = listOf_0('' + this.autoPaginate_1);
|
|
2023
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_2, value_4);
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
if (this.count_1 == null)
|
|
2027
|
+
null;
|
|
2028
|
+
else {
|
|
2029
|
+
var value_5 = listOf_0('' + this.count_1);
|
|
2030
|
+
localVariableQuery.put_4fpzoq_k$('count', value_5);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
1937
2033
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1938
|
-
var
|
|
1939
|
-
var
|
|
1940
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2034
|
+
var tmp7_method = RequestMethod_GET_getInstance();
|
|
2035
|
+
var localVariableConfig = new RequestConfig(tmp7_method, '/companies/storageRooms', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1941
2036
|
this.state_1 = 1;
|
|
1942
|
-
suspendResult = this.
|
|
2037
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1943
2038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1944
2039
|
return suspendResult;
|
|
1945
2040
|
}
|
|
@@ -1947,11 +2042,11 @@ protoOf($unAssignStorageRoomToPersonCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1947
2042
|
continue $sm;
|
|
1948
2043
|
case 1:
|
|
1949
2044
|
var this_0 = suspendResult;
|
|
1950
|
-
var tmp_0 = getKClass(
|
|
1951
|
-
var tmp_1 = null instanceof
|
|
2045
|
+
var tmp_0 = getKClass(PagedListStorageRoom);
|
|
2046
|
+
var tmp_1 = null instanceof PagedListStorageRoom;
|
|
1952
2047
|
var tmp_2;
|
|
1953
2048
|
try {
|
|
1954
|
-
tmp_2 = createKType(getKClass(
|
|
2049
|
+
tmp_2 = createKType(getKClass(PagedListStorageRoom), arrayOf([]), false);
|
|
1955
2050
|
} catch ($p) {
|
|
1956
2051
|
var tmp_3;
|
|
1957
2052
|
if ($p instanceof Error) {
|
|
@@ -1978,71 +2073,64 @@ protoOf($unAssignStorageRoomToPersonCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1978
2073
|
}
|
|
1979
2074
|
while (true);
|
|
1980
2075
|
};
|
|
1981
|
-
function
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
this.storageRoomId_1 = storageRoomId;
|
|
1986
|
-
this.personId_1 = personId;
|
|
1987
|
-
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
2076
|
+
function listVacantStorageRoomsOperation(client, companyId, searchDate, fields) {
|
|
2077
|
+
return promisify(function ($completion) {
|
|
2078
|
+
return listVacantStorageRoomsOperation_0(client, companyId, searchDate, fields, $completion);
|
|
2079
|
+
});
|
|
1988
2080
|
}
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
case 2:
|
|
2018
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2019
|
-
this.state_1 = 3;
|
|
2020
|
-
continue $sm;
|
|
2021
|
-
case 3:
|
|
2022
|
-
return this.WHEN_RESULT0__1;
|
|
2023
|
-
case 4:
|
|
2024
|
-
throw this.exception_1;
|
|
2025
|
-
}
|
|
2026
|
-
} catch ($p) {
|
|
2027
|
-
var e = $p;
|
|
2028
|
-
if (this.exceptionState_1 === 4) {
|
|
2029
|
-
throw e;
|
|
2030
|
-
} else {
|
|
2031
|
-
this.state_1 = this.exceptionState_1;
|
|
2032
|
-
this.exception_1 = e;
|
|
2033
|
-
}
|
|
2034
|
-
}
|
|
2035
|
-
while (true);
|
|
2081
|
+
function listVacantStorageRoomsOperation_0(client, companyId, searchDate, fields, $completion) {
|
|
2082
|
+
searchDate = searchDate === VOID ? null : searchDate;
|
|
2083
|
+
fields = fields === VOID ? null : fields;
|
|
2084
|
+
var tmp = new $listVacantStorageRoomsOperationCOROUTINE$(client, companyId, searchDate, fields, $completion);
|
|
2085
|
+
tmp.result_1 = Unit_instance;
|
|
2086
|
+
tmp.exception_1 = null;
|
|
2087
|
+
return tmp.doResume_5yljmg_k$();
|
|
2088
|
+
}
|
|
2089
|
+
function Companion() {
|
|
2090
|
+
Companion_instance_0 = this;
|
|
2091
|
+
var tmp = this;
|
|
2092
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
2093
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2094
|
+
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(StorageRoomVacant), arrayOf([]), false))]), false));
|
|
2095
|
+
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
2096
|
+
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
2097
|
+
}
|
|
2098
|
+
protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
|
|
2099
|
+
return this.descriptor_1;
|
|
2100
|
+
};
|
|
2101
|
+
protoOf(Companion).serialize_1x6iz1_k$ = function (encoder, value) {
|
|
2102
|
+
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
2103
|
+
};
|
|
2104
|
+
protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
|
|
2105
|
+
return this.serialize_1x6iz1_k$(encoder, value instanceof ListVacantStorageRoomsResponse ? value : THROW_CCE());
|
|
2106
|
+
};
|
|
2107
|
+
protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
|
|
2108
|
+
return new ListVacantStorageRoomsResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
2036
2109
|
};
|
|
2037
|
-
|
|
2110
|
+
protoOf(Companion).serializer_9w0wvi_k$ = function () {
|
|
2111
|
+
return Companion_getInstance_0();
|
|
2112
|
+
};
|
|
2113
|
+
var Companion_instance_0;
|
|
2114
|
+
function Companion_getInstance_0() {
|
|
2115
|
+
if (Companion_instance_0 == null)
|
|
2116
|
+
new Companion();
|
|
2117
|
+
return Companion_instance_0;
|
|
2118
|
+
}
|
|
2119
|
+
function ListVacantStorageRoomsResponse(value) {
|
|
2120
|
+
Companion_getInstance_0();
|
|
2121
|
+
this.value_1 = value;
|
|
2122
|
+
}
|
|
2123
|
+
function listVacantStorageRoomsOperation$lambda($this$map) {
|
|
2124
|
+
return $this$map.value_1;
|
|
2125
|
+
}
|
|
2126
|
+
function $listVacantStorageRoomsOperationCOROUTINE$(client, companyId, searchDate, fields, resultContinuation) {
|
|
2038
2127
|
CoroutineImpl.call(this, resultContinuation);
|
|
2039
|
-
this.
|
|
2128
|
+
this.client_1 = client;
|
|
2040
2129
|
this.companyId_1 = companyId;
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2043
|
-
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
2130
|
+
this.searchDate_1 = searchDate;
|
|
2131
|
+
this.fields_1 = fields;
|
|
2044
2132
|
}
|
|
2045
|
-
protoOf($
|
|
2133
|
+
protoOf($listVacantStorageRoomsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2046
2134
|
var suspendResult = this.result_1;
|
|
2047
2135
|
$sm: do
|
|
2048
2136
|
try {
|
|
@@ -2051,14 +2139,29 @@ protoOf($unAssignStorageRoomToSectionCOROUTINE$).doResume_5yljmg_k$ = function (
|
|
|
2051
2139
|
case 0:
|
|
2052
2140
|
this.exceptionState_1 = 2;
|
|
2053
2141
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2054
|
-
var localVariableBody =
|
|
2142
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2055
2143
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2144
|
+
if (this.searchDate_1 == null)
|
|
2145
|
+
null;
|
|
2146
|
+
else {
|
|
2147
|
+
var tmp2 = 'searchDate';
|
|
2148
|
+
var value = listOf_0(this.searchDate_1.toString());
|
|
2149
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
if (this.fields_1 == null)
|
|
2153
|
+
null;
|
|
2154
|
+
else {
|
|
2155
|
+
var value_0 = listOf_0(this.fields_1);
|
|
2156
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2056
2159
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2057
|
-
var
|
|
2058
|
-
var
|
|
2059
|
-
var localVariableConfig = new RequestConfig(
|
|
2160
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
2161
|
+
var tmp3_path = replace('/companies/{companyId}/storageRooms/vacant', '{companyId}', this.companyId_1.toString());
|
|
2162
|
+
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2060
2163
|
this.state_1 = 1;
|
|
2061
|
-
suspendResult = this.
|
|
2164
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2062
2165
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2063
2166
|
return suspendResult;
|
|
2064
2167
|
}
|
|
@@ -2066,11 +2169,11 @@ protoOf($unAssignStorageRoomToSectionCOROUTINE$).doResume_5yljmg_k$ = function (
|
|
|
2066
2169
|
continue $sm;
|
|
2067
2170
|
case 1:
|
|
2068
2171
|
var this_0 = suspendResult;
|
|
2069
|
-
var tmp_0 = getKClass(
|
|
2070
|
-
var tmp_1 = null instanceof
|
|
2172
|
+
var tmp_0 = getKClass(ListVacantStorageRoomsResponse);
|
|
2173
|
+
var tmp_1 = null instanceof ListVacantStorageRoomsResponse;
|
|
2071
2174
|
var tmp_2;
|
|
2072
2175
|
try {
|
|
2073
|
-
tmp_2 = createKType(getKClass(
|
|
2176
|
+
tmp_2 = createKType(getKClass(ListVacantStorageRoomsResponse), arrayOf([]), false);
|
|
2074
2177
|
} catch ($p) {
|
|
2075
2178
|
var tmp_3;
|
|
2076
2179
|
if ($p instanceof Error) {
|
|
@@ -2082,69 +2185,14 @@ protoOf($unAssignStorageRoomToSectionCOROUTINE$).doResume_5yljmg_k$ = function (
|
|
|
2082
2185
|
tmp_2 = tmp_3;
|
|
2083
2186
|
}
|
|
2084
2187
|
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
}
|
|
2089
|
-
} catch ($p_0) {
|
|
2090
|
-
var e = $p_0;
|
|
2091
|
-
if (this.exceptionState_1 === 2) {
|
|
2092
|
-
throw e;
|
|
2093
|
-
} else {
|
|
2094
|
-
this.state_1 = this.exceptionState_1;
|
|
2095
|
-
this.exception_1 = e;
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
while (true);
|
|
2099
|
-
};
|
|
2100
|
-
function $unAssignStorageRoomToSection$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, resultContinuation) {
|
|
2101
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2102
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
2103
|
-
this.companyId_1 = companyId;
|
|
2104
|
-
this.storageRoomId_1 = storageRoomId;
|
|
2105
|
-
this.sectionId_1 = sectionId;
|
|
2106
|
-
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
2107
|
-
}
|
|
2108
|
-
protoOf($unAssignStorageRoomToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2109
|
-
var suspendResult = this.result_1;
|
|
2110
|
-
$sm: do
|
|
2111
|
-
try {
|
|
2112
|
-
var tmp = this.state_1;
|
|
2113
|
-
switch (tmp) {
|
|
2114
|
-
case 0:
|
|
2115
|
-
this.exceptionState_1 = 4;
|
|
2116
|
-
if (this._this__u8e3s4__1.unAssignStorageRoomToSection === protoOf(StorageApi).unAssignStorageRoomToSection) {
|
|
2117
|
-
this.state_1 = 2;
|
|
2118
|
-
suspendResult = this._this__u8e3s4__1.unAssignStorageRoomToSection$default_4z5wo9_k$(this.companyId_1, this.storageRoomId_1, this.sectionId_1, this.unassignStorageRoomCommand_1, this);
|
|
2119
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2120
|
-
return suspendResult;
|
|
2121
|
-
}
|
|
2122
|
-
continue $sm;
|
|
2123
|
-
} else {
|
|
2124
|
-
this.state_1 = 1;
|
|
2125
|
-
suspendResult = await_0(this._this__u8e3s4__1.unAssignStorageRoomToSection(this.companyId_1, this.storageRoomId_1, this.sectionId_1, this.unassignStorageRoomCommand_1), this);
|
|
2126
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2127
|
-
return suspendResult;
|
|
2128
|
-
}
|
|
2129
|
-
continue $sm;
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
case 1:
|
|
2133
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2134
|
-
this.state_1 = 3;
|
|
2135
|
-
continue $sm;
|
|
2136
|
-
case 2:
|
|
2137
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2138
|
-
this.state_1 = 3;
|
|
2139
|
-
continue $sm;
|
|
2140
|
-
case 3:
|
|
2141
|
-
return this.WHEN_RESULT0__1;
|
|
2142
|
-
case 4:
|
|
2188
|
+
var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2189
|
+
return map(ARGUMENT, listVacantStorageRoomsOperation$lambda);
|
|
2190
|
+
case 2:
|
|
2143
2191
|
throw this.exception_1;
|
|
2144
2192
|
}
|
|
2145
|
-
} catch ($
|
|
2146
|
-
var e = $
|
|
2147
|
-
if (this.exceptionState_1 ===
|
|
2193
|
+
} catch ($p_0) {
|
|
2194
|
+
var e = $p_0;
|
|
2195
|
+
if (this.exceptionState_1 === 2) {
|
|
2148
2196
|
throw e;
|
|
2149
2197
|
} else {
|
|
2150
2198
|
this.state_1 = this.exceptionState_1;
|
|
@@ -2153,14 +2201,26 @@ protoOf($unAssignStorageRoomToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k
|
|
|
2153
2201
|
}
|
|
2154
2202
|
while (true);
|
|
2155
2203
|
};
|
|
2156
|
-
function
|
|
2204
|
+
function showStorageRoomOperation(client, companyId, storageRoomId, fields) {
|
|
2205
|
+
return promisify(function ($completion) {
|
|
2206
|
+
return showStorageRoomOperation_0(client, companyId, storageRoomId, fields, $completion);
|
|
2207
|
+
});
|
|
2208
|
+
}
|
|
2209
|
+
function showStorageRoomOperation_0(client, companyId, storageRoomId, fields, $completion) {
|
|
2210
|
+
fields = fields === VOID ? null : fields;
|
|
2211
|
+
var tmp = new $showStorageRoomOperationCOROUTINE$(client, companyId, storageRoomId, fields, $completion);
|
|
2212
|
+
tmp.result_1 = Unit_instance;
|
|
2213
|
+
tmp.exception_1 = null;
|
|
2214
|
+
return tmp.doResume_5yljmg_k$();
|
|
2215
|
+
}
|
|
2216
|
+
function $showStorageRoomOperationCOROUTINE$(client, companyId, storageRoomId, fields, resultContinuation) {
|
|
2157
2217
|
CoroutineImpl.call(this, resultContinuation);
|
|
2158
|
-
this.
|
|
2218
|
+
this.client_1 = client;
|
|
2159
2219
|
this.companyId_1 = companyId;
|
|
2160
2220
|
this.storageRoomId_1 = storageRoomId;
|
|
2161
|
-
this.
|
|
2221
|
+
this.fields_1 = fields;
|
|
2162
2222
|
}
|
|
2163
|
-
protoOf($
|
|
2223
|
+
protoOf($showStorageRoomOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2164
2224
|
var suspendResult = this.result_1;
|
|
2165
2225
|
$sm: do
|
|
2166
2226
|
try {
|
|
@@ -2169,14 +2229,21 @@ protoOf($updateStorageRoomCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
2169
2229
|
case 0:
|
|
2170
2230
|
this.exceptionState_1 = 2;
|
|
2171
2231
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2172
|
-
var localVariableBody =
|
|
2232
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2173
2233
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2234
|
+
if (this.fields_1 == null)
|
|
2235
|
+
null;
|
|
2236
|
+
else {
|
|
2237
|
+
var value = listOf_0(this.fields_1);
|
|
2238
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2174
2241
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2175
|
-
var
|
|
2176
|
-
var
|
|
2177
|
-
var localVariableConfig = new RequestConfig(
|
|
2242
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
2243
|
+
var tmp2_path = replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString());
|
|
2244
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2178
2245
|
this.state_1 = 1;
|
|
2179
|
-
suspendResult = this.
|
|
2246
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2180
2247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2181
2248
|
return suspendResult;
|
|
2182
2249
|
}
|
|
@@ -2215,401 +2282,485 @@ protoOf($updateStorageRoomCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
2215
2282
|
}
|
|
2216
2283
|
while (true);
|
|
2217
2284
|
};
|
|
2218
|
-
function
|
|
2219
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2220
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
2221
|
-
this.companyId_1 = companyId;
|
|
2222
|
-
this.storageRoomId_1 = storageRoomId;
|
|
2223
|
-
this.updateStorageRoomCommand_1 = updateStorageRoomCommand;
|
|
2224
|
-
}
|
|
2225
|
-
protoOf($updateStorageRoom$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2226
|
-
var suspendResult = this.result_1;
|
|
2227
|
-
$sm: do
|
|
2228
|
-
try {
|
|
2229
|
-
var tmp = this.state_1;
|
|
2230
|
-
switch (tmp) {
|
|
2231
|
-
case 0:
|
|
2232
|
-
this.exceptionState_1 = 4;
|
|
2233
|
-
if (this._this__u8e3s4__1.updateStorageRoom === protoOf(StorageApi).updateStorageRoom) {
|
|
2234
|
-
this.state_1 = 2;
|
|
2235
|
-
suspendResult = this._this__u8e3s4__1.updateStorageRoom_corgr7_k$(this.companyId_1, this.storageRoomId_1, this.updateStorageRoomCommand_1, this);
|
|
2236
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2237
|
-
return suspendResult;
|
|
2238
|
-
}
|
|
2239
|
-
continue $sm;
|
|
2240
|
-
} else {
|
|
2241
|
-
this.state_1 = 1;
|
|
2242
|
-
suspendResult = await_0(this._this__u8e3s4__1.updateStorageRoom(this.companyId_1, this.storageRoomId_1, this.updateStorageRoomCommand_1), this);
|
|
2243
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2244
|
-
return suspendResult;
|
|
2245
|
-
}
|
|
2246
|
-
continue $sm;
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
case 1:
|
|
2250
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2251
|
-
this.state_1 = 3;
|
|
2252
|
-
continue $sm;
|
|
2253
|
-
case 2:
|
|
2254
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2255
|
-
this.state_1 = 3;
|
|
2256
|
-
continue $sm;
|
|
2257
|
-
case 3:
|
|
2258
|
-
return this.WHEN_RESULT0__1;
|
|
2259
|
-
case 4:
|
|
2260
|
-
throw this.exception_1;
|
|
2261
|
-
}
|
|
2262
|
-
} catch ($p) {
|
|
2263
|
-
var e = $p;
|
|
2264
|
-
if (this.exceptionState_1 === 4) {
|
|
2265
|
-
throw e;
|
|
2266
|
-
} else {
|
|
2267
|
-
this.state_1 = this.exceptionState_1;
|
|
2268
|
-
this.exception_1 = e;
|
|
2269
|
-
}
|
|
2270
|
-
}
|
|
2271
|
-
while (true);
|
|
2272
|
-
};
|
|
2273
|
-
protoOf(StorageApi).assignStorageRoomToOrganization_q7k6om_k$ = function (companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion) {
|
|
2274
|
-
var tmp = new $assignStorageRoomToOrganizationCOROUTINE$(this, companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
2275
|
-
tmp.result_1 = Unit_instance;
|
|
2276
|
-
tmp.exception_1 = null;
|
|
2277
|
-
return tmp.doResume_5yljmg_k$();
|
|
2278
|
-
};
|
|
2279
|
-
protoOf(StorageApi).assignStorageRoomToOrganization = function (companyId, storageRoomId, organizationId, assignStorageRoomCommand) {
|
|
2280
|
-
var tmp = this;
|
|
2281
|
-
return promisify(function ($completion) {
|
|
2282
|
-
return tmp.assignStorageRoomToOrganization_q7k6om_k$(companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
2283
|
-
});
|
|
2284
|
-
};
|
|
2285
|
-
protoOf(StorageApi).assignStorageRoomToOrganization$suspendBridge_2gh0vf_k$ = function (companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion) {
|
|
2286
|
-
var tmp = new $assignStorageRoomToOrganization$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, organizationId, assignStorageRoomCommand, $completion);
|
|
2287
|
-
tmp.result_1 = Unit_instance;
|
|
2288
|
-
tmp.exception_1 = null;
|
|
2289
|
-
return tmp.doResume_5yljmg_k$();
|
|
2290
|
-
};
|
|
2291
|
-
protoOf(StorageApi).assignStorageRoomToPerson_m9s4dw_k$ = function (companyId, storageRoomId, personId, assignStorageRoomCommand, $completion) {
|
|
2292
|
-
var tmp = new $assignStorageRoomToPersonCOROUTINE$(this, companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
2293
|
-
tmp.result_1 = Unit_instance;
|
|
2294
|
-
tmp.exception_1 = null;
|
|
2295
|
-
return tmp.doResume_5yljmg_k$();
|
|
2296
|
-
};
|
|
2297
|
-
protoOf(StorageApi).assignStorageRoomToPerson = function (companyId, storageRoomId, personId, assignStorageRoomCommand) {
|
|
2298
|
-
var tmp = this;
|
|
2299
|
-
return promisify(function ($completion) {
|
|
2300
|
-
return tmp.assignStorageRoomToPerson_m9s4dw_k$(companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
2301
|
-
});
|
|
2302
|
-
};
|
|
2303
|
-
protoOf(StorageApi).assignStorageRoomToPerson$suspendBridge_5f5zcj_k$ = function (companyId, storageRoomId, personId, assignStorageRoomCommand, $completion) {
|
|
2304
|
-
var tmp = new $assignStorageRoomToPerson$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, personId, assignStorageRoomCommand, $completion);
|
|
2305
|
-
tmp.result_1 = Unit_instance;
|
|
2306
|
-
tmp.exception_1 = null;
|
|
2307
|
-
return tmp.doResume_5yljmg_k$();
|
|
2308
|
-
};
|
|
2309
|
-
protoOf(StorageApi).assignStorageRoomToSection_goueeg_k$ = function (companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion) {
|
|
2310
|
-
var tmp = new $assignStorageRoomToSectionCOROUTINE$(this, companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
2311
|
-
tmp.result_1 = Unit_instance;
|
|
2312
|
-
tmp.exception_1 = null;
|
|
2313
|
-
return tmp.doResume_5yljmg_k$();
|
|
2314
|
-
};
|
|
2315
|
-
protoOf(StorageApi).assignStorageRoomToSection = function (companyId, storageRoomId, sectionId, assignStorageRoomCommand) {
|
|
2316
|
-
var tmp = this;
|
|
2317
|
-
return promisify(function ($completion) {
|
|
2318
|
-
return tmp.assignStorageRoomToSection_goueeg_k$(companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
2319
|
-
});
|
|
2320
|
-
};
|
|
2321
|
-
protoOf(StorageApi).assignStorageRoomToSection$suspendBridge_5ssmef_k$ = function (companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion) {
|
|
2322
|
-
var tmp = new $assignStorageRoomToSection$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, sectionId, assignStorageRoomCommand, $completion);
|
|
2323
|
-
tmp.result_1 = Unit_instance;
|
|
2324
|
-
tmp.exception_1 = null;
|
|
2325
|
-
return tmp.doResume_5yljmg_k$();
|
|
2326
|
-
};
|
|
2327
|
-
protoOf(StorageApi).createStorageRoom_r029k3_k$ = function (companyId, createStorageRoomCommand, $completion) {
|
|
2328
|
-
var tmp = new $createStorageRoomCOROUTINE$(this, companyId, createStorageRoomCommand, $completion);
|
|
2329
|
-
tmp.result_1 = Unit_instance;
|
|
2330
|
-
tmp.exception_1 = null;
|
|
2331
|
-
return tmp.doResume_5yljmg_k$();
|
|
2332
|
-
};
|
|
2333
|
-
protoOf(StorageApi).createStorageRoom = function (companyId, createStorageRoomCommand) {
|
|
2334
|
-
var tmp = this;
|
|
2335
|
-
return promisify(function ($completion) {
|
|
2336
|
-
return tmp.createStorageRoom_r029k3_k$(companyId, createStorageRoomCommand, $completion);
|
|
2337
|
-
});
|
|
2338
|
-
};
|
|
2339
|
-
protoOf(StorageApi).createStorageRoom$suspendBridge_78rflo_k$ = function (companyId, createStorageRoomCommand, $completion) {
|
|
2340
|
-
var tmp = new $createStorageRoom$suspendBridgeCOROUTINE$(this, companyId, createStorageRoomCommand, $completion);
|
|
2341
|
-
tmp.result_1 = Unit_instance;
|
|
2342
|
-
tmp.exception_1 = null;
|
|
2343
|
-
return tmp.doResume_5yljmg_k$();
|
|
2344
|
-
};
|
|
2345
|
-
protoOf(StorageApi).deleteStorageRoom_tqcdkp_k$ = function (companyId, storageRoomId, $completion) {
|
|
2346
|
-
var tmp = new $deleteStorageRoomCOROUTINE$(this, companyId, storageRoomId, $completion);
|
|
2347
|
-
tmp.result_1 = Unit_instance;
|
|
2348
|
-
tmp.exception_1 = null;
|
|
2349
|
-
return tmp.doResume_5yljmg_k$();
|
|
2350
|
-
};
|
|
2351
|
-
protoOf(StorageApi).deleteStorageRoom = function (companyId, storageRoomId) {
|
|
2352
|
-
var tmp = this;
|
|
2353
|
-
return promisify(function ($completion) {
|
|
2354
|
-
return tmp.deleteStorageRoom_tqcdkp_k$(companyId, storageRoomId, $completion);
|
|
2355
|
-
});
|
|
2356
|
-
};
|
|
2357
|
-
protoOf(StorageApi).deleteStorageRoom$suspendBridge_tyrwo_k$ = function (companyId, storageRoomId, $completion) {
|
|
2358
|
-
var tmp = new $deleteStorageRoom$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, $completion);
|
|
2359
|
-
tmp.result_1 = Unit_instance;
|
|
2360
|
-
tmp.exception_1 = null;
|
|
2361
|
-
return tmp.doResume_5yljmg_k$();
|
|
2362
|
-
};
|
|
2363
|
-
protoOf(StorageApi).exportStorageRooms_j0m1jf_k$ = function (companyId, $completion) {
|
|
2364
|
-
var tmp = new $exportStorageRoomsCOROUTINE$(this, companyId, $completion);
|
|
2365
|
-
tmp.result_1 = Unit_instance;
|
|
2366
|
-
tmp.exception_1 = null;
|
|
2367
|
-
return tmp.doResume_5yljmg_k$();
|
|
2368
|
-
};
|
|
2369
|
-
protoOf(StorageApi).exportStorageRooms = function (companyId) {
|
|
2370
|
-
var tmp = this;
|
|
2371
|
-
return promisify(function ($completion) {
|
|
2372
|
-
return tmp.exportStorageRooms_j0m1jf_k$(companyId, $completion);
|
|
2373
|
-
});
|
|
2374
|
-
};
|
|
2375
|
-
protoOf(StorageApi).exportStorageRooms$suspendBridge_kr2uto_k$ = function (companyId, $completion) {
|
|
2376
|
-
var tmp = new $exportStorageRooms$suspendBridgeCOROUTINE$(this, companyId, $completion);
|
|
2377
|
-
tmp.result_1 = Unit_instance;
|
|
2378
|
-
tmp.exception_1 = null;
|
|
2379
|
-
return tmp.doResume_5yljmg_k$();
|
|
2380
|
-
};
|
|
2381
|
-
protoOf(StorageApi).indexStorageRoom_yrdz4m_k$ = function (companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
2382
|
-
var tmp = new $indexStorageRoomCOROUTINE$(this, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2383
|
-
tmp.result_1 = Unit_instance;
|
|
2384
|
-
tmp.exception_1 = null;
|
|
2385
|
-
return tmp.doResume_5yljmg_k$();
|
|
2386
|
-
};
|
|
2387
|
-
protoOf(StorageApi).indexStorageRoom$default_lrb8pn_k$ = function (companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2388
|
-
search = search === VOID ? null : search;
|
|
2389
|
-
assigned = assigned === VOID ? null : assigned;
|
|
2390
|
-
fields = fields === VOID ? null : fields;
|
|
2391
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2392
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2393
|
-
count = count === VOID ? null : count;
|
|
2394
|
-
return $super === VOID ? this.indexStorageRoom_yrdz4m_k$(companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexStorageRoom_yrdz4m_k$.call(this, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2395
|
-
};
|
|
2396
|
-
protoOf(StorageApi).indexStorageRoom = function (companyId, search, assigned, fields, pageToken, autoPaginate, count) {
|
|
2397
|
-
var tmp = this;
|
|
2398
|
-
return promisify(function ($completion) {
|
|
2399
|
-
return tmp.indexStorageRoom$default_lrb8pn_k$(companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2400
|
-
});
|
|
2401
|
-
};
|
|
2402
|
-
protoOf(StorageApi).indexStorageRoom$suspendBridge_hlpc3b_k$ = function (companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
2403
|
-
var tmp = new $indexStorageRoom$suspendBridgeCOROUTINE$(this, companyId, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2404
|
-
tmp.result_1 = Unit_instance;
|
|
2405
|
-
tmp.exception_1 = null;
|
|
2406
|
-
return tmp.doResume_5yljmg_k$();
|
|
2407
|
-
};
|
|
2408
|
-
protoOf(StorageApi).indexStorageRoomsUser_fi19vv_k$ = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
2409
|
-
var tmp = new $indexStorageRoomsUserCOROUTINE$(this, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2410
|
-
tmp.result_1 = Unit_instance;
|
|
2411
|
-
tmp.exception_1 = null;
|
|
2412
|
-
return tmp.doResume_5yljmg_k$();
|
|
2413
|
-
};
|
|
2414
|
-
protoOf(StorageApi).indexStorageRoomsUser$default_lyz231_k$ = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2415
|
-
companyIds = companyIds === VOID ? null : companyIds;
|
|
2416
|
-
search = search === VOID ? null : search;
|
|
2417
|
-
assigned = assigned === VOID ? null : assigned;
|
|
2418
|
-
fields = fields === VOID ? null : fields;
|
|
2419
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2420
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2421
|
-
count = count === VOID ? null : count;
|
|
2422
|
-
return $super === VOID ? this.indexStorageRoomsUser_fi19vv_k$(companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexStorageRoomsUser_fi19vv_k$.call(this, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2423
|
-
};
|
|
2424
|
-
protoOf(StorageApi).indexStorageRoomsUser = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count) {
|
|
2425
|
-
var tmp = this;
|
|
2426
|
-
return promisify(function ($completion) {
|
|
2427
|
-
return tmp.indexStorageRoomsUser$default_lyz231_k$(companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2428
|
-
});
|
|
2429
|
-
};
|
|
2430
|
-
protoOf(StorageApi).indexStorageRoomsUser$suspendBridge_dq6snq_k$ = function (companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion) {
|
|
2431
|
-
var tmp = new $indexStorageRoomsUser$suspendBridgeCOROUTINE$(this, companyIds, search, assigned, fields, pageToken, autoPaginate, count, $completion);
|
|
2432
|
-
tmp.result_1 = Unit_instance;
|
|
2433
|
-
tmp.exception_1 = null;
|
|
2434
|
-
return tmp.doResume_5yljmg_k$();
|
|
2435
|
-
};
|
|
2436
|
-
protoOf(StorageApi).listVacantStorageRooms_i9bgdk_k$ = function (companyId, searchDate, fields, $completion) {
|
|
2437
|
-
var tmp = new $listVacantStorageRoomsCOROUTINE$(this, companyId, searchDate, fields, $completion);
|
|
2438
|
-
tmp.result_1 = Unit_instance;
|
|
2439
|
-
tmp.exception_1 = null;
|
|
2440
|
-
return tmp.doResume_5yljmg_k$();
|
|
2441
|
-
};
|
|
2442
|
-
protoOf(StorageApi).listVacantStorageRooms$default_62w6wj_k$ = function (companyId, searchDate, fields, $completion, $super) {
|
|
2443
|
-
searchDate = searchDate === VOID ? null : searchDate;
|
|
2444
|
-
fields = fields === VOID ? null : fields;
|
|
2445
|
-
return $super === VOID ? this.listVacantStorageRooms_i9bgdk_k$(companyId, searchDate, fields, $completion) : $super.listVacantStorageRooms_i9bgdk_k$.call(this, companyId, searchDate, fields, $completion);
|
|
2446
|
-
};
|
|
2447
|
-
protoOf(StorageApi).listVacantStorageRooms = function (companyId, searchDate, fields) {
|
|
2448
|
-
var tmp = this;
|
|
2285
|
+
function storageRoomAllocationOverviewOperation(client, companyId, searchDate, fields) {
|
|
2449
2286
|
return promisify(function ($completion) {
|
|
2450
|
-
return
|
|
2287
|
+
return storageRoomAllocationOverviewOperation_0(client, companyId, searchDate, fields, $completion);
|
|
2451
2288
|
});
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
tmp
|
|
2457
|
-
return tmp.doResume_5yljmg_k$();
|
|
2458
|
-
};
|
|
2459
|
-
protoOf(StorageApi).showStorageRoom_fjvej5_k$ = function (companyId, storageRoomId, fields, $completion) {
|
|
2460
|
-
var tmp = new $showStorageRoomCOROUTINE$(this, companyId, storageRoomId, fields, $completion);
|
|
2289
|
+
}
|
|
2290
|
+
function storageRoomAllocationOverviewOperation_0(client, companyId, searchDate, fields, $completion) {
|
|
2291
|
+
searchDate = searchDate === VOID ? null : searchDate;
|
|
2292
|
+
fields = fields === VOID ? null : fields;
|
|
2293
|
+
var tmp = new $storageRoomAllocationOverviewOperationCOROUTINE$(client, companyId, searchDate, fields, $completion);
|
|
2461
2294
|
tmp.result_1 = Unit_instance;
|
|
2462
2295
|
tmp.exception_1 = null;
|
|
2463
2296
|
return tmp.doResume_5yljmg_k$();
|
|
2297
|
+
}
|
|
2298
|
+
function $storageRoomAllocationOverviewOperationCOROUTINE$(client, companyId, searchDate, fields, resultContinuation) {
|
|
2299
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2300
|
+
this.client_1 = client;
|
|
2301
|
+
this.companyId_1 = companyId;
|
|
2302
|
+
this.searchDate_1 = searchDate;
|
|
2303
|
+
this.fields_1 = fields;
|
|
2304
|
+
}
|
|
2305
|
+
protoOf($storageRoomAllocationOverviewOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2306
|
+
var suspendResult = this.result_1;
|
|
2307
|
+
$sm: do
|
|
2308
|
+
try {
|
|
2309
|
+
var tmp = this.state_1;
|
|
2310
|
+
switch (tmp) {
|
|
2311
|
+
case 0:
|
|
2312
|
+
this.exceptionState_1 = 2;
|
|
2313
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2314
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2315
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2316
|
+
if (this.searchDate_1 == null)
|
|
2317
|
+
null;
|
|
2318
|
+
else {
|
|
2319
|
+
var tmp2 = 'searchDate';
|
|
2320
|
+
var value = listOf_0(this.searchDate_1.toString());
|
|
2321
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
if (this.fields_1 == null)
|
|
2325
|
+
null;
|
|
2326
|
+
else {
|
|
2327
|
+
var value_0 = listOf_0(this.fields_1);
|
|
2328
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2332
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
2333
|
+
var tmp3_path = replace('/companies/{companyId}/storageRooms/allocations', '{companyId}', this.companyId_1.toString());
|
|
2334
|
+
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2335
|
+
this.state_1 = 1;
|
|
2336
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2337
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2338
|
+
return suspendResult;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
continue $sm;
|
|
2342
|
+
case 1:
|
|
2343
|
+
var this_0 = suspendResult;
|
|
2344
|
+
var tmp_0 = getKClass(StorageRoomAllocationOverview);
|
|
2345
|
+
var tmp_1 = null instanceof StorageRoomAllocationOverview;
|
|
2346
|
+
var tmp_2;
|
|
2347
|
+
try {
|
|
2348
|
+
tmp_2 = createKType(getKClass(StorageRoomAllocationOverview), arrayOf([]), false);
|
|
2349
|
+
} catch ($p) {
|
|
2350
|
+
var tmp_3;
|
|
2351
|
+
if ($p instanceof Error) {
|
|
2352
|
+
var _unused_var__etf5q3 = $p;
|
|
2353
|
+
tmp_3 = null;
|
|
2354
|
+
} else {
|
|
2355
|
+
throw $p;
|
|
2356
|
+
}
|
|
2357
|
+
tmp_2 = tmp_3;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2361
|
+
case 2:
|
|
2362
|
+
throw this.exception_1;
|
|
2363
|
+
}
|
|
2364
|
+
} catch ($p_0) {
|
|
2365
|
+
var e = $p_0;
|
|
2366
|
+
if (this.exceptionState_1 === 2) {
|
|
2367
|
+
throw e;
|
|
2368
|
+
} else {
|
|
2369
|
+
this.state_1 = this.exceptionState_1;
|
|
2370
|
+
this.exception_1 = e;
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
while (true);
|
|
2464
2374
|
};
|
|
2465
|
-
|
|
2466
|
-
fields = fields === VOID ? null : fields;
|
|
2467
|
-
return $super === VOID ? this.showStorageRoom_fjvej5_k$(companyId, storageRoomId, fields, $completion) : $super.showStorageRoom_fjvej5_k$.call(this, companyId, storageRoomId, fields, $completion);
|
|
2468
|
-
};
|
|
2469
|
-
protoOf(StorageApi).showStorageRoom = function (companyId, storageRoomId, fields) {
|
|
2470
|
-
var tmp = this;
|
|
2375
|
+
function storageRoomVacancyOperation(client, companyId, storageRoomId, searchDate, fields) {
|
|
2471
2376
|
return promisify(function ($completion) {
|
|
2472
|
-
return
|
|
2377
|
+
return storageRoomVacancyOperation_0(client, companyId, storageRoomId, searchDate, fields, $completion);
|
|
2473
2378
|
});
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
var tmp = new $showStorageRoom$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, fields, $completion);
|
|
2477
|
-
tmp.result_1 = Unit_instance;
|
|
2478
|
-
tmp.exception_1 = null;
|
|
2479
|
-
return tmp.doResume_5yljmg_k$();
|
|
2480
|
-
};
|
|
2481
|
-
protoOf(StorageApi).storageRoomAllocationOverview_iq9fcx_k$ = function (companyId, searchDate, fields, $completion) {
|
|
2482
|
-
var tmp = new $storageRoomAllocationOverviewCOROUTINE$(this, companyId, searchDate, fields, $completion);
|
|
2483
|
-
tmp.result_1 = Unit_instance;
|
|
2484
|
-
tmp.exception_1 = null;
|
|
2485
|
-
return tmp.doResume_5yljmg_k$();
|
|
2486
|
-
};
|
|
2487
|
-
protoOf(StorageApi).storageRoomAllocationOverview$default_2ybare_k$ = function (companyId, searchDate, fields, $completion, $super) {
|
|
2379
|
+
}
|
|
2380
|
+
function storageRoomVacancyOperation_0(client, companyId, storageRoomId, searchDate, fields, $completion) {
|
|
2488
2381
|
searchDate = searchDate === VOID ? null : searchDate;
|
|
2489
2382
|
fields = fields === VOID ? null : fields;
|
|
2490
|
-
|
|
2491
|
-
};
|
|
2492
|
-
protoOf(StorageApi).storageRoomAllocationOverview = function (companyId, searchDate, fields) {
|
|
2493
|
-
var tmp = this;
|
|
2494
|
-
return promisify(function ($completion) {
|
|
2495
|
-
return tmp.storageRoomAllocationOverview$default_2ybare_k$(companyId, searchDate, fields, $completion);
|
|
2496
|
-
});
|
|
2497
|
-
};
|
|
2498
|
-
protoOf(StorageApi).storageRoomAllocationOverview$suspendBridge_pmjs02_k$ = function (companyId, searchDate, fields, $completion) {
|
|
2499
|
-
var tmp = new $storageRoomAllocationOverview$suspendBridgeCOROUTINE$(this, companyId, searchDate, fields, $completion);
|
|
2383
|
+
var tmp = new $storageRoomVacancyOperationCOROUTINE$(client, companyId, storageRoomId, searchDate, fields, $completion);
|
|
2500
2384
|
tmp.result_1 = Unit_instance;
|
|
2501
2385
|
tmp.exception_1 = null;
|
|
2502
2386
|
return tmp.doResume_5yljmg_k$();
|
|
2387
|
+
}
|
|
2388
|
+
function $storageRoomVacancyOperationCOROUTINE$(client, companyId, storageRoomId, searchDate, fields, resultContinuation) {
|
|
2389
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2390
|
+
this.client_1 = client;
|
|
2391
|
+
this.companyId_1 = companyId;
|
|
2392
|
+
this.storageRoomId_1 = storageRoomId;
|
|
2393
|
+
this.searchDate_1 = searchDate;
|
|
2394
|
+
this.fields_1 = fields;
|
|
2395
|
+
}
|
|
2396
|
+
protoOf($storageRoomVacancyOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2397
|
+
var suspendResult = this.result_1;
|
|
2398
|
+
$sm: do
|
|
2399
|
+
try {
|
|
2400
|
+
var tmp = this.state_1;
|
|
2401
|
+
switch (tmp) {
|
|
2402
|
+
case 0:
|
|
2403
|
+
this.exceptionState_1 = 2;
|
|
2404
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2405
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2406
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2407
|
+
if (this.searchDate_1 == null)
|
|
2408
|
+
null;
|
|
2409
|
+
else {
|
|
2410
|
+
var tmp2 = 'searchDate';
|
|
2411
|
+
var value = listOf_0(this.searchDate_1.toString());
|
|
2412
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
if (this.fields_1 == null)
|
|
2416
|
+
null;
|
|
2417
|
+
else {
|
|
2418
|
+
var value_0 = listOf_0(this.fields_1);
|
|
2419
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2423
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
2424
|
+
var tmp3_path = replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/vacancy', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString());
|
|
2425
|
+
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2426
|
+
this.state_1 = 1;
|
|
2427
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2428
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2429
|
+
return suspendResult;
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
continue $sm;
|
|
2433
|
+
case 1:
|
|
2434
|
+
var this_0 = suspendResult;
|
|
2435
|
+
var tmp_0 = getKClass(StorageRoomVacancy);
|
|
2436
|
+
var tmp_1 = null instanceof StorageRoomVacancy;
|
|
2437
|
+
var tmp_2;
|
|
2438
|
+
try {
|
|
2439
|
+
tmp_2 = createKType(getKClass(StorageRoomVacancy), arrayOf([]), false);
|
|
2440
|
+
} catch ($p) {
|
|
2441
|
+
var tmp_3;
|
|
2442
|
+
if ($p instanceof Error) {
|
|
2443
|
+
var _unused_var__etf5q3 = $p;
|
|
2444
|
+
tmp_3 = null;
|
|
2445
|
+
} else {
|
|
2446
|
+
throw $p;
|
|
2447
|
+
}
|
|
2448
|
+
tmp_2 = tmp_3;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2452
|
+
case 2:
|
|
2453
|
+
throw this.exception_1;
|
|
2454
|
+
}
|
|
2455
|
+
} catch ($p_0) {
|
|
2456
|
+
var e = $p_0;
|
|
2457
|
+
if (this.exceptionState_1 === 2) {
|
|
2458
|
+
throw e;
|
|
2459
|
+
} else {
|
|
2460
|
+
this.state_1 = this.exceptionState_1;
|
|
2461
|
+
this.exception_1 = e;
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
while (true);
|
|
2503
2465
|
};
|
|
2504
|
-
|
|
2505
|
-
|
|
2466
|
+
function unAssignStorageRoomToOrganizationOperation(client, companyId, storageRoomId, organizationId, unassignStorageRoomCommand) {
|
|
2467
|
+
return promisify(function ($completion) {
|
|
2468
|
+
return unAssignStorageRoomToOrganizationOperation_0(client, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
function unAssignStorageRoomToOrganizationOperation_0(client, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion) {
|
|
2472
|
+
unassignStorageRoomCommand = unassignStorageRoomCommand === VOID ? null : unassignStorageRoomCommand;
|
|
2473
|
+
var tmp = new $unAssignStorageRoomToOrganizationOperationCOROUTINE$(client, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
2506
2474
|
tmp.result_1 = Unit_instance;
|
|
2507
2475
|
tmp.exception_1 = null;
|
|
2508
2476
|
return tmp.doResume_5yljmg_k$();
|
|
2477
|
+
}
|
|
2478
|
+
function $unAssignStorageRoomToOrganizationOperationCOROUTINE$(client, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, resultContinuation) {
|
|
2479
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2480
|
+
this.client_1 = client;
|
|
2481
|
+
this.companyId_1 = companyId;
|
|
2482
|
+
this.storageRoomId_1 = storageRoomId;
|
|
2483
|
+
this.organizationId_1 = organizationId;
|
|
2484
|
+
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
2485
|
+
}
|
|
2486
|
+
protoOf($unAssignStorageRoomToOrganizationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2487
|
+
var suspendResult = this.result_1;
|
|
2488
|
+
$sm: do
|
|
2489
|
+
try {
|
|
2490
|
+
var tmp = this.state_1;
|
|
2491
|
+
switch (tmp) {
|
|
2492
|
+
case 0:
|
|
2493
|
+
this.exceptionState_1 = 2;
|
|
2494
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2495
|
+
var localVariableBody = this.unassignStorageRoomCommand_1;
|
|
2496
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2497
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2498
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
2499
|
+
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{organizationId}', this.organizationId_1.toString());
|
|
2500
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2501
|
+
this.state_1 = 1;
|
|
2502
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2503
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2504
|
+
return suspendResult;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
continue $sm;
|
|
2508
|
+
case 1:
|
|
2509
|
+
var this_0 = suspendResult;
|
|
2510
|
+
var tmp_0 = getKClass(Unit);
|
|
2511
|
+
var tmp_1 = null instanceof Unit;
|
|
2512
|
+
var tmp_2;
|
|
2513
|
+
try {
|
|
2514
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2515
|
+
} catch ($p) {
|
|
2516
|
+
var tmp_3;
|
|
2517
|
+
if ($p instanceof Error) {
|
|
2518
|
+
var _unused_var__etf5q3 = $p;
|
|
2519
|
+
tmp_3 = null;
|
|
2520
|
+
} else {
|
|
2521
|
+
throw $p;
|
|
2522
|
+
}
|
|
2523
|
+
tmp_2 = tmp_3;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2527
|
+
case 2:
|
|
2528
|
+
throw this.exception_1;
|
|
2529
|
+
}
|
|
2530
|
+
} catch ($p_0) {
|
|
2531
|
+
var e = $p_0;
|
|
2532
|
+
if (this.exceptionState_1 === 2) {
|
|
2533
|
+
throw e;
|
|
2534
|
+
} else {
|
|
2535
|
+
this.state_1 = this.exceptionState_1;
|
|
2536
|
+
this.exception_1 = e;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
while (true);
|
|
2509
2540
|
};
|
|
2510
|
-
|
|
2511
|
-
searchDate = searchDate === VOID ? null : searchDate;
|
|
2512
|
-
fields = fields === VOID ? null : fields;
|
|
2513
|
-
return $super === VOID ? this.storageRoomVacancy_dmxchr_k$(companyId, storageRoomId, searchDate, fields, $completion) : $super.storageRoomVacancy_dmxchr_k$.call(this, companyId, storageRoomId, searchDate, fields, $completion);
|
|
2514
|
-
};
|
|
2515
|
-
protoOf(StorageApi).storageRoomVacancy = function (companyId, storageRoomId, searchDate, fields) {
|
|
2516
|
-
var tmp = this;
|
|
2541
|
+
function unAssignStorageRoomToPersonOperation(client, companyId, storageRoomId, personId, unassignStorageRoomCommand) {
|
|
2517
2542
|
return promisify(function ($completion) {
|
|
2518
|
-
return
|
|
2543
|
+
return unAssignStorageRoomToPersonOperation_0(client, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
2519
2544
|
});
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
var tmp = new $storageRoomVacancy$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, searchDate, fields, $completion);
|
|
2523
|
-
tmp.result_1 = Unit_instance;
|
|
2524
|
-
tmp.exception_1 = null;
|
|
2525
|
-
return tmp.doResume_5yljmg_k$();
|
|
2526
|
-
};
|
|
2527
|
-
protoOf(StorageApi).unAssignStorageRoomToOrganization_cvco9z_k$ = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion) {
|
|
2528
|
-
var tmp = new $unAssignStorageRoomToOrganizationCOROUTINE$(this, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
2529
|
-
tmp.result_1 = Unit_instance;
|
|
2530
|
-
tmp.exception_1 = null;
|
|
2531
|
-
return tmp.doResume_5yljmg_k$();
|
|
2532
|
-
};
|
|
2533
|
-
protoOf(StorageApi).unAssignStorageRoomToOrganization$default_4jf7o7_k$ = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion, $super) {
|
|
2545
|
+
}
|
|
2546
|
+
function unAssignStorageRoomToPersonOperation_0(client, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion) {
|
|
2534
2547
|
unassignStorageRoomCommand = unassignStorageRoomCommand === VOID ? null : unassignStorageRoomCommand;
|
|
2535
|
-
|
|
2536
|
-
};
|
|
2537
|
-
protoOf(StorageApi).unAssignStorageRoomToOrganization = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand) {
|
|
2538
|
-
var tmp = this;
|
|
2539
|
-
return promisify(function ($completion) {
|
|
2540
|
-
return tmp.unAssignStorageRoomToOrganization$default_4jf7o7_k$(companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
2541
|
-
});
|
|
2542
|
-
};
|
|
2543
|
-
protoOf(StorageApi).unAssignStorageRoomToOrganization$suspendBridge_ix0jra_k$ = function (companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion) {
|
|
2544
|
-
var tmp = new $unAssignStorageRoomToOrganization$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, organizationId, unassignStorageRoomCommand, $completion);
|
|
2545
|
-
tmp.result_1 = Unit_instance;
|
|
2546
|
-
tmp.exception_1 = null;
|
|
2547
|
-
return tmp.doResume_5yljmg_k$();
|
|
2548
|
-
};
|
|
2549
|
-
protoOf(StorageApi).unAssignStorageRoomToPerson_bu1cqt_k$ = function (companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion) {
|
|
2550
|
-
var tmp = new $unAssignStorageRoomToPersonCOROUTINE$(this, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
2548
|
+
var tmp = new $unAssignStorageRoomToPersonOperationCOROUTINE$(client, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
2551
2549
|
tmp.result_1 = Unit_instance;
|
|
2552
2550
|
tmp.exception_1 = null;
|
|
2553
2551
|
return tmp.doResume_5yljmg_k$();
|
|
2552
|
+
}
|
|
2553
|
+
function $unAssignStorageRoomToPersonOperationCOROUTINE$(client, companyId, storageRoomId, personId, unassignStorageRoomCommand, resultContinuation) {
|
|
2554
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2555
|
+
this.client_1 = client;
|
|
2556
|
+
this.companyId_1 = companyId;
|
|
2557
|
+
this.storageRoomId_1 = storageRoomId;
|
|
2558
|
+
this.personId_1 = personId;
|
|
2559
|
+
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
2560
|
+
}
|
|
2561
|
+
protoOf($unAssignStorageRoomToPersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2562
|
+
var suspendResult = this.result_1;
|
|
2563
|
+
$sm: do
|
|
2564
|
+
try {
|
|
2565
|
+
var tmp = this.state_1;
|
|
2566
|
+
switch (tmp) {
|
|
2567
|
+
case 0:
|
|
2568
|
+
this.exceptionState_1 = 2;
|
|
2569
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2570
|
+
var localVariableBody = this.unassignStorageRoomCommand_1;
|
|
2571
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2572
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2573
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
2574
|
+
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{personId}', this.personId_1.toString());
|
|
2575
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2576
|
+
this.state_1 = 1;
|
|
2577
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2578
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2579
|
+
return suspendResult;
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
continue $sm;
|
|
2583
|
+
case 1:
|
|
2584
|
+
var this_0 = suspendResult;
|
|
2585
|
+
var tmp_0 = getKClass(Unit);
|
|
2586
|
+
var tmp_1 = null instanceof Unit;
|
|
2587
|
+
var tmp_2;
|
|
2588
|
+
try {
|
|
2589
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2590
|
+
} catch ($p) {
|
|
2591
|
+
var tmp_3;
|
|
2592
|
+
if ($p instanceof Error) {
|
|
2593
|
+
var _unused_var__etf5q3 = $p;
|
|
2594
|
+
tmp_3 = null;
|
|
2595
|
+
} else {
|
|
2596
|
+
throw $p;
|
|
2597
|
+
}
|
|
2598
|
+
tmp_2 = tmp_3;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2602
|
+
case 2:
|
|
2603
|
+
throw this.exception_1;
|
|
2604
|
+
}
|
|
2605
|
+
} catch ($p_0) {
|
|
2606
|
+
var e = $p_0;
|
|
2607
|
+
if (this.exceptionState_1 === 2) {
|
|
2608
|
+
throw e;
|
|
2609
|
+
} else {
|
|
2610
|
+
this.state_1 = this.exceptionState_1;
|
|
2611
|
+
this.exception_1 = e;
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
while (true);
|
|
2554
2615
|
};
|
|
2555
|
-
|
|
2556
|
-
unassignStorageRoomCommand = unassignStorageRoomCommand === VOID ? null : unassignStorageRoomCommand;
|
|
2557
|
-
return $super === VOID ? this.unAssignStorageRoomToPerson_bu1cqt_k$(companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion) : $super.unAssignStorageRoomToPerson_bu1cqt_k$.call(this, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
2558
|
-
};
|
|
2559
|
-
protoOf(StorageApi).unAssignStorageRoomToPerson = function (companyId, storageRoomId, personId, unassignStorageRoomCommand) {
|
|
2560
|
-
var tmp = this;
|
|
2616
|
+
function unAssignStorageRoomToSectionOperation(client, companyId, storageRoomId, sectionId, unassignStorageRoomCommand) {
|
|
2561
2617
|
return promisify(function ($completion) {
|
|
2562
|
-
return
|
|
2618
|
+
return unAssignStorageRoomToSectionOperation_0(client, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
2563
2619
|
});
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
var tmp = new $unAssignStorageRoomToPerson$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, personId, unassignStorageRoomCommand, $completion);
|
|
2567
|
-
tmp.result_1 = Unit_instance;
|
|
2568
|
-
tmp.exception_1 = null;
|
|
2569
|
-
return tmp.doResume_5yljmg_k$();
|
|
2570
|
-
};
|
|
2571
|
-
protoOf(StorageApi).unAssignStorageRoomToSection_ulyjhj_k$ = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion) {
|
|
2572
|
-
var tmp = new $unAssignStorageRoomToSectionCOROUTINE$(this, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
2573
|
-
tmp.result_1 = Unit_instance;
|
|
2574
|
-
tmp.exception_1 = null;
|
|
2575
|
-
return tmp.doResume_5yljmg_k$();
|
|
2576
|
-
};
|
|
2577
|
-
protoOf(StorageApi).unAssignStorageRoomToSection$default_4z5wo9_k$ = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion, $super) {
|
|
2620
|
+
}
|
|
2621
|
+
function unAssignStorageRoomToSectionOperation_0(client, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion) {
|
|
2578
2622
|
unassignStorageRoomCommand = unassignStorageRoomCommand === VOID ? null : unassignStorageRoomCommand;
|
|
2579
|
-
|
|
2580
|
-
};
|
|
2581
|
-
protoOf(StorageApi).unAssignStorageRoomToSection = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand) {
|
|
2582
|
-
var tmp = this;
|
|
2583
|
-
return promisify(function ($completion) {
|
|
2584
|
-
return tmp.unAssignStorageRoomToSection$default_4z5wo9_k$(companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
2585
|
-
});
|
|
2586
|
-
};
|
|
2587
|
-
protoOf(StorageApi).unAssignStorageRoomToSection$suspendBridge_560bei_k$ = function (companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion) {
|
|
2588
|
-
var tmp = new $unAssignStorageRoomToSection$suspendBridgeCOROUTINE$(this, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
2589
|
-
tmp.result_1 = Unit_instance;
|
|
2590
|
-
tmp.exception_1 = null;
|
|
2591
|
-
return tmp.doResume_5yljmg_k$();
|
|
2592
|
-
};
|
|
2593
|
-
protoOf(StorageApi).updateStorageRoom_corgr7_k$ = function (companyId, storageRoomId, updateStorageRoomCommand, $completion) {
|
|
2594
|
-
var tmp = new $updateStorageRoomCOROUTINE$(this, companyId, storageRoomId, updateStorageRoomCommand, $completion);
|
|
2623
|
+
var tmp = new $unAssignStorageRoomToSectionOperationCOROUTINE$(client, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, $completion);
|
|
2595
2624
|
tmp.result_1 = Unit_instance;
|
|
2596
2625
|
tmp.exception_1 = null;
|
|
2597
2626
|
return tmp.doResume_5yljmg_k$();
|
|
2627
|
+
}
|
|
2628
|
+
function $unAssignStorageRoomToSectionOperationCOROUTINE$(client, companyId, storageRoomId, sectionId, unassignStorageRoomCommand, resultContinuation) {
|
|
2629
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2630
|
+
this.client_1 = client;
|
|
2631
|
+
this.companyId_1 = companyId;
|
|
2632
|
+
this.storageRoomId_1 = storageRoomId;
|
|
2633
|
+
this.sectionId_1 = sectionId;
|
|
2634
|
+
this.unassignStorageRoomCommand_1 = unassignStorageRoomCommand;
|
|
2635
|
+
}
|
|
2636
|
+
protoOf($unAssignStorageRoomToSectionOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2637
|
+
var suspendResult = this.result_1;
|
|
2638
|
+
$sm: do
|
|
2639
|
+
try {
|
|
2640
|
+
var tmp = this.state_1;
|
|
2641
|
+
switch (tmp) {
|
|
2642
|
+
case 0:
|
|
2643
|
+
this.exceptionState_1 = 2;
|
|
2644
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2645
|
+
var localVariableBody = this.unassignStorageRoomCommand_1;
|
|
2646
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2647
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2648
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
2649
|
+
var tmp1_path = replace(replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}/assign/section/{sectionId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString()), '{sectionId}', this.sectionId_1.toString());
|
|
2650
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2651
|
+
this.state_1 = 1;
|
|
2652
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2653
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2654
|
+
return suspendResult;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
continue $sm;
|
|
2658
|
+
case 1:
|
|
2659
|
+
var this_0 = suspendResult;
|
|
2660
|
+
var tmp_0 = getKClass(Unit);
|
|
2661
|
+
var tmp_1 = null instanceof Unit;
|
|
2662
|
+
var tmp_2;
|
|
2663
|
+
try {
|
|
2664
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2665
|
+
} catch ($p) {
|
|
2666
|
+
var tmp_3;
|
|
2667
|
+
if ($p instanceof Error) {
|
|
2668
|
+
var _unused_var__etf5q3 = $p;
|
|
2669
|
+
tmp_3 = null;
|
|
2670
|
+
} else {
|
|
2671
|
+
throw $p;
|
|
2672
|
+
}
|
|
2673
|
+
tmp_2 = tmp_3;
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2677
|
+
case 2:
|
|
2678
|
+
throw this.exception_1;
|
|
2679
|
+
}
|
|
2680
|
+
} catch ($p_0) {
|
|
2681
|
+
var e = $p_0;
|
|
2682
|
+
if (this.exceptionState_1 === 2) {
|
|
2683
|
+
throw e;
|
|
2684
|
+
} else {
|
|
2685
|
+
this.state_1 = this.exceptionState_1;
|
|
2686
|
+
this.exception_1 = e;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
while (true);
|
|
2598
2690
|
};
|
|
2599
|
-
|
|
2600
|
-
var tmp = this;
|
|
2691
|
+
function updateStorageRoomOperation(client, companyId, storageRoomId, updateStorageRoomCommand) {
|
|
2601
2692
|
return promisify(function ($completion) {
|
|
2602
|
-
return
|
|
2693
|
+
return updateStorageRoomOperation_0(client, companyId, storageRoomId, updateStorageRoomCommand, $completion);
|
|
2603
2694
|
});
|
|
2604
|
-
}
|
|
2605
|
-
|
|
2606
|
-
var tmp = new $
|
|
2695
|
+
}
|
|
2696
|
+
function updateStorageRoomOperation_0(client, companyId, storageRoomId, updateStorageRoomCommand, $completion) {
|
|
2697
|
+
var tmp = new $updateStorageRoomOperationCOROUTINE$(client, companyId, storageRoomId, updateStorageRoomCommand, $completion);
|
|
2607
2698
|
tmp.result_1 = Unit_instance;
|
|
2608
2699
|
tmp.exception_1 = null;
|
|
2609
2700
|
return tmp.doResume_5yljmg_k$();
|
|
2610
|
-
};
|
|
2611
|
-
function StorageApi() {
|
|
2612
2701
|
}
|
|
2702
|
+
function $updateStorageRoomOperationCOROUTINE$(client, companyId, storageRoomId, updateStorageRoomCommand, resultContinuation) {
|
|
2703
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2704
|
+
this.client_1 = client;
|
|
2705
|
+
this.companyId_1 = companyId;
|
|
2706
|
+
this.storageRoomId_1 = storageRoomId;
|
|
2707
|
+
this.updateStorageRoomCommand_1 = updateStorageRoomCommand;
|
|
2708
|
+
}
|
|
2709
|
+
protoOf($updateStorageRoomOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2710
|
+
var suspendResult = this.result_1;
|
|
2711
|
+
$sm: do
|
|
2712
|
+
try {
|
|
2713
|
+
var tmp = this.state_1;
|
|
2714
|
+
switch (tmp) {
|
|
2715
|
+
case 0:
|
|
2716
|
+
this.exceptionState_1 = 2;
|
|
2717
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2718
|
+
var localVariableBody = this.updateStorageRoomCommand_1;
|
|
2719
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2720
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2721
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2722
|
+
var tmp1_path = replace(replace('/companies/{companyId}/storageRooms/{storageRoomId}', '{companyId}', this.companyId_1.toString()), '{storageRoomId}', this.storageRoomId_1.toString());
|
|
2723
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2724
|
+
this.state_1 = 1;
|
|
2725
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2726
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2727
|
+
return suspendResult;
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
continue $sm;
|
|
2731
|
+
case 1:
|
|
2732
|
+
var this_0 = suspendResult;
|
|
2733
|
+
var tmp_0 = getKClass(StorageRoom);
|
|
2734
|
+
var tmp_1 = null instanceof StorageRoom;
|
|
2735
|
+
var tmp_2;
|
|
2736
|
+
try {
|
|
2737
|
+
tmp_2 = createKType(getKClass(StorageRoom), arrayOf([]), false);
|
|
2738
|
+
} catch ($p) {
|
|
2739
|
+
var tmp_3;
|
|
2740
|
+
if ($p instanceof Error) {
|
|
2741
|
+
var _unused_var__etf5q3 = $p;
|
|
2742
|
+
tmp_3 = null;
|
|
2743
|
+
} else {
|
|
2744
|
+
throw $p;
|
|
2745
|
+
}
|
|
2746
|
+
tmp_2 = tmp_3;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2750
|
+
case 2:
|
|
2751
|
+
throw this.exception_1;
|
|
2752
|
+
}
|
|
2753
|
+
} catch ($p_0) {
|
|
2754
|
+
var e = $p_0;
|
|
2755
|
+
if (this.exceptionState_1 === 2) {
|
|
2756
|
+
throw e;
|
|
2757
|
+
} else {
|
|
2758
|
+
this.state_1 = this.exceptionState_1;
|
|
2759
|
+
this.exception_1 = e;
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
while (true);
|
|
2763
|
+
};
|
|
2613
2764
|
function Companion_0() {
|
|
2614
2765
|
}
|
|
2615
2766
|
var Companion_instance_1;
|
|
@@ -4810,6 +4961,22 @@ defineProp(StorageRoomOwnerType, 'Companion', Companion_getInstance_8, VOID, tru
|
|
|
4810
4961
|
export {
|
|
4811
4962
|
storageApi as storageApi,
|
|
4812
4963
|
StorageApi as StorageApi,
|
|
4964
|
+
assignStorageRoomToOrganizationOperation as assignStorageRoomToOrganizationOperation,
|
|
4965
|
+
assignStorageRoomToPersonOperation as assignStorageRoomToPersonOperation,
|
|
4966
|
+
assignStorageRoomToSectionOperation as assignStorageRoomToSectionOperation,
|
|
4967
|
+
createStorageRoomOperation as createStorageRoomOperation,
|
|
4968
|
+
deleteStorageRoomOperation as deleteStorageRoomOperation,
|
|
4969
|
+
exportStorageRoomsOperation as exportStorageRoomsOperation,
|
|
4970
|
+
indexStorageRoomOperation as indexStorageRoomOperation,
|
|
4971
|
+
indexStorageRoomsUserOperation as indexStorageRoomsUserOperation,
|
|
4972
|
+
listVacantStorageRoomsOperation as listVacantStorageRoomsOperation,
|
|
4973
|
+
showStorageRoomOperation as showStorageRoomOperation,
|
|
4974
|
+
storageRoomAllocationOverviewOperation as storageRoomAllocationOverviewOperation,
|
|
4975
|
+
storageRoomVacancyOperation as storageRoomVacancyOperation,
|
|
4976
|
+
unAssignStorageRoomToOrganizationOperation as unAssignStorageRoomToOrganizationOperation,
|
|
4977
|
+
unAssignStorageRoomToPersonOperation as unAssignStorageRoomToPersonOperation,
|
|
4978
|
+
unAssignStorageRoomToSectionOperation as unAssignStorageRoomToSectionOperation,
|
|
4979
|
+
updateStorageRoomOperation as updateStorageRoomOperation,
|
|
4813
4980
|
AssignStorageRoomCommand as AssignStorageRoomCommand,
|
|
4814
4981
|
CreateStorageRoomCommand as CreateStorageRoomCommand,
|
|
4815
4982
|
PagedListStorageRoom as PagedListStorageRoom,
|