New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@activepieces/pieces-framework

Package Overview
Dependencies
Maintainers
0
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activepieces/pieces-framework - npm Package Compare versions

Comparing version 0.7.39 to 0.7.40

7

package.json
{
"name": "@activepieces/pieces-framework",
"version": "0.7.39",
"version": "0.7.40",
"type": "commonjs",
"dependencies": {
"@sinclair/typebox": "0.33.18",
"dayjs": "1.11.9",
"deepmerge": "4.3.1",
"nanoid": "3.3.6",
"semver": "7.6.0",
"@activepieces/shared": "0.10.123",
"tslib": "2.6.2"
"@activepieces/shared": "0.10.126",
"tslib": "1.14.1"
},

@@ -14,0 +13,0 @@ "overrides": {

@@ -7,5 +7,2 @@ export * from './action/action';

export * from './piece-metadata';
export * from './validators/validators';
export * from './validators/types';
export * from './validators/validators';
export * from './validators/index';

@@ -10,6 +10,3 @@ "use strict";

tslib_1.__exportStar(require("./piece-metadata"), exports);
tslib_1.__exportStar(require("./validators/validators"), exports);
tslib_1.__exportStar(require("./validators/types"), exports);
tslib_1.__exportStar(require("./validators/validators"), exports);
tslib_1.__exportStar(require("./validators/index"), exports);
//# sourceMappingURL=index.js.map

@@ -5,3 +5,2 @@ import { Static } from '@sinclair/typebox';

import { BasePieceAuthSchema } from './common';
import { ValidationInputType } from '../../validators/types';
export declare const BasicAuthPropertyValue: import("@sinclair/typebox").TObject<{

@@ -35,2 +34,2 @@ username: import("@sinclair/typebox").TString;

};
} & TPropertyValue<BasicAuthPropertyValue, PropertyType.BASIC_AUTH, ValidationInputType.ANY, true>;
} & TPropertyValue<BasicAuthPropertyValue, PropertyType.BASIC_AUTH, true>;

@@ -1,2 +0,1 @@

import { ValidationInputType } from '../../validators/types';
import { TPropertyValue } from '../input/common';

@@ -54,2 +53,2 @@ import { PropertyType } from '../input/property-type';

props: T;
} & TPropertyValue<StaticPropsValue<T>, PropertyType.CUSTOM_AUTH, ValidationInputType.ANY, true>;
} & TPropertyValue<StaticPropsValue<T>, PropertyType.CUSTOM_AUTH, true>;

@@ -9,3 +9,2 @@ import { OAuth2GrantType } from '@activepieces/shared';

