@emilgroup/partner-sdk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/default-api.ts +120 -0
  6. package/api/partner-types-api.ts +679 -0
  7. package/api/partners-api.ts +679 -0
  8. package/api.ts +31 -0
  9. package/base.ts +251 -0
  10. package/common.ts +198 -0
  11. package/configuration.ts +101 -0
  12. package/dist/api/default-api.d.ts +66 -0
  13. package/dist/api/default-api.js +196 -0
  14. package/dist/api/partner-types-api.d.ts +385 -0
  15. package/dist/api/partner-types-api.js +636 -0
  16. package/dist/api/partners-api.d.ts +385 -0
  17. package/dist/api/partners-api.js +636 -0
  18. package/dist/api.d.ts +14 -0
  19. package/dist/api.js +32 -0
  20. package/dist/base.d.ts +74 -0
  21. package/dist/base.js +298 -0
  22. package/dist/common.d.ts +91 -0
  23. package/dist/common.js +276 -0
  24. package/dist/configuration.d.ts +83 -0
  25. package/dist/configuration.js +44 -0
  26. package/dist/index.d.ts +15 -0
  27. package/dist/index.js +36 -0
  28. package/dist/models/create-partner-request-dto.d.ts +30 -0
  29. package/dist/models/create-partner-request-dto.js +15 -0
  30. package/dist/models/create-partner-response-class.d.ts +25 -0
  31. package/dist/models/create-partner-response-class.js +15 -0
  32. package/dist/models/create-partner-type-request-dto.d.ts +30 -0
  33. package/dist/models/create-partner-type-request-dto.js +15 -0
  34. package/dist/models/create-partner-type-response-class.d.ts +25 -0
  35. package/dist/models/create-partner-type-response-class.js +15 -0
  36. package/dist/models/delete-response-class.d.ts +24 -0
  37. package/dist/models/delete-response-class.js +15 -0
  38. package/dist/models/get-partner-response-class.d.ts +25 -0
  39. package/dist/models/get-partner-response-class.js +15 -0
  40. package/dist/models/get-partner-type-response-class.d.ts +25 -0
  41. package/dist/models/get-partner-type-response-class.js +15 -0
  42. package/dist/models/index.d.ts +17 -0
  43. package/dist/models/index.js +33 -0
  44. package/dist/models/inline-response200.d.ts +54 -0
  45. package/dist/models/inline-response200.js +15 -0
  46. package/dist/models/inline-response503.d.ts +54 -0
  47. package/dist/models/inline-response503.js +15 -0
  48. package/dist/models/list-partner-types-response-class.d.ts +31 -0
  49. package/dist/models/list-partner-types-response-class.js +15 -0
  50. package/dist/models/list-partners-response-class.d.ts +31 -0
  51. package/dist/models/list-partners-response-class.js +15 -0
  52. package/dist/models/partner-class.d.ts +67 -0
  53. package/dist/models/partner-class.js +15 -0
  54. package/dist/models/partner-type-class.d.ts +54 -0
  55. package/dist/models/partner-type-class.js +15 -0
  56. package/dist/models/update-partner-request-dto.d.ts +30 -0
  57. package/dist/models/update-partner-request-dto.js +15 -0
  58. package/dist/models/update-partner-response-class.d.ts +25 -0
  59. package/dist/models/update-partner-response-class.js +15 -0
  60. package/dist/models/update-partner-type-request-dto.d.ts +30 -0
  61. package/dist/models/update-partner-type-request-dto.js +15 -0
  62. package/dist/models/update-partner-type-response-class.d.ts +25 -0
  63. package/dist/models/update-partner-type-response-class.js +15 -0
  64. package/git_push.sh +57 -0
  65. package/index.ts +19 -0
  66. package/models/create-partner-request-dto.ts +36 -0
  67. package/models/create-partner-response-class.ts +31 -0
  68. package/models/create-partner-type-request-dto.ts +36 -0
  69. package/models/create-partner-type-response-class.ts +31 -0
  70. package/models/delete-response-class.ts +30 -0
  71. package/models/get-partner-response-class.ts +31 -0
  72. package/models/get-partner-type-response-class.ts +31 -0
  73. package/models/index.ts +17 -0
  74. package/models/inline-response200.ts +48 -0
  75. package/models/inline-response503.ts +48 -0
  76. package/models/list-partner-types-response-class.ts +37 -0
  77. package/models/list-partners-response-class.ts +37 -0
  78. package/models/partner-class.ts +73 -0
  79. package/models/partner-type-class.ts +60 -0
  80. package/models/update-partner-request-dto.ts +36 -0
  81. package/models/update-partner-response-class.ts +31 -0
  82. package/models/update-partner-type-request-dto.ts +36 -0
  83. package/models/update-partner-type-response-class.ts +31 -0
  84. package/package.json +27 -0
  85. package/tsconfig.json +22 -0
