@stackone/core 2.69.0 → 2.70.0

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.cts CHANGED
@@ -936,6 +936,43 @@ declare function getIteratorLocation(config: BasePaginationConfig): IteratorLoca
936
936
  //#region src/exhaustivePagination/index.d.ts
937
937
  type PaginationConfig = CursorPaginationConfig | OffsetPaginationConfig | PagePaginationConfig;
938
938
  //#endregion
939
+ //#region src/incrementalSync/baseIncrementalConfig.d.ts
940
+ interface BaseIncrementalConfig {
941
+ type: string;
942
+ iterator: {
943
+ key: string;
944
+ in: IteratorLocation;
945
+ };
946
+ }
947
+ //#endregion
948
+ //#region src/incrementalSync/deltaTokenConfig.d.ts
949
+ interface DeltaTokenIncrementalConfig extends BaseIncrementalConfig {
950
+ type: 'delta_token';
951
+ response: {
952
+ path: string;
953
+ onlyOnFinalPage?: boolean;
954
+ };
955
+ }
956
+ //#endregion
957
+ //#region src/incrementalSync/timeFilterConfig.d.ts
958
+ interface TimeFilterIncrementalConfig extends BaseIncrementalConfig {
959
+ type: 'time_filter';
960
+ format: 'iso8601' | 'unix_seconds' | 'unix_millis';
961
+ safetyBufferSeconds?: number;
962
+ }
963
+ //#endregion
964
+ //#region src/incrementalSync/checkpoint.d.ts
965
+ type Checkpoint = {
966
+ kind: 'timestamp';
967
+ value: string;
968
+ } | {
969
+ kind: 'cursor';
970
+ value: string;
971
+ };
972
+ //#endregion
973
+ //#region src/incrementalSync/index.d.ts
974
+ type IncrementalConfig = TimeFilterIncrementalConfig | DeltaTokenIncrementalConfig;
975
+ //#endregion
939
976
  //#region src/schema/types.d.ts
940
977
  type Schema = {
941
978
  name: string;
@@ -2136,6 +2173,7 @@ type DataSyncConfig = {
2136
2173
  indexField: string | string[];
2137
2174
  dataKey?: string;
2138
2175
  pagination?: PaginationConfig;
2176
+ incremental?: IncrementalConfig;
2139
2177
  maxPages?: number;
2140
2178
  maxDurationMinutes?: number;
2141
2179
  };
@@ -2670,4 +2708,4 @@ type Account = {
2670
2708
  originOwnerName?: string;
2671
2709
  };
2672
2710
  //#endregion
2673
- export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type AuthenticationNotice, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DocumentationReference, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, type FieldConfig, type FlowType, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputFormat, type InputLocation, type InputRules, type IntermediateStepSnapshot, type IteratorLocation, type MatchedEventAction, type OffsetPaginationConfig, type PagePaginationConfig, type PaginationConfig, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type TestActionConfig, TransportType, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripPaginationParams, updateCursor };
2711
+ export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type AuthenticationNotice, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BaseIncrementalConfig, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type Checkpoint, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DeltaTokenIncrementalConfig, type DocumentationReference, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, type FieldConfig, type FlowType, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type IncrementalConfig, type Input, type InputFormat, type InputLocation, type InputRules, type IntermediateStepSnapshot, type IteratorLocation, type MatchedEventAction, type OffsetPaginationConfig, type PagePaginationConfig, type PaginationConfig, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type TestActionConfig, type TimeFilterIncrementalConfig, TransportType, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripPaginationParams, updateCursor };
package/dist/index.d.mts CHANGED
@@ -935,6 +935,43 @@ declare function getIteratorLocation(config: BasePaginationConfig): IteratorLoca
935
935
  //#region src/exhaustivePagination/index.d.ts
936
936
  type PaginationConfig = CursorPaginationConfig | OffsetPaginationConfig | PagePaginationConfig;
