@stackone/core 2.68.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
  };
@@ -2498,6 +2536,7 @@ declare const COMPOSITE_ID_LATEST_VERSION = 1;
2498
2536
  type EvaluationContext$1 = {
2499
2537
  body: unknown;
2500
2538
  headers: Record<string, unknown>;
2539
+ query?: Record<string, unknown>;
2501
2540
  path?: string;
2502
2541
  method: string;
2503
2542
  };
@@ -2507,6 +2546,7 @@ declare const evaluateExternalAccountIdExtractor: (connector: Connector, context
2507
2546
  type EvaluationContext = {
2508
2547
  body: unknown;
2509
2548
  headers: Record<string, unknown>;
2549
+ query?: Record<string, unknown>;
2510
2550
  path?: string;
2511
2551
  method: string;
2512
2552
  };
@@ -2668,4 +2708,4 @@ type Account = {
2668
2708
  originOwnerName?: string;
2669
2709
  };
2670
2710
  //#endregion
2671
- 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
  };
@@ -2497,6 +2535,7 @@ declare const COMPOSITE_ID_LATEST_VERSION = 1;
2497
2535
  type EvaluationContext$1 = {
2498
2536
  body: unknown;
2499
2537
  headers: Record<string, unknown>;
2538
+ query?: Record<string, unknown>;
2500
2539
  path?: string;
2501
2540
  method: string;
2502
2541
  };
@@ -2506,6 +2545,7 @@ declare const evaluateExternalAccountIdExtractor: (connector: Connector, context
2506
2545
  type EvaluationContext = {
2507
2546
  body: unknown;
2508
2547
  headers: Record<string, unknown>;
2548
+ query?: Record<string, unknown>;
2509
2549
  path?: string;
2510
2550
  method: string;
2511
2551
  };
@@ -2667,4 +2707,4 @@ type Account = {
2667
2707
  originOwnerName?: string;
2668
2708
  };
2669
2709
  //#endregion
2670
- 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.68.0",
3
+ "version": "2.70.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",