@stack-spot/portal-network 0.110.0 → 0.111.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.
- package/CHANGELOG.md +12 -0
- package/dist/api/account.d.ts +10 -9
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +3 -3
- package/dist/api/account.js.map +1 -1
- package/dist/api/codeShift.d.ts +17 -0
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/account.d.ts +28 -1
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +29 -2
- package/dist/client/account.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +10 -9
- package/src/api/codeShift.ts +17 -0
- package/src/client/account.ts +16 -1
package/src/api/account.ts
CHANGED
|
@@ -1247,7 +1247,7 @@ export type AccountTrialCreateRequest = {
|
|
|
1247
1247
|
/** The custom position occupied in the company by the trial user */
|
|
1248
1248
|
otherPosition?: string;
|
|
1249
1249
|
/** The channel used for the trial user to reach Stackspot */
|
|
1250
|
-
reachedBy?: "GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER";
|
|
1250
|
+
reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[];
|
|
1251
1251
|
/** The custom channel used for the trial user to reach Stackspot */
|
|
1252
1252
|
customReachedBy?: string;
|
|
1253
1253
|
};
|
|
@@ -1385,9 +1385,10 @@ export type UpdateServiceCredentialScopesRequest = {
|
|
|
1385
1385
|
scopes: string[];
|
|
1386
1386
|
};
|
|
1387
1387
|
export type ServiceCredentialRateLimitResponse = {
|
|
1388
|
-
/** Service
|
|
1389
|
-
serviceCredentialId
|
|
1390
|
-
|
|
1388
|
+
/** Service credential ID */
|
|
1389
|
+
serviceCredentialId: string;
|
|
1390
|
+
/** Service credential name */
|
|
1391
|
+
name: string;
|
|
1391
1392
|
/** When was created */
|
|
1392
1393
|
createdAt?: string;
|
|
1393
1394
|
/** Who created */
|
|
@@ -1553,7 +1554,7 @@ export type AccountTrialUpdateRequest = {
|
|
|
1553
1554
|
/** The custom position occupied in the company by the trial user */
|
|
1554
1555
|
otherPosition?: string;
|
|
1555
1556
|
/** The channel used for the trial user to reach Stackspot */
|
|
1556
|
-
reachedBy?: "GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER";
|
|
1557
|
+
reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[];
|
|
1557
1558
|
/** The custom channel used for the trial user to reach Stackspot */
|
|
1558
1559
|
customReachedBy?: string;
|
|
1559
1560
|
};
|
|
@@ -1956,7 +1957,7 @@ export type PersonalAccountDetailsResponse = {
|
|
|
1956
1957
|
/** Custom position of the account owner in the company, if not listed. */
|
|
1957
1958
|
otherPosition?: string | null;
|
|
1958
1959
|
/** How the account owner was reached. */
|
|
1959
|
-
reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER") | null;
|
|
1960
|
+
reachedBy?: (("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER") | null)[] | null;
|
|
1960
1961
|
/** Custom description of how the account owner was reached, if not listed. */
|
|
1961
1962
|
customReachedBy?: string | null;
|
|
1962
1963
|
/** Date and time until the account is valid. */
|
|
@@ -4769,7 +4770,7 @@ export function revokeServiceCredential({ id }: {
|
|
|
4769
4770
|
}));
|
|
4770
4771
|
}
|
|
4771
4772
|
/**
|
|
4772
|
-
*
|
|
4773
|
+
* Retrieves a list of rate limit with the associated service credential.
|
|
4773
4774
|
*/
|
|
4774
4775
|
export function getAllServiceCredentialRateLimit({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4775
4776
|
size?: any;
|
|
@@ -4808,7 +4809,7 @@ export function getAllServiceCredentialRateLimit({ size, page, sort, direction,
|
|
|
4808
4809
|
}));
|
|
4809
4810
|
}
|
|
4810
4811
|
/**
|
|
4811
|
-
*
|
|
4812
|
+
* Updates the rate limit of a service credential.
|
|
4812
4813
|
*/
|
|
4813
4814
|
export function updateServiceCredentialRateLimit({ serviceCredentialRateLimitRequest }: {
|
|
4814
4815
|
serviceCredentialRateLimitRequest: ServiceCredentialRateLimitRequest;
|
|
@@ -5730,7 +5731,7 @@ export function getServiceCredentialGroups({ id }: {
|
|
|
5730
5731
|
}));
|
|
5731
5732
|
}
|
|
5732
5733
|
/**
|
|
5733
|
-
*
|
|
5734
|
+
* Retrieves an rate limit associated to a given service credential id.
|
|
5734
5735
|
*/
|
|
5735
5736
|
export function getServiceCredentialByIdRateLimit({ clientId }: {
|
|
5736
5737
|
clientId: string;
|
package/src/api/codeShift.ts
CHANGED
|
@@ -133,6 +133,11 @@ export type PutApplicationRequest = {
|
|
|
133
133
|
/** Repository */
|
|
134
134
|
repository?: RepositoryRequest2 | null;
|
|
135
135
|
};
|
|
136
|
+
export type InputRequest = {
|
|
137
|
+
name: string;
|
|
138
|
+
required: boolean;
|
|
139
|
+
"default": string;
|
|
140
|
+
};
|
|
136
141
|
export type CreateModuleRequest = {
|
|
137
142
|
/** Module name */
|
|
138
143
|
name: string;
|
|
@@ -146,6 +151,13 @@ export type CreateModuleRequest = {
|
|
|
146
151
|
modes: string[];
|
|
147
152
|
/** Module tags */
|
|
148
153
|
tags: string[];
|
|
154
|
+
/** Inputs of module */
|
|
155
|
+
inputs: InputRequest[];
|
|
156
|
+
};
|
|
157
|
+
export type InputResponse = {
|
|
158
|
+
name: string;
|
|
159
|
+
required: boolean;
|
|
160
|
+
"default": string;
|
|
149
161
|
};
|
|
150
162
|
export type ModuleResponse2 = {
|
|
151
163
|
/** Module ID */
|
|
@@ -164,6 +176,8 @@ export type ModuleResponse2 = {
|
|
|
164
176
|
versions: string[];
|
|
165
177
|
/** Module tags */
|
|
166
178
|
tags: string[];
|
|
179
|
+
/** Module inputs */
|
|
180
|
+
inputs: InputResponse[];
|
|
167
181
|
};
|
|
168
182
|
export type ListModuleResponse = {
|
|
169
183
|
/** List of modules */
|
|
@@ -186,6 +200,8 @@ export type PutModuleRequest = {
|
|
|
186
200
|
modes?: string[] | null;
|
|
187
201
|
/** Module tags */
|
|
188
202
|
tags?: string[] | null;
|
|
203
|
+
/** Inputs of module */
|
|
204
|
+
inputs?: InputRequest[] | null;
|
|
189
205
|
};
|
|
190
206
|
export type ModuleDispatchRequest = {
|
|
191
207
|
/** Module mode */
|
|
@@ -196,6 +212,7 @@ export type ModuleDispatchRequest = {
|
|
|
196
212
|
applicationId: string;
|
|
197
213
|
/** Module ID */
|
|
198
214
|
moduleId: string;
|
|
215
|
+
inputs?: object | null;
|
|
199
216
|
};
|
|
200
217
|
export type DependsOnRequest = {
|
|
201
218
|
sourceRef: string;
|
package/src/client/account.ts
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
getAllAccountSso,
|
|
41
41
|
getAllGroupMapping,
|
|
42
42
|
getAllMemberFidoCredentials,
|
|
43
|
+
getAllServiceCredentialRateLimit,
|
|
43
44
|
getExtensionVersion, getFeatures,
|
|
44
45
|
getGroupById,
|
|
45
46
|
getGroupResources,
|
|
@@ -71,6 +72,7 @@ import {
|
|
|
71
72
|
getRoles4, getRoles5,
|
|
72
73
|
getScmProvider,
|
|
73
74
|
getServiceCredential,
|
|
75
|
+
getServiceCredentialByIdRateLimit,
|
|
74
76
|
getServiceCredentialGroups,
|
|
75
77
|
getServiceCredentialPermissions,
|
|
76
78
|
getServiceCredentials,
|
|
@@ -103,6 +105,7 @@ import {
|
|
|
103
105
|
updateResourceActions,
|
|
104
106
|
updateRoleWithNewActions,
|
|
105
107
|
updateSecret,
|
|
108
|
+
updateServiceCredentialRateLimit,
|
|
106
109
|
updateSso,
|
|
107
110
|
updateUser,
|
|
108
111
|
validateNewPartnerData,
|
|
@@ -766,11 +769,23 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
766
769
|
/**
|
|
767
770
|
* Get account rate limit
|
|
768
771
|
*/
|
|
769
|
-
getAccountRateLimit = this.
|
|
772
|
+
getAccountRateLimit = this.query(getAccountRateLimit)
|
|
770
773
|
/**
|
|
771
774
|
* Update Account rate limit
|
|
772
775
|
*/
|
|
773
776
|
updateRateLimit = this.mutation(updateRateLimit)
|
|
777
|
+
/**
|
|
778
|
+
* Get all service credential rate limit
|
|
779
|
+
*/
|
|
780
|
+
getAllServiceCredentialRateLimit = this.query(getAllServiceCredentialRateLimit)
|
|
781
|
+
/**
|
|
782
|
+
* Update service credential rate limit
|
|
783
|
+
*/
|
|
784
|
+
updateServiceCredentialRateLimit = this.mutation(updateServiceCredentialRateLimit)
|
|
785
|
+
/**
|
|
786
|
+
* Get service credential rate limit by id
|
|
787
|
+
*/
|
|
788
|
+
getServiceCredentialByIdRateLimit = this.query(getServiceCredentialByIdRateLimit)
|
|
774
789
|
|
|
775
790
|
}
|
|
776
791
|
|