@emilgroup/partner-sdk-node 1.0.0 → 1.0.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 (42) hide show
  1. package/.openapi-generator/FILES +0 -7
  2. package/README.md +2 -2
  3. package/api/partner-types-api.ts +10 -24
  4. package/api/partners-api.ts +10 -24
  5. package/api.ts +0 -4
  6. package/base.ts +0 -1
  7. package/dist/api/partner-types-api.d.ts +7 -16
  8. package/dist/api/partner-types-api.js +9 -15
  9. package/dist/api/partners-api.d.ts +7 -16
  10. package/dist/api/partners-api.js +9 -15
  11. package/dist/api.d.ts +0 -2
  12. package/dist/api.js +0 -2
  13. package/dist/base.js +0 -1
  14. package/dist/models/index.d.ts +0 -5
  15. package/dist/models/index.js +0 -5
  16. package/dist/models/partner-class.d.ts +0 -12
  17. package/dist/models/update-partner-type-request-dto.d.ts +0 -6
  18. package/models/index.ts +0 -5
  19. package/models/partner-class.ts +0 -12
  20. package/models/update-partner-type-request-dto.ts +0 -6
  21. package/package.json +1 -4
  22. package/api/partner-relations-api.ts +0 -349
  23. package/api/partner-version-api.ts +0 -375
  24. package/dist/api/partner-relations-api.d.ts +0 -206
  25. package/dist/api/partner-relations-api.js +0 -352
  26. package/dist/api/partner-version-api.d.ts +0 -224
  27. package/dist/api/partner-version-api.js +0 -363
  28. package/dist/models/get-partner-relation-type-class.d.ts +0 -25
  29. package/dist/models/get-partner-relation-type-class.js +0 -15
  30. package/dist/models/get-partner-version-response-class.d.ts +0 -25
  31. package/dist/models/get-partner-version-response-class.js +0 -15
  32. package/dist/models/list-partner-relation-types-class.d.ts +0 -31
  33. package/dist/models/list-partner-relation-types-class.js +0 -15
  34. package/dist/models/list-partner-versions-response-class.d.ts +0 -25
  35. package/dist/models/list-partner-versions-response-class.js +0 -15
  36. package/dist/models/partner-relation-type-class.d.ts +0 -66
  37. package/dist/models/partner-relation-type-class.js +0 -15
  38. package/models/get-partner-relation-type-class.ts +0 -31
  39. package/models/get-partner-version-response-class.ts +0 -31
  40. package/models/list-partner-relation-types-class.ts +0 -37
  41. package/models/list-partner-versions-response-class.ts +0 -31
  42. package/models/partner-relation-type-class.ts +0 -72
