mrs-toolbox-cli 0.0.1 → 0.0.2
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/88b0986a7186d029-atomicfu-js-ir.js +2 -2
- package/88b0986a7186d029-atomicfu-js-ir.js.hash +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +1 -1
- package/clikt-clikt-js-ir.js +1006 -1006
- package/clikt-clikt-js-ir.js.hash +1 -1
- package/clikt-clikt-js-ir.js.map +1 -1
- package/clikt-clikt-js-ir.js.map.hash +1 -1
- package/com.mrs.platform.configuration.dto.js +702 -116
- package/com.mrs.platform.configuration.dto.js.hash +1 -1
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js.map.hash +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +68 -86
- package/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/kotlin-logging-js-ir.js +40 -40
- package/kotlin-logging-js-ir.js.hash +1 -1
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-logging-js-ir.js.map.hash +1 -1
- package/kotlin-node.js.map +1 -1
- package/kotlin-node.js.map.hash +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +27 -27
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +27 -27
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +18 -18
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +1 -1
- package/ktor-ktor-client-content-negotiation.js +5 -5
- package/ktor-ktor-client-content-negotiation.js.hash +1 -1
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js.map.hash +1 -1
- package/ktor-ktor-client-core.js +17 -17
- package/ktor-ktor-client-core.js.hash +1 -1
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-core.js.map.hash +1 -1
- package/ktor-ktor-events.js +3 -3
- package/ktor-ktor-events.js.hash +1 -1
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-events.js.map.hash +1 -1
- package/ktor-ktor-http.js +16 -16
- package/ktor-ktor-http.js.hash +1 -1
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-http.js.map.hash +1 -1
- package/ktor-ktor-io.js +7 -7
- package/ktor-ktor-io.js.hash +1 -1
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-io.js.map.hash +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js.hash +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js.map.hash +1 -1
- package/ktor-ktor-serialization-kotlinx.js +2 -2
- package/ktor-ktor-serialization-kotlinx.js.hash +1 -1
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js.map.hash +1 -1
- package/ktor-ktor-serialization.js +4 -4
- package/ktor-ktor-serialization.js.hash +1 -1
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-serialization.js.map.hash +1 -1
- package/ktor-ktor-utils.js +11 -11
- package/ktor-ktor-utils.js.hash +1 -1
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-utils.js.map.hash +1 -1
- package/ktor-ktor-websockets.js +4 -4
- package/ktor-ktor-websockets.js.hash +1 -1
- package/ktor-ktor-websockets.js.map +1 -1
- package/ktor-ktor-websockets.js.map.hash +1 -1
- package/mrs-toolbox-cli.d.ts +67 -6
- package/mrs-toolbox-cli.d.ts.hash +1 -1
- package/mrs-toolbox-cli.js +67 -67
- package/mrs-toolbox-cli.js.hash +1 -1
- package/mrs-toolbox-cli.js.map +1 -1
- package/mrs-toolbox-cli.js.map.hash +1 -1
- package/package.json +1 -1
- package/static/demo.test.ts.txt +25 -25
- package/static/demo.test.ts.txt.hash +1 -1
- package/static/git.ignore +4 -4
- package/static/git.ignore.hash +1 -1
- package/static/hook.ts.txt +6 -6
- package/static/hook.ts.txt.hash +1 -1
- package/static/mrscconfig.json +14 -14
- package/static/mrscconfig.json.hash +1 -1
- package/static/readme.md +49 -49
- package/static/readme.md.hash +1 -1
- package/static/styles/1.css +0 -0
- package/static/styles/1.css.hash +1 -0
- package/static/styles/10.css +4 -0
- package/static/styles/10.css.hash +1 -0
- package/static/styles/11.css +17 -0
- package/static/styles/11.css.hash +1 -0
- package/static/styles/12.css +27 -0
- package/static/styles/12.css.hash +1 -0
- package/static/styles/13.css +8 -0
- package/static/styles/13.css.hash +1 -0
- package/static/styles/14.css +17 -0
- package/static/styles/14.css.hash +1 -0
- package/static/styles/15.css +41 -0
- package/static/styles/15.css.hash +1 -0
- package/static/styles/16.css +16 -0
- package/static/styles/16.css.hash +1 -0
- package/static/styles/17.css +66 -0
- package/static/styles/17.css.hash +1 -0
- package/static/styles/18.css +7 -0
- package/static/styles/18.css.hash +1 -0
- package/static/styles/19.css +38 -0
- package/static/styles/19.css.hash +1 -0
- package/static/styles/2.css +444 -0
- package/static/styles/2.css.hash +1 -0
- package/static/styles/20.css +43 -0
- package/static/styles/20.css.hash +1 -0
- package/static/styles/21.css +63 -0
- package/static/styles/21.css.hash +1 -0
- package/static/styles/24.css +4 -0
- package/static/styles/24.css.hash +1 -0
- package/static/styles/3.css +17 -0
- package/static/styles/3.css.hash +1 -0
- package/static/styles/3bcb0769073530bc9113-3bcb0.css +6469 -0
- package/static/styles/3bcb0769073530bc9113-3bcb0.css.hash +1 -0
- package/static/styles/4.css +11 -0
- package/static/styles/4.css.hash +1 -0
- package/static/styles/5.css +138 -0
- package/static/styles/5.css.hash +1 -0
- package/static/styles/6.css +110 -0
- package/static/styles/6.css.hash +1 -0
- package/static/styles/6369df247fde1cada5fe-6369d.css +6016 -0
- package/static/styles/6369df247fde1cada5fe-6369d.css.hash +1 -0
- package/static/styles/7.css +20 -0
- package/static/styles/7.css.hash +1 -0
- package/static/styles/8.css +47 -0
- package/static/styles/8.css.hash +1 -0
- package/static/styles/css.css +112 -0
- package/static/styles/css.css.hash +1 -0
- package/static/styles/jss.css +211 -0
- package/static/styles/jss.css.hash +1 -0
- package/static/tsconfig.json.txt +7 -7
- package/static/tsconfig.json.txt.hash +1 -1
- package/toolbox.js +2562 -2560
- package/toolbox.js.hash +1 -1
- package/toolbox.js.map +1 -1
- package/toolbox.js.map.hash +1 -1
package/mrs-toolbox-cli.d.ts
CHANGED
|
@@ -1767,10 +1767,14 @@ export declare namespace dto.view {
|
|
|
1767
1767
|
get name(): "embed";
|
|
1768
1768
|
get ordinal(): 8;
|
|
1769
1769
|
};
|
|
1770
|
+
static get superset(): dto.view.ViewType & {
|
|
1771
|
+
get name(): "superset";
|
|
1772
|
+
get ordinal(): 9;
|
|
1773
|
+
};
|
|
1770
1774
|
static values(): Array<dto.view.ViewType>;
|
|
1771
1775
|
static valueOf(value: string): dto.view.ViewType;
|
|
1772
|
-
get name(): "list" | "grid" | "dataGrid" | "tree" | "document" | "gantt" | "calendar" | "drawing2d" | "embed";
|
|
1773
|
-
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
1776
|
+
get name(): "list" | "grid" | "dataGrid" | "tree" | "document" | "gantt" | "calendar" | "drawing2d" | "embed" | "superset";
|
|
1777
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
1774
1778
|
static get Companion(): {
|
|
1775
1779
|
serializer(): any/* kotlinx.serialization.KSerializer<dto.view.ViewType> */;
|
|
1776
1780
|
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
@@ -1991,7 +1995,9 @@ export declare namespace dto.view.settings {
|
|
|
1991
1995
|
constructor();
|
|
1992
1996
|
get nothingFound(): Nullable<dto.view.settings.NothingFound>;
|
|
1993
1997
|
set nothingFound(value: Nullable<dto.view.settings.NothingFound>);
|
|
1994
|
-
|
|
1998
|
+
get nothingSelected(): Nullable<dto.view.settings.NothingSelected>;
|
|
1999
|
+
set nothingSelected(value: Nullable<dto.view.settings.NothingSelected>);
|
|
2000
|
+
static EmptyList_init_$Create$(seen1: number, nothingFound: Nullable<dto.view.settings.NothingFound>, nothingSelected: Nullable<dto.view.settings.NothingSelected>, serializationConstructorMarker: Nullable<any>/* Nullable<kotlinx.serialization.internal.SerializationConstructorMarker> */): dto.view.settings.EmptyList;
|
|
1995
2001
|
static get Companion(): {
|
|
1996
2002
|
serializer(): any/* kotlinx.serialization.KSerializer<dto.view.settings.EmptyList> */;
|
|
1997
2003
|
};
|
|
@@ -2014,6 +2020,21 @@ export declare namespace dto.view.settings {
|
|
|
2014
2020
|
} & any/* kotlinx.serialization.internal.GeneratedSerializer<dto.view.settings.NothingFound> */;
|
|
2015
2021
|
}
|
|
2016
2022
|
}
|
|
2023
|
+
export declare namespace dto.view.settings {
|
|
2024
|
+
class NothingSelected {
|
|
2025
|
+
constructor();
|
|
2026
|
+
get text(): Nullable<string>;
|
|
2027
|
+
set text(value: Nullable<string>);
|
|
2028
|
+
get subtitle(): Nullable<string>;
|
|
2029
|
+
set subtitle(value: Nullable<string>);
|
|
2030
|
+
static NothingSelected_init_$Create$(seen1: number, text: Nullable<string>, subtitle: Nullable<string>, serializationConstructorMarker: Nullable<any>/* Nullable<kotlinx.serialization.internal.SerializationConstructorMarker> */): dto.view.settings.NothingSelected;
|
|
2031
|
+
static get Companion(): {
|
|
2032
|
+
serializer(): any/* kotlinx.serialization.KSerializer<dto.view.settings.NothingSelected> */;
|
|
2033
|
+
};
|
|
2034
|
+
static get $serializer(): {
|
|
2035
|
+
} & any/* kotlinx.serialization.internal.GeneratedSerializer<dto.view.settings.NothingSelected> */;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2017
2038
|
export declare namespace dto.view.settings {
|
|
2018
2039
|
class Settings {
|
|
2019
2040
|
constructor();
|
|
@@ -2021,10 +2042,12 @@ export declare namespace dto.view.settings {
|
|
|
2021
2042
|
set columns(value: Nullable<Array<dto.view.settings.Column>>);
|
|
2022
2043
|
get height(): Nullable<number>;
|
|
2023
2044
|
set height(value: Nullable<number>);
|
|
2045
|
+
get dashboardUiConfig(): Nullable<dto.view.settings.UiConfigType>;
|
|
2046
|
+
set dashboardUiConfig(value: Nullable<dto.view.settings.UiConfigType>);
|
|
2024
2047
|
get emptyList(): Nullable<dto.view.settings.EmptyList>;
|
|
2025
2048
|
set emptyList(value: Nullable<dto.view.settings.EmptyList>);
|
|
2026
2049
|
get type(): Nullable<dto.view.settings.SettingsType>;
|
|
2027
|
-
static Settings_init_$Create$(seen1: number, columns: Nullable<Array<dto.view.settings.Column>>, height: Nullable<number>, emptyList: Nullable<dto.view.settings.EmptyList>, type: Nullable<dto.view.settings.SettingsType>, serializationConstructorMarker: Nullable<any>/* Nullable<kotlinx.serialization.internal.SerializationConstructorMarker> */): dto.view.settings.Settings;
|
|
2050
|
+
static Settings_init_$Create$(seen1: number, columns: Nullable<Array<dto.view.settings.Column>>, height: Nullable<number>, dashboardUiConfig: Nullable<dto.view.settings.UiConfigType>, emptyList: Nullable<dto.view.settings.EmptyList>, type: Nullable<dto.view.settings.SettingsType>, serializationConstructorMarker: Nullable<any>/* Nullable<kotlinx.serialization.internal.SerializationConstructorMarker> */): dto.view.settings.Settings;
|
|
2028
2051
|
static get Companion(): {
|
|
2029
2052
|
serializer(): any/* kotlinx.serialization.KSerializer<dto.view.settings.Settings> */;
|
|
2030
2053
|
};
|
|
@@ -2048,15 +2071,53 @@ export declare namespace dto.view.settings {
|
|
|
2048
2071
|
get name(): "GanttWithResource";
|
|
2049
2072
|
get ordinal(): 2;
|
|
2050
2073
|
};
|
|
2074
|
+
static get Superset(): dto.view.settings.SettingsType & {
|
|
2075
|
+
get name(): "Superset";
|
|
2076
|
+
get ordinal(): 3;
|
|
2077
|
+
};
|
|
2051
2078
|
static values(): Array<dto.view.settings.SettingsType>;
|
|
2052
2079
|
static valueOf(value: string): dto.view.settings.SettingsType;
|
|
2053
|
-
get name(): "Resource" | "Gantt" | "GanttWithResource";
|
|
2054
|
-
get ordinal(): 0 | 1 | 2;
|
|
2080
|
+
get name(): "Resource" | "Gantt" | "GanttWithResource" | "Superset";
|
|
2081
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
2055
2082
|
static get Companion(): {
|
|
2056
2083
|
serializer(): any/* kotlinx.serialization.KSerializer<dto.view.settings.SettingsType> */;
|
|
2057
2084
|
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
2058
2085
|
}
|
|
2059
2086
|
}
|
|
2087
|
+
export declare namespace dto.view.settings {
|
|
2088
|
+
class UiConfigFilters /* implements kotlin.collections.MutableMap<string, Nullable<boolean>> */ {
|
|
2089
|
+
constructor();
|
|
2090
|
+
get visible(): Nullable<boolean>;
|
|
2091
|
+
set visible(value: Nullable<boolean>);
|
|
2092
|
+
get expanded(): Nullable<boolean>;
|
|
2093
|
+
set expanded(value: Nullable<boolean>);
|
|
2094
|
+
static UiConfigFilters_init_$Create$(seen1: number, visible: Nullable<boolean>, expanded: Nullable<boolean>, serializationConstructorMarker: Nullable<any>/* Nullable<kotlinx.serialization.internal.SerializationConstructorMarker> */): dto.view.settings.UiConfigFilters;
|
|
2095
|
+
static get Companion(): {
|
|
2096
|
+
serializer(): any/* kotlinx.serialization.KSerializer<dto.view.settings.UiConfigFilters> */;
|
|
2097
|
+
};
|
|
2098
|
+
static get $serializer(): {
|
|
2099
|
+
} & any/* kotlinx.serialization.internal.GeneratedSerializer<dto.view.settings.UiConfigFilters> */;
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
export declare namespace dto.view.settings {
|
|
2103
|
+
class UiConfigType {
|
|
2104
|
+
constructor();
|
|
2105
|
+
get hideTitle(): Nullable<boolean>;
|
|
2106
|
+
set hideTitle(value: Nullable<boolean>);
|
|
2107
|
+
get hideTab(): Nullable<boolean>;
|
|
2108
|
+
set hideTab(value: Nullable<boolean>);
|
|
2109
|
+
get hideChartControls(): Nullable<boolean>;
|
|
2110
|
+
set hideChartControls(value: Nullable<boolean>);
|
|
2111
|
+
get filters(): Nullable<dto.view.settings.UiConfigFilters>;
|
|
2112
|
+
set filters(value: Nullable<dto.view.settings.UiConfigFilters>);
|
|
2113
|
+
static UiConfigType_init_$Create$(seen1: number, hideTitle: Nullable<boolean>, hideTab: Nullable<boolean>, hideChartControls: Nullable<boolean>, filters: Nullable<dto.view.settings.UiConfigFilters>, serializationConstructorMarker: Nullable<any>/* Nullable<kotlinx.serialization.internal.SerializationConstructorMarker> */): dto.view.settings.UiConfigType;
|
|
2114
|
+
static get Companion(): {
|
|
2115
|
+
serializer(): any/* kotlinx.serialization.KSerializer<dto.view.settings.UiConfigType> */;
|
|
2116
|
+
};
|
|
2117
|
+
static get $serializer(): {
|
|
2118
|
+
} & any/* kotlinx.serialization.internal.GeneratedSerializer<dto.view.settings.UiConfigType> */;
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2060
2121
|
export declare namespace types {
|
|
2061
2122
|
class Config {
|
|
2062
2123
|
constructor(url?: Nullable<string>, testsDirectory?: Nullable<string>, mapName?: Nullable<string>, token?: Nullable<string>, refreshToken?: Nullable<string>, s3?: Nullable<types.S3Config>, port?: Nullable<number>, referencesCollections?: Array<string>, currentReferencePrefix?: Nullable<string>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7d3b8c9e8e4be9b8e894709fba3c0f68
|
package/mrs-toolbox-cli.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
var CliktCommand = kotlin_com_github_ajalt_clikt_clikt.$_$.a;
|
|
6
6
|
var protoOf = kotlin_kotlin.$_$.ua;
|
|
7
7
|
var classMeta = kotlin_kotlin.$_$.o9;
|
|
8
|
-
var VOID = kotlin_kotlin.$_$.
|
|
8
|
+
var VOID = kotlin_kotlin.$_$.sf;
|
|
9
9
|
var setMetadataFor = kotlin_kotlin.$_$.va;
|
|
10
10
|
var charSequenceLength = kotlin_kotlin.$_$.m9;
|
|
11
11
|
var Unit_getInstance = kotlin_kotlin.$_$.v4;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
var println = kotlin_kotlin.$_$.e9;
|
|
22
22
|
var KProperty1 = kotlin_kotlin.$_$.lb;
|
|
23
23
|
var getPropertyCallableRef = kotlin_kotlin.$_$.u9;
|
|
24
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.oe;
|
|
25
25
|
var isArray = kotlin_kotlin.$_$.y9;
|
|
26
26
|
var split = kotlin_kotlin.$_$.zc;
|
|
27
27
|
var subcommands = kotlin_com_github_ajalt_clikt_clikt.$_$.b;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
var tmp$ret$1;
|
|
52
52
|
// Inline function 'Auth.email$delegate.<anonymous>.<anonymous>' call
|
|
53
53
|
tmp$ret$1 = "Email can't be empty!";
|
|
54
|
-
$this$validate.
|
|
54
|
+
$this$validate.a57(tmp$ret$1);
|
|
55
55
|
}
|
|
56
56
|
return Unit_getInstance();
|
|
57
57
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
var tmp$ret$1;
|
|
66
66
|
// Inline function 'Auth.password$delegate.<anonymous>.<anonymous>' call
|
|
67
67
|
tmp$ret$1 = "Password can't be empty!";
|
|
68
|
-
$this$validate.
|
|
68
|
+
$this$validate.a57(tmp$ret$1);
|
|
69
69
|
}
|
|
70
70
|
return Unit_getInstance();
|
|
71
71
|
}
|
|
@@ -73,95 +73,95 @@
|
|
|
73
73
|
CliktCommand.call(this, 'Auth to strapi');
|
|
74
74
|
var tmp = this;
|
|
75
75
|
var tmp_0 = prompt(option(this, ['-e', '--email'], 'Email for log in'));
|
|
76
|
-
tmp.
|
|
76
|
+
tmp.o66_1 = validate(tmp_0, Auth$email$delegate$lambda).x55(this, email$factory());
|
|
77
77
|
var tmp_1 = this;
|
|
78
78
|
var tmp_2 = prompt(option(this, ['-p', '--password'], 'Password for log in'));
|
|
79
|
-
tmp_1.
|
|
80
|
-
this.
|
|
81
|
-
this.
|
|
82
|
-
this.
|
|
79
|
+
tmp_1.p66_1 = validate(tmp_2, Auth$password$delegate$lambda).x55(this, password$factory());
|
|
80
|
+
this.q66_1 = optional(argument(this, VOID, 'Url to strapi server')).n54(this, url$factory());
|
|
81
|
+
this.r66_1 = option(this, ['-c', '--config'], 'Config file name').x55(this, config$factory());
|
|
82
|
+
this.s66_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().c63()).x55(this, cwd$factory());
|
|
83
83
|
}
|
|
84
|
-
protoOf(Auth).
|
|
85
|
-
return this.
|
|
84
|
+
protoOf(Auth).t66 = function () {
|
|
85
|
+
return this.o66_1.m54(this, email$factory_0());
|
|
86
86
|
};
|
|
87
87
|
protoOf(Auth).o20 = function () {
|
|
88
|
-
return this.
|
|
88
|
+
return this.p66_1.m54(this, password$factory_0());
|
|
89
89
|
};
|
|
90
90
|
protoOf(Auth).w29 = function () {
|
|
91
|
-
return this.
|
|
91
|
+
return this.q66_1.m54(this, url$factory_0());
|
|
92
92
|
};
|
|
93
93
|
protoOf(Auth).x27 = function () {
|
|
94
|
-
return this.
|
|
94
|
+
return this.r66_1.m54(this, config$factory_0());
|
|
95
95
|
};
|
|
96
|
-
protoOf(Auth).
|
|
97
|
-
return this.
|
|
96
|
+
protoOf(Auth).v63 = function () {
|
|
97
|
+
return this.s66_1.m54(this, cwd$factory_0());
|
|
98
98
|
};
|
|
99
99
|
protoOf(Auth).wq = function () {
|
|
100
|
-
|
|
100
|
+
CommandExecutor_getInstance().auth(this.t66(), this.o20(), this.w29(), this.v63(), this.x27());
|
|
101
101
|
};
|
|
102
102
|
function Test() {
|
|
103
103
|
CliktCommand.call(this, 'Test hooks');
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
104
|
+
this.l67_1 = option(this, ['-c', '--config'], 'Config file name').x55(this, config$factory_1());
|
|
105
|
+
this.m67_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().c63()).x55(this, cwd$factory_1());
|
|
106
106
|
}
|
|
107
107
|
protoOf(Test).x27 = function () {
|
|
108
|
-
return this.
|
|
108
|
+
return this.l67_1.m54(this, config$factory_2());
|
|
109
109
|
};
|
|
110
|
-
protoOf(Test).
|
|
111
|
-
return this.
|
|
110
|
+
protoOf(Test).v63 = function () {
|
|
111
|
+
return this.m67_1.m54(this, cwd$factory_2());
|
|
112
112
|
};
|
|
113
113
|
protoOf(Test).wq = function () {
|
|
114
|
-
|
|
114
|
+
CommandExecutor_getInstance().test(this.v63(), this.x27());
|
|
115
115
|
};
|
|
116
116
|
function Prepare() {
|
|
117
117
|
CliktCommand.call(this, 'Prepare workspace');
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
118
|
+
this.e68_1 = option(this, ['-c', '--config'], 'Config file name').x55(this, config$factory_3());
|
|
119
|
+
this.f68_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().c63()).x55(this, cwd$factory_3());
|
|
120
120
|
}
|
|
121
121
|
protoOf(Prepare).x27 = function () {
|
|
122
|
-
return this.
|
|
122
|
+
return this.e68_1.m54(this, config$factory_4());
|
|
123
123
|
};
|
|
124
|
-
protoOf(Prepare).
|
|
125
|
-
return this.
|
|
124
|
+
protoOf(Prepare).v63 = function () {
|
|
125
|
+
return this.f68_1.m54(this, cwd$factory_4());
|
|
126
126
|
};
|
|
127
127
|
protoOf(Prepare).wq = function () {
|
|
128
|
-
|
|
128
|
+
CommandExecutor_getInstance().prepare(this.v63(), this.x27());
|
|
129
129
|
};
|
|
130
130
|
function Export() {
|
|
131
131
|
CliktCommand.call(this, 'Create export config for s3');
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
135
|
-
this.
|
|
132
|
+
this.x68_1 = option(this, ['-c', '--config'], 'Config file name').x55(this, config$factory_5());
|
|
133
|
+
this.y68_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().c63()).x55(this, cwd$factory_5());
|
|
134
|
+
this.z68_1 = flag(option(this, ['--autoUpdate'], 'Autoupdate config in s3 storage', VOID, true), [], false).x55(this, autoUpdate$factory());
|
|
135
|
+
this.a69_1 = option(this, ['-v', '--version'], 'Version for build').x55(this, version$factory());
|
|
136
136
|
}
|
|
137
137
|
protoOf(Export).x27 = function () {
|
|
138
|
-
return this.
|
|
138
|
+
return this.x68_1.m54(this, config$factory_6());
|
|
139
139
|
};
|
|
140
|
-
protoOf(Export).
|
|
141
|
-
return this.
|
|
140
|
+
protoOf(Export).v63 = function () {
|
|
141
|
+
return this.y68_1.m54(this, cwd$factory_6());
|
|
142
142
|
};
|
|
143
143
|
protoOf(Export).o4h = function () {
|
|
144
|
-
return this.
|
|
144
|
+
return this.z68_1.m54(this, autoUpdate$factory_0());
|
|
145
145
|
};
|
|
146
146
|
protoOf(Export).d2b = function () {
|
|
147
|
-
return this.
|
|
147
|
+
return this.a69_1.m54(this, version$factory_0());
|
|
148
148
|
};
|
|
149
149
|
protoOf(Export).wq = function () {
|
|
150
|
-
|
|
150
|
+
CommandExecutor_getInstance().export(this.o4h(), this.v63(), this.x27(), this.d2b());
|
|
151
151
|
};
|
|
152
152
|
function Upload() {
|
|
153
153
|
CliktCommand.call(this, 'Upload exportConfig to s3');
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
154
|
+
this.s69_1 = option(this, ['-c', '--config'], 'Config file name').x55(this, config$factory_7());
|
|
155
|
+
this.t69_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().c63()).x55(this, cwd$factory_7());
|
|
156
156
|
}
|
|
157
157
|
protoOf(Upload).x27 = function () {
|
|
158
|
-
return this.
|
|
158
|
+
return this.s69_1.m54(this, config$factory_8());
|
|
159
159
|
};
|
|
160
|
-
protoOf(Upload).
|
|
161
|
-
return this.
|
|
160
|
+
protoOf(Upload).v63 = function () {
|
|
161
|
+
return this.t69_1.m54(this, cwd$factory_8());
|
|
162
162
|
};
|
|
163
163
|
protoOf(Upload).wq = function () {
|
|
164
|
-
|
|
164
|
+
CommandExecutor_getInstance().upload(this.v63(), this.x27());
|
|
165
165
|
};
|
|
166
166
|
function Version() {
|
|
167
167
|
CliktCommand.call(this, 'Get toolbox version');
|
|
@@ -171,21 +171,21 @@
|
|
|
171
171
|
};
|
|
172
172
|
function PullReferences() {
|
|
173
173
|
CliktCommand.call(this, 'Pull references from Directus');
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
174
|
+
this.c6b_1 = option(this, ['-c', '--config'], 'Config file name').x55(this, config$factory_9());
|
|
175
|
+
this.d6b_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().c63()).x55(this, cwd$factory_9());
|
|
176
176
|
}
|
|
177
177
|
protoOf(PullReferences).x27 = function () {
|
|
178
|
-
return this.
|
|
178
|
+
return this.c6b_1.m54(this, config$factory_10());
|
|
179
179
|
};
|
|
180
|
-
protoOf(PullReferences).
|
|
181
|
-
return this.
|
|
180
|
+
protoOf(PullReferences).v63 = function () {
|
|
181
|
+
return this.d6b_1.m54(this, cwd$factory_10());
|
|
182
182
|
};
|
|
183
183
|
protoOf(PullReferences).wq = function () {
|
|
184
|
-
|
|
184
|
+
CommandExecutor_getInstance().pullReferences(this.v63(), this.x27());
|
|
185
185
|
};
|
|
186
186
|
function email$factory() {
|
|
187
187
|
return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
|
|
188
|
-
return receiver.
|
|
188
|
+
return receiver.t66();
|
|
189
189
|
}, null);
|
|
190
190
|
}
|
|
191
191
|
function password$factory() {
|
|
@@ -205,12 +205,12 @@
|
|
|
205
205
|
}
|
|
206
206
|
function cwd$factory() {
|
|
207
207
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
208
|
-
return receiver.
|
|
208
|
+
return receiver.v63();
|
|
209
209
|
}, null);
|
|
210
210
|
}
|
|
211
211
|
function email$factory_0() {
|
|
212
212
|
return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
|
|
213
|
-
return receiver.
|
|
213
|
+
return receiver.t66();
|
|
214
214
|
}, null);
|
|
215
215
|
}
|
|
216
216
|
function password$factory_0() {
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
}
|
|
231
231
|
function cwd$factory_0() {
|
|
232
232
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
233
|
-
return receiver.
|
|
233
|
+
return receiver.v63();
|
|
234
234
|
}, null);
|
|
235
235
|
}
|
|
236
236
|
function config$factory_1() {
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
}
|
|
241
241
|
function cwd$factory_1() {
|
|
242
242
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
243
|
-
return receiver.
|
|
243
|
+
return receiver.v63();
|
|
244
244
|
}, null);
|
|
245
245
|
}
|
|
246
246
|
function config$factory_2() {
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
}
|
|
251
251
|
function cwd$factory_2() {
|
|
252
252
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
253
|
-
return receiver.
|
|
253
|
+
return receiver.v63();
|
|
254
254
|
}, null);
|
|
255
255
|
}
|
|
256
256
|
function config$factory_3() {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
}
|
|
261
261
|
function cwd$factory_3() {
|
|
262
262
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
263
|
-
return receiver.
|
|
263
|
+
return receiver.v63();
|
|
264
264
|
}, null);
|
|
265
265
|
}
|
|
266
266
|
function config$factory_4() {
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
}
|
|
271
271
|
function cwd$factory_4() {
|
|
272
272
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
273
|
-
return receiver.
|
|
273
|
+
return receiver.v63();
|
|
274
274
|
}, null);
|
|
275
275
|
}
|
|
276
276
|
function config$factory_5() {
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
}
|
|
281
281
|
function cwd$factory_5() {
|
|
282
282
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
283
|
-
return receiver.
|
|
283
|
+
return receiver.v63();
|
|
284
284
|
}, null);
|
|
285
285
|
}
|
|
286
286
|
function autoUpdate$factory() {
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
}
|
|
301
301
|
function cwd$factory_6() {
|
|
302
302
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
303
|
-
return receiver.
|
|
303
|
+
return receiver.v63();
|
|
304
304
|
}, null);
|
|
305
305
|
}
|
|
306
306
|
function autoUpdate$factory_0() {
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
}
|
|
321
321
|
function cwd$factory_7() {
|
|
322
322
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
323
|
-
return receiver.
|
|
323
|
+
return receiver.v63();
|
|
324
324
|
}, null);
|
|
325
325
|
}
|
|
326
326
|
function config$factory_8() {
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
}
|
|
331
331
|
function cwd$factory_8() {
|
|
332
332
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
333
|
-
return receiver.
|
|
333
|
+
return receiver.v63();
|
|
334
334
|
}, null);
|
|
335
335
|
}
|
|
336
336
|
function config$factory_9() {
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
}
|
|
341
341
|
function cwd$factory_9() {
|
|
342
342
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
343
|
-
return receiver.
|
|
343
|
+
return receiver.v63();
|
|
344
344
|
}, null);
|
|
345
345
|
}
|
|
346
346
|
function config$factory_10() {
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
}
|
|
351
351
|
function cwd$factory_10() {
|
|
352
352
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
353
|
-
return receiver.
|
|
353
|
+
return receiver.v63();
|
|
354
354
|
}, null);
|
|
355
355
|
}
|
|
356
356
|
function main(args) {
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
var argv = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
359
359
|
println(split(argv[0], [' ']));
|
|
360
360
|
try {
|
|
361
|
-
subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullReferences()]).
|
|
361
|
+
subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullReferences()]).c4x(split(argv[0], [' ']));
|
|
362
362
|
} catch ($p) {
|
|
363
363
|
if ($p instanceof Error) {
|
|
364
364
|
var e = $p;
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
tmp$ret$0 = ['--help'];
|
|
373
373
|
tmp$ret$1 = tmp$ret$0;
|
|
374
374
|
tmp$ret$2 = tmp$ret$1;
|
|
375
|
-
tmp_0.
|
|
375
|
+
tmp_0.s4x(tmp$ret$2);
|
|
376
376
|
} else {
|
|
377
377
|
throw $p;
|
|
378
378
|
}
|
package/mrs-toolbox-cli.js.hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5cf3a79f507f3ecaeb4ab350090647f3
|
package/mrs-toolbox-cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/mrsc.kt","../../../../../cli/build/compileSync/js/main/
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/mrsc.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/commonMainSources/libraries/stdlib/src/kotlin/text/Strings.kt","../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/OptionWithValues.kt","../../../../../cli/src/jsMain/kotlin/mrsc.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/jsMainSources/libraries/stdlib/js/src/kotlin/dynamic.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/builtins/Library.kt"],"sourcesContent":[null,null,null,null,null,null],"names":["<init>","run","Auth$email$delegate$lambda","$this$validate","it","Auth$password$delegate$lambda","<get-email>","<get-password>","<get-url>","<get-config>","<get-cwd>","<get-autoUpdate>","<get-version>","email$factory","get","receiver","password$factory","url$factory","config$factory","cwd$factory","autoUpdate$factory","version$factory","main","args","argv","e"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAMAA,CAAAA,EAAA;A,IAAY,wBAAqB,iCAArB,C;EAAZ,C;8BACaC,CAAAA,EAAU;A,EAAC,C;qCAI8DC,CAAAC,c,EAAAC,EAAAF,EAAA;A;;;ICoSrB,YAAV,mBA/R1B,EA+R0B,IAAS,C;QCpSnB,wB;IA6CrC,IAAI,CAAC,YAAL,C,CAAY;A;;MF3CP,mC;MEFqB,cA6Cd,KAAK,SAAL,C;IAAkB,C;IFzClC,yB;EAAA,C;wCAC2FG,CAAAF,c,EAAAC,EAAAC,EAAA;A;;;IC+R9B,YAAV,mBA1RR,EA0RQ,IAAS,C;QC/R7C,wB;IAwCX,IAAI,CAAC,YAAL,C,CAAY;A;;MFtCP,sC;MEFL,cAwCY,KAAK,SAAL,C;IAAkB,C;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} from '@testdeck/mocha';
|
|
2
|
-
import { assert } from 'chai';
|
|
3
|
-
import * as fs from 'fs';
|
|
4
|
-
import { demoHook } from './hook'; //path to your hook.ts file (e.g. src/strapi-data/forms/{formName}/{formName}.onCreate.ts)
|
|
5
|
-
|
|
6
|
-
@suite class DemoUnitTests { //name of the test suite
|
|
7
|
-
|
|
8
|
-
private SUT: any;
|
|
9
|
-
private expected: any;
|
|
10
|
-
|
|
11
|
-
before() { //parsing input and output object from files
|
|
12
|
-
this.SUT = JSON.parse(fs.readFileSync("./demo/in.json", "utf8"));
|
|
13
|
-
this.expected = JSON.parse(fs.readFileSync("./demo/out.json", "utf8"));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@test 'updatable field should change'() { //test case
|
|
17
|
-
// testing our hook
|
|
18
|
-
assert.deepEqual(demoHook(this.SUT), this.expected, "field change from input to output")
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//here can be any amount of other tests
|
|
22
|
-
// @test 'another test'() {
|
|
23
|
-
// assert(one === other, "one should be equal other")
|
|
24
|
-
// }
|
|
25
|
-
|
|
1
|
+
import { suite, test } from '@testdeck/mocha';
|
|
2
|
+
import { assert } from 'chai';
|
|
3
|
+
import * as fs from 'fs';
|
|
4
|
+
import { demoHook } from './hook'; //path to your hook.ts file (e.g. src/strapi-data/forms/{formName}/{formName}.onCreate.ts)
|
|
5
|
+
|
|
6
|
+
@suite class DemoUnitTests { //name of the test suite
|
|
7
|
+
|
|
8
|
+
private SUT: any;
|
|
9
|
+
private expected: any;
|
|
10
|
+
|
|
11
|
+
before() { //parsing input and output object from files
|
|
12
|
+
this.SUT = JSON.parse(fs.readFileSync("./demo/in.json", "utf8"));
|
|
13
|
+
this.expected = JSON.parse(fs.readFileSync("./demo/out.json", "utf8"));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@test 'updatable field should change'() { //test case
|
|
17
|
+
// testing our hook
|
|
18
|
+
assert.deepEqual(demoHook(this.SUT), this.expected, "field change from input to output")
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//here can be any amount of other tests
|
|
22
|
+
// @test 'another test'() {
|
|
23
|
+
// assert(one === other, "one should be equal other")
|
|
24
|
+
// }
|
|
25
|
+
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bd40f2372badbbf39a09cd81b4c9a1ff
|
package/static/git.ignore
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
**/.nyc_output
|
|
2
|
-
node_modules
|
|
3
|
-
package-lock.json
|
|
4
|
-
**/package-lock.json
|
|
1
|
+
**/.nyc_output
|
|
2
|
+
node_modules
|
|
3
|
+
package-lock.json
|
|
4
|
+
**/package-lock.json
|
|
5
5
|
**/node_modules
|
package/static/git.ignore.hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2974b00165f2b6c90312594acc51fb00
|
package/static/hook.ts.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export function demoHook(props) {
|
|
2
|
-
const { fieldToUpdate } = props;
|
|
3
|
-
if (fieldToUpdate === "input") {
|
|
4
|
-
props.fieldToUpdate = "output";
|
|
5
|
-
}
|
|
6
|
-
return props;
|
|
1
|
+
export function demoHook(props) {
|
|
2
|
+
const { fieldToUpdate } = props;
|
|
3
|
+
if (fieldToUpdate === "input") {
|
|
4
|
+
props.fieldToUpdate = "output";
|
|
5
|
+
}
|
|
6
|
+
return props;
|
|
7
7
|
}
|
package/static/hook.ts.txt.hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
906480fbb61ae5accc4ef4f2b4578170
|
package/static/mrscconfig.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"url": "http://127.0.0.1:1337",
|
|
3
|
-
"testsDirectory": "tests",
|
|
4
|
-
"mapName": "entityMap.json",
|
|
5
|
-
"token": "accessTokenForStrapi",
|
|
6
|
-
"s3": {
|
|
7
|
-
"accessKeyId": "accessKeyForSelectelS3",
|
|
8
|
-
"secretAccessKey": "secretKeyForSelectelS3",
|
|
9
|
-
"region": "ru-1",
|
|
10
|
-
"host": "s3host",
|
|
11
|
-
"bucketName": "s3bucketName",
|
|
12
|
-
"autoUpdate": false
|
|
13
|
-
},
|
|
14
|
-
"port": 1811
|
|
1
|
+
{
|
|
2
|
+
"url": "http://127.0.0.1:1337",
|
|
3
|
+
"testsDirectory": "tests",
|
|
4
|
+
"mapName": "entityMap.json",
|
|
5
|
+
"token": "accessTokenForStrapi",
|
|
6
|
+
"s3": {
|
|
7
|
+
"accessKeyId": "accessKeyForSelectelS3",
|
|
8
|
+
"secretAccessKey": "secretKeyForSelectelS3",
|
|
9
|
+
"region": "ru-1",
|
|
10
|
+
"host": "s3host",
|
|
11
|
+
"bucketName": "s3bucketName",
|
|
12
|
+
"autoUpdate": false
|
|
13
|
+
},
|
|
14
|
+
"port": 1811
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1a2b49c93302c66a6965424f323a2516
|