@emilgroup/partner-sdk 1.4.0 → 1.5.1-beta.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 (75) hide show
  1. package/.openapi-generator/FILES +10 -4
  2. package/README.md +2 -2
  3. package/api/{partners-api.ts → partner-api.ts} +90 -90
  4. package/api/partner-invitation-api.ts +165 -0
  5. package/api/{partner-relations-api.ts → partner-relation-api.ts} +95 -95
  6. package/api/{partner-tags-api.ts → partner-tag-api.ts} +70 -70
  7. package/api/{partner-types-api.ts → partner-type-api.ts} +68 -68
  8. package/api/partner-version-api.ts +4 -4
  9. package/api.ts +10 -8
  10. package/base.ts +3 -3
  11. package/dist/api/{partners-api.d.ts → partner-api.d.ts} +82 -82
  12. package/dist/api/{partners-api.js → partner-api.js} +56 -56
  13. package/dist/api/partner-invitation-api.d.ts +97 -0
  14. package/dist/api/partner-invitation-api.js +224 -0
  15. package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +86 -86
  16. package/dist/api/{partner-relations-api.js → partner-relation-api.js} +53 -53
  17. package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +63 -63
  18. package/dist/api/{partner-tags-api.js → partner-tag-api.js} +46 -46
  19. package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +61 -61
  20. package/dist/api/{partner-types-api.js → partner-type-api.js} +43 -43
  21. package/dist/api/partner-version-api.d.ts +4 -4
  22. package/dist/api/partner-version-api.js +3 -3
  23. package/dist/api.d.ts +5 -4
  24. package/dist/api.js +5 -4
  25. package/dist/base.d.ts +2 -2
  26. package/dist/base.js +1 -2
  27. package/dist/models/create-partner-response-class.d.ts +7 -0
  28. package/dist/models/create-partner-type-response-class.d.ts +1 -1
  29. package/dist/models/get-partner-type-response-class.d.ts +1 -1
  30. package/dist/models/get-partner-version-response-class.d.ts +3 -3
  31. package/dist/models/index.d.ts +5 -0
  32. package/dist/models/index.js +5 -0
  33. package/dist/models/invite-class.d.ts +79 -0
  34. package/dist/models/invite-class.js +15 -0
  35. package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
  36. package/dist/models/invite-partner-to-eis-response-class.js +15 -0
  37. package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
  38. package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
  39. package/dist/models/list-partner-relation-class.d.ts +1 -1
  40. package/dist/models/list-partner-relation-types-class.d.ts +1 -1
  41. package/dist/models/list-partner-types-response-class.d.ts +1 -1
  42. package/dist/models/list-partner-versions-response-class.d.ts +7 -1
  43. package/dist/models/list-partners-response-class.d.ts +1 -1
  44. package/dist/models/partner-class.d.ts +24 -6
  45. package/dist/models/partner-relation-class.d.ts +12 -0
  46. package/dist/models/partner-relation-type-class.d.ts +12 -0
  47. package/dist/models/partner-type-class.d.ts +12 -0
  48. package/dist/models/permission-class.d.ts +72 -0
  49. package/dist/models/permission-class.js +15 -0
  50. package/dist/models/role-class.d.ts +73 -0
  51. package/dist/models/role-class.js +15 -0
  52. package/dist/models/tag-class.d.ts +12 -0
  53. package/dist/models/update-partner-type-response-class.d.ts +1 -1
  54. package/models/create-partner-response-class.ts +7 -0
  55. package/models/create-partner-type-response-class.ts +1 -1
  56. package/models/get-partner-type-response-class.ts +1 -1
  57. package/models/get-partner-version-response-class.ts +3 -3
  58. package/models/index.ts +5 -0
  59. package/models/invite-class.ts +85 -0
  60. package/models/invite-partner-to-eis-response-class.ts +31 -0
  61. package/models/invite-partner-to-eisrequest-dto.ts +48 -0
  62. package/models/list-partner-relation-class.ts +1 -1
  63. package/models/list-partner-relation-types-class.ts +1 -1
  64. package/models/list-partner-types-response-class.ts +1 -1
  65. package/models/list-partner-versions-response-class.ts +7 -1
  66. package/models/list-partners-response-class.ts +1 -1
  67. package/models/partner-class.ts +24 -6
  68. package/models/partner-relation-class.ts +12 -0
  69. package/models/partner-relation-type-class.ts +12 -0
  70. package/models/partner-type-class.ts +12 -0
  71. package/models/permission-class.ts +78 -0
  72. package/models/role-class.ts +79 -0
  73. package/models/tag-class.ts +12 -0
  74. package/models/update-partner-type-response-class.ts +1 -1
  75. package/package.json +1 -1
