@stack-spot/portal-network 0.42.2 → 0.44.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 +20 -0
- package/dist/api/cloudPlatform.js +2 -2
- package/dist/api/content.d.ts +38 -33
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +19 -10
- package/dist/api/content.js.map +1 -1
- package/dist/api/notification.d.ts +32 -8
- package/dist/api/notification.d.ts.map +1 -1
- package/dist/api/notification.js +17 -1
- package/dist/api/notification.js.map +1 -1
- package/dist/apis.json +1 -1
- package/dist/client/content.d.ts +14 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +10 -1
- package/dist/client/content.js.map +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js +15 -6
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +21 -2
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +18 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/dist/error/dictionary/action-details.d.ts +2 -0
- package/dist/error/dictionary/action-details.d.ts.map +1 -0
- package/dist/error/dictionary/action-details.js +19 -0
- package/dist/error/dictionary/action-details.js.map +1 -0
- package/dist/error/dictionary/workspace-details.d.ts +2 -0
- package/dist/error/dictionary/workspace-details.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-details.js +15 -0
- package/dist/error/dictionary/workspace-details.js.map +1 -0
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +2 -2
- package/src/api/content.ts +52 -38
- package/src/api/notification.ts +53 -8
- package/src/apis.json +1 -1
- package/src/client/content.ts +19 -13
- package/src/error/DefaultAPIError.ts +20 -7
- package/src/error/StackspotAPIError.ts +44 -6
- package/src/error/dictionary/action-details.ts +20 -0
- package/src/error/dictionary/workspace-details.ts +15 -0
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { Language } from '@stack-spot/portal-translate';
|
|
2
|
-
export type InternationalizedMessage = (language: Language) => string;
|
|
2
|
+
export type InternationalizedMessage = (language: Language) => string | ErrorDetailsProperties;
|
|
3
|
+
export interface ErrorDetailsProperties {
|
|
4
|
+
/**
|
|
5
|
+
* The error title
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The error description
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Label for link
|
|
14
|
+
*/
|
|
15
|
+
linkLabel?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Text for href of link
|
|
18
|
+
*/
|
|
19
|
+
linkHref?: string;
|
|
20
|
+
}
|
|
3
21
|
interface ErrorProperties {
|
|
4
22
|
/**
|
|
5
23
|
* The response's status.
|
|
@@ -18,7 +36,7 @@ interface ErrorProperties {
|
|
|
18
36
|
*
|
|
19
37
|
* If not provided, will attempt to use the error code or 'unknown'.
|
|
20
38
|
*/
|
|
21
|
-
message?: InternationalizedMessage | string;
|
|
39
|
+
message?: InternationalizedMessage | string | ErrorDetailsProperties;
|
|
22
40
|
/**
|
|
23
41
|
* The error's stack trace, if any.
|
|
24
42
|
*/
|
|
@@ -45,6 +63,7 @@ export declare class StackspotAPIError extends Error {
|
|
|
45
63
|
* @returns an error message
|
|
46
64
|
*/
|
|
47
65
|
translate(language?: Language): string;
|
|
66
|
+
translateDetails(language?: Language): ErrorDetailsProperties;
|
|
48
67
|
}
|
|
49
68
|
export {};
|
|
50
69
|
//# sourceMappingURL=StackspotAPIError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackspotAPIError.d.ts","sourceRoot":"","sources":["../../src/error/StackspotAPIError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,MAAM,8BAA8B,CAAA;AAEpE,MAAM,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"StackspotAPIError.d.ts","sourceRoot":"","sources":["../../src/error/StackspotAPIError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,MAAM,8BAA8B,CAAA;AAEpE,MAAM,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,MAAM,GAAG,sBAAsB,CAAA;AAE9F,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,eAAe;IACvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,wBAAwB,GAAG,MAAM,GAAG,sBAAsB,CAAC;IACrE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAEhB;AAOD,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,OAAO,CAAC,IAAI,CAAC,CAA0B;gBAE3B,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,eAAe;IAStE;;;;OAIG;IACH,SAAS,CAAC,QAAQ,GAAE,QAAwB,GAAG,MAAM;IAQrD,gBAAgB,CAAC,QAAQ,GAAE,QAAwB,GAAG,sBAAsB;CAS7E"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { getLanguage } from '@stack-spot/portal-translate';
|
|
2
|
+
function getMessage(error) {
|
|
3
|
+
const message = typeof error === 'function' ? error('en') : error;
|
|
4
|
+
return typeof message === 'string' ? message : message?.description;
|
|
5
|
+
}
|
|
2
6
|
export class StackspotAPIError extends Error {
|
|
3
7
|
constructor({ status, code, headers, message, stack }) {
|
|
4
|
-
super(`Stackspot API error (network ${status}): ${
|
|
8
|
+
super(`Stackspot API error (network ${status}): ${getMessage(message)}`);
|
|
5
9
|
/**
|
|
6
10
|
* The response's status.
|
|
7
11
|
*/
|
|
@@ -39,7 +43,7 @@ export class StackspotAPIError extends Error {
|
|
|
39
43
|
this.code = code;
|
|
40
44
|
this.headers = headers;
|
|
41
45
|
this.stack = stack;
|
|
42
|
-
this.intl = typeof message === 'string' ? () => message : message;
|
|
46
|
+
this.intl = typeof message === 'string' || typeof message === 'object' ? () => message : message;
|
|
43
47
|
}
|
|
44
48
|
/**
|
|
45
49
|
* Translates the error to the given language.
|
|
@@ -48,7 +52,18 @@ export class StackspotAPIError extends Error {
|
|
|
48
52
|
*/
|
|
49
53
|
translate(language = getLanguage()) {
|
|
50
54
|
const unknown = language === 'en' ? 'unknown error' : 'erro desconhecido';
|
|
51
|
-
|
|
55
|
+
const error = this.intl?.(language);
|
|
56
|
+
const message = typeof error === 'string' ? error : error?.description;
|
|
57
|
+
return message ?? this.message ?? this.code ?? (this.status === 0 ? unknown : `${this.status}`);
|
|
58
|
+
}
|
|
59
|
+
translateDetails(language = getLanguage()) {
|
|
60
|
+
const unknown = language === 'en' ? 'unknown error' : 'erro desconhecido';
|
|
61
|
+
const errorMessage = this.intl?.(language);
|
|
62
|
+
if (typeof errorMessage === 'string')
|
|
63
|
+
return { description: errorMessage };
|
|
64
|
+
if (typeof errorMessage === 'object')
|
|
65
|
+
return errorMessage;
|
|
66
|
+
return { description: this.message ?? this.code ?? (this.status === 0 ? unknown : `${this.status}`) };
|
|
52
67
|
}
|
|
53
68
|
}
|
|
54
69
|
//# sourceMappingURL=StackspotAPIError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackspotAPIError.js","sourceRoot":"","sources":["../../src/error/StackspotAPIError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"StackspotAPIError.js","sourceRoot":"","sources":["../../src/error/StackspotAPIError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAiDpE,SAAS,UAAU,CAAC,KAAiC;IACnD,MAAM,OAAO,GAAG,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IACjE,OAAO,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,WAAW,CAAA;AACrE,CAAC;AAED,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAe1C,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAmB;QACpE,KAAK,CAAC,gCAAgC,MAAM,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAf1E;;WAEG;QACH;;;;;WAAc;QACd;;WAEG;QACH;;;;;WAA4B;QAC5B;;WAEG;QACH;;;;;WAAwB;QAChB;;;;;WAA+B;QAIrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,IAAI,GAAG,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAA;IACnG,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,WAAqB,WAAW,EAAE;QAC1C,MAAM,OAAO,GAAG,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,mBAAmB,CAAA;QAEzE,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,CAAA;QACnC,MAAM,OAAO,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,WAAW,CAAA;QACtE,OAAO,OAAO,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;IACjG,CAAC;IAED,gBAAgB,CAAC,WAAqB,WAAW,EAAE;QACjD,MAAM,OAAO,GAAG,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,mBAAmB,CAAA;QACzE,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,CAAA;QAC1C,IAAI,OAAO,YAAY,KAAK,QAAQ;YAClC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAA;QACtC,IAAI,OAAO,YAAY,KAAK,QAAQ;YAClC,OAAO,YAAY,CAAA;QACrB,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,CAAA;IACvG,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-details.d.ts","sourceRoot":"","sources":["../../../src/error/dictionary/action-details.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBhE,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const actionDetails = {
|
|
2
|
+
en: {
|
|
3
|
+
ACTIONAPI_5004_GITHUB_SAML_ERROR: {
|
|
4
|
+
title: 'SSO Authorization pending',
|
|
5
|
+
description: 'Authorize SSO on GitHub to continue',
|
|
6
|
+
linkLabel: 'Check documentation',
|
|
7
|
+
linkHref: 'https://docs.stackspot.com/en/home/account/guides/scm-integration/scm-github#integrate-github-with-stackspot',
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
pt: {
|
|
11
|
+
ACTIONAPI_5004_GITHUB_SAML_ERROR: {
|
|
12
|
+
title: 'Autorização SSO pendente',
|
|
13
|
+
description: 'Autorize o SSO no GitHub para continuar',
|
|
14
|
+
linkLabel: 'Ver Documentação',
|
|
15
|
+
linkHref: 'https://docs.stackspot.com/home/account/guides/scm-integration/scm-github#integrar-o-github-com-a-stackspot',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=action-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-details.js","sourceRoot":"","sources":["../../../src/error/dictionary/action-details.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,aAAa,GAA2C;IACnE,EAAE,EAAE;QACF,gCAAgC,EAChC;YACE,KAAK,EAAE,2BAA2B;YAClC,WAAW,EAAE,qCAAqC;YAClD,SAAS,EAAE,qBAAqB;YAChC,QAAQ,EAAE,8GAA8G;SACzH;KACF;IACD,EAAE,EAAE;QACF,gCAAgC,EAAE;YAChC,KAAK,EAAE,0BAA0B;YACjC,WAAW,EAAE,yCAAyC;YACtD,SAAS,EAAE,kBAAkB;YAC7B,QAAQ,EAAE,6GAA6G;SACxH;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-details.d.ts","sourceRoot":"","sources":["../../../src/error/dictionary/workspace-details.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAanE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const workspaceDetails = {
|
|
2
|
+
en: {
|
|
3
|
+
WKS_API_WORKFLOW_UNAUTHORIZED: {
|
|
4
|
+
title: 'Invalid token',
|
|
5
|
+
description: 'Check your authorizations on GitHub and the token on StackSpot',
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
pt: {
|
|
9
|
+
WKS_API_WORKFLOW_UNAUTHORIZED: {
|
|
10
|
+
title: 'Token inválido',
|
|
11
|
+
description: 'Confira suas autorizações no Github e o token na StackSpot',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=workspace-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-details.js","sourceRoot":"","sources":["../../../src/error/dictionary/workspace-details.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,gBAAgB,GAA2C;IACtE,EAAE,EAAE;QACF,6BAA6B,EAAE;YAC7B,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,gEAAgE;SAC9E;KACF;IACD,EAAE,EAAE;QACF,6BAA6B,EAAE;YAC7B,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,4DAA4D;SAC1E;KACF;CACF,CAAA"}
|
package/package.json
CHANGED
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://cloud-cloud-platform-api.
|
|
11
|
+
baseUrl: "https://cloud-cloud-platform-api.prd.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://cloud-cloud-platform-api.
|
|
15
|
+
generatedServerUrl: "https://cloud-cloud-platform-api.prd.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type EnvVar = {
|
|
18
18
|
key: string;
|
package/src/api/content.ts
CHANGED
|
@@ -111,7 +111,7 @@ export type CreateConnectionInterfaceTypeRequest = {
|
|
|
111
111
|
};
|
|
112
112
|
export type YamlValidationError = {
|
|
113
113
|
details: string;
|
|
114
|
-
"type": "STK_VAL_0000_YAML_BASE_ERROR" | "STK_VAL_5010_YAML_FIELDS_ERROR" | "STK_VAL_5011_YAML_REQUIRED_FIELD" | "STK_VAL_5012_YAML_INVALID_FIELD_FORMAT" | "STK_VAL_5013_YAML_INVALID_VALUE_BY_ENUM" | "STK_VAL_5015_YAML_ADDITIONAL_FIELD" | "STK_VAL_5016_YAML_FIELD_INVALID_TYPE" | "STK_VAL_5018_INVALID_TECHNOLOGIES" | "STK_VAL_5021_MARKDOWN_LINK_NOT_FOUND" | "STK_VAL_5022_INVALID_INPUT_DEFAULT" | "STK_VAL_5024_PLUGIN_VERSION_NOT_FOUND" | "STK_VAL_5026_FILE_NOT_FOUND" | "STK_VAL_5027_FILE_EMPTY" | "STK_VAL_5030_FUNCTION_RUN_IS_REQUIRED" | "STK_VAL_5031_INVALID_INPUT_CONDITION_OPERATOR" | "STK_VAL_5032_INVALID_INPUT_CONDITION_VALUE" | "STK_VAL_5034_INVALID_INPUT_CONDITION_VARIABLE_DOES_NOT_EXIST" | "STK_VAL_5035_INVALID_CONNECTION_TYPE" | "STK_VAL_5036_INVALID_CONNECTION_TYPE_OUTPUT" | "STK_VAL_5037_DUPLICATED_CONNECTION_ALIAS" | "STK_VAL_5039_INVALID_LINK_URL_TYPE" | "STK_VAL_5040_INVALID_CONNECTION_LINK_VARIABLE" | "STK_VAL_5041_INVALID_CONNECTION_ALIAS_LINK_VARIABLE" | "STK_VAL_5042_INVALID_CONNECTION_OUTPUT_LINK_VARIABLE" | "STK_VAL_5043_DUPLICATED_LINK_NAME" | "STK_VAL_5044_INPUT_NAME_AS_RESERVED_WORD" | "STK_VAL_5045_DYNAMIC_LINK_VARIABLE_NOT_FOUND" | "STK_VAL_5046_LINK_WITH_COMPLEX_JINJA_EXPRESSION" | "STK_VAL_5047_INVALID_DYNAMIC_LINK_URL" | "STK_VAL_5048_DUPLICATED_INPUT_NAMES" | "STK_VAL_5049_INVALID_INPUT_DEFAULT_NOT_IN_ITEMS" | "STK_VAL_5053_MISSING_ACTION_IN_REQUIRES" | "STK_VAL_5054_DUPLICATED_NAME" | "STK_VAL_5055_DUPLICATED_VALUE" | "STK_VAL_5057_ACTION_NOT_DECLARED" | "STK_VAL_5058_OLD_DOCS_DECLARED" | "STK_VAL_5059_OLD_DOCS_WILL_BE_IGNORED" | "STK_VAL_5061_ACTION_VERSION_NOT_FOUND" | "STK_VAL_5062_PLUGIN_OF_STARTER_IS_NOT_DECLARED" | "STK_VAL_5063_STARTER_MUST_CONTAIN_PLUGIN" | "STK_VAL_5064_REQUIRED_PLUGIN_NOT_PUBLISHED" | "STK_VAL_5065_REQUIRED_ACTION_NOT_PUBLISHED" | "STK_VAL_5066_MISSING_PLUGIN_REQUIRED_IN_STACK" | "STK_VAL_5067_MISSING_ACTION_REQUIRED_IN_STACK" | "STK_VAL_5068_INFRA_PLUGIN_APP_ALLOWED_FALSE" | "STK_VAL_5073_SOURCE_AND_ITEMS_BEING_USED" | "STK_VAL_5076_MISSING_OUTPUT_FROM_GENERATES" | "STK_VAL_5077_MISSING_PLUGIN_REQUIRED_IN_STARTER" | "STK_VAL_5078_WRONG_PLUGIN_TYPE_IN_STACK" | "STK_VAL_5079_DUPLICATED_SLUG" | "STK_VAL_5080_INVALID_VARIABLE" | "STK_VAL_5081_INVALID_VARIABLE_REFERENCE" | "STK_VAL_5082_DUPLICATED_JOB" | "STK_VAL_5083_DUPLICATED_STEP" | "STK_VAL_5084_WORKFLOW_VERSION_NOT_FOUND" | "STK_VAL_5085_MISSING_INPUT_REQUIRED_IN_STEP_JOB" | "STK_VAL_5086_CYCLIC_DEPENDENCY_JOB" | "STK_VAL_5087_CYCLIC_DEPENDENCY_WORKFLOW" | "STK_VAL_5088_WORKFLOW_CREATE_DEPENDENCY" | "STK_VAL_5089_INVALID_DEPENDS_ON_JOBS" | "STK_VAL_5090_INVALID_JOB_STEP_WORKFLOW_TYPE" | "STK_VAL_5091_MULTIPLE_GENERATED_CONNECTION_DEFINITION";
|
|
114
|
+
"type": "STK_VAL_0000_YAML_BASE_ERROR" | "STK_VAL_5010_YAML_FIELDS_ERROR" | "STK_VAL_5011_YAML_REQUIRED_FIELD" | "STK_VAL_5012_YAML_INVALID_FIELD_FORMAT" | "STK_VAL_5013_YAML_INVALID_VALUE_BY_ENUM" | "STK_VAL_5015_YAML_ADDITIONAL_FIELD" | "STK_VAL_5016_YAML_FIELD_INVALID_TYPE" | "STK_VAL_5018_INVALID_TECHNOLOGIES" | "STK_VAL_5021_MARKDOWN_LINK_NOT_FOUND" | "STK_VAL_5022_INVALID_INPUT_DEFAULT" | "STK_VAL_5024_PLUGIN_VERSION_NOT_FOUND" | "STK_VAL_5026_FILE_NOT_FOUND" | "STK_VAL_5027_FILE_EMPTY" | "STK_VAL_5030_FUNCTION_RUN_IS_REQUIRED" | "STK_VAL_5031_INVALID_INPUT_CONDITION_OPERATOR" | "STK_VAL_5032_INVALID_INPUT_CONDITION_VALUE" | "STK_VAL_5034_INVALID_INPUT_CONDITION_VARIABLE_DOES_NOT_EXIST" | "STK_VAL_5035_INVALID_CONNECTION_TYPE" | "STK_VAL_5036_INVALID_CONNECTION_TYPE_OUTPUT" | "STK_VAL_5037_DUPLICATED_CONNECTION_ALIAS" | "STK_VAL_5039_INVALID_LINK_URL_TYPE" | "STK_VAL_5040_INVALID_CONNECTION_LINK_VARIABLE" | "STK_VAL_5041_INVALID_CONNECTION_ALIAS_LINK_VARIABLE" | "STK_VAL_5042_INVALID_CONNECTION_OUTPUT_LINK_VARIABLE" | "STK_VAL_5043_DUPLICATED_LINK_NAME" | "STK_VAL_5044_INPUT_NAME_AS_RESERVED_WORD" | "STK_VAL_5045_DYNAMIC_LINK_VARIABLE_NOT_FOUND" | "STK_VAL_5046_LINK_WITH_COMPLEX_JINJA_EXPRESSION" | "STK_VAL_5047_INVALID_DYNAMIC_LINK_URL" | "STK_VAL_5048_DUPLICATED_INPUT_NAMES" | "STK_VAL_5049_INVALID_INPUT_DEFAULT_NOT_IN_ITEMS" | "STK_VAL_5053_MISSING_ACTION_IN_REQUIRES" | "STK_VAL_5054_DUPLICATED_NAME" | "STK_VAL_5055_DUPLICATED_VALUE" | "STK_VAL_5057_ACTION_NOT_DECLARED" | "STK_VAL_5058_OLD_DOCS_DECLARED" | "STK_VAL_5059_OLD_DOCS_WILL_BE_IGNORED" | "STK_VAL_5061_ACTION_VERSION_NOT_FOUND" | "STK_VAL_5062_PLUGIN_OF_STARTER_IS_NOT_DECLARED" | "STK_VAL_5063_STARTER_MUST_CONTAIN_PLUGIN" | "STK_VAL_5064_REQUIRED_PLUGIN_NOT_PUBLISHED" | "STK_VAL_5065_REQUIRED_ACTION_NOT_PUBLISHED" | "STK_VAL_5066_MISSING_PLUGIN_REQUIRED_IN_STACK" | "STK_VAL_5067_MISSING_ACTION_REQUIRED_IN_STACK" | "STK_VAL_5068_INFRA_PLUGIN_APP_ALLOWED_FALSE" | "STK_VAL_5073_SOURCE_AND_ITEMS_BEING_USED" | "STK_VAL_5076_MISSING_OUTPUT_FROM_GENERATES" | "STK_VAL_5077_MISSING_PLUGIN_REQUIRED_IN_STARTER" | "STK_VAL_5078_WRONG_PLUGIN_TYPE_IN_STACK" | "STK_VAL_5079_DUPLICATED_SLUG" | "STK_VAL_5080_INVALID_VARIABLE" | "STK_VAL_5081_INVALID_VARIABLE_REFERENCE" | "STK_VAL_5082_DUPLICATED_JOB" | "STK_VAL_5083_DUPLICATED_STEP" | "STK_VAL_5084_WORKFLOW_VERSION_NOT_FOUND" | "STK_VAL_5085_MISSING_INPUT_REQUIRED_IN_STEP_JOB" | "STK_VAL_5086_CYCLIC_DEPENDENCY_JOB" | "STK_VAL_5087_CYCLIC_DEPENDENCY_WORKFLOW" | "STK_VAL_5088_WORKFLOW_CREATE_DEPENDENCY" | "STK_VAL_5089_INVALID_DEPENDS_ON_JOBS" | "STK_VAL_5090_INVALID_JOB_STEP_WORKFLOW_TYPE" | "STK_VAL_5091_MULTIPLE_GENERATED_CONNECTION_DEFINITION" | "STK_VAL_VERSION_BREAK_CHANGE_SCHEMA_VERSION_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_APP_ALLOWED_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_TYPE_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUTS_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_CONDITION_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_CONNECTION_INTERFACE_TYPE_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_GENERATES_CONNECTION_INTERFACE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_CONNECTION_INTERFACE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_PLUGIN_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_ACTION_ERROR";
|
|
115
115
|
field?: string;
|
|
116
116
|
value?: object;
|
|
117
117
|
examples: string[];
|
|
@@ -372,8 +372,8 @@ export type PageGetStackStudioResponse = {
|
|
|
372
372
|
content?: GetStackStudioResponse[];
|
|
373
373
|
"number"?: number;
|
|
374
374
|
sort?: SortObject[];
|
|
375
|
-
pageable?: PageableObject;
|
|
376
375
|
numberOfElements?: number;
|
|
376
|
+
pageable?: PageableObject;
|
|
377
377
|
empty?: boolean;
|
|
378
378
|
};
|
|
379
379
|
export type PublishPluginWarningResponse = {
|
|
@@ -510,8 +510,8 @@ export type PagePluginVersionResponse = {
|
|
|
510
510
|
content?: PluginVersionResponse[];
|
|
511
511
|
"number"?: number;
|
|
512
512
|
sort?: SortObject[];
|
|
513
|
-
pageable?: PageableObject;
|
|
514
513
|
numberOfElements?: number;
|
|
514
|
+
pageable?: PageableObject;
|
|
515
515
|
empty?: boolean;
|
|
516
516
|
};
|
|
517
517
|
export type GetActionCommandResponse = {
|
|
@@ -651,8 +651,8 @@ export type PageActionResponse = {
|
|
|
651
651
|
content?: ActionResponse[];
|
|
652
652
|
"number"?: number;
|
|
653
653
|
sort?: SortObject[];
|
|
654
|
-
pageable?: PageableObject;
|
|
655
654
|
numberOfElements?: number;
|
|
655
|
+
pageable?: PageableObject;
|
|
656
656
|
empty?: boolean;
|
|
657
657
|
};
|
|
658
658
|
export type FilterStudioRequest = {
|
|
@@ -712,8 +712,8 @@ export type PageStarterResponseWithRange = {
|
|
|
712
712
|
content?: StarterResponseWithRange[];
|
|
713
713
|
"number"?: number;
|
|
714
714
|
sort?: SortObject[];
|
|
715
|
-
pageable?: PageableObject;
|
|
716
715
|
numberOfElements?: number;
|
|
716
|
+
pageable?: PageableObject;
|
|
717
717
|
empty?: boolean;
|
|
718
718
|
};
|
|
719
719
|
export type FilterStackVersionPluginRequest = {
|
|
@@ -730,8 +730,8 @@ export type PageStackPluginResponse = {
|
|
|
730
730
|
content?: StackPluginResponse[];
|
|
731
731
|
"number"?: number;
|
|
732
732
|
sort?: SortObject[];
|
|
733
|
-
pageable?: PageableObject;
|
|
734
733
|
numberOfElements?: number;
|
|
734
|
+
pageable?: PageableObject;
|
|
735
735
|
empty?: boolean;
|
|
736
736
|
};
|
|
737
737
|
export type GetLinkPluginVersionStudioResponse = {
|
|
@@ -829,8 +829,8 @@ export type PageGetStackActionResponse = {
|
|
|
829
829
|
content?: GetStackActionResponse[];
|
|
830
830
|
"number"?: number;
|
|
831
831
|
sort?: SortObject[];
|
|
832
|
-
pageable?: PageableObject;
|
|
833
832
|
numberOfElements?: number;
|
|
833
|
+
pageable?: PageableObject;
|
|
834
834
|
empty?: boolean;
|
|
835
835
|
};
|
|
836
836
|
export type FilterStackVersionRequest = {
|
|
@@ -1012,8 +1012,8 @@ export type PageStudioResponse = {
|
|
|
1012
1012
|
content?: StudioResponse[];
|
|
1013
1013
|
"number"?: number;
|
|
1014
1014
|
sort?: SortObject[];
|
|
1015
|
-
pageable?: PageableObject;
|
|
1016
1015
|
numberOfElements?: number;
|
|
1016
|
+
pageable?: PageableObject;
|
|
1017
1017
|
empty?: boolean;
|
|
1018
1018
|
};
|
|
1019
1019
|
export type GovernanceDto = {
|
|
@@ -1039,8 +1039,8 @@ export type PagePluginVersionDto = {
|
|
|
1039
1039
|
content?: PluginVersionDto[];
|
|
1040
1040
|
"number"?: number;
|
|
1041
1041
|
sort?: SortObject[];
|
|
1042
|
-
pageable?: PageableObject;
|
|
1043
1042
|
numberOfElements?: number;
|
|
1043
|
+
pageable?: PageableObject;
|
|
1044
1044
|
empty?: boolean;
|
|
1045
1045
|
};
|
|
1046
1046
|
export type DownloadBase64Response = {
|
|
@@ -1066,8 +1066,8 @@ export type PageActionVersionDto = {
|
|
|
1066
1066
|
content?: ActionVersionDto[];
|
|
1067
1067
|
"number"?: number;
|
|
1068
1068
|
sort?: SortObject[];
|
|
1069
|
-
pageable?: PageableObject;
|
|
1070
1069
|
numberOfElements?: number;
|
|
1070
|
+
pageable?: PageableObject;
|
|
1071
1071
|
empty?: boolean;
|
|
1072
1072
|
};
|
|
1073
1073
|
export type StackStudioV2Response = {
|
|
@@ -1193,8 +1193,8 @@ export type PageGetWorkflowsByStudioResponse = {
|
|
|
1193
1193
|
content?: GetWorkflowsByStudioResponse[];
|
|
1194
1194
|
"number"?: number;
|
|
1195
1195
|
sort?: SortObject[];
|
|
1196
|
-
pageable?: PageableObject;
|
|
1197
1196
|
numberOfElements?: number;
|
|
1197
|
+
pageable?: PageableObject;
|
|
1198
1198
|
empty?: boolean;
|
|
1199
1199
|
};
|
|
1200
1200
|
export type ListWorkflowVersionsResponse = {
|
|
@@ -1214,8 +1214,8 @@ export type PageListWorkflowVersionsResponse = {
|
|
|
1214
1214
|
content?: ListWorkflowVersionsResponse[];
|
|
1215
1215
|
"number"?: number;
|
|
1216
1216
|
sort?: SortObject[];
|
|
1217
|
-
pageable?: PageableObject;
|
|
1218
1217
|
numberOfElements?: number;
|
|
1218
|
+
pageable?: PageableObject;
|
|
1219
1219
|
empty?: boolean;
|
|
1220
1220
|
};
|
|
1221
1221
|
export type DownloadWorkflowBase64Response = {
|
|
@@ -1287,8 +1287,8 @@ export type PageGetAvailableWorkflowVersionsResponse = {
|
|
|
1287
1287
|
content?: GetAvailableWorkflowVersionsResponse[];
|
|
1288
1288
|
"number"?: number;
|
|
1289
1289
|
sort?: SortObject[];
|
|
1290
|
-
pageable?: PageableObject;
|
|
1291
1290
|
numberOfElements?: number;
|
|
1291
|
+
pageable?: PageableObject;
|
|
1292
1292
|
empty?: boolean;
|
|
1293
1293
|
};
|
|
1294
1294
|
export type StackWorkspaceViewResponse = {
|
|
@@ -1307,8 +1307,8 @@ export type PageStackWorkspaceViewResponse = {
|
|
|
1307
1307
|
content?: StackWorkspaceViewResponse[];
|
|
1308
1308
|
"number"?: number;
|
|
1309
1309
|
sort?: SortObject[];
|
|
1310
|
-
pageable?: PageableObject;
|
|
1311
1310
|
numberOfElements?: number;
|
|
1311
|
+
pageable?: PageableObject;
|
|
1312
1312
|
empty?: boolean;
|
|
1313
1313
|
};
|
|
1314
1314
|
export type StackVersionInWorkspaceDetailResponse = {
|
|
@@ -1335,8 +1335,8 @@ export type PageStackWorkspaceDetailViewResponse = {
|
|
|
1335
1335
|
content?: StackWorkspaceDetailViewResponse[];
|
|
1336
1336
|
"number"?: number;
|
|
1337
1337
|
sort?: SortObject[];
|
|
1338
|
-
pageable?: PageableObject;
|
|
1339
1338
|
numberOfElements?: number;
|
|
1339
|
+
pageable?: PageableObject;
|
|
1340
1340
|
empty?: boolean;
|
|
1341
1341
|
};
|
|
1342
1342
|
export type GetUnusedStackVersionsResponse = {
|
|
@@ -1354,8 +1354,8 @@ export type PageGetUnusedStackVersionsResponse = {
|
|
|
1354
1354
|
content?: GetUnusedStackVersionsResponse[];
|
|
1355
1355
|
"number"?: number;
|
|
1356
1356
|
sort?: SortObject[];
|
|
1357
|
-
pageable?: PageableObject;
|
|
1358
1357
|
numberOfElements?: number;
|
|
1358
|
+
pageable?: PageableObject;
|
|
1359
1359
|
empty?: boolean;
|
|
1360
1360
|
};
|
|
1361
1361
|
export type StackModalViewResponse = {
|
|
@@ -1505,8 +1505,8 @@ export type PagePluginStarterResponse = {
|
|
|
1505
1505
|
content?: PluginStarterResponse[];
|
|
1506
1506
|
"number"?: number;
|
|
1507
1507
|
sort?: SortObject[];
|
|
1508
|
-
pageable?: PageableObject;
|
|
1509
1508
|
numberOfElements?: number;
|
|
1509
|
+
pageable?: PageableObject;
|
|
1510
1510
|
empty?: boolean;
|
|
1511
1511
|
};
|
|
1512
1512
|
export type GetPluginStackStarterUsageStackResponse = {
|
|
@@ -1531,8 +1531,8 @@ export type PageGetPluginStackStarterUsageResponse = {
|
|
|
1531
1531
|
content?: GetPluginStackStarterUsageResponse[];
|
|
1532
1532
|
"number"?: number;
|
|
1533
1533
|
sort?: SortObject[];
|
|
1534
|
-
pageable?: PageableObject;
|
|
1535
1534
|
numberOfElements?: number;
|
|
1535
|
+
pageable?: PageableObject;
|
|
1536
1536
|
empty?: boolean;
|
|
1537
1537
|
};
|
|
1538
1538
|
export type PluginStacksResponse = {
|
|
@@ -1553,8 +1553,8 @@ export type PagePluginStacksResponse = {
|
|
|
1553
1553
|
content?: PluginStacksResponse[];
|
|
1554
1554
|
"number"?: number;
|
|
1555
1555
|
sort?: SortObject[];
|
|
1556
|
-
pageable?: PageableObject;
|
|
1557
1556
|
numberOfElements?: number;
|
|
1557
|
+
pageable?: PageableObject;
|
|
1558
1558
|
empty?: boolean;
|
|
1559
1559
|
};
|
|
1560
1560
|
export type GetPluginStackUsageStackResponse = {
|
|
@@ -1579,8 +1579,8 @@ export type PageGetPluginStackUsageResponse = {
|
|
|
1579
1579
|
content?: GetPluginStackUsageResponse[];
|
|
1580
1580
|
"number"?: number;
|
|
1581
1581
|
sort?: SortObject[];
|
|
1582
|
-
pageable?: PageableObject;
|
|
1583
1582
|
numberOfElements?: number;
|
|
1583
|
+
pageable?: PageableObject;
|
|
1584
1584
|
empty?: boolean;
|
|
1585
1585
|
};
|
|
1586
1586
|
export type PluginInfrastructureWorkspaceResponse = {
|
|
@@ -1605,8 +1605,8 @@ export type PagePluginInfrastructureViewResponse = {
|
|
|
1605
1605
|
content?: PluginInfrastructureViewResponse[];
|
|
1606
1606
|
"number"?: number;
|
|
1607
1607
|
sort?: SortObject[];
|
|
1608
|
-
pageable?: PageableObject;
|
|
1609
1608
|
numberOfElements?: number;
|
|
1609
|
+
pageable?: PageableObject;
|
|
1610
1610
|
empty?: boolean;
|
|
1611
1611
|
};
|
|
1612
1612
|
export type GetInfrastructureEnvironmentsUsageEnvironmentResponse = {
|
|
@@ -1631,8 +1631,8 @@ export type PageInfrastructureEnvironmentsUsesPluginResponse = {
|
|
|
1631
1631
|
content?: InfrastructureEnvironmentsUsesPluginResponse[];
|
|
1632
1632
|
"number"?: number;
|
|
1633
1633
|
sort?: SortObject[];
|
|
1634
|
-
pageable?: PageableObject;
|
|
1635
1634
|
numberOfElements?: number;
|
|
1635
|
+
pageable?: PageableObject;
|
|
1636
1636
|
empty?: boolean;
|
|
1637
1637
|
};
|
|
1638
1638
|
export type PluginViewUsageMonitorResponse = {
|
|
@@ -1651,8 +1651,8 @@ export type PagePluginViewUsageMonitorResponse = {
|
|
|
1651
1651
|
content?: PluginViewUsageMonitorResponse[];
|
|
1652
1652
|
"number"?: number;
|
|
1653
1653
|
sort?: SortObject[];
|
|
1654
|
-
pageable?: PageableObject;
|
|
1655
1654
|
numberOfElements?: number;
|
|
1655
|
+
pageable?: PageableObject;
|
|
1656
1656
|
empty?: boolean;
|
|
1657
1657
|
};
|
|
1658
1658
|
export type DependentPluginVersionResponse = {
|
|
@@ -1672,8 +1672,8 @@ export type PageGetDependentPluginsVersionsResponse = {
|
|
|
1672
1672
|
content?: GetDependentPluginsVersionsResponse[];
|
|
1673
1673
|
"number"?: number;
|
|
1674
1674
|
sort?: SortObject[];
|
|
1675
|
-
pageable?: PageableObject;
|
|
1676
1675
|
numberOfElements?: number;
|
|
1676
|
+
pageable?: PageableObject;
|
|
1677
1677
|
empty?: boolean;
|
|
1678
1678
|
};
|
|
1679
1679
|
export type GetPluginVersionsNotInUseResponse = {
|
|
@@ -1690,8 +1690,8 @@ export type PageGetPluginVersionsNotInUseResponse = {
|
|
|
1690
1690
|
content?: GetPluginVersionsNotInUseResponse[];
|
|
1691
1691
|
"number"?: number;
|
|
1692
1692
|
sort?: SortObject[];
|
|
1693
|
-
pageable?: PageableObject;
|
|
1694
1693
|
numberOfElements?: number;
|
|
1694
|
+
pageable?: PageableObject;
|
|
1695
1695
|
empty?: boolean;
|
|
1696
1696
|
};
|
|
1697
1697
|
export type PluginInUseSummaryResponse = {
|
|
@@ -1724,8 +1724,8 @@ export type PagePluginApplicationsResponse = {
|
|
|
1724
1724
|
content?: PluginApplicationsResponse[];
|
|
1725
1725
|
"number"?: number;
|
|
1726
1726
|
sort?: SortObject[];
|
|
1727
|
-
pageable?: PageableObject;
|
|
1728
1727
|
numberOfElements?: number;
|
|
1728
|
+
pageable?: PageableObject;
|
|
1729
1729
|
empty?: boolean;
|
|
1730
1730
|
};
|
|
1731
1731
|
export type PluginUsageMonitorApplicationViewVersionResponse = {
|
|
@@ -1750,8 +1750,8 @@ export type PagePluginUsageMonitorApplicationViewResponse = {
|
|
|
1750
1750
|
content?: PluginUsageMonitorApplicationViewResponse[];
|
|
1751
1751
|
"number"?: number;
|
|
1752
1752
|
sort?: SortObject[];
|
|
1753
|
-
pageable?: PageableObject;
|
|
1754
1753
|
numberOfElements?: number;
|
|
1754
|
+
pageable?: PageableObject;
|
|
1755
1755
|
empty?: boolean;
|
|
1756
1756
|
};
|
|
1757
1757
|
export type ListActionVersionItemResponse = {
|
|
@@ -1873,8 +1873,8 @@ export type PageContentEvaluationResponse = {
|
|
|
1873
1873
|
content?: ContentEvaluationResponse[];
|
|
1874
1874
|
"number"?: number;
|
|
1875
1875
|
sort?: SortObject[];
|
|
1876
|
-
pageable?: PageableObject;
|
|
1877
1876
|
numberOfElements?: number;
|
|
1877
|
+
pageable?: PageableObject;
|
|
1878
1878
|
empty?: boolean;
|
|
1879
1879
|
};
|
|
1880
1880
|
export type ContentEvaluationSummaryDetailsResponse = {
|
|
@@ -2345,7 +2345,8 @@ export function createConnectionInterfaceType({ createConnectionInterfaceTypeReq
|
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Validate and return info from a workflow
|
|
2347
2347
|
*/
|
|
2348
|
-
export function validateWorkflow({ body }: {
|
|
2348
|
+
export function validateWorkflow({ studioSlug, body }: {
|
|
2349
|
+
studioSlug?: string;
|
|
2349
2350
|
body?: {
|
|
2350
2351
|
file: Blob;
|
|
2351
2352
|
};
|
|
@@ -2369,7 +2370,9 @@ export function validateWorkflow({ body }: {
|
|
|
2369
2370
|
details: string;
|
|
2370
2371
|
validationDetails?: ValidationDetails[];
|
|
2371
2372
|
};
|
|
2372
|
-
}>(
|
|
2373
|
+
}>(`/v1/workflows/validate${QS.query(QS.explode({
|
|
2374
|
+
studioSlug
|
|
2375
|
+
}))}`, oazapfts.json({
|
|
2373
2376
|
...opts,
|
|
2374
2377
|
method: "POST",
|
|
2375
2378
|
body
|
|
@@ -3094,8 +3097,9 @@ export function listStudios({ xWorkspaceId, filterStudioRequest }: {
|
|
|
3094
3097
|
/**
|
|
3095
3098
|
* Validate and return info from a starter
|
|
3096
3099
|
*/
|
|
3097
|
-
export function validateStack({ starterPath, body }: {
|
|
3100
|
+
export function validateStack({ starterPath, studioSlug, body }: {
|
|
3098
3101
|
starterPath: string;
|
|
3102
|
+
studioSlug?: string;
|
|
3099
3103
|
body?: {
|
|
3100
3104
|
file: Blob;
|
|
3101
3105
|
};
|
|
@@ -3120,7 +3124,8 @@ export function validateStack({ starterPath, body }: {
|
|
|
3120
3124
|
validationDetails?: ValidationDetails[];
|
|
3121
3125
|
};
|
|
3122
3126
|
}>(`/v1/starters/validate${QS.query(QS.explode({
|
|
3123
|
-
starterPath
|
|
3127
|
+
starterPath,
|
|
3128
|
+
studioSlug
|
|
3124
3129
|
}))}`, oazapfts.json({
|
|
3125
3130
|
...opts,
|
|
3126
3131
|
method: "POST",
|
|
@@ -3765,7 +3770,8 @@ export function getStackVersionListByIds({ xWorkspaceId, filterStackVersionReque
|
|
|
3765
3770
|
/**
|
|
3766
3771
|
* Validate and return info from a stack
|
|
3767
3772
|
*/
|
|
3768
|
-
export function validateStack1({ body }: {
|
|
3773
|
+
export function validateStack1({ studioSlug, body }: {
|
|
3774
|
+
studioSlug?: string;
|
|
3769
3775
|
body?: {
|
|
3770
3776
|
file: Blob;
|
|
3771
3777
|
};
|
|
@@ -3789,7 +3795,9 @@ export function validateStack1({ body }: {
|
|
|
3789
3795
|
details: string;
|
|
3790
3796
|
validationDetails?: ValidationDetails[];
|
|
3791
3797
|
};
|
|
3792
|
-
}>(
|
|
3798
|
+
}>(`/v1/stacks/validate${QS.query(QS.explode({
|
|
3799
|
+
studioSlug
|
|
3800
|
+
}))}`, oazapfts.json({
|
|
3793
3801
|
...opts,
|
|
3794
3802
|
method: "POST",
|
|
3795
3803
|
body
|
|
@@ -3895,7 +3903,8 @@ export function deprecatePluginVersion({ pluginVersionId, deprecateContentReques
|
|
|
3895
3903
|
/**
|
|
3896
3904
|
* Validate and return info from a plugin
|
|
3897
3905
|
*/
|
|
3898
|
-
export function validatePlugin({ body }: {
|
|
3906
|
+
export function validatePlugin({ studioSlug, body }: {
|
|
3907
|
+
studioSlug?: string;
|
|
3899
3908
|
body?: {
|
|
3900
3909
|
file: Blob;
|
|
3901
3910
|
};
|
|
@@ -3919,7 +3928,9 @@ export function validatePlugin({ body }: {
|
|
|
3919
3928
|
details: string;
|
|
3920
3929
|
validationDetails?: ValidationDetails[];
|
|
3921
3930
|
};
|
|
3922
|
-
}>(
|
|
3931
|
+
}>(`/v1/plugins/validate${QS.query(QS.explode({
|
|
3932
|
+
studioSlug
|
|
3933
|
+
}))}`, oazapfts.json({
|
|
3923
3934
|
...opts,
|
|
3924
3935
|
method: "POST",
|
|
3925
3936
|
body
|
|
@@ -4164,7 +4175,8 @@ export function deprecateActionVersion({ actionVersionId, deprecateContentReques
|
|
|
4164
4175
|
/**
|
|
4165
4176
|
* Validate and return info from a action
|
|
4166
4177
|
*/
|
|
4167
|
-
export function validateAction({ body }: {
|
|
4178
|
+
export function validateAction({ studioSlug, body }: {
|
|
4179
|
+
studioSlug?: string;
|
|
4168
4180
|
body?: {
|
|
4169
4181
|
file: Blob;
|
|
4170
4182
|
};
|
|
@@ -4188,7 +4200,9 @@ export function validateAction({ body }: {
|
|
|
4188
4200
|
details: string;
|
|
4189
4201
|
validationDetails?: ValidationDetails[];
|
|
4190
4202
|
};
|
|
4191
|
-
}>(
|
|
4203
|
+
}>(`/v1/actions/validate${QS.query(QS.explode({
|
|
4204
|
+
studioSlug
|
|
4205
|
+
}))}`, oazapfts.json({
|
|
4192
4206
|
...opts,
|
|
4193
4207
|
method: "POST",
|
|
4194
4208
|
body
|
package/src/api/notification.ts
CHANGED
|
@@ -14,10 +14,15 @@ const oazapfts = Oazapfts.runtime(defaults);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://account-notification-engine.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
18
|
-
id: string;
|
|
17
|
+
export type NotificationContentResponse = {
|
|
19
18
|
title: string;
|
|
20
19
|
description: string;
|
|
20
|
+
};
|
|
21
|
+
export type GetTenantNotificationsResponse = {
|
|
22
|
+
id: string;
|
|
23
|
+
content: {
|
|
24
|
+
[key: string]: NotificationContentResponse;
|
|
25
|
+
};
|
|
21
26
|
broadcast_level: "ACCOUNT" | "INDIVIDUAL" | "PLATFORM" | "RESOURCE";
|
|
22
27
|
context: "ACCOUNT" | "STUDIO" | "WORKSPACE" | "AI";
|
|
23
28
|
target?: string;
|
|
@@ -46,11 +51,17 @@ export type ApiErrorResponse = {
|
|
|
46
51
|
message: string;
|
|
47
52
|
details?: ErrorDetails[];
|
|
48
53
|
};
|
|
49
|
-
export type
|
|
54
|
+
export type NotificationContentRequest = {
|
|
50
55
|
/** User friendly title for the notification */
|
|
51
56
|
title: string;
|
|
52
57
|
/** User friendly description for the notification (allows the use of markdown) */
|
|
53
58
|
description: string;
|
|
59
|
+
};
|
|
60
|
+
export type CreateTenantNotificationRequest = {
|
|
61
|
+
/** Map of language codes to notification content. Each entry represents the content of the notification in a specific language. */
|
|
62
|
+
content: {
|
|
63
|
+
[key: string]: NotificationContentRequest;
|
|
64
|
+
};
|
|
54
65
|
/** Level of broadcasting to the notification. */
|
|
55
66
|
broadcast_level: "ACCOUNT" | "INDIVIDUAL" | "PLATFORM" | "RESOURCE" | "ACCOUNT" | "INDIVIDUAL" | "RESOURCE";
|
|
56
67
|
/** The target of the notification, user id for 'individual', resource id for 'resource', leave empty for any other */
|
|
@@ -69,10 +80,10 @@ export type CreateTenantNotificationRequest = {
|
|
|
69
80
|
trigger_at: string;
|
|
70
81
|
};
|
|
71
82
|
export type CreatePlatformNotificationRequest = {
|
|
72
|
-
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
/** Map of language codes to notification content. Each entry represents the content of the notification in a specific language. */
|
|
84
|
+
content: {
|
|
85
|
+
[key: string]: NotificationContentRequest;
|
|
86
|
+
};
|
|
76
87
|
/** Criticality of the notification. */
|
|
77
88
|
criticality: "LOW" | "MEDIUM" | "HIGH" | "LOW" | "MEDIUM" | "HIGH";
|
|
78
89
|
/** Which context to publish the notification */
|
|
@@ -96,7 +107,7 @@ export type GetCommittedNotificationsResponse = {
|
|
|
96
107
|
/**
|
|
97
108
|
* Get notifications for tenant
|
|
98
109
|
*/
|
|
99
|
-
export function
|
|
110
|
+
export function findAll1({ size, page, createdSince, context, criticality, content, committed, tenantId }: {
|
|
100
111
|
size?: number;
|
|
101
112
|
page?: number;
|
|
102
113
|
createdSince?: number;
|
|
@@ -184,6 +195,40 @@ export function create1({ createPlatformNotificationRequest }: {
|
|
|
184
195
|
body: createPlatformNotificationRequest
|
|
185
196
|
})));
|
|
186
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Get notifications for tenant
|
|
200
|
+
*/
|
|
201
|
+
export function findAll({ size, page, createdSince, context, criticality, content, committed, tenantId }: {
|
|
202
|
+
size?: number;
|
|
203
|
+
page?: number;
|
|
204
|
+
createdSince?: number;
|
|
205
|
+
context?: "ACCOUNT" | "STUDIO" | "WORKSPACE" | "AI";
|
|
206
|
+
criticality?: "LOW" | "MEDIUM" | "HIGH";
|
|
207
|
+
content?: string;
|
|
208
|
+
committed?: boolean;
|
|
209
|
+
tenantId: string;
|
|
210
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
211
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
212
|
+
status: 200;
|
|
213
|
+
data: PagingResponseModelGetTenantNotificationsResponse;
|
|
214
|
+
} | {
|
|
215
|
+
status: 403;
|
|
216
|
+
data: ApiErrorResponse;
|
|
217
|
+
} | {
|
|
218
|
+
status: 500;
|
|
219
|
+
data: ApiErrorResponse;
|
|
220
|
+
}>(`/v2/tenants/${encodeURIComponent(tenantId)}/notifications${QS.query(QS.explode({
|
|
221
|
+
size,
|
|
222
|
+
page,
|
|
223
|
+
createdSince,
|
|
224
|
+
context,
|
|
225
|
+
criticality,
|
|
226
|
+
content,
|
|
227
|
+
committed
|
|
228
|
+
}))}`, {
|
|
229
|
+
...opts
|
|
230
|
+
}));
|
|
231
|
+
}
|
|
187
232
|
/**
|
|
188
233
|
* Allows to check if there are any uncommitted notifications for the user
|
|
189
234
|
*/
|