@flock/wirespec 0.17.2 → 0.17.4

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 (37) hide show
  1. package/clikt-clikt.mjs +1174 -1174
  2. package/colormath-root-colormath.mjs +425 -425
  3. package/kotlin-kotlin-stdlib.mjs +44 -43
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +9202 -9761
  6. package/kotlin-openapi-bindings.mjs.map +1 -1
  7. package/kotlin-rgxgen.mjs +1767 -1767
  8. package/kotlinx-io-kotlinx-io-core.mjs +380 -380
  9. package/kotlinx-serialization-kotlinx-serialization-core.mjs +4 -0
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  11. package/kotlinx-serialization-kotlinx-serialization-json.mjs +299 -299
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  13. package/markdown.mjs +1876 -1876
  14. package/mordant-mordant.mjs +1643 -1643
  15. package/package.json +1 -1
  16. package/wirespec-src-compiler-core.mjs +1059 -1059
  17. package/wirespec-src-compiler-emitters-java.mjs +260 -260
  18. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-kotlin.mjs +186 -186
  20. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  21. package/wirespec-src-compiler-emitters-python.mjs +183 -183
  22. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  23. package/wirespec-src-compiler-emitters-typescript.mjs +196 -196
  24. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +76 -76
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-lib.mjs +377 -327
  28. package/wirespec-src-compiler-lib.mjs.map +1 -1
  29. package/wirespec-src-converter-avro.mjs +316 -316
  30. package/wirespec-src-converter-openapi.mjs +2565 -2561
  31. package/wirespec-src-converter-openapi.mjs.map +1 -1
  32. package/wirespec-src-plugin-arguments.mjs +139 -139
  33. package/wirespec-src-plugin-cli.mjs +77 -77
  34. package/wirespec-src-plugin-npm.d.ts +13 -5
  35. package/wirespec-src-plugin-npm.mjs +41 -41
  36. package/wirespec-src-plugin-npm.mjs.map +1 -1
  37. package/wirespec-src-tools-generator.mjs +25 -25
@@ -146,7 +146,7 @@ function SpecificFile(extension) {
146
146
  }
147
147
  function Companion() {
148
148
  }
