@emilgroup/partner-sdk 1.0.1 → 1.2.1-beta.1

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.
Files changed (97) hide show
  1. package/.openapi-generator/FILES +21 -1
  2. package/README.md +2 -2
  3. package/api/default-api.ts +8 -4
  4. package/api/partner-relations-api.ts +968 -0
  5. package/api/partner-tags-api.ts +662 -0
  6. package/api/partner-types-api.ts +36 -22
  7. package/api/partner-version-api.ts +375 -0
  8. package/api/partners-api.ts +154 -22
  9. package/api.ts +6 -0
  10. package/base.ts +6 -1
  11. package/dist/api/default-api.d.ts +8 -4
  12. package/dist/api/default-api.js +8 -4
  13. package/dist/api/partner-relations-api.d.ts +550 -0
  14. package/dist/api/partner-relations-api.js +857 -0
  15. package/dist/api/partner-tags-api.d.ts +375 -0
  16. package/dist/api/partner-tags-api.js +629 -0
  17. package/dist/api/partner-types-api.d.ts +28 -19
  18. package/dist/api/partner-types-api.js +26 -20
  19. package/dist/api/partner-version-api.d.ts +224 -0
  20. package/dist/api/partner-version-api.js +363 -0
  21. package/dist/api/partners-api.d.ts +93 -19
  22. package/dist/api/partners-api.js +125 -20
  23. package/dist/api.d.ts +3 -0
  24. package/dist/api.js +3 -0
  25. package/dist/base.d.ts +1 -0
  26. package/dist/base.js +5 -1
  27. package/dist/models/create-partner-relation-request-dto-rest.d.ts +65 -0
  28. package/dist/models/create-partner-relation-request-dto-rest.js +26 -0
  29. package/dist/models/create-partner-relation-response-class.d.ts +25 -0
  30. package/dist/models/create-partner-type-request-dto.d.ts +13 -3
  31. package/dist/models/create-partner-type-request-dto.js +5 -0
  32. package/dist/models/create-tag-request-dto.d.ts +36 -0
  33. package/dist/models/create-tag-request-dto.js +15 -0
  34. package/dist/models/create-tag-response-class.d.ts +25 -0
  35. package/dist/models/create-tag-response-class.js +15 -0
  36. package/dist/models/get-partner-relation-class.d.ts +25 -0
  37. package/dist/models/get-partner-relation-class.js +15 -0
  38. package/dist/models/get-partner-relation-type-class.d.ts +25 -0
  39. package/dist/models/get-partner-relation-type-class.js +15 -0
  40. package/dist/models/get-partner-version-response-class.d.ts +25 -0
  41. package/dist/models/get-partner-version-response-class.js +15 -0
  42. package/dist/models/get-tag-response-class.d.ts +25 -0
  43. package/dist/models/get-tag-response-class.js +15 -0
  44. package/dist/models/index.d.ts +18 -1
  45. package/dist/models/index.js +18 -1
  46. package/dist/models/list-partner-relation-class.d.ts +31 -0
  47. package/dist/models/list-partner-relation-class.js +15 -0
  48. package/dist/models/list-partner-relation-types-class.d.ts +31 -0
  49. package/dist/models/list-partner-relation-types-class.js +15 -0
  50. package/dist/models/list-partner-versions-response-class.d.ts +25 -0
  51. package/dist/models/list-partner-versions-response-class.js +15 -0
  52. package/dist/models/list-tags-response-class.d.ts +31 -0
  53. package/dist/models/list-tags-response-class.js +15 -0
  54. package/dist/models/partner-class.d.ts +18 -0
  55. package/dist/models/partner-relation-class.d.ts +72 -0
  56. package/dist/models/partner-relation-class.js +15 -0
  57. package/dist/models/partner-relation-type-class.d.ts +66 -0
  58. package/dist/models/partner-relation-type-class.js +15 -0
  59. package/dist/models/partner-type-class.d.ts +11 -0
  60. package/dist/models/partner-type-class.js +5 -0
  61. package/dist/models/tag-class.d.ts +54 -0
  62. package/dist/models/tag-class.js +15 -0
  63. package/dist/models/tag-partner-request-dto-rest.d.ts +24 -0
  64. package/dist/models/tag-partner-request-dto-rest.js +15 -0
  65. package/dist/models/update-partner-relation-request-dto-rest.d.ts +36 -0
  66. package/dist/models/update-partner-relation-request-dto-rest.js +15 -0
  67. package/dist/models/update-partner-type-request-dto.d.ts +20 -4
  68. package/dist/models/update-partner-type-request-dto.js +5 -0
  69. package/dist/models/update-tag-response-class.d.ts +25 -0
  70. package/dist/models/update-tag-response-class.js +15 -0
  71. package/models/create-partner-relation-request-dto-rest.ts +74 -0
  72. package/models/create-partner-relation-response-class.ts +31 -0
  73. package/models/create-partner-type-request-dto.ts +16 -3
  74. package/models/create-tag-request-dto.ts +42 -0
  75. package/models/create-tag-response-class.ts +31 -0
  76. package/models/get-partner-relation-class.ts +31 -0
  77. package/models/get-partner-relation-type-class.ts +31 -0
  78. package/models/get-partner-version-response-class.ts +31 -0
  79. package/models/get-tag-response-class.ts +31 -0
  80. package/models/index.ts +18 -1
  81. package/models/list-partner-relation-class.ts +37 -0
  82. package/models/list-partner-relation-types-class.ts +37 -0
  83. package/models/list-partner-versions-response-class.ts +31 -0
  84. package/models/list-tags-response-class.ts +37 -0
  85. package/models/partner-class.ts +18 -0
  86. package/models/partner-relation-class.ts +78 -0
  87. package/models/partner-relation-type-class.ts +72 -0
  88. package/models/partner-type-class.ts +14 -0
  89. package/models/tag-class.ts +60 -0
  90. package/models/tag-partner-request-dto-rest.ts +30 -0
  91. package/models/update-partner-relation-request-dto-rest.ts +42 -0
  92. package/models/update-partner-type-request-dto.ts +23 -4
  93. package/models/update-tag-response-class.ts +31 -0
  94. package/package.json +1 -1
  95. package/dist/models/partner-type-custom-schema-dto.d.ts +0 -66
  96. package/models/partner-type-custom-schema-dto.ts +0 -72
  97. /package/dist/models/{partner-type-custom-schema-dto.js → create-partner-relation-response-class.js} +0 -0
