@stack-spot/portal-network 0.199.0-beta.1 → 0.200.0-beta.1
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 +55 -1
- package/dist/api/account.d.ts +331 -89
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +203 -46
- package/dist/api/account.js.map +1 -1
- package/dist/api/accountAssetManager.d.ts +279 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -0
- package/dist/api/accountAssetManager.js +167 -0
- package/dist/api/accountAssetManager.js.map +1 -0
- package/dist/api/agent-tools.d.ts +2 -0
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +2 -3
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js.map +1 -1
- package/dist/api/discover.d.ts +9 -6
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +5 -5
- package/dist/api/discover.js.map +1 -1
- package/dist/api/edpBfa.d.ts +215 -0
- package/dist/api/edpBfa.d.ts.map +1 -0
- package/dist/api/edpBfa.js +87 -0
- package/dist/api/edpBfa.js.map +1 -0
- package/dist/api-addresses.d.ts +11 -20
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +31 -17
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +16 -0
- package/dist/apis.json +16 -0
- package/dist/client/account-asset-manager.d.ts +110 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -0
- package/dist/client/account-asset-manager.js +160 -0
- package/dist/client/account-asset-manager.js.map +1 -0
- package/dist/client/account.d.ts +11 -9
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +11 -8
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +2 -2
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +2 -1
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts +24 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +19 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +8 -1
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +2 -2
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js.map +1 -1
- package/dist/client/edp-bfa.d.ts +16 -0
- package/dist/client/edp-bfa.d.ts.map +1 -0
- package/dist/client/edp-bfa.js +24 -0
- package/dist/client/edp-bfa.js.map +1 -0
- package/dist/client/notification.d.ts +7 -0
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +10 -1
- package/dist/client/notification.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +15 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +19 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
- package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
- package/dist/error/dictionary/accountAssetManager.js +11 -0
- package/dist/error/dictionary/accountAssetManager.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +579 -163
- package/src/api/accountAssetManager.ts +655 -0
- package/src/api/agent-tools.ts +2 -0
- package/src/api/ai.ts +2 -3
- package/src/api/discover.ts +10 -10
- package/src/api/edpBfa.ts +472 -0
- package/src/api-addresses.ts +56 -37
- package/src/apis-itau.json +16 -0
- package/src/apis.json +16 -0
- package/src/client/account-asset-manager.ts +100 -0
- package/src/client/account.ts +11 -7
- package/src/client/agent-tools.ts +2 -1
- package/src/client/ai.ts +10 -0
- package/src/client/data-integration.ts +9 -2
- package/src/client/discover.ts +2 -2
- package/src/client/edp-bfa.ts +24 -0
- package/src/client/notification.ts +6 -1
- package/src/client/workspace-manager.ts +13 -0
- package/src/error/dictionary/accountAssetManager.ts +12 -0
- package/src/index.ts +4 -1
- package/src/network/NetworkClient.ts +1 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EDP Backend for Agent
|
|
3
|
+
* 0.0.1
|
|
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
|
+
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
+
export const defaults = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "https://adp-development-edp-bfa.prd.stackspot.com",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {
|
|
15
|
+
generatedServerUrl: "https://adp-development-edp-bfa.prd.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Dispara a execução de um workflow em um workspace
|
|
19
|
+
*/
|
|
20
|
+
export function executeWorkflow({ workspaceId, workflowId, workflowExecutionRequestV2 }, opts) {
|
|
21
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/executions`, oazapfts.json({
|
|
22
|
+
...opts,
|
|
23
|
+
method: "POST",
|
|
24
|
+
body: workflowExecutionRequestV2
|
|
25
|
+
})));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Dispara a execução de um workflow do tipo spec
|
|
29
|
+
*/
|
|
30
|
+
export function executeSpecWorkflow({ workflowSpecExecutionRequest }, opts) {
|
|
31
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/workflows/executions/spec", oazapfts.json({
|
|
32
|
+
...opts,
|
|
33
|
+
method: "POST",
|
|
34
|
+
body: workflowSpecExecutionRequest
|
|
35
|
+
})));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Dispara a execução de um workflow de geração de código
|
|
39
|
+
*/
|
|
40
|
+
export function executeCodeWorkflow({ workflowCodeExecutionRequest }, opts) {
|
|
41
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/workflows/executions/code", oazapfts.json({
|
|
42
|
+
...opts,
|
|
43
|
+
method: "POST",
|
|
44
|
+
body: workflowCodeExecutionRequest
|
|
45
|
+
})));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Lista os workspaces disponíveis para o usuário autenticado
|
|
49
|
+
*/
|
|
50
|
+
export function listWorkspaces({ page, pageSize }, opts) {
|
|
51
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces${QS.query(QS.explode({
|
|
52
|
+
page,
|
|
53
|
+
pageSize
|
|
54
|
+
}))}`, {
|
|
55
|
+
...opts
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Obtém detalhes de um workspace específico
|
|
60
|
+
*/
|
|
61
|
+
export function getWorkspace({ workspaceId }, opts) {
|
|
62
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
63
|
+
...opts
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Lista workflows do workspace
|
|
68
|
+
*/
|
|
69
|
+
export function listWorkflows({ workspaceId }, opts) {
|
|
70
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows`, {
|
|
71
|
+
...opts
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Obtém detalhes de uma execução de workflow. Use o executionnId retornado pelo serviço execução do workflow para consultar o status da execução.
|
|
76
|
+
*/
|
|
77
|
+
export function getWorkflowExecution({ executionId }, opts) {
|
|
78
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workflows/executions/${encodeURIComponent(executionId)}`, {
|
|
79
|
+
...opts
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
export function healthz(opts) {
|
|
83
|
+
return oazapfts.ok(oazapfts.fetchJson("/healthz", {
|
|
84
|
+
...opts
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=edpBfa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edpBfa.js","sourceRoot":"","sources":["../../src/api/edpBfa.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC9C,MAAM,CAAC,MAAM,QAAQ,GAA8C;IAC/D,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mDAAmD;CAC/D,CAAC;AACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,kBAAkB,EAAE,mDAAmD;CAC1E,CAAC;AA4JF;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,0BAA0B,EAIpF,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CA2BlC,kBAAkB,kBAAkB,CAAC,WAAW,CAAC,cAAc,kBAAkB,CAAC,UAAU,CAAC,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC;QACzH,GAAG,IAAI;QACP,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,0BAA0B;KACnC,CAAC,CAAC,CAAC,CAAC;AACT,CAAC;AACD;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAAE,4BAA4B,EAEjE,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CA2BlC,+BAA+B,EAAE,QAAQ,CAAC,IAAI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AoB,CAAC,EAAE,WAAW,EAEjD,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CA2BlC,4BAA4B,kBAAkB,CAAC,WAAW,CAAC,EAAE,EAAE;QAC9D,GAAG,IAAI;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AACD,MAAM,UAAU,OAAO,CAAC,IAA2B;IAC/C,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CA+BlC,UAAU,EAAE;QACX,GAAG,IAAI;KACV,CAAC,CAAC,CAAC;AACR,CAAC"}
|
package/dist/api-addresses.d.ts
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import apisJson from './apis.json';
|
|
2
2
|
import { Env, Tenant } from './network/types.js';
|
|
3
3
|
type ApisKeys = keyof typeof apisJson;
|
|
4
|
+
declare global {
|
|
5
|
+
interface ImportMeta {
|
|
6
|
+
readonly env: {
|
|
7
|
+
VITE_NETWORK_OVERRIDES: string;
|
|
8
|
+
DEV: boolean;
|
|
9
|
+
PROD: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
4
13
|
type ApiConfig = {
|
|
5
14
|
url: Record<Env, string>;
|
|
6
15
|
docs?: string;
|
|
7
16
|
};
|
|
8
|
-
type PartialApiConfig = {
|
|
9
|
-
url: Partial<Record<Env, string>>;
|
|
10
|
-
docs?: string;
|
|
11
|
-
};
|
|
12
17
|
type Apis = Record<ApisKeys, ApiConfig>;
|
|
13
|
-
type
|
|
14
|
-
type ApiAddress = {
|
|
15
|
-
[api: string]: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Returns the API catalog for the given tenant.
|
|
19
|
-
*
|
|
20
|
-
* @param tenant The current tenant (e.g., 'stackspot', 'itau').
|
|
21
|
-
* @returns API catalog containing the URLs per environment.
|
|
22
|
-
*/
|
|
23
|
-
export declare function getApisByTenant(tenant: Tenant): Apis;
|
|
18
|
+
type ApiAddress = Record<ApisKeys, string>;
|
|
24
19
|
/**
|
|
25
20
|
* Returns the base URL for the given environment and tenant, applying any overrides if available
|
|
26
21
|
*
|
|
@@ -30,11 +25,7 @@ export declare function getApisByTenant(tenant: Tenant): Apis;
|
|
|
30
25
|
* @returns {string} the base URL for the given environment and tenant, applying any overrides if available.
|
|
31
26
|
*/
|
|
32
27
|
export declare const getBaseUrlByTenantWithOverride: (baseUrl: Record<Env, string>, targetEnv?: Env, tenant?: Tenant) => string;
|
|
33
|
-
|
|
34
|
-
* Sets the APIs addresses for override.
|
|
35
|
-
* @param customApis a JSON object containing APIs address to override.
|
|
36
|
-
*/
|
|
37
|
-
export declare const setApisOverride: (customApis: PartialApis) => void;
|
|
28
|
+
export declare const getApisBaseUrlConfig: (env?: Env, tenant?: Tenant) => ApiAddress;
|
|
38
29
|
/**
|
|
39
30
|
* Sets the default APIs addresses for each environments.
|
|
40
31
|
* @returns {Apis} an object containing APIs URLs grouped by api name and enviroments.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-addresses.d.ts","sourceRoot":"","sources":["../src/api-addresses.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,aAAa,CAAwB;AAE1D,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,KAAK,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAEtC,
|
|
1
|
+
{"version":3,"file":"api-addresses.d.ts","sourceRoot":"","sources":["../src/api-addresses.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,aAAa,CAAwB;AAE1D,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,KAAK,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB,QAAQ,CAAC,GAAG,EAAE;YACZ,sBAAsB,EAAE,MAAM,CAAC;YAC/B,GAAG,EAAE,OAAO,CAAC;YACb,IAAI,EAAE,OAAO,CAAC;SACf,CAAC;KACH;CACF;AAED,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAED,KAAK,IAAI,GAAG,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAExC,KAAK,UAAU,GAAG,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;AA6D1C;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GAAI,SAAS,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,YAAW,GAAW,EACjG,SAAQ,MAAoB,KAAG,MAgBhC,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,MAAK,GAAW,EAAE,SAAQ,MAAoB,KAAG,UAcrF,CAAA;AAGD;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,IAAmB,CAAA;AAEtD,eAAO,MAAM,YAAY,kBAGxB,CAAA"}
|
package/dist/api-addresses.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import apisItauJson from './apis-itau.json' assert { type: 'json' };
|
|
2
2
|
import apisJson from './apis.json' assert { type: 'json' };
|
|
3
3
|
import { NetworkClient } from './network/NetworkClient.js';
|
|
4
|
-
|
|
5
|
-
let overrideApis = {};
|
|
4
|
+
const defaultApis = apisJson;
|
|
6
5
|
const apis = {
|
|
7
6
|
'stackspot': apisJson,
|
|
8
7
|
'itau': apisItauJson,
|
|
@@ -13,7 +12,7 @@ const apis = {
|
|
|
13
12
|
* @param tenant The current tenant (e.g., 'stackspot', 'itau').
|
|
14
13
|
* @returns API catalog containing the URLs per environment.
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
function getApisByTenant(tenant) {
|
|
17
16
|
return apis[tenant];
|
|
18
17
|
}
|
|
19
18
|
function transformApisToApiAddress(apis, env) {
|
|
@@ -39,6 +38,19 @@ function matchesBaseUrl(baseUrl, candidate) {
|
|
|
39
38
|
return true;
|
|
40
39
|
});
|
|
41
40
|
}
|
|
41
|
+
const getApiOverride = () => {
|
|
42
|
+
const envs = import.meta.env;
|
|
43
|
+
let overrideAPIsURL = {};
|
|
44
|
+
if (envs.PROD)
|
|
45
|
+
return overrideAPIsURL;
|
|
46
|
+
try {
|
|
47
|
+
overrideAPIsURL = JSON.parse(envs.VITE_NETWORK_OVERRIDES);
|
|
48
|
+
return overrideAPIsURL;
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
return overrideAPIsURL;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
42
54
|
/**
|
|
43
55
|
* Returns the base URL for the given environment and tenant, applying any overrides if available
|
|
44
56
|
*
|
|
@@ -57,27 +69,29 @@ export const getBaseUrlByTenantWithOverride = (baseUrl, targetEnv = 'prd', tenan
|
|
|
57
69
|
}
|
|
58
70
|
if (!matchesApiName)
|
|
59
71
|
return '';
|
|
60
|
-
const
|
|
61
|
-
if (overrideUrl) {
|
|
62
|
-
return overrideUrl;
|
|
63
|
-
}
|
|
72
|
+
const overrides = getApiOverride();
|
|
64
73
|
const apis = getApisByTenant(tenant);
|
|
65
|
-
|
|
74
|
+
const api = apis[matchesApiName];
|
|
75
|
+
return overrides?.[matchesApiName] ?? api?.url?.[targetEnv];
|
|
66
76
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
export const getApisBaseUrlConfig = (env = 'prd', tenant = 'stackspot') => {
|
|
78
|
+
const overrides = getApiOverride();
|
|
79
|
+
const apis = getApisByTenant(tenant);
|
|
80
|
+
const apiMap = {};
|
|
81
|
+
for (const [key, value] of Object.entries(apis)) {
|
|
82
|
+
if (value?.url && value.url?.[env]) {
|
|
83
|
+
const url = value.url[env];
|
|
84
|
+
const api = key;
|
|
85
|
+
apiMap[api] = url;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return { ...overrides, ...apiMap };
|
|
73
89
|
};
|
|
74
90
|
/**
|
|
75
91
|
* Sets the default APIs addresses for each environments.
|
|
76
92
|
* @returns {Apis} an object containing APIs URLs grouped by api name and enviroments.
|
|
77
93
|
*/
|
|
78
|
-
export const getApiAddresses = () =>
|
|
79
|
-
return defaultApis;
|
|
80
|
-
};
|
|
94
|
+
export const getApiAddresses = () => defaultApis;
|
|
81
95
|
export const apiAddresses = () => {
|
|
82
96
|
const env = NetworkClient.getEnv();
|
|
83
97
|
return transformApisToApiAddress(defaultApis, env);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-addresses.js","sourceRoot":"","sources":["../src/api-addresses.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,kBAAkB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACnE,OAAO,QAAQ,MAAM,aAAa,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"api-addresses.js","sourceRoot":"","sources":["../src/api-addresses.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,kBAAkB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACnE,OAAO,QAAQ,MAAM,aAAa,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAwBvD,MAAM,WAAW,GAAS,QAAQ,CAAA;AAElC,MAAM,IAAI,GAAyB;IACjC,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE,YAAY;CACrB,CAAA;AAED;;;;;GAKG;AACH,SAAS,eAAe,CAAC,MAAc;IACrC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAA;AACrB,CAAC;AAED,SAAS,yBAAyB,CAAC,IAAU,EAAE,GAAQ;IACrD,MAAM,UAAU,GA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A;AAEtD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,EAAE,CAAA;IAClC,OAAO,yBAAyB,CAAC,WAAW,EAAE,GAAG,CAAC,CAAA;AACpD,CAAC,CAAA"}
|
package/dist/apis-itau.json
CHANGED
|
@@ -221,5 +221,21 @@
|
|
|
221
221
|
"prd": "https://discover-core.stackspot.com"
|
|
222
222
|
},
|
|
223
223
|
"docs": "/v3/api-docs"
|
|
224
|
+
},
|
|
225
|
+
"accountAssetManager": {
|
|
226
|
+
"url": {
|
|
227
|
+
"dev": "https://account-asset-manager.dev.stackspot.com",
|
|
228
|
+
"stg": "https://account-asset-manager.stg.stackspot.com",
|
|
229
|
+
"prd": "https://account-asset-manager.stackspot.com"
|
|
230
|
+
},
|
|
231
|
+
"docs": "/v3/api-docs"
|
|
232
|
+
},
|
|
233
|
+
"edpBfa": {
|
|
234
|
+
"url": {
|
|
235
|
+
"dev": "https://adp-development-edp-bfa.dev.stackspot.com",
|
|
236
|
+
"stg": "https://adp-development-edp-bfa.stg.stackspot.com",
|
|
237
|
+
"prd": "https://edp-bfa.stackspot.com"
|
|
238
|
+
},
|
|
239
|
+
"docs": "/openapi.json"
|
|
224
240
|
}
|
|
225
241
|
}
|
package/dist/apis.json
CHANGED
|
@@ -221,5 +221,21 @@
|
|
|
221
221
|
"prd": "https://discover-core.stackspot.com"
|
|
222
222
|
},
|
|
223
223
|
"docs": "/v3/api-docs"
|
|
224
|
+
},
|
|
225
|
+
"accountAssetManager": {
|
|
226
|
+
"url": {
|
|
227
|
+
"dev": "https://account-asset-manager.dev.stackspot.com",
|
|
228
|
+
"stg": "https://account-asset-manager.stg.stackspot.com",
|
|
229
|
+
"prd": "https://account-asset-manager.stackspot.com"
|
|
230
|
+
},
|
|
231
|
+
"docs": "/v3/api-docs"
|
|
232
|
+
},
|
|
233
|
+
"edpBfa": {
|
|
234
|
+
"url": {
|
|
235
|
+
"dev": "https://adp-development-edp-bfa.dev.stackspot.com",
|
|
236
|
+
"stg": "https://adp-development-edp-bfa.stg.stackspot.com",
|
|
237
|
+
"prd": "https://edp-bfa.stackspot.com"
|
|
238
|
+
},
|
|
239
|
+
"docs": "/openapi.json"
|
|
224
240
|
}
|
|
225
241
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { HttpError } from '@oazapfts/runtime';
|
|
2
|
+
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
3
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
4
|
+
declare class AccountAssetManagerClient extends ReactQueryNetworkClient {
|
|
5
|
+
constructor();
|
|
6
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
7
|
+
/**
|
|
8
|
+
* Save project
|
|
9
|
+
*/
|
|
10
|
+
saveProject: import("../network/types.js").MutationObject<Omit<{
|
|
11
|
+
createProjectRequest: import("../api/accountAssetManager.js").CreateProjectRequest;
|
|
12
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ApiIdResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get project details
|
|
15
|
+
*/
|
|
16
|
+
getProjectDetails: import("../network/types.js").QueryObject<Omit<{
|
|
17
|
+
projectId: string;
|
|
18
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ProjectDetailsResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete project
|
|
21
|
+
*/
|
|
22
|
+
deleteProject: import("../network/types.js").MutationObject<Omit<{
|
|
23
|
+
projectId: string;
|
|
24
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* Update project
|
|
27
|
+
*/
|
|
28
|
+
updateProject: import("../network/types.js").MutationObject<Omit<{
|
|
29
|
+
projectId: string;
|
|
30
|
+
updateProjectRequest: import("../api/accountAssetManager.js").UpdateProjectRequest;
|
|
31
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ProjectResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Disassociate project asset
|
|
34
|
+
*/
|
|
35
|
+
disassociateProjectAsset: import("../network/types.js").MutationObject<Omit<{
|
|
36
|
+
projectId: string;
|
|
37
|
+
assetId: string;
|
|
38
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* List account folders
|
|
41
|
+
*/
|
|
42
|
+
folders: import("../network/types.js").QueryObject<Omit<import("@oazapfts/runtime").RequestOpts | undefined, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").FolderResponse[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Create new folder in account
|
|
45
|
+
*/
|
|
46
|
+
createFolder: import("../network/types.js").MutationObject<Omit<{
|
|
47
|
+
createFolderRequest: import("../api/accountAssetManager.js").CreateFolderRequest;
|
|
48
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ApiIdResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Get folder details
|
|
51
|
+
*/
|
|
52
|
+
folderDetails: import("../network/types.js").QueryObject<Omit<{
|
|
53
|
+
folderId: string;
|
|
54
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").FoldersDetailsResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete folder
|
|
57
|
+
*/
|
|
58
|
+
deleteFolder: import("../network/types.js").MutationObject<Omit<{
|
|
59
|
+
folderId: string;
|
|
60
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
61
|
+
/**
|
|
62
|
+
* Update folder
|
|
63
|
+
*/
|
|
64
|
+
updateFolder: import("../network/types.js").MutationObject<Omit<{
|
|
65
|
+
folderId: string;
|
|
66
|
+
updateFolderRequest: import("../api/accountAssetManager.js").UpdateFolderRequest;
|
|
67
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ApiIdResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Create asset
|
|
70
|
+
*/
|
|
71
|
+
createAsset: import("../network/types.js").MutationObject<Omit<{
|
|
72
|
+
createAssetTypeRequest: import("../api/accountAssetManager.js").CreateAssetTypeRequest;
|
|
73
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ApiIdResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Update asset
|
|
76
|
+
*/
|
|
77
|
+
updateAsset: import("../network/types.js").MutationObject<Omit<{
|
|
78
|
+
projectId: string;
|
|
79
|
+
assetId: string;
|
|
80
|
+
updateAssetRequest: import("../api/accountAssetManager.js").UpdateAssetRequest;
|
|
81
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ApiIdResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* List all asset types
|
|
84
|
+
*/
|
|
85
|
+
assetTypes: import("../network/types.js").QueryObject<Omit<{
|
|
86
|
+
name?: string;
|
|
87
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").AssetTypeResponse[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Save asset type
|
|
90
|
+
*/
|
|
91
|
+
saveAssetType: import("../network/types.js").MutationObject<Omit<{
|
|
92
|
+
createAssetTypeRequest: import("../api/accountAssetManager.js").CreateAssetTypeRequest;
|
|
93
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ApiIdResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* Delete asset type
|
|
96
|
+
*/
|
|
97
|
+
deleteAssetType: import("../network/types.js").MutationObject<Omit<{
|
|
98
|
+
assetTypeId: string;
|
|
99
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
100
|
+
/**
|
|
101
|
+
* Update asset type
|
|
102
|
+
*/
|
|
103
|
+
updateAssetType: import("../network/types.js").MutationObject<Omit<{
|
|
104
|
+
assetTypeId: string;
|
|
105
|
+
updateAssetTypeRequest: import("../api/accountAssetManager.js").UpdateAssetTypeRequest;
|
|
106
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/accountAssetManager.js").ApiIdResponse>;
|
|
107
|
+
}
|
|
108
|
+
export declare const accountAssetManagerClient: AccountAssetManagerClient;
|
|
109
|
+
export {};
|
|
110
|
+
//# sourceMappingURL=account-asset-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-asset-manager.d.ts","sourceRoot":"","sources":["../../src/client/account-asset-manager.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,yBAA0B,SAAQ,uBAAuB;;IAK7D,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,WAAW;;uHAAuD;IAElE;;OAEG;IACH,iBAAiB;;gIAA0D;IAE3E;;OAEG;IACH,aAAa;;4EAAyD;IAEtE;;OAEG;IACH,aAAa;;;yHAAyD;IAEtE;;OAEG;IACH,wBAAwB;;;4EAAoE;IAE5F;;OAEG;IACH,OAAO,sNAAoD;IAE3D;;OAEG;IACH,YAAY;;uHAAsD;IAElE;;OAEG;IACH,aAAa;;gIAAyD;IAEtE;;OAEG;IACH,YAAY;;4EAAwD;IAEpE;;OAEG;IACH,YAAY;;;uHAAyD;IAErE;;OAEG;IACH,WAAW;;uHAAyD;IAEpE;;OAEG;IACH,WAAW;;;;uHAAuD;IAElE;;OAEG;IACH,UAAU;;6HAAuD;IAEjE;;OAEG;IACH,aAAa;;uHAAyD;IAEtE;;OAEG;IACH,eAAe;;4EAA2D;IAE1E;;OAEG;IACH,eAAe;;;uHAA2D;CAC3E;AAED,eAAO,MAAM,yBAAyB,2BAAkC,CAAA"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { getApiAddresses } from '../api-addresses.js';
|
|
2
|
+
import { defaults, deleteAssetType, deleteFolder, deleteProject, disassociateProjectAsset, getFolderDetails, getProjectDetails, listAssetTypes, listFolders, saveAssetType, saveFolder, saveProject, updateAsset, updateAssetType, updateFolders, updateProject } from '../api/accountAssetManager.js';
|
|
3
|
+
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
|
+
import { accountAssetManagerDictionary } from '../error/dictionary/accountAssetManager.js';
|
|
5
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
6
|
+
import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
|
|
7
|
+
class AccountAssetManagerClient extends ReactQueryNetworkClient {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(getApiAddresses().accountAssetManager.url, defaults);
|
|
10
|
+
/**
|
|
11
|
+
* Save project
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(this, "saveProject", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: this.mutation(removeAuthorizationParam(saveProject))
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* Get project details
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(this, "getProjectDetails", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: this.query(removeAuthorizationParam(getProjectDetails))
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Delete project
|
|
30
|
+
*/
|
|
31
|
+
Object.defineProperty(this, "deleteProject", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: this.mutation(removeAuthorizationParam(deleteProject))
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Update project
|
|
39
|
+
*/
|
|
40
|
+
Object.defineProperty(this, "updateProject", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: this.mutation(removeAuthorizationParam(updateProject))
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Disassociate project asset
|
|
48
|
+
*/
|
|
49
|
+
Object.defineProperty(this, "disassociateProjectAsset", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: this.mutation(removeAuthorizationParam(disassociateProjectAsset))
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* List account folders
|
|
57
|
+
*/
|
|
58
|
+
Object.defineProperty(this, "folders", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: this.query(removeAuthorizationParam(listFolders))
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Create new folder in account
|
|
66
|
+
*/
|
|
67
|
+
Object.defineProperty(this, "createFolder", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true,
|
|
71
|
+
value: this.mutation(removeAuthorizationParam(saveFolder))
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* Get folder details
|
|
75
|
+
*/
|
|
76
|
+
Object.defineProperty(this, "folderDetails", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
value: this.query(removeAuthorizationParam(getFolderDetails))
|
|
81
|
+
});
|
|
82
|
+
/**
|
|
83
|
+
* Delete folder
|
|
84
|
+
*/
|
|
85
|
+
Object.defineProperty(this, "deleteFolder", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
configurable: true,
|
|
88
|
+
writable: true,
|
|
89
|
+
value: this.mutation(removeAuthorizationParam(deleteFolder))
|
|
90
|
+
});
|
|
91
|
+
/**
|
|
92
|
+
* Update folder
|
|
93
|
+
*/
|
|
94
|
+
Object.defineProperty(this, "updateFolder", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
configurable: true,
|
|
97
|
+
writable: true,
|
|
98
|
+
value: this.mutation(removeAuthorizationParam(updateFolders))
|
|
99
|
+
});
|
|
100
|
+
/**
|
|
101
|
+
* Create asset
|
|
102
|
+
*/
|
|
103
|
+
Object.defineProperty(this, "createAsset", {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
configurable: true,
|
|
106
|
+
writable: true,
|
|
107
|
+
value: this.mutation(removeAuthorizationParam(saveAssetType))
|
|
108
|
+
});
|
|
109
|
+
/**
|
|
110
|
+
* Update asset
|
|
111
|
+
*/
|
|
112
|
+
Object.defineProperty(this, "updateAsset", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
configurable: true,
|
|
115
|
+
writable: true,
|
|
116
|
+
value: this.mutation(removeAuthorizationParam(updateAsset))
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* List all asset types
|
|
120
|
+
*/
|
|
121
|
+
Object.defineProperty(this, "assetTypes", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
configurable: true,
|
|
124
|
+
writable: true,
|
|
125
|
+
value: this.query(removeAuthorizationParam(listAssetTypes))
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* Save asset type
|
|
129
|
+
*/
|
|
130
|
+
Object.defineProperty(this, "saveAssetType", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
configurable: true,
|
|
133
|
+
writable: true,
|
|
134
|
+
value: this.mutation(removeAuthorizationParam(saveAssetType))
|
|
135
|
+
});
|
|
136
|
+
/**
|
|
137
|
+
* Delete asset type
|
|
138
|
+
*/
|
|
139
|
+
Object.defineProperty(this, "deleteAssetType", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
configurable: true,
|
|
142
|
+
writable: true,
|
|
143
|
+
value: this.mutation(removeAuthorizationParam(deleteAssetType))
|
|
144
|
+
});
|
|
145
|
+
/**
|
|
146
|
+
* Update asset type
|
|
147
|
+
*/
|
|
148
|
+
Object.defineProperty(this, "updateAssetType", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
configurable: true,
|
|
151
|
+
writable: true,
|
|
152
|
+
value: this.mutation(removeAuthorizationParam(updateAssetType))
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
buildStackSpotError(error) {
|
|
156
|
+
return new DefaultAPIError(error.data, error.status, accountAssetManagerDictionary, error.headers);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
export const accountAssetManagerClient = new AccountAssetManagerClient();
|
|
160
|
+
//# sourceMappingURL=account-asset-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-asset-manager.js","sourceRoot":"","sources":["../../src/client/account-asset-manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AACnS,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAA;AAEvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE9E,MAAM,yBAA0B,SAAQ,uBAAuB;IAC7D;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,mBAAmB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAO5D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QACH;;;;mBAAgB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,aAAa,CAAC,CAAC;WAAA;QAEtE;;WAEG;QACH;;;;mBAAkB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,eAAe,CAAC,CAAC;WAAA;QAE1E;;WAEG;QACH;;;;mBAAkB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,eAAe,CAAC,CAAC;WAAA;IApF1E,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,6BAA6B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACpG,CAAC;CAiFF;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,yBAAyB,EAAE,CAAA"}
|
package/dist/client/account.d.ts
CHANGED
|
@@ -312,9 +312,9 @@ declare class AccountClient extends ReactQueryNetworkClient {
|
|
|
312
312
|
roleId: string;
|
|
313
313
|
}, unknown>;
|
|
314
314
|
/**
|
|
315
|
-
*
|
|
315
|
+
* Get all resources by groups with pagination.
|
|
316
316
|
*/
|
|
317
|
-
|
|
317
|
+
allResourcesByGroupWithPagination: import("../network/types.js").InfiniteQueryObject<Omit<{
|
|
318
318
|
groupId: string;
|
|
319
319
|
size?: any;
|
|
320
320
|
page?: any;
|
|
@@ -326,7 +326,7 @@ declare class AccountClient extends ReactQueryNetworkClient {
|
|
|
326
326
|
filterValue?: string;
|
|
327
327
|
multiFilterMode?: string;
|
|
328
328
|
filterIn?: any;
|
|
329
|
-
}, import("../api/account.js").
|
|
329
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/account.js").PageResponseResourceResponse, "items">;
|
|
330
330
|
/**
|
|
331
331
|
* Adds several resources to a group.
|
|
332
332
|
*/
|
|
@@ -461,7 +461,7 @@ declare class AccountClient extends ReactQueryNetworkClient {
|
|
|
461
461
|
/**
|
|
462
462
|
* Gets all resources (paginated)
|
|
463
463
|
*/
|
|
464
|
-
allResources: import("../network/types.js").InfiniteQueryObject<{
|
|
464
|
+
allResources: import("../network/types.js").InfiniteQueryObject<Omit<{
|
|
465
465
|
size?: any;
|
|
466
466
|
page?: any;
|
|
467
467
|
sort?: string;
|
|
@@ -472,7 +472,7 @@ declare class AccountClient extends ReactQueryNetworkClient {
|
|
|
472
472
|
filterValue?: string;
|
|
473
473
|
multiFilterMode?: string;
|
|
474
474
|
filterIn?: any;
|
|
475
|
-
}, import("../api/account.js").
|
|
475
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/account.js").PageResponseResourceResponse, "items">;
|
|
476
476
|
/**
|
|
477
477
|
* Gets all resource types (paginated)
|
|
478
478
|
*/
|
|
@@ -866,9 +866,9 @@ declare class AccountClient extends ReactQueryNetworkClient {
|
|
|
866
866
|
filterIn?: any;
|
|
867
867
|
}, import("../api/account.js").PageResponseRoleResponse>;
|
|
868
868
|
/**
|
|
869
|
-
*
|
|
869
|
+
* Gets all resources of a group (paginated)
|
|
870
870
|
*/
|
|
871
|
-
|
|
871
|
+
groupResources: import("../network/types.js").QueryObject<{
|
|
872
872
|
groupId: string;
|
|
873
873
|
size?: any;
|
|
874
874
|
page?: any;
|
|
@@ -880,7 +880,7 @@ declare class AccountClient extends ReactQueryNetworkClient {
|
|
|
880
880
|
filterValue?: string;
|
|
881
881
|
multiFilterMode?: string;
|
|
882
882
|
filterIn?: any;
|
|
883
|
-
}, import("../api/account.js").
|
|
883
|
+
}, import("../api/account.js").ResourceResponse[]>;
|
|
884
884
|
/**
|
|
885
885
|
* Get all roles account with pagination
|
|
886
886
|
*/
|
|
@@ -967,7 +967,9 @@ declare class AccountClient extends ReactQueryNetworkClient {
|
|
|
967
967
|
/**
|
|
968
968
|
* Lists all extensions.
|
|
969
969
|
*/
|
|
970
|
-
extensions: import("../network/types.js").QueryObject<
|
|
970
|
+
extensions: import("../network/types.js").QueryObject<{
|
|
971
|
+
actions?: string[];
|
|
972
|
+
}, import("../api/account.js").ExtensionReadResponse[]>;
|
|
971
973
|
/**
|
|
972
974
|
* Lists all versions of an extension.
|
|
973
975
|
*/
|