@activepieces/piece-monday 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -25
- package/src/index.js +260 -57
- package/README.md +0 -7
- package/src/index.d.ts +0 -2
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-column.d.ts +0 -6
- package/src/lib/actions/create-column.js +0 -42
- package/src/lib/actions/create-column.js.map +0 -1
- package/src/lib/actions/create-group.d.ts +0 -5
- package/src/lib/actions/create-group.js +0 -32
- package/src/lib/actions/create-group.js.map +0 -1
- package/src/lib/actions/create-item.d.ts +0 -8
- package/src/lib/actions/create-item.js +0 -61
- package/src/lib/actions/create-item.js.map +0 -1
- package/src/lib/actions/create-update.d.ts +0 -4
- package/src/lib/actions/create-update.js +0 -34
- package/src/lib/actions/create-update.js.map +0 -1
- package/src/lib/actions/get-board-values.d.ts +0 -5
- package/src/lib/actions/get-board-values.js +0 -43
- package/src/lib/actions/get-board-values.js.map +0 -1
- package/src/lib/actions/get-column-values.d.ts +0 -6
- package/src/lib/actions/get-column-values.js +0 -41
- package/src/lib/actions/get-column-values.js.map +0 -1
- package/src/lib/actions/update-column-values-of-item.d.ts +0 -6
- package/src/lib/actions/update-column-values-of-item.js +0 -47
- package/src/lib/actions/update-column-values-of-item.js.map +0 -1
- package/src/lib/actions/update-item-name.d.ts +0 -6
- package/src/lib/actions/update-item-name.js +0 -34
- package/src/lib/actions/update-item-name.js.map +0 -1
- package/src/lib/actions/upload-file-to-column.d.ts +0 -8
- package/src/lib/actions/upload-file-to-column.js +0 -91
- package/src/lib/actions/upload-file-to-column.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -99
- package/src/lib/common/client.js +0 -101
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/constants.d.ts +0 -73
- package/src/lib/common/constants.js +0 -133
- package/src/lib/common/constants.js.map +0 -1
- package/src/lib/common/helper.d.ts +0 -10
- package/src/lib/common/helper.js +0 -359
- package/src/lib/common/helper.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -12
- package/src/lib/common/index.js +0 -213
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/common/models.d.ts +0 -82
- package/src/lib/common/models.js +0 -3
- package/src/lib/common/models.js.map +0 -1
- package/src/lib/common/mutations.d.ts +0 -9
- package/src/lib/common/mutations.js +0 -85
- package/src/lib/common/mutations.js.map +0 -1
- package/src/lib/common/queries.d.ts +0 -10
- package/src/lib/common/queries.js +0 -162
- package/src/lib/common/queries.js.map +0 -1
- package/src/lib/triggers/new-item-in-board.d.ts +0 -14
- package/src/lib/triggers/new-item-in-board.js +0 -97
- package/src/lib/triggers/new-item-in-board.js.map +0 -1
- package/src/lib/triggers/specific-column-updated.d.ts +0 -18
- package/src/lib/triggers/specific-column-updated.js +0 -120
- package/src/lib/triggers/specific-column-updated.js.map +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Board, MondayColumn, User } from './models';
|
|
2
|
-
export declare class mondayClient {
|
|
3
|
-
private client;
|
|
4
|
-
constructor(apiKey: string);
|
|
5
|
-
listWorkspcaes(): Promise<{
|
|
6
|
-
data: {
|
|
7
|
-
workspaces: {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
account_id: number;
|
|
13
|
-
}>;
|
|
14
|
-
listWorkspaceBoards(variables: object): Promise<{
|
|
15
|
-
data: {
|
|
16
|
-
boards: {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
type: string;
|
|
20
|
-
}[];
|
|
21
|
-
};
|
|
22
|
-
account_id: number;
|
|
23
|
-
}>;
|
|
24
|
-
listBoardGroups(variables: object): Promise<{
|
|
25
|
-
data: {
|
|
26
|
-
boards: Board[];
|
|
27
|
-
};
|
|
28
|
-
account_id: number;
|
|
29
|
-
}>;
|
|
30
|
-
listBoardColumns(variables: object): Promise<{
|
|
31
|
-
data: {
|
|
32
|
-
boards: {
|
|
33
|
-
columns: MondayColumn[];
|
|
34
|
-
}[];
|
|
35
|
-
};
|
|
36
|
-
account_id: number;
|
|
37
|
-
}>;
|
|
38
|
-
listBoardItems(variables: object): Promise<{
|
|
39
|
-
data: {
|
|
40
|
-
boards: Board[];
|
|
41
|
-
};
|
|
42
|
-
account_id: number;
|
|
43
|
-
}>;
|
|
44
|
-
createItem(variables: object): Promise<{
|
|
45
|
-
data: any;
|
|
46
|
-
account_id: number;
|
|
47
|
-
}>;
|
|
48
|
-
updateItem(variables: object): Promise<{
|
|
49
|
-
data: any;
|
|
50
|
-
account_id: number;
|
|
51
|
-
}>;
|
|
52
|
-
createWebhook(variables: object): Promise<{
|
|
53
|
-
data: {
|
|
54
|
-
id: string;
|
|
55
|
-
board_id: string;
|
|
56
|
-
};
|
|
57
|
-
account_id: number;
|
|
58
|
-
}>;
|
|
59
|
-
deleteWebhook(variables: object): Promise<{
|
|
60
|
-
data: any;
|
|
61
|
-
account_id: number;
|
|
62
|
-
}>;
|
|
63
|
-
listUsers(): Promise<{
|
|
64
|
-
data: {
|
|
65
|
-
users: User[];
|
|
66
|
-
};
|
|
67
|
-
account_id: number;
|
|
68
|
-
}>;
|
|
69
|
-
getBoardItemValues(variables: object): Promise<{
|
|
70
|
-
data: {
|
|
71
|
-
boards: Board[];
|
|
72
|
-
};
|
|
73
|
-
account_id: number;
|
|
74
|
-
}>;
|
|
75
|
-
getItemColumnValues(variables: object): Promise<{
|
|
76
|
-
data: {
|
|
77
|
-
boards: Board[];
|
|
78
|
-
};
|
|
79
|
-
account_id: number;
|
|
80
|
-
}>;
|
|
81
|
-
createColumn(variables: object): Promise<{
|
|
82
|
-
data: {
|
|
83
|
-
id: string;
|
|
84
|
-
};
|
|
85
|
-
account_id: number;
|
|
86
|
-
}>;
|
|
87
|
-
createGroup(variables: object): Promise<{
|
|
88
|
-
data: {
|
|
89
|
-
id: string;
|
|
90
|
-
};
|
|
91
|
-
account_id: number;
|
|
92
|
-
}>;
|
|
93
|
-
createUpdate(variables: object): Promise<{
|
|
94
|
-
data: {
|
|
95
|
-
id: string;
|
|
96
|
-
};
|
|
97
|
-
account_id: number;
|
|
98
|
-
}>;
|
|
99
|
-
}
|
package/src/lib/common/client.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mondayClient = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const monday_sdk_js_1 = tslib_1.__importDefault(require("monday-sdk-js"));
|
|
6
|
-
const mutations_1 = require("./mutations");
|
|
7
|
-
const queries_1 = require("./queries");
|
|
8
|
-
class mondayClient {
|
|
9
|
-
constructor(apiKey) {
|
|
10
|
-
this.client = (0, monday_sdk_js_1.default)();
|
|
11
|
-
this.client.setToken(apiKey);
|
|
12
|
-
this.client.setApiVersion('2023-10');
|
|
13
|
-
}
|
|
14
|
-
listWorkspcaes() {
|
|
15
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.listWorkspaces);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
listWorkspaceBoards(variables) {
|
|
20
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.listWorkspaceBoards, { variables: variables });
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
listBoardGroups(variables) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.listBoardGroups, { variables: variables });
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
listBoardColumns(variables) {
|
|
30
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.listBoardColumns, { variables: variables });
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
listBoardItems(variables) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.listBoardItems, { variables: variables });
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
createItem(variables) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
return yield this.client.api(mutations_1.mondayGraphQLMutations.createItem, {
|
|
42
|
-
variables: variables,
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
updateItem(variables) {
|
|
47
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
return yield this.client.api(mutations_1.mondayGraphQLMutations.updateItem, {
|
|
49
|
-
variables: variables,
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
createWebhook(variables) {
|
|
54
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
return yield this.client.api(mutations_1.mondayGraphQLMutations.createWebhook, {
|
|
56
|
-
variables: variables,
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
deleteWebhook(variables) {
|
|
61
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
return yield this.client.api(mutations_1.mondayGraphQLMutations.deleteWebhook, {
|
|
63
|
-
variables: variables,
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
listUsers() {
|
|
68
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.listUsers);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
getBoardItemValues(variables) {
|
|
73
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.getBoardItemValues, { variables: variables });
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
getItemColumnValues(variables) {
|
|
78
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
return yield this.client.api(queries_1.mondayGraphQLQueries.getItemColumnValues, {
|
|
80
|
-
variables: variables,
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
createColumn(variables) {
|
|
85
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
return yield this.client.api(mutations_1.mondayGraphQLMutations.createColumn, { variables: variables });
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
createGroup(variables) {
|
|
90
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
91
|
-
return yield this.client.api(mutations_1.mondayGraphQLMutations.createGroup, { variables: variables });
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
createUpdate(variables) {
|
|
95
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
return yield this.client.api(mutations_1.mondayGraphQLMutations.createUpdate, { variables: variables });
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.mondayClient = mondayClient;
|
|
101
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/monday/src/lib/common/client.ts"],"names":[],"mappings":";;;;AAAA,0EAAsC;AAGtC,2CAAqD;AACrD,uCAAiD;AACjD,MAAa,YAAY;IAEvB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,IAAA,uBAAS,GAAE,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IACK,cAAc;;YAClB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAEzB,8BAAoB,CAAC,cAA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-
BOARD_RELATION = "board_relation",
|
|
4
|
-
BUTTON = "button",
|
|
5
|
-
CHECKBOX = "checkbox",
|
|
6
|
-
COLOR_PICKER = "color_picker",
|
|
7
|
-
COUNTRY = "country",
|
|
8
|
-
CREATION_LOG = "creation_log",
|
|
9
|
-
DATE = "date",
|
|
10
|
-
DEPENDENCY = "dependency",
|
|
11
|
-
DOC = "doc",
|
|
12
|
-
DROPDOWN = "dropdown",
|
|
13
|
-
EMAIL = "email",
|
|
14
|
-
FILE = "file",
|
|
15
|
-
FORMULA = "formula",
|
|
16
|
-
HOUR = "hour",
|
|
17
|
-
ITEM_ASSIGNEES = "item_assignees",
|
|
18
|
-
ITEM_ID = "item_id",
|
|
19
|
-
LAST_UPDATED = "last_updated",
|
|
20
|
-
LINK = "link",
|
|
21
|
-
LOCATION = "location",
|
|
22
|
-
LONG_TEXT = "long_text",
|
|
23
|
-
MIRROR = "mirror",
|
|
24
|
-
NAME = "name",
|
|
25
|
-
NUMBERS = "numbers",
|
|
26
|
-
PHONE = "phone",
|
|
27
|
-
PEOPLE = "people",
|
|
28
|
-
PROGRESS = "progress",
|
|
29
|
-
RATING = "rating",
|
|
30
|
-
STATUS = "status",
|
|
31
|
-
SUBTASKS = "subtasks",
|
|
32
|
-
TAGS = "tags",
|
|
33
|
-
TEAM = "team",
|
|
34
|
-
TEXT = "text",
|
|
35
|
-
TIMELINE = "timeline",
|
|
36
|
-
TIME_TRACKING = "time_tracking",
|
|
37
|
-
VOTE = "vote",
|
|
38
|
-
WEEK = "week",
|
|
39
|
-
WORLD_CLOCK = "world_clock",
|
|
40
|
-
UNSUPPORTED = "unsupported"
|
|
41
|
-
}
|
|
42
|
-
export declare const enum MondayWebhookEventType {
|
|
43
|
-
CHANGE_COLUMN_VALUE = "change_column_value",
|
|
44
|
-
CHANGE_STATUS_COLUMN_VALUE = "change_status_column_value",
|
|
45
|
-
CHANGE_SUBITEM_COLUMN_VALUE = "change_subitem_column_value",
|
|
46
|
-
CHANGE_SPECIFIC_COLUMN_VALUE = "change_specific_column_value",
|
|
47
|
-
CHANGE_NAME = "change_name",
|
|
48
|
-
CREATE_ITEM = "create_item",
|
|
49
|
-
ITEM_ARCHIVED = "item_archived",
|
|
50
|
-
ITEM_DELETED = "item_deleted",
|
|
51
|
-
ITEM_MOVED_TO_ANY_GROUP = "item_moved_to_any_group",
|
|
52
|
-
ITEM_MOVED_TO_SPECIFIC_GROUP = "item_moved_to_specific_group",
|
|
53
|
-
ITEM_RESTORED = "item_restored",
|
|
54
|
-
CREATE_SUBITEM = "create_subitem",
|
|
55
|
-
CHANGE_SUBITEM_NAME = "change_subitem_name",
|
|
56
|
-
MOVE_SUBITEM = "move_subitem",
|
|
57
|
-
SUBITEM_ARCHIVED = "subitem_archived",
|
|
58
|
-
SUBITEM_DELETED = "subitem_deleted",
|
|
59
|
-
CREATE_COLUMN = "create_column",
|
|
60
|
-
CREATE_UPDATE = "create_update",
|
|
61
|
-
EDIT_UPDATE = "edit_update",
|
|
62
|
-
DELETE_UPDATE = "delete_update",
|
|
63
|
-
CREATE_SUBITEM_UPDATE = "create_subitem_update"
|
|
64
|
-
}
|
|
65
|
-
export declare const enum BoardType {
|
|
66
|
-
BOARD = "board",
|
|
67
|
-
SUB_ITEMS_BOARD = "sub_items_board"
|
|
68
|
-
}
|
|
69
|
-
export declare const MondayNotWritableColumnType: MondayColumnType[];
|
|
70
|
-
export declare const COLUMN_TYPE_OPTIONS: {
|
|
71
|
-
label: string;
|
|
72
|
-
value: MondayColumnType;
|
|
73
|
-
}[];
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COLUMN_TYPE_OPTIONS = exports.MondayNotWritableColumnType = void 0;
|
|
4
|
-
exports.MondayNotWritableColumnType = [
|
|
5
|
-
"unsupported" /* MondayColumnType.UNSUPPORTED */,
|
|
6
|
-
"auto_number" /* MondayColumnType.AUTO_NUMBER */,
|
|
7
|
-
"name" /* MondayColumnType.NAME */,
|
|
8
|
-
"color_picker" /* MondayColumnType.COLOR_PICKER */,
|
|
9
|
-
"button" /* MondayColumnType.BUTTON */,
|
|
10
|
-
"mirror" /* MondayColumnType.MIRROR */,
|
|
11
|
-
"subtasks" /* MondayColumnType.SUBTASKS */,
|
|
12
|
-
"item_id" /* MondayColumnType.ITEM_ID */,
|
|
13
|
-
"creation_log" /* MondayColumnType.CREATION_LOG */,
|
|
14
|
-
"file" /* MondayColumnType.FILE */,
|
|
15
|
-
"formula" /* MondayColumnType.FORMULA */,
|
|
16
|
-
"doc" /* MondayColumnType.DOC */,
|
|
17
|
-
"last_updated" /* MondayColumnType.LAST_UPDATED */,
|
|
18
|
-
"progress" /* MondayColumnType.PROGRESS */,
|
|
19
|
-
"tags" /* MondayColumnType.TAGS */,
|
|
20
|
-
"time_tracking" /* MondayColumnType.TIME_TRACKING */,
|
|
21
|
-
"vote" /* MondayColumnType.VOTE */,
|
|
22
|
-
];
|
|
23
|
-
exports.COLUMN_TYPE_OPTIONS = [
|
|
24
|
-
{
|
|
25
|
-
label: 'Auto Number',
|
|
26
|
-
value: "auto_number" /* MondayColumnType.AUTO_NUMBER */,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
label: 'Color Picker',
|
|
30
|
-
value: "color_picker" /* MondayColumnType.COLOR_PICKER */,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: 'Checkbox',
|
|
34
|
-
value: "checkbox" /* MondayColumnType.CHECKBOX */,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: 'Country',
|
|
38
|
-
value: "country" /* MondayColumnType.COUNTRY */,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: 'Creation Log',
|
|
42
|
-
value: "creation_log" /* MondayColumnType.CREATION_LOG */,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: 'Date',
|
|
46
|
-
value: "date" /* MondayColumnType.DATE */,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: 'Dropdown',
|
|
50
|
-
value: "dropdown" /* MondayColumnType.DROPDOWN */,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
label: 'Email',
|
|
54
|
-
value: "email" /* MondayColumnType.EMAIL */,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: 'Hour',
|
|
58
|
-
value: "hour" /* MondayColumnType.HOUR */,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: 'Item ID',
|
|
62
|
-
value: "item_id" /* MondayColumnType.ITEM_ID */,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
label: 'Last Updated',
|
|
66
|
-
value: "last_updated" /* MondayColumnType.LAST_UPDATED */,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
label: 'Link',
|
|
70
|
-
value: "link" /* MondayColumnType.LINK */,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
label: 'Location',
|
|
74
|
-
value: "location" /* MondayColumnType.LOCATION */,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
label: 'Long Text',
|
|
78
|
-
value: "long_text" /* MondayColumnType.LONG_TEXT */,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: 'Numbers',
|
|
82
|
-
value: "numbers" /* MondayColumnType.NUMBERS */,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: 'People',
|
|
86
|
-
value: "people" /* MondayColumnType.PEOPLE */,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
label: 'Phone',
|
|
90
|
-
value: "phone" /* MondayColumnType.PHONE */,
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: 'Progress Tracking',
|
|
94
|
-
value: "progress" /* MondayColumnType.PROGRESS */,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
label: 'Rating',
|
|
98
|
-
value: "rating" /* MondayColumnType.RATING */,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: 'Status',
|
|
102
|
-
value: "status" /* MondayColumnType.STATUS */,
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: 'Tags',
|
|
106
|
-
value: "tags" /* MondayColumnType.TAGS */,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
label: 'Text',
|
|
110
|
-
value: "text" /* MondayColumnType.TEXT */,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
label: 'Timeline',
|
|
114
|
-
value: "timeline" /* MondayColumnType.TIMELINE */,
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: 'Time Tracking',
|
|
118
|
-
value: "time_tracking" /* MondayColumnType.TIME_TRACKING */,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
label: 'Vote',
|
|
122
|
-
value: "vote" /* MondayColumnType.VOTE */,
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
label: 'Week',
|
|
126
|
-
value: "week" /* MondayColumnType.WEEK */,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
label: 'World Clock',
|
|
130
|
-
value: "world_clock" /* MondayColumnType.WORLD_CLOCK */,
|
|
131
|
-
},
|
|
132
|
-
];
|
|
133
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/monday/src/lib/common/constants.ts"],"names":[],"mappings":";;;AAqEa,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;CAkB1C,CAAC;AAEW,QAAA,mBAAmB,GAAG;IACjC;QACE,KAAK,EAAE,aAAa;QACpB,KAAK,kDAA8B;KACpC;IACD;QACE,KAAK,EAAE,cAAc;QACrB,KAAK,oDAA+B;KACrC;IACD;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,4CAA2B;KACjC;IACD;QACE,KAAK,EAAE,SAAS;QAChB,KAAK,0CAA0B;KACh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B,KAAK,kDAA8B;KACpC;CACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DynamicPropsValue } from '@activepieces/pieces-framework';
|
|
2
|
-
import { ColumnValue, MondayColumn } from './models';
|
|
3
|
-
type ColumnIdTypeMap = {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function generateColumnIdTypeMap(columns: MondayColumn[]): ColumnIdTypeMap;
|
|
7
|
-
export declare const convertMondayColumnToActivepiecesProp: (column: MondayColumn) => import("@activepieces/pieces-framework").CheckboxProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").DateTimeProperty<false> | import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").LongTextProperty<false> | import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").StaticDropdownProperty<string, false> | null;
|
|
8
|
-
export declare const convertPropValueToMondayColumnValue: (columnType: string, propValue: DynamicPropsValue) => string | DynamicPropsValue | null;
|
|
9
|
-
export declare const parseMondayColumnValue: (columnValue: ColumnValue) => any;
|
|
10
|
-
export {};
|