@@ -0,0 +1,196 @@
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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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
+ * DefaultApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var DefaultApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ check: function (options) {
101
+ if (options === void 0) { options = {}; }
102
+ return __awaiter(_this, void 0, void 0, function () {
103
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
104
+ return __generator(this, function (_a) {
105
+ localVarPath = "/partnerservice/health";
106
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ if (configuration) {
108
+ baseOptions = configuration.baseOptions;
109
+ baseAccessToken = configuration.accessToken;
110
+ }
111
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
112
+ localVarHeaderParameter = {};
113
+ localVarQueryParameter = {};
114
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
115
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
117
+ return [2 /*return*/, {
118
+ url: (0, common_1.toPathString)(localVarUrlObj),
119
+ options: localVarRequestOptions,
120
+ }];
121
+ });
122
+ });
123
+ },
124
+ };
125
+ };
126
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
127
+ /**
128
+ * DefaultApi - functional programming interface
129
+ * @export
130
+ */
131
+ var DefaultApiFp = function (configuration) {
132
+ var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
133
+ return {
134
+ /**
135
+ *
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ check: function (options) {
140
+ return __awaiter(this, void 0, void 0, function () {
141
+ var localVarAxiosArgs;
142
+ return __generator(this, function (_a) {
143
+ switch (_a.label) {
144
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
145
+ case 1:
146
+ localVarAxiosArgs = _a.sent();
147
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ };
153
+ };
154
+ exports.DefaultApiFp = DefaultApiFp;
155
+ /**
156
+ * DefaultApi - factory interface
157
+ * @export
158
+ */
159
+ var DefaultApiFactory = function (configuration, basePath, axios) {
160
+ var localVarFp = (0, exports.DefaultApiFp)(configuration);
161
+ return {
162
+ /**
163
+ *
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ check: function (options) {
168
+ return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
169
+ },
170
+ };
171
+ };
172
+ exports.DefaultApiFactory = DefaultApiFactory;
173
+ /**
174
+ * DefaultApi - object-oriented interface
175
+ * @export
176
+ * @class DefaultApi
177
+ * @extends {BaseAPI}
178
+ */
179
+ var DefaultApi = /** @class */ (function (_super) {
180
+ __extends(DefaultApi, _super);
181
+ function DefaultApi() {
182
+ return _super !== null && _super.apply(this, arguments) || this;
183
+ }
184
+ /**
185
+ *
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ * @memberof DefaultApi
189
+ */
190
+ DefaultApi.prototype.check = function (options) {
191
+ var _this = this;
192
+ return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
+ };
194
+ return DefaultApi;
195
+ }(base_1.BaseAPI));
196
+ exports.DefaultApi = DefaultApi;
@@ -0,0 +1,385 @@
1
+ /**
2
+ * EMIL PartnerService
3
+ * The EMIL PartnerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreatePartnerTypeRequestDto } from '../models';
16
+ import { CreatePartnerTypeResponseClass } from '../models';
17
+ import { DeleteResponseClass } from '../models';
18
+ import { GetPartnerTypeResponseClass } from '../models';
19
+ import { ListPartnerTypesResponseClass } from '../models';
20
+ import { UpdatePartnerTypeRequestDto } from '../models';
21
+ import { UpdatePartnerTypeResponseClass } from '../models';
22
+ /**
23
+ * PartnerTypesApi - axios parameter creator
24
+ * @export
25
+ */
26
+ export declare const PartnerTypesApiAxiosParamCreator: (configuration?: Configuration) => {
27
+ /**
28
+ * This will create a partner type.
29
+ * @summary Create the partner-types
30
+ * @param {CreatePartnerTypeRequestDto} createPartnerTypeRequestDto
31
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ createPartnerType: (createPartnerTypeRequestDto: CreatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ * Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
38
+ * @summary Delete the partner-types
39
+ * @param {string} code
40
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ deletePartnerType: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
47
+ * @summary Retrieve the partner-types
48
+ * @param {string} code Unique identifier for the object.
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {any} [expand]
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ getPartnerType: (code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
57
+ * @summary List partner-types
58
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
59
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
60
+ * @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.
61
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
62
+ * @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.
63
+ * @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.
64
+ * @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.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ listPartnerTypes: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ * Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
71
+ * @summary Update the partner-types
72
+ * @param {string} code Unique identifier for the object.
73
+ * @param {UpdatePartnerTypeRequestDto} updatePartnerTypeRequestDto
74
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ updatePartnerType: (code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
+ };
80
+ /**
81
+ * PartnerTypesApi - functional programming interface
82
+ * @export
83
+ */
84
+ export declare const PartnerTypesApiFp: (configuration?: Configuration) => {
85
+ /**
86
+ * This will create a partner type.
87
+ * @summary Create the partner-types
88
+ * @param {CreatePartnerTypeRequestDto} createPartnerTypeRequestDto
89
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ createPartnerType(createPartnerTypeRequestDto: CreatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerTypeResponseClass>>;
94
+ /**
95
+ * Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
96
+ * @summary Delete the partner-types
97
+ * @param {string} code
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ deletePartnerType(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
103
+ /**
104
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
105
+ * @summary Retrieve the partner-types
106
+ * @param {string} code Unique identifier for the object.
107
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
108
+ * @param {any} [expand]
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ getPartnerType(code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerTypeResponseClass>>;
113
+ /**
114
+ * Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
115
+ * @summary List partner-types
116
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
118
+ * @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.
119
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
120
+ * @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.
121
+ * @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.
122
+ * @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.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerTypesResponseClass>>;
127
+ /**
128
+ * Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
129
+ * @summary Update the partner-types
130
+ * @param {string} code Unique identifier for the object.
131
+ * @param {UpdatePartnerTypeRequestDto} updatePartnerTypeRequestDto
132
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ updatePartnerType(code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerTypeResponseClass>>;
137
+ };
138
+ /**
139
+ * PartnerTypesApi - factory interface
140
+ * @export
141
+ */
142
+ export declare const PartnerTypesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
143
+ /**
144
+ * This will create a partner type.
145
+ * @summary Create the partner-types
146
+ * @param {CreatePartnerTypeRequestDto} createPartnerTypeRequestDto
147
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ createPartnerType(createPartnerTypeRequestDto: CreatePartnerTypeRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerTypeResponseClass>;
152
+ /**
153
+ * Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
154
+ * @summary Delete the partner-types
155
+ * @param {string} code
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ deletePartnerType(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
161
+ /**
162
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
163
+ * @summary Retrieve the partner-types
164
+ * @param {string} code Unique identifier for the object.
165
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
166
+ * @param {any} [expand]
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ getPartnerType(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerTypeResponseClass>;
171
+ /**
172
+ * Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
173
+ * @summary List partner-types
174
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
175
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
176
+ * @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.
177
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
178
+ * @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.
179
+ * @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.
180
+ * @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.
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnerTypesResponseClass>;
185
+ /**
186
+ * Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
187
+ * @summary Update the partner-types
188
+ * @param {string} code Unique identifier for the object.
189
+ * @param {UpdatePartnerTypeRequestDto} updatePartnerTypeRequestDto
190
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ updatePartnerType(code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerTypeResponseClass>;
195
+ };
196
+ /**
197
+ * Request parameters for createPartnerType operation in PartnerTypesApi.
198
+ * @export
199
+ * @interface PartnerTypesApiCreatePartnerTypeRequest
200
+ */
201
+ export interface PartnerTypesApiCreatePartnerTypeRequest {
202
+ /**
203
+ *
204
+ * @type {CreatePartnerTypeRequestDto}
205
+ * @memberof PartnerTypesApiCreatePartnerType
206
+ */
207
+ readonly createPartnerTypeRequestDto: CreatePartnerTypeRequestDto;
208
+ /**
209
+ * Bearer Token: provided by the login endpoint under the name accessToken.
210
+ * @type {string}
211
+ * @memberof PartnerTypesApiCreatePartnerType
212
+ */
213
+ readonly authorization?: string;
214
+ }
215
+ /**
216
+ * Request parameters for deletePartnerType operation in PartnerTypesApi.
217
+ * @export
218
+ * @interface PartnerTypesApiDeletePartnerTypeRequest
219
+ */
220
+ export interface PartnerTypesApiDeletePartnerTypeRequest {
221
+ /**
222
+ *
223
+ * @type {string}
224
+ * @memberof PartnerTypesApiDeletePartnerType
225
+ */
226
+ readonly code: string;
227
+ /**
228
+ * Bearer Token: provided by the login endpoint under the name accessToken.
229
+ * @type {string}
230
+ * @memberof PartnerTypesApiDeletePartnerType
231
+ */
232
+ readonly authorization?: string;
233
+ }
234
+ /**
235
+ * Request parameters for getPartnerType operation in PartnerTypesApi.
236
+ * @export
237
+ * @interface PartnerTypesApiGetPartnerTypeRequest
238
+ */
239
+ export interface PartnerTypesApiGetPartnerTypeRequest {
240
+ /**
241
+ * Unique identifier for the object.
242
+ * @type {string}
243
+ * @memberof PartnerTypesApiGetPartnerType
244
+ */
245
+ readonly code: string;
246
+ /**
247
+ * Bearer Token: provided by the login endpoint under the name accessToken.
248
+ * @type {string}
249
+ * @memberof PartnerTypesApiGetPartnerType
250
+ */
251
+ readonly authorization?: string;
252
+ /**
253
+ *
254
+ * @type {any}
255
+ * @memberof PartnerTypesApiGetPartnerType
256
+ */
257
+ readonly expand?: any;
258
+ }
259
+ /**
260
+ * Request parameters for listPartnerTypes operation in PartnerTypesApi.
261
+ * @export
262
+ * @interface PartnerTypesApiListPartnerTypesRequest
263
+ */
264
+ export interface PartnerTypesApiListPartnerTypesRequest {
265
+ /**
266
+ * Bearer Token: provided by the login endpoint under the name accessToken.
267
+ * @type {string}
268
+ * @memberof PartnerTypesApiListPartnerTypes
269
+ */
270
+ readonly authorization?: string;
271
+ /**
272
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
273
+ * @type {any}
274
+ * @memberof PartnerTypesApiListPartnerTypes
275
+ */
276
+ readonly pageSize?: any;
277
+ /**
278
+ * 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.
279
+ * @type {any}
280
+ * @memberof PartnerTypesApiListPartnerTypes
281
+ */
282
+ readonly pageToken?: any;
283
+ /**
284
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
285
+ * @type {any}
286
+ * @memberof PartnerTypesApiListPartnerTypes
287
+ */
288
+ readonly filter?: any;
289
+ /**
290
+ * 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.
291
+ * @type {any}
292
+ * @memberof PartnerTypesApiListPartnerTypes
293
+ */
294
+ readonly search?: any;
295
+ /**
296
+ * 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.
297
+ * @type {any}
298
+ * @memberof PartnerTypesApiListPartnerTypes
299
+ */
300
+ readonly order?: any;
301
+ /**
302
+ * 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.
303
+ * @type {any}
304
+ * @memberof PartnerTypesApiListPartnerTypes
305
+ */
306
+ readonly expand?: any;
307
+ }
308
+ /**
309
+ * Request parameters for updatePartnerType operation in PartnerTypesApi.
310
+ * @export
311
+ * @interface PartnerTypesApiUpdatePartnerTypeRequest
312
+ */
313
+ export interface PartnerTypesApiUpdatePartnerTypeRequest {
314
+ /**
315
+ * Unique identifier for the object.
316
+ * @type {string}
317
+ * @memberof PartnerTypesApiUpdatePartnerType
318
+ */
319
+ readonly code: string;
320
+ /**
321
+ *
322
+ * @type {UpdatePartnerTypeRequestDto}
323
+ * @memberof PartnerTypesApiUpdatePartnerType
324
+ */
325
+ readonly updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto;
326
+ /**
327
+ * Bearer Token: provided by the login endpoint under the name accessToken.
328
+ * @type {string}
329
+ * @memberof PartnerTypesApiUpdatePartnerType
330
+ */
331
+ readonly authorization?: string;
332
+ }
333
+ /**
334
+ * PartnerTypesApi - object-oriented interface
335
+ * @export
336
+ * @class PartnerTypesApi
337
+ * @extends {BaseAPI}
338
+ */
339
+ export declare class PartnerTypesApi extends BaseAPI {
340
+ /**
341
+ * This will create a partner type.
342
+ * @summary Create the partner-types
343
+ * @param {PartnerTypesApiCreatePartnerTypeRequest} requestParameters Request parameters.
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ * @memberof PartnerTypesApi
347
+ */
348
+ createPartnerType(requestParameters: PartnerTypesApiCreatePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerTypeResponseClass, any>>;
349
+ /**
350
+ * Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
351
+ * @summary Delete the partner-types
352
+ * @param {PartnerTypesApiDeletePartnerTypeRequest} requestParameters Request parameters.
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ * @memberof PartnerTypesApi
356
+ */
357
+ deletePartnerType(requestParameters: PartnerTypesApiDeletePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
358
+ /**
359
+ * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
360
+ * @summary Retrieve the partner-types
361
+ * @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ * @memberof PartnerTypesApi
365
+ */
366
+ getPartnerType(requestParameters: PartnerTypesApiGetPartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerTypeResponseClass, any>>;
367
+ /**
368
+ * Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
369
+ * @summary List partner-types
370
+ * @param {PartnerTypesApiListPartnerTypesRequest} requestParameters Request parameters.
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ * @memberof PartnerTypesApi
374
+ */
375
+ listPartnerTypes(requestParameters?: PartnerTypesApiListPartnerTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerTypesResponseClass, any>>;
376
+ /**
377
+ * Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
378
+ * @summary Update the partner-types
379
+ * @param {PartnerTypesApiUpdatePartnerTypeRequest} requestParameters Request parameters.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof PartnerTypesApi
383
+ */
384
+ updatePartnerType(requestParameters: PartnerTypesApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerTypeResponseClass, any>>;
385
+ }