asana 3.1.11 → 3.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -3
- package/dist/ApiClient.js +3 -3
- package/dist/api/AccessRequestsApi.d.ts +1 -1
- package/dist/api/AccessRequestsApi.js +1 -1
- package/dist/api/AgentsApi.d.ts +78 -0
- package/dist/api/AgentsApi.js +168 -0
- package/dist/api/AllocationsApi.d.ts +1 -1
- package/dist/api/AllocationsApi.js +1 -1
- package/dist/api/AttachmentsApi.d.ts +1 -1
- package/dist/api/AttachmentsApi.js +1 -1
- package/dist/api/AuditLogAPIApi.d.ts +1 -1
- package/dist/api/AuditLogAPIApi.js +1 -1
- package/dist/api/BatchAPIApi.d.ts +1 -1
- package/dist/api/BatchAPIApi.js +1 -1
- package/dist/api/BudgetsApi.d.ts +1 -1
- package/dist/api/BudgetsApi.js +1 -1
- package/dist/api/CustomFieldSettingsApi.d.ts +1 -1
- package/dist/api/CustomFieldSettingsApi.js +1 -1
- package/dist/api/CustomFieldsApi.d.ts +1 -1
- package/dist/api/CustomFieldsApi.js +1 -1
- package/dist/api/CustomTypesApi.d.ts +1 -1
- package/dist/api/CustomTypesApi.js +1 -1
- package/dist/api/EventsApi.d.ts +1 -1
- package/dist/api/EventsApi.js +1 -1
- package/dist/api/ExportsApi.d.ts +1 -1
- package/dist/api/ExportsApi.js +1 -1
- package/dist/api/GoalRelationshipsApi.d.ts +1 -1
- package/dist/api/GoalRelationshipsApi.js +1 -1
- package/dist/api/GoalsApi.d.ts +1 -1
- package/dist/api/GoalsApi.js +1 -1
- package/dist/api/JobsApi.d.ts +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MembershipsApi.d.ts +5 -5
- package/dist/api/MembershipsApi.js +5 -5
- package/dist/api/OooEntriesApi.d.ts +142 -0
- package/dist/api/OooEntriesApi.js +319 -0
- package/dist/api/OrganizationExportsApi.d.ts +1 -1
- package/dist/api/OrganizationExportsApi.js +1 -1
- package/dist/api/PortfolioMembershipsApi.d.ts +1 -1
- package/dist/api/PortfolioMembershipsApi.js +1 -1
- package/dist/api/PortfoliosApi.d.ts +3 -3
- package/dist/api/PortfoliosApi.js +3 -3
- package/dist/api/ProjectBriefsApi.d.ts +1 -1
- package/dist/api/ProjectBriefsApi.js +1 -1
- package/dist/api/ProjectMembershipsApi.d.ts +1 -1
- package/dist/api/ProjectMembershipsApi.js +1 -1
- package/dist/api/ProjectPortfolioSettingsApi.d.ts +1 -1
- package/dist/api/ProjectPortfolioSettingsApi.js +1 -1
- package/dist/api/ProjectStatusesApi.d.ts +1 -1
- package/dist/api/ProjectStatusesApi.js +1 -1
- package/dist/api/ProjectTemplatesApi.d.ts +1 -1
- package/dist/api/ProjectTemplatesApi.js +1 -1
- package/dist/api/ProjectsApi.d.ts +5 -5
- package/dist/api/ProjectsApi.js +5 -5
- package/dist/api/RatesApi.d.ts +1 -1
- package/dist/api/RatesApi.js +1 -1
- package/dist/api/ReactionsApi.d.ts +1 -1
- package/dist/api/ReactionsApi.js +1 -1
- package/dist/api/RolesApi.d.ts +1 -1
- package/dist/api/RolesApi.js +1 -1
- package/dist/api/RulesApi.d.ts +1 -1
- package/dist/api/RulesApi.js +1 -1
- package/dist/api/SectionsApi.d.ts +1 -1
- package/dist/api/SectionsApi.js +1 -1
- package/dist/api/StatusUpdatesApi.d.ts +1 -1
- package/dist/api/StatusUpdatesApi.js +1 -1
- package/dist/api/StoriesApi.d.ts +1 -1
- package/dist/api/StoriesApi.js +1 -1
- package/dist/api/TagsApi.d.ts +1 -1
- package/dist/api/TagsApi.js +1 -1
- package/dist/api/TaskTemplatesApi.d.ts +1 -1
- package/dist/api/TaskTemplatesApi.js +1 -1
- package/dist/api/TasksApi.d.ts +5 -5
- package/dist/api/TasksApi.js +5 -5
- package/dist/api/TeamMembershipsApi.d.ts +1 -1
- package/dist/api/TeamMembershipsApi.js +1 -1
- package/dist/api/TeamsApi.d.ts +1 -1
- package/dist/api/TeamsApi.js +1 -1
- package/dist/api/TimePeriodsApi.d.ts +1 -1
- package/dist/api/TimePeriodsApi.js +1 -1
- package/dist/api/TimeTrackingCategoriesApi.d.ts +1 -1
- package/dist/api/TimeTrackingCategoriesApi.js +1 -1
- package/dist/api/TimeTrackingEntriesApi.d.ts +1 -1
- package/dist/api/TimeTrackingEntriesApi.js +1 -1
- package/dist/api/TimesheetApprovalStatusesApi.d.ts +1 -1
- package/dist/api/TimesheetApprovalStatusesApi.js +1 -1
- package/dist/api/TypeaheadApi.d.ts +5 -5
- package/dist/api/TypeaheadApi.js +5 -5
- package/dist/api/UserTaskListsApi.d.ts +1 -1
- package/dist/api/UserTaskListsApi.js +1 -1
- package/dist/api/UsersApi.d.ts +1 -1
- package/dist/api/UsersApi.js +1 -1
- package/dist/api/WebhooksApi.d.ts +1 -1
- package/dist/api/WebhooksApi.js +1 -1
- package/dist/api/WorkspaceMembershipsApi.d.ts +1 -1
- package/dist/api/WorkspaceMembershipsApi.js +1 -1
- package/dist/api/WorkspacesApi.d.ts +1 -1
- package/dist/api/WorkspacesApi.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +14 -0
- package/package.json +1 -1
- package/src/ApiClient.js +3 -3
- package/src/api/AccessRequestsApi.d.ts +1 -1
- package/src/api/AccessRequestsApi.js +1 -1
- package/src/api/AgentsApi.d.ts +78 -0
- package/src/api/AgentsApi.js +188 -0
- package/src/api/AllocationsApi.d.ts +1 -1
- package/src/api/AllocationsApi.js +1 -1
- package/src/api/AttachmentsApi.d.ts +1 -1
- package/src/api/AttachmentsApi.js +1 -1
- package/src/api/AuditLogAPIApi.d.ts +1 -1
- package/src/api/AuditLogAPIApi.js +1 -1
- package/src/api/BatchAPIApi.d.ts +1 -1
- package/src/api/BatchAPIApi.js +1 -1
- package/src/api/BudgetsApi.d.ts +1 -1
- package/src/api/BudgetsApi.js +1 -1
- package/src/api/CustomFieldSettingsApi.d.ts +1 -1
- package/src/api/CustomFieldSettingsApi.js +1 -1
- package/src/api/CustomFieldsApi.d.ts +1 -1
- package/src/api/CustomFieldsApi.js +1 -1
- package/src/api/CustomTypesApi.d.ts +1 -1
- package/src/api/CustomTypesApi.js +1 -1
- package/src/api/EventsApi.d.ts +1 -1
- package/src/api/EventsApi.js +1 -1
- package/src/api/ExportsApi.d.ts +1 -1
- package/src/api/ExportsApi.js +1 -1
- package/src/api/GoalRelationshipsApi.d.ts +1 -1
- package/src/api/GoalRelationshipsApi.js +1 -1
- package/src/api/GoalsApi.d.ts +1 -1
- package/src/api/GoalsApi.js +1 -1
- package/src/api/JobsApi.d.ts +1 -1
- package/src/api/JobsApi.js +1 -1
- package/src/api/MembershipsApi.d.ts +5 -5
- package/src/api/MembershipsApi.js +5 -5
- package/src/api/OooEntriesApi.d.ts +142 -0
- package/src/api/OooEntriesApi.js +377 -0
- package/src/api/OrganizationExportsApi.d.ts +1 -1
- package/src/api/OrganizationExportsApi.js +1 -1
- package/src/api/PortfolioMembershipsApi.d.ts +1 -1
- package/src/api/PortfolioMembershipsApi.js +1 -1
- package/src/api/PortfoliosApi.d.ts +3 -3
- package/src/api/PortfoliosApi.js +3 -3
- package/src/api/ProjectBriefsApi.d.ts +1 -1
- package/src/api/ProjectBriefsApi.js +1 -1
- package/src/api/ProjectMembershipsApi.d.ts +1 -1
- package/src/api/ProjectMembershipsApi.js +1 -1
- package/src/api/ProjectPortfolioSettingsApi.d.ts +1 -1
- package/src/api/ProjectPortfolioSettingsApi.js +1 -1
- package/src/api/ProjectStatusesApi.d.ts +1 -1
- package/src/api/ProjectStatusesApi.js +1 -1
- package/src/api/ProjectTemplatesApi.d.ts +1 -1
- package/src/api/ProjectTemplatesApi.js +1 -1
- package/src/api/ProjectsApi.d.ts +5 -5
- package/src/api/ProjectsApi.js +5 -5
- package/src/api/RatesApi.d.ts +1 -1
- package/src/api/RatesApi.js +1 -1
- package/src/api/ReactionsApi.d.ts +1 -1
- package/src/api/ReactionsApi.js +1 -1
- package/src/api/RolesApi.d.ts +1 -1
- package/src/api/RolesApi.js +1 -1
- package/src/api/RulesApi.d.ts +1 -1
- package/src/api/RulesApi.js +1 -1
- package/src/api/SectionsApi.d.ts +1 -1
- package/src/api/SectionsApi.js +1 -1
- package/src/api/StatusUpdatesApi.d.ts +1 -1
- package/src/api/StatusUpdatesApi.js +1 -1
- package/src/api/StoriesApi.d.ts +1 -1
- package/src/api/StoriesApi.js +1 -1
- package/src/api/TagsApi.d.ts +1 -1
- package/src/api/TagsApi.js +1 -1
- package/src/api/TaskTemplatesApi.d.ts +1 -1
- package/src/api/TaskTemplatesApi.js +1 -1
- package/src/api/TasksApi.d.ts +5 -5
- package/src/api/TasksApi.js +5 -5
- package/src/api/TeamMembershipsApi.d.ts +1 -1
- package/src/api/TeamMembershipsApi.js +1 -1
- package/src/api/TeamsApi.d.ts +1 -1
- package/src/api/TeamsApi.js +1 -1
- package/src/api/TimePeriodsApi.d.ts +1 -1
- package/src/api/TimePeriodsApi.js +1 -1
- package/src/api/TimeTrackingCategoriesApi.d.ts +1 -1
- package/src/api/TimeTrackingCategoriesApi.js +1 -1
- package/src/api/TimeTrackingEntriesApi.d.ts +1 -1
- package/src/api/TimeTrackingEntriesApi.js +1 -1
- package/src/api/TimesheetApprovalStatusesApi.d.ts +1 -1
- package/src/api/TimesheetApprovalStatusesApi.js +1 -1
- package/src/api/TypeaheadApi.d.ts +5 -5
- package/src/api/TypeaheadApi.js +5 -5
- package/src/api/UserTaskListsApi.d.ts +1 -1
- package/src/api/UserTaskListsApi.js +1 -1
- package/src/api/UsersApi.d.ts +1 -1
- package/src/api/UsersApi.js +1 -1
- package/src/api/WebhooksApi.d.ts +1 -1
- package/src/api/WebhooksApi.js +1 -1
- package/src/api/WorkspaceMembershipsApi.d.ts +1 -1
- package/src/api/WorkspaceMembershipsApi.js +1 -1
- package/src/api/WorkspacesApi.d.ts +1 -1
- package/src/api/WorkspacesApi.js +1 -1
- package/src/index.d.ts +4 -0
- package/src/index.js +15 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# asana [![GitHub release][release-image]][release-url] [![NPM Version][npm-image]][npm-url]
|
|
2
2
|
|
|
3
3
|
- API version: 1.0
|
|
4
|
-
- Package version: 3.1.
|
|
4
|
+
- Package version: 3.1.12
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
@@ -18,7 +18,7 @@ npm install asana --save
|
|
|
18
18
|
Include the latest release directly from GitHub:
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
|
-
<script src="https://github.com/Asana/node-asana/releases/download/v3.1.
|
|
21
|
+
<script src="https://github.com/Asana/node-asana/releases/download/v3.1.12/asana-min.js"></script>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Example usage (**NOTE**: be careful not to expose your access token):
|
|
@@ -193,6 +193,8 @@ Class | Method | HTTP request | Description
|
|
|
193
193
|
*Asana.AccessRequestsApi* | [**createAccessRequest**](docs/AccessRequestsApi.md#createAccessRequest) | **POST** /access_requests | Create an access request
|
|
194
194
|
*Asana.AccessRequestsApi* | [**getAccessRequests**](docs/AccessRequestsApi.md#getAccessRequests) | **GET** /access_requests | Get access requests
|
|
195
195
|
*Asana.AccessRequestsApi* | [**rejectAccessRequest**](docs/AccessRequestsApi.md#rejectAccessRequest) | **POST** /access_requests/{access_request_gid}/reject | Reject an access request
|
|
196
|
+
*Asana.AgentsApi* | [**getAgent**](docs/AgentsApi.md#getAgent) | **GET** /agents/{agent_gid} | Get an agent
|
|
197
|
+
*Asana.AgentsApi* | [**getAgentsForWorkspace**](docs/AgentsApi.md#getAgentsForWorkspace) | **GET** /workspaces/{workspace_gid}/agents | Get a list of agents in a workspace
|
|
196
198
|
*Asana.AllocationsApi* | [**createAllocation**](docs/AllocationsApi.md#createAllocation) | **POST** /allocations | Create an allocation
|
|
197
199
|
*Asana.AllocationsApi* | [**deleteAllocation**](docs/AllocationsApi.md#deleteAllocation) | **DELETE** /allocations/{allocation_gid} | Delete an allocation
|
|
198
200
|
*Asana.AllocationsApi* | [**getAllocation**](docs/AllocationsApi.md#getAllocation) | **GET** /allocations/{allocation_gid} | Get an allocation
|
|
@@ -249,6 +251,11 @@ Class | Method | HTTP request | Description
|
|
|
249
251
|
*Asana.MembershipsApi* | [**getMembership**](docs/MembershipsApi.md#getMembership) | **GET** /memberships/{membership_gid} | Get a membership
|
|
250
252
|
*Asana.MembershipsApi* | [**getMemberships**](docs/MembershipsApi.md#getMemberships) | **GET** /memberships | Get multiple memberships
|
|
251
253
|
*Asana.MembershipsApi* | [**updateMembership**](docs/MembershipsApi.md#updateMembership) | **PUT** /memberships/{membership_gid} | Update a membership
|
|
254
|
+
*Asana.OooEntriesApi* | [**createOooEntry**](docs/OooEntriesApi.md#createOooEntry) | **POST** /ooo_entries | Create an OOO entry
|
|
255
|
+
*Asana.OooEntriesApi* | [**deleteOooEntry**](docs/OooEntriesApi.md#deleteOooEntry) | **DELETE** /ooo_entries/{ooo_entry_gid} | Delete an OOO entry
|
|
256
|
+
*Asana.OooEntriesApi* | [**getOooEntries**](docs/OooEntriesApi.md#getOooEntries) | **GET** /ooo_entries | Get OOO entries for a user
|
|
257
|
+
*Asana.OooEntriesApi* | [**getOooEntry**](docs/OooEntriesApi.md#getOooEntry) | **GET** /ooo_entries/{ooo_entry_gid} | Get an OOO entry
|
|
258
|
+
*Asana.OooEntriesApi* | [**updateOooEntry**](docs/OooEntriesApi.md#updateOooEntry) | **PUT** /ooo_entries/{ooo_entry_gid} | Update an OOO entry
|
|
252
259
|
*Asana.OrganizationExportsApi* | [**createOrganizationExport**](docs/OrganizationExportsApi.md#createOrganizationExport) | **POST** /organization_exports | Create an organization export request
|
|
253
260
|
*Asana.OrganizationExportsApi* | [**getOrganizationExport**](docs/OrganizationExportsApi.md#getOrganizationExport) | **GET** /organization_exports/{organization_export_gid} | Get details on an org export request
|
|
254
261
|
*Asana.PortfolioMembershipsApi* | [**getPortfolioMembership**](docs/PortfolioMembershipsApi.md#getPortfolioMembership) | **GET** /portfolio_memberships/{portfolio_membership_gid} | Get a portfolio membership
|
|
@@ -1142,6 +1149,6 @@ client.callApi(
|
|
|
1142
1149
|
```
|
|
1143
1150
|
|
|
1144
1151
|
[release-image]: https://img.shields.io/github/release/asana/node-asana.svg
|
|
1145
|
-
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.1.
|
|
1152
|
+
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.1.12
|
|
1146
1153
|
[npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
|
|
1147
1154
|
[npm-url]: https://www.npmjs.org/package/asana
|
package/dist/ApiClient.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
30
|
* @module ApiClient
|
|
31
|
-
* @version 3.1.
|
|
31
|
+
* @version 3.1.12
|
|
32
32
|
*/
|
|
33
33
|
/**
|
|
34
34
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -405,14 +405,14 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
405
405
|
// set header parameters
|
|
406
406
|
if (typeof navigator === 'undefined' || typeof window === 'undefined') {
|
|
407
407
|
headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
|
|
408
|
-
'version': "3.1.
|
|
408
|
+
'version': "3.1.12",
|
|
409
409
|
'language': 'NodeJS',
|
|
410
410
|
'language_version': process.version,
|
|
411
411
|
'os': process.platform
|
|
412
412
|
}).toString();
|
|
413
413
|
} else {
|
|
414
414
|
headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
|
|
415
|
-
'version': "3.1.
|
|
415
|
+
'version': "3.1.12",
|
|
416
416
|
'language': 'BrowserJS'
|
|
417
417
|
}).toString();
|
|
418
418
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Asana
|
|
3
|
+
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
*
|
|
10
|
+
* Swagger Codegen version: 3.0.54
|
|
11
|
+
*
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
import { ApiClient } from "../ApiClient";
|
|
16
|
+
import Collection = require("../utils/collection");
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Agents service.
|
|
20
|
+
* @module api/AgentsApi
|
|
21
|
+
* @version 3.1.12
|
|
22
|
+
*/
|
|
23
|
+
export class AgentsApi {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new AgentsApi.
|
|
26
|
+
* @alias module:api/AgentsApi
|
|
27
|
+
* @class
|
|
28
|
+
* @param apiClient Optional API client implementation to use, default to ApiClient.instance if unspecified.
|
|
29
|
+
*/
|
|
30
|
+
constructor(apiClient?: ApiClient);
|
|
31
|
+
|
|
32
|
+
apiClient: ApiClient;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get an agent
|
|
36
|
+
* Returns the complete record for a single agent (AI Teammate).
|
|
37
|
+
* @param agent_gid Globally unique identifier for the agent.
|
|
38
|
+
* @param opts Optional parameters
|
|
39
|
+
* @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
40
|
+
* @returns A Promise, with an object containing data and HTTP response
|
|
41
|
+
*/
|
|
42
|
+
getAgentWithHttpInfo(agent_gid: string, opts?: { 'opt_fields'?: any; }): Promise<{ response: any; data: any }>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Get an agent
|
|
46
|
+
* Returns the complete record for a single agent (AI Teammate).
|
|
47
|
+
* @param agent_gid Globally unique identifier for the agent.
|
|
48
|
+
* @param opts Optional parameters
|
|
49
|
+
* @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
50
|
+
* @returns A Promise
|
|
51
|
+
*/
|
|
52
|
+
getAgent(agent_gid: string, opts?: { 'opt_fields'?: any; }): Promise<any>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Get a list of agents in a workspace
|
|
56
|
+
* Returns the compact records of agents (AI Teammates) configured. Use `opt_fields` to request additional fields in the workspace.
|
|
57
|
+
* @param workspace_gid Globally unique identifier for the workspace or organization.
|
|
58
|
+
* @param opts Optional parameters
|
|
59
|
+
* @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
60
|
+
* @param opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
|
|
61
|
+
* @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
62
|
+
* @returns A Promise, with an object containing data and HTTP response
|
|
63
|
+
*/
|
|
64
|
+
getAgentsForWorkspaceWithHttpInfo(workspace_gid: string, opts?: { 'limit'?: any; 'offset'?: string; 'opt_fields'?: any; }): Promise<Collection | { response: any; data: any }>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Get a list of agents in a workspace
|
|
68
|
+
* Returns the compact records of agents (AI Teammates) configured. Use `opt_fields` to request additional fields in the workspace.
|
|
69
|
+
* @param workspace_gid Globally unique identifier for the workspace or organization.
|
|
70
|
+
* @param opts Optional parameters
|
|
71
|
+
* @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
72
|
+
* @param opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
|
|
73
|
+
* @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
74
|
+
* @returns A Promise
|
|
75
|
+
*/
|
|
76
|
+
getAgentsForWorkspace(workspace_gid: string, opts?: { 'limit'?: any; 'offset'?: string; 'opt_fields'?: any; }): Promise<Collection | any>;
|
|
77
|
+
|
|
78
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentsApi = void 0;
|
|
7
|
+
var _ApiClient = require("../ApiClient");
|
|
8
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
10
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
11
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
|
|
14
|
+
* Asana
|
|
15
|
+
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
|
|
16
|
+
*
|
|
17
|
+
* OpenAPI spec version: 1.0
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
|
+
*
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
|
+
*
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
var Collection = require('../utils/collection');
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Agents service.
|
|
31
|
+
* @module api/AgentsApi
|
|
32
|
+
* @version 3.1.12
|
|
33
|
+
*/
|
|
34
|
+
var AgentsApi = exports.AgentsApi = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new AgentsApi.
|
|
37
|
+
* @alias module:api/AgentsApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instanc
|
|
41
|
+
e} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function AgentsApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, AgentsApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get an agent
|
|
50
|
+
* Returns the complete record for a single agent (AI Teammate).
|
|
51
|
+
* @param {String} agent_gid Globally unique identifier for the agent.
|
|
52
|
+
* @param {Object} opts Optional parameters
|
|
53
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
54
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
55
|
+
*/
|
|
56
|
+
return _createClass(AgentsApi, [{
|
|
57
|
+
key: "getAgentWithHttpInfo",
|
|
58
|
+
value: function getAgentWithHttpInfo(agent_gid, opts) {
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
var postBody = null;
|
|
61
|
+
// verify the required parameter 'agent_gid' is set
|
|
62
|
+
if (agent_gid === undefined || agent_gid === null) {
|
|
63
|
+
throw new Error("Missing the required parameter 'agent_gid' when calling getAgent");
|
|
64
|
+
}
|
|
65
|
+
var pathParams = {
|
|
66
|
+
'agent_gid': agent_gid
|
|
67
|
+
};
|
|
68
|
+
var queryParams = {};
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
queryParams = opts;
|
|
71
|
+
var headerParams = {};
|
|
72
|
+
var formParams = {};
|
|
73
|
+
var authNames = ['personalAccessToken'];
|
|
74
|
+
var contentTypes = [];
|
|
75
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
76
|
+
var returnType = 'Blob';
|
|
77
|
+
return this.apiClient.callApi('/agents/{agent_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Get an agent
|
|
82
|
+
* Returns the complete record for a single agent (AI Teammate).
|
|
83
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} agent_gid Globally unique identifier for the agent.
|
|
84
|
+
* @param {Object} opts Optional parameters
|
|
85
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
86
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentResponseData}
|
|
87
|
+
*/
|
|
88
|
+
}, {
|
|
89
|
+
key: "getAgent",
|
|
90
|
+
value: function getAgent(agent_gid, opts) {
|
|
91
|
+
return this.getAgentWithHttpInfo(agent_gid, opts).then(function (response_and_data) {
|
|
92
|
+
return response_and_data.data;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Get a list of agents in a workspace
|
|
98
|
+
* Returns the compact records of agents (AI Teammates) configured. Use `opt_fields` to request additional fields in the workspace.
|
|
99
|
+
* @param {String} workspace_gid Globally unique identifier for the workspace or organization.
|
|
100
|
+
* @param {Object} opts Optional parameters
|
|
101
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
102
|
+
* @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
|
|
103
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
104
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
105
|
+
*/
|
|
106
|
+
}, {
|
|
107
|
+
key: "getAgentsForWorkspaceWithHttpInfo",
|
|
108
|
+
value: function getAgentsForWorkspaceWithHttpInfo(workspace_gid, opts) {
|
|
109
|
+
opts = opts || {};
|
|
110
|
+
var postBody = null;
|
|
111
|
+
// verify the required parameter 'workspace_gid' is set
|
|
112
|
+
if (workspace_gid === undefined || workspace_gid === null) {
|
|
113
|
+
throw new Error("Missing the required parameter 'workspace_gid' when calling getAgentsForWorkspace");
|
|
114
|
+
}
|
|
115
|
+
var pathParams = {
|
|
116
|
+
'workspace_gid': workspace_gid
|
|
117
|
+
};
|
|
118
|
+
var queryParams = {};
|
|
119
|
+
opts = opts || {};
|
|
120
|
+
queryParams = opts;
|
|
121
|
+
var headerParams = {};
|
|
122
|
+
var formParams = {};
|
|
123
|
+
var authNames = ['personalAccessToken'];
|
|
124
|
+
var contentTypes = [];
|
|
125
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
126
|
+
var returnType = 'Blob';
|
|
127
|
+
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
128
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
129
|
+
return Collection.fromApiClient(this.apiClient.callApi('/workspaces/{workspace_gid}/agents', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
130
|
+
'path': '/workspaces/{workspace_gid}/agents',
|
|
131
|
+
'httpMethod': 'GET',
|
|
132
|
+
'pathParams': pathParams,
|
|
133
|
+
'queryParams': queryParams,
|
|
134
|
+
'headerParams': headerParams,
|
|
135
|
+
'formParams': formParams,
|
|
136
|
+
'bodyParam': postBody,
|
|
137
|
+
'authNames': authNames,
|
|
138
|
+
'contentTypes': contentTypes,
|
|
139
|
+
'accepts': accepts,
|
|
140
|
+
'returnType': returnType
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return this.apiClient.callApi('/workspaces/{workspace_gid}/agents', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Get a list of agents in a workspace
|
|
148
|
+
* Returns the compact records of agents (AI Teammates) configured. Use `opt_fields` to request additional fields in the workspace.
|
|
149
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} workspace_gid Globally unique identifier for the workspace or organization.
|
|
150
|
+
* @param {Object} opts Optional parameters
|
|
151
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
152
|
+
* @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
|
|
153
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
154
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentResponseArray}
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "getAgentsForWorkspace",
|
|
158
|
+
value: function getAgentsForWorkspace(workspace_gid, opts) {
|
|
159
|
+
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
160
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
161
|
+
return this.getAgentsForWorkspaceWithHttpInfo(workspace_gid, opts);
|
|
162
|
+
}
|
|
163
|
+
return this.getAgentsForWorkspaceWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
|
|
164
|
+
return response_and_data.data;
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}]);
|
|
168
|
+
}();
|
package/dist/api/BatchAPIApi.js
CHANGED
package/dist/api/BudgetsApi.d.ts
CHANGED
package/dist/api/BudgetsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* CustomFieldSettings service.
|
|
31
31
|
* @module api/CustomFieldSettingsApi
|
|
32
|
-
* @version 3.1.
|
|
32
|
+
* @version 3.1.12
|
|
33
33
|
*/
|
|
34
34
|
var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/EventsApi.d.ts
CHANGED
package/dist/api/EventsApi.js
CHANGED
package/dist/api/ExportsApi.d.ts
CHANGED
package/dist/api/ExportsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* GoalRelationships service.
|
|
31
31
|
* @module api/GoalRelationshipsApi
|
|
32
|
-
* @version 3.1.
|
|
32
|
+
* @version 3.1.12
|
|
33
33
|
*/
|
|
34
34
|
var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/GoalsApi.d.ts
CHANGED
package/dist/api/GoalsApi.js
CHANGED
package/dist/api/JobsApi.d.ts
CHANGED