@ayasofyazilim/saas 0.0.14 → 0.0.16

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.
@@ -0,0 +1,361 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ import type { CancelablePromise } from './core/CancelablePromise';
4
+ import type { BaseHttpRequest } from './core/BaseHttpRequest';
5
+ import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse, PostApiMerchantServiceMerchantsAddEntityInformationTypeData, PostApiMerchantServiceMerchantsAddEntityInformationTypeResponse, PostApiMerchantServiceMerchantsAddOrganizationData, PostApiMerchantServiceMerchantsAddOrganizationResponse, PostApiMerchantServiceMerchantsAddSubOrganizationData, PostApiMerchantServiceMerchantsAddSubOrganizationResponse, PostApiMerchantServiceMerchantsAddTelephonesData, PostApiMerchantServiceMerchantsAddTelephonesResponse, PostApiMerchantServiceMerchantsAddAddressesData, PostApiMerchantServiceMerchantsAddAddressesResponse, PostApiMerchantServiceMerchantsAddEmailsData, PostApiMerchantServiceMerchantsAddEmailsResponse, PostApiMerchantServiceMerchantsAddProductGroupData, PostApiMerchantServiceMerchantsAddProductGroupResponse, PostApiMerchantServiceMerchantsCreateMerchantWithComponentsData, PostApiMerchantServiceMerchantsCreateMerchantWithComponentsResponse, GetApiMerchantServiceMerchantsDetailByIdData, GetApiMerchantServiceMerchantsDetailByIdResponse, GetApiMerchantServiceMerchantsDetailData, GetApiMerchantServiceMerchantsDetailResponse } from './types.gen';
6
+
7
+ export class AbpApiDefinitionService {
8
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
9
+
10
+ /**
11
+ * @param data The data for the request.
12
+ * @param data.includeTypes
13
+ * @returns unknown Success
14
+ * @throws ApiError
15
+ */
16
+ public getApiAbpApiDefinition(data: GetApiAbpApiDefinitionData = {}): CancelablePromise<GetApiAbpApiDefinitionResponse> {
17
+ return this.httpRequest.request({
18
+ method: 'GET',
19
+ url: '/api/abp/api-definition',
20
+ query: {
21
+ IncludeTypes: data.includeTypes
22
+ },
23
+ errors: {
24
+ 400: 'Bad Request',
25
+ 401: 'Unauthorized',
26
+ 403: 'Forbidden',
27
+ 404: 'Not Found',
28
+ 500: 'Server Error',
29
+ 501: 'Server Error'
30
+ }
31
+ });
32
+ }
33
+
34
+ }
35
+
36
+ export class AbpApplicationConfigurationService {
37
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
38
+
39
+ /**
40
+ * @param data The data for the request.
41
+ * @param data.includeLocalizationResources
42
+ * @returns unknown Success
43
+ * @throws ApiError
44
+ */
45
+ public getApiAbpApplicationConfiguration(data: GetApiAbpApplicationConfigurationData = {}): CancelablePromise<GetApiAbpApplicationConfigurationResponse> {
46
+ return this.httpRequest.request({
47
+ method: 'GET',
48
+ url: '/api/abp/application-configuration',
49
+ query: {
50
+ IncludeLocalizationResources: data.includeLocalizationResources
51
+ },
52
+ errors: {
53
+ 400: 'Bad Request',
54
+ 401: 'Unauthorized',
55
+ 403: 'Forbidden',
56
+ 404: 'Not Found',
57
+ 500: 'Server Error',
58
+ 501: 'Server Error'
59
+ }
60
+ });
61
+ }
62
+
63
+ }
64
+
65
+ export class AbpApplicationLocalizationService {
66
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
67
+
68
+ /**
69
+ * @param data The data for the request.
70
+ * @param data.cultureName
71
+ * @param data.onlyDynamics
72
+ * @returns unknown Success
73
+ * @throws ApiError
74
+ */
75
+ public getApiAbpApplicationLocalization(data: GetApiAbpApplicationLocalizationData): CancelablePromise<GetApiAbpApplicationLocalizationResponse> {
76
+ return this.httpRequest.request({
77
+ method: 'GET',
78
+ url: '/api/abp/application-localization',
79
+ query: {
80
+ CultureName: data.cultureName,
81
+ OnlyDynamics: data.onlyDynamics
82
+ },
83
+ errors: {
84
+ 400: 'Bad Request',
85
+ 401: 'Unauthorized',
86
+ 403: 'Forbidden',
87
+ 404: 'Not Found',
88
+ 500: 'Server Error',
89
+ 501: 'Server Error'
90
+ }
91
+ });
92
+ }
93
+
94
+ }
95
+
96
+ export class MerchantService {
97
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
98
+
99
+ /**
100
+ * @param data The data for the request.
101
+ * @param data.merchantId
102
+ * @param data.requestBody
103
+ * @returns unknown Success
104
+ * @throws ApiError
105
+ */
106
+ public postApiMerchantServiceMerchantsAddEntityInformationType(data: PostApiMerchantServiceMerchantsAddEntityInformationTypeData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddEntityInformationTypeResponse> {
107
+ return this.httpRequest.request({
108
+ method: 'POST',
109
+ url: '/api/merchant-service/merchants/add-entity-information-type',
110
+ query: {
111
+ merchantId: data.merchantId
112
+ },
113
+ body: data.requestBody,
114
+ mediaType: 'application/json',
115
+ errors: {
116
+ 400: 'Bad Request',
117
+ 401: 'Unauthorized',
118
+ 403: 'Forbidden',
119
+ 404: 'Not Found',
120
+ 500: 'Server Error',
121
+ 501: 'Server Error'
122
+ }
123
+ });
124
+ }
125
+
126
+ /**
127
+ * @param data The data for the request.
128
+ * @param data.entityInformationTypeId
129
+ * @param data.requestBody
130
+ * @returns unknown Success
131
+ * @throws ApiError
132
+ */
133
+ public postApiMerchantServiceMerchantsAddOrganization(data: PostApiMerchantServiceMerchantsAddOrganizationData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddOrganizationResponse> {
134
+ return this.httpRequest.request({
135
+ method: 'POST',
136
+ url: '/api/merchant-service/merchants/add-organization',
137
+ query: {
138
+ entityInformationTypeId: data.entityInformationTypeId
139
+ },
140
+ body: data.requestBody,
141
+ mediaType: 'application/json',
142
+ errors: {
143
+ 400: 'Bad Request',
144
+ 401: 'Unauthorized',
145
+ 403: 'Forbidden',
146
+ 404: 'Not Found',
147
+ 500: 'Server Error',
148
+ 501: 'Server Error'
149
+ }
150
+ });
151
+ }
152
+
153
+ /**
154
+ * @param data The data for the request.
155
+ * @param data.entityInformationTypeId
156
+ * @param data.requestBody
157
+ * @returns unknown Success
158
+ * @throws ApiError
159
+ */
160
+ public postApiMerchantServiceMerchantsAddSubOrganization(data: PostApiMerchantServiceMerchantsAddSubOrganizationData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddSubOrganizationResponse> {
161
+ return this.httpRequest.request({
162
+ method: 'POST',
163
+ url: '/api/merchant-service/merchants/add-sub-organization',
164
+ query: {
165
+ entityInformationTypeId: data.entityInformationTypeId
166
+ },
167
+ body: data.requestBody,
168
+ mediaType: 'application/json',
169
+ errors: {
170
+ 400: 'Bad Request',
171
+ 401: 'Unauthorized',
172
+ 403: 'Forbidden',
173
+ 404: 'Not Found',
174
+ 500: 'Server Error',
175
+ 501: 'Server Error'
176
+ }
177
+ });
178
+ }
179
+
180
+ /**
181
+ * @param data The data for the request.
182
+ * @param data.contactInformationTypeId
183
+ * @param data.requestBody
184
+ * @returns unknown Success
185
+ * @throws ApiError
186
+ */
187
+ public postApiMerchantServiceMerchantsAddTelephones(data: PostApiMerchantServiceMerchantsAddTelephonesData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddTelephonesResponse> {
188
+ return this.httpRequest.request({
189
+ method: 'POST',
190
+ url: '/api/merchant-service/merchants/add-telephones',
191
+ query: {
192
+ contactInformationTypeId: data.contactInformationTypeId
193
+ },
194
+ body: data.requestBody,
195
+ mediaType: 'application/json',
196
+ errors: {
197
+ 400: 'Bad Request',
198
+ 401: 'Unauthorized',
199
+ 403: 'Forbidden',
200
+ 404: 'Not Found',
201
+ 500: 'Server Error',
202
+ 501: 'Server Error'
203
+ }
204
+ });
205
+ }
206
+
207
+ /**
208
+ * @param data The data for the request.
209
+ * @param data.contactInformationTypeId
210
+ * @param data.requestBody
211
+ * @returns unknown Success
212
+ * @throws ApiError
213
+ */
214
+ public postApiMerchantServiceMerchantsAddAddresses(data: PostApiMerchantServiceMerchantsAddAddressesData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddAddressesResponse> {
215
+ return this.httpRequest.request({
216
+ method: 'POST',
217
+ url: '/api/merchant-service/merchants/add-addresses',
218
+ query: {
219
+ contactInformationTypeId: data.contactInformationTypeId
220
+ },
221
+ body: data.requestBody,
222
+ mediaType: 'application/json',
223
+ errors: {
224
+ 400: 'Bad Request',
225
+ 401: 'Unauthorized',
226
+ 403: 'Forbidden',
227
+ 404: 'Not Found',
228
+ 500: 'Server Error',
229
+ 501: 'Server Error'
230
+ }
231
+ });
232
+ }
233
+
234
+ /**
235
+ * @param data The data for the request.
236
+ * @param data.contactInformationTypeId
237
+ * @param data.requestBody
238
+ * @returns unknown Success
239
+ * @throws ApiError
240
+ */
241
+ public postApiMerchantServiceMerchantsAddEmails(data: PostApiMerchantServiceMerchantsAddEmailsData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddEmailsResponse> {
242
+ return this.httpRequest.request({
243
+ method: 'POST',
244
+ url: '/api/merchant-service/merchants/add-emails',
245
+ query: {
246
+ contactInformationTypeId: data.contactInformationTypeId
247
+ },
248
+ body: data.requestBody,
249
+ mediaType: 'application/json',
250
+ errors: {
251
+ 400: 'Bad Request',
252
+ 401: 'Unauthorized',
253
+ 403: 'Forbidden',
254
+ 404: 'Not Found',
255
+ 500: 'Server Error',
256
+ 501: 'Server Error'
257
+ }
258
+ });
259
+ }
260
+
261
+ /**
262
+ * @param data The data for the request.
263
+ * @param data.organizationId
264
+ * @param data.requestBody
265
+ * @returns unknown Success
266
+ * @throws ApiError
267
+ */
268
+ public postApiMerchantServiceMerchantsAddProductGroup(data: PostApiMerchantServiceMerchantsAddProductGroupData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddProductGroupResponse> {
269
+ return this.httpRequest.request({
270
+ method: 'POST',
271
+ url: '/api/merchant-service/merchants/add-product-group',
272
+ query: {
273
+ organizationId: data.organizationId
274
+ },
275
+ body: data.requestBody,
276
+ mediaType: 'application/json',
277
+ errors: {
278
+ 400: 'Bad Request',
279
+ 401: 'Unauthorized',
280
+ 403: 'Forbidden',
281
+ 404: 'Not Found',
282
+ 500: 'Server Error',
283
+ 501: 'Server Error'
284
+ }
285
+ });
286
+ }
287
+
288
+ /**
289
+ * @param data The data for the request.
290
+ * @param data.requestBody
291
+ * @returns unknown Success
292
+ * @throws ApiError
293
+ */
294
+ public postApiMerchantServiceMerchantsCreateMerchantWithComponents(data: PostApiMerchantServiceMerchantsCreateMerchantWithComponentsData = {}): CancelablePromise<PostApiMerchantServiceMerchantsCreateMerchantWithComponentsResponse> {
295
+ return this.httpRequest.request({
296
+ method: 'POST',
297
+ url: '/api/merchant-service/merchants/create-merchant-with-components',
298
+ body: data.requestBody,
299
+ mediaType: 'application/json',
300
+ errors: {
301
+ 400: 'Bad Request',
302
+ 401: 'Unauthorized',
303
+ 403: 'Forbidden',
304
+ 404: 'Not Found',
305
+ 500: 'Server Error',
306
+ 501: 'Server Error'
307
+ }
308
+ });
309
+ }
310
+
311
+ /**
312
+ * @param data The data for the request.
313
+ * @param data.id
314
+ * @returns unknown Success
315
+ * @throws ApiError
316
+ */
317
+ public getApiMerchantServiceMerchantsDetailById(data: GetApiMerchantServiceMerchantsDetailByIdData): CancelablePromise<GetApiMerchantServiceMerchantsDetailByIdResponse> {
318
+ return this.httpRequest.request({
319
+ method: 'GET',
320
+ url: '/api/merchant-service/merchants/detail/{id}',
321
+ path: {
322
+ id: data.id
323
+ },
324
+ errors: {
325
+ 400: 'Bad Request',
326
+ 401: 'Unauthorized',
327
+ 403: 'Forbidden',
328
+ 404: 'Not Found',
329
+ 500: 'Server Error',
330
+ 501: 'Server Error'
331
+ }
332
+ });
333
+ }
334
+
335
+ /**
336
+ * @param data The data for the request.
337
+ * @param data.skipCount
338
+ * @param data.maxResultCount
339
+ * @returns unknown Success
340
+ * @throws ApiError
341
+ */
342
+ public getApiMerchantServiceMerchantsDetail(data: GetApiMerchantServiceMerchantsDetailData = {}): CancelablePromise<GetApiMerchantServiceMerchantsDetailResponse> {
343
+ return this.httpRequest.request({
344
+ method: 'GET',
345
+ url: '/api/merchant-service/merchants/detail',
346
+ query: {
347
+ SkipCount: data.skipCount,
348
+ MaxResultCount: data.maxResultCount
349
+ },
350
+ errors: {
351
+ 400: 'Bad Request',
352
+ 401: 'Unauthorized',
353
+ 403: 'Forbidden',
354
+ 404: 'Not Found',
355
+ 500: 'Server Error',
356
+ 501: 'Server Error'
357
+ }
358
+ });
359
+ }
360
+
361
+ }