149
- protoOf(Companion).k4b = function (compile, convert) {
149
+ protoOf(Companion).b4a = function (compile, convert) {
150
150
  return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
151
151
  };
152
152
  var Companion_instance_4;
@@ -157,10 +157,10 @@ function WirespecCli() {
157
157
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
158
158
  }
159
159
  function _get_stdin__b8xnlj($this) {
160
- return $this.j4c_1.s48($this, stdin$factory_0());
160
+ return $this.a4b_1.j47($this, stdin$factory_0());
161
161
  }
162
162
  function _get_languages__ojonze($this) {
163
- return $this.k4c_1.s48($this, languages$factory_0());
163
+ return $this.b4b_1.j47($this, languages$factory_0());
164
164
  }
165
165
  function run$handleError(p0) {
166
166
  handleError(p0);
@@ -187,15 +187,15 @@ function Compile$run$handleError$ref() {
187
187
  }
188
188
  function Compile(compiler) {
189
189
  CommonOptions.call(this);
190
- this.i4c_1 = compiler;
191
- this.j4c_1 = optional(argument(this, VOID, 'stdin')).y47(this, stdin$factory());
192
- this.k4c_1 = multiple(choice(option(this, Options_Language_getInstance().n4c_1.slice(), 'Language'), Companion_instance_1.p2j(), VOID, true), listOf(Language_Kotlin_getInstance())).c49(this, languages$factory());
190
+ this.z4a_1 = compiler;
191
+ this.a4b_1 = optional(argument(this, VOID, 'stdin')).p46(this, stdin$factory());
192
+ this.b4b_1 = multiple(choice(option(this, Options_Language_getInstance().e4b_1.slice(), 'Language'), Companion_instance_1.g2i(), VOID, true), listOf(Language_Kotlin_getInstance())).t47(this, languages$factory());
193
193
  }
194
- protoOf(Compile).g3z = function () {
194
+ protoOf(Compile).x3x = function () {
195
195
  // Inline function 'arrow.core.getOrElse' call
196
196
  // Inline function 'kotlin.contracts.contract' call
197
197
  // Inline function 'arrow.core.Either.fold' call
198
- var this_0 = getFullPath(this.l4d());
198
+ var this_0 = getFullPath(this.c4c());
199
199
  // Inline function 'kotlin.contracts.contract' call
200
200
  var tmp;
201
201
  if (this_0 instanceof Right) {
@@ -205,7 +205,7 @@ protoOf(Compile).g3z = function () {
205
205
  } else {
206
206
  if (this_0 instanceof Left) {
207
207
  var it = this_0.yj_1;
208
- throw new CliktError(it.u2k_1);
208
+ throw new CliktError(it.l2j_1);
209
209
  } else {
210
210
  noWhenBranchMatchedException();
211
211
  }
@@ -237,13 +237,13 @@ protoOf(Compile).g3z = function () {
237
237
  throw new NoClasspathPossible();
238
238
  } else {
239
239
  if (inputPath instanceof DirectoryPath) {
240
- var tmp_4 = wirespecSources(new Directory(inputPath.o2k_1));
240
+ var tmp_4 = wirespecSources(new Directory(inputPath.f2j_1));
241
241
  tmp_0 = or(tmp_4, handleError$ref()).xk_1;
242
242
  } else {
243
243
  if (inputPath instanceof FilePath) {
244
244
  var tmp_5;
245
- if (inputPath.t2k_1.r2_1 === 4) {
246
- tmp_5 = nonEmptySetOf(new Source(inputPath.s2k_1, read(inputPath)), []);
245
+ if (inputPath.k2j_1.r2_1 === 4) {
246
+ tmp_5 = nonEmptySetOf(new Source(inputPath.j2j_1, read(inputPath)), []);
247
247
  } else {
248
248
  throw new WirespecFileError();
249
249
  }
@@ -255,7 +255,7 @@ protoOf(Compile).g3z = function () {
255
255
  }
256
256
  }
257
257
  var sources = tmp_0;
258
- var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.c27(this.w2a()), new EmitShared(this.g2b()));
258
+ var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.w25(this.q29()), new EmitShared(this.a2a()));
259
259
  var tmp_6;
260
260
  if (inputPath == null) {
261
261
  tmp_6 = null;
@@ -263,24 +263,24 @@ protoOf(Compile).g3z = function () {
263
263
  // Inline function 'kotlin.let' call
264
264
  // Inline function 'kotlin.contracts.contract' call
265
265
  // Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call
266
- var tmp_7 = getOutPutPath(inputPath, this.m4d());
267
- tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).o2k_1);
266
+ var tmp_7 = getOutPutPath(inputPath, this.d4c());
267
+ tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).f2j_1);
268
268
  }
269
269
  var outputDir = tmp_6;
270
270
  // Inline function 'kotlin.let' call
271
- var tmp_8 = this.n4d(outputDir);
272
- var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.c27(this.w2a()), new Logger(this.p4d(this.o4d())), this.g2b(), this.q4d());
271
+ var tmp_8 = this.e4c(outputDir);
272
+ var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.w25(this.q29()), new Logger(this.g4c(this.f4c())), this.a2a(), this.h4c());
273
273
  // Inline function 'kotlin.contracts.contract' call
274
- this.i4c_1(this_1);
274
+ this.z4a_1(this_1);
275
275
  };
276
276
  function _get_format__qlarck($this) {
277
- return $this.p4e_1.s48($this, format$factory_0());
277
+ return $this.g4d_1.j47($this, format$factory_0());
278
278
  }
279
279
  function _get_stdin__b8xnlj_0($this) {
280
- return $this.q4e_1.s48($this, stdin$factory_2());
280
+ return $this.h4d_1.j47($this, stdin$factory_2());
281
281
  }
282
282
  function _get_languages__ojonze_0($this) {
283
- return $this.r4e_1.s48($this, languages$factory_2());
283
+ return $this.i4d_1.j47($this, languages$factory_2());
284
284
  }
285
285
  function run$handleError_0(p0) {
286
286
  handleError(p0);
@@ -307,7 +307,7 @@ function Convert$run$handleError$ref() {
307
307
  }
308
308
  function Convert(converter) {
309
309
  CommonOptions.call(this);
310
- this.o4e_1 = converter;
310
+ this.f4d_1 = converter;
311
311
  var tmp = this;
312
312
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
313
313
  var this_0 = argument(this, VOID, 'Input format');
@@ -327,12 +327,12 @@ function Convert(converter) {
327
327
  var tmp$ret$2 = element.q2_1;
328
328
  destination.n2(tmp$ret$2, element);
329
329
  }
330
- tmp.p4e_1 = choice_0(this_0, destination, true).y47(this, format$factory());
331
- this.q4e_1 = optional(argument(this, VOID, 'stdin')).y47(this, stdin$factory_1());
332
- this.r4e_1 = multiple(choice(option(this, Options_Language_getInstance().n4c_1.slice(), 'Language'), Companion_instance_1.p2j(), VOID, true)).c49(this, languages$factory_1());
330
+ tmp.g4d_1 = choice_0(this_0, destination, true).p46(this, format$factory());
331
+ this.h4d_1 = optional(argument(this, VOID, 'stdin')).p46(this, stdin$factory_1());
332
+ this.i4d_1 = multiple(choice(option(this, Options_Language_getInstance().e4b_1.slice(), 'Language'), Companion_instance_1.g2i(), VOID, true)).t47(this, languages$factory_1());
333
333
  }
334
- protoOf(Convert).g3z = function () {
335
- var tmp = getFullPath(this.l4d());
334
+ protoOf(Convert).x3x = function () {
335
+ var tmp = getFullPath(this.c4c());
336
336
  var inputPath = or(tmp, handleError$ref_1());
337
337
  var tmp_0;
338
338
  if (inputPath == null) {
@@ -363,8 +363,8 @@ protoOf(Convert).g3z = function () {
363
363
  } else {
364
364
  if (inputPath instanceof FilePath) {
365
365
  var tmp_3;
366
- if (inputPath.t2k_1.r2_1 === 5) {
367
- tmp_3 = new Source(inputPath.s2k_1, read(inputPath));
366
+ if (inputPath.k2j_1.r2_1 === 5) {
367
+ tmp_3 = new Source(inputPath.j2j_1, read(inputPath));
368
368
  } else {
369
369
  throw new JSONFileError();
370
370
  }
@@ -376,7 +376,7 @@ protoOf(Convert).g3z = function () {
376
376
  }
377
377
  }
378
378
  var source = tmp_0;
379
- var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.c27(this.w2a()), new EmitShared(this.g2b()));
379
+ var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.w25(this.q29()), new EmitShared(this.a2a()));
380
380
  var tmp_4;
381
381
  if (inputPath == null) {
382
382
  tmp_4 = null;
@@ -384,17 +384,17 @@ protoOf(Convert).g3z = function () {
384
384
  // Inline function 'kotlin.let' call
385
385
  // Inline function 'kotlin.contracts.contract' call
386
386
  // Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
387
- var tmp_5 = getOutPutPath(inputPath, this.m4d());
388
- tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).o2k_1);
387
+ var tmp_5 = getOutPutPath(inputPath, this.d4c());
388
+ tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).f2j_1);
389
389
  }
390
390
  var directory = tmp_4;
391
391
  // Inline function 'kotlin.let' call
392
392
  var tmp_6 = _get_format__qlarck(this);
393
393
  var tmp_7 = nonEmptySetOf(source, []);
394
- var tmp_8 = this.n4d(directory);
395
- var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.c27(this.w2a()), new Logger(this.p4d(this.o4d())), this.g2b(), this.q4d());
394
+ var tmp_8 = this.e4c(directory);
395
+ var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.w25(this.q29()), new Logger(this.g4c(this.f4c())), this.a2a(), this.h4c());
396
396
  // Inline function 'kotlin.contracts.contract' call
