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
package/src/api/JobsApi.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
8
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
*
|
|
10
|
-
* Swagger Codegen version: 3.0.
|
|
10
|
+
* Swagger Codegen version: 3.0.54
|
|
11
11
|
*
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
|
|
|
18
18
|
/**
|
|
19
19
|
* Jobs service.
|
|
20
20
|
* @module api/JobsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.4
|
|
22
22
|
*/
|
|
23
23
|
export class JobsApi {
|
|
24
24
|
|
|
@@ -71,36 +71,11 @@ export class JobsApi {
|
|
|
71
71
|
let accepts = ['application/json; charset=UTF-8'];
|
|
72
72
|
let returnType = 'Blob';
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
80
|
-
authNames, contentTypes, accepts, returnType
|
|
81
|
-
),
|
|
82
|
-
this.apiClient,
|
|
83
|
-
{
|
|
84
|
-
'path': '/jobs/{job_gid}',
|
|
85
|
-
'httpMethod': 'GET',
|
|
86
|
-
'pathParams': pathParams,
|
|
87
|
-
'queryParams': queryParams,
|
|
88
|
-
'headerParams': headerParams,
|
|
89
|
-
'formParams': formParams,
|
|
90
|
-
'bodyParam': postBody,
|
|
91
|
-
'authNames': authNames,
|
|
92
|
-
'contentTypes': contentTypes,
|
|
93
|
-
'accepts': accepts,
|
|
94
|
-
'returnType': returnType
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
} else {
|
|
98
|
-
return this.apiClient.callApi(
|
|
99
|
-
'/jobs/{job_gid}', 'GET',
|
|
100
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
101
|
-
authNames, contentTypes, accepts, returnType
|
|
102
|
-
);
|
|
103
|
-
}
|
|
74
|
+
return this.apiClient.callApi(
|
|
75
|
+
'/jobs/{job_gid}', 'GET',
|
|
76
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
77
|
+
authNames, contentTypes, accepts, returnType
|
|
78
|
+
);
|
|
104
79
|
}
|
|
105
80
|
|
|
106
81
|
/**
|
|
@@ -113,15 +88,10 @@ export class JobsApi {
|
|
|
113
88
|
*/
|
|
114
89
|
getJob(job_gid, opts) {
|
|
115
90
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return this.getJobWithHttpInfo(job_gid, opts)
|
|
121
|
-
.then(function(response_and_data) {
|
|
122
|
-
return response_and_data.data;
|
|
123
|
-
});
|
|
124
|
-
}
|
|
91
|
+
return this.getJobWithHttpInfo(job_gid, opts)
|
|
92
|
+
.then(function(response_and_data) {
|
|
93
|
+
return response_and_data.data;
|
|
94
|
+
});
|
|
125
95
|
}
|
|
126
96
|
|
|
127
97
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
8
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
*
|
|
10
|
-
* Swagger Codegen version: 3.0.
|
|
10
|
+
* Swagger Codegen version: 3.0.54
|
|
11
11
|
*
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
|
|
|
18
18
|
/**
|
|
19
19
|
* Memberships service.
|
|
20
20
|
* @module api/MembershipsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.4
|
|
22
22
|
*/
|
|
23
23
|
export class MembershipsApi {
|
|
24
24
|
|
|
@@ -38,7 +38,7 @@ export class MembershipsApi {
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Create a membership
|
|
41
|
-
* 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.
|
|
41
|
+
* 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.
|
|
42
42
|
* @param {Object} opts Optional parameters
|
|
43
43
|
* @param {module:model/Object} opts.body The updated fields for the membership.
|
|
44
44
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
@@ -66,62 +66,32 @@ export class MembershipsApi {
|
|
|
66
66
|
let accepts = ['application/json; charset=UTF-8'];
|
|
67
67
|
let returnType = 'Blob';
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
75
|
-
authNames, contentTypes, accepts, returnType
|
|
76
|
-
),
|
|
77
|
-
this.apiClient,
|
|
78
|
-
{
|
|
79
|
-
'path': '/memberships',
|
|
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
|
-
)
|
|
92
|
-
} else {
|
|
93
|
-
return this.apiClient.callApi(
|
|
94
|
-
'/memberships', 'POST',
|
|
95
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
96
|
-
authNames, contentTypes, accepts, returnType
|
|
97
|
-
);
|
|
98
|
-
}
|
|
69
|
+
return this.apiClient.callApi(
|
|
70
|
+
'/memberships', 'POST',
|
|
71
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
72
|
+
authNames, contentTypes, accepts, returnType
|
|
73
|
+
);
|
|
99
74
|
}
|
|
100
75
|
|
|
101
76
|
/**
|
|
102
77
|
* Create a membership
|
|
103
|
-
* 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.
|
|
78
|
+
* 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.
|
|
104
79
|
* @param {Object} opts Optional parameters
|
|
105
80
|
* @param {module:model/Object} opts.body The updated fields for the membership.
|
|
106
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
|
|
107
82
|
*/
|
|
108
83
|
createMembership(opts) {
|
|
109
84
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return this.createMembershipWithHttpInfo(opts)
|
|
115
|
-
.then(function(response_and_data) {
|
|
116
|
-
return response_and_data.data;
|
|
117
|
-
});
|
|
118
|
-
}
|
|
85
|
+
return this.createMembershipWithHttpInfo(opts)
|
|
86
|
+
.then(function(response_and_data) {
|
|
87
|
+
return response_and_data.data;
|
|
88
|
+
});
|
|
119
89
|
}
|
|
120
90
|
|
|
121
91
|
|
|
122
92
|
/**
|
|
123
93
|
* Delete a membership
|
|
124
|
-
* A specific, existing membership can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
94
|
+
* 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.
|
|
125
95
|
* @param {String} membership_gid Globally unique identifier for the membership.
|
|
126
96
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
127
97
|
*/
|
|
@@ -150,55 +120,25 @@ export class MembershipsApi {
|
|
|
150
120
|
let accepts = ['application/json; charset=UTF-8'];
|
|
151
121
|
let returnType = 'Blob';
|
|
152
122
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
159
|
-
authNames, contentTypes, accepts, returnType
|
|
160
|
-
),
|
|
161
|
-
this.apiClient,
|
|
162
|
-
{
|
|
163
|
-
'path': '/memberships/{membership_gid}',
|
|
164
|
-
'httpMethod': 'DELETE',
|
|
165
|
-
'pathParams': pathParams,
|
|
166
|
-
'queryParams': queryParams,
|
|
167
|
-
'headerParams': headerParams,
|
|
168
|
-
'formParams': formParams,
|
|
169
|
-
'bodyParam': postBody,
|
|
170
|
-
'authNames': authNames,
|
|
171
|
-
'contentTypes': contentTypes,
|
|
172
|
-
'accepts': accepts,
|
|
173
|
-
'returnType': returnType
|
|
174
|
-
}
|
|
175
|
-
)
|
|
176
|
-
} else {
|
|
177
|
-
return this.apiClient.callApi(
|
|
178
|
-
'/memberships/{membership_gid}', 'DELETE',
|
|
179
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
180
|
-
authNames, contentTypes, accepts, returnType
|
|
181
|
-
);
|
|
182
|
-
}
|
|
123
|
+
return this.apiClient.callApi(
|
|
124
|
+
'/memberships/{membership_gid}', 'DELETE',
|
|
125
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
126
|
+
authNames, contentTypes, accepts, returnType
|
|
127
|
+
);
|
|
183
128
|
}
|
|
184
129
|
|
|
185
130
|
/**
|
|
186
131
|
* Delete a membership
|
|
187
|
-
* A specific, existing membership can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
132
|
+
* 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.
|
|
188
133
|
* @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
|
|
189
134
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
|
|
190
135
|
*/
|
|
191
136
|
deleteMembership(membership_gid) {
|
|
192
137
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
return this.deleteMembershipWithHttpInfo(membership_gid)
|
|
198
|
-
.then(function(response_and_data) {
|
|
199
|
-
return response_and_data.data;
|
|
200
|
-
});
|
|
201
|
-
}
|
|
138
|
+
return this.deleteMembershipWithHttpInfo(membership_gid)
|
|
139
|
+
.then(function(response_and_data) {
|
|
140
|
+
return response_and_data.data;
|
|
141
|
+
});
|
|
202
142
|
}
|
|
203
143
|
|
|
204
144
|
|
|
@@ -237,36 +177,11 @@ export class MembershipsApi {
|
|
|
237
177
|
let accepts = ['application/json; charset=UTF-8'];
|
|
238
178
|
let returnType = 'Blob';
|
|
239
179
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
246
|
-
authNames, contentTypes, accepts, returnType
|
|
247
|
-
),
|
|
248
|
-
this.apiClient,
|
|
249
|
-
{
|
|
250
|
-
'path': '/memberships/{membership_gid}',
|
|
251
|
-
'httpMethod': 'GET',
|
|
252
|
-
'pathParams': pathParams,
|
|
253
|
-
'queryParams': queryParams,
|
|
254
|
-
'headerParams': headerParams,
|
|
255
|
-
'formParams': formParams,
|
|
256
|
-
'bodyParam': postBody,
|
|
257
|
-
'authNames': authNames,
|
|
258
|
-
'contentTypes': contentTypes,
|
|
259
|
-
'accepts': accepts,
|
|
260
|
-
'returnType': returnType
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
} else {
|
|
264
|
-
return this.apiClient.callApi(
|
|
265
|
-
'/memberships/{membership_gid}', 'GET',
|
|
266
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
267
|
-
authNames, contentTypes, accepts, returnType
|
|
268
|
-
);
|
|
269
|
-
}
|
|
180
|
+
return this.apiClient.callApi(
|
|
181
|
+
'/memberships/{membership_gid}', 'GET',
|
|
182
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
183
|
+
authNames, contentTypes, accepts, returnType
|
|
184
|
+
);
|
|
270
185
|
}
|
|
271
186
|
|
|
272
187
|
/**
|
|
@@ -279,15 +194,10 @@ export class MembershipsApi {
|
|
|
279
194
|
*/
|
|
280
195
|
getMembership(membership_gid, opts) {
|
|
281
196
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
return this.getMembershipWithHttpInfo(membership_gid, opts)
|
|
287
|
-
.then(function(response_and_data) {
|
|
288
|
-
return response_and_data.data;
|
|
289
|
-
});
|
|
290
|
-
}
|
|
197
|
+
return this.getMembershipWithHttpInfo(membership_gid, opts)
|
|
198
|
+
.then(function(response_and_data) {
|
|
199
|
+
return response_and_data.data;
|
|
200
|
+
});
|
|
291
201
|
}
|
|
292
202
|
|
|
293
203
|
|
|
@@ -324,9 +234,8 @@ export class MembershipsApi {
|
|
|
324
234
|
let contentTypes = [];
|
|
325
235
|
let accepts = ['application/json; charset=UTF-8'];
|
|
326
236
|
let returnType = 'Blob';
|
|
327
|
-
|
|
328
237
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
329
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
238
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
330
239
|
return Collection.fromApiClient(
|
|
331
240
|
this.apiClient.callApi(
|
|
332
241
|
'/memberships', 'GET',
|
|
@@ -348,13 +257,13 @@ export class MembershipsApi {
|
|
|
348
257
|
'returnType': returnType
|
|
349
258
|
}
|
|
350
259
|
)
|
|
351
|
-
} else {
|
|
352
|
-
return this.apiClient.callApi(
|
|
353
|
-
'/memberships', 'GET',
|
|
354
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
355
|
-
authNames, contentTypes, accepts, returnType
|
|
356
|
-
);
|
|
357
260
|
}
|
|
261
|
+
|
|
262
|
+
return this.apiClient.callApi(
|
|
263
|
+
'/memberships', 'GET',
|
|
264
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
265
|
+
authNames, contentTypes, accepts, returnType
|
|
266
|
+
);
|
|
358
267
|
}
|
|
359
268
|
|
|
360
269
|
/**
|
|
@@ -369,16 +278,74 @@ export class MembershipsApi {
|
|
|
369
278
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseArray}
|
|
370
279
|
*/
|
|
371
280
|
getMemberships(opts) {
|
|
372
|
-
|
|
373
281
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
374
|
-
if (this.apiClient.RETURN_COLLECTION
|
|
282
|
+
if (this.apiClient.RETURN_COLLECTION) {
|
|
375
283
|
return this.getMembershipsWithHttpInfo(opts)
|
|
376
|
-
} else {
|
|
377
|
-
return this.getMembershipsWithHttpInfo(opts)
|
|
378
|
-
.then(function(response_and_data) {
|
|
379
|
-
return response_and_data.data;
|
|
380
|
-
});
|
|
381
284
|
}
|
|
285
|
+
|
|
286
|
+
return this.getMembershipsWithHttpInfo(opts)
|
|
287
|
+
.then(function(response_and_data) {
|
|
288
|
+
return response_and_data.data;
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Update a membership
|
|
295
|
+
* 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.
|
|
296
|
+
* @param {module:model/Object} body The membership to update.
|
|
297
|
+
* @param {String} membership_gid Globally unique identifier for the membership.
|
|
298
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
299
|
+
*/
|
|
300
|
+
updateMembershipWithHttpInfo(body, membership_gid) {
|
|
301
|
+
|
|
302
|
+
let postBody = body;
|
|
303
|
+
// verify the required parameter 'body' is set
|
|
304
|
+
if (body === undefined || body === null) {
|
|
305
|
+
throw new Error("Missing the required parameter 'body' when calling updateMembership");
|
|
306
|
+
}
|
|
307
|
+
// verify the required parameter 'membership_gid' is set
|
|
308
|
+
if (membership_gid === undefined || membership_gid === null) {
|
|
309
|
+
throw new Error("Missing the required parameter 'membership_gid' when calling updateMembership");
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
let pathParams = {
|
|
313
|
+
'membership_gid': membership_gid
|
|
314
|
+
};
|
|
315
|
+
let queryParams = {};
|
|
316
|
+
|
|
317
|
+
let headerParams = {
|
|
318
|
+
|
|
319
|
+
};
|
|
320
|
+
let formParams = {
|
|
321
|
+
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
let authNames = ['personalAccessToken'];
|
|
325
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
326
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
327
|
+
let returnType = 'Blob';
|
|
328
|
+
|
|
329
|
+
return this.apiClient.callApi(
|
|
330
|
+
'/memberships/{membership_gid}', 'PUT',
|
|
331
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
332
|
+
authNames, contentTypes, accepts, returnType
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Update a membership
|
|
338
|
+
* 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.
|
|
339
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body The membership to update.
|
|
340
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
|
|
341
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
|
|
342
|
+
*/
|
|
343
|
+
updateMembership(body, membership_gid) {
|
|
344
|
+
|
|
345
|
+
return this.updateMembershipWithHttpInfo(body, membership_gid)
|
|
346
|
+
.then(function(response_and_data) {
|
|
347
|
+
return response_and_data.data;
|
|
348
|
+
});
|
|
382
349
|
}
|
|
383
350
|
|
|
384
351
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
8
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
*
|
|
10
|
-
* Swagger Codegen version: 3.0.
|
|
10
|
+
* Swagger Codegen version: 3.0.54
|
|
11
11
|
*
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
|
|
|
18
18
|
/**
|
|
19
19
|
* OrganizationExports service.
|
|
20
20
|
* @module api/OrganizationExportsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.4
|
|
22
22
|
*/
|
|
23
23
|
export class OrganizationExportsApi {
|
|
24
24
|
|
|
@@ -71,36 +71,11 @@ export class OrganizationExportsApi {
|
|
|
71
71
|
let accepts = ['application/json; charset=UTF-8'];
|
|
72
72
|
let returnType = 'Blob';
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
80
|
-
authNames, contentTypes, accepts, returnType
|
|
81
|
-
),
|
|
82
|
-
this.apiClient,
|
|
83
|
-
{
|
|
84
|
-
'path': '/organization_exports',
|
|
85
|
-
'httpMethod': 'POST',
|
|
86
|
-
'pathParams': pathParams,
|
|
87
|
-
'queryParams': queryParams,
|
|
88
|
-
'headerParams': headerParams,
|
|
89
|
-
'formParams': formParams,
|
|
90
|
-
'bodyParam': postBody,
|
|
91
|
-
'authNames': authNames,
|
|
92
|
-
'contentTypes': contentTypes,
|
|
93
|
-
'accepts': accepts,
|
|
94
|
-
'returnType': returnType
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
} else {
|
|
98
|
-
return this.apiClient.callApi(
|
|
99
|
-
'/organization_exports', 'POST',
|
|
100
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
101
|
-
authNames, contentTypes, accepts, returnType
|
|
102
|
-
);
|
|
103
|
-
}
|
|
74
|
+
return this.apiClient.callApi(
|
|
75
|
+
'/organization_exports', 'POST',
|
|
76
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
77
|
+
authNames, contentTypes, accepts, returnType
|
|
78
|
+
);
|
|
104
79
|
}
|
|
105
80
|
|
|
106
81
|
/**
|
|
@@ -113,15 +88,10 @@ export class OrganizationExportsApi {
|
|
|
113
88
|
*/
|
|
114
89
|
createOrganizationExport(body, opts) {
|
|
115
90
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return this.createOrganizationExportWithHttpInfo(body, opts)
|
|
121
|
-
.then(function(response_and_data) {
|
|
122
|
-
return response_and_data.data;
|
|
123
|
-
});
|
|
124
|
-
}
|
|
91
|
+
return this.createOrganizationExportWithHttpInfo(body, opts)
|
|
92
|
+
.then(function(response_and_data) {
|
|
93
|
+
return response_and_data.data;
|
|
94
|
+
});
|
|
125
95
|
}
|
|
126
96
|
|
|
127
97
|
|
|
@@ -160,36 +130,11 @@ export class OrganizationExportsApi {
|
|
|
160
130
|
let accepts = ['application/json; charset=UTF-8'];
|
|
161
131
|
let returnType = 'Blob';
|
|
162
132
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
169
|
-
authNames, contentTypes, accepts, returnType
|
|
170
|
-
),
|
|
171
|
-
this.apiClient,
|
|
172
|
-
{
|
|
173
|
-
'path': '/organization_exports/{organization_export_gid}',
|
|
174
|
-
'httpMethod': 'GET',
|
|
175
|
-
'pathParams': pathParams,
|
|
176
|
-
'queryParams': queryParams,
|
|
177
|
-
'headerParams': headerParams,
|
|
178
|
-
'formParams': formParams,
|
|
179
|
-
'bodyParam': postBody,
|
|
180
|
-
'authNames': authNames,
|
|
181
|
-
'contentTypes': contentTypes,
|
|
182
|
-
'accepts': accepts,
|
|
183
|
-
'returnType': returnType
|
|
184
|
-
}
|
|
185
|
-
)
|
|
186
|
-
} else {
|
|
187
|
-
return this.apiClient.callApi(
|
|
188
|
-
'/organization_exports/{organization_export_gid}', 'GET',
|
|
189
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
190
|
-
authNames, contentTypes, accepts, returnType
|
|
191
|
-
);
|
|
192
|
-
}
|
|
133
|
+
return this.apiClient.callApi(
|
|
134
|
+
'/organization_exports/{organization_export_gid}', 'GET',
|
|
135
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
136
|
+
authNames, contentTypes, accepts, returnType
|
|
137
|
+
);
|
|
193
138
|
}
|
|
194
139
|
|
|
195
140
|
/**
|
|
@@ -202,15 +147,10 @@ export class OrganizationExportsApi {
|
|
|
202
147
|
*/
|
|
203
148
|
getOrganizationExport(organization_export_gid, opts) {
|
|
204
149
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
return this.getOrganizationExportWithHttpInfo(organization_export_gid, opts)
|
|
210
|
-
.then(function(response_and_data) {
|
|
211
|
-
return response_and_data.data;
|
|
212
|
-
});
|
|
213
|
-
}
|
|
150
|
+
return this.getOrganizationExportWithHttpInfo(organization_export_gid, opts)
|
|
151
|
+
.then(function(response_and_data) {
|
|
152
|
+
return response_and_data.data;
|
|
153
|
+
});
|
|
214
154
|
}
|
|
215
155
|
|
|
216
156
|
}
|