@activepieces/piece-monday 0.3.4 → 0.3.6

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 (81) hide show
  1. package/package.json +7 -15
  2. package/src/index.js +260 -53
  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-column.d.ts +0 -7
  7. package/src/lib/actions/create-column.d.ts.map +0 -1
  8. package/src/lib/actions/create-column.js +0 -44
  9. package/src/lib/actions/create-column.js.map +0 -1
  10. package/src/lib/actions/create-group.d.ts +0 -6
  11. package/src/lib/actions/create-group.d.ts.map +0 -1
  12. package/src/lib/actions/create-group.js +0 -34
  13. package/src/lib/actions/create-group.js.map +0 -1
  14. package/src/lib/actions/create-item.d.ts +0 -9
  15. package/src/lib/actions/create-item.d.ts.map +0 -1
  16. package/src/lib/actions/create-item.js +0 -63
  17. package/src/lib/actions/create-item.js.map +0 -1
  18. package/src/lib/actions/create-update.d.ts +0 -5
  19. package/src/lib/actions/create-update.d.ts.map +0 -1
  20. package/src/lib/actions/create-update.js +0 -36
  21. package/src/lib/actions/create-update.js.map +0 -1
  22. package/src/lib/actions/get-board-values.d.ts +0 -6
  23. package/src/lib/actions/get-board-values.d.ts.map +0 -1
  24. package/src/lib/actions/get-board-values.js +0 -45
  25. package/src/lib/actions/get-board-values.js.map +0 -1
  26. package/src/lib/actions/get-column-values.d.ts +0 -7
  27. package/src/lib/actions/get-column-values.d.ts.map +0 -1
  28. package/src/lib/actions/get-column-values.js +0 -43
  29. package/src/lib/actions/get-column-values.js.map +0 -1
  30. package/src/lib/actions/update-column-values-of-item.d.ts +0 -7
  31. package/src/lib/actions/update-column-values-of-item.d.ts.map +0 -1
  32. package/src/lib/actions/update-column-values-of-item.js +0 -49
  33. package/src/lib/actions/update-column-values-of-item.js.map +0 -1
  34. package/src/lib/actions/update-item-name.d.ts +0 -7
  35. package/src/lib/actions/update-item-name.d.ts.map +0 -1
  36. package/src/lib/actions/update-item-name.js +0 -36
  37. package/src/lib/actions/update-item-name.js.map +0 -1
  38. package/src/lib/actions/upload-file-to-column.d.ts +0 -9
  39. package/src/lib/actions/upload-file-to-column.d.ts.map +0 -1
  40. package/src/lib/actions/upload-file-to-column.js +0 -93
  41. package/src/lib/actions/upload-file-to-column.js.map +0 -1
  42. package/src/lib/auth.d.ts +0 -2
  43. package/src/lib/auth.d.ts.map +0 -1
  44. package/src/lib/auth.js +0 -16
  45. package/src/lib/auth.js.map +0 -1
  46. package/src/lib/common/client.d.ts +0 -100
  47. package/src/lib/common/client.d.ts.map +0 -1
  48. package/src/lib/common/client.js +0 -101
  49. package/src/lib/common/client.js.map +0 -1
  50. package/src/lib/common/constants.d.ts +0 -74
  51. package/src/lib/common/constants.d.ts.map +0 -1
  52. package/src/lib/common/constants.js +0 -133
  53. package/src/lib/common/constants.js.map +0 -1
  54. package/src/lib/common/helper.d.ts +0 -11
  55. package/src/lib/common/helper.d.ts.map +0 -1
  56. package/src/lib/common/helper.js +0 -359
  57. package/src/lib/common/helper.js.map +0 -1
  58. package/src/lib/common/index.d.ts +0 -13
  59. package/src/lib/common/index.d.ts.map +0 -1
  60. package/src/lib/common/index.js +0 -213
  61. package/src/lib/common/index.js.map +0 -1
  62. package/src/lib/common/models.d.ts +0 -83
  63. package/src/lib/common/models.d.ts.map +0 -1
  64. package/src/lib/common/models.js +0 -3
  65. package/src/lib/common/models.js.map +0 -1
  66. package/src/lib/common/mutations.d.ts +0 -10
  67. package/src/lib/common/mutations.d.ts.map +0 -1
  68. package/src/lib/common/mutations.js +0 -85
  69. package/src/lib/common/mutations.js.map +0 -1
  70. package/src/lib/common/queries.d.ts +0 -11
  71. package/src/lib/common/queries.d.ts.map +0 -1
  72. package/src/lib/common/queries.js +0 -162
  73. package/src/lib/common/queries.js.map +0 -1
  74. package/src/lib/triggers/new-item-in-board.d.ts +0 -15
  75. package/src/lib/triggers/new-item-in-board.d.ts.map +0 -1
  76. package/src/lib/triggers/new-item-in-board.js +0 -100
  77. package/src/lib/triggers/new-item-in-board.js.map +0 -1
  78. package/src/lib/triggers/specific-column-updated.d.ts +0 -19
  79. package/src/lib/triggers/specific-column-updated.d.ts.map +0 -1
  80. package/src/lib/triggers/specific-column-updated.js +0 -123
  81. package/src/lib/triggers/specific-column-updated.js.map +0 -1
