@settlemint/sdk-js 2.4.0-pr4e302faf → 2.4.0-pr4e4fa21a
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 +82 -100
- package/dist/settlemint.d.ts +56 -74
- package/dist/settlemint.js +9 -405
- package/dist/settlemint.js.map +1 -1
- package/package.json +2 -2
package/dist/settlemint.js
CHANGED
|
@@ -574,26 +574,6 @@ const restartBlockchainNetwork = graphql(`
|
|
|
574
574
|
}
|
|
575
575
|
`, [BlockchainNetworkFragment]);
|
|
576
576
|
/**
|
|
577
|
-
* Mutation to pause a blockchain network.
|
|
578
|
-
*/
|
|
579
|
-
const pauseBlockchainNetwork = graphql(`
|
|
580
|
-
mutation PauseBlockchainNetwork($uniqueName: String!) {
|
|
581
|
-
pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
|
|
582
|
-
...BlockchainNetwork
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
`, [BlockchainNetworkFragment]);
|
|
586
|
-
/**
|
|
587
|
-
* Mutation to resume a blockchain network.
|
|
588
|
-
*/
|
|
589
|
-
const resumeBlockchainNetwork = graphql(`
|
|
590
|
-
mutation ResumeBlockchainNetwork($uniqueName: String!) {
|
|
591
|
-
resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
|
|
592
|
-
...BlockchainNetwork
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
`, [BlockchainNetworkFragment]);
|
|
596
|
-
/**
|
|
597
577
|
* Creates a function to list blockchain networks for a given application.
|
|
598
578
|
*
|
|
599
579
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -662,28 +642,6 @@ const blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueNa
|
|
|
662
642
|
const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
663
643
|
return blockchainNetwork;
|
|
664
644
|
};
|
|
665
|
-
/**
|
|
666
|
-
* Creates a function to pause a blockchain network.
|
|
667
|
-
*
|
|
668
|
-
* @param gqlClient - The GraphQL client instance
|
|
669
|
-
* @returns Function that pauses a network by unique name
|
|
670
|
-
* @throws If the network cannot be found or the pause fails
|
|
671
|
-
*/
|
|
672
|
-
const blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
|
|
673
|
-
const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
674
|
-
return blockchainNetwork;
|
|
675
|
-
};
|
|
676
|
-
/**
|
|
677
|
-
* Creates a function to resume a blockchain network.
|
|
678
|
-
*
|
|
679
|
-
* @param gqlClient - The GraphQL client instance
|
|
680
|
-
* @returns Function that resumes a network by unique name
|
|
681
|
-
* @throws If the network cannot be found or the resume fails
|
|
682
|
-
*/
|
|
683
|
-
const blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
|
|
684
|
-
const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
685
|
-
return blockchainNetwork;
|
|
686
|
-
};
|
|
687
645
|
|
|
688
646
|
//#endregion
|
|
689
647
|
//#region src/graphql/blockchain-node.ts
|
|
@@ -836,26 +794,6 @@ const restartBlockchainNode = graphql(`
|
|
|
836
794
|
}
|
|
837
795
|
`, [BlockchainNodeFragment]);
|
|
838
796
|
/**
|
|
839
|
-
* Mutation to pause a blockchain node.
|
|
840
|
-
*/
|
|
841
|
-
const pauseBlockchainNode = graphql(`
|
|
842
|
-
mutation PauseBlockchainNode($uniqueName: String!) {
|
|
843
|
-
pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
|
|
844
|
-
...BlockchainNode
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
`, [BlockchainNodeFragment]);
|
|
848
|
-
/**
|
|
849
|
-
* Mutation to resume a blockchain node.
|
|
850
|
-
*/
|
|
851
|
-
const resumeBlockchainNode = graphql(`
|
|
852
|
-
mutation ResumeBlockchainNode($uniqueName: String!) {
|
|
853
|
-
resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
|
|
854
|
-
...BlockchainNode
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
`, [BlockchainNodeFragment]);
|
|
858
|
-
/**
|
|
859
797
|
* Creates a function to list blockchain nodes for an application.
|
|
860
798
|
*
|
|
861
799
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -911,28 +849,6 @@ const blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) =>
|
|
|
911
849
|
const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
912
850
|
return blockchainNode;
|
|
913
851
|
};
|
|
914
|
-
/**
|
|
915
|
-
* Creates a function to pause a blockchain node.
|
|
916
|
-
*
|
|
917
|
-
* @param gqlClient - The GraphQL client instance
|
|
918
|
-
* @returns Function that pauses a blockchain node by unique name
|
|
919
|
-
* @throws If the blockchain node cannot be found or the pause fails
|
|
920
|
-
*/
|
|
921
|
-
const blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
|
|
922
|
-
const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
923
|
-
return blockchainNode;
|
|
924
|
-
};
|
|
925
|
-
/**
|
|
926
|
-
* Creates a function to resume a blockchain node.
|
|
927
|
-
*
|
|
928
|
-
* @param gqlClient - The GraphQL client instance
|
|
929
|
-
* @returns Function that resumes a blockchain node by unique name
|
|
930
|
-
* @throws If the blockchain node cannot be found or the resume fails
|
|
931
|
-
*/
|
|
932
|
-
const blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
|
|
933
|
-
const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
934
|
-
return blockchainNode;
|
|
935
|
-
};
|
|
936
852
|
|
|
937
853
|
//#endregion
|
|
938
854
|
//#region src/graphql/custom-deployment.ts
|
|
@@ -1037,26 +953,6 @@ const restartCustomDeployment = graphql(`
|
|
|
1037
953
|
}
|
|
1038
954
|
`, [CustomDeploymentFragment]);
|
|
1039
955
|
/**
|
|
1040
|
-
* Mutation to pause a custom deployment.
|
|
1041
|
-
*/
|
|
1042
|
-
const pauseCustomDeployment = graphql(`
|
|
1043
|
-
mutation PauseCustomDeployment($uniqueName: String!) {
|
|
1044
|
-
pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
|
|
1045
|
-
...CustomDeployment
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
`, [CustomDeploymentFragment]);
|
|
1049
|
-
/**
|
|
1050
|
-
* Mutation to resume a custom deployment.
|
|
1051
|
-
*/
|
|
1052
|
-
const resumeCustomDeployment = graphql(`
|
|
1053
|
-
mutation ResumeCustomDeployment($uniqueName: String!) {
|
|
1054
|
-
resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
|
|
1055
|
-
...CustomDeployment
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
`, [CustomDeploymentFragment]);
|
|
1059
|
-
/**
|
|
1060
956
|
* Creates a function to list custom deployments for an application.
|
|
1061
957
|
*
|
|
1062
958
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1127,28 +1023,6 @@ const customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName
|
|
|
1127
1023
|
const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
1128
1024
|
return customDeployment;
|
|
1129
1025
|
};
|
|
1130
|
-
/**
|
|
1131
|
-
* Creates a function to pause a custom deployment.
|
|
1132
|
-
*
|
|
1133
|
-
* @param gqlClient - The GraphQL client instance
|
|
1134
|
-
* @returns Function that pauses a custom deployment by unique name
|
|
1135
|
-
* @throws If the custom deployment cannot be found or the pause fails
|
|
1136
|
-
*/
|
|
1137
|
-
const customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
|
|
1138
|
-
const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
1139
|
-
return customDeployment;
|
|
1140
|
-
};
|
|
1141
|
-
/**
|
|
1142
|
-
* Creates a function to resume a custom deployment.
|
|
1143
|
-
*
|
|
1144
|
-
* @param gqlClient - The GraphQL client instance
|
|
1145
|
-
* @returns Function that resumes a custom deployment by unique name
|
|
1146
|
-
* @throws If the custom deployment cannot be found or the resume fails
|
|
1147
|
-
*/
|
|
1148
|
-
const customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
|
|
1149
|
-
const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
1150
|
-
return customDeployment;
|
|
1151
|
-
};
|
|
1152
1026
|
|
|
1153
1027
|
//#endregion
|
|
1154
1028
|
//#region src/graphql/foundry.ts
|
|
@@ -1257,26 +1131,6 @@ const restartLoadBalancer = graphql(`
|
|
|
1257
1131
|
}
|
|
1258
1132
|
`, [LoadBalancerFragment]);
|
|
1259
1133
|
/**
|
|
1260
|
-
* Mutation to pause a load balancer.
|
|
1261
|
-
*/
|
|
1262
|
-
const pauseLoadBalancer = graphql(`
|
|
1263
|
-
mutation PauseLoadBalancer($uniqueName: String!) {
|
|
1264
|
-
pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
|
|
1265
|
-
...LoadBalancer
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
`, [LoadBalancerFragment]);
|
|
1269
|
-
/**
|
|
1270
|
-
* Mutation to resume a load balancer.
|
|
1271
|
-
*/
|
|
1272
|
-
const resumeLoadBalancer = graphql(`
|
|
1273
|
-
mutation ResumeLoadBalancer($uniqueName: String!) {
|
|
1274
|
-
resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
|
|
1275
|
-
...LoadBalancer
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
`, [LoadBalancerFragment]);
|
|
1279
|
-
/**
|
|
1280
1134
|
* Creates a function to fetch a specific load balancer.
|
|
1281
1135
|
*
|
|
1282
1136
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1337,28 +1191,6 @@ const loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
|
1337
1191
|
const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
1338
1192
|
return loadBalancer;
|
|
1339
1193
|
};
|
|
1340
|
-
/**
|
|
1341
|
-
* Creates a function to pause a load balancer.
|
|
1342
|
-
*
|
|
1343
|
-
* @param gqlClient - The GraphQL client instance
|
|
1344
|
-
* @returns Function that pauses a load balancer
|
|
1345
|
-
* @throws If the load balancer cannot be paused or the request fails
|
|
1346
|
-
*/
|
|
1347
|
-
const loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
1348
|
-
const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
1349
|
-
return loadBalancer;
|
|
1350
|
-
};
|
|
1351
|
-
/**
|
|
1352
|
-
* Creates a function to resume a load balancer.
|
|
1353
|
-
*
|
|
1354
|
-
* @param gqlClient - The GraphQL client instance
|
|
1355
|
-
* @returns Function that resumes a load balancer
|
|
1356
|
-
* @throws If the load balancer cannot be resumed or the request fails
|
|
1357
|
-
*/
|
|
1358
|
-
const loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
1359
|
-
const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
1360
|
-
return loadBalancer;
|
|
1361
|
-
};
|
|
1362
1194
|
|
|
1363
1195
|
//#endregion
|
|
1364
1196
|
//#region src/graphql/insights.ts
|
|
@@ -1451,26 +1283,6 @@ const restartInsights = graphql(`
|
|
|
1451
1283
|
}
|
|
1452
1284
|
`, [InsightsFragment]);
|
|
1453
1285
|
/**
|
|
1454
|
-
* Mutation to pause insights.
|
|
1455
|
-
*/
|
|
1456
|
-
const pauseInsights = graphql(`
|
|
1457
|
-
mutation PauseInsights($uniqueName: String!) {
|
|
1458
|
-
pauseInsightsByUniqueName(uniqueName: $uniqueName) {
|
|
1459
|
-
...Insights
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
`, [InsightsFragment]);
|
|
1463
|
-
/**
|
|
1464
|
-
* Mutation to resume insights.
|
|
1465
|
-
*/
|
|
1466
|
-
const resumeInsights = graphql(`
|
|
1467
|
-
mutation ResumeInsights($uniqueName: String!) {
|
|
1468
|
-
resumeInsightsByUniqueName(uniqueName: $uniqueName) {
|
|
1469
|
-
...Insights
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
`, [InsightsFragment]);
|
|
1473
|
-
/**
|
|
1474
1286
|
* Creates a function to list insights for an application.
|
|
1475
1287
|
*
|
|
1476
1288
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1531,28 +1343,6 @@ const insightsRestart = (gqlClient) => async (insightsUniqueName) => {
|
|
|
1531
1343
|
const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
|
|
1532
1344
|
return insights;
|
|
1533
1345
|
};
|
|
1534
|
-
/**
|
|
1535
|
-
* Creates a function to pause insights.
|
|
1536
|
-
*
|
|
1537
|
-
* @param gqlClient - The GraphQL client instance
|
|
1538
|
-
* @returns Function that pauses insights by unique name
|
|
1539
|
-
* @throws If the insights cannot be found or the pause fails
|
|
1540
|
-
*/
|
|
1541
|
-
const insightsPause = (gqlClient) => async (insightsUniqueName) => {
|
|
1542
|
-
const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
|
|
1543
|
-
return insights;
|
|
1544
|
-
};
|
|
1545
|
-
/**
|
|
1546
|
-
* Creates a function to resume insights.
|
|
1547
|
-
*
|
|
1548
|
-
* @param gqlClient - The GraphQL client instance
|
|
1549
|
-
* @returns Function that resumes insights by unique name
|
|
1550
|
-
* @throws If the insights cannot be found or the resume fails
|
|
1551
|
-
*/
|
|
1552
|
-
const insightsResume = (gqlClient) => async (insightsUniqueName) => {
|
|
1553
|
-
const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
|
|
1554
|
-
return insights;
|
|
1555
|
-
};
|
|
1556
1346
|
|
|
1557
1347
|
//#endregion
|
|
1558
1348
|
//#region src/graphql/integration-tool.ts
|
|
@@ -1641,26 +1431,6 @@ const restartIntegrationTool = graphql(`
|
|
|
1641
1431
|
}
|
|
1642
1432
|
`, [IntegrationFragment]);
|
|
1643
1433
|
/**
|
|
1644
|
-
* Mutation to pause an integration.
|
|
1645
|
-
*/
|
|
1646
|
-
const pauseIntegrationTool = graphql(`
|
|
1647
|
-
mutation PauseIntegrationTool($uniqueName: String!) {
|
|
1648
|
-
pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
|
|
1649
|
-
...Integration
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
`, [IntegrationFragment]);
|
|
1653
|
-
/**
|
|
1654
|
-
* Mutation to resume an integration.
|
|
1655
|
-
*/
|
|
1656
|
-
const resumeIntegrationTool = graphql(`
|
|
1657
|
-
mutation ResumeIntegrationTool($uniqueName: String!) {
|
|
1658
|
-
resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
|
|
1659
|
-
...Integration
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
`, [IntegrationFragment]);
|
|
1663
|
-
/**
|
|
1664
1434
|
* Creates a function to list integration tools for an application.
|
|
1665
1435
|
*
|
|
1666
1436
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1715,28 +1485,6 @@ const integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
|
|
|
1715
1485
|
const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
|
|
1716
1486
|
return integration;
|
|
1717
1487
|
};
|
|
1718
|
-
/**
|
|
1719
|
-
* Creates a function to pause an integration tool.
|
|
1720
|
-
*
|
|
1721
|
-
* @param gqlClient - The GraphQL client instance
|
|
1722
|
-
* @returns Function that pauses integration tool by unique name
|
|
1723
|
-
* @throws If the integration tool cannot be found or the pause fails
|
|
1724
|
-
*/
|
|
1725
|
-
const integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
|
|
1726
|
-
const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
|
|
1727
|
-
return integration;
|
|
1728
|
-
};
|
|
1729
|
-
/**
|
|
1730
|
-
* Creates a function to resume an integration tool.
|
|
1731
|
-
*
|
|
1732
|
-
* @param gqlClient - The GraphQL client instance
|
|
1733
|
-
* @returns Function that resumes integration tool by unique name
|
|
1734
|
-
* @throws If the integration tool cannot be found or the resume fails
|
|
1735
|
-
*/
|
|
1736
|
-
const integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
|
|
1737
|
-
const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
|
|
1738
|
-
return integration;
|
|
1739
|
-
};
|
|
1740
1488
|
|
|
1741
1489
|
//#endregion
|
|
1742
1490
|
//#region src/graphql/storage.ts
|
|
@@ -1825,26 +1573,6 @@ const restartStorage = graphql(`
|
|
|
1825
1573
|
}
|
|
1826
1574
|
`, [StorageFragment]);
|
|
1827
1575
|
/**
|
|
1828
|
-
* Mutation to pause a storage.
|
|
1829
|
-
*/
|
|
1830
|
-
const pauseStorage = graphql(`
|
|
1831
|
-
mutation PauseStorage($uniqueName: String!) {
|
|
1832
|
-
pauseStorageByUniqueName(uniqueName: $uniqueName) {
|
|
1833
|
-
...Storage
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
`, [StorageFragment]);
|
|
1837
|
-
/**
|
|
1838
|
-
* Mutation to resume a storage.
|
|
1839
|
-
*/
|
|
1840
|
-
const resumeStorage = graphql(`
|
|
1841
|
-
mutation ResumeStorage($uniqueName: String!) {
|
|
1842
|
-
resumeStorageByUniqueName(uniqueName: $uniqueName) {
|
|
1843
|
-
...Storage
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
`, [StorageFragment]);
|
|
1847
|
-
/**
|
|
1848
1576
|
* Creates a function to list storages for an application.
|
|
1849
1577
|
*
|
|
1850
1578
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1899,28 +1627,6 @@ const storageRestart = (gqlClient) => async (storageUniqueName) => {
|
|
|
1899
1627
|
const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
|
|
1900
1628
|
return storage;
|
|
1901
1629
|
};
|
|
1902
|
-
/**
|
|
1903
|
-
* Creates a function to pause a storage.
|
|
1904
|
-
*
|
|
1905
|
-
* @param gqlClient - The GraphQL client instance
|
|
1906
|
-
* @returns Function that pauses storage by unique name
|
|
1907
|
-
* @throws If the storage cannot be found or the pause fails
|
|
1908
|
-
*/
|
|
1909
|
-
const storagePause = (gqlClient) => async (storageUniqueName) => {
|
|
1910
|
-
const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
|
|
1911
|
-
return storage;
|
|
1912
|
-
};
|
|
1913
|
-
/**
|
|
1914
|
-
* Creates a function to resume a storage.
|
|
1915
|
-
*
|
|
1916
|
-
* @param gqlClient - The GraphQL client instance
|
|
1917
|
-
* @returns Function that resumes storage by unique name
|
|
1918
|
-
* @throws If the storage cannot be found or the resume fails
|
|
1919
|
-
*/
|
|
1920
|
-
const storageResume = (gqlClient) => async (storageUniqueName) => {
|
|
1921
|
-
const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
|
|
1922
|
-
return storage;
|
|
1923
|
-
};
|
|
1924
1630
|
|
|
1925
1631
|
//#endregion
|
|
1926
1632
|
//#region src/graphql/middleware.ts
|
|
@@ -2043,26 +1749,6 @@ const restartMiddleware = graphql(`
|
|
|
2043
1749
|
}
|
|
2044
1750
|
`, [MiddlewareFragment]);
|
|
2045
1751
|
/**
|
|
2046
|
-
* Mutation to pause a middleware.
|
|
2047
|
-
*/
|
|
2048
|
-
const pauseMiddleware = graphql(`
|
|
2049
|
-
mutation PauseMiddleware($uniqueName: String!) {
|
|
2050
|
-
pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
|
|
2051
|
-
...Middleware
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
`, [MiddlewareFragment]);
|
|
2055
|
-
/**
|
|
2056
|
-
* Mutation to resume a middleware.
|
|
2057
|
-
*/
|
|
2058
|
-
const resumeMiddleware = graphql(`
|
|
2059
|
-
mutation ResumeMiddleware($uniqueName: String!) {
|
|
2060
|
-
resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
|
|
2061
|
-
...Middleware
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
`, [MiddlewareFragment]);
|
|
2065
|
-
/**
|
|
2066
1752
|
* Creates a function to list middlewares for an application.
|
|
2067
1753
|
*
|
|
2068
1754
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -2141,28 +1827,6 @@ const middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
|
|
|
2141
1827
|
const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
|
|
2142
1828
|
return middleware;
|
|
2143
1829
|
};
|
|
2144
|
-
/**
|
|
2145
|
-
* Creates a function to pause a middleware.
|
|
2146
|
-
*
|
|
2147
|
-
* @param gqlClient - The GraphQL client instance
|
|
2148
|
-
* @returns Function that pauses middleware by unique name
|
|
2149
|
-
* @throws If the middleware cannot be found or the pause fails
|
|
2150
|
-
*/
|
|
2151
|
-
const middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
|
|
2152
|
-
const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
|
|
2153
|
-
return middleware;
|
|
2154
|
-
};
|
|
2155
|
-
/**
|
|
2156
|
-
* Creates a function to resume a middleware.
|
|
2157
|
-
*
|
|
2158
|
-
* @param gqlClient - The GraphQL client instance
|
|
2159
|
-
* @returns Function that resumes middleware by unique name
|
|
2160
|
-
* @throws If the middleware cannot be found or the resume fails
|
|
2161
|
-
*/
|
|
2162
|
-
const middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
|
|
2163
|
-
const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
|
|
2164
|
-
return middleware;
|
|
2165
|
-
};
|
|
2166
1830
|
|
|
2167
1831
|
//#endregion
|
|
2168
1832
|
//#region src/graphql/platform.ts
|
|
@@ -2327,26 +1991,6 @@ const restartPrivateKey = graphql(`
|
|
|
2327
1991
|
}
|
|
2328
1992
|
`, [PrivateKeyFragment]);
|
|
2329
1993
|
/**
|
|
2330
|
-
* Mutation to pause a private key.
|
|
2331
|
-
*/
|
|
2332
|
-
const pausePrivateKey = graphql(`
|
|
2333
|
-
mutation PausePrivateKey($uniqueName: String!) {
|
|
2334
|
-
pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
|
|
2335
|
-
...PrivateKey
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
`, [PrivateKeyFragment]);
|
|
2339
|
-
/**
|
|
2340
|
-
* Mutation to resume a private key.
|
|
2341
|
-
*/
|
|
2342
|
-
const resumePrivateKey = graphql(`
|
|
2343
|
-
mutation ResumePrivateKey($uniqueName: String!) {
|
|
2344
|
-
resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
|
|
2345
|
-
...PrivateKey
|
|
2346
|
-
}
|
|
2347
|
-
}
|
|
2348
|
-
`, [PrivateKeyFragment]);
|
|
2349
|
-
/**
|
|
2350
1994
|
* Creates a function to list private keys for an application.
|
|
2351
1995
|
*
|
|
2352
1996
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -2412,28 +2056,6 @@ const privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
|
|
|
2412
2056
|
const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
|
|
2413
2057
|
return privateKey;
|
|
2414
2058
|
};
|
|
2415
|
-
/**
|
|
2416
|
-
* Creates a function to pause a private key.
|
|
2417
|
-
*
|
|
2418
|
-
* @param gqlClient - The GraphQL client instance
|
|
2419
|
-
* @returns Function that pauses private key by unique name
|
|
2420
|
-
* @throws If the private key cannot be found or the pause fails
|
|
2421
|
-
*/
|
|
2422
|
-
const privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
|
|
2423
|
-
const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
|
|
2424
|
-
return privateKey;
|
|
2425
|
-
};
|
|
2426
|
-
/**
|
|
2427
|
-
* Creates a function to resume a private key.
|
|
2428
|
-
*
|
|
2429
|
-
* @param gqlClient - The GraphQL client instance
|
|
2430
|
-
* @returns Function that resumes private key by unique name
|
|
2431
|
-
* @throws If the private key cannot be found or the resume fails
|
|
2432
|
-
*/
|
|
2433
|
-
const privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
|
|
2434
|
-
const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
|
|
2435
|
-
return privateKey;
|
|
2436
|
-
};
|
|
2437
2059
|
|
|
2438
2060
|
//#endregion
|
|
2439
2061
|
//#region src/helpers/client-options.schema.ts
|
|
@@ -2558,75 +2180,57 @@ function createSettleMintClient(options) {
|
|
|
2558
2180
|
read: blockchainNetworkRead(gqlClient),
|
|
2559
2181
|
create: blockchainNetworkCreate(gqlClient),
|
|
2560
2182
|
delete: blockchainNetworkDelete(gqlClient),
|
|
2561
|
-
restart: blockchainNetworkRestart(gqlClient)
|
|
2562
|
-
pause: blockchainNetworkPause(gqlClient),
|
|
2563
|
-
resume: blockchainNetworkResume(gqlClient)
|
|
2183
|
+
restart: blockchainNetworkRestart(gqlClient)
|
|
2564
2184
|
},
|
|
2565
2185
|
blockchainNode: {
|
|
2566
2186
|
list: blockchainNodeList(gqlClient),
|
|
2567
2187
|
read: blockchainNodeRead(gqlClient),
|
|
2568
2188
|
create: blockchainNodeCreate(gqlClient),
|
|
2569
|
-
restart: blockchainNodeRestart(gqlClient)
|
|
2570
|
-
pause: blockchainNodePause(gqlClient),
|
|
2571
|
-
resume: blockchainNodeResume(gqlClient)
|
|
2189
|
+
restart: blockchainNodeRestart(gqlClient)
|
|
2572
2190
|
},
|
|
2573
2191
|
loadBalancer: {
|
|
2574
2192
|
list: loadBalancerList(gqlClient),
|
|
2575
2193
|
read: loadBalancerRead(gqlClient),
|
|
2576
2194
|
create: loadBalancerCreate(gqlClient),
|
|
2577
|
-
restart: loadBalancerRestart(gqlClient)
|
|
2578
|
-
pause: loadBalancerPause(gqlClient),
|
|
2579
|
-
resume: loadBalancerResume(gqlClient)
|
|
2195
|
+
restart: loadBalancerRestart(gqlClient)
|
|
2580
2196
|
},
|
|
2581
2197
|
middleware: {
|
|
2582
2198
|
list: middlewareList(gqlClient),
|
|
2583
2199
|
read: middlewareRead(gqlClient),
|
|
2584
2200
|
graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
|
|
2585
2201
|
create: middlewareCreate(gqlClient),
|
|
2586
|
-
restart: middlewareRestart(gqlClient)
|
|
2587
|
-
pause: middlewarePause(gqlClient),
|
|
2588
|
-
resume: middlewareResume(gqlClient)
|
|
2202
|
+
restart: middlewareRestart(gqlClient)
|
|
2589
2203
|
},
|
|
2590
2204
|
integrationTool: {
|
|
2591
2205
|
list: integrationToolList(gqlClient),
|
|
2592
2206
|
read: integrationToolRead(gqlClient),
|
|
2593
2207
|
create: integrationToolCreate(gqlClient),
|
|
2594
|
-
restart: integrationToolRestart(gqlClient)
|
|
2595
|
-
pause: integrationToolPause(gqlClient),
|
|
2596
|
-
resume: integrationToolResume(gqlClient)
|
|
2208
|
+
restart: integrationToolRestart(gqlClient)
|
|
2597
2209
|
},
|
|
2598
2210
|
storage: {
|
|
2599
2211
|
list: storageList(gqlClient),
|
|
2600
2212
|
read: storageRead(gqlClient),
|
|
2601
2213
|
create: storageCreate(gqlClient),
|
|
2602
|
-
restart: storageRestart(gqlClient)
|
|
2603
|
-
pause: storagePause(gqlClient),
|
|
2604
|
-
resume: storageResume(gqlClient)
|
|
2214
|
+
restart: storageRestart(gqlClient)
|
|
2605
2215
|
},
|
|
2606
2216
|
privateKey: {
|
|
2607
2217
|
list: privateKeyList(gqlClient),
|
|
2608
2218
|
read: privatekeyRead(gqlClient),
|
|
2609
2219
|
create: privateKeyCreate(gqlClient),
|
|
2610
|
-
restart: privateKeyRestart(gqlClient)
|
|
2611
|
-
pause: privateKeyPause(gqlClient),
|
|
2612
|
-
resume: privateKeyResume(gqlClient)
|
|
2220
|
+
restart: privateKeyRestart(gqlClient)
|
|
2613
2221
|
},
|
|
2614
2222
|
insights: {
|
|
2615
2223
|
list: insightsList(gqlClient),
|
|
2616
2224
|
read: insightsRead(gqlClient),
|
|
2617
2225
|
create: insightsCreate(gqlClient),
|
|
2618
|
-
restart: insightsRestart(gqlClient)
|
|
2619
|
-
pause: insightsPause(gqlClient),
|
|
2620
|
-
resume: insightsResume(gqlClient)
|
|
2226
|
+
restart: insightsRestart(gqlClient)
|
|
2621
2227
|
},
|
|
2622
2228
|
customDeployment: {
|
|
2623
2229
|
list: customdeploymentList(gqlClient),
|
|
2624
2230
|
read: customdeploymentRead(gqlClient),
|
|
2625
2231
|
create: customdeploymentCreate(gqlClient),
|
|
2626
2232
|
update: customdeploymentUpdate(gqlClient),
|
|
2627
|
-
restart: customDeploymentRestart(gqlClient)
|
|
2628
|
-
pause: customDeploymentPause(gqlClient),
|
|
2629
|
-
resume: customDeploymentResume(gqlClient)
|
|
2233
|
+
restart: customDeploymentRestart(gqlClient)
|
|
2630
2234
|
},
|
|
2631
2235
|
foundry: { env: getEnv(gqlClient) },
|
|
2632
2236
|
applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
|