asana 3.1.10 → 3.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -3
- package/dist/ApiClient.js +3 -3
- package/dist/api/AccessRequestsApi.d.ts +1 -1
- package/dist/api/AccessRequestsApi.js +1 -1
- package/dist/api/AgentsApi.d.ts +78 -0
- package/dist/api/AgentsApi.js +168 -0
- package/dist/api/AllocationsApi.d.ts +1 -1
- package/dist/api/AllocationsApi.js +1 -1
- package/dist/api/AttachmentsApi.d.ts +1 -1
- package/dist/api/AttachmentsApi.js +1 -1
- package/dist/api/AuditLogAPIApi.d.ts +1 -1
- package/dist/api/AuditLogAPIApi.js +1 -1
- package/dist/api/BatchAPIApi.d.ts +1 -1
- package/dist/api/BatchAPIApi.js +1 -1
- package/dist/api/BudgetsApi.d.ts +1 -1
- package/dist/api/BudgetsApi.js +1 -1
- package/dist/api/CustomFieldSettingsApi.d.ts +1 -1
- package/dist/api/CustomFieldSettingsApi.js +1 -1
- package/dist/api/CustomFieldsApi.d.ts +1 -1
- package/dist/api/CustomFieldsApi.js +1 -1
- package/dist/api/CustomTypesApi.d.ts +1 -1
- package/dist/api/CustomTypesApi.js +1 -1
- package/dist/api/EventsApi.d.ts +1 -1
- package/dist/api/EventsApi.js +1 -1
- package/dist/api/ExportsApi.d.ts +1 -1
- package/dist/api/ExportsApi.js +1 -1
- package/dist/api/GoalRelationshipsApi.d.ts +1 -1
- package/dist/api/GoalRelationshipsApi.js +1 -1
- package/dist/api/GoalsApi.d.ts +1 -1
- package/dist/api/GoalsApi.js +1 -1
- package/dist/api/JobsApi.d.ts +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MembershipsApi.d.ts +5 -5
- package/dist/api/MembershipsApi.js +5 -5
- package/dist/api/OooEntriesApi.d.ts +142 -0
- package/dist/api/OooEntriesApi.js +319 -0
- package/dist/api/OrganizationExportsApi.d.ts +1 -1
- package/dist/api/OrganizationExportsApi.js +1 -1
- package/dist/api/PortfolioMembershipsApi.d.ts +1 -1
- package/dist/api/PortfolioMembershipsApi.js +1 -1
- package/dist/api/PortfoliosApi.d.ts +3 -3
- package/dist/api/PortfoliosApi.js +3 -3
- package/dist/api/ProjectBriefsApi.d.ts +1 -1
- package/dist/api/ProjectBriefsApi.js +1 -1
- package/dist/api/ProjectMembershipsApi.d.ts +1 -1
- package/dist/api/ProjectMembershipsApi.js +1 -1
- package/dist/api/ProjectPortfolioSettingsApi.d.ts +1 -1
- package/dist/api/ProjectPortfolioSettingsApi.js +1 -1
- package/dist/api/ProjectStatusesApi.d.ts +1 -1
- package/dist/api/ProjectStatusesApi.js +1 -1
- package/dist/api/ProjectTemplatesApi.d.ts +1 -1
- package/dist/api/ProjectTemplatesApi.js +1 -1
- package/dist/api/ProjectsApi.d.ts +77 -3
- package/dist/api/ProjectsApi.js +125 -3
- package/dist/api/RatesApi.d.ts +1 -1
- package/dist/api/RatesApi.js +1 -1
- package/dist/api/ReactionsApi.d.ts +1 -1
- package/dist/api/ReactionsApi.js +1 -1
- package/dist/api/RolesApi.d.ts +1 -1
- package/dist/api/RolesApi.js +1 -1
- package/dist/api/RulesApi.d.ts +1 -1
- package/dist/api/RulesApi.js +1 -1
- package/dist/api/SectionsApi.d.ts +1 -1
- package/dist/api/SectionsApi.js +1 -1
- package/dist/api/StatusUpdatesApi.d.ts +1 -1
- package/dist/api/StatusUpdatesApi.js +1 -1
- package/dist/api/StoriesApi.d.ts +49 -3
- package/dist/api/StoriesApi.js +132 -6
- package/dist/api/TagsApi.d.ts +1 -1
- package/dist/api/TagsApi.js +1 -1
- package/dist/api/TaskTemplatesApi.d.ts +1 -1
- package/dist/api/TaskTemplatesApi.js +1 -1
- package/dist/api/TasksApi.d.ts +25 -25
- package/dist/api/TasksApi.js +25 -25
- package/dist/api/TeamMembershipsApi.d.ts +1 -1
- package/dist/api/TeamMembershipsApi.js +1 -1
- package/dist/api/TeamsApi.d.ts +1 -1
- package/dist/api/TeamsApi.js +1 -1
- package/dist/api/TimePeriodsApi.d.ts +1 -1
- package/dist/api/TimePeriodsApi.js +1 -1
- package/dist/api/TimeTrackingCategoriesApi.d.ts +166 -0
- package/dist/api/TimeTrackingCategoriesApi.js +386 -0
- package/dist/api/TimeTrackingEntriesApi.d.ts +1 -1
- package/dist/api/TimeTrackingEntriesApi.js +1 -1
- package/dist/api/TimesheetApprovalStatusesApi.d.ts +128 -0
- package/dist/api/TimesheetApprovalStatusesApi.js +275 -0
- package/dist/api/TypeaheadApi.d.ts +5 -5
- package/dist/api/TypeaheadApi.js +5 -5
- package/dist/api/UserTaskListsApi.d.ts +1 -1
- package/dist/api/UserTaskListsApi.js +1 -1
- package/dist/api/UsersApi.d.ts +1 -1
- package/dist/api/UsersApi.js +1 -1
- package/dist/api/WebhooksApi.d.ts +1 -1
- package/dist/api/WebhooksApi.js +1 -1
- package/dist/api/WorkspaceMembershipsApi.d.ts +1 -1
- package/dist/api/WorkspaceMembershipsApi.js +1 -1
- package/dist/api/WorkspacesApi.d.ts +1 -1
- package/dist/api/WorkspacesApi.js +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +28 -0
- package/package.json +1 -1
- package/src/ApiClient.js +3 -3
- package/src/api/AccessRequestsApi.d.ts +1 -1
- package/src/api/AccessRequestsApi.js +1 -1
- package/src/api/AgentsApi.d.ts +78 -0
- package/src/api/AgentsApi.js +188 -0
- package/src/api/AllocationsApi.d.ts +1 -1
- package/src/api/AllocationsApi.js +1 -1
- package/src/api/AttachmentsApi.d.ts +1 -1
- package/src/api/AttachmentsApi.js +1 -1
- package/src/api/AuditLogAPIApi.d.ts +1 -1
- package/src/api/AuditLogAPIApi.js +1 -1
- package/src/api/BatchAPIApi.d.ts +1 -1
- package/src/api/BatchAPIApi.js +1 -1
- package/src/api/BudgetsApi.d.ts +1 -1
- package/src/api/BudgetsApi.js +1 -1
- package/src/api/CustomFieldSettingsApi.d.ts +1 -1
- package/src/api/CustomFieldSettingsApi.js +1 -1
- package/src/api/CustomFieldsApi.d.ts +1 -1
- package/src/api/CustomFieldsApi.js +1 -1
- package/src/api/CustomTypesApi.d.ts +1 -1
- package/src/api/CustomTypesApi.js +1 -1
- package/src/api/EventsApi.d.ts +1 -1
- package/src/api/EventsApi.js +1 -1
- package/src/api/ExportsApi.d.ts +1 -1
- package/src/api/ExportsApi.js +1 -1
- package/src/api/GoalRelationshipsApi.d.ts +1 -1
- package/src/api/GoalRelationshipsApi.js +1 -1
- package/src/api/GoalsApi.d.ts +1 -1
- package/src/api/GoalsApi.js +1 -1
- package/src/api/JobsApi.d.ts +1 -1
- package/src/api/JobsApi.js +1 -1
- package/src/api/MembershipsApi.d.ts +5 -5
- package/src/api/MembershipsApi.js +5 -5
- package/src/api/OooEntriesApi.d.ts +142 -0
- package/src/api/OooEntriesApi.js +377 -0
- package/src/api/OrganizationExportsApi.d.ts +1 -1
- package/src/api/OrganizationExportsApi.js +1 -1
- package/src/api/PortfolioMembershipsApi.d.ts +1 -1
- package/src/api/PortfolioMembershipsApi.js +1 -1
- package/src/api/PortfoliosApi.d.ts +3 -3
- package/src/api/PortfoliosApi.js +3 -3
- package/src/api/ProjectBriefsApi.d.ts +1 -1
- package/src/api/ProjectBriefsApi.js +1 -1
- package/src/api/ProjectMembershipsApi.d.ts +1 -1
- package/src/api/ProjectMembershipsApi.js +1 -1
- package/src/api/ProjectPortfolioSettingsApi.d.ts +1 -1
- package/src/api/ProjectPortfolioSettingsApi.js +1 -1
- package/src/api/ProjectStatusesApi.d.ts +1 -1
- package/src/api/ProjectStatusesApi.js +1 -1
- package/src/api/ProjectTemplatesApi.d.ts +1 -1
- package/src/api/ProjectTemplatesApi.js +1 -1
- package/src/api/ProjectsApi.d.ts +77 -3
- package/src/api/ProjectsApi.js +144 -3
- package/src/api/RatesApi.d.ts +1 -1
- package/src/api/RatesApi.js +1 -1
- package/src/api/ReactionsApi.d.ts +1 -1
- package/src/api/ReactionsApi.js +1 -1
- package/src/api/RolesApi.d.ts +1 -1
- package/src/api/RolesApi.js +1 -1
- package/src/api/RulesApi.d.ts +1 -1
- package/src/api/RulesApi.js +1 -1
- package/src/api/SectionsApi.d.ts +1 -1
- package/src/api/SectionsApi.js +1 -1
- package/src/api/StatusUpdatesApi.d.ts +1 -1
- package/src/api/StatusUpdatesApi.js +1 -1
- package/src/api/StoriesApi.d.ts +49 -3
- package/src/api/StoriesApi.js +159 -3
- package/src/api/TagsApi.d.ts +1 -1
- package/src/api/TagsApi.js +1 -1
- package/src/api/TaskTemplatesApi.d.ts +1 -1
- package/src/api/TaskTemplatesApi.js +1 -1
- package/src/api/TasksApi.d.ts +25 -25
- package/src/api/TasksApi.js +25 -25
- package/src/api/TeamMembershipsApi.d.ts +1 -1
- package/src/api/TeamMembershipsApi.js +1 -1
- package/src/api/TeamsApi.d.ts +1 -1
- package/src/api/TeamsApi.js +1 -1
- package/src/api/TimePeriodsApi.d.ts +1 -1
- package/src/api/TimePeriodsApi.js +1 -1
- package/src/api/TimeTrackingCategoriesApi.d.ts +166 -0
- package/src/api/TimeTrackingCategoriesApi.js +463 -0
- package/src/api/TimeTrackingEntriesApi.d.ts +1 -1
- package/src/api/TimeTrackingEntriesApi.js +1 -1
- package/src/api/TimesheetApprovalStatusesApi.d.ts +128 -0
- package/src/api/TimesheetApprovalStatusesApi.js +321 -0
- package/src/api/TypeaheadApi.d.ts +5 -5
- package/src/api/TypeaheadApi.js +5 -5
- package/src/api/UserTaskListsApi.d.ts +1 -1
- package/src/api/UserTaskListsApi.js +1 -1
- package/src/api/UsersApi.d.ts +1 -1
- package/src/api/UsersApi.js +1 -1
- package/src/api/WebhooksApi.d.ts +1 -1
- package/src/api/WebhooksApi.js +1 -1
- package/src/api/WorkspaceMembershipsApi.d.ts +1 -1
- package/src/api/WorkspaceMembershipsApi.js +1 -1
- package/src/api/WorkspacesApi.d.ts +1 -1
- package/src/api/WorkspacesApi.js +1 -1
- package/src/index.d.ts +8 -0
- package/src/index.js +29 -1
package/dist/api/JobsApi.d.ts
CHANGED
package/dist/api/JobsApi.js
CHANGED
|
@@ -18,7 +18,7 @@ import Collection = require("../utils/collection");
|
|
|
18
18
|
/**
|
|
19
19
|
* Memberships service.
|
|
20
20
|
* @module api/MembershipsApi
|
|
21
|
-
* @version 3.1.
|
|
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`,
|
|
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`,
|
|
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.
|
|
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`,
|
|
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`,
|
|
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
|
+
* <b>Required scope: </b><code>ooo_entries:write</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:delete</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:delete</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:write</code> 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 `data` 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
|
+
* <b>Required scope: </b><code>ooo_entries:write</code> 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 `data` 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
|
+
* <b>Required scope: </b><code>ooo_entries:write</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:write</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:delete</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:delete</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:read</code> 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
|
+
* <b>Required scope: </b><code>ooo_entries:write</code> 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 `data` 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
|
+
* <b>Required scope: </b><code>ooo_entries:write</code> 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 `data` 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
|
+
}();
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* OrganizationExports service.
|
|
31
31
|
* @module api/OrganizationExportsApi
|
|
32
|
-
* @version 3.1.
|
|
32
|
+
* @version 3.1.12
|
|
33
33
|
*/
|
|
34
34
|
var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* PortfolioMemberships service.
|
|
31
31
|
* @module api/PortfolioMembershipsApi
|
|
32
|
-
* @version 3.1.
|
|
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.
|
|
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
|
-
* <b>Required scope: </b><code>portfolios:read</code> Returns a list of the portfolios in compact representation
|
|
196
|
+
* <b>Required scope: </b><code>portfolios:read</code> 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 `owner` parameter, then all portfolios across the workspace are returned. - If the request is made from a Service Account with the `owner` 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
|
-
* <b>Required scope: </b><code>portfolios:read</code> Returns a list of the portfolios in compact representation
|
|
209
|
+
* <b>Required scope: </b><code>portfolios:read</code> 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 `owner` parameter, then all portfolios across the workspace are returned. - If the request is made from a Service Account with the `owner` 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.
|