asana 3.0.2 → 3.0.4
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 +140 -29
- package/codegen/templates/README.mustache +129 -26
- package/codegen/templates/api.mustache +17 -15
- package/dist/ApiClient.js +6 -7
- package/dist/api/AllocationsApi.js +307 -0
- 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/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/ApiClient.js +4 -4
- package/src/api/AllocationsApi.js +365 -0
- 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 +9 -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
|
* Memberships service.
|
|
31
31
|
* @module api/MembershipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.4
|
|
33
33
|
*/
|
|
34
34
|
var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,12 +47,12 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Create a membership
|
|
50
|
-
* Creates a new membership in a `goal`. `Teams` or `users` can be a member of `goals`. Returns the full record of the newly created membership.
|
|
50
|
+
* Creates a new membership in a `goal` or `project`. `Teams` or `users` can be a member of `goals` or `projects`. Returns the full record of the newly created membership.
|
|
51
51
|
* @param {Object} opts Optional parameters
|
|
52
52
|
* @param {module:model/Object} opts.body The updated fields for the membership.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
54
54
|
*/
|
|
55
|
-
_createClass(MembershipsApi, [{
|
|
55
|
+
return _createClass(MembershipsApi, [{
|
|
56
56
|
key: "createMembershipWithHttpInfo",
|
|
57
57
|
value: function createMembershipWithHttpInfo(opts) {
|
|
58
58
|
opts = opts || {};
|
|
@@ -67,30 +67,12 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
67
67
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
68
68
|
var accepts = ['application/json; charset=UTF-8'];
|
|
69
69
|
var returnType = 'Blob';
|
|
70
|
-
|
|
71
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
72
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
73
|
-
return Collection.fromApiClient(this.apiClient.callApi('/memberships', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
74
|
-
'path': '/memberships',
|
|
75
|
-
'httpMethod': 'POST',
|
|
76
|
-
'pathParams': pathParams,
|
|
77
|
-
'queryParams': queryParams,
|
|
78
|
-
'headerParams': headerParams,
|
|
79
|
-
'formParams': formParams,
|
|
80
|
-
'bodyParam': postBody,
|
|
81
|
-
'authNames': authNames,
|
|
82
|
-
'contentTypes': contentTypes,
|
|
83
|
-
'accepts': accepts,
|
|
84
|
-
'returnType': returnType
|
|
85
|
-
});
|
|
86
|
-
} else {
|
|
87
|
-
return this.apiClient.callApi('/memberships', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
88
|
-
}
|
|
70
|
+
return this.apiClient.callApi('/memberships', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
89
71
|
}
|
|
90
72
|
|
|
91
73
|
/**
|
|
92
74
|
* Create a membership
|
|
93
|
-
* Creates a new membership in a `goal`. `Teams` or `users` can be a member of `goals`. Returns the full record of the newly created membership.
|
|
75
|
+
* Creates a new membership in a `goal` or `project`. `Teams` or `users` can be a member of `goals` or `projects`. Returns the full record of the newly created membership.
|
|
94
76
|
* @param {Object} opts Optional parameters
|
|
95
77
|
* @param {module:model/Object} opts.body The updated fields for the membership.
|
|
96
78
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
|
|
@@ -98,19 +80,14 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
98
80
|
}, {
|
|
99
81
|
key: "createMembership",
|
|
100
82
|
value: function createMembership(opts) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
} else {
|
|
105
|
-
return this.createMembershipWithHttpInfo(opts).then(function (response_and_data) {
|
|
106
|
-
return response_and_data.data;
|
|
107
|
-
});
|
|
108
|
-
}
|
|
83
|
+
return this.createMembershipWithHttpInfo(opts).then(function (response_and_data) {
|
|
84
|
+
return response_and_data.data;
|
|
85
|
+
});
|
|
109
86
|
}
|
|
110
87
|
|
|
111
88
|
/**
|
|
112
89
|
* Delete a membership
|
|
113
|
-
* A specific, existing membership can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
90
|
+
* A specific, existing membership for a `goal` or `project` can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
114
91
|
* @param {String} membership_gid Globally unique identifier for the membership.
|
|
115
92
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
116
93
|
*/
|
|
@@ -132,44 +109,21 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
132
109
|
var contentTypes = [];
|
|
133
110
|
var accepts = ['application/json; charset=UTF-8'];
|
|
134
111
|
var returnType = 'Blob';
|
|
135
|
-
|
|
136
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
137
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
138
|
-
return Collection.fromApiClient(this.apiClient.callApi('/memberships/{membership_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
139
|
-
'path': '/memberships/{membership_gid}',
|
|
140
|
-
'httpMethod': 'DELETE',
|
|
141
|
-
'pathParams': pathParams,
|
|
142
|
-
'queryParams': queryParams,
|
|
143
|
-
'headerParams': headerParams,
|
|
144
|
-
'formParams': formParams,
|
|
145
|
-
'bodyParam': postBody,
|
|
146
|
-
'authNames': authNames,
|
|
147
|
-
'contentTypes': contentTypes,
|
|
148
|
-
'accepts': accepts,
|
|
149
|
-
'returnType': returnType
|
|
150
|
-
});
|
|
151
|
-
} else {
|
|
152
|
-
return this.apiClient.callApi('/memberships/{membership_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
153
|
-
}
|
|
112
|
+
return this.apiClient.callApi('/memberships/{membership_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
154
113
|
}
|
|
155
114
|
|
|
156
115
|
/**
|
|
157
116
|
* Delete a membership
|
|
158
|
-
* A specific, existing membership can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
117
|
+
* A specific, existing membership for a `goal` or `project` can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
159
118
|
* @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
|
|
160
119
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
|
|
161
120
|
*/
|
|
162
121
|
}, {
|
|
163
122
|
key: "deleteMembership",
|
|
164
123
|
value: function deleteMembership(membership_gid) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
} else {
|
|
169
|
-
return this.deleteMembershipWithHttpInfo(membership_gid).then(function (response_and_data) {
|
|
170
|
-
return response_and_data.data;
|
|
171
|
-
});
|
|
172
|
-
}
|
|
124
|
+
return this.deleteMembershipWithHttpInfo(membership_gid).then(function (response_and_data) {
|
|
125
|
+
return response_and_data.data;
|
|
126
|
+
});
|
|
173
127
|
}
|
|
174
128
|
|
|
175
129
|
/**
|
|
@@ -201,25 +155,7 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
201
155
|
var contentTypes = [];
|
|
202
156
|
var accepts = ['application/json; charset=UTF-8'];
|
|
203
157
|
var returnType = 'Blob';
|
|
204
|
-
|
|
205
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
206
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
207
|
-
return Collection.fromApiClient(this.apiClient.callApi('/memberships/{membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
208
|
-
'path': '/memberships/{membership_gid}',
|
|
209
|
-
'httpMethod': 'GET',
|
|
210
|
-
'pathParams': pathParams,
|
|
211
|
-
'queryParams': queryParams,
|
|
212
|
-
'headerParams': headerParams,
|
|
213
|
-
'formParams': formParams,
|
|
214
|
-
'bodyParam': postBody,
|
|
215
|
-
'authNames': authNames,
|
|
216
|
-
'contentTypes': contentTypes,
|
|
217
|
-
'accepts': accepts,
|
|
218
|
-
'returnType': returnType
|
|
219
|
-
});
|
|
220
|
-
} else {
|
|
221
|
-
return this.apiClient.callApi('/memberships/{membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
222
|
-
}
|
|
158
|
+
return this.apiClient.callApi('/memberships/{membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
223
159
|
}
|
|
224
160
|
|
|
225
161
|
/**
|
|
@@ -233,14 +169,9 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
233
169
|
}, {
|
|
234
170
|
key: "getMembership",
|
|
235
171
|
value: function getMembership(membership_gid, opts) {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
} else {
|
|
240
|
-
return this.getMembershipWithHttpInfo(membership_gid, opts).then(function (response_and_data) {
|
|
241
|
-
return response_and_data.data;
|
|
242
|
-
});
|
|
243
|
-
}
|
|
172
|
+
return this.getMembershipWithHttpInfo(membership_gid, opts).then(function (response_and_data) {
|
|
173
|
+
return response_and_data.data;
|
|
174
|
+
});
|
|
244
175
|
}
|
|
245
176
|
|
|
246
177
|
/**
|
|
@@ -269,9 +200,8 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
269
200
|
var contentTypes = [];
|
|
270
201
|
var accepts = ['application/json; charset=UTF-8'];
|
|
271
202
|
var returnType = 'Blob';
|
|
272
|
-
|
|
273
203
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
274
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
204
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
275
205
|
return Collection.fromApiClient(this.apiClient.callApi('/memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
276
206
|
'path': '/memberships',
|
|
277
207
|
'httpMethod': 'GET',
|
|
@@ -285,9 +215,8 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
285
215
|
'accepts': accepts,
|
|
286
216
|
'returnType': returnType
|
|
287
217
|
});
|
|
288
|
-
} else {
|
|
289
|
-
return this.apiClient.callApi('/memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
290
218
|
}
|
|
219
|
+
return this.apiClient.callApi('/memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
291
220
|
}
|
|
292
221
|
|
|
293
222
|
/**
|
|
@@ -305,14 +234,59 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
|
|
|
305
234
|
key: "getMemberships",
|
|
306
235
|
value: function getMemberships(opts) {
|
|
307
236
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
308
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
237
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
309
238
|
return this.getMembershipsWithHttpInfo(opts);
|
|
310
|
-
} else {
|
|
311
|
-
return this.getMembershipsWithHttpInfo(opts).then(function (response_and_data) {
|
|
312
|
-
return response_and_data.data;
|
|
313
|
-
});
|
|
314
239
|
}
|
|
240
|
+
return this.getMembershipsWithHttpInfo(opts).then(function (response_and_data) {
|
|
241
|
+
return response_and_data.data;
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Update a membership
|
|
247
|
+
* An existing membership can be updated by making a `PUT` request on the URL for that goal. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. Memberships on `goals` and `projects` can be updated. Returns the full record of the updated membership.
|
|
248
|
+
* @param {module:model/Object} body The membership to update.
|
|
249
|
+
* @param {String} membership_gid Globally unique identifier for the membership.
|
|
250
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
251
|
+
*/
|
|
252
|
+
}, {
|
|
253
|
+
key: "updateMembershipWithHttpInfo",
|
|
254
|
+
value: function updateMembershipWithHttpInfo(body, membership_gid) {
|
|
255
|
+
var postBody = body;
|
|
256
|
+
// verify the required parameter 'body' is set
|
|
257
|
+
if (body === undefined || body === null) {
|
|
258
|
+
throw new Error("Missing the required parameter 'body' when calling updateMembership");
|
|
259
|
+
}
|
|
260
|
+
// verify the required parameter 'membership_gid' is set
|
|
261
|
+
if (membership_gid === undefined || membership_gid === null) {
|
|
262
|
+
throw new Error("Missing the required parameter 'membership_gid' when calling updateMembership");
|
|
263
|
+
}
|
|
264
|
+
var pathParams = {
|
|
265
|
+
'membership_gid': membership_gid
|
|
266
|
+
};
|
|
267
|
+
var queryParams = {};
|
|
268
|
+
var headerParams = {};
|
|
269
|
+
var formParams = {};
|
|
270
|
+
var authNames = ['personalAccessToken'];
|
|
271
|
+
var contentTypes = ['application/json; charset=UTF-8'];
|
|
272
|
+
var accepts = ['application/json; charset=UTF-8'];
|
|
273
|
+
var returnType = 'Blob';
|
|
274
|
+
return this.apiClient.callApi('/memberships/{membership_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Update a membership
|
|
279
|
+
* An existing membership can be updated by making a `PUT` request on the URL for that goal. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. Memberships on `goals` and `projects` can be updated. Returns the full record of the updated membership.
|
|
280
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body The membership to update.
|
|
281
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
|
|
282
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
|
|
283
|
+
*/
|
|
284
|
+
}, {
|
|
285
|
+
key: "updateMembership",
|
|
286
|
+
value: function updateMembership(body, membership_gid) {
|
|
287
|
+
return this.updateMembershipWithHttpInfo(body, membership_gid).then(function (response_and_data) {
|
|
288
|
+
return response_and_data.data;
|
|
289
|
+
});
|
|
315
290
|
}
|
|
316
291
|
}]);
|
|
317
|
-
return MembershipsApi;
|
|
318
292
|
}();
|
|
@@ -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
|
* OrganizationExports service.
|
|
31
31
|
* @module api/OrganizationExportsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.4
|
|
33
33
|
*/
|
|
34
34
|
var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -53,7 +53,7 @@ var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/funct
|
|
|
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(OrganizationExportsApi, [{
|
|
56
|
+
return _createClass(OrganizationExportsApi, [{
|
|
57
57
|
key: "createOrganizationExportWithHttpInfo",
|
|
58
58
|
value: function createOrganizationExportWithHttpInfo(body, opts) {
|
|
59
59
|
opts = opts || {};
|
|
@@ -72,25 +72,7 @@ var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/funct
|
|
|
72
72
|
var contentTypes = ['application/json; charset=UTF-8'];
|
|
73
73
|
var accepts = ['application/json; charset=UTF-8'];
|
|
74
74
|
var returnType = 'Blob';
|
|
75
|
-
|
|
76
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
77
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
78
|
-
return Collection.fromApiClient(this.apiClient.callApi('/organization_exports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
79
|
-
'path': '/organization_exports',
|
|
80
|
-
'httpMethod': 'POST',
|
|
81
|
-
'pathParams': pathParams,
|
|
82
|
-
'queryParams': queryParams,
|
|
83
|
-
'headerParams': headerParams,
|
|
84
|
-
'formParams': formParams,
|
|
85
|
-
'bodyParam': postBody,
|
|
86
|
-
'authNames': authNames,
|
|
87
|
-
'contentTypes': contentTypes,
|
|
88
|
-
'accepts': accepts,
|
|
89
|
-
'returnType': returnType
|
|
90
|
-
});
|
|
91
|
-
} else {
|
|
92
|
-
return this.apiClient.callApi('/organization_exports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
93
|
-
}
|
|
75
|
+
return this.apiClient.callApi('/organization_exports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
94
76
|
}
|
|
95
77
|
|
|
96
78
|
/**
|
|
@@ -104,14 +86,9 @@ var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/funct
|
|
|
104
86
|
}, {
|
|
105
87
|
key: "createOrganizationExport",
|
|
106
88
|
value: function createOrganizationExport(body, opts) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
} else {
|
|
111
|
-
return this.createOrganizationExportWithHttpInfo(body, opts).then(function (response_and_data) {
|
|
112
|
-
return response_and_data.data;
|
|
113
|
-
});
|
|
114
|
-
}
|
|
89
|
+
return this.createOrganizationExportWithHttpInfo(body, opts).then(function (response_and_data) {
|
|
90
|
+
return response_and_data.data;
|
|
91
|
+
});
|
|
115
92
|
}
|
|
116
93
|
|
|
117
94
|
/**
|
|
@@ -143,25 +120,7 @@ var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/funct
|
|
|
143
120
|
var contentTypes = [];
|
|
144
121
|
var accepts = ['application/json; charset=UTF-8'];
|
|
145
122
|
var returnType = 'Blob';
|
|
146
|
-
|
|
147
|
-
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
148
|
-
if (this.apiClient.RETURN_COLLECTION && false) {
|
|
149
|
-
return Collection.fromApiClient(this.apiClient.callApi('/organization_exports/{organization_export_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
150
|
-
'path': '/organization_exports/{organization_export_gid}',
|
|
151
|
-
'httpMethod': 'GET',
|
|
152
|
-
'pathParams': pathParams,
|
|
153
|
-
'queryParams': queryParams,
|
|
154
|
-
'headerParams': headerParams,
|
|
155
|
-
'formParams': formParams,
|
|
156
|
-
'bodyParam': postBody,
|
|
157
|
-
'authNames': authNames,
|
|
158
|
-
'contentTypes': contentTypes,
|
|
159
|
-
'accepts': accepts,
|
|
160
|
-
'returnType': returnType
|
|
161
|
-
});
|
|
162
|
-
} else {
|
|
163
|
-
return this.apiClient.callApi('/organization_exports/{organization_export_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
164
|
-
}
|
|
123
|
+
return this.apiClient.callApi('/organization_exports/{organization_export_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
165
124
|
}
|
|
166
125
|
|
|
167
126
|
/**
|
|
@@ -175,15 +134,9 @@ var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/funct
|
|
|
175
134
|
}, {
|
|
176
135
|
key: "getOrganizationExport",
|
|
177
136
|
value: function getOrganizationExport(organization_export_gid, opts) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
} else {
|
|
182
|
-
return this.getOrganizationExportWithHttpInfo(organization_export_gid, opts).then(function (response_and_data) {
|
|
183
|
-
return response_and_data.data;
|
|
184
|
-
});
|
|
185
|
-
}
|
|
137
|
+
return this.getOrganizationExportWithHttpInfo(organization_export_gid, opts).then(function (response_and_data) {
|
|
138
|
+
return response_and_data.data;
|
|
139
|
+
});
|
|
186
140
|
}
|
|
187
141
|
}]);
|
|
188
|
-
return OrganizationExportsApi;
|
|
189
142
|
}();
|
|
@@ -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
|
* PortfolioMemberships service.
|
|
31
31
|
* @module api/PortfolioMembershipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.4
|
|
33
33
|
*/
|
|
34
34
|
var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -53,7 +53,7 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
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(PortfolioMembershipsApi, [{
|
|
56
|
+
return _createClass(PortfolioMembershipsApi, [{
|
|
57
57
|
key: "getPortfolioMembershipWithHttpInfo",
|
|
58
58
|
value: function getPortfolioMembershipWithHttpInfo(portfolio_membership_gid, opts) {
|
|
59
59
|
opts = opts || {};
|
|
@@ -74,25 +74,7 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
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('/portfolio_memberships/{portfolio_membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
81
|
-
'path': '/portfolio_memberships/{portfolio_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('/portfolio_memberships/{portfolio_membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
95
|
-
}
|
|
77
|
+
return this.apiClient.callApi('/portfolio_memberships/{portfolio_membership_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
96
78
|
}
|
|
97
79
|
|
|
98
80
|
/**
|
|
@@ -106,14 +88,9 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
106
88
|
}, {
|
|
107
89
|
key: "getPortfolioMembership",
|
|
108
90
|
value: function getPortfolioMembership(portfolio_membership_gid, opts) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
} else {
|
|
113
|
-
return this.getPortfolioMembershipWithHttpInfo(portfolio_membership_gid, opts).then(function (response_and_data) {
|
|
114
|
-
return response_and_data.data;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
91
|
+
return this.getPortfolioMembershipWithHttpInfo(portfolio_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 PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
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('/portfolio_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
150
126
|
'path': '/portfolio_memberships',
|
|
151
127
|
'httpMethod': 'GET',
|
|
@@ -159,9 +135,8 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
159
135
|
'accepts': accepts,
|
|
160
136
|
'returnType': returnType
|
|
161
137
|
});
|
|
162
|
-
} else {
|
|
163
|
-
return this.apiClient.callApi('/portfolio_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
164
138
|
}
|
|
139
|
+
return this.apiClient.callApi('/portfolio_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
165
140
|
}
|
|
166
141
|
|
|
167
142
|
/**
|
|
@@ -180,13 +155,12 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
180
155
|
key: "getPortfolioMemberships",
|
|
181
156
|
value: function getPortfolioMemberships(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.getPortfolioMembershipsWithHttpInfo(opts);
|
|
185
|
-
} else {
|
|
186
|
-
return this.getPortfolioMembershipsWithHttpInfo(opts).then(function (response_and_data) {
|
|
187
|
-
return response_and_data.data;
|
|
188
|
-
});
|
|
189
160
|
}
|
|
161
|
+
return this.getPortfolioMembershipsWithHttpInfo(opts).then(function (response_and_data) {
|
|
162
|
+
return response_and_data.data;
|
|
163
|
+
});
|
|
190
164
|
}
|
|
191
165
|
|
|
192
166
|
/**
|
|
@@ -221,9 +195,8 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
221
195
|
var contentTypes = [];
|
|
222
196
|
var accepts = ['application/json; charset=UTF-8'];
|
|
223
197
|
var returnType = 'Blob';
|
|
224
|
-
|
|
225
198
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
226
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
199
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
227
200
|
return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/portfolio_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
|
|
228
201
|
'path': '/portfolios/{portfolio_gid}/portfolio_memberships',
|
|
229
202
|
'httpMethod': 'GET',
|
|
@@ -237,9 +210,8 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
237
210
|
'accepts': accepts,
|
|
238
211
|
'returnType': returnType
|
|
239
212
|
});
|
|
240
|
-
} else {
|
|
241
|
-
return this.apiClient.callApi('/portfolios/{portfolio_gid}/portfolio_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
242
213
|
}
|
|
214
|
+
return this.apiClient.callApi('/portfolios/{portfolio_gid}/portfolio_memberships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
243
215
|
}
|
|
244
216
|
|
|
245
217
|
/**
|
|
@@ -257,14 +229,12 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
|
|
|
257
229
|
key: "getPortfolioMembershipsForPortfolio",
|
|
258
230
|
value: function getPortfolioMembershipsForPortfolio(portfolio_gid, opts) {
|
|
259
231
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
260
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
232
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
261
233
|
return this.getPortfolioMembershipsForPortfolioWithHttpInfo(portfolio_gid, opts);
|
|
262
|
-
} else {
|
|
263
|
-
return this.getPortfolioMembershipsForPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
|
|
264
|
-
return response_and_data.data;
|
|
265
|
-
});
|
|
266
234
|
}
|
|
235
|
+
return this.getPortfolioMembershipsForPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
|
|
236
|
+
return response_and_data.data;
|
|
237
|
+
});
|
|
267
238
|
}
|
|
268
239
|
}]);
|
|
269
|
-
return PortfolioMembershipsApi;
|
|
270
240
|
}();
|