@emilgroup/partner-sdk 1.1.0 → 1.3.0
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/.openapi-generator/FILES +14 -1
- package/README.md +2 -2
- package/api/default-api.ts +8 -4
- package/api/partner-relations-api.ts +638 -19
- package/api/partner-tags-api.ts +662 -0
- package/api/partner-version-api.ts +31 -31
- package/api/partners-api.ts +118 -0
- package/api.ts +2 -0
- package/base.ts +5 -1
- package/dist/api/default-api.d.ts +8 -4
- package/dist/api/default-api.js +8 -4
- package/dist/api/partner-relations-api.d.ts +360 -16
- package/dist/api/partner-relations-api.js +513 -8
- package/dist/api/partner-tags-api.d.ts +375 -0
- package/dist/api/partner-tags-api.js +629 -0
- package/dist/api/partner-version-api.d.ts +31 -31
- package/dist/api/partner-version-api.js +16 -16
- package/dist/api/partners-api.d.ts +65 -0
- package/dist/api/partners-api.js +99 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +4 -1
- package/dist/models/create-partner-relation-request-dto-rest.d.ts +65 -0
- package/dist/models/create-partner-relation-request-dto-rest.js +26 -0
- package/dist/models/create-partner-relation-response-class.d.ts +25 -0
- package/dist/models/create-partner-type-request-dto.d.ts +13 -3
- package/dist/models/create-partner-type-request-dto.js +5 -0
- package/dist/models/create-tag-request-dto.d.ts +36 -0
- package/dist/models/create-tag-request-dto.js +15 -0
- package/dist/models/create-tag-response-class.d.ts +25 -0
- package/dist/models/create-tag-response-class.js +15 -0
- package/dist/models/get-partner-relation-class.d.ts +25 -0
- package/dist/models/get-partner-relation-class.js +15 -0
- package/dist/models/get-tag-response-class.d.ts +25 -0
- package/dist/models/get-tag-response-class.js +15 -0
- package/dist/models/index.d.ts +13 -1
- package/dist/models/index.js +13 -1
- package/dist/models/list-partner-relation-class.d.ts +31 -0
- package/dist/models/list-partner-relation-class.js +15 -0
- package/dist/models/list-tags-response-class.d.ts +31 -0
- package/dist/models/list-tags-response-class.js +15 -0
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/partner-relation-class.d.ts +72 -0
- package/dist/models/partner-relation-class.js +15 -0
- package/dist/models/partner-type-class.d.ts +11 -0
- package/dist/models/partner-type-class.js +5 -0
- package/dist/models/tag-class.d.ts +54 -0
- package/dist/models/tag-class.js +15 -0
- package/dist/models/tag-partner-request-dto-rest.d.ts +24 -0
- package/dist/models/tag-partner-request-dto-rest.js +15 -0
- package/dist/models/update-partner-relation-request-dto-rest.d.ts +36 -0
- package/dist/models/update-partner-relation-request-dto-rest.js +15 -0
- package/dist/models/update-partner-type-request-dto.d.ts +14 -4
- package/dist/models/update-partner-type-request-dto.js +5 -0
- package/dist/models/update-tag-response-class.d.ts +25 -0
- package/dist/models/update-tag-response-class.js +15 -0
- package/models/create-partner-relation-request-dto-rest.ts +74 -0
- package/models/create-partner-relation-response-class.ts +31 -0
- package/models/create-partner-type-request-dto.ts +16 -3
- package/models/create-tag-request-dto.ts +42 -0
- package/models/create-tag-response-class.ts +31 -0
- package/models/get-partner-relation-class.ts +31 -0
- package/models/get-tag-response-class.ts +31 -0
- package/models/index.ts +13 -1
- package/models/list-partner-relation-class.ts +37 -0
- package/models/list-tags-response-class.ts +37 -0
- package/models/partner-class.ts +6 -0
- package/models/partner-relation-class.ts +78 -0
- package/models/partner-type-class.ts +14 -0
- package/models/tag-class.ts +60 -0
- package/models/tag-partner-request-dto-rest.ts +30 -0
- package/models/update-partner-relation-request-dto-rest.ts +42 -0
- package/models/update-partner-type-request-dto.ts +17 -4
- package/models/update-tag-response-class.ts +31 -0
- package/package.json +1 -1
- package/dist/models/partner-type-custom-schema-dto.d.ts +0 -66
- package/models/partner-type-custom-schema-dto.ts +0 -72
- /package/dist/models/{partner-type-custom-schema-dto.js → create-partner-relation-response-class.js} +0 -0
|
@@ -92,6 +92,151 @@ var base_1 = require("../base");
|
|
|
92
92
|
var PartnerRelationsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
97
|
+
* @summary Create the partner relation
|
|
98
|
+
* @param {CreatePartnerRelationRequestDtoRest} createPartnerRelationRequestDtoRest
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createPartnerRelation: function (createPartnerRelationRequestDtoRest, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'createPartnerRelationRequestDtoRest' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPartnerRelation', 'createPartnerRelationRequestDtoRest', createPartnerRelationRequestDtoRest);
|
|
112
|
+
localVarPath = "/partnerservice/v1/partners/relations";
|
|
113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
baseAccessToken = configuration.accessToken;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPartnerRelationRequestDtoRest, localVarRequestOptions, configuration);
|
|
136
|
+
return [2 /*return*/, {
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
146
|
+
* @summary Delete the partner-relation
|
|
147
|
+
* @param {number} id
|
|
148
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
deletePartnerRelation: function (id, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'id' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('deletePartnerRelation', 'id', id);
|
|
161
|
+
localVarPath = "/partnerservice/v1/partners/relations/{id}"
|
|
162
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
163
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
baseAccessToken = configuration.accessToken;
|
|
167
|
+
}
|
|
168
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
169
|
+
localVarHeaderParameter = {};
|
|
170
|
+
localVarQueryParameter = {};
|
|
171
|
+
// authentication bearer required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
174
|
+
case 1:
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return [2 /*return*/, {
|
|
185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
}];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* Retrieve a single partner relation identified by its id
|
|
194
|
+
* @summary Retrieve the partner relation
|
|
195
|
+
* @param {number} id Id of the partner relation
|
|
196
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
getPartnerRelation: function (id, authorization, options) {
|
|
201
|
+
if (options === void 0) { options = {}; }
|
|
202
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
// verify required parameter 'id' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('getPartnerRelation', 'id', id);
|
|
209
|
+
localVarPath = "/partnerservice/v1/partners/relations/{id}"
|
|
210
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
211
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
|
+
}
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
return [2 /*return*/, {
|
|
233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
},
|
|
95
240
|
/**
|
|
96
241
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
97
242
|
* @summary Retrieve the partner relation type
|
|
@@ -154,7 +299,7 @@ var PartnerRelationsApiAxiosParamCreator = function (configuration) {
|
|
|
154
299
|
* @param {*} [options] Override http request option.
|
|
155
300
|
* @throws {RequiredError}
|
|
156
301
|
*/
|
|
157
|
-
|
|
302
|
+
listPartnerRelationTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
158
303
|
if (options === void 0) { options = {}; }
|
|
159
304
|
return __awaiter(_this, void 0, void 0, function () {
|
|
160
305
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -212,6 +357,131 @@ var PartnerRelationsApiAxiosParamCreator = function (configuration) {
|
|
|
212
357
|
});
|
|
213
358
|
});
|
|
214
359
|
},
|
|
360
|
+
/**
|
|
361
|
+
* List all partner relations
|
|
362
|
+
* @summary List partner relations
|
|
363
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
364
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
365
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
366
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
367
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
368
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
369
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerRelationType.<i>
|
|
370
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
listPartnerRelations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
375
|
+
if (options === void 0) { options = {}; }
|
|
376
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
377
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
378
|
+
return __generator(this, function (_a) {
|
|
379
|
+
switch (_a.label) {
|
|
380
|
+
case 0:
|
|
381
|
+
localVarPath = "/partnerservice/v1/partners/relations";
|
|
382
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
383
|
+
if (configuration) {
|
|
384
|
+
baseOptions = configuration.baseOptions;
|
|
385
|
+
baseAccessToken = configuration.accessToken;
|
|
386
|
+
}
|
|
387
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
388
|
+
localVarHeaderParameter = {};
|
|
389
|
+
localVarQueryParameter = {};
|
|
390
|
+
// authentication bearer required
|
|
391
|
+
// http bearer authentication required
|
|
392
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
393
|
+
case 1:
|
|
394
|
+
// authentication bearer required
|
|
395
|
+
// http bearer authentication required
|
|
396
|
+
_a.sent();
|
|
397
|
+
if (pageSize !== undefined) {
|
|
398
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
399
|
+
}
|
|
400
|
+
if (pageToken !== undefined) {
|
|
401
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
402
|
+
}
|
|
403
|
+
if (filter !== undefined) {
|
|
404
|
+
localVarQueryParameter['filter'] = filter;
|
|
405
|
+
}
|
|
406
|
+
if (search !== undefined) {
|
|
407
|
+
localVarQueryParameter['search'] = search;
|
|
408
|
+
}
|
|
409
|
+
if (order !== undefined) {
|
|
410
|
+
localVarQueryParameter['order'] = order;
|
|
411
|
+
}
|
|
412
|
+
if (expand !== undefined) {
|
|
413
|
+
localVarQueryParameter['expand'] = expand;
|
|
414
|
+
}
|
|
415
|
+
if (filters !== undefined) {
|
|
416
|
+
localVarQueryParameter['filters'] = filters;
|
|
417
|
+
}
|
|
418
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
419
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
420
|
+
}
|
|
421
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
422
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
423
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
424
|
+
return [2 /*return*/, {
|
|
425
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
426
|
+
options: localVarRequestOptions,
|
|
427
|
+
}];
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* Update a partner relation identified by its id
|
|
434
|
+
* @summary Update the partner relation
|
|
435
|
+
* @param {number} id Id of the partner relation
|
|
436
|
+
* @param {UpdatePartnerRelationRequestDtoRest} updatePartnerRelationRequestDtoRest
|
|
437
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
updatePartnerRelation: function (id, updatePartnerRelationRequestDtoRest, authorization, options) {
|
|
442
|
+
if (options === void 0) { options = {}; }
|
|
443
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
444
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
445
|
+
return __generator(this, function (_a) {
|
|
446
|
+
switch (_a.label) {
|
|
447
|
+
case 0:
|
|
448
|
+
// verify required parameter 'id' is not null or undefined
|
|
449
|
+
(0, common_1.assertParamExists)('updatePartnerRelation', 'id', id);
|
|
450
|
+
// verify required parameter 'updatePartnerRelationRequestDtoRest' is not null or undefined
|
|
451
|
+
(0, common_1.assertParamExists)('updatePartnerRelation', 'updatePartnerRelationRequestDtoRest', updatePartnerRelationRequestDtoRest);
|
|
452
|
+
localVarPath = "/partnerservice/v1/partners/relations/{id}"
|
|
453
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
454
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
455
|
+
if (configuration) {
|
|
456
|
+
baseOptions = configuration.baseOptions;
|
|
457
|
+
baseAccessToken = configuration.accessToken;
|
|
458
|
+
}
|
|
459
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
460
|
+
localVarHeaderParameter = {};
|
|
461
|
+
localVarQueryParameter = {};
|
|
462
|
+
// authentication bearer required
|
|
463
|
+
// http bearer authentication required
|
|
464
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
465
|
+
case 1:
|
|
466
|
+
// authentication bearer required
|
|
467
|
+
// http bearer authentication required
|
|
468
|
+
_a.sent();
|
|
469
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
470
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
471
|
+
}
|
|
472
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
473
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
474
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
475
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
476
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartnerRelationRequestDtoRest, localVarRequestOptions, configuration);
|
|
477
|
+
return [2 /*return*/, {
|
|
478
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
479
|
+
options: localVarRequestOptions,
|
|
480
|
+
}];
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
},
|
|
215
485
|
};
|
|
216
486
|
};
|
|
217
487
|
exports.PartnerRelationsApiAxiosParamCreator = PartnerRelationsApiAxiosParamCreator;
|
|
@@ -222,6 +492,69 @@ exports.PartnerRelationsApiAxiosParamCreator = PartnerRelationsApiAxiosParamCrea
|
|
|
222
492
|
var PartnerRelationsApiFp = function (configuration) {
|
|
223
493
|
var localVarAxiosParamCreator = (0, exports.PartnerRelationsApiAxiosParamCreator)(configuration);
|
|
224
494
|
return {
|
|
495
|
+
/**
|
|
496
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
497
|
+
* @summary Create the partner relation
|
|
498
|
+
* @param {CreatePartnerRelationRequestDtoRest} createPartnerRelationRequestDtoRest
|
|
499
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
createPartnerRelation: function (createPartnerRelationRequestDtoRest, authorization, options) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
505
|
+
var localVarAxiosArgs;
|
|
506
|
+
return __generator(this, function (_a) {
|
|
507
|
+
switch (_a.label) {
|
|
508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPartnerRelation(createPartnerRelationRequestDtoRest, authorization, options)];
|
|
509
|
+
case 1:
|
|
510
|
+
localVarAxiosArgs = _a.sent();
|
|
511
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
518
|
+
* @summary Delete the partner-relation
|
|
519
|
+
* @param {number} id
|
|
520
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
deletePartnerRelation: function (id, authorization, options) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
526
|
+
var localVarAxiosArgs;
|
|
527
|
+
return __generator(this, function (_a) {
|
|
528
|
+
switch (_a.label) {
|
|
529
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePartnerRelation(id, authorization, options)];
|
|
530
|
+
case 1:
|
|
531
|
+
localVarAxiosArgs = _a.sent();
|
|
532
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* Retrieve a single partner relation identified by its id
|
|
539
|
+
* @summary Retrieve the partner relation
|
|
540
|
+
* @param {number} id Id of the partner relation
|
|
541
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
getPartnerRelation: function (id, authorization, options) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
547
|
+
var localVarAxiosArgs;
|
|
548
|
+
return __generator(this, function (_a) {
|
|
549
|
+
switch (_a.label) {
|
|
550
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerRelation(id, authorization, options)];
|
|
551
|
+
case 1:
|
|
552
|
+
localVarAxiosArgs = _a.sent();
|
|
553
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
},
|
|
225
558
|
/**
|
|
226
559
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
227
560
|
* @summary Retrieve the partner relation type
|
|
@@ -257,12 +590,61 @@ var PartnerRelationsApiFp = function (configuration) {
|
|
|
257
590
|
* @param {*} [options] Override http request option.
|
|
258
591
|
* @throws {RequiredError}
|
|
259
592
|
*/
|
|
260
|
-
|
|
593
|
+
listPartnerRelationTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
595
|
+
var localVarAxiosArgs;
|
|
596
|
+
return __generator(this, function (_a) {
|
|
597
|
+
switch (_a.label) {
|
|
598
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerRelationTypes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
599
|
+
case 1:
|
|
600
|
+
localVarAxiosArgs = _a.sent();
|
|
601
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
},
|
|
606
|
+
/**
|
|
607
|
+
* List all partner relations
|
|
608
|
+
* @summary List partner relations
|
|
609
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
610
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
611
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
612
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
613
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
614
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
615
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerRelationType.<i>
|
|
616
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
listPartnerRelations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
621
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
622
|
+
var localVarAxiosArgs;
|
|
623
|
+
return __generator(this, function (_a) {
|
|
624
|
+
switch (_a.label) {
|
|
625
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerRelations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
626
|
+
case 1:
|
|
627
|
+
localVarAxiosArgs = _a.sent();
|
|
628
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
});
|
|
632
|
+
},
|
|
633
|
+
/**
|
|
634
|
+
* Update a partner relation identified by its id
|
|
635
|
+
* @summary Update the partner relation
|
|
636
|
+
* @param {number} id Id of the partner relation
|
|
637
|
+
* @param {UpdatePartnerRelationRequestDtoRest} updatePartnerRelationRequestDtoRest
|
|
638
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
updatePartnerRelation: function (id, updatePartnerRelationRequestDtoRest, authorization, options) {
|
|
261
643
|
return __awaiter(this, void 0, void 0, function () {
|
|
262
644
|
var localVarAxiosArgs;
|
|
263
645
|
return __generator(this, function (_a) {
|
|
264
646
|
switch (_a.label) {
|
|
265
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
647
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerRelation(id, updatePartnerRelationRequestDtoRest, authorization, options)];
|
|
266
648
|
case 1:
|
|
267
649
|
localVarAxiosArgs = _a.sent();
|
|
268
650
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -280,6 +662,39 @@ exports.PartnerRelationsApiFp = PartnerRelationsApiFp;
|
|
|
280
662
|
var PartnerRelationsApiFactory = function (configuration, basePath, axios) {
|
|
281
663
|
var localVarFp = (0, exports.PartnerRelationsApiFp)(configuration);
|
|
282
664
|
return {
|
|
665
|
+
/**
|
|
666
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
667
|
+
* @summary Create the partner relation
|
|
668
|
+
* @param {CreatePartnerRelationRequestDtoRest} createPartnerRelationRequestDtoRest
|
|
669
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
createPartnerRelation: function (createPartnerRelationRequestDtoRest, authorization, options) {
|
|
674
|
+
return localVarFp.createPartnerRelation(createPartnerRelationRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
675
|
+
},
|
|
676
|
+
/**
|
|
677
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
678
|
+
* @summary Delete the partner-relation
|
|
679
|
+
* @param {number} id
|
|
680
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
deletePartnerRelation: function (id, authorization, options) {
|
|
685
|
+
return localVarFp.deletePartnerRelation(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
686
|
+
},
|
|
687
|
+
/**
|
|
688
|
+
* Retrieve a single partner relation identified by its id
|
|
689
|
+
* @summary Retrieve the partner relation
|
|
690
|
+
* @param {number} id Id of the partner relation
|
|
691
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
*/
|
|
695
|
+
getPartnerRelation: function (id, authorization, options) {
|
|
696
|
+
return localVarFp.getPartnerRelation(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
697
|
+
},
|
|
283
698
|
/**
|
|
284
699
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
285
700
|
* @summary Retrieve the partner relation type
|
|
@@ -305,8 +720,37 @@ var PartnerRelationsApiFactory = function (configuration, basePath, axios) {
|
|
|
305
720
|
* @param {*} [options] Override http request option.
|
|
306
721
|
* @throws {RequiredError}
|
|
307
722
|
*/
|
|
308
|
-
|
|
309
|
-
return localVarFp.
|
|
723
|
+
listPartnerRelationTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
724
|
+
return localVarFp.listPartnerRelationTypes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
725
|
+
},
|
|
726
|
+
/**
|
|
727
|
+
* List all partner relations
|
|
728
|
+
* @summary List partner relations
|
|
729
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
730
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
731
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
732
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
733
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
734
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
735
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerRelationType.<i>
|
|
736
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
listPartnerRelations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
741
|
+
return localVarFp.listPartnerRelations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
742
|
+
},
|
|
743
|
+
/**
|
|
744
|
+
* Update a partner relation identified by its id
|
|
745
|
+
* @summary Update the partner relation
|
|
746
|
+
* @param {number} id Id of the partner relation
|
|
747
|
+
* @param {UpdatePartnerRelationRequestDtoRest} updatePartnerRelationRequestDtoRest
|
|
748
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
*/
|
|
752
|
+
updatePartnerRelation: function (id, updatePartnerRelationRequestDtoRest, authorization, options) {
|
|
753
|
+
return localVarFp.updatePartnerRelation(id, updatePartnerRelationRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
310
754
|
},
|
|
311
755
|
};
|
|
312
756
|
};
|
|
@@ -322,6 +766,42 @@ var PartnerRelationsApi = /** @class */ (function (_super) {
|
|
|
322
766
|
function PartnerRelationsApi() {
|
|
323
767
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
324
768
|
}
|
|
769
|
+
/**
|
|
770
|
+
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
771
|
+
* @summary Create the partner relation
|
|
772
|
+
* @param {PartnerRelationsApiCreatePartnerRelationRequest} requestParameters Request parameters.
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
* @memberof PartnerRelationsApi
|
|
776
|
+
*/
|
|
777
|
+
PartnerRelationsApi.prototype.createPartnerRelation = function (requestParameters, options) {
|
|
778
|
+
var _this = this;
|
|
779
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).createPartnerRelation(requestParameters.createPartnerRelationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
780
|
+
};
|
|
781
|
+
/**
|
|
782
|
+
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
783
|
+
* @summary Delete the partner-relation
|
|
784
|
+
* @param {PartnerRelationsApiDeletePartnerRelationRequest} requestParameters Request parameters.
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
* @memberof PartnerRelationsApi
|
|
788
|
+
*/
|
|
789
|
+
PartnerRelationsApi.prototype.deletePartnerRelation = function (requestParameters, options) {
|
|
790
|
+
var _this = this;
|
|
791
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).deletePartnerRelation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
792
|
+
};
|
|
793
|
+
/**
|
|
794
|
+
* Retrieve a single partner relation identified by its id
|
|
795
|
+
* @summary Retrieve the partner relation
|
|
796
|
+
* @param {PartnerRelationsApiGetPartnerRelationRequest} requestParameters Request parameters.
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
* @memberof PartnerRelationsApi
|
|
800
|
+
*/
|
|
801
|
+
PartnerRelationsApi.prototype.getPartnerRelation = function (requestParameters, options) {
|
|
802
|
+
var _this = this;
|
|
803
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).getPartnerRelation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
804
|
+
};
|
|
325
805
|
/**
|
|
326
806
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
327
807
|
* @summary Retrieve the partner relation type
|
|
@@ -337,15 +817,40 @@ var PartnerRelationsApi = /** @class */ (function (_super) {
|
|
|
337
817
|
/**
|
|
338
818
|
* List all partner relation types - is used to create partner relations
|
|
339
819
|
* @summary List partner relation types
|
|
340
|
-
* @param {
|
|
820
|
+
* @param {PartnerRelationsApiListPartnerRelationTypesRequest} requestParameters Request parameters.
|
|
341
821
|
* @param {*} [options] Override http request option.
|
|
342
822
|
* @throws {RequiredError}
|
|
343
823
|
* @memberof PartnerRelationsApi
|
|
344
824
|
*/
|
|
345
|
-
PartnerRelationsApi.prototype.
|
|
825
|
+
PartnerRelationsApi.prototype.listPartnerRelationTypes = function (requestParameters, options) {
|
|
346
826
|
var _this = this;
|
|
347
827
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
348
|
-
return (0, exports.PartnerRelationsApiFp)(this.configuration).
|
|
828
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).listPartnerRelationTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
829
|
+
};
|
|
830
|
+
/**
|
|
831
|
+
* List all partner relations
|
|
832
|
+
* @summary List partner relations
|
|
833
|
+
* @param {PartnerRelationsApiListPartnerRelationsRequest} requestParameters Request parameters.
|
|
834
|
+
* @param {*} [options] Override http request option.
|
|
835
|
+
* @throws {RequiredError}
|
|
836
|
+
* @memberof PartnerRelationsApi
|
|
837
|
+
*/
|
|
838
|
+
PartnerRelationsApi.prototype.listPartnerRelations = function (requestParameters, options) {
|
|
839
|
+
var _this = this;
|
|
840
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
841
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).listPartnerRelations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* Update a partner relation identified by its id
|
|
845
|
+
* @summary Update the partner relation
|
|
846
|
+
* @param {PartnerRelationsApiUpdatePartnerRelationRequest} requestParameters Request parameters.
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
* @memberof PartnerRelationsApi
|
|
850
|
+
*/
|
|
851
|
+
PartnerRelationsApi.prototype.updatePartnerRelation = function (requestParameters, options) {
|
|
852
|
+
var _this = this;
|
|
853
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).updatePartnerRelation(requestParameters.id, requestParameters.updatePartnerRelationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
349
854
|
};
|
|
350
855
|
return PartnerRelationsApi;
|
|
351
856
|
}(base_1.BaseAPI));
|