@stack-spot/portal-network 0.223.0 → 0.224.0

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.
@@ -14,6 +14,7 @@ import {
14
14
  cancelSecretDelete,
15
15
  create,
16
16
  create1,
17
+ create2,
17
18
  createAccountRole, createExtension, createExtensionLink,
18
19
  createExtensionVersion, createFidoMagicLink, createGroupMapping,
19
20
  createPartner,
@@ -51,11 +52,13 @@ import {
51
52
  getAccounts,
52
53
  getAccountSso,
53
54
  getActiveExtensionVersion,
55
+ getAll,
54
56
  getAllAccountSso,
55
57
  getAllGroupMapping,
56
58
  getAllMemberFidoCredentials,
57
59
  getAllServiceCredentialRateLimit,
58
60
  getById,
61
+ getById2,
59
62
  getEnabledFeatureFlagsForAccount,
60
63
  getExtensionVersion,
61
64
  getExternalLinksByType,
@@ -67,6 +70,7 @@ import {
67
70
  getGroupResources1,
68
71
  getGroups,
69
72
  getGroups1,
73
+ getGroups2,
70
74
  getMemberById,
71
75
  getMemberGroups,
72
76
  getMemberGroups1,
@@ -74,13 +78,15 @@ import {
74
78
  getMembers,
75
79
  getMembers1,
76
80
  getPartnerAccount, getPartnersSharingAllowed,
81
+ getPermissions,
77
82
  getPersonalAccountDetails,
78
83
  getPersonalAccountExpirationData,
79
84
  getPersonalClientCredentials,
80
85
  getResources,
81
86
  getResources2,
82
87
  getResourcesAndActionsWithStatus,
83
- getResourceTypes1,
88
+ getResourceTypes,
89
+ getResourceTypes2,
84
90
  getRoleGroups,
85
91
  getRoleGroups1,
86
92
  getRoleMembers,
@@ -109,10 +115,14 @@ import {
109
115
  listScmCredentials2, partialUpdateSso, personalAccessTokenAuthorization,
110
116
  personalContact,
111
117
  reactivateTrialAccount,
118
+ removeGroup,
119
+ removePermissions,
112
120
  removeRoleFromMember,
113
121
  removeTrialAccount,
122
+ replacePermissions,
114
123
  resetOtp,
115
124
  resetPassword,
125
+ revoke,
116
126
  revokeServiceCredential,
117
127
  revokeServiceCredential1,
118
128
  rotateServiceCredentialSecret,
@@ -167,7 +177,7 @@ class AccountClient extends ReactQueryNetworkClient {
167
177
  /**
168
178
  * Creates a Feature Flag
169
179
  */
170
- createFeatureFlag = this.mutation(create)
180
+ createFeatureFlag = this.mutation(create1)
171
181
  /**
172
182
  * Lists all Feature Flags in an Account
173
183
  */
@@ -401,7 +411,7 @@ class AccountClient extends ReactQueryNetworkClient {
401
411
  /**
402
412
  * Gets all resource types (paginated)
403
413
  */
404
- allResourceTypes = this.infiniteQuery(getResourceTypes1)
414
+ allResourceTypes = this.infiniteQuery(getResourceTypes2)
405
415
  /**
406
416
  * Sends an email for downloading the CLI
407
417
  */
@@ -643,11 +653,11 @@ class AccountClient extends ReactQueryNetworkClient {
643
653
  /**
644
654
  * Get all account groups with pagination
645
655
  */
646
- allGroupsWithPagination = this.query(getGroups1)
656
+ allGroupsWithPagination = this.query(getGroups2)
647
657
  /**
648
658
  * Get groups with infinite query
649
659
  */
650
- groups = this.infiniteQuery(getGroups1, { accumulator: 'items' })
660
+ groups = this.infiniteQuery(getGroups2, { accumulator: 'items' })
651
661
  /**
652
662
  * Get all members by group with pagination
653
663
  */
@@ -895,7 +905,7 @@ class AccountClient extends ReactQueryNetworkClient {
895
905
  /**
896
906
  * Create an enterprise account
897
907
  */
898
- createEnterpriseAccount = this.mutation(create1)
908
+ createEnterpriseAccount = this.mutation(create2)
899
909
  /**
900
910
  * Lists enterprise accounts
901
911
  */
@@ -932,6 +942,47 @@ class AccountClient extends ReactQueryNetworkClient {
932
942
  * Reactive trial account
933
943
  */
934
944
  reactivateTrialAccount = this.mutation(reactivateTrialAccount)
945
+
946
+ /**
947
+ * Get all service credentials paginated
948
+ */
949
+ gerServicesCredentials = this.infiniteQuery(getAll, { accumulator: 'items' })
950
+ /**
951
+ * Get Service Credential V3
952
+ */
953
+ getServiceCredential = this.query(getById2)
954
+ /**
955
+ * Get Resources Types with actions
956
+ */
957
+ resourcesTypesWithActions = this.infiniteQuery(getResourceTypes, { accumulator: 'items' })
958
+ /**
959
+ * Get Permissions from Service Credential
960
+ */
961
+ getPermissionsServiceCredential = this.query(getPermissions)
962
+ /**
963
+ * Get Groups from Service Credential
964
+ */
965
+ getGroupsServiceCredential = this.query(getGroups1)
966
+ /**
967
+ * Create Service Credential with Permissions
968
+ */
969
+ createServiceCredentialWithResources = this.mutation(create)
970
+ /**
971
+ * Add Permissions to Service Credential
972
+ */
973
+ updatePermissionsToServiceCredential = this.mutation(replacePermissions)
974
+ /**
975
+ * Remove permission from Service Credential
976
+ */
977
+ removePermissionFromServiceCredential = this.mutation(removePermissions)
978
+ /**
979
+ * Remove group from Service Credential
980
+ */
981
+ removeGroupFromServiceCredential = this.mutation(removeGroup)
982
+ /**
983
+ * Revoke Service Credential V3
984
+ */
985
+ revokeServiceCredentialV3 = this.mutation(revoke)
935
986
  }
936
987
 
937
988
  export const accountClient = new AccountClient()