397
- this.o4e_1(this_0);
397
+ this.f4d_1(this_0);
398
398
  };
399
399
  function CommonOptions$writer$lambda($directory, this$0) {
400
400
  return function (emittedList) {
@@ -409,11 +409,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
409
409
  } else {
410
410
  // Inline function 'kotlin.let' call
411
411
  // Inline function 'kotlin.contracts.contract' call
412
- write(Companion_instance_2.q2k(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.p2k_1) + '/' + element.a24_1), element.b24_1);
412
+ write(Companion_instance_2.h2j(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.g2j_1) + '/' + element.u22_1), element.v22_1);
413
413
  tmp = Unit_instance;
414
414
  }
415
415
  if (tmp == null) {
416
- this$0.a3z(element.b24_1);
416
+ this$0.r3x(element.v22_1);
417
417
  }
418
418
  }
419
419
  return Unit_instance;
@@ -421,32 +421,32 @@ function CommonOptions$writer$lambda($directory, this$0) {
421
421
  }
422
422
  function CommonOptions() {
423
423
  CliktCommand.call(this);
424
- this.f4d_1 = option(this, Options_Input_getInstance().n4c_1.slice(), 'Input').c49(this, input$factory());
425
- this.g4d_1 = option(this, Options_Output_getInstance().n4c_1.slice(), 'Output').c49(this, output$factory());
426
- this.h4d_1 = default_0(option(this, Options_PackageName_getInstance().n4c_1.slice(), 'Package name'), 'community.flock.wirespec.generated').c49(this, packageName$factory());
427
- this.i4d_1 = default_0(option(this, Options_LogLevel_getInstance().n4c_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).c49(this, logLevel$factory());
428
- this.j4d_1 = flag(option(this, Options_Shared_getInstance().n4c_1.slice(), 'Generate shared wirespec code'), [], false).c49(this, shared$factory());
429
- this.k4d_1 = flag(option(this, Options_Strict_getInstance().n4c_1.slice(), 'Strict mode'), []).c49(this, strict$factory());
430
- }
431
- protoOf(CommonOptions).l4d = function () {
432
- return this.f4d_1.s48(this, input$factory_0());
424
+ this.w4b_1 = option(this, Options_Input_getInstance().e4b_1.slice(), 'Input').t47(this, input$factory());
425
+ this.x4b_1 = option(this, Options_Output_getInstance().e4b_1.slice(), 'Output').t47(this, output$factory());
426
+ this.y4b_1 = default_0(option(this, Options_PackageName_getInstance().e4b_1.slice(), 'Package name'), 'community.flock.wirespec.generated').t47(this, packageName$factory());
427
+ this.z4b_1 = default_0(option(this, Options_LogLevel_getInstance().e4b_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).t47(this, logLevel$factory());
428
+ this.a4c_1 = flag(option(this, Options_Shared_getInstance().e4b_1.slice(), 'Generate shared wirespec code'), [], false).t47(this, shared$factory());
429
+ this.b4c_1 = flag(option(this, Options_Strict_getInstance().e4b_1.slice(), 'Strict mode'), []).t47(this, strict$factory());
430
+ }
431
+ protoOf(CommonOptions).c4c = function () {
432
+ return this.w4b_1.j47(this, input$factory_0());
433
433
  };
434
- protoOf(CommonOptions).m4d = function () {
435
- return this.g4d_1.s48(this, output$factory_0());
434
+ protoOf(CommonOptions).d4c = function () {
435
+ return this.x4b_1.j47(this, output$factory_0());
436
436
  };
437
- protoOf(CommonOptions).w2a = function () {
438
- return this.h4d_1.s48(this, packageName$factory_0());
437
+ protoOf(CommonOptions).q29 = function () {
438
+ return this.y4b_1.j47(this, packageName$factory_0());
439
439
  };
440
- protoOf(CommonOptions).o4d = function () {
441
- return this.i4d_1.s48(this, logLevel$factory_0());
440
+ protoOf(CommonOptions).f4c = function () {
441
+ return this.z4b_1.j47(this, logLevel$factory_0());
442
442
  };
443
- protoOf(CommonOptions).g2b = function () {
444
- return this.j4d_1.s48(this, shared$factory_0());
443
+ protoOf(CommonOptions).a2a = function () {
444
+ return this.a4c_1.j47(this, shared$factory_0());
445
445
  };
446
- protoOf(CommonOptions).q4d = function () {
447
- return this.k4d_1.s48(this, strict$factory_0());
446
+ protoOf(CommonOptions).h4c = function () {
447
+ return this.b4c_1.j47(this, strict$factory_0());
448
448
  };
449
- protoOf(CommonOptions).p4d = function (_this__u8e3s4) {
449
+ protoOf(CommonOptions).g4c = function (_this__u8e3s4) {
450
450
  // Inline function 'kotlin.text.uppercase' call
451
451
  // Inline function 'kotlin.text.trim' call
452
452
  // Inline function 'kotlin.js.asDynamic' call
@@ -469,7 +469,7 @@ protoOf(CommonOptions).p4d = function (_this__u8e3s4) {
469
469
  }
470
470
  return tmp;
471
471
  };
472
- protoOf(CommonOptions).n4d = function (directory) {
472
+ protoOf(CommonOptions).e4c = function (directory) {
473
473
  return CommonOptions$writer$lambda(directory, this);
474
474
  };
475
475
  var Options_Input_instance;
@@ -494,7 +494,7 @@ function Options_initEntries() {
494
494
  }
495
495
  function Options(name, ordinal, flags) {
496
496
  Enum.call(this, name, ordinal);
497
- this.n4c_1 = flags;
497
+ this.e4b_1 = flags;
498
498
  }
499
499
  function handleError(string) {
500
500
  throw new CliktError(string);
@@ -600,62 +600,62 @@ function languages$factory_2() {
600
600
  }
601
601
  function input$factory() {
602
602
  return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
603
- return receiver.l4d();
603
+ return receiver.c4c();
604
604
  }, null);
605
605
  }
606
606
  function output$factory() {
607
607
  return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
608
- return receiver.m4d();
608
+ return receiver.d4c();
609
609
  }, null);
610
610
  }
611
611
  function packageName$factory() {
612
612
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
613
- return receiver.w2a();
613
+ return receiver.q29();
614
614
  }, null);
615
615
  }
616
616
  function logLevel$factory() {
617
617
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
618
- return receiver.o4d();
618
+ return receiver.f4c();
619
619
  }, null);
620
620
  }
621
621
  function shared$factory() {
622
622
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
623
- return receiver.g2b();
623
+ return receiver.a2a();
624
624
  }, null);
625
625
  }
