@settlemint/sdk-js 2.4.0-pr3b4bbbfe → 2.4.0-pr3f71e882
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 +405 -9
- package/dist/settlemint.cjs.map +1 -1
- package/dist/settlemint.d.cts +18 -0
- package/dist/settlemint.d.ts +18 -0
- package/dist/settlemint.js +405 -9
- package/dist/settlemint.js.map +1 -1
- package/package.json +2 -2
package/dist/settlemint.js
CHANGED
|
@@ -574,6 +574,26 @@ 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
|
+
/**
|
|
577
597
|
* Creates a function to list blockchain networks for a given application.
|
|
578
598
|
*
|
|
579
599
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -642,6 +662,28 @@ const blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueNa
|
|
|
642
662
|
const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
643
663
|
return blockchainNetwork;
|
|
644
664
|
};
|
|
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
|
+
};
|
|
645
687
|
|
|
646
688
|
//#endregion
|
|
647
689
|
//#region src/graphql/blockchain-node.ts
|
|
@@ -794,6 +836,26 @@ const restartBlockchainNode = graphql(`
|
|
|
794
836
|
}
|
|
795
837
|
`, [BlockchainNodeFragment]);
|
|
796
838
|
/**
|
|
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
|
+
/**
|
|
797
859
|
* Creates a function to list blockchain nodes for an application.
|
|
798
860
|
*
|
|
799
861
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -849,6 +911,28 @@ const blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) =>
|
|
|
849
911
|
const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
850
912
|
return blockchainNode;
|
|
851
913
|
};
|
|
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
|
+
};
|
|
852
936
|
|
|
853
937
|
//#endregion
|
|
854
938
|
//#region src/graphql/custom-deployment.ts
|
|
@@ -953,6 +1037,26 @@ const restartCustomDeployment = graphql(`
|
|
|
953
1037
|
}
|
|
954
1038
|
`, [CustomDeploymentFragment]);
|
|
955
1039
|
/**
|
|
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
|
+
/**
|
|
956
1060
|
* Creates a function to list custom deployments for an application.
|
|
957
1061
|
*
|
|
958
1062
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1023,6 +1127,28 @@ const customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName
|
|
|
1023
1127
|
const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
1024
1128
|
return customDeployment;
|
|
1025
1129
|
};
|
|
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
|
+
};
|
|
1026
1152
|
|
|
1027
1153
|
//#endregion
|
|
1028
1154
|
//#region src/graphql/foundry.ts
|
|
@@ -1131,6 +1257,26 @@ const restartLoadBalancer = graphql(`
|
|
|
1131
1257
|
}
|
|
1132
1258
|
`, [LoadBalancerFragment]);
|
|
1133
1259
|
/**
|
|
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
|
+
/**
|
|
1134
1280
|
* Creates a function to fetch a specific load balancer.
|
|
1135
1281
|
*
|
|
1136
1282
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1191,6 +1337,28 @@ const loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
|
1191
1337
|
const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
1192
1338
|
return loadBalancer;
|
|
1193
1339
|
};
|
|
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
|
+
};
|
|
1194
1362
|
|
|
1195
1363
|
//#endregion
|
|
1196
1364
|
//#region src/graphql/insights.ts
|
|
@@ -1283,6 +1451,26 @@ const restartInsights = graphql(`
|
|
|
1283
1451
|
}
|
|
1284
1452
|
`, [InsightsFragment]);
|
|
1285
1453
|
/**
|
|
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
|
+
/**
|
|
1286
1474
|
* Creates a function to list insights for an application.
|
|
1287
1475
|
*
|
|
1288
1476
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1343,6 +1531,28 @@ const insightsRestart = (gqlClient) => async (insightsUniqueName) => {
|
|
|
1343
1531
|
const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
|
|
1344
1532
|
return insights;
|
|
1345
1533
|
};
|
|
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
|
+
};
|
|
1346
1556
|
|
|
1347
1557
|
//#endregion
|
|
1348
1558
|
//#region src/graphql/integration-tool.ts
|
|
@@ -1431,6 +1641,26 @@ const restartIntegrationTool = graphql(`
|
|
|
1431
1641
|
}
|
|
1432
1642
|
`, [IntegrationFragment]);
|
|
1433
1643
|
/**
|
|
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
|
+
/**
|
|
1434
1664
|
* Creates a function to list integration tools for an application.
|
|
1435
1665
|
*
|
|
1436
1666
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1485,6 +1715,28 @@ const integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
|
|
|
1485
1715
|
const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
|
|
1486
1716
|
return integration;
|
|
1487
1717
|
};
|
|
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
|
+
};
|
|
1488
1740
|
|
|
1489
1741
|
//#endregion
|
|
1490
1742
|
//#region src/graphql/storage.ts
|
|
@@ -1573,6 +1825,26 @@ const restartStorage = graphql(`
|
|
|
1573
1825
|
}
|
|
1574
1826
|
`, [StorageFragment]);
|
|
1575
1827
|
/**
|
|
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
|
+
/**
|
|
1576
1848
|
* Creates a function to list storages for an application.
|
|
1577
1849
|
*
|
|
1578
1850
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1627,6 +1899,28 @@ const storageRestart = (gqlClient) => async (storageUniqueName) => {
|
|
|
1627
1899
|
const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
|
|
1628
1900
|
return storage;
|
|
1629
1901
|
};
|
|
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
|
+
};
|
|
1630
1924
|
|
|
1631
1925
|
//#endregion
|
|
1632
1926
|
//#region src/graphql/middleware.ts
|
|
@@ -1749,6 +2043,26 @@ const restartMiddleware = graphql(`
|
|
|
1749
2043
|
}
|
|
1750
2044
|
`, [MiddlewareFragment]);
|
|
1751
2045
|
/**
|
|
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
|
+
/**
|
|
1752
2066
|
* Creates a function to list middlewares for an application.
|
|
1753
2067
|
*
|
|
1754
2068
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -1827,6 +2141,28 @@ const middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
|
|
|
1827
2141
|
const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
|
|
1828
2142
|
return middleware;
|
|
1829
2143
|
};
|
|
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
|
+
};
|
|
1830
2166
|
|
|
1831
2167
|
//#endregion
|
|
1832
2168
|
//#region src/graphql/platform.ts
|
|
@@ -1991,6 +2327,26 @@ const restartPrivateKey = graphql(`
|
|
|
1991
2327
|
}
|
|
1992
2328
|
`, [PrivateKeyFragment]);
|
|
1993
2329
|
/**
|
|
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
|
+
/**
|
|
1994
2350
|
* Creates a function to list private keys for an application.
|
|
1995
2351
|
*
|
|
1996
2352
|
* @param gqlClient - The GraphQL client instance
|
|
@@ -2056,6 +2412,28 @@ const privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
|
|
|
2056
2412
|
const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
|
|
2057
2413
|
return privateKey;
|
|
2058
2414
|
};
|
|
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
|
+
};
|
|
2059
2437
|
|
|
2060
2438
|
//#endregion
|
|
2061
2439
|
//#region src/helpers/client-options.schema.ts
|
|
@@ -2180,57 +2558,75 @@ function createSettleMintClient(options) {
|
|
|
2180
2558
|
read: blockchainNetworkRead(gqlClient),
|
|
2181
2559
|
create: blockchainNetworkCreate(gqlClient),
|
|
2182
2560
|
delete: blockchainNetworkDelete(gqlClient),
|
|
2183
|
-
restart: blockchainNetworkRestart(gqlClient)
|
|
2561
|
+
restart: blockchainNetworkRestart(gqlClient),
|
|
2562
|
+
pause: blockchainNetworkPause(gqlClient),
|
|
2563
|
+
resume: blockchainNetworkResume(gqlClient)
|
|
2184
2564
|
},
|
|
2185
2565
|
blockchainNode: {
|
|
2186
2566
|
list: blockchainNodeList(gqlClient),
|
|
2187
2567
|
read: blockchainNodeRead(gqlClient),
|
|
2188
2568
|
create: blockchainNodeCreate(gqlClient),
|
|
2189
|
-
restart: blockchainNodeRestart(gqlClient)
|
|
2569
|
+
restart: blockchainNodeRestart(gqlClient),
|
|
2570
|
+
pause: blockchainNodePause(gqlClient),
|
|
2571
|
+
resume: blockchainNodeResume(gqlClient)
|
|
2190
2572
|
},
|
|
2191
2573
|
loadBalancer: {
|
|
2192
2574
|
list: loadBalancerList(gqlClient),
|
|
2193
2575
|
read: loadBalancerRead(gqlClient),
|
|
2194
2576
|
create: loadBalancerCreate(gqlClient),
|
|
2195
|
-
restart: loadBalancerRestart(gqlClient)
|
|
2577
|
+
restart: loadBalancerRestart(gqlClient),
|
|
2578
|
+
pause: loadBalancerPause(gqlClient),
|
|
2579
|
+
resume: loadBalancerResume(gqlClient)
|
|
2196
2580
|
},
|
|
2197
2581
|
middleware: {
|
|
2198
2582
|
list: middlewareList(gqlClient),
|
|
2199
2583
|
read: middlewareRead(gqlClient),
|
|
2200
2584
|
graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
|
|
2201
2585
|
create: middlewareCreate(gqlClient),
|
|
2202
|
-
restart: middlewareRestart(gqlClient)
|
|
2586
|
+
restart: middlewareRestart(gqlClient),
|
|
2587
|
+
pause: middlewarePause(gqlClient),
|
|
2588
|
+
resume: middlewareResume(gqlClient)
|
|
2203
2589
|
},
|
|
2204
2590
|
integrationTool: {
|
|
2205
2591
|
list: integrationToolList(gqlClient),
|
|
2206
2592
|
read: integrationToolRead(gqlClient),
|
|
2207
2593
|
create: integrationToolCreate(gqlClient),
|
|
2208
|
-
restart: integrationToolRestart(gqlClient)
|
|
2594
|
+
restart: integrationToolRestart(gqlClient),
|
|
2595
|
+
pause: integrationToolPause(gqlClient),
|
|
2596
|
+
resume: integrationToolResume(gqlClient)
|
|
2209
2597
|
},
|
|
2210
2598
|
storage: {
|
|
2211
2599
|
list: storageList(gqlClient),
|
|
2212
2600
|
read: storageRead(gqlClient),
|
|
2213
2601
|
create: storageCreate(gqlClient),
|
|
2214
|
-
restart: storageRestart(gqlClient)
|
|
2602
|
+
restart: storageRestart(gqlClient),
|
|
2603
|
+
pause: storagePause(gqlClient),
|
|
2604
|
+
resume: storageResume(gqlClient)
|
|
2215
2605
|
},
|
|
2216
2606
|
privateKey: {
|
|
2217
2607
|
list: privateKeyList(gqlClient),
|
|
2218
2608
|
read: privatekeyRead(gqlClient),
|
|
2219
2609
|
create: privateKeyCreate(gqlClient),
|
|
2220
|
-
restart: privateKeyRestart(gqlClient)
|
|
2610
|
+
restart: privateKeyRestart(gqlClient),
|
|
2611
|
+
pause: privateKeyPause(gqlClient),
|
|
2612
|
+
resume: privateKeyResume(gqlClient)
|
|
2221
2613
|
},
|
|
2222
2614
|
insights: {
|
|
2223
2615
|
list: insightsList(gqlClient),
|
|
2224
2616
|
read: insightsRead(gqlClient),
|
|
2225
2617
|
create: insightsCreate(gqlClient),
|
|
2226
|
-
restart: insightsRestart(gqlClient)
|
|
2618
|
+
restart: insightsRestart(gqlClient),
|
|
2619
|
+
pause: insightsPause(gqlClient),
|
|
2620
|
+
resume: insightsResume(gqlClient)
|
|
2227
2621
|
},
|
|
2228
2622
|
customDeployment: {
|
|
2229
2623
|
list: customdeploymentList(gqlClient),
|
|
2230
2624
|
read: customdeploymentRead(gqlClient),
|
|
2231
2625
|
create: customdeploymentCreate(gqlClient),
|
|
2232
2626
|
update: customdeploymentUpdate(gqlClient),
|
|
2233
|
-
restart: customDeploymentRestart(gqlClient)
|
|
2627
|
+
restart: customDeploymentRestart(gqlClient),
|
|
2628
|
+
pause: customDeploymentPause(gqlClient),
|
|
2629
|
+
resume: customDeploymentResume(gqlClient)
|
|
2234
2630
|
},
|
|
2235
2631
|
foundry: { env: getEnv(gqlClient) },
|
|
2236
2632
|
applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
|