munchies-user-service-shared 0.11.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.
@@ -0,0 +1,583 @@
1
+ (function (_, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var protoOf = kotlin_kotlin.$_$.i;
6
+ var VOID = kotlin_kotlin.$_$.a;
7
+ var getStringHashCode = kotlin_kotlin.$_$.f;
8
+ var THROW_CCE = kotlin_kotlin.$_$.m;
9
+ var classMeta = kotlin_kotlin.$_$.d;
10
+ var setMetadataFor = kotlin_kotlin.$_$.j;
11
+ var isBlank = kotlin_kotlin.$_$.l;
12
+ var charSequenceLength = kotlin_kotlin.$_$.c;
13
+ var toString = kotlin_kotlin.$_$.k;
14
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b;
15
+ var objectMeta = kotlin_kotlin.$_$.h;
16
+ var defineProp = kotlin_kotlin.$_$.e;
17
+ var interfaceMeta = kotlin_kotlin.$_$.g;
18
+ //endregion
19
+ //region block: pre-declaration
20
+ setMetadataFor(UserDTO, 'UserDTO', classMeta);
21
+ setMetadataFor(Companion, 'Companion', objectMeta);
22
+ setMetadataFor(LoginUserRequest, 'LoginUserRequest', classMeta);
23
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
24
+ setMetadataFor(RegisterUserRequest, 'RegisterUserRequest', classMeta);
25
+ setMetadataFor(Companion_1, 'Companion', objectMeta);
26
+ setMetadataFor(UpdateUserInfoRequest, 'UpdateUserInfoRequest', classMeta);
27
+ setMetadataFor(Companion_2, 'Companion', objectMeta);
28
+ setMetadataFor(UpdateUserPasswordRequest, 'UpdateUserPasswordRequest', classMeta);
29
+ setMetadataFor(UserServiceConfig, 'UserServiceConfig', objectMeta);
30
+ setMetadataFor(JsGetUserAPI, 'JsGetUserAPI', interfaceMeta);
31
+ setMetadataFor(JsRegisterUserAPI, 'JsRegisterUserAPI', interfaceMeta);
32
+ setMetadataFor(JsLoginUserAPI, 'JsLoginUserAPI', interfaceMeta);
33
+ setMetadataFor(JsUpdateUserPasswordAPI, 'JsUpdateUserPasswordAPI', interfaceMeta);
34
+ setMetadataFor(JsUpdateUserInfoAPI, 'JsUpdateUserInfoAPI', interfaceMeta);
35
+ setMetadataFor(JsDeleteUserAPI, 'JsDeleteUserAPI', interfaceMeta);
36
+ //endregion
37
+ function UserDTO(id, username, email, role) {
38
+ this.id = id;
39
+ this.username = username;
40
+ this.email = email;
41
+ this.role = role;
42
+ }
43
+ protoOf(UserDTO).h1 = function () {
44
+ return this.id;
45
+ };
46
+ protoOf(UserDTO).i1 = function () {
47
+ return this.username;
48
+ };
49
+ protoOf(UserDTO).j1 = function () {
50
+ return this.email;
51
+ };
52
+ protoOf(UserDTO).k1 = function () {
53
+ return this.role;
54
+ };
55
+ protoOf(UserDTO).l1 = function () {
56
+ return this.id;
57
+ };
58
+ protoOf(UserDTO).m1 = function () {
59
+ return this.username;
60
+ };
61
+ protoOf(UserDTO).n1 = function () {
62
+ return this.email;
63
+ };
64
+ protoOf(UserDTO).o1 = function () {
65
+ return this.role;
66
+ };
67
+ protoOf(UserDTO).p1 = function (id, username, email, role) {
68
+ return new UserDTO(id, username, email, role);
69
+ };
70
+ protoOf(UserDTO).copy = function (id, username, email, role, $super) {
71
+ id = id === VOID ? this.id : id;
72
+ username = username === VOID ? this.username : username;
73
+ email = email === VOID ? this.email : email;
74
+ role = role === VOID ? this.role : role;
75
+ return this.p1(id, username, email, role);
76
+ };
77
+ protoOf(UserDTO).toString = function () {
78
+ return 'UserDTO(id=' + this.id + ', username=' + this.username + ', email=' + this.email + ', role=' + this.role + ')';
79
+ };
80
+ protoOf(UserDTO).hashCode = function () {
81
+ var result = getStringHashCode(this.id);
82
+ result = imul(result, 31) + getStringHashCode(this.username) | 0;
83
+ result = imul(result, 31) + getStringHashCode(this.email) | 0;
84
+ result = imul(result, 31) + getStringHashCode(this.role) | 0;
85
+ return result;
86
+ };
87
+ protoOf(UserDTO).equals = function (other) {
88
+ if (this === other)
89
+ return true;
90
+ if (!(other instanceof UserDTO))
91
+ return false;
92
+ var tmp0_other_with_cast = other instanceof UserDTO ? other : THROW_CCE();
93
+ if (!(this.id === tmp0_other_with_cast.id))
94
+ return false;
95
+ if (!(this.username === tmp0_other_with_cast.username))
96
+ return false;
97
+ if (!(this.email === tmp0_other_with_cast.email))
98
+ return false;
99
+ if (!(this.role === tmp0_other_with_cast.role))
100
+ return false;
101
+ return true;
102
+ };
103
+ function Companion() {
104
+ }
105
+ protoOf(Companion).validate = function (request) {
106
+ // Inline function 'kotlin.require' call
107
+ var tmp;
108
+ // Inline function 'kotlin.text.isNotBlank' call
109
+ var this_0 = request.email;
110
+ if (!isBlank(this_0)) {
111
+ tmp = true;
112
+ } else {
113
+ // Inline function 'kotlin.text.isNotEmpty' call
114
+ var this_1 = request.username;
115
+ tmp = charSequenceLength(this_1) > 0;
116
+ }
117
+ // Inline function 'kotlin.contracts.contract' call
118
+ if (!tmp) {
119
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
120
+ var message = 'Email or Username must not be blank';
121
+ throw IllegalArgumentException_init_$Create$(toString(message));
122
+ }
123
+ // Inline function 'kotlin.require' call
124
+ // Inline function 'kotlin.text.isNotBlank' call
125
+ var this_2 = request.password;
126
+ // Inline function 'kotlin.contracts.contract' call
127
+ if (!!isBlank(this_2)) {
128
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
129
+ var message_0 = 'Password must not be blank';
130
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
131
+ }
132
+ };
133
+ var Companion_instance;
134
+ function Companion_getInstance() {
135
+ return Companion_instance;
136
+ }
137
+ function LoginUserRequest(email, username, password) {
138
+ this.email = email;
139
+ this.username = username;
140
+ this.password = password;
141
+ }
142
+ protoOf(LoginUserRequest).j1 = function () {
143
+ return this.email;
144
+ };
145
+ protoOf(LoginUserRequest).i1 = function () {
146
+ return this.username;
147
+ };
148
+ protoOf(LoginUserRequest).q1 = function () {
149
+ return this.password;
150
+ };
151
+ protoOf(LoginUserRequest).l1 = function () {
152
+ return this.email;
153
+ };
154
+ protoOf(LoginUserRequest).m1 = function () {
155
+ return this.username;
156
+ };
157
+ protoOf(LoginUserRequest).n1 = function () {
158
+ return this.password;
159
+ };
160
+ protoOf(LoginUserRequest).r1 = function (email, username, password) {
161
+ return new LoginUserRequest(email, username, password);
162
+ };
163
+ protoOf(LoginUserRequest).copy = function (email, username, password, $super) {
164
+ email = email === VOID ? this.email : email;
165
+ username = username === VOID ? this.username : username;
166
+ password = password === VOID ? this.password : password;
167
+ return this.r1(email, username, password);
168
+ };
169
+ protoOf(LoginUserRequest).toString = function () {
170
+ return 'LoginUserRequest(email=' + this.email + ', username=' + this.username + ', password=' + this.password + ')';
171
+ };
172
+ protoOf(LoginUserRequest).hashCode = function () {
173
+ var result = getStringHashCode(this.email);
174
+ result = imul(result, 31) + getStringHashCode(this.username) | 0;
175
+ result = imul(result, 31) + getStringHashCode(this.password) | 0;
176
+ return result;
177
+ };
178
+ protoOf(LoginUserRequest).equals = function (other) {
179
+ if (this === other)
180
+ return true;
181
+ if (!(other instanceof LoginUserRequest))
182
+ return false;
183
+ var tmp0_other_with_cast = other instanceof LoginUserRequest ? other : THROW_CCE();
184
+ if (!(this.email === tmp0_other_with_cast.email))
185
+ return false;
186
+ if (!(this.username === tmp0_other_with_cast.username))
187
+ return false;
188
+ if (!(this.password === tmp0_other_with_cast.password))
189
+ return false;
190
+ return true;
191
+ };
192
+ function Companion_0() {
193
+ }
194
+ protoOf(Companion_0).validate = function (request) {
195
+ // Inline function 'kotlin.require' call
196
+ // Inline function 'kotlin.text.isNotBlank' call
197
+ var this_0 = request.user.username;
198
+ // Inline function 'kotlin.contracts.contract' call
199
+ if (!!isBlank(this_0)) {
200
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
201
+ var message = 'Username must not be blank';
202
+ throw IllegalArgumentException_init_$Create$(toString(message));
203
+ }
204
+ // Inline function 'kotlin.require' call
205
+ // Inline function 'kotlin.text.isNotBlank' call
206
+ var this_1 = request.user.email;
207
+ // Inline function 'kotlin.contracts.contract' call
208
+ if (!!isBlank(this_1)) {
209
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
210
+ var message_0 = 'User email must not be blank';
211
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
212
+ }
213
+ // Inline function 'kotlin.require' call
214
+ // Inline function 'kotlin.text.isNotBlank' call
215
+ var this_2 = request.hashedPassword;
216
+ // Inline function 'kotlin.contracts.contract' call
217
+ if (!!isBlank(this_2)) {
218
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
219
+ var message_1 = 'Hashed password must not be blank';
220
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
221
+ }
222
+ // Inline function 'kotlin.require' call
223
+ // Inline function 'kotlin.text.isNotBlank' call
224
+ var this_3 = request.saltValue;
225
+ // Inline function 'kotlin.contracts.contract' call
226
+ if (!!isBlank(this_3)) {
227
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
228
+ var message_2 = 'Salt value must not be blank';
229
+ throw IllegalArgumentException_init_$Create$(toString(message_2));
230
+ }
231
+ };
232
+ var Companion_instance_0;
233
+ function Companion_getInstance_0() {
234
+ return Companion_instance_0;
235
+ }
236
+ function RegisterUserRequest(user, hashedPassword, saltValue) {
237
+ this.user = user;
238
+ this.hashedPassword = hashedPassword;
239
+ this.saltValue = saltValue;
240
+ }
241
+ protoOf(RegisterUserRequest).s1 = function () {
242
+ return this.user;
243
+ };
244
+ protoOf(RegisterUserRequest).t1 = function () {
245
+ return this.hashedPassword;
246
+ };
247
+ protoOf(RegisterUserRequest).u1 = function () {
248
+ return this.saltValue;
249
+ };
250
+ protoOf(RegisterUserRequest).l1 = function () {
251
+ return this.user;
252
+ };
253
+ protoOf(RegisterUserRequest).m1 = function () {
254
+ return this.hashedPassword;
255
+ };
256
+ protoOf(RegisterUserRequest).n1 = function () {
257
+ return this.saltValue;
258
+ };
259
+ protoOf(RegisterUserRequest).v1 = function (user, hashedPassword, saltValue) {
260
+ return new RegisterUserRequest(user, hashedPassword, saltValue);
261
+ };
262
+ protoOf(RegisterUserRequest).copy = function (user, hashedPassword, saltValue, $super) {
263
+ user = user === VOID ? this.user : user;
264
+ hashedPassword = hashedPassword === VOID ? this.hashedPassword : hashedPassword;
265
+ saltValue = saltValue === VOID ? this.saltValue : saltValue;
266
+ return this.v1(user, hashedPassword, saltValue);
267
+ };
268
+ protoOf(RegisterUserRequest).toString = function () {
269
+ return 'RegisterUserRequest(user=' + this.user + ', hashedPassword=' + this.hashedPassword + ', saltValue=' + this.saltValue + ')';
270
+ };
271
+ protoOf(RegisterUserRequest).hashCode = function () {
272
+ var result = this.user.hashCode();
273
+ result = imul(result, 31) + getStringHashCode(this.hashedPassword) | 0;
274
+ result = imul(result, 31) + getStringHashCode(this.saltValue) | 0;
275
+ return result;
276
+ };
277
+ protoOf(RegisterUserRequest).equals = function (other) {
278
+ if (this === other)
279
+ return true;
280
+ if (!(other instanceof RegisterUserRequest))
281
+ return false;
282
+ var tmp0_other_with_cast = other instanceof RegisterUserRequest ? other : THROW_CCE();
283
+ if (!this.user.equals(tmp0_other_with_cast.user))
284
+ return false;
285
+ if (!(this.hashedPassword === tmp0_other_with_cast.hashedPassword))
286
+ return false;
287
+ if (!(this.saltValue === tmp0_other_with_cast.saltValue))
288
+ return false;
289
+ return true;
290
+ };
291
+ function Companion_1() {
292
+ }
293
+ protoOf(Companion_1).validate = function (request) {
294
+ // Inline function 'kotlin.require' call
295
+ // Inline function 'kotlin.text.isNotBlank' call
296
+ var this_0 = request.user.id;
297
+ // Inline function 'kotlin.contracts.contract' call
298
+ if (!!isBlank(this_0)) {
299
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
300
+ var message = 'User ID must not be blank';
301
+ throw IllegalArgumentException_init_$Create$(toString(message));
302
+ }
303
+ // Inline function 'kotlin.require' call
304
+ // Inline function 'kotlin.text.isNotBlank' call
305
+ var this_1 = request.user.username;
306
+ // Inline function 'kotlin.contracts.contract' call
307
+ if (!!isBlank(this_1)) {
308
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
309
+ var message_0 = 'Username must not be blank';
310
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
311
+ }
312
+ // Inline function 'kotlin.require' call
313
+ // Inline function 'kotlin.text.isNotBlank' call
314
+ var this_2 = request.user.email;
315
+ // Inline function 'kotlin.contracts.contract' call
316
+ if (!!isBlank(this_2)) {
317
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
318
+ var message_1 = 'Email must not be blank';
319
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
320
+ }
321
+ };
322
+ var Companion_instance_1;
323
+ function Companion_getInstance_1() {
324
+ return Companion_instance_1;
325
+ }
326
+ function UpdateUserInfoRequest(user) {
327
+ this.user = user;
328
+ }
329
+ protoOf(UpdateUserInfoRequest).s1 = function () {
330
+ return this.user;
331
+ };
332
+ protoOf(UpdateUserInfoRequest).l1 = function () {
333
+ return this.user;
334
+ };
335
+ protoOf(UpdateUserInfoRequest).w1 = function (user) {
336
+ return new UpdateUserInfoRequest(user);
337
+ };
338
+ protoOf(UpdateUserInfoRequest).copy = function (user, $super) {
339
+ user = user === VOID ? this.user : user;
340
+ return this.w1(user);
341
+ };
342
+ protoOf(UpdateUserInfoRequest).toString = function () {
343
+ return 'UpdateUserInfoRequest(user=' + this.user + ')';
344
+ };
345
+ protoOf(UpdateUserInfoRequest).hashCode = function () {
346
+ return this.user.hashCode();
347
+ };
348
+ protoOf(UpdateUserInfoRequest).equals = function (other) {
349
+ if (this === other)
350
+ return true;
351
+ if (!(other instanceof UpdateUserInfoRequest))
352
+ return false;
353
+ var tmp0_other_with_cast = other instanceof UpdateUserInfoRequest ? other : THROW_CCE();
354
+ if (!this.user.equals(tmp0_other_with_cast.user))
355
+ return false;
356
+ return true;
357
+ };
358
+ function Companion_2() {
359
+ }
360
+ protoOf(Companion_2).validate = function (request) {
361
+ // Inline function 'kotlin.require' call
362
+ var tmp;
363
+ // Inline function 'kotlin.text.isNotBlank' call
364
+ var this_0 = request.user.username;
365
+ if (!isBlank(this_0)) {
366
+ tmp = true;
367
+ } else {
368
+ // Inline function 'kotlin.text.isNotBlank' call
369
+ var this_1 = request.user.email;
370
+ tmp = !isBlank(this_1);
371
+ }
372
+ // Inline function 'kotlin.contracts.contract' call
373
+ if (!tmp) {
374
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
375
+ var message = 'User identifications must not be blank';
376
+ throw IllegalArgumentException_init_$Create$(toString(message));
377
+ }
378
+ // Inline function 'kotlin.require' call
379
+ // Inline function 'kotlin.text.isNotBlank' call
380
+ var this_2 = request.oldHashedPassword;
381
+ // Inline function 'kotlin.contracts.contract' call
382
+ if (!!isBlank(this_2)) {
383
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
384
+ var message_0 = 'Old hashed password must not be blank';
385
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
386
+ }
387
+ // Inline function 'kotlin.require' call
388
+ // Inline function 'kotlin.text.isNotBlank' call
389
+ var this_3 = request.newPassword;
390
+ // Inline function 'kotlin.contracts.contract' call
391
+ if (!!isBlank(this_3)) {
392
+ // Inline function 'com.munchies.user.infrastructure.adapter.inbound.request.Companion.validate.<anonymous>' call
393
+ var message_1 = 'New password must not be blank';
394
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
395
+ }
396
+ };
397
+ var Companion_instance_2;
398
+ function Companion_getInstance_2() {
399
+ return Companion_instance_2;
400
+ }
401
+ function UpdateUserPasswordRequest(user, oldHashedPassword, newPassword) {
402
+ this.user = user;
403
+ this.oldHashedPassword = oldHashedPassword;
404
+ this.newPassword = newPassword;
405
+ }
406
+ protoOf(UpdateUserPasswordRequest).s1 = function () {
407
+ return this.user;
408
+ };
409
+ protoOf(UpdateUserPasswordRequest).x1 = function () {
410
+ return this.oldHashedPassword;
411
+ };
412
+ protoOf(UpdateUserPasswordRequest).y1 = function () {
413
+ return this.newPassword;
414
+ };
415
+ protoOf(UpdateUserPasswordRequest).l1 = function () {
416
+ return this.user;
417
+ };
418
+ protoOf(UpdateUserPasswordRequest).m1 = function () {
419
+ return this.oldHashedPassword;
420
+ };
421
+ protoOf(UpdateUserPasswordRequest).n1 = function () {
422
+ return this.newPassword;
423
+ };
424
+ protoOf(UpdateUserPasswordRequest).v1 = function (user, oldHashedPassword, newPassword) {
425
+ return new UpdateUserPasswordRequest(user, oldHashedPassword, newPassword);
426
+ };
427
+ protoOf(UpdateUserPasswordRequest).copy = function (user, oldHashedPassword, newPassword, $super) {
428
+ user = user === VOID ? this.user : user;
429
+ oldHashedPassword = oldHashedPassword === VOID ? this.oldHashedPassword : oldHashedPassword;
430
+ newPassword = newPassword === VOID ? this.newPassword : newPassword;
431
+ return this.v1(user, oldHashedPassword, newPassword);
432
+ };
433
+ protoOf(UpdateUserPasswordRequest).toString = function () {
434
+ return 'UpdateUserPasswordRequest(user=' + this.user + ', oldHashedPassword=' + this.oldHashedPassword + ', newPassword=' + this.newPassword + ')';
435
+ };
436
+ protoOf(UpdateUserPasswordRequest).hashCode = function () {
437
+ var result = this.user.hashCode();
438
+ result = imul(result, 31) + getStringHashCode(this.oldHashedPassword) | 0;
439
+ result = imul(result, 31) + getStringHashCode(this.newPassword) | 0;
440
+ return result;
441
+ };
442
+ protoOf(UpdateUserPasswordRequest).equals = function (other) {
443
+ if (this === other)
444
+ return true;
445
+ if (!(other instanceof UpdateUserPasswordRequest))
446
+ return false;
447
+ var tmp0_other_with_cast = other instanceof UpdateUserPasswordRequest ? other : THROW_CCE();
448
+ if (!this.user.equals(tmp0_other_with_cast.user))
449
+ return false;
450
+ if (!(this.oldHashedPassword === tmp0_other_with_cast.oldHashedPassword))
451
+ return false;
452
+ if (!(this.newPassword === tmp0_other_with_cast.newPassword))
453
+ return false;
454
+ return true;
455
+ };
456
+ function UserServiceConfig() {
457
+ this.SERVICE_NAME = 'user-service';
458
+ this.SERVICE_PATH = '/users/';
459
+ this.GET_USER_PATH = '{id}/';
460
+ this.REGISTER_USER_PATH = 'register/';
461
+ this.LOGIN_USER_PATH = 'login/';
462
+ this.UPDATE_USER_PASSWORD_PATH = 'update-password/';
463
+ this.UPDATE_USER_INFO_PATH = 'update-info/';
464
+ this.DELETE_USER_PATH = '{id}/';
465
+ this.SERVICE_PORT = 8080;
466
+ }
467
+ protoOf(UserServiceConfig).z1 = function () {
468
+ return this.SERVICE_NAME;
469
+ };
470
+ protoOf(UserServiceConfig).a2 = function () {
471
+ return this.SERVICE_PATH;
472
+ };
473
+ protoOf(UserServiceConfig).b2 = function () {
474
+ return this.GET_USER_PATH;
475
+ };
476
+ protoOf(UserServiceConfig).c2 = function () {
477
+ return this.REGISTER_USER_PATH;
478
+ };
479
+ protoOf(UserServiceConfig).d2 = function () {
480
+ return this.LOGIN_USER_PATH;
481
+ };
482
+ protoOf(UserServiceConfig).e2 = function () {
483
+ return this.UPDATE_USER_PASSWORD_PATH;
484
+ };
485
+ protoOf(UserServiceConfig).f2 = function () {
486
+ return this.UPDATE_USER_INFO_PATH;
487
+ };
488
+ protoOf(UserServiceConfig).g2 = function () {
489
+ return this.DELETE_USER_PATH;
490
+ };
491
+ protoOf(UserServiceConfig).h2 = function () {
492
+ return this.SERVICE_PORT;
493
+ };
494
+ var UserServiceConfig_instance;
495
+ function UserServiceConfig_getInstance() {
496
+ return UserServiceConfig_instance;
497
+ }
498
+ function JsGetUserAPI() {
499
+ }
500
+ function JsRegisterUserAPI() {
501
+ }
502
+ function JsLoginUserAPI() {
503
+ }
504
+ function JsUpdateUserPasswordAPI() {
505
+ }
506
+ function JsUpdateUserInfoAPI() {
507
+ }
508
+ function JsDeleteUserAPI() {
509
+ }
510
+ //region block: init
511
+ Companion_instance = new Companion();
512
+ Companion_instance_0 = new Companion_0();
513
+ Companion_instance_1 = new Companion_1();
514
+ Companion_instance_2 = new Companion_2();
515
+ UserServiceConfig_instance = new UserServiceConfig();
516
+ //endregion
517
+ //region block: exports
518
+ function $jsExportAll$(_) {
519
+ var $com = _.com || (_.com = {});
520
+ var $com$munchies = $com.munchies || ($com.munchies = {});
521
+ var $com$munchies$user = $com$munchies.user || ($com$munchies.user = {});
522
+ var $com$munchies$user$infrastructure = $com$munchies$user.infrastructure || ($com$munchies$user.infrastructure = {});
523
+ var $com$munchies$user$infrastructure$adapter = $com$munchies$user$infrastructure.adapter || ($com$munchies$user$infrastructure.adapter = {});
524
+ var $com$munchies$user$infrastructure$adapter$dto = $com$munchies$user$infrastructure$adapter.dto || ($com$munchies$user$infrastructure$adapter.dto = {});
525
+ $com$munchies$user$infrastructure$adapter$dto.UserDTO = UserDTO;
526
+ var $com = _.com || (_.com = {});
527
+ var $com$munchies = $com.munchies || ($com.munchies = {});
528
+ var $com$munchies$user = $com$munchies.user || ($com$munchies.user = {});
529
+ var $com$munchies$user$infrastructure = $com$munchies$user.infrastructure || ($com$munchies$user.infrastructure = {});
530
+ var $com$munchies$user$infrastructure$adapter = $com$munchies$user$infrastructure.adapter || ($com$munchies$user$infrastructure.adapter = {});
531
+ var $com$munchies$user$infrastructure$adapter$inbound = $com$munchies$user$infrastructure$adapter.inbound || ($com$munchies$user$infrastructure$adapter.inbound = {});
532
+ var $com$munchies$user$infrastructure$adapter$inbound$request = $com$munchies$user$infrastructure$adapter$inbound.request || ($com$munchies$user$infrastructure$adapter$inbound.request = {});
533
+ $com$munchies$user$infrastructure$adapter$inbound$request.LoginUserRequest = LoginUserRequest;
534
+ defineProp($com$munchies$user$infrastructure$adapter$inbound$request.LoginUserRequest, 'Companion', Companion_getInstance);
535
+ var $com = _.com || (_.com = {});
536
+ var $com$munchies = $com.munchies || ($com.munchies = {});
537
+ var $com$munchies$user = $com$munchies.user || ($com$munchies.user = {});
538
+ var $com$munchies$user$infrastructure = $com$munchies$user.infrastructure || ($com$munchies$user.infrastructure = {});
539
+ var $com$munchies$user$infrastructure$adapter = $com$munchies$user$infrastructure.adapter || ($com$munchies$user$infrastructure.adapter = {});
540
+ var $com$munchies$user$infrastructure$adapter$inbound = $com$munchies$user$infrastructure$adapter.inbound || ($com$munchies$user$infrastructure$adapter.inbound = {});
541
+ var $com$munchies$user$infrastructure$adapter$inbound$request = $com$munchies$user$infrastructure$adapter$inbound.request || ($com$munchies$user$infrastructure$adapter$inbound.request = {});
542
+ $com$munchies$user$infrastructure$adapter$inbound$request.RegisterUserRequest = RegisterUserRequest;
543
+ defineProp($com$munchies$user$infrastructure$adapter$inbound$request.RegisterUserRequest, 'Companion', Companion_getInstance_0);
544
+ var $com = _.com || (_.com = {});
545
+ var $com$munchies = $com.munchies || ($com.munchies = {});
546
+ var $com$munchies$user = $com$munchies.user || ($com$munchies.user = {});
547
+ var $com$munchies$user$infrastructure = $com$munchies$user.infrastructure || ($com$munchies$user.infrastructure = {});
548
+ var $com$munchies$user$infrastructure$adapter = $com$munchies$user$infrastructure.adapter || ($com$munchies$user$infrastructure.adapter = {});
549
+ var $com$munchies$user$infrastructure$adapter$inbound = $com$munchies$user$infrastructure$adapter.inbound || ($com$munchies$user$infrastructure$adapter.inbound = {});
550
+ var $com$munchies$user$infrastructure$adapter$inbound$request = $com$munchies$user$infrastructure$adapter$inbound.request || ($com$munchies$user$infrastructure$adapter$inbound.request = {});
551
+ $com$munchies$user$infrastructure$adapter$inbound$request.UpdateUserInfoRequest = UpdateUserInfoRequest;
552
+ defineProp($com$munchies$user$infrastructure$adapter$inbound$request.UpdateUserInfoRequest, 'Companion', Companion_getInstance_1);
553
+ var $com = _.com || (_.com = {});
554
+ var $com$munchies = $com.munchies || ($com.munchies = {});
555
+ var $com$munchies$user = $com$munchies.user || ($com$munchies.user = {});
556
+ var $com$munchies$user$infrastructure = $com$munchies$user.infrastructure || ($com$munchies$user.infrastructure = {});
557
+ var $com$munchies$user$infrastructure$adapter = $com$munchies$user$infrastructure.adapter || ($com$munchies$user$infrastructure.adapter = {});
558
+ var $com$munchies$user$infrastructure$adapter$inbound = $com$munchies$user$infrastructure$adapter.inbound || ($com$munchies$user$infrastructure$adapter.inbound = {});
559
+ var $com$munchies$user$infrastructure$adapter$inbound$request = $com$munchies$user$infrastructure$adapter$inbound.request || ($com$munchies$user$infrastructure$adapter$inbound.request = {});
560
+ $com$munchies$user$infrastructure$adapter$inbound$request.UpdateUserPasswordRequest = UpdateUserPasswordRequest;
561
+ defineProp($com$munchies$user$infrastructure$adapter$inbound$request.UpdateUserPasswordRequest, 'Companion', Companion_getInstance_2);
562
+ var $com = _.com || (_.com = {});
563
+ var $com$munchies = $com.munchies || ($com.munchies = {});
564
+ var $com$munchies$user = $com$munchies.user || ($com$munchies.user = {});
565
+ var $com$munchies$user$infrastructure = $com$munchies$user.infrastructure || ($com$munchies$user.infrastructure = {});
566
+ var $com$munchies$user$infrastructure$adapter = $com$munchies$user$infrastructure.adapter || ($com$munchies$user$infrastructure.adapter = {});
567
+ var $com$munchies$user$infrastructure$adapter$inbound = $com$munchies$user$infrastructure$adapter.inbound || ($com$munchies$user$infrastructure$adapter.inbound = {});
568
+ var $com$munchies$user$infrastructure$adapter$inbound$web = $com$munchies$user$infrastructure$adapter$inbound.web || ($com$munchies$user$infrastructure$adapter$inbound.web = {});
569
+ var $com$munchies$user$infrastructure$adapter$inbound$web$config = $com$munchies$user$infrastructure$adapter$inbound$web.config || ($com$munchies$user$infrastructure$adapter$inbound$web.config = {});
570
+ defineProp($com$munchies$user$infrastructure$adapter$inbound$web$config, 'UserServiceConfig', UserServiceConfig_getInstance);
571
+ var $com = _.com || (_.com = {});
572
+ var $com$munchies = $com.munchies || ($com.munchies = {});
573
+ var $com$munchies$user = $com$munchies.user || ($com$munchies.user = {});
574
+ var $com$munchies$user$infrastructure = $com$munchies$user.infrastructure || ($com$munchies$user.infrastructure = {});
575
+ var $com$munchies$user$infrastructure$adapter = $com$munchies$user$infrastructure.adapter || ($com$munchies$user$infrastructure.adapter = {});
576
+ var $com$munchies$user$infrastructure$adapter$inbound = $com$munchies$user$infrastructure$adapter.inbound || ($com$munchies$user$infrastructure$adapter.inbound = {});
577
+ }
578
+ $jsExportAll$(_);
579
+ //endregion
580
+ return _;
581
+ }(module.exports, require('./kotlin-kotlin-stdlib.js')));
582
+
583
+ //# sourceMappingURL=munchies-user-shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../user-shared/src/commonMain/kotlin/com/munchies/user/infrastructure/adapter/dto/UserDTO.kt","../../../../../user-shared/src/commonMain/kotlin/com/munchies/user/infrastructure/adapter/inbound/request/LoginUserRequest.kt","../../../../../user-shared/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/text/Strings.kt","../../../../../user-shared/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/util/Preconditions.kt","../../../../../user-shared/src/commonMain/kotlin/com/munchies/user/infrastructure/adapter/inbound/request/RegisterUserRequest.kt","../../../../../user-shared/src/commonMain/kotlin/com/munchies/user/infrastructure/adapter/inbound/request/UpdateUserInfoRequest.kt","../../../../../user-shared/src/commonMain/kotlin/com/munchies/user/infrastructure/adapter/inbound/request/UpdateUserPasswordRequest.kt","../../../../../user-shared/src/commonMain/kotlin/com/munchies/user/infrastructure/adapter/inbound/web/config/UserServiceConfig.kt"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["<init>","id","username","email","role","<get-id>","<get-username>","<get-email>","<get-role>","component1","component2","component3","component4","copy","copy$default","toString","hashCode","result","equals","other","validate","request","message","password","<get-password>","user","hashedPassword","saltValue","<get-user>","<get-hashedPassword>","<get-saltValue>","oldHashedPassword","newPassword","<get-oldHashedPassword>","<get-newPassword>","<get-SERVICE_NAME>","<get-SERVICE_PATH>","<get-GET_USER_PATH>","<get-REGISTER_USER_PATH>","<get-LOGIN_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;IACU,mD;IACJ,2C;IACG,+B;IAEZ,wB;EAX3B,C;2CAEQmC,CAAAA,EAAA;A,IAAA,wB;EAAgC,C;2CAChCC,CAAAA,EAAA;A,IAAA,wB;EAA2B,C;2CAC3BC,CAAAA,EAAA;A,IAAA,yB;EAA0B,C;2CAC1BC,CAAAA,EAAA;A,IAAA,8B;EAAmC,C;2CACnCC,CAAAA,EAAA;A,IAAA,2B;EAA6B,C;2CAC7BC,CAAAA,EAAA;A,IAAA,qC;EAAiD,C;2CACjDC,CAAAA,EAAA;A,IAAA,iC;EAAyC,C;2CACzCC,CAAAA,EAAA;A,IAAA,4B;EAAqC,C;2CAErCC,CAAAA,EAAA;A,IAAA,wB;EAAsB,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "munchies-user-service-shared",
3
+ "version": "0.11.0",
4
+ "main": "kotlin/munchies-user-service-shared.js",
5
+ "types": "kotlin/munchies-user-service-shared.d.ts",
6
+ "devDependencies": {
7
+ "typescript": "5.0.4",
8
+ "source-map-support": "0.5.21"
9
+ },
10
+ "dependencies": {
11
+ "format-util": "^1.0.5"
12
+ },
13
+ "peerDependencies": {},
14
+ "optionalDependencies": {},
15
+ "bundledDependencies": [],
16
+ "files": [
17
+ "kotlin/"
18
+ ],
19
+ "license": "Apache-2.0",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/Norby99/munchies.git"
23
+ }
24
+ }