@ayasofyazilim/saas 0.0.21 → 0.0.23

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.
@@ -1,461 +1,493 @@
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, PostApiProjectServiceProjectsData, PostApiProjectServiceProjectsResponse, GetApiProjectServiceProjectsData, GetApiProjectServiceProjectsResponse, DeleteApiProjectServiceProjectsByIdData, DeleteApiProjectServiceProjectsByIdResponse, GetApiProjectServiceProjectsByIdData, GetApiProjectServiceProjectsByIdResponse, PutApiProjectServiceProjectsByIdData, PutApiProjectServiceProjectsByIdResponse, GetApiProjectServiceProjectsDetailByIdData, GetApiProjectServiceProjectsDetailByIdResponse, GetApiProjectServiceProjectsSectionListByProjectIdData, GetApiProjectServiceProjectsSectionListByProjectIdResponse, GetApiProjectServiceProjectsMyProjectsResponse, PostApiProjectServiceProjectsSectionData, PostApiProjectServiceProjectsSectionResponse, PostApiProjectServiceProjectsSectionRelationData, PostApiProjectServiceProjectsSectionRelationResponse, PutApiProjectServiceProjectsSectionByIdData, PutApiProjectServiceProjectsSectionByIdResponse, PutApiProjectServiceProjectsSectionRelationByIdData, PutApiProjectServiceProjectsSectionRelationByIdResponse, PutApiProjectServiceProjectsStatusByProjectIdData, PutApiProjectServiceProjectsStatusByProjectIdResponse, GetApiProjectServicePublicProjectsData, GetApiProjectServicePublicProjectsResponse } 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 ProjectService {
97
- constructor(public readonly httpRequest: BaseHttpRequest) { }
98
-
99
- /**
100
- * @param data The data for the request.
101
- * @param data.requestBody
102
- * @returns unknown Success
103
- * @throws ApiError
104
- */
105
- public postApiProjectServiceProjects(data: PostApiProjectServiceProjectsData = {}): CancelablePromise<PostApiProjectServiceProjectsResponse> {
106
- return this.httpRequest.request({
107
- method: 'POST',
108
- url: '/api/project-service/projects',
109
- body: data.requestBody,
110
- mediaType: 'application/json',
111
- errors: {
112
- 400: 'Bad Request',
113
- 401: 'Unauthorized',
114
- 403: 'Forbidden',
115
- 404: 'Not Found',
116
- 500: 'Server Error',
117
- 501: 'Server Error'
118
- }
119
- });
120
- }
121
-
122
- /**
123
- * @param data The data for the request.
124
- * @param data.status
125
- * @param data.type
126
- * @param data.sorting
127
- * @param data.skipCount
128
- * @param data.maxResultCount
129
- * @returns unknown Success
130
- * @throws ApiError
131
- */
132
- public getApiProjectServiceProjects(data: GetApiProjectServiceProjectsData = {}): CancelablePromise<GetApiProjectServiceProjectsResponse> {
133
- return this.httpRequest.request({
134
- method: 'GET',
135
- url: '/api/project-service/projects',
136
- query: {
137
- Status: data.status,
138
- Type: data.type,
139
- Sorting: data.sorting,
140
- SkipCount: data.skipCount,
141
- MaxResultCount: data.maxResultCount
142
- },
143
- errors: {
144
- 400: 'Bad Request',
145
- 401: 'Unauthorized',
146
- 403: 'Forbidden',
147
- 404: 'Not Found',
148
- 500: 'Server Error',
149
- 501: 'Server Error'
150
- }
151
- });
152
- }
153
-
154
- /**
155
- * @param data The data for the request.
156
- * @param data.id
157
- * @returns unknown Success
158
- * @throws ApiError
159
- */
160
- public deleteApiProjectServiceProjectsById(data: DeleteApiProjectServiceProjectsByIdData): CancelablePromise<DeleteApiProjectServiceProjectsByIdResponse> {
161
- return this.httpRequest.request({
162
- method: 'DELETE',
163
- url: '/api/project-service/projects/{id}',
164
- path: {
165
- id: data.id
166
- },
167
- errors: {
168
- 400: 'Bad Request',
169
- 401: 'Unauthorized',
170
- 403: 'Forbidden',
171
- 404: 'Not Found',
172
- 500: 'Server Error',
173
- 501: 'Server Error'
174
- }
175
- });
176
- }
177
-
178
- /**
179
- * @param data The data for the request.
180
- * @param data.id
181
- * @returns unknown Success
182
- * @throws ApiError
183
- */
184
- public getApiProjectServiceProjectsById(data: GetApiProjectServiceProjectsByIdData): CancelablePromise<GetApiProjectServiceProjectsByIdResponse> {
185
- return this.httpRequest.request({
186
- method: 'GET',
187
- url: '/api/project-service/projects/{id}',
188
- path: {
189
- id: data.id
190
- },
191
- errors: {
192
- 400: 'Bad Request',
193
- 401: 'Unauthorized',
194
- 403: 'Forbidden',
195
- 404: 'Not Found',
196
- 500: 'Server Error',
197
- 501: 'Server Error'
198
- }
199
- });
200
- }
201
-
202
- /**
203
- * @param data The data for the request.
204
- * @param data.id
205
- * @param data.requestBody
206
- * @returns unknown Success
207
- * @throws ApiError
208
- */
209
- public putApiProjectServiceProjectsById(data: PutApiProjectServiceProjectsByIdData): CancelablePromise<PutApiProjectServiceProjectsByIdResponse> {
210
- return this.httpRequest.request({
211
- method: 'PUT',
212
- url: '/api/project-service/projects/{id}',
213
- path: {
214
- id: data.id
215
- },
216
- body: data.requestBody,
217
- mediaType: 'application/json',
218
- errors: {
219
- 400: 'Bad Request',
220
- 401: 'Unauthorized',
221
- 403: 'Forbidden',
222
- 404: 'Not Found',
223
- 500: 'Server Error',
224
- 501: 'Server Error'
225
- }
226
- });
227
- }
228
-
229
- /**
230
- * @param data The data for the request.
231
- * @param data.id
232
- * @returns unknown Success
233
- * @throws ApiError
234
- */
235
- public getApiProjectServiceProjectsDetailById(data: GetApiProjectServiceProjectsDetailByIdData): CancelablePromise<GetApiProjectServiceProjectsDetailByIdResponse> {
236
- return this.httpRequest.request({
237
- method: 'GET',
238
- url: '/api/project-service/projects/detail/{id}',
239
- path: {
240
- id: data.id
241
- },
242
- errors: {
243
- 400: 'Bad Request',
244
- 401: 'Unauthorized',
245
- 403: 'Forbidden',
246
- 404: 'Not Found',
247
- 500: 'Server Error',
248
- 501: 'Server Error'
249
- }
250
- });
251
- }
252
-
253
- /**
254
- * @param data The data for the request.
255
- * @param data.projectId
256
- * @returns unknown Success
257
- * @throws ApiError
258
- */
259
- public getApiProjectServiceProjectsSectionListByProjectId(data: GetApiProjectServiceProjectsSectionListByProjectIdData): CancelablePromise<GetApiProjectServiceProjectsSectionListByProjectIdResponse> {
260
- return this.httpRequest.request({
261
- method: 'GET',
262
- url: '/api/project-service/projects/section-list/{projectId}',
263
- path: {
264
- projectId: data.projectId
265
- },
266
- errors: {
267
- 400: 'Bad Request',
268
- 401: 'Unauthorized',
269
- 403: 'Forbidden',
270
- 404: 'Not Found',
271
- 500: 'Server Error',
272
- 501: 'Server Error'
273
- }
274
- });
275
- }
276
-
277
- /**
278
- * @returns unknown Success
279
- * @throws ApiError
280
- */
281
- public getApiProjectServiceProjectsMyProjects(): CancelablePromise<GetApiProjectServiceProjectsMyProjectsResponse> {
282
- return this.httpRequest.request({
283
- method: 'GET',
284
- url: '/api/project-service/projects/my-projects',
285
- errors: {
286
- 400: 'Bad Request',
287
- 401: 'Unauthorized',
288
- 403: 'Forbidden',
289
- 404: 'Not Found',
290
- 500: 'Server Error',
291
- 501: 'Server Error'
292
- }
293
- });
294
- }
295
-
296
- /**
297
- * @param data The data for the request.
298
- * @param data.requestBody
299
- * @returns unknown Success
300
- * @throws ApiError
301
- */
302
- public postApiProjectServiceProjectsSection(data: PostApiProjectServiceProjectsSectionData = {}): CancelablePromise<PostApiProjectServiceProjectsSectionResponse> {
303
- return this.httpRequest.request({
304
- method: 'POST',
305
- url: '/api/project-service/projects/section',
306
- body: data.requestBody,
307
- mediaType: 'application/json',
308
- errors: {
309
- 400: 'Bad Request',
310
- 401: 'Unauthorized',
311
- 403: 'Forbidden',
312
- 404: 'Not Found',
313
- 500: 'Server Error',
314
- 501: 'Server Error'
315
- }
316
- });
317
- }
318
-
319
- /**
320
- * @param data The data for the request.
321
- * @param data.requestBody
322
- * @returns unknown Success
323
- * @throws ApiError
324
- */
325
- public postApiProjectServiceProjectsSectionRelation(data: PostApiProjectServiceProjectsSectionRelationData = {}): CancelablePromise<PostApiProjectServiceProjectsSectionRelationResponse> {
326
- return this.httpRequest.request({
327
- method: 'POST',
328
- url: '/api/project-service/projects/section-relation',
329
- body: data.requestBody,
330
- mediaType: 'application/json',
331
- errors: {
332
- 400: 'Bad Request',
333
- 401: 'Unauthorized',
334
- 403: 'Forbidden',
335
- 404: 'Not Found',
336
- 500: 'Server Error',
337
- 501: 'Server Error'
338
- }
339
- });
340
- }
341
-
342
- /**
343
- * @param data The data for the request.
344
- * @param data.id
345
- * @param data.requestBody
346
- * @returns unknown Success
347
- * @throws ApiError
348
- */
349
- public putApiProjectServiceProjectsSectionById(data: PutApiProjectServiceProjectsSectionByIdData): CancelablePromise<PutApiProjectServiceProjectsSectionByIdResponse> {
350
- return this.httpRequest.request({
351
- method: 'PUT',
352
- url: '/api/project-service/projects/section/{id}',
353
- path: {
354
- id: data.id
355
- },
356
- body: data.requestBody,
357
- mediaType: 'application/json',
358
- errors: {
359
- 400: 'Bad Request',
360
- 401: 'Unauthorized',
361
- 403: 'Forbidden',
362
- 404: 'Not Found',
363
- 500: 'Server Error',
364
- 501: 'Server Error'
365
- }
366
- });
367
- }
368
-
369
- /**
370
- * @param data The data for the request.
371
- * @param data.id
372
- * @param data.requestBody
373
- * @returns unknown Success
374
- * @throws ApiError
375
- */
376
- public putApiProjectServiceProjectsSectionRelationById(data: PutApiProjectServiceProjectsSectionRelationByIdData): CancelablePromise<PutApiProjectServiceProjectsSectionRelationByIdResponse> {
377
- return this.httpRequest.request({
378
- method: 'PUT',
379
- url: '/api/project-service/projects/section-relation/{id}',
380
- path: {
381
- id: data.id
382
- },
383
- body: data.requestBody,
384
- mediaType: 'application/json',
385
- errors: {
386
- 400: 'Bad Request',
387
- 401: 'Unauthorized',
388
- 403: 'Forbidden',
389
- 404: 'Not Found',
390
- 500: 'Server Error',
391
- 501: 'Server Error'
392
- }
393
- });
394
- }
395
-
396
- /**
397
- * @param data The data for the request.
398
- * @param data.projectId
399
- * @param data.status
400
- * @returns unknown Success
401
- * @throws ApiError
402
- */
403
- public putApiProjectServiceProjectsStatusByProjectId(data: PutApiProjectServiceProjectsStatusByProjectIdData): CancelablePromise<PutApiProjectServiceProjectsStatusByProjectIdResponse> {
404
- return this.httpRequest.request({
405
- method: 'PUT',
406
- url: '/api/project-service/projects/status/{projectId}',
407
- path: {
408
- projectId: data.projectId
409
- },
410
- query: {
411
- status: data.status
412
- },
413
- errors: {
414
- 400: 'Bad Request',
415
- 401: 'Unauthorized',
416
- 403: 'Forbidden',
417
- 404: 'Not Found',
418
- 500: 'Server Error',
419
- 501: 'Server Error'
420
- }
421
- });
422
- }
423
-
424
- }
425
-
426
- export class ProjectPublicService {
427
- constructor(public readonly httpRequest: BaseHttpRequest) { }
428
-
429
- /**
430
- * @param data The data for the request.
431
- * @param data.status
432
- * @param data.type
433
- * @param data.sorting
434
- * @param data.skipCount
435
- * @param data.maxResultCount
436
- * @returns unknown Success
437
- * @throws ApiError
438
- */
439
- public getApiProjectServicePublicProjects(data: GetApiProjectServicePublicProjectsData = {}): CancelablePromise<GetApiProjectServicePublicProjectsResponse> {
440
- return this.httpRequest.request({
441
- method: 'GET',
442
- url: '/api/project-service/public/projects',
443
- query: {
444
- Status: data.status,
445
- Type: data.type,
446
- Sorting: data.sorting,
447
- SkipCount: data.skipCount,
448
- MaxResultCount: data.maxResultCount
449
- },
450
- errors: {
451
- 400: 'Bad Request',
452
- 401: 'Unauthorized',
453
- 403: 'Forbidden',
454
- 404: 'Not Found',
455
- 500: 'Server Error',
456
- 501: 'Server Error'
457
- }
458
- });
459
- }
460
-
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, PostApiProjectServiceProjectsData, PostApiProjectServiceProjectsResponse, GetApiProjectServiceProjectsData, GetApiProjectServiceProjectsResponse, GetApiProjectServiceProjectsByIdData, GetApiProjectServiceProjectsByIdResponse, DeleteApiProjectServiceProjectsByIdData, DeleteApiProjectServiceProjectsByIdResponse, PutApiProjectServiceProjectsByIdData, PutApiProjectServiceProjectsByIdResponse, PutApiProjectServiceProjectsStatusByProjectIdData, PutApiProjectServiceProjectsStatusByProjectIdResponse, GetApiProjectServiceProjectsWithFundraiserListAsyncData, GetApiProjectServiceProjectsWithFundraiserListAsyncResponse, GetApiProjectServiceProjectsMyProjectsResponse, PostApiProjectServiceProjectsSectionData, PostApiProjectServiceProjectsSectionResponse, PutApiProjectServiceProjectsSectionByIdData, PutApiProjectServiceProjectsSectionByIdResponse, GetApiProjectServiceProjectsSectionListByProjectIdData, GetApiProjectServiceProjectsSectionListByProjectIdResponse, PostApiProjectServiceProjectsSectionRelationData, PostApiProjectServiceProjectsSectionRelationResponse, PutApiProjectServiceProjectsSectionRelationByIdData, PutApiProjectServiceProjectsSectionRelationByIdResponse, GetApiProjectServicePublicProjectsData, GetApiProjectServicePublicProjectsResponse, GetApiProjectServicePublicProjectsDetailByIdData, GetApiProjectServicePublicProjectsDetailByIdResponse } 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 ProjectService {
97
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
98
+
99
+ /**
100
+ * @param data The data for the request.
101
+ * @param data.requestBody
102
+ * @returns unknown Success
103
+ * @throws ApiError
104
+ */
105
+ public postApiProjectServiceProjects(data: PostApiProjectServiceProjectsData = {}): CancelablePromise<PostApiProjectServiceProjectsResponse> {
106
+ return this.httpRequest.request({
107
+ method: 'POST',
108
+ url: '/api/project-service/projects',
109
+ body: data.requestBody,
110
+ mediaType: 'application/json',
111
+ errors: {
112
+ 400: 'Bad Request',
113
+ 401: 'Unauthorized',
114
+ 403: 'Forbidden',
115
+ 404: 'Not Found',
116
+ 500: 'Server Error',
117
+ 501: 'Server Error'
118
+ }
119
+ });
120
+ }
121
+
122
+ /**
123
+ * @param data The data for the request.
124
+ * @param data.status
125
+ * @param data.type
126
+ * @param data.sorting
127
+ * @param data.skipCount
128
+ * @param data.maxResultCount
129
+ * @returns unknown Success
130
+ * @throws ApiError
131
+ */
132
+ public getApiProjectServiceProjects(data: GetApiProjectServiceProjectsData = {}): CancelablePromise<GetApiProjectServiceProjectsResponse> {
133
+ return this.httpRequest.request({
134
+ method: 'GET',
135
+ url: '/api/project-service/projects',
136
+ query: {
137
+ Status: data.status,
138
+ Type: data.type,
139
+ Sorting: data.sorting,
140
+ SkipCount: data.skipCount,
141
+ MaxResultCount: data.maxResultCount
142
+ },
143
+ errors: {
144
+ 400: 'Bad Request',
145
+ 401: 'Unauthorized',
146
+ 403: 'Forbidden',
147
+ 404: 'Not Found',
148
+ 500: 'Server Error',
149
+ 501: 'Server Error'
150
+ }
151
+ });
152
+ }
153
+
154
+ /**
155
+ * @param data The data for the request.
156
+ * @param data.id
157
+ * @returns unknown Success
158
+ * @throws ApiError
159
+ */
160
+ public getApiProjectServiceProjectsById(data: GetApiProjectServiceProjectsByIdData): CancelablePromise<GetApiProjectServiceProjectsByIdResponse> {
161
+ return this.httpRequest.request({
162
+ method: 'GET',
163
+ url: '/api/project-service/projects/{id}',
164
+ path: {
165
+ id: data.id
166
+ },
167
+ errors: {
168
+ 400: 'Bad Request',
169
+ 401: 'Unauthorized',
170
+ 403: 'Forbidden',
171
+ 404: 'Not Found',
172
+ 500: 'Server Error',
173
+ 501: 'Server Error'
174
+ }
175
+ });
176
+ }
177
+
178
+ /**
179
+ * @param data The data for the request.
180
+ * @param data.id
181
+ * @returns unknown Success
182
+ * @throws ApiError
183
+ */
184
+ public deleteApiProjectServiceProjectsById(data: DeleteApiProjectServiceProjectsByIdData): CancelablePromise<DeleteApiProjectServiceProjectsByIdResponse> {
185
+ return this.httpRequest.request({
186
+ method: 'DELETE',
187
+ url: '/api/project-service/projects/{id}',
188
+ path: {
189
+ id: data.id
190
+ },
191
+ errors: {
192
+ 400: 'Bad Request',
193
+ 401: 'Unauthorized',
194
+ 403: 'Forbidden',
195
+ 404: 'Not Found',
196
+ 500: 'Server Error',
197
+ 501: 'Server Error'
198
+ }
199
+ });
200
+ }
201
+
202
+ /**
203
+ * @param data The data for the request.
204
+ * @param data.id
205
+ * @param data.requestBody
206
+ * @returns unknown Success
207
+ * @throws ApiError
208
+ */
209
+ public putApiProjectServiceProjectsById(data: PutApiProjectServiceProjectsByIdData): CancelablePromise<PutApiProjectServiceProjectsByIdResponse> {
210
+ return this.httpRequest.request({
211
+ method: 'PUT',
212
+ url: '/api/project-service/projects/{id}',
213
+ path: {
214
+ id: data.id
215
+ },
216
+ body: data.requestBody,
217
+ mediaType: 'application/json',
218
+ errors: {
219
+ 400: 'Bad Request',
220
+ 401: 'Unauthorized',
221
+ 403: 'Forbidden',
222
+ 404: 'Not Found',
223
+ 500: 'Server Error',
224
+ 501: 'Server Error'
225
+ }
226
+ });
227
+ }
228
+
229
+ /**
230
+ * @param data The data for the request.
231
+ * @param data.projectId
232
+ * @param data.status
233
+ * @returns unknown Success
234
+ * @throws ApiError
235
+ */
236
+ public putApiProjectServiceProjectsStatusByProjectId(data: PutApiProjectServiceProjectsStatusByProjectIdData): CancelablePromise<PutApiProjectServiceProjectsStatusByProjectIdResponse> {
237
+ return this.httpRequest.request({
238
+ method: 'PUT',
239
+ url: '/api/project-service/projects/status/{projectId}',
240
+ path: {
241
+ projectId: data.projectId
242
+ },
243
+ query: {
244
+ status: data.status
245
+ },
246
+ errors: {
247
+ 400: 'Bad Request',
248
+ 401: 'Unauthorized',
249
+ 403: 'Forbidden',
250
+ 404: 'Not Found',
251
+ 500: 'Server Error',
252
+ 501: 'Server Error'
253
+ }
254
+ });
255
+ }
256
+
257
+ /**
258
+ * @param data The data for the request.
259
+ * @param data.status
260
+ * @param data.type
261
+ * @param data.sorting
262
+ * @param data.skipCount
263
+ * @param data.maxResultCount
264
+ * @returns unknown Success
265
+ * @throws ApiError
266
+ */
267
+ public getApiProjectServiceProjectsWithFundraiserListAsync(data: GetApiProjectServiceProjectsWithFundraiserListAsyncData = {}): CancelablePromise<GetApiProjectServiceProjectsWithFundraiserListAsyncResponse> {
268
+ return this.httpRequest.request({
269
+ method: 'GET',
270
+ url: '/api/project-service/projects/with-fundraiser-list-async',
271
+ query: {
272
+ Status: data.status,
273
+ Type: data.type,
274
+ Sorting: data.sorting,
275
+ SkipCount: data.skipCount,
276
+ MaxResultCount: data.maxResultCount
277
+ },
278
+ errors: {
279
+ 400: 'Bad Request',
280
+ 401: 'Unauthorized',
281
+ 403: 'Forbidden',
282
+ 404: 'Not Found',
283
+ 500: 'Server Error',
284
+ 501: 'Server Error'
285
+ }
286
+ });
287
+ }
288
+
289
+ /**
290
+ * @returns unknown Success
291
+ * @throws ApiError
292
+ */
293
+ public getApiProjectServiceProjectsMyProjects(): CancelablePromise<GetApiProjectServiceProjectsMyProjectsResponse> {
294
+ return this.httpRequest.request({
295
+ method: 'GET',
296
+ url: '/api/project-service/projects/my-projects',
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.requestBody
311
+ * @returns unknown Success
312
+ * @throws ApiError
313
+ */
314
+ public postApiProjectServiceProjectsSection(data: PostApiProjectServiceProjectsSectionData = {}): CancelablePromise<PostApiProjectServiceProjectsSectionResponse> {
315
+ return this.httpRequest.request({
316
+ method: 'POST',
317
+ url: '/api/project-service/projects/section',
318
+ body: data.requestBody,
319
+ mediaType: 'application/json',
320
+ errors: {
321
+ 400: 'Bad Request',
322
+ 401: 'Unauthorized',
323
+ 403: 'Forbidden',
324
+ 404: 'Not Found',
325
+ 500: 'Server Error',
326
+ 501: 'Server Error'
327
+ }
328
+ });
329
+ }
330
+
331
+ /**
332
+ * @param data The data for the request.
333
+ * @param data.id
334
+ * @param data.requestBody
335
+ * @returns unknown Success
336
+ * @throws ApiError
337
+ */
338
+ public putApiProjectServiceProjectsSectionById(data: PutApiProjectServiceProjectsSectionByIdData): CancelablePromise<PutApiProjectServiceProjectsSectionByIdResponse> {
339
+ return this.httpRequest.request({
340
+ method: 'PUT',
341
+ url: '/api/project-service/projects/section/{id}',
342
+ path: {
343
+ id: data.id
344
+ },
345
+ body: data.requestBody,
346
+ mediaType: 'application/json',
347
+ errors: {
348
+ 400: 'Bad Request',
349
+ 401: 'Unauthorized',
350
+ 403: 'Forbidden',
351
+ 404: 'Not Found',
352
+ 500: 'Server Error',
353
+ 501: 'Server Error'
354
+ }
355
+ });
356
+ }
357
+
358
+ /**
359
+ * @param data The data for the request.
360
+ * @param data.projectId
361
+ * @returns unknown Success
362
+ * @throws ApiError
363
+ */
364
+ public getApiProjectServiceProjectsSectionListByProjectId(data: GetApiProjectServiceProjectsSectionListByProjectIdData): CancelablePromise<GetApiProjectServiceProjectsSectionListByProjectIdResponse> {
365
+ return this.httpRequest.request({
366
+ method: 'GET',
367
+ url: '/api/project-service/projects/section-list/{projectId}',
368
+ path: {
369
+ projectId: data.projectId
370
+ },
371
+ errors: {
372
+ 400: 'Bad Request',
373
+ 401: 'Unauthorized',
374
+ 403: 'Forbidden',
375
+ 404: 'Not Found',
376
+ 500: 'Server Error',
377
+ 501: 'Server Error'
378
+ }
379
+ });
380
+ }
381
+
382
+ /**
383
+ * @param data The data for the request.
384
+ * @param data.requestBody
385
+ * @returns unknown Success
386
+ * @throws ApiError
387
+ */
388
+ public postApiProjectServiceProjectsSectionRelation(data: PostApiProjectServiceProjectsSectionRelationData = {}): CancelablePromise<PostApiProjectServiceProjectsSectionRelationResponse> {
389
+ return this.httpRequest.request({
390
+ method: 'POST',
391
+ url: '/api/project-service/projects/section-relation',
392
+ body: data.requestBody,
393
+ mediaType: 'application/json',
394
+ errors: {
395
+ 400: 'Bad Request',
396
+ 401: 'Unauthorized',
397
+ 403: 'Forbidden',
398
+ 404: 'Not Found',
399
+ 500: 'Server Error',
400
+ 501: 'Server Error'
401
+ }
402
+ });
403
+ }
404
+
405
+ /**
406
+ * @param data The data for the request.
407
+ * @param data.id
408
+ * @param data.requestBody
409
+ * @returns unknown Success
410
+ * @throws ApiError
411
+ */
412
+ public putApiProjectServiceProjectsSectionRelationById(data: PutApiProjectServiceProjectsSectionRelationByIdData): CancelablePromise<PutApiProjectServiceProjectsSectionRelationByIdResponse> {
413
+ return this.httpRequest.request({
414
+ method: 'PUT',
415
+ url: '/api/project-service/projects/section-relation/{id}',
416
+ path: {
417
+ id: data.id
418
+ },
419
+ body: data.requestBody,
420
+ mediaType: 'application/json',
421
+ errors: {
422
+ 400: 'Bad Request',
423
+ 401: 'Unauthorized',
424
+ 403: 'Forbidden',
425
+ 404: 'Not Found',
426
+ 500: 'Server Error',
427
+ 501: 'Server Error'
428
+ }
429
+ });
430
+ }
431
+
432
+ }
433
+
434
+ export class ProjectPublicService {
435
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
436
+
437
+ /**
438
+ * @param data The data for the request.
439
+ * @param data.status
440
+ * @param data.type
441
+ * @param data.sorting
442
+ * @param data.skipCount
443
+ * @param data.maxResultCount
444
+ * @returns unknown Success
445
+ * @throws ApiError
446
+ */
447
+ public getApiProjectServicePublicProjects(data: GetApiProjectServicePublicProjectsData = {}): CancelablePromise<GetApiProjectServicePublicProjectsResponse> {
448
+ return this.httpRequest.request({
449
+ method: 'GET',
450
+ url: '/api/project-service/public/projects',
451
+ query: {
452
+ Status: data.status,
453
+ Type: data.type,
454
+ Sorting: data.sorting,
455
+ SkipCount: data.skipCount,
456
+ MaxResultCount: data.maxResultCount
457
+ },
458
+ errors: {
459
+ 400: 'Bad Request',
460
+ 401: 'Unauthorized',
461
+ 403: 'Forbidden',
462
+ 404: 'Not Found',
463
+ 500: 'Server Error',
464
+ 501: 'Server Error'
465
+ }
466
+ });
467
+ }
468
+
469
+ /**
470
+ * @param data The data for the request.
471
+ * @param data.id
472
+ * @returns unknown Success
473
+ * @throws ApiError
474
+ */
475
+ public getApiProjectServicePublicProjectsDetailById(data: GetApiProjectServicePublicProjectsDetailByIdData): CancelablePromise<GetApiProjectServicePublicProjectsDetailByIdResponse> {
476
+ return this.httpRequest.request({
477
+ method: 'GET',
478
+ url: '/api/project-service/public/projects/detail/{id}',
479
+ path: {
480
+ id: data.id
481
+ },
482
+ errors: {
483
+ 400: 'Bad Request',
484
+ 401: 'Unauthorized',
485
+ 403: 'Forbidden',
486
+ 404: 'Not Found',
487
+ 500: 'Server Error',
488
+ 501: 'Server Error'
489
+ }
490
+ });
491
+ }
492
+
461
493
  }