@continuous-excellence/coupling-cli 1.1.424 → 1.1.425

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 (35) hide show
  1. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Auth0Environment.mjs +8 -8
  2. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CliScope.mjs +4 -4
  3. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigCommand.mjs +12 -12
  4. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigFileSource.mjs +6 -6
  5. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs +61 -0
  6. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs.map +1 -0
  7. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCliConfig.mjs +18 -18
  8. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +11 -11
  9. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs +3 -3
  10. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs.map +1 -1
  11. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Versions.mjs +33 -0
  12. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Versions.mjs.map +1 -0
  13. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs +7 -7
  14. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PartyListQuery.mjs +13 -13
  15. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PartyListQuery_ResponseAdapter.mjs +11 -11
  16. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs +27 -27
  17. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs +17 -17
  18. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs +13 -13
  19. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs +11 -11
  20. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs +13 -13
  21. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs +9 -9
  22. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs +42 -42
  23. package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +2 -2
  24. package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs +27 -26
  25. package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs.map +1 -1
  26. package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/Localization.mjs +1 -1
  27. package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs +2 -2
  28. package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/CommandLineParser.mjs +1 -1
  29. package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/options/PromptOptions.mjs +1 -1
  30. package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
  31. package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  32. package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +1 -1
  33. package/package.json +1 -1
  34. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Welcome.mjs +0 -45
  35. package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Welcome.mjs.map +0 -1