626
626
  function strict$factory() {
627
627
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
628
- return receiver.q4d();
628
+ return receiver.h4c();
629
629
  }, null);
630
630
  }
631
631
  function input$factory_0() {
632
632
  return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
633
- return receiver.l4d();
633
+ return receiver.c4c();
634
634
  }, null);
635
635
  }
636
636
  function output$factory_0() {
637
637
  return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
638
- return receiver.m4d();
638
+ return receiver.d4c();
639
639
  }, null);
640
640
  }
641
641
  function packageName$factory_0() {
642
642
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
643
- return receiver.w2a();
643
+ return receiver.q29();
644
644
  }, null);
645
645
  }
646
646
  function logLevel$factory_0() {
647
647
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
648
- return receiver.o4d();
648
+ return receiver.f4c();
649
649
  }, null);
650
650
  }
651
651
  function shared$factory_0() {
652
652
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
653
- return receiver.g2b();
653
+ return receiver.a2a();
654
654
  }, null);
655
655
  }
656
656
  function strict$factory_0() {
657
657
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
658
- return receiver.q4d();
658
+ return receiver.h4c();
659
659
  }, null);
660
660
  }
661
661
  function main(args) {
@@ -686,7 +686,7 @@ function main(args) {
686
686
  // Inline function 'kotlin.contracts.contract' call
687
687
  var tmp = Companion_instance_4;
688
688
  var tmp_0 = compile$ref();
689
- tmp.k4b(tmp_0, convert$ref()).f3z(destination);
689
+ tmp.b4a(tmp_0, convert$ref()).w3x(destination);
690
690
  }
691
691
  function compile$ref() {
692
692
  var l = function (p0) {
@@ -730,8 +730,8 @@ function parser(source) {
730
730
  noWhenBranchMatchedException();
731
731
  }
732
732
  }
733
- var this_1 = tmp.s25_1;
734
- var tmp_0 = this_1.pk_1.u25_1.nk();
733
+ var this_1 = tmp.m24_1;
734
+ var tmp_0 = this_1.pk_1.o24_1.nk();
735
735
  // Inline function 'kotlin.collections.flatMap' call
736
736
  // Inline function 'kotlin.collections.flatMapTo' call
737
737
  var this_2 = this_1.qk_1;
@@ -739,7 +739,7 @@ function parser(source) {
739
739
  var tmp0_iterator = this_2.g();
740
740
  while (tmp0_iterator.h()) {
741
741
  var element = tmp0_iterator.i();
742
- var list = element.u25_1;
742
+ var list = element.o24_1;
743
743
  addAll(destination, list);
744
744
  }
745
745
  var this_3 = tmp_0.uk(destination).tk();
@@ -797,8 +797,8 @@ function _init_properties_CommandLineArguments_kt__b5v7hl() {
797
797
  }
798
798
  }
799
799
  //region block: post-declaration
800
- protoOf(parser$this$this$this$this$1).e23 = get_spec;
801
- protoOf(parser$this$this$this$this$1).t22 = get_logger;
800
+ protoOf(parser$this$this$this$this$1).y21 = get_spec;
801
+ protoOf(parser$this$this$this$this$1).n21 = get_logger;
802
802
  //endregion
803
803
  //region block: init
804
804
  Companion_instance_4 = new Companion();
@@ -285,20 +285,28 @@ export declare abstract class WsPrimitiveType {
285
285
  get name(): "Integer";
286
286
  get ordinal(): 1;
287
287
  };
288
+ static get Integer32(): WsPrimitiveType & {
289
+ get name(): "Integer32";
290
+ get ordinal(): 2;
291
+ };
288
292
  static get Number(): WsPrimitiveType & {
289
293
  get name(): "Number";
290
- get ordinal(): 2;
294
+ get ordinal(): 3;
295
+ };
296
+ static get Number32(): WsPrimitiveType & {
297
+ get name(): "Number32";
298
+ get ordinal(): 4;
291
299
  };
292
300
  static get Boolean(): WsPrimitiveType & {
293
301
  get name(): "Boolean";
294
- get ordinal(): 3;
302
+ get ordinal(): 5;
295
303
  };
296
304
  static get Bytes(): WsPrimitiveType & {
297
305
  get name(): "Bytes";
298
- get ordinal(): 4;
306
+ get ordinal(): 6;
299
307
  };
300
- get name(): "String" | "Integer" | "Number" | "Boolean" | "Bytes";
301
- get ordinal(): 0 | 1 | 2 | 3 | 4;
308
+ get name(): "String" | "Integer" | "Integer32" | "Number" | "Number32" | "Boolean" | "Bytes";
309
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
302
310
  static values(): Array<WsPrimitiveType>;
303
311
  static valueOf(value: string): WsPrimitiveType;
304
312
  }
@@ -82,8 +82,8 @@ import {
82
82
  import { generate2z40chlsobs62 as generate } from './wirespec-src-tools-generator.mjs';
83
83
  import { WirespecEmitter2ad9je4ecrvjk as WirespecEmitter } from './wirespec-src-compiler-emitters-wirespec.mjs';
84
84
  import {
85
- Companion_getInstance26ldgj18d7fn4 as Companion_getInstance,
86
- Companion_getInstance5ygybhpfa3ij as Companion_getInstance_0,
85
+ Companion_getInstance1eu1ler40job2 as Companion_getInstance,
86
+ Companion_getInstance3ql5ifssck6g1 as Companion_getInstance_0,
87
87
  } from './kotlin-openapi-bindings.mjs';
88
88
  import { Default_getInstance2o39jijms8bnj as Default_getInstance } from './kotlinx-serialization-kotlinx-serialization-json.mjs';
89
89
  import {
@@ -127,10 +127,10 @@ function Shared_initEntries() {
127
127
  if (Shared_entriesInitialized)
128
128
  return Unit_instance;
129
129
  Shared_entriesInitialized = true;
130
- Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().i2b_1);
131
- Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().x2b_1);
132
- Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().g2c_1);
133
- Shared_PYTHON_instance = new Shared('PYTHON', 3, PythonShared_instance.q2c_1);
130
+ Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().c2a_1);
131
+ Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().r2a_1);
132
+ Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().a2b_1);
133
+ Shared_PYTHON_instance = new Shared('PYTHON', 3, PythonShared_instance.k2b_1);
134
134
  }
