asana 3.0.16 → 3.1.0
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 +4 -3
- package/dist/ApiClient.js +3 -3
- package/dist/api/AllocationsApi.js +1 -1
- package/dist/api/AttachmentsApi.js +7 -7
- package/dist/api/AuditLogAPIApi.js +1 -1
- package/dist/api/BatchAPIApi.js +1 -1
- package/dist/api/CustomFieldSettingsApi.js +1 -1
- package/dist/api/CustomFieldsApi.js +1 -1
- package/dist/api/CustomTypesApi.js +1 -1
- package/dist/api/EventsApi.js +1 -1
- package/dist/api/ExportsApi.js +87 -0
- package/dist/api/GoalRelationshipsApi.js +1 -1
- package/dist/api/GoalsApi.js +7 -7
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MembershipsApi.js +1 -1
- package/dist/api/OrganizationExportsApi.js +1 -1
- package/dist/api/PortfolioMembershipsApi.js +1 -1
- package/dist/api/PortfoliosApi.js +7 -7
- package/dist/api/ProjectBriefsApi.js +1 -1
- package/dist/api/ProjectMembershipsApi.js +1 -1
- package/dist/api/ProjectStatusesApi.js +1 -1
- package/dist/api/ProjectTemplatesApi.js +9 -9
- package/dist/api/ProjectsApi.js +29 -29
- package/dist/api/RulesApi.js +1 -1
- package/dist/api/SectionsApi.js +3 -3
- package/dist/api/StatusUpdatesApi.js +1 -1
- package/dist/api/StoriesApi.js +5 -5
- package/dist/api/TagsApi.js +1 -1
- package/dist/api/TaskTemplatesApi.js +5 -5
- package/dist/api/TasksApi.js +55 -55
- package/dist/api/TeamMembershipsApi.js +1 -1
- package/dist/api/TeamsApi.js +7 -7
- package/dist/api/TimePeriodsApi.js +1 -1
- package/dist/api/TimeTrackingEntriesApi.js +1 -1
- package/dist/api/TypeaheadApi.js +3 -3
- package/dist/api/UserTaskListsApi.js +5 -5
- package/dist/api/UsersApi.js +11 -11
- package/dist/api/WebhooksApi.js +1 -1
- package/dist/api/WorkspaceMembershipsApi.js +1 -1
- package/dist/api/WorkspacesApi.js +5 -5
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/ApiClient.js +3 -3
- package/src/api/AllocationsApi.js +1 -1
- package/src/api/AttachmentsApi.js +7 -7
- package/src/api/AuditLogAPIApi.js +1 -1
- package/src/api/BatchAPIApi.js +1 -1
- package/src/api/CustomFieldSettingsApi.js +1 -1
- package/src/api/CustomFieldsApi.js +1 -1
- package/src/api/CustomTypesApi.js +1 -1
- package/src/api/EventsApi.js +1 -1
- package/src/api/ExportsApi.js +91 -0
- package/src/api/GoalRelationshipsApi.js +1 -1
- package/src/api/GoalsApi.js +7 -7
- package/src/api/JobsApi.js +1 -1
- package/src/api/MembershipsApi.js +1 -1
- package/src/api/OrganizationExportsApi.js +1 -1
- package/src/api/PortfolioMembershipsApi.js +1 -1
- package/src/api/PortfoliosApi.js +7 -7
- package/src/api/ProjectBriefsApi.js +1 -1
- package/src/api/ProjectMembershipsApi.js +1 -1
- package/src/api/ProjectStatusesApi.js +1 -1
- package/src/api/ProjectTemplatesApi.js +9 -9
- package/src/api/ProjectsApi.js +29 -29
- package/src/api/RulesApi.js +1 -1
- package/src/api/SectionsApi.js +3 -3
- package/src/api/StatusUpdatesApi.js +1 -1
- package/src/api/StoriesApi.js +5 -5
- package/src/api/TagsApi.js +1 -1
- package/src/api/TaskTemplatesApi.js +5 -5
- package/src/api/TasksApi.js +55 -55
- package/src/api/TeamMembershipsApi.js +1 -1
- package/src/api/TeamsApi.js +7 -7
- package/src/api/TimePeriodsApi.js +1 -1
- package/src/api/TimeTrackingEntriesApi.js +1 -1
- package/src/api/TypeaheadApi.js +3 -3
- package/src/api/UserTaskListsApi.js +5 -5
- package/src/api/UsersApi.js +11 -11
- package/src/api/WebhooksApi.js +1 -1
- package/src/api/WorkspaceMembershipsApi.js +1 -1
- package/src/api/WorkspacesApi.js +5 -5
- package/src/index.js +8 -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.0
|
|
4
|
+
- Package version: 3.1.0
|
|
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.0
|
|
21
|
+
<script src="https://github.com/Asana/node-asana/releases/download/v3.1.0/asana-min.js"></script>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Example usage (**NOTE**: be careful not to expose your access token):
|
|
@@ -218,6 +218,7 @@ Class | Method | HTTP request | Description
|
|
|
218
218
|
*Asana.CustomFieldsApi* | [**updateEnumOption**](docs/CustomFieldsApi.md#updateEnumOption) | **PUT** /enum_options/{enum_option_gid} | Update an enum option
|
|
219
219
|
*Asana.CustomTypesApi* | [**getCustomTypes**](docs/CustomTypesApi.md#getCustomTypes) | **GET** /custom_types | Get all custom types associated with an object
|
|
220
220
|
*Asana.EventsApi* | [**getEvents**](docs/EventsApi.md#getEvents) | **GET** /events | Get events on a resource
|
|
221
|
+
*Asana.ExportsApi* | [**createGraphExport**](docs/ExportsApi.md#createGraphExport) | **POST** /exports/graph | Initiate graph export
|
|
221
222
|
*Asana.GoalRelationshipsApi* | [**addSupportingRelationship**](docs/GoalRelationshipsApi.md#addSupportingRelationship) | **POST** /goals/{goal_gid}/addSupportingRelationship | Add a supporting goal relationship
|
|
222
223
|
*Asana.GoalRelationshipsApi* | [**getGoalRelationship**](docs/GoalRelationshipsApi.md#getGoalRelationship) | **GET** /goal_relationships/{goal_relationship_gid} | Get a goal relationship
|
|
223
224
|
*Asana.GoalRelationshipsApi* | [**getGoalRelationships**](docs/GoalRelationshipsApi.md#getGoalRelationships) | **GET** /goal_relationships | Get goal relationships
|
|
@@ -1113,6 +1114,6 @@ client.callApi(
|
|
|
1113
1114
|
```
|
|
1114
1115
|
|
|
1115
1116
|
[release-image]: https://img.shields.io/github/release/asana/node-asana.svg
|
|
1116
|
-
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0
|
|
1117
|
+
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.1.0
|
|
1117
1118
|
[npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
|
|
1118
1119
|
[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.0
|
|
31
|
+
* @version 3.1.0
|
|
32
32
|
*/
|
|
33
33
|
/**
|
|
34
34
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -400,14 +400,14 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
400
400
|
// set header parameters
|
|
401
401
|
if (typeof navigator === 'undefined' || typeof window === 'undefined') {
|
|
402
402
|
headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
|
|
403
|
-
'version': "3.0
|
|
403
|
+
'version': "3.1.0",
|
|
404
404
|
'language': 'NodeJS',
|
|
405
405
|
'language_version': process.version,
|
|
406
406
|
'os': process.platform
|
|
407
407
|
}).toString();
|
|
408
408
|
} else {
|
|
409
409
|
headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
|
|
410
|
-
'version': "3.0
|
|
410
|
+
'version': "3.1.0",
|
|
411
411
|
'language': 'BrowserJS'
|
|
412
412
|
}).toString();
|
|
413
413
|
}
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Attachments service.
|
|
31
31
|
* @module api/AttachmentsApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,7 +47,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Upload an attachment
|
|
50
|
-
* Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo & Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form `CRLF` or `\\r\\n` outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request. For file names that contain non-ASCII characters, the file name should be URL-encoded. For example, a file named `résumé.pdf` should be encoded as `r%C3%A9sum%C3%A9.pdf` and the `filename` parameter in the `Content-Disposition` header should be set to the encoded file name. Below is an example of a cURL request with the `Content-Disposition` header: ``` export ASANA_PAT=\"<YOUR_ASANA_PERSONAL_ACCESS_TOKEN>\" export PARENT_ID=\"<PARENT_GID>\" export ENCODED_NAME=\"r%C3%A9sum%C3%A9.pdf\" curl --location 'https://app.asana.com/api/1.0/attachments' \\ --header 'Content-Type: multipart/form-data' \\ --header 'Accept: application/json' \\ --header \"Authorization: Bearer $ASANA_PAT\" \\ --form \"parent=$PARENT_ID\" \\ --form \"file=@/Users/exampleUser/Downloads/résumé.pdf;headers=\\\"Content-Disposition: form-data; name=\"file\"; filename=\"$ENCODED_NAME.pdf\"; filename*=UTF-8''$ENCODED_NAME.pdf\\\"\" ```
|
|
50
|
+
* <b>Required scope: </b><code>attachments:write</code> Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo & Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form `CRLF` or `\\r\\n` outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request. For file names that contain non-ASCII characters, the file name should be URL-encoded. For example, a file named `résumé.pdf` should be encoded as `r%C3%A9sum%C3%A9.pdf` and the `filename` parameter in the `Content-Disposition` header should be set to the encoded file name. Below is an example of a cURL request with the `Content-Disposition` header: ``` export ASANA_PAT=\"<YOUR_ASANA_PERSONAL_ACCESS_TOKEN>\" export PARENT_ID=\"<PARENT_GID>\" export ENCODED_NAME=\"r%C3%A9sum%C3%A9.pdf\" curl --location 'https://app.asana.com/api/1.0/attachments' \\ --header 'Content-Type: multipart/form-data' \\ --header 'Accept: application/json' \\ --header \"Authorization: Bearer $ASANA_PAT\" \\ --form \"parent=$PARENT_ID\" \\ --form \"file=@/Users/exampleUser/Downloads/résumé.pdf;headers=\\\"Content-Disposition: form-data; name=\"file\"; filename=\"$ENCODED_NAME.pdf\"; filename*=UTF-8''$ENCODED_NAME.pdf\\\"\" ```
|
|
51
51
|
* @param {Object} opts Optional parameters
|
|
52
52
|
* @param {module:model/String} opts.resource_subtype
|
|
53
53
|
* @param {Blob} opts.file
|
|
@@ -85,7 +85,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
|
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Upload an attachment
|
|
88
|
-
* Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo & Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form `CRLF` or `\\r\\n` outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request. For file names that contain non-ASCII characters, the file name should be URL-encoded. For example, a file named `résumé.pdf` should be encoded as `r%C3%A9sum%C3%A9.pdf` and the `filename` parameter in the `Content-Disposition` header should be set to the encoded file name. Below is an example of a cURL request with the `Content-Disposition` header: ``` export ASANA_PAT=\"<YOUR_ASANA_PERSONAL_ACCESS_TOKEN>\" export PARENT_ID=\"<PARENT_GID>\" export ENCODED_NAME=\"r%C3%A9sum%C3%A9.pdf\" curl --location 'https://app.asana.com/api/1.0/attachments' \\ --header 'Content-Type: multipart/form-data' \\ --header 'Accept: application/json' \\ --header \"Authorization: Bearer $ASANA_PAT\" \\ --form \"parent=$PARENT_ID\" \\ --form \"file=@/Users/exampleUser/Downloads/résumé.pdf;headers=\\\"Content-Disposition: form-data; name=\"file\"; filename=\"$ENCODED_NAME.pdf\"; filename*=UTF-8''$ENCODED_NAME.pdf\\\"\" ```
|
|
88
|
+
* <b>Required scope: </b><code>attachments:write</code> Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo & Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form `CRLF` or `\\r\\n` outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request. For file names that contain non-ASCII characters, the file name should be URL-encoded. For example, a file named `résumé.pdf` should be encoded as `r%C3%A9sum%C3%A9.pdf` and the `filename` parameter in the `Content-Disposition` header should be set to the encoded file name. Below is an example of a cURL request with the `Content-Disposition` header: ``` export ASANA_PAT=\"<YOUR_ASANA_PERSONAL_ACCESS_TOKEN>\" export PARENT_ID=\"<PARENT_GID>\" export ENCODED_NAME=\"r%C3%A9sum%C3%A9.pdf\" curl --location 'https://app.asana.com/api/1.0/attachments' \\ --header 'Content-Type: multipart/form-data' \\ --header 'Accept: application/json' \\ --header \"Authorization: Bearer $ASANA_PAT\" \\ --form \"parent=$PARENT_ID\" \\ --form \"file=@/Users/exampleUser/Downloads/résumé.pdf;headers=\\\"Content-Disposition: form-data; name=\"file\"; filename=\"$ENCODED_NAME.pdf\"; filename*=UTF-8''$ENCODED_NAME.pdf\\\"\" ```
|
|
89
89
|
* @param {Object} opts Optional parameters
|
|
90
90
|
* @param {module:model/String} opts.resource_subtype
|
|
91
91
|
* @param {Blob} opts.file
|
|
@@ -147,7 +147,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
|
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Get an attachment
|
|
150
|
-
* Get the full record for a single attachment.
|
|
150
|
+
* <b>Required scope: </b><code>attachments:read</code> Get the full record for a single attachment.
|
|
151
151
|
* @param {String} attachment_gid Globally unique identifier for the attachment.
|
|
152
152
|
* @param {Object} opts Optional parameters
|
|
153
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.
|
|
@@ -179,7 +179,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Get an attachment
|
|
182
|
-
* Get the full record for a single attachment.
|
|
182
|
+
* <b>Required scope: </b><code>attachments:read</code> Get the full record for a single attachment.
|
|
183
183
|
* @param {<&vendorExtensions.x-jsdoc-type>} attachment_gid Globally unique identifier for the attachment.
|
|
184
184
|
* @param {Object} opts Optional parameters
|
|
185
185
|
* @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.
|
|
@@ -195,7 +195,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
|
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* Get attachments from an object
|
|
198
|
-
* Returns the compact records for all attachments on the object.
|
|
198
|
+
* <b>Required scope: </b><code>attachments:read</code> Returns the compact records for all attachments on the object. There are three possible `parent` values for this request: `project`, `project_brief`, and `task`. For a project, an attachment refers to a file uploaded to the \"Key resources\" section in the project Overview. For a project brief, an attachment refers to inline files in the project brief itself. For a task, an attachment refers to a file directly associated to that task. Note that within the Asana app, inline images in the task description do not appear in the index of image thumbnails nor as stories in the task. However, requests made to `GET /attachments` for a task will return all of the images in the task, including inline images.
|
|
199
199
|
* @param {String} parent Globally unique identifier for object to fetch statuses from. Must be a GID for a `project`, `project_brief`, or `task`.
|
|
200
200
|
* @param {Object} opts Optional parameters
|
|
201
201
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -244,7 +244,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
|
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* Get attachments from an object
|
|
247
|
-
* Returns the compact records for all attachments on the object.
|
|
247
|
+
* <b>Required scope: </b><code>attachments:read</code> Returns the compact records for all attachments on the object. There are three possible `parent` values for this request: `project`, `project_brief`, and `task`. For a project, an attachment refers to a file uploaded to the \"Key resources\" section in the project Overview. For a project brief, an attachment refers to inline files in the project brief itself. For a task, an attachment refers to a file directly associated to that task. Note that within the Asana app, inline images in the task description do not appear in the index of image thumbnails nor as stories in the task. However, requests made to `GET /attachments` for a task will return all of the images in the task, including inline images.
|
|
248
248
|
* @param {<&vendorExtensions.x-jsdoc-type>} parent Globally unique identifier for object to fetch statuses from. Must be a GID for a `project`, `project_brief`, or `task`.
|
|
249
249
|
* @param {Object} opts Optional parameters
|
|
250
250
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
package/dist/api/BatchAPIApi.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.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/EventsApi.js
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ExportsApi = 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
|
+
* Exports service.
|
|
31
|
+
* @module api/ExportsApi
|
|
32
|
+
* @version 3.1.0
|
|
33
|
+
*/
|
|
34
|
+
var ExportsApi = exports.ExportsApi = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new ExportsApi.
|
|
37
|
+
* @alias module:api/ExportsApi
|
|
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 ExportsApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, ExportsApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Initiate graph export
|
|
50
|
+
* Initiates a graph export job for a given parent object (team, portfolio, or project). The export will be processed asynchronously. Once initiated, use the [jobs](/reference/getjob) endpoint to monitor progress. **Export Caching:** When exporting more than 1,000 tasks, the results are cached for 4 hours. Any new export requests made within this 4-hour window will return the same cached results rather than generating a fresh export.
|
|
51
|
+
* @param {module:model/Object} body A JSON payload specifying the parent object to export.
|
|
52
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
53
|
+
*/
|
|
54
|
+
return _createClass(ExportsApi, [{
|
|
55
|
+
key: "createGraphExportWithHttpInfo",
|
|
56
|
+
value: function createGraphExportWithHttpInfo(body) {
|
|
57
|
+
var postBody = body;
|
|
58
|
+
// verify the required parameter 'body' is set
|
|
59
|
+
if (body === undefined || body === null) {
|
|
60
|
+
throw new Error("Missing the required parameter 'body' when calling createGraphExport");
|
|
61
|
+
}
|
|
62
|
+
var pathParams = {};
|
|
63
|
+
var queryParams = {};
|
|
64
|
+
var headerParams = {};
|
|
65
|
+
var formParams = {};
|
|
66
|
+
var authNames = ['personalAccessToken'];
|
|
67
|
+
var contentTypes = ['application/json; charset=UTF-8'];
|
|
68
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
69
|
+
var returnType = 'Blob';
|
|
70
|
+
return this.apiClient.callApi('/exports/graph', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Initiate graph export
|
|
75
|
+
* Initiates a graph export job for a given parent object (team, portfolio, or project). The export will be processed asynchronously. Once initiated, use the [jobs](/reference/getjob) endpoint to monitor progress. **Export Caching:** When exporting more than 1,000 tasks, the results are cached for 4 hours. Any new export requests made within this 4-hour window will return the same cached results rather than generating a fresh export.
|
|
76
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body A JSON payload specifying the parent object to export.
|
|
77
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphExportResponseData}
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "createGraphExport",
|
|
81
|
+
value: function createGraphExport(body) {
|
|
82
|
+
return this.createGraphExportWithHttpInfo(body).then(function (response_and_data) {
|
|
83
|
+
return response_and_data.data;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}]);
|
|
87
|
+
}();
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* GoalRelationships service.
|
|
31
31
|
* @module api/GoalRelationshipsApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/GoalsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Goals service.
|
|
31
31
|
* @module api/GoalsApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -242,7 +242,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
|
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* Get a goal
|
|
245
|
-
* Returns the complete goal record for a single goal.
|
|
245
|
+
* <b>Required scope: </b><code>goals:read</code> Returns the complete goal record for a single goal.
|
|
246
246
|
* @param {String} goal_gid Globally unique identifier for the goal.
|
|
247
247
|
* @param {Object} opts Optional parameters
|
|
248
248
|
* @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.
|
|
@@ -274,7 +274,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
|
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Get a goal
|
|
277
|
-
* Returns the complete goal record for a single goal.
|
|
277
|
+
* <b>Required scope: </b><code>goals:read</code> Returns the complete goal record for a single goal.
|
|
278
278
|
* @param {<&vendorExtensions.x-jsdoc-type>} goal_gid Globally unique identifier for the goal.
|
|
279
279
|
* @param {Object} opts Optional parameters
|
|
280
280
|
* @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.
|
|
@@ -290,7 +290,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
|
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* Get goals
|
|
293
|
-
* Returns compact goal records.
|
|
293
|
+
* <b>Required scope: </b><code>goals:read</code> Returns compact goal records.
|
|
294
294
|
* @param {Object} opts Optional parameters
|
|
295
295
|
* @param {String} opts.portfolio Globally unique identifier for supporting portfolio.
|
|
296
296
|
* @param {String} opts.project Globally unique identifier for supporting project.
|
|
@@ -340,7 +340,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
|
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
342
|
* Get goals
|
|
343
|
-
* Returns compact goal records.
|
|
343
|
+
* <b>Required scope: </b><code>goals:read</code> Returns compact goal records.
|
|
344
344
|
* @param {Object} opts Optional parameters
|
|
345
345
|
* @param {String} opts.portfolio Globally unique identifier for supporting portfolio.
|
|
346
346
|
* @param {String} opts.project Globally unique identifier for supporting project.
|
|
@@ -368,7 +368,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
|
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Get parent goals from a goal
|
|
371
|
-
* Returns a compact representation of all of the parent goals of a goal.
|
|
371
|
+
* <b>Required scope: </b><code>goals:read</code> Returns a compact representation of all of the parent goals of a goal.
|
|
372
372
|
* @param {String} goal_gid Globally unique identifier for the goal.
|
|
373
373
|
* @param {Object} opts Optional parameters
|
|
374
374
|
* @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.
|
|
@@ -416,7 +416,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
|
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* Get parent goals from a goal
|
|
419
|
-
* Returns a compact representation of all of the parent goals of a goal.
|
|
419
|
+
* <b>Required scope: </b><code>goals:read</code> Returns a compact representation of all of the parent goals of a goal.
|
|
420
420
|
* @param {<&vendorExtensions.x-jsdoc-type>} goal_gid Globally unique identifier for the goal.
|
|
421
421
|
* @param {Object} opts Optional parameters
|
|
422
422
|
* @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.
|
package/dist/api/JobsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* OrganizationExports service.
|
|
31
31
|
* @module api/OrganizationExportsApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* PortfolioMemberships service.
|
|
31
31
|
* @module api/PortfolioMembershipsApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Portfolios service.
|
|
31
31
|
* @module api/PortfoliosApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -282,7 +282,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
282
282
|
|
|
283
283
|
/**
|
|
284
284
|
* Get portfolio items
|
|
285
|
-
* Get a list of the items in compact form in a portfolio.
|
|
285
|
+
* <b>Required scope: </b><code>portfolios:read</code> Get a list of the items in compact form in a portfolio.
|
|
286
286
|
* @param {String} portfolio_gid Globally unique identifier for the portfolio.
|
|
287
287
|
* @param {Object} opts Optional parameters
|
|
288
288
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -332,7 +332,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* Get portfolio items
|
|
335
|
-
* Get a list of the items in compact form in a portfolio.
|
|
335
|
+
* <b>Required scope: </b><code>portfolios:read</code> Get a list of the items in compact form in a portfolio.
|
|
336
336
|
* @param {<&vendorExtensions.x-jsdoc-type>} portfolio_gid Globally unique identifier for the portfolio.
|
|
337
337
|
* @param {Object} opts Optional parameters
|
|
338
338
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -354,7 +354,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
354
354
|
|
|
355
355
|
/**
|
|
356
356
|
* Get a portfolio
|
|
357
|
-
* Returns the complete portfolio record for a single portfolio.
|
|
357
|
+
* <b>Required scope: </b><code>portfolios:read</code> Returns the complete portfolio record for a single portfolio.
|
|
358
358
|
* @param {String} portfolio_gid Globally unique identifier for the portfolio.
|
|
359
359
|
* @param {Object} opts Optional parameters
|
|
360
360
|
* @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.
|
|
@@ -386,7 +386,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
386
386
|
|
|
387
387
|
/**
|
|
388
388
|
* Get a portfolio
|
|
389
|
-
* Returns the complete portfolio record for a single portfolio.
|
|
389
|
+
* <b>Required scope: </b><code>portfolios:read</code> Returns the complete portfolio record for a single portfolio.
|
|
390
390
|
* @param {<&vendorExtensions.x-jsdoc-type>} portfolio_gid Globally unique identifier for the portfolio.
|
|
391
391
|
* @param {Object} opts Optional parameters
|
|
392
392
|
* @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.
|
|
@@ -402,7 +402,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
402
402
|
|
|
403
403
|
/**
|
|
404
404
|
* Get multiple portfolios
|
|
405
|
-
* Returns a list of the portfolios in compact representation that are owned by the current API user.
|
|
405
|
+
* <b>Required scope: </b><code>portfolios:read</code> Returns a list of the portfolios in compact representation that are owned by the current API user.
|
|
406
406
|
* @param {String} workspace The workspace or organization to filter portfolios on.
|
|
407
407
|
* @param {Object} opts Optional parameters
|
|
408
408
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -452,7 +452,7 @@ var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
|
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
454
|
* Get multiple portfolios
|
|
455
|
-
* Returns a list of the portfolios in compact representation that are owned by the current API user.
|
|
455
|
+
* <b>Required scope: </b><code>portfolios:read</code> Returns a list of the portfolios in compact representation that are owned by the current API user.
|
|
456
456
|
* @param {<&vendorExtensions.x-jsdoc-type>} workspace The workspace or organization to filter portfolios on.
|
|
457
457
|
* @param {Object} opts Optional parameters
|
|
458
458
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* ProjectMemberships service.
|
|
31
31
|
* @module api/ProjectMembershipsApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var ProjectMembershipsApi = exports.ProjectMembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* ProjectTemplates service.
|
|
31
31
|
* @module api/ProjectTemplatesApi
|
|
32
|
-
* @version 3.0
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -88,7 +88,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Get a project template
|
|
91
|
-
* Returns the complete project template record for a single project template.
|
|
91
|
+
* <b>Required scope: </b><code>project_templates:read</code> Returns the complete project template record for a single project template.
|
|
92
92
|
* @param {String} project_template_gid Globally unique identifier for the project template.
|
|
93
93
|
* @param {Object} opts Optional parameters
|
|
94
94
|
* @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.
|
|
@@ -120,7 +120,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Get a project template
|
|
123
|
-
* Returns the complete project template record for a single project template.
|
|
123
|
+
* <b>Required scope: </b><code>project_templates:read</code> Returns the complete project template record for a single project template.
|
|
124
124
|
* @param {<&vendorExtensions.x-jsdoc-type>} project_template_gid Globally unique identifier for the project template.
|
|
125
125
|
* @param {Object} opts Optional parameters
|
|
126
126
|
* @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.
|
|
@@ -136,7 +136,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* Get multiple project templates
|
|
139
|
-
* Returns the compact project template records for all project templates in the given team or workspace.
|
|
139
|
+
* <b>Required scope: </b><code>project_templates:read</code> Returns the compact project template records for all project templates in the given team or workspace.
|
|
140
140
|
* @param {Object} opts Optional parameters
|
|
141
141
|
* @param {String} opts.workspace The workspace to filter results on.
|
|
142
142
|
* @param {String} opts.team The team to filter projects on.
|
|
@@ -181,7 +181,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* Get multiple project templates
|
|
184
|
-
* Returns the compact project template records for all project templates in the given team or workspace.
|
|
184
|
+
* <b>Required scope: </b><code>project_templates:read</code> Returns the compact project template records for all project templates in the given team or workspace.
|
|
185
185
|
* @param {Object} opts Optional parameters
|
|
186
186
|
* @param {String} opts.workspace The workspace to filter results on.
|
|
187
187
|
* @param {String} opts.team The team to filter projects on.
|
|
@@ -204,7 +204,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Get a team's project templates
|
|
207
|
-
* Returns the compact project template records for all project templates in the team.
|
|
207
|
+
* <b>Required scope: </b><code>project_templates:read</code> Returns the compact project template records for all project templates in the team.
|
|
208
208
|
* @param {String} team_gid Globally unique identifier for the team.
|
|
209
209
|
* @param {Object} opts Optional parameters
|
|
210
210
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -254,7 +254,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
256
|
* Get a team's project templates
|
|
257
|
-
* Returns the compact project template records for all project templates in the team.
|
|
257
|
+
* <b>Required scope: </b><code>project_templates:read</code> Returns the compact project template records for all project templates in the team.
|
|
258
258
|
* @param {<&vendorExtensions.x-jsdoc-type>} team_gid Globally unique identifier for the team.
|
|
259
259
|
* @param {Object} opts Optional parameters
|
|
260
260
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
@@ -276,7 +276,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* Instantiate a project from a project template
|
|
279
|
-
* Creates and returns a job that will asynchronously handle the project instantiation. To form this request, it is recommended to first make a request to [get a project template](/reference/getprojecttemplate). Then, from the response, copy the `gid` from the object in the `requested_dates` array. This `gid` should be used in `requested_dates` to instantiate a project. _Note: The body of this request will differ if your workspace is an organization. To determine if your workspace is an organization, use the [is_organization](/reference/workspaces) parameter._
|
|
279
|
+
* <b>Required scope: </b><code>projects:write</code> Creates and returns a job that will asynchronously handle the project instantiation. To form this request, it is recommended to first make a request to [get a project template](/reference/getprojecttemplate). Then, from the response, copy the `gid` from the object in the `requested_dates` array. This `gid` should be used in `requested_dates` to instantiate a project. _Note: The body of this request will differ if your workspace is an organization. To determine if your workspace is an organization, use the [is_organization](/reference/workspaces) parameter._
|
|
280
280
|
* @param {String} project_template_gid Globally unique identifier for the project template.
|
|
281
281
|
* @param {Object} opts Optional parameters
|
|
282
282
|
* @param {module:model/Object} opts.body Describes the inputs used for instantiating a project, such as the resulting project's name, which team it should be created in, and values for date variables.
|
|
@@ -309,7 +309,7 @@ var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function ()
|
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
311
|
* Instantiate a project from a project template
|
|
312
|
-
* Creates and returns a job that will asynchronously handle the project instantiation. To form this request, it is recommended to first make a request to [get a project template](/reference/getprojecttemplate). Then, from the response, copy the `gid` from the object in the `requested_dates` array. This `gid` should be used in `requested_dates` to instantiate a project. _Note: The body of this request will differ if your workspace is an organization. To determine if your workspace is an organization, use the [is_organization](/reference/workspaces) parameter._
|
|
312
|
+
* <b>Required scope: </b><code>projects:write</code> Creates and returns a job that will asynchronously handle the project instantiation. To form this request, it is recommended to first make a request to [get a project template](/reference/getprojecttemplate). Then, from the response, copy the `gid` from the object in the `requested_dates` array. This `gid` should be used in `requested_dates` to instantiate a project. _Note: The body of this request will differ if your workspace is an organization. To determine if your workspace is an organization, use the [is_organization](/reference/workspaces) parameter._
|
|
313
313
|
* @param {<&vendorExtensions.x-jsdoc-type>} project_template_gid Globally unique identifier for the project template.
|
|
314
314
|
* @param {Object} opts Optional parameters
|
|
315
315
|
* @param {module:model/Object} opts.body Describes the inputs used for instantiating a project, such as the resulting project's name, which team it should be created in, and values for date variables.
|