@lafken/common 0.11.5 → 0.11.7
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResourceIdentifiers, ScopedResourceNames } from './utilities.types';
|
|
2
|
-
export type ModuleGlobalReferenceNames = 'api' | 'user-pool' | 'user-pool-client' | 'bucket' | 'dynamo' | 'event-bus';
|
|
2
|
+
export type ModuleGlobalReferenceNames = 'api' | 'user-pool' | 'user-pool-client' | 'bucket' | 'dynamo' | 'event-bus' | 'resource';
|
|
3
3
|
export interface ModulesAvailable {
|
|
4
4
|
}
|
|
5
5
|
export interface AuthAvailable {
|
|
@@ -14,6 +14,8 @@ export interface EventBusAvailable {
|
|
|
14
14
|
}
|
|
15
15
|
export interface DynamoTableAvailable {
|
|
16
16
|
}
|
|
17
|
+
export interface ResourceAvailable {
|
|
18
|
+
}
|
|
17
19
|
type ResourceNames<T> = keyof T | (string & {});
|
|
18
20
|
type StackResourceName<T, S extends ModuleGlobalReferenceNames> = `${S}::${Extract<keyof T, string | number>}` | (string & {});
|
|
19
21
|
export type ModuleNames = ResourceNames<ModulesAvailable>;
|
|
@@ -21,6 +23,7 @@ export type AuthNames = ResourceNames<AuthAvailable>;
|
|
|
21
23
|
export type UserPoolScopedNames = StackResourceName<AuthAvailable, 'user-pool'>;
|
|
22
24
|
export type UserPoolClientScopedNames = StackResourceName<AuthAvailable, 'user-pool-client'>;
|
|
23
25
|
export type BucketNames = ResourceNames<BucketAvailable>;
|
|
26
|
+
export type ResourcesScopedNames = StackResourceName<ResourceAvailable, 'resource'>;
|
|
24
27
|
export type BucketScopedNames = StackResourceName<BucketAvailable, 'bucket'>;
|
|
25
28
|
export type ApiRestNames = ResourceNames<ApiRestAvailable>;
|
|
26
29
|
export type ApiRestScopedNames = StackResourceName<ApiRestAvailable, 'api'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GetResourceValue } from './output.types';
|
|
2
|
-
import type { ApiRestScopedNames, BucketScopedNames, DynamoTableScopedNames, EventBusScopedNames, QueueScopedNames, StateMachineScopedNames, UserPoolClientScopedNames, UserPoolScopedNames } from './override-resources.types';
|
|
2
|
+
import type { ApiRestScopedNames, BucketScopedNames, DynamoTableScopedNames, EventBusScopedNames, QueueScopedNames, ResourcesScopedNames, StateMachineScopedNames, UserPoolClientScopedNames, UserPoolScopedNames } from './override-resources.types';
|
|
3
3
|
export interface ClassResource {
|
|
4
4
|
new (...args: any[]): {};
|
|
5
5
|
}
|
|
@@ -272,7 +272,7 @@ export interface GetResourceProps {
|
|
|
272
272
|
* // Get a bucket ARN
|
|
273
273
|
* getResourceValue('bucket::uploads', 'arn')
|
|
274
274
|
*/
|
|
275
|
-
getResourceValue: GetResourceValue<DynamoTableScopedNames | UserPoolScopedNames | UserPoolClientScopedNames | BucketScopedNames | ApiRestScopedNames | EventBusScopedNames | StateMachineScopedNames | QueueScopedNames>;
|
|
275
|
+
getResourceValue: GetResourceValue<DynamoTableScopedNames | UserPoolScopedNames | UserPoolClientScopedNames | BucketScopedNames | ApiRestScopedNames | EventBusScopedNames | StateMachineScopedNames | QueueScopedNames | ResourcesScopedNames>;
|
|
276
276
|
/**
|
|
277
277
|
* Retrieves a value from AWS Systems Manager Parameter Store.
|
|
278
278
|
*
|
package/package.json
CHANGED