asana 3.1.11 → 3.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +10 -3
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AccessRequestsApi.d.ts +1 -1
  4. package/dist/api/AccessRequestsApi.js +1 -1
  5. package/dist/api/AgentsApi.d.ts +78 -0
  6. package/dist/api/AgentsApi.js +168 -0
  7. package/dist/api/AllocationsApi.d.ts +1 -1
  8. package/dist/api/AllocationsApi.js +1 -1
  9. package/dist/api/AttachmentsApi.d.ts +1 -1
  10. package/dist/api/AttachmentsApi.js +1 -1
  11. package/dist/api/AuditLogAPIApi.d.ts +1 -1
  12. package/dist/api/AuditLogAPIApi.js +1 -1
  13. package/dist/api/BatchAPIApi.d.ts +1 -1
  14. package/dist/api/BatchAPIApi.js +1 -1
  15. package/dist/api/BudgetsApi.d.ts +1 -1
  16. package/dist/api/BudgetsApi.js +1 -1
  17. package/dist/api/CustomFieldSettingsApi.d.ts +1 -1
  18. package/dist/api/CustomFieldSettingsApi.js +1 -1
  19. package/dist/api/CustomFieldsApi.d.ts +1 -1
  20. package/dist/api/CustomFieldsApi.js +1 -1
  21. package/dist/api/CustomTypesApi.d.ts +1 -1
  22. package/dist/api/CustomTypesApi.js +1 -1
  23. package/dist/api/EventsApi.d.ts +1 -1
  24. package/dist/api/EventsApi.js +1 -1
  25. package/dist/api/ExportsApi.d.ts +1 -1
  26. package/dist/api/ExportsApi.js +1 -1
  27. package/dist/api/GoalRelationshipsApi.d.ts +1 -1
  28. package/dist/api/GoalRelationshipsApi.js +1 -1
  29. package/dist/api/GoalsApi.d.ts +1 -1
  30. package/dist/api/GoalsApi.js +1 -1
  31. package/dist/api/JobsApi.d.ts +1 -1
  32. package/dist/api/JobsApi.js +1 -1
  33. package/dist/api/MembershipsApi.d.ts +5 -5
  34. package/dist/api/MembershipsApi.js +5 -5
  35. package/dist/api/OooEntriesApi.d.ts +142 -0
  36. package/dist/api/OooEntriesApi.js +319 -0
  37. package/dist/api/OrganizationExportsApi.d.ts +1 -1
  38. package/dist/api/OrganizationExportsApi.js +1 -1
  39. package/dist/api/PortfolioMembershipsApi.d.ts +1 -1
  40. package/dist/api/PortfolioMembershipsApi.js +1 -1
  41. package/dist/api/PortfoliosApi.d.ts +3 -3
  42. package/dist/api/PortfoliosApi.js +3 -3
  43. package/dist/api/ProjectBriefsApi.d.ts +1 -1
  44. package/dist/api/ProjectBriefsApi.js +1 -1
  45. package/dist/api/ProjectMembershipsApi.d.ts +1 -1
  46. package/dist/api/ProjectMembershipsApi.js +1 -1
  47. package/dist/api/ProjectPortfolioSettingsApi.d.ts +1 -1
  48. package/dist/api/ProjectPortfolioSettingsApi.js +1 -1
  49. package/dist/api/ProjectStatusesApi.d.ts +1 -1
  50. package/dist/api/ProjectStatusesApi.js +1 -1
  51. package/dist/api/ProjectTemplatesApi.d.ts +1 -1
  52. package/dist/api/ProjectTemplatesApi.js +1 -1
  53. package/dist/api/ProjectsApi.d.ts +5 -5
  54. package/dist/api/ProjectsApi.js +5 -5
  55. package/dist/api/RatesApi.d.ts +1 -1
  56. package/dist/api/RatesApi.js +1 -1
  57. package/dist/api/ReactionsApi.d.ts +1 -1
  58. package/dist/api/ReactionsApi.js +1 -1
  59. package/dist/api/RolesApi.d.ts +1 -1
  60. package/dist/api/RolesApi.js +1 -1
  61. package/dist/api/RulesApi.d.ts +1 -1
  62. package/dist/api/RulesApi.js +1 -1
  63. package/dist/api/SectionsApi.d.ts +1 -1
  64. package/dist/api/SectionsApi.js +1 -1
  65. package/dist/api/StatusUpdatesApi.d.ts +1 -1
  66. package/dist/api/StatusUpdatesApi.js +1 -1
  67. package/dist/api/StoriesApi.d.ts +1 -1
  68. package/dist/api/StoriesApi.js +1 -1
  69. package/dist/api/TagsApi.d.ts +1 -1
  70. package/dist/api/TagsApi.js +1 -1
  71. package/dist/api/TaskTemplatesApi.d.ts +1 -1
  72. package/dist/api/TaskTemplatesApi.js +1 -1
  73. package/dist/api/TasksApi.d.ts +5 -5
  74. package/dist/api/TasksApi.js +5 -5
  75. package/dist/api/TeamMembershipsApi.d.ts +1 -1
  76. package/dist/api/TeamMembershipsApi.js +1 -1
  77. package/dist/api/TeamsApi.d.ts +1 -1
  78. package/dist/api/TeamsApi.js +1 -1
  79. package/dist/api/TimePeriodsApi.d.ts +1 -1
  80. package/dist/api/TimePeriodsApi.js +1 -1
  81. package/dist/api/TimeTrackingCategoriesApi.d.ts +1 -1
  82. package/dist/api/TimeTrackingCategoriesApi.js +1 -1
  83. package/dist/api/TimeTrackingEntriesApi.d.ts +1 -1
  84. package/dist/api/TimeTrackingEntriesApi.js +1 -1
  85. package/dist/api/TimesheetApprovalStatusesApi.d.ts +1 -1
  86. package/dist/api/TimesheetApprovalStatusesApi.js +1 -1
  87. package/dist/api/TypeaheadApi.d.ts +5 -5
  88. package/dist/api/TypeaheadApi.js +5 -5
  89. package/dist/api/UserTaskListsApi.d.ts +1 -1
  90. package/dist/api/UserTaskListsApi.js +1 -1
  91. package/dist/api/UsersApi.d.ts +1 -1
  92. package/dist/api/UsersApi.js +1 -1
  93. package/dist/api/WebhooksApi.d.ts +1 -1
  94. package/dist/api/WebhooksApi.js +1 -1
  95. package/dist/api/WorkspaceMembershipsApi.d.ts +1 -1
  96. package/dist/api/WorkspaceMembershipsApi.js +1 -1
  97. package/dist/api/WorkspacesApi.d.ts +1 -1
  98. package/dist/api/WorkspacesApi.js +1 -1
  99. package/dist/index.d.ts +4 -0
  100. package/dist/index.js +14 -0
  101. package/package.json +1 -1
  102. package/src/ApiClient.js +3 -3
  103. package/src/api/AccessRequestsApi.d.ts +1 -1
  104. package/src/api/AccessRequestsApi.js +1 -1
  105. package/src/api/AgentsApi.d.ts +78 -0
  106. package/src/api/AgentsApi.js +188 -0
  107. package/src/api/AllocationsApi.d.ts +1 -1
  108. package/src/api/AllocationsApi.js +1 -1
  109. package/src/api/AttachmentsApi.d.ts +1 -1
  110. package/src/api/AttachmentsApi.js +1 -1
  111. package/src/api/AuditLogAPIApi.d.ts +1 -1
  112. package/src/api/AuditLogAPIApi.js +1 -1
  113. package/src/api/BatchAPIApi.d.ts +1 -1
  114. package/src/api/BatchAPIApi.js +1 -1
  115. package/src/api/BudgetsApi.d.ts +1 -1
  116. package/src/api/BudgetsApi.js +1 -1
  117. package/src/api/CustomFieldSettingsApi.d.ts +1 -1
  118. package/src/api/CustomFieldSettingsApi.js +1 -1
  119. package/src/api/CustomFieldsApi.d.ts +1 -1
  120. package/src/api/CustomFieldsApi.js +1 -1
  121. package/src/api/CustomTypesApi.d.ts +1 -1
  122. package/src/api/CustomTypesApi.js +1 -1
  123. package/src/api/EventsApi.d.ts +1 -1
  124. package/src/api/EventsApi.js +1 -1
  125. package/src/api/ExportsApi.d.ts +1 -1
  126. package/src/api/ExportsApi.js +1 -1
  127. package/src/api/GoalRelationshipsApi.d.ts +1 -1
  128. package/src/api/GoalRelationshipsApi.js +1 -1
  129. package/src/api/GoalsApi.d.ts +1 -1
  130. package/src/api/GoalsApi.js +1 -1
  131. package/src/api/JobsApi.d.ts +1 -1
  132. package/src/api/JobsApi.js +1 -1
  133. package/src/api/MembershipsApi.d.ts +5 -5
  134. package/src/api/MembershipsApi.js +5 -5
  135. package/src/api/OooEntriesApi.d.ts +142 -0
  136. package/src/api/OooEntriesApi.js +377 -0
  137. package/src/api/OrganizationExportsApi.d.ts +1 -1
  138. package/src/api/OrganizationExportsApi.js +1 -1
  139. package/src/api/PortfolioMembershipsApi.d.ts +1 -1
  140. package/src/api/PortfolioMembershipsApi.js +1 -1
  141. package/src/api/PortfoliosApi.d.ts +3 -3
  142. package/src/api/PortfoliosApi.js +3 -3
  143. package/src/api/ProjectBriefsApi.d.ts +1 -1
  144. package/src/api/ProjectBriefsApi.js +1 -1
  145. package/src/api/ProjectMembershipsApi.d.ts +1 -1
  146. package/src/api/ProjectMembershipsApi.js +1 -1
  147. package/src/api/ProjectPortfolioSettingsApi.d.ts +1 -1
  148. package/src/api/ProjectPortfolioSettingsApi.js +1 -1
  149. package/src/api/ProjectStatusesApi.d.ts +1 -1
  150. package/src/api/ProjectStatusesApi.js +1 -1
  151. package/src/api/ProjectTemplatesApi.d.ts +1 -1
  152. package/src/api/ProjectTemplatesApi.js +1 -1
  153. package/src/api/ProjectsApi.d.ts +5 -5
  154. package/src/api/ProjectsApi.js +5 -5
  155. package/src/api/RatesApi.d.ts +1 -1
  156. package/src/api/RatesApi.js +1 -1
  157. package/src/api/ReactionsApi.d.ts +1 -1
  158. package/src/api/ReactionsApi.js +1 -1
  159. package/src/api/RolesApi.d.ts +1 -1
  160. package/src/api/RolesApi.js +1 -1
  161. package/src/api/RulesApi.d.ts +1 -1
  162. package/src/api/RulesApi.js +1 -1
  163. package/src/api/SectionsApi.d.ts +1 -1
  164. package/src/api/SectionsApi.js +1 -1
  165. package/src/api/StatusUpdatesApi.d.ts +1 -1
  166. package/src/api/StatusUpdatesApi.js +1 -1
  167. package/src/api/StoriesApi.d.ts +1 -1
  168. package/src/api/StoriesApi.js +1 -1
  169. package/src/api/TagsApi.d.ts +1 -1
  170. package/src/api/TagsApi.js +1 -1
  171. package/src/api/TaskTemplatesApi.d.ts +1 -1
  172. package/src/api/TaskTemplatesApi.js +1 -1
  173. package/src/api/TasksApi.d.ts +5 -5
  174. package/src/api/TasksApi.js +5 -5
  175. package/src/api/TeamMembershipsApi.d.ts +1 -1
  176. package/src/api/TeamMembershipsApi.js +1 -1
  177. package/src/api/TeamsApi.d.ts +1 -1
  178. package/src/api/TeamsApi.js +1 -1
  179. package/src/api/TimePeriodsApi.d.ts +1 -1
  180. package/src/api/TimePeriodsApi.js +1 -1
  181. package/src/api/TimeTrackingCategoriesApi.d.ts +1 -1
  182. package/src/api/TimeTrackingCategoriesApi.js +1 -1
  183. package/src/api/TimeTrackingEntriesApi.d.ts +1 -1
  184. package/src/api/TimeTrackingEntriesApi.js +1 -1
  185. package/src/api/TimesheetApprovalStatusesApi.d.ts +1 -1
  186. package/src/api/TimesheetApprovalStatusesApi.js +1 -1
  187. package/src/api/TypeaheadApi.d.ts +5 -5
  188. package/src/api/TypeaheadApi.js +5 -5
  189. package/src/api/UserTaskListsApi.d.ts +1 -1
  190. package/src/api/UserTaskListsApi.js +1 -1
  191. package/src/api/UsersApi.d.ts +1 -1
  192. package/src/api/UsersApi.js +1 -1
  193. package/src/api/WebhooksApi.d.ts +1 -1
  194. package/src/api/WebhooksApi.js +1 -1
  195. package/src/api/WorkspaceMembershipsApi.d.ts +1 -1
  196. package/src/api/WorkspaceMembershipsApi.js +1 -1
  197. package/src/api/WorkspacesApi.d.ts +1 -1
  198. package/src/api/WorkspacesApi.js +1 -1
  199. package/src/index.d.ts +4 -0
  200. package/src/index.js +15 -1
