@ayasofyazilim/saas 0.0.13 → 0.0.15

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 (52) hide show
  1. package/AccountService/schemas.gen.ts +4 -17
  2. package/AccountService/types.gen.ts +0 -9
  3. package/AdministrationService/schemas.gen.ts +7 -7
  4. package/BackerService/BackerServiceClient.ts +44 -0
  5. package/BackerService/core/ApiError.ts +21 -0
  6. package/BackerService/core/ApiRequestOptions.ts +13 -0
  7. package/BackerService/core/ApiResult.ts +7 -0
  8. package/BackerService/core/BaseHttpRequest.ts +10 -0
  9. package/BackerService/core/CancelablePromise.ts +126 -0
  10. package/BackerService/core/FetchHttpRequest.ts +22 -0
  11. package/BackerService/core/OpenAPI.ts +56 -0
  12. package/BackerService/core/request.ts +341 -0
  13. package/BackerService/index.ts +9 -0
  14. package/BackerService/schemas.gen.ts +8991 -0
  15. package/BackerService/services.gen.ts +270 -0
  16. package/BackerService/types.gen.ts +6611 -0
  17. package/IdentityService/schemas.gen.ts +10 -36
  18. package/IdentityService/services.gen.ts +1 -25
  19. package/IdentityService/types.gen.ts +0 -241
  20. package/MerchantService/MerchantServiceClient.ts +44 -0
  21. package/MerchantService/core/ApiError.ts +21 -0
  22. package/MerchantService/core/ApiRequestOptions.ts +13 -0
  23. package/MerchantService/core/ApiResult.ts +7 -0
  24. package/MerchantService/core/BaseHttpRequest.ts +10 -0
  25. package/MerchantService/core/CancelablePromise.ts +126 -0
  26. package/MerchantService/core/FetchHttpRequest.ts +22 -0
  27. package/MerchantService/core/OpenAPI.ts +56 -0
  28. package/MerchantService/core/request.ts +341 -0
  29. package/MerchantService/index.ts +9 -0
  30. package/MerchantService/schemas.gen.ts +6782 -0
  31. package/MerchantService/services.gen.ts +334 -0
  32. package/MerchantService/types.gen.ts +5088 -0
  33. package/ProjectService/ProjectServiceClient.ts +3 -9
  34. package/ProjectService/schemas.gen.ts +26 -723
  35. package/ProjectService/services.gen.ts +8 -348
  36. package/ProjectService/types.gen.ts +36 -2252
  37. package/SaasService/schemas.gen.ts +5 -5
  38. package/SettingService/SettingServiceClient.ts +53 -53
  39. package/SettingService/core/ApiError.ts +20 -20
  40. package/SettingService/core/ApiRequestOptions.ts +12 -12
  41. package/SettingService/core/ApiResult.ts +6 -6
  42. package/SettingService/core/BaseHttpRequest.ts +9 -9
  43. package/SettingService/core/CancelablePromise.ts +125 -125
  44. package/SettingService/core/FetchHttpRequest.ts +21 -21
  45. package/SettingService/core/OpenAPI.ts +55 -55
  46. package/SettingService/core/request.ts +340 -340
  47. package/SettingService/index.ts +8 -8
  48. package/SettingService/schemas.gen.ts +1521 -1524
  49. package/SettingService/services.gen.ts +316 -316
  50. package/SettingService/types.gen.ts +980 -981
  51. package/generator.mjs +34 -3
  52. package/package.json +4 -2