135
135
  function Shared(name, ordinal, source) {
136
136
  Enum.call(this, name, ordinal);
@@ -255,13 +255,13 @@ function convert(source, converters, strict) {
255
255
  var tmp;
256
256
  switch (converters.r2_1) {
257
257
  case 0:
258
- tmp = produce_1(OpenAPIV2Parser_instance.g2f(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
258
+ tmp = produce_1(OpenAPIV2Parser_instance.a2e(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
259
259
  break;
260
260
  case 1:
261
- tmp = produce_1(OpenAPIV3Parser_instance.g2f(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
261
+ tmp = produce_1(OpenAPIV3Parser_instance.a2e(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
262
262
  break;
263
263
  case 2:
264
- tmp = produce_1(AvroParser_instance.g2f(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
264
+ tmp = produce_1(AvroParser_instance.a2e(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
265
265
  break;
266
266
  default:
267
267
  noWhenBranchMatchedException();
@@ -301,11 +301,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
301
301
  case 0:
302
302
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
303
303
 
304
- var this_0 = ast.s25_1;
304
+ var this_0 = ast.m24_1;
305
305
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
306
306
 
307
307
  var it = this_0.pk_1;
308
- var tmp_0 = (new WirespecEmitter()).j26(it, get_noLogger()).nk();
308
+ var tmp_0 = (new WirespecEmitter()).d25(it, get_noLogger()).nk();
309
309
  // Inline function 'kotlin.collections.flatMap' call
310
310
 
311
311
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -316,7 +316,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
316
316
  while (tmp0_iterator.h()) {
317
317
  var element = tmp0_iterator.i();
318
318
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
319
- var list = (new WirespecEmitter()).j26(element, get_noLogger());
319
+ var list = (new WirespecEmitter()).d25(element, get_noLogger());
320
320
  addAll(destination, list);
321
321
  }
322
322
 
@@ -325,11 +325,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
325
325
  case 1:
326
326
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
327
327
 
328
- var this_2 = ast.s25_1;
328
+ var this_2 = ast.m24_1;
329
329
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
330
330
 
331
331
  var it_0 = this_2.pk_1;
332
- var tmp_1 = (new TypeScriptEmitter()).j26(it_0, get_noLogger()).nk();
332
+ var tmp_1 = (new TypeScriptEmitter()).d25(it_0, get_noLogger()).nk();
333
333
  // Inline function 'kotlin.collections.flatMap' call
334
334
 
335
335
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -340,7 +340,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
340
340
  while (tmp0_iterator_0.h()) {
341
341
  var element_0 = tmp0_iterator_0.i();
342
342
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
343
- var list_0 = (new TypeScriptEmitter()).j26(element_0, get_noLogger());
343
+ var list_0 = (new TypeScriptEmitter()).d25(element_0, get_noLogger());
344
344
  addAll(destination_0, list_0);
345
345
  }
346
346
 
@@ -349,11 +349,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
349
349
  case 2:
350
350
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
351
351
 
352
- var this_4 = ast.s25_1;
352
+ var this_4 = ast.m24_1;
353
353
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
354
354
 
355
355
  var it_1 = this_4.pk_1;
356
- var tmp_2 = (new JavaEmitter(Companion_instance.c27(packageName), new EmitShared(emitShared))).j26(it_1, get_noLogger()).nk();
356
+ var tmp_2 = (new JavaEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(it_1, get_noLogger()).nk();
357
357
  // Inline function 'kotlin.collections.flatMap' call
358
358
 
359
359
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -364,7 +364,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
364
364
  while (tmp0_iterator_1.h()) {
365
365
  var element_1 = tmp0_iterator_1.i();
366
366
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
367
- var list_1 = (new JavaEmitter(Companion_instance.c27(packageName), new EmitShared(emitShared))).j26(element_1, get_noLogger());
367
+ var list_1 = (new JavaEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(element_1, get_noLogger());
368
368
  addAll(destination_1, list_1);
369
369
  }
370
370
 
@@ -373,11 +373,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
373
373
  case 3:
374
374
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
375
375
 
376
- var this_6 = ast.s25_1;
376
+ var this_6 = ast.m24_1;
377
377
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
378
378
 
379
379
  var it_2 = this_6.pk_1;
380
- var tmp_3 = (new KotlinEmitter(Companion_instance.c27(packageName), new EmitShared(emitShared))).j26(it_2, get_noLogger()).nk();
380
+ var tmp_3 = (new KotlinEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(it_2, get_noLogger()).nk();
381
381
  // Inline function 'kotlin.collections.flatMap' call
382
382
 
383
383
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -388,7 +388,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
388
388
  while (tmp0_iterator_2.h()) {
389
389
  var element_2 = tmp0_iterator_2.i();
390
390
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
391
- var list_2 = (new KotlinEmitter(Companion_instance.c27(packageName), new EmitShared(emitShared))).j26(element_2, get_noLogger());
391
+ var list_2 = (new KotlinEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(element_2, get_noLogger());
392
392
  addAll(destination_2, list_2);
393
393
  }
394
394
 
@@ -397,11 +397,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
397
397
  case 4:
398
398
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
399
399
 
400
- var this_8 = ast.s25_1;
400
+ var this_8 = ast.m24_1;
401
401
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
402
402
 
403
403
  var it_3 = this_8.pk_1;
404
- var tmp_4 = (new PythonEmitter(Companion_instance.c27(packageName), new EmitShared(emitShared))).j26(it_3, get_noLogger()).nk();
404
+ var tmp_4 = (new PythonEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(it_3, get_noLogger()).nk();
405
405
  // Inline function 'kotlin.collections.flatMap' call
406
406
 
407
407
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -412,7 +412,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
412
412
  while (tmp0_iterator_3.h()) {
413
413
  var element_3 = tmp0_iterator_3.i();
414
414
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
415
- var list_3 = (new PythonEmitter(Companion_instance.c27(packageName), new EmitShared(emitShared))).j26(element_3, get_noLogger());
415
+ var list_3 = (new PythonEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(element_3, get_noLogger());
416
416
  addAll(destination_3, list_3);
417
417
  }
418
418
 
@@ -428,10 +428,10 @@ function emit(wsAst, emitter, packageName, emitShared) {
428
428
  var tmp_5 = OpenAPIV2Emitter_getInstance();
429
429
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
430
430
 
431
- var this_10 = ast.s25_1;
431
+ var this_10 = ast.m24_1;
432
432
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
433
433
 
434
- var tmp_6 = this_10.pk_1.u25_1.nk();
434
+ var tmp_6 = this_10.pk_1.o24_1.nk();
435
435
  // Inline function 'kotlin.collections.flatMap' call
436
436
 
437
437
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -442,15 +442,15 @@ function emit(wsAst, emitter, packageName, emitShared) {
442
442
  while (tmp0_iterator_4.h()) {
443
443
  var element_4 = tmp0_iterator_4.i();
444
444
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
445
- var list_4 = element_4.u25_1;
445
+ var list_4 = element_4.o24_1;
446
446
  addAll(destination_4, list_4);
447
447
  }
448
448
 
449
449
  var tmp$ret$29 = tmp_6.uk(destination_4);
450
- var this_12 = tmp_5.n2f(tmp$ret$29);
450
+ var this_12 = tmp_5.e2e(tmp$ret$29);
451
451
  // Inline function 'kotlin.contracts.contract' call
452
452
 
453
- var this_13 = encode(Companion_getInstance().y17())(this_12);
453
+ var this_13 = encode(Companion_getInstance().v17())(this_12);
454
454
  // Inline function 'kotlin.contracts.contract' call
455
455
 
456
456
  // Inline function 'kotlin.contracts.contract' call
@@ -470,10 +470,10 @@ function emit(wsAst, emitter, packageName, emitShared) {
470
470
  var tmp_7 = OpenAPIV3Emitter_getInstance();
471
471
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
472
472
 
473
- var this_14 = ast.s25_1;
473
+ var this_14 = ast.m24_1;
474
474
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
475
475
 
476
- var tmp_8 = this_14.pk_1.u25_1.nk();
476
+ var tmp_8 = this_14.pk_1.o24_1.nk();
477
477
  // Inline function 'kotlin.collections.flatMap' call
478
478
 
479
479
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -484,15 +484,15 @@ function emit(wsAst, emitter, packageName, emitShared) {
484
484
  while (tmp0_iterator_5.h()) {
485
485
  var element_5 = tmp0_iterator_5.i();
486
486
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
487
- var list_5 = element_5.u25_1;
487
+ var list_5 = element_5.o24_1;
488
488
  addAll(destination_5, list_5);
489
489
  }
490
490
 
491
491
  var tmp$ret$39 = tmp_8.uk(destination_5);
492
- var this_16 = tmp_7.m2f(tmp$ret$39, null);
492
+ var this_16 = tmp_7.d2e(tmp$ret$39, null);
493
493
  // Inline function 'kotlin.contracts.contract' call
494
494
 
495
- var this_17 = encode(Companion_getInstance_0().y17())(this_16);
495
+ var this_17 = encode(Companion_getInstance_0().v17())(this_16);
496
496
  // Inline function 'kotlin.contracts.contract' call
497
497
 
498
498
  // Inline function 'kotlin.contracts.contract' call
@@ -509,11 +509,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
509
509
 
510
510
  // Inline function 'arrow.core.NonEmptyList.map' call
511
511
 
512
- var this_18 = ast.s25_1;
512
+ var this_18 = ast.m24_1;
513
513
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
514
514
 
515
515
  var ast_0 = this_18.pk_1;
516
- var tmp_9 = AvroEmitter_getInstance().c2e(ast_0);
516
+ var tmp_9 = AvroEmitter_getInstance().w2c(ast_0);
517
517
  // Inline function 'kotlin.collections.map' call
518
518
 
519
519
  var this_19 = this_18.qk_1;
@@ -524,7 +524,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
524
524
  while (tmp0_iterator_6.h()) {
525
525
  var item = tmp0_iterator_6.i();
526
526
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
527
- var tmp$ret$46 = AvroEmitter_getInstance().c2e(item);
527
+ var tmp$ret$46 = AvroEmitter_getInstance().w2c(item);
528
528
  destination_6.e(tmp$ret$46);
529
529
  }
530
530
 
@@ -704,10 +704,10 @@ defineProp(protoOf(Emitters), 'name', protoOf(Emitters).s2);
704
704
  defineProp(protoOf(Emitters), 'ordinal', protoOf(Emitters).t2);
705
705
  defineProp(protoOf(Converters), 'name', protoOf(Converters).s2);
706
706
  defineProp(protoOf(Converters), 'ordinal', protoOf(Converters).t2);
707
- protoOf(parse$1).e23 = get_spec;
708
- protoOf(parse$1).t22 = get_logger;
709
- protoOf(generate$this$1).e23 = get_spec;
710
- protoOf(generate$this$1).t22 = get_logger;
707
+ protoOf(parse$1).y21 = get_spec;
708
+ protoOf(parse$1).n21 = get_logger;
709
+ protoOf(generate$this$1).y21 = get_spec;
710
+ protoOf(generate$this$1).n21 = get_logger;
711
711
  //endregion
712
712
  //region block: exports
713
713
  Shared.values = values;