@settlemint/sdk-cli 2.1.3-mainc3827cca → 2.1.3-pr34e4fe53
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/dist/cli.js +45 -37
- package/dist/cli.js.map +18 -18
- package/package.json +3 -3
package/dist/cli.js
CHANGED
@@ -245278,7 +245278,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
245278
245278
|
var package_default = {
|
245279
245279
|
name: "@settlemint/sdk-cli",
|
245280
245280
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
245281
|
-
version: "2.1.3-
|
245281
|
+
version: "2.1.3-pr34e4fe53",
|
245282
245282
|
type: "module",
|
245283
245283
|
private: false,
|
245284
245284
|
license: "FSL-1.1-MIT",
|
@@ -245327,8 +245327,8 @@ var package_default = {
|
|
245327
245327
|
"@inquirer/input": "4.1.9",
|
245328
245328
|
"@inquirer/password": "4.0.12",
|
245329
245329
|
"@inquirer/select": "4.1.1",
|
245330
|
-
"@settlemint/sdk-js": "2.1.3-
|
245331
|
-
"@settlemint/sdk-utils": "2.1.3-
|
245330
|
+
"@settlemint/sdk-js": "2.1.3-pr34e4fe53",
|
245331
|
+
"@settlemint/sdk-utils": "2.1.3-pr34e4fe53",
|
245332
245332
|
"@types/node": "22.14.1",
|
245333
245333
|
"@types/semver": "7.7.0",
|
245334
245334
|
"@types/which": "3.0.4",
|
@@ -256752,12 +256752,14 @@ function getCreateCommand({
|
|
256752
256752
|
instance
|
256753
256753
|
});
|
256754
256754
|
const platformConfig = await settlemint.platform.config();
|
256755
|
+
let selectedProvider = undefined;
|
256756
|
+
let selectedRegion = undefined;
|
256755
256757
|
if (cmd2.options.some((option) => option.long === "--provider")) {
|
256756
|
-
|
256758
|
+
selectedProvider = await providerPrompt(platformConfig, provider);
|
256757
256759
|
if (!selectedProvider) {
|
256758
256760
|
return nothingSelectedError("provider");
|
256759
256761
|
}
|
256760
|
-
|
256762
|
+
selectedRegion = await regionPrompt(selectedProvider, region);
|
256761
256763
|
if (!selectedRegion) {
|
256762
256764
|
return nothingSelectedError("region");
|
256763
256765
|
}
|
@@ -256767,7 +256769,13 @@ function getCreateCommand({
|
|
256767
256769
|
task,
|
256768
256770
|
stopMessage: `${capitalizeFirstLetter2(type4)} created`
|
256769
256771
|
});
|
256770
|
-
const { result, waitFor, mapDefaultEnv } = await createFunction(
|
256772
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction({
|
256773
|
+
settlemint,
|
256774
|
+
env: env2,
|
256775
|
+
showSpinner,
|
256776
|
+
provider: selectedProvider?.id,
|
256777
|
+
region: selectedRegion?.id
|
256778
|
+
});
|
256771
256779
|
if (wait) {
|
256772
256780
|
await waitForCompletion({
|
256773
256781
|
settlemint,
|
@@ -256836,7 +256844,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
256836
256844
|
...defaultArgs,
|
256837
256845
|
provider,
|
256838
256846
|
region
|
256839
|
-
}, async (settlemint, env2, showSpinner) => {
|
256847
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
256840
256848
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
256841
256849
|
if (!applicationUniqueName) {
|
256842
256850
|
return missingApplication();
|
@@ -256851,8 +256859,8 @@ function blockchainNetworkBesuCreateCommand() {
|
|
256851
256859
|
evmStackSize,
|
256852
256860
|
gasLimit,
|
256853
256861
|
gasPrice,
|
256854
|
-
provider,
|
256855
|
-
region,
|
256862
|
+
provider: provider2,
|
256863
|
+
region: region2,
|
256856
256864
|
secondsPerBlock,
|
256857
256865
|
size,
|
256858
256866
|
type: type4
|
@@ -256995,7 +257003,7 @@ function workspaceCreateCommand() {
|
|
256995
257003
|
addressLine1,
|
256996
257004
|
...defaultArgs
|
256997
257005
|
}) => {
|
256998
|
-
return baseAction(defaultArgs, async (settlemint,
|
257006
|
+
return baseAction(defaultArgs, async ({ settlemint, showSpinner }) => {
|
256999
257007
|
const result = await showSpinner(() => settlemint.workspace.create({
|
257000
257008
|
name: name3,
|
257001
257009
|
taxIdValue,
|
@@ -257046,7 +257054,7 @@ function applicationAccessTokenCreateCommand() {
|
|
257046
257054
|
alias: "aat",
|
257047
257055
|
execute: (cmd2, baseAction) => {
|
257048
257056
|
cmd2.option("--app, --application <application>", "The application unique name to create the application access token for (defaults to application from env)").addOption(new Option("-v, --validity-period <period>", "The validity period for the token").choices(["DAYS_7", "DAYS_30", "DAYS_60", "DAYS_90", "NONE"]).default("DAYS_7")).action(async (name3, { application, validityPeriod, ...defaultArgs }) => {
|
257049
|
-
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
257057
|
+
return baseAction(defaultArgs, async ({ settlemint, env: env2, showSpinner }) => {
|
257050
257058
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257051
257059
|
if (!applicationUniqueName) {
|
257052
257060
|
return missingApplication();
|
@@ -257139,7 +257147,7 @@ function applicationCreateCommand() {
|
|
257139
257147
|
return baseAction({
|
257140
257148
|
...defaultArgs,
|
257141
257149
|
acceptDefaults
|
257142
|
-
}, async (settlemint, env2, showSpinner) => {
|
257150
|
+
}, async ({ settlemint, env: env2, showSpinner }) => {
|
257143
257151
|
let workspaceUniqueName = workspace;
|
257144
257152
|
if (!workspaceUniqueName) {
|
257145
257153
|
const workspaces = await workspaceSpinner(settlemint);
|
@@ -257230,7 +257238,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
257230
257238
|
acceptDefaults,
|
257231
257239
|
provider,
|
257232
257240
|
region
|
257233
|
-
}, async (settlemint, env2, showSpinner) => {
|
257241
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
257234
257242
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257235
257243
|
if (!applicationUniqueName) {
|
257236
257244
|
return missingApplication();
|
@@ -257255,8 +257263,8 @@ function blockchainNodeBesuCreateCommand() {
|
|
257255
257263
|
blockchainNetworkUniqueName: networkUniqueName,
|
257256
257264
|
nodeType,
|
257257
257265
|
keyMaterial: nodeIdentity,
|
257258
|
-
provider,
|
257259
|
-
region,
|
257266
|
+
provider: provider2,
|
257267
|
+
region: region2,
|
257260
257268
|
size,
|
257261
257269
|
type: type4
|
257262
257270
|
}));
|
@@ -257308,7 +257316,7 @@ function blockscoutInsightsCreateCommand() {
|
|
257308
257316
|
acceptDefaults,
|
257309
257317
|
provider,
|
257310
257318
|
region
|
257311
|
-
}, async (settlemint, env2, showSpinner) => {
|
257319
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
257312
257320
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257313
257321
|
if (!applicationUniqueName) {
|
257314
257322
|
return missingApplication();
|
@@ -257332,8 +257340,8 @@ function blockscoutInsightsCreateCommand() {
|
|
257332
257340
|
name: name3,
|
257333
257341
|
applicationUniqueName,
|
257334
257342
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
257335
|
-
provider,
|
257336
|
-
region,
|
257343
|
+
provider: provider2,
|
257344
|
+
region: region2,
|
257337
257345
|
size,
|
257338
257346
|
type: type4,
|
257339
257347
|
blockchainNodeUniqueName,
|
@@ -257385,7 +257393,7 @@ function hasuraIntegrationCreateCommand() {
|
|
257385
257393
|
...defaultArgs,
|
257386
257394
|
provider,
|
257387
257395
|
region
|
257388
|
-
}, async (settlemint, env2, showSpinner) => {
|
257396
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
257389
257397
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257390
257398
|
if (!applicationUniqueName) {
|
257391
257399
|
return missingApplication();
|
@@ -257394,8 +257402,8 @@ function hasuraIntegrationCreateCommand() {
|
|
257394
257402
|
name: name3,
|
257395
257403
|
applicationUniqueName,
|
257396
257404
|
integrationType: "HASURA",
|
257397
|
-
provider,
|
257398
|
-
region,
|
257405
|
+
provider: provider2,
|
257406
|
+
region: region2,
|
257399
257407
|
size,
|
257400
257408
|
type: type4
|
257401
257409
|
}));
|
@@ -257446,7 +257454,7 @@ function graphMiddlewareCreateCommand() {
|
|
257446
257454
|
acceptDefaults,
|
257447
257455
|
provider,
|
257448
257456
|
region
|
257449
|
-
}, async (settlemint, env2, showSpinner) => {
|
257457
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
257450
257458
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257451
257459
|
if (!applicationUniqueName) {
|
257452
257460
|
return missingApplication();
|
@@ -257470,8 +257478,8 @@ function graphMiddlewareCreateCommand() {
|
|
257470
257478
|
applicationUniqueName,
|
257471
257479
|
interface: "HA_GRAPH",
|
257472
257480
|
blockchainNodeUniqueName,
|
257473
|
-
provider,
|
257474
|
-
region,
|
257481
|
+
provider: provider2,
|
257482
|
+
region: region2,
|
257475
257483
|
size,
|
257476
257484
|
type: type4
|
257477
257485
|
}));
|
@@ -257529,7 +257537,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
257529
257537
|
acceptDefaults,
|
257530
257538
|
provider,
|
257531
257539
|
region
|
257532
|
-
}, async (settlemint, env2, showSpinner) => {
|
257540
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
257533
257541
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257534
257542
|
if (!applicationUniqueName) {
|
257535
257543
|
return missingApplication();
|
@@ -257578,8 +257586,8 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
257578
257586
|
loadBalancerUniqueName,
|
257579
257587
|
abis: parsedAbis,
|
257580
257588
|
includePredeployedAbis,
|
257581
|
-
provider,
|
257582
|
-
region,
|
257589
|
+
provider: provider2,
|
257590
|
+
region: region2,
|
257583
257591
|
size,
|
257584
257592
|
type: type4
|
257585
257593
|
}));
|
@@ -257626,7 +257634,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
257626
257634
|
return baseAction({
|
257627
257635
|
...defaultArgs,
|
257628
257636
|
acceptDefaults
|
257629
|
-
}, async (settlemint, env2, showSpinner) => {
|
257637
|
+
}, async ({ settlemint, env: env2, showSpinner, provider, region }) => {
|
257630
257638
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257631
257639
|
if (!applicationUniqueName) {
|
257632
257640
|
return missingApplication();
|
@@ -257686,7 +257694,7 @@ function privateKeyHdCreateCommand() {
|
|
257686
257694
|
return baseAction({
|
257687
257695
|
...defaultArgs,
|
257688
257696
|
acceptDefaults
|
257689
|
-
}, async (settlemint, env2, showSpinner) => {
|
257697
|
+
}, async ({ settlemint, env: env2, showSpinner, provider, region }) => {
|
257690
257698
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257691
257699
|
if (!applicationUniqueName) {
|
257692
257700
|
return missingApplication();
|
@@ -257752,7 +257760,7 @@ function privateKeyHsmCreateCommand() {
|
|
257752
257760
|
return baseAction({
|
257753
257761
|
...defaultArgs,
|
257754
257762
|
acceptDefaults
|
257755
|
-
}, async (settlemint, env2, showSpinner) => {
|
257763
|
+
}, async ({ settlemint, env: env2, showSpinner, provider, region }) => {
|
257756
257764
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257757
257765
|
if (!applicationUniqueName) {
|
257758
257766
|
return missingApplication();
|
@@ -257818,7 +257826,7 @@ function ipfsStorageCreateCommand() {
|
|
257818
257826
|
...defaultArgs,
|
257819
257827
|
provider,
|
257820
257828
|
region
|
257821
|
-
}, async (settlemint, env2, showSpinner) => {
|
257829
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
257822
257830
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257823
257831
|
if (!applicationUniqueName) {
|
257824
257832
|
return missingApplication();
|
@@ -257827,8 +257835,8 @@ function ipfsStorageCreateCommand() {
|
|
257827
257835
|
name: name3,
|
257828
257836
|
applicationUniqueName,
|
257829
257837
|
storageProtocol: "IPFS",
|
257830
|
-
provider,
|
257831
|
-
region,
|
257838
|
+
provider: provider2,
|
257839
|
+
region: region2,
|
257832
257840
|
size,
|
257833
257841
|
type: type4
|
257834
257842
|
}));
|
@@ -257871,7 +257879,7 @@ function minioStorageCreateCommand() {
|
|
257871
257879
|
...defaultArgs,
|
257872
257880
|
provider,
|
257873
257881
|
region
|
257874
|
-
}, async (settlemint, env2, showSpinner) => {
|
257882
|
+
}, async ({ settlemint, env: env2, showSpinner, provider: provider2, region: region2 }) => {
|
257875
257883
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
257876
257884
|
if (!applicationUniqueName) {
|
257877
257885
|
return missingApplication();
|
@@ -257880,8 +257888,8 @@ function minioStorageCreateCommand() {
|
|
257880
257888
|
name: name3,
|
257881
257889
|
applicationUniqueName,
|
257882
257890
|
storageProtocol: "MINIO",
|
257883
|
-
provider,
|
257884
|
-
region,
|
257891
|
+
provider: provider2,
|
257892
|
+
region: region2,
|
257885
257893
|
size,
|
257886
257894
|
type: type4
|
257887
257895
|
}));
|
@@ -259893,4 +259901,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
259893
259901
|
// src/cli.ts
|
259894
259902
|
sdkCliCommand();
|
259895
259903
|
|
259896
|
-
//# debugId=
|
259904
|
+
//# debugId=34B599C511ED919264756E2164756E21
|