@settlemint/sdk-js 2.4.0-pr0309c2e1 → 2.4.0-pr04db78f3
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/settlemint.cjs +9 -405
- package/dist/settlemint.cjs.map +1 -1
- package/dist/settlemint.d.cts +31 -49
- package/dist/settlemint.d.ts +0 -18
- package/dist/settlemint.js +9 -405
- package/dist/settlemint.js.map +1 -1
- package/package.json +3 -5
package/dist/settlemint.cjs
CHANGED
|
@@ -597,26 +597,6 @@ const restartBlockchainNetwork = graphql(`
|
|
|
597
597
|
}
|
|
598
598
|
`, [BlockchainNetworkFragment]);
|
|
599
599
|
/**
|
|
600
|
-
* Mutation to pause a blockchain network.
|
|
601
|
-
*/
|
|
602
|
-
const pauseBlockchainNetwork = graphql(`
|
|
603
|
-
mutation PauseBlockchainNetwork($uniqueName: String!) {
|
|
604
|
-
pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
|
|
605
|
-
...BlockchainNetwork
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
`, [BlockchainNetworkFragment]);
|
|
609
|
-
/**
|
|
610
|
-
* Mutation to resume a blockchain network.
|
|
611
|
-
*/
|
|
612
|
-
const resumeBlockchainNetwork = graphql(`
|
|
613
|
-
mutation ResumeBlockchainNetwork($uniqueName: String!) {
|
|
614
|
-
resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
|
|
615
|
-
...BlockchainNetwork
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
`, [BlockchainNetworkFragment]);
|
|
619
|
-
/**
|
|
620
600
|
* Creates a function to list blockchain networks for a given application.
|
|
621
601
|
*
|
|
622
602
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -685,28 +665,6 @@ const blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueNa
|
|
|
685
665
|
const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
686
666
|
return blockchainNetwork;
|
|
687
667
|
};
|
|
688
|
-
/**
|
|
689
|
-
* Creates a function to pause a blockchain network.
|
|
690
|
-
*
|
|
691
|
-
* @param gqlClient - The GraphQL client instance
|
|
692
|
-
* @returns Function that pauses a network by unique name
|
|
693
|
-
* @throws If the network cannot be found or the pause fails
|
|
694
|
-
*/
|
|
695
|
-
const blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
|
|
696
|
-
const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
697
|
-
return blockchainNetwork;
|
|
698
|
-
};
|
|
699
|
-
/**
|
|
700
|
-
* Creates a function to resume a blockchain network.
|
|
701
|
-
*
|
|
702
|
-
* @param gqlClient - The GraphQL client instance
|
|
703
|
-
* @returns Function that resumes a network by unique name
|
|
704
|
-
* @throws If the network cannot be found or the resume fails
|
|
705
|
-
*/
|
|
706
|
-
const blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
|
|
707
|
-
const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
708
|
-
return blockchainNetwork;
|
|
709
|
-
};
|
|
710
668
|
|
|
711
669
|
//#endregion
|
|
712
670
|
//#region src/graphql/blockchain-node.ts
|
|
@@ -859,26 +817,6 @@ const restartBlockchainNode = graphql(`
|
|
|
859
817
|
}
|
|
860
818
|
`, [BlockchainNodeFragment]);
|
|
861
819
|
/**
|
|
862
|
-
* Mutation to pause a blockchain node.
|
|
863
|
-
*/
|
|
864
|
-
const pauseBlockchainNode = graphql(`
|
|
865
|
-
mutation PauseBlockchainNode($uniqueName: String!) {
|
|
866
|
-
pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
|
|
867
|
-
...BlockchainNode
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
`, [BlockchainNodeFragment]);
|
|
871
|
-
/**
|
|
872
|
-
* Mutation to resume a blockchain node.
|
|
873
|
-
*/
|
|
874
|
-
const resumeBlockchainNode = graphql(`
|
|
875
|
-
mutation ResumeBlockchainNode($uniqueName: String!) {
|
|
876
|
-
resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
|
|
877
|
-
...BlockchainNode
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
`, [BlockchainNodeFragment]);
|
|
881
|
-
/**
|
|
882
820
|
* Creates a function to list blockchain nodes for an application.
|
|
883
821
|
*
|
|
884
822
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -934,28 +872,6 @@ const blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) =>
|
|
|
934
872
|
const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
935
873
|
return blockchainNode;
|
|
936
874
|
};
|
|
937
|
-
/**
|
|
938
|
-
* Creates a function to pause a blockchain node.
|
|
939
|
-
*
|
|
940
|
-
* @param gqlClient - The GraphQL client instance
|
|
941
|
-
* @returns Function that pauses a blockchain node by unique name
|
|
942
|
-
* @throws If the blockchain node cannot be found or the pause fails
|
|
943
|
-
*/
|
|
944
|
-
const blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
|
|
945
|
-
const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
946
|
-
return blockchainNode;
|
|
947
|
-
};
|
|
948
|
-
/**
|
|
949
|
-
* Creates a function to resume a blockchain node.
|
|
950
|
-
*
|
|
951
|
-
* @param gqlClient - The GraphQL client instance
|
|
952
|
-
* @returns Function that resumes a blockchain node by unique name
|
|
953
|
-
* @throws If the blockchain node cannot be found or the resume fails
|
|
954
|
-
*/
|
|
955
|
-
const blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
|
|
956
|
-
const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
957
|
-
return blockchainNode;
|
|
958
|
-
};
|
|
959
875
|
|
|
960
876
|
//#endregion
|
|
961
877
|
//#region src/graphql/custom-deployment.ts
|
|
@@ -1060,26 +976,6 @@ const restartCustomDeployment = graphql(`
|
|
|
1060
976
|
}
|
|
1061
977
|
`, [CustomDeploymentFragment]);
|
|
1062
978
|
/**
|
|
1063
|
-
* Mutation to pause a custom deployment.
|
|
1064
|
-
*/
|
|
1065
|
-
const pauseCustomDeployment = graphql(`
|
|
1066
|
-
mutation PauseCustomDeployment($uniqueName: String!) {
|
|
1067
|
-
pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
|
|
1068
|
-
...CustomDeployment
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
`, [CustomDeploymentFragment]);
|
|
1072
|
-
/**
|
|
1073
|
-
* Mutation to resume a custom deployment.
|
|
1074
|
-
*/
|
|
1075
|
-
const resumeCustomDeployment = graphql(`
|
|
1076
|
-
mutation ResumeCustomDeployment($uniqueName: String!) {
|
|
1077
|
-
resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
|
|
1078
|
-
...CustomDeployment
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
`, [CustomDeploymentFragment]);
|
|
1082
|
-
/**
|
|
1083
979
|
* Creates a function to list custom deployments for an application.
|
|
1084
980
|
*
|
|
1085
981
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1150,28 +1046,6 @@ const customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName
|
|
|
1150
1046
|
const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
1151
1047
|
return customDeployment;
|
|
1152
1048
|
};
|
|
1153
|
-
/**
|
|
1154
|
-
* Creates a function to pause a custom deployment.
|
|
1155
|
-
*
|
|
1156
|
-
* @param gqlClient - The GraphQL client instance
|
|
1157
|
-
* @returns Function that pauses a custom deployment by unique name
|
|
1158
|
-
* @throws If the custom deployment cannot be found or the pause fails
|
|
1159
|
-
*/
|
|
1160
|
-
const customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
|
|
1161
|
-
const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
1162
|
-
return customDeployment;
|
|
1163
|
-
};
|
|
1164
|
-
/**
|
|
1165
|
-
* Creates a function to resume a custom deployment.
|
|
1166
|
-
*
|
|
1167
|
-
* @param gqlClient - The GraphQL client instance
|
|
1168
|
-
* @returns Function that resumes a custom deployment by unique name
|
|
1169
|
-
* @throws If the custom deployment cannot be found or the resume fails
|
|
1170
|
-
*/
|
|
1171
|
-
const customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
|
|
1172
|
-
const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
1173
|
-
return customDeployment;
|
|
1174
|
-
};
|
|
1175
1049
|
|
|
1176
1050
|
//#endregion
|
|
1177
1051
|
//#region src/graphql/foundry.ts
|
|
@@ -1280,26 +1154,6 @@ const restartLoadBalancer = graphql(`
|
|
|
1280
1154
|
}
|
|
1281
1155
|
`, [LoadBalancerFragment]);
|
|
1282
1156
|
/**
|
|
1283
|
-
* Mutation to pause a load balancer.
|
|
1284
|
-
*/
|
|
1285
|
-
const pauseLoadBalancer = graphql(`
|
|
1286
|
-
mutation PauseLoadBalancer($uniqueName: String!) {
|
|
1287
|
-
pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
|
|
1288
|
-
...LoadBalancer
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
`, [LoadBalancerFragment]);
|
|
1292
|
-
/**
|
|
1293
|
-
* Mutation to resume a load balancer.
|
|
1294
|
-
*/
|
|
1295
|
-
const resumeLoadBalancer = graphql(`
|
|
1296
|
-
mutation ResumeLoadBalancer($uniqueName: String!) {
|
|
1297
|
-
resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
|
|
1298
|
-
...LoadBalancer
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
`, [LoadBalancerFragment]);
|
|
1302
|
-
/**
|
|
1303
1157
|
* Creates a function to fetch a specific load balancer.
|
|
1304
1158
|
*
|
|
1305
1159
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1360,28 +1214,6 @@ const loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
|
1360
1214
|
const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
1361
1215
|
return loadBalancer;
|
|
1362
1216
|
};
|
|
1363
|
-
/**
|
|
1364
|
-
* Creates a function to pause a load balancer.
|
|
1365
|
-
*
|
|
1366
|
-
* @param gqlClient - The GraphQL client instance
|
|
1367
|
-
* @returns Function that pauses a load balancer
|
|
1368
|
-
* @throws If the load balancer cannot be paused or the request fails
|
|
1369
|
-
*/
|
|
1370
|
-
const loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
1371
|
-
const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
1372
|
-
return loadBalancer;
|
|
1373
|
-
};
|
|
1374
|
-
/**
|
|
1375
|
-
* Creates a function to resume a load balancer.
|
|
1376
|
-
*
|
|
1377
|
-
* @param gqlClient - The GraphQL client instance
|
|
1378
|
-
* @returns Function that resumes a load balancer
|
|
1379
|
-
* @throws If the load balancer cannot be resumed or the request fails
|
|
1380
|
-
*/
|
|
1381
|
-
const loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
1382
|
-
const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
1383
|
-
return loadBalancer;
|
|
1384
|
-
};
|
|
1385
1217
|
|
|
1386
1218
|
//#endregion
|
|
1387
1219
|
//#region src/graphql/insights.ts
|
|
@@ -1474,26 +1306,6 @@ const restartInsights = graphql(`
|
|
|
1474
1306
|
}
|
|
1475
1307
|
`, [InsightsFragment]);
|
|
1476
1308
|
/**
|
|
1477
|
-
* Mutation to pause insights.
|
|
1478
|
-
*/
|
|
1479
|
-
const pauseInsights = graphql(`
|
|
1480
|
-
mutation PauseInsights($uniqueName: String!) {
|
|
1481
|
-
pauseInsightsByUniqueName(uniqueName: $uniqueName) {
|
|
1482
|
-
...Insights
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
`, [InsightsFragment]);
|
|
1486
|
-
/**
|
|
1487
|
-
* Mutation to resume insights.
|
|
1488
|
-
*/
|
|
1489
|
-
const resumeInsights = graphql(`
|
|
1490
|
-
mutation ResumeInsights($uniqueName: String!) {
|
|
1491
|
-
resumeInsightsByUniqueName(uniqueName: $uniqueName) {
|
|
1492
|
-
...Insights
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
`, [InsightsFragment]);
|
|
1496
|
-
/**
|
|
1497
1309
|
* Creates a function to list insights for an application.
|
|
1498
1310
|
*
|
|
1499
1311
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1554,28 +1366,6 @@ const insightsRestart = (gqlClient) => async (insightsUniqueName) => {
|
|
|
1554
1366
|
const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
|
|
1555
1367
|
return insights;
|
|
1556
1368
|
};
|
|
1557
|
-
/**
|
|
1558
|
-
* Creates a function to pause insights.
|
|
1559
|
-
*
|
|
1560
|
-
* @param gqlClient - The GraphQL client instance
|
|
1561
|
-
* @returns Function that pauses insights by unique name
|
|
1562
|
-
* @throws If the insights cannot be found or the pause fails
|
|
1563
|
-
*/
|
|
1564
|
-
const insightsPause = (gqlClient) => async (insightsUniqueName) => {
|
|
1565
|
-
const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
|
|
1566
|
-
return insights;
|
|
1567
|
-
};
|
|
1568
|
-
/**
|
|
1569
|
-
* Creates a function to resume insights.
|
|
1570
|
-
*
|
|
1571
|
-
* @param gqlClient - The GraphQL client instance
|
|
1572
|
-
* @returns Function that resumes insights by unique name
|
|
1573
|
-
* @throws If the insights cannot be found or the resume fails
|
|
1574
|
-
*/
|
|
1575
|
-
const insightsResume = (gqlClient) => async (insightsUniqueName) => {
|
|
1576
|
-
const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
|
|
1577
|
-
return insights;
|
|
1578
|
-
};
|
|
1579
1369
|
|
|
1580
1370
|
//#endregion
|
|
1581
1371
|
//#region src/graphql/integration-tool.ts
|
|
@@ -1664,26 +1454,6 @@ const restartIntegrationTool = graphql(`
|
|
|
1664
1454
|
}
|
|
1665
1455
|
`, [IntegrationFragment]);
|
|
1666
1456
|
/**
|
|
1667
|
-
* Mutation to pause an integration.
|
|
1668
|
-
*/
|
|
1669
|
-
const pauseIntegrationTool = graphql(`
|
|
1670
|
-
mutation PauseIntegrationTool($uniqueName: String!) {
|
|
1671
|
-
pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
|
|
1672
|
-
...Integration
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
`, [IntegrationFragment]);
|
|
1676
|
-
/**
|
|
1677
|
-
* Mutation to resume an integration.
|
|
1678
|
-
*/
|
|
1679
|
-
const resumeIntegrationTool = graphql(`
|
|
1680
|
-
mutation ResumeIntegrationTool($uniqueName: String!) {
|
|
1681
|
-
resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
|
|
1682
|
-
...Integration
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
`, [IntegrationFragment]);
|
|
1686
|
-
/**
|
|
1687
1457
|
* Creates a function to list integration tools for an application.
|
|
1688
1458
|
*
|
|
1689
1459
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1738,28 +1508,6 @@ const integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
|
|
|
1738
1508
|
const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
|
|
1739
1509
|
return integration;
|
|
1740
1510
|
};
|
|
1741
|
-
/**
|
|
1742
|
-
* Creates a function to pause an integration tool.
|
|
1743
|
-
*
|
|
1744
|
-
* @param gqlClient - The GraphQL client instance
|
|
1745
|
-
* @returns Function that pauses integration tool by unique name
|
|
1746
|
-
* @throws If the integration tool cannot be found or the pause fails
|
|
1747
|
-
*/
|
|
1748
|
-
const integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
|
|
1749
|
-
const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
|
|
1750
|
-
return integration;
|
|
1751
|
-
};
|
|
1752
|
-
/**
|
|
1753
|
-
* Creates a function to resume an integration tool.
|
|
1754
|
-
*
|
|
1755
|
-
* @param gqlClient - The GraphQL client instance
|
|
1756
|
-
* @returns Function that resumes integration tool by unique name
|
|
1757
|
-
* @throws If the integration tool cannot be found or the resume fails
|
|
1758
|
-
*/
|
|
1759
|
-
const integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
|
|
1760
|
-
const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
|
|
1761
|
-
return integration;
|
|
1762
|
-
};
|
|
1763
1511
|
|
|
1764
1512
|
//#endregion
|
|
1765
1513
|
//#region src/graphql/storage.ts
|
|
@@ -1848,26 +1596,6 @@ const restartStorage = graphql(`
|
|
|
1848
1596
|
}
|
|
1849
1597
|
`, [StorageFragment]);
|
|
1850
1598
|
/**
|
|
1851
|
-
* Mutation to pause a storage.
|
|
1852
|
-
*/
|
|
1853
|
-
const pauseStorage = graphql(`
|
|
1854
|
-
mutation PauseStorage($uniqueName: String!) {
|
|
1855
|
-
pauseStorageByUniqueName(uniqueName: $uniqueName) {
|
|
1856
|
-
...Storage
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
`, [StorageFragment]);
|
|
1860
|
-
/**
|
|
1861
|
-
* Mutation to resume a storage.
|
|
1862
|
-
*/
|
|
1863
|
-
const resumeStorage = graphql(`
|
|
1864
|
-
mutation ResumeStorage($uniqueName: String!) {
|
|
1865
|
-
resumeStorageByUniqueName(uniqueName: $uniqueName) {
|
|
1866
|
-
...Storage
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
`, [StorageFragment]);
|
|
1870
|
-
/**
|
|
1871
1599
|
* Creates a function to list storages for an application.
|
|
1872
1600
|
*
|
|
1873
1601
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1922,28 +1650,6 @@ const storageRestart = (gqlClient) => async (storageUniqueName) => {
|
|
|
1922
1650
|
const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
|
|
1923
1651
|
return storage;
|
|
1924
1652
|
};
|
|
1925
|
-
/**
|
|
1926
|
-
* Creates a function to pause a storage.
|
|
1927
|
-
*
|
|
1928
|
-
* @param gqlClient - The GraphQL client instance
|
|
1929
|
-
* @returns Function that pauses storage by unique name
|
|
1930
|
-
* @throws If the storage cannot be found or the pause fails
|
|
1931
|
-
*/
|
|
1932
|
-
const storagePause = (gqlClient) => async (storageUniqueName) => {
|
|
1933
|
-
const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
|
|
1934
|
-
return storage;
|
|
1935
|
-
};
|
|
1936
|
-
/**
|
|
1937
|
-
* Creates a function to resume a storage.
|
|
1938
|
-
*
|
|
1939
|
-
* @param gqlClient - The GraphQL client instance
|
|
1940
|
-
* @returns Function that resumes storage by unique name
|
|
1941
|
-
* @throws If the storage cannot be found or the resume fails
|
|
1942
|
-
*/
|
|
1943
|
-
const storageResume = (gqlClient) => async (storageUniqueName) => {
|
|
1944
|
-
const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
|
|
1945
|
-
return storage;
|
|
1946
|
-
};
|
|
1947
1653
|
|
|
1948
1654
|
//#endregion
|
|
1949
1655
|
//#region src/graphql/middleware.ts
|
|
@@ -2066,26 +1772,6 @@ const restartMiddleware = graphql(`
|
|
|
2066
1772
|
}
|
|
2067
1773
|
`, [MiddlewareFragment]);
|
|
2068
1774
|
/**
|
|
2069
|
-
* Mutation to pause a middleware.
|
|
2070
|
-
*/
|
|
2071
|
-
const pauseMiddleware = graphql(`
|
|
2072
|
-
mutation PauseMiddleware($uniqueName: String!) {
|
|
2073
|
-
pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
|
|
2074
|
-
...Middleware
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
`, [MiddlewareFragment]);
|
|
2078
|
-
/**
|
|
2079
|
-
* Mutation to resume a middleware.
|
|
2080
|
-
*/
|
|
2081
|
-
const resumeMiddleware = graphql(`
|
|
2082
|
-
mutation ResumeMiddleware($uniqueName: String!) {
|
|
2083
|
-
resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
|
|
2084
|
-
...Middleware
|
|
2085
|
-
}
|
|
2086
|
-
}
|
|
2087
|
-
`, [MiddlewareFragment]);
|
|
2088
|
-
/**
|
|
2089
1775
|
* Creates a function to list middlewares for an application.
|
|
2090
1776
|
*
|
|
2091
1777
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -2164,28 +1850,6 @@ const middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
|
|
|
2164
1850
|
const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
|
|
2165
1851
|
return middleware;
|
|
2166
1852
|
};
|
|
2167
|
-
/**
|
|
2168
|
-
* Creates a function to pause a middleware.
|
|
2169
|
-
*
|
|
2170
|
-
* @param gqlClient - The GraphQL client instance
|
|
2171
|
-
* @returns Function that pauses middleware by unique name
|
|
2172
|
-
* @throws If the middleware cannot be found or the pause fails
|
|
2173
|
-
*/
|
|
2174
|
-
const middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
|
|
2175
|
-
const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
|
|
2176
|
-
return middleware;
|
|
2177
|
-
};
|
|
2178
|
-
/**
|
|
2179
|
-
* Creates a function to resume a middleware.
|
|
2180
|
-
*
|
|
2181
|
-
* @param gqlClient - The GraphQL client instance
|
|
2182
|
-
* @returns Function that resumes middleware by unique name
|
|
2183
|
-
* @throws If the middleware cannot be found or the resume fails
|
|
2184
|
-
*/
|
|
2185
|
-
const middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
|
|
2186
|
-
const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
|
|
2187
|
-
return middleware;
|
|
2188
|
-
};
|
|
2189
1853
|
|
|
2190
1854
|
//#endregion
|
|
2191
1855
|
//#region src/graphql/platform.ts
|
|
@@ -2350,26 +2014,6 @@ const restartPrivateKey = graphql(`
|
|
|
2350
2014
|
}
|
|
2351
2015
|
`, [PrivateKeyFragment]);
|
|
2352
2016
|
/**
|
|
2353
|
-
* Mutation to pause a private key.
|
|
2354
|
-
*/
|
|
2355
|
-
const pausePrivateKey = graphql(`
|
|
2356
|
-
mutation PausePrivateKey($uniqueName: String!) {
|
|
2357
|
-
pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
|
|
2358
|
-
...PrivateKey
|
|
2359
|
-
}
|
|
2360
|
-
}
|
|
2361
|
-
`, [PrivateKeyFragment]);
|
|
2362
|
-
/**
|
|
2363
|
-
* Mutation to resume a private key.
|
|
2364
|
-
*/
|
|
2365
|
-
const resumePrivateKey = graphql(`
|
|
2366
|
-
mutation ResumePrivateKey($uniqueName: String!) {
|
|
2367
|
-
resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
|
|
2368
|
-
...PrivateKey
|
|
2369
|
-
}
|
|
2370
|
-
}
|
|
2371
|
-
`, [PrivateKeyFragment]);
|
|
2372
|
-
/**
|
|
2373
2017
|
* Creates a function to list private keys for an application.
|
|
2374
2018
|
*
|
|
2375
2019
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -2435,28 +2079,6 @@ const privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
|
|
|
2435
2079
|
const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
|
|
2436
2080
|
return privateKey;
|
|
2437
2081
|
};
|
|
2438
|
-
/**
|
|
2439
|
-
* Creates a function to pause a private key.
|
|
2440
|
-
*
|
|
2441
|
-
* @param gqlClient - The GraphQL client instance
|
|
2442
|
-
* @returns Function that pauses private key by unique name
|
|
2443
|
-
* @throws If the private key cannot be found or the pause fails
|
|
2444
|
-
*/
|
|
2445
|
-
const privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
|
|
2446
|
-
const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
|
|
2447
|
-
return privateKey;
|
|
2448
|
-
};
|
|
2449
|
-
/**
|
|
2450
|
-
* Creates a function to resume a private key.
|
|
2451
|
-
*
|
|
2452
|
-
* @param gqlClient - The GraphQL client instance
|
|
2453
|
-
* @returns Function that resumes private key by unique name
|
|
2454
|
-
* @throws If the private key cannot be found or the resume fails
|
|
2455
|
-
*/
|
|
2456
|
-
const privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
|
|
2457
|
-
const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
|
|
2458
|
-
return privateKey;
|
|
2459
|
-
};
|
|
2460
2082
|
|
|
2461
2083
|
//#endregion
|
|
2462
2084
|
//#region src/helpers/client-options.schema.ts
|
|
@@ -2581,75 +2203,57 @@ function createSettleMintClient(options) {
|
|
|
2581
2203
|
read: blockchainNetworkRead(gqlClient),
|
|
2582
2204
|
create: blockchainNetworkCreate(gqlClient),
|
|
2583
2205
|
delete: blockchainNetworkDelete(gqlClient),
|
|
2584
|
-
restart: blockchainNetworkRestart(gqlClient)
|
|
2585
|
-
pause: blockchainNetworkPause(gqlClient),
|
|
2586
|
-
resume: blockchainNetworkResume(gqlClient)
|
|
2206
|
+
restart: blockchainNetworkRestart(gqlClient)
|
|
2587
2207
|
},
|
|
2588
2208
|
blockchainNode: {
|
|
2589
2209
|
list: blockchainNodeList(gqlClient),
|
|
2590
2210
|
read: blockchainNodeRead(gqlClient),
|
|
2591
2211
|
create: blockchainNodeCreate(gqlClient),
|
|
2592
|
-
restart: blockchainNodeRestart(gqlClient)
|
|
2593
|
-
pause: blockchainNodePause(gqlClient),
|
|
2594
|
-
resume: blockchainNodeResume(gqlClient)
|
|
2212
|
+
restart: blockchainNodeRestart(gqlClient)
|
|
2595
2213
|
},
|
|
2596
2214
|
loadBalancer: {
|
|
2597
2215
|
list: loadBalancerList(gqlClient),
|
|
2598
2216
|
read: loadBalancerRead(gqlClient),
|
|
2599
2217
|
create: loadBalancerCreate(gqlClient),
|
|
2600
|
-
restart: loadBalancerRestart(gqlClient)
|
|
2601
|
-
pause: loadBalancerPause(gqlClient),
|
|
2602
|
-
resume: loadBalancerResume(gqlClient)
|
|
2218
|
+
restart: loadBalancerRestart(gqlClient)
|
|
2603
2219
|
},
|
|
2604
2220
|
middleware: {
|
|
2605
2221
|
list: middlewareList(gqlClient),
|
|
2606
2222
|
read: middlewareRead(gqlClient),
|
|
2607
2223
|
graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
|
|
2608
2224
|
create: middlewareCreate(gqlClient),
|
|
2609
|
-
restart: middlewareRestart(gqlClient)
|
|
2610
|
-
pause: middlewarePause(gqlClient),
|
|
2611
|
-
resume: middlewareResume(gqlClient)
|
|
2225
|
+
restart: middlewareRestart(gqlClient)
|
|
2612
2226
|
},
|
|
2613
2227
|
integrationTool: {
|
|
2614
2228
|
list: integrationToolList(gqlClient),
|
|
2615
2229
|
read: integrationToolRead(gqlClient),
|
|
2616
2230
|
create: integrationToolCreate(gqlClient),
|
|
2617
|
-
restart: integrationToolRestart(gqlClient)
|
|
2618
|
-
pause: integrationToolPause(gqlClient),
|
|
2619
|
-
resume: integrationToolResume(gqlClient)
|
|
2231
|
+
restart: integrationToolRestart(gqlClient)
|
|
2620
2232
|
},
|
|
2621
2233
|
storage: {
|
|
2622
2234
|
list: storageList(gqlClient),
|
|
2623
2235
|
read: storageRead(gqlClient),
|
|
2624
2236
|
create: storageCreate(gqlClient),
|
|
2625
|
-
restart: storageRestart(gqlClient)
|
|
2626
|
-
pause: storagePause(gqlClient),
|
|
2627
|
-
resume: storageResume(gqlClient)
|
|
2237
|
+
restart: storageRestart(gqlClient)
|
|
2628
2238
|
},
|
|
2629
2239
|
privateKey: {
|
|
2630
2240
|
list: privateKeyList(gqlClient),
|
|
2631
2241
|
read: privatekeyRead(gqlClient),
|
|
2632
2242
|
create: privateKeyCreate(gqlClient),
|
|
2633
|
-
restart: privateKeyRestart(gqlClient)
|
|
2634
|
-
pause: privateKeyPause(gqlClient),
|
|
2635
|
-
resume: privateKeyResume(gqlClient)
|
|
2243
|
+
restart: privateKeyRestart(gqlClient)
|
|
2636
2244
|
},
|
|
2637
2245
|
insights: {
|
|
2638
2246
|
list: insightsList(gqlClient),
|
|
2639
2247
|
read: insightsRead(gqlClient),
|
|
2640
2248
|
create: insightsCreate(gqlClient),
|
|
2641
|
-
restart: insightsRestart(gqlClient)
|
|
2642
|
-
pause: insightsPause(gqlClient),
|
|
2643
|
-
resume: insightsResume(gqlClient)
|
|
2249
|
+
restart: insightsRestart(gqlClient)
|
|
2644
2250
|
},
|
|
2645
2251
|
customDeployment: {
|
|
2646
2252
|
list: customdeploymentList(gqlClient),
|
|
2647
2253
|
read: customdeploymentRead(gqlClient),
|
|
2648
2254
|
create: customdeploymentCreate(gqlClient),
|
|
2649
2255
|
update: customdeploymentUpdate(gqlClient),
|
|
2650
|
-
restart: customDeploymentRestart(gqlClient)
|
|
2651
|
-
pause: customDeploymentPause(gqlClient),
|
|
2652
|
-
resume: customDeploymentResume(gqlClient)
|
|
2256
|
+
restart: customDeploymentRestart(gqlClient)
|
|
2653
2257
|
},
|
|
2654
2258
|
foundry: { env: getEnv(gqlClient) },
|
|
2655
2259
|
applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
|