@@ -0,0 +1,165 @@
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 { InvitePartnerToEISRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { InvitePartnerToEisResponseClass } from '../models';
27
+ /**
28
+ * PartnerInvitationApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const PartnerInvitationApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
35
+ * @summary Create the Partner Invitation
36
+ * @param {InvitePartnerToEISRequestDto} invitePartnerToEISRequestDto
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
+ invitePartnerToEIS: async (invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'invitePartnerToEISRequestDto' is not null or undefined
43
+ assertParamExists('invitePartnerToEIS', 'invitePartnerToEISRequestDto', invitePartnerToEISRequestDto)
44
+ const localVarPath = `/partnerservice/v1/partner-invitation`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ let baseAccessToken;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ baseAccessToken = configuration.accessToken;
52
+ }
53
+
54
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
+ const localVarHeaderParameter = {} as any;
56
+ const localVarQueryParameter = {} as any;
57
+
58
+ // authentication bearer required
59
+ // http bearer authentication required
60
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
+
62
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
64
+ }
65
+
66
+
67
+
68
+ localVarHeaderParameter['Content-Type'] = 'application/json';
69
+
70
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
+ localVarRequestOptions.data = serializeDataIfNeeded(invitePartnerToEISRequestDto, localVarRequestOptions, configuration)
74
+
75
+ return {
76
+ url: toPathString(localVarUrlObj),
77
+ options: localVarRequestOptions,
78
+ };
79
+ },
80
+ }
81
+ };
82
+
83
+ /**
84
+ * PartnerInvitationApi - functional programming interface
85
+ * @export
86
+ */
87
+ export const PartnerInvitationApiFp = function(configuration?: Configuration) {
88
+ const localVarAxiosParamCreator = PartnerInvitationApiAxiosParamCreator(configuration)
89
+ return {
90
+ /**
91
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
92
+ * @summary Create the Partner Invitation
93
+ * @param {InvitePartnerToEISRequestDto} invitePartnerToEISRequestDto
94
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ async invitePartnerToEIS(invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvitePartnerToEisResponseClass>> {
99
+ const localVarAxiosArgs = await localVarAxiosParamCreator.invitePartnerToEIS(invitePartnerToEISRequestDto, authorization, options);
100
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
+ },
102
+ }
103
+ };
104
+
105
+ /**
106
+ * PartnerInvitationApi - factory interface
107
+ * @export
108
+ */
109
+ export const PartnerInvitationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110
+ const localVarFp = PartnerInvitationApiFp(configuration)
111
+ return {
112
+ /**
113
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
114
+ * @summary Create the Partner Invitation
115
+ * @param {InvitePartnerToEISRequestDto} invitePartnerToEISRequestDto
116
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ invitePartnerToEIS(invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto, authorization?: string, options?: any): AxiosPromise<InvitePartnerToEisResponseClass> {
121
+ return localVarFp.invitePartnerToEIS(invitePartnerToEISRequestDto, authorization, options).then((request) => request(axios, basePath));
122
+ },
123
+ };
124
+ };
125
+
126
+ /**
127
+ * Request parameters for invitePartnerToEIS operation in PartnerInvitationApi.
128
+ * @export
129
+ * @interface PartnerInvitationApiInvitePartnerToEISRequest
130
+ */
131
+ export interface PartnerInvitationApiInvitePartnerToEISRequest {
132
+ /**
133
+ *
134
+ * @type {InvitePartnerToEISRequestDto}
135
+ * @memberof PartnerInvitationApiInvitePartnerToEIS
136
+ */
137
+ readonly invitePartnerToEISRequestDto: InvitePartnerToEISRequestDto
138
+
139
+ /**
140
+ * Bearer Token: provided by the login endpoint under the name accessToken.
141
+ * @type {string}
142
+ * @memberof PartnerInvitationApiInvitePartnerToEIS
143
+ */
144
+ readonly authorization?: string
145
+ }
146
+
147
+ /**
148
+ * PartnerInvitationApi - object-oriented interface
149
+ * @export
150
+ * @class PartnerInvitationApi
151
+ * @extends {BaseAPI}
152
+ */
153
+ export class PartnerInvitationApi extends BaseAPI {
154
+ /**
155
+ * Invites a partner to EIS Platform - partner must have one of vermittler,intermediary to be eligible for invitation.
156
+ * @summary Create the Partner Invitation
157
+ * @param {PartnerInvitationApiInvitePartnerToEISRequest} requestParameters Request parameters.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ * @memberof PartnerInvitationApi
161
+ */
162
+ public invitePartnerToEIS(requestParameters: PartnerInvitationApiInvitePartnerToEISRequest, options?: AxiosRequestConfig) {
163
+ return PartnerInvitationApiFp(this.configuration).invitePartnerToEIS(requestParameters.invitePartnerToEISRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
+ }
165
+ }