@continuous-excellence/coupling-cli 1.1.512 → 1.1.514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Auth0Environment.mjs +8 -8
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigCommand.mjs +21 -21
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigFileSource.mjs +11 -11
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs +6 -6
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCliConfig.mjs +18 -18
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +8 -8
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Versions.mjs +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs +4 -4
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PartyListQuery.mjs +13 -13
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PlayersQuery.mjs +22 -22
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PartyListQuery_ResponseAdapter.mjs +11 -11
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_ResponseAdapter.mjs +16 -16
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_VariablesAdapter.mjs +2 -2
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs +27 -27
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs +17 -17
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/ContributionInput.mjs +13 -13
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs +14 -14
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CycleTimeFromFirstCommit.mjs +2 -2
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs +51 -45
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs +14 -14
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs +68 -50
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Players.mjs +16 -16
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs +42 -42
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/Context.mjs +8 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/Context.mjs.map +1 -1
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs +116 -116
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Finalization.mjs +32 -32
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Util.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/AbstractHelpFormatter.mjs +132 -132
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/HelpFormatter.mjs +46 -46
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/Localization.mjs +31 -31
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/PlaintextHelpFormatter.mjs +25 -25
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/groups/ParameterGroup.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/internal/NullableLateinit.mjs +12 -12
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/EagerOption.mjs +5 -5
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/FlagOption.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/Option.mjs +9 -9
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs +138 -138
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs +2 -16
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs.map +1 -1
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformEach.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/transform/TransformContext.mjs +7 -7
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/types/boolean.mjs +9 -9
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/CommandLineParser.mjs +5 -5
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/Invocation.mjs +28 -28
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/ParserInternals.mjs +198 -198
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/atfile.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/sources/ValueSource.mjs +15 -15
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/core/MordantContext.mjs +7 -7
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/output/MordantHelpFormatter.mjs +64 -64
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/options/PromptOptions.mjs +16 -16
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/Color.mjs +1 -1
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/ColorSpace.mjs +5 -5
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/WhitePoint.mjs +15 -15
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/internal/Matrix.mjs +10 -10
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/Ansi16.mjs +18 -18
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/Ansi256.mjs +19 -19
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/HSV.mjs +21 -21
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/ICtCp.mjs +19 -19
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/RGB.mjs +114 -114
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/RGBColorSpaces.mjs +126 -126
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/XYZ.mjs +57 -57
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/xyY.mjs +16 -16
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/AnsiCodes.mjs +24 -24
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/AnsiRender.mjs +39 -39
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/Constants.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/HyperlinkIds.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/MppInternal.jsCommon.mjs +17 -17
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/Parsing.mjs +53 -53
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/cellwidth.mjs +7 -7
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/gen/cellwidthtable.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/gen/emojiseqtable.mjs +14 -14
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/platform/MultiplatformSystem.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/BorderType.mjs +39 -39
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Lines.mjs +60 -60
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Size.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Span.mjs +21 -21
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/TextStyle.mjs +54 -54
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Theme.mjs +44 -44
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Whitespace.mjs +4 -4
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Widget.mjs +2 -2
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/WidthRange.mjs +17 -17
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/Borders.mjs +4 -4
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/Table.mjs +208 -208
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDsl.mjs +22 -22
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDslInstances.mjs +122 -122
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableLayout.mjs +57 -57
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/VerticalLayout.mjs +32 -32
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/Prompt.mjs +60 -60
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/StandardTerminalInterface.mjs +14 -14
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/Terminal.mjs +53 -53
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalCursor.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalDetection.mjs +5 -5
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalExtensions.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalInfo.mjs +13 -13
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalInterface.mjs +8 -8
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/terminalinterface/TerminalInterface.js.mjs +19 -19
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/terminalinterface/TerminalInterface.jsCommon.mjs +13 -13
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/DefinitionList.mjs +53 -53
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/EmptyWidget.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/Padding.mjs +51 -51
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/Text.mjs +67 -67
- package/kotlin/tools-digger-json/com/zegreatrob/tools/digger/json/ContributionDataJson.mjs +97 -97
- package/kotlin/tools-digger-model/com/zegreatrob/tools/digger/model/Contribution.mjs +28 -28
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ function Companion() {
|
|
|
17
17
|
class $ {
|
|
18
18
|
constructor() {
|
|
19
19
|
Companion_instance = this;
|
|
20
|
-
this.
|
|
20
|
+
this.d6z_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.
|
|
41
|
-
this.
|
|
40
|
+
this.e6z_1 = clientId;
|
|
41
|
+
this.f6z_1 = audience;
|
|
42
42
|
}
|
|
43
43
|
toString() {
|
|
44
|
-
return 'Auth0Environment(clientId=' + this.
|
|
44
|
+
return 'Auth0Environment(clientId=' + this.e6z_1 + ', audience=' + this.f6z_1 + ')';
|
|
45
45
|
}
|
|
46
46
|
hashCode() {
|
|
47
|
-
var result = getStringHashCode(this.
|
|
48
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
47
|
+
var result = getStringHashCode(this.e6z_1);
|
|
48
|
+
result = imul(result, 31) + getStringHashCode(this.f6z_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.d6z_1 === other.d6z_1))
|
|
57
|
-
return false;
|
|
58
56
|
if (!(this.e6z_1 === other.e6z_1))
|
|
59
57
|
return false;
|
|
58
|
+
if (!(this.f6z_1 === other.f6z_1))
|
|
59
|
+
return false;
|
|
60
60
|
return true;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -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.
|
|
50
|
+
return $this.v6z_1.zp($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.
|
|
57
|
+
this.x6z_1 = function_0;
|
|
58
58
|
}
|
|
59
59
|
zp(thisRef, property) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.x6z_1(thisRef, property);
|
|
61
61
|
}
|
|
62
62
|
c5() {
|
|
63
|
-
return this.
|
|
63
|
+
return this.x6z_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.
|
|
94
|
+
this.y6z_1 = function_0;
|
|
95
95
|
}
|
|
96
96
|
zp(thisRef, property) {
|
|
97
|
-
return this.
|
|
97
|
+
return this.y6z_1(thisRef, property);
|
|
98
98
|
}
|
|
99
99
|
c5() {
|
|
100
|
-
return this.
|
|
100
|
+
return this.y6z_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.t5w_1);
|
|
156
|
-
var config = configFileSource.
|
|
156
|
+
var config = configFileSource.a70_1;
|
|
157
157
|
var tmp;
|
|
158
158
|
if (!(config == null)) {
|
|
159
159
|
// Inline function 'com.github.ajalt.clikt.core.findOrSetObject' call
|
|
@@ -166,24 +166,24 @@ function ConfigCommand$lambda(this$0) {
|
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
function ConfigCommand$partyId$delegate$lambda(_this__u8e3s4) {
|
|
169
|
-
return _this__u8e3s4.a5u_1.
|
|
169
|
+
return _this__u8e3s4.a5u_1.f67();
|
|
170
170
|
}
|
|
171
171
|
function ConfigCommand$partyId$delegate$lambda_0($this) {
|
|
172
172
|
return (_this__u8e3s4, it) => {
|
|
173
173
|
var tmp;
|
|
174
174
|
try {
|
|
175
|
-
var it_0 = $this.
|
|
175
|
+
var it_0 = $this.z67()(_this__u8e3s4, it);
|
|
176
176
|
tmp = PartyId(it_0);
|
|
177
177
|
} catch ($p) {
|
|
178
178
|
var tmp_0;
|
|
179
179
|
if ($p instanceof UsageError()) {
|
|
180
180
|
var err = $p;
|
|
181
181
|
var tmp_1 = err;
|
|
182
|
-
var tmp0_elvis_lhs = err.
|
|
182
|
+
var tmp0_elvis_lhs = err.l5x_1;
|
|
183
183
|
var tmp_2;
|
|
184
184
|
if (tmp0_elvis_lhs == null) {
|
|
185
185
|
// Inline function 'kotlin.takeUnless' call
|
|
186
|
-
var this_0 = _this__u8e3s4.
|
|
186
|
+
var this_0 = _this__u8e3s4.e68_1;
|
|
187
187
|
var tmp_3;
|
|
188
188
|
// Inline function 'kotlin.text.isEmpty' call
|
|
189
189
|
if (!(charSequenceLength(this_0) === 0)) {
|
|
@@ -196,13 +196,13 @@ function ConfigCommand$partyId$delegate$lambda_0($this) {
|
|
|
196
196
|
tmp_2 = tmp0_elvis_lhs;
|
|
197
197
|
}
|
|
198
198
|
var tmp1_elvis_lhs = tmp_2;
|
|
199
|
-
tmp_1.
|
|
199
|
+
tmp_1.l5x_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.f68_1) : tmp1_elvis_lhs;
|
|
200
200
|
throw err;
|
|
201
201
|
} else {
|
|
202
202
|
if ($p instanceof Exception()) {
|
|
203
203
|
var err_0 = $p;
|
|
204
204
|
var tmp2_elvis_lhs = err_0.message;
|
|
205
|
-
_this__u8e3s4.
|
|
205
|
+
_this__u8e3s4.h68(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs);
|
|
206
206
|
} else {
|
|
207
207
|
throw $p;
|
|
208
208
|
}
|
|
@@ -263,25 +263,25 @@ function ConfigCommand() {
|
|
|
263
263
|
var tmp_0 = defaultEachProcessor();
|
|
264
264
|
var tmp_1 = defaultAllProcessor();
|
|
265
265
|
var tmp_2 = defaultValidator();
|
|
266
|
-
var tmp0_elvis_lhs = this_0.
|
|
266
|
+
var tmp0_elvis_lhs = this_0.r68();
|
|
267
267
|
var tmp_3 = tmp0_elvis_lhs == null ? metavar : tmp0_elvis_lhs;
|
|
268
|
-
var tmp1_elvis_lhs = this_0.
|
|
269
|
-
var tmp_4 = this_0.
|
|
268
|
+
var tmp1_elvis_lhs = this_0.q68();
|
|
269
|
+
var tmp_4 = this_0.c68(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.
|
|
271
|
+
tmp.v6z_1 = tmp_4.j68(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.
|
|
275
|
+
tmp_6.w6z_1 = new (sam$kotlin_properties_ReadOnlyProperty$0_0())(tmp_7);
|
|
276
276
|
}
|
|
277
277
|
w3e() {
|
|
278
278
|
var tmp = KProperty1();
|
|
279
|
-
return this.
|
|
279
|
+
return this.w6z_1.zp(this, getPropertyCallableRef('config', 1, tmp, ConfigCommand$_get_config_$ref_4k8h59(), null));
|
|
280
280
|
}
|
|
281
281
|
*g5i($completion) {
|
|
282
282
|
var configFilePath = plus(this.a5t().b5u_1('PWD'), '/.coupling');
|
|
283
283
|
// Inline function 'kotlin.let' call
|
|
284
|
-
var it = this.w3e().
|
|
284
|
+
var it = this.w3e().d70(_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
|
|
@@ -55,12 +55,12 @@ function findInvocations($this, configAsElement, option) {
|
|
|
55
55
|
var _iterator__ex2g4s_0 = this_0.l1();
|
|
56
56
|
while (_iterator__ex2g4s_0.m1()) {
|
|
57
57
|
var item = _iterator__ex2g4s_0.n1();
|
|
58
|
-
var tmp$ret$2 = Companion_instance.
|
|
58
|
+
var tmp$ret$2 = Companion_instance.c6c(get_jsonPrimitive(item).x3g());
|
|
59
59
|
destination.o2(tmp$ret$2);
|
|
60
60
|
}
|
|
61
61
|
return destination;
|
|
62
62
|
}
|
|
63
|
-
return Companion_instance.
|
|
63
|
+
return Companion_instance.b6c(get_jsonPrimitive(cursor).x3g());
|
|
64
64
|
} catch ($p) {
|
|
65
65
|
if ($p instanceof IllegalArgumentException()) {
|
|
66
66
|
var _unused_var__etf5q3 = $p;
|
|
@@ -71,9 +71,9 @@ function findInvocations($this, configAsElement, option) {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
function parts($this, $receiver) {
|
|
74
|
-
var tmp0_safe_receiver = $receiver.
|
|
74
|
+
var tmp0_safe_receiver = $receiver.b5x();
|
|
75
75
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
76
|
-
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_0.
|
|
76
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_0.d6c($receiver))) : tmp1_elvis_lhs;
|
|
77
77
|
}
|
|
78
78
|
function kebabToCamelCase($this, $receiver) {
|
|
79
79
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -83,7 +83,7 @@ function kebabToCamelCase($this, $receiver) {
|
|
|
83
83
|
return pattern.vh($receiver, transform);
|
|
84
84
|
}
|
|
85
85
|
function getConfigFromFile($this) {
|
|
86
|
-
var tmp0_elvis_lhs = readFromFile('' + $this.
|
|
86
|
+
var tmp0_elvis_lhs = readFromFile('' + $this.z6z_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.
|
|
116
|
-
this.
|
|
115
|
+
this.z6z_1 = envvarReader;
|
|
116
|
+
this.a70_1 = getConfigFromFile(this);
|
|
117
117
|
var tmp = this;
|
|
118
|
-
var tmp0_safe_receiver = this.
|
|
118
|
+
var tmp0_safe_receiver = this.a70_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$2 = isInterface(this_2, KSerializer()) ? this_2 : THROW_CCE();
|
|
131
131
|
tmp_0 = this_0.n40(tmp$ret$2, tmp0_safe_receiver);
|
|
132
132
|
}
|
|
133
|
-
tmp.
|
|
133
|
+
tmp.b70_1 = tmp_0;
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
var tmp0_elvis_lhs = this.
|
|
135
|
+
l68(context, option) {
|
|
136
|
+
var tmp0_elvis_lhs = this.b70_1;
|
|
137
137
|
var tmp;
|
|
138
138
|
if (tmp0_elvis_lhs == null) {
|
|
139
139
|
return emptyList();
|
|
@@ -39,14 +39,14 @@ import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../
|
|
|
39
39
|
//endregion
|
|
40
40
|
function _get_env__e67txg($this) {
|
|
41
41
|
var tmp = KProperty1();
|
|
42
|
-
return $this.
|
|
42
|
+
return $this.t70_1.zp($this, getPropertyCallableRef('env', 1, tmp, CouplingCli$_get_env_$ref_lv8knm_0(), null));
|
|
43
43
|
}
|
|
44
44
|
function *considerRefreshingToken($this, expiration, $completion) {
|
|
45
45
|
var tokens = yield* loadTokens($completion);
|
|
46
46
|
var refreshToken_0 = tokens == null ? null : refreshToken(tokens);
|
|
47
47
|
var env_0 = tokens == null ? null : env(tokens);
|
|
48
48
|
// Inline function 'kotlin.collections.get' call
|
|
49
|
-
var this_0 = Companion_getInstance().
|
|
49
|
+
var this_0 = Companion_getInstance().d6z_1;
|
|
50
50
|
var environment = (isInterface(this_0, KtMap()) ? this_0 : THROW_CCE()).j4(env_0);
|
|
51
51
|
var tmp;
|
|
52
52
|
if (!(env_0 == null) && !(environment == null) && !(refreshToken_0 == null)) {
|
|
@@ -77,7 +77,7 @@ function expiration($this, $receiver) {
|
|
|
77
77
|
}
|
|
78
78
|
function *refreshAccessToken($this, refreshToken, environment, env, $completion) {
|
|
79
79
|
var client = new (KtorAuth0Client())();
|
|
80
|
-
var result = yield* client.e4j(refreshToken, environment.
|
|
80
|
+
var result = yield* client.e4j(refreshToken, environment.f6z_1, environment.e6z_1, $completion);
|
|
81
81
|
if (result.n4i_1 == null) {
|
|
82
82
|
yield* saveTokens(result, env, $completion);
|
|
83
83
|
} else {
|
|
@@ -89,7 +89,7 @@ function CouplingCli$lambda($version, $this) {
|
|
|
89
89
|
return ($this$eagerOption) => {
|
|
90
90
|
var it = $version;
|
|
91
91
|
var tmp$ret$0 = $this.z5r_1 + ' version ' + it;
|
|
92
|
-
throw PrintMessage().
|
|
92
|
+
throw PrintMessage().t60(tmp$ret$0);
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
function CouplingCli$lambda_0($this$context) {
|
|
@@ -113,7 +113,7 @@ function CouplingCli() {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super();
|
|
115
115
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
116
|
-
var version = Versions_instance.
|
|
116
|
+
var version = Versions_instance.f6y_1;
|
|
117
117
|
var help = 'Show the version and exit';
|
|
118
118
|
var names = setOf('--version');
|
|
119
119
|
eagerOption(this, names, help, VOID, VOID, VOID, CouplingCli$lambda(version, this));
|
|
@@ -121,7 +121,7 @@ function CouplingCli() {
|
|
|
121
121
|
var tmp = this;
|
|
122
122
|
var tmp_0 = default_0(option(this, []), 'production');
|
|
123
123
|
var tmp_1 = KProperty1();
|
|
124
|
-
tmp.
|
|
124
|
+
tmp.t70_1 = tmp_0.j68(this, getPropertyCallableRef('env', 1, tmp_1, CouplingCli$_get_env_$ref_lv8knm(), null));
|
|
125
125
|
}
|
|
126
126
|
*g5i($completion) {
|
|
127
127
|
var accessToken = yield* getAccessToken($completion);
|
|
@@ -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.v28('partyId', true);
|
|
49
|
-
this.
|
|
49
|
+
this.u70_1 = tmp0_serialDesc;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
var tmp0_desc = this.
|
|
51
|
+
v70(encoder, value) {
|
|
52
|
+
var tmp0_desc = this.u70_1;
|
|
53
53
|
var tmp1_output = encoder.e21(tmp0_desc);
|
|
54
|
-
if (tmp1_output.c23(tmp0_desc, 0) ? true : !(value.
|
|
55
|
-
tmp1_output.y22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.
|
|
54
|
+
if (tmp1_output.c23(tmp0_desc, 0) ? true : !(value.c70_1 == null)) {
|
|
55
|
+
tmp1_output.y22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.c70_1);
|
|
56
56
|
}
|
|
57
57
|
tmp1_output.f21(tmp0_desc);
|
|
58
58
|
}
|
|
59
59
|
c1x(encoder, value) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.v70(encoder, value instanceof CouplingCliConfig() ? value : THROW_CCE());
|
|
61
61
|
}
|
|
62
62
|
d1x(decoder) {
|
|
63
|
-
var tmp0_desc = this.
|
|
63
|
+
var tmp0_desc = this.u70_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.f21(tmp0_desc);
|
|
88
|
-
return CouplingCliConfig().
|
|
88
|
+
return CouplingCliConfig().w70(tmp3_bitMask0, tmp4_local0, null);
|
|
89
89
|
}
|
|
90
90
|
b1x() {
|
|
91
|
-
return this.
|
|
91
|
+
return this.u70_1;
|
|
92
92
|
}
|
|
93
93
|
k29() {
|
|
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.
|
|
118
|
+
this.c70_1 = partyId;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
d70(partyId) {
|
|
121
121
|
return new (CouplingCliConfig())(partyId);
|
|
122
122
|
}
|
|
123
123
|
toString() {
|
|
124
|
-
return 'CouplingCliConfig(partyId=' + toString(this.
|
|
124
|
+
return 'CouplingCliConfig(partyId=' + toString(this.c70_1) + ')';
|
|
125
125
|
}
|
|
126
126
|
hashCode() {
|
|
127
|
-
return this.
|
|
127
|
+
return this.c70_1 == null ? 0 : this.c70_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.
|
|
134
|
+
if (!equals(this.c70_1, other.c70_1))
|
|
135
135
|
return false;
|
|
136
136
|
return true;
|
|
137
137
|
}
|
|
138
|
-
static
|
|
138
|
+
static w70(seen0, partyId, serializationConstructorMarker) {
|
|
139
139
|
if (!(0 === (0 & seen0))) {
|
|
140
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance().
|
|
140
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance().u70_1);
|
|
141
141
|
}
|
|
142
142
|
var $this = createThis(this);
|
|
143
143
|
if (0 === (seen0 & 1))
|
|
144
|
-
$this.
|
|
144
|
+
$this.c70_1 = null;
|
|
145
145
|
else
|
|
146
|
-
$this.
|
|
146
|
+
$this.c70_1 = partyId;
|
|
147
147
|
return $this;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -31,16 +31,16 @@ import { writeSecureData2trhd7zkz213j as writeSecureData } from './WriteSecureDa
|
|
|
31
31
|
//endregion
|
|
32
32
|
function _get_env__e67txg($this) {
|
|
33
33
|
var tmp = KProperty1();
|
|
34
|
-
return $this.
|
|
34
|
+
return $this.m71_1.zp($this, getPropertyCallableRef('env', 1, tmp, Login$_get_env_$ref_pawiqw_0(), null));
|
|
35
35
|
}
|
|
36
36
|
function _get_refresh__nehp5i($this) {
|
|
37
37
|
var tmp = KProperty1();
|
|
38
|
-
return $this.
|
|
38
|
+
return $this.n71_1.zp($this, getPropertyCallableRef('refresh', 1, tmp, Login$_get_refresh_$ref_dj1u6u_0(), null));
|
|
39
39
|
}
|
|
40
40
|
function *pollForSuccess($this, $receiver, environment, deviceCode, interval, $completion) {
|
|
41
41
|
var pollResult;
|
|
42
42
|
$l$loop: while (true) {
|
|
43
|
-
pollResult = yield* $receiver.c4j(environment.
|
|
43
|
+
pollResult = yield* $receiver.c4j(environment.e6z_1, deviceCode, $completion);
|
|
44
44
|
switch (pollResult.n4i_1) {
|
|
45
45
|
case null:
|
|
46
46
|
case 'expired_token':
|
|
@@ -75,14 +75,14 @@ function Login() {
|
|
|
75
75
|
var tmp = this;
|
|
76
76
|
var tmp_0 = default_0(option(this, []), 'production');
|
|
77
77
|
var tmp_1 = KProperty1();
|
|
78
|
-
tmp.
|
|
78
|
+
tmp.m71_1 = tmp_0.j68(this, getPropertyCallableRef('env', 1, tmp_1, Login$_get_env_$ref_pawiqw(), null));
|
|
79
79
|
var tmp_2 = this;
|
|
80
80
|
var tmp_3 = flag(option(this, []), []);
|
|
81
81
|
var tmp_4 = KProperty1();
|
|
82
|
-
tmp_2.
|
|
82
|
+
tmp_2.n71_1 = tmp_3.j68(this, getPropertyCallableRef('refresh', 1, tmp_4, Login$_get_refresh_$ref_dj1u6u(), null));
|
|
83
83
|
}
|
|
84
84
|
*g5i($completion) {
|
|
85
|
-
var environment = Companion_getInstance_0().
|
|
85
|
+
var environment = Companion_getInstance_0().d6z_1.j4(_get_env__e67txg(this));
|
|
86
86
|
var client = new (KtorAuth0Client())();
|
|
87
87
|
if (!(environment == null)) {
|
|
88
88
|
if (_get_refresh__nehp5i(this)) {
|
|
@@ -92,7 +92,7 @@ function Login() {
|
|
|
92
92
|
this.l5t('No refresh token found. Please login again.');
|
|
93
93
|
return Unit_instance;
|
|
94
94
|
}
|
|
95
|
-
var result = yield* client.e4j(refreshToken_0, environment.
|
|
95
|
+
var result = yield* client.e4j(refreshToken_0, environment.f6z_1, environment.e6z_1, $completion);
|
|
96
96
|
if (result.n4i_1 == null) {
|
|
97
97
|
yield* saveTokens(result, _get_env__e67txg(this), $completion);
|
|
98
98
|
this.l5t('Login complete!');
|
|
@@ -101,7 +101,7 @@ function Login() {
|
|
|
101
101
|
}
|
|
102
102
|
return Unit_instance;
|
|
103
103
|
}
|
|
104
|
-
var result_0 = yield* client.d4j(environment.
|
|
104
|
+
var result_0 = yield* client.d4j(environment.f6z_1, environment.e6z_1, $completion);
|
|
105
105
|
this.l5t('Your user code is: ' + result_0.x4i_1);
|
|
106
106
|
this.l5t('Please follow link to authenticate: ' + result_0.w4i_1);
|
|
107
107
|
openBrowser(result_0.w4i_1);
|
|
@@ -27,7 +27,7 @@ function *withSdk(env, echo, cannon, doWork, $completion) {
|
|
|
27
27
|
return tmp;
|
|
28
28
|
}
|
|
29
29
|
function *loadSdk(env, echo, $completion) {
|
|
30
|
-
var environment = Companion_getInstance().
|
|
30
|
+
var environment = Companion_getInstance().d6z_1.j4(env);
|
|
31
31
|
if (!(environment == null)) {
|
|
32
32
|
var accessToken = yield* getAccessToken($completion);
|
|
33
33
|
if (accessToken == null) {
|
|
@@ -47,17 +47,17 @@ function actionCannon(accessToken, environment) {
|
|
|
47
47
|
return sdk;
|
|
48
48
|
}
|
|
49
49
|
function audienceHost(_this__u8e3s4) {
|
|
50
|
-
return 'https://' + getHost(_this__u8e3s4.
|
|
50
|
+
return 'https://' + getHost(_this__u8e3s4.f6z_1);
|
|
51
51
|
}
|
|
52
52
|
var actionCannon$slambdaClass;
|
|
53
53
|
function actionCannon$slambda() {
|
|
54
54
|
if (actionCannon$slambdaClass === VOID) {
|
|
55
55
|
class $ {
|
|
56
56
|
constructor($accessToken) {
|
|
57
|
-
this.
|
|
57
|
+
this.o71_1 = $accessToken;
|
|
58
58
|
}
|
|
59
59
|
*i5i($completion) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.o71_1;
|
|
61
61
|
}
|
|
62
62
|
ud($completion) {
|
|
63
63
|
return this.i5i($completion);
|
|
@@ -23,20 +23,20 @@ function Data() {
|
|
|
23
23
|
if (DataClass === VOID) {
|
|
24
24
|
class $ {
|
|
25
25
|
constructor(partyList) {
|
|
26
|
-
this.
|
|
26
|
+
this.g6y_1 = partyList;
|
|
27
27
|
}
|
|
28
28
|
toString() {
|
|
29
|
-
return 'Data(partyList=' + toString(this.
|
|
29
|
+
return 'Data(partyList=' + toString(this.g6y_1) + ')';
|
|
30
30
|
}
|
|
31
31
|
hashCode() {
|
|
32
|
-
return hashCode(this.
|
|
32
|
+
return hashCode(this.g6y_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.
|
|
39
|
+
if (!equals(this.g6y_1, other.g6y_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.
|
|
55
|
-
this.
|
|
54
|
+
this.h6y_1 = __typename;
|
|
55
|
+
this.i6y_1 = partyDetails;
|
|
56
56
|
}
|
|
57
57
|
toString() {
|
|
58
|
-
return 'PartyList(__typename=' + this.
|
|
58
|
+
return 'PartyList(__typename=' + this.h6y_1 + ', partyDetails=' + this.i6y_1.toString() + ')';
|
|
59
59
|
}
|
|
60
60
|
hashCode() {
|
|
61
|
-
var result = getStringHashCode(this.
|
|
62
|
-
result = imul(result, 31) + this.
|
|
61
|
+
var result = getStringHashCode(this.h6y_1);
|
|
62
|
+
result = imul(result, 31) + this.i6y_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.
|
|
70
|
+
if (!(this.h6y_1 === other.h6y_1))
|
|
71
71
|
return false;
|
|
72
|
-
if (!this.
|
|
72
|
+
if (!this.i6y_1.equals(other.i6y_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.
|
|
88
|
-
this.
|
|
87
|
+
this.j6y_1 = '4f3dd94849aec46c63247323851c79a17e0dc9822385331bb7f50b02e7cb1b7f';
|
|
88
|
+
this.k6y_1 = 'partyListQuery';
|
|
89
89
|
}
|
|
90
90
|
c5m() {
|
|
91
91
|
return 'query partyListQuery { partyList { __typename ...PartyDetails } } fragment PartyDetails on Party { id name email pairingRule badgesEnabled defaultBadgeName alternateBadgeName callSignsEnabled animationsEnabled animationSpeed }';
|