@stackone/core 2.32.0 → 2.33.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 +37 -2
- package/dist/index.d.mts +37 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1540,6 +1540,16 @@ type EnumOneOf = {
|
|
|
1540
1540
|
} | {
|
|
1541
1541
|
ref: string;
|
|
1542
1542
|
};
|
|
1543
|
+
type InputFormat = 'email' | 'url' | 'uuid' | 'date' | 'datetime' | 'uri';
|
|
1544
|
+
type InputRules = {
|
|
1545
|
+
minLength?: number;
|
|
1546
|
+
maxLength?: number;
|
|
1547
|
+
pattern?: string;
|
|
1548
|
+
format?: InputFormat;
|
|
1549
|
+
min?: number;
|
|
1550
|
+
max?: number;
|
|
1551
|
+
errorMessage?: string;
|
|
1552
|
+
};
|
|
1543
1553
|
type Input = {
|
|
1544
1554
|
name: string;
|
|
1545
1555
|
type: 'string' | 'number' | 'boolean' | 'datetime_string' | 'object' | 'enum';
|
|
@@ -1549,7 +1559,31 @@ type Input = {
|
|
|
1549
1559
|
array?: boolean;
|
|
1550
1560
|
properties?: Omit<Input, 'in'>[];
|
|
1551
1561
|
oneOf?: EnumOneOf;
|
|
1552
|
-
|
|
1562
|
+
rules?: InputRules;
|
|
1563
|
+
};
|
|
1564
|
+
type RequiredIfCondition = {
|
|
1565
|
+
field: string;
|
|
1566
|
+
equals?: string;
|
|
1567
|
+
notEquals?: string;
|
|
1568
|
+
present?: boolean;
|
|
1569
|
+
};
|
|
1570
|
+
type AtLeastOneOfRule = {
|
|
1571
|
+
rule: 'atLeastOneOf';
|
|
1572
|
+
fields: string[];
|
|
1573
|
+
errorMessage?: string;
|
|
1574
|
+
};
|
|
1575
|
+
type RequiredIfRule = {
|
|
1576
|
+
rule: 'requiredIf';
|
|
1577
|
+
field: string;
|
|
1578
|
+
condition: RequiredIfCondition;
|
|
1579
|
+
errorMessage?: string;
|
|
1580
|
+
};
|
|
1581
|
+
type MutuallyExclusiveRule = {
|
|
1582
|
+
rule: 'mutuallyExclusive';
|
|
1583
|
+
fields: string[];
|
|
1584
|
+
errorMessage?: string;
|
|
1585
|
+
};
|
|
1586
|
+
type ActionValidationRule = AtLeastOneOfRule | RequiredIfRule | MutuallyExclusiveRule;
|
|
1553
1587
|
type ActionExample = {
|
|
1554
1588
|
exampleDescription?: string;
|
|
1555
1589
|
[key: string]: unknown;
|
|
@@ -1571,6 +1605,7 @@ type Action = {
|
|
|
1571
1605
|
entrypointUrl?: string;
|
|
1572
1606
|
entrypointHttpMethod?: HttpMethod;
|
|
1573
1607
|
inputs?: Input[];
|
|
1608
|
+
validationRules?: ActionValidationRule[];
|
|
1574
1609
|
requiredScopes?: string[];
|
|
1575
1610
|
steps: {
|
|
1576
1611
|
[stepId: string]: Step;
|
|
@@ -1814,4 +1849,4 @@ type Account = {
|
|
|
1814
1849
|
originOwnerName?: string;
|
|
1815
1850
|
};
|
|
1816
1851
|
//#endregion
|
|
1817
|
-
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorEvents, CoreError, type Cursor, type DefenderMetadata, type DefenderSettings, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type FieldConfig, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type IntermediateStepSnapshot, type MatchedEventAction, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|
|
1852
|
+
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type ActionValidationRule, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorEvents, CoreError, type Cursor, type DefenderMetadata, type DefenderSettings, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type FieldConfig, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputFormat, type InputLocation, type InputRules, type IntermediateStepSnapshot, type MatchedEventAction, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|
package/dist/index.d.mts
CHANGED
|
@@ -1539,6 +1539,16 @@ type EnumOneOf = {
|
|
|
1539
1539
|
} | {
|
|
1540
1540
|
ref: string;
|
|
1541
1541
|
};
|
|
1542
|
+
type InputFormat = 'email' | 'url' | 'uuid' | 'date' | 'datetime' | 'uri';
|
|
1543
|
+
type InputRules = {
|
|
1544
|
+
minLength?: number;
|
|
1545
|
+
maxLength?: number;
|
|
1546
|
+
pattern?: string;
|
|
1547
|
+
format?: InputFormat;
|
|
1548
|
+
min?: number;
|
|
1549
|
+
max?: number;
|
|
1550
|
+
errorMessage?: string;
|
|
1551
|
+
};
|
|
1542
1552
|
type Input = {
|
|
1543
1553
|
name: string;
|
|
1544
1554
|
type: 'string' | 'number' | 'boolean' | 'datetime_string' | 'object' | 'enum';
|
|
@@ -1548,7 +1558,31 @@ type Input = {
|
|
|
1548
1558
|
array?: boolean;
|
|
1549
1559
|
properties?: Omit<Input, 'in'>[];
|
|
1550
1560
|
oneOf?: EnumOneOf;
|
|
1551
|
-
|
|
1561
|
+
rules?: InputRules;
|
|
1562
|
+
};
|
|
1563
|
+
type RequiredIfCondition = {
|
|
1564
|
+
field: string;
|
|
1565
|
+
equals?: string;
|
|
1566
|
+
notEquals?: string;
|
|
1567
|
+
present?: boolean;
|
|
1568
|
+
};
|
|
1569
|
+
type AtLeastOneOfRule = {
|
|
1570
|
+
rule: 'atLeastOneOf';
|
|
1571
|
+
fields: string[];
|
|
1572
|
+
errorMessage?: string;
|
|
1573
|
+
};
|
|
1574
|
+
type RequiredIfRule = {
|
|
1575
|
+
rule: 'requiredIf';
|
|
1576
|
+
field: string;
|
|
1577
|
+
condition: RequiredIfCondition;
|
|
1578
|
+
errorMessage?: string;
|
|
1579
|
+
};
|
|
1580
|
+
type MutuallyExclusiveRule = {
|
|
1581
|
+
rule: 'mutuallyExclusive';
|
|
1582
|
+
fields: string[];
|
|
1583
|
+
errorMessage?: string;
|
|
1584
|
+
};
|
|
1585
|
+
type ActionValidationRule = AtLeastOneOfRule | RequiredIfRule | MutuallyExclusiveRule;
|
|
1552
1586
|
type ActionExample = {
|
|
1553
1587
|
exampleDescription?: string;
|
|
1554
1588
|
[key: string]: unknown;
|
|
@@ -1570,6 +1604,7 @@ type Action = {
|
|
|
1570
1604
|
entrypointUrl?: string;
|
|
1571
1605
|
entrypointHttpMethod?: HttpMethod;
|
|
1572
1606
|
inputs?: Input[];
|
|
1607
|
+
validationRules?: ActionValidationRule[];
|
|
1573
1608
|
requiredScopes?: string[];
|
|
1574
1609
|
steps: {
|
|
1575
1610
|
[stepId: string]: Step;
|
|
@@ -1813,4 +1848,4 @@ type Account = {
|
|
|
1813
1848
|
originOwnerName?: string;
|
|
1814
1849
|
};
|
|
1815
1850
|
//#endregion
|
|
1816
|
-
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorEvents, CoreError, type Cursor, type DefenderMetadata, type DefenderSettings, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type FieldConfig, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type IntermediateStepSnapshot, type MatchedEventAction, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|
|
1851
|
+
export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type ActionValidationRule, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type AuthenticationGuides, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, type ConnectorEvents, CoreError, type Cursor, type DefenderMetadata, type DefenderSettings, type EnumOneOf, type EventRouter, type EventRouterRule, type EventToEmit, type FieldConfig, type ForeachStep, type Guide, type GuideImage, type GuideSection, type GuideStep, INPUT_ENUM_REGISTRY, type Input, type InputFormat, type InputLocation, type InputRules, type IntermediateStepSnapshot, type MatchedEventAction, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type SimpleStep, type Source, type Step, type StepFunction, type StepFunctionMeta, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type StreamOutputData, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, evaluateEventRouter, evaluateExternalAccountIdExtractor, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isForeachStep, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
|