@abyss-project/reflex 1.0.0 → 1.2.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/dist/api/function-run.api.d.ts +2 -1
- package/dist/api/function-run.api.js +3 -1
- package/dist/api/function-run.api.js.map +1 -1
- package/dist/api/function-settings.api.d.ts +5 -0
- package/dist/api/function-settings.api.js +15 -0
- package/dist/api/function-settings.api.js.map +1 -0
- package/dist/api/function-version.api.d.ts +2 -1
- package/dist/api/function-version.api.js +3 -1
- package/dist/api/function-version.api.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/types/enum/execution-mode.enum.d.ts +4 -0
- package/dist/types/enum/execution-mode.enum.js +9 -0
- package/dist/types/enum/execution-mode.enum.js.map +1 -0
- package/dist/types/enum/execution-profile.enum.d.ts +8 -0
- package/dist/types/enum/execution-profile.enum.js +19 -0
- package/dist/types/enum/execution-profile.enum.js.map +1 -0
- package/dist/types/enum/execution-settings-source.enum.d.ts +5 -0
- package/dist/types/enum/execution-settings-source.enum.js +10 -0
- package/dist/types/enum/execution-settings-source.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +5 -0
- package/dist/types/enum/index.js +5 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/run-log-level.enum.d.ts +5 -0
- package/dist/types/enum/run-log-level.enum.js +10 -0
- package/dist/types/enum/run-log-level.enum.js.map +1 -0
- package/dist/types/enum/run-status.enum.d.ts +3 -1
- package/dist/types/enum/run-status.enum.js +2 -0
- package/dist/types/enum/run-status.enum.js.map +1 -1
- package/dist/types/enum/run-step-status.enum.d.ts +5 -0
- package/dist/types/enum/run-step-status.enum.js +10 -0
- package/dist/types/enum/run-step-status.enum.js.map +1 -0
- package/dist/types/enum/trace-effect-type.enum.js.map +1 -1
- package/dist/types/interface/api/requests/function-run.request.d.ts +5 -0
- package/dist/types/interface/api/requests/function-settings.request.d.ts +21 -0
- package/dist/types/interface/api/requests/function-settings.request.js +3 -0
- package/dist/types/interface/api/requests/function-settings.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-version.request.d.ts +8 -0
- package/dist/types/interface/api/requests/index.d.ts +1 -0
- package/dist/types/interface/api/requests/index.js +1 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/responses/function-run.response.d.ts +6 -2
- package/dist/types/interface/api/responses/function-settings.response.d.ts +20 -0
- package/dist/types/interface/api/responses/function-settings.response.js +3 -0
- package/dist/types/interface/api/responses/function-settings.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-version.response.d.ts +10 -1
- package/dist/types/interface/api/responses/index.d.ts +1 -0
- package/dist/types/interface/api/responses/index.js +1 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/models/index.d.ts +3 -0
- package/dist/types/interface/models/index.js +3 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-definition.model.d.ts +2 -0
- package/dist/types/interface/models/reflex-definition.model.js +3 -0
- package/dist/types/interface/models/reflex-definition.model.js.map +1 -1
- package/dist/types/interface/models/reflex-execution-settings.model.d.ts +35 -0
- package/dist/types/interface/models/reflex-execution-settings.model.js +15 -0
- package/dist/types/interface/models/reflex-execution-settings.model.js.map +1 -0
- package/dist/types/interface/models/reflex-price-list.model.d.ts +13 -0
- package/dist/types/interface/models/reflex-price-list.model.js +3 -0
- package/dist/types/interface/models/reflex-price-list.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +52 -1
- package/dist/types/interface/models/reflex-step-stats.model.d.ts +22 -0
- package/dist/types/interface/models/reflex-step-stats.model.js +3 -0
- package/dist/types/interface/models/reflex-step-stats.model.js.map +1 -0
- package/package.json +1 -1
- package/src/api/function-access.api.ts +36 -36
- package/src/api/function-promotion.api.ts +42 -42
- package/src/api/function-run.api.ts +13 -1
- package/src/api/function-settings.api.ts +59 -0
- package/src/api/function-test.api.ts +33 -33
- package/src/api/function-trigger.api.ts +52 -52
- package/src/api/function-version.api.ts +19 -0
- package/src/api/function.api.test.ts +96 -1
- package/src/api/function.api.ts +62 -62
- package/src/api/index.ts +1 -0
- package/src/index.ts +17 -0
- package/src/types/enum/access-grant-status.enum.ts +12 -12
- package/src/types/enum/access-kind.enum.ts +7 -7
- package/src/types/enum/execution-mode.enum.ts +9 -0
- package/src/types/enum/execution-profile.enum.ts +20 -0
- package/src/types/enum/execution-settings-source.enum.ts +9 -0
- package/src/types/enum/index.ts +5 -0
- package/src/types/enum/reflex-error-code.enum.ts +19 -19
- package/src/types/enum/run-log-level.enum.ts +6 -0
- package/src/types/enum/run-mode.enum.ts +11 -11
- package/src/types/enum/run-status.enum.ts +7 -0
- package/src/types/enum/run-step-status.enum.ts +7 -0
- package/src/types/enum/trace-effect-type.enum.ts +6 -0
- package/src/types/enum/trigger-access-mode.enum.ts +12 -12
- package/src/types/enum/trigger-type.enum.ts +4 -4
- package/src/types/interface/api/index.ts +3 -3
- package/src/types/interface/api/requests/function-access.request.ts +25 -25
- package/src/types/interface/api/requests/function-promotion.request.ts +25 -25
- package/src/types/interface/api/requests/function-run.request.ts +7 -0
- package/src/types/interface/api/requests/function-settings.request.ts +27 -0
- package/src/types/interface/api/requests/function-test.request.ts +19 -19
- package/src/types/interface/api/requests/function-trigger.request.ts +28 -28
- package/src/types/interface/api/requests/function-version.request.ts +10 -0
- package/src/types/interface/api/requests/function.request.ts +34 -34
- package/src/types/interface/api/requests/index.ts +1 -0
- package/src/types/interface/api/response.ts +4 -4
- package/src/types/interface/api/responses/function-access.response.ts +17 -17
- package/src/types/interface/api/responses/function-promotion.response.ts +18 -18
- package/src/types/interface/api/responses/function-run.response.ts +7 -2
- package/src/types/interface/api/responses/function-settings.response.ts +36 -0
- package/src/types/interface/api/responses/function-test.response.ts +12 -12
- package/src/types/interface/api/responses/function-trigger.response.ts +24 -24
- package/src/types/interface/api/responses/function-version.response.ts +20 -1
- package/src/types/interface/api/responses/function.response.ts +25 -25
- package/src/types/interface/api/responses/index.ts +1 -0
- package/src/types/interface/index.ts +3 -3
- package/src/types/interface/models/index.ts +3 -0
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-definition.model.ts +8 -0
- package/src/types/interface/models/reflex-environment-pointer.model.ts +18 -18
- package/src/types/interface/models/reflex-execution-settings.model.ts +50 -0
- package/src/types/interface/models/reflex-function-version.model.ts +14 -14
- package/src/types/interface/models/reflex-function.model.ts +14 -14
- package/src/types/interface/models/reflex-price-list.model.ts +20 -0
- package/src/types/interface/models/reflex-run.model.ts +108 -5
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -0
- package/src/types/interface/models/reflex-trigger.model.ts +17 -17
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { IGetFunctionRunParams, IGetFunctionRunResponse, IListFunctionRunParams, IListFunctionRunQuery, IListFunctionRunResponse } from '../types';
|
|
1
|
+
import type { IGetFunctionRunParams, IGetFunctionRunResponse, IGetFunctionRunStateParams, IGetFunctionRunStateResponse, IListFunctionRunParams, IListFunctionRunQuery, IListFunctionRunResponse } from '../types';
|
|
2
2
|
export declare const listFunctionRun: (params: IListFunctionRunParams, query?: IListFunctionRunQuery) => Promise<IListFunctionRunResponse>;
|
|
3
3
|
export declare const getFunctionRun: (params: IGetFunctionRunParams) => Promise<IGetFunctionRunResponse>;
|
|
4
|
+
export declare const getFunctionRunState: (params: IGetFunctionRunStateParams) => Promise<IGetFunctionRunStateResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFunctionRun = exports.listFunctionRun = void 0;
|
|
3
|
+
exports.getFunctionRunState = exports.getFunctionRun = exports.listFunctionRun = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const runUrl = (params) => `api/function/${params.applicationId}/${params.functionId}/run`;
|
|
6
6
|
const listFunctionRun = async (params, query = {}) => (await __1.AbyssReflexCore.axios.get(runUrl(params), { params: query }))
|
|
@@ -9,4 +9,6 @@ exports.listFunctionRun = listFunctionRun;
|
|
|
9
9
|
const getFunctionRun = async (params) => (await __1.AbyssReflexCore.axios.get(`${runUrl(params)}/${params.runId}`))
|
|
10
10
|
.data;
|
|
11
11
|
exports.getFunctionRun = getFunctionRun;
|
|
12
|
+
const getFunctionRunState = async (params) => (await __1.AbyssReflexCore.axios.get(`${runUrl(params)}/${params.runId}/state`)).data;
|
|
13
|
+
exports.getFunctionRunState = getFunctionRunState;
|
|
12
14
|
//# sourceMappingURL=function-run.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-run.api.js","sourceRoot":"","sources":["../../src/api/function-run.api.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;
|
|
1
|
+
{"version":3,"file":"function-run.api.js","sourceRoot":"","sources":["../../src/api/function-run.api.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAWrC,MAAM,MAAM,GAAG,CAAC,MAAqD,EAAU,EAAE,CAC/E,gBAAgB,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,UAAU,MAAM,CAAC;AAG3D,MAAM,eAAe,GAAG,KAAK,EAClC,MAA8B,EAC9B,QAA+B,EAAE,EACE,EAAE,CACrC,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAA2B,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;KAC3F,IAAI,CAAC;AALG,QAAA,eAAe,mBAKlB;AAGH,MAAM,cAAc,GAAG,KAAK,EACjC,MAA6B,EACK,EAAE,CACpC,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAA0B,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;KAC5F,IAAI,CAAC;AAJG,QAAA,cAAc,kBAIjB;AAGH,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAkC,EACK,EAAE,CACzC,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAC7B,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,QAAQ,CAC1C,CACF,CAAC,IAAI,CAAC;AAPI,QAAA,mBAAmB,uBAOvB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IGetFunctionSettingsParams, IGetFunctionSettingsResponse, IRemoveFunctionEnvironmentSettingsParams, IRemoveFunctionEnvironmentSettingsResponse, ISetFunctionDefaultSettingsBody, ISetFunctionDefaultSettingsParams, ISetFunctionDefaultSettingsResponse, ISetFunctionEnvironmentSettingsBody, ISetFunctionEnvironmentSettingsParams, ISetFunctionEnvironmentSettingsResponse } from '../types';
|
|
2
|
+
export declare const getFunctionSettings: (params: IGetFunctionSettingsParams) => Promise<IGetFunctionSettingsResponse>;
|
|
3
|
+
export declare const setFunctionDefaultSettings: (params: ISetFunctionDefaultSettingsParams, body: ISetFunctionDefaultSettingsBody) => Promise<ISetFunctionDefaultSettingsResponse>;
|
|
4
|
+
export declare const setFunctionEnvironmentSettings: (params: ISetFunctionEnvironmentSettingsParams, body: ISetFunctionEnvironmentSettingsBody) => Promise<ISetFunctionEnvironmentSettingsResponse>;
|
|
5
|
+
export declare const removeFunctionEnvironmentSettings: (params: IRemoveFunctionEnvironmentSettingsParams) => Promise<IRemoveFunctionEnvironmentSettingsResponse>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeFunctionEnvironmentSettings = exports.setFunctionEnvironmentSettings = exports.setFunctionDefaultSettings = exports.getFunctionSettings = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const settingsUrl = (params) => `api/function/${params.applicationId}/${params.functionId}/settings`;
|
|
6
|
+
const getFunctionSettings = async (params) => (await __1.AbyssReflexCore.axios.get(settingsUrl(params))).data;
|
|
7
|
+
exports.getFunctionSettings = getFunctionSettings;
|
|
8
|
+
const setFunctionDefaultSettings = async (params, body) => (await __1.AbyssReflexCore.axios.put(settingsUrl(params), body))
|
|
9
|
+
.data;
|
|
10
|
+
exports.setFunctionDefaultSettings = setFunctionDefaultSettings;
|
|
11
|
+
const setFunctionEnvironmentSettings = async (params, body) => (await __1.AbyssReflexCore.axios.put(`${settingsUrl(params)}/${params.environmentId}`, body)).data;
|
|
12
|
+
exports.setFunctionEnvironmentSettings = setFunctionEnvironmentSettings;
|
|
13
|
+
const removeFunctionEnvironmentSettings = async (params) => (await __1.AbyssReflexCore.axios.delete(`${settingsUrl(params)}/${params.environmentId}`)).data;
|
|
14
|
+
exports.removeFunctionEnvironmentSettings = removeFunctionEnvironmentSettings;
|
|
15
|
+
//# sourceMappingURL=function-settings.api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-settings.api.js","sourceRoot":"","sources":["../../src/api/function-settings.api.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAcrC,MAAM,WAAW,GAAG,CAAC,MAAqD,EAAU,EAAE,CACpF,gBAAgB,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,UAAU,WAAW,CAAC;AAGhE,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAkC,EACK,EAAE,CACzC,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAA+B,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAH/E,QAAA,mBAAmB,uBAG4D;AAOrF,MAAM,0BAA0B,GAAG,KAAK,EAC7C,MAAyC,EACzC,IAAqC,EACS,EAAE,CAChD,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAAsC,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;KAC9F,IAAI,CAAC;AALG,QAAA,0BAA0B,8BAK7B;AAMH,MAAM,8BAA8B,GAAG,KAAK,EACjD,MAA6C,EAC7C,IAAyC,EACS,EAAE,CACpD,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAC7B,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,aAAa,EAAE,EAChD,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AATI,QAAA,8BAA8B,kCASlC;AAGF,MAAM,iCAAiC,GAAG,KAAK,EACpD,MAAgD,EACK,EAAE,CACvD,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,MAAM,CAChC,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,aAAa,EAAE,CACjD,CACF,CAAC,IAAI,CAAC;AAPI,QAAA,iCAAiC,qCAOrC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { IGetFunctionVersionParams, IGetFunctionVersionResponse, IListFunctionVersionParams, IListFunctionVersionResponse, IPublishFunctionVersionParams, IPublishFunctionVersionResponse } from '../types';
|
|
1
|
+
import type { IGetFunctionVersionParams, IGetFunctionVersionResponse, IGetFunctionVersionStepStatsParams, IGetFunctionVersionStepStatsQuery, IGetFunctionVersionStepStatsResponse, IListFunctionVersionParams, IListFunctionVersionResponse, IPublishFunctionVersionParams, IPublishFunctionVersionResponse } from '../types';
|
|
2
2
|
export declare const listFunctionVersion: (params: IListFunctionVersionParams) => Promise<IListFunctionVersionResponse>;
|
|
3
3
|
export declare const publishFunctionVersion: (params: IPublishFunctionVersionParams) => Promise<IPublishFunctionVersionResponse>;
|
|
4
4
|
export declare const getFunctionVersion: (params: IGetFunctionVersionParams) => Promise<IGetFunctionVersionResponse>;
|
|
5
|
+
export declare const getFunctionVersionStepStats: (params: IGetFunctionVersionStepStatsParams, query?: IGetFunctionVersionStepStatsQuery) => Promise<IGetFunctionVersionStepStatsResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFunctionVersion = exports.publishFunctionVersion = exports.listFunctionVersion = void 0;
|
|
3
|
+
exports.getFunctionVersionStepStats = exports.getFunctionVersion = exports.publishFunctionVersion = exports.listFunctionVersion = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const versionUrl = (params) => `api/function/${params.applicationId}/${params.functionId}/version`;
|
|
6
6
|
const listFunctionVersion = async (params) => (await __1.AbyssReflexCore.axios.get(versionUrl(params))).data;
|
|
@@ -9,4 +9,6 @@ const publishFunctionVersion = async (params) => (await __1.AbyssReflexCore.axio
|
|
|
9
9
|
exports.publishFunctionVersion = publishFunctionVersion;
|
|
10
10
|
const getFunctionVersion = async (params) => (await __1.AbyssReflexCore.axios.get(`${versionUrl(params)}/${params.versionId}`)).data;
|
|
11
11
|
exports.getFunctionVersion = getFunctionVersion;
|
|
12
|
+
const getFunctionVersionStepStats = async (params, query = {}) => (await __1.AbyssReflexCore.axios.get(`${versionUrl(params)}/${params.versionId}/step-stats`, { params: query })).data;
|
|
13
|
+
exports.getFunctionVersionStepStats = getFunctionVersionStepStats;
|
|
12
14
|
//# sourceMappingURL=function-version.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-version.api.js","sourceRoot":"","sources":["../../src/api/function-version.api.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;
|
|
1
|
+
{"version":3,"file":"function-version.api.js","sourceRoot":"","sources":["../../src/api/function-version.api.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAarC,MAAM,UAAU,GAAG,CAAC,MAAqD,EAAU,EAAE,CACnF,gBAAgB,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,UAAU,UAAU,CAAC;AAG/D,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAkC,EACK,EAAE,CACzC,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAA+B,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAH9E,QAAA,mBAAmB,uBAG2D;AAMpF,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAqC,EACK,EAAE,CAC5C,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,IAAI,CAAkC,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAHtF,QAAA,sBAAsB,0BAGgE;AAG5F,MAAM,kBAAkB,GAAG,KAAK,EACrC,MAAiC,EACK,EAAE,CACxC,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAC7B,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,CAC5C,CACF,CAAC,IAAI,CAAC;AAPI,QAAA,kBAAkB,sBAOtB;AAOF,MAAM,2BAA2B,GAAG,KAAK,EAC9C,MAA0C,EAC1C,QAA2C,EAAE,EACE,EAAE,CACjD,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAC7B,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,aAAa,EACtD,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CACF,CAAC,IAAI,CAAC;AATI,QAAA,2BAA2B,+BAS/B"}
|
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -22,4 +22,5 @@ __exportStar(require("./function-version.api"), exports);
|
|
|
22
22
|
__exportStar(require("./function-promotion.api"), exports);
|
|
23
23
|
__exportStar(require("./function-trigger.api"), exports);
|
|
24
24
|
__exportStar(require("./function-run.api"), exports);
|
|
25
|
+
__exportStar(require("./function-settings.api"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
package/dist/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC;AACvC,2DAAyC;AACzC,yDAAuC;AACvC,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC;AACvC,2DAAyC;AACzC,yDAAuC;AACvC,qDAAmC;AACnC,0DAAwC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as functionVersionApi from './api/function-version.api';
|
|
|
6
6
|
import * as functionPromotionApi from './api/function-promotion.api';
|
|
7
7
|
import * as functionTriggerApi from './api/function-trigger.api';
|
|
8
8
|
import * as functionRunApi from './api/function-run.api';
|
|
9
|
+
import * as functionSettingsApi from './api/function-settings.api';
|
|
9
10
|
export * from './api';
|
|
10
11
|
export * from './types';
|
|
11
12
|
type CoreConfig = {
|
|
@@ -33,6 +34,7 @@ type AbyssReflexCoreSDK = {
|
|
|
33
34
|
list: typeof functionVersionApi.listFunctionVersion;
|
|
34
35
|
publish: typeof functionVersionApi.publishFunctionVersion;
|
|
35
36
|
get: typeof functionVersionApi.getFunctionVersion;
|
|
37
|
+
stepStats: typeof functionVersionApi.getFunctionVersionStepStats;
|
|
36
38
|
};
|
|
37
39
|
promotion: {
|
|
38
40
|
list: typeof functionPromotionApi.listFunctionPromotion;
|
|
@@ -48,6 +50,13 @@ type AbyssReflexCoreSDK = {
|
|
|
48
50
|
run: {
|
|
49
51
|
list: typeof functionRunApi.listFunctionRun;
|
|
50
52
|
get: typeof functionRunApi.getFunctionRun;
|
|
53
|
+
state: typeof functionRunApi.getFunctionRunState;
|
|
54
|
+
};
|
|
55
|
+
settings: {
|
|
56
|
+
get: typeof functionSettingsApi.getFunctionSettings;
|
|
57
|
+
setDefault: typeof functionSettingsApi.setFunctionDefaultSettings;
|
|
58
|
+
setEnvironment: typeof functionSettingsApi.setFunctionEnvironmentSettings;
|
|
59
|
+
removeEnvironment: typeof functionSettingsApi.removeFunctionEnvironmentSettings;
|
|
51
60
|
};
|
|
52
61
|
};
|
|
53
62
|
};
|
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ const functionVersionApi = __importStar(require("./api/function-version.api"));
|
|
|
49
49
|
const functionPromotionApi = __importStar(require("./api/function-promotion.api"));
|
|
50
50
|
const functionTriggerApi = __importStar(require("./api/function-trigger.api"));
|
|
51
51
|
const functionRunApi = __importStar(require("./api/function-run.api"));
|
|
52
|
+
const functionSettingsApi = __importStar(require("./api/function-settings.api"));
|
|
52
53
|
__exportStar(require("./api"), exports);
|
|
53
54
|
__exportStar(require("./types"), exports);
|
|
54
55
|
const DEFAULT_BASE_URL = 'https://reflex-api.abyss-project.fr/';
|
|
@@ -76,6 +77,7 @@ class AbyssReflexCore {
|
|
|
76
77
|
list: functionVersionApi.listFunctionVersion,
|
|
77
78
|
publish: functionVersionApi.publishFunctionVersion,
|
|
78
79
|
get: functionVersionApi.getFunctionVersion,
|
|
80
|
+
stepStats: functionVersionApi.getFunctionVersionStepStats,
|
|
79
81
|
},
|
|
80
82
|
promotion: {
|
|
81
83
|
list: functionPromotionApi.listFunctionPromotion,
|
|
@@ -91,6 +93,13 @@ class AbyssReflexCore {
|
|
|
91
93
|
run: {
|
|
92
94
|
list: functionRunApi.listFunctionRun,
|
|
93
95
|
get: functionRunApi.getFunctionRun,
|
|
96
|
+
state: functionRunApi.getFunctionRunState,
|
|
97
|
+
},
|
|
98
|
+
settings: {
|
|
99
|
+
get: functionSettingsApi.getFunctionSettings,
|
|
100
|
+
setDefault: functionSettingsApi.setFunctionDefaultSettings,
|
|
101
|
+
setEnvironment: functionSettingsApi.setFunctionEnvironmentSettings,
|
|
102
|
+
removeEnvironment: functionSettingsApi.removeFunctionEnvironmentSettings,
|
|
94
103
|
},
|
|
95
104
|
},
|
|
96
105
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,4DAA8C;AAC9C,gEAAkD;AAClD,6EAA+D;AAC/D,yEAA2D;AAC3D,+EAAiE;AACjE,mFAAqE;AACrE,+EAAiE;AACjE,uEAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecutionMode = void 0;
|
|
4
|
+
var ExecutionMode;
|
|
5
|
+
(function (ExecutionMode) {
|
|
6
|
+
ExecutionMode["SYNC"] = "SYNC";
|
|
7
|
+
ExecutionMode["ASYNC"] = "ASYNC";
|
|
8
|
+
})(ExecutionMode || (exports.ExecutionMode = ExecutionMode = {}));
|
|
9
|
+
//# sourceMappingURL=execution-mode.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-mode.enum.js","sourceRoot":"","sources":["../../../src/types/enum/execution-mode.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EXECUTION_PROFILE_MEMORY_MB = exports.ExecutionProfile = void 0;
|
|
4
|
+
var ExecutionProfile;
|
|
5
|
+
(function (ExecutionProfile) {
|
|
6
|
+
ExecutionProfile["S"] = "S";
|
|
7
|
+
ExecutionProfile["M"] = "M";
|
|
8
|
+
ExecutionProfile["L"] = "L";
|
|
9
|
+
ExecutionProfile["XL"] = "XL";
|
|
10
|
+
ExecutionProfile["XXL"] = "XXL";
|
|
11
|
+
})(ExecutionProfile || (exports.ExecutionProfile = ExecutionProfile = {}));
|
|
12
|
+
exports.EXECUTION_PROFILE_MEMORY_MB = {
|
|
13
|
+
[ExecutionProfile.S]: 128,
|
|
14
|
+
[ExecutionProfile.M]: 256,
|
|
15
|
+
[ExecutionProfile.L]: 512,
|
|
16
|
+
[ExecutionProfile.XL]: 1024,
|
|
17
|
+
[ExecutionProfile.XXL]: 2048,
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=execution-profile.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-profile.enum.js","sourceRoot":"","sources":["../../../src/types/enum/execution-profile.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,2BAAO,CAAA;IACP,2BAAO,CAAA;IACP,2BAAO,CAAA;IACP,6BAAS,CAAA;IACT,+BAAW,CAAA;AACb,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAGY,QAAA,2BAA2B,GAA+C;IACrF,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAAG;IACzB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAAG;IACzB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAAG;IACzB,CAAC,gBAAgB,CAAC,EAAE,CAAC,EAAE,IAAI;IAC3B,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,IAAI;CAC7B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecutionSettingsSource = void 0;
|
|
4
|
+
var ExecutionSettingsSource;
|
|
5
|
+
(function (ExecutionSettingsSource) {
|
|
6
|
+
ExecutionSettingsSource["ENVIRONMENT"] = "ENVIRONMENT";
|
|
7
|
+
ExecutionSettingsSource["DEFAULT"] = "DEFAULT";
|
|
8
|
+
ExecutionSettingsSource["BUILT_IN"] = "BUILT_IN";
|
|
9
|
+
})(ExecutionSettingsSource || (exports.ExecutionSettingsSource = ExecutionSettingsSource = {}));
|
|
10
|
+
//# sourceMappingURL=execution-settings-source.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-settings-source.enum.js","sourceRoot":"","sources":["../../../src/types/enum/execution-settings-source.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IAEjC,sDAA2B,CAAA;IAE3B,8CAAmB,CAAA;IAEnB,gDAAqB,CAAA;AACvB,CAAC,EAPW,uBAAuB,uCAAvB,uBAAuB,QAOlC"}
|
|
@@ -7,3 +7,8 @@ export * from './run-status.enum';
|
|
|
7
7
|
export * from './trace-effect-type.enum';
|
|
8
8
|
export * from './reflex-error-code.enum';
|
|
9
9
|
export * from './access-kind.enum';
|
|
10
|
+
export * from './execution-profile.enum';
|
|
11
|
+
export * from './execution-mode.enum';
|
|
12
|
+
export * from './execution-settings-source.enum';
|
|
13
|
+
export * from './run-step-status.enum';
|
|
14
|
+
export * from './run-log-level.enum';
|
package/dist/types/enum/index.js
CHANGED
|
@@ -23,4 +23,9 @@ __exportStar(require("./run-status.enum"), exports);
|
|
|
23
23
|
__exportStar(require("./trace-effect-type.enum"), exports);
|
|
24
24
|
__exportStar(require("./reflex-error-code.enum"), exports);
|
|
25
25
|
__exportStar(require("./access-kind.enum"), exports);
|
|
26
|
+
__exportStar(require("./execution-profile.enum"), exports);
|
|
27
|
+
__exportStar(require("./execution-mode.enum"), exports);
|
|
28
|
+
__exportStar(require("./execution-settings-source.enum"), exports);
|
|
29
|
+
__exportStar(require("./run-step-status.enum"), exports);
|
|
30
|
+
__exportStar(require("./run-log-level.enum"), exports);
|
|
26
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,6DAA2C;AAC3C,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,6DAA2C;AAC3C,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,wDAAsC;AACtC,mEAAiD;AACjD,yDAAuC;AACvC,uDAAqC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunLogLevel = void 0;
|
|
4
|
+
var RunLogLevel;
|
|
5
|
+
(function (RunLogLevel) {
|
|
6
|
+
RunLogLevel["INFO"] = "info";
|
|
7
|
+
RunLogLevel["WARN"] = "warn";
|
|
8
|
+
RunLogLevel["ERROR"] = "error";
|
|
9
|
+
})(RunLogLevel || (exports.RunLogLevel = RunLogLevel = {}));
|
|
10
|
+
//# sourceMappingURL=run-log-level.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-log-level.enum.js","sourceRoot":"","sources":["../../../src/types/enum/run-log-level.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,8BAAe,CAAA;AACjB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RunStatus = void 0;
|
|
4
4
|
var RunStatus;
|
|
5
5
|
(function (RunStatus) {
|
|
6
|
+
RunStatus["RUNNING"] = "RUNNING";
|
|
6
7
|
RunStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
7
8
|
RunStatus["FAILED"] = "FAILED";
|
|
9
|
+
RunStatus["INTERRUPTED"] = "INTERRUPTED";
|
|
8
10
|
})(RunStatus || (exports.RunStatus = RunStatus = {}));
|
|
9
11
|
//# sourceMappingURL=run-status.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-status.enum.js","sourceRoot":"","sources":["../../../src/types/enum/run-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"run-status.enum.js","sourceRoot":"","sources":["../../../src/types/enum/run-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAUX;AAVD,WAAY,SAAS;IAEnB,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;IAKjB,wCAA2B,CAAA;AAC7B,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunStepStatus = void 0;
|
|
4
|
+
var RunStepStatus;
|
|
5
|
+
(function (RunStepStatus) {
|
|
6
|
+
RunStepStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
7
|
+
RunStepStatus["FAILED"] = "FAILED";
|
|
8
|
+
RunStepStatus["INTERRUPTED"] = "INTERRUPTED";
|
|
9
|
+
})(RunStepStatus || (exports.RunStepStatus = RunStepStatus = {}));
|
|
10
|
+
//# sourceMappingURL=run-step-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-step-status.enum.js","sourceRoot":"","sources":["../../../src/types/enum/run-step-status.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IAEjB,4CAA2B,CAAA;AAC7B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace-effect-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/trace-effect-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,
|
|
1
|
+
{"version":3,"file":"trace-effect-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/trace-effect-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,eAUX;AAVD,WAAY,eAAe;IAKzB,wCAAqB,CAAA;IAErB,gCAAa,CAAA;IAEb,gCAAa,CAAA;AACf,CAAC,EAVW,eAAe,+BAAf,eAAe,QAU1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IReflexExecutionSettingsValues } from '../../models';
|
|
2
|
+
export interface IGetFunctionSettingsParams {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
functionId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ISetFunctionDefaultSettingsParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
functionId: string;
|
|
9
|
+
}
|
|
10
|
+
export type ISetFunctionDefaultSettingsBody = IReflexExecutionSettingsValues;
|
|
11
|
+
export interface ISetFunctionEnvironmentSettingsParams {
|
|
12
|
+
applicationId: string;
|
|
13
|
+
functionId: string;
|
|
14
|
+
environmentId: string;
|
|
15
|
+
}
|
|
16
|
+
export type ISetFunctionEnvironmentSettingsBody = IReflexExecutionSettingsValues;
|
|
17
|
+
export interface IRemoveFunctionEnvironmentSettingsParams {
|
|
18
|
+
applicationId: string;
|
|
19
|
+
functionId: string;
|
|
20
|
+
environmentId: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-settings.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-settings.request.ts"],"names":[],"mappings":""}
|
|
@@ -11,3 +11,11 @@ export interface IGetFunctionVersionParams {
|
|
|
11
11
|
functionId: string;
|
|
12
12
|
versionId: string;
|
|
13
13
|
}
|
|
14
|
+
export interface IGetFunctionVersionStepStatsParams {
|
|
15
|
+
applicationId: string;
|
|
16
|
+
functionId: string;
|
|
17
|
+
versionId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IGetFunctionVersionStepStatsQuery {
|
|
20
|
+
environmentId?: string;
|
|
21
|
+
}
|
|
@@ -21,4 +21,5 @@ __exportStar(require("./function-version.request"), exports);
|
|
|
21
21
|
__exportStar(require("./function-promotion.request"), exports);
|
|
22
22
|
__exportStar(require("./function-trigger.request"), exports);
|
|
23
23
|
__exportStar(require("./function-run.request"), exports);
|
|
24
|
+
__exportStar(require("./function-settings.request"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,yDAAuC;AACvC,8DAA4C"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import type { IReflexRun } from '../../models';
|
|
1
|
+
import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
|
|
2
2
|
import type { IResponse } from '../response';
|
|
3
3
|
export interface IListFunctionRunData {
|
|
4
4
|
runs: IReflexRun[];
|
|
5
5
|
}
|
|
6
6
|
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
7
7
|
export interface IGetFunctionRunData {
|
|
8
|
-
run:
|
|
8
|
+
run: IReflexRunDetail;
|
|
9
9
|
}
|
|
10
10
|
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
11
|
+
export interface IGetFunctionRunStateData {
|
|
12
|
+
state: IReflexExecutionState;
|
|
13
|
+
}
|
|
14
|
+
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IReflexEffectiveExecutionSettings, IReflexExecutionSettings, IReflexExecutionSettingsValues, IReflexPriceList } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IGetFunctionSettingsData {
|
|
4
|
+
default: IReflexExecutionSettings | null;
|
|
5
|
+
environments: IReflexExecutionSettings[];
|
|
6
|
+
effective: IReflexEffectiveExecutionSettings[];
|
|
7
|
+
builtIn: IReflexExecutionSettingsValues;
|
|
8
|
+
priceList: IReflexPriceList;
|
|
9
|
+
}
|
|
10
|
+
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
11
|
+
export interface ISetFunctionDefaultSettingsData {
|
|
12
|
+
settings: IReflexExecutionSettings;
|
|
13
|
+
}
|
|
14
|
+
export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
|
|
15
|
+
export interface ISetFunctionEnvironmentSettingsData {
|
|
16
|
+
settings: IReflexExecutionSettings;
|
|
17
|
+
}
|
|
18
|
+
export type ISetFunctionEnvironmentSettingsResponse = IResponse<ISetFunctionEnvironmentSettingsData>;
|
|
19
|
+
export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
|
|
20
|
+
export type IRemoveFunctionEnvironmentSettingsResponse = IResponse<IRemoveFunctionEnvironmentSettingsData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-settings.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-settings.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IReflexFunctionVersion } from '../../models';
|
|
1
|
+
import type { IReflexFunctionVersion, IReflexRunningVersionHeapPeaks, IReflexStepStats } from '../../models';
|
|
2
2
|
import type { IResponse } from '../response';
|
|
3
3
|
export interface IListFunctionVersionData {
|
|
4
4
|
versions: IReflexFunctionVersion[];
|
|
@@ -12,3 +12,12 @@ export interface IGetFunctionVersionData {
|
|
|
12
12
|
version: IReflexFunctionVersion;
|
|
13
13
|
}
|
|
14
14
|
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
15
|
+
export interface IGetFunctionVersionStepStatsData {
|
|
16
|
+
versionId: string;
|
|
17
|
+
environmentId: string | null;
|
|
18
|
+
windowDays: number;
|
|
19
|
+
executions: number;
|
|
20
|
+
steps: IReflexStepStats[];
|
|
21
|
+
runningVersion: IReflexRunningVersionHeapPeaks | null;
|
|
22
|
+
}
|
|
23
|
+
export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
|
|
@@ -21,4 +21,5 @@ __exportStar(require("./function-version.response"), exports);
|
|
|
21
21
|
__exportStar(require("./function-promotion.response"), exports);
|
|
22
22
|
__exportStar(require("./function-trigger.response"), exports);
|
|
23
23
|
__exportStar(require("./function-run.response"), exports);
|
|
24
|
+
__exportStar(require("./function-settings.response"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,8DAA4C;AAC5C,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C"}
|
|
@@ -5,3 +5,6 @@ export * from './reflex-environment-pointer.model';
|
|
|
5
5
|
export * from './reflex-trigger.model';
|
|
6
6
|
export * from './reflex-access-grant.model';
|
|
7
7
|
export * from './reflex-run.model';
|
|
8
|
+
export * from './reflex-execution-settings.model';
|
|
9
|
+
export * from './reflex-step-stats.model';
|
|
10
|
+
export * from './reflex-price-list.model';
|
|
@@ -21,4 +21,7 @@ __exportStar(require("./reflex-environment-pointer.model"), exports);
|
|
|
21
21
|
__exportStar(require("./reflex-trigger.model"), exports);
|
|
22
22
|
__exportStar(require("./reflex-access-grant.model"), exports);
|
|
23
23
|
__exportStar(require("./reflex-run.model"), exports);
|
|
24
|
+
__exportStar(require("./reflex-execution-settings.model"), exports);
|
|
25
|
+
__exportStar(require("./reflex-step-stats.model"), exports);
|
|
26
|
+
__exportStar(require("./reflex-price-list.model"), exports);
|
|
24
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,qEAAmD;AACnD,yDAAuC;AACvC,8DAA4C;AAC5C,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,qEAAmD;AACnD,yDAAuC;AACvC,8DAA4C;AAC5C,qDAAmC;AACnC,oEAAkD;AAClD,4DAA0C;AAC1C,4DAA0C"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESPOND_STATUS_MAX = exports.RESPOND_STATUS_MIN = void 0;
|
|
4
|
+
exports.RESPOND_STATUS_MIN = 200;
|
|
5
|
+
exports.RESPOND_STATUS_MAX = 599;
|
|
3
6
|
//# sourceMappingURL=reflex-definition.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-definition.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-definition.model.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"reflex-definition.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-definition.model.ts"],"names":[],"mappings":";;;AA6Ba,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,kBAAkB,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ExecutionMode, ExecutionProfile } from '../../enum';
|
|
2
|
+
import type { ExecutionSettingsSource } from '../../enum';
|
|
3
|
+
export interface IReflexExecutionSettingsValues {
|
|
4
|
+
profile: ExecutionProfile;
|
|
5
|
+
responseTimeoutMs: number;
|
|
6
|
+
maxDurationMs: number;
|
|
7
|
+
mode: ExecutionMode;
|
|
8
|
+
}
|
|
9
|
+
export declare const REFLEX_EXECUTION_SETTINGS_LIMITS: {
|
|
10
|
+
readonly responseTimeoutMs: {
|
|
11
|
+
readonly min: 1000;
|
|
12
|
+
readonly max: 100000;
|
|
13
|
+
};
|
|
14
|
+
readonly maxDurationMs: {
|
|
15
|
+
readonly min: 1000;
|
|
16
|
+
readonly max: 3600000;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const DEFAULT_REFLEX_EXECUTION_SETTINGS: Readonly<IReflexExecutionSettingsValues>;
|
|
20
|
+
export interface IReflexExecutionSettings extends IReflexExecutionSettingsValues {
|
|
21
|
+
id: string;
|
|
22
|
+
functionId: string;
|
|
23
|
+
environmentId: string | null;
|
|
24
|
+
updatedByUserId: string;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
28
|
+
export interface IReflexEffectiveExecutionSettings {
|
|
29
|
+
environmentId: string;
|
|
30
|
+
environmentSlug: string;
|
|
31
|
+
isProduction: boolean;
|
|
32
|
+
source: ExecutionSettingsSource;
|
|
33
|
+
settings: IReflexExecutionSettingsValues;
|
|
34
|
+
runningVersionId: string | null;
|
|
35
|
+
}
|