@stackone/connect-sdk 1.2.3 → 1.4.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.es.mjs CHANGED
@@ -1 +1 @@
1
- import{getBlockPipeStepsFromConfigs as o,blockPipe as e}from"@stackone/core";const c=async({block:c,getBlockPipeStepsFromConfigsFn:n=o,blockPipeFn:t=e})=>{const i=n({fieldConfigs:c.fieldConfigs});return await t({blockSteps:i,block:c})};export{c as executeBlockSteps};
1
+ import{getFieldMappingStepFunctions as n,stepsBasicPipeRunner as t,StepFunctionsFactory as o}from"@stackone/core";const e=async({block:o,getFieldMappingStepFunctionsFn:e=n,stepsBasicPipeRunnerFn:i=t})=>{const c=e({fieldConfigs:o.fieldConfigs});return await i({stepFunctions:c,block:o})},i=async({block:n,stepFunctionName:t,params:e,buildStepFunction:i=o.build})=>{const c=i({functionName:t});return await c({block:n,params:e})};export{e as executeFieldMappingStepFunctions,i as executeStepFunction};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("@stackone/core");exports.executeBlockSteps=async({block:o,getBlockPipeStepsFromConfigsFn:c=e.getBlockPipeStepsFromConfigs,blockPipeFn:s=e.blockPipe})=>{const t=c({fieldConfigs:o.fieldConfigs});return await s({blockSteps:t,block:o})};
1
+ "use strict";var e=require("@stackone/core");exports.executeFieldMappingStepFunctions=async({block:n,getFieldMappingStepFunctionsFn:t=e.getFieldMappingStepFunctions,stepsBasicPipeRunnerFn:i=e.stepsBasicPipeRunner})=>{const s=t({fieldConfigs:n.fieldConfigs});return await i({stepFunctions:s,block:n})},exports.executeStepFunction=async({block:n,stepFunctionName:t,params:i,buildStepFunction:s=e.StepFunctionsFactory.build})=>{const c=s({functionName:t});return await c({block:n,params:i})};
@@ -0,0 +1,12 @@
1
+ import { type Block, type StepFunctionName, type StepFunctionParams, StepFunctionsFactory, getFieldMappingStepFunctions, stepsBasicPipeRunner } from '@stackone/core';
2
+ export declare const executeFieldMappingStepFunctions: ({ block, getFieldMappingStepFunctionsFn, stepsBasicPipeRunnerFn, }: {
3
+ block: Block;
4
+ getFieldMappingStepFunctionsFn?: typeof getFieldMappingStepFunctions;
5
+ stepsBasicPipeRunnerFn?: typeof stepsBasicPipeRunner;
6
+ }) => Promise<Block>;
7
+ export declare const executeStepFunction: ({ block, stepFunctionName, params, buildStepFunction, }: {
8
+ block: Block;
9
+ stepFunctionName: StepFunctionName;
10
+ params?: StepFunctionParams;
11
+ buildStepFunction?: typeof StepFunctionsFactory.build;
12
+ }) => Promise<Block>;
@@ -1 +1 @@
1
- export { executeBlockSteps } from './executeBlockSteps';
1
+ export { executeFieldMappingStepFunctions, executeStepFunction, } from './executeStepFunctions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/connect-sdk",
3
- "version": "1.2.3",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -14,9 +14,17 @@
14
14
  "scripts": {
15
15
  "clean": "rimraf dist",
16
16
  "prebuild": "npm run clean",
17
- "build": "rollup -c",
18
- "lint": "tsc --project tsconfig.json && eslint \"src/**/*.ts\"",
19
- "lint:fix": "npm run lint -- --fix",
17
+ "build": "rollup -c --environment NODE_ENV:production",
18
+ "prebuild:dev": "npm run clean",
19
+ "build:dev": "rollup -c --environment NODE_ENV:development",
20
+ "code:format": "biome format ./src ./*.mjs",
21
+ "code:format:fix": "biome format --write ./src ./*.mjs",
22
+ "code:lint": "biome lint --error-on-warnings ./src ./*.mjs",
23
+ "code:lint:fix": "biome lint --write ./src ./*.mjs",
24
+ "code:check": "biome check ./src ./*.mjs",
25
+ "code:check:fix": "biome check --write ./src ./*.mjs",
26
+ "lint": "npm run code:check",
27
+ "lint:fix": "npm run code:check:fix",
20
28
  "test": "vitest run",
21
29
  "test:watch": "vitest watch",
22
30
  "publish-release": "npm publish --access=public"
@@ -1,12 +0,0 @@
1
- import type { Block } from '@stackone/core';
2
- import { getBlockPipeStepsFromConfigs, blockPipe } from '@stackone/core';
3
- export declare const executeBlockSteps: ({ block, getBlockPipeStepsFromConfigsFn, blockPipeFn, }: {
4
- block: Block;
5
- getBlockPipeStepsFromConfigsFn?: (({ fieldConfigs, }: {
6
- fieldConfigs?: import("@stackone/core").BlockFieldConfig[] | undefined;
7
- }) => import("@stackone/core").BlockStep[]) | undefined;
8
- blockPipeFn?: (({ blockSteps, block, }: {
9
- blockSteps: import("@stackone/core").BlockStep[];
10
- block: Block;
11
- }) => Promise<Block>) | undefined;
12
- }) => Promise<Block>;