@delta-base/core 1.2.1 → 1.2.2

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.ts CHANGED
@@ -307,11 +307,11 @@ declare namespace EventStoreAPI {
307
307
  metadata?: Record<string, unknown> | undefined;
308
308
  }>, "many">;
309
309
  options: z.ZodOptional<z.ZodObject<{
310
- expectedStreamVersion: z.ZodOptional<z.ZodNumber>;
310
+ expectedStreamVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
311
311
  }, "strip", z.ZodTypeAny, {
312
- expectedStreamVersion?: number | undefined;
312
+ expectedStreamVersion?: string | number | undefined;
313
313
  }, {
314
- expectedStreamVersion?: number | undefined;
314
+ expectedStreamVersion?: string | number | undefined;
315
315
  }>>;
316
316
  }, "strip", z.ZodTypeAny, {
317
317
  events: {
@@ -320,7 +320,7 @@ declare namespace EventStoreAPI {
320
320
  metadata?: Record<string, unknown> | undefined;
321
321
  }[];
322
322
  options?: {
323
- expectedStreamVersion?: number | undefined;
323
+ expectedStreamVersion?: string | number | undefined;
324
324
  } | undefined;
325
325
  }, {
326
326
  events: {
@@ -329,7 +329,7 @@ declare namespace EventStoreAPI {
329
329
  metadata?: Record<string, unknown> | undefined;
330
330
  }[];
331
331
  options?: {
332
- expectedStreamVersion?: number | undefined;
332
+ expectedStreamVersion?: string | number | undefined;
333
333
  } | undefined;
334
334
  }>;
335
335
  export const AppendEventsResponseSchema: z.ZodObject<{
@@ -1643,7 +1643,7 @@ type ReadEvent<EventType extends Event = Event, EventMetaDataType extends EventM
1643
1643
  };
1644
1644
  type ExpectedStreamVersion<VersionType = DefaultStreamVersionType> = ExpectedStreamVersionWithValue<VersionType> | ExpectedStreamVersionGeneral;
1645
1645
  type ExpectedStreamVersionWithValue<VersionType = DefaultStreamVersionType> = Flavour<VersionType, 'StreamVersion'>;
1646
- type ExpectedStreamVersionGeneral = Flavour<'STREAM_EXISTS' | 'STREAM_DOES_NOT_EXIST' | 'NO_CONCURRENCY_CHECK', 'StreamVersion'>;
1646
+ type ExpectedStreamVersionGeneral = Flavour<'stream_exists' | 'no_stream' | 'any', 'StreamVersion'>;
1647
1647
  type DefaultStreamVersionType = number;
1648
1648
  type ReadStreamOptions<StreamVersion = DefaultStreamVersionType> = ({
1649
1649
  from: StreamVersion;