@prismatic-io/spectral 10.2.1 → 10.2.3

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.
@@ -623,7 +623,7 @@ const codeNativeIntegrationComponent = ({ name, iconPath, description, flows = [
623
623
  return result;
624
624
  }
625
625
  const convertedInputs = Object.entries(configVar.inputs).map(([key, value]) => (0, convertComponent_1.convertInput)(key, value));
626
- const connection = (0, lodash_1.pick)(configVar, ["oauth2Type"]);
626
+ const connection = (0, lodash_1.pick)(configVar, ["oauth2Type", "oauth2PkceMethod"]);
627
627
  const { avatarPath: avatarIconPath, oauth2ConnectionIconPath: iconPath } = (_a = configVar.icons) !== null && _a !== void 0 ? _a : {};
628
628
  return [
629
629
  ...result,
@@ -19,12 +19,8 @@ var __rest = (this && this.__rest) || function (s, e) {
19
19
  }
20
20
  return t;
21
21
  };
22
- var __importDefault = (this && this.__importDefault) || function (mod) {
23
- return (mod && mod.__esModule) ? mod : { "default": mod };
24
- };
25
22
  Object.defineProperty(exports, "__esModule", { value: true });
26
23
  exports.createPollingPerform = exports.createPerform = exports.cleanParams = void 0;
27
- const axios_1 = __importDefault(require("axios"));
28
24
  const lodash_1 = require("lodash");
29
25
  const cleanParams = (params, cleaners) => {
30
26
  const keys = (0, lodash_1.uniq)([...Object.keys(params), ...Object.keys(cleaners)]);
@@ -74,9 +70,6 @@ const createPollingPerform = (trigger, { inputCleaners, errorHandler }) => {
74
70
  const { pollAction } = trigger;
75
71
  const pollingContext = {
76
72
  polling: {
77
- reinvokeFlow: (data, config) => __awaiter(void 0, void 0, void 0, function* () {
78
- return yield axios_1.default.post(context.invokeUrl, data, config);
79
- }),
80
73
  invokeAction: createInvokePollAction(context, pollAction, {
81
74
  inputCleaners,
82
75
  errorHandler,
@@ -1,8 +1,6 @@
1
- import type { AxiosRequestConfig, AxiosResponse } from "axios";
2
1
  import type { ActionDisplayDefinition, TriggerEventFunction, Inputs, ConfigVarResultCollection, TriggerPayload, ActionDefinition, ActionContext, ActionInputParameters, ActionPerformReturn, TriggerResult } from ".";
3
2
  export interface PollingContext<TInputs extends Inputs = Inputs, TConfigVars extends ConfigVarResultCollection = ConfigVarResultCollection> extends ActionContext<TConfigVars> {
4
3
  polling: {
5
- reinvokeFlow: (data?: Record<string, unknown>, config?: AxiosRequestConfig<any>) => Promise<AxiosResponse<any, any>>;
6
4
  invokeAction: (params: ActionInputParameters<TInputs>) => Promise<ActionPerformReturn<boolean, any>>;
7
5
  getState: () => Record<string, unknown>;
8
6
  setState: (newState: Record<string, unknown>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "10.2.1",
3
+ "version": "10.2.3",
4
4
  "description": "Utility library for building Prismatic components and code-native integrations",
5
5
  "keywords": ["prismatic"],
6
6
  "main": "dist/index.js",