@stackone/core 2.5.0 → 2.7.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
@@ -709,9 +709,17 @@ type AdvancedOptions = {
709
709
  //#endregion
710
710
  //#region ../olap/src/types.d.ts
711
711
  interface IOlapClient {
712
- recordAction(actionResult: ActionResult, options?: OlapOptions): void;
713
- recordStep(stepResult: StepResult, options?: OlapOptions): void;
712
+ recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void;
713
+ recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): void;
714
714
  }
715
+ type ActionInput = {
716
+ actionId?: string;
717
+ url?: string;
718
+ pathParams?: unknown;
719
+ queryParams?: unknown;
720
+ body?: unknown;
721
+ headers?: Record<string, string>;
722
+ };
715
723
  type ActionResult = {
716
724
  actionRunId: string;
717
725
  actionId: string;
@@ -736,13 +744,20 @@ type ActionResult = {
736
744
  childResource?: string;
737
745
  status?: string;
738
746
  message?: string;
739
- outputs?: unknown;
747
+ headers?: Record<string, string>;
748
+ body?: unknown;
740
749
  startTime?: Date;
741
750
  endTime?: Date;
742
751
  };
752
+ type StepInput = {
753
+ inputs?: unknown;
754
+ };
743
755
  type StepResult = {
744
756
  actionRunId: string;
745
757
  stepId: string;
758
+ organizationId: string;
759
+ projectSecureId: string;
760
+ accountSecureId: string;
746
761
  status?: string;
747
762
  message?: string;
748
763
  outputs?: unknown;
@@ -979,13 +994,17 @@ type Input = {
979
994
  properties?: Omit<Input, 'in'>[];
980
995
  oneOf?: EnumOneOf;
981
996
  };
997
+ type ActionExample = {
998
+ exampleDescription?: string;
999
+ [key: string]: unknown;
1000
+ };
982
1001
  type Action = {
983
1002
  id: string;
984
1003
  categories: Category[];
985
1004
  label: string;
986
1005
  description: string;
987
1006
  details?: string;
988
- examples?: Record<string, unknown>[];
1007
+ examples?: ActionExample[];
989
1008
  schema?: Schema;
990
1009
  schemaType: 'native' | 'unified';
991
1010
  endpoint?: string;
@@ -1193,4 +1212,4 @@ type Account = {
1193
1212
  originOwnerName?: string;
1194
1213
  };
1195
1214
  //#endregion
1196
- export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type EnumOneOf, type FieldConfig, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type Source, type Step, type StepFunction, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
1215
+ export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type EnumOneOf, type FieldConfig, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type Source, type Step, type StepFunction, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
package/dist/index.d.mts CHANGED
@@ -709,9 +709,17 @@ type AdvancedOptions = {
709
709
  //#endregion
710
710
  //#region ../olap/src/types.d.ts
711
711
  interface IOlapClient {
712
- recordAction(actionResult: ActionResult, options?: OlapOptions): void;
713
- recordStep(stepResult: StepResult, options?: OlapOptions): void;
712
+ recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): void;
713
+ recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): void;
714
714
  }
715
+ type ActionInput = {
716
+ actionId?: string;
717
+ url?: string;
718
+ pathParams?: unknown;
719
+ queryParams?: unknown;
720
+ body?: unknown;
721
+ headers?: Record<string, string>;
722
+ };
715
723
  type ActionResult = {
716
724
  actionRunId: string;
717
725
  actionId: string;
@@ -736,13 +744,20 @@ type ActionResult = {
736
744
  childResource?: string;
737
745
  status?: string;
738
746
  message?: string;
739
- outputs?: unknown;
747
+ headers?: Record<string, string>;
748
+ body?: unknown;
740
749
  startTime?: Date;
741
750
  endTime?: Date;
742
751
  };
752
+ type StepInput = {
753
+ inputs?: unknown;
754
+ };
743
755
  type StepResult = {
744
756
  actionRunId: string;
745
757
  stepId: string;
758
+ organizationId: string;
759
+ projectSecureId: string;
760
+ accountSecureId: string;
746
761
  status?: string;
747
762
  message?: string;
748
763
  outputs?: unknown;
@@ -979,13 +994,17 @@ type Input = {
979
994
  properties?: Omit<Input, 'in'>[];
980
995
  oneOf?: EnumOneOf;
981
996
  };
997
+ type ActionExample = {
998
+ exampleDescription?: string;
999
+ [key: string]: unknown;
1000
+ };
982
1001
  type Action = {
983
1002
  id: string;
984
1003
  categories: Category[];
985
1004
  label: string;
986
1005
  description: string;
987
1006
  details?: string;
988
- examples?: Record<string, unknown>[];
1007
+ examples?: ActionExample[];
989
1008
  schema?: Schema;
990
1009
  schemaType: 'native' | 'unified';
991
1010
  endpoint?: string;
@@ -1193,4 +1212,4 @@ type Account = {
1193
1212
  originOwnerName?: string;
1194
1213
  };
1195
1214
  //#endregion
1196
- export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type EnumOneOf, type FieldConfig, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type Source, type Step, type StepFunction, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
1215
+ export { AUTHORIZATION_SCHEMA, type Account, type Action, type ActionExample, type ActionResponse, type ActionType, type Assets, type Authentication, type AuthenticationConfig, type AuthenticationField, type Block, type BlockContext, type BlockIndexedRecord, COMPOSITE_ID_LATEST_VERSION, type Category, type CompositeIdentifier, type CompositeIdentifierConfig, type CompositeIdentifierConnectorConfig, type Connector, CoreError, type Cursor, type EnumOneOf, type FieldConfig, INPUT_ENUM_REGISTRY, type Input, type InputLocation, type ReleaseStage, ReleaseStages, type Schema, type SchemaField, type ScopeDefinition, type Settings, type Source, type Step, type StepFunction, StepFunctionName, type StepFunctionOutput, type StepFunctionParams, StepFunctionsFactory, stepFunctions as StepFunctionsRegistry, type StepsSnapshots, type SupportConfig, type TestActionConfig, areCursorsEqual, decodeCompositeId, encodeCompositeId, expandCursor, getCategoryDetails, getInputEnumValues, isCompositeId, isCoreError, isCursorEmpty, isValidCategory, isValidEnumRef, minifyCursor, updateCursor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/core",
3
- "version": "2.5.0",
3
+ "version": "2.7.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",