s3db.js 7.2.0 → 7.3.1

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/dist/s3db.d.ts CHANGED
@@ -418,23 +418,22 @@ declare module 's3db.js' {
418
418
  export interface BigQueryReplicatorConfig {
419
419
  projectId: string;
420
420
  datasetId: string;
421
- keyFilename?: string;
422
421
  credentials?: Record<string, any>;
423
- tableMapping?: Record<string, string>;
424
- logOperations?: boolean;
422
+ location?: string;
423
+ logTable?: string;
425
424
  batchSize?: number;
426
425
  maxRetries?: number;
427
- retryDelay?: number;
428
- writeDisposition?: 'WRITE_TRUNCATE' | 'WRITE_APPEND' | 'WRITE_EMPTY';
429
- createDisposition?: 'CREATE_IF_NEEDED' | 'CREATE_NEVER';
430
- schema?: Record<string, any>[];
431
- location?: string;
432
- clustering?: string[];
433
- partitioning?: {
434
- type: 'DAY' | 'HOUR' | 'MONTH' | 'YEAR';
435
- field?: string;
436
- };
437
- labels?: Record<string, string>;
426
+ writeDisposition?: string;
427
+ createDisposition?: string;
428
+ tableMapping?: Record<string, string>;
429
+ logOperations?: boolean;
430
+ }
431
+
432
+ /** BigQuery Resource Configuration */
433
+ export interface BigQueryResourceConfig {
434
+ table: string;
435
+ actions?: ('insert' | 'update' | 'delete')[];
436
+ transform?: (data: any) => any;
438
437
  }
439
438
 
440
439
  /** Postgres Replicator config */
@@ -1041,7 +1040,7 @@ declare module 's3db.js' {
1041
1040
 
1042
1041
  /** BigQuery Replicator class */
1043
1042
  export class BigqueryReplicator extends BaseReplicator {
1044
- constructor(config: BigQueryReplicatorConfig);
1043
+ constructor(config: BigQueryReplicatorConfig, resources: Record<string, string | BigQueryResourceConfig | BigQueryResourceConfig[]>);
1045
1044
  }
1046
1045
 
1047
1046
  /** Postgres Replicator class */