@slip-stream-kit/config 0.33.1 → 0.34.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/entry/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { defineDeployConfig } from '../lib/deploy/deploy-config-schema';
|
|
2
2
|
export type { DeployConfig, DeployService } from '../lib/deploy/deploy-config-schema';
|
|
3
|
-
export type { DeployBackendApiOptions, DeployBuildOptions, DeployFrontendUiOptions, DeployHook, DeployHookContext, DeployRetryOptions, DeployRunOptions, DeployScript, DeployToolkit, } from '../lib/deploy/deploy-script';
|
|
3
|
+
export type { DeployBackendApiOptions, DeployBuildOptions, DeployFrontendUiOptions, DeployHook, DeployHookContext, DeployInvokeLambdasOptions, DeployLambdaInvocation, DeployRetryOptions, DeployRunOptions, DeployScript, DeployToolkit, } from '../lib/deploy/deploy-script';
|
|
4
4
|
export { defineConfig } from '../lib/package-config/package-config';
|
|
5
5
|
export type { InfraKitDev, InfraKitDevEnv, InfraKitDevProxy, InfraKitDevProxyRoute, InfraKitDevProxySource, InfraKitE2e, InfraKitE2eStatic, InfraKitE2eTarget, InfraKitPackageConfig, InfraKitPackageConfigInput, InfraKitPackageType, } from '../lib/package-config/package-config';
|
|
6
6
|
export { defineVendorConfig } from '../lib/vendor/config-schema';
|
|
@@ -85,6 +85,22 @@ export interface DeployFrontendUiOptions {
|
|
|
85
85
|
invalidationPath?: string;
|
|
86
86
|
postDeploy?: DeployHook;
|
|
87
87
|
}
|
|
88
|
+
export interface DeployLambdaInvocation {
|
|
89
|
+
/** The physical name, e.g. `cronjobs-api-v1-dev-alpAuth`. */
|
|
90
|
+
functionName: string;
|
|
91
|
+
/** JSON event; defaults to the call's `payload`, then `{}`. */
|
|
92
|
+
payload?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface DeployInvokeLambdasOptions {
|
|
95
|
+
/** Defaults to the aws CLI's configured region. */
|
|
96
|
+
region?: string;
|
|
97
|
+
/** Default event for every invocation that names none. */
|
|
98
|
+
payload?: string;
|
|
99
|
+
/** Run one by one, first; any failure fails the deploy. */
|
|
100
|
+
blocking?: DeployLambdaInvocation[];
|
|
101
|
+
/** Best-effort: run step by step, a step's invocations concurrently; a failure only warns. */
|
|
102
|
+
steps?: DeployLambdaInvocation[][];
|
|
103
|
+
}
|
|
88
104
|
export interface DeployToolkit {
|
|
89
105
|
/** The repo root the script runs from. */
|
|
90
106
|
root: string;
|
|
@@ -108,4 +124,6 @@ export interface DeployToolkit {
|
|
|
108
124
|
deployBackendApi: (options: DeployBackendApiOptions) => Promise<void>;
|
|
109
125
|
/** Build, `aws s3 sync`, CloudFront invalidation, optional post-deploy hook. */
|
|
110
126
|
deployFrontendUi: (options: DeployFrontendUiOptions) => Promise<void>;
|
|
127
|
+
/** Synchronous `aws lambda invoke`s, failing on the handler's error, not only the CLI's exit code. */
|
|
128
|
+
invokeLambdas: (options: DeployInvokeLambdasOptions) => Promise<void>;
|
|
111
129
|
}
|