@flock/wirespec 0.22.1 → 0.22.2

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.
Files changed (40) hide show
  1. package/arrow-arrow-core.mjs +11 -5
  2. package/arrow-arrow-core.mjs.map +1 -1
  3. package/clikt-clikt-mordant.mjs +79 -79
  4. package/clikt-clikt.mjs +1343 -1343
  5. package/colormath-root-colormath.mjs +437 -437
  6. package/kotlin-kotlin-stdlib.mjs +249 -243
  7. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  8. package/kotlin-openapi-bindings.mjs +10004 -10004
  9. package/kotlin-rgxgen.mjs +1762 -1762
  10. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  11. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1786 -1786
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1514 -1508
  13. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  14. package/mordant-mordant.mjs +1231 -1225
  15. package/mordant-mordant.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/wirespec-src-compiler-core.mjs +4940 -4889
  18. package/wirespec-src-compiler-core.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-java.mjs +180 -180
  20. package/wirespec-src-compiler-emitters-kotlin.mjs +134 -134
  21. package/wirespec-src-compiler-emitters-python.mjs +157 -157
  22. package/wirespec-src-compiler-emitters-rust.mjs +392 -392
  23. package/wirespec-src-compiler-emitters-scala.mjs +168 -168
  24. package/wirespec-src-compiler-emitters-typescript.mjs +229 -229
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +130 -130
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-lib.mjs +388 -326
  28. package/wirespec-src-compiler-lib.mjs.map +1 -1
  29. package/wirespec-src-converter-asyncapi.mjs +639 -639
  30. package/wirespec-src-converter-avro.mjs +548 -548
  31. package/wirespec-src-converter-common.mjs +16 -16
  32. package/wirespec-src-converter-graphql.mjs +2546 -1342
  33. package/wirespec-src-converter-graphql.mjs.map +1 -1
  34. package/wirespec-src-converter-openapi.mjs +593 -593
  35. package/wirespec-src-ide-lsp.mjs +1371 -1371
  36. package/wirespec-src-plugin-arguments.mjs +146 -146
  37. package/wirespec-src-plugin-cli.mjs +89 -89
  38. package/wirespec-src-plugin-npm.d.mts +21 -3
  39. package/wirespec-src-plugin-npm.mjs +26 -26
  40. package/wirespec-src-tools-generator.mjs +24 -24
@@ -151,7 +151,7 @@ function SpecificFile(extension) {
151
151
  }
152
152
  function Companion() {
153
153
  }
154
- protoOf(Companion).h5a = function (compile, convert) {
154
+ protoOf(Companion).e5b = function (compile, convert) {
155
155
  return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
156
156
  };
157
157
  var Companion_instance_4;
@@ -163,11 +163,11 @@ function WirespecCli() {
163
163
  }
164
164
  function _get_stdin__b8xnlj($this) {
165
165
  var tmp = KProperty1;
166
- return $this.f5b_1.s1u($this, getPropertyCallableRef('stdin', 1, tmp, Compile$_get_stdin_$ref_5ywd7d_0(), null));
166
+ return $this.c5c_1.w1u($this, getPropertyCallableRef('stdin', 1, tmp, Compile$_get_stdin_$ref_5ywd7d_0(), null));
167
167
  }
168
168
  function _get_languages__ojonze($this) {
169
169
  var tmp = KProperty1;
170
- return $this.g5b_1.s1u($this, getPropertyCallableRef('languages', 1, tmp, Compile$_get_languages_$ref_nluohg_0(), null));
170
+ return $this.d5c_1.w1u($this, getPropertyCallableRef('languages', 1, tmp, Compile$_get_languages_$ref_nluohg_0(), null));
171
171
  }
172
172
  function Compile$_get_stdin_$ref_5ywd7d() {
173
173
  return function (p0) {
@@ -210,24 +210,24 @@ function handleError$ref_1() {
210
210
  }
211
211
  function Compile(compiler) {
212
212
  CommonOptions.call(this);
213
- this.e5b_1 = compiler;
213
+ this.b5c_1 = compiler;
214
214
  var tmp = this;
215
215
  var tmp_0 = optional(argument(this, VOID, 'stdin'));
216
216
  var tmp_1 = KProperty1;
217
- tmp.f5b_1 = tmp_0.y1t(this, getPropertyCallableRef('stdin', 1, tmp_1, Compile$_get_stdin_$ref_5ywd7d(), null));
217
+ tmp.c5c_1 = tmp_0.c1u(this, getPropertyCallableRef('stdin', 1, tmp_1, Compile$_get_stdin_$ref_5ywd7d(), null));
218
218
  var tmp_2 = this;
219
- var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().j5b_1.slice(), 'Language'), Companion_instance_1.z4p(), VOID, true), listOf(Language_Kotlin_getInstance()));
219
+ var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().g5c_1.slice(), 'Language'), Companion_instance_1.v4q(), VOID, true), listOf(Language_Kotlin_getInstance()));
220
220
  var tmp_4 = KProperty1;
