@activepieces/piece-trust 0.0.1

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.
Files changed (61) hide show
  1. package/package.json +18 -0
  2. package/src/index.d.ts +5 -0
  3. package/src/index.d.ts.map +1 -0
  4. package/src/index.js +53 -0
  5. package/src/index.js.map +1 -0
  6. package/src/lib/actions/create-contact.d.ts +11 -0
  7. package/src/lib/actions/create-contact.d.ts.map +1 -0
  8. package/src/lib/actions/create-contact.js +64 -0
  9. package/src/lib/actions/create-contact.js.map +1 -0
  10. package/src/lib/actions/create-testimonial.d.ts +20 -0
  11. package/src/lib/actions/create-testimonial.d.ts.map +1 -0
  12. package/src/lib/actions/create-testimonial.js +127 -0
  13. package/src/lib/actions/create-testimonial.js.map +1 -0
  14. package/src/lib/actions/delete-contact.d.ts +7 -0
  15. package/src/lib/actions/delete-contact.d.ts.map +1 -0
  16. package/src/lib/actions/delete-contact.js +33 -0
  17. package/src/lib/actions/delete-contact.js.map +1 -0
  18. package/src/lib/actions/delete-testimonial.d.ts +7 -0
  19. package/src/lib/actions/delete-testimonial.d.ts.map +1 -0
  20. package/src/lib/actions/delete-testimonial.js +33 -0
  21. package/src/lib/actions/delete-testimonial.js.map +1 -0
  22. package/src/lib/actions/find-contact.d.ts +8 -0
  23. package/src/lib/actions/find-contact.d.ts.map +1 -0
  24. package/src/lib/actions/find-contact.js +51 -0
  25. package/src/lib/actions/find-contact.js.map +1 -0
  26. package/src/lib/actions/find-testimonial.d.ts +7 -0
  27. package/src/lib/actions/find-testimonial.d.ts.map +1 -0
  28. package/src/lib/actions/find-testimonial.js +33 -0
  29. package/src/lib/actions/find-testimonial.js.map +1 -0
  30. package/src/lib/actions/update-contact.d.ts +12 -0
  31. package/src/lib/actions/update-contact.d.ts.map +1 -0
  32. package/src/lib/actions/update-contact.js +68 -0
  33. package/src/lib/actions/update-contact.js.map +1 -0
  34. package/src/lib/actions/update-testimonial.d.ts +21 -0
  35. package/src/lib/actions/update-testimonial.d.ts.map +1 -0
  36. package/src/lib/actions/update-testimonial.js +123 -0
  37. package/src/lib/actions/update-testimonial.js.map +1 -0
  38. package/src/lib/actions/upload-image.d.ts +7 -0
  39. package/src/lib/actions/upload-image.d.ts.map +1 -0
  40. package/src/lib/actions/upload-image.js +44 -0
  41. package/src/lib/actions/upload-image.js.map +1 -0
  42. package/src/lib/actions/upload-small-video.d.ts +7 -0
  43. package/src/lib/actions/upload-small-video.d.ts.map +1 -0
  44. package/src/lib/actions/upload-small-video.js +44 -0
  45. package/src/lib/actions/upload-small-video.js.map +1 -0
  46. package/src/lib/actions/upload-video.d.ts +7 -0
  47. package/src/lib/actions/upload-video.d.ts.map +1 -0
  48. package/src/lib/actions/upload-video.js +44 -0
  49. package/src/lib/actions/upload-video.js.map +1 -0
  50. package/src/lib/auth.d.ts +5 -0
  51. package/src/lib/auth.d.ts.map +1 -0
  52. package/src/lib/auth.js +41 -0
  53. package/src/lib/auth.js.map +1 -0
  54. package/src/lib/common/client.d.ts +10 -0
  55. package/src/lib/common/client.d.ts.map +1 -0
  56. package/src/lib/common/client.js +23 -0
  57. package/src/lib/common/client.js.map +1 -0
  58. package/src/lib/triggers/new-testimonial.d.ts +15 -0
  59. package/src/lib/triggers/new-testimonial.d.ts.map +1 -0
  60. package/src/lib/triggers/new-testimonial.js +67 -0
  61. package/src/lib/triggers/new-testimonial.js.map +1 -0
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@activepieces/piece-trust",
3
+ "version": "0.0.1",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "dependencies": {
8
+ "@activepieces/pieces-common": "0.12.3",
9
+ "@activepieces/pieces-framework": "0.30.0",
10
+ "@activepieces/shared": "0.86.0",
11
+ "form-data": "4.0.0",
12
+ "tslib": "2.6.2"
13
+ },
14
+ "scripts": {
15
+ "build": "tsc -p tsconfig.lib.json && cp package.json dist/",
16
+ "lint": "eslint 'src/**/*.ts'"
17
+ }
18
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export declare const trust: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,KAAK;;;GA6BhB,CAAC"}
package/src/index.js ADDED
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.trust = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const shared_1 = require("@activepieces/shared");
8
+ const auth_1 = require("./lib/auth");
9
+ const create_testimonial_1 = require("./lib/actions/create-testimonial");
10
+ const update_testimonial_1 = require("./lib/actions/update-testimonial");
11
+ const delete_testimonial_1 = require("./lib/actions/delete-testimonial");
12
+ const find_testimonial_1 = require("./lib/actions/find-testimonial");
13
+ const create_contact_1 = require("./lib/actions/create-contact");
14
+ const update_contact_1 = require("./lib/actions/update-contact");
15
+ const delete_contact_1 = require("./lib/actions/delete-contact");
16
+ const find_contact_1 = require("./lib/actions/find-contact");
17
+ const upload_image_1 = require("./lib/actions/upload-image");
18
+ const upload_video_1 = require("./lib/actions/upload-video");
19
+ const upload_small_video_1 = require("./lib/actions/upload-small-video");
20
+ const new_testimonial_1 = require("./lib/triggers/new-testimonial");
21
+ exports.trust = (0, pieces_framework_1.createPiece)({
22
+ displayName: 'Trust',
23
+ description: 'Collect and manage video and text testimonials from your customers.',
24
+ minimumSupportedRelease: '0.36.1',
25
+ logoUrl: 'https://cdn.activepieces.com/pieces/trust.png',
26
+ categories: [shared_1.PieceCategory.MARKETING],
27
+ auth: auth_1.trustAuth,
28
+ authors: ['sanket-a11y'],
29
+ actions: [
30
+ create_testimonial_1.createTestimonialAction,
31
+ update_testimonial_1.updateTestimonialAction,
32
+ delete_testimonial_1.deleteTestimonialAction,
33
+ find_testimonial_1.findTestimonialAction,
34
+ create_contact_1.createContactAction,
35
+ update_contact_1.updateContactAction,
36
+ delete_contact_1.deleteContactAction,
37
+ find_contact_1.findContactAction,
38
+ upload_image_1.uploadImageAction,
39
+ upload_video_1.uploadVideoAction,
40
+ upload_small_video_1.uploadSmallVideoAction,
41
+ (0, pieces_common_1.createCustomApiCallAction)({
42
+ baseUrl: () => 'https://api.usetrust.app/v1',
43
+ auth: auth_1.trustAuth,
44
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
45
+ return ({
46
+ Authorization: `Basic ${Buffer.from(`apikey:${auth.props.api_key}`).toString('base64')}`,
47
+ });
48
+ }),
49
+ }),
50
+ ],
51
+ triggers: [new_testimonial_1.newTestimonialTrigger],
52
+ });
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,+DAAwE;AACxE,iDAAqD;AACrD,qCAAuC;AACvC,yEAA2E;AAC3E,yEAA2E;AAC3E,yEAA2E;AAC3E,qEAAuE;AACvE,iEAAmE;AACnE,iEAAmE;AACnE,iEAAmE;AACnE,6DAA+D;AAC/D,6DAA+D;AAC/D,6DAA+D;AAC/D,yEAA0E;AAC1E,oEAAuE;AAE1D,QAAA,KAAK,GAAG,IAAA,8BAAW,EAAC;IAC/B,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,qEAAqE;IAClF,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,+CAA+C;IACxD,UAAU,EAAE,CAAC,sBAAa,CAAC,SAAS,CAAC;IACrC,IAAI,EAAE,gBAAS;IACf,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,OAAO,EAAE;QACP,4CAAuB;QACvB,4CAAuB;QACvB,4CAAuB;QACvB,wCAAqB;QACrB,oCAAmB;QACnB,oCAAmB;QACnB,oCAAmB;QACnB,gCAAiB;QACjB,gCAAiB;QACjB,gCAAiB;QACjB,2CAAsB;QACtB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,6BAA6B;YAC5C,IAAI,EAAE,gBAAS;YACf,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;iBACzF,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,uCAAqB,CAAC;CAClC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const createContactAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>, {
5
+ firstname: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ lastname: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
+ imageUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
+ }>;
11
+ //# sourceMappingURL=create-contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-contact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;EAkD9B,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createContactAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const client_1 = require("../common/client");
9
+ exports.createContactAction = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.trustAuth,
11
+ name: 'create_contact',
12
+ displayName: 'Create Contact',
13
+ description: 'Creates a new contact in the system.',
14
+ props: {
15
+ firstname: pieces_framework_1.Property.ShortText({
16
+ displayName: 'First Name',
17
+ required: false,
18
+ }),
19
+ lastname: pieces_framework_1.Property.ShortText({
20
+ displayName: 'Last Name',
21
+ required: false,
22
+ }),
23
+ email: pieces_framework_1.Property.ShortText({
24
+ displayName: 'Email',
25
+ required: false,
26
+ }),
27
+ phone: pieces_framework_1.Property.ShortText({
28
+ displayName: 'Phone Number',
29
+ required: false,
30
+ }),
31
+ imageUrl: pieces_framework_1.Property.ShortText({
32
+ displayName: 'Profile Image URL',
33
+ description: 'URL of the contact profile image.',
34
+ required: false,
35
+ }),
36
+ },
37
+ run(context) {
38
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
39
+ const { props } = context.auth;
40
+ const p = context.propsValue;
41
+ const body = {
42
+ workspaceId: props.workspace_id,
43
+ };
44
+ if (p.firstname)
45
+ body['firstname'] = p.firstname;
46
+ if (p.lastname)
47
+ body['lastname'] = p.lastname;
48
+ if (p.email)
49
+ body['email'] = p.email;
50
+ if (p.phone)
51
+ body['phone'] = p.phone;
52
+ if (p.imageUrl)
53
+ body['imageUrl'] = p.imageUrl;
54
+ const response = yield (0, client_1.trustApiRequest)({
55
+ apiKey: props.api_key,
56
+ method: pieces_common_1.HttpMethod.POST,
57
+ path: '/contacts',
58
+ body,
59
+ });
60
+ return response.body;
61
+ });
62
+ },
63
+ });
64
+ //# sourceMappingURL=create-contact.js.map
@@ -0,0 +1 @@
1
+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C,GAAG,CAAC,CAAC,QAAQ,CAAC;YAC9C,IAAI,CAAC,CAAC,KAAK;gBAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;YACrC,IAAI,CAAC,CAAC,KAAK;gBAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;YACrC,IAAI,CAAC,CAAC,QAAQ;gBAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;YAE9C,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACrC,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI;aACL,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare const createTestimonialAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>, {
5
+ firstname: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ lastname: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
+ subtitle: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
+ company: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
+ testimonialText: import("@activepieces/pieces-framework").LongTextProperty<false>;
12
+ stars: import("@activepieces/pieces-framework").NumberProperty<false>;
13
+ imageUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
+ videoUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
15
+ externalVideoHtml: import("@activepieces/pieces-framework").LongTextProperty<false>;
16
+ published: import("@activepieces/pieces-framework").CheckboxProperty<false>;
17
+ gaveConsent: import("@activepieces/pieces-framework").CheckboxProperty<false>;
18
+ consentDateTime: import("@activepieces/pieces-framework").DateTimeProperty<false>;
19
+ }>;
20
+ //# sourceMappingURL=create-testimonial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-testimonial.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-testimonial.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAuGlC,CAAC"}
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTestimonialAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const client_1 = require("../common/client");
9
+ exports.createTestimonialAction = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.trustAuth,
11
+ name: 'create_testimonial',
12
+ displayName: 'Create Testimonial',
13
+ description: 'Creates a new testimonial in the system.',
14
+ props: {
15
+ firstname: pieces_framework_1.Property.ShortText({
16
+ displayName: 'First Name',
17
+ required: false,
18
+ }),
19
+ lastname: pieces_framework_1.Property.ShortText({
20
+ displayName: 'Last Name',
21
+ required: false,
22
+ }),
23
+ email: pieces_framework_1.Property.ShortText({
24
+ displayName: 'Email',
25
+ required: false,
26
+ }),
27
+ title: pieces_framework_1.Property.ShortText({
28
+ displayName: 'Job Title',
29
+ description: "The testimonial author's job title (e.g. CEO, Marketing Manager).",
30
+ required: false,
31
+ }),
32
+ subtitle: pieces_framework_1.Property.ShortText({
33
+ displayName: 'Subtitle',
34
+ required: false,
35
+ }),
36
+ company: pieces_framework_1.Property.ShortText({
37
+ displayName: 'Company',
38
+ required: false,
39
+ }),
40
+ testimonialText: pieces_framework_1.Property.LongText({
41
+ displayName: 'Testimonial Text',
42
+ description: 'The written testimonial content.',
43
+ required: false,
44
+ }),
45
+ stars: pieces_framework_1.Property.Number({
46
+ displayName: 'Star Rating',
47
+ description: 'Rating from 1 to 5.',
48
+ required: false,
49
+ }),
50
+ imageUrl: pieces_framework_1.Property.ShortText({
51
+ displayName: 'Profile Image URL',
52
+ description: 'URL of the author profile image.',
53
+ required: false,
54
+ }),
55
+ videoUrl: pieces_framework_1.Property.ShortText({
56
+ displayName: 'Video URL',
57
+ description: 'URL of the testimonial video.',
58
+ required: false,
59
+ }),
60
+ externalVideoHtml: pieces_framework_1.Property.LongText({
61
+ displayName: 'External Video HTML',
62
+ description: 'Embed HTML for an external video (e.g. YouTube or Vimeo embed code).',
63
+ required: false,
64
+ }),
65
+ published: pieces_framework_1.Property.Checkbox({
66
+ displayName: 'Published',
67
+ description: 'Whether this testimonial is publicly visible.',
68
+ required: false,
69
+ defaultValue: false,
70
+ }),
71
+ gaveConsent: pieces_framework_1.Property.Checkbox({
72
+ displayName: 'Gave Consent',
73
+ description: 'Whether the author gave consent to publish this testimonial.',
74
+ required: false,
75
+ defaultValue: false,
76
+ }),
77
+ consentDateTime: pieces_framework_1.Property.DateTime({
78
+ displayName: 'Consent Date & Time',
79
+ required: false,
80
+ }),
81
+ },
82
+ run(context) {
83
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
84
+ const { props } = context.auth;
85
+ const p = context.propsValue;
86
+ const body = {
87
+ workspaceId: props.workspace_id,
88
+ };
89
+ if (p.firstname)
90
+ body['firstname'] = p.firstname;
91
+ if (p.lastname)
92
+ body['lastname'] = p.lastname;
93
+ if (p.email)
94
+ body['email'] = p.email;
95
+ if (p.title)
96
+ body['title'] = p.title;
97
+ if (p.subtitle)
98
+ body['subtitle'] = p.subtitle;
99
+ if (p.company)
100
+ body['company'] = p.company;
101
+ if (p.testimonialText)
102
+ body['testimonialText'] = p.testimonialText;
103
+ if (p.stars !== undefined && p.stars !== null)
104
+ body['stars'] = p.stars;
105
+ if (p.imageUrl)
106
+ body['imageUrl'] = p.imageUrl;
107
+ if (p.videoUrl)
108
+ body['videoUrl'] = p.videoUrl;
109
+ if (p.externalVideoHtml)
110
+ body['externalVideoHtml'] = p.externalVideoHtml;
111
+ if (p.published !== undefined)
112
+ body['published'] = p.published;
113
+ if (p.gaveConsent !== undefined)
114
+ body['gaveConsent'] = p.gaveConsent;
115
+ if (p.consentDateTime)
116
+ body['consentDateTime'] = p.consentDateTime;
117
+ const response = yield (0, client_1.trustApiRequest)({
118
+ apiKey: props.api_key,
119
+ method: pieces_common_1.HttpMethod.POST,
120
+ path: '/testimonial',
121
+ body,
122
+ });
123
+ return response.body;
124
+ });
125
+ },
126
+ });
127
+ //# sourceMappingURL=create-testimonial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-testimonial.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-testimonial.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,kCAAoC;AACpC,6CAAmD;AAEtC,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,0CAA0C;IACvD,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,mEAAmE;YAChF,QAAQ,EAAE,KAAK;SAChB,CAAC;Q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UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;YAC9C,IAAI,CAAC,CAAC,iBAAiB;gBAAE,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAC;YACzE,IAAI,CAAC,CAAC,SAAS,KAAK,SAAS;gBAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC;YAC/D,IAAI,CAAC,CAAC,WAAW,KAAK,SAAS;gBAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC;YACrE,IAAI,CAAC,CAAC,eAAe;gBAAE,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,eAAe,CAAC;YACnE,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACrC,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const deleteContactAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>, {
5
+ contactId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
+ }>;
7
+ //# sourceMappingURL=delete-contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-contact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;EAqB9B,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteContactAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const client_1 = require("../common/client");
9
+ exports.deleteContactAction = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.trustAuth,
11
+ name: 'delete_contact',
12
+ displayName: 'Delete Contact',
13
+ description: 'Deletes a contact by ID.',
14
+ props: {
15
+ contactId: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Contact ID',
17
+ description: 'The ID of the contact to delete.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { props } = context.auth;
24
+ const response = yield (0, client_1.trustApiRequest)({
25
+ apiKey: props.api_key,
26
+ method: pieces_common_1.HttpMethod.DELETE,
27
+ path: `/contacts/${context.propsValue.contactId}`,
28
+ });
29
+ return response.body;
30
+ });
31
+ },
32
+ });
33
+ //# sourceMappingURL=delete-contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-contact.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-contact.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,kCAAoC;AACpC,6CAAmD;AAEtC,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAC/B,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACrC,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,IAAI,EAAE,aAAa,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE;aAClD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const deleteTestimonialAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>, {
5
+ testimonialId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
+ }>;
7
+ //# sourceMappingURL=delete-testimonial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-testimonial.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-testimonial.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;EAqBlC,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteTestimonialAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const client_1 = require("../common/client");
9
+ exports.deleteTestimonialAction = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.trustAuth,
11
+ name: 'delete_testimonial',
12
+ displayName: 'Delete Testimonial',
13
+ description: 'Deletes a testimonial by ID.',
14
+ props: {
15
+ testimonialId: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Testimonial ID',
17
+ description: 'The ID of the testimonial to delete.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { props } = context.auth;
24
+ const response = yield (0, client_1.trustApiRequest)({
25
+ apiKey: props.api_key,
26
+ method: pieces_common_1.HttpMethod.DELETE,
27
+ path: `/testimonial/${context.propsValue.testimonialId}`,
28
+ });
29
+ return response.body;
30
+ });
31
+ },
32
+ });
33
+ //# sourceMappingURL=delete-testimonial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-testimonial.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-testimonial.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,kCAAoC;AACpC,6CAAmD;AAEtC,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,8BAA8B;IAC3C,KAAK,EAAE;QACL,aAAa,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAChC,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAC/B,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACrC,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,IAAI,EAAE,gBAAgB,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE;aACzD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const findContactAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>, {
5
+ contactId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ }>;
8
+ //# sourceMappingURL=find-contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-contact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;;;;;EA0C5B,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findContactAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const client_1 = require("../common/client");
9
+ exports.findContactAction = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.trustAuth,
11
+ name: 'find_contact',
12
+ displayName: 'Find Contact',
13
+ description: 'Finds a contact by ID or email address.',
14
+ props: {
15
+ contactId: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Contact ID',
17
+ description: 'The ID of the contact to find. Provide either Contact ID or Email — ID takes priority.',
18
+ required: false,
19
+ }),
20
+ email: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Email',
22
+ description: 'Search for a contact by email address. Used only if Contact ID is not provided.',
23
+ required: false,
24
+ }),
25
+ },
26
+ run(context) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const { props } = context.auth;
29
+ const { contactId, email } = context.propsValue;
30
+ if (!contactId && !email) {
31
+ throw new Error('Provide either a Contact ID or an Email to find a contact.');
32
+ }
33
+ if (contactId) {
34
+ const response = yield (0, client_1.trustApiRequest)({
35
+ apiKey: props.api_key,
36
+ method: pieces_common_1.HttpMethod.GET,
37
+ path: `/contacts/${contactId}`,
38
+ });
39
+ return response.body;
40
+ }
41
+ const response = yield (0, client_1.trustApiRequest)({
42
+ apiKey: props.api_key,
43
+ method: pieces_common_1.HttpMethod.GET,
44
+ path: '/contacts',
45
+ queryParams: { email: email },
46
+ });
47
+ return response.body;
48
+ });
49
+ },
50
+ });
51
+ //# sourceMappingURL=find-contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-contact.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-contact.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,kCAAoC;AACpC,6CAAmD;AAEtC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,yCAAyC;IACtD,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,wFAAwF;YACrG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,iFAAiF;YAC9F,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAC/B,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEhD,IAAI,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;YAChF,CAAC;YAED,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;oBACrC,MAAM,EAAE,KAAK,CAAC,OAAO;oBACrB,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,IAAI,EAAE,aAAa,SAAS,EAAE;iBAC/B,CAAC,CAAC;gBACH,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACrC,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,EAAE,KAAK,EAAE,KAAe,EAAE;aACxC,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const findTestimonialAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>, {
5
+ testimonialId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
+ }>;
7
+ //# sourceMappingURL=find-testimonial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-testimonial.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-testimonial.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;EAqBhC,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findTestimonialAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const client_1 = require("../common/client");
9
+ exports.findTestimonialAction = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.trustAuth,
11
+ name: 'find_testimonial',
12
+ displayName: 'Find Testimonial',
13
+ description: 'Finds a testimonial by ID.',
14
+ props: {
15
+ testimonialId: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Testimonial ID',
17
+ description: 'The ID of the testimonial to retrieve.',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const { props } = context.auth;
24
+ const response = yield (0, client_1.trustApiRequest)({
25
+ apiKey: props.api_key,
26
+ method: pieces_common_1.HttpMethod.GET,
27
+ path: `/testimonial/${context.propsValue.testimonialId}`,
28
+ });
29
+ return response.body;
30
+ });
31
+ },
32
+ });
33
+ //# sourceMappingURL=find-testimonial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-testimonial.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-testimonial.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,kCAAoC;AACpC,6CAAmD;AAEtC,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,4BAA4B;IACzC,KAAK,EAAE;QACL,aAAa,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAChC,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAC/B,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACrC,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,gBAAgB,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE;aACzD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const updateContactAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ workspace_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
+ }>, {
5
+ contactId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
+ firstname: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ lastname: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
+ phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
+ imageUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
+ }>;
12
+ //# sourceMappingURL=update-contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-contact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;;EAuD9B,CAAC"}