@@ -18,7 +18,7 @@ import Collection = require("../utils/collection");
18
18
  /**
19
19
  * Memberships service.
20
20
  * @module api/MembershipsApi
21
- * @version 3.1.11
21
+ * @version 3.1.12
22
22
  */
23
23
  export class MembershipsApi {
24
24
  /**
@@ -85,8 +85,8 @@ export class MembershipsApi {
85
85
  * Get multiple memberships
86
86
  * Returns compact `goal_membership`, `project_membership`, `portfolio_membership`, `custom_type_membership`, or `custom_field_membership` records. The possible types for `parent` in this request are `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Alternatively, when `parent` is absent, you can use the `member` and `resource_subtype` parameters together to fetch all memberships of a specific type for a given member. For example, passing `member` as a team GID and `resource_subtype` as `project_membership` will return all project memberships for that team.
87
87
  * @param opts Optional parameters
88
- * @param opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member`.
89
- * @param opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, returns all memberships of the specified subtype for this member.
88
+ * @param opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member` of type `team`.
89
+ * @param opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, `member` must be of type `team`. For user-type memberships `parent` parameter is required to disambiguate the workspace from which memberships should be retrieved.
90
90
  * @param opts.resource_subtype The type of membership to return. Required when `parent` is absent. Currently supported value is `project_membership` (when `member` is a team GID, returns all project memberships for that team).
91
91
  * @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
92
92
  * @param opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -99,8 +99,8 @@ export class MembershipsApi {
99
99
  * Get multiple memberships
100
100
  * Returns compact `goal_membership`, `project_membership`, `portfolio_membership`, `custom_type_membership`, or `custom_field_membership` records. The possible types for `parent` in this request are `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Alternatively, when `parent` is absent, you can use the `member` and `resource_subtype` parameters together to fetch all memberships of a specific type for a given member. For example, passing `member` as a team GID and `resource_subtype` as `project_membership` will return all project memberships for that team.
101
101
  * @param opts Optional parameters
102
- * @param opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member`.
103
- * @param opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, returns all memberships of the specified subtype for this member.
102
+ * @param opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member` of type `team`.
103
+ * @param opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, `member` must be of type `team`. For user-type memberships `parent` parameter is required to disambiguate the workspace from which memberships should be retrieved.
104
104
  * @param opts.resource_subtype The type of membership to return. Required when `parent` is absent. Currently supported value is `project_membership` (when `member` is a team GID, returns all project memberships for that team).
105
105
  * @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
106
106
  * @param opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Memberships service.
31
31
  * @module api/MembershipsApi
32
- * @version 3.1.11
32
+ * @version 3.1.12
33
33
  */
34
34
  var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -171,8 +171,8 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
171
171
  * Get multiple memberships
172
172
  * Returns compact `goal_membership`, `project_membership`, `portfolio_membership`, `custom_type_membership`, or `custom_field_membership` records. The possible types for `parent` in this request are `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Alternatively, when `parent` is absent, you can use the `member` and `resource_subtype` parameters together to fetch all memberships of a specific type for a given member. For example, passing `member` as a team GID and `resource_subtype` as `project_membership` will return all project memberships for that team.
173
173
  * @param {Object} opts Optional parameters
174
- * @param {String} opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member`.
175
- * @param {String} opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, returns all memberships of the specified subtype for this member.
174
+ * @param {String} opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member` of type `team`.
175
+ * @param {String} opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, `member` must be of type `team`. For user-type memberships `parent` parameter is required to disambiguate the workspace from which memberships should be retrieved.
176
176
  * @param {module:model/String} opts.resource_subtype The type of membership to return. Required when `parent` is absent. Currently supported value is `project_membership` (when `member` is a team GID, returns all project memberships for that team).
177
177
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
178
178
  * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -217,8 +217,8 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
217
217
  * Get multiple memberships
218
218
  * Returns compact `goal_membership`, `project_membership`, `portfolio_membership`, `custom_type_membership`, or `custom_field_membership` records. The possible types for `parent` in this request are `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Alternatively, when `parent` is absent, you can use the `member` and `resource_subtype` parameters together to fetch all memberships of a specific type for a given member. For example, passing `member` as a team GID and `resource_subtype` as `project_membership` will return all project memberships for that team.
219
219
  * @param {Object} opts Optional parameters
220
- * @param {String} opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member`.
221
- * @param {String} opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, returns all memberships of the specified subtype for this member.
220
+ * @param {String} opts.parent Globally unique identifier for `goal`, `project`, `portfolio`, `custom_type`, or `custom_field`. This parameter is optional when `resource_subtype` is provided along with `member` of type `team`.
221
+ * @param {String} opts.member Globally unique identifier for `team` or `user`. When used with `resource_subtype` and without `parent`, `member` must be of type `team`. For user-type memberships `parent` parameter is required to disambiguate the workspace from which memberships should be retrieved.
222
222
  * @param {module:model/String} opts.resource_subtype The type of membership to return. Required when `parent` is absent. Currently supported value is `project_membership` (when `member` is a team GID, returns all project memberships for that team).
223
223
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
224
224
  * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -0,0 +1,142 @@
1
+ /*
2
+ * Asana
3
+ * This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ * NOTE: This class is auto generated by the swagger code generator program.
8
+ * https://github.com/swagger-api/swagger-codegen.git
9
+ *
10
+ * Swagger Codegen version: 3.0.54
11
+ *
12
+ * Do not edit the class manually.
13
+ *
14
+ */
15
+ import { ApiClient } from "../ApiClient";
16
+ import Collection = require("../utils/collection");
17
+
18
+ /**
19
+ * OooEntries service.
20
+ * @module api/OooEntriesApi
21
+ * @version 3.1.12
22
+ */
23
+ export class OooEntriesApi {
24
+ /**
25
+ * Constructs a new OooEntriesApi.
26
+ * @alias module:api/OooEntriesApi
27
+ * @class
28
+ * @param apiClient Optional API client implementation to use, default to ApiClient.instance if unspecified.
29
+ */
30
+ constructor(apiClient?: ApiClient);
31
+
32
+ apiClient: ApiClient;
33
+
34
+ /**
35
+ * Create an OOO entry
36
+ * <b>Required scope: </b><code>ooo_entries:write</code> Creates a new OOO entry. Returns the full record of the newly created OOO entry.
37
+ * @param body The OOO entry to create.
38
+ * @param opts Optional parameters
39
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
40
+ * @returns A Promise, with an object containing data and HTTP response
41
+ */
42
+ createOooEntryWithHttpInfo(body: any, opts?: { 'opt_fields'?: any; }): Promise<{ response: any; data: any }>;
43
+
44
+ /**
45
+ * Create an OOO entry
46
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:write&lt;/code&gt; Creates a new OOO entry. Returns the full record of the newly created OOO entry.
47
+ * @param body The OOO entry to create.
48
+ * @param opts Optional parameters
49
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
50
+ * @returns A Promise
51
+ */
52
+ createOooEntry(body: any, opts?: { 'opt_fields'?: any; }): Promise<any>;
53
+
54
+ /**
55
+ * Delete an OOO entry
56
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:delete&lt;/code&gt; A specific, existing OOO entry can be deleted by making a DELETE request on the URL for that OOO entry. Returns an empty data record.
57
+ * @param ooo_entry_gid Globally unique identifier for the OOO entry.
58
+ * @returns A Promise, with an object containing data and HTTP response
59
+ */
60
+ deleteOooEntryWithHttpInfo(ooo_entry_gid: string): Promise<{ response: any; data: any }>;
61
+
62
+ /**
63
+ * Delete an OOO entry
64
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:delete&lt;/code&gt; A specific, existing OOO entry can be deleted by making a DELETE request on the URL for that OOO entry. Returns an empty data record.
65
+ * @param ooo_entry_gid Globally unique identifier for the OOO entry.
66
+ * @returns A Promise
67
+ */
68
+ deleteOooEntry(ooo_entry_gid: string): Promise<any>;
69
+
70
+ /**
71
+ * Get OOO entries for a user
72
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns a list of OOO entries for the specified user.
73
+ * @param user Globally unique identifier for the user to filter OOO entries by.
74
+ * @param workspace Globally unique identifier for the workspace.
75
+ * @param opts Optional parameters
76
+ * @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
77
+ * @param opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
78
+ * @param opts.start_date An ISO 8601 date string. Filters to OOO entries that overlap with or end after this date.
79
+ * @param opts.end_date An ISO 8601 date string. Filters to OOO entries that overlap with or start before this date.
80
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
81
+ * @returns A Promise, with an object containing data and HTTP response
82
+ */
83
+ getOooEntriesWithHttpInfo(user: string, workspace: string, opts?: { 'limit'?: any; 'offset'?: string; 'start_date'?: any; 'end_date'?: any; 'opt_fields'?: any; }): Promise<Collection | { response: any; data: any }>;
84
+
85
+ /**
86
+ * Get OOO entries for a user
87
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns a list of OOO entries for the specified user.
88
+ * @param user Globally unique identifier for the user to filter OOO entries by.
89
+ * @param workspace Globally unique identifier for the workspace.
90
+ * @param opts Optional parameters
91
+ * @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
92
+ * @param opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
93
+ * @param opts.start_date An ISO 8601 date string. Filters to OOO entries that overlap with or end after this date.
94
+ * @param opts.end_date An ISO 8601 date string. Filters to OOO entries that overlap with or start before this date.
95
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
96
+ * @returns A Promise
97
+ */
98
+ getOooEntries(user: string, workspace: string, opts?: { 'limit'?: any; 'offset'?: string; 'start_date'?: any; 'end_date'?: any; 'opt_fields'?: any; }): Promise<Collection | any>;
99
+
100
+ /**
101
+ * Get an OOO entry
102
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns the complete OOO entry record for a single OOO entry.
103
+ * @param ooo_entry_gid Globally unique identifier for the OOO entry.
104
+ * @param opts Optional parameters
105
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
106
+ * @returns A Promise, with an object containing data and HTTP response
107
+ */
108
+ getOooEntryWithHttpInfo(ooo_entry_gid: string, opts?: { 'opt_fields'?: any; }): Promise<{ response: any; data: any }>;
109
+
110
+ /**
111
+ * Get an OOO entry
112
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns the complete OOO entry record for a single OOO entry.
113
+ * @param ooo_entry_gid Globally unique identifier for the OOO entry.
114
+ * @param opts Optional parameters
115
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
116
+ * @returns A Promise
117
+ */
118
+ getOooEntry(ooo_entry_gid: string, opts?: { 'opt_fields'?: any; }): Promise<any>;
119
+
120
+ /**
121
+ * Update an OOO entry
122
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:write&lt;/code&gt; An existing OOO entry can be updated by making a PUT request on the URL for that OOO entry. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Returns the complete updated OOO entry record.
123
+ * @param body The updated fields for the OOO entry.
124
+ * @param ooo_entry_gid Globally unique identifier for the OOO entry.
125
+ * @param opts Optional parameters
126
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
127
+ * @returns A Promise, with an object containing data and HTTP response
128
+ */
129
+ updateOooEntryWithHttpInfo(body: any, ooo_entry_gid: string, opts?: { 'opt_fields'?: any; }): Promise<{ response: any; data: any }>;
130
+
131
+ /**
132
+ * Update an OOO entry
133
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:write&lt;/code&gt; An existing OOO entry can be updated by making a PUT request on the URL for that OOO entry. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Returns the complete updated OOO entry record.
134
+ * @param body The updated fields for the OOO entry.
135
+ * @param ooo_entry_gid Globally unique identifier for the OOO entry.
136
+ * @param opts Optional parameters
137
+ * @param opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
138
+ * @returns A Promise
139
+ */
140
+ updateOooEntry(body: any, ooo_entry_gid: string, opts?: { 'opt_fields'?: any; }): Promise<any>;
141
+
142
+ }
@@ -0,0 +1,319 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.OooEntriesApi = 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
+ * OooEntries service.
31
+ * @module api/OooEntriesApi
32
+ * @version 3.1.12
33
+ */
34
+ var OooEntriesApi = exports.OooEntriesApi = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new OooEntriesApi.
37
+ * @alias module:api/OooEntriesApi
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 OooEntriesApi(apiClient) {
44
+ _classCallCheck(this, OooEntriesApi);
45
+ this.apiClient = apiClient || _ApiClient.ApiClient.instance;
46
+ }
47
+
48
+ /**
49
+ * Create an OOO entry
50
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:write&lt;/code&gt; Creates a new OOO entry. Returns the full record of the newly created OOO entry.
51
+ * @param {module:model/Object} body The OOO entry to create.
52
+ * @param {Object} opts Optional parameters
53
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
54
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
55
+ */
56
+ return _createClass(OooEntriesApi, [{
57
+ key: "createOooEntryWithHttpInfo",
58
+ value: function createOooEntryWithHttpInfo(body, opts) {
59
+ opts = opts || {};
60
+ var postBody = body;
61
+ // verify the required parameter 'body' is set
62
+ if (body === undefined || body === null) {
63
+ throw new Error("Missing the required parameter 'body' when calling createOooEntry");
64
+ }
65
+ var pathParams = {};
66
+ var queryParams = {};
67
+ opts = opts || {};
68
+ queryParams = opts;
69
+ var headerParams = {};
70
+ var formParams = {};
71
+ var authNames = ['personalAccessToken'];
72
+ var contentTypes = ['application/json; charset=UTF-8'];
73
+ var accepts = ['application/json; charset=UTF-8'];
74
+ var returnType = 'Blob';
75
+ return this.apiClient.callApi('/ooo_entries', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
76
+ }
77
+
78
+ /**
79
+ * Create an OOO entry
80
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:write&lt;/code&gt; Creates a new OOO entry. Returns the full record of the newly created OOO entry.
81
+ * @param {<&vendorExtensions.x-jsdoc-type>} body The OOO entry to create.
82
+ * @param {Object} opts Optional parameters
83
+ * @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.
84
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OooEntryResponseData}
85
+ */
86
+ }, {
87
+ key: "createOooEntry",
88
+ value: function createOooEntry(body, opts) {
89
+ return this.createOooEntryWithHttpInfo(body, opts).then(function (response_and_data) {
90
+ return response_and_data.data;
91
+ });
92
+ }
93
+
94
+ /**
95
+ * Delete an OOO entry
96
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:delete&lt;/code&gt; A specific, existing OOO entry can be deleted by making a DELETE request on the URL for that OOO entry. Returns an empty data record.
97
+ * @param {String} ooo_entry_gid Globally unique identifier for the OOO entry.
98
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
99
+ */
100
+ }, {
101
+ key: "deleteOooEntryWithHttpInfo",
102
+ value: function deleteOooEntryWithHttpInfo(ooo_entry_gid) {
103
+ var postBody = null;
104
+ // verify the required parameter 'ooo_entry_gid' is set
105
+ if (ooo_entry_gid === undefined || ooo_entry_gid === null) {
106
+ throw new Error("Missing the required parameter 'ooo_entry_gid' when calling deleteOooEntry");
107
+ }
108
+ var pathParams = {
109
+ 'ooo_entry_gid': ooo_entry_gid
110
+ };
111
+ var queryParams = {};
112
+ var headerParams = {};
113
+ var formParams = {};
114
+ var authNames = ['personalAccessToken'];
115
+ var contentTypes = [];
116
+ var accepts = ['application/json; charset=UTF-8'];
117
+ var returnType = 'Blob';
118
+ return this.apiClient.callApi('/ooo_entries/{ooo_entry_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
119
+ }
120
+
121
+ /**
122
+ * Delete an OOO entry
123
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:delete&lt;/code&gt; A specific, existing OOO entry can be deleted by making a DELETE request on the URL for that OOO entry. Returns an empty data record.
124
+ * @param {<&vendorExtensions.x-jsdoc-type>} ooo_entry_gid Globally unique identifier for the OOO entry.
125
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
126
+ */
127
+ }, {
128
+ key: "deleteOooEntry",
129
+ value: function deleteOooEntry(ooo_entry_gid) {
130
+ return this.deleteOooEntryWithHttpInfo(ooo_entry_gid).then(function (response_and_data) {
131
+ return response_and_data.data;
132
+ });
133
+ }
134
+
135
+ /**
136
+ * Get OOO entries for a user
137
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns a list of OOO entries for the specified user.
138
+ * @param {String} user Globally unique identifier for the user to filter OOO entries by.
139
+ * @param {String} workspace Globally unique identifier for the workspace.
140
+ * @param {Object} opts Optional parameters
141
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
142
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
143
+ * @param {Date} opts.start_date An ISO 8601 date string. Filters to OOO entries that overlap with or end after this date.
144
+ * @param {Date} opts.end_date An ISO 8601 date string. Filters to OOO entries that overlap with or start before this date.
145
+ * @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.
146
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
147
+ */
148
+ }, {
149
+ key: "getOooEntriesWithHttpInfo",
150
+ value: function getOooEntriesWithHttpInfo(user, workspace, opts) {
151
+ opts = opts || {};
152
+ var postBody = null;
153
+ // verify the required parameter 'user' is set
154
+ if (user === undefined || user === null) {
155
+ throw new Error("Missing the required parameter 'user' when calling getOooEntries");
156
+ }
157
+ // verify the required parameter 'workspace' is set
158
+ if (workspace === undefined || workspace === null) {
159
+ throw new Error("Missing the required parameter 'workspace' when calling getOooEntries");
160
+ }
161
+ var pathParams = {};
162
+ var queryParams = {};
163
+ opts = opts || {};
164
+ queryParams = opts;
165
+ queryParams['user'] = user;
166
+ queryParams['workspace'] = workspace;
167
+ var headerParams = {};
168
+ var formParams = {};
169
+ var authNames = ['personalAccessToken'];
170
+ var contentTypes = [];
171
+ var accepts = ['application/json; charset=UTF-8'];
172
+ var returnType = 'Blob';
173
+ // Check if RETURN_COLLECTION is set and return a collection object if it is
174
+ if (this.apiClient.RETURN_COLLECTION) {
175
+ return Collection.fromApiClient(this.apiClient.callApi('/ooo_entries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
176
+ 'path': '/ooo_entries',
177
+ 'httpMethod': 'GET',
178
+ 'pathParams': pathParams,
179
+ 'queryParams': queryParams,
180
+ 'headerParams': headerParams,
181
+ 'formParams': formParams,
182
+ 'bodyParam': postBody,
183
+ 'authNames': authNames,
184
+ 'contentTypes': contentTypes,
185
+ 'accepts': accepts,
186
+ 'returnType': returnType
187
+ });
188
+ }
189
+ return this.apiClient.callApi('/ooo_entries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
190
+ }
191
+
192
+ /**
193
+ * Get OOO entries for a user
194
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns a list of OOO entries for the specified user.
195
+ * @param {<&vendorExtensions.x-jsdoc-type>} user Globally unique identifier for the user to filter OOO entries by.
196
+ * @param {<&vendorExtensions.x-jsdoc-type>} workspace Globally unique identifier for the workspace.
197
+ * @param {Object} opts Optional parameters
198
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
199
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
200
+ * @param {Date} opts.start_date An ISO 8601 date string. Filters to OOO entries that overlap with or end after this date.
201
+ * @param {Date} opts.end_date An ISO 8601 date string. Filters to OOO entries that overlap with or start before this date.
202
+ * @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.
203
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OooEntryResponseArray}
204
+ */
205
+ }, {
206
+ key: "getOooEntries",
207
+ value: function getOooEntries(user, workspace, opts) {
208
+ // Check if RETURN_COLLECTION is set and return a collection object if it is
209
+ if (this.apiClient.RETURN_COLLECTION) {
210
+ return this.getOooEntriesWithHttpInfo(user, workspace, opts);
211
+ }
212
+ return this.getOooEntriesWithHttpInfo(user, workspace, opts).then(function (response_and_data) {
213
+ return response_and_data.data;
214
+ });
215
+ }
216
+
217
+ /**
218
+ * Get an OOO entry
219
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns the complete OOO entry record for a single OOO entry.
220
+ * @param {String} ooo_entry_gid Globally unique identifier for the OOO entry.
221
+ * @param {Object} opts Optional parameters
222
+ * @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.
223
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
224
+ */
225
+ }, {
226
+ key: "getOooEntryWithHttpInfo",
227
+ value: function getOooEntryWithHttpInfo(ooo_entry_gid, opts) {
228
+ opts = opts || {};
229
+ var postBody = null;
230
+ // verify the required parameter 'ooo_entry_gid' is set
231
+ if (ooo_entry_gid === undefined || ooo_entry_gid === null) {
232
+ throw new Error("Missing the required parameter 'ooo_entry_gid' when calling getOooEntry");
233
+ }
234
+ var pathParams = {
235
+ 'ooo_entry_gid': ooo_entry_gid
236
+ };
237
+ var queryParams = {};
238
+ opts = opts || {};
239
+ queryParams = opts;
240
+ var headerParams = {};
241
+ var formParams = {};
242
+ var authNames = ['personalAccessToken'];
243
+ var contentTypes = [];
244
+ var accepts = ['application/json; charset=UTF-8'];
245
+ var returnType = 'Blob';
246
+ return this.apiClient.callApi('/ooo_entries/{ooo_entry_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
247
+ }
248
+
249
+ /**
250
+ * Get an OOO entry
251
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:read&lt;/code&gt; Returns the complete OOO entry record for a single OOO entry.
252
+ * @param {<&vendorExtensions.x-jsdoc-type>} ooo_entry_gid Globally unique identifier for the OOO entry.
253
+ * @param {Object} opts Optional parameters
254
+ * @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.
255
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OooEntryResponseData}
256
+ */
257
+ }, {
258
+ key: "getOooEntry",
259
+ value: function getOooEntry(ooo_entry_gid, opts) {
260
+ return this.getOooEntryWithHttpInfo(ooo_entry_gid, opts).then(function (response_and_data) {
261
+ return response_and_data.data;
262
+ });
263
+ }
264
+
265
+ /**
266
+ * Update an OOO entry
267
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:write&lt;/code&gt; An existing OOO entry can be updated by making a PUT request on the URL for that OOO entry. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Returns the complete updated OOO entry record.
268
+ * @param {module:model/Object} body The updated fields for the OOO entry.
269
+ * @param {String} ooo_entry_gid Globally unique identifier for the OOO entry.
270
+ * @param {Object} opts Optional parameters
271
+ * @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.
272
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
273
+ */
274
+ }, {
275
+ key: "updateOooEntryWithHttpInfo",
276
+ value: function updateOooEntryWithHttpInfo(body, ooo_entry_gid, opts) {
277
+ opts = opts || {};
278
+ var postBody = body;
279
+ // verify the required parameter 'body' is set
280
+ if (body === undefined || body === null) {
281
+ throw new Error("Missing the required parameter 'body' when calling updateOooEntry");
282
+ }
283
+ // verify the required parameter 'ooo_entry_gid' is set
284
+ if (ooo_entry_gid === undefined || ooo_entry_gid === null) {
285
+ throw new Error("Missing the required parameter 'ooo_entry_gid' when calling updateOooEntry");
286
+ }
287
+ var pathParams = {
288
+ 'ooo_entry_gid': ooo_entry_gid
289
+ };
290
+ var queryParams = {};
291
+ opts = opts || {};
292
+ queryParams = opts;
293
+ var headerParams = {};
294
+ var formParams = {};
295
+ var authNames = ['personalAccessToken'];
296
+ var contentTypes = ['application/json; charset=UTF-8'];
297
+ var accepts = ['application/json; charset=UTF-8'];
298
+ var returnType = 'Blob';
299
+ return this.apiClient.callApi('/ooo_entries/{ooo_entry_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
300
+ }
301
+
302
+ /**
303
+ * Update an OOO entry
304
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;ooo_entries:write&lt;/code&gt; An existing OOO entry can be updated by making a PUT request on the URL for that OOO entry. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Returns the complete updated OOO entry record.
305
+ * @param {<&vendorExtensions.x-jsdoc-type>} body The updated fields for the OOO entry.
306
+ * @param {<&vendorExtensions.x-jsdoc-type>} ooo_entry_gid Globally unique identifier for the OOO entry.
307
+ * @param {Object} opts Optional parameters
308
+ * @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.
309
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OooEntryResponseData}
310
+ */
311
+ }, {
312
+ key: "updateOooEntry",
313
+ value: function updateOooEntry(body, ooo_entry_gid, opts) {
314
+ return this.updateOooEntryWithHttpInfo(body, ooo_entry_gid, opts).then(function (response_and_data) {
315
+ return response_and_data.data;
316
+ });
317
+ }
318
+ }]);
319
+ }();
@@ -18,7 +18,7 @@ import Collection = require("../utils/collection");
18
18
  /**
19
19
  * OrganizationExports service.
20
20
  * @module api/OrganizationExportsApi
21
- * @version 3.1.11
21
+ * @version 3.1.12
22
22
  */
23
23
  export class OrganizationExportsApi {
24
24
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * OrganizationExports service.
31
31
  * @module api/OrganizationExportsApi
32
- * @version 3.1.11
32
+ * @version 3.1.12
33
33
  */
34
34
  var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -18,7 +18,7 @@ import Collection = require("../utils/collection");
18
18
  /**
19
19
  * PortfolioMemberships service.
20
20
  * @module api/PortfolioMembershipsApi
21
- * @version 3.1.11
21
+ * @version 3.1.12
22
22
  */
23
23
  export class PortfolioMembershipsApi {
24
24
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * PortfolioMemberships service.
31
31
  * @module api/PortfolioMembershipsApi
32
- * @version 3.1.11
32
+ * @version 3.1.12
33
33
  */
34
34
  var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -18,7 +18,7 @@ import Collection = require("../utils/collection");
18
18
  /**
19
19
  * Portfolios service.
20
20
  * @module api/PortfoliosApi
21
- * @version 3.1.11
21
+ * @version 3.1.12
22
22
  */
23
23
  export class PortfoliosApi {
24
24
  /**
@@ -193,7 +193,7 @@ export class PortfoliosApi {
193
193
 
194
194
  /**
195
195
  * Get multiple portfolios
196
- * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;portfolios:read&lt;/code&gt; Returns a list of the portfolios in compact representation that are owned by the current API user.
196
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;portfolios:read&lt;/code&gt; Returns a list of the portfolios in compact representation. The portfolios are filtered based on the following criteria: - If the request is made from a regular API user (PAT or OAuth), then only portfolios owned by the current API user are returned. - If the request is made from a Service Account without the &#x60;owner&#x60; parameter, then all portfolios across the workspace are returned. - If the request is made from a Service Account with the &#x60;owner&#x60; parameter, then only portfolios owned by the specified user are returned.
197
197
  * @param workspace The workspace or organization to filter portfolios on.
198
198
  * @param opts Optional parameters
199
199
  * @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
@@ -206,7 +206,7 @@ export class PortfoliosApi {
206
206
 
207
207
  /**
208
208
  * Get multiple portfolios
209
- * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;portfolios:read&lt;/code&gt; Returns a list of the portfolios in compact representation that are owned by the current API user.
209
+ * &lt;b&gt;Required scope: &lt;/b&gt;&lt;code&gt;portfolios:read&lt;/code&gt; Returns a list of the portfolios in compact representation. The portfolios are filtered based on the following criteria: - If the request is made from a regular API user (PAT or OAuth), then only portfolios owned by the current API user are returned. - If the request is made from a Service Account without the &#x60;owner&#x60; parameter, then all portfolios across the workspace are returned. - If the request is made from a Service Account with the &#x60;owner&#x60; parameter, then only portfolios owned by the specified user are returned.
210
210
  * @param workspace The workspace or organization to filter portfolios on.
211
211
  * @param opts Optional parameters
212
212
  * @param opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.