221
- tmp_2.g5b_1 = tmp_3.c1v(this, getPropertyCallableRef('languages', 1, tmp_4, Compile$_get_languages_$ref_nluohg(), null));
221
+ tmp_2.d5c_1 = tmp_3.g1v(this, getPropertyCallableRef('languages', 1, tmp_4, Compile$_get_languages_$ref_nluohg(), null));
222
222
  }
223
- protoOf(Compile).r1l = function () {
224
- var logger = new Logger(this.h5c(this.g5c()));
223
+ protoOf(Compile).v1l = function () {
224
+ var logger = new Logger(this.e5d(this.d5d()));
225
225
  // Inline function 'arrow.core.getOrElse' call
226
- var this_0 = getFullPath(this.i5c());
226
+ var this_0 = getFullPath(this.f5d());
227
227
  var tmp;
228
228
  if (this_0 instanceof Left) {
229
229
  var it = this_0.sm_1;
230
- throw new CliktError(it.f4r_1);
230
+ throw new CliktError(it.b4s_1);
231
231
  } else {
232
232
  if (this_0 instanceof Right) {
233
233
  tmp = this_0.um_1;
@@ -260,16 +260,16 @@ protoOf(Compile).r1l = function () {
260
260
  throw new NoClasspathPossible();
261
261
  } else {
262
262
  if (inputPath instanceof DirectoryPath) {
263
- var tmp_4 = wirespecSources(new Directory(inputPath.z4q_1), logger);
263
+ var tmp_4 = wirespecSources(new Directory(inputPath.v4r_1), logger);
264
264
  tmp_0 = or(tmp_4, handleError$ref()).in_1;
265
265
  } else {
266
266
  if (inputPath instanceof FilePath) {
267
267
  var tmp_5;
268
- if (inputPath.e4r_1.e3_1 === 6) {
268
+ if (inputPath.a4s_1.e3_1 === 6) {
269
269
  // Inline function 'kotlin.also' call
270
- var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.d4r_1, read(inputPath)), []));
270
+ var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.z4r_1, read(inputPath)), []));
271
271
  this_1.in_1;
272
- logger.zr('Found 1 wirespec file to process: ' + inputPath.toString());
272
+ logger.as('Found 1 wirespec file to process: ' + inputPath.toString());
273
273
  tmp_5 = this_1.in_1;
274
274
  } else {
275
275
  throw new WirespecFileError();
@@ -282,32 +282,32 @@ protoOf(Compile).r1l = function () {
282
282
  }
283
283
  }
284
284
  var sources = tmp_0;
285
- var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.zs(this.y1z()), new EmitShared(this.r4o()));
285
+ var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.at(this.c20()), new EmitShared(this.n4p()));
286
286
  var tmp_6;
287
287
  if (inputPath == null) {
288
288
  tmp_6 = null;
289
289
  } else {
290
290
  // Inline function 'kotlin.let' call
291
- var tmp_7 = getOutPutPath(inputPath, this.j5c());
292
- tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).z4q_1);
291
+ var tmp_7 = getOutPutPath(inputPath, this.g5d());
292
+ tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).v4r_1);
293
293
  }
294
294
  var outputDir = tmp_6;
295
- var tmp_8 = this.k5c(outputDir);
296
- var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.zs(this.y1z()), logger, this.r4o(), this.l5c(), this.m5c());
295
+ var tmp_8 = this.h5d(outputDir);
296
+ var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.at(this.c20()), logger, this.n4p(), this.i5d(), this.j5d());
297
297
  // Inline function 'kotlin.let' call
298
- this.e5b_1(tmp0);
298
+ this.b5c_1(tmp0);
299
299
  };
300
300
  function _get_format__qlarck($this) {
301
301
  var tmp = KProperty1;
302
- return $this.k5d_1.s1u($this, getPropertyCallableRef('format', 1, tmp, Convert$_get_format_$ref_ve190_0(), null));
302
+ return $this.h5e_1.w1u($this, getPropertyCallableRef('format', 1, tmp, Convert$_get_format_$ref_ve190_0(), null));
303
303
  }
304
304
  function _get_stdin__b8xnlj_0($this) {
305
305
  var tmp = KProperty1;
306
- return $this.l5d_1.s1u($this, getPropertyCallableRef('stdin', 1, tmp, Convert$_get_stdin_$ref_yiqct5_0(), null));
306
+ return $this.i5e_1.w1u($this, getPropertyCallableRef('stdin', 1, tmp, Convert$_get_stdin_$ref_yiqct5_0(), null));
307
307
  }
308
308
  function _get_languages__ojonze_0($this) {
309
309
  var tmp = KProperty1;
310
- return $this.m5d_1.s1u($this, getPropertyCallableRef('languages', 1, tmp, Convert$_get_languages_$ref_ykvilw_0(), null));
310
+ return $this.j5e_1.w1u($this, getPropertyCallableRef('languages', 1, tmp, Convert$_get_languages_$ref_ykvilw_0(), null));
311
311
  }
