asana 3.0.0 → 3.0.1

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 (80) hide show
  1. package/.github/workflows/publish.yaml +1 -1
  2. package/.swagger-codegen/VERSION +1 -1
  3. package/README.md +15 -10
  4. package/codegen/swagger/src/main/java/com/asana/codegen/JavascriptClientCodegenGenerator.java +1 -1
  5. package/codegen/templates/ApiClient.mustache +18 -10
  6. package/codegen/templates/README.mustache +12 -7
  7. package/dist/ApiClient.js +30 -24
  8. package/dist/api/AttachmentsApi.js +16 -16
  9. package/dist/api/AuditLogAPIApi.js +16 -16
  10. package/dist/api/BatchAPIApi.js +16 -16
  11. package/dist/api/CustomFieldSettingsApi.js +16 -16
  12. package/dist/api/CustomFieldsApi.js +16 -16
  13. package/dist/api/EventsApi.js +16 -16
  14. package/dist/api/GoalRelationshipsApi.js +16 -16
  15. package/dist/api/GoalsApi.js +18 -16
  16. package/dist/api/JobsApi.js +16 -16
  17. package/dist/api/MembershipsApi.js +16 -16
  18. package/dist/api/OrganizationExportsApi.js +16 -16
  19. package/dist/api/PortfolioMembershipsApi.js +16 -16
  20. package/dist/api/PortfoliosApi.js +16 -16
  21. package/dist/api/ProjectBriefsApi.js +16 -16
  22. package/dist/api/ProjectMembershipsApi.js +16 -16
  23. package/dist/api/ProjectStatusesApi.js +16 -16
  24. package/dist/api/ProjectTemplatesApi.js +16 -16
  25. package/dist/api/ProjectsApi.js +27 -20
  26. package/dist/api/RulesApi.js +16 -16
  27. package/dist/api/SectionsApi.js +16 -16
  28. package/dist/api/StatusUpdatesApi.js +16 -16
  29. package/dist/api/StoriesApi.js +16 -16
  30. package/dist/api/TagsApi.js +16 -16
  31. package/dist/api/TaskTemplatesApi.js +16 -16
  32. package/dist/api/TasksApi.js +16 -16
  33. package/dist/api/TeamMembershipsApi.js +16 -16
  34. package/dist/api/TeamsApi.js +16 -16
  35. package/dist/api/TimePeriodsApi.js +16 -16
  36. package/dist/api/TimeTrackingEntriesApi.js +16 -16
  37. package/dist/api/TypeaheadApi.js +16 -16
  38. package/dist/api/UserTaskListsApi.js +16 -16
  39. package/dist/api/UsersApi.js +16 -16
  40. package/dist/api/WebhooksApi.js +16 -16
  41. package/dist/api/WorkspaceMembershipsApi.js +16 -16
  42. package/dist/api/WorkspacesApi.js +16 -16
  43. package/package.json +1 -1
  44. package/src/ApiClient.js +20 -12
  45. package/src/api/AttachmentsApi.js +2 -2
  46. package/src/api/AuditLogAPIApi.js +2 -2
  47. package/src/api/BatchAPIApi.js +2 -2
  48. package/src/api/CustomFieldSettingsApi.js +2 -2
  49. package/src/api/CustomFieldsApi.js +2 -2
  50. package/src/api/EventsApi.js +2 -2
  51. package/src/api/GoalRelationshipsApi.js +2 -2
  52. package/src/api/GoalsApi.js +4 -2
  53. package/src/api/JobsApi.js +2 -2
  54. package/src/api/MembershipsApi.js +2 -2
  55. package/src/api/OrganizationExportsApi.js +2 -2
  56. package/src/api/PortfolioMembershipsApi.js +2 -2
  57. package/src/api/PortfoliosApi.js +2 -2
  58. package/src/api/ProjectBriefsApi.js +2 -2
  59. package/src/api/ProjectMembershipsApi.js +2 -2
  60. package/src/api/ProjectStatusesApi.js +2 -2
  61. package/src/api/ProjectTemplatesApi.js +2 -2
  62. package/src/api/ProjectsApi.js +13 -7
  63. package/src/api/RulesApi.js +2 -2
  64. package/src/api/SectionsApi.js +2 -2
  65. package/src/api/StatusUpdatesApi.js +2 -2
  66. package/src/api/StoriesApi.js +2 -2
  67. package/src/api/TagsApi.js +2 -2
  68. package/src/api/TaskTemplatesApi.js +2 -2
  69. package/src/api/TasksApi.js +2 -2
  70. package/src/api/TeamMembershipsApi.js +2 -2
  71. package/src/api/TeamsApi.js +2 -2
  72. package/src/api/TimePeriodsApi.js +2 -2
  73. package/src/api/TimeTrackingEntriesApi.js +2 -2
  74. package/src/api/TypeaheadApi.js +2 -2
  75. package/src/api/UserTaskListsApi.js +2 -2
  76. package/src/api/UsersApi.js +2 -2
  77. package/src/api/WebhooksApi.js +2 -2
  78. package/src/api/WorkspaceMembershipsApi.js +2 -2
  79. package/src/api/WorkspacesApi.js +2 -2
  80. package/src/index.js +2 -2