@@ -17,7 +17,7 @@ function Companion() {
17
17
  class $ {
18
18
  constructor() {
19
19
  Companion_instance = this;
20
- this.d6u_1 = mapOf([to('production', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://coupling.zegreatrob.com/api')), to('prerelease', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://prerelease.coupling.zegreatrob.com/api')), to('sandbox', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://sandbox.coupling.zegreatrob.com/api')), to('local', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://localhost/api'))]);
20
+ this.e6u_1 = mapOf([to('production', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://coupling.zegreatrob.com/api')), to('prerelease', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://prerelease.coupling.zegreatrob.com/api')), to('sandbox', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://sandbox.coupling.zegreatrob.com/api')), to('local', new (Auth0Environment())('V4sQOGgllEvZC328pnLhbrfr7VJjbOUx', 'https://localhost/api'))]);
21
21
  }
22
22
  }
23
23
  initMetadataForCompanion($);
@@ -37,15 +37,15 @@ function Auth0Environment() {
37
37
  class $ {
38
38
  constructor(clientId, audience) {
39
39
  Companion_getInstance();
40
- this.e6u_1 = clientId;
41
- this.f6u_1 = audience;
40
+ this.f6u_1 = clientId;
41
+ this.g6u_1 = audience;
42
42
  }
43
43
  toString() {
44
- return 'Auth0Environment(clientId=' + this.e6u_1 + ', audience=' + this.f6u_1 + ')';
44
+ return 'Auth0Environment(clientId=' + this.f6u_1 + ', audience=' + this.g6u_1 + ')';
45
45
  }
46
46
  hashCode() {
47
- var result = getStringHashCode(this.e6u_1);
48
- result = imul(result, 31) + getStringHashCode(this.f6u_1) | 0;
47
+ var result = getStringHashCode(this.f6u_1);
48
+ result = imul(result, 31) + getStringHashCode(this.g6u_1) | 0;
49
49
  return result;
50
50
  }
51
51
  equals(other) {
@@ -53,10 +53,10 @@ function Auth0Environment() {
53
53
  return true;
54
54
  if (!(other instanceof Auth0Environment()))
55
55
  return false;
56
- if (!(this.e6u_1 === other.e6u_1))
57
- return false;
58
56
  if (!(this.f6u_1 === other.f6u_1))
59
57
  return false;
58
+ if (!(this.g6u_1 === other.g6u_1))
59
+ return false;
60
60
  return true;
61
61
  }
62
62
  }
@@ -13,7 +13,7 @@ import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../
13
13
  //region block: pre-declaration
14
14
  //endregion
15
15
  function *_generator_joinAll__v1pfh($this, $completion) {
16
- var job = $this.g6u_1.rd(Key_instance);
16
+ var job = $this.h6u_1.rd(Key_instance);
17
17
  var tmp1_safe_receiver = job == null ? null : job.cy();
18
18
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toList(tmp1_safe_receiver);
19
19
  if (tmp2_safe_receiver == null)
@@ -30,12 +30,12 @@ function CliScope() {
30
30
  if (CliScopeClass === VOID) {
31
31
  class $ {
32
32
  constructor() {
33
- this.g6u_1 = SupervisorJob();
33
+ this.h6u_1 = SupervisorJob();
34
34
  }
35
35
  jw() {
36
- return this.g6u_1;
36
+ return this.h6u_1;
37
37
  }
38
- h6u($completion) {
38
+ i6u($completion) {
39
39
  return suspendOrReturn(/*#__NOINLINE__*/_generator_joinAll__v1pfh.bind(VOID, this), $completion);
40
40
  }
41
41
  }
@@ -47,20 +47,20 @@ import { writeDataToFilepwg97q1c4uym as writeDataToFile } from './Main.js.mjs';
47
47
  //endregion
48
48
  function _get_partyId__g79dgw($this) {
49
49
  var tmp = KProperty1();
50
- return $this.x6u_1.fp($this, getPropertyCallableRef('partyId', 1, tmp, ConfigCommand$_get_partyId_$ref_ivxfj0_0(), null));
50
+ return $this.y6u_1.fp($this, getPropertyCallableRef('partyId', 1, tmp, ConfigCommand$_get_partyId_$ref_ivxfj0_0(), null));
51
51
  }
52
52
  var sam$kotlin_properties_ReadOnlyProperty$0Class;
53
53
  function sam$kotlin_properties_ReadOnlyProperty$0() {
54
54
  if (sam$kotlin_properties_ReadOnlyProperty$0Class === VOID) {
55
55
  class $ {
56
56
  constructor(function_0) {
57
- this.z6u_1 = function_0;
57
+ this.a6v_1 = function_0;
58
58
  }
59
59
  fp(thisRef, property) {
60
- return this.z6u_1(thisRef, property);
60
+ return this.a6v_1(thisRef, property);
61
61
  }
62
62
  h5() {
63
- return this.z6u_1;
63
+ return this.a6v_1;
64
64
  }
65
65
  equals(other) {
66
66
  var tmp;
@@ -91,13 +91,13 @@ function sam$kotlin_properties_ReadOnlyProperty$0_0() {
91
91
  if (sam$kotlin_properties_ReadOnlyProperty$0Class_0 === VOID) {
92
92
  class $ {
93
93
  constructor(function_0) {
94
- this.a6v_1 = function_0;
94
+ this.b6v_1 = function_0;
95
95
  }
96
96
  fp(thisRef, property) {
97
- return this.a6v_1(thisRef, property);
97
+ return this.b6v_1(thisRef, property);
98
98
  }
99
99
  h5() {
100
- return this.a6v_1;
100
+ return this.b6v_1;
101
101
  }
102
102
  equals(other) {
103
103
  var tmp;
@@ -153,7 +153,7 @@ function ConfigCommand$lambda$lambda($key, $config) {
153
153
  function ConfigCommand$lambda(this$0) {
154
154
  return ($this$context) => {
155
155
  var configFileSource = new (ConfigFileSource())($this$context.i5s_1);
156
- var config = configFileSource.c6v_1;
156
+ var config = configFileSource.d6v_1;
157
157
  var tmp;
158
158
  if (!(config == null)) {
159
159
  // Inline function 'com.github.ajalt.clikt.core.findOrSetObject' call
@@ -268,20 +268,20 @@ function ConfigCommand() {
268
268
  var tmp1_elvis_lhs = this_0.e64();
269
269
  var tmp_4 = this_0.q63(valueTransform, tmp_0, tmp_1, tmp_2, VOID, tmp_3, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_elvis_lhs == null ? null : tmp1_elvis_lhs);
270
270
  var tmp_5 = KProperty1();
271
- tmp.x6u_1 = tmp_4.x63(this, getPropertyCallableRef('partyId', 1, tmp_5, ConfigCommand$_get_partyId_$ref_ivxfj0(), null));
271
+ tmp.y6u_1 = tmp_4.x63(this, getPropertyCallableRef('partyId', 1, tmp_5, ConfigCommand$_get_partyId_$ref_ivxfj0(), null));
272
272
  var tmp_6 = this;
273
273
  // Inline function 'com.github.ajalt.clikt.core.findOrSetObject' call
274
274
  var tmp_7 = ConfigCommand$config$delegate$lambda('config');
275
- tmp_6.y6u_1 = new (sam$kotlin_properties_ReadOnlyProperty$0_0())(tmp_7);
275
+ tmp_6.z6u_1 = new (sam$kotlin_properties_ReadOnlyProperty$0_0())(tmp_7);
276
276
  }
277
277
  v3c() {
278
278
  var tmp = KProperty1();
279
- return this.y6u_1.fp(this, getPropertyCallableRef('config', 1, tmp, ConfigCommand$_get_config_$ref_4k8h59(), null));
279
+ return this.z6u_1.fp(this, getPropertyCallableRef('config', 1, tmp, ConfigCommand$_get_config_$ref_4k8h59(), null));
280
280
  }
281
281
  k5e($completion) {
282
282
  var configFilePath = plus(this.p5o().q5p_1('PWD'), '/.coupling');
283
283
  // Inline function 'kotlin.let' call
284
- var it = this.v3c().f6v(_get_partyId__g79dgw(this));
284
+ var it = this.v3c().g6v(_get_partyId__g79dgw(this));
285
285
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
286
286
  var this_0 = Default_getInstance();
287
287
  // Inline function 'kotlinx.serialization.serializer' call
@@ -83,7 +83,7 @@ function kebabToCamelCase($this, _this__u8e3s4) {
83
83
  return pattern.ci(_this__u8e3s4, transform);
84
84
  }
85
85
  function getConfigFromFile($this) {
86
- var tmp0_elvis_lhs = readFromFile('' + $this.b6v_1('PWD') + '/.coupling');
86
+ var tmp0_elvis_lhs = readFromFile('' + $this.c6v_1('PWD') + '/.coupling');
87
87
  var tmp;
88
88
  if (tmp0_elvis_lhs == null) {
89
89
  return null;
@@ -112,10 +112,10 @@ function ConfigFileSource() {
112
112
  if (ConfigFileSourceClass === VOID) {
113
113
  class $ {
114
114
  constructor(envvarReader) {
115
- this.b6v_1 = envvarReader;
116
- this.c6v_1 = getConfigFromFile(this);
115
+ this.c6v_1 = envvarReader;
116
+ this.d6v_1 = getConfigFromFile(this);
117
117
  var tmp = this;
118
- var tmp0_safe_receiver = this.c6v_1;
118
+ var tmp0_safe_receiver = this.d6v_1;
119
119
  var tmp_0;
120
120
  if (tmp0_safe_receiver == null) {
121
121
  tmp_0 = null;
@@ -130,10 +130,10 @@ function ConfigFileSource() {
130
130
  var tmp$ret$1 = isInterface(this_2, KSerializer()) ? this_2 : THROW_CCE();
131
131
  tmp_0 = this_0.w3x(tmp$ret$1, tmp0_safe_receiver);
132
132
  }
133
- tmp.d6v_1 = tmp_0;
133
+ tmp.e6v_1 = tmp_0;
134
134
  }
135
135
  z63(context, option) {
136
- var tmp0_elvis_lhs = this.d6v_1;
136
+ var tmp0_elvis_lhs = this.e6v_1;
137
137
  var tmp;
138
138
  if (tmp0_elvis_lhs == null) {
139
139
  return emptyList();
@@ -0,0 +1,61 @@
1
+ import { PrintMessagencuza8ausr82 as PrintMessage } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs';
2
+ import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
3
+ import { getEnv22ukahrqwisae as getEnv } from './Main.js.mjs';
4
+ import { SuspendingCliktCommand1zyftwh5k9ke9 as SuspendingCliktCommand } from '../../../../../clikt-clikt-mordant/com/github/ajalt/clikt/command/SuspendingCliktCommand.mjs';
5
+ import { Versions_instancerbry3ump1faj as Versions_instance } from './Versions.mjs';
6
+ import { setOf1u3mizs95ngxo as setOf } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs';
7
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
8
+ import { eagerOption24qoznx4xo6ti as eagerOption } from '../../../../../clikt-clikt/com/github/ajalt/clikt/parameters/options/EagerOption.mjs';
9
+ import { context2q25b9moksyfl as context } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs';
10
+ import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
11
+ //region block: imports
12
+ //endregion
13
+ //region block: pre-declaration
14
+ //endregion
15
+ function CouplingCli$lambda($version, $this) {
16
+ return ($this$eagerOption) => {
17
+ var it = $version;
18
+ var tmp$ret$0 = $this.o5n_1 + ' version ' + it;
19
+ throw PrintMessage().h5w(tmp$ret$0);
20
+ };
21
+ }
22
+ function CouplingCli$lambda_0($this$context) {
23
+ var tmp = $this$context;
24
+ tmp.i5s_1 = CouplingCli$lambda$lambda;
25
+ return Unit_instance;
26
+ }
27
+ function CouplingCli$lambda$lambda(key) {
28
+ return getEnv(key);
29
+ }
30
+ var CouplingCliClass;
31
+ function CouplingCli() {
32
+ if (CouplingCliClass === VOID) {
33
+ class $ extends SuspendingCliktCommand() {
34
+ constructor() {
35
+ super();
36
+ // Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
37
+ var version = Versions_instance.u6t_1;
38
+ var help = 'Show the version and exit';
39
+ var names = setOf('--version');
40
+ eagerOption(this, names, help, VOID, VOID, VOID, CouplingCli$lambda(version, this));
41
+ context(this, CouplingCli$lambda_0);
42
+ }
43
+ k5e($completion) {
44
+ if (this.p5o().u5p_1.o1()) {
45
+ this.a5p('Welcome to Coupling CLI.');
46
+ }
47
+ return Unit_instance;
48
+ }
49
+ }
50
+ initMetadataForClass($, 'CouplingCli', CouplingCli, VOID, VOID, [0]);
51
+ CouplingCliClass = $;
52
+ }
53
+ return CouplingCliClass;
54
+ }
55
+ //region block: exports
56
+ export {
57
+ CouplingCli as CouplingCli1ycn2svi8m6oo,
58
+ };
59
+ //endregion
60
+
61
+ //# sourceMappingURL=CouplingCli.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/CouplingCli.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/EagerOption.kt"],"sourcesContent":[null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["CouplingCli$lambda","CouplingCli$lambda$lambda","run","$completion"],"mappings":";;;;;;;;;;;;;;2BAqBusFA,C,eAAAA,E;SAAAC,CAAA,iBAAAA,KAAA;A,aAA6B,Q;QCmD1pF,YAAxB,KAAwB,CAAxB,KAAwB,GAAb,WAAa,GAAH,E;IDnDkoF,yBAAmB,SAAnB,C;EAAqC,C;C;6BAX9tFD,CAAA,aAAAA,EAAA;A,YACJ,a;EAAA,YAAa,yB;EACjB,oB;AAAA,C;kCADiBC,CAAE,GAAFA,EAAA;A,EAAoB,OAAX,OAAO,GAAP,C;AAAY,C;;;;;;;;wCAFa,K;mBC2DxC,2B;oBAEM,MAAM,WAAN,C;QAGlB,YDhEC,ICgED,EAAY,KAAZ,EAAmB,IAAnB,oBAAyB,4BDhExB,ICgEwB,CAAzB,C;QD/DC,cAAQ,oBAAR,C;;SAKaC,CAAAC,WAAAD,EAAU;A,QACnB,IAAA,IAAK,MAAkC,CAAnB,KAAmB,KAAvC,C,CAAkD;A,UAClD,SAAK,0BAAL,C;QACJ,C;QACJ,oB;MAAA,C;;;;;;;;;;;"}
@@ -46,21 +46,21 @@ function $serializer() {
46
46
  $serializer_instance = this;
47
47
  var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('com.zegreatrob.coupling.cli.CouplingCliConfig', this, 1);
48
48
  tmp0_serialDesc.d28('partyId', true);
49
- this.g6v_1 = tmp0_serialDesc;
49
+ this.w6v_1 = tmp0_serialDesc;
50
50
  }
51
- h6v(encoder, value) {
52
- var tmp0_desc = this.g6v_1;
51
+ x6v(encoder, value) {
52
+ var tmp0_desc = this.w6v_1;
53
53
  var tmp1_output = encoder.m20(tmp0_desc);
54
- if (tmp1_output.k22(tmp0_desc, 0) ? true : !(value.e6v_1 == null)) {
55
- tmp1_output.g22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.e6v_1);
54
+ if (tmp1_output.k22(tmp0_desc, 0) ? true : !(value.f6v_1 == null)) {
55
+ tmp1_output.g22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.f6v_1);
56
56
  }
57
57
  tmp1_output.n20(tmp0_desc);
58
58
  }
59
59
  l1w(encoder, value) {
60
- return this.h6v(encoder, value instanceof CouplingCliConfig() ? value : THROW_CCE());
60
+ return this.x6v(encoder, value instanceof CouplingCliConfig() ? value : THROW_CCE());
61
61
  }
62
62
  m1w(decoder) {
63
- var tmp0_desc = this.g6v_1;
63
+ var tmp0_desc = this.w6v_1;
64
64
  var tmp1_flag = true;
65
65
  var tmp2_index = 0;
66
66
  var tmp3_bitMask0 = 0;
@@ -85,10 +85,10 @@ function $serializer() {
85
85
  }
86
86
  }
87
87
  tmp5_input.n20(tmp0_desc);
88
- return CouplingCliConfig().i6v(tmp3_bitMask0, tmp4_local0, null);
88
+ return CouplingCliConfig().y6v(tmp3_bitMask0, tmp4_local0, null);
89
89
  }
90
90
  k1w() {
91
- return this.g6v_1;
91
+ return this.w6v_1;
92
92
  }
93
93
  s28() {
94
94
  // Inline function 'kotlin.arrayOf' call
@@ -115,35 +115,35 @@ function CouplingCliConfig() {
115
115
  class $ {
116
116
  constructor(partyId) {
117
117
  partyId = partyId === VOID ? null : partyId;
118
- this.e6v_1 = partyId;
118
+ this.f6v_1 = partyId;
119
119
  }
120
- f6v(partyId) {
120
+ g6v(partyId) {
121
121
  return new (CouplingCliConfig())(partyId);
122
122
  }
123
123
  toString() {
124
- return 'CouplingCliConfig(partyId=' + toString(this.e6v_1) + ')';
124
+ return 'CouplingCliConfig(partyId=' + toString(this.f6v_1) + ')';
125
125
  }
126
126
  hashCode() {
127
- return this.e6v_1 == null ? 0 : this.e6v_1.hashCode();
127
+ return this.f6v_1 == null ? 0 : this.f6v_1.hashCode();
128
128
  }
129
129
  equals(other) {
130
130
  if (this === other)
131
131
  return true;
132
132
  if (!(other instanceof CouplingCliConfig()))
133
133
  return false;
134
- if (!equals(this.e6v_1, other.e6v_1))
134
+ if (!equals(this.f6v_1, other.f6v_1))
135
135
  return false;
136
136
  return true;
137
137
  }
138
- static i6v(seen0, partyId, serializationConstructorMarker) {
138
+ static y6v(seen0, partyId, serializationConstructorMarker) {
139
139
  if (!(0 === (0 & seen0))) {
140
- throwMissingFieldException(seen0, 0, $serializer_getInstance().g6v_1);
140
+ throwMissingFieldException(seen0, 0, $serializer_getInstance().w6v_1);
141
141
  }
142
142
  var $this = createThis(this);
143
143
  if (0 === (seen0 & 1))
144
- $this.e6v_1 = null;
144
+ $this.f6v_1 = null;
145
145
  else
146
- $this.e6v_1 = partyId;
146
+ $this.f6v_1 = partyId;
147
147
  return $this;
148
148
  }
149
149
  }
@@ -42,13 +42,13 @@ import { launch1c91vkjzdi9sd as launch } from '../../../../../kotlinx-coroutines
42
42
  //endregion
43
43
  function *_generator_invoke__zhh2q8($this, $this$launch, $completion) {
44
44
  var client = new (KtorAuth0Client())();
45
- var tmp = client.n4f($this.j6v_1.f6u_1, $this.j6v_1.e6u_1, $completion);
45
+ var tmp = client.n4f($this.z6v_1.g6u_1, $this.z6v_1.f6u_1, $completion);
46
46
  if (tmp === get_COROUTINE_SUSPENDED())
47
47
  tmp = yield tmp;
48
48
  var result = tmp;
49
- $this.k6v_1.a5p('Your user code is: ' + result.h4f_1);
50
- $this.k6v_1.a5p('Please follow link to authenticate: ' + result.g4f_1);
51
- var tmp_0 = pollForSuccess($this.k6v_1, client, $this.j6v_1, result.i4f_1, result.j4f_1, $completion);
49
+ $this.a6w_1.a5p('Your user code is: ' + result.h4f_1);
50
+ $this.a6w_1.a5p('Please follow link to authenticate: ' + result.g4f_1);
51
+ var tmp_0 = pollForSuccess($this.a6w_1, client, $this.z6v_1, result.i4f_1, result.j4f_1, $completion);
52
52
  if (tmp_0 === get_COROUTINE_SUSPENDED())
53
53
  tmp_0 = yield tmp_0;
54
54
  var pollResult = tmp_0;
@@ -60,17 +60,17 @@ function *_generator_invoke__zhh2q8($this, $this$launch, $completion) {
60
60
  put(builder, 'refreshToken', pollResult == null ? null : pollResult.s4f_1);
61
61
  var tmp$ret$1 = builder.e3z();
62
62
  writeDataToFile(tmp_1, tmp$ret$1.toString());
63
- $this.k6v_1.a5p('Login complete!');
63
+ $this.a6w_1.a5p('Login complete!');
64
64
  return Unit_instance;
65
65
  }
66
66
  function _get_env__e67txg($this) {
67
67
  var tmp = KProperty1();
68
- return $this.a6w_1.fp($this, getPropertyCallableRef('env', 1, tmp, Login$_get_env_$ref_pawiqw_0(), null));
68
+ return $this.q6w_1.fp($this, getPropertyCallableRef('env', 1, tmp, Login$_get_env_$ref_pawiqw_0(), null));
69
69
  }
70
70
  function *_generator_pollForSuccess__modt2p($this, _this__u8e3s4, environment, deviceCode, interval, $completion) {
71
71
  var pollResult;
72
72
  $l$loop: while (true) {
73
- var tmp = _this__u8e3s4.m4f(environment.e6u_1, deviceCode, $completion);
73
+ var tmp = _this__u8e3s4.m4f(environment.f6u_1, deviceCode, $completion);
74
74
  if (tmp === get_COROUTINE_SUSPENDED())
75
75
  tmp = yield tmp;
76
76
  pollResult = tmp;
@@ -103,8 +103,8 @@ function Login$run$slambda() {
103
103
  if (Login$run$slambdaClass === VOID) {
104
104
  class $ {
105
105
  constructor($environment, this$0) {
106
- this.j6v_1 = $environment;
107
- this.k6v_1 = this$0;
106
+ this.z6v_1 = $environment;
107
+ this.a6w_1 = this$0;
108
108
  }
109
109
  a1h($this$launch, $completion) {
110
110
  return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this, $this$launch), $completion);
@@ -133,10 +133,10 @@ function Login() {
133
133
  var tmp = this;
134
134
  var tmp_0 = default_0(option(this, []), 'production');
135
135
  var tmp_1 = KProperty1();
136
- tmp.a6w_1 = tmp_0.x63(this, getPropertyCallableRef('env', 1, tmp_1, Login$_get_env_$ref_pawiqw(), null));
136
+ tmp.q6w_1 = tmp_0.x63(this, getPropertyCallableRef('env', 1, tmp_1, Login$_get_env_$ref_pawiqw(), null));
137
137
  }
138
138
  k5e($completion) {
139
- var environment = Companion_getInstance_0().d6u_1.o4(_get_env__e67txg(this));
139
+ var environment = Companion_getInstance_0().e6u_1.o4(_get_env__e67txg(this));
140
140
  if (!(environment == null)) {
141
141
  var tmp = get_cliScope();
142
142
  launch(tmp, VOID, VOID, Login$run$slambda_0(environment, this));
@@ -11,7 +11,7 @@ import {
11
11
  startCoroutineUninterceptedOrReturnGeneratorVersion1cv0wx9z0l0zn as startCoroutineUninterceptedOrReturnGeneratorVersion,
12
12
  } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
13
13
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
14
- import { Welcome239n5uwhd0l1a as Welcome } from './Welcome.mjs';
14
+ import { CouplingCli1ycn2svi8m6oo as CouplingCli } from './CouplingCli.mjs';
15
15
  import { Login123mdhjyjrbrm as Login } from './Login.mjs';
16
16
  import { subcommands1t5srr48gscgb as subcommands } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs';
17
17
  import { ConfigCommand32320kdqfgpio as ConfigCommand } from './ConfigCommand.mjs';
@@ -46,7 +46,7 @@ function *_generator_main__qlaff5(args, $completion) {
46
46
  var tmp = main(cli(), platformArgCorrection(args), $completion);
47
47
  if (tmp === get_COROUTINE_SUSPENDED())
48
48
  tmp = yield tmp;
49
- var tmp_0 = get_cliScope().h6u($completion);
49
+ var tmp_0 = get_cliScope().i6u($completion);
50
50
  if (tmp_0 === get_COROUTINE_SUSPENDED())
51
51
  tmp_0 = yield tmp_0;
52
52
  return Unit_instance;
@@ -57,7 +57,7 @@ function main_0(args, $completion) {
57
57
  function cli(cannon) {
58
58
  cannon = cannon === VOID ? null : cannon;
59
59
  _init_properties_Main_kt__xi25uv();
60
- return subcommands(subcommands(subcommands(new (Welcome())(), [new (Login())()]), [new (ConfigCommand())()]), [party(cannon)]);
60
+ return subcommands(subcommands(subcommands(new (CouplingCli())(), [new (Login())()]), [new (ConfigCommand())()]), [party(cannon)]);
61
61
  }
62
62
  function getAccessToken() {
63
63
  _init_properties_Main_kt__xi25uv();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Main.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-cliScope>","<get-couplingHomeDirectory>","<get-configFilePath>","<generator-main>","args","$completion","main","cli","cannon","getAccessToken","<init properties Main.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAWAA,CAAAA,EAAA;A;EAAA,e;AAAW,C;;kCAkBXC,CAAAA,EAAA;A;EAAA,4B;AAAwB,C;;2BACxBC,CAAAA,EAAA;A;EAAA,qB;AAAiB,C;;iCAjBTC,CAASC,I,EAATC,WAAAF,EAA8B;A,MAE7B,WADL,KACK,EAAK,sBAAsB,IAAtB,CAAL,c;;;MACI,QAAT,cAAS,iB;;;EACb,oB;AAAA,C;eAJQG,CAASF,I,EAATC,WAAAC,E;;C;YAMRC,CAAQC,MAARD,EAAwE;A,6BAAjB,I;;EAGxB,OAA1B,YADA,YADA,+BAAY,iBAAZ,CACA,EAAY,yBAAZ,CACA,EAAY,OAAM,MAAN,EAAZ,C;AAAyB,C;uBAU9BE,CAAAA,EAAuB;A;MAAA,wBAAO,2BAAP,C;;EAAA,2B;eAChB,aAAa,oBAAb,C;;;aACM,+B;QACE,qBAAG,eAAH,EAAG,CAAH,IAAc,aAAd,C;QAA8B,2EAA9B,kBAA8B,C;UAAe,oCAA7C,kBAA6C,M;;UAHrC,c;;EAG8C,U;AAAD,C;;yCAnCpEC,CAAAA,E;;;;iCA6B+B,OAAO,MAAP,C,GAAe,Y;qBACvB,2B,GAAqB,c;;C;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Main.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-cliScope>","<get-couplingHomeDirectory>","<get-configFilePath>","<generator-main>","args","$completion","main","cli","cannon","getAccessToken","<init properties Main.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAWAA,CAAAA,EAAA;A;EAAA,e;AAAW,C;;kCAkBXC,CAAAA,EAAA;A;EAAA,4B;AAAwB,C;;2BACxBC,CAAAA,EAAA;A;EAAA,qB;AAAiB,C;;iCAjBTC,CAASC,I,EAATC,WAAAF,EAA8B;A,MAE7B,WADL,KACK,EAAK,sBAAsB,IAAtB,CAAL,c;;;MACI,QAAT,cAAS,iB;;;EACb,oB;AAAA,C;eAJQG,CAASF,I,EAATC,WAAAC,E;;C;YAMRC,CAAQC,MAARD,EAA4E;A,6BAArB,I;;EAGxB,OAA1B,YADA,YADA,mCAAY,iBAAZ,CACA,EAAY,yBAAZ,CACA,EAAY,OAAM,MAAN,EAAZ,C;AAAyB,C;uBAU9BE,CAAAA,EAAuB;A;MAAA,wBAAO,2BAAP,C;;EAAA,2B;eAChB,aAAa,oBAAb,C;;;aACM,+B;QACE,qBAAG,eAAH,EAAG,CAAH,IAAc,aAAd,C;QAA8B,2EAA9B,kBAA8B,C;UAAe,oCAA7C,kBAA6C,M;;UAHrC,c;;EAG8C,U;AAAD,C;;yCAnCpEC,CAAAA,E;;;;iCA6B+B,OAAO,MAAP,C,GAAe,Y;qBACvB,2B,GAAqB,c;;C;;;;;;;;"}
@@ -0,0 +1,33 @@
1
+ import { initMetadataForObject1cxne3s9w65el as initMetadataForObject } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
2
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
3
+ //region block: imports
4
+ //endregion
5
+ //region block: pre-declaration
6
+ //endregion
7
+ var VersionsClass;
8
+ function Versions() {
9
+ if (VersionsClass === VOID) {
10
+ class $ {
11
+ constructor() {
12
+ this.u6t_1 = '1.1.425';
13
+ }
14
+ }
15
+ initMetadataForObject($, 'Versions');
16
+ VersionsClass = $;
17
+ }
18
+ return VersionsClass;
19
+ }
20
+ var Versions_instance;
21
+ function Versions_getInstance() {
22
+ return Versions_instance;
23
+ }
24
+ //region block: init
25
+ Versions_instance = new (Versions())();
26
+ //endregion
27
+ //region block: exports
28
+ export {
29
+ Versions_instance as Versions_instancerbry3ump1faj,
30
+ };
31
+ //endregion
32
+
33
+ //# sourceMappingURL=Versions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../cli/build/generated-sources/templates/kotlin/main/Versions.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;QAGkC,sB;;;;;;;;;;;;;;;;;;;"}
@@ -32,7 +32,7 @@ function withSdk(scope, env, echo, cannon, doWork) {
32
32
  return tmp;
33
33
  }
34
34
  function loadSdk(env, echo) {
35
- var environment = Companion_getInstance().d6u_1.o4(env);
35
+ var environment = Companion_getInstance().e6u_1.o4(env);
36
36
  if (!(environment == null)) {
37
37
  var accessToken = getAccessToken();
38
38
  if (accessToken == null) {
@@ -52,10 +52,10 @@ function actionCannon(accessToken, environment) {
52
52
  return sdk;
53
53
  }
54
54
  function audienceHost(_this__u8e3s4) {
55
- return 'https://' + getHost(_this__u8e3s4.f6u_1);
55
+ return 'https://' + getHost(_this__u8e3s4.g6u_1);
56
56
  }
57
57
  function *_generator_invoke__zhh2q8($this, $this$async, $completion) {
58
- var tmp = $this.q6w_1($this.r6w_1, $completion);
58
+ var tmp = $this.r6w_1($this.s6w_1, $completion);
59
59
  if (tmp === get_COROUTINE_SUSPENDED())
60
60
  tmp = yield tmp;
61
61
  return Unit_instance;
@@ -65,8 +65,8 @@ function withSdk$slambda() {
65
65
  if (withSdk$slambdaClass === VOID) {
66
66
  class $ {
67
67
  constructor($doWork, $it) {
68
- this.q6w_1 = $doWork;
69
- this.r6w_1 = $it;
68
+ this.r6w_1 = $doWork;
69
+ this.s6w_1 = $it;
70
70
  }
71
71
  a1h($this$async, $completion) {
72
72
  return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this, $this$async), $completion);
@@ -91,10 +91,10 @@ function actionCannon$slambda() {
91
91
  if (actionCannon$slambdaClass === VOID) {
92
92
  class $ {
93
93
  constructor($accessToken) {
94
- this.s6w_1 = $accessToken;
94
+ this.t6w_1 = $accessToken;
95
95
  }
96
96
  fe($completion) {
97
- return this.s6w_1;
97
+ return this.t6w_1;
98
98
  }
99
99
  }
100
100
  initMetadataForLambda($, VOID, VOID, [0]);
@@ -23,20 +23,20 @@ function Data() {
23
23
  if (DataClass === VOID) {
24
24
  class $ {
25
25
  constructor(partyList) {
26
- this.u6t_1 = partyList;
26
+ this.v6t_1 = partyList;
27
27
  }
28
28
  toString() {
29
- return 'Data(partyList=' + toString(this.u6t_1) + ')';
29
+ return 'Data(partyList=' + toString(this.v6t_1) + ')';
30
30
  }
31
31
  hashCode() {
32
- return hashCode(this.u6t_1);
32
+ return hashCode(this.v6t_1);
33
33
  }
34
34
  equals(other) {
35
35
  if (this === other)
36
36
  return true;
37
37
  if (!(other instanceof Data()))
38
38
  return false;
39
- if (!equals(this.u6t_1, other.u6t_1))
39
+ if (!equals(this.v6t_1, other.v6t_1))
40
40
  return false;
41
41
  return true;
42
42
  }
@@ -51,15 +51,15 @@ function PartyList() {
51
51
  if (PartyListClass === VOID) {
52
52
  class $ {
53
53
  constructor(__typename, partyDetails) {
54
- this.v6t_1 = __typename;
55
- this.w6t_1 = partyDetails;
54
+ this.w6t_1 = __typename;
55
+ this.x6t_1 = partyDetails;
56
56
  }
57
57
  toString() {
58
- return 'PartyList(__typename=' + this.v6t_1 + ', partyDetails=' + this.w6t_1.toString() + ')';
58
+ return 'PartyList(__typename=' + this.w6t_1 + ', partyDetails=' + this.x6t_1.toString() + ')';
59
59
  }
60
60
  hashCode() {
61
- var result = getStringHashCode(this.v6t_1);
62
- result = imul(result, 31) + this.w6t_1.hashCode() | 0;
61
+ var result = getStringHashCode(this.w6t_1);
62
+ result = imul(result, 31) + this.x6t_1.hashCode() | 0;
63
63
  return result;
64
64
  }
65
65
  equals(other) {
@@ -67,9 +67,9 @@ function PartyList() {
67
67
  return true;
68
68
  if (!(other instanceof PartyList()))
69
69
  return false;
70
- if (!(this.v6t_1 === other.v6t_1))
70
+ if (!(this.w6t_1 === other.w6t_1))
71
71
  return false;
72
- if (!this.w6t_1.equals(other.w6t_1))
72
+ if (!this.x6t_1.equals(other.x6t_1))
73
73
  return false;
74
74
  return true;
75
75
  }
@@ -84,8 +84,8 @@ function Companion() {
84
84
  if (CompanionClass === VOID) {
85
85
  class $ {
86
86
  constructor() {
87
- this.x6t_1 = '4f3dd94849aec46c63247323851c79a17e0dc9822385331bb7f50b02e7cb1b7f';
88
- this.y6t_1 = 'partyListQuery';
87
+ this.y6t_1 = '4f3dd94849aec46c63247323851c79a17e0dc9822385331bb7f50b02e7cb1b7f';
88
+ this.z6t_1 = 'partyListQuery';
89
89
  }
90
90
  e5i() {
91
91
  return 'query partyListQuery { partyList { __typename ...PartyDetails } } fragment PartyDetails on Party { id name email pairingRule badgesEnabled defaultBadgeName alternateBadgeName callSignsEnabled animationsEnabled animationSpeed }';
@@ -25,12 +25,12 @@ function Data_0() {
25
25
  class $ {
26
26
  constructor() {
27
27
  Data_instance = this;
28
- this.z6t_1 = listOf('partyList');
28
+ this.a6u_1 = listOf('partyList');
29
29
  }
30
30
  i4k(reader, customScalarAdapters) {
31
31
  var _partyList = null;
32
32
  $l$loop: while (true) {
33
- if (reader.x4w(this.z6t_1) === 0)
33
+ if (reader.x4w(this.a6u_1) === 0)
34
34
  _partyList = list(obj(PartyList_getInstance(), true)).i4k(reader, customScalarAdapters);
35
35
  else
36
36
  break $l$loop;
@@ -44,12 +44,12 @@ function Data_0() {
44
44
  }
45
45
  return new (Data())(tmp);
46
46
  }
47
- a6u(writer, customScalarAdapters, value) {
47
+ b6u(writer, customScalarAdapters, value) {
48
48
  writer.h4s('partyList');
49
- list(obj(PartyList_getInstance(), true)).o4l(writer, customScalarAdapters, value.u6t_1);
49
+ list(obj(PartyList_getInstance(), true)).o4l(writer, customScalarAdapters, value.v6t_1);
50
50
  }
51
51
  j4k(writer, customScalarAdapters, value) {
52
- return this.a6u(writer, customScalarAdapters, value instanceof Data() ? value : THROW_CCE());
52
+ return this.b6u(writer, customScalarAdapters, value instanceof Data() ? value : THROW_CCE());
53
53
  }
54
54
  }
55
55
  initMetadataForObject($, 'Data', VOID, VOID, [Adapter()]);
@@ -69,12 +69,12 @@ function PartyList_0() {
69
69
  class $ {
70
70
  constructor() {
71
71
  PartyList_instance = this;
72
- this.b6u_1 = listOf('__typename');
72
+ this.c6u_1 = listOf('__typename');
73
73
  }
74
74
  i4k(reader, customScalarAdapters) {
75
75
  var __typename = null;
76
76
  $l$loop: while (true) {
77
- if (reader.x4w(this.b6u_1) === 0)
77
+ if (reader.x4w(this.c6u_1) === 0)
78
78
  __typename = get_StringAdapter().i4k(reader, customScalarAdapters);
79
79
  else
80
80
  break $l$loop;
@@ -90,13 +90,13 @@ function PartyList_0() {
90
90
  }
91
91
  return new (PartyList())(tmp, _partyDetails);
92
92
  }
93
- c6u(writer, customScalarAdapters, value) {
93
+ d6u(writer, customScalarAdapters, value) {
94
94
  writer.h4s('__typename');
95
- get_StringAdapter().j4k(writer, customScalarAdapters, value.v6t_1);
96
- PartyDetails_getInstance().i5j(writer, customScalarAdapters, value.w6t_1);
95
+ get_StringAdapter().j4k(writer, customScalarAdapters, value.w6t_1);
96
+ PartyDetails_getInstance().i5j(writer, customScalarAdapters, value.x6t_1);
97
97
  }
98
98
  j4k(writer, customScalarAdapters, value) {
99
- return this.c6u(writer, customScalarAdapters, value instanceof PartyList() ? value : THROW_CCE());
99
+ return this.d6u(writer, customScalarAdapters, value instanceof PartyList() ? value : THROW_CCE());
100
100
  }
101
101
  }
102
102
  initMetadataForObject($, 'PartyList', VOID, VOID, [Adapter()]);