312
312
  function Convert$_get_format_$ref_ve190() {
313
313
  return function (p0) {
@@ -360,7 +360,7 @@ function handleError$ref_4() {
360
360
  }
361
361
  function Convert(converter) {
362
362
  CommonOptions.call(this);
363
- this.j5d_1 = converter;
363
+ this.g5e_1 = converter;
364
364
  var tmp = this;
365
365
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
366
366
  var this_0 = argument(this, VOID, 'Input format');
@@ -380,19 +380,19 @@ function Convert(converter) {
380
380
  }
381
381
  var tmp_0 = choice_0(this_0, destination, true);
382
382
  var tmp_1 = KProperty1;
383
- tmp.k5d_1 = tmp_0.y1t(this, getPropertyCallableRef('format', 1, tmp_1, Convert$_get_format_$ref_ve190(), null));
383
+ tmp.h5e_1 = tmp_0.c1u(this, getPropertyCallableRef('format', 1, tmp_1, Convert$_get_format_$ref_ve190(), null));
384
384
  var tmp_2 = this;
385
385
  var tmp_3 = optional(argument(this, VOID, 'stdin'));
386
386
  var tmp_4 = KProperty1;
387
- tmp_2.l5d_1 = tmp_3.y1t(this, getPropertyCallableRef('stdin', 1, tmp_4, Convert$_get_stdin_$ref_yiqct5(), null));
387
+ tmp_2.i5e_1 = tmp_3.c1u(this, getPropertyCallableRef('stdin', 1, tmp_4, Convert$_get_stdin_$ref_yiqct5(), null));
388
388
  var tmp_5 = this;
389
- var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().j5b_1.slice(), 'Language'), Companion_instance_1.z4p(), VOID, true));
389
+ var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().g5c_1.slice(), 'Language'), Companion_instance_1.v4q(), VOID, true));
390
390
  var tmp_7 = KProperty1;
391
- tmp_5.m5d_1 = tmp_6.c1v(this, getPropertyCallableRef('languages', 1, tmp_7, Convert$_get_languages_$ref_ykvilw(), null));
391
+ tmp_5.j5e_1 = tmp_6.g1v(this, getPropertyCallableRef('languages', 1, tmp_7, Convert$_get_languages_$ref_ykvilw(), null));
392
392
  }
393
- protoOf(Convert).r1l = function () {
394
- var logger = new Logger(this.h5c(this.g5c()));
395
- var tmp = getFullPath(this.i5c());
393
+ protoOf(Convert).v1l = function () {
394
+ var logger = new Logger(this.e5d(this.d5d()));
395
+ var tmp = getFullPath(this.f5d());
396
396
  var inputPath = or(tmp, handleError$ref_2());
397
397
  var tmp_0;
398
398
  if (inputPath == null) {
@@ -421,17 +421,17 @@ protoOf(Convert).r1l = function () {
421
421
  } else {
422
422
  if (inputPath instanceof FilePath) {
423
423
  var tmp_3;
424
- switch (inputPath.e4r_1.e3_1) {
424
+ switch (inputPath.a4s_1.e3_1) {
425
425
  case 7:
426
426
  case 11:
427
- tmp_3 = new Source(inputPath.d4r_1, read(inputPath));
427
+ tmp_3 = new Source(inputPath.z4r_1, read(inputPath));
428
428
  break;
429
429
  default:
430
430
  throw new JSONFileError();
431
431
  }
432
432
  // Inline function 'kotlin.also' call
433
433
  var this_0 = tmp_3;
434
- logger.zr('Found 1 file to process: ' + inputPath.toString());
434
+ logger.as('Found 1 file to process: ' + inputPath.toString());
435
435
  tmp_0 = this_0;
436
436
  } else {
437
437
  noWhenBranchMatchedException();
@@ -440,91 +440,91 @@ protoOf(Convert).r1l = function () {
440
440
  }
441
441
  }
442
442
  var source = tmp_0;
443
- var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.zs(this.y1z()), new EmitShared(this.r4o()));
443
+ var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.at(this.c20()), new EmitShared(this.n4p()));
444
444
  var tmp_4;
445
445
  if (inputPath == null) {
446
446
  tmp_4 = null;
447
447
  } else {
448
448
  // Inline function 'kotlin.let' call
449
- var tmp_5 = getOutPutPath(inputPath, this.j5c());
450
- tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).z4q_1);
449
+ var tmp_5 = getOutPutPath(inputPath, this.g5d());
450
+ tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).v4r_1);
451
451
  }
452
452
  var directory = tmp_4;
453
453
  var tmp_6 = _get_format__qlarck(this);
454
454
  var tmp_7 = nonEmptySetOf(source, []);
455
- var tmp_8 = this.k5c(directory);
456
- var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.zs(this.y1z()), logger, this.r4o(), this.l5c(), this.m5c());
455
+ var tmp_8 = this.h5d(directory);
456
+ var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.at(this.c20()), logger, this.n4p(), this.i5d(), this.j5d());
457
457
  // Inline function 'kotlin.let' call
458
- this.j5d_1(tmp0);
458
+ this.g5e_1(tmp0);
459
459
  };
460
460
  function CommonOptions$_get_input_$ref_6c1nvp() {
461
461
  return function (p0) {
462
- return p0.i5c();
462
+ return p0.f5d();
463
463
  };
464
464
  }
465
465
  function CommonOptions$_get_input_$ref_6c1nvp_0() {
466
466
  return function (p0) {
467
- return p0.i5c();
467
+ return p0.f5d();
468
468
  };
469
469
  }
