asana 3.1.4 → 3.1.9

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.
Files changed (91) hide show
  1. package/.github/workflows/publish.yaml +4 -18
  2. package/README.md +18 -19
  3. package/codegen/templates/README.mustache +15 -16
  4. package/dist/ApiClient.js +3 -3
  5. package/dist/api/AccessRequestsApi.js +1 -1
  6. package/dist/api/AllocationsApi.js +1 -1
  7. package/dist/api/AttachmentsApi.js +1 -1
  8. package/dist/api/AuditLogAPIApi.js +1 -1
  9. package/dist/api/BatchAPIApi.js +1 -1
  10. package/dist/api/BudgetsApi.js +1 -1
  11. package/dist/api/CustomFieldSettingsApi.js +9 -9
  12. package/dist/api/CustomFieldsApi.js +1 -1
  13. package/dist/api/CustomTypesApi.js +1 -1
  14. package/dist/api/EventsApi.js +1 -1
  15. package/dist/api/ExportsApi.js +1 -1
  16. package/dist/api/GoalRelationshipsApi.js +1 -1
  17. package/dist/api/GoalsApi.js +1 -1
  18. package/dist/api/JobsApi.js +3 -3
  19. package/dist/api/MembershipsApi.js +17 -15
  20. package/dist/api/OrganizationExportsApi.js +1 -1
  21. package/dist/api/PortfolioMembershipsApi.js +1 -1
  22. package/dist/api/PortfoliosApi.js +1 -1
  23. package/dist/api/ProjectBriefsApi.js +1 -1
  24. package/dist/api/ProjectMembershipsApi.js +1 -1
  25. package/dist/api/ProjectStatusesApi.js +1 -1
  26. package/dist/api/ProjectTemplatesApi.js +1 -1
  27. package/dist/api/ProjectsApi.js +13 -13
  28. package/dist/api/RatesApi.js +1 -1
  29. package/dist/api/ReactionsApi.js +1 -1
  30. package/dist/api/RulesApi.js +1 -1
  31. package/dist/api/SectionsApi.js +1 -1
  32. package/dist/api/StatusUpdatesApi.js +1 -1
  33. package/dist/api/StoriesApi.js +1 -1
  34. package/dist/api/TagsApi.js +1 -1
  35. package/dist/api/TaskTemplatesApi.js +1 -1
  36. package/dist/api/TasksApi.js +5 -5
  37. package/dist/api/TeamMembershipsApi.js +1 -1
  38. package/dist/api/TeamsApi.js +1 -1
  39. package/dist/api/TimePeriodsApi.js +1 -1
  40. package/dist/api/TimeTrackingEntriesApi.js +3 -1
  41. package/dist/api/TypeaheadApi.js +1 -1
  42. package/dist/api/UserTaskListsApi.js +1 -1
  43. package/dist/api/UsersApi.js +1 -1
  44. package/dist/api/WebhooksApi.js +1 -1
  45. package/dist/api/WorkspaceMembershipsApi.js +1 -1
  46. package/dist/api/WorkspacesApi.js +1 -1
  47. package/package.json +1 -1
  48. package/src/ApiClient.js +3 -3
  49. package/src/api/AccessRequestsApi.js +1 -1
  50. package/src/api/AllocationsApi.js +1 -1
  51. package/src/api/AttachmentsApi.js +1 -1
  52. package/src/api/AuditLogAPIApi.js +1 -1
  53. package/src/api/BatchAPIApi.js +1 -1
  54. package/src/api/BudgetsApi.js +1 -1
  55. package/src/api/CustomFieldSettingsApi.js +9 -9
  56. package/src/api/CustomFieldsApi.js +1 -1
  57. package/src/api/CustomTypesApi.js +1 -1
  58. package/src/api/EventsApi.js +1 -1
  59. package/src/api/ExportsApi.js +1 -1
  60. package/src/api/GoalRelationshipsApi.js +1 -1
  61. package/src/api/GoalsApi.js +1 -1
  62. package/src/api/JobsApi.js +3 -3
  63. package/src/api/MembershipsApi.js +17 -15
  64. package/src/api/OrganizationExportsApi.js +1 -1
  65. package/src/api/PortfolioMembershipsApi.js +1 -1
  66. package/src/api/PortfoliosApi.js +1 -1
  67. package/src/api/ProjectBriefsApi.js +1 -1
  68. package/src/api/ProjectMembershipsApi.js +1 -1
  69. package/src/api/ProjectStatusesApi.js +1 -1
  70. package/src/api/ProjectTemplatesApi.js +1 -1
  71. package/src/api/ProjectsApi.js +13 -13
  72. package/src/api/RatesApi.js +1 -1
  73. package/src/api/ReactionsApi.js +1 -1
  74. package/src/api/RulesApi.js +1 -1
  75. package/src/api/SectionsApi.js +1 -1
  76. package/src/api/StatusUpdatesApi.js +1 -1
  77. package/src/api/StoriesApi.js +1 -1
  78. package/src/api/TagsApi.js +1 -1
  79. package/src/api/TaskTemplatesApi.js +1 -1
  80. package/src/api/TasksApi.js +5 -5
  81. package/src/api/TeamMembershipsApi.js +1 -1
  82. package/src/api/TeamsApi.js +1 -1
  83. package/src/api/TimePeriodsApi.js +1 -1
  84. package/src/api/TimeTrackingEntriesApi.js +3 -1
  85. package/src/api/TypeaheadApi.js +1 -1
  86. package/src/api/UserTaskListsApi.js +1 -1
  87. package/src/api/UsersApi.js +1 -1
  88. package/src/api/WebhooksApi.js +1 -1
  89. package/src/api/WorkspaceMembershipsApi.js +1 -1
  90. package/src/api/WorkspacesApi.js +1 -1
  91. package/src/index.js +1 -1