@@ -18,7 +18,7 @@ jobs:
18
18
  java-version: "17"
19
19
  - name: Setup environment variables
20
20
  run: |
21
- echo "generator_version=3.0.46" >> "$GITHUB_ENV"
21
+ echo "generator_version=3.0.52" >> "$GITHUB_ENV"
22
22
  echo "generator_name=swagger-codegen-cli.jar" >> "$GITHUB_ENV"
23
23
  echo "jar_asana=codegen/swagger/target/AsanaClientCodegen-swagger-codegen-1.0.0.jar" >> "$GITHUB_ENV"
24
24
  echo "actual_lang=com.asana.codegen.JavascriptClientCodegenGenerator" >> "$GITHUB_ENV"
@@ -1 +1 @@
1
- 3.0.46
1
+ 3.0.52
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  > For now, if you’re in search of a version that has stood the test of time and is proven to be stable, we recommend using version 1.0.2. You can easily install it using: `npm install asana@1.0.2` and following v1 samples and documentation.
13
13
 
14
14
  - API version: 1.0
15
- - Package version: 3.0.0
15
+ - Package version: 3.0.1
16
16
 
17
17
  ## Installation
18
18
 
@@ -29,7 +29,7 @@ npm install asana --save
29
29
  Include the latest release directly from GitHub:
30
30
 
31
31
  ```html
32
- <script src="https://github.com/Asana/node-asana/releases/download/v3.0.0/asana-min.js"></script>
32
+ <script src="https://github.com/Asana/node-asana/releases/download/v3.0.1/asana-min.js"></script>
33
33
  ```
34
34
 
35
35
  Example usage (**NOTE**: be careful not to expose your access token):
@@ -721,29 +721,34 @@ let opts = {
721
721
  };
722
722
  const timeouts = 5000
723
723
 
724
+ // Used to fetch for initial sync token
724
725
  const setSyncToken = async () => {
725
726
  await eventsApiInstance.getEvents(resource, opts).then((result) => {
726
- console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));
727
+ console.log(JSON.stringify(result.data, null, 2));
727
728
  }, (error) => {
728
729
  let syncToken = error.response.body.sync;
729
730
  opts['sync'] = syncToken;
730
- console.log(syncToken);
731
731
  });
732
732
  }
733
733
 