470
470
  function CommonOptions$_get_output_$ref_eo6xdi() {
471
471
  return function (p0) {
472
- return p0.j5c();
472
+ return p0.g5d();
473
473
  };
474
474
  }
475
475
  function CommonOptions$_get_output_$ref_eo6xdi_0() {
476
476
  return function (p0) {
477
- return p0.j5c();
477
+ return p0.g5d();
478
478
  };
479
479
  }
480
480
  function CommonOptions$_get_packageName_$ref_k5vxsu() {
481
481
  return function (p0) {
482
- return p0.y1z();
482
+ return p0.c20();
483
483
  };
484
484
  }
485
485
  function CommonOptions$_get_packageName_$ref_k5vxsu_0() {
486
486
  return function (p0) {
487
- return p0.y1z();
487
+ return p0.c20();
488
488
  };
489
489
  }
490
490
  function CommonOptions$_get_logLevel_$ref_mp4bhx() {
491
491
  return function (p0) {
492
- return p0.g5c();
492
+ return p0.d5d();
493
493
  };
494
494
  }
495
495
  function CommonOptions$_get_logLevel_$ref_mp4bhx_0() {
496
496
  return function (p0) {
497
- return p0.g5c();
497
+ return p0.d5d();
498
498
  };
499
499
  }
500
500
  function CommonOptions$_get_shared_$ref_7r7o2u() {
501
501
  return function (p0) {
502
- return p0.r4o();
502
+ return p0.n4p();
503
503
  };
504
504
  }
505
505
  function CommonOptions$_get_shared_$ref_7r7o2u_0() {
506
506
  return function (p0) {
507
- return p0.r4o();
507
+ return p0.n4p();
508
508
  };
509
509
  }
510
510
  function CommonOptions$_get_strict_$ref_vrzh6q() {
511
511
  return function (p0) {
512
- return p0.l5c();
512
+ return p0.i5d();
513
513
  };
514
514
  }
515
515
  function CommonOptions$_get_strict_$ref_vrzh6q_0() {
516
516
  return function (p0) {
517
- return p0.l5c();
517
+ return p0.i5d();
518
518
  };
519
519
  }
520
520
  function CommonOptions$_get_ignoreDefaults_$ref_doa1uh() {
521
521
  return function (p0) {
522
- return p0.m5c();
522
+ return p0.j5d();
523
523
  };
524
524
  }
525
525
  function CommonOptions$_get_ignoreDefaults_$ref_doa1uh_0() {
526
526
  return function (p0) {
527
- return p0.m5c();
527
+ return p0.j5d();
528
528
  };
529
529
  }
530
530
  function CommonOptions$writer$lambda($directory, this$0) {
@@ -539,11 +539,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
539
539
  tmp = null;
540
540
  } else {
541
541
  // Inline function 'kotlin.let' call
542
- write(Companion_instance_2.b4r(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.a4r_1) + '/' + element.gq_1), element.hq_1);
542
+ write(Companion_instance_2.x4r(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.w4r_1) + '/' + element.hq_1), element.iq_1);
543
543
  tmp = Unit_instance;
544
544
  }
545
545
  if (tmp == null) {
546
- this$0.g1k(element.hq_1);
546
+ this$0.k1k(element.iq_1);
547
547
  }
548
548
  }
549
549
  return Unit_instance;
@@ -552,63 +552,63 @@ function CommonOptions$writer$lambda($directory, this$0) {
552
552
  function CommonOptions() {
553
553
  CliktCommand.call(this);
554
554
  var tmp = this;
555
- var tmp_0 = option(this, Options_Input_getInstance().j5b_1.slice(), 'Input');
555
+ var tmp_0 = option(this, Options_Input_getInstance().g5c_1.slice(), 'Input');
556
556
  var tmp_1 = KProperty1;
557
- tmp.z5b_1 = tmp_0.c1v(this, getPropertyCallableRef('input', 1, tmp_1, CommonOptions$_get_input_$ref_6c1nvp(), null));
557
+ tmp.w5c_1 = tmp_0.g1v(this, getPropertyCallableRef('input', 1, tmp_1, CommonOptions$_get_input_$ref_6c1nvp(), null));
558
558
  var tmp_2 = this;
559
- var tmp_3 = option(this, Options_Output_getInstance().j5b_1.slice(), 'Output');
559
+ var tmp_3 = option(this, Options_Output_getInstance().g5c_1.slice(), 'Output');
560
560
  var tmp_4 = KProperty1;
561
- tmp_2.a5c_1 = tmp_3.c1v(this, getPropertyCallableRef('output', 1, tmp_4, CommonOptions$_get_output_$ref_eo6xdi(), null));
561
+ tmp_2.x5c_1 = tmp_3.g1v(this, getPropertyCallableRef('output', 1, tmp_4, CommonOptions$_get_output_$ref_eo6xdi(), null));
562
562
  var tmp_5 = this;
563
- var tmp_6 = default_0(option(this, Options_PackageName_getInstance().j5b_1.slice(), 'Package name'), 'community.flock.wirespec.generated');
563
+ var tmp_6 = default_0(option(this, Options_PackageName_getInstance().g5c_1.slice(), 'Package name'), 'community.flock.wirespec.generated');
564
564
  var tmp_7 = KProperty1;
565
- tmp_5.b5c_1 = tmp_6.c1v(this, getPropertyCallableRef('packageName', 1, tmp_7, CommonOptions$_get_packageName_$ref_k5vxsu(), null));
565
+ tmp_5.y5c_1 = tmp_6.g1v(this, getPropertyCallableRef('packageName', 1, tmp_7, CommonOptions$_get_packageName_$ref_k5vxsu(), null));
566
566
  var tmp_8 = this;
567
- var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().j5b_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_INFO_getInstance().toString());
567
+ var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().g5c_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_INFO_getInstance().toString());
568
568
  var tmp_10 = KProperty1;
