@continuous-excellence/coupling-cli 1.1.432 → 1.1.434
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/CouplingCli.mjs +28 -17
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/GetSecureData.js.mjs +16 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/GetSecureData.js.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +33 -29
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.js.mjs +1 -28
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.js.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs +51 -57
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Versions.mjs +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs +26 -11
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WriteSecureData.js.mjs +18 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WriteSecureData.js.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs +69 -66
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs +13 -10
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs.map +1 -1
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs +2 -2
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs.map +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +2 -2
- 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/package.json +3 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
getAccessToken2grvutyqcsf3s as getAccessToken,
|
|
3
|
+
getRefreshToken3qzl7u8y6mmxw as getRefreshToken,
|
|
4
|
+
getEnv2e13oawzwjmok as getEnv,
|
|
5
5
|
} from './Main.mjs';
|
|
6
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
6
7
|
import { Companion_getInstance3p7529cu4pihk as Companion_getInstance } from './Auth0Environment.mjs';
|
|
7
8
|
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
8
9
|
import { KtMap140uvy3s5zad8 as KtMap } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs';
|
|
@@ -13,14 +14,13 @@ import {
|
|
|
13
14
|
toDuration7gy6v749ektt as toDuration,
|
|
14
15
|
} from '../../../../../kotlin-kotlin-stdlib/kotlin/time/Duration.mjs';
|
|
15
16
|
import { DurationUnit_MINUTES_getInstance1l4aknihl7p1h as DurationUnit_MINUTES_getInstance } from '../../../../../kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs';
|
|
16
|
-
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
17
17
|
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
18
18
|
import { decodeJwt3e20dubqswm1d as decodeJwt } from './CouplingCli.js.mjs';
|
|
19
19
|
import { toLongkk4waq8msp1k as toLong } from '../../../../../kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs';
|
|
20
20
|
import { Companion_getInstance229rema5imh9m as Companion_getInstance_1 } from '../../../../../kotlin-kotlin-stdlib/kotlin/time/Instant.mjs';
|
|
21
21
|
import { KtorAuth0Client3a2sxtdbcw6av as KtorAuth0Client } from '../../../../../Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs';
|
|
22
22
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
23
|
-
import {
|
|
23
|
+
import { saveTokens29rhum7lzchby as saveTokens } from './Login.mjs';
|
|
24
24
|
import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
25
25
|
import { PrintMessagencuza8ausr82 as PrintMessage } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs';
|
|
26
26
|
import { getEnv22ukahrqwisae as getEnv_0 } from './Main.js.mjs';
|
|
@@ -35,31 +35,40 @@ import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../
|
|
|
35
35
|
//region block: pre-declaration
|
|
36
36
|
//endregion
|
|
37
37
|
function *_generator_run__cb7u2f($this, $completion) {
|
|
38
|
-
var
|
|
38
|
+
var tmp = getAccessToken($completion);
|
|
39
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
40
|
+
tmp = yield tmp;
|
|
41
|
+
var accessToken = tmp;
|
|
39
42
|
if (accessToken == null) {
|
|
40
43
|
$this.a5p('You are not currently logged in. Some functions will not work.');
|
|
41
44
|
$this.a5p('Run `coupling login` to log in.');
|
|
42
45
|
} else {
|
|
43
46
|
var expiration_0 = expiration($this, accessToken);
|
|
44
|
-
var
|
|
45
|
-
|
|
47
|
+
var tmp_0 = getRefreshToken($completion);
|
|
48
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
49
|
+
tmp_0 = yield tmp_0;
|
|
50
|
+
var refreshToken = tmp_0;
|
|
51
|
+
var tmp_1 = getEnv($completion);
|
|
52
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
53
|
+
tmp_1 = yield tmp_1;
|
|
54
|
+
var env = tmp_1;
|
|
46
55
|
// Inline function 'kotlin.collections.get' call
|
|
47
56
|
var this_0 = Companion_getInstance().e6u_1;
|
|
48
57
|
var environment = (isInterface(this_0, KtMap()) ? this_0 : THROW_CCE()).o4(env);
|
|
49
|
-
var
|
|
58
|
+
var tmp_2;
|
|
50
59
|
if (!(env == null) && !(environment == null) && !(refreshToken == null) && !(expiration_0 == null)) {
|
|
51
|
-
var
|
|
60
|
+
var tmp_3 = System_instance.nr();
|
|
52
61
|
// Inline function 'kotlin.time.Companion.minutes' call
|
|
53
62
|
Companion_getInstance_0();
|
|
54
63
|
var tmp$ret$1 = toDuration(15, DurationUnit_MINUTES_getInstance());
|
|
55
|
-
|
|
64
|
+
tmp_2 = expiration_0.hs(tmp_3.fs(tmp$ret$1)) < 0;
|
|
56
65
|
} else {
|
|
57
|
-
|
|
66
|
+
tmp_2 = false;
|
|
58
67
|
}
|
|
59
|
-
if (
|
|
60
|
-
var
|
|
61
|
-
if (
|
|
62
|
-
|
|
68
|
+
if (tmp_2) {
|
|
69
|
+
var tmp_4 = refreshAccessToken($this, refreshToken, environment, env, $completion);
|
|
70
|
+
if (tmp_4 === get_COROUTINE_SUSPENDED())
|
|
71
|
+
tmp_4 = yield tmp_4;
|
|
63
72
|
}
|
|
64
73
|
}
|
|
65
74
|
return Unit_instance;
|
|
@@ -83,7 +92,9 @@ function *_generator_refreshAccessToken__cn2s7m($this, refreshToken, environment
|
|
|
83
92
|
tmp = yield tmp;
|
|
84
93
|
var result = tmp;
|
|
85
94
|
if (result.f4f_1 == null) {
|
|
86
|
-
saveTokens(result, env);
|
|
95
|
+
var tmp_0 = saveTokens(result, env, $completion);
|
|
96
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
97
|
+
tmp_0 = yield tmp_0;
|
|
87
98
|
} else {
|
|
88
99
|
$this.a5p(result.f4f_1, VOID, true);
|
|
89
100
|
}
|
|
@@ -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","expiration","refreshToken","env","environment","<this>","<generator-refreshAccessToken>","client","result","refreshAccessToken","CouplingCli$lambda","CouplingCli$lambda$lambda","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAmBqBA,CAAA,K,EAAAC,WAAAD,EAAU;A,
|
|
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","expiration","refreshToken","env","environment","<this>","<generator-refreshAccessToken>","client","result","refreshAccessToken","CouplingCli$lambda","CouplingCli$lambda$lambda","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAmBqBA,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,MAAO;A,QACHC,eAA6B,WAAZ,KAAY,EAAZ,WAAY,C;QACV,oC;;;QAAnBC,oB;QACU,2B;;;QAAVC,W;;yCACmC,K;QAAnCC,cCqOwC,aAAnB,MAAmB,aAAnB,MAAmB,mBDrOD,GCqOC,C;;IDpOpC,aAAO,IAAP,KAAe,iBAAe,IAAf,CAAf,IAAsC,kBAAgB,IAAhB,CAAtC,IAA8D,kBAAc,IAAd,CAA9D,C;kBAC0B,oB;;;UEqK8C,YAAhC,WFrKH,EEqKG,EAAwB,kCAAxB,C;cFrKxC,gBAAgC,SAAQ,SAAR,CAAhC,K;;cAAA,K;;IADA,U,CAEF;A,UACE,kCAAmB,YAAnB,EAAiC,WAAjC,EAA8C,GAA9C,c;;;IACJ,C;EACJ,C;EACJ,oB;AAAA,C;mBAEQH,CAAA,K,EAAII,aAAJJ,EAAoC;A,MAAA,+BAAU,aAAV,KAAgB,KAAhB,C;MACtC,gEADsC,kBACtC,C;;EACA,+B;UAAA,I;;;UAAc,6BAFwB,kBAExB,C;;EAAsB,U;AAAD,C;+CAEzBK,CAAA,K,EACZJ,Y,EACAE,W,EACAD,G,EAHYJ,WAAAO,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,EACZP,Y,EACAE,W,EACAD,G,EAHYJ,WAAAU,E;;C;2BAgBw3CC,C,eAAAA,E;SAAAC,CAAA,iBAAAA,KAAA;A,aAA6B,Q;QGe/1C,YAAxB,KAAwB,CAAxB,KAAwB,GAAb,WAAa,GAAH,E;IHfu0C,yBAAmB,SAAnB,C;EAAqC,C;C;6BA3Cn6CD,CAAA,aAAAA,EAAA;A,YACJ,a;EAAA,YAAa,yB;EACjB,oB;AAAA,C;kCADiBC,CAAE,GAAFA,EAAA;A,EAAoB,OAAX,SAAO,GAAP,C;AAAY,C;;;;;;;;wCAFf,K;mBGuDZ,2B;oBAEM,MAAM,WAAN,C;QAGlB,YH5DC,IG4DD,EAAY,KAAZ,EAAmB,IAAnB,oBAAyB,4BH5DxB,IG4DwB,CAAzB,C;QH3DC,cAAQ,oBAAR,C;;SAKaC,CAAAb,WAAAa,E;;O;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Entry as Entry } from '@napi-rs/keyring';
|
|
2
|
+
//region block: imports
|
|
3
|
+
//endregion
|
|
4
|
+
//region block: pre-declaration
|
|
5
|
+
//endregion
|
|
6
|
+
function getSecureData(key, $completion) {
|
|
7
|
+
var keyringEntry = new Entry('coupling-cli', key);
|
|
8
|
+
return keyringEntry.getPassword();
|
|
9
|
+
}
|
|
10
|
+
//region block: exports
|
|
11
|
+
export {
|
|
12
|
+
getSecureData as getSecureData9w79udj2hzh2,
|
|
13
|
+
};
|
|
14
|
+
//endregion
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=GetSecureData.js.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/jsMain/kotlin/com/zegreatrob/coupling/cli/GetSecureData.js.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["getSecureData","key","$completion","keyringEntry"],"mappings":";;;;;sBAIeA,CAAkBC,G,EAAlBC,WAAAF,EAAwC;A,MACnDG,eAAmB,UAAM,cAAN,EAAsB,GAAtB,C;EACnB,OAAO,YAAa,c;AACxB,C;;;;;"}
|
|
@@ -3,18 +3,10 @@ import { getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef } from '.
|
|
|
3
3
|
import { Companion_getInstance3p7529cu4pihk as Companion_getInstance } from './Auth0Environment.mjs';
|
|
4
4
|
import { KtorAuth0Client3a2sxtdbcw6av as KtorAuth0Client } from '../../../../../Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs';
|
|
5
5
|
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
6
|
-
import {
|
|
7
|
-
getRefreshTokenejkyh0mxqlsr as getRefreshToken,
|
|
8
|
-
get_couplingHomeDirectory32p7uuvrqu08f as get_couplingHomeDirectory,
|
|
9
|
-
get_configFilePathy8zo0j9e4mo6 as get_configFilePath,
|
|
10
|
-
} from './Main.mjs';
|
|
6
|
+
import { getRefreshToken3qzl7u8y6mmxw as getRefreshToken } from './Main.mjs';
|
|
11
7
|
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
12
8
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
13
9
|
import { openBrowserf7v8b3cea9s1 as openBrowser } from './Login.js.mjs';
|
|
14
|
-
import {
|
|
15
|
-
makeDirectory39ahi9p60nrun as makeDirectory,
|
|
16
|
-
writeDataToFilepwg97q1c4uym as writeDataToFile,
|
|
17
|
-
} from './Main.js.mjs';
|
|
18
10
|
import {
|
|
19
11
|
Companion_getInstance1ji65oeucwbu1 as Companion_getInstance_0,
|
|
20
12
|
toDuration7gy6v749ektt as toDuration,
|
|
@@ -31,6 +23,7 @@ import {
|
|
|
31
23
|
JsonObjectBuilder2nl6rv6vdayuk as JsonObjectBuilder,
|
|
32
24
|
put2xyujhcf0ewjd as put,
|
|
33
25
|
} from '../../../../../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementBuilders.mjs';
|
|
26
|
+
import { writeSecureDatazzfzcao6q74u as writeSecureData } from './WriteSecureData.js.mjs';
|
|
34
27
|
//region block: imports
|
|
35
28
|
//endregion
|
|
36
29
|
//region block: pre-declaration
|
|
@@ -48,36 +41,42 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
48
41
|
var client = new (KtorAuth0Client())();
|
|
49
42
|
if (!(environment == null)) {
|
|
50
43
|
if (_get_refresh__nehp5i($this)) {
|
|
51
|
-
var
|
|
44
|
+
var tmp = getRefreshToken($completion);
|
|
45
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
46
|
+
tmp = yield tmp;
|
|
47
|
+
var refreshToken = tmp;
|
|
52
48
|
if (refreshToken == null) {
|
|
53
49
|
$this.a5p('No refresh token found. Please login again.');
|
|
54
50
|
return Unit_instance;
|
|
55
51
|
}
|
|
56
|
-
var
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
var result =
|
|
52
|
+
var tmp_0 = client.w4f(refreshToken, environment.g6u_1, environment.f6u_1, $completion);
|
|
53
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
54
|
+
tmp_0 = yield tmp_0;
|
|
55
|
+
var result = tmp_0;
|
|
60
56
|
if (result.f4f_1 == null) {
|
|
61
|
-
saveTokens(result, _get_env__e67txg($this));
|
|
57
|
+
var tmp_1 = saveTokens(result, _get_env__e67txg($this), $completion);
|
|
58
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
59
|
+
tmp_1 = yield tmp_1;
|
|
62
60
|
$this.a5p('Login complete!');
|
|
63
61
|
} else {
|
|
64
62
|
$this.a5p(result.f4f_1, VOID, true);
|
|
65
63
|
}
|
|
66
64
|
return Unit_instance;
|
|
67
65
|
}
|
|
68
|
-
var
|
|
69
|
-
if (
|
|
70
|
-
|
|
71
|
-
var result_0 =
|
|
66
|
+
var tmp_2 = client.v4f(environment.g6u_1, environment.f6u_1, $completion);
|
|
67
|
+
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
68
|
+
tmp_2 = yield tmp_2;
|
|
69
|
+
var result_0 = tmp_2;
|
|
72
70
|
$this.a5p('Your user code is: ' + result_0.p4f_1);
|
|
73
71
|
$this.a5p('Please follow link to authenticate: ' + result_0.o4f_1);
|
|
74
72
|
openBrowser(result_0.o4f_1);
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
|
|
78
|
-
var pollResult =
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
var tmp_3 = pollForSuccess($this, client, environment, result_0.q4f_1, result_0.r4f_1, $completion);
|
|
74
|
+
if (tmp_3 === get_COROUTINE_SUSPENDED())
|
|
75
|
+
tmp_3 = yield tmp_3;
|
|
76
|
+
var pollResult = tmp_3;
|
|
77
|
+
var tmp_4 = saveTokens(pollResult, _get_env__e67txg($this), $completion);
|
|
78
|
+
if (tmp_4 === get_COROUTINE_SUSPENDED())
|
|
79
|
+
tmp_4 = yield tmp_4;
|
|
81
80
|
$this.a5p('Login complete!');
|
|
82
81
|
} else {
|
|
83
82
|
$this.a5p('Could not find client_id for environment ' + _get_env__e67txg($this));
|
|
@@ -145,20 +144,25 @@ function Login() {
|
|
|
145
144
|
}
|
|
146
145
|
return LoginClass;
|
|
147
146
|
}
|
|
148
|
-
function
|
|
149
|
-
var tmp = get_configFilePath();
|
|
147
|
+
function *_generator_saveTokens__t0e1gx(pollResult, env, $completion) {
|
|
150
148
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
151
149
|
var builder = new (JsonObjectBuilder())();
|
|
152
150
|
put(builder, 'accessToken', pollResult.g4f_1);
|
|
153
151
|
put(builder, 'refreshToken', pollResult.h4f_1);
|
|
154
152
|
put(builder, 'env', env);
|
|
155
153
|
var tmp$ret$1 = builder.d3z();
|
|
156
|
-
|
|
154
|
+
var tmp = writeSecureData('tokens', tmp$ret$1.toString(), $completion);
|
|
155
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
156
|
+
tmp = yield tmp;
|
|
157
|
+
return Unit_instance;
|
|
158
|
+
}
|
|
159
|
+
function saveTokens(pollResult, env, $completion) {
|
|
160
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_saveTokens__t0e1gx.bind(VOID, pollResult, env), $completion);
|
|
157
161
|
}
|
|
158
162
|
//region block: exports
|
|
159
163
|
export {
|
|
160
164
|
Login as Login123mdhjyjrbrm,
|
|
161
|
-
saveTokens as
|
|
165
|
+
saveTokens as saveTokens29rhum7lzchby,
|
|
162
166
|
};
|
|
163
167
|
//endregion
|
|
164
168
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Login.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/time/Duration.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/formats/json/commonMain/src/kotlinx/serialization/json/JsonElementBuilders.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-env>","<get-refresh>","<generator-run>","$completion","environment","client","refreshToken","result","pollResult","<generator-pollForSuccess>","<this>","deviceCode","interval","pollForSuccess","run","saveTokens","env","builder"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Login.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/time/Duration.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/formats/json/commonMain/src/kotlinx/serialization/json/JsonElementBuilders.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-env>","<get-refresh>","<generator-run>","$completion","environment","client","refreshToken","result","pollResult","<generator-pollForSuccess>","<this>","deviceCode","interval","pollForSuccess","run","<generator-saveTokens>","env","builder","saveTokens"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAeYA,CAAA,KAAAA,EAAW;A;EAAA,yG;AAA6B,C;6BACxCC,CAAA,KAAAA,EAAe;A;EAAA,iH;AAAc,C;gCAEpBC,CAAA,K,EAAAC,WAAAD,EAAU;A,MACvBE,cAAkB,wBAAiB,KAAjB,IAAqB,uBAArB,C;MAElBC,kC;EACI,qBAAe,IAAf,E,CAAqB;A,IACjB,gC,CAAS;A,UACU,kC;;;UAAnBC,kB;MACI,oBAAgB,IAAhB,C,CAAsB;A,QACtB,UAAK,6CAAL,C;QACA,oB;MACJ,C;UACoB,QAAP,MAAO,KAAc,YAAd,EAA4B,WAA5B,CAAwC,KAAxC,EAAkD,WAAlD,CAA8D,KAA9D,c;;;UAApBC,c;MACI,WAAO,KAAP,IAAgB,IAAhB,C,CAAsB;A,YACtB,mBAAW,MAAX,EAAmB,uBAAnB,c;;;QACA,UAAK,iBAAL,C;MACJ,C,MAAO;A,QACH,UAAK,MAAL,CAAY,KAAZ,QAAyB,IAAzB,C;MACJ,C;MACA,oB;IACJ,C;QAEoB,QAAP,MAAO,KAAqB,WAArB,CAAiC,KAAjC,EAA2C,WAA3C,CAAuD,KAAvD,c;;;QAApBA,gB;IAEA,UAAM,qBAAN,GAA2B,QAA3B,CAAkC,KAAlC,C;IACA,UAAM,sCAAN,GAA4C,QAA5C,CAAmD,KAAnD,C;IAE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,C;mBATQC,CAAeV,U,EAA0BQ,G,EAAzCb,WAAAe,E;;C;;;;;"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { default as default_0 } from 'node:process';
|
|
2
|
-
import {
|
|
3
|
-
readFileSync as readFileSync,
|
|
4
|
-
existsSync as existsSync,
|
|
5
|
-
mkdirSync as mkdirSync,
|
|
6
|
-
writeFileSync as writeFileSync,
|
|
7
|
-
} from 'node:fs';
|
|
8
|
-
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
2
|
+
import { writeFileSync as writeFileSync } from 'node:fs';
|
|
9
3
|
import { until1jbpn0z3f8lbg as until } from '../../../../../kotlin-kotlin-stdlib/kotlin/ranges/_Ranges.mjs';
|
|
10
4
|
import { slicek1a5cb4rjmhd as slice } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs';
|
|
11
5
|
import { copyToArray2j022khrow2yi as copyToArray } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs';
|
|
@@ -16,25 +10,6 @@ import { copyToArray2j022khrow2yi as copyToArray } from '../../../../../kotlin-k
|
|
|
16
10
|
function getEnv(variableName) {
|
|
17
11
|
return default_0.env[variableName];
|
|
18
12
|
}
|
|
19
|
-
function readFileText(filePath) {
|
|
20
|
-
var tmp;
|
|
21
|
-
if (existsSync(filePath)) {
|
|
22
|
-
// Inline function 'node.buffer.BufferEncoding.Companion.utf8' call
|
|
23
|
-
tmp = readFileSync(filePath, 'utf8');
|
|
24
|
-
} else {
|
|
25
|
-
tmp = null;
|
|
26
|
-
}
|
|
27
|
-
return tmp;
|
|
28
|
-
}
|
|
29
|
-
function makeDirectory(couplingHomeDirectory) {
|
|
30
|
-
if (!existsSync(couplingHomeDirectory)) {
|
|
31
|
-
// Inline function 'js.objects.unsafeJso' call
|
|
32
|
-
// Inline function 'js.objects.unsafeJso' call
|
|
33
|
-
// Inline function 'kotlin.apply' call
|
|
34
|
-
var this_0 = {};
|
|
35
|
-
mkdirSync(couplingHomeDirectory, this_0);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
13
|
function writeDataToFile(configFilePath, text) {
|
|
39
14
|
writeFileSync(configFilePath, text);
|
|
40
15
|
}
|
|
@@ -46,9 +21,7 @@ function platformArgCorrection(args) {
|
|
|
46
21
|
//region block: exports
|
|
47
22
|
export {
|
|
48
23
|
getEnv as getEnv22ukahrqwisae,
|
|
49
|
-
makeDirectory as makeDirectory39ahi9p60nrun,
|
|
50
24
|
platformArgCorrection as platformArgCorrection3ggda7et9zgom,
|
|
51
|
-
readFileText as readFileText1925l1jg9mv6k,
|
|
52
25
|
writeDataToFile as writeDataToFilepwg97q1c4uym,
|
|
53
26
|
};
|
|
54
27
|
//endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/jsMain/kotlin/com/zegreatrob/coupling/cli/Main.js.kt","
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/jsMain/kotlin/com/zegreatrob/coupling/cli/Main.js.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/js/src/kotlin/collectionJs.kt"],"sourcesContent":[null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["getEnv","variableName","writeDataToFile","configFilePath","text","platformArgCorrection","args"],"mappings":";;;;;;;;;eAWOA,CAAWC,YAAXD,EAA4C;A,EAAyB,OAAzB,UAAQ,GAAR,CAAY,YAAZ,C;AAAwB,C;wBAapEE,CAAoBC,c,EAAwBC,IAA5CF,EAA0D;A,EAC7D,cAAc,cAAd,EAA8B,IAA9B,C;AACJ,C;8BAEOG,CAA0BC,IAA1BD,EAAiD;A;eAAa,MAAb,SAAa,CAAL,IAAK,EAAM,SAAI,SAAJ,CAAY,IAAZ,CAAiB,MAAjB,CAAN,C;EAA2C,OCF1C,YAAY,MAAZ,C;ADEyC,C;;;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
platformArgCorrection3ggda7et9zgom as platformArgCorrection,
|
|
3
3
|
getEnv22ukahrqwisae as getEnv,
|
|
4
|
-
readFileText1925l1jg9mv6k as readFileText,
|
|
5
4
|
} from './Main.js.mjs';
|
|
6
5
|
import { main2xv360d379qvt as main } from '../../../../../clikt-clikt/com/github/ajalt/clikt/command/CoreSuspendingCliktCommand.mjs';
|
|
7
6
|
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
@@ -16,6 +15,7 @@ import { Login123mdhjyjrbrm as Login } from './Login.mjs';
|
|
|
16
15
|
import { subcommands1t5srr48gscgb as subcommands } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs';
|
|
17
16
|
import { ConfigCommand32320kdqfgpio as ConfigCommand } from './ConfigCommand.mjs';
|
|
18
17
|
import { party157pvraectlfk as party } from './party/Party.mjs';
|
|
18
|
+
import { getSecureData9w79udj2hzh2 as getSecureData } from './GetSecureData.js.mjs';
|
|
19
19
|
import { Default_getInstancejkv49nkel8hp as Default_getInstance } from '../../../../../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs';
|
|
20
20
|
import {
|
|
21
21
|
get_jsonObject2u4z2ch1uuca9 as get_jsonObject,
|
|
@@ -27,16 +27,6 @@ import { get_EmptyContinuationn1rwa6yr6j5w as get_EmptyContinuation } from '../.
|
|
|
27
27
|
//endregion
|
|
28
28
|
//region block: pre-declaration
|
|
29
29
|
//endregion
|
|
30
|
-
function get_couplingHomeDirectory() {
|
|
31
|
-
_init_properties_Main_kt__xi25uv();
|
|
32
|
-
return couplingHomeDirectory;
|
|
33
|
-
}
|
|
34
|
-
var couplingHomeDirectory;
|
|
35
|
-
function get_configFilePath() {
|
|
36
|
-
_init_properties_Main_kt__xi25uv();
|
|
37
|
-
return configFilePath;
|
|
38
|
-
}
|
|
39
|
-
var configFilePath;
|
|
40
30
|
function *_generator_main__qlaff5(args, $completion) {
|
|
41
31
|
var tmp = main(cli(), platformArgCorrection(args), $completion);
|
|
42
32
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
@@ -48,101 +38,105 @@ function main_0(args, $completion) {
|
|
|
48
38
|
}
|
|
49
39
|
function cli(cannon) {
|
|
50
40
|
cannon = cannon === VOID ? null : cannon;
|
|
51
|
-
_init_properties_Main_kt__xi25uv();
|
|
52
41
|
return subcommands(subcommands(subcommands(new (CouplingCli())(), [new (Login())()]), [new (ConfigCommand())()]), [party(cannon)]);
|
|
53
42
|
}
|
|
54
|
-
function
|
|
55
|
-
_init_properties_Main_kt__xi25uv();
|
|
43
|
+
function *_generator_getAccessToken__foydux($completion) {
|
|
56
44
|
var tmp0_elvis_lhs = getEnv('COUPLING_CLI_ACCESS_TOKEN');
|
|
57
45
|
var tmp;
|
|
58
46
|
if (tmp0_elvis_lhs == null) {
|
|
59
|
-
var
|
|
60
|
-
|
|
47
|
+
var tmp_0 = getSecureData('tokens', $completion);
|
|
48
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
49
|
+
tmp_0 = yield tmp_0;
|
|
50
|
+
var tmp1_safe_receiver = tmp_0;
|
|
51
|
+
var tmp_1;
|
|
61
52
|
if (tmp1_safe_receiver == null) {
|
|
62
|
-
|
|
53
|
+
tmp_1 = null;
|
|
63
54
|
} else {
|
|
64
55
|
// Inline function 'kotlin.let' call
|
|
65
|
-
|
|
56
|
+
tmp_1 = Default_getInstance().w3x(tmp1_safe_receiver);
|
|
66
57
|
}
|
|
67
|
-
var tmp2_safe_receiver =
|
|
68
|
-
var
|
|
58
|
+
var tmp2_safe_receiver = tmp_1;
|
|
59
|
+
var tmp_2;
|
|
69
60
|
if (tmp2_safe_receiver == null) {
|
|
70
|
-
|
|
61
|
+
tmp_2 = null;
|
|
71
62
|
} else {
|
|
72
63
|
// Inline function 'kotlin.let' call
|
|
73
64
|
var tmp0_safe_receiver = get_jsonObject(tmp2_safe_receiver).gi('accessToken');
|
|
74
65
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
75
|
-
|
|
66
|
+
tmp_2 = tmp1_safe_receiver_0 == null ? null : get_contentOrNull(tmp1_safe_receiver_0);
|
|
76
67
|
}
|
|
77
|
-
tmp =
|
|
68
|
+
tmp = tmp_2;
|
|
78
69
|
} else {
|
|
79
70
|
tmp = tmp0_elvis_lhs;
|
|
80
71
|
}
|
|
81
72
|
return tmp;
|
|
82
73
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
function getAccessToken($completion) {
|
|
75
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_getAccessToken__foydux.bind(VOID), $completion);
|
|
76
|
+
}
|
|
77
|
+
function *_generator_getRefreshToken__i8vn34($completion) {
|
|
78
|
+
var tmp = getSecureData('tokens', $completion);
|
|
79
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
80
|
+
tmp = yield tmp;
|
|
81
|
+
var tmp0_safe_receiver = tmp;
|
|
82
|
+
var tmp_0;
|
|
87
83
|
if (tmp0_safe_receiver == null) {
|
|
88
|
-
|
|
84
|
+
tmp_0 = null;
|
|
89
85
|
} else {
|
|
90
86
|
// Inline function 'kotlin.let' call
|
|
91
|
-
|
|
87
|
+
tmp_0 = Default_getInstance().w3x(tmp0_safe_receiver);
|
|
92
88
|
}
|
|
93
|
-
var tmp1_safe_receiver =
|
|
94
|
-
var
|
|
89
|
+
var tmp1_safe_receiver = tmp_0;
|
|
90
|
+
var tmp_1;
|
|
95
91
|
if (tmp1_safe_receiver == null) {
|
|
96
|
-
|
|
92
|
+
tmp_1 = null;
|
|
97
93
|
} else {
|
|
98
94
|
// Inline function 'kotlin.let' call
|
|
99
95
|
var tmp0_safe_receiver_0 = get_jsonObject(tmp1_safe_receiver).gi('refreshToken');
|
|
100
96
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : get_jsonPrimitive(tmp0_safe_receiver_0);
|
|
101
|
-
|
|
97
|
+
tmp_1 = tmp1_safe_receiver_0 == null ? null : get_contentOrNull(tmp1_safe_receiver_0);
|
|
102
98
|
}
|
|
103
|
-
return
|
|
99
|
+
return tmp_1;
|
|
104
100
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
function getRefreshToken($completion) {
|
|
102
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_getRefreshToken__i8vn34.bind(VOID), $completion);
|
|
103
|
+
}
|
|
104
|
+
function *_generator_getEnv__1tfkq9($completion) {
|
|
105
|
+
var tmp = getSecureData('tokens', $completion);
|
|
106
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
107
|
+
tmp = yield tmp;
|
|
108
|
+
var tmp0_safe_receiver = tmp;
|
|
109
|
+
var tmp_0;
|
|
109
110
|
if (tmp0_safe_receiver == null) {
|
|
110
|
-
|
|
111
|
+
tmp_0 = null;
|
|
111
112
|
} else {
|
|
112
113
|
// Inline function 'kotlin.let' call
|
|
113
|
-
|
|
114
|
+
tmp_0 = Default_getInstance().w3x(tmp0_safe_receiver);
|
|
114
115
|
}
|
|
115
|
-
var tmp1_safe_receiver =
|
|
116
|
-
var
|
|
116
|
+
var tmp1_safe_receiver = tmp_0;
|
|
117
|
+
var tmp_1;
|
|
117
118
|
if (tmp1_safe_receiver == null) {
|
|
118
|
-
|
|
119
|
+
tmp_1 = null;
|
|
119
120
|
} else {
|
|
120
121
|
// Inline function 'kotlin.let' call
|
|
121
122
|
var tmp0_safe_receiver_0 = get_jsonObject(tmp1_safe_receiver).gi('env');
|
|
122
123
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : get_jsonPrimitive(tmp0_safe_receiver_0);
|
|
123
|
-
|
|
124
|
+
tmp_1 = tmp1_safe_receiver_0 == null ? null : get_contentOrNull(tmp1_safe_receiver_0);
|
|
124
125
|
}
|
|
125
|
-
return
|
|
126
|
+
return tmp_1;
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (!properties_initialized_Main_kt_gqj46d) {
|
|
130
|
-
properties_initialized_Main_kt_gqj46d = true;
|
|
131
|
-
couplingHomeDirectory = '' + getEnv('HOME') + '/.coupling';
|
|
132
|
-
configFilePath = get_couplingHomeDirectory() + '/config.json';
|
|
133
|
-
}
|
|
128
|
+
function getEnv_0($completion) {
|
|
129
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_getEnv__1tfkq9.bind(VOID), $completion);
|
|
134
130
|
}
|
|
135
131
|
function mainWrapper() {
|
|
136
132
|
startCoroutineUninterceptedOrReturnGeneratorVersion(main_0, [], get_EmptyContinuation());
|
|
137
133
|
}
|
|
138
134
|
//region block: exports
|
|
139
135
|
export {
|
|
140
|
-
get_configFilePath as get_configFilePathy8zo0j9e4mo6,
|
|
141
|
-
get_couplingHomeDirectory as get_couplingHomeDirectory32p7uuvrqu08f,
|
|
142
|
-
getAccessToken as getAccessToken3ewjdaz56mx7j,
|
|
143
|
-
getEnv_0 as getEnv12wmwmq6kmrs6,
|
|
144
|
-
getRefreshToken as getRefreshTokenejkyh0mxqlsr,
|
|
145
136
|
mainWrapper as mainWrapperic1xxwkefg2h,
|
|
137
|
+
getAccessToken as getAccessToken2grvutyqcsf3s,
|
|
138
|
+
getEnv_0 as getEnv2e13oawzwjmok,
|
|
139
|
+
getRefreshToken as getRefreshToken3qzl7u8y6mmxw,
|
|
146
140
|
};
|
|
147
141
|
//endregion
|
|
148
142
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Main.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Main.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-main>","args","$completion","main","cli","cannon","<generator-getAccessToken>","getAccessToken","<generator-getRefreshToken>","getRefreshToken","<generator-getEnv>","getEnv"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAYQA,CAASC,I,EAATC,WAAAF,EAA8B;A,MAE7B,WADL,KACK,EAAK,sBAAsB,IAAtB,CAAL,c;;;EACT,oB;AAAA,C;eAHQG,CAASF,I,EAATC,WAAAC,E;;C;YAKRC,CAAQC,MAARD,EAA4E;A,6BAArB,I;EAGxB,OAA1B,YADA,YADA,mCAAY,iBAAZ,CACA,EAAY,yBAAZ,CACA,EAAY,OAAM,MAAN,EAAZ,C;AAAyB,C;2CAOtBE,CAAAJ,WAAAI,EAAuB;A,MAAA,wBAAO,2BAAP,C;;EAAA,2B;QACxB,sBAAc,QAAd,c;;;QAAA,0B;;IACG,+B;cAAA,I;;;cAAI,0BADP,kBACO,C;;QAAJ,0B;;IACA,+B;cAAA,I;;;UAAM,qBAAG,eAFZ,kBAEY,CAAH,IAAc,aAAd,C;UAA8B,6EAA9B,kBAA8B,C;cAAe,wDAA7C,oBAA6C,C;;;;UAH9B,c;;EAG6C,U;AAAD,C;uBAHnEC,CAAAL,WAAAK,E;;C;4CAKAC,CAAAN,WAAAM,EAAwB;A,MAAA,oBAAc,QAAd,c;;;MAAA,wB;;EAC1B,+B;YAAA,I;;;YAAI,0BADsB,kBACtB,C;;MAAJ,0B;;EACA,+B;YAAA,I;;;QAAM,uBAAG,eAFiB,kBAEjB,CAAH,IAAc,cAAd,C;QAA+B,+EAA/B,oBAA+B,C;YAAe,wDAA9C,oBAA8C,C;;EAAe,Y;AAAD,C;wBAFhEC,CAAAP,WAAAO,E;;C;mCAIAC,CAAAR,WAAAQ,EAAe;A,MAAA,oBAAc,QAAd,c;;;MAAA,wB;;EACjB,+B;YAAA,I;;;YAAI,0BADa,kBACb,C;;MAAJ,0B;;EACA,+B;YAAA,I;;;QAAM,uBAAG,eAFQ,kBAER,CAAH,IAAc,KAAd,C;QAAsB,+EAAtB,oBAAsB,C;YAAe,wDAArC,oBAAqC,C;;EAAe,Y;AAAD,C;iBAFvDC,CAAAT,WAAAS,E;;C;;;;;;;;"}
|
|
@@ -3,7 +3,7 @@ import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotl
|
|
|
3
3
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
4
4
|
import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
5
5
|
import { Companion_getInstance3p7529cu4pihk as Companion_getInstance } from './Auth0Environment.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { getAccessToken2grvutyqcsf3s as getAccessToken } from './Main.mjs';
|
|
7
7
|
import { defaultClient32xevb6g4ofep as defaultClient } from '../../../../../Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSyntax.mjs';
|
|
8
8
|
import { Companion_getInstance20qyxpgw1gyvv as Companion_getInstance_0 } from '../../../../../kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs';
|
|
9
9
|
import { LoggingActionPipenpslk1461eyq as LoggingActionPipe } from '../../../../../Coupling-libraries-action/com/zegreatrob/coupling/action/LoggingActionPipe.mjs';
|
|
@@ -16,27 +16,39 @@ import { get_HttpRequestRetry3m7x7jck45t4l as get_HttpRequestRetry } from '../..
|
|
|
16
16
|
//region block: pre-declaration
|
|
17
17
|
//endregion
|
|
18
18
|
function *_generator_withSdk__8huckg(env, echo, cannon, doWork, $completion) {
|
|
19
|
-
var tmp1_safe_receiver = cannon == null ? loadSdk(env, echo) : cannon;
|
|
20
19
|
var tmp;
|
|
20
|
+
if (cannon == null) {
|
|
21
|
+
var tmp_0 = loadSdk(env, echo, $completion);
|
|
22
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
23
|
+
tmp_0 = yield tmp_0;
|
|
24
|
+
tmp = tmp_0;
|
|
25
|
+
} else {
|
|
26
|
+
tmp = cannon;
|
|
27
|
+
}
|
|
28
|
+
var tmp1_safe_receiver = tmp;
|
|
29
|
+
var tmp_1;
|
|
21
30
|
if (tmp1_safe_receiver == null) {
|
|
22
|
-
|
|
31
|
+
tmp_1 = null;
|
|
23
32
|
} else {
|
|
24
33
|
// Inline function 'kotlin.let' call
|
|
25
|
-
var
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
var tmp_2 = doWork(tmp1_safe_receiver, $completion);
|
|
35
|
+
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
36
|
+
tmp_2 = yield tmp_2;
|
|
37
|
+
tmp_1 = Unit_instance;
|
|
29
38
|
}
|
|
30
|
-
return
|
|
39
|
+
return tmp_1;
|
|
31
40
|
}
|
|
32
41
|
function withSdk(env, echo, cannon, doWork, $completion) {
|
|
33
42
|
cannon = cannon === VOID ? null : cannon;
|
|
34
43
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_withSdk__8huckg.bind(VOID, env, echo, cannon, doWork), $completion);
|
|
35
44
|
}
|
|
36
|
-
function
|
|
45
|
+
function *_generator_loadSdk__ggczpc(env, echo, $completion) {
|
|
37
46
|
var environment = Companion_getInstance().e6u_1.o4(env);
|
|
38
47
|
if (!(environment == null)) {
|
|
39
|
-
var
|
|
48
|
+
var tmp = getAccessToken($completion);
|
|
49
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
50
|
+
tmp = yield tmp;
|
|
51
|
+
var accessToken = tmp;
|
|
40
52
|
if (accessToken == null) {
|
|
41
53
|
echo('You are not currently logged in.');
|
|
42
54
|
} else {
|
|
@@ -47,6 +59,9 @@ function loadSdk(env, echo) {
|
|
|
47
59
|
}
|
|
48
60
|
return null;
|
|
49
61
|
}
|
|
62
|
+
function loadSdk(env, echo, $completion) {
|
|
63
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_loadSdk__ggczpc.bind(VOID, env, echo), $completion);
|
|
64
|
+
}
|
|
50
65
|
function actionCannon(accessToken, environment) {
|
|
51
66
|
var tmp = actionCannon$slambda_0(accessToken);
|
|
52
67
|
var tmp_0 = defaultClient(audienceHost(environment));
|
|
@@ -90,7 +105,7 @@ function actionCannon$lambda$lambda($this$install) {
|
|
|
90
105
|
}
|
|
91
106
|
//region block: exports
|
|
92
107
|
export {
|
|
93
|
-
loadSdk as
|
|
108
|
+
loadSdk as loadSdkhnbciq6dnqu9,
|
|
94
109
|
withSdk as withSdk37el2mum158ry,
|
|
95
110
|
};
|
|
96
111
|
//endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/WithSdk.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-withSdk>","env","echo","cannon","doWork","$completion","withSdk","loadSdk","environment","accessToken","actionCannon","sdk","audienceHost","<this>","$accessToken","invoke","actionCannon$slambda","actionCannon$slambda$lambda","actionCannon$lambda","actionCannon$lambda$lambda"],"mappings":";;;;;;;;;;;;;;;;;oCAUQA,CACJC,G,EACAC,I,EACAC,M,EACAC,M,EAJIC,WAAAL,EAKJ;A,
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/WithSdk.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-withSdk>","env","echo","cannon","doWork","$completion","withSdk","<generator-loadSdk>","environment","accessToken","loadSdk","actionCannon","sdk","audienceHost","<this>","$accessToken","invoke","actionCannon$slambda","actionCannon$slambda$lambda","actionCannon$lambda","actionCannon$lambda$lambda"],"mappings":";;;;;;;;;;;;;;;;;oCAUQA,CACJC,G,EACAC,I,EACAC,M,EACAC,M,EAJIC,WAAAL,EAKJ;A;EAAC,mB;QAAU,gBAAQ,GAAR,EAAa,IAAb,c;;;;;UAAV,M;;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} from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
3
|
+
//region block: imports
|
|
4
|
+
//endregion
|
|
5
|
+
//region block: pre-declaration
|
|
6
|
+
//endregion
|
|
7
|
+
function writeSecureData(key, text, $completion) {
|
|
8
|
+
var keyringEntry = new Entry('coupling-cli', key);
|
|
9
|
+
keyringEntry.setPassword(text);
|
|
10
|
+
return Unit_instance;
|
|
11
|
+
}
|
|
12
|
+
//region block: exports
|
|
13
|
+
export {
|
|
14
|
+
writeSecureData as writeSecureDatazzfzcao6q74u,
|
|
15
|
+
};
|
|
16
|
+
//endregion
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=WriteSecureData.js.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/jsMain/kotlin/com/zegreatrob/coupling/cli/WriteSecureData.js.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["writeSecureData","key","text","$completion","keyringEntry"],"mappings":";;;;;;wBAIeA,CAAoBC,G,EAAaC,I,EAAjCC,WAAAH,EAA+C;A,MAC1DI,eAAmB,UAAM,cAAN,EAAsB,GAAtB,C;EACnB,YAAa,aAAY,IAAZ,C;EACjB,oB;AAAA,C;;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { KProperty1ca4yb4wlo496 as KProperty1 } from '../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs';
|
|
2
2
|
import { getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { loadSdkhnbciq6dnqu9 as loadSdk } from '../WithSdk.mjs';
|
|
4
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
4
5
|
import { CurrentPairAssignmentsQuery1x9nhq4r5rz16 as CurrentPairAssignmentsQuery } from '../../../../../../Coupling-sdk/com/zegreatrob/coupling/sdk/schema/CurrentPairAssignmentsQuery.mjs';
|
|
5
6
|
import { GqlQueryfz0vfezppkdu as GqlQuery } from '../../../../../../Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlQuery.mjs';
|
|
6
|
-
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
7
7
|
import { toDomain1qiw3uqaiuwlg as toDomain } from '../../../../../../Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/PairingSetDetailsMapper.mjs';
|
|
8
8
|
import { CliktError136b5l5psfi1n as CliktError } from '../../../../../../clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs';
|
|
9
9
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
@@ -59,21 +59,24 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
59
59
|
var tmp;
|
|
60
60
|
if (tmp0_elvis_lhs == null) {
|
|
61
61
|
var tmp_0 = _get_context__ps0bpe($this).c6z_1;
|
|
62
|
-
|
|
62
|
+
var tmp_1 = loadSdk(tmp_0, CurrentPairs$echo$ref($this), $completion);
|
|
63
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
64
|
+
tmp_1 = yield tmp_1;
|
|
65
|
+
tmp = tmp_1;
|
|
63
66
|
} else {
|
|
64
67
|
tmp = tmp0_elvis_lhs;
|
|
65
68
|
}
|
|
66
69
|
var actionCannon = tmp;
|
|
67
|
-
var
|
|
70
|
+
var tmp_2;
|
|
68
71
|
if (actionCannon == null) {
|
|
69
|
-
|
|
72
|
+
tmp_2 = null;
|
|
70
73
|
} else {
|
|
71
|
-
var
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
var tmp_3 = actionCannon.p53(new (GqlQuery())(new (CurrentPairAssignmentsQuery())(_get_partyId__g79dgw($this))), $completion);
|
|
75
|
+
if (tmp_3 === get_COROUTINE_SUSPENDED())
|
|
76
|
+
tmp_3 = yield tmp_3;
|
|
77
|
+
tmp_2 = tmp_3;
|
|
75
78
|
}
|
|
76
|
-
var tmp2_safe_receiver =
|
|
79
|
+
var tmp2_safe_receiver = tmp_2;
|
|
77
80
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y5h_1;
|
|
78
81
|
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.z5h_1;
|
|
79
82
|
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.b5i_1;
|
|
@@ -89,19 +92,19 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
89
92
|
$this.a5p('- ' + callSign(pair).toString());
|
|
90
93
|
// Inline function 'com.zegreatrob.coupling.model.map' call
|
|
91
94
|
var this_1 = get_players(pair);
|
|
92
|
-
var
|
|
95
|
+
var tmp_4 = _NotEmptyList___get_head__impl__zp2sw(this_1).g50_1;
|
|
93
96
|
var tmp0_safe_receiver = _NotEmptyList___get_tail__impl__3z1zi8(this_1);
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
if ((
|
|
97
|
-
|
|
97
|
+
var tmp_5;
|
|
98
|
+
var tmp_6 = tmp0_safe_receiver;
|
|
99
|
+
if ((tmp_6 == null ? null : new (NotEmptyList())(tmp_6)) == null) {
|
|
100
|
+
tmp_5 = null;
|
|
98
101
|
} else {
|
|
99
|
-
|
|
102
|
+
tmp_5 = NotEmptyList__toList_impl_nbkblo(tmp0_safe_receiver);
|
|
100
103
|
}
|
|
101
|
-
var tmp1_safe_receiver =
|
|
102
|
-
var
|
|
104
|
+
var tmp1_safe_receiver = tmp_5;
|
|
105
|
+
var tmp_7;
|
|
103
106
|
if (tmp1_safe_receiver == null) {
|
|
104
|
-
|
|
107
|
+
tmp_7 = null;
|
|
105
108
|
} else {
|
|
106
109
|
// Inline function 'kotlin.collections.map' call
|
|
107
110
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -112,38 +115,38 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
112
115
|
var tmp$ret$1 = item.g50_1;
|
|
113
116
|
destination.t2(tmp$ret$1);
|
|
114
117
|
}
|
|
115
|
-
|
|
118
|
+
tmp_7 = destination;
|
|
116
119
|
}
|
|
117
|
-
var tmp2_safe_receiver_0 =
|
|
118
|
-
var
|
|
120
|
+
var tmp2_safe_receiver_0 = tmp_7;
|
|
121
|
+
var tmp_8;
|
|
119
122
|
if (tmp2_safe_receiver_0 == null) {
|
|
120
|
-
|
|
123
|
+
tmp_8 = null;
|
|
121
124
|
} else {
|
|
122
125
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
123
|
-
|
|
126
|
+
tmp_8 = copyToArray(tmp2_safe_receiver_0);
|
|
124
127
|
}
|
|
125
|
-
var tmp3_elvis_lhs =
|
|
126
|
-
var
|
|
128
|
+
var tmp3_elvis_lhs = tmp_8;
|
|
129
|
+
var tmp_9;
|
|
127
130
|
if (tmp3_elvis_lhs == null) {
|
|
128
131
|
// Inline function 'kotlin.emptyArray' call
|
|
129
|
-
|
|
132
|
+
tmp_9 = [];
|
|
130
133
|
} else {
|
|
131
|
-
|
|
134
|
+
tmp_9 = tmp3_elvis_lhs;
|
|
132
135
|
}
|
|
133
|
-
var tmp$ret$6 = notEmptyListOf(
|
|
136
|
+
var tmp$ret$6 = notEmptyListOf(tmp_4, tmp_9.slice());
|
|
134
137
|
$this.a5p(' ' + joinToString(NotEmptyList__toList_impl_nbkblo(tmp$ret$6), ' & '));
|
|
135
138
|
var tmp0_safe_receiver_0 = _NotEmptyList___get_tail__impl__3z1zi8(this_0);
|
|
136
|
-
var
|
|
137
|
-
var
|
|
138
|
-
if ((
|
|
139
|
-
|
|
139
|
+
var tmp_10;
|
|
140
|
+
var tmp_11 = tmp0_safe_receiver_0;
|
|
141
|
+
if ((tmp_11 == null ? null : new (NotEmptyList())(tmp_11)) == null) {
|
|
142
|
+
tmp_10 = null;
|
|
140
143
|
} else {
|
|
141
|
-
|
|
144
|
+
tmp_10 = NotEmptyList__toList_impl_nbkblo(tmp0_safe_receiver_0);
|
|
142
145
|
}
|
|
143
|
-
var tmp1_safe_receiver_0 =
|
|
144
|
-
var
|
|
146
|
+
var tmp1_safe_receiver_0 = tmp_10;
|
|
147
|
+
var tmp_12;
|
|
145
148
|
if (tmp1_safe_receiver_0 == null) {
|
|
146
|
-
|
|
149
|
+
tmp_12 = null;
|
|
147
150
|
} else {
|
|
148
151
|
// Inline function 'kotlin.collections.map' call
|
|
149
152
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -154,19 +157,19 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
154
157
|
$this.a5p('- ' + callSign(item_0).toString());
|
|
155
158
|
// Inline function 'com.zegreatrob.coupling.model.map' call
|
|
156
159
|
var this_2 = get_players(item_0);
|
|
157
|
-
var
|
|
160
|
+
var tmp_13 = _NotEmptyList___get_head__impl__zp2sw(this_2).g50_1;
|
|
158
161
|
var tmp0_safe_receiver_1 = _NotEmptyList___get_tail__impl__3z1zi8(this_2);
|
|
159
|
-
var
|
|
160
|
-
var
|
|
161
|
-
if ((
|
|
162
|
-
|
|
162
|
+
var tmp_14;
|
|
163
|
+
var tmp_15 = tmp0_safe_receiver_1;
|
|
164
|
+
if ((tmp_15 == null ? null : new (NotEmptyList())(tmp_15)) == null) {
|
|
165
|
+
tmp_14 = null;
|
|
163
166
|
} else {
|
|
164
|
-
|
|
167
|
+
tmp_14 = NotEmptyList__toList_impl_nbkblo(tmp0_safe_receiver_1);
|
|
165
168
|
}
|
|
166
|
-
var tmp1_safe_receiver_1 =
|
|
167
|
-
var
|
|
169
|
+
var tmp1_safe_receiver_1 = tmp_14;
|
|
170
|
+
var tmp_16;
|
|
168
171
|
if (tmp1_safe_receiver_1 == null) {
|
|
169
|
-
|
|
172
|
+
tmp_16 = null;
|
|
170
173
|
} else {
|
|
171
174
|
// Inline function 'kotlin.collections.map' call
|
|
172
175
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -177,47 +180,47 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
177
180
|
var tmp$ret$9 = item_1.g50_1;
|
|
178
181
|
destination_1.t2(tmp$ret$9);
|
|
179
182
|
}
|
|
180
|
-
|
|
183
|
+
tmp_16 = destination_1;
|
|
181
184
|
}
|
|
182
|
-
var tmp2_safe_receiver_1 =
|
|
183
|
-
var
|
|
185
|
+
var tmp2_safe_receiver_1 = tmp_16;
|
|
186
|
+
var tmp_17;
|
|
184
187
|
if (tmp2_safe_receiver_1 == null) {
|
|
185
|
-
|
|
188
|
+
tmp_17 = null;
|
|
186
189
|
} else {
|
|
187
190
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
188
|
-
|
|
191
|
+
tmp_17 = copyToArray(tmp2_safe_receiver_1);
|
|
189
192
|
}
|
|
190
|
-
var tmp3_elvis_lhs_0 =
|
|
191
|
-
var
|
|
193
|
+
var tmp3_elvis_lhs_0 = tmp_17;
|
|
194
|
+
var tmp_18;
|
|
192
195
|
if (tmp3_elvis_lhs_0 == null) {
|
|
193
196
|
// Inline function 'kotlin.emptyArray' call
|
|
194
|
-
|
|
197
|
+
tmp_18 = [];
|
|
195
198
|
} else {
|
|
196
|
-
|
|
199
|
+
tmp_18 = tmp3_elvis_lhs_0;
|
|
197
200
|
}
|
|
198
|
-
var tmp$ret$14 = notEmptyListOf(
|
|
201
|
+
var tmp$ret$14 = notEmptyListOf(tmp_13, tmp_18.slice());
|
|
199
202
|
$this.a5p(' ' + joinToString(NotEmptyList__toList_impl_nbkblo(tmp$ret$14), ' & '));
|
|
200
203
|
destination_0.t2(Unit_instance);
|
|
201
204
|
}
|
|
202
|
-
|
|
205
|
+
tmp_12 = destination_0;
|
|
203
206
|
}
|
|
204
|
-
var tmp2_safe_receiver_2 =
|
|
205
|
-
var
|
|
207
|
+
var tmp2_safe_receiver_2 = tmp_12;
|
|
208
|
+
var tmp_19;
|
|
206
209
|
if (tmp2_safe_receiver_2 == null) {
|
|
207
|
-
|
|
210
|
+
tmp_19 = null;
|
|
208
211
|
} else {
|
|
209
212
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
210
|
-
|
|
213
|
+
tmp_19 = copyToArray(tmp2_safe_receiver_2);
|
|
211
214
|
}
|
|
212
|
-
var tmp3_elvis_lhs_1 =
|
|
213
|
-
var
|
|
215
|
+
var tmp3_elvis_lhs_1 = tmp_19;
|
|
216
|
+
var tmp_20;
|
|
214
217
|
if (tmp3_elvis_lhs_1 == null) {
|
|
215
218
|
// Inline function 'kotlin.emptyArray' call
|
|
216
|
-
|
|
219
|
+
tmp_20 = [];
|
|
217
220
|
} else {
|
|
218
|
-
|
|
221
|
+
tmp_20 = tmp3_elvis_lhs_1;
|
|
219
222
|
}
|
|
220
|
-
notEmptyListOf(Unit_instance,
|
|
223
|
+
notEmptyListOf(Unit_instance, tmp_20.slice());
|
|
221
224
|
return Unit_instance;
|
|
222
225
|
}
|
|
223
226
|
var sam$kotlin_properties_ReadOnlyProperty$0Class;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/party/CurrentPairs.kt","../../../../../libraries/model/src/commonMain/kotlin/com/zegreatrob/coupling/model/NotEmptyExtensions.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/common/src/generated/_Collections.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/js/src/kotlin/collectionJs.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/js/src/kotlin/kotlin.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/core/Context.kt"],"sourcesContent":[null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-context>","<get-partyId>","<generator-run>","$completion","actionCannon","pairingSet","item","getValue","thisRef","property","equals","hashCode","CurrentPairs$context$delegate$lambda$lambda","CurrentPairs$context$delegate$lambda$lambda$lambda","CurrentPairs$context$delegate$lambda","CurrentPairs$partyId$delegate$lambda$lambda","CurrentPairs$partyId$delegate$lambda$lambda$lambda","CurrentPairs$partyId$delegate$lambda","CurrentPairs$echo$ref","p0","CurrentPairs$echo$ref$lambda","cannon","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAkBYA,CAAA,KAAAA,EAAe;A;EAAA,sH;AAA4B,C;6BAC3CC,CAAA,KAAAA,EAAwB;A;EAAA,sH;AAAgC,C;gCAE/CC,CAAA,K,EAAAC,WAAAD,EAAU;A,MACJ,4B;;EAAA,2B;gBAAkB,2B,CAAQ,K;
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/party/CurrentPairs.kt","../../../../../libraries/model/src/commonMain/kotlin/com/zegreatrob/coupling/model/NotEmptyExtensions.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/common/src/generated/_Collections.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/js/src/kotlin/collectionJs.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/js/src/kotlin/kotlin.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/core/Context.kt"],"sourcesContent":[null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-context>","<get-partyId>","<generator-run>","$completion","actionCannon","pairingSet","item","getValue","thisRef","property","equals","hashCode","CurrentPairs$context$delegate$lambda$lambda","CurrentPairs$context$delegate$lambda$lambda$lambda","CurrentPairs$context$delegate$lambda","CurrentPairs$partyId$delegate$lambda$lambda","CurrentPairs$partyId$delegate$lambda$lambda$lambda","CurrentPairs$partyId$delegate$lambda","CurrentPairs$echo$ref","p0","CurrentPairs$echo$ref$lambda","cannon","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAkBYA,CAAA,KAAAA,EAAe;A;EAAA,sH;AAA4B,C;6BAC3CC,CAAA,KAAAA,EAAwB;A;EAAA,sH;AAAgC,C;gCAE/CC,CAAA,K,EAAAC,WAAAD,EAAU;A,MACJ,4B;;EAAA,2B;gBAAkB,2B,CAAQ,K;QAAhB,uBAAqB,4BAArB,c;;;;;UAAV,c;;MAAnBE,kB;;EAC+B,IAAd,YAAc,S;YAAA,I;;QAAA,QAAd,YAAc,0DAA0C,2BAA1C,gB;;;;;MAAA,0B;MACzB,yDADW,kBACX,M;MAAO,yDADI,kBACJ,M;MAAmB,yDADf,kBACe,M;MADhCC,aACmD,6CADlC,kBACkC,C;EAE/C,kBAAc,IAAd,C,CAAoB;A,IACpB,uBAAiB,kBAAjB,cAAkD,IAAlD,C;EACJ,C;EACA,UAAM,8BAAN,wCAAoC,2BAApC,CAA4C,KAA5C,E;EACA,UAAK,EAAL,C;;eACA,U,CAAW,K;aCzBC,6C;ED0BR,UAAM,IAAN,GAAe,SAAL,IAAK,CAAf,Y;;eACe,YAAL,IAAK,C;cC3BP,6C,CD2BwB,K;MC1BjC,mE;;cAAM,kB;EAAA,iE;YAAA,I;;YAAA,iCAAN,kBAAM,C;;MAAA,0B;;EAAU,+B;YAAA,I;;;;sBC0iDV,eAAa,wBD1iDnB,kBC0iDmB,EAAwB,EAAxB,CAAb,C;QA2EA,oBDrnDN,kBCqnDM,K;WAAA,sB,EACT;A,UADCC,OAAQ,sB;UF3lD+B,YE4lDd,IF5lDc,C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oBACS,I;;YKkdR,6CLld+B,SKkd/B,C;QLldQ,iEKkdR,KLldQ,C;;SAEfC,CAAAnB,WAAAmB,E;;O;;;;;;;;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { KProperty1ca4yb4wlo496 as KProperty1 } from '../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs';
|
|
2
2
|
import { getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { loadSdkhnbciq6dnqu9 as loadSdk } from '../WithSdk.mjs';
|
|
4
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
4
5
|
import { PartyDetailsQuery1ma7sq80in4hi as PartyDetailsQuery } from '../../../../../../Coupling-sdk/com/zegreatrob/coupling/sdk/schema/PartyDetailsQuery.mjs';
|
|
5
6
|
import { GqlQueryfz0vfezppkdu as GqlQuery } from '../../../../../../Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlQuery.mjs';
|
|
6
|
-
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
7
7
|
import { toDomain13ri9vnrcp4hq as toDomain } from '../../../../../../Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/PartyDetailsMapper.mjs';
|
|
8
8
|
import { CliktError136b5l5psfi1n as CliktError } from '../../../../../../clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs';
|
|
9
9
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
@@ -43,21 +43,24 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
43
43
|
var tmp;
|
|
44
44
|
if (tmp0_elvis_lhs == null) {
|
|
45
45
|
var tmp_0 = _get_context__ps0bpe($this).c6z_1;
|
|
46
|
-
|
|
46
|
+
var tmp_1 = loadSdk(tmp_0, PartyDetails$echo$ref($this), $completion);
|
|
47
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
48
|
+
tmp_1 = yield tmp_1;
|
|
49
|
+
tmp = tmp_1;
|
|
47
50
|
} else {
|
|
48
51
|
tmp = tmp0_elvis_lhs;
|
|
49
52
|
}
|
|
50
53
|
var actionCannon = tmp;
|
|
51
|
-
var
|
|
54
|
+
var tmp_2;
|
|
52
55
|
if (actionCannon == null) {
|
|
53
|
-
|
|
56
|
+
tmp_2 = null;
|
|
54
57
|
} else {
|
|
55
|
-
var
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
var tmp_3 = actionCannon.p53(new (GqlQuery())(new (PartyDetailsQuery())(_get_partyId__g79dgw($this))), $completion);
|
|
59
|
+
if (tmp_3 === get_COROUTINE_SUSPENDED())
|
|
60
|
+
tmp_3 = yield tmp_3;
|
|
61
|
+
tmp_2 = tmp_3;
|
|
59
62
|
}
|
|
60
|
-
var tmp2_safe_receiver =
|
|
63
|
+
var tmp2_safe_receiver = tmp_2;
|
|
61
64
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j5i_1;
|
|
62
65
|
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.l5i_1;
|
|
63
66
|
var partyDetails = tmp4_safe_receiver == null ? null : toDomain(tmp4_safe_receiver);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/party/PartyDetails.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/core/Context.kt"],"sourcesContent":[null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-context>","<get-partyId>","<generator-run>","$completion","actionCannon","partyDetails","getValue","thisRef","property","equals","hashCode","PartyDetails$context$delegate$lambda$lambda","PartyDetails$context$delegate$lambda$lambda$lambda","PartyDetails$context$delegate$lambda","PartyDetails$partyId$delegate$lambda$lambda","PartyDetails$partyId$delegate$lambda$lambda$lambda","PartyDetails$partyId$delegate$lambda","PartyDetails$echo$ref","p0","PartyDetails$echo$ref$lambda","cannon","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAeYA,CAAA,KAAAA,EAAe;A;EAAA,sH;AAA4B,C;6BAC3CC,CAAA,KAAAA,EAAwB;A;EAAA,qH;AAAgC,C;gCAE/CC,CAAA,K,EAAAC,WAAAD,EAAU;A,MACJ,4B;;EAAA,2B;gBAAkB,2B,CAAQ,K;
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/party/PartyDetails.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/core/Context.kt"],"sourcesContent":[null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-context>","<get-partyId>","<generator-run>","$completion","actionCannon","partyDetails","getValue","thisRef","property","equals","hashCode","PartyDetails$context$delegate$lambda$lambda","PartyDetails$context$delegate$lambda$lambda$lambda","PartyDetails$context$delegate$lambda","PartyDetails$partyId$delegate$lambda$lambda","PartyDetails$partyId$delegate$lambda$lambda$lambda","PartyDetails$partyId$delegate$lambda","PartyDetails$echo$ref","p0","PartyDetails$echo$ref$lambda","cannon","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAeYA,CAAA,KAAAA,EAAe;A;EAAA,sH;AAA4B,C;6BAC3CC,CAAA,KAAAA,EAAwB;A;EAAA,qH;AAAgC,C;gCAE/CC,CAAA,K,EAAAC,WAAAD,EAAU;A,MACJ,4B;;EAAA,2B;gBAAkB,2B,CAAQ,K;QAAhB,uBAAqB,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XA,KAAA;A,eAAgB,OAAQ,M;;cAA0B,I;cC+G1/hB,sB;QAAP,YAA4D,YAAlC,gBAAW,gDAAX,CAAkC,C;ID/G28hB,OAAxC,cAAuB,SAAvB,C;EAAyC,C;C;;iBAvBr/hB,wB;;oDAuB8/HG,C,IAAAA,E;SAAAC,CAAA,EAAAA,KAAA;A,cAAE,GAAG,KAAH,IAAQ,IAAR,C;IAAkB,kCAAlB,GAAkB,O;EAAC,C;C;6CAAy6ZC,C,IAAAA,E;SAAAF,CAAE,O,EAAS,mBAAXA,KAAA;A,eAAgB,OAAQ,M;;cAA0B,I;cC+G1/hB,sB;QAAP,YAA4D,YAAlC,gBAAW,gDAAX,CAAkC,C;ID/G28hB,OAAxC,cAAuB,SAAvB,C;EAAyC,C;C;;iBAtB5+hB,wB;;8BAGsBG,CAAAC,EAAAD,E;SAAAE,C,QAAAA,KAAA;A,IAAA,gB;IAAK,oB;EAAA,C;C;;;;;kBAN5CC,M;cAA2E,S;QAA3E,mB;kBAEQ,I;;kBCodD,gB;YAEE,iD;QDtdD,6DCsdC,KDtdD,C;oBACS,I;;YCqdR,6CDrd+B,SCqd/B,C;QDrdQ,iECqdR,KDrdQ,C;;SAEfC,CAAAlB,WAAAkB,E;;O;;;;;;;;;;;"}
|
|
@@ -18,7 +18,7 @@ import { get_ContentNegotiationcp59ye9rorjc as get_ContentNegotiation } from '..
|
|
|
18
18
|
import { Logging2hes802izhh0 as Logging } from '../../../../../../ktor-ktor-client-logging/io/ktor/client/plugins/logging/Logging.mjs';
|
|
19
19
|
import { Jsonsmkyu9xjl7fv as Json } from '../../../../../../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs';
|
|
20
20
|
import { jsonu6qnfo3b405p as json } from '../../../../../../ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs';
|
|
21
|
-
import {
|
|
21
|
+
import { LogLevel_NONE_getInstance223jukzsx4gc4 as LogLevel_NONE_getInstance } from '../../../../../../ktor-ktor-client-logging/io/ktor/client/plugins/logging/LogLevel.mjs';
|
|
22
22
|
import { HttpClient3584jcajl7sef as HttpClient } from '../../../../../../ktor-ktor-client-core/io/ktor/client/HttpClientJs.mjs';
|
|
23
23
|
import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
24
24
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
@@ -148,7 +148,7 @@ function KtorAuth0Client$auth0HttpClient$lambda$lambda$lambda($this$Json) {
|
|
|
148
148
|
return Unit_instance;
|
|
149
149
|
}
|
|
150
150
|
function KtorAuth0Client$auth0HttpClient$lambda$lambda_0($this$Logging) {
|
|
151
|
-
$this$Logging.f4d_1 =
|
|
151
|
+
$this$Logging.f4d_1 = LogLevel_NONE_getInstance();
|
|
152
152
|
return Unit_instance;
|
|
153
153
|
}
|
|
154
154
|
function KtorAuth0Client$refreshAccess$lambda($refreshToken, $clientId, $audience) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../libraries/auth0-management/src/commonMain/kotlin/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.kt","../../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-http/common/src/io/ktor/http/Parameters.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/src/kotlin/util/Standard.kt","../../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-client/ktor-client-core/common/src/io/ktor/client/call/HttpClientCall.kt","../../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-utils/common/src/io/ktor/util/reflect/Type.kt"],"sourcesContent":[null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-checkForResult>","clientId","deviceCode","$completion","<unused var>","<generator-getDeviceCodeRequest>","audience","result","<generator-refreshAccess>","refreshToken","KtorAuth0Client$auth0HttpClient$lambda","KtorAuth0Client$auth0HttpClient$lambda$lambda","KtorAuth0Client$auth0HttpClient$lambda$lambda$lambda","KtorAuth0Client$refreshAccess$lambda","$refreshToken","$clientId","$audience","KtorAuth0Client$refreshAccess$lambda$lambda","checkForResult","getDeviceCodeRequest","refreshAccess"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA2BYA,CAAA,K,EACJC,Q,EACAC,U,EAFIC,WAAAH,EAGJ;A;;;eCAI,mB;EDGA,WAAO,YAAP,EAAqB,8CAArB,C;EACA,WAAO,WAAP,EAAoB,QAApB,C;EACA,WAAO,aAAP,EAAsB,UAAtB,C;MCL0C,YCyD3C,MDzDoC,M;MDAvB,iBAAhB,KAAgB,CAAhB,KAAgB,EACV,6CADU,EAEY,SAFZ,0B;;;;cGmIuC,S;;;;;EC9EN,I;;;;;UAKhDI,wB;cACL,I;;;;;;MACH,iB;MAtByF,oCAAlB,SAAkB,C;MD6FtB,kBAAa,SAAb,c;;;;EH5H1C,yCG4HqC,KH5HrC,c;AAAD,C;iDAEbC,CAAA,K,EAAyBC,Q,EAAkBL,Q,EAA3CE,WAAAE,EAAgF;A;;;eCThF,mB;EDaI,WAAO,UAAP,EAAmB,QAAnB,C;EACA,WAAO,OAAP,EAAgB,uBAAhB,C;EACA,WAAO,WAAP,EAAoB,QAApB,C;MCfsC,YCyD3C,MDzDoC,M;MDUV,iBAAhB,KAAgB,CAAhB,KAAgB,EACnB,mDADmB,EAEG,SAFH,0B;;;;cGyH0B,S;;;;;EC9EN,I;;;;;UAKhDD,wB;cACL,I;;;;;;MACH,iB;MAtByF,oCAAlB,SAAkB,C;MD6FtB,kBAAa,SAAb,c;;;;MHzH5DG,gDGyHuD,KHzHvDA,c;EAQA,OAAO,M;AACX,C;0CAEQC,CAAA,K,EAAkBC,Y,EAAsBH,Q,EAAkBL,Q,EAA1DE,WAAAK,EAA4F;A,MAAgB,iBAAhB,KAAgB,CAAhB,KAAgB,EAC1G,6CAD0G,EAE/F,WAAW,sEAAX,CAF+F,0B;;;;cG8GzD,S;;;;;EC9EN,I;;;;;UAKhDJ,wB;cACL,I;;;;;;MACH,iB;MAtByF,oCAAlB,SAAkB,C;MD6FtB,kBAAa,SAAb,c;;;;EHrG1C,yCGqGqC,KHrGrC,c;AAAD,C;+CA5CoBM,CAAA,gBAAAA,EAAA;A,YAC7B,wB;EAAR,0BAA4B,6CAA5B,C;EAOA,0BAAQ,+CAAR,C;EACJ,oB;AAAA,C;sDARgCC,CAAA,aAAAA,EAAA;A,EACxB,oBACI,WAAK,oDAAL,CADJ,C;EAKJ,oB;AAAA,C;6DAJaC,CAAA,UAAAA,EAAA;A,EACD,mBAAoB,I;EACxB,oB;AAAA,C;wDAGAD,CAAA,aAAAA,EAAA;A,EAAE,sBAAiB,
|
|
1
|
+
{"version":3,"sources":["../../../../../libraries/auth0-management/src/commonMain/kotlin/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.kt","../../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-http/common/src/io/ktor/http/Parameters.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/src/kotlin/util/Standard.kt","../../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-client/ktor-client-core/common/src/io/ktor/client/call/HttpClientCall.kt","../../../../../../../../../../mnt/agent/work/8d547b974a7be21f/ktor-utils/common/src/io/ktor/util/reflect/Type.kt"],"sourcesContent":[null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-checkForResult>","clientId","deviceCode","$completion","<unused var>","<generator-getDeviceCodeRequest>","audience","result","<generator-refreshAccess>","refreshToken","KtorAuth0Client$auth0HttpClient$lambda","KtorAuth0Client$auth0HttpClient$lambda$lambda","KtorAuth0Client$auth0HttpClient$lambda$lambda$lambda","KtorAuth0Client$refreshAccess$lambda","$refreshTo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kB,C;MD6FtB,kBAAa,SAAb,c;;;;EHrG1C,yCGqGqC,KHrGrC,c;AAAD,C;+CA5CoBM,CAAA,gBAAAA,EAAA;A,YAC7B,wB;EAAR,0BAA4B,6CAA5B,C;EAOA,0BAAQ,+CAAR,C;EACJ,oB;AAAA,C;sDARgCC,CAAA,aAAAA,EAAA;A,EACxB,oBACI,WAAK,oDAAL,CADJ,C;EAKJ,oB;AAAA,C;6DAJaC,CAAA,UAAAA,EAAA;A,EACD,mBAAoB,I;EACxB,oB;AAAA,C;wDAGAD,CAAA,aAAAA,EAAA;A,EAAE,sBAAiB,2B;EAAK,oB;AAAA,C;6CA6BJE,CAFNC,a,EAAwCC,S,EAAlBC,SAEhBH,E;SAAAI,CAAA,gBAAAA,KAAA;A,IACxB,qBAAK,YAAL,EAAqB,eAArB,C;IACA,qBAAK,eAAL,EAAwB,aAAxB,C;IACA,qBAAK,WAAL,EAAoB,SAApB,C;IACA,qBAAK,OAAL,EAAgB,uBAAhB,C;IACA,qBAAK,UAAL,EAAmB,SAAnB,C;IACJ,oB;EAAA,C;C;;;;;;kBA3C0B,I;QAAA,uBAAW,sCAAX,C;;SAWtBC,CACJjB,Q,EACAC,U,EAFIC,WAAAe,E;;O;SAYAC,CAAyBb,Q,EAAkBL,Q,EAA3CE,WAAAgB,E;;O;SAYAC,CAAkBX,Y,EAAsBH,Q,EAAkBL,Q,EAA1DE,WAAAiB,E;;O;;;;;;;;;;;"}
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
execute3ka32mbtyv00e as execute,
|
|
17
17
|
GqlTrait2wtoeyl3yfalb as GqlTrait,
|
|
18
18
|
} from './gql/GqlTrait.mjs';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { Dispatcherhdhfzcswb8hc as Dispatcher } from '../../../../../Coupling-libraries-action/com/zegreatrob/coupling/action/party/SaveContributionCommand.mjs';
|
|
20
|
+
import { Dispatcher2xvjdz9qh940 as Dispatcher_0 } from './gql/GqlQuery.mjs';
|
|
21
21
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
22
22
|
import {
|
|
23
23
|
apolloMutation1qfm4b9xbpwrf as apolloMutation,
|
|
@@ -74,8 +74,8 @@ import {
|
|
|
74
74
|
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
75
75
|
close$default29t9kascifp5w as close$default,
|
|
76
76
|
cancel$default3ekkkwpkem73o as cancel$default,
|
|
77
|
-
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
78
77
|
SendChannel38sllbxw662ws as SendChannel,
|
|
78
|
+
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
79
79
|
} from './Channel.mjs';
|
|
80
80
|
import {
|
|
81
81
|
SelectInstance2isepgzfsd8ur as SelectInstance,
|
|
@@ -2850,7 +2850,7 @@ function BufferedChannel() {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
protoOf($).o1c = close$default;
|
|
2852
2852
|
protoOf($).q1c = cancel$default;
|
|
2853
|
-
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [
|
|
2853
|
+
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 4, 0, 3]);
|
|
2854
2854
|
BufferedChannelClass = $;
|
|
2855
2855
|
}
|
|
2856
2856
|
return BufferedChannelClass;
|
|
@@ -7,8 +7,8 @@ import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../kotl
|
|
|
7
7
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
8
8
|
import {
|
|
9
9
|
close$default29t9kascifp5w as close$default,
|
|
10
|
-
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
11
10
|
SendChannel38sllbxw662ws as SendChannel,
|
|
11
|
+
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
12
12
|
} from './Channel.mjs';
|
|
13
13
|
import { protoOf180f3jzyo7rfj as protoOf } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
14
14
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
@@ -70,7 +70,7 @@ function ChannelCoroutine() {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
protoOf($).o1c = close$default;
|
|
73
|
-
initMetadataForClass($, 'ChannelCoroutine', VOID, VOID, [AbstractCoroutine(),
|
|
73
|
+
initMetadataForClass($, 'ChannelCoroutine', VOID, VOID, [AbstractCoroutine(), SendChannel(), ReceiveChannel()], [1, 0]);
|
|
74
74
|
ChannelCoroutineClass = $;
|
|
75
75
|
}
|
|
76
76
|
return ChannelCoroutineClass;
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@continuous-excellence/coupling-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.434",
|
|
4
4
|
"main": "kotlin/Coupling-cli.mjs",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"source-map-support": "0.5.21"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"open": "^11.0.0",
|
|
10
|
+
"jwt-decode": "4.0.0",
|
|
11
|
+
"@napi-rs/keyring": "^1.2.0",
|
|
10
12
|
"@js-joda/core": "3.2.0",
|
|
11
13
|
"ws": "8.18.3",
|
|
12
14
|
"node-fetch": "2.7.0",
|