@stack-spot/portal-network 0.1.0 → 0.3.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 +21 -0
- package/package.json +7 -6
- package/src/apis.json +2 -10
- package/src/client/account.ts +111 -4
- package/src/error/CanceledError.ts +3 -0
- package/src/error/DefaultAPIError.ts +27 -1
- package/src/error/StackspotAPIError.ts +33 -1
- package/src/index.ts +1 -0
- package/src/network/AutoInfiniteQuery.ts +104 -0
- package/src/network/AutoOperation.ts +7 -1
- package/src/network/AutoQuery.ts +2 -1
- package/src/network/ManualInfiniteQuery.ts +95 -0
- package/src/network/ManualQuery.ts +2 -2
- package/src/network/NetworkClient.ts +53 -41
- package/src/network/ReactQueryNetworkClient.ts +131 -33
- package/src/network/react-query-client.ts +3 -0
- package/src/network/types.ts +207 -11
- package/src/utils/use-extended-list.ts +80 -0
- package/.generate-api.failed.json +0 -1
- package/dist/api/account.d.ts +0 -2368
- package/dist/api/account.d.ts.map +0 -1
- package/dist/api/account.js +0 -1521
- package/dist/api/account.js.map +0 -1
- package/dist/api/ai.d.ts +0 -1432
- package/dist/api/ai.d.ts.map +0 -1
- package/dist/api/ai.js +0 -1342
- package/dist/api/ai.js.map +0 -1
- package/dist/api/apiRuntime.d.ts +0 -922
- package/dist/api/apiRuntime.d.ts.map +0 -1
- package/dist/api/apiRuntime.js +0 -599
- package/dist/api/apiRuntime.js.map +0 -1
- package/dist/api/cloudAccount.d.ts +0 -473
- package/dist/api/cloudAccount.d.ts.map +0 -1
- package/dist/api/cloudAccount.js +0 -300
- package/dist/api/cloudAccount.js.map +0 -1
- package/dist/api/cloudServices.d.ts +0 -1233
- package/dist/api/cloudServices.d.ts.map +0 -1
- package/dist/api/cloudServices.js +0 -715
- package/dist/api/cloudServices.js.map +0 -1
- package/dist/api/insights.d.ts +0 -123
- package/dist/api/insights.d.ts.map +0 -1
- package/dist/api/insights.js +0 -112
- package/dist/api/insights.js.map +0 -1
- package/dist/api/plugin.d.ts +0 -368
- package/dist/api/plugin.d.ts.map +0 -1
- package/dist/api/plugin.js +0 -218
- package/dist/api/plugin.js.map +0 -1
- package/dist/api/serviceCatalog.d.ts +0 -737
- package/dist/api/serviceCatalog.d.ts.map +0 -1
- package/dist/api/serviceCatalog.js +0 -611
- package/dist/api/serviceCatalog.js.map +0 -1
- package/dist/api/workflows.d.ts +0 -366
- package/dist/api/workflows.d.ts.map +0 -1
- package/dist/api/workflows.js +0 -175
- package/dist/api/workflows.js.map +0 -1
- package/dist/api/workspace.js +0 -1476
- package/dist/api/workspace.js.map +0 -1
- package/dist/api/workspaceManager.d.ts +0 -1121
- package/dist/api/workspaceManager.d.ts.map +0 -1
- package/dist/api/workspaceManager.js +0 -357
- package/dist/api/workspaceManager.js.map +0 -1
- package/dist/api/workspaceSearchEngine.d.ts +0 -93
- package/dist/api/workspaceSearchEngine.d.ts.map +0 -1
- package/dist/api/workspaceSearchEngine.js +0 -55
- package/dist/api/workspaceSearchEngine.js.map +0 -1
- package/dist/apis.json +0 -129
- package/dist/client/account.d.ts +0 -46
- package/dist/client/account.d.ts.map +0 -1
- package/dist/client/account.js +0 -104
- package/dist/client/account.js.map +0 -1
- package/dist/error/CanceledError.d.ts +0 -5
- package/dist/error/CanceledError.d.ts.map +0 -1
- package/dist/error/CanceledError.js +0 -7
- package/dist/error/CanceledError.js.map +0 -1
- package/dist/error/DefaultAPIError.d.ts +0 -9
- package/dist/error/DefaultAPIError.d.ts.map +0 -1
- package/dist/error/DefaultAPIError.js +0 -58
- package/dist/error/DefaultAPIError.js.map +0 -1
- package/dist/error/StackspotAPIError.d.ts +0 -19
- package/dist/error/StackspotAPIError.d.ts.map +0 -1
- package/dist/error/StackspotAPIError.js +0 -39
- package/dist/error/StackspotAPIError.js.map +0 -1
- package/dist/error/dictionary/account.d.ts +0 -55
- package/dist/error/dictionary/account.d.ts.map +0 -1
- package/dist/error/dictionary/account.js +0 -55
- package/dist/error/dictionary/account.js.map +0 -1
- package/dist/error/dictionary/action.d.ts +0 -163
- package/dist/error/dictionary/action.d.ts.map +0 -1
- package/dist/error/dictionary/action.js +0 -163
- package/dist/error/dictionary/action.js.map +0 -1
- package/dist/error/dictionary/base.d.ts +0 -21
- package/dist/error/dictionary/base.d.ts.map +0 -1
- package/dist/error/dictionary/base.js +0 -21
- package/dist/error/dictionary/base.js.map +0 -1
- package/dist/error/dictionary/cnt-fields.d.ts +0 -13
- package/dist/error/dictionary/cnt-fields.d.ts.map +0 -1
- package/dist/error/dictionary/cnt-fields.js +0 -13
- package/dist/error/dictionary/cnt-fields.js.map +0 -1
- package/dist/error/dictionary/cnt.d.ts +0 -79
- package/dist/error/dictionary/cnt.d.ts.map +0 -1
- package/dist/error/dictionary/cnt.js +0 -79
- package/dist/error/dictionary/cnt.js.map +0 -1
- package/dist/error/dictionary/rte.d.ts +0 -23
- package/dist/error/dictionary/rte.d.ts.map +0 -1
- package/dist/error/dictionary/rte.js +0 -23
- package/dist/error/dictionary/rte.js.map +0 -1
- package/dist/error/dictionary/rtm.d.ts +0 -9
- package/dist/error/dictionary/rtm.d.ts.map +0 -1
- package/dist/error/dictionary/rtm.js +0 -9
- package/dist/error/dictionary/rtm.js.map +0 -1
- package/dist/error/dictionary/workspace-fields.d.ts +0 -9
- package/dist/error/dictionary/workspace-fields.d.ts.map +0 -1
- package/dist/error/dictionary/workspace-fields.js +0 -9
- package/dist/error/dictionary/workspace-fields.js.map +0 -1
- package/dist/error/dictionary/workspace.d.ts +0 -99
- package/dist/error/dictionary/workspace.d.ts.map +0 -1
- package/dist/error/dictionary/workspace.js +0 -99
- package/dist/error/dictionary/workspace.js.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/network/AutoMutation.d.ts +0 -10
- package/dist/network/AutoMutation.d.ts.map +0 -1
- package/dist/network/AutoMutation.js +0 -20
- package/dist/network/AutoMutation.js.map +0 -1
- package/dist/network/AutoOperation.d.ts +0 -19
- package/dist/network/AutoOperation.d.ts.map +0 -1
- package/dist/network/AutoOperation.js +0 -99
- package/dist/network/AutoOperation.js.map +0 -1
- package/dist/network/AutoQuery.d.ts +0 -19
- package/dist/network/AutoQuery.d.ts.map +0 -1
- package/dist/network/AutoQuery.js +0 -70
- package/dist/network/AutoQuery.js.map +0 -1
- package/dist/network/ManualMutation.d.ts +0 -11
- package/dist/network/ManualMutation.d.ts.map +0 -1
- package/dist/network/ManualMutation.js +0 -32
- package/dist/network/ManualMutation.js.map +0 -1
- package/dist/network/ManualOperation.d.ts +0 -13
- package/dist/network/ManualOperation.d.ts.map +0 -1
- package/dist/network/ManualOperation.js +0 -53
- package/dist/network/ManualOperation.js.map +0 -1
- package/dist/network/ManualQuery.d.ts +0 -20
- package/dist/network/ManualQuery.d.ts.map +0 -1
- package/dist/network/ManualQuery.js +0 -77
- package/dist/network/ManualQuery.js.map +0 -1
- package/dist/network/NetworkClient.d.ts +0 -20
- package/dist/network/NetworkClient.d.ts.map +0 -1
- package/dist/network/NetworkClient.js +0 -85
- package/dist/network/NetworkClient.js.map +0 -1
- package/dist/network/ReactQueryNetworkClient.d.ts +0 -16
- package/dist/network/ReactQueryNetworkClient.d.ts.map +0 -1
- package/dist/network/ReactQueryNetworkClient.js +0 -125
- package/dist/network/ReactQueryNetworkClient.js.map +0 -1
- package/dist/network/react-query-client.d.ts +0 -3
- package/dist/network/react-query-client.d.ts.map +0 -1
- package/dist/network/react-query-client.js +0 -3
- package/dist/network/react-query-client.js.map +0 -1
- package/dist/network/types.d.ts +0 -55
- package/dist/network/types.d.ts.map +0 -1
- package/dist/network/types.js +0 -2
- package/dist/network/types.js.map +0 -1
- package/src/api/plugin.ts +0 -685
|
@@ -1,737 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* v0
|
|
4
|
-
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
-
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
-
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
-
export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
|
|
9
|
-
export declare const servers: {
|
|
10
|
-
generatedServerUrl: string;
|
|
11
|
-
};
|
|
12
|
-
export type ProductResponse = {
|
|
13
|
-
id: string;
|
|
14
|
-
accountId?: string;
|
|
15
|
-
name: string;
|
|
16
|
-
description: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
workspaceId: string;
|
|
20
|
-
status: string;
|
|
21
|
-
imageUrl?: string;
|
|
22
|
-
};
|
|
23
|
-
export type StatusType = number;
|
|
24
|
-
export type ProductRequest = {
|
|
25
|
-
name?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
imageBase64?: string;
|
|
28
|
-
};
|
|
29
|
-
export type ClientApplicationResponse = {
|
|
30
|
-
id?: string;
|
|
31
|
-
name?: string;
|
|
32
|
-
displayName?: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
};
|
|
35
|
-
export type ClientApplicationRequest = {
|
|
36
|
-
name: string;
|
|
37
|
-
displayName: string;
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
export type ProductWithApiAndEnvironmentRequest = {
|
|
41
|
-
name: string;
|
|
42
|
-
description: string;
|
|
43
|
-
environments?: string[];
|
|
44
|
-
apis?: string[];
|
|
45
|
-
imageBase64?: string;
|
|
46
|
-
};
|
|
47
|
-
export type CatalogApiByEnvResponse = {
|
|
48
|
-
updatedAt: string;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
environmentId: string;
|
|
51
|
-
status: string;
|
|
52
|
-
version: string;
|
|
53
|
-
gatewayUrl?: string;
|
|
54
|
-
hasOpenApiContent: boolean;
|
|
55
|
-
};
|
|
56
|
-
export type CatalogApiResponse = {
|
|
57
|
-
id: string;
|
|
58
|
-
name: string;
|
|
59
|
-
description: string;
|
|
60
|
-
workspaceId: string;
|
|
61
|
-
connectionInterfaceSlug?: string;
|
|
62
|
-
byEnvironment: CatalogApiByEnvResponse[];
|
|
63
|
-
};
|
|
64
|
-
export type CatalogApiDefinitionRequest = {
|
|
65
|
-
environmentId: string;
|
|
66
|
-
gatewayUrl: string;
|
|
67
|
-
openApiContent: string;
|
|
68
|
-
};
|
|
69
|
-
export type CatalogApiRequest = {
|
|
70
|
-
name: string;
|
|
71
|
-
description: string;
|
|
72
|
-
connectionInterfaceSlug?: string;
|
|
73
|
-
definitions?: CatalogApiDefinitionRequest[];
|
|
74
|
-
};
|
|
75
|
-
export type CatalogApiDefinitionResponse = {
|
|
76
|
-
apiId: string;
|
|
77
|
-
updatedAt: string;
|
|
78
|
-
createdAt: string;
|
|
79
|
-
environmentId: string;
|
|
80
|
-
status: string;
|
|
81
|
-
version: string;
|
|
82
|
-
basicInfo?: CatalogApiResponse;
|
|
83
|
-
};
|
|
84
|
-
export type AccessRequestRequest = {
|
|
85
|
-
status: "GRANTED" | "DENIED";
|
|
86
|
-
oauthClientId?: string;
|
|
87
|
-
};
|
|
88
|
-
export type AccessRequestRequestWrite = {
|
|
89
|
-
status: "GRANTED" | "DENIED";
|
|
90
|
-
oAuthClientId?: string;
|
|
91
|
-
oauthClientId?: string;
|
|
92
|
-
};
|
|
93
|
-
export type AccessRequestBatchRequest = {
|
|
94
|
-
status: "GRANTED" | "DENIED";
|
|
95
|
-
accessRequests: string[];
|
|
96
|
-
oauthClientId?: string;
|
|
97
|
-
};
|
|
98
|
-
export type AccessRequestBatchRequestWrite = {
|
|
99
|
-
status: "GRANTED" | "DENIED";
|
|
100
|
-
oAuthClientId?: string;
|
|
101
|
-
accessRequests: string[];
|
|
102
|
-
oauthClientId?: string;
|
|
103
|
-
};
|
|
104
|
-
export type CatalogApiDetailsDto = {
|
|
105
|
-
id: string;
|
|
106
|
-
updatedAt: string;
|
|
107
|
-
createdAt: string;
|
|
108
|
-
environmentId: string;
|
|
109
|
-
status: string;
|
|
110
|
-
version: string;
|
|
111
|
-
name: string;
|
|
112
|
-
description: string;
|
|
113
|
-
workspaceId: string;
|
|
114
|
-
connectionInterfaceSlug?: string;
|
|
115
|
-
};
|
|
116
|
-
export type EndpointParameterResponse = {
|
|
117
|
-
name: string;
|
|
118
|
-
"type"?: string;
|
|
119
|
-
description?: string;
|
|
120
|
-
required?: boolean;
|
|
121
|
-
"in"?: string;
|
|
122
|
-
format?: string;
|
|
123
|
-
};
|
|
124
|
-
export type BodySchema = {
|
|
125
|
-
name?: string;
|
|
126
|
-
"type"?: string;
|
|
127
|
-
description?: string;
|
|
128
|
-
format?: string;
|
|
129
|
-
};
|
|
130
|
-
export type EndpointResponseResponse = {
|
|
131
|
-
code?: string;
|
|
132
|
-
description?: string;
|
|
133
|
-
responseExample?: {
|
|
134
|
-
[key: string]: object;
|
|
135
|
-
};
|
|
136
|
-
schema?: BodySchema[];
|
|
137
|
-
};
|
|
138
|
-
export type CatalogApiMethodResponse = {
|
|
139
|
-
"type": string;
|
|
140
|
-
endpointName: string;
|
|
141
|
-
endpointUrl: string;
|
|
142
|
-
name: string;
|
|
143
|
-
description: string;
|
|
144
|
-
endpointParameters: EndpointParameterResponse[];
|
|
145
|
-
curlExample: string;
|
|
146
|
-
bodyExample?: object;
|
|
147
|
-
responses: EndpointResponseResponse[];
|
|
148
|
-
produces?: string[];
|
|
149
|
-
consumes?: string[];
|
|
150
|
-
};
|
|
151
|
-
export type CatalogApiMethodsResponse = CatalogApiMethodResponse[];
|
|
152
|
-
export type SimpleProductResponse = {
|
|
153
|
-
id: string;
|
|
154
|
-
accountId?: string;
|
|
155
|
-
name: string;
|
|
156
|
-
description: string;
|
|
157
|
-
workspaceId: string;
|
|
158
|
-
status: string;
|
|
159
|
-
imageUrl?: string;
|
|
160
|
-
environments: string[];
|
|
161
|
-
};
|
|
162
|
-
export type CatalogApiDetailsResponse = {
|
|
163
|
-
id: string;
|
|
164
|
-
updatedAt: string;
|
|
165
|
-
createdAt: string;
|
|
166
|
-
environmentId: string;
|
|
167
|
-
status: string;
|
|
168
|
-
version: string;
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
workspaceId: string;
|
|
172
|
-
};
|
|
173
|
-
export type SimpleApiResponse = {
|
|
174
|
-
id: string;
|
|
175
|
-
name: string;
|
|
176
|
-
description: string;
|
|
177
|
-
workspaceId: string;
|
|
178
|
-
accountId?: string;
|
|
179
|
-
environments: string[];
|
|
180
|
-
};
|
|
181
|
-
export type CatalogApiAccessRequestResponse = {
|
|
182
|
-
id: string;
|
|
183
|
-
environmentId: string;
|
|
184
|
-
authType: string;
|
|
185
|
-
status: string;
|
|
186
|
-
updatedAt: string;
|
|
187
|
-
createdAt: string;
|
|
188
|
-
grantedAt?: string;
|
|
189
|
-
grantedBy?: string;
|
|
190
|
-
updatedBy?: string;
|
|
191
|
-
clientApplication: {
|
|
192
|
-
[key: string]: object;
|
|
193
|
-
};
|
|
194
|
-
api: {
|
|
195
|
-
[key: string]: object;
|
|
196
|
-
};
|
|
197
|
-
oauthClientId: string;
|
|
198
|
-
};
|
|
199
|
-
export type CatalogApiAccessRequestResponseWrite = {
|
|
200
|
-
id: string;
|
|
201
|
-
environmentId: string;
|
|
202
|
-
oAuthClientId?: string;
|
|
203
|
-
authType: string;
|
|
204
|
-
status: string;
|
|
205
|
-
updatedAt: string;
|
|
206
|
-
createdAt: string;
|
|
207
|
-
grantedAt?: string;
|
|
208
|
-
grantedBy?: string;
|
|
209
|
-
updatedBy?: string;
|
|
210
|
-
clientApplication: {
|
|
211
|
-
[key: string]: object;
|
|
212
|
-
};
|
|
213
|
-
api: {
|
|
214
|
-
[key: string]: object;
|
|
215
|
-
};
|
|
216
|
-
oauthClientId: string;
|
|
217
|
-
};
|
|
218
|
-
export type PartnerProductResponse = {
|
|
219
|
-
id: string;
|
|
220
|
-
accountId?: string;
|
|
221
|
-
name: string;
|
|
222
|
-
description: string;
|
|
223
|
-
workspaceId: string;
|
|
224
|
-
status?: string;
|
|
225
|
-
imageUrl?: string;
|
|
226
|
-
environments: string[];
|
|
227
|
-
};
|
|
228
|
-
export type PartnerApiResponse = {
|
|
229
|
-
id: string;
|
|
230
|
-
accountId?: string;
|
|
231
|
-
name: string;
|
|
232
|
-
description: string;
|
|
233
|
-
workspaceId: string;
|
|
234
|
-
environments: string[];
|
|
235
|
-
};
|
|
236
|
-
export type ClientApplicationWithStatusResponse = {
|
|
237
|
-
id?: string;
|
|
238
|
-
name?: string;
|
|
239
|
-
displayName?: string;
|
|
240
|
-
description?: string;
|
|
241
|
-
lastAccessRequestStatus?: "DENIED" | "GRANTED" | "REQUESTED";
|
|
242
|
-
};
|
|
243
|
-
export type ClientApplicationWithGrantedAccessResponse = {
|
|
244
|
-
id?: string;
|
|
245
|
-
name?: string;
|
|
246
|
-
displayName?: string;
|
|
247
|
-
description?: string;
|
|
248
|
-
clientId: string;
|
|
249
|
-
};
|
|
250
|
-
export type EnvironmentResponse = {
|
|
251
|
-
id: string;
|
|
252
|
-
name: string;
|
|
253
|
-
};
|
|
254
|
-
export type HealthzResponse = {
|
|
255
|
-
status: "UP" | "DOWN";
|
|
256
|
-
groups: ("liveness" | "readiness")[];
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Get one product by product_id
|
|
260
|
-
*/
|
|
261
|
-
export declare function getOne({ workspaceId, productId }: {
|
|
262
|
-
workspaceId: string;
|
|
263
|
-
productId: string;
|
|
264
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse>;
|
|
265
|
-
/**
|
|
266
|
-
* Update product's name and/or description
|
|
267
|
-
*/
|
|
268
|
-
export declare function updateProduct({ workspaceId, productId, productRequest }: {
|
|
269
|
-
workspaceId: string;
|
|
270
|
-
productId: string;
|
|
271
|
-
productRequest: ProductRequest;
|
|
272
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse>;
|
|
273
|
-
/**
|
|
274
|
-
* Get one product by product_id
|
|
275
|
-
*/
|
|
276
|
-
export declare function deleteProduct({ workspaceId, productId }: {
|
|
277
|
-
workspaceId: string;
|
|
278
|
-
productId: string;
|
|
279
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
280
|
-
/**
|
|
281
|
-
* Change product status
|
|
282
|
-
*/
|
|
283
|
-
export declare function changeProductStatus({ workspaceId, productId, action }: {
|
|
284
|
-
workspaceId: string;
|
|
285
|
-
productId: string;
|
|
286
|
-
action: "publish" | "unpublish";
|
|
287
|
-
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
288
|
-
/**
|
|
289
|
-
* Get Client Application by ID
|
|
290
|
-
*/
|
|
291
|
-
export declare function getOneClientApplication({ clientApplicationId }: {
|
|
292
|
-
clientApplicationId: string;
|
|
293
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ClientApplicationResponse>;
|
|
294
|
-
/**
|
|
295
|
-
* Update a Client Application
|
|
296
|
-
*/
|
|
297
|
-
export declare function updateClientApplication({ clientApplicationId, clientApplicationRequest }: {
|
|
298
|
-
clientApplicationId: string;
|
|
299
|
-
clientApplicationRequest: ClientApplicationRequest;
|
|
300
|
-
}, opts?: Oazapfts.RequestOpts): Promise<string>;
|
|
301
|
-
/**
|
|
302
|
-
* Delete a Client Application by ID
|
|
303
|
-
*/
|
|
304
|
-
export declare function deleteClientApplication({ clientApplicationId }: {
|
|
305
|
-
clientApplicationId: string;
|
|
306
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
307
|
-
/**
|
|
308
|
-
* Get all products by workspace Id
|
|
309
|
-
*/
|
|
310
|
-
export declare function getAll({ workspaceId }: {
|
|
311
|
-
workspaceId: string;
|
|
312
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse[]>;
|
|
313
|
-
/**
|
|
314
|
-
* save product in a workspace Id
|
|
315
|
-
*/
|
|
316
|
-
export declare function saveProduct({ workspaceId, productWithApiAndEnvironmentRequest }: {
|
|
317
|
-
workspaceId: string;
|
|
318
|
-
productWithApiAndEnvironmentRequest: ProductWithApiAndEnvironmentRequest;
|
|
319
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse>;
|
|
320
|
-
export declare function linkProductApi({ workspaceId, productId, apiId }: {
|
|
321
|
-
workspaceId: string;
|
|
322
|
-
productId: string;
|
|
323
|
-
apiId: string;
|
|
324
|
-
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
325
|
-
export declare function unlinkProductApi({ workspaceId, productId, apiId }: {
|
|
326
|
-
workspaceId: string;
|
|
327
|
-
productId: string;
|
|
328
|
-
apiId: string;
|
|
329
|
-
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
330
|
-
/**
|
|
331
|
-
* Get one API by application id
|
|
332
|
-
*/
|
|
333
|
-
export declare function getOne1({ workspaceId, applicationId }: {
|
|
334
|
-
workspaceId: string;
|
|
335
|
-
applicationId: string;
|
|
336
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse>;
|
|
337
|
-
/**
|
|
338
|
-
* save API in a workspace Id
|
|
339
|
-
*/
|
|
340
|
-
export declare function saveApi({ workspaceId, applicationId, catalogApiRequest }: {
|
|
341
|
-
workspaceId: string;
|
|
342
|
-
applicationId: string;
|
|
343
|
-
catalogApiRequest: CatalogApiRequest;
|
|
344
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse>;
|
|
345
|
-
/**
|
|
346
|
-
* delete one API by application id
|
|
347
|
-
*/
|
|
348
|
-
export declare function deleteApi({ workspaceId, applicationId }: {
|
|
349
|
-
workspaceId: string;
|
|
350
|
-
applicationId: string;
|
|
351
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
352
|
-
/**
|
|
353
|
-
* get API definition
|
|
354
|
-
*/
|
|
355
|
-
export declare function getApiDefinition({ workspaceId, applicationId, environmentId }: {
|
|
356
|
-
workspaceId: string;
|
|
357
|
-
applicationId: string;
|
|
358
|
-
environmentId: string;
|
|
359
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiDefinitionResponse>;
|
|
360
|
-
/**
|
|
361
|
-
* save API definition in a workspace Id
|
|
362
|
-
*/
|
|
363
|
-
export declare function saveApiDefinition({ workspaceId, applicationId, environmentId, gatewayUrl, body }: {
|
|
364
|
-
workspaceId: string;
|
|
365
|
-
applicationId: string;
|
|
366
|
-
environmentId: string;
|
|
367
|
-
gatewayUrl?: string;
|
|
368
|
-
body: string;
|
|
369
|
-
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
370
|
-
/**
|
|
371
|
-
* update API definition in a workspace Id
|
|
372
|
-
*/
|
|
373
|
-
export declare function updateApiDefinition({ workspaceId, applicationId, environmentId, gatewayUrl, connectionInterfaceSlug, body }: {
|
|
374
|
-
workspaceId: string;
|
|
375
|
-
applicationId: string;
|
|
376
|
-
environmentId: string;
|
|
377
|
-
gatewayUrl?: string;
|
|
378
|
-
connectionInterfaceSlug?: string;
|
|
379
|
-
body?: string;
|
|
380
|
-
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
381
|
-
/**
|
|
382
|
-
* Get all apis by workspace Id
|
|
383
|
-
*/
|
|
384
|
-
export declare function getAll1({ workspaceId, offset, limit, status }: {
|
|
385
|
-
workspaceId: string;
|
|
386
|
-
offset?: number;
|
|
387
|
-
limit?: number;
|
|
388
|
-
status?: "DRAFT" | "PUBLISHED" | "UNPUBLISHED" | "DELETED";
|
|
389
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse[]>;
|
|
390
|
-
/**
|
|
391
|
-
* save API in a workspace Id
|
|
392
|
-
*/
|
|
393
|
-
export declare function saveApi1({ workspaceId, catalogApiRequest }: {
|
|
394
|
-
workspaceId: string;
|
|
395
|
-
catalogApiRequest: CatalogApiRequest;
|
|
396
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse>;
|
|
397
|
-
/**
|
|
398
|
-
* get API definition
|
|
399
|
-
*/
|
|
400
|
-
export declare function getApiDefinition1({ workspaceId, apiId, environmentId }: {
|
|
401
|
-
workspaceId: string;
|
|
402
|
-
apiId: string;
|
|
403
|
-
environmentId: string;
|
|
404
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiDefinitionResponse>;
|
|
405
|
-
/**
|
|
406
|
-
* save API definition in a workspace Id
|
|
407
|
-
*/
|
|
408
|
-
export declare function saveNewApiDefinition({ workspaceId, apiId, environmentId, gatewayUrl, body }: {
|
|
409
|
-
workspaceId: string;
|
|
410
|
-
apiId: string;
|
|
411
|
-
environmentId: string;
|
|
412
|
-
gatewayUrl?: string;
|
|
413
|
-
body: string;
|
|
414
|
-
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
415
|
-
/**
|
|
416
|
-
* update API definition in a workspace Id
|
|
417
|
-
*/
|
|
418
|
-
export declare function updateApiDefinition1({ workspaceId, apiId, environmentId, gatewayUrl, connectionInterfaceSlug, body }: {
|
|
419
|
-
workspaceId: string;
|
|
420
|
-
apiId: string;
|
|
421
|
-
environmentId: string;
|
|
422
|
-
gatewayUrl?: string;
|
|
423
|
-
connectionInterfaceSlug?: string;
|
|
424
|
-
body?: string;
|
|
425
|
-
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
426
|
-
/**
|
|
427
|
-
* Grant partner access permission to access the product
|
|
428
|
-
*/
|
|
429
|
-
export declare function givePermission({ partnerAccountId, environmentId, productId }: {
|
|
430
|
-
partnerAccountId: string;
|
|
431
|
-
environmentId: string;
|
|
432
|
-
productId: string;
|
|
433
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
434
|
-
/**
|
|
435
|
-
* Remove partner access permission from the product
|
|
436
|
-
*/
|
|
437
|
-
export declare function removePermission({ partnerAccountId, environmentId, productId }: {
|
|
438
|
-
partnerAccountId: string;
|
|
439
|
-
environmentId: string;
|
|
440
|
-
productId: string;
|
|
441
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
442
|
-
/**
|
|
443
|
-
* Grant partner access permission to access the API
|
|
444
|
-
*/
|
|
445
|
-
export declare function givePermission1({ partnerAccountId, environmentId, apiId }: {
|
|
446
|
-
partnerAccountId: string;
|
|
447
|
-
environmentId: string;
|
|
448
|
-
apiId: string;
|
|
449
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
450
|
-
/**
|
|
451
|
-
* Remove partner access permission from the API
|
|
452
|
-
*/
|
|
453
|
-
export declare function removePermission1({ partnerAccountId, environmentId, apiId }: {
|
|
454
|
-
partnerAccountId: string;
|
|
455
|
-
environmentId: string;
|
|
456
|
-
apiId: string;
|
|
457
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
458
|
-
/**
|
|
459
|
-
* Request access to many client application by Product
|
|
460
|
-
*/
|
|
461
|
-
export declare function createAccessRequestByProduct({ environmentId, productId, body }: {
|
|
462
|
-
environmentId: string;
|
|
463
|
-
productId: string;
|
|
464
|
-
body: string[];
|
|
465
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
466
|
-
/**
|
|
467
|
-
* Request access to many client application by Api
|
|
468
|
-
*/
|
|
469
|
-
export declare function createAccessRequestByApi({ environmentId, apiId, body }: {
|
|
470
|
-
environmentId: string;
|
|
471
|
-
apiId: string;
|
|
472
|
-
body: string[];
|
|
473
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
474
|
-
/**
|
|
475
|
-
* Update access request by status and clientID
|
|
476
|
-
*/
|
|
477
|
-
export declare function updateAccessRequest({ environmentId, accessRequestId, accessRequestRequest }: {
|
|
478
|
-
environmentId: string;
|
|
479
|
-
accessRequestId: string;
|
|
480
|
-
accessRequestRequest: AccessRequestRequestWrite;
|
|
481
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
482
|
-
/**
|
|
483
|
-
* Get all Client Applications from Account
|
|
484
|
-
*/
|
|
485
|
-
export declare function getClientApplication(opts?: Oazapfts.RequestOpts): Promise<ClientApplicationResponse[]>;
|
|
486
|
-
/**
|
|
487
|
-
* Save a new Client Application for Account
|
|
488
|
-
*/
|
|
489
|
-
export declare function createClientApplication({ clientApplicationRequest }: {
|
|
490
|
-
clientApplicationRequest: ClientApplicationRequest;
|
|
491
|
-
}, opts?: Oazapfts.RequestOpts): Promise<string>;
|
|
492
|
-
/**
|
|
493
|
-
* Update batch access request by status and clientID
|
|
494
|
-
*/
|
|
495
|
-
export declare function updateAccessRequestBatch({ accessRequestBatchRequest }: {
|
|
496
|
-
accessRequestBatchRequest: AccessRequestBatchRequestWrite;
|
|
497
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
498
|
-
/**
|
|
499
|
-
* Update API status by application id
|
|
500
|
-
*/
|
|
501
|
-
export declare function updateApiStatusByWorkspaceAndApplicationId({ workspaceId, applicationId, environmentId, action }: {
|
|
502
|
-
workspaceId: string;
|
|
503
|
-
applicationId: string;
|
|
504
|
-
environmentId: string;
|
|
505
|
-
action: "PUBLISHED" | "UNPUBLISHED" | "DRAFT";
|
|
506
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
507
|
-
/**
|
|
508
|
-
* Update API status
|
|
509
|
-
*/
|
|
510
|
-
export declare function updateApiStatusByWorkspaceAndApiId({ workspaceId, apiId, envId, action }: {
|
|
511
|
-
workspaceId: string;
|
|
512
|
-
apiId: string;
|
|
513
|
-
envId: string;
|
|
514
|
-
action: "PUBLISHED" | "UNPUBLISHED" | "DRAFT";
|
|
515
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
516
|
-
export declare function getApisByProductId({ workspaceId, productId }: {
|
|
517
|
-
workspaceId: string;
|
|
518
|
-
productId: string;
|
|
519
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse[]>;
|
|
520
|
-
/**
|
|
521
|
-
* Get one API by api_id
|
|
522
|
-
*/
|
|
523
|
-
export declare function getOne2({ workspaceId, apiId }: {
|
|
524
|
-
workspaceId: string;
|
|
525
|
-
apiId: string;
|
|
526
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse>;
|
|
527
|
-
/**
|
|
528
|
-
* Get all products of an API
|
|
529
|
-
*/
|
|
530
|
-
export declare function getProductsByApiId({ workspaceId, apiId }: {
|
|
531
|
-
workspaceId: string;
|
|
532
|
-
apiId: string;
|
|
533
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse[]>;
|
|
534
|
-
/**
|
|
535
|
-
* get API Details
|
|
536
|
-
*/
|
|
537
|
-
export declare function apiDetails({ workspaceId, apiId, environmentId }: {
|
|
538
|
-
workspaceId: string;
|
|
539
|
-
apiId: string;
|
|
540
|
-
environmentId: string;
|
|
541
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiDetailsDto>;
|
|
542
|
-
/**
|
|
543
|
-
* get API Definition
|
|
544
|
-
*/
|
|
545
|
-
export declare function getApiWorkspaceMethods({ workspaceId, apiId, environmentId }: {
|
|
546
|
-
workspaceId: string;
|
|
547
|
-
apiId: string;
|
|
548
|
-
environmentId: string;
|
|
549
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiMethodsResponse>;
|
|
550
|
-
/**
|
|
551
|
-
* List all the Account's Products
|
|
552
|
-
*/
|
|
553
|
-
export declare function getProducts(opts?: Oazapfts.RequestOpts): Promise<SimpleProductResponse[]>;
|
|
554
|
-
export declare function getApisByProductId1({ productId, environmentId }: {
|
|
555
|
-
productId: string;
|
|
556
|
-
environmentId: string;
|
|
557
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse[]>;
|
|
558
|
-
export declare function getApisByProductId2({ productId, environmentId, accountId }: {
|
|
559
|
-
productId: string;
|
|
560
|
-
environmentId: string;
|
|
561
|
-
accountId: string;
|
|
562
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse[]>;
|
|
563
|
-
/**
|
|
564
|
-
* Get one product by product_id
|
|
565
|
-
*/
|
|
566
|
-
export declare function getOneProduct({ accountId, productId, environmentId }: {
|
|
567
|
-
accountId: string;
|
|
568
|
-
productId: string;
|
|
569
|
-
environmentId: string;
|
|
570
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse>;
|
|
571
|
-
/**
|
|
572
|
-
* Get one product by product_id
|
|
573
|
-
*/
|
|
574
|
-
export declare function getOneProduct1({ productId, environmentId }: {
|
|
575
|
-
productId: string;
|
|
576
|
-
environmentId: string;
|
|
577
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse>;
|
|
578
|
-
/**
|
|
579
|
-
* Get all products
|
|
580
|
-
*/
|
|
581
|
-
export declare function getAllProducts({ accountId, environmentId, limit }: {
|
|
582
|
-
accountId: string;
|
|
583
|
-
environmentId: string;
|
|
584
|
-
limit?: number;
|
|
585
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse[]>;
|
|
586
|
-
/**
|
|
587
|
-
* Get all products
|
|
588
|
-
*/
|
|
589
|
-
export declare function getAllProducts1({ environmentId, limit }: {
|
|
590
|
-
environmentId: string;
|
|
591
|
-
limit?: number;
|
|
592
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse[]>;
|
|
593
|
-
/**
|
|
594
|
-
* Get all products of an API
|
|
595
|
-
*/
|
|
596
|
-
export declare function getProductsByApiId1({ apiId, environmentId, accountId }: {
|
|
597
|
-
apiId: string;
|
|
598
|
-
environmentId: string;
|
|
599
|
-
accountId: string;
|
|
600
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse[]>;
|
|
601
|
-
/**
|
|
602
|
-
* Get all products of an API
|
|
603
|
-
*/
|
|
604
|
-
export declare function getProductsByApiId2({ apiId, environmentId }: {
|
|
605
|
-
apiId: string;
|
|
606
|
-
environmentId: string;
|
|
607
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ProductResponse[]>;
|
|
608
|
-
/**
|
|
609
|
-
* get API definition
|
|
610
|
-
*/
|
|
611
|
-
export declare function getApiMethods({ accountId, apiId, environmentId }: {
|
|
612
|
-
accountId: string;
|
|
613
|
-
apiId: string;
|
|
614
|
-
environmentId: string;
|
|
615
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiMethodsResponse>;
|
|
616
|
-
/**
|
|
617
|
-
* get API definition
|
|
618
|
-
*/
|
|
619
|
-
export declare function getApiMethods1({ apiId, environmentId }: {
|
|
620
|
-
apiId: string;
|
|
621
|
-
environmentId: string;
|
|
622
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiMethodsResponse>;
|
|
623
|
-
/**
|
|
624
|
-
* get API definition
|
|
625
|
-
*/
|
|
626
|
-
export declare function getApiDefinition2({ apiId, environmentId, accountId }: {
|
|
627
|
-
apiId: string;
|
|
628
|
-
environmentId: string;
|
|
629
|
-
accountId: string;
|
|
630
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiDetailsResponse>;
|
|
631
|
-
/**
|
|
632
|
-
* get API definition
|
|
633
|
-
*/
|
|
634
|
-
export declare function getApiDefinition3({ apiId, environmentId }: {
|
|
635
|
-
apiId: string;
|
|
636
|
-
environmentId: string;
|
|
637
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiDetailsResponse>;
|
|
638
|
-
/**
|
|
639
|
-
* Get one API by api_id
|
|
640
|
-
*/
|
|
641
|
-
export declare function getOneApi({ apiId, environmentId }: {
|
|
642
|
-
apiId: string;
|
|
643
|
-
environmentId: string;
|
|
644
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse>;
|
|
645
|
-
/**
|
|
646
|
-
* Get one API by api_id
|
|
647
|
-
*/
|
|
648
|
-
export declare function getOneApi1({ apiId, environmentId, accountId }: {
|
|
649
|
-
apiId: string;
|
|
650
|
-
environmentId: string;
|
|
651
|
-
accountId: string;
|
|
652
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse>;
|
|
653
|
-
/**
|
|
654
|
-
* Get all apis
|
|
655
|
-
*/
|
|
656
|
-
export declare function getAllApis({ environmentId, limit }: {
|
|
657
|
-
environmentId: string;
|
|
658
|
-
limit?: number;
|
|
659
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse[]>;
|
|
660
|
-
/**
|
|
661
|
-
* Get all apis
|
|
662
|
-
*/
|
|
663
|
-
export declare function getAllApis1({ accountId, environmentId, limit }: {
|
|
664
|
-
accountId: string;
|
|
665
|
-
environmentId: string;
|
|
666
|
-
limit?: number;
|
|
667
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiResponse[]>;
|
|
668
|
-
/**
|
|
669
|
-
* List all the Account's Apis
|
|
670
|
-
*/
|
|
671
|
-
export declare function getApis(opts?: Oazapfts.RequestOpts): Promise<SimpleApiResponse[]>;
|
|
672
|
-
/**
|
|
673
|
-
* Get all partner APIs whose status is requested or granted
|
|
674
|
-
*/
|
|
675
|
-
export declare function getRequestedOrGrantedAccessApis({ partnerAccountId }: {
|
|
676
|
-
partnerAccountId: string;
|
|
677
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiAccessRequestResponse[]>;
|
|
678
|
-
/**
|
|
679
|
-
* Get all Partner's products
|
|
680
|
-
*/
|
|
681
|
-
export declare function getProducts1({ partnerAccountId }: {
|
|
682
|
-
partnerAccountId: string;
|
|
683
|
-
}, opts?: Oazapfts.RequestOpts): Promise<PartnerProductResponse[]>;
|
|
684
|
-
/**
|
|
685
|
-
* Get all Partner's products by environment
|
|
686
|
-
*/
|
|
687
|
-
export declare function getProductsByEnv({ partnerAccountId, environmentId }: {
|
|
688
|
-
partnerAccountId: string;
|
|
689
|
-
environmentId: string;
|
|
690
|
-
}, opts?: Oazapfts.RequestOpts): Promise<PartnerProductResponse[]>;
|
|
691
|
-
/**
|
|
692
|
-
* Get all Partner's apis by environment
|
|
693
|
-
*/
|
|
694
|
-
export declare function getApisByEnv({ partnerAccountId, environmentId }: {
|
|
695
|
-
partnerAccountId: string;
|
|
696
|
-
environmentId: string;
|
|
697
|
-
}, opts?: Oazapfts.RequestOpts): Promise<PartnerApiResponse[]>;
|
|
698
|
-
/**
|
|
699
|
-
* Get all Partner's apis
|
|
700
|
-
*/
|
|
701
|
-
export declare function getApis1({ partnerAccountId }: {
|
|
702
|
-
partnerAccountId: string;
|
|
703
|
-
}, opts?: Oazapfts.RequestOpts): Promise<PartnerApiResponse[]>;
|
|
704
|
-
/**
|
|
705
|
-
* Get all Client Applications that are eligible to request access to API
|
|
706
|
-
*/
|
|
707
|
-
export declare function getEligibleClientApplications({ environmentId, apiId }: {
|
|
708
|
-
environmentId: string;
|
|
709
|
-
apiId: string;
|
|
710
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ClientApplicationWithStatusResponse[]>;
|
|
711
|
-
export declare function getAllApplications({ environmentId, apiId }: {
|
|
712
|
-
environmentId: string;
|
|
713
|
-
apiId: string;
|
|
714
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ClientApplicationWithGrantedAccessResponse[]>;
|
|
715
|
-
/**
|
|
716
|
-
* access request list requested
|
|
717
|
-
*/
|
|
718
|
-
export declare function findAccessRequestRequestedStatus({ environmentId }: {
|
|
719
|
-
environmentId: string;
|
|
720
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiAccessRequestResponse[]>;
|
|
721
|
-
/**
|
|
722
|
-
* Access request list history
|
|
723
|
-
*/
|
|
724
|
-
export declare function findAccessRequestRequestedHistory({ environmentId }: {
|
|
725
|
-
environmentId: string;
|
|
726
|
-
}, opts?: Oazapfts.RequestOpts): Promise<CatalogApiAccessRequestResponse[]>;
|
|
727
|
-
/**
|
|
728
|
-
* Get allowed environments
|
|
729
|
-
*/
|
|
730
|
-
export declare function getEnvironmentsByAccountId({ accountId }: {
|
|
731
|
-
accountId: string;
|
|
732
|
-
}, opts?: Oazapfts.RequestOpts): Promise<EnvironmentResponse[]>;
|
|
733
|
-
/**
|
|
734
|
-
* Get health status
|
|
735
|
-
*/
|
|
736
|
-
export declare function healthz(opts?: Oazapfts.RequestOpts): Promise<HealthzResponse>;
|
|
737
|
-
//# sourceMappingURL=serviceCatalog.d.ts.map
|