New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tng/soa-node-task

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tng/soa-node-task

SOA-Task for Node ================

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
3
Weekly downloads
 
Created
Source

SOA-Task for Node

安装

yarn add @tng/soa-node-task

request 模块

  • https://github.com/teambition/tws-auth
  • https://github.com/teambition/node-teambition

使用

const SOATask = require('@tng/soa-node-task')
const TWSAuth = require('tws-auth')
const Teambition = require('teambition')

// use tws-auth
let twsAuth = new TWSAuth({ ... })
let soatask = new SOATask({ twsAuth: twsAuth })

// use teambition
let teambition = new Teambition({ ... })
let soatask = new SOATask({ teambition: teambition })

// 创建任务
let task = yield soatask.tasks().create({
  title: 'new task',
  startDate: '2018-01-01',
  dueDate: '2018-01-02',
  _creatorId: 'creator id'
})


// 获取任务信息
let taskInfo = yield soatask.tasks(task._id).info()

接口

projects

  • projects()
    • .initUniqueId(): 开启unique ID功能

projects.tasks

  • projects().tasks()
    • .batchUpdateDuedate(): 批量更新截止日期
    • .batchUpdateExecutor(): 批量更新执行者
    • .batchUpdateStartDate(): 批量更新开始时间
    • .batchUpdateTaskFlowStatusId(): 批量更新任务流id
    • .batchArchive(): 批量归档
    • .batchRemove(): 批量删除
    • .batchTransform(): 敏捷研发项目下, 批量转换任务
    • .batchUpdateExecutorInPro(): 敏捷研发项目下, 批量移交
    • .updateSubtaskScenariofieldconfig(): 敏捷研发项目下, 更新场景字段

projects.sprints

  • projects().sprints()
    • .updateStatus(): 更新迭代下任务的完成状态
  • projects().sprints().taskflowstatus()
    • .updateStatus(): 更新任务流下任务的完成状态

projects.tasklists

  • projects().tasklists().stages()
    • .updateModeToFlow(): 设置流程模式

tasklists

  • tasklists().tasks()
    • .archive(): 归档 tasklist 任务
    • .unarchive(): 解归档 tasklist 任务

stages

  • stages().tasks():
    • .create(): 创建任务
    • .archive(): 归档阶段下所有任务
    • .copy(): 批量复制
    • .updateDuedate(): 批量更新 stage 任务截止日期
    • .updateExecutor(): 批量更新阶段下的执行者
    • .updateVisible(): 批量更新任务的可见性

tasks

  • tasks()
    • .create(): 创建任务
    • .update(): 更新任务
    • .remove(): 根据 ID 删除任务
    • .archive(): 归档任务
    • .copy(): 复制任务
    • .updateStatus(): 更完成状态
    • .move(): 移动任务
    • .updatePos(): 更新任务位置
    • .unarchive(): 解归档任务
    • .batchCreate(): 批量创建任务
    • .batchGetByUserId(): 批量获取用户能看见的任务
    • .removeByConditions(): 多条件删除任务
    • .find(): 查找任务
    • .query(): 提供强大的任务查询能力

tasks.me

  • tasks().me()
    • .listCreated(): 获取用户创建的任务
    • .listExecute(): 获取用户执行的任务
    • .listInvolves(): 获取用户参与的任务

参数了解

FAQs

Package last updated on 13 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc