stacktape 2.23.0-alpha.8 → 2.23.0-beta.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/index.d.ts CHANGED
@@ -98,7 +98,7 @@ import type {
98
98
  * Helper function to define a config with automatic transformation
99
99
  * Use this when exporting your config for the Stacktape CLI
100
100
  */
101
- export declare const defineConfig: (configFn: (params: GetConfigParams) => any) => ((params: GetConfigParams) => any);
101
+ export declare const defineConfig: (configFn: (params: GetConfigParams) => StacktapeConfig) => (params: GetConfigParams) => any;
102
102
  /**
103
103
  * Transforms a config with resource instances into a plain config object
104
104
  */
@@ -109,85 +109,78 @@ export {};
109
109
  // ==========================================
110
110
  // ESSENTIAL BASE TYPES
111
111
  // ==========================================
112
-
113
112
  declare const getParamReferenceSymbol: unique symbol;
113
+
114
114
  declare const getTypeSymbol: unique symbol;
115
+
115
116
  declare const getPropertiesSymbol: unique symbol;
117
+
116
118
  declare const getOverridesSymbol: unique symbol;
117
119
 
118
- /**
119
- * A reference to a resource parameter that will be resolved at runtime
120
- */
121
120
  export declare class ResourceParamReference {
122
- private __resourceName: string;
123
- private __param: string;
124
- constructor(resourceName: string, param: string);
125
- toString(): string;
126
- toJSON(): string;
127
- valueOf(): string;
121
+ private __resourceName;
122
+ private __param;
123
+ constructor(resourceName: string, param: string);
124
+ toString(): string;
125
+ toJSON(): string;
126
+ valueOf(): string;
128
127
  }
129
128
 
130
- /**
131
- * Base class for type/properties structures (engines, packaging, events, etc.)
132
- */
133
129
  export declare class BaseTypeProperties {
134
- readonly type: string;
135
- readonly properties: any;
136
- constructor(type: string, properties: any);
130
+ readonly type: string;
131
+ readonly properties: any;
132
+ constructor(type: string, properties: any);
137
133
  }
138
134
 
139
- /**
140
- * Base resource class that provides common functionality
141
- */
142
135
  export declare class BaseResource {
143
- private readonly _type: string;
144
- private readonly _properties: any;
145
- private readonly _overrides?: any;
146
- private readonly _resourceName: string;
147
- constructor(name: string, type: string, properties: any, overrides?: any);
148
- get resourceName(): string;
149
- [getParamReferenceSymbol](paramName: string): ResourceParamReference;
150
- [getTypeSymbol](): string;
151
- [getPropertiesSymbol](): any;
152
- [getOverridesSymbol](): any | undefined;
136
+ private readonly _type;
137
+ private readonly _properties;
138
+ private readonly _overrides?;
139
+ private readonly _resourceName;
140
+ constructor(name: string, type: string, properties: any, overrides?: any);
141
+ get resourceName(): string;
142
+ [getParamReferenceSymbol](paramName: string): ResourceParamReference;
143
+ [getTypeSymbol](): string;
144
+ [getPropertiesSymbol](): any;
145
+ [getOverridesSymbol](): any | undefined;
153
146
  }
154
147
 
155
- /**
156
- * Parameters passed to the config function
157
- */
158
148
  export type GetConfigParams = {
159
- /**
160
- * Stage ("environment") used for this operation
161
- */
162
- stage: string;
163
- /**
164
- * AWS region used for this operation
165
- * The list of available regions is available at https://www.aws-services.info/regions.html
166
- */
167
- region: string;
168
- /**
169
- * List of arguments passed to the operation
170
- */
171
- cliArgs: Record<string, boolean | number | string | string[]>;
172
- /**
173
- * Stacktape command used to perform this operation (can be either deploy, codebuild:deploy, delete, etc.)
174
- */
175
- command: string;
176
- /**
177
- * Locally-configured AWS profile used to execute the operation.
178
- * Doesn't apply if you have your AWS account connected in "automatic" mode.
179
- */
180
- awsProfile: string;
181
- /**
182
- * Information about the user performing the stack operation
183
- */
184
- user: {
185
- id: string;
186
- name: string;
187
- email: string;
188
- };
189
- };
190
-
149
+ /**
150
+ * Project name used for this operation
151
+ */
152
+ projectName: string;
153
+ /**
154
+ * Stage ("environment") used for this operation
155
+ */
156
+ stage: string;
157
+ /**
158
+ * AWS region used for this operation
159
+ * The list of available regions is available at https://www.aws-services.info/regions.html
160
+ */
161
+ region: string;
162
+ /**
163
+ * List of arguments passed to the operation
164
+ */
165
+ cliArgs: StacktapeArgs;
166
+ /**
167
+ * Stacktape command used to perform this operation (can be either deploy, codebuild:deploy, delete, etc.)
168
+ */
169
+ command: string;
170
+ /**
171
+ * Locally-configured AWS profile used to execute the operation.
172
+ * Doesn't apply if you have your AWS account connected in "automatic" mode.
173
+ */
174
+ awsProfile: string;
175
+ /**
176
+ * Information about the user performing the stack operation
177
+ */
178
+ user: {
179
+ id: string;
180
+ name: string;
181
+ email: string;
182
+ };
183
+ }
191
184
 
192
185
  // ==========================================
193
186
  // AUGMENTED PROPS TYPES