@@ -0,0 +1,334 @@
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, 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.contactInformationTypeId
156
+ * @param data.requestBody
157
+ * @returns unknown Success
158
+ * @throws ApiError
159
+ */
160
+ public postApiMerchantServiceMerchantsAddTelephones(data: PostApiMerchantServiceMerchantsAddTelephonesData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddTelephonesResponse> {
161
+ return this.httpRequest.request({
162
+ method: 'POST',
163
+ url: '/api/merchant-service/merchants/add-telephones',
164
+ query: {
165
+ contactInformationTypeId: data.contactInformationTypeId
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 postApiMerchantServiceMerchantsAddAddresses(data: PostApiMerchantServiceMerchantsAddAddressesData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddAddressesResponse> {
188
+ return this.httpRequest.request({
189
+ method: 'POST',
190
+ url: '/api/merchant-service/merchants/add-addresses',
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 postApiMerchantServiceMerchantsAddEmails(data: PostApiMerchantServiceMerchantsAddEmailsData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddEmailsResponse> {
215
+ return this.httpRequest.request({
216
+ method: 'POST',
217
+ url: '/api/merchant-service/merchants/add-emails',
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.organizationId
237
+ * @param data.requestBody
238
+ * @returns unknown Success
239
+ * @throws ApiError
240
+ */
241
+ public postApiMerchantServiceMerchantsAddProductGroup(data: PostApiMerchantServiceMerchantsAddProductGroupData = {}): CancelablePromise<PostApiMerchantServiceMerchantsAddProductGroupResponse> {
242
+ return this.httpRequest.request({
243
+ method: 'POST',
244
+ url: '/api/merchant-service/merchants/add-product-group',
245
+ query: {
246
+ organizationId: data.organizationId
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.requestBody
264
+ * @returns unknown Success
265
+ * @throws ApiError
266
+ */
267
+ public postApiMerchantServiceMerchantsCreateMerchantWithComponents(data: PostApiMerchantServiceMerchantsCreateMerchantWithComponentsData = {}): CancelablePromise<PostApiMerchantServiceMerchantsCreateMerchantWithComponentsResponse> {
268
+ return this.httpRequest.request({
269
+ method: 'POST',
270
+ url: '/api/merchant-service/merchants/create-merchant-with-components',
271
+ body: data.requestBody,
272
+ mediaType: 'application/json',
273
+ errors: {
274
+ 400: 'Bad Request',
275
+ 401: 'Unauthorized',
276
+ 403: 'Forbidden',
277
+ 404: 'Not Found',
278
+ 500: 'Server Error',
279
+ 501: 'Server Error'
280
+ }
281
+ });
282
+ }
283
+
284
+ /**
285
+ * @param data The data for the request.
286
+ * @param data.id
287
+ * @returns unknown Success
288
+ * @throws ApiError
289
+ */
290
+ public getApiMerchantServiceMerchantsDetailById(data: GetApiMerchantServiceMerchantsDetailByIdData): CancelablePromise<GetApiMerchantServiceMerchantsDetailByIdResponse> {
291
+ return this.httpRequest.request({
292
+ method: 'GET',
293
+ url: '/api/merchant-service/merchants/detail/{id}',
294
+ path: {
295
+ id: data.id
296
+ },
297
+ errors: {
298
+ 400: 'Bad Request',
299
+ 401: 'Unauthorized',
300
+ 403: 'Forbidden',
301
+ 404: 'Not Found',
302
+ 500: 'Server Error',
303
+ 501: 'Server Error'
304
+ }
305
+ });
306
+ }
307
+
308
+ /**
309
+ * @param data The data for the request.
310
+ * @param data.skipCount
311
+ * @param data.maxResultCount
312
+ * @returns unknown Success
313
+ * @throws ApiError
314
+ */
315
+ public getApiMerchantServiceMerchantsDetail(data: GetApiMerchantServiceMerchantsDetailData = {}): CancelablePromise<GetApiMerchantServiceMerchantsDetailResponse> {
316
+ return this.httpRequest.request({
317
+ method: 'GET',
318
+ url: '/api/merchant-service/merchants/detail',
319
+ query: {
320
+ SkipCount: data.skipCount,
321
+ MaxResultCount: data.maxResultCount
322
+ },
323
+ errors: {
324
+ 400: 'Bad Request',
325
+ 401: 'Unauthorized',
326
+ 403: 'Forbidden',
327
+ 404: 'Not Found',
328
+ 500: 'Server Error',
329
+ 501: 'Server Error'
330
+ }
331
+ });
332
+ }
333
+
334
+ }