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