569
- tmp_8.c5c_1 = tmp_9.c1v(this, getPropertyCallableRef('logLevel', 1, tmp_10, CommonOptions$_get_logLevel_$ref_mp4bhx(), null));
569
+ tmp_8.z5c_1 = tmp_9.g1v(this, getPropertyCallableRef('logLevel', 1, tmp_10, CommonOptions$_get_logLevel_$ref_mp4bhx(), null));
570
570
  var tmp_11 = this;
571
- var tmp_12 = flag(option(this, Options_Shared_getInstance().j5b_1.slice(), 'Generate shared wirespec code'), [], false);
571
+ var tmp_12 = flag(option(this, Options_Shared_getInstance().g5c_1.slice(), 'Generate shared wirespec code'), [], false);
572
572
  var tmp_13 = KProperty1;
573
- tmp_11.d5c_1 = tmp_12.c1v(this, getPropertyCallableRef('shared', 1, tmp_13, CommonOptions$_get_shared_$ref_7r7o2u(), null));
573
+ tmp_11.a5d_1 = tmp_12.g1v(this, getPropertyCallableRef('shared', 1, tmp_13, CommonOptions$_get_shared_$ref_7r7o2u(), null));
574
574
  var tmp_14 = this;
575
- var tmp_15 = flag(option(this, Options_Strict_getInstance().j5b_1.slice(), 'Strict mode'), []);
575
+ var tmp_15 = flag(option(this, Options_Strict_getInstance().g5c_1.slice(), 'Strict mode'), []);
576
576
  var tmp_16 = KProperty1;
577
- tmp_14.e5c_1 = tmp_15.c1v(this, getPropertyCallableRef('strict', 1, tmp_16, CommonOptions$_get_strict_$ref_vrzh6q(), null));
577
+ tmp_14.b5d_1 = tmp_15.g1v(this, getPropertyCallableRef('strict', 1, tmp_16, CommonOptions$_get_strict_$ref_vrzh6q(), null));
578
578
  var tmp_17 = this;
579
- var tmp_18 = flag(option(this, Options_IgnoreDefaults_getInstance().j5b_1.slice(), 'Leave field default values out of the emitted code'), []);
579
+ var tmp_18 = flag(option(this, Options_IgnoreDefaults_getInstance().g5c_1.slice(), 'Leave field default values out of the emitted code'), []);
580
580
  var tmp_19 = KProperty1;
581
- tmp_17.f5c_1 = tmp_18.c1v(this, getPropertyCallableRef('ignoreDefaults', 1, tmp_19, CommonOptions$_get_ignoreDefaults_$ref_doa1uh(), null));
581
+ tmp_17.c5d_1 = tmp_18.g1v(this, getPropertyCallableRef('ignoreDefaults', 1, tmp_19, CommonOptions$_get_ignoreDefaults_$ref_doa1uh(), null));
582
582
  }
