@webiny/api-sync-system 6.2.0 → 6.3.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/package.json +12 -12
- package/sync/types.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-sync-system",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"author": "Webiny LTD",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@webiny/api": "6.
|
|
15
|
-
"@webiny/aws-sdk": "6.
|
|
16
|
-
"@webiny/error": "6.
|
|
17
|
-
"@webiny/handler": "6.
|
|
18
|
-
"@webiny/handler-aws": "6.
|
|
19
|
-
"@webiny/plugins": "6.
|
|
20
|
-
"@webiny/utils": "6.
|
|
14
|
+
"@webiny/api": "6.3.0-beta.0",
|
|
15
|
+
"@webiny/aws-sdk": "6.3.0-beta.0",
|
|
16
|
+
"@webiny/error": "6.3.0-beta.0",
|
|
17
|
+
"@webiny/handler": "6.3.0-beta.0",
|
|
18
|
+
"@webiny/handler-aws": "6.3.0-beta.0",
|
|
19
|
+
"@webiny/plugins": "6.3.0-beta.0",
|
|
20
|
+
"@webiny/utils": "6.3.0-beta.0",
|
|
21
21
|
"bytes": "3.1.2",
|
|
22
22
|
"lodash": "4.18.1",
|
|
23
23
|
"semver": "7.7.4",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@faker-js/faker": "10.4.0",
|
|
28
28
|
"@types/lodash": "4.17.24",
|
|
29
|
-
"@webiny/build-tools": "6.
|
|
30
|
-
"@webiny/project-utils": "6.
|
|
29
|
+
"@webiny/build-tools": "6.3.0-beta.0",
|
|
30
|
+
"@webiny/project-utils": "6.3.0-beta.0",
|
|
31
31
|
"aws-sdk-client-mock": "4.1.0",
|
|
32
32
|
"jest-dynalite": "3.6.1",
|
|
33
33
|
"rimraf": "6.1.3",
|
|
34
|
-
"typescript": "
|
|
34
|
+
"typescript": "6.0.3",
|
|
35
35
|
"vitest": "4.1.4"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public",
|
|
39
39
|
"directory": "dist"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "94c21e58aebc9855bf1ae972423281faa0f5c135"
|
|
42
42
|
}
|
package/sync/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { NonEmptyArray } from \"@webiny/api/types.js\";\nimport type {\n BatchGetCommand,\n BatchWriteCommand,\n DeleteCommand,\n GetCommand,\n PutCommand,\n QueryCommand,\n ScanCommand,\n UpdateCommand\n} from \"@webiny/aws-sdk/client-dynamodb/index.js\";\nimport type {\n EventBridgeClient,\n EventBridgeClientConfig,\n PutEventsCommandOutput\n} from \"@webiny/aws-sdk/client-eventbridge/index.js\";\nimport type { AllCommandType, DynamoDBTableType, ExtendedCommandType } from \"~/types.js\";\n\nexport interface IManifestData {\n region: string;\n eventBusName: string;\n eventBusArn: string;\n}\n\nexport interface IManifest {\n sync: IManifestData;\n}\n\nexport type IDynamoDbCommand =\n | PutCommand\n | QueryCommand\n | ScanCommand\n | DeleteCommand\n | BatchWriteCommand\n | BatchGetCommand\n | GetCommand\n | UpdateCommand;\n\nexport interface ICommandValueItem {\n PK: string;\n SK: string;\n command: ExtendedCommandType;\n tableName: string;\n tableType: DynamoDBTableType;\n}\n\nexport interface ICommandValueItemExtended extends ICommandValueItem {\n input: IDynamoDbCommand;\n}\n\nexport interface ICommandValue {\n readonly command: AllCommandType;\n getItems(): NonEmptyArray<ICommandValueItemExtended> | null;\n}\n\nexport interface ICommand<Result extends ICommandValue = ICommandValue> {\n name: string;\n can(input: IDynamoDbCommand): boolean;\n convert(input: IDynamoDbCommand): Result;\n}\n\nexport interface ITable {\n name: string;\n arn: string;\n type: DynamoDBTableType;\n}\n\nexport interface ISystem {\n name: string;\n env: string;\n variant?: string | undefined;\n region: string;\n version: string;\n}\n\nexport interface IHandler {\n readonly id: string;\n flush(): Promise<PutEventsCommandOutput | null>;\n add(input: IDynamoDbCommand): void;\n}\n\nexport interface ICommandConverter<Result extends ICommandValue = ICommandValue> {\n name: string;\n can(input: IDynamoDbCommand): boolean;\n convert(input: IDynamoDbCommand): Result;\n}\n\nexport interface IHandlerConverter {\n register(input: ICommandConverter | ICommandConverter[]): void;\n convert(input: IDynamoDbCommand): ICommandValue;\n}\n\nexport interface IGetEventBridgeCallableParams
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { NonEmptyArray } from \"@webiny/api/types.js\";\nimport type {\n BatchGetCommand,\n BatchWriteCommand,\n DeleteCommand,\n GetCommand,\n PutCommand,\n QueryCommand,\n ScanCommand,\n UpdateCommand\n} from \"@webiny/aws-sdk/client-dynamodb/index.js\";\nimport type {\n EventBridgeClient,\n EventBridgeClientConfig,\n PutEventsCommandOutput\n} from \"@webiny/aws-sdk/client-eventbridge/index.js\";\nimport type { AllCommandType, DynamoDBTableType, ExtendedCommandType } from \"~/types.js\";\n\nexport interface IManifestData {\n region: string;\n eventBusName: string;\n eventBusArn: string;\n}\n\nexport interface IManifest {\n sync: IManifestData;\n}\n\nexport type IDynamoDbCommand =\n | PutCommand\n | QueryCommand\n | ScanCommand\n | DeleteCommand\n | BatchWriteCommand\n | BatchGetCommand\n | GetCommand\n | UpdateCommand;\n\nexport interface ICommandValueItem {\n PK: string;\n SK: string;\n command: ExtendedCommandType;\n tableName: string;\n tableType: DynamoDBTableType;\n}\n\nexport interface ICommandValueItemExtended extends ICommandValueItem {\n input: IDynamoDbCommand;\n}\n\nexport interface ICommandValue {\n readonly command: AllCommandType;\n getItems(): NonEmptyArray<ICommandValueItemExtended> | null;\n}\n\nexport interface ICommand<Result extends ICommandValue = ICommandValue> {\n name: string;\n can(input: IDynamoDbCommand): boolean;\n convert(input: IDynamoDbCommand): Result;\n}\n\nexport interface ITable {\n name: string;\n arn: string;\n type: DynamoDBTableType;\n}\n\nexport interface ISystem {\n name: string;\n env: string;\n variant?: string | undefined;\n region: string;\n version: string;\n}\n\nexport interface IHandler {\n readonly id: string;\n flush(): Promise<PutEventsCommandOutput | null>;\n add(input: IDynamoDbCommand): void;\n}\n\nexport interface ICommandConverter<Result extends ICommandValue = ICommandValue> {\n name: string;\n can(input: IDynamoDbCommand): boolean;\n convert(input: IDynamoDbCommand): Result;\n}\n\nexport interface IHandlerConverter {\n register(input: ICommandConverter | ICommandConverter[]): void;\n convert(input: IDynamoDbCommand): ICommandValue;\n}\n\nexport interface IGetEventBridgeCallableParams extends Omit<\n Partial<EventBridgeClientConfig>,\n \"region\"\n> {\n region: string;\n}\n\nexport interface IGetEventBridgeCallable {\n (params: IGetEventBridgeCallableParams): Pick<EventBridgeClient, \"send\">;\n}\n"],"mappings":"","ignoreList":[]}
|