@abyss-project/reflex 5.8.1 → 5.9.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 -32
- package/.prettierrc +5 -5
- package/README.md +15 -15
- package/dist/api/alert-rule.api.d.ts +5 -0
- package/dist/api/alert-rule.api.js +16 -0
- package/dist/api/alert-rule.api.js.map +1 -0
- package/dist/api/application-insights.api.d.ts +3 -0
- package/dist/api/application-insights.api.js +12 -0
- package/dist/api/application-insights.api.js.map +1 -0
- package/dist/api/application-run-settings.api.d.ts +3 -0
- package/dist/api/application-run-settings.api.js +11 -0
- package/dist/api/application-run-settings.api.js.map +1 -0
- package/dist/api/function-settings.api.d.ts +2 -1
- package/dist/api/function-settings.api.js +3 -1
- package/dist/api/function-settings.api.js.map +1 -1
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/route-stats.api.d.ts +3 -0
- package/dist/api/route-stats.api.js +9 -0
- package/dist/api/route-stats.api.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/dist/insights/index.d.ts +1 -0
- package/dist/insights/index.js +18 -0
- package/dist/insights/index.js.map +1 -0
- package/dist/insights/percentiles.d.ts +2 -0
- package/dist/insights/percentiles.js +28 -0
- package/dist/insights/percentiles.js.map +1 -0
- package/dist/types/enum/index.d.ts +4 -0
- package/dist/types/enum/index.js +4 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/log-cap-mode.enum.d.ts +5 -0
- package/dist/types/enum/log-cap-mode.enum.js +10 -0
- package/dist/types/enum/log-cap-mode.enum.js.map +1 -0
- package/dist/types/enum/reflex-alert-metric.enum.d.ts +4 -0
- package/dist/types/enum/reflex-alert-metric.enum.js +9 -0
- package/dist/types/enum/reflex-alert-metric.enum.js.map +1 -0
- package/dist/types/enum/reflex-alert-notification-state.enum.d.ts +5 -0
- package/dist/types/enum/reflex-alert-notification-state.enum.js +10 -0
- package/dist/types/enum/reflex-alert-notification-state.enum.js.map +1 -0
- package/dist/types/enum/reflex-alert-scope.enum.d.ts +5 -0
- package/dist/types/enum/reflex-alert-scope.enum.js +10 -0
- package/dist/types/enum/reflex-alert-scope.enum.js.map +1 -0
- package/dist/types/interface/api/requests/alert-rule.request.d.ts +38 -0
- package/dist/types/interface/api/requests/alert-rule.request.js +3 -0
- package/dist/types/interface/api/requests/alert-rule.request.js.map +1 -0
- package/dist/types/interface/api/requests/application-insights.request.d.ts +14 -0
- package/dist/types/interface/api/requests/application-insights.request.js +3 -0
- package/dist/types/interface/api/requests/application-insights.request.js.map +1 -0
- package/dist/types/interface/api/requests/application-run-settings.request.d.ts +9 -0
- package/dist/types/interface/api/requests/application-run-settings.request.js +3 -0
- package/dist/types/interface/api/requests/application-run-settings.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-settings.request.d.ts +6 -1
- package/dist/types/interface/api/requests/index.d.ts +4 -0
- package/dist/types/interface/api/requests/index.js +4 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/route-stats.request.d.ts +18 -0
- package/dist/types/interface/api/requests/route-stats.request.js +3 -0
- package/dist/types/interface/api/requests/route-stats.request.js.map +1 -0
- package/dist/types/interface/api/responses/alert-rule.response.d.ts +17 -0
- package/dist/types/interface/api/responses/alert-rule.response.js +3 -0
- package/dist/types/interface/api/responses/alert-rule.response.js.map +1 -0
- package/dist/types/interface/api/responses/application-insights.response.d.ts +8 -0
- package/dist/types/interface/api/responses/application-insights.response.js +3 -0
- package/dist/types/interface/api/responses/application-insights.response.js.map +1 -0
- package/dist/types/interface/api/responses/application-run-settings.response.d.ts +6 -0
- package/dist/types/interface/api/responses/application-run-settings.response.js +3 -0
- package/dist/types/interface/api/responses/application-run-settings.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-settings.response.d.ts +3 -1
- package/dist/types/interface/api/responses/index.d.ts +4 -0
- package/dist/types/interface/api/responses/index.js +4 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/route-stats.response.d.ts +12 -0
- package/dist/types/interface/api/responses/route-stats.response.js +3 -0
- package/dist/types/interface/api/responses/route-stats.response.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +2 -0
- package/dist/types/interface/models/index.js +2 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-alert-rule.model.d.ts +55 -0
- package/dist/types/interface/models/reflex-alert-rule.model.js +15 -0
- package/dist/types/interface/models/reflex-alert-rule.model.js.map +1 -0
- package/dist/types/interface/models/reflex-insights.model.d.ts +63 -0
- package/dist/types/interface/models/reflex-insights.model.js +4 -1
- package/dist/types/interface/models/reflex-insights.model.js.map +1 -1
- package/dist/types/interface/models/reflex-run-settings.model.d.ts +19 -0
- package/dist/types/interface/models/reflex-run-settings.model.js +9 -0
- package/dist/types/interface/models/reflex-run-settings.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +40 -3
- package/dist/types/interface/models/reflex-run.model.js +9 -0
- package/dist/types/interface/models/reflex-run.model.js.map +1 -1
- package/jest.config.ts +11 -11
- package/package.json +15 -10
- package/src/api/alert-rule.api.test.ts +72 -0
- package/src/api/alert-rule.api.ts +57 -0
- package/src/api/application-insights.api.test.ts +42 -0
- package/src/api/application-insights.api.ts +38 -0
- package/src/api/application-run-settings.api.test.ts +51 -0
- package/src/api/application-run-settings.api.ts +30 -0
- package/src/api/function-access.api.ts +36 -36
- package/src/api/function-insights.api.test.ts +27 -27
- package/src/api/function-insights.api.ts +18 -18
- package/src/api/function-run.api.ts +38 -38
- package/src/api/function-settings.api.ts +74 -59
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +48 -48
- package/src/api/function.api.test.ts +249 -249
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/index.ts +21 -17
- package/src/api/route-stats.api.test.ts +45 -0
- package/src/api/route-stats.api.ts +36 -0
- package/src/api/service-configuration.api.ts +16 -16
- package/src/api/service-deployment.api.ts +79 -79
- package/src/api/service-discord-event.api.test.ts +106 -106
- package/src/api/service-discord-event.api.ts +78 -78
- package/src/api/service-discord.api.test.ts +197 -197
- package/src/api/service-discord.api.ts +241 -241
- package/src/api/service-insights.api.test.ts +36 -36
- package/src/api/service-insights.api.ts +42 -42
- package/src/api/service-route.api.ts +72 -72
- package/src/api/service-task.api.test.ts +140 -140
- package/src/api/service-task.api.ts +141 -141
- package/src/api/service-version.api.ts +54 -54
- package/src/api/service.api.test.ts +215 -215
- package/src/api/service.api.ts +55 -55
- package/src/discord/discord-event-filter-cases.ts +261 -261
- package/src/discord/discord-event-filters.test.ts +91 -91
- package/src/discord/discord-event-filters.ts +95 -95
- package/src/discord/discord-event-intents.test.ts +112 -112
- package/src/discord/discord-event-intents.ts +55 -55
- package/src/discord/index.ts +3 -3
- package/src/index.test.ts +87 -75
- package/src/index.ts +371 -317
- package/src/insights/index.ts +1 -0
- package/src/insights/percentiles.test.ts +75 -0
- package/src/insights/percentiles.ts +37 -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/bot-event-block-reason.enum.ts +7 -7
- package/src/types/enum/configuration-read-as.enum.ts +5 -5
- package/src/types/enum/discord-activity-type.enum.ts +9 -9
- package/src/types/enum/discord-component-kind.enum.ts +7 -7
- package/src/types/enum/discord-event-drop-reason.enum.ts +13 -13
- package/src/types/enum/discord-event-filter-name.enum.ts +11 -11
- package/src/types/enum/discord-event-status.enum.ts +13 -13
- package/src/types/enum/discord-event-type.enum.ts +7 -7
- package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -11
- package/src/types/enum/discord-gateway-state.enum.ts +11 -11
- package/src/types/enum/discord-option-type.enum.ts +12 -12
- package/src/types/enum/discord-presence-status.enum.ts +8 -8
- package/src/types/enum/discord-sync-status.enum.ts +6 -6
- package/src/types/enum/discord-token-state.enum.ts +11 -11
- package/src/types/enum/execution-mode.enum.ts +9 -9
- package/src/types/enum/execution-profile.enum.ts +20 -20
- package/src/types/enum/execution-settings-source.enum.ts +9 -9
- package/src/types/enum/health-status.enum.ts +4 -4
- package/src/types/enum/index.ts +44 -40
- package/src/types/enum/insights-period.enum.ts +8 -8
- package/src/types/enum/log-cap-mode.enum.ts +6 -0
- package/src/types/enum/reflex-alert-metric.enum.ts +5 -0
- package/src/types/enum/reflex-alert-notification-state.enum.ts +6 -0
- package/src/types/enum/reflex-alert-scope.enum.ts +6 -0
- package/src/types/enum/reflex-error-code.enum.ts +43 -43
- package/src/types/enum/route-method.enum.ts +9 -9
- package/src/types/enum/run-log-level.enum.ts +6 -6
- package/src/types/enum/run-mode.enum.ts +11 -11
- package/src/types/enum/run-status.enum.ts +11 -11
- package/src/types/enum/run-step-status.enum.ts +7 -7
- package/src/types/enum/schedule-sync-status.enum.ts +6 -6
- package/src/types/enum/scheduled-run-failure-code.enum.ts +12 -12
- package/src/types/enum/scheduled-run-origin.enum.ts +5 -5
- package/src/types/enum/scheduled-run-status.enum.ts +17 -17
- package/src/types/enum/service-deployment-action.enum.ts +11 -11
- package/src/types/enum/service-deployment-status.enum.ts +5 -5
- package/src/types/enum/service-type.enum.ts +9 -9
- package/src/types/enum/service-version-change-kind.enum.ts +6 -6
- package/src/types/enum/trace-effect-type.enum.ts +12 -12
- package/src/types/enum/trigger-access-mode.enum.ts +12 -12
- package/src/types/enum/trigger-kind.enum.ts +8 -8
- package/src/types/enum/vault-value-source.enum.ts +12 -12
- package/src/types/enum/vault-visibility.enum.ts +5 -5
- package/src/types/index.ts +2 -2
- package/src/types/interface/api/index.ts +3 -3
- package/src/types/interface/api/requests/alert-rule.request.ts +53 -0
- package/src/types/interface/api/requests/application-insights.request.ts +18 -0
- package/src/types/interface/api/requests/application-run-settings.request.ts +11 -0
- package/src/types/interface/api/requests/function-access.request.ts +25 -25
- package/src/types/interface/api/requests/function-run.request.ts +30 -30
- package/src/types/interface/api/requests/function-settings.request.ts +34 -27
- package/src/types/interface/api/requests/function-test.request.ts +39 -39
- package/src/types/interface/api/requests/function-version.request.ts +20 -20
- package/src/types/interface/api/requests/function.request.ts +36 -36
- package/src/types/interface/api/requests/index.ts +19 -15
- package/src/types/interface/api/requests/route-stats.request.ts +22 -0
- package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
- package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
- package/src/types/interface/api/requests/service-discord-event.request.ts +68 -68
- package/src/types/interface/api/requests/service-discord.request.ts +173 -173
- package/src/types/interface/api/requests/service-insights.request.ts +31 -31
- package/src/types/interface/api/requests/service-route.request.ts +44 -44
- package/src/types/interface/api/requests/service-task.request.ts +80 -80
- package/src/types/interface/api/requests/service-version.request.ts +24 -24
- package/src/types/interface/api/requests/service.request.ts +46 -46
- package/src/types/interface/api/response.ts +4 -4
- package/src/types/interface/api/responses/alert-rule.response.ts +24 -0
- package/src/types/interface/api/responses/application-insights.response.ts +11 -0
- package/src/types/interface/api/responses/application-run-settings.response.ts +8 -0
- package/src/types/interface/api/responses/function-access.response.ts +17 -17
- package/src/types/interface/api/responses/function-run.response.ts +18 -18
- package/src/types/interface/api/responses/function-settings.response.ts +40 -36
- package/src/types/interface/api/responses/function-test.response.ts +12 -12
- package/src/types/interface/api/responses/function-version.response.ts +31 -31
- package/src/types/interface/api/responses/function.response.ts +25 -25
- package/src/types/interface/api/responses/index.ts +19 -15
- package/src/types/interface/api/responses/route-stats.response.ts +15 -0
- package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
- package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
- package/src/types/interface/api/responses/service-discord-event.response.ts +24 -24
- package/src/types/interface/api/responses/service-discord.response.ts +122 -122
- package/src/types/interface/api/responses/service-insights.response.ts +11 -11
- package/src/types/interface/api/responses/service-route.response.ts +31 -31
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-version.response.ts +106 -106
- package/src/types/interface/api/responses/service.response.ts +31 -31
- package/src/types/interface/health.response.ts +7 -7
- package/src/types/interface/index.ts +3 -3
- package/src/types/interface/models/index.ts +21 -19
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-alert-rule.model.ts +56 -0
- package/src/types/interface/models/reflex-bot-limits.model.ts +92 -92
- package/src/types/interface/models/reflex-definition.model.ts +31 -31
- package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
- package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
- package/src/types/interface/models/reflex-execution-settings.model.ts +50 -50
- package/src/types/interface/models/reflex-function-version.model.ts +14 -14
- package/src/types/interface/models/reflex-function.model.ts +16 -16
- package/src/types/interface/models/reflex-insights.model.ts +215 -120
- package/src/types/interface/models/reflex-price-list.model.ts +20 -20
- package/src/types/interface/models/reflex-route.model.ts +19 -19
- package/src/types/interface/models/reflex-run-settings.model.ts +28 -0
- package/src/types/interface/models/reflex-run.model.ts +250 -186
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
- package/src/types/interface/models/reflex-service-version.model.ts +61 -61
- package/src/types/interface/models/reflex-service.model.ts +45 -45
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
- package/src/types/interface/models/reflex-task.model.ts +97 -97
- package/tsconfig.check.json +15 -15
- package/tsconfig.json +35 -35
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
export interface IListServiceTaskParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface ICreateServiceTaskParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
serviceId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateServiceTaskBody {
|
|
11
|
-
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** A function of the same Service. */
|
|
14
|
-
functionId: string;
|
|
15
|
-
/** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
|
|
16
|
-
schedule?: string | null;
|
|
17
|
-
/** IANA time zone the cron is read in; `Etc/UTC` by default. */
|
|
18
|
-
timezone?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IUpdateServiceTaskParams {
|
|
22
|
-
applicationId: string;
|
|
23
|
-
serviceId: string;
|
|
24
|
-
taskId: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IUpdateServiceTaskBody {
|
|
27
|
-
name?: string;
|
|
28
|
-
functionId?: string;
|
|
29
|
-
schedule?: string | null;
|
|
30
|
-
timezone?: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IDeleteServiceTaskParams {
|
|
34
|
-
applicationId: string;
|
|
35
|
-
serviceId: string;
|
|
36
|
-
taskId: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ITestRunServiceTaskParams {
|
|
40
|
-
applicationId: string;
|
|
41
|
-
serviceId: string;
|
|
42
|
-
taskId: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ITestRunServiceTaskBody {
|
|
45
|
-
/** The environment of the application the test run takes place in (abyss-main's id). */
|
|
46
|
-
environmentId: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface IListServiceDelayedRunParams {
|
|
50
|
-
applicationId: string;
|
|
51
|
-
serviceId: string;
|
|
52
|
-
environmentId: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface ICancelServiceDelayedRunParams {
|
|
56
|
-
applicationId: string;
|
|
57
|
-
serviceId: string;
|
|
58
|
-
environmentId: string;
|
|
59
|
-
delayedRunId: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface IRetryServiceScheduleSyncParams {
|
|
63
|
-
applicationId: string;
|
|
64
|
-
serviceId: string;
|
|
65
|
-
environmentId: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface IListServiceTaskScheduledRunParams {
|
|
69
|
-
applicationId: string;
|
|
70
|
-
serviceId: string;
|
|
71
|
-
taskId: string;
|
|
72
|
-
/** The environment of the application whose runs are read (abyss-main's id). */
|
|
73
|
-
environmentId: string;
|
|
74
|
-
}
|
|
75
|
-
export interface IListServiceTaskScheduledRunQuery {
|
|
76
|
-
/** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
|
|
77
|
-
limit?: number;
|
|
78
|
-
/** Runs skipped, newest first; 0 by default. */
|
|
79
|
-
offset?: number;
|
|
80
|
-
}
|
|
1
|
+
export interface IListServiceTaskParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface ICreateServiceTaskParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
serviceId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateServiceTaskBody {
|
|
11
|
+
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** A function of the same Service. */
|
|
14
|
+
functionId: string;
|
|
15
|
+
/** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
|
|
16
|
+
schedule?: string | null;
|
|
17
|
+
/** IANA time zone the cron is read in; `Etc/UTC` by default. */
|
|
18
|
+
timezone?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IUpdateServiceTaskParams {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
serviceId: string;
|
|
24
|
+
taskId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IUpdateServiceTaskBody {
|
|
27
|
+
name?: string;
|
|
28
|
+
functionId?: string;
|
|
29
|
+
schedule?: string | null;
|
|
30
|
+
timezone?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IDeleteServiceTaskParams {
|
|
34
|
+
applicationId: string;
|
|
35
|
+
serviceId: string;
|
|
36
|
+
taskId: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ITestRunServiceTaskParams {
|
|
40
|
+
applicationId: string;
|
|
41
|
+
serviceId: string;
|
|
42
|
+
taskId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ITestRunServiceTaskBody {
|
|
45
|
+
/** The environment of the application the test run takes place in (abyss-main's id). */
|
|
46
|
+
environmentId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface IListServiceDelayedRunParams {
|
|
50
|
+
applicationId: string;
|
|
51
|
+
serviceId: string;
|
|
52
|
+
environmentId: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ICancelServiceDelayedRunParams {
|
|
56
|
+
applicationId: string;
|
|
57
|
+
serviceId: string;
|
|
58
|
+
environmentId: string;
|
|
59
|
+
delayedRunId: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface IRetryServiceScheduleSyncParams {
|
|
63
|
+
applicationId: string;
|
|
64
|
+
serviceId: string;
|
|
65
|
+
environmentId: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface IListServiceTaskScheduledRunParams {
|
|
69
|
+
applicationId: string;
|
|
70
|
+
serviceId: string;
|
|
71
|
+
taskId: string;
|
|
72
|
+
/** The environment of the application whose runs are read (abyss-main's id). */
|
|
73
|
+
environmentId: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IListServiceTaskScheduledRunQuery {
|
|
76
|
+
/** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
|
|
77
|
+
limit?: number;
|
|
78
|
+
/** Runs skipped, newest first; 0 by default. */
|
|
79
|
+
offset?: number;
|
|
80
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface IListServiceVersionParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface ICreateServiceVersionParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
serviceId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateServiceVersionBody {
|
|
11
|
-
/** 500 characters at most. */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface IGetServiceVersionDraftStatusParams {
|
|
16
|
-
applicationId: string;
|
|
17
|
-
serviceId: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface IGetServiceVersionParams {
|
|
21
|
-
applicationId: string;
|
|
22
|
-
serviceId: string;
|
|
23
|
-
versionId: string;
|
|
24
|
-
}
|
|
1
|
+
export interface IListServiceVersionParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface ICreateServiceVersionParams {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
serviceId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateServiceVersionBody {
|
|
11
|
+
/** 500 characters at most. */
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IGetServiceVersionDraftStatusParams {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
serviceId: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IGetServiceVersionParams {
|
|
21
|
+
applicationId: string;
|
|
22
|
+
serviceId: string;
|
|
23
|
+
versionId: string;
|
|
24
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import type { ServiceType } from '../../../enum';
|
|
2
|
-
import type { IReflexServiceCors } from '../../models';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceParams {
|
|
5
|
-
applicationId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ICreateServiceParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ICreateServiceBody {
|
|
12
|
-
/** Unique within the application, 1 to 100 characters. */
|
|
13
|
-
name: string;
|
|
14
|
-
/** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
|
|
15
|
-
slug: string;
|
|
16
|
-
type: ServiceType;
|
|
17
|
-
/** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
18
|
-
cors?: IReflexServiceCors;
|
|
19
|
-
/** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
20
|
-
rateLimitPerIpPerMinute?: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IGetServiceParams {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
serviceId: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IUpdateServiceParams {
|
|
29
|
-
applicationId: string;
|
|
30
|
-
serviceId: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
|
|
34
|
-
* `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
|
|
35
|
-
*/
|
|
36
|
-
export interface IUpdateServiceBody {
|
|
37
|
-
name?: string;
|
|
38
|
-
cors?: IReflexServiceCors;
|
|
39
|
-
/** 1 to 6000. */
|
|
40
|
-
rateLimitPerIpPerMinute?: number;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface IDeleteServiceParams {
|
|
44
|
-
applicationId: string;
|
|
45
|
-
serviceId: string;
|
|
46
|
-
}
|
|
1
|
+
import type { ServiceType } from '../../../enum';
|
|
2
|
+
import type { IReflexServiceCors } from '../../models';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceParams {
|
|
5
|
+
applicationId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ICreateServiceParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ICreateServiceBody {
|
|
12
|
+
/** Unique within the application, 1 to 100 characters. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
|
|
15
|
+
slug: string;
|
|
16
|
+
type: ServiceType;
|
|
17
|
+
/** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
18
|
+
cors?: IReflexServiceCors;
|
|
19
|
+
/** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
|
|
20
|
+
rateLimitPerIpPerMinute?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IGetServiceParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IUpdateServiceParams {
|
|
29
|
+
applicationId: string;
|
|
30
|
+
serviceId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
|
|
34
|
+
* `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
|
|
35
|
+
*/
|
|
36
|
+
export interface IUpdateServiceBody {
|
|
37
|
+
name?: string;
|
|
38
|
+
cors?: IReflexServiceCors;
|
|
39
|
+
/** 1 to 6000. */
|
|
40
|
+
rateLimitPerIpPerMinute?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IDeleteServiceParams {
|
|
44
|
+
applicationId: string;
|
|
45
|
+
serviceId: string;
|
|
46
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Every success of the API wraps its payload in `data`. */
|
|
2
|
-
export interface IResponse<T> {
|
|
3
|
-
data: T;
|
|
4
|
-
}
|
|
1
|
+
/** Every success of the API wraps its payload in `data`. */
|
|
2
|
+
export interface IResponse<T> {
|
|
3
|
+
data: T;
|
|
4
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IReflexAlertRule, IReflexAlertRuleState } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
/** A rule and what its last evaluation found; `state` is null until the first evaluation. */
|
|
5
|
+
export interface IReflexAlertRuleWithState {
|
|
6
|
+
rule: IReflexAlertRule;
|
|
7
|
+
state: IReflexAlertRuleState | null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IListAlertRuleData {
|
|
11
|
+
rules: IReflexAlertRuleWithState[];
|
|
12
|
+
/** Rules enabled in the application, against `REFLEX_ALERT_RULE_LIMITS.maxActivePerApplication`. */
|
|
13
|
+
activeCount: number;
|
|
14
|
+
}
|
|
15
|
+
export type IListAlertRuleResponse = IResponse<IListAlertRuleData>;
|
|
16
|
+
|
|
17
|
+
export type ICreateAlertRuleData = IReflexAlertRuleWithState;
|
|
18
|
+
export type ICreateAlertRuleResponse = IResponse<ICreateAlertRuleData>;
|
|
19
|
+
|
|
20
|
+
export type IUpdateAlertRuleData = IReflexAlertRuleWithState;
|
|
21
|
+
export type IUpdateAlertRuleResponse = IResponse<IUpdateAlertRuleData>;
|
|
22
|
+
|
|
23
|
+
export type IDeleteAlertRuleData = Record<string, never>;
|
|
24
|
+
export type IDeleteAlertRuleResponse = IResponse<IDeleteAlertRuleData>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IReflexApplicationInsights, IReflexCalendarDay } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export type IGetApplicationInsightsData = IReflexApplicationInsights;
|
|
5
|
+
export type IGetApplicationInsightsResponse = IResponse<IGetApplicationInsightsData>;
|
|
6
|
+
|
|
7
|
+
export interface IGetApplicationCalendarData {
|
|
8
|
+
/** The last 365 days, oldest first, a day without run included. */
|
|
9
|
+
days: IReflexCalendarDay[];
|
|
10
|
+
}
|
|
11
|
+
export type IGetApplicationCalendarResponse = IResponse<IGetApplicationCalendarData>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IReflexApplicationRunSettings } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export type IGetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
5
|
+
export type IGetApplicationRunSettingsResponse = IResponse<IGetApplicationRunSettingsData>;
|
|
6
|
+
|
|
7
|
+
export type ISetApplicationRunSettingsData = IReflexApplicationRunSettings;
|
|
8
|
+
export type ISetApplicationRunSettingsResponse = IResponse<ISetApplicationRunSettingsData>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { IReflexAccessGrant } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionAccessData {
|
|
5
|
-
grants: IReflexAccessGrant[];
|
|
6
|
-
}
|
|
7
|
-
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
8
|
-
|
|
9
|
-
export interface IGrantFunctionAccessData {
|
|
10
|
-
grant: IReflexAccessGrant;
|
|
11
|
-
}
|
|
12
|
-
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
13
|
-
|
|
14
|
-
export interface IRevokeFunctionAccessData {
|
|
15
|
-
grant: IReflexAccessGrant;
|
|
16
|
-
}
|
|
17
|
-
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
1
|
+
import type { IReflexAccessGrant } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionAccessData {
|
|
5
|
+
grants: IReflexAccessGrant[];
|
|
6
|
+
}
|
|
7
|
+
export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
|
|
8
|
+
|
|
9
|
+
export interface IGrantFunctionAccessData {
|
|
10
|
+
grant: IReflexAccessGrant;
|
|
11
|
+
}
|
|
12
|
+
export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
|
|
13
|
+
|
|
14
|
+
export interface IRevokeFunctionAccessData {
|
|
15
|
+
grant: IReflexAccessGrant;
|
|
16
|
+
}
|
|
17
|
+
export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionRunData {
|
|
5
|
-
/** Newest first. */
|
|
6
|
-
runs: IReflexRun[];
|
|
7
|
-
}
|
|
8
|
-
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
9
|
-
|
|
10
|
-
export interface IGetFunctionRunData {
|
|
11
|
-
run: IReflexRunDetail;
|
|
12
|
-
}
|
|
13
|
-
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
14
|
-
|
|
15
|
-
export interface IGetFunctionRunStateData {
|
|
16
|
-
state: IReflexExecutionState;
|
|
17
|
-
}
|
|
18
|
-
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
1
|
+
import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionRunData {
|
|
5
|
+
/** Newest first. */
|
|
6
|
+
runs: IReflexRun[];
|
|
7
|
+
}
|
|
8
|
+
export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
|
|
9
|
+
|
|
10
|
+
export interface IGetFunctionRunData {
|
|
11
|
+
run: IReflexRunDetail;
|
|
12
|
+
}
|
|
13
|
+
export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
|
|
14
|
+
|
|
15
|
+
export interface IGetFunctionRunStateData {
|
|
16
|
+
state: IReflexExecutionState;
|
|
17
|
+
}
|
|
18
|
+
export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
|
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IReflexEffectiveExecutionSettings,
|
|
3
|
-
IReflexExecutionSettings,
|
|
4
|
-
IReflexExecutionSettingsValues,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
default
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export type
|
|
36
|
-
|
|
1
|
+
import type {
|
|
2
|
+
IReflexEffectiveExecutionSettings,
|
|
3
|
+
IReflexExecutionSettings,
|
|
4
|
+
IReflexExecutionSettingsValues,
|
|
5
|
+
IReflexFunctionLogCap,
|
|
6
|
+
IReflexPriceList,
|
|
7
|
+
} from '../../models';
|
|
8
|
+
import type { IResponse } from '../response';
|
|
9
|
+
|
|
10
|
+
export interface IGetFunctionSettingsData {
|
|
11
|
+
/** The default of the function; null when none is set. */
|
|
12
|
+
default: IReflexExecutionSettings | null;
|
|
13
|
+
/** The override of each environment that has one. */
|
|
14
|
+
environments: IReflexExecutionSettings[];
|
|
15
|
+
/** What each environment of the application runs with. */
|
|
16
|
+
effective: IReflexEffectiveExecutionSettings[];
|
|
17
|
+
/** What applies when neither the environment nor the function sets anything. */
|
|
18
|
+
builtIn: IReflexExecutionSettingsValues;
|
|
19
|
+
/** The price list an execution is billed with, to estimate the cost of a setting. */
|
|
20
|
+
priceList: IReflexPriceList;
|
|
21
|
+
}
|
|
22
|
+
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
23
|
+
|
|
24
|
+
export interface ISetFunctionDefaultSettingsData {
|
|
25
|
+
settings: IReflexExecutionSettings;
|
|
26
|
+
}
|
|
27
|
+
export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
|
|
28
|
+
|
|
29
|
+
export interface ISetFunctionEnvironmentSettingsData {
|
|
30
|
+
settings: IReflexExecutionSettings;
|
|
31
|
+
}
|
|
32
|
+
export type ISetFunctionEnvironmentSettingsResponse =
|
|
33
|
+
IResponse<ISetFunctionEnvironmentSettingsData>;
|
|
34
|
+
|
|
35
|
+
export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
|
|
36
|
+
export type IRemoveFunctionEnvironmentSettingsResponse =
|
|
37
|
+
IResponse<IRemoveFunctionEnvironmentSettingsData>;
|
|
38
|
+
|
|
39
|
+
export type ISetFunctionLogCapData = IReflexFunctionLogCap;
|
|
40
|
+
export type ISetFunctionLogCapResponse = IResponse<ISetFunctionLogCapData>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { IReflexRun } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface ISimulateFunctionData {
|
|
5
|
-
run: IReflexRun;
|
|
6
|
-
}
|
|
7
|
-
export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
|
|
8
|
-
|
|
9
|
-
export interface IDryRunFunctionData {
|
|
10
|
-
run: IReflexRun;
|
|
11
|
-
}
|
|
12
|
-
export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;
|
|
1
|
+
import type { IReflexRun } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface ISimulateFunctionData {
|
|
5
|
+
run: IReflexRun;
|
|
6
|
+
}
|
|
7
|
+
export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
|
|
8
|
+
|
|
9
|
+
export interface IDryRunFunctionData {
|
|
10
|
+
run: IReflexRun;
|
|
11
|
+
}
|
|
12
|
+
export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IReflexFunctionVersion,
|
|
3
|
-
IReflexRunningVersionHeapPeaks,
|
|
4
|
-
IReflexStepStats,
|
|
5
|
-
} from '../../models';
|
|
6
|
-
import type { IResponse } from '../response';
|
|
7
|
-
|
|
8
|
-
export interface IListFunctionVersionData {
|
|
9
|
-
versions: IReflexFunctionVersion[];
|
|
10
|
-
}
|
|
11
|
-
export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
|
|
12
|
-
|
|
13
|
-
export interface IGetFunctionVersionData {
|
|
14
|
-
version: IReflexFunctionVersion;
|
|
15
|
-
}
|
|
16
|
-
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
17
|
-
|
|
18
|
-
export interface IGetFunctionVersionStepStatsData {
|
|
19
|
-
versionId: string;
|
|
20
|
-
/** The environment asked for; null for every environment. */
|
|
21
|
-
environmentId: string | null;
|
|
22
|
-
/** The window the statistics cover: the retention of the live runs. */
|
|
23
|
-
windowDays: number;
|
|
24
|
-
/** Executions of the version in the window, interrupted and running ones left out. */
|
|
25
|
-
executions: number;
|
|
26
|
-
/** One entry per step that ran, most costly first. */
|
|
27
|
-
steps: IReflexStepStats[];
|
|
28
|
-
/** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
|
|
29
|
-
runningVersion: IReflexRunningVersionHeapPeaks | null;
|
|
30
|
-
}
|
|
31
|
-
export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
|
|
1
|
+
import type {
|
|
2
|
+
IReflexFunctionVersion,
|
|
3
|
+
IReflexRunningVersionHeapPeaks,
|
|
4
|
+
IReflexStepStats,
|
|
5
|
+
} from '../../models';
|
|
6
|
+
import type { IResponse } from '../response';
|
|
7
|
+
|
|
8
|
+
export interface IListFunctionVersionData {
|
|
9
|
+
versions: IReflexFunctionVersion[];
|
|
10
|
+
}
|
|
11
|
+
export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
|
|
12
|
+
|
|
13
|
+
export interface IGetFunctionVersionData {
|
|
14
|
+
version: IReflexFunctionVersion;
|
|
15
|
+
}
|
|
16
|
+
export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
|
|
17
|
+
|
|
18
|
+
export interface IGetFunctionVersionStepStatsData {
|
|
19
|
+
versionId: string;
|
|
20
|
+
/** The environment asked for; null for every environment. */
|
|
21
|
+
environmentId: string | null;
|
|
22
|
+
/** The window the statistics cover: the retention of the live runs. */
|
|
23
|
+
windowDays: number;
|
|
24
|
+
/** Executions of the version in the window, interrupted and running ones left out. */
|
|
25
|
+
executions: number;
|
|
26
|
+
/** One entry per step that ran, most costly first. */
|
|
27
|
+
steps: IReflexStepStats[];
|
|
28
|
+
/** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
|
|
29
|
+
runningVersion: IReflexRunningVersionHeapPeaks | null;
|
|
30
|
+
}
|
|
31
|
+
export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { IReflexFunction } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionData {
|
|
5
|
-
functions: IReflexFunction[];
|
|
6
|
-
}
|
|
7
|
-
export type IListFunctionResponse = IResponse<IListFunctionData>;
|
|
8
|
-
|
|
9
|
-
export interface ICreateFunctionData {
|
|
10
|
-
function: IReflexFunction;
|
|
11
|
-
}
|
|
12
|
-
export type ICreateFunctionResponse = IResponse<ICreateFunctionData>;
|
|
13
|
-
|
|
14
|
-
export interface IGetFunctionData {
|
|
15
|
-
function: IReflexFunction;
|
|
16
|
-
}
|
|
17
|
-
export type IGetFunctionResponse = IResponse<IGetFunctionData>;
|
|
18
|
-
|
|
19
|
-
export interface IUpdateFunctionData {
|
|
20
|
-
function: IReflexFunction;
|
|
21
|
-
}
|
|
22
|
-
export type IUpdateFunctionResponse = IResponse<IUpdateFunctionData>;
|
|
23
|
-
|
|
24
|
-
export type IDeleteFunctionData = Record<string, never>;
|
|
25
|
-
export type IDeleteFunctionResponse = IResponse<IDeleteFunctionData>;
|
|
1
|
+
import type { IReflexFunction } from '../../models';
|
|
2
|
+
import type { IResponse } from '../response';
|
|
3
|
+
|
|
4
|
+
export interface IListFunctionData {
|
|
5
|
+
functions: IReflexFunction[];
|
|
6
|
+
}
|
|
7
|
+
export type IListFunctionResponse = IResponse<IListFunctionData>;
|
|
8
|
+
|
|
9
|
+
export interface ICreateFunctionData {
|
|
10
|
+
function: IReflexFunction;
|
|
11
|
+
}
|
|
12
|
+
export type ICreateFunctionResponse = IResponse<ICreateFunctionData>;
|
|
13
|
+
|
|
14
|
+
export interface IGetFunctionData {
|
|
15
|
+
function: IReflexFunction;
|
|
16
|
+
}
|
|
17
|
+
export type IGetFunctionResponse = IResponse<IGetFunctionData>;
|
|
18
|
+
|
|
19
|
+
export interface IUpdateFunctionData {
|
|
20
|
+
function: IReflexFunction;
|
|
21
|
+
}
|
|
22
|
+
export type IUpdateFunctionResponse = IResponse<IUpdateFunctionData>;
|
|
23
|
+
|
|
24
|
+
export type IDeleteFunctionData = Record<string, never>;
|
|
25
|
+
export type IDeleteFunctionResponse = IResponse<IDeleteFunctionData>;
|