@walkeros/server-destination-gcp 0.3.0 → 0.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/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DestinationServer } from '@walkeros/server-core';
2
+ import * as _walkeros_core from '@walkeros/core';
2
3
  import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
3
4
  import { BigQuery, BigQueryOptions } from '@google-cloud/bigquery';
4
- import * as zod_to_json_schema from 'zod-to-json-schema';
5
5
 
6
6
  interface Settings$1 {
7
7
  client: BigQuery;
@@ -51,45 +51,21 @@ declare const SettingsSchema: z.ZodObject<{
51
51
  tableId: z.ZodDefault<z.ZodString>;
52
52
  location: z.ZodDefault<z.ZodString>;
53
53
  bigquery: z.ZodOptional<z.ZodAny>;
54
- }, "strip", z.ZodTypeAny, {
55
- projectId: string;
56
- datasetId: string;
57
- tableId: string;
58
- location: string;
59
- client?: any;
60
- bigquery?: any;
61
- }, {
62
- projectId: string;
63
- client?: any;
64
- datasetId?: string | undefined;
65
- tableId?: string | undefined;
66
- location?: string | undefined;
67
- bigquery?: any;
68
- }>;
54
+ }, z.core.$strip>;
69
55
  type Settings = z.infer<typeof SettingsSchema>;
70
56
 
71
57
  /**
72
58
  * GCP BigQuery Mapping Schema
73
59
  * BigQuery has no event-level mapping configuration
74
60
  */
75
- declare const MappingSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
61
+ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
76
62
  /**
77
63
  * Type inference from MappingSchema
78
64
  */
79
65
  type Mapping = z.infer<typeof MappingSchema>;
80
66
 
81
- declare const settings: zod_to_json_schema.JsonSchema7Type & {
82
- $schema?: string | undefined;
83
- definitions?: {
84
- [key: string]: zod_to_json_schema.JsonSchema7Type;
85
- } | undefined;
86
- };
87
- declare const mapping: zod_to_json_schema.JsonSchema7Type & {
88
- $schema?: string | undefined;
89
- definitions?: {
90
- [key: string]: zod_to_json_schema.JsonSchema7Type;
91
- } | undefined;
92
- };
67
+ declare const settings: _walkeros_core.JSONSchema;
68
+ declare const mapping: _walkeros_core.JSONSchema;
93
69
 
94
70
  type index_Mapping = Mapping;
95
71
  declare const index_MappingSchema: typeof MappingSchema;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DestinationServer } from '@walkeros/server-core';
2
+ import * as _walkeros_core from '@walkeros/core';
2
3
  import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
3
4
  import { BigQuery, BigQueryOptions } from '@google-cloud/bigquery';
4
- import * as zod_to_json_schema from 'zod-to-json-schema';
5
5
 
6
6
  interface Settings$1 {
7
7
  client: BigQuery;
@@ -51,45 +51,21 @@ declare const SettingsSchema: z.ZodObject<{
51
51
  tableId: z.ZodDefault<z.ZodString>;
52
52
  location: z.ZodDefault<z.ZodString>;
53
53
  bigquery: z.ZodOptional<z.ZodAny>;
54
- }, "strip", z.ZodTypeAny, {
55
- projectId: string;
56
- datasetId: string;
57
- tableId: string;
58
- location: string;
59
- client?: any;
60
- bigquery?: any;
61
- }, {
62
- projectId: string;
63
- client?: any;
64
- datasetId?: string | undefined;
65
- tableId?: string | undefined;
66
- location?: string | undefined;
67
- bigquery?: any;
68
- }>;
54
+ }, z.core.$strip>;
69
55
  type Settings = z.infer<typeof SettingsSchema>;
70
56
 
71
57
  /**
72
58
  * GCP BigQuery Mapping Schema
73
59
  * BigQuery has no event-level mapping configuration
74
60
  */
75
- declare const MappingSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
61
+ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
76
62
  /**
77
63
  * Type inference from MappingSchema
78
64
  */
79
65
  type Mapping = z.infer<typeof MappingSchema>;
80
66
 
81
- declare const settings: zod_to_json_schema.JsonSchema7Type & {
82
- $schema?: string | undefined;
83
- definitions?: {
84
- [key: string]: zod_to_json_schema.JsonSchema7Type;
85
- } | undefined;
86
- };
87
- declare const mapping: zod_to_json_schema.JsonSchema7Type & {
88
- $schema?: string | undefined;
89
- definitions?: {
90
- [key: string]: zod_to_json_schema.JsonSchema7Type;
91
- } | undefined;
92
- };
67
+ declare const settings: _walkeros_core.JSONSchema;
68
+ declare const mapping: _walkeros_core.JSONSchema;
93
69
 
94
70
  type index_Mapping = Mapping;
95
71
  declare const index_MappingSchema: typeof MappingSchema;