File tree Expand file tree Collapse file tree
api-event-handler-aws-ddb-os/src
api-event-handler-aws-ddb/src
api-event-handler-aws/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ import { OpenSearchQueryBuilderOperatorFeature } from "@webiny/api-opensearch/fe
2424import { OpenSearchFieldFeature } from "@webiny/api-opensearch/features/OpenSearchField/feature.js" ;
2525import { OpenSearchIndexFeature } from "@webiny/api-opensearch/features/OpenSearchIndex/feature.js" ;
2626
27- export type CreateAwsDdbOsApiHandlerConfig = Pick <
28- BaseConfig ,
29- "extensions" | "documentClient" | "dbTable"
30- > & {
27+ export type CreateAwsDdbOsApiHandlerConfig = Pick < BaseConfig , "extensions" | "documentClient" > & {
3128 /**
3229 * OpenSearch client. Defaults to one built from `OPENSEARCH_*` env vars. Injectable so
3330 * integration tests can point the handler at a local OpenSearch.
@@ -59,7 +56,6 @@ export function createAwsDdbOsApiHandler(config: CreateAwsDdbOsApiHandlerConfig)
5956 return createBaseHandler ( {
6057 extensions : config . extensions ,
6158 documentClient : config . documentClient ,
62- dbTable : config . dbTable ,
6359 registerRootStorage : ( container , { documentClient } ) => {
6460 // ── OpenSearch core (client + query-builder operators + fields + index registries) ──
6561 // The DDB+ES CMS storage factory resolves all of these.
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ import { AuditLogsDdbFeature } from "@webiny/api-audit-logs-ddb";
1414import { AcoDdbFeature } from "@webiny/api-aco-ddb" ;
1515import { WebsocketsDdbFeature } from "@webiny/api-websockets-ddb" ;
1616
17- export type CreateAwsDdbApiHandlerConfig = Pick <
18- BaseConfig ,
19- "extensions" | "documentClient" | "dbTable"
20- > ;
17+ export type CreateAwsDdbApiHandlerConfig = Pick < BaseConfig , "extensions" | "documentClient" > ;
2118
2219export function createAwsDdbApiHandler ( config : CreateAwsDdbApiHandlerConfig ) {
2320 return createBaseHandler ( {
Original file line number Diff line number Diff line change @@ -47,10 +47,6 @@ export interface CreateWebinyApiHandlerConfig {
4747 * Injectable so integration tests can point the handler at a local (dynalite) DynamoDB.
4848 */
4949 documentClient ?: ReturnType < typeof getDocumentClient > ;
50- /**
51- * DynamoDB table name. Defaults to `process.env.DB_TABLE`. Injectable for tests.
52- */
53- dbTable ?: string ;
5450 /**
5551 * Register the storage-variant features in the ROOT container: the CMS storage operations, the
5652 * DDB storage registries, and (for the OpenSearch variant) the OpenSearch core. Supplied by the
Original file line number Diff line number Diff line change 1919 "@webiny/api" : " 0.0.0" ,
2020 "@webiny/api-websockets" : " 0.0.0" ,
2121 "@webiny/feature" : " 0.0.0" ,
22- "@webiny/handler" : " 0.0.0" ,
2322 "@webiny/plugins" : " 0.0.0" ,
2423 "@webiny/utils" : " 0.0.0" ,
2524 "ws" : " ^8.21.0" ,
Original file line number Diff line number Diff line change 1- import { createRegisterExtensionPlugin } from "@webiny/handler" ;
2- import { ServerWebsocketsTransport } from "~/transport/ServerWebsocketsTransport.js" ;
3- import { NodeWsAdapter } from "~/adapter/NodeWsAdapter.js" ;
4- import { DefaultUpgradeHandler } from "~/upgradeHandler/DefaultUpgradeHandler.js" ;
5- import { ServerConnectionManager } from "~/connectionManager/ServerConnectionManager.js" ;
6-
71export { createWebsocketsServer , attachWebsocketsServer } from "~/server/WebsocketsServer.js" ;
82export type { IWebsocketsServer } from "~/server/types.js" ;
93export * from "~/adapter/abstractions.js" ;
@@ -15,14 +9,3 @@ export * from "~/connectionManager/abstractions.js";
159export { ServerConnectionManager } from "~/connectionManager/ServerConnectionManager.js" ;
1610export { NodeWsAdapter } from "~/adapter/NodeWsAdapter.js" ;
1711export { ServerWebsocketsTransport } from "~/transport/ServerWebsocketsTransport.js" ;
18-
19- export const createServerWebsockets = ( ) => {
20- const plugin = createRegisterExtensionPlugin ( context => {
21- context . container . register ( ServerWebsocketsTransport ) . inSingletonScope ( ) ;
22- context . container . register ( NodeWsAdapter ) . inSingletonScope ( ) ;
23- context . container . register ( DefaultUpgradeHandler ) . inSingletonScope ( ) ;
24- context . container . register ( ServerConnectionManager ) . inSingletonScope ( ) ;
25- } ) ;
26- plugin . name = "websockets.server.transport" ;
27- return [ plugin ] ;
28- } ;
Original file line number Diff line number Diff line change 55 { "path" : " ../api/tsconfig.build.json" },
66 { "path" : " ../api-websockets/tsconfig.build.json" },
77 { "path" : " ../feature/tsconfig.build.json" },
8- { "path" : " ../handler/tsconfig.build.json" },
98 { "path" : " ../plugins/tsconfig.build.json" },
109 { "path" : " ../utils/tsconfig.build.json" }
1110 ],
2221 "@webiny/api-websockets" : [" ../api-websockets/src" ],
2322 "@webiny/feature/*" : [" ../feature/src/*" ],
2423 "@webiny/feature" : [" ../feature/src" ],
25- "@webiny/handler/*" : [" ../handler/src/*" ],
26- "@webiny/handler" : [" ../handler/src" ],
2724 "@webiny/plugins/*" : [" ../plugins/src/*" ],
2825 "@webiny/plugins" : [" ../plugins/src" ],
2926 "@webiny/utils/*" : [" ../utils/src/*" ],
Original file line number Diff line number Diff line change 55 { "path" : " ../api" },
66 { "path" : " ../api-websockets" },
77 { "path" : " ../feature" },
8- { "path" : " ../handler" },
98 { "path" : " ../plugins" },
109 { "path" : " ../utils" }
1110 ],
2221 "@webiny/api-websockets" : [" ../api-websockets/src" ],
2322 "@webiny/feature/*" : [" ../feature/src/*" ],
2423 "@webiny/feature" : [" ../feature/src" ],
25- "@webiny/handler/*" : [" ../handler/src/*" ],
26- "@webiny/handler" : [" ../handler/src" ],
2724 "@webiny/plugins/*" : [" ../plugins/src/*" ],
2825 "@webiny/plugins" : [" ../plugins/src" ],
2926 "@webiny/utils/*" : [" ../utils/src/*" ],
Original file line number Diff line number Diff line change @@ -11629,7 +11629,6 @@ __metadata:
1162911629 "@webiny/api-websockets": "npm:0.0.0"
1163011630 "@webiny/build-tools": "npm:0.0.0"
1163111631 "@webiny/feature": "npm:0.0.0"
11632- "@webiny/handler": "npm:0.0.0"
1163311632 "@webiny/plugins": "npm:0.0.0"
1163411633 "@webiny/project-utils": "npm:0.0.0"
1163511634 "@webiny/utils": "npm:0.0.0"
You can’t perform that action at this time.
0 commit comments