@stack-spot/portal-network 0.25.0 → 0.27.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 +14 -0
- package/dist/api/cloudAccount.d.ts +55 -2
- package/dist/api/cloudAccount.d.ts.map +1 -1
- package/dist/api/cloudAccount.js +25 -2
- package/dist/api/cloudAccount.js.map +1 -1
- package/dist/api/workflows.d.ts +22 -9
- package/dist/api/workflows.d.ts.map +1 -1
- package/dist/api/workflows.js.map +1 -1
- package/dist/client/cloud-account.d.ts +84 -0
- package/dist/client/cloud-account.d.ts.map +1 -0
- package/dist/client/cloud-account.js +100 -0
- package/dist/client/cloud-account.js.map +1 -0
- package/dist/client/content.d.ts +5 -5
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/notification.d.ts +1 -1
- package/dist/client/types.d.ts +13 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +6 -6
- package/dist/client/workflow.d.ts.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/utils/remove-authorization-param.d.ts +1 -0
- package/dist/utils/remove-authorization-param.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudAccount.ts +108 -2
- package/src/api/workflows.ts +22 -9
- package/src/client/cloud-account.ts +70 -0
- package/src/client/types.ts +15 -0
- package/src/index.ts +7 -7
- package/src/utils/remove-authorization-param.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-account.js","sourceRoot":"","sources":["../../src/client/cloud-account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,iBAAiB,EAAE,oCAAoC,EAAE,MAAM,qBAAqB,CAAA;AAC/S,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,CAAC;WAAA;IApDzD,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACzF,CAAC;CAiDF;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,EAAE,CAAA"}
|
package/dist/client/content.d.ts
CHANGED
|
@@ -41,13 +41,13 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
41
41
|
aclOnly?: boolean | undefined;
|
|
42
42
|
filter?: string | undefined;
|
|
43
43
|
isAccountHolder?: boolean | undefined;
|
|
44
|
-
}, "authorization"> & {}, import("../api/content.js").StudioResponse[]>;
|
|
44
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/content.js").StudioResponse[]>;
|
|
45
45
|
/**
|
|
46
46
|
* Gets all studios
|
|
47
47
|
*/
|
|
48
48
|
studiosUserHasCreatePermission: import("../network/types.js").QueryObject<Omit<{
|
|
49
49
|
authorization: string;
|
|
50
|
-
}, "authorization"> & {}, import("../api/content.js").StudioSummaryResponse[]>;
|
|
50
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/content.js").StudioSummaryResponse[]>;
|
|
51
51
|
/**
|
|
52
52
|
* Gets a studio
|
|
53
53
|
*/
|
|
@@ -62,7 +62,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
62
62
|
createStudio: import("../network/types.js").MutationObject<Omit<{
|
|
63
63
|
authorization: string;
|
|
64
64
|
createStudioRequest: import("../api/content.js").CreateStudioRequest;
|
|
65
|
-
}, "authorization"> & {}, import("../api/content.js").CreateStudioResponse>;
|
|
65
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/content.js").CreateStudioResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* Updates a studio
|
|
68
68
|
*/
|
|
@@ -281,7 +281,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
281
281
|
stackVersionId: string;
|
|
282
282
|
authorization: string;
|
|
283
283
|
deprecateContentRequest: import("../api/content.js").DeprecateContentRequest;
|
|
284
|
-
}, "authorization"> & {}, unknown>;
|
|
284
|
+
}, "jwtToken" | "authorization"> & {}, unknown>;
|
|
285
285
|
/**
|
|
286
286
|
* Delete a stack version of type draft or unpublish
|
|
287
287
|
*/
|
|
@@ -296,7 +296,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
296
296
|
pluginVersionId: string;
|
|
297
297
|
authorization: string;
|
|
298
298
|
deprecateContentRequest: import("../api/content.js").DeprecateContentRequest;
|
|
299
|
-
}, "authorization"> & {}, unknown>;
|
|
299
|
+
}, "jwtToken" | "authorization"> & {}, unknown>;
|
|
300
300
|
/**
|
|
301
301
|
* Delete a Plugin version of type draft or unpublish
|
|
302
302
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/client/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,aAAc,SAAQ,uBAAuB;;IAKjD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,YAAY;;mDAAsC;IAClD;;OAEG;IACH,cAAc;;;8CAAyB;IACvC;;OAEG;IACH,mBAAmB;;;gBAA4B;IAC/C;;OAEG;IACH,oBAAoB;;;oDAAuC;IAC3D;;OAEG;IACH,OAAO;;;;;;;
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/client/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,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mC;IACrD;;OAEG;IACH,2BAA2B;;;;;wEAAwD;IACnF;;OAEG;IACH,yBAAyB;;;;;sEAA0C;IACnE;;OAEG;IACH,kCAAkC;;;;;kFAAsD;IACxF;;OAEG;IACH,sBAAsB;;;;;gEAAwC;IAC9D;;OAEG;IACH,+BAA+B;;;;;+EAAwC;IACvE;;OAEG;IACH,sBAAsB;;;;uEAAwC;IAC9D;;OAEG;IACH,yBAAyB;;kEAAuC;IAChE;;OAEG;IACH,yBAAyB;;mEAA2C;IACpE;;OAEG;IACH,qBAAqB;;;;oDAAmE;IACxF;;OAEG;IACH,kBAAkB;;;4DAAwD;IAC1E;;OAEG;IACH,sBAAsB;;;;oDAAkE;IACxF;;OAEG;IACH,mBAAmB;;;gBAAqC;CACzD;AAED,eAAO,MAAM,aAAa,eAAsB,CAAA"}
|
|
@@ -11,7 +11,7 @@ declare class NotificationClient extends ReactQueryNetworkClient {
|
|
|
11
11
|
size?: number | undefined;
|
|
12
12
|
page?: number | undefined;
|
|
13
13
|
createdSince?: number | undefined;
|
|
14
|
-
context?: "
|
|
14
|
+
context?: "STUDIO" | "ACCOUNT" | "WORKSPACE" | "AI" | undefined;
|
|
15
15
|
criticality?: "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
16
16
|
content?: string | undefined;
|
|
17
17
|
committed?: boolean | undefined;
|
package/dist/client/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RequestOpts } from '@oazapfts/runtime';
|
|
2
2
|
import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatusResponse } from '../api/account.js';
|
|
3
|
+
import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount.js';
|
|
3
4
|
import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices.js';
|
|
4
5
|
interface BaseSMCStatus {
|
|
5
6
|
/**
|
|
@@ -83,6 +84,18 @@ interface FixedServiceResource extends Omit<ServiceResource, 'id'> {
|
|
|
83
84
|
export interface FixedManagedService extends Omit<ManagedService, 'resources'> {
|
|
84
85
|
resources: FixedServiceResource[];
|
|
85
86
|
}
|
|
87
|
+
export interface FixedConnectAccountRequestV2 extends ConnectAccountRequestV2 {
|
|
88
|
+
credential?: {
|
|
89
|
+
iamRole?: string;
|
|
90
|
+
clientId: string;
|
|
91
|
+
clientSecret: string;
|
|
92
|
+
tenantId: string;
|
|
93
|
+
subscriptionId: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export interface FixedManagedAccountProvisionRequest extends Omit<ManagedAccountProvisionRequest, 'workspaceId'> {
|
|
97
|
+
workspaceId: string;
|
|
98
|
+
}
|
|
86
99
|
export type OazapftsFunction<Variables = any, Result = any> = (variables: Variables, opts?: RequestOpts) => Promise<Result>;
|
|
87
100
|
type Unpromisify<T> = T extends Promise<infer R> ? Unpromisify<R> : T;
|
|
88
101
|
export type FixVariables<T extends OazapftsFunction, Fix extends Record<string, any>> = OazapftsFunction<Omit<Parameters<T>[0], keyof Fix> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACjH,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,YAAY,EAAE,wBAAwB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE7J,UAAU,aAAa;IACrB;;;;;OAKG;IACH,MAAM,EAAE,iBAAiB,GAAG,cAAc,GAAG,OAAO,CAAC;CACtD;AAED,UAAU,cAAe,SAAQ,aAAa,EAAE,wBAAwB;IACtE,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,gBAAiB,SAAQ,aAAa;IAC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CAAC,CAAA;AAErE,MAAM,MAAM,YAAY,CACtB,CAAC,SAAS,gBAAgB,EAC1B,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAC7B,gBAAgB,CAClB,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;CAAE,EACpG,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAC3B,CAAA;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA"}
|
|
@@ -12,7 +12,7 @@ declare class WorkflowClient extends ReactQueryNetworkClient {
|
|
|
12
12
|
stackspotCustomerIp?: string | undefined;
|
|
13
13
|
xExecutionId?: string | null | undefined;
|
|
14
14
|
runActionRequest: import("../api/workflows.js").RunActionRequest;
|
|
15
|
-
}, "authorization"> & {}, import("../api/workflows.js").WorkflowResponse>;
|
|
15
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/workflows.js").WorkflowResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* Creates an api
|
|
18
18
|
*/
|
|
@@ -28,14 +28,14 @@ declare class WorkflowClient extends ReactQueryNetworkClient {
|
|
|
28
28
|
executionStatus: import("../network/types.js").QueryObject<Omit<{
|
|
29
29
|
executionId: string;
|
|
30
30
|
authorization: string;
|
|
31
|
-
}, "authorization"> & {}, import("../api/workflows.js").ExecutionResponse>;
|
|
31
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/workflows.js").ExecutionResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* Gets the execution dispatch service
|
|
34
34
|
*/
|
|
35
35
|
executionDispatchInfo: import("../network/types.js").QueryObject<Omit<{
|
|
36
36
|
executionId: string;
|
|
37
37
|
authorization: string;
|
|
38
|
-
}, "authorization"> & {}, any>;
|
|
38
|
+
}, "jwtToken" | "authorization"> & {}, any>;
|
|
39
39
|
/**
|
|
40
40
|
* Gets the health check of an execution id
|
|
41
41
|
*/
|
|
@@ -44,14 +44,14 @@ declare class WorkflowClient extends ReactQueryNetworkClient {
|
|
|
44
44
|
stackspotCustomerIp?: string | undefined;
|
|
45
45
|
xExecutionId?: string | null | undefined;
|
|
46
46
|
body?: import("../api/workflows.js").HealthCheckRequest | null | undefined;
|
|
47
|
-
}, "authorization"> & {}, import("../api/workflows.js").WorkflowResponse>;
|
|
47
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/workflows.js").WorkflowResponse>;
|
|
48
48
|
/**
|
|
49
49
|
* Get data about the workflow plus a graph representation of its jobs.
|
|
50
50
|
*/
|
|
51
51
|
graph: import("../network/types.js").QueryObject<Omit<{
|
|
52
52
|
executionId: string;
|
|
53
53
|
authorization: string;
|
|
54
|
-
}, "authorization"> & {}, import("../api/workflows.js").GetWorkflowExecutionJobGraphResponse>;
|
|
54
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/workflows.js").GetWorkflowExecutionJobGraphResponse>;
|
|
55
55
|
/**
|
|
56
56
|
* Gets the steps of a workflow job.
|
|
57
57
|
*/
|
|
@@ -59,7 +59,7 @@ declare class WorkflowClient extends ReactQueryNetworkClient {
|
|
|
59
59
|
executionId: string;
|
|
60
60
|
jobId: string;
|
|
61
61
|
authorization: string;
|
|
62
|
-
}, "authorization"> & {}, import("../api/workflows.js").WorkflowJobDetailResponse>;
|
|
62
|
+
}, "jwtToken" | "authorization"> & {}, import("../api/workflows.js").WorkflowJobDetailResponse>;
|
|
63
63
|
}
|
|
64
64
|
export declare const workflowClient: WorkflowClient;
|
|
65
65
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/client/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,cAAe,SAAQ,uBAAuB;;IAKlD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,SAAS;;;;;
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/client/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,cAAe,SAAQ,uBAAuB;;IAKlD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,SAAS;;;;;wFAA0F;IAEnG;;OAEG;IACH,SAAS;;;;;oDAAgE;IAEzE;;OAEG;IACH,eAAe;;;yFAAwG;IAEvH;;OAEG;IACH,qBAAqB;;;gDAAyG;IAE9H;;OAEG;IACH,oBAAoB;;;;;wFAA8F;IAElH;;OAEG;IACH,KAAK;;;4GAAwG;IAE7G;;OAEG;IACH,QAAQ;;;;iGAAkH;CAC3H;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export { accountClient } from './client/account.js';
|
|
2
|
+
export { cloudAccountClient } from './client/cloud-account.js';
|
|
2
3
|
export { cloudServicesClient } from './client/cloud-services.js';
|
|
3
|
-
export { secretsClient } from './client/secrets.js';
|
|
4
|
-
export { workspaceClient } from './client/workspace.js';
|
|
5
4
|
export { contentClient } from './client/content.js';
|
|
6
|
-
export { runtimeManagerClient } from './client/runtime-manager.js';
|
|
7
|
-
export { workspaceSearchClient } from './client/workspace-search.js';
|
|
8
|
-
export { workflowClient } from './client/workflow.js';
|
|
9
5
|
export { eventBusClient } from './client/event-bus.js';
|
|
10
6
|
export { notificationClient } from './client/notification.js';
|
|
7
|
+
export { runtimeManagerClient } from './client/runtime-manager.js';
|
|
8
|
+
export { secretsClient } from './client/secrets.js';
|
|
11
9
|
export * from './client/types.js';
|
|
12
|
-
export {
|
|
10
|
+
export { workflowClient } from './client/workflow.js';
|
|
11
|
+
export { workspaceClient } from './client/workspace.js';
|
|
12
|
+
export { workspaceSearchClient } from './client/workspace-search.js';
|
|
13
13
|
export { DefaultAPIError } from './error/DefaultAPIError.js';
|
|
14
14
|
export { StackspotAPIError } from './error/StackspotAPIError.js';
|
|
15
15
|
export { NetworkClient } from './network/NetworkClient.js';
|
|
16
16
|
export { queryClient } from './network/react-query-client.js';
|
|
17
|
-
export { OperationResult, OperationVariables } from './network/types.js';
|
|
17
|
+
export { OperationResult, OperationVariables, UseQueryObjectOptions } from './network/types.js';
|
|
18
18
|
export { useExtendedList } from './utils/use-extended-list.js';
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export { accountClient } from './client/account.js';
|
|
2
|
+
export { cloudAccountClient } from './client/cloud-account.js';
|
|
2
3
|
export { cloudServicesClient } from './client/cloud-services.js';
|
|
3
|
-
export { secretsClient } from './client/secrets.js';
|
|
4
|
-
export { workspaceClient } from './client/workspace.js';
|
|
5
4
|
export { contentClient } from './client/content.js';
|
|
6
|
-
export { runtimeManagerClient } from './client/runtime-manager.js';
|
|
7
|
-
export { workspaceSearchClient } from './client/workspace-search.js';
|
|
8
|
-
export { workflowClient } from './client/workflow.js';
|
|
9
5
|
export { eventBusClient } from './client/event-bus.js';
|
|
10
6
|
export { notificationClient } from './client/notification.js';
|
|
7
|
+
export { runtimeManagerClient } from './client/runtime-manager.js';
|
|
8
|
+
export { secretsClient } from './client/secrets.js';
|
|
11
9
|
export * from './client/types.js';
|
|
10
|
+
export { workflowClient } from './client/workflow.js';
|
|
11
|
+
export { workspaceClient } from './client/workspace.js';
|
|
12
|
+
export { workspaceSearchClient } from './client/workspace-search.js';
|
|
12
13
|
export { DefaultAPIError } from './error/DefaultAPIError.js';
|
|
13
14
|
export { StackspotAPIError } from './error/StackspotAPIError.js';
|
|
14
15
|
export { NetworkClient } from './network/NetworkClient.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FixVariables, OazapftsFunction } from '../client/types.js';
|
|
2
2
|
export declare function removeAuthorizationParam<T extends OazapftsFunction>(fn: T): FixVariables<T, {
|
|
3
3
|
authorization: never;
|
|
4
|
+
jwtToken: never;
|
|
4
5
|
}>;
|
|
5
6
|
//# sourceMappingURL=remove-authorization-param.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-authorization-param.d.ts","sourceRoot":"","sources":["../../src/utils/remove-authorization-param.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEhE,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,gBAAgB,EAAE,EAAE,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,EAAE;IAAE,aAAa,EAAE,KAAK,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"remove-authorization-param.d.ts","sourceRoot":"","sources":["../../src/utils/remove-authorization-param.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEhE,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,gBAAgB,EAAE,EAAE,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,EAAE;IAAE,aAAa,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAA;CAAE,CAAC,CAEtI"}
|
package/package.json
CHANGED
package/src/api/cloudAccount.ts
CHANGED
|
@@ -197,6 +197,42 @@ export type CloudAccountDetailsWithCredentialV2 = {
|
|
|
197
197
|
/** Cloud Account credential identifier for Secret Manager */
|
|
198
198
|
credentialSecretIdentifier?: string;
|
|
199
199
|
};
|
|
200
|
+
export type AdminCloudAccountDetailsV2 = {
|
|
201
|
+
/** Cloud Account ID */
|
|
202
|
+
id: string;
|
|
203
|
+
/** Stackspot Account ID */
|
|
204
|
+
stackspotAccountId: string;
|
|
205
|
+
/** Workspace ID */
|
|
206
|
+
workspaceId: string;
|
|
207
|
+
/** Environment ID */
|
|
208
|
+
environmentId: string;
|
|
209
|
+
/** Environment Name (only available in CloudServices accounts ) */
|
|
210
|
+
environmentName?: string;
|
|
211
|
+
/** Cloud Provider that Cloud Account represents */
|
|
212
|
+
provider: "AWS" | "Azure";
|
|
213
|
+
/** Type of the Cloud Account (Custom Cloud or Cloud Services) */
|
|
214
|
+
"type": "CustomCloud" | "CloudServices";
|
|
215
|
+
/** Status of this Cloud Account. Connected indicates it's ready to use, others status are self explained */
|
|
216
|
+
status: "Connecting" | "Connected" | "Disconnected" | "Failed" | "Unknown";
|
|
217
|
+
/** The ID this account have in Cloud Provider */
|
|
218
|
+
cloudProviderAccountId?: string;
|
|
219
|
+
/** The name given in Cloud Provider for this account (only available in CloudServices accounts) */
|
|
220
|
+
cloudProviderAccountName?: string;
|
|
221
|
+
/** Linked Account ID */
|
|
222
|
+
linkedAccountId?: string;
|
|
223
|
+
/** This Cloud Account credentials secret manager */
|
|
224
|
+
credentialSecretIdentifier?: string;
|
|
225
|
+
/** ID of the Control Tower that Cloud Account is connected */
|
|
226
|
+
controlTowerId?: string;
|
|
227
|
+
/** Region of the Cloud Account provider */
|
|
228
|
+
region?: string;
|
|
229
|
+
};
|
|
230
|
+
export type PaginatedResponseAdminCloudAccountDetailsV2 = {
|
|
231
|
+
data: AdminCloudAccountDetailsV2[];
|
|
232
|
+
nextPage?: string;
|
|
233
|
+
prevPage?: string;
|
|
234
|
+
count: number;
|
|
235
|
+
};
|
|
200
236
|
export type HealthComponent = {
|
|
201
237
|
description?: string;
|
|
202
238
|
status?: string;
|
|
@@ -717,6 +753,76 @@ export function getCloudAccountByWorkspace({ jwtToken, accountId, id }: {
|
|
|
717
753
|
})
|
|
718
754
|
}));
|
|
719
755
|
}
|
|
756
|
+
/**
|
|
757
|
+
* Get Cloud Account data with details
|
|
758
|
+
*/
|
|
759
|
+
export function getCloudAccount({ stackspotAccountId, workspaceId, environmentId, provider, $type, status }: {
|
|
760
|
+
stackspotAccountId?: string;
|
|
761
|
+
workspaceId?: string;
|
|
762
|
+
environmentId?: string;
|
|
763
|
+
provider?: "AWS" | "Azure";
|
|
764
|
+
$type?: "CustomCloud" | "CloudServices";
|
|
765
|
+
status?: "Connecting" | "Connected" | "Disconnected" | "Failed" | "Unknown";
|
|
766
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
767
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
768
|
+
status: 200;
|
|
769
|
+
data: PaginatedResponseAdminCloudAccountDetailsV2;
|
|
770
|
+
} | {
|
|
771
|
+
status: 422;
|
|
772
|
+
data: {
|
|
773
|
+
code: string;
|
|
774
|
+
status: number;
|
|
775
|
+
details: string;
|
|
776
|
+
validationDetails?: ValidationDetails[];
|
|
777
|
+
};
|
|
778
|
+
} | {
|
|
779
|
+
status: 500;
|
|
780
|
+
data: {
|
|
781
|
+
code: string;
|
|
782
|
+
status: number;
|
|
783
|
+
details: string;
|
|
784
|
+
validationDetails?: ValidationDetails[];
|
|
785
|
+
};
|
|
786
|
+
}>(`/v2/admin/cloud-account${QS.query(QS.explode({
|
|
787
|
+
stackspotAccountId,
|
|
788
|
+
workspaceId,
|
|
789
|
+
environmentId,
|
|
790
|
+
provider,
|
|
791
|
+
"type": $type,
|
|
792
|
+
status
|
|
793
|
+
}))}`, {
|
|
794
|
+
...opts
|
|
795
|
+
}));
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Get Cloud Account by ID
|
|
799
|
+
*/
|
|
800
|
+
export function getCloudAccountById({ cloudAccountId }: {
|
|
801
|
+
cloudAccountId: string;
|
|
802
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
803
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
804
|
+
status: 200;
|
|
805
|
+
data: AdminCloudAccountDetailsV2;
|
|
806
|
+
} | {
|
|
807
|
+
status: 422;
|
|
808
|
+
data: {
|
|
809
|
+
code: string;
|
|
810
|
+
status: number;
|
|
811
|
+
details: string;
|
|
812
|
+
validationDetails?: ValidationDetails[];
|
|
813
|
+
};
|
|
814
|
+
} | {
|
|
815
|
+
status: 500;
|
|
816
|
+
data: {
|
|
817
|
+
code: string;
|
|
818
|
+
status: number;
|
|
819
|
+
details: string;
|
|
820
|
+
validationDetails?: ValidationDetails[];
|
|
821
|
+
};
|
|
822
|
+
}>(`/v2/admin/cloud-account/${encodeURIComponent(cloudAccountId)}`, {
|
|
823
|
+
...opts
|
|
824
|
+
}));
|
|
825
|
+
}
|
|
720
826
|
export function healthz(opts?: Oazapfts.RequestOpts) {
|
|
721
827
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
722
828
|
status: 200;
|
|
@@ -958,7 +1064,7 @@ export function getManagedCloudRegion(opts?: Oazapfts.RequestOpts) {
|
|
|
958
1064
|
/**
|
|
959
1065
|
* Get Cloud Account data with details
|
|
960
1066
|
*/
|
|
961
|
-
export function
|
|
1067
|
+
export function getCloudAccount1({ stackspotAccountId, workspaceId, environmentId, provider, $type, status }: {
|
|
962
1068
|
stackspotAccountId?: string;
|
|
963
1069
|
workspaceId?: string;
|
|
964
1070
|
environmentId?: string;
|
|
@@ -999,7 +1105,7 @@ export function getCloudAccount({ stackspotAccountId, workspaceId, environmentId
|
|
|
999
1105
|
/**
|
|
1000
1106
|
* Get Cloud Account by ID
|
|
1001
1107
|
*/
|
|
1002
|
-
export function
|
|
1108
|
+
export function getCloudAccountById1({ cloudAccountId }: {
|
|
1003
1109
|
cloudAccountId: string;
|
|
1004
1110
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1005
1111
|
return oazapfts.ok(oazapfts.fetchJson<{
|
package/src/api/workflows.ts
CHANGED
|
@@ -279,10 +279,12 @@ export type WorkspaceRequest = {
|
|
|
279
279
|
export type CreateWorkflowExecutionRequest = {
|
|
280
280
|
workspace: WorkspaceRequest;
|
|
281
281
|
};
|
|
282
|
+
export type WorkflowExecutionStatus = "pending" | "in_progress" | "completed" | "suspended";
|
|
283
|
+
export type WorkflowExecutionConclusion = "error" | "success" | "skipped" | "canceled";
|
|
282
284
|
export type WorkflowExecutionResponse = {
|
|
283
285
|
id: string;
|
|
284
|
-
status:
|
|
285
|
-
conclusion:
|
|
286
|
+
status: WorkflowExecutionStatus;
|
|
287
|
+
conclusion: WorkflowExecutionConclusion | null;
|
|
286
288
|
};
|
|
287
289
|
export type WorkflowType = "starter" | "deploy" | "rollback" | "destroy";
|
|
288
290
|
export type StepWorkflowRequest = {
|
|
@@ -307,19 +309,29 @@ export type StepPluginRequest = {
|
|
|
307
309
|
[key: string]: any | null;
|
|
308
310
|
};
|
|
309
311
|
};
|
|
312
|
+
export type StepSuspendRequest = {
|
|
313
|
+
"type": "suspend";
|
|
314
|
+
};
|
|
310
315
|
export type StepRequest = {
|
|
311
316
|
id: string;
|
|
312
317
|
label: string;
|
|
313
|
-
|
|
314
|
-
"type": StepWorkflowRequest | StepActionRequest | StepPluginRequest;
|
|
318
|
+
"type": StepWorkflowRequest | StepActionRequest | StepPluginRequest | StepSuspendRequest;
|
|
315
319
|
};
|
|
316
320
|
export type JobRequest = {
|
|
317
321
|
id: string;
|
|
318
322
|
label: string;
|
|
319
|
-
when: string;
|
|
320
323
|
dependsOn?: string[];
|
|
321
324
|
steps: StepRequest[];
|
|
322
325
|
};
|
|
326
|
+
export type TargetType = "app" | "infra";
|
|
327
|
+
export type TargetRequest = {
|
|
328
|
+
id: string;
|
|
329
|
+
"type": TargetType;
|
|
330
|
+
};
|
|
331
|
+
export type EnvRequest = {
|
|
332
|
+
id: string;
|
|
333
|
+
slug: string;
|
|
334
|
+
};
|
|
323
335
|
export type CreateWorkflowExecutionWorkflowRequest = {
|
|
324
336
|
name: string;
|
|
325
337
|
label: string;
|
|
@@ -328,9 +340,9 @@ export type CreateWorkflowExecutionWorkflowRequest = {
|
|
|
328
340
|
[key: string]: any | null;
|
|
329
341
|
};
|
|
330
342
|
jobs: JobRequest[];
|
|
343
|
+
targets: TargetRequest[];
|
|
344
|
+
env?: EnvRequest | null;
|
|
331
345
|
};
|
|
332
|
-
export type WorkflowExecutionStatus = "pending" | "in_progress" | "completed" | "suspended";
|
|
333
|
-
export type WorkflowExecutionConclusion = "error" | "success" | "skipped" | "canceled";
|
|
334
346
|
export type PutWorkflowExecutionWorkflowStepRequest = {
|
|
335
347
|
reference: string;
|
|
336
348
|
status: WorkflowExecutionStatus;
|
|
@@ -346,6 +358,7 @@ export type JobResponse2 = {
|
|
|
346
358
|
conclusion: WorkflowExecutionConclusion | null;
|
|
347
359
|
startedAt?: string | null;
|
|
348
360
|
completedAt?: string | null;
|
|
361
|
+
suspendMessage?: string | null;
|
|
349
362
|
};
|
|
350
363
|
export type WorkflowResponse2 = {
|
|
351
364
|
name: string;
|
|
@@ -386,13 +399,13 @@ export type StepPluginRequest2 = {
|
|
|
386
399
|
[key: string]: any | null;
|
|
387
400
|
};
|
|
388
401
|
};
|
|
389
|
-
export type
|
|
402
|
+
export type StepSuspendRequest2 = {};
|
|
390
403
|
export type StepResponse2 = {
|
|
391
404
|
label: string;
|
|
392
405
|
status: WorkflowExecutionStatus;
|
|
393
406
|
conclusion: WorkflowExecutionConclusion | null;
|
|
394
407
|
log?: string | null;
|
|
395
|
-
"type": StepWorkflowRequest2 | StepActionRequest2 | StepPluginRequest2 |
|
|
408
|
+
"type": StepWorkflowRequest2 | StepActionRequest2 | StepPluginRequest2 | StepSuspendRequest2;
|
|
396
409
|
startedAt?: string | null;
|
|
397
410
|
completedAt?: string | null;
|
|
398
411
|
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
+
import { createCloudAccount, defaults, deleteCloudAccountFromEnvironment, deleteManagedAccountsFromWorkspace, getCloudAccountByWorkspace, getManagedCloudRegion, getManagedCloudTemplate, getProvisionWorkflowInWorkspace, listCloudAccounts, provisionManagedAccountsForWorkspace } from '../api/cloudAccount'
|
|
3
|
+
import apis from '../apis.json'
|
|
4
|
+
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
|
+
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
8
|
+
import { FixedConnectAccountRequestV2, FixedManagedAccountProvisionRequest, FixVariables } from './types'
|
|
9
|
+
|
|
10
|
+
const listAccounts = removeAuthorizationParam(listCloudAccounts)
|
|
11
|
+
|
|
12
|
+
class CloudAccountClient extends ReactQueryNetworkClient {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(apis.cloudAccount.url, defaults)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
18
|
+
return new DefaultAPIError(error.data, error.status, { en: {}, pt: {} }, error.headers)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Lists all cloud accounts according to the parameters (paginated).
|
|
23
|
+
*/
|
|
24
|
+
cloudAccounts = this.infiniteQuery(listAccounts, {
|
|
25
|
+
accumulator: 'data',
|
|
26
|
+
getNextPageParam: ({ lastPage }) => lastPage.nextPage,
|
|
27
|
+
})
|
|
28
|
+
/**
|
|
29
|
+
* Gets a list of cloud accounts connected to a workspace
|
|
30
|
+
*/
|
|
31
|
+
cloudAccountByWorkspace = this.query(removeAuthorizationParam(getCloudAccountByWorkspace))
|
|
32
|
+
/**
|
|
33
|
+
* Gets the cloud account workflow of a workspace environment
|
|
34
|
+
*/
|
|
35
|
+
workflowByWorkspace = this.query(removeAuthorizationParam(getProvisionWorkflowInWorkspace))
|
|
36
|
+
/**
|
|
37
|
+
* Creates a cloud account.
|
|
38
|
+
*/
|
|
39
|
+
createCloudAccount = this.mutation(
|
|
40
|
+
createCloudAccount as FixVariables<
|
|
41
|
+
typeof createCloudAccount,
|
|
42
|
+
{ jwtToken: never, connectAccountRequestV2: FixedConnectAccountRequestV2 }
|
|
43
|
+
>,
|
|
44
|
+
)
|
|
45
|
+
/**
|
|
46
|
+
* Deletes a cloud account.
|
|
47
|
+
*/
|
|
48
|
+
deleteCloudAccount = this.mutation(removeAuthorizationParam(deleteCloudAccountFromEnvironment))
|
|
49
|
+
/**
|
|
50
|
+
* Deletes all accounts in a workspace.
|
|
51
|
+
*/
|
|
52
|
+
deleteAllCloudAccounts = this.mutation(removeAuthorizationParam(deleteManagedAccountsFromWorkspace))
|
|
53
|
+
/**
|
|
54
|
+
* Provisions managed accounts in a workspace.
|
|
55
|
+
*/
|
|
56
|
+
createCloudServicesAccount = this.mutation(provisionManagedAccountsForWorkspace as unknown as FixVariables<
|
|
57
|
+
typeof provisionManagedAccountsForWorkspace,
|
|
58
|
+
{ jwtToken: never, managedAccountProvisionRequest: FixedManagedAccountProvisionRequest }
|
|
59
|
+
>)
|
|
60
|
+
/**
|
|
61
|
+
* Gets all available templates for the managed Cloud Account.
|
|
62
|
+
*/
|
|
63
|
+
managedAccountTemplates = this.query(getManagedCloudTemplate)
|
|
64
|
+
/**
|
|
65
|
+
* Gets all the available regions for the managed Cloud Account.
|
|
66
|
+
*/
|
|
67
|
+
managesAccountRegions = this.query(getManagedCloudRegion)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const cloudAccountClient = new CloudAccountClient()
|
package/src/client/types.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RequestOpts } from '@oazapfts/runtime'
|
|
2
2
|
import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatusResponse } from '../api/account'
|
|
3
|
+
import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount'
|
|
3
4
|
import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices'
|
|
4
5
|
|
|
5
6
|
interface BaseSMCStatus {
|
|
@@ -101,6 +102,20 @@ export interface FixedManagedService extends Omit<ManagedService, 'resources'> {
|
|
|
101
102
|
resources: FixedServiceResource[],
|
|
102
103
|
}
|
|
103
104
|
|
|
105
|
+
export interface FixedConnectAccountRequestV2 extends ConnectAccountRequestV2 {
|
|
106
|
+
credential?: {
|
|
107
|
+
iamRole?: string,
|
|
108
|
+
clientId: string,
|
|
109
|
+
clientSecret: string,
|
|
110
|
+
tenantId: string,
|
|
111
|
+
subscriptionId: string,
|
|
112
|
+
},
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface FixedManagedAccountProvisionRequest extends Omit<ManagedAccountProvisionRequest, 'workspaceId'> {
|
|
116
|
+
workspaceId: string,
|
|
117
|
+
}
|
|
118
|
+
|
|
104
119
|
export type OazapftsFunction<Variables = any, Result = any> = (variables: Variables, opts?: RequestOpts) => Promise<Result>
|
|
105
120
|
|
|
106
121
|
type Unpromisify<T> = T extends Promise<infer R> ? Unpromisify<R> : T
|
package/src/index.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export { accountClient } from './client/account'
|
|
2
|
+
export { cloudAccountClient } from './client/cloud-account'
|
|
2
3
|
export { cloudServicesClient } from './client/cloud-services'
|
|
3
|
-
export { secretsClient } from './client/secrets'
|
|
4
|
-
export { workspaceClient } from './client/workspace'
|
|
5
4
|
export { contentClient } from './client/content'
|
|
6
|
-
export { runtimeManagerClient } from './client/runtime-manager'
|
|
7
|
-
export { workspaceSearchClient } from './client/workspace-search'
|
|
8
|
-
export { workflowClient } from './client/workflow'
|
|
9
5
|
export { eventBusClient } from './client/event-bus'
|
|
10
6
|
export { notificationClient } from './client/notification'
|
|
7
|
+
export { runtimeManagerClient } from './client/runtime-manager'
|
|
8
|
+
export { secretsClient } from './client/secrets'
|
|
11
9
|
export * from './client/types'
|
|
12
|
-
export {
|
|
10
|
+
export { workflowClient } from './client/workflow'
|
|
11
|
+
export { workspaceClient } from './client/workspace'
|
|
12
|
+
export { workspaceSearchClient } from './client/workspace-search'
|
|
13
13
|
export { DefaultAPIError } from './error/DefaultAPIError'
|
|
14
14
|
export { StackspotAPIError } from './error/StackspotAPIError'
|
|
15
15
|
export { NetworkClient } from './network/NetworkClient'
|
|
16
16
|
export { queryClient } from './network/react-query-client'
|
|
17
|
-
export { OperationResult, OperationVariables } from './network/types'
|
|
17
|
+
export { OperationResult, OperationVariables, UseQueryObjectOptions } from './network/types'
|
|
18
18
|
export { useExtendedList } from './utils/use-extended-list'
|
|
19
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FixVariables, OazapftsFunction } from '../client/types'
|
|
2
2
|
|
|
3
|
-
export function removeAuthorizationParam<T extends OazapftsFunction>(fn: T): FixVariables<T, { authorization: never }> {
|
|
3
|
+
export function removeAuthorizationParam<T extends OazapftsFunction>(fn: T): FixVariables<T, { authorization: never, jwtToken: never }> {
|
|
4
4
|
return fn
|
|
5
5
|
}
|