asana 3.0.2 → 3.0.3
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/.github/workflows/publish.yaml +78 -38
- package/.swagger-codegen/VERSION +1 -1
- package/README.md +135 -29
- package/codegen/templates/README.mustache +129 -26
- package/codegen/templates/api.mustache +17 -15
- package/dist/ApiClient.js +6 -7
- package/dist/api/AttachmentsApi.js +22 -95
- package/dist/api/AuditLogAPIApi.js +10 -14
- package/dist/api/BatchAPIApi.js +10 -14
- package/dist/api/CustomFieldSettingsApi.js +16 -23
- package/dist/api/CustomFieldsApi.js +38 -203
- package/dist/api/EventsApi.js +12 -16
- package/dist/api/GoalRelationshipsApi.js +26 -122
- package/dist/api/GoalsApi.js +48 -239
- package/dist/api/JobsApi.js +8 -32
- package/dist/api/MembershipsApi.js +73 -99
- package/dist/api/OrganizationExportsApi.js +12 -59
- package/dist/api/PortfolioMembershipsApi.js +20 -50
- package/dist/api/PortfoliosApi.js +56 -293
- package/dist/api/ProjectBriefsApi.js +20 -113
- package/dist/api/ProjectMembershipsApi.js +14 -41
- package/dist/api/ProjectStatusesApi.js +22 -95
- package/dist/api/ProjectTemplatesApi.js +28 -104
- package/dist/api/ProjectsApi.js +88 -446
- package/dist/api/RulesApi.js +8 -32
- package/dist/api/SectionsApi.js +34 -176
- package/dist/api/StatusUpdatesApi.js +22 -95
- package/dist/api/StoriesApi.js +26 -122
- package/dist/api/TagsApi.js +42 -167
- package/dist/api/TaskTemplatesApi.js +63 -72
- package/dist/api/TasksApi.js +173 -544
- package/dist/api/TeamMembershipsApi.js +26 -59
- package/dist/api/TeamsApi.js +36 -158
- package/dist/api/TimePeriodsApi.js +14 -41
- package/dist/api/TimeTrackingEntriesApi.js +26 -122
- package/dist/api/TypeaheadApi.js +12 -16
- package/dist/api/UserTaskListsApi.js +12 -59
- package/dist/api/UsersApi.js +32 -68
- package/dist/api/WebhooksApi.js +26 -122
- package/dist/api/WorkspaceMembershipsApi.js +20 -50
- package/dist/api/WorkspacesApi.js +26 -122
- package/package.json +1 -1
- package/src/ApiClient.js +4 -4
- package/src/api/AttachmentsApi.js +42 -134
- package/src/api/AuditLogAPIApi.js +15 -17
- package/src/api/BatchAPIApi.js +15 -17
- package/src/api/CustomFieldSettingsApi.js +28 -32
- package/src/api/CustomFieldsApi.js +78 -290
- package/src/api/EventsApi.js +17 -19
- package/src/api/GoalRelationshipsApi.js +51 -173
- package/src/api/GoalsApi.js +100 -344
- package/src/api/JobsApi.js +11 -41
- package/src/api/MembershipsApi.js +105 -138
- package/src/api/OrganizationExportsApi.js +20 -80
- package/src/api/PortfolioMembershipsApi.js +37 -71
- package/src/api/PortfoliosApi.js +118 -422
- package/src/api/ProjectBriefsApi.js +38 -158
- package/src/api/ProjectMembershipsApi.js +24 -56
- package/src/api/ProjectStatusesApi.js +42 -134
- package/src/api/ProjectTemplatesApi.js +55 -149
- package/src/api/ProjectsApi.js +189 -647
- package/src/api/RulesApi.js +11 -41
- package/src/api/SectionsApi.js +69 -251
- package/src/api/StatusUpdatesApi.js +42 -134
- package/src/api/StoriesApi.js +51 -173
- package/src/api/TagsApi.js +86 -242
- package/src/api/TaskTemplatesApi.js +86 -95
- package/src/api/TasksApi.js +330 -799
- package/src/api/TeamMembershipsApi.js +50 -86
- package/src/api/TeamsApi.js +73 -227
- package/src/api/TimePeriodsApi.js +24 -56
- package/src/api/TimeTrackingEntriesApi.js +51 -173
- package/src/api/TypeaheadApi.js +17 -19
- package/src/api/UserTaskListsApi.js +20 -80
- package/src/api/UsersApi.js +63 -101
- package/src/api/WebhooksApi.js +51 -173
- package/src/api/WorkspaceMembershipsApi.js +37 -71
- package/src/api/WorkspacesApi.js +51 -173
- package/src/index.js +2 -2
|
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
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
14
|
* Asana
|
|
15
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).
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
20
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
21
|
*
|
|
22
|
-
* Swagger Codegen version: 3.0.
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
23
|
*
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* TeamMemberships service.
|
|
31
31
|
* @module api/TeamMembershipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.3
|
|
33
33
|
*/
|
|
34
34
|
var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -53,7 +53,7 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
53
53
|
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
54
54
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
55
55
|
*/
|
|
56
|
-
_createClass(TeamMembershipsApi, [{
|
|
56
|
+
return _createClass(TeamMembershipsApi, [{
|
|
57
57
|
key: "getTeamMembershipWithHttpInfo",
|
|
58
58
|
value: function getTeamMembershipWithHttpInfo(team_membership_gid, opts) {
|
|
59
59
|
opts = opts || {};
|
|
@@ -74,25 +74,7 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
74
74
|
var contentTypes = [];
|
|
75
75
|
var accepts = ['application/json; charset=UTF-8'];
|
|
76
76
|
var returnType = 'Blob';
|
|
77
|
-
|
|
78
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
79
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
80
|
-
return Collection.fromApiClient(this.apiClient.callApi('/team_memberships/{team_membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
81
|
-
'path': '/team_memberships/{team_membership_gid}',
|
|
82
|
-
'httpMethod': 'GET',
|
|
83
|
-
'pathParams': pathParams,
|
|
84
|
-
'queryParams': queryParams,
|
|
85
|
-
'headerParams': headerParams,
|
|
86
|
-
'formParams': formParams,
|
|
87
|
-
'bodyParam': postBody,
|
|
88
|
-
'authNames': authNames,
|
|
89
|
-
'contentTypes': contentTypes,
|
|
90
|
-
'accepts': accepts,
|
|
91
|
-
'returnType': returnType
|
|
92
|
-
});
|
|
93
|
-
} else {
|
|
94
|
-
return this.apiClient.callApi('/team_memberships/{team_membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
95
|
-
}
|
|
77
|
+
return this.apiClient.callApi('/team_memberships/{team_membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
96
78
|
}
|
|
97
79
|
|
|
98
80
|
/**
|
|
@@ -106,14 +88,9 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
106
88
|
}, {
|
|
107
89
|
key: "getTeamMembership",
|
|
108
90
|
value: function getTeamMembership(team_membership_gid, opts) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
} else {
|
|
113
|
-
return this.getTeamMembershipWithHttpInfo(team_membership_gid, opts).then(function (response_and_data) {
|
|
114
|
-
return response_and_data.data;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
91
|
+
return this.getTeamMembershipWithHttpInfo(team_membership_gid, opts).then(function (response_and_data) {
|
|
92
|
+
return response_and_data.data;
|
|
93
|
+
});
|
|
117
94
|
}
|
|
118
95
|
|
|
119
96
|
/**
|
|
@@ -143,9 +120,8 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
143
120
|
var contentTypes = [];
|
|
144
121
|
var accepts = ['application/json; charset=UTF-8'];
|
|
145
122
|
var returnType = 'Blob';
|
|
146
|
-
|
|
147
123
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
148
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
124
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
149
125
|
return Collection.fromApiClient(this.apiClient.callApi('/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
150
126
|
'path': '/team_memberships',
|
|
151
127
|
'httpMethod': 'GET',
|
|
@@ -159,9 +135,8 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
159
135
|
'accepts': accepts,
|
|
160
136
|
'returnType': returnType
|
|
161
137
|
});
|
|
162
|
-
} else {
|
|
163
|
-
return this.apiClient.callApi('/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
164
138
|
}
|
|
139
|
+
return this.apiClient.callApi('/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
165
140
|
}
|
|
166
141
|
|
|
167
142
|
/**
|
|
@@ -180,13 +155,12 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
180
155
|
key: "getTeamMemberships",
|
|
181
156
|
value: function getTeamMemberships(opts) {
|
|
182
157
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
183
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
158
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
184
159
|
return this.getTeamMembershipsWithHttpInfo(opts);
|
|
185
|
-
} else {
|
|
186
|
-
return this.getTeamMembershipsWithHttpInfo(opts).then(function (response_and_data) {
|
|
187
|
-
return response_and_data.data;
|
|
188
|
-
});
|
|
189
160
|
}
|
|
161
|
+
return this.getTeamMembershipsWithHttpInfo(opts).then(function (response_and_data) {
|
|
162
|
+
return response_and_data.data;
|
|
163
|
+
});
|
|
190
164
|
}
|
|
191
165
|
|
|
192
166
|
/**
|
|
@@ -220,9 +194,8 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
220
194
|
var contentTypes = [];
|
|
221
195
|
var accepts = ['application/json; charset=UTF-8'];
|
|
222
196
|
var returnType = 'Blob';
|
|
223
|
-
|
|
224
197
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
225
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
198
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
226
199
|
return Collection.fromApiClient(this.apiClient.callApi('/teams/{team_gid}/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
227
200
|
'path': '/teams/{team_gid}/team_memberships',
|
|
228
201
|
'httpMethod': 'GET',
|
|
@@ -236,9 +209,8 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
236
209
|
'accepts': accepts,
|
|
237
210
|
'returnType': returnType
|
|
238
211
|
});
|
|
239
|
-
} else {
|
|
240
|
-
return this.apiClient.callApi('/teams/{team_gid}/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
241
212
|
}
|
|
213
|
+
return this.apiClient.callApi('/teams/{team_gid}/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
242
214
|
}
|
|
243
215
|
|
|
244
216
|
/**
|
|
@@ -255,13 +227,12 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
255
227
|
key: "getTeamMembershipsForTeam",
|
|
256
228
|
value: function getTeamMembershipsForTeam(team_gid, opts) {
|
|
257
229
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
258
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
230
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
259
231
|
return this.getTeamMembershipsForTeamWithHttpInfo(team_gid, opts);
|
|
260
|
-
} else {
|
|
261
|
-
return this.getTeamMembershipsForTeamWithHttpInfo(team_gid, opts).then(function (response_and_data) {
|
|
262
|
-
return response_and_data.data;
|
|
263
|
-
});
|
|
264
232
|
}
|
|
233
|
+
return this.getTeamMembershipsForTeamWithHttpInfo(team_gid, opts).then(function (response_and_data) {
|
|
234
|
+
return response_and_data.data;
|
|
235
|
+
});
|
|
265
236
|
}
|
|
266
237
|
|
|
267
238
|
/**
|
|
@@ -301,9 +272,8 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
301
272
|
var contentTypes = [];
|
|
302
273
|
var accepts = ['application/json; charset=UTF-8'];
|
|
303
274
|
var returnType = 'Blob';
|
|
304
|
-
|
|
305
275
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
306
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
276
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
307
277
|
return Collection.fromApiClient(this.apiClient.callApi('/users/{user_gid}/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
308
278
|
'path': '/users/{user_gid}/team_memberships',
|
|
309
279
|
'httpMethod': 'GET',
|
|
@@ -317,9 +287,8 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
317
287
|
'accepts': accepts,
|
|
318
288
|
'returnType': returnType
|
|
319
289
|
});
|
|
320
|
-
} else {
|
|
321
|
-
return this.apiClient.callApi('/users/{user_gid}/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
322
290
|
}
|
|
291
|
+
return this.apiClient.callApi('/users/{user_gid}/team_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
323
292
|
}
|
|
324
293
|
|
|
325
294
|
/**
|
|
@@ -337,14 +306,12 @@ var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
|
337
306
|
key: "getTeamMembershipsForUser",
|
|
338
307
|
value: function getTeamMembershipsForUser(user_gid, workspace, opts) {
|
|
339
308
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
340
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
309
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
341
310
|
return this.getTeamMembershipsForUserWithHttpInfo(user_gid, workspace, opts);
|
|
342
|
-
} else {
|
|
343
|
-
return this.getTeamMembershipsForUserWithHttpInfo(user_gid, workspace, opts).then(function (response_and_data) {
|
|
344
|
-
return response_and_data.data;
|
|
345
|
-
});
|
|
346
311
|
}
|
|
312
|
+
return this.getTeamMembershipsForUserWithHttpInfo(user_gid, workspace, opts).then(function (response_and_data) {
|
|
313
|
+
return response_and_data.data;
|
|
314
|
+
});
|
|
347
315
|
}
|
|
348
316
|
}]);
|
|
349
|
-
return TeamMembershipsApi;
|
|
350
317
|
}();
|
package/dist/api/TeamsApi.js
CHANGED
|
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
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
14
|
* Asana
|
|
15
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).
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
20
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
21
|
*
|
|
22
|
-
* Swagger Codegen version: 3.0.
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
23
|
*
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Teams service.
|
|
31
31
|
* @module api/TeamsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.3
|
|
33
33
|
*/
|
|
34
34
|
var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -54,7 +54,7 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
54
54
|
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
55
55
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
56
56
|
*/
|
|
57
|
-
_createClass(TeamsApi, [{
|
|
57
|
+
return _createClass(TeamsApi, [{
|
|
58
58
|
key: "addUserForTeamWithHttpInfo",
|
|
59
59
|
value: function addUserForTeamWithHttpInfo(body, team_gid, opts) {
|
|
60
60
|
opts = opts || {};
|
|
@@ -79,25 +79,7 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
79
79
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
80
80
|
var accepts = ['application/json; charset=UTF-8'];
|
|
81
81
|
var returnType = 'Blob';
|
|
82
|
-
|
|
83
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
84
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
85
|
-
return Collection.fromApiClient(this.apiClient.callApi('/teams/{team_gid}/addUser', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
86
|
-
'path': '/teams/{team_gid}/addUser',
|
|
87
|
-
'httpMethod': 'POST',
|
|
88
|
-
'pathParams': pathParams,
|
|
89
|
-
'queryParams': queryParams,
|
|
90
|
-
'headerParams': headerParams,
|
|
91
|
-
'formParams': formParams,
|
|
92
|
-
'bodyParam': postBody,
|
|
93
|
-
'authNames': authNames,
|
|
94
|
-
'contentTypes': contentTypes,
|
|
95
|
-
'accepts': accepts,
|
|
96
|
-
'returnType': returnType
|
|
97
|
-
});
|
|
98
|
-
} else {
|
|
99
|
-
return this.apiClient.callApi('/teams/{team_gid}/addUser', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
100
|
-
}
|
|
82
|
+
return this.apiClient.callApi('/teams/{team_gid}/addUser', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
101
83
|
}
|
|
102
84
|
|
|
103
85
|
/**
|
|
@@ -112,14 +94,9 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
112
94
|
}, {
|
|
113
95
|
key: "addUserForTeam",
|
|
114
96
|
value: function addUserForTeam(body, team_gid, opts) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} else {
|
|
119
|
-
return this.addUserForTeamWithHttpInfo(body, team_gid, opts).then(function (response_and_data) {
|
|
120
|
-
return response_and_data.data;
|
|
121
|
-
});
|
|
122
|
-
}
|
|
97
|
+
return this.addUserForTeamWithHttpInfo(body, team_gid, opts).then(function (response_and_data) {
|
|
98
|
+
return response_and_data.data;
|
|
99
|
+
});
|
|
123
100
|
}
|
|
124
101
|
|
|
125
102
|
/**
|
|
@@ -149,25 +126,7 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
149
126
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
150
127
|
var accepts = ['application/json; charset=UTF-8'];
|
|
151
128
|
var returnType = 'Blob';
|
|
152
|
-
|
|
153
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
154
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
155
|
-
return Collection.fromApiClient(this.apiClient.callApi('/teams', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
156
|
-
'path': '/teams',
|
|
157
|
-
'httpMethod': 'POST',
|
|
158
|
-
'pathParams': pathParams,
|
|
159
|
-
'queryParams': queryParams,
|
|
160
|
-
'headerParams': headerParams,
|
|
161
|
-
'formParams': formParams,
|
|
162
|
-
'bodyParam': postBody,
|
|
163
|
-
'authNames': authNames,
|
|
164
|
-
'contentTypes': contentTypes,
|
|
165
|
-
'accepts': accepts,
|
|
166
|
-
'returnType': returnType
|
|
167
|
-
});
|
|
168
|
-
} else {
|
|
169
|
-
return this.apiClient.callApi('/teams', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
170
|
-
}
|
|
129
|
+
return this.apiClient.callApi('/teams', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
171
130
|
}
|
|
172
131
|
|
|
173
132
|
/**
|
|
@@ -181,14 +140,9 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
181
140
|
}, {
|
|
182
141
|
key: "createTeam",
|
|
183
142
|
value: function createTeam(body, opts) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
} else {
|
|
188
|
-
return this.createTeamWithHttpInfo(body, opts).then(function (response_and_data) {
|
|
189
|
-
return response_and_data.data;
|
|
190
|
-
});
|
|
191
|
-
}
|
|
143
|
+
return this.createTeamWithHttpInfo(body, opts).then(function (response_and_data) {
|
|
144
|
+
return response_and_data.data;
|
|
145
|
+
});
|
|
192
146
|
}
|
|
193
147
|
|
|
194
148
|
/**
|
|
@@ -220,25 +174,7 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
220
174
|
var contentTypes = [];
|
|
221
175
|
var accepts = ['application/json; charset=UTF-8'];
|
|
222
176
|
var returnType = 'Blob';
|
|
223
|
-
|
|
224
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
225
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
226
|
-
return Collection.fromApiClient(this.apiClient.callApi('/teams/{team_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
227
|
-
'path': '/teams/{team_gid}',
|
|
228
|
-
'httpMethod': 'GET',
|
|
229
|
-
'pathParams': pathParams,
|
|
230
|
-
'queryParams': queryParams,
|
|
231
|
-
'headerParams': headerParams,
|
|
232
|
-
'formParams': formParams,
|
|
233
|
-
'bodyParam': postBody,
|
|
234
|
-
'authNames': authNames,
|
|
235
|
-
'contentTypes': contentTypes,
|
|
236
|
-
'accepts': accepts,
|
|
237
|
-
'returnType': returnType
|
|
238
|
-
});
|
|
239
|
-
} else {
|
|
240
|
-
return this.apiClient.callApi('/teams/{team_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
241
|
-
}
|
|
177
|
+
return this.apiClient.callApi('/teams/{team_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
242
178
|
}
|
|
243
179
|
|
|
244
180
|
/**
|
|
@@ -252,14 +188,9 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
252
188
|
}, {
|
|
253
189
|
key: "getTeam",
|
|
254
190
|
value: function getTeam(team_gid, opts) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
} else {
|
|
259
|
-
return this.getTeamWithHttpInfo(team_gid, opts).then(function (response_and_data) {
|
|
260
|
-
return response_and_data.data;
|
|
261
|
-
});
|
|
262
|
-
}
|
|
191
|
+
return this.getTeamWithHttpInfo(team_gid, opts).then(function (response_and_data) {
|
|
192
|
+
return response_and_data.data;
|
|
193
|
+
});
|
|
263
194
|
}
|
|
264
195
|
|
|
265
196
|
/**
|
|
@@ -299,9 +230,8 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
299
230
|
var contentTypes = [];
|
|
300
231
|
var accepts = ['application/json; charset=UTF-8'];
|
|
301
232
|
var returnType = 'Blob';
|
|
302
|
-
|
|
303
233
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
304
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
234
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
305
235
|
return Collection.fromApiClient(this.apiClient.callApi('/users/{user_gid}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
306
236
|
'path': '/users/{user_gid}/teams',
|
|
307
237
|
'httpMethod': 'GET',
|
|
@@ -315,9 +245,8 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
315
245
|
'accepts': accepts,
|
|
316
246
|
'returnType': returnType
|
|
317
247
|
});
|
|
318
|
-
} else {
|
|
319
|
-
return this.apiClient.callApi('/users/{user_gid}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
320
248
|
}
|
|
249
|
+
return this.apiClient.callApi('/users/{user_gid}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
321
250
|
}
|
|
322
251
|
|
|
323
252
|
/**
|
|
@@ -335,13 +264,12 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
335
264
|
key: "getTeamsForUser",
|
|
336
265
|
value: function getTeamsForUser(user_gid, organization, opts) {
|
|
337
266
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
338
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
267
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
339
268
|
return this.getTeamsForUserWithHttpInfo(user_gid, organization, opts);
|
|
340
|
-
} else {
|
|
341
|
-
return this.getTeamsForUserWithHttpInfo(user_gid, organization, opts).then(function (response_and_data) {
|
|
342
|
-
return response_and_data.data;
|
|
343
|
-
});
|
|
344
269
|
}
|
|
270
|
+
return this.getTeamsForUserWithHttpInfo(user_gid, organization, opts).then(function (response_and_data) {
|
|
271
|
+
return response_and_data.data;
|
|
272
|
+
});
|
|
345
273
|
}
|
|
346
274
|
|
|
347
275
|
/**
|
|
@@ -375,9 +303,8 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
375
303
|
var contentTypes = [];
|
|
376
304
|
var accepts = ['application/json; charset=UTF-8'];
|
|
377
305
|
var returnType = 'Blob';
|
|
378
|
-
|
|
379
306
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
380
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
307
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
381
308
|
return Collection.fromApiClient(this.apiClient.callApi('/workspaces/{workspace_gid}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
382
309
|
'path': '/workspaces/{workspace_gid}/teams',
|
|
383
310
|
'httpMethod': 'GET',
|
|
@@ -391,9 +318,8 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
391
318
|
'accepts': accepts,
|
|
392
319
|
'returnType': returnType
|
|
393
320
|
});
|
|
394
|
-
} else {
|
|
395
|
-
return this.apiClient.callApi('/workspaces/{workspace_gid}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
396
321
|
}
|
|
322
|
+
return this.apiClient.callApi('/workspaces/{workspace_gid}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
397
323
|
}
|
|
398
324
|
|
|
399
325
|
/**
|
|
@@ -410,13 +336,12 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
410
336
|
key: "getTeamsForWorkspace",
|
|
411
337
|
value: function getTeamsForWorkspace(workspace_gid, opts) {
|
|
412
338
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
413
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
339
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
414
340
|
return this.getTeamsForWorkspaceWithHttpInfo(workspace_gid, opts);
|
|
415
|
-
} else {
|
|
416
|
-
return this.getTeamsForWorkspaceWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
|
|
417
|
-
return response_and_data.data;
|
|
418
|
-
});
|
|
419
341
|
}
|
|
342
|
+
return this.getTeamsForWorkspaceWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
|
|
343
|
+
return response_and_data.data;
|
|
344
|
+
});
|
|
420
345
|
}
|
|
421
346
|
|
|
422
347
|
/**
|
|
@@ -448,25 +373,7 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
448
373
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
449
374
|
var accepts = ['application/json; charset=UTF-8'];
|
|
450
375
|
var returnType = 'Blob';
|
|
451
|
-
|
|
452
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
453
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
454
|
-
return Collection.fromApiClient(this.apiClient.callApi('/teams/{team_gid}/removeUser', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
455
|
-
'path': '/teams/{team_gid}/removeUser',
|
|
456
|
-
'httpMethod': 'POST',
|
|
457
|
-
'pathParams': pathParams,
|
|
458
|
-
'queryParams': queryParams,
|
|
459
|
-
'headerParams': headerParams,
|
|
460
|
-
'formParams': formParams,
|
|
461
|
-
'bodyParam': postBody,
|
|
462
|
-
'authNames': authNames,
|
|
463
|
-
'contentTypes': contentTypes,
|
|
464
|
-
'accepts': accepts,
|
|
465
|
-
'returnType': returnType
|
|
466
|
-
});
|
|
467
|
-
} else {
|
|
468
|
-
return this.apiClient.callApi('/teams/{team_gid}/removeUser', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
469
|
-
}
|
|
376
|
+
return this.apiClient.callApi('/teams/{team_gid}/removeUser', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
470
377
|
}
|
|
471
378
|
|
|
472
379
|
/**
|
|
@@ -479,14 +386,9 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
479
386
|
}, {
|
|
480
387
|
key: "removeUserForTeam",
|
|
481
388
|
value: function removeUserForTeam(body, team_gid) {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
} else {
|
|
486
|
-
return this.removeUserForTeamWithHttpInfo(body, team_gid).then(function (response_and_data) {
|
|
487
|
-
return response_and_data.data;
|
|
488
|
-
});
|
|
489
|
-
}
|
|
389
|
+
return this.removeUserForTeamWithHttpInfo(body, team_gid).then(function (response_and_data) {
|
|
390
|
+
return response_and_data.data;
|
|
391
|
+
});
|
|
490
392
|
}
|
|
491
393
|
|
|
492
394
|
/**
|
|
@@ -523,25 +425,7 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
523
425
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
524
426
|
var accepts = ['application/json; charset=UTF-8'];
|
|
525
427
|
var returnType = 'Blob';
|
|
526
|
-
|
|
527
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
528
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
529
|
-
return Collection.fromApiClient(this.apiClient.callApi('/teams/{team_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
530
|
-
'path': '/teams/{team_gid}',
|
|
531
|
-
'httpMethod': 'PUT',
|
|
532
|
-
'pathParams': pathParams,
|
|
533
|
-
'queryParams': queryParams,
|
|
534
|
-
'headerParams': headerParams,
|
|
535
|
-
'formParams': formParams,
|
|
536
|
-
'bodyParam': postBody,
|
|
537
|
-
'authNames': authNames,
|
|
538
|
-
'contentTypes': contentTypes,
|
|
539
|
-
'accepts': accepts,
|
|
540
|
-
'returnType': returnType
|
|
541
|
-
});
|
|
542
|
-
} else {
|
|
543
|
-
return this.apiClient.callApi('/teams/{team_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
544
|
-
}
|
|
428
|
+
return this.apiClient.callApi('/teams/{team_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
545
429
|
}
|
|
546
430
|
|
|
547
431
|
/**
|
|
@@ -556,15 +440,9 @@ var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
|
|
|
556
440
|
}, {
|
|
557
441
|
key: "updateTeam",
|
|
558
442
|
value: function updateTeam(body, team_gid, opts) {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
} else {
|
|
563
|
-
return this.updateTeamWithHttpInfo(body, team_gid, opts).then(function (response_and_data) {
|
|
564
|
-
return response_and_data.data;
|
|
565
|
-
});
|
|
566
|
-
}
|
|
443
|
+
return this.updateTeamWithHttpInfo(body, team_gid, opts).then(function (response_and_data) {
|
|
444
|
+
return response_and_data.data;
|
|
445
|
+
});
|
|
567
446
|
}
|
|
568
447
|
}]);
|
|
569
|
-
return TeamsApi;
|
|
570
448
|
}();
|
|
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
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
14
|
* Asana
|
|
15
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).
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
20
20
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
21
21
|
*
|
|
22
|
-
* Swagger Codegen version: 3.0.
|
|
22
|
+
* Swagger Codegen version: 3.0.54
|
|
23
23
|
*
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* TimePeriods service.
|
|
31
31
|
* @module api/TimePeriodsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.3
|
|
33
33
|
*/
|
|
34
34
|
var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -53,7 +53,7 @@ var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
|
|
|
53
53
|
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
54
54
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
55
55
|
*/
|
|
56
|
-
_createClass(TimePeriodsApi, [{
|
|
56
|
+
return _createClass(TimePeriodsApi, [{
|
|
57
57
|
key: "getTimePeriodWithHttpInfo",
|
|
58
58
|
value: function getTimePeriodWithHttpInfo(time_period_gid, opts) {
|
|
59
59
|
opts = opts || {};
|
|
@@ -74,25 +74,7 @@ var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
|
|
|
74
74
|
var contentTypes = [];
|
|
75
75
|
var accepts = ['application/json; charset=UTF-8'];
|
|
76
76
|
var returnType = 'Blob';
|
|
77
|
-
|
|
78
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
79
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
80
|
-
return Collection.fromApiClient(this.apiClient.callApi('/time_periods/{time_period_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
81
|
-
'path': '/time_periods/{time_period_gid}',
|
|
82
|
-
'httpMethod': 'GET',
|
|
83
|
-
'pathParams': pathParams,
|
|
84
|
-
'queryParams': queryParams,
|
|
85
|
-
'headerParams': headerParams,
|
|
86
|
-
'formParams': formParams,
|
|
87
|
-
'bodyParam': postBody,
|
|
88
|
-
'authNames': authNames,
|
|
89
|
-
'contentTypes': contentTypes,
|
|
90
|
-
'accepts': accepts,
|
|
91
|
-
'returnType': returnType
|
|
92
|
-
});
|
|
93
|
-
} else {
|
|
94
|
-
return this.apiClient.callApi('/time_periods/{time_period_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
95
|
-
}
|
|
77
|
+
return this.apiClient.callApi('/time_periods/{time_period_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
96
78
|
}
|
|
97
79
|
|
|
98
80
|
/**
|
|
@@ -106,14 +88,9 @@ var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
|
|
|
106
88
|
}, {
|
|
107
89
|
key: "getTimePeriod",
|
|
108
90
|
value: function getTimePeriod(time_period_gid, opts) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
} else {
|
|
113
|
-
return this.getTimePeriodWithHttpInfo(time_period_gid, opts).then(function (response_and_data) {
|
|
114
|
-
return response_and_data.data;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
91
|
+
return this.getTimePeriodWithHttpInfo(time_period_gid, opts).then(function (response_and_data) {
|
|
92
|
+
return response_and_data.data;
|
|
93
|
+
});
|
|
117
94
|
}
|
|
118
95
|
|
|
119
96
|
/**
|
|
@@ -148,9 +125,8 @@ var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
|
|
|
148
125
|
var contentTypes = [];
|
|
149
126
|
var accepts = ['application/json; charset=UTF-8'];
|
|
150
127
|
var returnType = 'Blob';
|
|
151
|
-
|
|
152
128
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
153
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
129
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
154
130
|
return Collection.fromApiClient(this.apiClient.callApi('/time_periods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
155
131
|
'path': '/time_periods',
|
|
156
132
|
'httpMethod': 'GET',
|
|
@@ -164,9 +140,8 @@ var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
|
|
|
164
140
|
'accepts': accepts,
|
|
165
141
|
'returnType': returnType
|
|
166
142
|
});
|
|
167
|
-
} else {
|
|
168
|
-
return this.apiClient.callApi('/time_periods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
169
143
|
}
|
|
144
|
+
return this.apiClient.callApi('/time_periods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
170
145
|
}
|
|
171
146
|
|
|
172
147
|
/**
|
|
@@ -185,14 +160,12 @@ var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
|
|
|
185
160
|
key: "getTimePeriods",
|
|
186
161
|
value: function getTimePeriods(workspace, opts) {
|
|
187
162
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
188
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
163
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
189
164
|
return this.getTimePeriodsWithHttpInfo(workspace, opts);
|
|
190
|
-
} else {
|
|
191
|
-
return this.getTimePeriodsWithHttpInfo(workspace, opts).then(function (response_and_data) {
|
|
192
|
-
return response_and_data.data;
|
|
193
|
-
});
|
|
194
165
|
}
|
|
166
|
+
return this.getTimePeriodsWithHttpInfo(workspace, opts).then(function (response_and_data) {
|
|
167
|
+
return response_and_data.data;
|
|
168
|
+
});
|
|
195
169
|
}
|
|
196
170
|
}]);
|
|
197
|
-
return TimePeriodsApi;
|
|
198
171
|
}();
|