package/src/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const monday: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,MAAM,mHA6BjB,CAAC"}
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,iDAAqD;AACrD,+DAAiE;AACjE,6DAA+D;AAC/D,2DAA6D;AAC7D,+DAAiE;AACjE,qEAA0E;AAC1E,uEAA6E;AAC7E,6FAA4F;AAC5F,qEAAsE;AACtE,wEAAyE;AACzE,oFAA2F;AAC3F,+EAA+E;AAC/E,qCAAwC;AAExC,MAAM,QAAQ,GAAG;;;;;2BAKU,CAAC;AAEf,QAAA,MAAM,GAAG,IAAA,8BAAW,EAAC;IAChC,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,sCAAsC;IAEnD,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,gDAAgD;IACzD,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE;QACP,UAAU;QACV,gBAAgB;QAChB,YAAY;QACZ,WAAW;QACX,sBAAsB;QACtB,eAAe;QACf,UAAU;KACX;IACD,IAAI,EAAE,iBAAU;IAChB,OAAO,EAAE;QACP,kCAAkB;QAClB,gCAAiB;QACjB,8BAAgB;QAChB,kCAAkB;QAClB,2CAAwB;QACxB,8CAA0B;QAC1B,6DAA8B;QAC9B,uCAAoB;QACpB,gDAAwB;KACzB;IACD,QAAQ,EAAE,CAAC,yCAAqB,EAAE,2DAAiC,CAAC;CACrE,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const createColumnAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- column_title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- column_type: import("@activepieces/pieces-framework").StaticDropdownProperty<import("../common/constants").MondayColumnType, true>;
6
- }>;
7
- //# sourceMappingURL=create-column.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-column.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-column.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;;EAiC7B,CAAC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createColumnAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const constants_1 = require("../common/constants");
9
- exports.createColumnAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.mondayAuth,
11
- name: 'monday_create_column',
12
- displayName: 'Create Column',
13
- description: 'Creates a new column in board.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Adds a new column of a chosen type (text, status, date, number, etc.) to a monday.com board. Use to extend a board\'s structure before writing data into it. Not idempotent: each call creates a separate column even with the same title.', idempotent: false },
16
- props: {
17
- workspace_id: common_1.mondayCommon.workspace_id(true),
18
- board_id: common_1.mondayCommon.board_id(true),
19
- column_title: pieces_framework_1.Property.ShortText({
20
- displayName: 'Column Title',
21
- required: true,
22
- }),
23
- column_type: pieces_framework_1.Property.StaticDropdown({
24
- displayName: 'Column Type',
25
- required: true,
26
- options: {
27
- disabled: false,
28
- options: constants_1.COLUMN_TYPE_OPTIONS,
29
- },
30
- }),
31
- },
32
- run(context) {
33
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
34
- const { board_id, column_title, column_type } = context.propsValue;
35
- const client = (0, common_1.makeClient)(context.auth);
36
- return yield client.createColumn({
37
- boardId: board_id,
38
- columnTitle: column_title,
39
- columnType: column_type,
40
- });
41
- });
42
- },
43
- });
44
- //# sourceMappingURL=create-column.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-column.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-column.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAqD;AACrD,mDAA0D;AAE7C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,4OAA4O,EAAE,UAAU,EAAE,KAAK,EAAE;IAC5R,KAAK,EAAE;QACL,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC,IAAI,CAAC;QAC7C,QAAQ,EAAE,qBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrC,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACnC,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,+BAAmB;aAC7B;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEnE,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACxC,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC;gBAC/B,OAAO,EAAE,QAAkB;gBAC3B,WAAW,EAAE,YAAsB;gBACnC,UAAU,EAAE,WAAqB;aAClC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const createGroupAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- group_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- }>;
6
- //# sourceMappingURL=create-group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-group.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-group.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;EAwB5B,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createGroupAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- exports.createGroupAction = (0, pieces_framework_1.createAction)({
9
- auth: auth_1.mondayAuth,
10
- name: 'monday_create_group',
11
- displayName: 'Create Group',
12
- description: 'Creates a new group in board.',
13
- audience: 'both',
14
- aiMetadata: { description: 'Creates a new group (section that holds items) on a monday.com board. Use to organize items under a named section before adding them. Not idempotent: each call creates a separate group even with the same name.', idempotent: false },
15
- props: {
16
- workspace_id: common_1.mondayCommon.workspace_id(true),
17
- board_id: common_1.mondayCommon.board_id(true),
18
- group_name: pieces_framework_1.Property.ShortText({
19
- displayName: 'Group Name',
20
- required: true,
21
- }),
22
- },
23
- run(context) {
24
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
- const { board_id, group_name } = context.propsValue;
26
- const client = (0, common_1.makeClient)(context.auth);
27
- return yield client.createGroup({
28
- boardId: board_id,
29
- groupName: group_name,
30
- });
31
- });
32
- },
33
- });
34
- //# sourceMappingURL=create-group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-group.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-group.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAqD;AAExC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,mNAAmN,EAAE,UAAU,EAAE,KAAK,EAAE;IACnQ,KAAK,EAAE;QACL,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC,IAAI,CAAC;QAC7C,QAAQ,EAAE,qBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrC,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACxC,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC;gBAC9B,OAAO,EAAE,QAAkB;gBAC3B,SAAS,EAAE,UAAoB;aAChC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const createItemAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- group_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
5
- item_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- column_values: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
7
- create_labels_if_missing: import("@activepieces/pieces-framework").CheckboxProperty<false>;
8
- }>;
9
- //# sourceMappingURL=create-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-item.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-item.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB;;;;;;;EA2D3B,CAAC"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createItemAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const helper_1 = require("../common/helper");
9
- exports.createItemAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.mondayAuth,
11
- name: 'monday_create_item',
12
- displayName: 'Create Item',
13
- description: 'Creates a new item inside a board.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Creates a new item (row) on a monday.com board, optionally placed in a group and pre-populated with column values that are auto-coerced to each column\'s type. Use to add a record to a board. Requires the board id and an item name; enable create-labels-if-missing only when allowed to modify board structure. Not idempotent: each call creates a separate item.', idempotent: false },
16
- props: {
17
- workspace_id: common_1.mondayCommon.workspace_id(true),
18
- board_id: common_1.mondayCommon.board_id(true),
19
- group_id: common_1.mondayCommon.group_id(false),
20
- item_name: pieces_framework_1.Property.ShortText({
21
- displayName: 'Item Name',
22
- description: 'Item Name',
23
- required: true,
24
- }),
25
- column_values: common_1.mondayCommon.columnValues,
26
- create_labels_if_missing: pieces_framework_1.Property.Checkbox({
27
- displayName: 'Create Labels if Missing',
28
- description: 'Creates status/dropdown labels if they are missing. This requires permission to change the board structure.',
29
- defaultValue: false,
30
- required: false,
31
- }),
32
- },
33
- run(context) {
34
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
- var _a;
36
- const { board_id, item_name, create_labels_if_missing } = context.propsValue;
37
- const group_id = context.propsValue.group_id;
38
- const columnValuesInput = context.propsValue.column_values;
39
- const mondayColumnValues = {};
40
- const client = (0, common_1.makeClient)(context.auth);
41
- const res = yield client.listBoardColumns({
42
- boardId: board_id,
43
- });
44
- const columns = (_a = res.data.boards[0]) === null || _a === void 0 ? void 0 : _a.columns;
45
- // map board column id with column type
46
- const columnIdTypeMap = (0, helper_1.generateColumnIdTypeMap)(columns);
47
- Object.keys(columnValuesInput).forEach((key) => {
48
- if (columnValuesInput[key] !== '') {
49
- const columnType = columnIdTypeMap[key];
50
- mondayColumnValues[key] = (0, helper_1.convertPropValueToMondayColumnValue)(columnType, columnValuesInput[key]);
51
- }
52
- });
53
- return yield client.createItem({
54
- itemName: item_name,
55
- boardId: board_id,
56
- groupId: group_id,
57
- columnValues: JSON.stringify(mondayColumnValues),
58
- createLabels: create_labels_if_missing !== null && create_labels_if_missing !== void 0 ? create_labels_if_missing : false,
59
- });
60
- });
61
- },
62
- });
63
- //# sourceMappingURL=create-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-item.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-item.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,kCAAqC;AACrC,sCAAqD;AACrD,6CAG0B;AAEb,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,yWAAyW,EAAE,UAAU,EAAE,KAAK,EAAE;IACzZ,KAAK,EAAE;QACL,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC,IAAI,CAAC;QAC7C,QAAQ,EAAE,qBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrC,QAAQ,EAAE,qBAAY,CAAC,QAAQ,CAAC,KAAK,CAAC;QACtC,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,aAAa,EAAE,qBAAY,CAAC,YAAY;QACxC,wBAAwB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1C,WAAW,EAAE,0BAA0B;YACvC,WAAW,EACT,6GAA6G;YAC/G,YAAY,EAAE,KAAK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B,aAAxB,wBAAwB,cAAxB,wBAAwB,GAAI,KAAK;aAChD,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const createUpdateAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- item_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- body: import("@activepieces/pieces-framework").LongTextProperty<true>;
4
- }>;
5
- //# sourceMappingURL=create-update.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-update.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-update.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;EA0B7B,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createUpdateAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- exports.createUpdateAction = (0, pieces_framework_1.createAction)({
9
- auth: auth_1.mondayAuth,
10
- name: 'monday_create_update',
11
- displayName: 'Create Update',
12
- description: 'Creates a new update.',
13
- audience: 'both',
14
- aiMetadata: { description: 'Posts an update (a comment/note in the item\'s update feed) to a monday.com item identified by item id. Use to add a message or log to an item. Not idempotent: each call appends a new update.', idempotent: false },
15
- props: {
16
- item_id: pieces_framework_1.Property.ShortText({
17
- displayName: 'Item ID',
18
- required: true,
19
- }),
20
- body: pieces_framework_1.Property.LongText({
21
- displayName: 'Body',
22
- required: true,
23
- }),
24
- },
25
- run(context) {
26
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
- const { item_id, body } = context.propsValue;
28
- const client = (0, common_1.makeClient)(context.auth);
29
- return yield client.createUpdate({
30
- itemId: item_id,
31
- body: body,
32
- });
33
- });
34
- },
35
- });
36
- //# sourceMappingURL=create-update.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-update.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-update.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAuC;AAE1B,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,iMAAiM,EAAE,UAAU,EAAE,KAAK,EAAE;IACjP,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE7C,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACxC,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC;gBAC/B,MAAM,EAAE,OAAiB;gBACzB,IAAI,EAAE,IAAc;aACrB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const getBoardItemValuesAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- column_ids: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
5
- }>;
6
- //# sourceMappingURL=get-board-values.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-board-values.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-board-values.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;EAoCnC,CAAC"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBoardItemValuesAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const helper_1 = require("../common/helper");
9
- exports.getBoardItemValuesAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.mondayAuth,
11
- name: 'monday_get_board_values',
12
- displayName: 'Get Board Values',
13
- description: "Gets a list of board's items.",
14
- audience: 'both',
15
- aiMetadata: { description: 'Retrieves all items on a monday.com board with their column values, optionally narrowed to specific column ids. Use to read or list the rows of a board. Read-only and idempotent.', idempotent: true },
16
- props: {
17
- workspace_id: common_1.mondayCommon.workspace_id(true),
18
- board_id: common_1.mondayCommon.board_id(true),
19
- column_ids: common_1.mondayCommon.columnIds(false),
20
- },
21
- run(context) {
22
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
- const { board_id, column_ids } = context.propsValue;
24
- const client = (0, common_1.makeClient)(context.auth);
25
- const res = yield client.getBoardItemValues({
26
- boardId: board_id,
27
- columnIds: column_ids,
28
- });
29
- const items = res.data.boards[0].items_page.items;
30
- const result = [];
31
- for (const item of items) {
32
- const transformedValues = {
33
- id: item.id,
34
- name: item.name,
35
- };
36
- for (const column of item.column_values) {
37
- transformedValues[column.id] = (0, helper_1.parseMondayColumnValue)(column);
38
- }
39
- result.push(transformedValues);
40
- }
41
- return result;
42
- });
43
- },
44
- });
45
- //# sourceMappingURL=get-board-values.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-board-values.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-board-values.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,kCAAqC;AACrC,sCAAqD;AACrD,6CAA0D;AAE7C,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,oLAAoL,EAAE,UAAU,EAAE,IAAI,EAAE;IACnO,KAAK,EAAE;QACL,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC,IAAI,CAAC;QAC7C,QAAQ,EAAE,qBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrC,UAAU,EAAE,qBAAY,CAAC,SAAS,CAAC,KAAK,CAAC;KAC1C;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACxC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC;gBAC1C,OAAO,EAAE,QAAkB;gBAC3B,SAAS,EAAE,UAAsB;aAClC,CAAC,CAAC;YACH,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC;YAElD,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;gBACzB,MAAM,iBAAiB,GAAwB;oBAC7C,EAAE,EAAE,IAAI,CAAC,EAAE;oBACX,IAAI,EAAE,IAAI,CAAC,IAAI;iBAChB,CAAC;gBACF,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;oBACxC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,IAAA,+BAAsB,EAAC,MAAM,CAAC,CAAC;gBAChE,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACjC,CAAC;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const getItemsColumnValuesAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- item_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
5
- column_ids: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
6
- }>;
7
- //# sourceMappingURL=get-column-values.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-column-values.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-column-values.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B;;;;;EAgCrC,CAAC"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getItemsColumnValuesAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const helper_1 = require("../common/helper");
9
- exports.getItemsColumnValuesAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.mondayAuth,
11
- name: 'monday_get_item_column_values',
12
- displayName: "Get an Item's Column Values",
13
- description: 'Gets column values of an item.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Retrieves the column values for a single monday.com item identified by board and item id, optionally limited to specific column ids. Use to read one item\'s field values. Read-only and idempotent.', idempotent: true },
16
- props: {
17
- workspace_id: common_1.mondayCommon.workspace_id(true),
18
- board_id: common_1.mondayCommon.board_id(true),
19
- item_id: common_1.mondayCommon.item_id(true),
20
- column_ids: common_1.mondayCommon.columnIds(false),
21
- },
22
- run(context) {
23
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
24
- const { board_id, item_id, column_ids } = context.propsValue;
25
- const client = (0, common_1.makeClient)(context.auth);
26
- const res = yield client.getItemColumnValues({
27
- boardId: board_id,
28
- itemId: item_id,
29
- columnIds: column_ids,
30
- });
31
- const item = res.data.boards[0].items_page.items[0];
32
- const transformedValues = {
33
- id: item.id,
34
- name: item.name,
35
- };
36
- for (const column of item.column_values) {
37
- transformedValues[column.id] = (0, helper_1.parseMondayColumnValue)(column);
38
- }
39
- return transformedValues;
40
- });
41
- },
42
- });
43
- //# sourceMappingURL=get-column-values.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-column-values.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-column-values.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,kCAAqC;AACrC,sCAAqD;AACrD,6CAA0D;AAE7C,QAAA,0BA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BAAiB,CAAC;QAC3B,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const updateColumnValuesOfItemAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- item_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
5
- column_values: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
6
- }>;
7
- //# sourceMappingURL=update-column-values-of-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-column-values-of-item.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-column-values-of-item.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,8BAA8B;;;;;EA2CzC,CAAC"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateColumnValuesOfItemAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const helper_1 = require("../common/helper");
9
- exports.updateColumnValuesOfItemAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.mondayAuth,
11
- name: 'monday_update_column_values_of_item',
12
- displayName: 'Update Column Values of Specific Item',
13
- description: 'Updates multiple columns values of specific item.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Updates one or more column values on an existing monday.com item identified by board and item id; provided values are auto-coerced to each column\'s type. Use to edit an item\'s fields. Idempotent: re-applying the same values leaves the item in the same state.', idempotent: true },
16
- props: {
17
- workspace_id: common_1.mondayCommon.workspace_id(true),
18
- board_id: common_1.mondayCommon.board_id(true),
19
- item_id: common_1.mondayCommon.item_id(true),
20
- column_values: common_1.mondayCommon.columnValues,
21
- },
22
- run(context) {
23
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
24
- var _a;
25
- const { board_id, item_id } = context.propsValue;
26
- const columnValuesInput = context.propsValue.column_values;
27
- const mondayColumnValues = {};
28
- const client = (0, common_1.makeClient)(context.auth);
29
- const res = yield client.listBoardColumns({
30
- boardId: board_id,
31
- });
32
- const columns = (_a = res.data.boards[0]) === null || _a === void 0 ? void 0 : _a.columns;
33
- // map board column id with column type
34
- const columnIdTypeMap = (0, helper_1.generateColumnIdTypeMap)(columns);
35
- Object.keys(columnValuesInput).forEach((key) => {
36
- if (columnValuesInput[key] !== '') {
37
- const columnType = columnIdTypeMap[key];
38
- mondayColumnValues[key] = (0, helper_1.convertPropValueToMondayColumnValue)(columnType, columnValuesInput[key]);
39
- }
40
- });
41
- return yield client.updateItem({
42
- boardId: board_id,
43
- itemId: item_id,
44
- columnValues: JSON.stringify(mondayColumnValues),
45
- });
46
- });
47
- },
48
- });
49
- //# sourceMappingURL=update-column-values-of-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-column-values-of-item.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-column-values-of-item.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAAqC;AACrC,sCAAqD;AACrD,6CAG0B;AAEb,QAAA,8BAA8B,GAAG,IAAA,+BAAY,EAAC;IACzD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EAAE,uCAAuC;IACpD,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,MAAM;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AM,CAAC,UAAU,CAAC;gBAC7B,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,OAAO;gBACf,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;aACjD,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const updateItemNameAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- item_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
5
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- }>;
7
- //# sourceMappingURL=update-item-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-item-name.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-item-name.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;;EA0B/B,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateItemNameAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- exports.updateItemNameAction = (0, pieces_framework_1.createAction)({
9
- auth: auth_1.mondayAuth,
10
- name: 'monday_update_item_name',
11
- displayName: 'Update Item Name',
12
- description: 'Updates an item name.',
13
- audience: 'both',
14
- aiMetadata: { description: 'Renames an existing monday.com item identified by board and item id. Use to change an item\'s title. Idempotent: re-applying the same name leaves the item unchanged.', idempotent: true },
15
- props: {
16
- workspace_id: common_1.mondayCommon.workspace_id(true),
17
- board_id: common_1.mondayCommon.board_id(true),
18
- item_id: common_1.mondayCommon.item_id(true),
19
- name: pieces_framework_1.Property.ShortText({
20
- displayName: 'New Item name',
21
- required: true,
22
- }),
23
- },
24
- run(context) {
25
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
- const { board_id, item_id, name } = context.propsValue;
27
- const client = (0, common_1.makeClient)(context.auth);
28
- return yield client.updateItem({
29
- boardId: board_id,
30
- itemId: item_id,
31
- columnValues: JSON.stringify({ name: name }),
32
- });
33
- });
34
- },
35
- });
36
- //# sourceMappingURL=update-item-name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-item-name.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-item-name.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAqD;AAExC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,uKAAuK,EAAE,UAAU,EAAE,IAAI,EAAE;IACtN,KAAK,EAAE;QACL,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC,IAAI,CAAC;QAC7C,QAAQ,EAAE,qBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrC,OAAO,EAAE,qBAAY,CAAC,OAAO,CAAC,IAAI,CAAC;QACnC,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvD,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACxC,OAAO,MAAM,MAAM,CAAC,UAAU,CAAC;gBAC7B,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,OAAO;gBACf,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aAC7C,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const uploadFileToColumnAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- board_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
4
- item_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
5
- file_column_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
6
- file: import("@activepieces/pieces-framework").FileProperty<true>;
7
- file_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- }>;
9
- //# sourceMappingURL=upload-file-to-column.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-file-to-column.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/upload-file-to-column.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,wBAAwB;;;;;;;EAmGnC,CAAC"}