@@ -245,17 +245,16 @@ var PartnersApiAxiosParamCreator = function (configuration) {
245
245
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
246
246
  * @summary List partners
247
247
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
248
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
249
249
  * @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.
250
250
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
251
251
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
252
252
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
253
253
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
254
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
255
254
  * @param {*} [options] Override http request option.
256
255
  * @throws {RequiredError}
257
256
  */
258
- listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
257
+ listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
259
258
  if (options === void 0) { options = {}; }
260
259
  return __awaiter(_this, void 0, void 0, function () {
261
260
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -296,9 +295,6 @@ var PartnersApiAxiosParamCreator = function (configuration) {
296
295
  if (expand !== undefined) {
297
296
  localVarQueryParameter['expand'] = expand;
298
297
  }
299
- if (filters !== undefined) {
300
- localVarQueryParameter['filters'] = filters;
301
- }
302
298
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
299
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
304
300
  }
@@ -444,22 +440,21 @@ var PartnersApiFp = function (configuration) {
444
440
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
445
441
  * @summary List partners
446
442
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
448
444
  * @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.
449
445
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
450
446
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
451
447
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
452
448
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
453
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
454
449
  * @param {*} [options] Override http request option.
455
450
  * @throws {RequiredError}
456
451
  */
457
- listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
452
+ listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
458
453
  return __awaiter(this, void 0, void 0, function () {
459
454
  var localVarAxiosArgs;
460
455
  return __generator(this, function (_a) {
461
456
  switch (_a.label) {
462
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
457
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options)];
463
458
  case 1:
464
459
  localVarAxiosArgs = _a.sent();
465
460
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -537,18 +532,17 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
537
532
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
538
533
  * @summary List partners
539
534
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
540
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
535
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
541
536
  * @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.
542
537
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
543
538
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
544
539
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
545
540
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
546
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
547
541
  * @param {*} [options] Override http request option.
548
542
  * @throws {RequiredError}
549
543
  */
550
- listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
551
- return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
544
+ listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
545
+ return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
552
546
  },
553
547
  /**
554
548
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -623,7 +617,7 @@ var PartnersApi = /** @class */ (function (_super) {
623
617
  PartnersApi.prototype.listPartners = function (requestParameters, options) {
624
618
  var _this = this;
625
619
  if (requestParameters === void 0) { requestParameters = {}; }
626
- return (0, exports.PartnersApiFp)(this.configuration).listPartners(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); });
620
+ return (0, exports.PartnersApiFp)(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
627
621
  };
628
622
  /**
629
623
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
package/dist/api.d.ts CHANGED
@@ -10,7 +10,5 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/default-api';
13
- export * from './api/partner-relations-api';
14
13
  export * from './api/partner-types-api';
15
- export * from './api/partner-version-api';
16
14
  export * from './api/partners-api';
package/dist/api.js CHANGED
@@ -28,7 +28,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/default-api"), exports);
31
- __exportStar(require("./api/partner-relations-api"), exports);
32
31
  __exportStar(require("./api/partner-types-api"), exports);
33
- __exportStar(require("./api/partner-version-api"), exports);
34
32
  __exportStar(require("./api/partners-api"), exports);
package/dist/base.js CHANGED
@@ -125,7 +125,6 @@ var BaseAPI = /** @class */ (function () {
125
125
  if (configuration) {
126
126
  this.configuration = configuration;
127
127
  this.basePath = configuration.basePath || this.basePath;
128
- this.configuration.accessToken = this.tokenData.accessToken ? "Bearer ".concat(this.tokenData.accessToken) : '';
129
128
  }
130
129
  else {
131
130
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -3,18 +3,13 @@ export * from './create-partner-response-class';
3
3
  export * from './create-partner-type-request-dto';
4
4
  export * from './create-partner-type-response-class';
5
5
  export * from './delete-response-class';
6
- export * from './get-partner-relation-type-class';
7
6
  export * from './get-partner-response-class';
8
7
  export * from './get-partner-type-response-class';
9
- export * from './get-partner-version-response-class';
10
8
  export * from './inline-response200';
11
9
  export * from './inline-response503';
12
- export * from './list-partner-relation-types-class';
13
10
  export * from './list-partner-types-response-class';
14
- export * from './list-partner-versions-response-class';
15
11
  export * from './list-partners-response-class';
16
12
  export * from './partner-class';
17
- export * from './partner-relation-type-class';
18
13
  export * from './partner-type-class';
19
14
  export * from './partner-type-custom-schema-dto';
20
15
  export * from './update-partner-request-dto';
@@ -19,18 +19,13 @@ __exportStar(require("./create-partner-response-class"), exports);
19
19
  __exportStar(require("./create-partner-type-request-dto"), exports);
20
20
  __exportStar(require("./create-partner-type-response-class"), exports);
21
21
  __exportStar(require("./delete-response-class"), exports);
22
- __exportStar(require("./get-partner-relation-type-class"), exports);
23
22
  __exportStar(require("./get-partner-response-class"), exports);
24
23
  __exportStar(require("./get-partner-type-response-class"), exports);
25
- __exportStar(require("./get-partner-version-response-class"), exports);
26
24
  __exportStar(require("./inline-response200"), exports);
27
25
  __exportStar(require("./inline-response503"), exports);
28
- __exportStar(require("./list-partner-relation-types-class"), exports);
29
26
  __exportStar(require("./list-partner-types-response-class"), exports);
30
- __exportStar(require("./list-partner-versions-response-class"), exports);
31
27
  __exportStar(require("./list-partners-response-class"), exports);
32
28
  __exportStar(require("./partner-class"), exports);
33
- __exportStar(require("./partner-relation-type-class"), exports);
34
29
  __exportStar(require("./partner-type-class"), exports);
35
30
  __exportStar(require("./partner-type-custom-schema-dto"), exports);
36
31
  __exportStar(require("./update-partner-request-dto"), exports);
@@ -64,16 +64,4 @@ export interface PartnerClass {
64
64
  * @memberof PartnerClass
65
65
  */
66
66
  'updatedAt': string;
67
- /**
68
- * Last user who updated the entity
69
- * @type {string}
70
- * @memberof PartnerClass
71
- */
72
- 'updatedBy': string;
73
- /**
74
- * The version number of the partner
75
- * @type {number}
76
- * @memberof PartnerClass
77
- */
78
- 'version': number;
79
67
  }
@@ -16,12 +16,6 @@ import { PartnerTypeCustomSchemaDto } from './partner-type-custom-schema-dto';
16
16
  * @interface UpdatePartnerTypeRequestDto
17
17
  */
18
18
  export interface UpdatePartnerTypeRequestDto {
19
- /**
20
- * The name of the partner type.
21
- * @type {string}
22
- * @memberof UpdatePartnerTypeRequestDto
23
- */
24
- 'name': string;
25
19
  /**
26
20
  * The partner type schema object.
27
21
  * @type {Array<PartnerTypeCustomSchemaDto>}
package/models/index.ts CHANGED
@@ -3,18 +3,13 @@ export * from './create-partner-response-class';
3
3
  export * from './create-partner-type-request-dto';
4
4
  export * from './create-partner-type-response-class';
5
5
  export * from './delete-response-class';
6
- export * from './get-partner-relation-type-class';
7
6
  export * from './get-partner-response-class';
8
7
  export * from './get-partner-type-response-class';
9
- export * from './get-partner-version-response-class';
10
8
  export * from './inline-response200';
11
9
  export * from './inline-response503';
12
- export * from './list-partner-relation-types-class';
13
10
  export * from './list-partner-types-response-class';
14
- export * from './list-partner-versions-response-class';
15
11
  export * from './list-partners-response-class';
16
12
  export * from './partner-class';
17
- export * from './partner-relation-type-class';
18
13
  export * from './partner-type-class';
19
14
  export * from './partner-type-custom-schema-dto';
20
15
  export * from './update-partner-request-dto';
@@ -69,17 +69,5 @@ export interface PartnerClass {
69
69
  * @memberof PartnerClass
70
70
  */
71
71
  'updatedAt': string;
72
- /**
73
- * Last user who updated the entity
74
- * @type {string}
75
- * @memberof PartnerClass
76
- */
77
- 'updatedBy': string;
78
- /**
79
- * The version number of the partner
80
- * @type {number}
81
- * @memberof PartnerClass
82
- */
83
- 'version': number;
84
72
  }
85
73
 
@@ -21,12 +21,6 @@ import { PartnerTypeCustomSchemaDto } from './partner-type-custom-schema-dto';
21
21
  * @interface UpdatePartnerTypeRequestDto
22
22
  */
23
23
  export interface UpdatePartnerTypeRequestDto {
24
- /**
25
- * The name of the partner type.
26
- * @type {string}
27
- * @memberof UpdatePartnerTypeRequestDto
28
- */
29
- 'name': string;
30
24
  /**
31
25
  * The partner type schema object.
32
26
  * @type {Array<PartnerTypeCustomSchemaDto>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -22,8 +22,5 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "typescript": "^4.0"
25
- },
26
- "volta": {
27
- "node": "16.20.2"
28
25
  }
29
26
  }
@@ -1,349 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL PartnerService
5
- * The EMIL PartnerService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { GetPartnerRelationTypeClass } from '../models';
25
- // @ts-ignore
26
- import { ListPartnerRelationTypesClass } from '../models';
27
- /**
28
- * PartnerRelationsApi - axios parameter creator
29
- * @export
30
- */
31
- export const PartnerRelationsApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
35
- * @summary Retrieve the partner relation type
36
- * @param {string} slug Identifying slug of the partner relation type
37
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- getPartnerRelationType: async (slug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'slug' is not null or undefined
43
- assertParamExists('getPartnerRelationType', 'slug', slug)
44
- const localVarPath = `/partnerservice/v1/partners/relations/types/{slug}`
45
- .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
46
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
- let baseOptions;
49
- let baseAccessToken;
50
- if (configuration) {
51
- baseOptions = configuration.baseOptions;
52
- baseAccessToken = configuration.accessToken;
53
- }
54
-
55
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
56
- const localVarHeaderParameter = {} as any;
57
- const localVarQueryParameter = {} as any;
58
-
59
- // authentication bearer required
60
- // http bearer authentication required
61
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
-
63
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
65
- }
66
-
67
-
68
-
69
- setSearchParams(localVarUrlObj, localVarQueryParameter);
70
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72
-
73
- return {
74
- url: toPathString(localVarUrlObj),
75
- options: localVarRequestOptions,
76
- };
77
- },
78
- /**
79
- * List all partner relation types - is used to create partner relations
80
- * @summary List partner relation types
81
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
82
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
83
- * @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.
84
- * @param {any} [filter] Filter the response by one or multiple fields&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseCardinality&lt;/i&gt;
85
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
86
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt&lt;/i&gt;
87
- * @param {number} [expand] Allowed expands for the partner relation types - there are no possible expands for partner relation types
88
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
89
- * @param {*} [options] Override http request option.
90
- * @throws {RequiredError}
91
- */
92
- listPartnerVersion: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: number, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
- const localVarPath = `/partnerservice/v1/partners/relations/types`;
94
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
96
- let baseOptions;
97
- let baseAccessToken;
98
- if (configuration) {
99
- baseOptions = configuration.baseOptions;
100
- baseAccessToken = configuration.accessToken;
101
- }
102
-
103
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
104
- const localVarHeaderParameter = {} as any;
105
- const localVarQueryParameter = {} as any;
106
-
107
- // authentication bearer required
108
- // http bearer authentication required
109
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
110
-
111
- if (pageSize !== undefined) {
112
- localVarQueryParameter['pageSize'] = pageSize;
113
- }
114
-
115
- if (pageToken !== undefined) {
116
- localVarQueryParameter['pageToken'] = pageToken;
117
- }
118
-
119
- if (filter !== undefined) {
120
- localVarQueryParameter['filter'] = filter;
121
- }
122
-
123
- if (search !== undefined) {
124
- localVarQueryParameter['search'] = search;
125
- }
126
-
127
- if (order !== undefined) {
128
- localVarQueryParameter['order'] = order;
129
- }
130
-
131
- if (expand !== undefined) {
132
- localVarQueryParameter['expand'] = expand;
133
- }
134
-
135
- if (filters !== undefined) {
136
- localVarQueryParameter['filters'] = filters;
137
- }
138
-
139
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
140
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
141
- }
142
-
143
-
144
-
145
- setSearchParams(localVarUrlObj, localVarQueryParameter);
146
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
148
-
149
- return {
150
- url: toPathString(localVarUrlObj),
151
- options: localVarRequestOptions,
152
- };
153
- },
154
- }
155
- };
156
-
157
- /**
158
- * PartnerRelationsApi - functional programming interface
159
- * @export
160
- */
161
- export const PartnerRelationsApiFp = function(configuration?: Configuration) {
162
- const localVarAxiosParamCreator = PartnerRelationsApiAxiosParamCreator(configuration)
163
- return {
164
- /**
165
- * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
166
- * @summary Retrieve the partner relation type
167
- * @param {string} slug Identifying slug of the partner relation type
168
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
- * @param {*} [options] Override http request option.
170
- * @throws {RequiredError}
171
- */
172
- async getPartnerRelationType(slug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerRelationTypeClass>> {
173
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerRelationType(slug, authorization, options);
174
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
175
- },
176
- /**
177
- * List all partner relation types - is used to create partner relations
178
- * @summary List partner relation types
179
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
180
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
181
- * @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.
182
- * @param {any} [filter] Filter the response by one or multiple fields&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseCardinality&lt;/i&gt;
183
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
184
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt&lt;/i&gt;
185
- * @param {number} [expand] Allowed expands for the partner relation types - there are no possible expands for partner relation types
186
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
187
- * @param {*} [options] Override http request option.
188
- * @throws {RequiredError}
189
- */
190
- async listPartnerVersion(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: number, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerRelationTypesClass>> {
191
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerVersion(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
192
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
193
- },
194
- }
195
- };
196
-
197
- /**
198
- * PartnerRelationsApi - factory interface
199
- * @export
200
- */
201
- export const PartnerRelationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
202
- const localVarFp = PartnerRelationsApiFp(configuration)
203
- return {
204
- /**
205
- * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
206
- * @summary Retrieve the partner relation type
207
- * @param {string} slug Identifying slug of the partner relation type
208
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
209
- * @param {*} [options] Override http request option.
210
- * @throws {RequiredError}
211
- */
212
- getPartnerRelationType(slug: string, authorization?: string, options?: any): AxiosPromise<GetPartnerRelationTypeClass> {
213
- return localVarFp.getPartnerRelationType(slug, authorization, options).then((request) => request(axios, basePath));
214
- },
215
- /**
216
- * List all partner relation types - is used to create partner relations
217
- * @summary List partner relation types
218
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
219
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
220
- * @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.
221
- * @param {any} [filter] Filter the response by one or multiple fields&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseCardinality&lt;/i&gt;
222
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
223
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt&lt;/i&gt;
224
- * @param {number} [expand] Allowed expands for the partner relation types - there are no possible expands for partner relation types
225
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
226
- * @param {*} [options] Override http request option.
227
- * @throws {RequiredError}
228
- */
229
- listPartnerVersion(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: number, filters?: any, options?: any): AxiosPromise<ListPartnerRelationTypesClass> {
230
- return localVarFp.listPartnerVersion(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
231
- },
232
- };
233
- };
234
-
235
- /**
236
- * Request parameters for getPartnerRelationType operation in PartnerRelationsApi.
237
- * @export
238
- * @interface PartnerRelationsApiGetPartnerRelationTypeRequest
239
- */
240
- export interface PartnerRelationsApiGetPartnerRelationTypeRequest {
241
- /**
242
- * Identifying slug of the partner relation type
243
- * @type {string}
244
- * @memberof PartnerRelationsApiGetPartnerRelationType
245
- */
246
- readonly slug: string
247
-
248
- /**
249
- * Bearer Token: provided by the login endpoint under the name accessToken.
250
- * @type {string}
251
- * @memberof PartnerRelationsApiGetPartnerRelationType
252
- */
253
- readonly authorization?: string
254
- }
255
-
256
- /**
257
- * Request parameters for listPartnerVersion operation in PartnerRelationsApi.
258
- * @export
259
- * @interface PartnerRelationsApiListPartnerVersionRequest
260
- */
261
- export interface PartnerRelationsApiListPartnerVersionRequest {
262
- /**
263
- * Bearer Token: provided by the login endpoint under the name accessToken.
264
- * @type {string}
265
- * @memberof PartnerRelationsApiListPartnerVersion
266
- */
267
- readonly authorization?: string
268
-
269
- /**
270
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
271
- * @type {any}
272
- * @memberof PartnerRelationsApiListPartnerVersion
273
- */
274
- readonly pageSize?: any
275
-
276
- /**
277
- * 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.
278
- * @type {any}
279
- * @memberof PartnerRelationsApiListPartnerVersion
280
- */
281
- readonly pageToken?: any
282
-
283
- /**
284
- * Filter the response by one or multiple fields&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, relationName, maxCardinality, inverseCardinality&lt;/i&gt;
285
- * @type {any}
286
- * @memberof PartnerRelationsApiListPartnerVersion
287
- */
288
- readonly filter?: any
289
-
290
- /**
291
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
292
- * @type {any}
293
- * @memberof PartnerRelationsApiListPartnerVersion
294
- */
295
- readonly search?: any
296
-
297
- /**
298
- * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt&lt;/i&gt;
299
- * @type {any}
300
- * @memberof PartnerRelationsApiListPartnerVersion
301
- */
302
- readonly order?: any
303
-
304
- /**
305
- * Allowed expands for the partner relation types - there are no possible expands for partner relation types
306
- * @type {number}
307
- * @memberof PartnerRelationsApiListPartnerVersion
308
- */
309
- readonly expand?: number
310
-
311
- /**
312
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
313
- * @type {any}
314
- * @memberof PartnerRelationsApiListPartnerVersion
315
- */
316
- readonly filters?: any
317
- }
318
-
319
- /**
320
- * PartnerRelationsApi - object-oriented interface
321
- * @export
322
- * @class PartnerRelationsApi
323
- * @extends {BaseAPI}
324
- */
325
- export class PartnerRelationsApi extends BaseAPI {
326
- /**
327
- * Retrieve a single partner relation type identified with a slug - can be used to create partner relations
328
- * @summary Retrieve the partner relation type
329
- * @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
330
- * @param {*} [options] Override http request option.
331
- * @throws {RequiredError}
332
- * @memberof PartnerRelationsApi
333
- */
334
- public getPartnerRelationType(requestParameters: PartnerRelationsApiGetPartnerRelationTypeRequest, options?: AxiosRequestConfig) {
335
- return PartnerRelationsApiFp(this.configuration).getPartnerRelationType(requestParameters.slug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
336
- }
337
-
338
- /**
339
- * List all partner relation types - is used to create partner relations
340
- * @summary List partner relation types
341
- * @param {PartnerRelationsApiListPartnerVersionRequest} requestParameters Request parameters.
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- * @memberof PartnerRelationsApi
345
- */
346
- public listPartnerVersion(requestParameters: PartnerRelationsApiListPartnerVersionRequest = {}, options?: AxiosRequestConfig) {
347
- return PartnerRelationsApiFp(this.configuration).listPartnerVersion(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
348
- }
349
- }