@activepieces/piece-gmail 0.9.6 → 0.10.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 +10 -16
- package/src/lib/actions/search-email-action.d.ts +1 -1
- package/src/lib/common/props.d.ts +1 -1
- package/src/lib/common/props.js +2 -0
- package/src/lib/common/props.js.map +1 -1
- package/src/lib/triggers/new-email.d.ts +3 -3
- package/src/lib/triggers/new-labeled-email.d.ts +12 -33
package/package.json
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-gmail",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "0.34.11",
|
|
6
|
-
"axios": "1.
|
|
6
|
+
"axios": "1.13.1",
|
|
7
7
|
"axios-retry": "4.4.1",
|
|
8
8
|
"dayjs": "1.11.9",
|
|
9
9
|
"deepmerge-ts": "7.1.0",
|
|
10
|
+
"form-data": "4.0.4",
|
|
10
11
|
"googleapis": "129.0.0",
|
|
11
12
|
"mailparser": "3.7.5",
|
|
12
13
|
"mime-types": "2.1.35",
|
|
13
14
|
"nanoid": "3.3.8",
|
|
14
|
-
"nodemailer": "7.0.
|
|
15
|
+
"nodemailer": "7.0.11",
|
|
15
16
|
"semver": "7.6.0",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"@activepieces/pieces-
|
|
19
|
-
"@activepieces/
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"overrides": {
|
|
23
|
-
"@tryfabric/martian": {
|
|
24
|
-
"@notionhq/client": "$@notionhq/client"
|
|
25
|
-
},
|
|
26
|
-
"vite": {
|
|
27
|
-
"rollup": "npm:@rollup/wasm-node"
|
|
28
|
-
}
|
|
17
|
+
"socket.io-client": "4.8.1",
|
|
18
|
+
"zod": "4.1.13",
|
|
19
|
+
"@activepieces/pieces-common": "0.11.0",
|
|
20
|
+
"@activepieces/pieces-framework": "0.23.0",
|
|
21
|
+
"@activepieces/shared": "0.30.4",
|
|
22
|
+
"tslib": "2.6.2"
|
|
29
23
|
},
|
|
30
24
|
"resolutions": {
|
|
31
25
|
"rollup": "npm:@rollup/wasm-node"
|
|
@@ -3,6 +3,6 @@ export declare const gmailSearchMail: import("@activepieces/pieces-framework").I
|
|
|
3
3
|
subject: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
4
|
from: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
to: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false
|
|
6
|
+
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
|
|
7
7
|
category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
8
8
|
}>;
|
|
@@ -4,6 +4,6 @@ export declare const GmailProps: {
|
|
|
4
4
|
to: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
subject: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
6
|
category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
-
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false
|
|
7
|
+
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
|
|
8
8
|
unread: (required?: boolean) => import("@activepieces/pieces-framework").CheckboxProperty<true> | import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
9
9
|
};
|
package/src/lib/common/props.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.GmailProps = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const data_1 = require("./data");
|
|
7
|
+
const __1 = require("../..");
|
|
7
8
|
exports.GmailProps = {
|
|
8
9
|
from: pieces_framework_1.Property.ShortText({
|
|
9
10
|
displayName: 'Email sender',
|
|
@@ -41,6 +42,7 @@ exports.GmailProps = {
|
|
|
41
42
|
},
|
|
42
43
|
}),
|
|
43
44
|
label: pieces_framework_1.Property.Dropdown({
|
|
45
|
+
auth: __1.gmailAuth,
|
|
44
46
|
displayName: 'Label',
|
|
45
47
|
description: 'Optional filteration, leave unselected to filter based on the email label',
|
|
46
48
|
required: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/gmail/src/lib/common/props.ts"],"names":[],"mappings":";;;;AAAA,qEAA+E;AAC/E,iCAAuC;
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/gmail/src/lib/common/props.ts"],"names":[],"mappings":";;;;AAAA,qEAA+E;AAC/E,iCAAuC;AAEvC,6BAAkC;AAErB,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;QACvB,WAAW,EAAE,cAAc;QAC3B,WAAW,EACT,uEAAuE;QACzE,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,EAAE;KACjB,CAAC;IACF,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;QACrB,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EACT,0EAA0E;QAC5E,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,EAAE;KACjB,CAAC;IACF,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,mBAAmB;QAChC,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,EAAE;KACjB,CAAC;IACF,QAAQ,EAAE,2BAAQ,CAAC,cAAc,CAAC;QAChC,WAAW,EAAE,UAAU;QACvB,WAAW,EACT,8EA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,CAAC;aACJ,CAAC;QACJ,CAAC,CAAA;KACF,CAAC;IACF,MAAM,EAAE,CAAC,QAAQ,GAAG,KAAK,EAAE,EAAE,CAC3B,2BAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,qCAAqC;QAClD,QAAQ;QACR,YAAY,EAAE,KAAK;KACpB,CAAC;CACL,CAAC"}
|
|
@@ -4,18 +4,18 @@ export declare const gmailNewEmailTrigger: import("@activepieces/pieces-framewor
|
|
|
4
4
|
subject: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
from: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
6
|
to: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false
|
|
7
|
+
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
|
|
8
8
|
category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
9
9
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
10
10
|
subject: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
11
|
from: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
12
|
to: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false
|
|
13
|
+
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
|
|
14
14
|
category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
15
15
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
16
16
|
subject: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
17
17
|
from: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
18
|
to: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
19
|
-
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false
|
|
19
|
+
label: import("@activepieces/pieces-framework").DropdownProperty<GmailLabel, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
|
|
20
20
|
category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
21
21
|
}>;
|
|
@@ -4,19 +4,12 @@ export declare const gmailNewLabeledEmailTrigger: import("@activepieces/pieces-f
|
|
|
4
4
|
required: true;
|
|
5
5
|
description?: string | undefined;
|
|
6
6
|
displayName: string;
|
|
7
|
+
auth: import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>;
|
|
7
8
|
refreshers: string[];
|
|
8
9
|
refreshOnSearch?: boolean;
|
|
9
|
-
options: (propsValue: Record<string, unknown
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
defaultValue?: unknown;
|
|
13
|
-
} | {
|
|
14
|
-
required: true;
|
|
15
|
-
description?: string | undefined;
|
|
16
|
-
displayName: string;
|
|
17
|
-
refreshers: string[];
|
|
18
|
-
refreshOnSearch?: boolean;
|
|
19
|
-
options: (propsValue: Record<string, unknown>, ctx: import("@activepieces/pieces-framework").PropertyContext) => Promise<import("@activepieces/pieces-framework").DropdownState<import("../common/models").GmailLabel>>;
|
|
10
|
+
options: (propsValue: Record<string, unknown> & {
|
|
11
|
+
auth?: import("dist/packages/shared/src").OAuth2ConnectionValueWithApp | undefined;
|
|
12
|
+
}, ctx: import("@activepieces/pieces-framework").PropertyContext) => Promise<import("@activepieces/pieces-framework").DropdownState<import("../common/models").GmailLabel>>;
|
|
20
13
|
valueSchema: import("../common/models").GmailLabel;
|
|
21
14
|
type: import("@activepieces/pieces-framework").PropertyType.DROPDOWN;
|
|
22
15
|
defaultValue?: unknown;
|
|
@@ -26,19 +19,12 @@ export declare const gmailNewLabeledEmailTrigger: import("@activepieces/pieces-f
|
|
|
26
19
|
required: true;
|
|
27
20
|
description?: string | undefined;
|
|
28
21
|
displayName: string;
|
|
22
|
+
auth: import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>;
|
|
29
23
|
refreshers: string[];
|
|
30
24
|
refreshOnSearch?: boolean;
|
|
31
|
-
options: (propsValue: Record<string, unknown
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
defaultValue?: unknown;
|
|
35
|
-
} | {
|
|
36
|
-
required: true;
|
|
37
|
-
description?: string | undefined;
|
|
38
|
-
displayName: string;
|
|
39
|
-
refreshers: string[];
|
|
40
|
-
refreshOnSearch?: boolean;
|
|
41
|
-
options: (propsValue: Record<string, unknown>, ctx: import("@activepieces/pieces-framework").PropertyContext) => Promise<import("@activepieces/pieces-framework").DropdownState<import("../common/models").GmailLabel>>;
|
|
25
|
+
options: (propsValue: Record<string, unknown> & {
|
|
26
|
+
auth?: import("dist/packages/shared/src").OAuth2ConnectionValueWithApp | undefined;
|
|
27
|
+
}, ctx: import("@activepieces/pieces-framework").PropertyContext) => Promise<import("@activepieces/pieces-framework").DropdownState<import("../common/models").GmailLabel>>;
|
|
42
28
|
valueSchema: import("../common/models").GmailLabel;
|
|
43
29
|
type: import("@activepieces/pieces-framework").PropertyType.DROPDOWN;
|
|
44
30
|
defaultValue?: unknown;
|
|
@@ -48,19 +34,12 @@ export declare const gmailNewLabeledEmailTrigger: import("@activepieces/pieces-f
|
|
|
48
34
|
required: true;
|
|
49
35
|
description?: string | undefined;
|
|
50
36
|
displayName: string;
|
|
37
|
+
auth: import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>;
|
|
51
38
|
refreshers: string[];
|
|
52
39
|
refreshOnSearch?: boolean;
|
|
53
|
-
options: (propsValue: Record<string, unknown
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
defaultValue?: unknown;
|
|
57
|
-
} | {
|
|
58
|
-
required: true;
|
|
59
|
-
description?: string | undefined;
|
|
60
|
-
displayName: string;
|
|
61
|
-
refreshers: string[];
|
|
62
|
-
refreshOnSearch?: boolean;
|
|
63
|
-
options: (propsValue: Record<string, unknown>, ctx: import("@activepieces/pieces-framework").PropertyContext) => Promise<import("@activepieces/pieces-framework").DropdownState<import("../common/models").GmailLabel>>;
|
|
40
|
+
options: (propsValue: Record<string, unknown> & {
|
|
41
|
+
auth?: import("dist/packages/shared/src").OAuth2ConnectionValueWithApp | undefined;
|
|
42
|
+
}, ctx: import("@activepieces/pieces-framework").PropertyContext) => Promise<import("@activepieces/pieces-framework").DropdownState<import("../common/models").GmailLabel>>;
|
|
64
43
|
valueSchema: import("../common/models").GmailLabel;
|
|
65
44
|
type: import("@activepieces/pieces-framework").PropertyType.DROPDOWN;
|
|
66
45
|
defaultValue?: unknown;
|