@continuous-excellence/coupling-cli 1.1.438 → 1.1.440
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 +31 -31
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigFileSource.mjs +11 -11
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs +27 -9
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCliConfig.mjs +18 -18
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +15 -15
- 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 +193 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PlayersQuery.mjs.map +1 -0
- 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 +158 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_ResponseAdapter.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_VariablesAdapter.mjs +37 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_VariablesAdapter.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs +30 -30
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs +22 -22
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/ContributionInput.mjs +13 -13
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs +25 -25
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CycleTimeFromFirstCommit.mjs +3 -3
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs +29 -28
- 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 +29 -29
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs +10 -10
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Players.mjs +229 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Players.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs +46 -46
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +17 -17
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkGraphQueryDispatcher.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkSaveContributionCommandDispatcher.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/adapter/Adapter.mjs +8 -8
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlQuery.mjs +10 -10
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlTrait.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/KtorQueryPerformer.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PlayerDetails.mjs +82 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PlayerDetails.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PlayerDetailsImpl_ResponseAdapter.mjs +173 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PlayerDetailsImpl_ResponseAdapter.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/AvatarType.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Badge.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/ContributionInput.mjs +43 -43
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PartyInput.mjs +41 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PartyInput.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/SaveContributionInput.mjs +7 -7
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/AvatarType_ResponseAdapter.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/Badge_ResponseAdapter.mjs +2 -2
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/ContributionInput_InputAdapter.mjs +30 -30
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/PartyInput_InputAdapter.mjs +46 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/PartyInput_InputAdapter.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/SaveContributionInput_InputAdapter.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/command/CoreSuspendingCliktCommand.mjs +5 -5
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/BashCompletionGenerator.mjs +28 -28
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/CompletionGenerator.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/FishCompletionGenerator.mjs +23 -23
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs +110 -110
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/Context.mjs +93 -93
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs +124 -124
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Finalization.mjs +37 -37
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Util.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/AbstractHelpFormatter.mjs +134 -134
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/HelpFormatter.mjs +48 -48
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/Localization.mjs +32 -32
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/PlaintextHelpFormatter.mjs +26 -26
- 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 +6 -6
- 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 +21 -21
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs +211 -211
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs +6 -6
- 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 +29 -29
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/Invocation.mjs +45 -45
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/ParserInternals.mjs +230 -230
- 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 +16 -16
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/output/MordantHelpFormatter.mjs +65 -65
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/options/PromptOptions.mjs +18 -18
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/transform/MordantTransformContext.mjs +1 -1
- 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 +25 -25
- 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 +121 -121
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/RGBColorSpaces.mjs +134 -134
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/XYZ.mjs +62 -62
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/xyY.mjs +19 -19
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- 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 +63 -63
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Size.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Span.mjs +22 -22
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/TextStyle.mjs +79 -79
- 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 +234 -234
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDsl.mjs +22 -22
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDslInstances.mjs +152 -152
- 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 +18 -18
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalInterface.mjs +10 -10
- 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 +56 -56
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/EmptyWidget.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/Padding.mjs +59 -59
- 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 +95 -95
- package/kotlin/tools-digger-model/com/zegreatrob/tools/digger/model/Contribution.mjs +37 -37
- 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.f6v_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.g6v_1 = clientId;
|
|
41
|
+
this.h6v_1 = audience;
|
|
42
42
|
}
|
|
43
43
|
toString() {
|
|
44
|
-
return 'Auth0Environment(clientId=' + this.
|
|
44
|
+
return 'Auth0Environment(clientId=' + this.g6v_1 + ', audience=' + this.h6v_1 + ')';
|
|
45
45
|
}
|
|
46
46
|
hashCode() {
|
|
47
|
-
var result = getStringHashCode(this.
|
|
48
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
47
|
+
var result = getStringHashCode(this.g6v_1);
|
|
48
|
+
result = imul(result, 31) + getStringHashCode(this.h6v_1) | 0;
|
|
49
49
|
return result;
|
|
50
50
|
}
|
|
51
51
|
equals(other) {
|
|
@@ -53,9 +53,9 @@ function Auth0Environment() {
|
|
|
53
53
|
return true;
|
|
54
54
|
if (!(other instanceof Auth0Environment()))
|
|
55
55
|
return false;
|
|
56
|
-
if (!(this.
|
|
56
|
+
if (!(this.g6v_1 === other.g6v_1))
|
|
57
57
|
return false;
|
|
58
|
-
if (!(this.
|
|
58
|
+
if (!(this.h6v_1 === other.h6v_1))
|
|
59
59
|
return false;
|
|
60
60
|
return true;
|
|
61
61
|
}
|
|
@@ -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.x6v_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.
|
|
57
|
+
this.z6v_1 = function_0;
|
|
58
58
|
}
|
|
59
59
|
fp(thisRef, property) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.z6v_1(thisRef, property);
|
|
61
61
|
}
|
|
62
62
|
h5() {
|
|
63
|
-
return this.
|
|
63
|
+
return this.z6v_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.a6w_1 = function_0;
|
|
95
95
|
}
|
|
96
96
|
fp(thisRef, property) {
|
|
97
|
-
return this.
|
|
97
|
+
return this.a6w_1(thisRef, property);
|
|
98
98
|
}
|
|
99
99
|
h5() {
|
|
100
|
-
return this.
|
|
100
|
+
return this.a6w_1;
|
|
101
101
|
}
|
|
102
102
|
equals(other) {
|
|
103
103
|
var tmp;
|
|
@@ -125,13 +125,13 @@ function sam$kotlin_properties_ReadOnlyProperty$0_0() {
|
|
|
125
125
|
}
|
|
126
126
|
function ConfigCommand$lambda$lambda$lambda($key) {
|
|
127
127
|
return (it) => {
|
|
128
|
-
var tmp = it.
|
|
128
|
+
var tmp = it.e5q_1.o4($key);
|
|
129
129
|
return tmp instanceof CouplingCliConfig() ? tmp : null;
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
function ConfigCommand$lambda$lambda($key, $config) {
|
|
133
133
|
return (thisRef, _unused_var__etf5q3) => {
|
|
134
|
-
var tmp0 = thisRef.
|
|
134
|
+
var tmp0 = thisRef.c5p();
|
|
135
135
|
// Inline function 'com.github.ajalt.clikt.core.Context.findOrSetObject' call
|
|
136
136
|
var key = $key;
|
|
137
137
|
// Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
|
|
@@ -142,7 +142,7 @@ function ConfigCommand$lambda$lambda($key, $config) {
|
|
|
142
142
|
// Inline function 'kotlin.also' call
|
|
143
143
|
var this_0 = $config;
|
|
144
144
|
// Inline function 'kotlin.collections.set' call
|
|
145
|
-
tmp0.
|
|
145
|
+
tmp0.e5q_1.v4(key, this_0);
|
|
146
146
|
tmp_0 = this_0;
|
|
147
147
|
} else {
|
|
148
148
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -152,38 +152,38 @@ function ConfigCommand$lambda$lambda($key, $config) {
|
|
|
152
152
|
}
|
|
153
153
|
function ConfigCommand$lambda(this$0) {
|
|
154
154
|
return ($this$context) => {
|
|
155
|
-
var configFileSource = new (ConfigFileSource())($this$context.
|
|
156
|
-
var config = configFileSource.
|
|
155
|
+
var configFileSource = new (ConfigFileSource())($this$context.v5s_1);
|
|
156
|
+
var config = configFileSource.c6w_1;
|
|
157
157
|
var tmp;
|
|
158
158
|
if (!(config == null)) {
|
|
159
159
|
// Inline function 'com.github.ajalt.clikt.core.findOrSetObject' call
|
|
160
160
|
var tmp_0 = ConfigCommand$lambda$lambda('config', config);
|
|
161
161
|
new (sam$kotlin_properties_ReadOnlyProperty$0())(tmp_0);
|
|
162
|
-
$this$context.
|
|
162
|
+
$this$context.s5s_1 = configFileSource;
|
|
163
163
|
tmp = Unit_instance;
|
|
164
164
|
}
|
|
165
165
|
return Unit_instance;
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
function ConfigCommand$partyId$delegate$lambda(_this__u8e3s4) {
|
|
169
|
-
return _this__u8e3s4.
|
|
169
|
+
return _this__u8e3s4.c5q_1.g63();
|
|
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.a64()(_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.m5t_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.f64_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.m5t_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.g64_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.i64(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs);
|
|
206
206
|
} else {
|
|
207
207
|
throw $p;
|
|
208
208
|
}
|
|
@@ -220,13 +220,13 @@ function ConfigCommand$_get_partyId_$ref_ivxfj0_0() {
|
|
|
220
220
|
}
|
|
221
221
|
function ConfigCommand$config$delegate$lambda$lambda($key) {
|
|
222
222
|
return (it) => {
|
|
223
|
-
var tmp = it.
|
|
223
|
+
var tmp = it.e5q_1.o4($key);
|
|
224
224
|
return tmp instanceof CouplingCliConfig() ? tmp : null;
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
function ConfigCommand$config$delegate$lambda($key) {
|
|
228
228
|
return (thisRef, _unused_var__etf5q3) => {
|
|
229
|
-
var tmp0 = thisRef.
|
|
229
|
+
var tmp0 = thisRef.c5p();
|
|
230
230
|
// Inline function 'com.github.ajalt.clikt.core.Context.findOrSetObject' call
|
|
231
231
|
var key = $key;
|
|
232
232
|
// Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
|
|
@@ -237,7 +237,7 @@ function ConfigCommand$config$delegate$lambda($key) {
|
|
|
237
237
|
// Inline function 'kotlin.also' call
|
|
238
238
|
var this_0 = new (CouplingCliConfig())();
|
|
239
239
|
// Inline function 'kotlin.collections.set' call
|
|
240
|
-
tmp0.
|
|
240
|
+
tmp0.e5q_1.v4(key, this_0);
|
|
241
241
|
tmp_0 = this_0;
|
|
242
242
|
} else {
|
|
243
243
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -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.s64();
|
|
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.r64();
|
|
269
|
+
var tmp_4 = this_0.d64(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.x6v_1 = tmp_4.k64(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.y6v_1 = new (sam$kotlin_properties_ReadOnlyProperty$0_0())(tmp_7);
|
|
276
276
|
}
|
|
277
277
|
u3c() {
|
|
278
278
|
var tmp = KProperty1();
|
|
279
|
-
return this.
|
|
279
|
+
return this.y6v_1.fp(this, getPropertyCallableRef('config', 1, tmp, ConfigCommand$_get_config_$ref_4k8h59(), null));
|
|
280
280
|
}
|
|
281
281
|
k5e($completion) {
|
|
282
|
-
var configFilePath = plus(this.
|
|
282
|
+
var configFilePath = plus(this.c5p().d5q_1('PWD'), '/.coupling');
|
|
283
283
|
// Inline function 'kotlin.let' call
|
|
284
|
-
var it = this.u3c().
|
|
284
|
+
var it = this.u3c().f6w(_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
|
|
@@ -292,7 +292,7 @@ function ConfigCommand() {
|
|
|
292
292
|
// Inline function 'kotlin.let' call
|
|
293
293
|
var it_0 = this_0.d1x(tmp$ret$1, it);
|
|
294
294
|
writeDataToFile(configFilePath, it_0);
|
|
295
|
-
this.
|
|
295
|
+
this.n5p('Updated file: ' + configFilePath);
|
|
296
296
|
return Unit_instance;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
@@ -55,12 +55,12 @@ function findInvocations($this, configAsElement, option) {
|
|
|
55
55
|
var _iterator__ex2g4s_0 = this_0.q1();
|
|
56
56
|
while (_iterator__ex2g4s_0.r1()) {
|
|
57
57
|
var item = _iterator__ex2g4s_0.s1();
|
|
58
|
-
var tmp$ret$0 = Companion_instance.
|
|
58
|
+
var tmp$ret$0 = Companion_instance.d68(get_jsonPrimitive(item).p3e());
|
|
59
59
|
destination.t2(tmp$ret$0);
|
|
60
60
|
}
|
|
61
61
|
return destination;
|
|
62
62
|
}
|
|
63
|
-
return Companion_instance.
|
|
63
|
+
return Companion_instance.c68(get_jsonPrimitive(cursor).p3e());
|
|
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, _this__u8e3s4) {
|
|
74
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
74
|
+
var tmp0_safe_receiver = _this__u8e3s4.c5t();
|
|
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.e68(_this__u8e3s4))) : tmp1_elvis_lhs;
|
|
77
77
|
}
|
|
78
78
|
function kebabToCamelCase($this, _this__u8e3s4) {
|
|
79
79
|
// Inline function 'kotlin.text.toRegex' 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.
|
|
86
|
+
var tmp0_elvis_lhs = readFromFile('' + $this.b6w_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.b6w_1 = envvarReader;
|
|
116
|
+
this.c6w_1 = getConfigFromFile(this);
|
|
117
117
|
var tmp = this;
|
|
118
|
-
var tmp0_safe_receiver = this.
|
|
118
|
+
var tmp0_safe_receiver = this.c6w_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.v3x(tmp$ret$1, tmp0_safe_receiver);
|
|
132
132
|
}
|
|
133
|
-
tmp.
|
|
133
|
+
tmp.d6w_1 = tmp_0;
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
var tmp0_elvis_lhs = this.
|
|
135
|
+
m64(context, option) {
|
|
136
|
+
var tmp0_elvis_lhs = this.d6w_1;
|
|
137
137
|
var tmp;
|
|
138
138
|
if (tmp0_elvis_lhs == null) {
|
|
139
139
|
return emptyList();
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { KProperty1ca4yb4wlo496 as KProperty1 } from '../../../../../kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs';
|
|
2
|
+
import { getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs';
|
|
1
3
|
import {
|
|
2
4
|
getAccessToken2grvutyqcsf3s as getAccessToken,
|
|
3
5
|
loadTokens122ojpisvy1v2 as loadTokens,
|
|
@@ -30,19 +32,25 @@ import { Versions_instancerbry3ump1faj as Versions_instance } from './Versions.m
|
|
|
30
32
|
import { setOf1u3mizs95ngxo as setOf } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs';
|
|
31
33
|
import { eagerOption24qoznx4xo6ti as eagerOption } from '../../../../../clikt-clikt/com/github/ajalt/clikt/parameters/options/EagerOption.mjs';
|
|
32
34
|
import { context2q25b9moksyfl as context } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs';
|
|
35
|
+
import { option2wnxma00ykjjp as option } from '../../../../../clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs';
|
|
36
|
+
import { default2v6m45aspyoyr as default_0 } from '../../../../../clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs';
|
|
33
37
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
34
38
|
//region block: imports
|
|
35
39
|
//endregion
|
|
36
40
|
//region block: pre-declaration
|
|
37
41
|
//endregion
|
|
42
|
+
function _get_env__e67txg($this) {
|
|
43
|
+
var tmp = KProperty1();
|
|
44
|
+
return $this.v6w_1.fp($this, getPropertyCallableRef('env', 1, tmp, CouplingCli$_get_env_$ref_lv8knm_0(), null));
|
|
45
|
+
}
|
|
38
46
|
function *_generator_run__cb7u2f($this, $completion) {
|
|
39
47
|
var tmp = getAccessToken($completion);
|
|
40
48
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
41
49
|
tmp = yield tmp;
|
|
42
50
|
var accessToken = tmp;
|
|
43
51
|
if (accessToken == null) {
|
|
44
|
-
$this.
|
|
45
|
-
$this.
|
|
52
|
+
$this.n5p('You are not currently logged in. Some functions will not work.');
|
|
53
|
+
$this.n5p('Run `coupling login` to log in.');
|
|
46
54
|
} else {
|
|
47
55
|
var tmp0_safe_receiver = expiration($this, accessToken);
|
|
48
56
|
if (tmp0_safe_receiver == null)
|
|
@@ -64,7 +72,7 @@ function *_generator_considerRefreshingToken__rybewr($this, expiration, $complet
|
|
|
64
72
|
var refreshToken_0 = tokens == null ? null : refreshToken(tokens);
|
|
65
73
|
var env_0 = tokens == null ? null : env(tokens);
|
|
66
74
|
// Inline function 'kotlin.collections.get' call
|
|
67
|
-
var this_0 = Companion_getInstance().
|
|
75
|
+
var this_0 = Companion_getInstance().f6v_1;
|
|
68
76
|
var environment = (isInterface(this_0, KtMap()) ? this_0 : THROW_CCE()).o4(env_0);
|
|
69
77
|
var tmp_0;
|
|
70
78
|
if (!(env_0 == null) && !(environment == null) && !(refreshToken_0 == null)) {
|
|
@@ -100,7 +108,7 @@ function expiration($this, _this__u8e3s4) {
|
|
|
100
108
|
}
|
|
101
109
|
function *_generator_refreshAccessToken__cn2s7m($this, refreshToken, environment, env, $completion) {
|
|
102
110
|
var client = new (KtorAuth0Client())();
|
|
103
|
-
var tmp = client.w4f(refreshToken, environment.
|
|
111
|
+
var tmp = client.w4f(refreshToken, environment.h6v_1, environment.g6v_1, $completion);
|
|
104
112
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
105
113
|
tmp = yield tmp;
|
|
106
114
|
var result = tmp;
|
|
@@ -109,7 +117,7 @@ function *_generator_refreshAccessToken__cn2s7m($this, refreshToken, environment
|
|
|
109
117
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
110
118
|
tmp_0 = yield tmp_0;
|
|
111
119
|
} else {
|
|
112
|
-
$this.
|
|
120
|
+
$this.n5p(result.f4f_1, VOID, true);
|
|
113
121
|
}
|
|
114
122
|
return Unit_instance;
|
|
115
123
|
}
|
|
@@ -119,18 +127,24 @@ function refreshAccessToken($this, refreshToken, environment, env, $completion)
|
|
|
119
127
|
function CouplingCli$lambda($version, $this) {
|
|
120
128
|
return ($this$eagerOption) => {
|
|
121
129
|
var it = $version;
|
|
122
|
-
var tmp$ret$0 = $this.
|
|
123
|
-
throw PrintMessage().
|
|
130
|
+
var tmp$ret$0 = $this.b5o_1 + ' version ' + it;
|
|
131
|
+
throw PrintMessage().u5w(tmp$ret$0);
|
|
124
132
|
};
|
|
125
133
|
}
|
|
126
134
|
function CouplingCli$lambda_0($this$context) {
|
|
127
135
|
var tmp = $this$context;
|
|
128
|
-
tmp.
|
|
136
|
+
tmp.v5s_1 = CouplingCli$lambda$lambda;
|
|
129
137
|
return Unit_instance;
|
|
130
138
|
}
|
|
131
139
|
function CouplingCli$lambda$lambda(key) {
|
|
132
140
|
return getEnv(key);
|
|
133
141
|
}
|
|
142
|
+
function CouplingCli$_get_env_$ref_lv8knm() {
|
|
143
|
+
return (p0) => _get_env__e67txg(p0);
|
|
144
|
+
}
|
|
145
|
+
function CouplingCli$_get_env_$ref_lv8knm_0() {
|
|
146
|
+
return (p0) => _get_env__e67txg(p0);
|
|
147
|
+
}
|
|
134
148
|
var CouplingCliClass;
|
|
135
149
|
function CouplingCli() {
|
|
136
150
|
if (CouplingCliClass === VOID) {
|
|
@@ -138,11 +152,15 @@ function CouplingCli() {
|
|
|
138
152
|
constructor() {
|
|
139
153
|
super();
|
|
140
154
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
141
|
-
var version = Versions_instance.
|
|
155
|
+
var version = Versions_instance.h6u_1;
|
|
142
156
|
var help = 'Show the version and exit';
|
|
143
157
|
var names = setOf('--version');
|
|
144
158
|
eagerOption(this, names, help, VOID, VOID, VOID, CouplingCli$lambda(version, this));
|
|
145
159
|
context(this, CouplingCli$lambda_0);
|
|
160
|
+
var tmp = this;
|
|
161
|
+
var tmp_0 = default_0(option(this, []), 'production');
|
|
162
|
+
var tmp_1 = KProperty1();
|
|
163
|
+
tmp.v6w_1 = tmp_0.k64(this, getPropertyCallableRef('env', 1, tmp_1, CouplingCli$_get_env_$ref_lv8knm(), null));
|
|
146
164
|
}
|
|
147
165
|
k5e($completion) {
|
|
148
166
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_run__cb7u2f.bind(VOID, this), $completion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/CouplingCli.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/collections/Maps.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/time/Duration.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/EagerOption.kt"],"sourcesContent":[null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-run>","$completion","accessToken","<generator-considerRefreshingToken>","expiration","tokens","refreshToken","env","environment","considerRefreshingToken","<this>","<generator-refreshAccessToken>","client","result","refreshAccessToken","CouplingCli$lambda","CouplingCli$lambda$lambda","run"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/CouplingCli.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/collections/Maps.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/time/Duration.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/EagerOption.kt"],"sourcesContent":[null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-env>","<generator-run>","$completion","accessToken","<generator-considerRefreshingToken>","expiration","tokens","refreshToken","env","environment","considerRefreshingToken","<this>","<generator-refreshAccessToken>","client","result","refreshAccessToken","CouplingCli$lambda","CouplingCli$lambda$lambda","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAmBYA,CAAA,KAAAA,EAAW;A;EAAA,+G;AAA6B,C;gCAE/BC,CAAA,K,EAAAC,WAAAD,EAAU;A,MACL,iC;;;MAAlBE,iB;EACI,mBAAe,IAAf,C,CAAqB;A,IACrB,UAAK,gEAAL,C;IACA,UAAK,iCAAL,C;EACJ,C,MAEU;A,QADM,gCAAZ,KAAY,EAAZ,WAAY,C;IACN,+B;MAAA,I;;;UAAM,uCADZ,kBACY,c;;;;EAA4B,C;EAEhD,oB;AAAA,C;oDAEgBC,CAAA,K,EAA4BC,U,EAA5BH,WAAAE,EAAiD;A,MAChD,6B;;;MAAbE,Y;MACAC,iBAAmB,MAAQ,+BAAR,MAAQ,C;MAC3BC,QAAU,MAAQ,sBAAR,MAAQ,C;;uCACiB,K;MAAnCC,cC6N4C,aAAnB,MAAmB,aAAnB,MAAmB,mBD7NL,KC6NK,C;;ED5NxC,eAAO,IAAP,KAAe,iBAAe,IAAf,CAAf,IAAsC,oBAAgB,IAAhB,CAAtC,C;gBAC0B,oB;;;QE6JkD,YAAhC,WF7JP,EE6JO,EAAwB,kCAAxB,C;YF7J5C,cAAgC,SAAQ,SAAR,CAAhC,K;;YAAA,K;;EADA,U,CAEF;A,QACE,kCAAmB,cAAnB,EAAiC,WAAjC,EAA8C,KAA9C,c;;;EACJ,C;EACJ,oB;AAAA,C;gCAVgBC,CAAA,K,EAA4BL,U,EAA5BH,WAAAQ,E;;C;mBAYRL,CAAA,K,EAAIM,aAAJN,EAAoC;A,MAAA,+BAAU,aAAV,KAAgB,KAAhB,C;MACtC,gEADsC,kBACtC,C;;EACA,+B;UAAA,I;;;UAAc,6BAFwB,kBAExB,C;;EAAsB,U;AAAD,C;+CAEzBO,CAAA,K,EACZL,Y,EACAE,W,EACAD,G,EAHYN,WAAAU,EAId;A,MACEC,kC;MACoB,MAAP,MAAO,KAAc,YAAd,EAA4B,WAA5B,CAAwC,KAAxC,EAAkD,WAAlD,CAA8D,KAA9D,c;;;MAApBC,Y;EACI,WAAO,KAAP,IAAgB,IAAhB,C,CAAsB;A,QACtB,mBAAW,MAAX,EAAmB,GAAnB,c;;;EACJ,C,MAAO;A,IACH,UAAK,MAAL,CAAY,KAAZ,QAAyB,IAAzB,C;EACJ,C;EACJ,oB;AAAA,C;2BAZgBC,CAAA,K,EACZR,Y,EACAE,W,EACAD,G,EAHYN,WAAAa,E;;C;2BAgB2nCC,C,eAAAA,E;SAAAC,CAAA,iBAAAA,KAAA;A,aAA6B,Q;QGQlmC,YAAxB,KAAwB,CAAxB,KAAwB,GAAb,WAAa,GAAH,E;IHR0kC,yBAAmB,SAAnB,C;EAAqC,C;C;6BAhDtqCD,CAAA,aAAAA,EAAA;A,YAAE,a;EAAA,YAAa,yB;EAAuB,oB;AAAA,C;kCAAvBC,CAAE,GAAFA,EAAA;A,EAAoB,OAAX,OAAO,GAAP,C;AAAY,C;;iBAG7B,oB;;;iBAAA,oB;;;;;;;;;wCAJQ,K;mBGqDZ,2B;oBAEM,MAAM,WAAN,C;QAGlB,YH1DC,IG0DD,EAAY,KAAZ,EAAmB,IAAnB,oBAAyB,4BH1DxB,IG0DwB,CAAzB,C;QHzDC,cAAQ,oBAAR,C;kBAGe,I;oBAAS,UAAT,gBAAS,EAAQ,YAAR,C;;QAAT,8G;;SAEFC,CAAAhB,WAAAgB,E;;O;;;;;;;;;;;"}
|
|
@@ -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.c28('partyId', true);
|
|
49
|
-
this.
|
|
49
|
+
this.w6w_1 = tmp0_serialDesc;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
var tmp0_desc = this.
|
|
51
|
+
x6w(encoder, value) {
|
|
52
|
+
var tmp0_desc = this.w6w_1;
|
|
53
53
|
var tmp1_output = encoder.l20(tmp0_desc);
|
|
54
|
-
if (tmp1_output.j22(tmp0_desc, 0) ? true : !(value.
|
|
55
|
-
tmp1_output.f22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.
|
|
54
|
+
if (tmp1_output.j22(tmp0_desc, 0) ? true : !(value.e6w_1 == null)) {
|
|
55
|
+
tmp1_output.f22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.e6w_1);
|
|
56
56
|
}
|
|
57
57
|
tmp1_output.m20(tmp0_desc);
|
|
58
58
|
}
|
|
59
59
|
k1w(encoder, value) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.x6w(encoder, value instanceof CouplingCliConfig() ? value : THROW_CCE());
|
|
61
61
|
}
|
|
62
62
|
l1w(decoder) {
|
|
63
|
-
var tmp0_desc = this.
|
|
63
|
+
var tmp0_desc = this.w6w_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.m20(tmp0_desc);
|
|
88
|
-
return CouplingCliConfig().
|
|
88
|
+
return CouplingCliConfig().y6w(tmp3_bitMask0, tmp4_local0, null);
|
|
89
89
|
}
|
|
90
90
|
j1w() {
|
|
91
|
-
return this.
|
|
91
|
+
return this.w6w_1;
|
|
92
92
|
}
|
|
93
93
|
r28() {
|
|
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.e6w_1 = partyId;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
f6w(partyId) {
|
|
121
121
|
return new (CouplingCliConfig())(partyId);
|
|
122
122
|
}
|
|
123
123
|
toString() {
|
|
124
|
-
return 'CouplingCliConfig(partyId=' + toString(this.
|
|
124
|
+
return 'CouplingCliConfig(partyId=' + toString(this.e6w_1) + ')';
|
|
125
125
|
}
|
|
126
126
|
hashCode() {
|
|
127
|
-
return this.
|
|
127
|
+
return this.e6w_1 == null ? 0 : this.e6w_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.e6w_1, other.e6w_1))
|
|
135
135
|
return false;
|
|
136
136
|
return true;
|
|
137
137
|
}
|
|
138
|
-
static
|
|
138
|
+
static y6w(seen0, partyId, serializationConstructorMarker) {
|
|
139
139
|
if (!(0 === (0 & seen0))) {
|
|
140
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance().
|
|
140
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance().w6w_1);
|
|
141
141
|
}
|
|
142
142
|
var $this = createThis(this);
|
|
143
143
|
if (0 === (seen0 & 1))
|
|
144
|
-
$this.
|
|
144
|
+
$this.e6w_1 = null;
|
|
145
145
|
else
|
|
146
|
-
$this.
|
|
146
|
+
$this.e6w_1 = partyId;
|
|
147
147
|
return $this;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -33,14 +33,14 @@ import { writeSecureDatazzfzcao6q74u as writeSecureData } from './WriteSecureDat
|
|
|
33
33
|
//endregion
|
|
34
34
|
function _get_env__e67txg($this) {
|
|
35
35
|
var tmp = KProperty1();
|
|
36
|
-
return $this.
|
|
36
|
+
return $this.o6x_1.fp($this, getPropertyCallableRef('env', 1, tmp, Login$_get_env_$ref_pawiqw_0(), null));
|
|
37
37
|
}
|
|
38
38
|
function _get_refresh__nehp5i($this) {
|
|
39
39
|
var tmp = KProperty1();
|
|
40
|
-
return $this.
|
|
40
|
+
return $this.p6x_1.fp($this, getPropertyCallableRef('refresh', 1, tmp, Login$_get_refresh_$ref_dj1u6u_0(), null));
|
|
41
41
|
}
|
|
42
42
|
function *_generator_run__cb7u2f($this, $completion) {
|
|
43
|
-
var environment = Companion_getInstance().
|
|
43
|
+
var environment = Companion_getInstance().f6v_1.o4(_get_env__e67txg($this));
|
|
44
44
|
var client = new (KtorAuth0Client())();
|
|
45
45
|
if (!(environment == null)) {
|
|
46
46
|
if (_get_refresh__nehp5i($this)) {
|
|
@@ -50,10 +50,10 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
50
50
|
var tmp0_safe_receiver = tmp;
|
|
51
51
|
var refreshToken_0 = tmp0_safe_receiver == null ? null : refreshToken(tmp0_safe_receiver);
|
|
52
52
|
if (refreshToken_0 == null) {
|
|
53
|
-
$this.
|
|
53
|
+
$this.n5p('No refresh token found. Please login again.');
|
|
54
54
|
return Unit_instance;
|
|
55
55
|
}
|
|
56
|
-
var tmp_0 = client.w4f(refreshToken_0, environment.
|
|
56
|
+
var tmp_0 = client.w4f(refreshToken_0, environment.h6v_1, environment.g6v_1, $completion);
|
|
57
57
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
58
58
|
tmp_0 = yield tmp_0;
|
|
59
59
|
var result = tmp_0;
|
|
@@ -61,18 +61,18 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
61
61
|
var tmp_1 = saveTokens(result, _get_env__e67txg($this), $completion);
|
|
62
62
|
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
63
63
|
tmp_1 = yield tmp_1;
|
|
64
|
-
$this.
|
|
64
|
+
$this.n5p('Login complete!');
|
|
65
65
|
} else {
|
|
66
|
-
$this.
|
|
66
|
+
$this.n5p(result.f4f_1, VOID, true);
|
|
67
67
|
}
|
|
68
68
|
return Unit_instance;
|
|
69
69
|
}
|
|
70
|
-
var tmp_2 = client.v4f(environment.
|
|
70
|
+
var tmp_2 = client.v4f(environment.h6v_1, environment.g6v_1, $completion);
|
|
71
71
|
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
72
72
|
tmp_2 = yield tmp_2;
|
|
73
73
|
var result_0 = tmp_2;
|
|
74
|
-
$this.
|
|
75
|
-
$this.
|
|
74
|
+
$this.n5p('Your user code is: ' + result_0.p4f_1);
|
|
75
|
+
$this.n5p('Please follow link to authenticate: ' + result_0.o4f_1);
|
|
76
76
|
openBrowser(result_0.o4f_1);
|
|
77
77
|
var tmp_3 = pollForSuccess($this, client, environment, result_0.q4f_1, result_0.r4f_1, $completion);
|
|
78
78
|
if (tmp_3 === get_COROUTINE_SUSPENDED())
|
|
@@ -81,16 +81,16 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
81
81
|
var tmp_4 = saveTokens(pollResult, _get_env__e67txg($this), $completion);
|
|
82
82
|
if (tmp_4 === get_COROUTINE_SUSPENDED())
|
|
83
83
|
tmp_4 = yield tmp_4;
|
|
84
|
-
$this.
|
|
84
|
+
$this.n5p('Login complete!');
|
|
85
85
|
} else {
|
|
86
|
-
$this.
|
|
86
|
+
$this.n5p('Could not find client_id for environment ' + _get_env__e67txg($this));
|
|
87
87
|
}
|
|
88
88
|
return Unit_instance;
|
|
89
89
|
}
|
|
90
90
|
function *_generator_pollForSuccess__modt2p($this, _this__u8e3s4, environment, deviceCode, interval, $completion) {
|
|
91
91
|
var pollResult;
|
|
92
92
|
$l$loop: while (true) {
|
|
93
|
-
var tmp = _this__u8e3s4.u4f(environment.
|
|
93
|
+
var tmp = _this__u8e3s4.u4f(environment.g6v_1, deviceCode, $completion);
|
|
94
94
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
95
95
|
tmp = yield tmp;
|
|
96
96
|
pollResult = tmp;
|
|
@@ -133,11 +133,11 @@ 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.
|
|
136
|
+
tmp.o6x_1 = tmp_0.k64(this, getPropertyCallableRef('env', 1, tmp_1, Login$_get_env_$ref_pawiqw(), null));
|
|
137
137
|
var tmp_2 = this;
|
|
138
138
|
var tmp_3 = flag(option(this, []), []);
|
|
139
139
|
var tmp_4 = KProperty1();
|
|
140
|
-
tmp_2.
|
|
140
|
+
tmp_2.p6x_1 = tmp_3.k64(this, getPropertyCallableRef('refresh', 1, tmp_4, Login$_get_refresh_$ref_dj1u6u(), null));
|
|
141
141
|
}
|
|
142
142
|
k5e($completion) {
|
|
143
143
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_run__cb7u2f.bind(VOID, this), $completion);
|
|
@@ -43,7 +43,7 @@ function withSdk(env, echo, cannon, doWork, $completion) {
|
|
|
43
43
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_withSdk__8huckg.bind(VOID, env, echo, cannon, doWork), $completion);
|
|
44
44
|
}
|
|
45
45
|
function *_generator_loadSdk__ggczpc(env, echo, $completion) {
|
|
46
|
-
var environment = Companion_getInstance().
|
|
46
|
+
var environment = Companion_getInstance().f6v_1.o4(env);
|
|
47
47
|
if (!(environment == null)) {
|
|
48
48
|
var tmp = getAccessToken($completion);
|
|
49
49
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
@@ -69,17 +69,17 @@ function actionCannon(accessToken, environment) {
|
|
|
69
69
|
return sdk;
|
|
70
70
|
}
|
|
71
71
|
function audienceHost(_this__u8e3s4) {
|
|
72
|
-
return 'https://' + getHost(_this__u8e3s4.
|
|
72
|
+
return 'https://' + getHost(_this__u8e3s4.h6v_1);
|
|
73
73
|
}
|
|
74
74
|
var actionCannon$slambdaClass;
|
|
75
75
|
function actionCannon$slambda() {
|
|
76
76
|
if (actionCannon$slambdaClass === VOID) {
|
|
77
77
|
class $ {
|
|
78
78
|
constructor($accessToken) {
|
|
79
|
-
this.
|
|
79
|
+
this.q6x_1 = $accessToken;
|
|
80
80
|
}
|
|
81
81
|
fe($completion) {
|
|
82
|
-
return this.
|
|
82
|
+
return this.q6x_1;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
initMetadataForLambda($, VOID, VOID, [0]);
|