import { StaticPropsValue } from '..';
import { ValidationInputType } from '../../validators/types';
export declare enum OAuth2AuthorizationMethod {

@@ -181,3 +180,3 @@ HEADER = "HEADER",

}>;
export type OAuth2Property<T extends OAuth2Props> = BasePieceAuthSchema<OAuth2PropertyValue> & OAuth2ExtraProps & TPropertyValue<OAuth2PropertyValue<T>, PropertyType.OAUTH2, ValidationInputType.ANY, true>;
export type OAuth2Property<T extends OAuth2Props> = BasePieceAuthSchema<OAuth2PropertyValue> & OAuth2ExtraProps & TPropertyValue<OAuth2PropertyValue<T>, PropertyType.OAUTH2, true>;
export {};
import { BasePieceAuthSchema } from "./common";
import { TPropertyValue } from "../input/common";
import { PropertyType } from "../input/property-type";
import { ValidationInputType } from "../../validators/types";
export declare const SecretTextProperty: import("@sinclair/typebox").TObject<{

@@ -11,2 +10,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type SecretTextProperty<R extends boolean> = BasePieceAuthSchema<string> & TPropertyValue<string, PropertyType.SECRET_TEXT, ValidationInputType.STRING, R>;
export type SecretTextProperty<R extends boolean> = BasePieceAuthSchema<string> & TPropertyValue<string, PropertyType.SECRET_TEXT, R>;
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";
import { ValidationInputType } from "../../validators/types";
import { LongTextProperty, ShortTextProperty } from "./text-property";

@@ -133,2 +132,2 @@ import { StaticDropdownProperty, StaticMultiSelectDropdownProperty } from "./dropdown/static-dropdown";

properties?: ArraySubProps<R>;
} & TPropertyValue<unknown[], PropertyType.ARRAY, ValidationInputType.ARRAY, R>;
} & TPropertyValue<unknown[], PropertyType.ARRAY, R>;
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";
import { ValidationInputType } from "../../validators/types";
export declare const CheckboxProperty: import("@sinclair/typebox").TObject<{

@@ -10,2 +9,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type CheckboxProperty<R extends boolean> = BasePropertySchema & TPropertyValue<boolean, PropertyType.CHECKBOX, ValidationInputType.ANY, R>;
export type CheckboxProperty<R extends boolean> = BasePropertySchema & TPropertyValue<boolean, PropertyType.CHECKBOX, R>;
import { Static, TObject, TSchema } from "@sinclair/typebox";
import { TypedValidatorFn, ValidationInputType } from "../../validators/types";
import { ApFile } from "./file-property";

@@ -11,9 +10,7 @@ import { PropertyType } from "./property-type";

export declare const TPropertyValue: <T extends TSchema, U extends PropertyType>(T: T, propertyType: U) => TObject;
export type TPropertyValue<T, U extends PropertyType, VALIDATION_INPUT extends ValidationInputType, REQUIRED extends boolean> = {
export type TPropertyValue<T, U extends PropertyType, REQUIRED extends boolean> = {
valueSchema: T;
type: U;
required: REQUIRED;
validators?: TypedValidatorFn<VALIDATION_INPUT>[];
defaultValidators?: TypedValidatorFn<VALIDATION_INPUT>[];
defaultValue?: U extends PropertyType.ARRAY ? unknown[] : U extends PropertyType.JSON ? object : U extends PropertyType.CHECKBOX ? boolean : U extends PropertyType.LONG_TEXT ? string : U extends PropertyType.SHORT_TEXT ? string : U extends PropertyType.NUMBER ? number : U extends PropertyType.DROPDOWN ? unknown : U extends PropertyType.MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_DROPDOWN ? unknown : U extends PropertyType.DATE_TIME ? string : U extends PropertyType.FILE ? ApFile : unknown;
};
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";
import { ValidationInputType } from "../../validators/types";
export declare const DateTimeProperty: import("@sinclair/typebox").TObject<{

@@ -10,2 +9,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type DateTimeProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.DATE_TIME, ValidationInputType.DATE_TIME, R>;
export type DateTimeProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.DATE_TIME, R>;
import { BasePropertySchema, TPropertyValue } from "../common";
import { DropdownState } from "./common";
import { PropertyContext } from "../../../context";
import { ValidationInputType } from "../../../validators/types";
import { PropertyType } from "../property-type";

@@ -17,3 +16,3 @@ type DynamicDropdownOptions<T> = (propsValue: Record<string, unknown>, ctx: PropertyContext) => Promise<DropdownState<T>>;

options: DynamicDropdownOptions<T>;
} & TPropertyValue<T, PropertyType.DROPDOWN, ValidationInputType.ANY, R>;
} & TPropertyValue<T, PropertyType.DROPDOWN, R>;
export declare const MultiSelectDropdownProperty: import("@sinclair/typebox").TObject<{

@@ -28,3 +27,3 @@ [x: string]: import("@sinclair/typebox").TSchema;

options: DynamicDropdownOptions<T>;
} & TPropertyValue<T[], PropertyType.MULTI_SELECT_DROPDOWN, ValidationInputType.ANY, R>;
} & TPropertyValue<T[], PropertyType.MULTI_SELECT_DROPDOWN, R>;
export {};
import { BasePropertySchema, TPropertyValue } from "../common";
import { DropdownState } from "./common";
import { ValidationInputType } from "../../../validators/types";
import { PropertyType } from "../property-type";

@@ -21,3 +20,3 @@ export declare const StaticDropdownProperty: import("@sinclair/typebox").TObject<{

options: DropdownState<T>;
} & TPropertyValue<T, PropertyType.STATIC_DROPDOWN, ValidationInputType.ANY, R>;
} & TPropertyValue<T, PropertyType.STATIC_DROPDOWN, R>;
export declare const StaticMultiSelectDropdownProperty: import("@sinclair/typebox").TObject<{

@@ -39,2 +38,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

options: DropdownState<T>;
} & TPropertyValue<T[], PropertyType.STATIC_MULTI_SELECT_DROPDOWN, ValidationInputType.ANY, R>;
} & TPropertyValue<T[], PropertyType.STATIC_MULTI_SELECT_DROPDOWN, R>;

@@ -5,3 +5,2 @@ import { StaticDropdownProperty, StaticMultiSelectDropdownProperty } from "./dropdown/static-dropdown";

import { PropertyContext } from "../../context";
import { ValidationInputType } from "../../validators/types";
import { PropertyType } from "./property-type";

@@ -220,2 +219,2 @@ import { JsonProperty } from "./json-property";

refreshers: string[];
} & TPropertyValue<DynamicPropsValue, PropertyType.DYNAMIC, ValidationInputType.ANY, R>;
} & TPropertyValue<DynamicPropsValue, PropertyType.DYNAMIC, R>;

@@ -1,2 +0,1 @@

import { ValidationInputType } from "../../validators/types";
import { BasePropertySchema, TPropertyValue } from "./common";