@@ -79,26 +79,14 @@ jobs:
79
79
  name: Build and publish 📦 to npmjs
80
80
  runs-on: ubuntu-latest
81
81
  steps:
82
- - name: Authenticate to AWS
83
- uses: aws-actions/configure-aws-credentials@v4
84
- with:
85
- aws-region: us-east-1
86
- role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_release_asana_node_client_library
87
- - name: Load secrets
88
- uses: aws-actions/aws-secretsmanager-get-secrets@v1
89
- with:
90
- secret-ids: NPM_API,npm_api_key
91
- # npm_api_key secret is stored as {key:"***..."}.
92
- # GitHub Actions environment variable name is NPM_API so to access "key" from the json we can use NPM_API_KEY
93
- parse-json-secrets: true
94
82
  - uses: actions/checkout@v4
95
83
  with:
96
84
  fetch-depth: 0
97
85
  ref: master
98
86
  - uses: actions/setup-node@v4
99
87
  with:
100
- node-version: "18.x"
101
- registry-url: "https://registry.npmjs.com"
88
+ node-version: "24.x"
89
+ registry-url: "https://registry.npmjs.org"
102
90
  - name: Build distribution
103
91
  run: |
104
92
  npm pkg set 'main'='dist/index.js'
@@ -106,8 +94,6 @@ jobs:
106
94
  npm pkg set 'scripts.prepare'='npm run build'
107
95
  npm install
108
96
  npm publish
109
- env:
110
- NODE_AUTH_TOKEN: ${{ env.NPM_API_KEY }}
111
97
  publish-to-github-releases:
112
98
  needs: publish-to-npmjs
113
99
  name: Build and publish to GitHub Releases
@@ -129,8 +115,8 @@ jobs:
129
115
  ref: master
130
116
  - uses: actions/setup-node@v4
131
117
  with:
132
- node-version: "18.x"
133
- registry-url: "https://registry.npmjs.com"
118
+ node-version: "24.x"
119
+ registry-url: "https://registry.npmjs.org"
134
120
  - name: Build distribution
135
121
  run: |
136
122
  npm pkg set 'main'='dist/index.js'
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
4
+ - Package version: 3.1.9
5
5
 
6
6
  ## Installation
7
7
 
@@ -18,18 +18,17 @@ 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.4/asana-min.js"></script>
21
+ <script src="https://github.com/Asana/node-asana/releases/download/v3.1.9/asana-min.js"></script>
22
22
  ```
23
23
 
24
24
  Example usage (**NOTE**: be careful not to expose your access token):
25
25
 
26
26
  ```html
27
27
  <script>
28
- let client = Asana.ApiClient.instance;
29
- let token = client.authentications['token'];
30
- token.accessToken = '<YOUR_ACCESS_TOKEN>';
28
+ let client = new Asana.ApiClient();
29
+ client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
31
30
 
32
- let usersApiInstance = new Asana.UsersApi();
31
+ let usersApiInstance = new Asana.UsersApi(client);
33
32
  let user_gid = "me";
34
33
  let opts = {};
35
34
 
@@ -69,7 +68,7 @@ const Asana = require('asana');
69
68
  let client = new Asana.ApiClient();
