@activepieces/pieces-framework 0.25.5 → 0.26.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/package.json +3 -3
- package/src/lib/action/action.d.ts +12 -12
- package/src/lib/action/action.js +9 -8
- package/src/lib/action/action.js.map +1 -1
- package/src/lib/index.d.ts +1 -0
- package/src/lib/index.js +1 -0
- package/src/lib/index.js.map +1 -1
- package/src/lib/piece-metadata.d.ts +4360 -3892
- package/src/lib/piece-metadata.js +48 -66
- package/src/lib/piece-metadata.js.map +1 -1
- package/src/lib/property/authentication/basic-auth-prop.d.ts +21 -20
- package/src/lib/property/authentication/basic-auth-prop.js +11 -18
- package/src/lib/property/authentication/basic-auth-prop.js.map +1 -1
- package/src/lib/property/authentication/common.d.ts +5 -4
- package/src/lib/property/authentication/common.js +4 -4
- package/src/lib/property/authentication/common.js.map +1 -1
- package/src/lib/property/authentication/custom-auth-prop.d.ts +47 -40
- package/src/lib/property/authentication/custom-auth-prop.js +3 -9
- package/src/lib/property/authentication/custom-auth-prop.js.map +1 -1
- package/src/lib/property/authentication/index.d.ts +110 -96
- package/src/lib/property/authentication/index.js +2 -2
- package/src/lib/property/authentication/index.js.map +1 -1
- package/src/lib/property/authentication/oauth2-prop.d.ts +167 -150
- package/src/lib/property/authentication/oauth2-prop.js +19 -23
- package/src/lib/property/authentication/oauth2-prop.js.map +1 -1
- package/src/lib/property/authentication/secret-text-property.d.ts +8 -6
- package/src/lib/property/authentication/secret-text-property.js +4 -7
- package/src/lib/property/authentication/secret-text-property.js.map +1 -1
- package/src/lib/property/index.d.ts +779 -671
- package/src/lib/property/index.js +4 -4
- package/src/lib/property/index.js.map +1 -1
- package/src/lib/property/input/array-property.d.ts +153 -131
- package/src/lib/property/input/array-property.js +3 -9
- package/src/lib/property/input/array-property.js.map +1 -1
- package/src/lib/property/input/checkbox-property.d.ts +8 -6
- package/src/lib/property/input/checkbox-property.js +2 -5
- package/src/lib/property/input/checkbox-property.js.map +1 -1
- package/src/lib/property/input/color-property.d.ts +8 -6
- package/src/lib/property/input/color-property.js +2 -5
- package/src/lib/property/input/color-property.js.map +1 -1
- package/src/lib/property/input/common.d.ts +10 -6
- package/src/lib/property/input/common.js +8 -8
- package/src/lib/property/input/common.js.map +1 -1
- package/src/lib/property/input/custom-property.d.ts +9 -6
- package/src/lib/property/input/custom-property.js +3 -9
- package/src/lib/property/input/custom-property.js.map +1 -1
- package/src/lib/property/input/date-time-property.d.ts +8 -6
- package/src/lib/property/input/date-time-property.js +2 -5
- package/src/lib/property/input/date-time-property.js.map +1 -1
- package/src/lib/property/input/dropdown/common.d.ts +13 -12
- package/src/lib/property/input/dropdown/common.js +8 -8
- package/src/lib/property/input/dropdown/common.js.map +1 -1
- package/src/lib/property/input/dropdown/dropdown-prop.d.ts +17 -12
- package/src/lib/property/input/dropdown/dropdown-prop.js +3 -15
- package/src/lib/property/input/dropdown/dropdown-prop.js.map +1 -1
- package/src/lib/property/input/dropdown/static-dropdown.d.ts +31 -28
- package/src/lib/property/input/dropdown/static-dropdown.js +3 -15
- package/src/lib/property/input/dropdown/static-dropdown.js.map +1 -1
- package/src/lib/property/input/dynamic-prop.d.ts +247 -215
- package/src/lib/property/input/dynamic-prop.js +4 -10
- package/src/lib/property/input/dynamic-prop.js.map +1 -1
- package/src/lib/property/input/file-property.d.ts +8 -6
- package/src/lib/property/input/file-property.js +2 -5
- package/src/lib/property/input/file-property.js.map +1 -1
- package/src/lib/property/input/index.d.ts +191 -161
- package/src/lib/property/input/index.js +2 -2
- package/src/lib/property/input/index.js.map +1 -1
- package/src/lib/property/input/json-property.d.ts +8 -6
- package/src/lib/property/input/json-property.js +2 -5
- package/src/lib/property/input/json-property.js.map +1 -1
- package/src/lib/property/input/markdown-property.d.ts +8 -6
- package/src/lib/property/input/markdown-property.js +2 -5
- package/src/lib/property/input/markdown-property.js.map +1 -1
- package/src/lib/property/input/number-property.d.ts +8 -6
- package/src/lib/property/input/number-property.js +2 -5
- package/src/lib/property/input/number-property.js.map +1 -1
- package/src/lib/property/input/object-property.d.ts +8 -6
- package/src/lib/property/input/object-property.js +2 -5
- package/src/lib/property/input/object-property.js.map +1 -1
- package/src/lib/property/input/text-property.d.ts +15 -12
- package/src/lib/property/input/text-property.js +3 -9
- package/src/lib/property/input/text-property.js.map +1 -1
- package/src/lib/property/util.d.ts +4 -2
- package/src/lib/property/util.js +38 -54
- package/src/lib/property/util.js.map +1 -1
- package/src/lib/test/index.d.ts +5 -0
- package/src/lib/test/index.js +73 -0
- package/src/lib/test/index.js.map +1 -0
- package/src/lib/trigger/trigger.d.ts +9 -9
- package/src/lib/trigger/trigger.js +7 -7
- package/src/lib/trigger/trigger.js.map +1 -1
|
@@ -5,77 +5,59 @@ const property_1 = require("./property");
|
|
|
5
5
|
const trigger_1 = require("./trigger/trigger");
|
|
6
6
|
const action_1 = require("./action/action");
|
|
7
7
|
const authentication_1 = require("./property/authentication");
|
|
8
|
-
const
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
9
|
const shared_1 = require("@activepieces/shared");
|
|
10
|
-
const I18nForPiece =
|
|
11
|
-
exports.PieceBase =
|
|
12
|
-
id:
|
|
13
|
-
name:
|
|
14
|
-
displayName:
|
|
15
|
-
logoUrl:
|
|
16
|
-
description:
|
|
17
|
-
authors:
|
|
18
|
-
platformId:
|
|
19
|
-
directoryPath:
|
|
20
|
-
auth:
|
|
21
|
-
version:
|
|
22
|
-
categories:
|
|
23
|
-
minimumSupportedRelease:
|
|
24
|
-
maximumSupportedRelease:
|
|
10
|
+
const I18nForPiece = zod_1.z.record(zod_1.z.string(), zod_1.z.record(zod_1.z.string(), zod_1.z.string())).optional();
|
|
11
|
+
exports.PieceBase = zod_1.z.object({
|
|
12
|
+
id: zod_1.z.string().optional(),
|
|
13
|
+
name: zod_1.z.string(),
|
|
14
|
+
displayName: zod_1.z.string(),
|
|
15
|
+
logoUrl: zod_1.z.string(),
|
|
16
|
+
description: zod_1.z.string(),
|
|
17
|
+
authors: zod_1.z.array(zod_1.z.string()),
|
|
18
|
+
platformId: zod_1.z.string().optional(),
|
|
19
|
+
directoryPath: zod_1.z.string().optional(),
|
|
20
|
+
auth: zod_1.z.union([authentication_1.PieceAuthProperty, zod_1.z.array(authentication_1.PieceAuthProperty)]).optional(),
|
|
21
|
+
version: zod_1.z.string(),
|
|
22
|
+
categories: zod_1.z.array(zod_1.z.nativeEnum(shared_1.PieceCategory)).optional(),
|
|
23
|
+
minimumSupportedRelease: zod_1.z.string().optional(),
|
|
24
|
+
maximumSupportedRelease: zod_1.z.string().optional(),
|
|
25
25
|
i18n: I18nForPiece,
|
|
26
26
|
});
|
|
27
|
-
exports.ActionBase =
|
|
28
|
-
name:
|
|
29
|
-
displayName:
|
|
30
|
-
description:
|
|
27
|
+
exports.ActionBase = zod_1.z.object({
|
|
28
|
+
name: zod_1.z.string(),
|
|
29
|
+
displayName: zod_1.z.string(),
|
|
30
|
+
description: zod_1.z.string(),
|
|
31
31
|
props: property_1.PiecePropertyMap,
|
|
32
|
-
requireAuth:
|
|
33
|
-
errorHandlingOptions:
|
|
32
|
+
requireAuth: zod_1.z.boolean(),
|
|
33
|
+
errorHandlingOptions: action_1.ErrorHandlingOptionsParam.optional(),
|
|
34
34
|
});
|
|
35
|
-
exports.TriggerBase =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
triggers: typebox_1.Type.Number(),
|
|
57
|
-
suggestedActions: typebox_1.Type.Optional(typebox_1.Type.Array(exports.TriggerBase)),
|
|
58
|
-
suggestedTriggers: typebox_1.Type.Optional(typebox_1.Type.Array(exports.ActionBase)),
|
|
59
|
-
})
|
|
60
|
-
]);
|
|
61
|
-
const PiecePackageMetadata = typebox_1.Type.Object({
|
|
62
|
-
projectUsage: typebox_1.Type.Number(),
|
|
63
|
-
tags: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
64
|
-
pieceType: typebox_1.Type.Enum(shared_1.PieceType),
|
|
65
|
-
packageType: typebox_1.Type.Enum(shared_1.PackageType),
|
|
66
|
-
platformId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
67
|
-
archiveId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
35
|
+
exports.TriggerBase = zod_1.z.object({
|
|
36
|
+
name: zod_1.z.string(),
|
|
37
|
+
displayName: zod_1.z.string(),
|
|
38
|
+
description: zod_1.z.string(),
|
|
39
|
+
props: property_1.PiecePropertyMap,
|
|
40
|
+
errorHandlingOptions: action_1.ErrorHandlingOptionsParam.optional(),
|
|
41
|
+
type: zod_1.z.nativeEnum(shared_1.TriggerStrategy),
|
|
42
|
+
sampleData: zod_1.z.unknown(),
|
|
43
|
+
handshakeConfiguration: zod_1.z.custom().optional(),
|
|
44
|
+
renewConfiguration: trigger_1.WebhookRenewConfiguration.optional(),
|
|
45
|
+
testStrategy: zod_1.z.nativeEnum(shared_1.TriggerTestStrategy),
|
|
46
|
+
});
|
|
47
|
+
exports.PieceMetadata = zod_1.z.object(Object.assign(Object.assign({}, exports.PieceBase.shape), { actions: zod_1.z.record(zod_1.z.string(), exports.ActionBase), triggers: zod_1.z.record(zod_1.z.string(), exports.TriggerBase) }));
|
|
48
|
+
exports.PieceMetadataSummary = zod_1.z.object(Object.assign(Object.assign({}, exports.PieceBase.shape), { actions: zod_1.z.number(), triggers: zod_1.z.number(), suggestedActions: zod_1.z.array(exports.TriggerBase).optional(), suggestedTriggers: zod_1.z.array(exports.ActionBase).optional() }));
|
|
49
|
+
const PiecePackageMetadata = zod_1.z.object({
|
|
50
|
+
projectUsage: zod_1.z.number(),
|
|
51
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
52
|
+
pieceType: zod_1.z.nativeEnum(shared_1.PieceType),
|
|
53
|
+
packageType: zod_1.z.nativeEnum(shared_1.PackageType),
|
|
54
|
+
platformId: zod_1.z.string().optional(),
|
|
55
|
+
archiveId: zod_1.z.string().optional(),
|
|
68
56
|
});
|
|
69
|
-
exports.PieceMetadataModel =
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
exports.PieceMetadataSummary,
|
|
75
|
-
PiecePackageMetadata
|
|
76
|
-
]);
|
|
77
|
-
exports.PiecePackageInformation = typebox_1.Type.Object({
|
|
78
|
-
name: typebox_1.Type.String(),
|
|
79
|
-
version: typebox_1.Type.String(),
|
|
57
|
+
exports.PieceMetadataModel = zod_1.z.object(Object.assign(Object.assign({}, exports.PieceMetadata.shape), PiecePackageMetadata.shape));
|
|
58
|
+
exports.PieceMetadataModelSummary = zod_1.z.object(Object.assign(Object.assign({}, exports.PieceMetadataSummary.shape), PiecePackageMetadata.shape));
|
|
59
|
+
exports.PiecePackageInformation = zod_1.z.object({
|
|
60
|
+
name: zod_1.z.string(),
|
|
61
|
+
version: zod_1.z.string(),
|
|
80
62
|
});
|
|
81
63
|
//# sourceMappingURL=piece-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"piece-metadata.js","sourceRoot":"","sources":["../../../src/lib/piece-metadata.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAC9C,+CAA8D;AAC9D,4CAA4D;AAC5D,8DAA8D;AAC9D
|
|
1
|
+
{"version":3,"file":"piece-metadata.js","sourceRoot":"","sources":["../../../src/lib/piece-metadata.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAC9C,+CAA8D;AAC9D,4CAA4D;AAC5D,8DAA8D;AAC9D,6BAAwB;AACxB,iDAA+J;AAG/J,MAAM,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,O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,OAAC,CAAC,MAAM,CAAC;IACpC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAS,CAAC;IAClC,WAAW,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAW,CAAC;IACtC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAA;AAGW,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,iCACrC,qBAAa,CAAC,KAAK,GACnB,oBAAoB,CAAC,KAAK,EAC7B,CAAA;AAGW,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,iCAC5C,4BAAoB,CAAC,KAAK,GAC1B,oBAAoB,CAAC,KAAK,EAC7B,CAAA;AAGW,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA"}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { TPropertyValue } from '../input/common';
|
|
3
3
|
import { PropertyType } from '../input/property-type';
|
|
4
4
|
import { BasePieceAuthSchema } from './common';
|
|
5
|
-
export declare const BasicAuthPropertyValue:
|
|
6
|
-
username:
|
|
7
|
-
password:
|
|
8
|
-
}>;
|
|
9
|
-
export type BasicAuthPropertyValue =
|
|
10
|
-
export declare const BasicAuthProperty:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
export declare const BasicAuthPropertyValue: z.ZodObject<{
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
password: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type BasicAuthPropertyValue = z.infer<typeof BasicAuthPropertyValue>;
|
|
10
|
+
export declare const BasicAuthProperty: z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<PropertyType.BASIC_AUTH>;
|
|
12
|
+
required: z.ZodBoolean;
|
|
13
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
14
|
+
username: z.ZodObject<{
|
|
15
|
+
displayName: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
password: z.ZodObject<{
|
|
19
|
+
displayName: z.ZodString;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
displayName: z.ZodString;
|
|
23
|
+
description: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
24
25
|
export type BasicAuthProperty = BasePieceAuthSchema<BasicAuthPropertyValue> & {
|
|
25
26
|
username: {
|
|
26
27
|
displayName: string;
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BasicAuthProperty = exports.BasicAuthPropertyValue = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../input/common");
|
|
6
6
|
const property_type_1 = require("../input/property-type");
|
|
7
7
|
const common_2 = require("./common");
|
|
8
|
-
exports.BasicAuthPropertyValue =
|
|
9
|
-
username:
|
|
10
|
-
password:
|
|
8
|
+
exports.BasicAuthPropertyValue = zod_1.z.object({
|
|
9
|
+
username: zod_1.z.string(),
|
|
10
|
+
password: zod_1.z.string(),
|
|
11
11
|
});
|
|
12
|
-
exports.BasicAuthProperty =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
password: typebox_1.Type.Object({
|
|
20
|
-
displayName: typebox_1.Type.String(),
|
|
21
|
-
description: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
22
|
-
})
|
|
23
|
-
}),
|
|
24
|
-
(0, common_1.TPropertyValue)(exports.BasicAuthPropertyValue, property_type_1.PropertyType.BASIC_AUTH)
|
|
25
|
-
]);
|
|
12
|
+
exports.BasicAuthProperty = zod_1.z.object(Object.assign(Object.assign(Object.assign({}, common_2.BasePieceAuthSchema.shape), { username: zod_1.z.object({
|
|
13
|
+
displayName: zod_1.z.string(),
|
|
14
|
+
description: zod_1.z.string().optional()
|
|
15
|
+
}), password: zod_1.z.object({
|
|
16
|
+
displayName: zod_1.z.string(),
|
|
17
|
+
description: zod_1.z.string().optional()
|
|
18
|
+
}) }), (0, common_1.TPropertyValue)(exports.BasicAuthPropertyValue, property_type_1.PropertyType.BASIC_AUTH).shape));
|
|
26
19
|
//# sourceMappingURL=basic-auth-prop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-auth-prop.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/basic-auth-prop.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"basic-auth-prop.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/basic-auth-prop.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAAiD;AACjD,0DAAsD;AACtD,qCAA+C;AAElC,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAIW,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,+CACpC,4BAAmB,CAAC,KAAK,KAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,EACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,KACC,IAAA,uBAAc,EAAC,8BAAsB,EAAE,4BAAY,CAAC,UAAU,CAAC,CAAC,KAAK,EACxE,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { ServerContext } from '../../context';
|
|
2
|
-
export declare const BasePieceAuthSchema:
|
|
3
|
-
displayName:
|
|
4
|
-
description:
|
|
5
|
-
}>;
|
|
3
|
+
export declare const BasePieceAuthSchema: z.ZodObject<{
|
|
4
|
+
displayName: z.ZodString;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
6
7
|
export type BasePieceAuthSchema<AuthValueSchema> = {
|
|
7
8
|
displayName: string;
|
|
8
9
|
description?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BasePieceAuthSchema = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports.BasePieceAuthSchema =
|
|
6
|
-
displayName:
|
|
7
|
-
description:
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.BasePieceAuthSchema = zod_1.z.object({
|
|
6
|
+
displayName: zod_1.z.string(),
|
|
7
|
+
description: zod_1.z.string().optional()
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/common.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/common.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAGX,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { TPropertyValue } from '../input/common';
|
|
2
3
|
import { PropertyType } from '../input/property-type';
|
|
3
4
|
import { LongTextProperty, ShortTextProperty } from '../input/text-property';
|
|
@@ -9,46 +10,52 @@ import { SecretTextProperty } from './secret-text-property';
|
|
|
9
10
|
import { BasePieceAuthSchema } from './common';
|
|
10
11
|
import { MarkDownProperty } from '../input/markdown-property';
|
|
11
12
|
export type CustomAuthProps = Record<string, ShortTextProperty<boolean> | LongTextProperty<boolean> | SecretTextProperty<boolean> | NumberProperty<boolean> | StaticDropdownProperty<unknown, boolean> | CheckboxProperty<boolean> | MarkDownProperty | StaticMultiSelectDropdownProperty<unknown, boolean>>;
|
|
12
|
-
export declare const CustomAuthProperty:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
displayName:
|
|
21
|
-
description:
|
|
22
|
-
}>,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}>;
|
|
13
|
+
export declare const CustomAuthProperty: z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<PropertyType.CUSTOM_AUTH>;
|
|
15
|
+
required: z.ZodBoolean;
|
|
16
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
17
|
+
props: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
|
|
19
|
+
required: z.ZodBoolean;
|
|
20
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
21
|
+
displayName: z.ZodString;
|
|
22
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<PropertyType.LONG_TEXT>;
|
|
25
|
+
required: z.ZodBoolean;
|
|
26
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
displayName: z.ZodString;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<PropertyType.NUMBER>;
|
|
31
|
+
required: z.ZodBoolean;
|
|
32
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
33
|
+
displayName: z.ZodString;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<PropertyType.CHECKBOX>;
|
|
37
|
+
required: z.ZodBoolean;
|
|
38
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
39
|
+
displayName: z.ZodString;
|
|
40
|
+
description: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
|
|
43
|
+
required: z.ZodBoolean;
|
|
44
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
45
|
+
options: z.ZodObject<{
|
|
46
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
48
|
+
options: z.ZodArray<z.ZodObject<{
|
|
49
|
+
label: z.ZodString;
|
|
50
|
+
value: z.ZodUnknown;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
displayName: z.ZodString;
|
|
54
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>]>>;
|
|
56
|
+
displayName: z.ZodString;
|
|
57
|
+
description: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
52
59
|
export type CustomAuthProperty<T extends CustomAuthProps> = BasePieceAuthSchema<StaticPropsValue<T>> & {
|
|
53
60
|
props: T;
|
|
54
61
|
} & TPropertyValue<StaticPropsValue<T>, PropertyType.CUSTOM_AUTH, true>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomAuthProperty = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../input/common");
|
|
6
6
|
const property_type_1 = require("../input/property-type");
|
|
7
7
|
const text_property_1 = require("../input/text-property");
|
|
@@ -9,18 +9,12 @@ const number_property_1 = require("../input/number-property");
|
|
|
9
9
|
const checkbox_property_1 = require("../input/checkbox-property");
|
|
10
10
|
const static_dropdown_1 = require("../input/dropdown/static-dropdown");
|
|
11
11
|
const common_2 = require("./common");
|
|
12
|
-
const CustomAuthProps =
|
|
12
|
+
const CustomAuthProps = zod_1.z.record(zod_1.z.string(), zod_1.z.union([
|
|
13
13
|
text_property_1.ShortTextProperty,
|
|
14
14
|
text_property_1.LongTextProperty,
|
|
15
15
|
number_property_1.NumberProperty,
|
|
16
16
|
checkbox_property_1.CheckboxProperty,
|
|
17
17
|
static_dropdown_1.StaticDropdownProperty,
|
|
18
18
|
]));
|
|
19
|
-
exports.CustomAuthProperty =
|
|
20
|
-
common_2.BasePieceAuthSchema,
|
|
21
|
-
typebox_1.Type.Object({
|
|
22
|
-
props: CustomAuthProps,
|
|
23
|
-
}),
|
|
24
|
-
(0, common_1.TPropertyValue)(typebox_1.Type.Unknown(), property_type_1.PropertyType.CUSTOM_AUTH)
|
|
25
|
-
]);
|
|
19
|
+
exports.CustomAuthProperty = zod_1.z.object(Object.assign(Object.assign(Object.assign({}, common_2.BasePieceAuthSchema.shape), { props: CustomAuthProps }), (0, common_1.TPropertyValue)(zod_1.z.unknown(), property_type_1.PropertyType.CUSTOM_AUTH).shape));
|
|
26
20
|
//# sourceMappingURL=custom-auth-prop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-auth-prop.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/custom-auth-prop.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"custom-auth-prop.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/custom-auth-prop.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAAiD;AACjD,0DAAsD;AACtD,0DAA6E;AAC7E,8DAA0D;AAC1D,kEAA8D;AAC9D,uEAA8G;AAG9G,qCAA+C;AAG/C,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC;IACnD,iCAAiB;IACjB,gCAAgB;IAChB,gCAAc;IACd,oCAAgB;IAChB,wCAAsB;CACvB,CAAC,CAAC,CAAC;AAcS,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,+CACrC,4BAAmB,CAAC,KAAK,KAC5B,KAAK,EAAE,eAAe,KACnB,IAAA,uBAAc,EAAC,OAAC,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,WAAW,CAAC,CAAC,KAAK,EAC9D,CAAA"}
|