734
734
  const getEvents = async () => {
735
- console.log("Setting Sync Token");
735
+ console.log("Setting sync token");
736
736
  await setSyncToken();
737
- // Fetch for new events every 5 seconds -> NOTE: the sync token has expired or reached 100 events you will need to implement logic to get the next set of events
738
- console.log(`Fetching events every ${timeouts/1000} second(s) since sync ${opts['sync']}:`);
737
+ // Fetch for new events every 5 seconds
738
+ console.log(`Fetching events every ${timeouts/1000} second(s)`);
739
739
  while(true) {
740
740
  await eventsApiInstance.getEvents(resource, opts).then((result) => {
741
- console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));
741
+ // Print response
742
+ console.log(`Fetching events since sync: ${opts['sync']}`);
743
+ console.log(JSON.stringify(result.data, null, 2));
744
+
745
+ // Update the sync token with the new sync token provided in the response
746
+ opts['sync'] = result._response.sync;
742
747
  }, (error) => {
743
748
  if (error.status === 412) {
744
749
  let syncToken = error.response.body.sync;
745
750
  opts['sync'] = syncToken;
746
- console.log(syncToken);
751
+ console.log(`412 error new sync token: ${syncToken}`);
747
752
  } else{
748
753
  console.error(error.response.text);
749
754
  }
@@ -1006,6 +1011,6 @@ client.callApi(
1006
1011
  ```
1007
1012
 
1008
1013
  [release-image]: https://img.shields.io/github/release/asana/node-asana.svg
1009
- [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.0
1014
+ [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.1
1010
1015
  [npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
1011
1016
  [npm-url]: https://www.npmjs.org/package/asana
@@ -96,7 +96,7 @@ public class JavascriptClientCodegenGenerator extends JavaScriptClientCodegen {
96
96
  // Update example for requests that require body
97
97
  if (!languageSpecificPrimitives.contains(type)) {
98
98
  // type is a model class, e.g. User
99
- p.example = "{\"data\": {\"param1\": \"value1\", \"param2\": \"value2\",}}";
99
+ p.example = "{\"data\": {\"<PARAM_1>\": \"<VALUE_1>\", \"<PARAM_2>\": \"<VALUE_2>\",}}";
100
100
  p.dataType = "Object";
101
101
  }
102
102
  }
@@ -1,6 +1,5 @@
1
1
  {{>licenseInfo}}
2
2
  import superagent from "superagent";
3
- import querystring from "querystring";
4
3
 
5
4
  {{#emitJSDoc}}/**
6
5
  * @module {{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}ApiClient
@@ -420,14 +419,23 @@ export class ApiClient {
420
419
  request.query(this.normalizeParams(queryParams));
421
420
 
422
421
  // set header parameters
423
- headerParams['X-Asana-Client-Lib'] = querystring.stringify(
424
- {
425
- 'version': "{{projectVersion}}",
426
- 'language': 'NodeJS',
427
- 'language_version': process.version,
428
- 'os': process.platform
429
- }
430
- );
422
+ if (typeof(navigator) === 'undefined' || typeof(window) === 'undefined') {
423
+ headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
424
+ {
425
+ 'version': "{{projectVersion}}",
426
+ 'language': 'NodeJS',
427
+ 'language_version': process.version,
428
+ 'os': process.platform
429
+ }
430
+ ).toString();
431
+ } else {
432
+ headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
433
+ {
434
+ 'version': "{{projectVersion}}",
435
+ 'language': 'BrowserJS'
436
+ }
437
+ ).toString();
438
+ }
431
439
  request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
432
440
 
433
441
  // set requestAgent if it is set by user
@@ -449,7 +457,7 @@ export class ApiClient {
449
457
  }
450
458
 
451
459
  if (contentType === 'application/x-www-form-urlencoded') {
452
- request.send(querystring.stringify(this.normalizeParams(formParams)));
460
+ request.send(new URLSearchParams(this.normalizeParams(formParams)).toString());
453
461
  } else if (contentType == 'multipart/form-data') {
454
462
  var _formParams = this.normalizeParams(formParams);
455
463
  for (var key in _formParams) {
@@ -516,29 +516,34 @@ let opts = {
516
516
  };
517
517
  const timeouts = 5000
518
518
 
519
+ // Used to fetch for initial sync token
519
520
  const setSyncToken = async () => {
520
521
  await eventsApiInstance.getEvents(resource, opts).then((result) => {
521
- console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));
522
+ console.log(JSON.stringify(result.data, null, 2));
522
523
  }, (error) => {
523
524
  let syncToken = error.response.body.sync;
524
525
  opts['sync'] = syncToken;
525
- console.log(syncToken);
526
526
  });
527
527
  }
528
528
 
529
529
  const getEvents = async () => {
530
- console.log("Setting Sync Token");
530
+ console.log("Setting sync token");
531
531
  await setSyncToken();
532
- // Fetch for new events every 5 seconds -> NOTE: the sync token has expired or reached 100 events you will need to implement logic to get the next set of events
533
- console.log(`Fetching events every ${timeouts/1000} second(s) since sync ${opts['sync']}:`);
532
+ // Fetch for new events every 5 seconds
533
+ console.log(`Fetching events every ${timeouts/1000} second(s)`);
534
534
  while(true) {
535
535
  await eventsApiInstance.getEvents(resource, opts).then((result) => {
536
- console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));
536
+ // Print response
537
+ console.log(`Fetching events since sync: ${opts['sync']}`);
538
+ console.log(JSON.stringify(result.data, null, 2));
539
+
540
+ // Update the sync token with the new sync token provided in the response
541
+ opts['sync'] = result._response.sync;
537
542
  }, (error) => {
538
543
  if (error.status === 412) {
539
544
  let syncToken = error.response.body.sync;
540
545
  opts['sync'] = syncToken;
541
- console.log(syncToken);
546
+ console.log(`412 error new sync token: ${syncToken}`);
542
547
  } else{
543
548
  console.error(error.response.text);
544
549
  }
package/dist/ApiClient.js CHANGED
@@ -5,31 +5,30 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ApiClient = void 0;
7
7
  var _superagent = _interopRequireDefault(require("superagent"));
8
- var _querystring = _interopRequireDefault(require("querystring"));
9
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
9
  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); }
11
10
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
11
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
13
12
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
17
- * Asana
18
- * 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).
19
- *
20
- * OpenAPI spec version: 1.0
21
- *
22
- * NOTE: This class is auto generated by the swagger code generator program.
23
- * https://github.com/swagger-api/swagger-codegen.git
24
- *
25
- * Swagger Codegen version: 3.0.46
26
- *
27
- * Do not edit the class manually.
28
- *
29
- */
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
+ 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); } /*
16
+ * Asana
17
+ * 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).
18
+ *
19
+ * OpenAPI spec version: 1.0
20
+ *
21
+ * NOTE: This class is auto generated by the swagger code generator program.
22
+ * https://github.com/swagger-api/swagger-codegen.git
23
+ *
24
+ * Swagger Codegen version: 3.0.52
25
+ *
26
+ * Do not edit the class manually.
27
+ *
28
+ */
30
29
  /**
31
30
  * @module ApiClient
32
- * @version 3.0.0
31
+ * @version 3.0.1
33
32
  */
34
33
  /**
35
34
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -399,12 +398,19 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
399
398
  request.query(this.normalizeParams(queryParams));
400
399
 
401
400
  // set header parameters
402
- headerParams['X-Asana-Client-Lib'] = _querystring["default"].stringify({
403
- 'version': "3.0.0",
404
- 'language': 'NodeJS',
405
- 'language_version': process.version,
406
- 'os': process.platform
407
- });
401
+ if (typeof navigator === 'undefined' || typeof window === 'undefined') {
402
+ headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
403
+ 'version': "3.0.1",
404
+ 'language': 'NodeJS',
405
+ 'language_version': process.version,
406
+ 'os': process.platform
407
+ }).toString();
408
+ } else {
409
+ headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
410
+ 'version': "3.0.1",
411
+ 'language': 'BrowserJS'
412
+ }).toString();
413
+ }
408
414
  request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
409
415
 
410
416
  // set requestAgent if it is set by user
@@ -424,7 +430,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
424
430
  request.type('application/json');
425
431
  }
426
432
  if (contentType === 'application/x-www-form-urlencoded') {
427
- request.send(_querystring["default"].stringify(this.normalizeParams(formParams)));
433
+ request.send(new URLSearchParams(this.normalizeParams(formParams)).toString());
428
434
  } else if (contentType == 'multipart/form-data') {
429
435
  var _formParams = this.normalizeParams(formParams);
430
436
  for (var key in _formParams) {
@@ -9,27 +9,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
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.46
23
- *
24
- * Do not edit the class manually.
25
- *
26
- */
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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.52
23
+ *
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
27
  var Collection = require('../utils/collection');
28
28
 
29
29
  /**
30
30
  * Attachments service.
31
31
  * @module api/AttachmentsApi
32
- * @version 3.0.0
32
+ * @version 3.0.1
33
33
  */
34
34
  var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -9,27 +9,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
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.46
23
- *
24
- * Do not edit the class manually.
25
- *
26
- */
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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.52
23
+ *
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
27
  var Collection = require('../utils/collection');
28
28
 
29
29
  /**
30
30
  * AuditLogAPI service.
31
31
  * @module api/AuditLogAPIApi
32
- * @version 3.0.0
32
+ * @version 3.0.1
33
33
  */
34
34
  var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -9,27 +9,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
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.46
23
- *
24
- * Do not edit the class manually.
25
- *
26
- */
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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.52
23
+ *
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
27
  var Collection = require('../utils/collection');
28
28
 
29
29
  /**
30
30
  * BatchAPI service.
31
31
  * @module api/BatchAPIApi
32
- * @version 3.0.0
32
+ * @version 3.0.1
33
33
  */
34
34
  var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -9,27 +9,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
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.46
23
- *
24
- * Do not edit the class manually.
25
- *
26
- */
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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.52
23
+ *
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
27
  var Collection = require('../utils/collection');
28
28
 
29
29
  /**
30
30
  * CustomFieldSettings service.
31
31
  * @module api/CustomFieldSettingsApi
32
- * @version 3.0.0
32
+ * @version 3.0.1
33
33
  */
34
34
  var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -9,27 +9,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
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.46
23
- *
24
- * Do not edit the class manually.
25
- *
26
- */
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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.52
23
+ *
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
27
  var Collection = require('../utils/collection');
28
28
 
29
29
  /**
30
30
  * CustomFields service.
31
31
  * @module api/CustomFieldsApi
32
- * @version 3.0.0
32
+ * @version 3.0.1
33
33
  */
34
34
  var CustomFieldsApi = exports.CustomFieldsApi = /*#__PURE__*/function () {
35
35
  /**