937
937
  //#endregion
938
+ //#region src/incrementalSync/baseIncrementalConfig.d.ts
939
+ interface BaseIncrementalConfig {
940
+ type: string;
941
+ iterator: {
942
+ key: string;
943
+ in: IteratorLocation;
944
+ };
945
+ }
946
+ //#endregion
947
+ //#region src/incrementalSync/deltaTokenConfig.d.ts
948
+ interface DeltaTokenIncrementalConfig extends BaseIncrementalConfig {
949
+ type: 'delta_token';
950
+ response: {
951
+ path: string;
952
+ onlyOnFinalPage?: boolean;
953
+ };
954
+ }
955
+ //#endregion
956
+ //#region src/incrementalSync/timeFilterConfig.d.ts
957
+ interface TimeFilterIncrementalConfig extends BaseIncrementalConfig {
958
+ type: 'time_filter';
959
+ format: 'iso8601' | 'unix_seconds' | 'unix_millis';
960
+ safetyBufferSeconds?: number;
961
+ }
962
+ //#endregion
963
+ //#region src/incrementalSync/checkpoint.d.ts
964
+ type Checkpoint = {
965
+ kind: 'timestamp';
966
+ value: string;
967
+ } | {
968
+ kind: 'cursor';
969
+ value: string;
970
+ };
971
+ //#endregion
972
+ //#region src/incrementalSync/index.d.ts
973
+ type IncrementalConfig = TimeFilterIncrementalConfig | DeltaTokenIncrementalConfig;
974
+ //#endregion
938
975
  //#region src/schema/types.d.ts
939
976
  type Schema = {
940
977
  name: string;
@@ -2135,6 +2172,7 @@ type DataSyncConfig = {
2135
2172
  indexField: string | string[];
2136
2173
  dataKey?: string;
2137
2174
  pagination?: PaginationConfig;
2175
+ incremental?: IncrementalConfig;
2138
2176
  maxPages?: number;
2139
2177
  maxDurationMinutes?: number;
2140
2178
  };
@@ -2669,4 +2707,4 @@ type Account = {
2669
2707
  originOwnerName?: string;
2670
2708
  };
2671
2709
  //#endregion
2672
- export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type AuthenticationNotice, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DocumentationReference, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, type FieldConfig, type FlowType, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputFormat, type InputLocation, type InputRules, type IntermediateStepSnapshot, type IteratorLocation, type MatchedEventAction, type OffsetPaginationConfig, type PagePaginationConfig, type PaginationConfig, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type TestActionConfig, TransportType, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripPaginationParams, updateCursor };
2710
+ export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type ActionValidationRule, type Assets, AuthType, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type AuthenticationNotice, BROWSER_USE_INPUT_PARAMS, BROWSER_USE_OUTPUT, type BaseIncrementalConfig, type BasePaginationConfig, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type Checkpoint, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorDocumentation, type ConnectorEvents, CoreError, type Cursor, type CursorPaginationConfig, type DataSyncConfig, type DefenderMetadata, type DefenderSettings, type DeltaTokenIncrementalConfig, type DocumentationReference, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type ExecutionMode, ExecutionModes, type ExpressionContextOptions, type FieldConfig, type FlowType, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type IncrementalConfig, type Input, type InputFormat, type InputLocation, type InputRules, type IntermediateStepSnapshot, type IteratorLocation, type MatchedEventAction, type OffsetPaginationConfig, type PagePaginationConfig, type PaginationConfig, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, SourceType, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, StreamType, type SupportConfig, type SyncParams, type TestActionConfig, type TimeFilterIncrementalConfig, TransportType, type WebhookSetup, type WebhookSetupPhase, type WebhookSetupPhaseKind, areCursorsEqual, buildExpressionContext, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, getIteratorLocation, getPaginationKeys, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, stripPaginationParams, updateCursor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/core",
3
- "version": "2.69.0",
3
+ "version": "2.70.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",