@webiny/api-sync-pg-to-opensearch 0.0.0-unstable.0d717d18dd

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Webiny
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @webiny/api-sync-pg-to-opensearch
2
+
3
+ > [!NOTE]
4
+ > This package is part of the [Webiny](https://www.webiny.com) monorepo.
5
+ > It’s **included in every Webiny project by default** and is not meant to be used as a standalone package.
6
+
7
+ 📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
8
+
9
+ ---
10
+
11
+ _This README file is automatically generated during the publish process._
@@ -0,0 +1,4 @@
1
+ import type { Client } from "@webiny/api-opensearch/client.js";
2
+ import type { PgWalChangeRecord } from "./types.js";
3
+ export type PgToOpenSearchHandler = (records: PgWalChangeRecord[]) => Promise<void>;
4
+ export declare const createPgToOpenSearchHandler: (client: Client) => PgToOpenSearchHandler;
@@ -0,0 +1,33 @@
1
+ import { Container } from "@webiny/feature/api";
2
+ import { TimerFeature } from "@webiny/utils/features/Timer/feature.js";
3
+ import { ProcessEnvFeature } from "@webiny/stdlib/node";
4
+ import { OperationsBuilder } from "@webiny/api-sync-to-opensearch/features/OperationsBuilder/abstraction.js";
5
+ import { ExecuteSyncWithRetry } from "@webiny/api-sync-to-opensearch/features/ExecuteSyncWithRetry/abstraction.js";
6
+ import { PgToOpenSearchFeature } from "./features/PgToOpenSearchFeature.js";
7
+ const MAX_RUNNING_TIME = 900;
8
+ const createPgToOpenSearchHandler = (client)=>{
9
+ const container = new Container();
10
+ ProcessEnvFeature.register(container);
11
+ TimerFeature.register(container, {
12
+ getRemainingSeconds: ()=>MAX_RUNNING_TIME,
13
+ getRemainingMilliseconds: ()=>1000 * MAX_RUNNING_TIME
14
+ });
15
+ PgToOpenSearchFeature.register(container, {
16
+ client
17
+ });
18
+ const builder = container.resolve(OperationsBuilder);
19
+ const executeSyncWithRetry = container.resolve(ExecuteSyncWithRetry);
20
+ return async (records)=>{
21
+ const operations = await builder.build({
22
+ records
23
+ });
24
+ if (0 === operations.total) return;
25
+ await executeSyncWithRetry.execute({
26
+ maxRunningTime: MAX_RUNNING_TIME,
27
+ operations
28
+ });
29
+ };
30
+ };
31
+ export { createPgToOpenSearchHandler };
32
+
33
+ //# sourceMappingURL=createPgToOpenSearchHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPgToOpenSearchHandler.js","sources":["../src/createPgToOpenSearchHandler.ts"],"sourcesContent":["import { Container } from \"@webiny/feature/api\";\nimport { TimerFeature } from \"@webiny/utils/features/Timer/feature.js\";\nimport { ProcessEnvFeature } from \"@webiny/stdlib/node\";\nimport { OperationsBuilder } from \"@webiny/api-sync-to-opensearch/features/OperationsBuilder/abstraction.js\";\nimport { ExecuteSyncWithRetry } from \"@webiny/api-sync-to-opensearch/features/ExecuteSyncWithRetry/abstraction.js\";\nimport { PgToOpenSearchFeature } from \"./features/PgToOpenSearchFeature.js\";\nimport type { Client } from \"@webiny/api-opensearch/client.js\";\nimport type { PgWalChangeRecord } from \"./types.js\";\n\nconst MAX_RUNNING_TIME = 900;\n\nexport type PgToOpenSearchHandler = (records: PgWalChangeRecord[]) => Promise<void>;\n\nexport const createPgToOpenSearchHandler = (client: Client): PgToOpenSearchHandler => {\n const container = new Container();\n\n ProcessEnvFeature.register(container);\n TimerFeature.register(container, {\n getRemainingSeconds: () => MAX_RUNNING_TIME,\n getRemainingMilliseconds: () => MAX_RUNNING_TIME * 1000\n });\n\n PgToOpenSearchFeature.register(container, { client });\n\n const builder = container.resolve(OperationsBuilder);\n const executeSyncWithRetry = container.resolve(ExecuteSyncWithRetry);\n\n return async (records: PgWalChangeRecord[]): Promise<void> => {\n const operations = await builder.build({ records });\n\n if (operations.total === 0) {\n return;\n }\n\n await executeSyncWithRetry.execute({\n maxRunningTime: MAX_RUNNING_TIME,\n operations\n });\n };\n};\n"],"names":["MAX_RUNNING_TIME","createPgToOpenSearchHandler","client","container","Container","ProcessEnvFeature","TimerFeature","PgToOpenSearchFeature","builder","OperationsBuilder","executeSyncWithRetry","ExecuteSyncWithRetry","records","operations"],"mappings":";;;;;;AASA,MAAMA,mBAAmB;AAIlB,MAAMC,8BAA8B,CAACC;IACxC,MAAMC,YAAY,IAAIC;IAEtBC,kBAAkB,QAAQ,CAACF;IAC3BG,aAAa,QAAQ,CAACH,WAAW;QAC7B,qBAAqB,IAAMH;QAC3B,0BAA0B,IAAMA,AAAmB,OAAnBA;IACpC;IAEAO,sBAAsB,QAAQ,CAACJ,WAAW;QAAED;IAAO;IAEnD,MAAMM,UAAUL,UAAU,OAAO,CAACM;IAClC,MAAMC,uBAAuBP,UAAU,OAAO,CAACQ;IAE/C,OAAO,OAAOC;QACV,MAAMC,aAAa,MAAML,QAAQ,KAAK,CAAC;YAAEI;QAAQ;QAEjD,IAAIC,AAAqB,MAArBA,WAAW,KAAK,EAChB;QAGJ,MAAMH,qBAAqB,OAAO,CAAC;YAC/B,gBAAgBV;YAChBa;QACJ;IACJ;AACJ"}
@@ -0,0 +1,17 @@
1
+ import { OperationsBuilder } from "@webiny/api-sync-to-opensearch/features/OperationsBuilder/abstraction.js";
2
+ import type { Operations } from "@webiny/api-sync-to-opensearch/features/Operations/abstractions/Operations.js";
3
+ import { OperationsFactory } from "@webiny/api-sync-to-opensearch/features/Operations/abstractions/OperationsFactory.js";
4
+ import { CompressionHandler } from "@webiny/utils/exports/api.js";
5
+ import type { PgWalChangeRecord } from "../../types.js";
6
+ declare class PgOperationsBuilderImpl implements OperationsBuilder.Interface<PgWalChangeRecord> {
7
+ private readonly compressor;
8
+ private readonly operationsFactory;
9
+ constructor(compressor: CompressionHandler.Interface, operationsFactory: OperationsFactory.Interface);
10
+ build(params: {
11
+ records: PgWalChangeRecord[];
12
+ }): Promise<Operations.Interface>;
13
+ }
14
+ export declare const PgOperationsBuilder: typeof PgOperationsBuilderImpl & {
15
+ __abstraction: import("@webiny/di").Abstraction<import("@webiny/api-sync-to-opensearch/features/OperationsBuilder/abstraction.js").IOperationsBuilder<unknown>>;
16
+ };
17
+ export {};
@@ -0,0 +1,49 @@
1
+ import { OperationsBuilder } from "@webiny/api-sync-to-opensearch/features/OperationsBuilder/abstraction.js";
2
+ import { OperationType } from "@webiny/api-sync-to-opensearch/features/Operations/Operations.js";
3
+ import { OperationsFactory } from "@webiny/api-sync-to-opensearch/features/Operations/abstractions/OperationsFactory.js";
4
+ import { CompressionHandler } from "@webiny/utils/exports/api.js";
5
+ class PgOperationsBuilderImpl {
6
+ constructor(compressor, operationsFactory){
7
+ this.compressor = compressor;
8
+ this.operationsFactory = operationsFactory;
9
+ }
10
+ async build(params) {
11
+ const operations = this.operationsFactory.create();
12
+ for (const record of params.records){
13
+ if (!record.id || !record.index) {
14
+ console.error("Missing id or index in sync record, skipping.");
15
+ continue;
16
+ }
17
+ if (record.operation === OperationType.INSERT || record.operation === OperationType.MODIFY) {
18
+ if (!record.data?.value) {
19
+ console.error(`Missing data for ${record.operation} operation, ID ${record.id}. Skipping.`);
20
+ continue;
21
+ }
22
+ const data = await this.compressor.decompress(record.data);
23
+ if (null == data) {
24
+ console.error(`Could not decompress data for operation "${record.operation}", ID ${record.id}. Skipping.`);
25
+ continue;
26
+ }
27
+ operations.insert({
28
+ id: record.id,
29
+ index: record.index,
30
+ data
31
+ });
32
+ } else if (record.operation === OperationType.REMOVE) operations.delete({
33
+ id: record.id,
34
+ index: record.index
35
+ });
36
+ }
37
+ return operations;
38
+ }
39
+ }
40
+ const PgOperationsBuilder = OperationsBuilder.createImplementation({
41
+ implementation: PgOperationsBuilderImpl,
42
+ dependencies: [
43
+ CompressionHandler,
44
+ OperationsFactory
45
+ ]
46
+ });
47
+ export { PgOperationsBuilder };
48
+
49
+ //# sourceMappingURL=PgOperationsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/PgOperationsBuilder/PgOperationsBuilder.js","sources":["../../../src/features/PgOperationsBuilder/PgOperationsBuilder.ts"],"sourcesContent":["import { OperationsBuilder } from \"@webiny/api-sync-to-opensearch/features/OperationsBuilder/abstraction.js\";\nimport { OperationType } from \"@webiny/api-sync-to-opensearch/features/Operations/Operations.js\";\nimport type { Operations } from \"@webiny/api-sync-to-opensearch/features/Operations/abstractions/Operations.js\";\nimport { OperationsFactory } from \"@webiny/api-sync-to-opensearch/features/Operations/abstractions/OperationsFactory.js\";\nimport { CompressionHandler } from \"@webiny/utils/exports/api.js\";\nimport type { PgWalChangeRecord } from \"~/types.js\";\n\nclass PgOperationsBuilderImpl implements OperationsBuilder.Interface<PgWalChangeRecord> {\n public constructor(\n private readonly compressor: CompressionHandler.Interface,\n private readonly operationsFactory: OperationsFactory.Interface\n ) {}\n\n public async build(params: { records: PgWalChangeRecord[] }): Promise<Operations.Interface> {\n const operations = this.operationsFactory.create();\n for (const record of params.records) {\n if (!record.id || !record.index) {\n console.error(`Missing id or index in sync record, skipping.`);\n continue;\n }\n\n if (\n record.operation === OperationType.INSERT ||\n record.operation === OperationType.MODIFY\n ) {\n if (!record.data?.value) {\n console.error(\n `Missing data for ${record.operation} operation, ID ${record.id}. Skipping.`\n );\n continue;\n }\n const data = await this.compressor.decompress(record.data);\n if (data === undefined || data === null) {\n console.error(\n `Could not decompress data for operation \"${record.operation}\", ID ${record.id}. Skipping.`\n );\n continue;\n }\n\n operations.insert({\n id: record.id,\n index: record.index,\n data\n });\n } else if (record.operation === OperationType.REMOVE) {\n operations.delete({\n id: record.id,\n index: record.index\n });\n }\n }\n return operations;\n }\n}\n\nexport const PgOperationsBuilder = OperationsBuilder.createImplementation({\n implementation: PgOperationsBuilderImpl,\n dependencies: [CompressionHandler, OperationsFactory]\n});\n"],"names":["PgOperationsBuilderImpl","compressor","operationsFactory","params","operations","record","console","OperationType","data","PgOperationsBuilder","OperationsBuilder","CompressionHandler","OperationsFactory"],"mappings":";;;;AAOA,MAAMA;IACF,YACqBC,UAAwC,EACxCC,iBAA8C,CACjE;aAFmBD,UAAU,GAAVA;aACAC,iBAAiB,GAAjBA;IAClB;IAEH,MAAa,MAAMC,MAAwC,EAAiC;QACxF,MAAMC,aAAa,IAAI,CAAC,iBAAiB,CAAC,MAAM;QAChD,KAAK,MAAMC,UAAUF,OAAO,OAAO,CAAE;YACjC,IAAI,CAACE,OAAO,EAAE,IAAI,CAACA,OAAO,KAAK,EAAE;gBAC7BC,QAAQ,KAAK,CAAC;gBACd;YACJ;YAEA,IACID,OAAO,SAAS,KAAKE,cAAc,MAAM,IACzCF,OAAO,SAAS,KAAKE,cAAc,MAAM,EAC3C;gBACE,IAAI,CAACF,OAAO,IAAI,EAAE,OAAO;oBACrBC,QAAQ,KAAK,CACT,CAAC,iBAAiB,EAAED,OAAO,SAAS,CAAC,eAAe,EAAEA,OAAO,EAAE,CAAC,WAAW,CAAC;oBAEhF;gBACJ;gBACA,MAAMG,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAACH,OAAO,IAAI;gBACzD,IAAIG,QAAAA,MAAqC;oBACrCF,QAAQ,KAAK,CACT,CAAC,yCAAyC,EAAED,OAAO,SAAS,CAAC,MAAM,EAAEA,OAAO,EAAE,CAAC,WAAW,CAAC;oBAE/F;gBACJ;gBAEAD,WAAW,MAAM,CAAC;oBACd,IAAIC,OAAO,EAAE;oBACb,OAAOA,OAAO,KAAK;oBACnBG;gBACJ;YACJ,OAAO,IAAIH,OAAO,SAAS,KAAKE,cAAc,MAAM,EAChDH,WAAW,MAAM,CAAC;gBACd,IAAIC,OAAO,EAAE;gBACb,OAAOA,OAAO,KAAK;YACvB;QAER;QACA,OAAOD;IACX;AACJ;AAEO,MAAMK,sBAAsBC,kBAAkB,oBAAoB,CAAC;IACtE,gBAAgBV;IAChB,cAAc;QAACW;QAAoBC;KAAkB;AACzD"}
@@ -0,0 +1,4 @@
1
+ export declare const PgOperationsBuilderFeature: {
2
+ name: string;
3
+ register(container: import("@webiny/di").Container): void;
4
+ };
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/api";
2
+ import { PgOperationsBuilder } from "./PgOperationsBuilder.js";
3
+ const PgOperationsBuilderFeature = createFeature({
4
+ name: "sync.pg.operationsBuilder",
5
+ register (container) {
6
+ container.register(PgOperationsBuilder);
7
+ }
8
+ });
9
+ export { PgOperationsBuilderFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/PgOperationsBuilder/feature.js","sources":["../../../src/features/PgOperationsBuilder/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { PgOperationsBuilder } from \"./PgOperationsBuilder.js\";\n\nexport const PgOperationsBuilderFeature = createFeature({\n name: \"sync.pg.operationsBuilder\",\n register(container) {\n container.register(PgOperationsBuilder);\n }\n});\n"],"names":["PgOperationsBuilderFeature","createFeature","container","PgOperationsBuilder"],"mappings":";;AAGO,MAAMA,6BAA6BC,cAAc;IACpD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;IACvB;AACJ"}
@@ -0,0 +1,8 @@
1
+ import type { Client } from "@webiny/api-opensearch/client.js";
2
+ export interface PgToOpenSearchFeatureConfig {
3
+ client: Client;
4
+ }
5
+ export declare const PgToOpenSearchFeature: {
6
+ name: string;
7
+ register(container: import("@webiny/di").Container, context: PgToOpenSearchFeatureConfig): void;
8
+ };
@@ -0,0 +1,23 @@
1
+ import { createFeature } from "@webiny/feature/api";
2
+ import { OperationsFactoryFeature } from "@webiny/api-sync-to-opensearch/features/Operations/feature.js";
3
+ import { ExecuteSyncFeature } from "@webiny/api-sync-to-opensearch/features/ExecuteSync/feature.js";
4
+ import { ExecuteSyncWithRetryFeature } from "@webiny/api-sync-to-opensearch/features/ExecuteSyncWithRetry/feature.js";
5
+ import { SynchronizationBuilderFeature } from "@webiny/api-sync-to-opensearch/features/SynchronizationBuilder/feature.js";
6
+ import { PgOperationsBuilderFeature } from "./PgOperationsBuilder/feature.js";
7
+ import { OpenSearchClientFeature } from "@webiny/api-opensearch/features/OpenSearchClient/feature.js";
8
+ import { CompressionFeature } from "@webiny/utils/features/compression/feature.js";
9
+ const PgToOpenSearchFeature = createFeature({
10
+ name: "sync.pg-to-opensearch",
11
+ register (container, config) {
12
+ OpenSearchClientFeature.register(container, config.client);
13
+ CompressionFeature.register(container);
14
+ OperationsFactoryFeature.register(container);
15
+ ExecuteSyncFeature.register(container);
16
+ ExecuteSyncWithRetryFeature.register(container);
17
+ SynchronizationBuilderFeature.register(container);
18
+ PgOperationsBuilderFeature.register(container);
19
+ }
20
+ });
21
+ export { PgToOpenSearchFeature };
22
+
23
+ //# sourceMappingURL=PgToOpenSearchFeature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/PgToOpenSearchFeature.js","sources":["../../src/features/PgToOpenSearchFeature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport type { Client } from \"@webiny/api-opensearch/client.js\";\nimport { OperationsFactoryFeature } from \"@webiny/api-sync-to-opensearch/features/Operations/feature.js\";\nimport { ExecuteSyncFeature } from \"@webiny/api-sync-to-opensearch/features/ExecuteSync/feature.js\";\nimport { ExecuteSyncWithRetryFeature } from \"@webiny/api-sync-to-opensearch/features/ExecuteSyncWithRetry/feature.js\";\nimport { SynchronizationBuilderFeature } from \"@webiny/api-sync-to-opensearch/features/SynchronizationBuilder/feature.js\";\nimport { PgOperationsBuilderFeature } from \"./PgOperationsBuilder/feature.js\";\nimport { OpenSearchClientFeature } from \"@webiny/api-opensearch/features/OpenSearchClient/feature.js\";\nimport { CompressionFeature } from \"@webiny/utils/features/compression/feature.js\";\n\nexport interface PgToOpenSearchFeatureConfig {\n client: Client;\n}\n\nexport const PgToOpenSearchFeature = createFeature<PgToOpenSearchFeatureConfig>({\n name: \"sync.pg-to-opensearch\",\n register(container, config) {\n OpenSearchClientFeature.register(container, config.client);\n CompressionFeature.register(container);\n\n OperationsFactoryFeature.register(container);\n ExecuteSyncFeature.register(container);\n ExecuteSyncWithRetryFeature.register(container);\n SynchronizationBuilderFeature.register(container);\n\n PgOperationsBuilderFeature.register(container);\n }\n});\n"],"names":["PgToOpenSearchFeature","createFeature","container","config","OpenSearchClientFeature","CompressionFeature","OperationsFactoryFeature","ExecuteSyncFeature","ExecuteSyncWithRetryFeature","SynchronizationBuilderFeature","PgOperationsBuilderFeature"],"mappings":";;;;;;;;AAcO,MAAMA,wBAAwBC,cAA2C;IAC5E,MAAM;IACN,UAASC,SAAS,EAAEC,MAAM;QACtBC,wBAAwB,QAAQ,CAACF,WAAWC,OAAO,MAAM;QACzDE,mBAAmB,QAAQ,CAACH;QAE5BI,yBAAyB,QAAQ,CAACJ;QAClCK,mBAAmB,QAAQ,CAACL;QAC5BM,4BAA4B,QAAQ,CAACN;QACrCO,8BAA8B,QAAQ,CAACP;QAEvCQ,2BAA2B,QAAQ,CAACR;IACxC;AACJ"}
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export type { PgWalChangeRecord, PgWalChangeRecordData } from "./types.js";
2
+ export { createPgToOpenSearchHandler, type PgToOpenSearchHandler } from "./createPgToOpenSearchHandler.js";
3
+ export { PgToOpenSearchFeature, type PgToOpenSearchFeatureConfig } from "./features/PgToOpenSearchFeature.js";
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { createPgToOpenSearchHandler } from "./createPgToOpenSearchHandler.js";
2
+ export { PgToOpenSearchFeature } from "./features/PgToOpenSearchFeature.js";
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@webiny/api-sync-pg-to-opensearch",
3
+ "version": "0.0.0-unstable.0d717d18dd",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": "./index.js",
7
+ "./*": "./*"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/webiny/webiny-js.git",
12
+ "directory": "packages/api-sync-pg-to-opensearch"
13
+ },
14
+ "description": "PostgreSQL to OpenSearch synchronization adapter via WAL.",
15
+ "license": "MIT",
16
+ "author": "Webiny Ltd.",
17
+ "dependencies": {
18
+ "@webiny/api-opensearch": "0.0.0-unstable.0d717d18dd",
19
+ "@webiny/api-sync-to-opensearch": "0.0.0-unstable.0d717d18dd",
20
+ "@webiny/feature": "0.0.0-unstable.0d717d18dd",
21
+ "@webiny/stdlib": "0.0.15",
22
+ "@webiny/utils": "0.0.0-unstable.0d717d18dd"
23
+ },
24
+ "devDependencies": {
25
+ "@webiny/build-tools": "0.0.0-unstable.0d717d18dd",
26
+ "typescript": "7.0.2"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "adio": {
32
+ "ignoreDirs": [
33
+ "__tests__"
34
+ ]
35
+ },
36
+ "webiny": {
37
+ "publishFrom": "dist"
38
+ }
39
+ }
package/types.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ export interface PgWalChangeRecordData {
2
+ compression: string;
3
+ value: string;
4
+ }
5
+ export interface PgWalChangeRecord {
6
+ id: string;
7
+ entryId: string;
8
+ index: string;
9
+ operation: string;
10
+ data: PgWalChangeRecordData;
11
+ tenant: string;
12
+ }
package/types.js ADDED
File without changes