@@ -17,2 +16,2 @@ import { PropertyType } from "./property-type";

}>;
export type FileProperty<R extends boolean> = BasePropertySchema & TPropertyValue<ApFile, PropertyType.FILE, ValidationInputType.FILE, R>;
export type FileProperty<R extends boolean> = BasePropertySchema & TPropertyValue<ApFile, PropertyType.FILE, R>;

@@ -5,3 +5,2 @@ "use strict";

const typebox_1 = require("@sinclair/typebox");
const validators_1 = require("../../validators/validators");
const array_property_1 = require("./array-property");

@@ -40,3 +39,3 @@ const checkbox_property_1 = require("./checkbox-property");

ShortText(request) {
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.SHORT_TEXT, defaultValidators: [validators_1.Validators.string] });
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.SHORT_TEXT });
},

@@ -61,3 +60,3 @@ Checkbox(request) {

Number(request) {
return Object.assign(Object.assign({}, request), { defaultValidators: [validators_1.Validators.number], valueSchema: undefined, type: property_type_1.PropertyType.NUMBER });
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.NUMBER });
},

@@ -89,8 +88,8 @@ Json(request) {

DateTime(request) {
return Object.assign(Object.assign({}, request), { defaultValidators: [validators_1.Validators.datetimeIso], valueSchema: undefined, type: property_type_1.PropertyType.DATE_TIME });
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.DATE_TIME });
},
File(request) {
return Object.assign(Object.assign({}, request), { defaultValidators: [validators_1.Validators.file], valueSchema: undefined, type: property_type_1.PropertyType.FILE });
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.FILE });
},
};
//# sourceMappingURL=index.js.map
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";
import { ValidationInputType } from "../../validators/types";
export declare const JsonProperty: import("@sinclair/typebox").TObject<{

@@ -10,2 +9,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type JsonProperty<R extends boolean> = BasePropertySchema & TPropertyValue<Record<string, unknown>, PropertyType.JSON, ValidationInputType.OBJECT, R>;
export type JsonProperty<R extends boolean> = BasePropertySchema & TPropertyValue<Record<string, unknown>, PropertyType.JSON, R>;
import { BasePropertySchema, TPropertyValue } from './common';
import { PropertyType } from './property-type';
import { ValidationInputType } from '../../validators/types';
import { MarkdownVariant } from '@activepieces/shared';

@@ -11,4 +10,4 @@ export declare const MarkDownProperty: import("@sinclair/typebox").TObject<{

}>;
export type MarkDownProperty = BasePropertySchema & TPropertyValue<undefined, PropertyType.MARKDOWN, ValidationInputType.ANY, false> & {
export type MarkDownProperty = BasePropertySchema & TPropertyValue<undefined, PropertyType.MARKDOWN, false> & {
variant?: MarkdownVariant;
};
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";
import { ValidationInputType } from "../../validators/types";
export declare const NumberProperty: import("@sinclair/typebox").TObject<{

@@ -10,2 +9,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type NumberProperty<R extends boolean> = BasePropertySchema & TPropertyValue<number, PropertyType.NUMBER, ValidationInputType.NUMBER, R>;
export type NumberProperty<R extends boolean> = BasePropertySchema & TPropertyValue<number, PropertyType.NUMBER, R>;
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";
import { ValidationInputType } from "../../validators/types";
export declare const ObjectProperty: import("@sinclair/typebox").TObject<{

@@ -10,2 +9,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type ObjectProperty<R extends boolean> = BasePropertySchema & TPropertyValue<Record<string, unknown>, PropertyType.OBJECT, ValidationInputType.OBJECT, R>;
export type ObjectProperty<R extends boolean> = BasePropertySchema & TPropertyValue<Record<string, unknown>, PropertyType.OBJECT, R>;
import { BasePropertySchema, TPropertyValue } from "./common";
import { PropertyType } from "./property-type";
import { ValidationInputType } from "../../validators/types";
export declare const ShortTextProperty: import("@sinclair/typebox").TObject<{

@@ -10,3 +9,3 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type ShortTextProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.SHORT_TEXT, ValidationInputType.STRING, R>;
export type ShortTextProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.SHORT_TEXT, R>;
export declare const LongTextProperty: import("@sinclair/typebox").TObject<{

@@ -18,2 +17,2 @@ [x: string]: import("@sinclair/typebox").TSchema;

}>;
export type LongTextProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.LONG_TEXT, ValidationInputType.STRING, R>;
export type LongTextProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.LONG_TEXT, R>;

@@ -1,4 +0,1 @@

export * from './types';
export * from './errors';
export * from './utils';
export declare const CONNECTION_REGEX = "{{1}{connections.(.*?)}{1}}";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CONNECTION_REGEX = void 0;
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./types"), exports);
tslib_1.__exportStar(require("./errors"), exports);
tslib_1.__exportStar(require("./utils"), exports);
exports.CONNECTION_REGEX = '{{1}{connections.(.*?)}{1}}';
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc