@abyss-project/reflex 0.0.0-stage → 1.0.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/.eslintrc.js +32 -0
- package/.prettierrc +5 -0
- package/README.md +15 -3
- package/dist/api/function-access.api.d.ts +4 -0
- package/dist/api/function-access.api.js +12 -0
- package/dist/api/function-access.api.js.map +1 -0
- package/dist/api/function-promotion.api.d.ts +4 -0
- package/dist/api/function-promotion.api.js +12 -0
- package/dist/api/function-promotion.api.js.map +1 -0
- package/dist/api/function-run.api.d.ts +3 -0
- package/dist/api/function-run.api.js +12 -0
- package/dist/api/function-run.api.js.map +1 -0
- package/dist/api/function-test.api.d.ts +3 -0
- package/dist/api/function-test.api.js +12 -0
- package/dist/api/function-test.api.js.map +1 -0
- package/dist/api/function-trigger.api.d.ts +5 -0
- package/dist/api/function-trigger.api.js +14 -0
- package/dist/api/function-trigger.api.js.map +1 -0
- package/dist/api/function-version.api.d.ts +4 -0
- package/dist/api/function-version.api.js +12 -0
- package/dist/api/function-version.api.js.map +1 -0
- package/dist/api/function.api.d.ts +6 -0
- package/dist/api/function.api.js +16 -0
- package/dist/api/function.api.js.map +1 -0
- package/dist/api/health.api.d.ts +2 -0
- package/dist/api/health.api.js +7 -0
- package/dist/api/health.api.js.map +1 -0
- package/dist/api/index.d.ts +8 -0
- package/dist/api/index.js +25 -0
- package/dist/api/index.js.map +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +122 -0
- package/dist/index.js.map +1 -0
- package/dist/types/enum/access-grant-status.enum.d.ts +5 -0
- package/dist/types/enum/access-grant-status.enum.js +10 -0
- package/dist/types/enum/access-grant-status.enum.js.map +1 -0
- package/dist/types/enum/access-kind.enum.d.ts +4 -0
- package/dist/types/enum/access-kind.enum.js +9 -0
- package/dist/types/enum/access-kind.enum.js.map +1 -0
- package/dist/types/enum/health-status.enum.d.ts +4 -0
- package/dist/types/enum/health-status.enum.js +9 -0
- package/dist/types/enum/health-status.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +9 -0
- package/dist/types/enum/index.js +26 -0
- package/dist/types/enum/index.js.map +1 -0
- package/dist/types/enum/reflex-error-code.enum.d.ts +10 -0
- package/dist/types/enum/reflex-error-code.enum.js +15 -0
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -0
- package/dist/types/enum/run-mode.enum.d.ts +5 -0
- package/dist/types/enum/run-mode.enum.js +10 -0
- package/dist/types/enum/run-mode.enum.js.map +1 -0
- package/dist/types/enum/run-status.enum.d.ts +4 -0
- package/dist/types/enum/run-status.enum.js +9 -0
- package/dist/types/enum/run-status.enum.js.map +1 -0
- package/dist/types/enum/trace-effect-type.enum.d.ts +5 -0
- package/dist/types/enum/trace-effect-type.enum.js +10 -0
- package/dist/types/enum/trace-effect-type.enum.js.map +1 -0
- package/dist/types/enum/trigger-access-mode.enum.d.ts +5 -0
- package/dist/types/enum/trigger-access-mode.enum.js +10 -0
- package/dist/types/enum/trigger-access-mode.enum.js.map +1 -0
- package/dist/types/enum/trigger-type.enum.d.ts +3 -0
- package/dist/types/enum/trigger-type.enum.js +8 -0
- package/dist/types/enum/trigger-type.enum.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interface/api/index.d.ts +3 -0
- package/dist/types/interface/api/index.js +20 -0
- package/dist/types/interface/api/index.js.map +1 -0
- package/dist/types/interface/api/requests/function-access.request.d.ts +17 -0
- package/dist/types/interface/api/requests/function-access.request.js +3 -0
- package/dist/types/interface/api/requests/function-access.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-promotion.request.d.ts +20 -0
- package/dist/types/interface/api/requests/function-promotion.request.js +3 -0
- package/dist/types/interface/api/requests/function-promotion.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-run.request.d.ts +15 -0
- package/dist/types/interface/api/requests/function-run.request.js +3 -0
- package/dist/types/interface/api/requests/function-run.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-test.request.d.ts +14 -0
- package/dist/types/interface/api/requests/function-test.request.js +3 -0
- package/dist/types/interface/api/requests/function-test.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-trigger.request.d.ts +23 -0
- package/dist/types/interface/api/requests/function-trigger.request.js +3 -0
- package/dist/types/interface/api/requests/function-trigger.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-version.request.d.ts +13 -0
- package/dist/types/interface/api/requests/function-version.request.js +3 -0
- package/dist/types/interface/api/requests/function-version.request.js.map +1 -0
- package/dist/types/interface/api/requests/function.request.d.ts +27 -0
- package/dist/types/interface/api/requests/function.request.js +3 -0
- package/dist/types/interface/api/requests/function.request.js.map +1 -0
- package/dist/types/interface/api/requests/index.d.ts +7 -0
- package/dist/types/interface/api/requests/index.js +24 -0
- package/dist/types/interface/api/requests/index.js.map +1 -0
- package/dist/types/interface/api/response.d.ts +3 -0
- package/dist/types/interface/api/response.js +3 -0
- package/dist/types/interface/api/response.js.map +1 -0
- package/dist/types/interface/api/responses/function-access.response.d.ts +14 -0
- package/dist/types/interface/api/responses/function-access.response.js +3 -0
- package/dist/types/interface/api/responses/function-access.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-promotion.response.d.ts +14 -0
- package/dist/types/interface/api/responses/function-promotion.response.js +3 -0
- package/dist/types/interface/api/responses/function-promotion.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-run.response.d.ts +10 -0
- package/dist/types/interface/api/responses/function-run.response.js +3 -0
- package/dist/types/interface/api/responses/function-run.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-test.response.d.ts +10 -0
- package/dist/types/interface/api/responses/function-test.response.js +3 -0
- package/dist/types/interface/api/responses/function-test.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-trigger.response.d.ts +18 -0
- package/dist/types/interface/api/responses/function-trigger.response.js +3 -0
- package/dist/types/interface/api/responses/function-trigger.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-version.response.d.ts +14 -0
- package/dist/types/interface/api/responses/function-version.response.js +3 -0
- package/dist/types/interface/api/responses/function-version.response.js.map +1 -0
- package/dist/types/interface/api/responses/function.response.d.ts +20 -0
- package/dist/types/interface/api/responses/function.response.js +3 -0
- package/dist/types/interface/api/responses/function.response.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +7 -0
- package/dist/types/interface/api/responses/index.js +24 -0
- package/dist/types/interface/api/responses/index.js.map +1 -0
- package/dist/types/interface/health.response.d.ts +5 -0
- package/dist/types/interface/health.response.js +3 -0
- package/dist/types/interface/health.response.js.map +1 -0
- package/dist/types/interface/index.d.ts +3 -0
- package/dist/types/interface/index.js +20 -0
- package/dist/types/interface/index.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +7 -0
- package/dist/types/interface/models/index.js +24 -0
- package/dist/types/interface/models/index.js.map +1 -0
- package/dist/types/interface/models/reflex-access-grant.model.d.ts +13 -0
- package/dist/types/interface/models/reflex-access-grant.model.js +3 -0
- package/dist/types/interface/models/reflex-access-grant.model.js.map +1 -0
- package/dist/types/interface/models/reflex-definition.model.d.ts +15 -0
- package/dist/types/interface/models/reflex-definition.model.js +3 -0
- package/dist/types/interface/models/reflex-definition.model.js.map +1 -0
- package/dist/types/interface/models/reflex-environment-pointer.model.d.ts +13 -0
- package/dist/types/interface/models/reflex-environment-pointer.model.js +3 -0
- package/dist/types/interface/models/reflex-environment-pointer.model.js.map +1 -0
- package/dist/types/interface/models/reflex-function-version.model.d.ts +10 -0
- package/dist/types/interface/models/reflex-function-version.model.js +3 -0
- package/dist/types/interface/models/reflex-function-version.model.js.map +1 -0
- package/dist/types/interface/models/reflex-function.model.d.ts +12 -0
- package/dist/types/interface/models/reflex-function.model.js +3 -0
- package/dist/types/interface/models/reflex-function.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +46 -0
- package/dist/types/interface/models/reflex-run.model.js +3 -0
- package/dist/types/interface/models/reflex-run.model.js.map +1 -0
- package/dist/types/interface/models/reflex-trigger.model.d.ts +13 -0
- package/dist/types/interface/models/reflex-trigger.model.js +3 -0
- package/dist/types/interface/models/reflex-trigger.model.js.map +1 -0
- package/jest.config.ts +11 -0
- package/package.json +41 -3
- package/src/api/function-access.api.ts +36 -0
- package/src/api/function-promotion.api.ts +42 -0
- package/src/api/function-run.api.ts +26 -0
- package/src/api/function-test.api.ts +33 -0
- package/src/api/function-trigger.api.ts +52 -0
- package/src/api/function-version.api.ts +37 -0
- package/src/api/function.api.test.ts +212 -0
- package/src/api/function.api.ts +62 -0
- package/src/api/health.api.ts +10 -0
- package/src/api/index.ts +8 -0
- package/src/index.test.ts +50 -0
- package/src/index.ts +135 -0
- package/src/types/enum/access-grant-status.enum.ts +12 -0
- package/src/types/enum/access-kind.enum.ts +7 -0
- package/src/types/enum/health-status.enum.ts +4 -0
- package/src/types/enum/index.ts +9 -0
- package/src/types/enum/reflex-error-code.enum.ts +19 -0
- package/src/types/enum/run-mode.enum.ts +11 -0
- package/src/types/enum/run-status.enum.ts +4 -0
- package/src/types/enum/trace-effect-type.enum.ts +6 -0
- package/src/types/enum/trigger-access-mode.enum.ts +12 -0
- package/src/types/enum/trigger-type.enum.ts +4 -0
- package/src/types/index.ts +2 -0
- package/src/types/interface/api/index.ts +3 -0
- package/src/types/interface/api/requests/function-access.request.ts +25 -0
- package/src/types/interface/api/requests/function-promotion.request.ts +25 -0
- package/src/types/interface/api/requests/function-run.request.ts +19 -0
- package/src/types/interface/api/requests/function-test.request.ts +19 -0
- package/src/types/interface/api/requests/function-trigger.request.ts +28 -0
- package/src/types/interface/api/requests/function-version.request.ts +15 -0
- package/src/types/interface/api/requests/function.request.ts +34 -0
- package/src/types/interface/api/requests/index.ts +7 -0
- package/src/types/interface/api/response.ts +4 -0
- package/src/types/interface/api/responses/function-access.response.ts +17 -0
- package/src/types/interface/api/responses/function-promotion.response.ts +18 -0
- package/src/types/interface/api/responses/function-run.response.ts +13 -0
- package/src/types/interface/api/responses/function-test.response.ts +12 -0
- package/src/types/interface/api/responses/function-trigger.response.ts +24 -0
- package/src/types/interface/api/responses/function-version.response.ts +17 -0
- package/src/types/interface/api/responses/function.response.ts +25 -0
- package/src/types/interface/api/responses/index.ts +7 -0
- package/src/types/interface/health.response.ts +7 -0
- package/src/types/interface/index.ts +3 -0
- package/src/types/interface/models/index.ts +7 -0
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -0
- package/src/types/interface/models/reflex-definition.model.ts +23 -0
- package/src/types/interface/models/reflex-environment-pointer.model.ts +18 -0
- package/src/types/interface/models/reflex-function-version.model.ts +14 -0
- package/src/types/interface/models/reflex-function.model.ts +14 -0
- package/src/types/interface/models/reflex-run.model.ts +57 -0
- package/src/types/interface/models/reflex-trigger.model.ts +17 -0
- package/tsconfig.check.json +15 -0
- package/tsconfig.json +35 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReflexErrorCode = void 0;
|
|
4
|
+
var ReflexErrorCode;
|
|
5
|
+
(function (ReflexErrorCode) {
|
|
6
|
+
ReflexErrorCode["INVALID_DEFINITION"] = "INVALID_DEFINITION";
|
|
7
|
+
ReflexErrorCode["GRANT_SUSPENDED"] = "GRANT_SUSPENDED";
|
|
8
|
+
ReflexErrorCode["NO_VERSION"] = "NO_VERSION";
|
|
9
|
+
ReflexErrorCode["ACCESS_NOT_DECLARED"] = "ACCESS_NOT_DECLARED";
|
|
10
|
+
ReflexErrorCode["NOTHING_TO_PUBLISH"] = "NOTHING_TO_PUBLISH";
|
|
11
|
+
ReflexErrorCode["ENVIRONMENT_NOT_FOUND"] = "ENVIRONMENT_NOT_FOUND";
|
|
12
|
+
ReflexErrorCode["ALREADY_EXISTS"] = "ALREADY_EXISTS";
|
|
13
|
+
ReflexErrorCode["PUBLISH_PRODUCTION_REQUIRED"] = "PUBLISH_PRODUCTION_REQUIRED";
|
|
14
|
+
})(ReflexErrorCode || (exports.ReflexErrorCode = ReflexErrorCode = {}));
|
|
15
|
+
//# sourceMappingURL=reflex-error-code.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflex-error-code.enum.js","sourceRoot":"","sources":["../../../src/types/enum/reflex-error-code.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,eAiBX;AAjBD,WAAY,eAAe;IAEzB,4DAAyC,CAAA;IAEzC,sDAAmC,CAAA;IAEnC,4CAAyB,CAAA;IAEzB,8DAA2C,CAAA;IAE3C,4DAAyC,CAAA;IAEzC,kEAA+C,CAAA;IAE/C,oDAAiC,CAAA;IAEjC,8EAA2D,CAAA;AAC7D,CAAC,EAjBW,eAAe,+BAAf,eAAe,QAiB1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunMode = void 0;
|
|
4
|
+
var RunMode;
|
|
5
|
+
(function (RunMode) {
|
|
6
|
+
RunMode["SIMULATION"] = "SIMULATION";
|
|
7
|
+
RunMode["DRY_RUN"] = "DRY_RUN";
|
|
8
|
+
RunMode["LIVE"] = "LIVE";
|
|
9
|
+
})(RunMode || (exports.RunMode = RunMode = {}));
|
|
10
|
+
//# sourceMappingURL=run-mode.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-mode.enum.js","sourceRoot":"","sources":["../../../src/types/enum/run-mode.enum.ts"],"names":[],"mappings":";;;AAMA,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,oCAAyB,CAAA;IACzB,8BAAmB,CAAA;IACnB,wBAAa,CAAA;AACf,CAAC,EAJW,OAAO,uBAAP,OAAO,QAIlB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunStatus = void 0;
|
|
4
|
+
var RunStatus;
|
|
5
|
+
(function (RunStatus) {
|
|
6
|
+
RunStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
7
|
+
RunStatus["FAILED"] = "FAILED";
|
|
8
|
+
})(RunStatus || (exports.RunStatus = RunStatus = {}));
|
|
9
|
+
//# sourceMappingURL=run-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-status.enum.js","sourceRoot":"","sources":["../../../src/types/enum/run-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TraceEffectType = void 0;
|
|
4
|
+
var TraceEffectType;
|
|
5
|
+
(function (TraceEffectType) {
|
|
6
|
+
TraceEffectType["EVALUATE"] = "EVALUATE";
|
|
7
|
+
TraceEffectType["HTTP"] = "HTTP";
|
|
8
|
+
TraceEffectType["HOST"] = "HOST";
|
|
9
|
+
})(TraceEffectType || (exports.TraceEffectType = TraceEffectType = {}));
|
|
10
|
+
//# sourceMappingURL=trace-effect-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-effect-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/trace-effect-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,gCAAa,CAAA;IACb,gCAAa,CAAA;AACf,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggerAccessMode = void 0;
|
|
4
|
+
var TriggerAccessMode;
|
|
5
|
+
(function (TriggerAccessMode) {
|
|
6
|
+
TriggerAccessMode["PUBLIC"] = "PUBLIC";
|
|
7
|
+
TriggerAccessMode["API_KEY"] = "API_KEY";
|
|
8
|
+
TriggerAccessMode["SIGNATURE"] = "SIGNATURE";
|
|
9
|
+
})(TriggerAccessMode || (exports.TriggerAccessMode = TriggerAccessMode = {}));
|
|
10
|
+
//# sourceMappingURL=trigger-access-mode.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-access-mode.enum.js","sourceRoot":"","sources":["../../../src/types/enum/trigger-access-mode.enum.ts"],"names":[],"mappings":";;;AAOA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;AACzB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggerType = void 0;
|
|
4
|
+
var TriggerType;
|
|
5
|
+
(function (TriggerType) {
|
|
6
|
+
TriggerType["HTTP"] = "HTTP";
|
|
7
|
+
})(TriggerType || (exports.TriggerType = TriggerType = {}));
|
|
8
|
+
//# sourceMappingURL=trigger-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/trigger-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,WAEX;AAFD,WAAY,WAAW;IACrB,4BAAa,CAAA;AACf,CAAC,EAFW,WAAW,2BAAX,WAAW,QAEtB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enum"), exports);
|
|
18
|
+
__exportStar(require("./interface"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./response"), exports);
|
|
18
|
+
__exportStar(require("./requests"), exports);
|
|
19
|
+
__exportStar(require("./responses"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IReflexAccessDeclaration } from '../../models';
|
|
2
|
+
export interface IListFunctionAccessParams {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
functionId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGrantFunctionAccessParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
functionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IGrantFunctionAccessBody {
|
|
11
|
+
declaration: IReflexAccessDeclaration;
|
|
12
|
+
}
|
|
13
|
+
export interface IRevokeFunctionAccessParams {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
functionId: string;
|
|
16
|
+
grantId: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-access.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-access.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IListFunctionPromotionParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IPromoteFunctionParams {
|
|
6
|
+
applicationId: string;
|
|
7
|
+
functionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IPromoteFunctionBody {
|
|
10
|
+
versionId: string;
|
|
11
|
+
environmentId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IRollbackFunctionParams {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
functionId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IRollbackFunctionBody {
|
|
18
|
+
environmentId: string;
|
|
19
|
+
versionId?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-promotion.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-promotion.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RunMode } from '../../../enum';
|
|
2
|
+
export interface IListFunctionRunParams {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
functionId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IListFunctionRunQuery {
|
|
7
|
+
mode?: RunMode;
|
|
8
|
+
limit?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IGetFunctionRunParams {
|
|
12
|
+
applicationId: string;
|
|
13
|
+
functionId: string;
|
|
14
|
+
runId: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-run.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-run.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IFunctionTestParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IReflexHttpStub {
|
|
6
|
+
status: number;
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
body?: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface ISimulateFunctionBody {
|
|
11
|
+
input?: unknown;
|
|
12
|
+
httpStubs?: Record<string, IReflexHttpStub>;
|
|
13
|
+
}
|
|
14
|
+
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-test.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-test.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TriggerAccessMode } from '../../../enum';
|
|
2
|
+
export interface IListFunctionTriggerParams {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
functionId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ICreateFunctionTriggerParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
functionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateFunctionTriggerBody {
|
|
11
|
+
path: string;
|
|
12
|
+
accessMode: TriggerAccessMode;
|
|
13
|
+
}
|
|
14
|
+
export interface IRotateFunctionTriggerParams {
|
|
15
|
+
applicationId: string;
|
|
16
|
+
functionId: string;
|
|
17
|
+
triggerId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IDeleteFunctionTriggerParams {
|
|
20
|
+
applicationId: string;
|
|
21
|
+
functionId: string;
|
|
22
|
+
triggerId: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-trigger.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-trigger.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IListFunctionVersionParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IPublishFunctionVersionParams {
|
|
6
|
+
applicationId: string;
|
|
7
|
+
functionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IGetFunctionVersionParams {
|
|
10
|
+
applicationId: string;
|
|
11
|
+
functionId: string;
|
|
12
|
+
versionId: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-version.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-version.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { IReflexDefinition } from '../../models';
|
|
2
|
+
export interface IListFunctionParams {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ICreateFunctionParams {
|
|
6
|
+
applicationId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ICreateFunctionBody {
|
|
9
|
+
name: string;
|
|
10
|
+
definition?: IReflexDefinition;
|
|
11
|
+
}
|
|
12
|
+
export interface IGetFunctionParams {
|
|
13
|
+
applicationId: string;
|
|
14
|
+
functionId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IUpdateFunctionParams {
|
|
17
|
+
applicationId: string;
|
|
18
|
+
functionId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IUpdateFunctionBody {
|
|
21
|
+
name?: string;
|
|
22
|
+
definition?: IReflexDefinition;
|
|
23
|
+
}
|
|
24
|
+
export interface IDeleteFunctionParams {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
functionId: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './function.request';
|
|
2
|
+
export * from './function-access.request';
|
|
3
|
+
export * from './function-test.request';
|
|
4
|
+
export * from './function-version.request';
|
|
5
|
+
export * from './function-promotion.request';
|
|
6
|
+
export * from './function-trigger.request';
|
|
7
|
+
export * from './function-run.request';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./function.request"), exports);
|
|
18
|
+
__exportStar(require("./function-access.request"), exports);
|
|
19
|
+
__exportStar(require("./function-test.request"), exports);
|
|
20
|
+
__exportStar(require("./function-version.request"), exports);
|
|
21
|
+
__exportStar(require("./function-promotion.request"), exports);
|
|
22
|
+
__exportStar(require("./function-trigger.request"), exports);
|
|
23
|
+
__exportStar(require("./function-run.request"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/types/interface/api/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IReflexAccessGrant } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IListFunctionAccessData {
|
|
4
|
+
grants: IReflexAccessGrant[];
|
|
5
|
+
}
|
|
6
|
+
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
7
|
+
export interface IGrantFunctionAccessData {
|
|
8
|
+
grant: IReflexAccessGrant;
|
|
9
|
+
}
|
|
10
|
+
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
11
|
+
export interface IRevokeFunctionAccessData {
|
|
12
|
+
grant: IReflexAccessGrant;
|
|
13
|
+
}
|
|
14
|
+
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-access.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-access.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IReflexEnvironmentPointer } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IListFunctionPromotionData {
|
|
4
|
+
pointers: IReflexEnvironmentPointer[];
|
|
5
|
+
}
|
|
6
|
+
export type IListFunctionPromotionResponse = IResponse<IListFunctionPromotionData>;
|
|
7
|
+
export interface IPromoteFunctionData {
|
|
8
|
+
pointer: IReflexEnvironmentPointer;
|
|
9
|
+
}
|
|
10
|
+
export type IPromoteFunctionResponse = IResponse<IPromoteFunctionData>;
|
|
11
|
+
export interface IRollbackFunctionData {
|
|
12
|
+
pointer: IReflexEnvironmentPointer;
|
|
13
|
+
}
|
|
14
|
+
export type IRollbackFunctionResponse = IResponse<IRollbackFunctionData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-promotion.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-promotion.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IReflexRun } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IListFunctionRunData {
|
|
4
|
+
runs: IReflexRun[];
|
|
5
|
+
}
|
|
6
|
+
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
7
|
+
export interface IGetFunctionRunData {
|
|
8
|
+
run: IReflexRun;
|
|
9
|
+
}
|
|
10
|
+
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-run.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-run.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IReflexRun } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface ISimulateFunctionData {
|
|
4
|
+
run: IReflexRun;
|
|
5
|
+
}
|
|
6
|
+
export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
|
|
7
|
+
export interface IDryRunFunctionData {
|
|
8
|
+
run: IReflexRun;
|
|
9
|
+
}
|
|
10
|
+
export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-test.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-test.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IReflexTrigger } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IListFunctionTriggerData {
|
|
4
|
+
triggers: IReflexTrigger[];
|
|
5
|
+
}
|
|
6
|
+
export type IListFunctionTriggerResponse = IResponse<IListFunctionTriggerData>;
|
|
7
|
+
export interface ICreateFunctionTriggerData {
|
|
8
|
+
trigger: IReflexTrigger;
|
|
9
|
+
secret: string | null;
|
|
10
|
+
}
|
|
11
|
+
export type ICreateFunctionTriggerResponse = IResponse<ICreateFunctionTriggerData>;
|
|
12
|
+
export interface IRotateFunctionTriggerData {
|
|
13
|
+
trigger: IReflexTrigger;
|
|
14
|
+
secret: string;
|
|
15
|
+
}
|
|
16
|
+
export type IRotateFunctionTriggerResponse = IResponse<IRotateFunctionTriggerData>;
|
|
17
|
+
export type IDeleteFunctionTriggerData = Record<string, never>;
|
|
18
|
+
export type IDeleteFunctionTriggerResponse = IResponse<IDeleteFunctionTriggerData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-trigger.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-trigger.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IReflexFunctionVersion } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IListFunctionVersionData {
|
|
4
|
+
versions: IReflexFunctionVersion[];
|
|
5
|
+
}
|
|
6
|
+
export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
|
|
7
|
+
export interface IPublishFunctionVersionData {
|
|
8
|
+
version: IReflexFunctionVersion;
|
|
9
|
+
}
|
|
10
|
+
export type IPublishFunctionVersionResponse = IResponse<IPublishFunctionVersionData>;
|
|
11
|
+
export interface IGetFunctionVersionData {
|
|
12
|
+
version: IReflexFunctionVersion;
|
|
13
|
+
}
|
|
14
|
+
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-version.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-version.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IReflexFunction } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
export interface IListFunctionData {
|
|
4
|
+
functions: IReflexFunction[];
|
|
5
|
+
}
|
|
6
|
+
export type IListFunctionResponse = IResponse<IListFunctionData>;
|
|
7
|
+
export interface ICreateFunctionData {
|
|
8
|
+
function: IReflexFunction;
|
|
9
|
+
}
|
|
10
|
+
export type ICreateFunctionResponse = IResponse<ICreateFunctionData>;
|
|
11
|
+
export interface IGetFunctionData {
|
|
12
|
+
function: IReflexFunction;
|
|
13
|
+
}
|
|
14
|
+
export type IGetFunctionResponse = IResponse<IGetFunctionData>;
|
|
15
|
+
export interface IUpdateFunctionData {
|
|
16
|
+
function: IReflexFunction;
|
|
17
|
+
}
|
|
18
|
+
export type IUpdateFunctionResponse = IResponse<IUpdateFunctionData>;
|
|
19
|
+
export type IDeleteFunctionData = Record<string, never>;
|
|
20
|
+
export type IDeleteFunctionResponse = IResponse<IDeleteFunctionData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function.response.ts"],"names":[],"mappings":""}
|