mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
⚡ Updated names to keep backward compatibility
This commit is contained in:
parent
1019f03154
commit
86ab14088b
|
@ -43,7 +43,7 @@ export const checklistFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -80,7 +80,7 @@ export const checklistFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Checklist ID',
|
displayName: 'Checklist ID',
|
||||||
name: 'checklistId',
|
name: 'checklist',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -100,7 +100,7 @@ export const checklistFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Checklist ID',
|
displayName: 'Checklist ID',
|
||||||
name: 'checklistId',
|
name: 'checklist',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
|
|
@ -43,7 +43,7 @@ export const checklistItemFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Checklist ID',
|
displayName: 'Checklist ID',
|
||||||
name: 'checklistId',
|
name: 'checklist',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -94,7 +94,7 @@ export const checklistItemFields = [
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Assignee ID',
|
displayName: 'Assignee ID',
|
||||||
name: 'assigneeId',
|
name: 'assignee',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
@ -105,7 +105,7 @@ export const checklistItemFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Checklist ID',
|
displayName: 'Checklist ID',
|
||||||
name: 'checklistId',
|
name: 'checklist',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -122,7 +122,7 @@ export const checklistItemFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Checklist Item ID',
|
displayName: 'Checklist Item ID',
|
||||||
name: 'checklistItemId',
|
name: 'checklistItem',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -142,7 +142,7 @@ export const checklistItemFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Checklist ID',
|
displayName: 'Checklist ID',
|
||||||
name: 'checklistId',
|
name: 'checklist',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -159,7 +159,7 @@ export const checklistItemFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Checklist Item ID',
|
displayName: 'Checklist Item ID',
|
||||||
name: 'checklistItemId',
|
name: 'checklistItem',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -193,7 +193,7 @@ export const checklistItemFields = [
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Assignee ID',
|
displayName: 'Assignee ID',
|
||||||
name: 'assigneeId',
|
name: 'assignee',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
@ -205,7 +205,7 @@ export const checklistItemFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Parent Checklist Item ID',
|
displayName: 'Parent Checklist Item ID',
|
||||||
name: 'parentId',
|
name: 'parent',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Checklist item that you want to nest the target checklist item underneath.',
|
description: 'Checklist item that you want to nest the target checklist item underneath.',
|
||||||
|
|
|
@ -211,7 +211,7 @@ export class ClickUp implements INodeType {
|
||||||
// Get all the available spaces to display them to user so that he can
|
// Get all the available spaces to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getSpaces(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getSpaces(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const teamId = this.getCurrentNodeParameter('teamId') as string;
|
const teamId = this.getCurrentNodeParameter('team') as string;
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { spaces } = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/space`);
|
const { spaces } = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/space`);
|
||||||
for (const space of spaces) {
|
for (const space of spaces) {
|
||||||
|
@ -227,7 +227,7 @@ export class ClickUp implements INodeType {
|
||||||
// Get all the available folders to display them to user so that he can
|
// Get all the available folders to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getFolders(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getFolders(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const spaceId = this.getCurrentNodeParameter('spaceId') as string;
|
const spaceId = this.getCurrentNodeParameter('space') as string;
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { folders } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/folder`);
|
const { folders } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/folder`);
|
||||||
for (const folder of folders) {
|
for (const folder of folders) {
|
||||||
|
@ -243,7 +243,7 @@ export class ClickUp implements INodeType {
|
||||||
// Get all the available lists to display them to user so that he can
|
// Get all the available lists to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const folderId = this.getCurrentNodeParameter('folderId') as string;
|
const folderId = this.getCurrentNodeParameter('folder') as string;
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { lists } = await clickupApiRequest.call(this, 'GET', `/folder/${folderId}/list`);
|
const { lists } = await clickupApiRequest.call(this, 'GET', `/folder/${folderId}/list`);
|
||||||
for (const list of lists) {
|
for (const list of lists) {
|
||||||
|
@ -259,7 +259,7 @@ export class ClickUp implements INodeType {
|
||||||
// Get all the available lists without a folder to display them to user so that he can
|
// Get all the available lists without a folder to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getFolderlessLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getFolderlessLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const spaceId = this.getCurrentNodeParameter('spaceId') as string;
|
const spaceId = this.getCurrentNodeParameter('space') as string;
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { lists } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/list`);
|
const { lists } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/list`);
|
||||||
for (const list of lists) {
|
for (const list of lists) {
|
||||||
|
@ -275,7 +275,7 @@ export class ClickUp implements INodeType {
|
||||||
// Get all the available assignees to display them to user so that he can
|
// Get all the available assignees to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getAssignees(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getAssignees(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const listId = this.getCurrentNodeParameter('listId') as string;
|
const listId = this.getCurrentNodeParameter('list') as string;
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { members } = await clickupApiRequest.call(this, 'GET', `/list/${listId}/member`);
|
const { members } = await clickupApiRequest.call(this, 'GET', `/list/${listId}/member`);
|
||||||
for (const member of members) {
|
for (const member of members) {
|
||||||
|
@ -291,7 +291,7 @@ export class ClickUp implements INodeType {
|
||||||
// Get all the available tags to display them to user so that he can
|
// Get all the available tags to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const spaceId = this.getCurrentNodeParameter('spaceId') as string;
|
const spaceId = this.getCurrentNodeParameter('space') as string;
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { tags } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/tag`);
|
const { tags } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/tag`);
|
||||||
for (const tag of tags) {
|
for (const tag of tags) {
|
||||||
|
@ -307,7 +307,7 @@ export class ClickUp implements INodeType {
|
||||||
// Get all the available tags to display them to user so that he can
|
// Get all the available tags to display them to user so that he can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getStatuses(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getStatuses(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const listId = this.getCurrentNodeParameter('listId') as string;
|
const listId = this.getCurrentNodeParameter('list') as string;
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { statuses } = await clickupApiRequest.call(this, 'GET', `/list/${listId}`);
|
const { statuses } = await clickupApiRequest.call(this, 'GET', `/list/${listId}`);
|
||||||
for (const status of statuses) {
|
for (const status of statuses) {
|
||||||
|
@ -336,7 +336,7 @@ export class ClickUp implements INodeType {
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
if (resource === 'checklist') {
|
if (resource === 'checklist') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
name,
|
name,
|
||||||
|
@ -345,12 +345,12 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.checklist;
|
responseData = responseData.checklist;
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const checklistId = this.getNodeParameter('checklistId', i) as string;
|
const checklistId = this.getNodeParameter('checklist', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/checklist/${checklistId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/checklist/${checklistId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const checklistId = this.getNodeParameter('checklistId', i) as string;
|
const checklistId = this.getNodeParameter('checklist', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (updateFields.name) {
|
if (updateFields.name) {
|
||||||
|
@ -365,7 +365,7 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
if (resource === 'checklistItem') {
|
if (resource === 'checklistItem') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const checklistId = this.getNodeParameter('checklistId', i) as string;
|
const checklistId = this.getNodeParameter('checklist', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
|
@ -378,24 +378,24 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.checklist;
|
responseData = responseData.checklist;
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const checklistId = this.getNodeParameter('checklistId', i) as string;
|
const checklistId = this.getNodeParameter('checklist', i) as string;
|
||||||
const checklistItemId = this.getNodeParameter('checklistItemId', i) as string;
|
const checklistItemId = this.getNodeParameter('checklistItem', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/checklist/${checklistId}/checklist_item/${checklistItemId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/checklist/${checklistId}/checklist_item/${checklistItemId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const checklistId = this.getNodeParameter('checklistId', i) as string;
|
const checklistId = this.getNodeParameter('checklist', i) as string;
|
||||||
const checklistItemId = this.getNodeParameter('checklistItemId', i) as string;
|
const checklistItemId = this.getNodeParameter('checklistItem', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (updateFields.name) {
|
if (updateFields.name) {
|
||||||
body.name = updateFields.name as string;
|
body.name = updateFields.name as string;
|
||||||
}
|
}
|
||||||
if (updateFields.parentId) {
|
if (updateFields.parent) {
|
||||||
body.parent = updateFields.parentId as string;
|
body.parent = updateFields.parent as string;
|
||||||
}
|
}
|
||||||
if (updateFields.assigneeId) {
|
if (updateFields.assignee) {
|
||||||
body.assignee = parseInt(updateFields.assigneeId as string, 10);
|
body.assignee = parseInt(updateFields.assignee as string, 10);
|
||||||
}
|
}
|
||||||
if (updateFields.resolved) {
|
if (updateFields.resolved) {
|
||||||
body.resolved = updateFields.resolved as boolean;
|
body.resolved = updateFields.resolved as boolean;
|
||||||
|
@ -413,8 +413,8 @@ export class ClickUp implements INodeType {
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
comment_text: commentText,
|
comment_text: commentText,
|
||||||
};
|
};
|
||||||
if (additionalFields.assigneeId) {
|
if (additionalFields.assignee) {
|
||||||
body.assigneeId = additionalFields.assigneeId as string;
|
body.assigneeId = additionalFields.assignee as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.notifyAll) {
|
if (additionalFields.notifyAll) {
|
||||||
body.notify_all = additionalFields.notifyAll as boolean;
|
body.notify_all = additionalFields.notifyAll as boolean;
|
||||||
|
@ -422,7 +422,7 @@ export class ClickUp implements INodeType {
|
||||||
responseData = await clickupApiRequest.call(this, 'POST', `/${resource}/${id}/comment`, body);
|
responseData = await clickupApiRequest.call(this, 'POST', `/${resource}/${id}/comment`, body);
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const commentId = this.getNodeParameter('commentId', i) as string;
|
const commentId = this.getNodeParameter('comment', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/comment/${commentId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/comment/${commentId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
|
@ -435,24 +435,25 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.splice(0, qs.limit);
|
responseData = responseData.splice(0, qs.limit);
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const commentId = this.getNodeParameter('commentId', i) as string;
|
const commentId = this.getNodeParameter('comment', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (updateFields.commentText) {
|
if (updateFields.commentText) {
|
||||||
body.comment_text = updateFields.commentText as string;
|
body.comment_text = updateFields.commentText as string;
|
||||||
}
|
}
|
||||||
if (updateFields.assigneeId) {
|
if (updateFields.assignee) {
|
||||||
body.assignee = parseInt(updateFields.assigneeId as string, 10);
|
body.assignee = parseInt(updateFields.assignee as string, 10);
|
||||||
}
|
}
|
||||||
if (updateFields.resolved) {
|
if (updateFields.resolved) {
|
||||||
body.resolved = updateFields.resolved as boolean;
|
body.resolved = updateFields.resolved as boolean;
|
||||||
}
|
}
|
||||||
responseData = await clickupApiRequest.call(this, 'PUT', `/comment/${commentId}`, body);
|
responseData = await clickupApiRequest.call(this, 'PUT', `/comment/${commentId}`, body);
|
||||||
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (resource === 'folder') {
|
if (resource === 'folder') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const spaceId = this.getNodeParameter('spaceId', i) as string;
|
const spaceId = this.getNodeParameter('space', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
name,
|
name,
|
||||||
|
@ -460,17 +461,17 @@ export class ClickUp implements INodeType {
|
||||||
responseData = await clickupApiRequest.call(this, 'POST', `/space/${spaceId}/folder`, body);
|
responseData = await clickupApiRequest.call(this, 'POST', `/space/${spaceId}/folder`, body);
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const folderId = this.getNodeParameter('folderId', i) as string;
|
const folderId = this.getNodeParameter('folder', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/folder/${folderId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/folder/${folderId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'get') {
|
if (operation === 'get') {
|
||||||
const folderId = this.getNodeParameter('folderId', i) as string;
|
const folderId = this.getNodeParameter('folder', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/folder/${folderId}`);
|
responseData = await clickupApiRequest.call(this, 'GET', `/folder/${folderId}`);
|
||||||
}
|
}
|
||||||
if (operation === 'getAll') {
|
if (operation === 'getAll') {
|
||||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||||
const spaceId = this.getNodeParameter('spaceId', i) as string;
|
const spaceId = this.getNodeParameter('space', i) as string;
|
||||||
if (filters.archived) {
|
if (filters.archived) {
|
||||||
qs.archived = filters.archived as boolean;
|
qs.archived = filters.archived as boolean;
|
||||||
}
|
}
|
||||||
|
@ -480,7 +481,7 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.splice(0, qs.limit);
|
responseData = responseData.splice(0, qs.limit);
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const folderId = this.getNodeParameter('folderId', i) as string;
|
const folderId = this.getNodeParameter('folder', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (updateFields.name) {
|
if (updateFields.name) {
|
||||||
|
@ -491,7 +492,7 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
if (resource === 'goal') {
|
if (resource === 'goal') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
const teamId = this.getNodeParameter('team', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
|
@ -516,17 +517,17 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.goal;
|
responseData = responseData.goal;
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const goalId = this.getNodeParameter('goalId', i) as string;
|
const goalId = this.getNodeParameter('goal', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/goal/${goalId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/goal/${goalId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'get') {
|
if (operation === 'get') {
|
||||||
const goalId = this.getNodeParameter('goalId', i) as string;
|
const goalId = this.getNodeParameter('goal', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/goal/${goalId}`);
|
responseData = await clickupApiRequest.call(this, 'GET', `/goal/${goalId}`);
|
||||||
responseData = responseData.goal;
|
responseData = responseData.goal;
|
||||||
}
|
}
|
||||||
if (operation === 'getAll') {
|
if (operation === 'getAll') {
|
||||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
const teamId = this.getNodeParameter('team', i) as string;
|
||||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/goal`, {}, qs);
|
responseData = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/goal`, {}, qs);
|
||||||
responseData = responseData.goals;
|
responseData = responseData.goals;
|
||||||
|
@ -534,7 +535,7 @@ export class ClickUp implements INodeType {
|
||||||
|
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const goalId = this.getNodeParameter('goalId', i) as string;
|
const goalId = this.getNodeParameter('goal', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (updateFields.name) {
|
if (updateFields.name) {
|
||||||
|
@ -561,7 +562,7 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
if (resource === 'goalKeyResult') {
|
if (resource === 'goalKeyResult') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const goalId = this.getNodeParameter('goalId', i) as string;
|
const goalId = this.getNodeParameter('goal', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
const type = this.getNodeParameter('type', i) as string;
|
const type = this.getNodeParameter('type', i) as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
|
@ -591,12 +592,12 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.key_result;
|
responseData = responseData.key_result;
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const keyResultId = this.getNodeParameter('keyResultId', i) as string;
|
const keyResultId = this.getNodeParameter('keyResult', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/key_result/${keyResultId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/key_result/${keyResultId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const keyResultId = this.getNodeParameter('keyResultId', i) as string;
|
const keyResultId = this.getNodeParameter('keyResult', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (updateFields.name) {
|
if (updateFields.name) {
|
||||||
|
@ -623,7 +624,7 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
if (resource === 'guest') {
|
if (resource === 'guest') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
const teamId = this.getNodeParameter('team', i) as string;
|
||||||
const email = this.getNodeParameter('email', i) as string;
|
const email = this.getNodeParameter('email', i) as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
|
@ -642,20 +643,20 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.team;
|
responseData = responseData.team;
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
const teamId = this.getNodeParameter('team', i) as string;
|
||||||
const guestId = this.getNodeParameter('guestId', i) as string;
|
const guestId = this.getNodeParameter('guest', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/team/${teamId}/guest/${guestId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/team/${teamId}/guest/${guestId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'get') {
|
if (operation === 'get') {
|
||||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
const teamId = this.getNodeParameter('team', i) as string;
|
||||||
const guestId = this.getNodeParameter('guestId', i) as string;
|
const guestId = this.getNodeParameter('guest', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/guest/${guestId}`);
|
responseData = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/guest/${guestId}`);
|
||||||
responseData = responseData.team;
|
responseData = responseData.team;
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
const teamId = this.getNodeParameter('team', i) as string;
|
||||||
const guestId = this.getNodeParameter('guestId', i) as string;
|
const guestId = this.getNodeParameter('guest', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (updateFields.username) {
|
if (updateFields.username) {
|
||||||
|
@ -676,7 +677,7 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
if (resource === 'task') {
|
if (resource === 'task') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const listId = this.getNodeParameter('listId', i) as string;
|
const listId = this.getNodeParameter('list', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
const body: ITask = {
|
const body: ITask = {
|
||||||
|
@ -732,9 +733,14 @@ export class ClickUp implements INodeType {
|
||||||
responseData = await clickupApiRequest.call(this, 'POST', `/list/${listId}/task`, body);
|
responseData = await clickupApiRequest.call(this, 'POST', `/list/${listId}/task`, body);
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('id', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: ITask = {};
|
const body: ITask = {
|
||||||
|
assignees: {
|
||||||
|
add: [],
|
||||||
|
rem: [],
|
||||||
|
},
|
||||||
|
};
|
||||||
if (updateFields.content) {
|
if (updateFields.content) {
|
||||||
body.content = updateFields.content as string;
|
body.content = updateFields.content as string;
|
||||||
}
|
}
|
||||||
|
@ -765,6 +771,17 @@ export class ClickUp implements INodeType {
|
||||||
if (updateFields.parentId) {
|
if (updateFields.parentId) {
|
||||||
body.parent = updateFields.parentId as string;
|
body.parent = updateFields.parentId as string;
|
||||||
}
|
}
|
||||||
|
if (updateFields.addAssignees) {
|
||||||
|
//@ts-ignore
|
||||||
|
body.assignees.add = ((updateFields.addAssignees as string).split(',') as string[]).map((e: string) => parseInt(e, 10));
|
||||||
|
}
|
||||||
|
if (updateFields.removeAssignees) {
|
||||||
|
//@ts-ignore
|
||||||
|
body.assignees.rem = ((updateFields.removeAssignees as string).split(',') as string[]).map((e: string) => parseInt(e, 10));
|
||||||
|
}
|
||||||
|
if (updateFields.status) {
|
||||||
|
body.status = updateFields.status as string;
|
||||||
|
}
|
||||||
if (updateFields.markdownContent) {
|
if (updateFields.markdownContent) {
|
||||||
delete body.content;
|
delete body.content;
|
||||||
body.markdown_content = updateFields.content as string;
|
body.markdown_content = updateFields.content as string;
|
||||||
|
@ -772,7 +789,7 @@ export class ClickUp implements INodeType {
|
||||||
responseData = await clickupApiRequest.call(this, 'PUT', `/task/${taskId}`, body);
|
responseData = await clickupApiRequest.call(this, 'PUT', `/task/${taskId}`, body);
|
||||||
}
|
}
|
||||||
if (operation === 'get') {
|
if (operation === 'get') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('id', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/task/${taskId}`);
|
responseData = await clickupApiRequest.call(this, 'GET', `/task/${taskId}`);
|
||||||
}
|
}
|
||||||
if (operation === 'getAll') {
|
if (operation === 'getAll') {
|
||||||
|
@ -817,7 +834,7 @@ export class ClickUp implements INodeType {
|
||||||
if (filters.dateUpdatedLt) {
|
if (filters.dateUpdatedLt) {
|
||||||
qs.date_updated_lt = new Date(filters.dateUpdatedLt as string).getTime();
|
qs.date_updated_lt = new Date(filters.dateUpdatedLt as string).getTime();
|
||||||
}
|
}
|
||||||
const listId = this.getNodeParameter('listId', i) as string;
|
const listId = this.getNodeParameter('list', i) as string;
|
||||||
if (returnAll === true) {
|
if (returnAll === true) {
|
||||||
responseData = await clickupApiRequestAllItems.call(this, 'tasks', 'GET', `/list/${listId}/task`, {}, qs);
|
responseData = await clickupApiRequestAllItems.call(this, 'tasks', 'GET', `/list/${listId}/task`, {}, qs);
|
||||||
} else {
|
} else {
|
||||||
|
@ -827,8 +844,8 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (operation === 'setCustomField') {
|
if (operation === 'setCustomField') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
const fieldId = this.getNodeParameter('fieldId', i) as string;
|
const fieldId = this.getNodeParameter('field', i) as string;
|
||||||
const value = this.getNodeParameter('value', i) as string;
|
const value = this.getNodeParameter('value', i) as string;
|
||||||
const jsonParse = this.getNodeParameter('jsonParse', i) as boolean;
|
const jsonParse = this.getNodeParameter('jsonParse', i) as boolean;
|
||||||
|
|
||||||
|
@ -848,14 +865,14 @@ export class ClickUp implements INodeType {
|
||||||
responseData = await clickupApiRequest.call(this, 'POST', `/task/${taskId}/field/${fieldId}`, body);
|
responseData = await clickupApiRequest.call(this, 'POST', `/task/${taskId}/field/${fieldId}`, body);
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('id', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/task/${taskId}`, {});
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/task/${taskId}`, {});
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (resource === 'taskDependency') {
|
if (resource === 'taskDependency') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
const dependsOn = this.getNodeParameter('dependsOn', i) as string;
|
const dependsOn = this.getNodeParameter('dependsOn', i) as string;
|
||||||
const dependencyOf = this.getNodeParameter('dependencyOf', i) as string;
|
const dependencyOf = this.getNodeParameter('dependencyOf', i) as string;
|
||||||
if (dependencyOf !== '' && dependsOn !== '' ) {
|
if (dependencyOf !== '' && dependsOn !== '' ) {
|
||||||
|
@ -872,7 +889,7 @@ export class ClickUp implements INodeType {
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
const dependsOn = this.getNodeParameter('dependsOn', i) as string;
|
const dependsOn = this.getNodeParameter('dependsOn', i) as string;
|
||||||
const dependencyOf = this.getNodeParameter('dependencyOf', i) as string;
|
const dependencyOf = this.getNodeParameter('dependencyOf', i) as string;
|
||||||
if (dependencyOf !== '' && dependsOn !== '' ) {
|
if (dependencyOf !== '' && dependsOn !== '' ) {
|
||||||
|
@ -890,7 +907,7 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
if (resource === 'timeTracking') {
|
if (resource === 'timeTracking') {
|
||||||
if (operation === 'log') {
|
if (operation === 'log') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
const type = this.getNodeParameter('type', i) as string;
|
const type = this.getNodeParameter('type', i) as string;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (type === 'fromTo') {
|
if (type === 'fromTo') {
|
||||||
|
@ -905,21 +922,21 @@ export class ClickUp implements INodeType {
|
||||||
responseData = await clickupApiRequest.call(this, 'POST', `/task/${taskId}/time`, body);
|
responseData = await clickupApiRequest.call(this, 'POST', `/task/${taskId}/time`, body);
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
const intervalId = this.getNodeParameter('intervalId', i) as string;
|
const intervalId = this.getNodeParameter('interval', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/task/${taskId}/time/${intervalId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/task/${taskId}/time/${intervalId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'getAll') {
|
if (operation === 'getAll') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/task/${taskId}/time`, {}, qs);
|
responseData = await clickupApiRequest.call(this, 'GET', `/task/${taskId}/time`, {}, qs);
|
||||||
responseData = responseData.data;
|
responseData = responseData.data;
|
||||||
responseData = responseData.splice(0, qs.limit);
|
responseData = responseData.splice(0, qs.limit);
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
const intervalId = this.getNodeParameter('intervalId', i) as string;
|
const intervalId = this.getNodeParameter('interval', i) as string;
|
||||||
const type = this.getNodeParameter('type', i) as string;
|
const type = this.getNodeParameter('type', i) as string;
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
if (type === 'fromTo') {
|
if (type === 'fromTo') {
|
||||||
|
@ -937,7 +954,7 @@ export class ClickUp implements INodeType {
|
||||||
}
|
}
|
||||||
if (resource === 'list') {
|
if (resource === 'list') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const spaceId = this.getNodeParameter('spaceId', i) as string;
|
const spaceId = this.getNodeParameter('space', i) as string;
|
||||||
const folderless = this.getNodeParameter('folderless', i) as string;
|
const folderless = this.getNodeParameter('folderless', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
|
@ -965,34 +982,34 @@ export class ClickUp implements INodeType {
|
||||||
if (folderless) {
|
if (folderless) {
|
||||||
responseData = await clickupApiRequest.call(this, 'POST', `/space/${spaceId}/list`, body);
|
responseData = await clickupApiRequest.call(this, 'POST', `/space/${spaceId}/list`, body);
|
||||||
} else {
|
} else {
|
||||||
const folderId = this.getNodeParameter('folderId', i) as string;
|
const folderId = this.getNodeParameter('folder', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'POST', `/folder/${folderId}/list`, body);
|
responseData = await clickupApiRequest.call(this, 'POST', `/folder/${folderId}/list`, body);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (operation === 'customFields') {
|
if (operation === 'customFields') {
|
||||||
const listId = this.getNodeParameter('listId', i) as string;
|
const listId = this.getNodeParameter('list', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/list/${listId}/field`);
|
responseData = await clickupApiRequest.call(this, 'GET', `/list/${listId}/field`);
|
||||||
responseData = responseData.fields;
|
responseData = responseData.fields;
|
||||||
}
|
}
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const listId = this.getNodeParameter('listId', i) as string;
|
const listId = this.getNodeParameter('list', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'DELETE', `/list/${listId}`);
|
responseData = await clickupApiRequest.call(this, 'DELETE', `/list/${listId}`);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
if (operation === 'get') {
|
if (operation === 'get') {
|
||||||
const listId = this.getNodeParameter('listId', i) as string;
|
const listId = this.getNodeParameter('list', i) as string;
|
||||||
responseData = await clickupApiRequest.call(this, 'GET', `/list/${listId}`);
|
responseData = await clickupApiRequest.call(this, 'GET', `/list/${listId}`);
|
||||||
}
|
}
|
||||||
if (operation === 'getAll') {
|
if (operation === 'getAll') {
|
||||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||||
const spaceId = this.getNodeParameter('spaceId', i) as string;
|
const spaceId = this.getNodeParameter('space', i) as string;
|
||||||
const folderless = this.getNodeParameter('folderless', i) as boolean;
|
const folderless = this.getNodeParameter('folderless', i) as boolean;
|
||||||
if (filters.archived) {
|
if (filters.archived) {
|
||||||
qs.archived = filters.archived as boolean;
|
qs.archived = filters.archived as boolean;
|
||||||
}
|
}
|
||||||
let endpoint = `/space/${spaceId}/list`;
|
let endpoint = `/space/${spaceId}/list`;
|
||||||
if (!folderless) {
|
if (!folderless) {
|
||||||
const folderId = this.getNodeParameter('folderId', i) as string;
|
const folderId = this.getNodeParameter('folder', i) as string;
|
||||||
endpoint = `/folder/${folderId}/list`;
|
endpoint = `/folder/${folderId}/list`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1002,7 +1019,7 @@ export class ClickUp implements INodeType {
|
||||||
responseData = responseData.splice(0, qs.limit);
|
responseData = responseData.splice(0, qs.limit);
|
||||||
}
|
}
|
||||||
if (operation === 'update') {
|
if (operation === 'update') {
|
||||||
const listId = this.getNodeParameter('listId', i) as string;
|
const listId = this.getNodeParameter('list', i) as string;
|
||||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||||
const body: IList = {};
|
const body: IList = {};
|
||||||
if (updateFields.name) {
|
if (updateFields.name) {
|
||||||
|
|
|
@ -128,7 +128,7 @@ export const commentFields = [
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Assignee ID',
|
displayName: 'Assignee ID',
|
||||||
name: 'assigneeId',
|
name: 'assignee',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
@ -146,7 +146,7 @@ export const commentFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Comment ID',
|
displayName: 'Comment ID',
|
||||||
name: 'commentId',
|
name: 'comment',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -237,7 +237,7 @@ export const commentFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Comment ID',
|
displayName: 'Comment ID',
|
||||||
name: 'commentId',
|
name: 'comment',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -271,7 +271,7 @@ export const commentFields = [
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Assignee ID',
|
displayName: 'Assignee ID',
|
||||||
name: 'assigneeId',
|
name: 'assignee',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
|
|
@ -53,7 +53,7 @@ export const folderFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -73,7 +73,7 @@ export const folderFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -89,7 +89,7 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -116,7 +116,7 @@ export const folderFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -136,7 +136,7 @@ export const folderFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -152,14 +152,14 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -175,7 +175,7 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -185,7 +185,7 @@ export const folderFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -205,7 +205,7 @@ export const folderFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -221,14 +221,14 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -244,7 +244,7 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -254,7 +254,7 @@ export const folderFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -274,7 +274,7 @@ export const folderFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -290,7 +290,7 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -346,7 +346,7 @@ export const folderFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -366,7 +366,7 @@ export const folderFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -382,14 +382,14 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -405,7 +405,7 @@ export const folderFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -53,7 +53,7 @@ export const goalFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -145,7 +145,7 @@ export const goalFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Goal ID',
|
displayName: 'Goal ID',
|
||||||
name: 'goalId',
|
name: 'goal',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -165,7 +165,7 @@ export const goalFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Goal ID',
|
displayName: 'Goal ID',
|
||||||
name: 'goalId',
|
name: 'goal',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -185,7 +185,7 @@ export const goalFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -229,7 +229,7 @@ export const goalFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Goal ID',
|
displayName: 'Goal ID',
|
||||||
name: 'goalId',
|
name: 'goal',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
|
|
@ -43,7 +43,7 @@ export const goalKeyResultFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Goal ID',
|
displayName: 'Goal ID',
|
||||||
name: 'goalId',
|
name: 'goal',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -150,7 +150,7 @@ export const goalKeyResultFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
},
|
},
|
||||||
default: '',
|
default: 0,
|
||||||
description: 'Required for Percentage, Automatic (when Task IDs or List IDs are filled), Number and Currency',
|
description: 'Required for Percentage, Automatic (when Task IDs or List IDs are filled), Number and Currency',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -160,7 +160,7 @@ export const goalKeyResultFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
},
|
},
|
||||||
default: '',
|
default: 0,
|
||||||
description: 'Required for Percentage, Automatic (when Task IDs or List IDs are filled), Number and Currency',
|
description: 'Required for Percentage, Automatic (when Task IDs or List IDs are filled), Number and Currency',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -183,7 +183,7 @@ export const goalKeyResultFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Key Result ID',
|
displayName: 'Key Result ID',
|
||||||
name: 'keyResultId',
|
name: 'keyResult',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -203,7 +203,7 @@ export const goalKeyResultFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Key Result ID',
|
displayName: 'Key Result ID',
|
||||||
name: 'keyResultId',
|
name: 'keyResult',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -257,7 +257,7 @@ export const goalKeyResultFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
},
|
},
|
||||||
default: '',
|
default: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Steps End',
|
displayName: 'Steps End',
|
||||||
|
@ -266,7 +266,7 @@ export const goalKeyResultFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
},
|
},
|
||||||
default: '',
|
default: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Steps Start',
|
displayName: 'Steps Start',
|
||||||
|
@ -275,7 +275,7 @@ export const goalKeyResultFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
},
|
},
|
||||||
default: '',
|
default: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Unit',
|
displayName: 'Unit',
|
||||||
|
|
|
@ -48,7 +48,7 @@ export const guestFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -124,7 +124,7 @@ export const guestFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -144,7 +144,7 @@ export const guestFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Guest ID',
|
displayName: 'Guest ID',
|
||||||
name: 'guestId',
|
name: 'guest',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -164,7 +164,7 @@ export const guestFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -184,7 +184,7 @@ export const guestFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Guest ID',
|
displayName: 'Guest ID',
|
||||||
name: 'guestId',
|
name: 'guest',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -204,7 +204,7 @@ export const guestFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -224,7 +224,7 @@ export const guestFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Guest ID',
|
displayName: 'Guest ID',
|
||||||
name: 'guestId',
|
name: 'guest',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
|
|
@ -58,7 +58,7 @@ export const listFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -78,7 +78,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -94,7 +94,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -118,7 +118,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -137,7 +137,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -233,7 +233,7 @@ export const listFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team',
|
displayName: 'Team',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -253,7 +253,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space',
|
displayName: 'Space',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -293,7 +293,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder',
|
displayName: 'Folder',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -312,14 +312,14 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List',
|
displayName: 'List',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -338,14 +338,14 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolderlessLists',
|
loadOptionsMethod: 'getFolderlessLists',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List',
|
displayName: 'List',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -364,7 +364,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getLists',
|
loadOptionsMethod: 'getLists',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'folderId',
|
'folder',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -374,7 +374,7 @@ export const listFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -394,7 +394,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -410,7 +410,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -434,7 +434,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -453,14 +453,14 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List ID',
|
displayName: 'List ID',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -480,7 +480,7 @@ export const listFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -500,7 +500,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -516,7 +516,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -540,7 +540,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -559,14 +559,14 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List ID',
|
displayName: 'List ID',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -586,7 +586,7 @@ export const listFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -606,7 +606,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -622,7 +622,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -646,7 +646,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -665,7 +665,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -721,7 +721,7 @@ export const listFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -741,7 +741,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -757,7 +757,7 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -781,7 +781,7 @@ export const listFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -800,14 +800,14 @@ export const listFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List ID',
|
displayName: 'List ID',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
|
|
@ -38,7 +38,7 @@ export const taskDependencyFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -90,7 +90,7 @@ export const taskDependencyFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
|
|
@ -58,7 +58,7 @@ export const taskFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -78,7 +78,7 @@ export const taskFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -94,7 +94,7 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -118,7 +118,7 @@ export const taskFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -137,14 +137,14 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List ID',
|
displayName: 'List ID',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -163,14 +163,14 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolderlessLists',
|
loadOptionsMethod: 'getFolderlessLists',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List ID',
|
displayName: 'List ID',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -189,7 +189,7 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getLists',
|
loadOptionsMethod: 'getLists',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'folderId',
|
'folder',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -234,7 +234,7 @@ export const taskFields = [
|
||||||
name: 'assignees',
|
name: 'assignees',
|
||||||
type: 'multiOptions',
|
type: 'multiOptions',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'listId',
|
'list',
|
||||||
],
|
],
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getAssignees',
|
loadOptionsMethod: 'getAssignees',
|
||||||
|
@ -313,7 +313,7 @@ export const taskFields = [
|
||||||
name: 'status',
|
name: 'status',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'listId',
|
'list',
|
||||||
],
|
],
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getStatuses',
|
loadOptionsMethod: 'getStatuses',
|
||||||
|
@ -325,7 +325,7 @@ export const taskFields = [
|
||||||
name: 'tags',
|
name: 'tags',
|
||||||
type: 'multiOptions',
|
type: 'multiOptions',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getTags',
|
loadOptionsMethod: 'getTags',
|
||||||
|
@ -347,7 +347,7 @@ export const taskFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -380,6 +380,13 @@ export const taskFields = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
{
|
||||||
|
displayName: 'Add Assignees',
|
||||||
|
name: 'addAssignees',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Assignees IDs. Multiple ca be added separated by comma'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Content',
|
displayName: 'Content',
|
||||||
name: 'content',
|
name: 'content',
|
||||||
|
@ -436,6 +443,20 @@ export const taskFields = [
|
||||||
description: 'Integer mapping as 1 : Urgent, 2 : High, 3 : Normal, 4 : Low',
|
description: 'Integer mapping as 1 : Urgent, 2 : High, 3 : Normal, 4 : Low',
|
||||||
default: 3,
|
default: 3,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Remove Assignees',
|
||||||
|
name: 'removeAssignees',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Assignees IDs. Multiple ca be added separated by comma'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Status',
|
||||||
|
name: 'status',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'status'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Start Date Time',
|
displayName: 'Start Date Time',
|
||||||
name: 'startDateTime',
|
name: 'startDateTime',
|
||||||
|
@ -457,7 +478,7 @@ export const taskFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -478,7 +499,7 @@ export const taskFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
name: 'teamId',
|
name: 'team',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -498,7 +519,7 @@ export const taskFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Space ID',
|
displayName: 'Space ID',
|
||||||
name: 'spaceId',
|
name: 'space',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -514,7 +535,7 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSpaces',
|
loadOptionsMethod: 'getSpaces',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'teamId',
|
'team',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -538,7 +559,7 @@ export const taskFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Folder ID',
|
displayName: 'Folder ID',
|
||||||
name: 'folderId',
|
name: 'folder',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -557,14 +578,14 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolders',
|
loadOptionsMethod: 'getFolders',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List ID',
|
displayName: 'List ID',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -583,14 +604,14 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getFolderlessLists',
|
loadOptionsMethod: 'getFolderlessLists',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'List ID',
|
displayName: 'List ID',
|
||||||
name: 'listId',
|
name: 'list',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -609,7 +630,7 @@ export const taskFields = [
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getLists',
|
loadOptionsMethod: 'getLists',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'folderId',
|
'folder',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -683,7 +704,7 @@ export const taskFields = [
|
||||||
name: 'assignees',
|
name: 'assignees',
|
||||||
type: 'multiOptions',
|
type: 'multiOptions',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'listId',
|
'list',
|
||||||
],
|
],
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getAssignees',
|
loadOptionsMethod: 'getAssignees',
|
||||||
|
@ -769,7 +790,7 @@ export const taskFields = [
|
||||||
name: 'statuses',
|
name: 'statuses',
|
||||||
type: 'multiOptions',
|
type: 'multiOptions',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'listId',
|
'list',
|
||||||
],
|
],
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getStatuses',
|
loadOptionsMethod: 'getStatuses',
|
||||||
|
@ -788,7 +809,7 @@ export const taskFields = [
|
||||||
name: 'tags',
|
name: 'tags',
|
||||||
type: 'multiOptions',
|
type: 'multiOptions',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: [
|
||||||
'spaceId',
|
'space',
|
||||||
],
|
],
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getTags',
|
loadOptionsMethod: 'getTags',
|
||||||
|
@ -803,7 +824,7 @@ export const taskFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -824,7 +845,7 @@ export const taskFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -842,7 +863,7 @@ export const taskFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Field ID',
|
displayName: 'Field ID',
|
||||||
name: 'fieldId',
|
name: 'field',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {
|
||||||
export interface ITask {
|
export interface ITask {
|
||||||
name?: string;
|
name?: string;
|
||||||
content?: string;
|
content?: string;
|
||||||
assignees?: string[];
|
assignees?: string[] | IDataObject;
|
||||||
tags?: string[];
|
tags?: string[];
|
||||||
status?: string;
|
status?: string;
|
||||||
priority?: number;
|
priority?: number;
|
||||||
|
|
|
@ -48,7 +48,7 @@ export const timeTrackingFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -157,7 +157,7 @@ export const timeTrackingFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -174,7 +174,7 @@ export const timeTrackingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Interval ID',
|
displayName: 'Interval ID',
|
||||||
name: 'intervalId',
|
name: 'interval',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -194,7 +194,7 @@ export const timeTrackingFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -235,7 +235,7 @@ export const timeTrackingFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Task ID',
|
displayName: 'Task ID',
|
||||||
name: 'taskId',
|
name: 'task',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -252,7 +252,7 @@ export const timeTrackingFields = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Interval ID',
|
displayName: 'Interval ID',
|
||||||
name: 'intervalId',
|
name: 'interval',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
|
Loading…
Reference in a new issue