@taskmagic/apps-pdfmonkey 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.
- package/README.md +3 -0
- package/package.json +48 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +37 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/delete-document.d.ts +3 -0
- package/src/lib/actions/delete-document.js +33 -0
- package/src/lib/actions/delete-document.js.map +1 -0
- package/src/lib/actions/find-document.d.ts +3 -0
- package/src/lib/actions/find-document.js +25 -0
- package/src/lib/actions/find-document.js.map +1 -0
- package/src/lib/actions/generate-document.d.ts +7 -0
- package/src/lib/actions/generate-document.js +68 -0
- package/src/lib/actions/generate-document.js.map +1 -0
- package/src/lib/common/auth.d.ts +1 -0
- package/src/lib/common/auth.js +27 -0
- package/src/lib/common/auth.js.map +1 -0
- package/src/lib/common/client.d.ts +3 -0
- package/src/lib/common/client.js +29 -0
- package/src/lib/common/client.js.map +1 -0
- package/src/lib/common/props.d.ts +2 -0
- package/src/lib/common/props.js +92 -0
- package/src/lib/common/props.js.map +1 -0
- package/src/lib/triggers/document-generated.d.ts +2 -0
- package/src/lib/triggers/document-generated.js +101 -0
- package/src/lib/triggers/document-generated.js.map +1 -0
package/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taskmagic/apps-pdfmonkey",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@anthropic-ai/sdk": "0.33.1",
|
|
6
|
+
"@sinclair/typebox": "0.34.11",
|
|
7
|
+
"axios": "1.17.0",
|
|
8
|
+
"axios-retry": "4.4.1",
|
|
9
|
+
"dayjs": "1.11.9",
|
|
10
|
+
"deepmerge-ts": "7.1.0",
|
|
11
|
+
"mime-types": "2.1.35",
|
|
12
|
+
"nanoid": "3.3.8",
|
|
13
|
+
"openai": "4.67.1",
|
|
14
|
+
"replicate": "0.34.1",
|
|
15
|
+
"semver": "7.6.0",
|
|
16
|
+
"zod": "3.25.76",
|
|
17
|
+
"@taskmagic/pieces-common": "0.4.4",
|
|
18
|
+
"@taskmagic/pieces-framework": "0.7.46",
|
|
19
|
+
"@taskmagic/shared": "0.10.171",
|
|
20
|
+
"tslib": "1.14.1"
|
|
21
|
+
},
|
|
22
|
+
"overrides": {
|
|
23
|
+
"cross-spawn": "7.0.6",
|
|
24
|
+
"elliptic": "^6.6.1",
|
|
25
|
+
"fast-xml-parser": "^4.4.1",
|
|
26
|
+
"protobufjs": "^7.5.5",
|
|
27
|
+
"tmp": "^0.2.4",
|
|
28
|
+
"koa": "^2.16.4",
|
|
29
|
+
"picomatch": "^4.0.4",
|
|
30
|
+
"langsmith": "^0.6.0",
|
|
31
|
+
"serialize-javascript": "^6.0.2",
|
|
32
|
+
"elevenlabs": {
|
|
33
|
+
"form-data": "^4.0.4"
|
|
34
|
+
},
|
|
35
|
+
"@tryfabric/martian": {
|
|
36
|
+
"@notionhq/client": "$@notionhq/client"
|
|
37
|
+
},
|
|
38
|
+
"vite": {
|
|
39
|
+
"rollup": "npm:@rollup/wasm-node@^4.61.1"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"resolutions": {
|
|
43
|
+
"rollup": "npm:@rollup/wasm-node@^4.61.1"
|
|
44
|
+
},
|
|
45
|
+
"types": "./src/index.d.ts",
|
|
46
|
+
"main": "./src/index.js",
|
|
47
|
+
"type": "commonjs"
|
|
48
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pdfmonkey: import("@taskmagic/pieces-framework").Piece<import("@taskmagic/pieces-framework").SecretTextProperty<true>>;
|
package/src/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pdfmonkey = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const shared_1 = require("@taskmagic/shared");
|
|
7
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
8
|
+
const auth_1 = require("./lib/common/auth");
|
|
9
|
+
const client_1 = require("./lib/common/client");
|
|
10
|
+
const generate_document_1 = require("./lib/actions/generate-document");
|
|
11
|
+
const delete_document_1 = require("./lib/actions/delete-document");
|
|
12
|
+
const find_document_1 = require("./lib/actions/find-document");
|
|
13
|
+
const document_generated_1 = require("./lib/triggers/document-generated");
|
|
14
|
+
exports.pdfmonkey = (0, pieces_framework_1.createPiece)({
|
|
15
|
+
displayName: 'PDFMonkey',
|
|
16
|
+
auth: auth_1.pdfmonkeyAuth,
|
|
17
|
+
minimumSupportedRelease: '0.30.0',
|
|
18
|
+
logoUrl: 'https://cdn.activepieces.com/pieces/pdfmonkey.png',
|
|
19
|
+
authors: ['Sanket6652'],
|
|
20
|
+
categories: [shared_1.PieceCategory.CONTENT_AND_FILES],
|
|
21
|
+
actions: [
|
|
22
|
+
generate_document_1.generateDocumentAction,
|
|
23
|
+
delete_document_1.deleteDocumentAction,
|
|
24
|
+
find_document_1.findDocumentAction,
|
|
25
|
+
(0, pieces_common_1.createCustomApiCallAction)({
|
|
26
|
+
auth: auth_1.pdfmonkeyAuth,
|
|
27
|
+
baseUrl: () => client_1.BASE_URL,
|
|
28
|
+
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
+
return {
|
|
30
|
+
Authorization: `Bearer ${auth}`,
|
|
31
|
+
};
|
|
32
|
+
}),
|
|
33
|
+
}),
|
|
34
|
+
],
|
|
35
|
+
triggers: [document_generated_1.documentGeneratedTrigger],
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/pdfmonkey/src/index.ts"],"names":[],"mappings":";;;;AAAA,kEAA0D;AAC1D,8CAAkD;AAClD,4DAAqE;AACrE,4CAAkD;AAClD,gDAA+C;AAC/C,uEAAyE;AACzE,mEAAqE;AACrE,+DAAiE;AACjE,0EAA6E;AAEhE,QAAA,SAAS,GAAG,IAAA,8BAAW,EAAC;IACnC,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,oBAAa;IACnB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,mDAAmD;IAC5D,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,UAAU,EAAE,CAAC,sBAAa,CAAC,iBAAiB,CAAC;IAC7C,OAAO,EAAE;QACP,0CAAsB;QACtB,sCAAoB;QACpB,kCAAkB;QAClB,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,oBAAa;YACnB,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAQ;YACvB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAU,IAAI,EAAE;iBAChC,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,6CAAwB,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteDocumentAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const auth_1 = require("../common/auth");
|
|
7
|
+
const client_1 = require("../common/client");
|
|
8
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
9
|
+
const props_1 = require("../common/props");
|
|
10
|
+
exports.deleteDocumentAction = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: auth_1.pdfmonkeyAuth,
|
|
12
|
+
name: 'deleteDocument',
|
|
13
|
+
displayName: 'Delete Document',
|
|
14
|
+
description: 'Deletes a document.',
|
|
15
|
+
props: {
|
|
16
|
+
document_id: props_1.documentIdDropdown,
|
|
17
|
+
},
|
|
18
|
+
run(_a) {
|
|
19
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
20
|
+
const { document_id } = propsValue;
|
|
21
|
+
if (!document_id) {
|
|
22
|
+
throw new Error('Document ID is required');
|
|
23
|
+
}
|
|
24
|
+
const response = yield (0, client_1.makeRequest)(auth, pieces_common_1.HttpMethod.DELETE, `/documents/${document_id}`);
|
|
25
|
+
return {
|
|
26
|
+
status: 'success',
|
|
27
|
+
message: 'Document deleted successfully.',
|
|
28
|
+
data: response,
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=delete-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-document.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pdfmonkey/src/lib/actions/delete-document.ts"],"names":[],"mappings":";;;;AAAA,kEAA2D;AAC3D,yCAA+C;AAC/C,6CAA+C;AAC/C,4DAAsD;AACtD,2CAAqD;AAExC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,WAAW,EAAE,0BAAkB;KAChC;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;YACnC,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;YAC7C,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,IAAc,EACd,0BAAU,CAAC,MAAM,EACjB,cAAc,WAAW,EAAE,CAC5B,CAAC;YACF,OAAO;gBACL,MAAM,EAAE,SAAS;gBACjB,OAAO,EAAE,gCAAgC;gBACzC,IAAI,EAAE,QAAQ;aACf,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findDocumentAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const auth_1 = require("../common/auth");
|
|
7
|
+
const client_1 = require("../common/client");
|
|
8
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
9
|
+
const props_1 = require("../common/props");
|
|
10
|
+
exports.findDocumentAction = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: auth_1.pdfmonkeyAuth,
|
|
12
|
+
name: 'findDocument',
|
|
13
|
+
displayName: 'Find Document',
|
|
14
|
+
description: 'Finds a document by ID.',
|
|
15
|
+
props: {
|
|
16
|
+
document_id: props_1.documentIdDropdown,
|
|
17
|
+
},
|
|
18
|
+
run(_a) {
|
|
19
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
20
|
+
const { document_id } = propsValue;
|
|
21
|
+
return yield (0, client_1.makeRequest)(auth, pieces_common_1.HttpMethod.GET, `/documents/${document_id}`);
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=find-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-document.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pdfmonkey/src/lib/actions/find-document.ts"],"names":[],"mappings":";;;;AAAA,kEAA2D;AAC3D,yCAA+C;AAC/C,6CAA+C;AAC/C,4DAAsD;AACtD,2CAAqD;AAExC,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE;QACL,WAAW,EAAE,0BAAkB;KAChC;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;YACnC,OAAO,MAAM,IAAA,oBAAW,EACtB,IAAc,EACd,0BAAU,CAAC,GAAG,EACd,cAAc,WAAW,EAAE,CAC5B,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const generateDocumentAction: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
document_template_id: import("@taskmagic/pieces-framework").DropdownProperty<string, true>;
|
|
3
|
+
payload: import("@taskmagic/pieces-framework").JsonProperty<true>;
|
|
4
|
+
meta: import("@taskmagic/pieces-framework").JsonProperty<false>;
|
|
5
|
+
fileName: import("@taskmagic/pieces-framework").ShortTextProperty<false>;
|
|
6
|
+
status: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateDocumentAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const auth_1 = require("../common/auth");
|
|
7
|
+
const client_1 = require("../common/client");
|
|
8
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
9
|
+
const props_1 = require("../common/props");
|
|
10
|
+
exports.generateDocumentAction = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: auth_1.pdfmonkeyAuth,
|
|
12
|
+
name: 'generateDocument',
|
|
13
|
+
displayName: 'Generate Document',
|
|
14
|
+
description: 'Generates a new document using a specified template.',
|
|
15
|
+
props: {
|
|
16
|
+
document_template_id: props_1.templateIdDropdown,
|
|
17
|
+
payload: pieces_framework_1.Property.Json({
|
|
18
|
+
displayName: 'Payload',
|
|
19
|
+
description: 'Data to use for the Document generation.',
|
|
20
|
+
required: true,
|
|
21
|
+
}),
|
|
22
|
+
meta: pieces_framework_1.Property.Json({
|
|
23
|
+
displayName: 'Meta',
|
|
24
|
+
description: 'Meta-Data to attach to the Document.',
|
|
25
|
+
required: false,
|
|
26
|
+
}),
|
|
27
|
+
fileName: pieces_framework_1.Property.ShortText({
|
|
28
|
+
displayName: 'Custom File Name',
|
|
29
|
+
required: false,
|
|
30
|
+
}),
|
|
31
|
+
status: pieces_framework_1.Property.StaticDropdown({
|
|
32
|
+
displayName: 'Document Status',
|
|
33
|
+
required: false,
|
|
34
|
+
defaultValue: 'draft',
|
|
35
|
+
options: {
|
|
36
|
+
options: [
|
|
37
|
+
{
|
|
38
|
+
label: 'Draft',
|
|
39
|
+
value: 'draft',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Pending',
|
|
43
|
+
value: 'pending',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
49
|
+
run(_a) {
|
|
50
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
51
|
+
const { document_template_id, payload, meta, status, fileName } = propsValue;
|
|
52
|
+
const metapayload = Object.assign({}, meta);
|
|
53
|
+
if (fileName)
|
|
54
|
+
metapayload['_filename'] = fileName;
|
|
55
|
+
const body = {
|
|
56
|
+
document: {
|
|
57
|
+
document_template_id,
|
|
58
|
+
status,
|
|
59
|
+
payload,
|
|
60
|
+
meta: metapayload,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
const response = yield (0, client_1.makeRequest)(auth, pieces_common_1.HttpMethod.POST, '/documents', undefined, body);
|
|
64
|
+
return response;
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=generate-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-document.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pdfmonkey/src/lib/actions/generate-document.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,yCAA+C;AAC/C,6CAA+C;AAC/C,4DAAsD;AACtD,2CAAqD;AAExC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE;QACL,oBAAoB,EAAE,0BAAkB;QACxC,OAAO,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACrB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,IAAI,CAAC;YAClB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,kBAAkB;YAC/B,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,KAAK,EAAE,OAAO;qBACf;oBACD;wBACE,KAAK,EAAE,SAAS;wBAChB,KAAK,EAAE,SAAS;qBACjB;iBACF;aACF;SACF,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,oBAAoB,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;YAE7E,MAAM,WAAW,qBAAiC,IAAI,CAAE,CAAC;YAEzD,IAAI,QAAQ;gBAAE,WAAW,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC;YAElD,MAAM,IAAI,GAAG;gBACX,QAAQ,EAAE;oBACR,oBAAoB;oBACpB,MAAM;oBACN,OAAO;oBACP,IAAI,EAAE,WAAW;iBAClB;aACF,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,IAAc,EACd,0BAAU,CAAC,IAAI,EACf,YAAY,EACZ,SAAS,EACT,IAAI,CACL,CAAC;YACF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pdfmonkeyAuth: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pdfmonkeyAuth = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const client_1 = require("./client");
|
|
7
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
8
|
+
exports.pdfmonkeyAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
9
|
+
displayName: 'API Key',
|
|
10
|
+
description: `You can obtain your API key by navigating to [Account Settings](https://dashboard.pdfmonkey.io/account).`,
|
|
11
|
+
required: true,
|
|
12
|
+
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
13
|
+
try {
|
|
14
|
+
yield (0, client_1.makeRequest)(auth, pieces_common_1.HttpMethod.GET, '/documents', {});
|
|
15
|
+
return {
|
|
16
|
+
valid: true,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
catch (_b) {
|
|
20
|
+
return {
|
|
21
|
+
valid: false,
|
|
22
|
+
error: 'Invalid API Key.',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pdfmonkey/src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,kEAAwD;AACxD,qCAAuC;AACvC,4DAAsD;AAEzC,QAAA,aAAa,GAAG,4BAAS,CAAC,UAAU,CAAC;IAChD,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,0GAA0G;IACvH,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,IAAA,oBAAW,EAAC,IAAc,EAAE,0BAAU,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;YACpE,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QAAC,WAAM,CAAC;YACP,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,kBAAkB;aAC1B,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HttpMethod, QueryParams } from '@taskmagic/pieces-common';
|
|
2
|
+
export declare const BASE_URL = "https://api.pdfmonkey.io/api/v1";
|
|
3
|
+
export declare function makeRequest<T>(apiKey: string, method: HttpMethod, path: string, query?: QueryParams, body?: unknown): Promise<T>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BASE_URL = void 0;
|
|
4
|
+
exports.makeRequest = makeRequest;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
7
|
+
exports.BASE_URL = `https://api.pdfmonkey.io/api/v1`;
|
|
8
|
+
function makeRequest(apiKey, method, path, query, body) {
|
|
9
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
try {
|
|
11
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
12
|
+
method,
|
|
13
|
+
url: `${exports.BASE_URL}${path}`,
|
|
14
|
+
headers: {
|
|
15
|
+
Authorization: `Bearer ${apiKey}`,
|
|
16
|
+
'Content-Type': 'application/json',
|
|
17
|
+
},
|
|
18
|
+
body,
|
|
19
|
+
queryParams: query,
|
|
20
|
+
});
|
|
21
|
+
return response.body;
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
25
|
+
throw new Error(`Unexpected error: ${message}`);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pdfmonkey/src/lib/common/client.ts"],"names":[],"mappings":";;;AAIA,kCAuBC;;AA3BD,4DAA+E;AAElE,QAAA,QAAQ,GAAG,iCAAiC,CAAC;AAE1D,SAAsB,WAAW,CAC/B,MAAc,EACd,MAAkB,EAClB,IAAY,EACZ,KAAmB,EACnB,IAAc;;QAEd,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAI;gBAC/C,MAAM;gBACN,GAAG,EAAE,GAAG,gBAAQ,GAAG,IAAI,EAAE;gBACzB,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,MAAM,EAAE;oBACjC,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI;gBACJ,WAAW,EAAE,KAAK;aACnB,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,MAAM,IAAI,KAAK,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;CAAA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentIdDropdown = exports.templateIdDropdown = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const client_1 = require("./client");
|
|
7
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
8
|
+
exports.templateIdDropdown = pieces_framework_1.Property.Dropdown({
|
|
9
|
+
displayName: 'Template ID',
|
|
10
|
+
required: true,
|
|
11
|
+
refreshers: [],
|
|
12
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
13
|
+
var _b;
|
|
14
|
+
if (!auth) {
|
|
15
|
+
return {
|
|
16
|
+
disabled: true,
|
|
17
|
+
options: [],
|
|
18
|
+
placeholder: 'Please connect your account first.',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
let page = 1;
|
|
23
|
+
let hasMore = true;
|
|
24
|
+
const options = [];
|
|
25
|
+
do {
|
|
26
|
+
const response = yield (0, client_1.makeRequest)(auth, pieces_common_1.HttpMethod.GET, '/document_template_cards', {
|
|
27
|
+
page: page.toString(),
|
|
28
|
+
});
|
|
29
|
+
const items = (_b = response.document_template_cards) !== null && _b !== void 0 ? _b : [];
|
|
30
|
+
for (const template of items) {
|
|
31
|
+
options.push({ label: template.identifier, value: template.id });
|
|
32
|
+
}
|
|
33
|
+
page++;
|
|
34
|
+
hasMore = response.meta.current_page < response.meta.total_pages;
|
|
35
|
+
} while (hasMore);
|
|
36
|
+
return {
|
|
37
|
+
disabled: false,
|
|
38
|
+
options,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
return {
|
|
43
|
+
disabled: true,
|
|
44
|
+
options: [],
|
|
45
|
+
placeholder: 'Error loading document templates.',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
});
|
|
50
|
+
exports.documentIdDropdown = pieces_framework_1.Property.Dropdown({
|
|
51
|
+
displayName: 'Document ID',
|
|
52
|
+
required: true,
|
|
53
|
+
refreshers: [],
|
|
54
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
55
|
+
var _b;
|
|
56
|
+
if (!auth) {
|
|
57
|
+
return {
|
|
58
|
+
disabled: true,
|
|
59
|
+
options: [],
|
|
60
|
+
placeholder: 'Please connect your account first.',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
let page = 1;
|
|
65
|
+
let hasMore = true;
|
|
66
|
+
const options = [];
|
|
67
|
+
do {
|
|
68
|
+
const response = yield (0, client_1.makeRequest)(auth, pieces_common_1.HttpMethod.GET, '/document_cards', {
|
|
69
|
+
page: page.toString(),
|
|
70
|
+
});
|
|
71
|
+
const items = (_b = response.document_cards) !== null && _b !== void 0 ? _b : [];
|
|
72
|
+
for (const doc of items) {
|
|
73
|
+
options.push({ label: doc.filename, value: doc.id });
|
|
74
|
+
}
|
|
75
|
+
page++;
|
|
76
|
+
hasMore = response.meta.current_page < response.meta.total_pages;
|
|
77
|
+
} while (hasMore);
|
|
78
|
+
return {
|
|
79
|
+
disabled: false,
|
|
80
|
+
options,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
return {
|
|
85
|
+
disabled: true,
|
|
86
|
+
options: [],
|
|
87
|
+
placeholder: 'Error loading documents.',
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}),
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pdfmonkey/src/lib/common/props.ts"],"names":[],"mappings":";;;;AAAA,kEAAuE;AACvE,qCAAuC;AACvC,4DAAsD;AAEzC,QAAA,kBAAkB,GAAG,2BAAQ,CAAC,QAAQ,CAAC;IAClD,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;;QACtB,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO;gBACL,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;aAClD,CAAC;QACJ,CAAC;QAED,IAAI,CAAC;YACH,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,IAAI,OAAO,GAAG,IAAI,CAAC;YAEnB,MAAM,OAAO,GAA6B,EAAE,CAAC;YAE7C,GAAG,CAAC;gBACF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAG/B,IAAc,EAAE,0BAAU,CAAC,GAAG,EAAE,0BAA0B,EAAE;oBAC7D,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE;iBACtB,CAAC,CAAC;gBAEH,MAAM,KAAK,GAAG,MAAA,QAAQ,CAAC,uBAAuB,mCAAI,EAAE,CAAC;gBAErD,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE,CAAC;oBAC7B,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;gBACnE,CAAC;gBAED,IAAI,EAAE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G,CAAC,EAAE,EAAE,CAAC,CAAC;gBACvD,CAAC;gBACD,IAAI,EAAE,CAAC;gBACP,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;YACnE,CAAC,QAAQ,OAAO,EAAE;YAElB,OAAO;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO;aACR,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACxC,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@taskmagic/pieces-framework';
|
|
2
|
+
export declare const documentGeneratedTrigger: import("@taskmagic/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@taskmagic/pieces-framework").SecretTextProperty<true>, {}> | import("@taskmagic/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@taskmagic/pieces-framework").SecretTextProperty<true>, {}> | import("@taskmagic/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@taskmagic/pieces-framework").SecretTextProperty<true>, {}>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentGeneratedTrigger = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
7
|
+
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
8
|
+
const auth_1 = require("../common/auth");
|
|
9
|
+
const client_1 = require("../common/client");
|
|
10
|
+
const polling = {
|
|
11
|
+
strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
|
|
12
|
+
items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, lastFetchEpochMS }) {
|
|
13
|
+
var _b;
|
|
14
|
+
let page = 1;
|
|
15
|
+
let hasMore = true;
|
|
16
|
+
const isTest = lastFetchEpochMS === 0;
|
|
17
|
+
const documents = [];
|
|
18
|
+
do {
|
|
19
|
+
const qs = {
|
|
20
|
+
'page[number]': page.toString(),
|
|
21
|
+
'q[status]': 'success',
|
|
22
|
+
};
|
|
23
|
+
if (!isTest)
|
|
24
|
+
qs['q[updated_since]'] = lastFetchEpochMS.toString();
|
|
25
|
+
const response = yield (0, client_1.makeRequest)(auth, pieces_common_1.HttpMethod.GET, '/document_cards', qs);
|
|
26
|
+
const items = (_b = response.document_cards) !== null && _b !== void 0 ? _b : [];
|
|
27
|
+
documents.push(...items);
|
|
28
|
+
if (isTest)
|
|
29
|
+
break;
|
|
30
|
+
page++;
|
|
31
|
+
hasMore = response.meta.current_page < response.meta.total_pages;
|
|
32
|
+
} while (hasMore);
|
|
33
|
+
return documents.map((doc) => {
|
|
34
|
+
return {
|
|
35
|
+
epochMilliSeconds: (0, dayjs_1.default)(doc.created_at).valueOf(),
|
|
36
|
+
data: doc,
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
exports.documentGeneratedTrigger = (0, pieces_framework_1.createTrigger)({
|
|
42
|
+
auth: auth_1.pdfmonkeyAuth,
|
|
43
|
+
name: 'documentGenerated',
|
|
44
|
+
displayName: 'Document Generated',
|
|
45
|
+
description: 'Triggers when a document generation completes successfully.',
|
|
46
|
+
props: {},
|
|
47
|
+
sampleData: {
|
|
48
|
+
id: '11475e57-0334-4ad5-8896-9462a2243957',
|
|
49
|
+
app_id: 'c2b67b84-4aac-49ea-bed8-69a15d7a65d3',
|
|
50
|
+
created_at: '2022-04-07T11:01:38.201+02:00',
|
|
51
|
+
document_template_id: '96611e9e-ab03-4ac3-8551-1b485210c892',
|
|
52
|
+
document_template_identifier: 'My Awesome Template',
|
|
53
|
+
download_url: 'https://pdfmonkey.s3.eu-west-1.amazonaws.com/production/backend/document/11475e57-0334-4ad5-8896-9462a2243957/my-test-document.pdf?...',
|
|
54
|
+
failure_cause: null,
|
|
55
|
+
filename: 'my-test-document.pdf',
|
|
56
|
+
meta: '{ "_filename":"my-test-document.pdf" }',
|
|
57
|
+
public_share_link: 'https://files.pdfmonkey.io/share/5CEA8C37-D130-4C19-9E11-72BE2293C82B/my-test-document.pdf',
|
|
58
|
+
status: 'success',
|
|
59
|
+
updated_at: '2022-04-03T11:12:56.023+02:00',
|
|
60
|
+
},
|
|
61
|
+
type: pieces_framework_1.TriggerStrategy.POLLING,
|
|
62
|
+
test(context) {
|
|
63
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
return yield pieces_common_1.pollingHelper.test(polling, {
|
|
65
|
+
store: context.store,
|
|
66
|
+
auth: context.auth,
|
|
67
|
+
propsValue: context.propsValue,
|
|
68
|
+
files: context.files,
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
onEnable(context) {
|
|
73
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
yield pieces_common_1.pollingHelper.onEnable(polling, {
|
|
75
|
+
store: context.store,
|
|
76
|
+
auth: context.auth,
|
|
77
|
+
propsValue: context.propsValue,
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
onDisable(context) {
|
|
82
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
yield pieces_common_1.pollingHelper.onDisable(polling, {
|
|
84
|
+
store: context.store,
|
|
85
|
+
auth: context.auth,
|
|
86
|
+
propsValue: context.propsValue,
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
run(context) {
|
|
91
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return yield pieces_common_1.pollingHelper.poll(polling, {
|
|
93
|
+
store: context.store,
|
|
94
|
+
auth: context.auth,
|
|
95
|
+
propsValue: context.propsValue,
|
|
96
|
+
files: context.files,
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=document-generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-generated.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pdfmonkey/src/lib/triggers/document-generated.ts"],"names":[],"mappings":";;;;AAAA,kEAIqC;AACrC,4DAMkC;AAClC,0DAA0B;AAC1B,yCAA+C;AAC/C,6CAA+C;AAE/C,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAAmC,EAAE,oDAA9B,EAAE,IAAI,EAAE,gBAAgB,EAAE;;QACtC,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,OAAO,GAAG,IAAI,CAAC;QACnB,MAAM,MAAM,GAAG,gBAAgB,KAAK,CAAC,CAAC;QAEtC,MAAM,SAAS,GAA8C,EAAE,CAAC;QAEhE,GAAG,CAAC;YACF,MAAM,EAAE,GAAgB;gBACtB,cAAc,EAAE,IAAI,CAAC,QAAQ,EAAE;gBAC/B,WAAW,EAAE,SAAS;aACvB,CAAC;YAEF,IAAI,CAAC,MAAM;gBAAE,EAAE,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;YAElE,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAG/B,IAAc,EAAE,0BAAU,CAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAC;YAE1D,MAAM,KAAK,GAAG,MAAA,QAAQ,CAAC,cAAc,mCAAI,EAAE,CAAC;YAE5C,SAAS,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;YAEzB,IAAI,MAAM;gBAAE,MAAM;YAElB,IAAI,EAAE,CAAC;YACP,OAAO,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