@activepieces/piece-fragment 0.1.5 → 0.1.7

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 (49) hide show
  1. package/package.json +7 -13
  2. package/src/index.js +13 -33
  3. package/src/index.d.ts +0 -2
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/create-task.d.ts +0 -9
  7. package/src/lib/actions/create-task.d.ts.map +0 -1
  8. package/src/lib/actions/create-task.js +0 -72
  9. package/src/lib/actions/create-task.js.map +0 -1
  10. package/src/lib/actions/custom-api-call.d.ts +0 -13
  11. package/src/lib/actions/custom-api-call.d.ts.map +0 -1
  12. package/src/lib/actions/custom-api-call.js +0 -20
  13. package/src/lib/actions/custom-api-call.js.map +0 -1
  14. package/src/lib/actions/delete-task.d.ts +0 -4
  15. package/src/lib/actions/delete-task.d.ts.map +0 -1
  16. package/src/lib/actions/delete-task.js +0 -30
  17. package/src/lib/actions/delete-task.js.map +0 -1
  18. package/src/lib/actions/get-task.d.ts +0 -4
  19. package/src/lib/actions/get-task.d.ts.map +0 -1
  20. package/src/lib/actions/get-task.js +0 -30
  21. package/src/lib/actions/get-task.js.map +0 -1
  22. package/src/lib/actions/list-tasks.d.ts +0 -6
  23. package/src/lib/actions/list-tasks.d.ts.map +0 -1
  24. package/src/lib/actions/list-tasks.js +0 -58
  25. package/src/lib/actions/list-tasks.js.map +0 -1
  26. package/src/lib/actions/update-task.d.ts +0 -11
  27. package/src/lib/actions/update-task.d.ts.map +0 -1
  28. package/src/lib/actions/update-task.js +0 -96
  29. package/src/lib/actions/update-task.js.map +0 -1
  30. package/src/lib/common/auth.d.ts +0 -2
  31. package/src/lib/common/auth.d.ts.map +0 -1
  32. package/src/lib/common/auth.js +0 -37
  33. package/src/lib/common/auth.js.map +0 -1
  34. package/src/lib/common/client.d.ts +0 -22
  35. package/src/lib/common/client.d.ts.map +0 -1
  36. package/src/lib/common/client.js +0 -32
  37. package/src/lib/common/client.js.map +0 -1
  38. package/src/lib/common/index.d.ts +0 -3
  39. package/src/lib/common/index.d.ts.map +0 -1
  40. package/src/lib/common/index.js +0 -6
  41. package/src/lib/common/index.js.map +0 -1
  42. package/src/lib/triggers/new-task.d.ts +0 -3
  43. package/src/lib/triggers/new-task.d.ts.map +0 -1
  44. package/src/lib/triggers/new-task.js +0 -134
  45. package/src/lib/triggers/new-task.js.map +0 -1
  46. package/src/lib/triggers/task-updated.d.ts +0 -3
  47. package/src/lib/triggers/task-updated.d.ts.map +0 -1
  48. package/src/lib/triggers/task-updated.js +0 -134
  49. package/src/lib/triggers/task-updated.js.map +0 -1
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteTask = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../common/auth");
7
- const client_1 = require("../common/client");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.deleteTask = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.fragmentAuth,
11
- name: 'delete_task',
12
- displayName: 'Delete Task',
13
- description: 'Deletes an existing task.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Permanently deletes a Fragment task identified by its unique task UID. Use to remove a task; this is destructive and cannot be undone. Effectively idempotent: re-deleting an already-removed task has no further effect, though the API may return a not-found error.', idempotent: true },
16
- props: {
17
- task_uid: pieces_framework_1.Property.ShortText({
18
- displayName: 'Task UID',
19
- description: 'The unique identifier of the task to delete',
20
- required: true,
21
- }),
22
- },
23
- run(context) {
24
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
- const response = yield client_1.fragmentClient.makeRequest(pieces_common_1.HttpMethod.DELETE, `/tasks/${context.propsValue.task_uid}`, context.auth);
26
- return response;
27
- });
28
- },
29
- });
30
- //# sourceMappingURL=delete-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-task.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,6CAAkD;AAClD,+DAAyD;AAE5C,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,wQAAwQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACvT,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,WAAW,CAC/C,0BAAU,CAAC,MAAM,EACjB,UAAU,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,EACvC,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const getTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- task_uid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- }>;
4
- //# sourceMappingURL=get-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-task.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;EAuBlB,CAAC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTask = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../common/auth");
7
- const client_1 = require("../common/client");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.getTask = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.fragmentAuth,
11
- name: 'get_task',
12
- displayName: 'Get Task',
13
- description: 'Retrieves details of a specific task.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Fetches the full details of a single Fragment task by its unique task UID. Use when you already have a task identifier and need its current data. Read-only and idempotent.', idempotent: true },
16
- props: {
17
- task_uid: pieces_framework_1.Property.ShortText({
18
- displayName: 'Task UID',
19
- description: 'The unique identifier of the task to retrieve',
20
- required: true,
21
- }),
22
- },
23
- run(context) {
24
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
- const response = yield client_1.fragmentClient.makeRequest(pieces_common_1.HttpMethod.GET, `/tasks/${context.propsValue.task_uid}`, context.auth);
26
- return response;
27
- });
28
- },
29
- });
30
- //# sourceMappingURL=get-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-task.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,6CAAkD;AAClD,+DAAyD;AAE5C,QAAA,OAAO,GAAG,IAAA,+BAAY,EAAC;IAClC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,6KAA6K,EAAE,UAAU,EAAE,IAAI,EAAE;IAC5N,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,WAAW,CAC/C,0BAAU,CAAC,GAAG,EACd,UAAU,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,EACvC,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const listTasks: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
3
- assignee: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- limit: import("@activepieces/pieces-framework").NumberProperty<false>;
5
- }>;
6
- //# sourceMappingURL=list-tasks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-tasks.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-tasks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;EAuDpB,CAAC"}
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listTasks = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../common/auth");
7
- const client_1 = require("../common/client");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.listTasks = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.fragmentAuth,
11
- name: 'list_tasks',
12
- displayName: 'List Tasks',
13
- description: 'Retrieves a list of tasks from.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Lists tasks from Fragment, optionally filtered by status (TODO/STARTED/DONE) and assignee, and capped by a limit (default 50). Omit the filters to return recent tasks across all statuses. Use to discover task UIDs or survey tasks before acting on them. Read-only and idempotent.', idempotent: true },
16
- props: {
17
- status: pieces_framework_1.Property.StaticDropdown({
18
- displayName: 'Status',
19
- description: 'Filter tasks by status',
20
- required: false,
21
- options: {
22
- options: [
23
- { label: 'TODO', value: 'TODO' },
24
- { label: 'STARTED', value: 'STARTED' },
25
- { label: 'DONE', value: 'DONE' },
26
- ],
27
- },
28
- }),
29
- assignee: pieces_framework_1.Property.ShortText({
30
- displayName: 'Assignee',
31
- description: 'Filter tasks by assignee email or ID',
32
- required: false,
33
- }),
34
- limit: pieces_framework_1.Property.Number({
35
- displayName: 'Limit',
36
- description: 'Maximum number of tasks to return (default: 50)',
37
- required: false,
38
- defaultValue: 50,
39
- }),
40
- },
41
- run(context) {
42
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
43
- const queryParams = {};
44
- if (context.propsValue.status) {
45
- queryParams['status'] = context.propsValue.status;
46
- }
47
- if (context.propsValue.assignee) {
48
- queryParams['assignee_uid'] = context.propsValue.assignee;
49
- }
50
- if (context.propsValue.limit !== undefined) {
51
- queryParams['limit'] = context.propsValue.limit.toString();
52
- }
53
- const response = yield client_1.fragmentClient.makeRequest(pieces_common_1.HttpMethod.GET, '/tasks', context.auth, undefined, queryParams);
54
- return response;
55
- });
56
- },
57
- });
58
- //# sourceMappingURL=list-tasks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-tasks.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-tasks.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,6CAAkD;AAClD,+DAAsE;AAEzD,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,wRAAwR,EAAE,UAAU,EAAE,IAAI,EAAE;IACvU,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBA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framework").SecretTextProperty<true>, {
2
- task_uid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- due_at: import("@activepieces/pieces-framework").DateTimeProperty<false>;
6
- status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
7
- assignee: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
- tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
9
- custom_fields: import("@activepieces/pieces-framework").ObjectProperty<false>;
10
- }>;
11
- //# sourceMappingURL=update-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-task.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;EA4FrB,CAAC"}
@@ -1,96 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateTask = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../common/auth");
7
- const client_1 = require("../common/client");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- const shared_1 = require("@activepieces/shared");
10
- exports.updateTask = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.fragmentAuth,
12
- name: 'update_task',
13
- displayName: 'Update Task',
14
- description: 'Updates an existing task.',
15
- audience: 'both',
16
- aiMetadata: { description: 'Updates an existing Fragment task identified by its task UID, changing any of title, URL, due date, status (TODO/STARTED/DONE), assignee email, tags, or custom fields. Only the fields you supply are modified. Idempotent: re-applying the same field values to the same task yields the same end state.', idempotent: true },
17
- props: {
18
- task_uid: pieces_framework_1.Property.ShortText({
19
- displayName: 'Task UID',
20
- description: 'The unique identifier of the task to update',
21
- required: true,
22
- }),
23
- title: pieces_framework_1.Property.ShortText({
24
- displayName: 'Title',
25
- description: 'The updated title of the task',
26
- required: false,
27
- }),
28
- url: pieces_framework_1.Property.ShortText({
29
- displayName: 'URL',
30
- description: 'The updated URL for the task',
31
- required: false,
32
- }),
33
- due_at: pieces_framework_1.Property.DateTime({
34
- displayName: 'Due Date',
35
- description: 'The updated due date',
36
- required: false,
37
- }),
38
- status: pieces_framework_1.Property.StaticDropdown({
39
- displayName: 'Status',
40
- description: 'The status of the task',
41
- required: false,
42
- options: {
43
- options: [
44
- { label: 'TODO', value: 'TODO' },
45
- { label: 'STARTED', value: 'STARTED' },
46
- { label: 'DONE', value: 'DONE' },
47
- ],
48
- },
49
- }),
50
- assignee: pieces_framework_1.Property.ShortText({
51
- displayName: 'Assignee',
52
- description: 'Email of the person to assign this task to',
53
- required: false,
54
- }),
55
- tags: pieces_framework_1.Property.Array({
56
- displayName: 'Tags',
57
- description: 'Updated tags for the task',
58
- required: false,
59
- }),
60
- custom_fields: pieces_framework_1.Property.Object({
61
- displayName: 'Custom Fields',
62
- description: 'Updated custom fields',
63
- required: false,
64
- }),
65
- },
66
- run(context) {
67
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
68
- var _a;
69
- const fields = Object.assign({}, ((_a = context.propsValue.custom_fields) !== null && _a !== void 0 ? _a : {}));
70
- const taskPayload = {};
71
- if (context.propsValue.title) {
72
- fields['title'] = context.propsValue.title;
73
- }
74
- if (context.propsValue.url) {
75
- fields['url'] = context.propsValue.url;
76
- }
77
- if (context.propsValue.due_at) {
78
- taskPayload['due_at'] = context.propsValue.due_at;
79
- }
80
- if (context.propsValue.status) {
81
- taskPayload['status'] = context.propsValue.status;
82
- }
83
- if (context.propsValue.assignee) {
84
- taskPayload['assignee_email'] = context.propsValue.assignee;
85
- }
86
- if (context.propsValue.tags && Array.isArray(context.propsValue.tags)) {
87
- taskPayload['tags'] = context.propsValue.tags;
88
- }
89
- if (!(0, shared_1.isEmpty)(fields))
90
- taskPayload['fields'] = fields;
91
- const response = yield client_1.fragmentClient.makeRequest(pieces_common_1.HttpMethod.PATCH, `/tasks/${context.propsValue.task_uid}`, context.auth, taskPayload);
92
- return response;
93
- });
94
- },
95
- });
96
- //# sourceMappingURL=update-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-task.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA8C;AAC9C,6CAAkD;AAClD,+DAAyD;AACzD,iDAA+C;AAElC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,4SAA4S,EAAE,UAAU,EAAE,IAAI,EAAE;IAC3V,KAAK,EAAE;QACN,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC/B,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK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C,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;YACnD,CAAC;YACD,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACjC,WAAW,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7D,CAAC;YACD,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvE,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;YAC/C,CAAC;YAEC,IAAG,CAAC,IAAA,gBAAO,EAAC,MAAM,CAAC;gBAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YAEtD,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,WAAW,CAChD,0BAAU,CAAC,KAAK,EAChB,UAAU,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,EACvC,OAAO,CAAC,IAAI,EACZ,WAAW,CACX,CAAC;YAEF,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const fragmentAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,mEA4BvB,CAAC"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fragmentAuth = 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
- exports.fragmentAuth = pieces_framework_1.PieceAuth.SecretText({
8
- displayName: 'API Token',
9
- description: `You can obtain your API token by navigating to [Developer Settings](https://app.onfragment.com/settings/account/developers).`,
10
- required: true,
11
- validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
12
- try {
13
- // Validate by attempting to list tasks
14
- yield pieces_common_1.httpClient.sendRequest({
15
- method: pieces_common_1.HttpMethod.GET,
16
- url: 'https://api.onfragment.com/api/v1/tasks',
17
- headers: {
18
- 'Authorization': `Bearer ${auth}`,
19
- 'Content-Type': 'application/json',
20
- },
21
- queryParams: {
22
- limit: '1',
23
- },
24
- });
25
- return {
26
- valid: true,
27
- };
28
- }
29
- catch (error) {
30
- return {
31
- valid: false,
32
- error: 'Invalid API token. Please check your API token and try again.',
33
- };
34
- }
35
- }),
36
- });
37
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,qEAA2D;AAC3D,+DAAqE;AAExD,QAAA,YAAY,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC/C,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,8HAA8H;IAC3I,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,uCAAuC;YACvC,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,yCAAyC;gBAC9C,OAAO,EAAE;oBACP,eAAe,EAAE,UAAU,IAAI,EAAE;oBACjC,cAAc,EAAE,kBAAkB;iBACnC;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,GAAG;iBACX;aACF,CAAC,CAAC;YACH,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,+DAA+D;aACvE,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -1,22 +0,0 @@
1
- import { HttpMethod } from '@activepieces/pieces-common';
2
- import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
3
- import { fragmentAuth } from './auth';
4
- export declare const BASE_URL = "https://api.onfragment.com/api/v1";
5
- export interface FragmentTask {
6
- uid?: string;
7
- title: string;
8
- url?: string;
9
- due_at?: string;
10
- priority?: 'low' | 'medium' | 'high' | 'urgent';
11
- status?: 'open' | 'completed' | 'cancelled';
12
- assignee?: string;
13
- tags?: string[];
14
- custom_fields?: Record<string, any>;
15
- created_at?: string;
16
- updated_at?: string;
17
- [key: string]: any;
18
- }
19
- export declare const fragmentClient: {
20
- makeRequest<T extends unknown = any>(method: HttpMethod, path: string, apiKey: AppConnectionValueForAuthProperty<typeof fragmentAuth>, body?: any, queryParams?: Record<string, string>): Promise<T>;
21
- };
22
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAmB,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,eAAO,MAAM,QAAQ,sCAAsC,CAAC;AAE5D,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,cAAc;gBACP,CAAC,gCACT,UAAU,QACZ,MAAM,UACJ,iCAAiC,CAAC,OAAO,YAAY,CAAC,SACvD,GAAG,gBACI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,CAAC,CAAC;CAqBd,CAAC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fragmentClient = exports.BASE_URL = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- exports.BASE_URL = 'https://api.onfragment.com/api/v1';
7
- exports.fragmentClient = {
8
- makeRequest(method, path, apiKey, body, queryParams) {
9
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
- var _a, _b;
11
- const url = `${exports.BASE_URL}${path}`;
12
- try {
13
- const response = yield pieces_common_1.httpClient.sendRequest({
14
- method,
15
- url,
16
- headers: {
17
- 'Authorization': `Bearer ${apiKey.secret_text}`,
18
- 'Content-Type': 'application/json',
19
- },
20
- body,
21
- queryParams,
22
- });
23
- return response.body;
24
- }
25
- catch (error) {
26
- const errorMessage = ((_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.message) || error.message || 'Unknown error occurred';
27
- throw new Error(`Fragment API Error: ${errorMessage}`);
28
- }
29
- });
30
- },
31
- };
32
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/lib/common/client.ts"],"names":[],"mappings":";;;;AAAA,+DAAsF;AAIzE,QAAA,QAAQ,GAAG,mCAAmC,CAAC;AAiB/C,QAAA,cAAc,GAAG;IACtB,WAAW,CACf,MAAkB,EAClB,IAAY,EACZ,MAA8D,EAC9D,IAAU,EACV,WAAoC;;;YAEpC,MAAM,GAAG,GAAG,GAAG,gBAAQ,GAAG,IAAI,EAAE,CAAC;YAEjC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAI;oBAC/C,MAAM;oBACN,GAAG;oBACH,OAAO,EAAE;wBACP,eAAe,EAAE,UAAU,MAAM,CAAC,WAAW,EAAE;wBAC/C,cAAc,EAAE,kBAAkB;qBACnC;oBACD,IAAI;oBACJ,WAAW;iBACZ,CAAC,CAAC;gBAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,MAAM,YAAY,GAAG,CAAA,MAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,0CAAE,OAAO,KAAI,KAAK,CAAC,OAAO,IAAI,wBAAwB,CAAC;gBAChG,MAAM,IAAI,KAAK,CAAC,uBAAuB,YAAY,EAAE,CAAC,CAAC;YACzD,CAAC;QACH,CAAC;KAAA;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './auth';
2
- export * from './client';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./auth"), exports);
5
- tslib_1.__exportStar(require("./client"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,mDAAyB"}
@@ -1,3 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const newTaskTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}>;
3
- //# sourceMappingURL=new-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/new-task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAsCnH,eAAO,MAAM,cAAc,klBAgGzB,CAAC"}
@@ -1,134 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newTaskTrigger = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../common/auth");
7
- const client_1 = require("../common/client");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- const pieces_common_2 = require("@activepieces/pieces-common");
10
- const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
11
- const polling = {
12
- strategy: pieces_common_2.DedupeStrategy.TIMEBASED,
13
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, lastFetchEpochMS }) {
14
- const isTest = lastFetchEpochMS > 0;
15
- const qs = {
16
- order_by: 'created_at',
17
- limit: isTest ? '10' : '100',
18
- };
19
- if (!isTest) {
20
- qs['created_at_after'] = (0, dayjs_1.default)(lastFetchEpochMS).toISOString();
21
- }
22
- const response = yield client_1.fragmentClient.makeRequest(pieces_common_1.HttpMethod.GET, '/tasks', auth, undefined, qs);
23
- const items = response.items.map((task) => ({
24
- epochMilliSeconds: (0, dayjs_1.default)(task.created_at).valueOf(),
25
- data: task,
26
- }));
27
- return items;
28
- }),
29
- };
30
- exports.newTaskTrigger = (0, pieces_framework_1.createTrigger)({
31
- auth: auth_1.fragmentAuth,
32
- name: 'new_task',
33
- displayName: 'New Task',
34
- description: 'Triggers when a new task is created.',
35
- aiMetadata: {
36
- description: 'Fires when a new task is created in Fragment, emitting the newly created task. Polls for tasks ordered by creation time, so each run yields tasks added since the last check.',
37
- },
38
- props: {},
39
- type: pieces_framework_1.TriggerStrategy.POLLING,
40
- onEnable(context) {
41
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
- yield pieces_common_2.pollingHelper.onEnable(polling, {
43
- auth: context.auth,
44
- store: context.store,
45
- propsValue: context.propsValue,
46
- });
47
- });
48
- },
49
- onDisable(context) {
50
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
51
- yield pieces_common_2.pollingHelper.onDisable(polling, {
52
- auth: context.auth,
53
- store: context.store,
54
- propsValue: context.propsValue,
55
- });
56
- });
57
- },
58
- test(context) {
59
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
60
- return yield pieces_common_2.pollingHelper.test(polling, context);
61
- });
62
- },
63
- run(context) {
64
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
65
- return yield pieces_common_2.pollingHelper.poll(polling, context);
66
- });
67
- },
68
- sampleData: {
69
- uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
70
- archived: true,
71
- status: 'TODO',
72
- legacy_data: {},
73
- skills: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
74
- queue_uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
75
- assignee_uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
76
- participants: {},
77
- case_uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
78
- parent_uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
79
- due_at: '2023-11-07T05:31:56Z',
80
- snooze_expires_at: '2023-11-07T05:31:56Z',
81
- fields: {},
82
- metadata_form_uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
83
- form_data: {},
84
- form_type: '<string>',
85
- assigned_at: '2023-11-07T05:31:56Z',
86
- started_at: '2023-11-07T05:31:56Z',
87
- done_at: '2023-11-07T05:31:56Z',
88
- created_at: '2023-11-07T05:31:56Z',
89
- updated_at: '2023-11-07T05:31:56Z',
90
- assignee_updated_by: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
91
- queue_updated_by: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
92
- is_assigned_player: true,
93
- internal_created_at: '2023-11-07T05:31:56Z',
94
- internal_updated_at: '2023-11-07T05:31:56Z',
95
- external_created_at: '2023-11-07T05:31:56Z',
96
- external_updated_at: '2023-11-07T05:31:56Z',
97
- external_status: 'TODO',
98
- external_status_updated_at: '2023-11-07T05:31:56Z',
99
- external_assignee_uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
100
- queue_time: 123,
101
- queue_time_business: 123,
102
- work_time: 123,
103
- work_time_business: 123,
104
- incremental_work_time: 123,
105
- incremental_work_time_business: 123,
106
- resolution_time: 123,
107
- resolution_time_business: 123,
108
- num_children: 123,
109
- num_children_done: 123,
110
- sla_breach_at: '2023-11-07T05:31:56Z',
111
- sla_breach_business_at: '2023-11-07T05:31:56Z',
112
- wait_time: 123,
113
- wait_time_business: 123,
114
- review_status: '<string>',
115
- task_type: '<string>',
116
- played_at: '2023-11-07T05:31:56Z',
117
- assignee: {
118
- uid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
119
- archived: true,
120
- role: 'super_admin',
121
- email: 'jsmith@example.com',
122
- first_name: '<string>',
123
- last_name: '<string>',
124
- skills: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
125
- legacy_data: {},
126
- created_at: '2023-11-07T05:31:56Z',
127
- updated_at: '2023-11-07T05:31:56Z',
128
- is_registered: true,
129
- },
130
- parent: {},
131
- children: [{}],
132
- },
133
- });
134
- //# sourceMappingURL=new-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-task.js","sourceRoot":"","sources":["../../../../src/lib/triggers/new-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAmH;AACnH,yCAA8C;AAC9C,6CAAgE;AAChE,+DAAsE;AACtE,+DAAqF;AACrF,0DAA0B;AAE1B,MAAM,OAAO,GAA2F;IACvG,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAAmC,EAAE,oDAA9B,EAAE,IAAI,EAAE,gBAAgB,EAAE;QACvC,MAAM,MAAM,GAAG,gBAAgB,GAAG,CAAC,CAAC;QAEpC,MAAM,EAAE,GAAgB;YACvB,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;SAC5B,CAAC;QAEF,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,EAAE,CAAC,kBAAkB,CAAC,GAAG,IAAA,eAAK,EAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC;QAChE,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,WAAW,CAChD,0BAAU,CAAC,GAAG,EACd,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,EAAE,CACF,CAAC;QAEF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC3C,iBAAiB,EAAE,IAAA,eAAK,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE;YACnD,IAAI,EAAE,IAAI;SACV,CAAC,CAAC,CAAC;QAEJ,OAAO,KAAK,CAAC;IACd,CAAC,CAAA;CACD,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,gCAAa,EAAC;IAC3C,IAAI,EAAE,mBAAY;IAClB,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ACnB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,CAAC,EAAE,CAAC;KACd;CACD,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const taskUpdatedTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {}>;
3
- //# sourceMappingURL=task-updated.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"task-updated.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/task-updated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAsCnH,eAAO,MAAM,kBAAkB,klBAgG7B,CAAC"}