@@ -0,0 +1,857 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.PartnerRelationsApi = exports.PartnerRelationsApiFactory = exports.PartnerRelationsApiFp = exports.PartnerRelationsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * PartnerRelationsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var PartnerRelationsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
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
+ },
240
+ /**
241
+ * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
242
+ * @summary Retrieve the partner relation type
243
+ * @param {string} slug Identifying slug of the partner relation type
244
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ getPartnerRelationType: function (slug, authorization, options) {
249
+ if (options === void 0) { options = {}; }
250
+ return __awaiter(_this, void 0, void 0, function () {
251
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
252
+ return __generator(this, function (_a) {
253
+ switch (_a.label) {
254
+ case 0:
255
+ // verify required parameter 'slug' is not null or undefined
256
+ (0, common_1.assertParamExists)('getPartnerRelationType', 'slug', slug);
257
+ localVarPath = "/partnerservice/v1/partners/relations/types/{slug}"
258
+ .replace("{".concat("slug", "}"), encodeURIComponent(String(slug)));
259
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
260
+ if (configuration) {
261
+ baseOptions = configuration.baseOptions;
262
+ baseAccessToken = configuration.accessToken;
263
+ }
264
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
265
+ localVarHeaderParameter = {};
266
+ localVarQueryParameter = {};
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
270
+ case 1:
271
+ // authentication bearer required
272
+ // http bearer authentication required
273
+ _a.sent();
274
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
275
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
276
+ }
277
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
278
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
280
+ return [2 /*return*/, {
281
+ url: (0, common_1.toPathString)(localVarUrlObj),
282
+ options: localVarRequestOptions,
283
+ }];
284
+ }
285
+ });
286
+ });
287
+ },
288
+ /**
289
+ * List all partner relation types - is used to create partner relations
290
+ * @summary List partner relation types
291
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
292
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
293
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
294
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseMaxCardinality&lt;/i&gt;
295
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
296
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt&lt;/i&gt;
297
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
298
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseMaxCardinality&lt;/i&gt;
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ listPartnerRelationTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
303
+ if (options === void 0) { options = {}; }
304
+ return __awaiter(_this, void 0, void 0, function () {
305
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
306
+ return __generator(this, function (_a) {
307
+ switch (_a.label) {
308
+ case 0:
309
+ localVarPath = "/partnerservice/v1/partners/relations/types";
310
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
311
+ if (configuration) {
312
+ baseOptions = configuration.baseOptions;
313
+ baseAccessToken = configuration.accessToken;
314
+ }
315
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
316
+ localVarHeaderParameter = {};
317
+ localVarQueryParameter = {};
318
+ // authentication bearer required
319
+ // http bearer authentication required
320
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
321
+ case 1:
322
+ // authentication bearer required
323
+ // http bearer authentication required
324
+ _a.sent();
325
+ if (pageSize !== undefined) {
326
+ localVarQueryParameter['pageSize'] = pageSize;
327
+ }
328
+ if (pageToken !== undefined) {
329
+ localVarQueryParameter['pageToken'] = pageToken;
330
+ }
331
+ if (filter !== undefined) {
332
+ localVarQueryParameter['filter'] = filter;
333
+ }
334
+ if (search !== undefined) {
335
+ localVarQueryParameter['search'] = search;
336
+ }
337
+ if (order !== undefined) {
338
+ localVarQueryParameter['order'] = order;
339
+ }
340
+ if (expand !== undefined) {
341
+ localVarQueryParameter['expand'] = expand;
342
+ }
343
+ if (filters !== undefined) {
344
+ localVarQueryParameter['filters'] = filters;
345
+ }
346
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
347
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
348
+ }
349
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
350
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
351
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
352
+ return [2 /*return*/, {
353
+ url: (0, common_1.toPathString)(localVarUrlObj),
354
+ options: localVarRequestOptions,
355
+ }];
356
+ }
357
+ });
358
+ });
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
367
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerRelationType.&lt;i&gt;
370
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
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
+ },
485
+ };
486
+ };
487
+ exports.PartnerRelationsApiAxiosParamCreator = PartnerRelationsApiAxiosParamCreator;
488
+ /**
489
+ * PartnerRelationsApi - functional programming interface
490
+ * @export
491
+ */
492
+ var PartnerRelationsApiFp = function (configuration) {
493
+ var localVarAxiosParamCreator = (0, exports.PartnerRelationsApiAxiosParamCreator)(configuration);
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
+ },
558
+ /**
559
+ * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
560
+ * @summary Retrieve the partner relation type
561
+ * @param {string} slug Identifying slug of the partner relation type
562
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ getPartnerRelationType: function (slug, authorization, options) {
567
+ return __awaiter(this, void 0, void 0, function () {
568
+ var localVarAxiosArgs;
569
+ return __generator(this, function (_a) {
570
+ switch (_a.label) {
571
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerRelationType(slug, authorization, options)];
572
+ case 1:
573
+ localVarAxiosArgs = _a.sent();
574
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
575
+ }
576
+ });
577
+ });
578
+ },
579
+ /**
580
+ * List all partner relation types - is used to create partner relations
581
+ * @summary List partner relation types
582
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
583
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
584
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
585
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseMaxCardinality&lt;/i&gt;
586
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
587
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt&lt;/i&gt;
588
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
589
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseMaxCardinality&lt;/i&gt;
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
613
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerRelationType.&lt;i&gt;
616
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
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) {
643
+ return __awaiter(this, void 0, void 0, function () {
644
+ var localVarAxiosArgs;
645
+ return __generator(this, function (_a) {
646
+ switch (_a.label) {
647
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerRelation(id, updatePartnerRelationRequestDtoRest, authorization, options)];
648
+ case 1:
649
+ localVarAxiosArgs = _a.sent();
650
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
651
+ }
652
+ });
653
+ });
654
+ },
655
+ };
656
+ };
657
+ exports.PartnerRelationsApiFp = PartnerRelationsApiFp;
658
+ /**
659
+ * PartnerRelationsApi - factory interface
660
+ * @export
661
+ */
662
+ var PartnerRelationsApiFactory = function (configuration, basePath, axios) {
663
+ var localVarFp = (0, exports.PartnerRelationsApiFp)(configuration);
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
+ },
698
+ /**
699
+ * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
700
+ * @summary Retrieve the partner relation type
701
+ * @param {string} slug Identifying slug of the partner relation type
702
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ getPartnerRelationType: function (slug, authorization, options) {
707
+ return localVarFp.getPartnerRelationType(slug, authorization, options).then(function (request) { return request(axios, basePath); });
708
+ },
709
+ /**
710
+ * List all partner relation types - is used to create partner relations
711
+ * @summary List partner relation types
712
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
713
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
714
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
715
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseMaxCardinality&lt;/i&gt;
716
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
717
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt&lt;/i&gt;
718
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
719
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseMaxCardinality&lt;/i&gt;
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ */
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
733
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerRelationType.&lt;i&gt;
736
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
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); });
754
+ },
755
+ };
756
+ };
757
+ exports.PartnerRelationsApiFactory = PartnerRelationsApiFactory;
758
+ /**
759
+ * PartnerRelationsApi - object-oriented interface
760
+ * @export
761
+ * @class PartnerRelationsApi
762
+ * @extends {BaseAPI}
763
+ */
764
+ var PartnerRelationsApi = /** @class */ (function (_super) {
765
+ __extends(PartnerRelationsApi, _super);
766
+ function PartnerRelationsApi() {
767
+ return _super !== null && _super.apply(this, arguments) || this;
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
+ };
805
+ /**
806
+ * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
807
+ * @summary Retrieve the partner relation type
808
+ * @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ * @memberof PartnerRelationsApi
812
+ */
813
+ PartnerRelationsApi.prototype.getPartnerRelationType = function (requestParameters, options) {
814
+ var _this = this;
815
+ return (0, exports.PartnerRelationsApiFp)(this.configuration).getPartnerRelationType(requestParameters.slug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
816
+ };
817
+ /**
818
+ * List all partner relation types - is used to create partner relations
819
+ * @summary List partner relation types
820
+ * @param {PartnerRelationsApiListPartnerRelationTypesRequest} requestParameters Request parameters.
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ * @memberof PartnerRelationsApi
824
+ */
825
+ PartnerRelationsApi.prototype.listPartnerRelationTypes = function (requestParameters, options) {
826
+ var _this = this;
827
+ if (requestParameters === void 0) { requestParameters = {}; }
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); });
854
+ };
855
+ return PartnerRelationsApi;
856
+ }(base_1.BaseAPI));
857
+ exports.PartnerRelationsApi = PartnerRelationsApi;