70
69
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
71
70
 
72
- let usersApiInstance = new Asana.UsersApi();
71
+ let usersApiInstance = new Asana.UsersApi(client);
73
72
  let user_gid = "me"; // String | A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
74
73
  let opts = {
75
74
  "opt_fields": "email,name,photo,photo.image_1024x1024,photo.image_128x128,photo.image_21x21,photo.image_27x27,photo.image_36x36,photo.image_60x60,workspaces,workspaces.name" // [String] | This endpoint returns a compact 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.
@@ -91,7 +90,7 @@ const Asana = require('asana');
91
90
  let client = new Asana.ApiClient();
92
91
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
93
92
 
94
- let tasksApiInstance = new Asana.TasksApi();
93
+ let tasksApiInstance = new Asana.TasksApi(client);
95
94
  let opts = {
96
95
  "limit": 50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
97
96
  "project": "<YOUR_PROJECT_GID>", // String | The project to filter tasks on.
@@ -114,7 +113,7 @@ const Asana = require('asana');
114
113
  let client = new Asana.ApiClient();
115
114
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
116
115
 
117
- let tasksApiInstance = new Asana.TasksApi();
116
+ let tasksApiInstance = new Asana.TasksApi(client);
118
117
  let body = {
119
118
  "data": {
120
119
  "name": "New Task",
@@ -149,7 +148,7 @@ const Asana = require('asana');
149
148
  let client = new Asana.ApiClient();
150
149
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
151
150
 
152
- let tasksApiInstance = new Asana.TasksApi();
151
+ let tasksApiInstance = new Asana.TasksApi(client);
153
152
  let task_gid = "<YOUR_TASK_GID>";
154
153
  let body = {
155
154
  "data": {
@@ -173,7 +172,7 @@ const Asana = require('asana');
173
172
  let client = new Asana.ApiClient();
174
173
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
175
174
 
176
- let tasksApiInstance = new Asana.TasksApi();
175
+ let tasksApiInstance = new Asana.TasksApi(client);
177
176
  let task_gid = "<YOUR_TASK_GID>";
178
177
 
179
178
  // DELETE - Delete a task
@@ -423,7 +422,7 @@ const Asana = require('asana');
423
422
  let client = new Asana.ApiClient();
424
423
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
425
424
 
426
- let tasksApiInstance = new Asana.TasksApi();
425
+ let tasksApiInstance = new Asana.TasksApi(client);
427
426
  let opts = {
428
427
  "limit": 2,
429
428
  "project": "<YOUR_PROJECT_GID>"
@@ -464,7 +463,7 @@ const Asana = require('asana');
464
463
  let client = new Asana.ApiClient();
465
464
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
466
465
 
467
- let tasksApiInstance = new Asana.TasksApi();
466
+ let tasksApiInstance = new Asana.TasksApi(client);
468
467
  let opts = {
469
468
  "limit": 1,
470
469
  "project": "<YOUR_PROJECT_GID>",
@@ -612,7 +611,7 @@ const Asana = require('asana');
612
611
  let client = new Asana.ApiClient();
613
612
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
614
613
 
615
- let tasksApiInstance = new Asana.TasksApi();
614
+ let tasksApiInstance = new Asana.TasksApi(client);
616
615
  let opts = {
617
616
  "project": "<YOUR_PROJECT_GID>",
618
617
  "limit": 100,
@@ -723,7 +722,7 @@ const Asana = require('asana');
723
722
  let client = new Asana.ApiClient();
724
723
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
725
724
 
726
- let tasksApiInstance = new Asana.TasksApi();
725
+ let tasksApiInstance = new Asana.TasksApi(client);
727
726
  let opts = {
728
727
  'project': "<YOUR_PROJECT_GID>",
729
728
  "limit": 5,
@@ -791,7 +790,7 @@ client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
791
790
  // Turn off pagination
792
791
  client.RETURN_COLLECTION = false;
793
792
 
794
- let tasksApiInstance = new Asana.TasksApi();
793
+ let tasksApiInstance = new Asana.TasksApi(client);
795
794
  let opts = {
796
795
  'project': "<YOUR_PROJECT_GID>",
797
796
  'limit': 1
@@ -831,7 +830,7 @@ const Asana = require('asana');
831
830
  let client = new Asana.ApiClient();
832
831
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
833
832
 
834
- let eventsApiInstance = new Asana.EventsApi();
833
+ let eventsApiInstance = new Asana.EventsApi(client);
835
834
  let resource = "<YOUR_TASK_OR_PROJECT_GID>"; // String | A resource ID to subscribe to. The resource can be a task or project.
836
835
  let opts = {
837
836
  "sync": ""
@@ -902,7 +901,7 @@ const Asana = require('asana');
902
901
  let client = new Asana.ApiClient();
903
902
  client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';
904
903
 
905
- let tasksApiInstance = new Asana.TasksApi();
904
+ let tasksApiInstance = new Asana.TasksApi(client);
906
905
  let task_gid = "<YOUR_TASK_GID>";
907
906
  let opts = {};
908
907
 
@@ -1120,6 +1119,6 @@ client.callApi(
1120
1119
  ```
1121
1120
 
1122
1121
  [release-image]: https://img.shields.io/github/release/asana/node-asana.svg
1123
- [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.1.4
1122
+ [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.1.9
1124
1123
  [npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
1125
1124
  [npm-url]: https://www.npmjs.org/package/asana
@@ -29,7 +29,7 @@ Example usage (**NOTE**: be careful not to expose your access token):
29
29
  ```html
30
30
  <script>
31
31
  {{#hasAuthMethods}}
32
- let client = {{{moduleName}}}.ApiClient.instance;{{#authMethods}}{{#isBasic}}
32
+ let client = new {{{moduleName}}}.ApiClient();{{#authMethods}}{{#isBasic}}
33
33
  // Configure HTTP basic authorization: {{{name}}}
34
34
  let {{{name}}} = client.authentications['{{{name}}}'];
35
35
  {{{name}}}.username = 'YOUR USERNAME';
@@ -42,12 +42,11 @@ Example usage (**NOTE**: be careful not to expose your access token):
42
42
  // Configure OAuth2 access token for authorization: {{{name}}}
43
43
  let {{{name}}} = client.authentications['{{{name}}}'];
44
44
  {{{name}}}.accessToken = '<YOUR_ACCESS_TOKEN>';{{/isOAuth}}{{#isBearer}}
45
- let token = client.authentications['token'];
46
- token.accessToken = '<YOUR_ACCESS_TOKEN>';{{/isBearer}}
45
+ client.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';{{/isBearer}}
47
46
  {{/authMethods}}
48
47
  {{/hasAuthMethods}}
49
48
 
50
- let usersApiInstance = new {{{moduleName}}}.UsersApi();
49
+ let usersApiInstance = new {{{moduleName}}}.UsersApi(client);
51
50
  let user_gid = "me";
52
51
  let opts = {};
53
52
 
@@ -84,7 +83,7 @@ Please follow the [installation](#installation) instruction and execute the foll
84
83
  ```javascript
85
84
  {{>code_sample_client}}
86
85
 
87
- let usersApiInstance = new {{{moduleName}}}.UsersApi();
86
+ let usersApiInstance = new {{{moduleName}}}.UsersApi(client);
88
87
  let user_gid = "me"; // String | A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
89
88
  let opts = {
90
89
  "opt_fields": "email,name,photo,photo.image_1024x1024,photo.image_128x128,photo.image_21x21,photo.image_27x27,photo.image_36x36,photo.image_60x60,workspaces,workspaces.name" // [String] | This endpoint returns a compact 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.
@@ -103,7 +102,7 @@ usersApiInstance.getUser(user_gid, opts).then((result) => {
103
102
  ```javascript
104
103
  {{>code_sample_client}}
105
104
 
106
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
105
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
107
106
  let opts = {
108
107
  "limit": 50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
109
108
  "project": "<YOUR_PROJECT_GID>", // String | The project to filter tasks on.
@@ -123,7 +122,7 @@ tasksApiInstance.getTasks(opts).then((result) => {
123
122
  ```javascript
124
123
  {{>code_sample_client}}
125
124
 
126
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
125
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
127
126
  let body = {
128
127
  "data": {
129
128
  "name": "New Task",
@@ -155,7 +154,7 @@ tasksApiInstance.createTask(body, opts).then((result) => {
155
154
  ```javascript
156
155
  {{>code_sample_client}}
157
156
 
158
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
157
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
159
158
  let task_gid = "<YOUR_TASK_GID>";
160
159
  let body = {
161
160
  "data": {
@@ -176,7 +175,7 @@ tasksApiInstance.updateTask(body, task_gid, opts).then((result) => {
176
175
  ```javascript
177
176
  {{>code_sample_client}}
178
177
 
179
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
178
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
180
179
  let task_gid = "<YOUR_TASK_GID>";
181
180
 
182
181
  // DELETE - Delete a task
@@ -208,7 +207,7 @@ Our `opt_fields` feature allows you to request for properties of a resource that
208
207
  ```javascript
209
208
  {{>code_sample_client}}
210
209
 
211
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
210
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
212
211
  let opts = {
213
212
  "limit": 2,
214
213
  "project": "<YOUR_PROJECT_GID>"
@@ -246,7 +245,7 @@ tasksApiInstance.getTasks(opts).then((result) => {
246
245
  ```javascript
247
246
  {{>code_sample_client}}
248
247
 
249
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
248
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
250
249
  let opts = {
251
250
  "limit": 1,
252
251
  "project": "<YOUR_PROJECT_GID>",
@@ -391,7 +390,7 @@ EX: Pagination gather all resources
391
390
  ```javascript
392
391
  {{>code_sample_client}}
393
392
 
394
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
393
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
395
394
  let opts = {
396
395
  "project": "<YOUR_PROJECT_GID>",
397
396
  "limit": 100,
@@ -499,7 +498,7 @@ EX: Pagination do something per page
499
498
  ```javascript
500
499
  {{>code_sample_client}}
501
500
 
502
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
501
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
503
502
  let opts = {
504
503
  'project': "<YOUR_PROJECT_GID>",
505
504
  "limit": 5,
@@ -564,7 +563,7 @@ EX: Turning off pagination
564
563
  // Turn off pagination
565
564
  client.RETURN_COLLECTION = false;
566
565
 
567
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
566
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
568
567
  let opts = {
569
568
  'project': "<YOUR_PROJECT_GID>",
570
569
  'limit': 1
@@ -601,7 +600,7 @@ request to [getEvents](docs/EventsApi.md#getEvents).
601
600
  ```javascript
602
601
  {{>code_sample_client}}
603
602
 
604
- let eventsApiInstance = new {{{moduleName}}}.EventsApi();
603
+ let eventsApiInstance = new {{{moduleName}}}.EventsApi(client);
605
604
  let resource = "<YOUR_TASK_OR_PROJECT_GID>"; // String | A resource ID to subscribe to. The resource can be a task or project.
606
605
  let opts = {
607
606
  "sync": ""
@@ -669,7 +668,7 @@ Use the `<METHOD_NAME>WithHttpInfo` (EX: `getTaskWithHttpInfo`) method to make a
669
668
  ```javascript
670
669
  {{>code_sample_client}}
671
670
 
672
- let tasksApiInstance = new {{{moduleName}}}.TasksApi();
671
+ let tasksApiInstance = new {{{moduleName}}}.TasksApi(client);
673
672
  let task_gid = "<YOUR_TASK_GID>";
674
673
  let opts = {};
675
674
 
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.4
31
+ * @version 3.1.9
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.4",
408
+ 'version': "3.1.9",
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.4",
415
+ 'version': "3.1.9",
416
416
  'language': 'BrowserJS'
417
417
  }).toString();
418
418
  }
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * AccessRequests service.
31
31
  * @module api/AccessRequestsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var AccessRequestsApi = exports.AccessRequestsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Allocations service.
31
31
  * @module api/AllocationsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var AllocationsApi = exports.AllocationsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Attachments service.
31
31
  * @module api/AttachmentsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * AuditLogAPI service.
31
31
  * @module api/AuditLogAPIApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * BatchAPI service.
31
31
  * @module api/BatchAPIApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Budgets service.
31
31
  * @module api/BudgetsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var BudgetsApi = exports.BudgetsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * CustomFieldSettings service.
31
31
  * @module api/CustomFieldSettingsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -47,7 +47,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
47
47
 
48
48
  /**
49
49
  * Get a goal&#x27;s custom fields
50
- * Returns a list of all of the custom fields settings on a goal, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
50
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;goals:read&lt;/code&gt; Returns a list of all of the custom fields settings on a goal, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
51
51
  * @param {String} goal_gid Globally unique identifier for the goal.
52
52
  * @param {Object} opts Optional parameters
53
53
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
@@ -97,7 +97,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
97
97
 
98
98
  /**
99
99
  * Get a goal&#x27;s custom fields
100
- * Returns a list of all of the custom fields settings on a goal, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
100
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;goals:read&lt;/code&gt; Returns a list of all of the custom fields settings on a goal, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
101
101
  * @param {<&vendorExtensions.x-jsdoc-type>} goal_gid Globally unique identifier for the goal.
102
102
  * @param {Object} opts Optional parameters
103
103
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
@@ -119,7 +119,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
119
119
 
120
120
  /**
121
121
  * Get a portfolio&#x27;s custom fields
122
- * Returns a list of all of the custom fields settings on a portfolio, in compact form.
122
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;portfolios:read&lt;/code&gt; Returns a list of all of the custom fields settings on a portfolio, in compact form.
123
123
  * @param {String} portfolio_gid Globally unique identifier for the portfolio.
124
124
  * @param {Object} opts Optional parameters
125
125
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
@@ -169,7 +169,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
169
169
 
170
170
  /**
171
171
  * Get a portfolio&#x27;s custom fields
172
- * Returns a list of all of the custom fields settings on a portfolio, in compact form.
172
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;portfolios:read&lt;/code&gt; Returns a list of all of the custom fields settings on a portfolio, in compact form.
173
173
  * @param {<&vendorExtensions.x-jsdoc-type>} portfolio_gid Globally unique identifier for the portfolio.
174
174
  * @param {Object} opts Optional parameters
175
175
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
@@ -191,7 +191,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
191
191
 
192
192
  /**
193
193
  * Get a project&#x27;s custom fields
194
- * Returns a list of all of the custom fields settings on a project, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
194
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;projects:read&lt;/code&gt; Returns a list of all of the custom fields settings on a project, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
195
195
  * @param {String} project_gid Globally unique identifier for the project.
196
196
  * @param {Object} opts Optional parameters
197
197
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
@@ -241,7 +241,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
241
241
 
242
242
  /**
243
243
  * Get a project&#x27;s custom fields
244
- * Returns a list of all of the custom fields settings on a project, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
244
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;projects:read&lt;/code&gt; Returns a list of all of the custom fields settings on a project, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
245
245
  * @param {<&vendorExtensions.x-jsdoc-type>} project_gid Globally unique identifier for the project.
246
246
  * @param {Object} opts Optional parameters
247
247
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
@@ -263,7 +263,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
263
263
 
264
264
  /**
265
265
  * Get a team&#x27;s custom fields
266
- * Returns a list of all of the custom fields settings on a team, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
266
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;teams:read&lt;/code&gt; Returns a list of all of the custom fields settings on a team, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
267
267
  * @param {String} team_gid Globally unique identifier for the team.
268
268
  * @param {Object} opts Optional parameters
269
269
  * @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.
@@ -311,7 +311,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
311
311
 
312
312
  /**
313
313
  * Get a team&#x27;s custom fields
314
- * Returns a list of all of the custom fields settings on a team, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
314
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;teams:read&lt;/code&gt; Returns a list of all of the custom fields settings on a team, in compact form. Note that, as in all queries to collections which return compact representation, &#x60;opt_fields&#x60; can be used to include more data than is returned in the compact representation. See the [documentation for input/output options](https://developers.asana.com/docs/inputoutput-options) for more information.
315
315
  * @param {<&vendorExtensions.x-jsdoc-type>} team_gid Globally unique identifier for the team.
316
316
  * @param {Object} opts Optional parameters
317
317
  * @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.
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * CustomFields service.
31
31
  * @module api/CustomFieldsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var CustomFieldsApi = exports.CustomFieldsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * CustomTypes service.
31
31
  * @module api/CustomTypesApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var CustomTypesApi = exports.CustomTypesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Events service.
31
31
  * @module api/EventsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Exports service.
31
31
  * @module api/ExportsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var ExportsApi = exports.ExportsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * GoalRelationships service.
31
31
  * @module api/GoalRelationshipsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Goals service.
31
31
  * @module api/GoalsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Jobs service.
31
31
  * @module api/JobsApi
32
- * @version 3.1.4
32
+ * @version 3.1.9
33
33
  */
34
34
  var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -47,7 +47,7 @@ var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Get a job by id
50
- * Returns the full record for a job.
50
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;jobs:read&lt;/code&gt; Returns the full record for a job.
51
51
  * @param {String} job_gid Globally unique identifier for the job.
52
52
  * @param {Object} opts Optional parameters
53
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.
@@ -79,7 +79,7 @@ var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
79
79
 
80
80
  /**
81
81
  * Get a job by id
82
- * Returns the full record for a job.
82
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;jobs:read&lt;/code&gt; Returns the full record for a job.
83
83
  * @param {<&vendorExtensions.x-jsdoc-type>} job_gid Globally unique identifier for the job.
84
84
  * @param {Object} opts Optional parameters
85
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.