583
- protoOf(CommonOptions).i5c = function () {
583
+ protoOf(CommonOptions).f5d = function () {
584
584
  var tmp = KProperty1;
585
- return this.z5b_1.s1u(this, getPropertyCallableRef('input', 1, tmp, CommonOptions$_get_input_$ref_6c1nvp_0(), null));
585
+ return this.w5c_1.w1u(this, getPropertyCallableRef('input', 1, tmp, CommonOptions$_get_input_$ref_6c1nvp_0(), null));
586
586
  };
587
- protoOf(CommonOptions).j5c = function () {
587
+ protoOf(CommonOptions).g5d = function () {
588
588
  var tmp = KProperty1;
589
- return this.a5c_1.s1u(this, getPropertyCallableRef('output', 1, tmp, CommonOptions$_get_output_$ref_eo6xdi_0(), null));
589
+ return this.x5c_1.w1u(this, getPropertyCallableRef('output', 1, tmp, CommonOptions$_get_output_$ref_eo6xdi_0(), null));
590
590
  };
591
- protoOf(CommonOptions).y1z = function () {
591
+ protoOf(CommonOptions).c20 = function () {
592
592
  var tmp = KProperty1;
593
- return this.b5c_1.s1u(this, getPropertyCallableRef('packageName', 1, tmp, CommonOptions$_get_packageName_$ref_k5vxsu_0(), null));
593
+ return this.y5c_1.w1u(this, getPropertyCallableRef('packageName', 1, tmp, CommonOptions$_get_packageName_$ref_k5vxsu_0(), null));
594
594
  };
595
- protoOf(CommonOptions).g5c = function () {
595
+ protoOf(CommonOptions).d5d = function () {
596
596
  var tmp = KProperty1;
597
- return this.c5c_1.s1u(this, getPropertyCallableRef('logLevel', 1, tmp, CommonOptions$_get_logLevel_$ref_mp4bhx_0(), null));
597
+ return this.z5c_1.w1u(this, getPropertyCallableRef('logLevel', 1, tmp, CommonOptions$_get_logLevel_$ref_mp4bhx_0(), null));
598
598
  };
599
- protoOf(CommonOptions).r4o = function () {
599
+ protoOf(CommonOptions).n4p = function () {
600
600
  var tmp = KProperty1;
601
- return this.d5c_1.s1u(this, getPropertyCallableRef('shared', 1, tmp, CommonOptions$_get_shared_$ref_7r7o2u_0(), null));
601
+ return this.a5d_1.w1u(this, getPropertyCallableRef('shared', 1, tmp, CommonOptions$_get_shared_$ref_7r7o2u_0(), null));
602
602
  };
603
- protoOf(CommonOptions).l5c = function () {
603
+ protoOf(CommonOptions).i5d = function () {
604
604
  var tmp = KProperty1;
605
- return this.e5c_1.s1u(this, getPropertyCallableRef('strict', 1, tmp, CommonOptions$_get_strict_$ref_vrzh6q_0(), null));
605
+ return this.b5d_1.w1u(this, getPropertyCallableRef('strict', 1, tmp, CommonOptions$_get_strict_$ref_vrzh6q_0(), null));
606
606
  };
607
- protoOf(CommonOptions).m5c = function () {
607
+ protoOf(CommonOptions).j5d = function () {
608
608
  var tmp = KProperty1;
609
- return this.f5c_1.s1u(this, getPropertyCallableRef('ignoreDefaults', 1, tmp, CommonOptions$_get_ignoreDefaults_$ref_doa1uh_0(), null));
609
+ return this.c5d_1.w1u(this, getPropertyCallableRef('ignoreDefaults', 1, tmp, CommonOptions$_get_ignoreDefaults_$ref_doa1uh_0(), null));
610
610
  };
611
- protoOf(CommonOptions).h5c = function (_this__u8e3s4) {
611
+ protoOf(CommonOptions).e5d = function (_this__u8e3s4) {
612
612
  // Inline function 'kotlin.text.trim' call
613
613
  // Inline function 'kotlin.text.uppercase' call
614
614
  // Inline function 'kotlin.js.asDynamic' call
@@ -631,7 +631,7 @@ protoOf(CommonOptions).h5c = function (_this__u8e3s4) {
631
631
  }
632
632
  return tmp;
633
633
  };
634
- protoOf(CommonOptions).k5c = function (directory) {
634
+ protoOf(CommonOptions).h5d = function (directory) {
635
635
  return CommonOptions$writer$lambda(directory, this);
636
636
  };
637
637
  var Options_Input_instance;
@@ -658,7 +658,7 @@ function Options_initEntries() {
658
658
  }
659
659
  function Options(name, ordinal, flags) {
660
660
  Enum.call(this, name, ordinal);
661
- this.j5b_1 = flags;
661
+ this.g5c_1 = flags;
662
662
  }
663
663
  function handleError(string) {
664
664
  throw new CliktError(string);
@@ -740,7 +740,7 @@ function main_0(args) {
740
740
  // Inline function 'kotlin.let' call
741
741
  var tmp = Companion_instance_4;
742
742
  var tmp_0 = compile$ref();
743
- main(tmp.h5a(tmp_0, convert$ref()), destination);
743
+ main(tmp.e5b(tmp_0, convert$ref()), destination);
744
744
  }
745
745
  function compile$ref() {
746
746
  var l = function (p0) {
@@ -62,8 +62,8 @@ export declare namespace WsPart {
62
62
  }
63
63
  }
64
64
  export declare class WsShape {
65
- constructor(value: Array<WsField>);
66
- get value(): Array<WsField>;
65
+ constructor(value: Array<WsShapeEntry>);
66
+ get value(): Array<WsShapeEntry>;
67
67
  }
68
68
  export declare namespace WsShape {
69
69
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -71,6 +71,23 @@ export declare namespace WsShape {
71
71
  const constructor: abstract new () => WsShape;
72
72
  }
73
73
  }
74
+ export declare interface WsShapeEntry {
75
+ readonly __doNotUseOrImplementIt: {
76
+ readonly "community.flock.wirespec.compiler.lib.WsShapeEntry": unique symbol;
77
+ };
78
+ }
79
+ export declare class WsSpread implements WsShapeEntry {
80
+ constructor(reference: string, fields: Nullable<Array<WsField>>);
81
+ get reference(): string;
82
+ get fields(): Nullable<Array<WsField>>;
83
+ readonly __doNotUseOrImplementIt: WsShapeEntry["__doNotUseOrImplementIt"];
84
+ }
85
+ export declare namespace WsSpread {
86
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
87
+ namespace $metadata$ {
88
+ const constructor: abstract new () => WsSpread;
89
+ }
90
+ }
74
91
  export declare class WsEndpoint implements WsDefinition {
75
92
  constructor(identifier: string, comment: Nullable<string>, annotations: Array<WsAnnotation>, method: WsMethod, path: Array<WsSegment>, queries: Array<WsField>, headers: Array<WsField>, requests: Array<WsRequest>, responses: Array<WsResponse>);
76
93
  get identifier(): string;
@@ -245,12 +262,13 @@ export declare namespace Shape {
245
262
  const constructor: abstract new () => Shape;
246
263
  }
247
264
  }
248
- export declare class WsField {
265
+ export declare class WsField implements WsShapeEntry {
249
266
  constructor(identifier: WsFieldIdentifier, reference: WsReference, annotations: Array<WsAnnotation>, defaultValue: Nullable<WsDefaultValue>);
250
267
  get identifier(): WsFieldIdentifier;
251
268
  get reference(): WsReference;
252
269
  get annotations(): Array<WsAnnotation>;
253
270
  get defaultValue(): Nullable<WsDefaultValue>;
271
+ readonly __doNotUseOrImplementIt: WsShapeEntry["__doNotUseOrImplementIt"];
254
272
  }
255
273
  export declare namespace WsField {
256
274
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -136,32 +136,32 @@ function Shared_initEntries() {
136
136
  if (Shared_entriesInitialized)
137
137
  return Unit_instance;
138
138
  Shared_entriesInitialized = true;
139
- var tmp0 = ensureNotNull((new KotlinEmitter(VOID, new EmitShared(true))).b1a());
139
+ var tmp0 = ensureNotNull((new KotlinEmitter(VOID, new EmitShared(true))).c1a());
140
140
  // Inline function 'kotlin.let' call
141
- var tmp$ret$0 = KotlinGenerator_getInstance().h1a(tmp0);
141
+ var tmp$ret$0 = KotlinGenerator_getInstance().i1a(tmp0);
142
142
  Shared_KOTLIN_instance = new Shared('KOTLIN', 0, tmp$ret$0);
143
- var tmp0_0 = ensureNotNull((new JavaEmitter(VOID, new EmitShared(true))).b1a());
143
+ var tmp0_0 = ensureNotNull((new JavaEmitter(VOID, new EmitShared(true))).c1a());
144
144
  // Inline function 'kotlin.let' call
145
- var tmp$ret$2 = JavaGenerator_getInstance().h1a(tmp0_0);
145
+ var tmp$ret$2 = JavaGenerator_getInstance().i1a(tmp0_0);
146
146
  Shared_JAVA_instance = new Shared('JAVA', 1, tmp$ret$2);
147
- var tmp0_1 = ensureNotNull((new ScalaEmitter(VOID, new EmitShared(true))).b1a());
147
+ var tmp0_1 = ensureNotNull((new ScalaEmitter(VOID, new EmitShared(true))).c1a());
148
148
  // Inline function 'kotlin.let' call
149
- var tmp$ret$4 = ScalaGenerator_getInstance().h1a(tmp0_1);
149
+ var tmp$ret$4 = ScalaGenerator_getInstance().i1a(tmp0_1);
150
150
  Shared_SCALA_instance = new Shared('SCALA', 2, tmp$ret$4);
151
- var tmp0_2 = ensureNotNull((new TypeScriptEmitter()).b1a());
151
+ var tmp0_2 = ensureNotNull((new TypeScriptEmitter()).c1a());
152
152
  // Inline function 'kotlin.let' call
153
- var tmp$ret$6 = TypeScriptGenerator_getInstance().h1a(tmp0_2);
153
+ var tmp$ret$6 = TypeScriptGenerator_getInstance().i1a(tmp0_2);
154
154
  Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 3, tmp$ret$6);
155
- var tmp0_3 = ensureNotNull((new PythonEmitter(VOID, new EmitShared(true))).b1a());
155
+ var tmp0_3 = ensureNotNull((new PythonEmitter(VOID, new EmitShared(true))).c1a());
156
156
  // Inline function 'kotlin.let' call
157
- var tmp$ret$8 = PythonGenerator_getInstance().h1a(tmp0_3);
157
+ var tmp$ret$8 = PythonGenerator_getInstance().i1a(tmp0_3);
158
158
  Shared_PYTHON_instance = new Shared('PYTHON', 4, tmp$ret$8);
159
159
  }
160
160
  function Shared(name, ordinal, source) {
161
161
  Enum.call(this, name, ordinal);
162
162
  this.source = source;
163
163
  }
164
- protoOf(Shared).w2z = function () {
164
+ protoOf(Shared).b30 = function () {
165
165
  return this.source;
166
166
  };
167
167
  var Emitters_WIRESPEC_instance;
@@ -304,19 +304,19 @@ function convert(source, converters, strict) {
304
304
  var tmp;
305
305
  switch (converters.e3_1) {
306
306
  case 0:
307
- tmp = produce_1(OpenAPIV2Parser_instance.r48(new ModuleContent(new FileUri(''), source), strict));
307
+ tmp = produce_1(OpenAPIV2Parser_instance.w48(new ModuleContent(new FileUri(''), source), strict));
308
308
  break;
309
309
  case 1:
310
- tmp = produce_1(OpenAPIV3Parser_instance.r48(new ModuleContent(new FileUri(''), source), strict));
310
+ tmp = produce_1(OpenAPIV3Parser_instance.w48(new ModuleContent(new FileUri(''), source), strict));
311
311
  break;
312
312
  case 2:
313
- tmp = produce_1(AvroJsonParser_instance.r48(new ModuleContent(new FileUri(''), source), strict));
313
+ tmp = produce_1(AvroJsonParser_instance.w48(new ModuleContent(new FileUri(''), source), strict));
314
314
  break;
315
315
  case 3:
316
- tmp = produce_1(GraphQLParser_instance.r48(new ModuleContent(new FileUri(''), source), strict));
316
+ tmp = produce_1(GraphQLParser_instance.w48(new ModuleContent(new FileUri(''), source), strict));
317
317
  break;
318
318
  case 4:
319
- tmp = produce_1(AsyncAPIParser_instance.r48(new ModuleContent(new FileUri(''), source), strict));
319
+ tmp = produce_1(AsyncAPIParser_instance.w48(new ModuleContent(new FileUri(''), source), strict));
320
320
  break;
321
321
  default:
322
322
  noWhenBranchMatchedException();
@@ -354,16 +354,16 @@ function emit(wsAst, emitter, packageName, emitShared) {
354
354
  tmp = (new TypeScriptEmitter()).to(ast, get_noLogger());
355
355
  break;
356
356
  case 2:
357
- tmp = (new JavaEmitter(Companion_instance.zs(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
357
+ tmp = (new JavaEmitter(Companion_instance.at(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
358
358
  break;
359
359
  case 3:
360
- tmp = (new KotlinEmitter(Companion_instance.zs(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
360
+ tmp = (new KotlinEmitter(Companion_instance.at(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
361
361
  break;
362
362
  case 4:
363
- tmp = (new ScalaEmitter(Companion_instance.zs(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
363
+ tmp = (new ScalaEmitter(Companion_instance.at(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
364
364
  break;
365
365
  case 5:
366
- tmp = (new PythonEmitter(Companion_instance.zs(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
366
+ tmp = (new PythonEmitter(Companion_instance.at(packageName), new EmitShared(emitShared))).to(ast, get_noLogger());
367
367
  break;
368
368
  case 6:
369
369
  var tmp_0 = OpenAPIV2Emitter_getInstance();
@@ -384,7 +384,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
384
384
  }
385
385
 
386
386
  var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(destination);
387
- var tmp0_0 = tmp_0.p48(tmp$ret$0, get_noLogger());
387
+ var tmp0_0 = tmp_0.u48(tmp$ret$0, get_noLogger());
388
388
  // Inline function 'kotlin.let' call
389
389
 
390
390
  // Inline function 'kotlin.let' call
@@ -414,7 +414,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
414
414
  }
415
415
 
416
416
  var tmp$ret$9 = _NonEmptyList___init__impl__fxd0xp(destination_0);
417
- var tmp0_2 = tmp_1.u48(tmp$ret$9, null, get_noLogger());
417
+ var tmp0_2 = tmp_1.z48(tmp$ret$9, null, get_noLogger());
418
418
  // Inline function 'kotlin.let' call
419
419
 
420
420
  // Inline function 'kotlin.let' call
@@ -438,7 +438,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
438
438
  var _iterator__ex2g4s_1 = this_3.t();
439
439
  while (_iterator__ex2g4s_1.u()) {
440
440
  var item = _iterator__ex2g4s_1.v();
441
- var tmp$ret$21 = AvroJsonEmitter_getInstance().g4a(item);
441
+ var tmp$ret$21 = AvroJsonEmitter_getInstance().l4a(item);
442
442
  destination_1.x(tmp$ret$21);
443
443
  }
444
444
 
@@ -457,11 +457,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
457
457
  // Inline function 'kotlinx.serialization.encodeToString' call
458
458
  var this_6 = Default_getInstance();
459
459
  // Inline function 'kotlinx.serialization.serializer' call
460
- var this_7 = this_6.x25();
460
+ var this_7 = this_6.b26();
461
461
  // Inline function 'kotlinx.serialization.internal.cast' call
462
462
  var this_8 = serializer(this_7, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type), arrayOf([]), false))]), false));
463
463
  var tmp$ret$27 = isInterface(this_8, KSerializer) ? this_8 : THROW_CCE();
464
- var tmp$ret$25 = this_6.c2n(tmp$ret$27, item_0);
464
+ var tmp$ret$25 = this_6.g2n(tmp$ret$27, item_0);
465
465
  destination_2.x(tmp$ret$25);
466
466
  }
467
467
 
@@ -522,7 +522,7 @@ function generate$1() {
522
522
  }
523
523
  function encode$lambda($serializer) {
524
524
  return function (value) {
525
- return Default_getInstance().c2n($serializer, value);
525
+ return Default_getInstance().g2n($serializer, value);
526
526
  };
527
527
  }
528
528
  function Shared_KOTLIN_getInstance() {