@ayasofyazilim/saas 0.0.90 → 0.0.92
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.
- package/FinanceService/FinanceServiceClient.ts +3 -3
- package/FinanceService/schemas.gen.ts +486 -67
- package/FinanceService/services.gen.ts +31 -50
- package/FinanceService/types.gen.ts +139 -94
- package/generator.mjs +13 -1
- package/package.json +1 -1
- package/upwithcrowdService/core/ApiError.ts +21 -0
- package/upwithcrowdService/core/ApiRequestOptions.ts +13 -0
- package/upwithcrowdService/core/ApiResult.ts +7 -0
- package/upwithcrowdService/core/BaseHttpRequest.ts +10 -0
- package/upwithcrowdService/core/CancelablePromise.ts +126 -0
- package/upwithcrowdService/core/FetchHttpRequest.ts +22 -0
- package/upwithcrowdService/core/OpenAPI.ts +56 -0
- package/upwithcrowdService/core/request.ts +341 -0
- package/upwithcrowdService/index.ts +9 -0
- package/upwithcrowdService/schemas.gen.ts +10860 -0
- package/upwithcrowdService/services.gen.ts +5150 -0
- package/upwithcrowdService/types.gen.ts +9653 -0
- package/upwithcrowdService/upwithcrowdServiceClient.ts +137 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type { CancelablePromise } from './core/CancelablePromise';
|
|
4
4
|
import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
5
|
-
import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse,
|
|
5
|
+
import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse, GetApiFinanceServiceVatStatementHeadersByIdData, GetApiFinanceServiceVatStatementHeadersByIdResponse, GetApiFinanceServiceVatStatementHeadersData, GetApiFinanceServiceVatStatementHeadersResponse, PostApiFinanceServiceVatStatementHeadersData, PostApiFinanceServiceVatStatementHeadersResponse, GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData, GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdResponse } from './types.gen';
|
|
6
6
|
|
|
7
7
|
export class AbpApiDefinitionService {
|
|
8
8
|
constructor(public readonly httpRequest: BaseHttpRequest) { }
|
|
@@ -93,43 +93,20 @@ export class AbpApplicationLocalizationService {
|
|
|
93
93
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
export class
|
|
96
|
+
export class VatStatementHeaderService {
|
|
97
97
|
constructor(public readonly httpRequest: BaseHttpRequest) { }
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* @param data The data for the request.
|
|
101
|
-
* @param data.requestBody
|
|
102
|
-
* @returns UniRefund_FinanceService_Billings_BillingDto Success
|
|
103
|
-
* @throws ApiError
|
|
104
|
-
*/
|
|
105
|
-
public postApiFinanceServiceBillings(data: PostApiFinanceServiceBillingsData = {}): CancelablePromise<PostApiFinanceServiceBillingsResponse> {
|
|
106
|
-
return this.httpRequest.request({
|
|
107
|
-
method: 'POST',
|
|
108
|
-
url: '/api/finance-service/billings',
|
|
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
99
|
/**
|
|
123
100
|
* @param data The data for the request.
|
|
124
101
|
* @param data.id
|
|
125
|
-
* @returns
|
|
102
|
+
* @returns UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto Success
|
|
126
103
|
* @throws ApiError
|
|
127
104
|
*/
|
|
128
|
-
public
|
|
105
|
+
public getApiFinanceServiceVatStatementHeadersById(data: GetApiFinanceServiceVatStatementHeadersByIdData): CancelablePromise<GetApiFinanceServiceVatStatementHeadersByIdResponse> {
|
|
129
106
|
return this.httpRequest.request({
|
|
130
|
-
method: '
|
|
131
|
-
url: '/api/finance-service/
|
|
132
|
-
|
|
107
|
+
method: 'GET',
|
|
108
|
+
url: '/api/finance-service/vat-statement-headers/{id}',
|
|
109
|
+
path: {
|
|
133
110
|
id: data.id
|
|
134
111
|
},
|
|
135
112
|
errors: {
|
|
@@ -148,13 +125,13 @@ export class BillingService {
|
|
|
148
125
|
* @param data.sorting
|
|
149
126
|
* @param data.skipCount
|
|
150
127
|
* @param data.maxResultCount
|
|
151
|
-
* @returns
|
|
128
|
+
* @returns PagedResultDto_VATStatementHeaderForListDto Success
|
|
152
129
|
* @throws ApiError
|
|
153
130
|
*/
|
|
154
|
-
public
|
|
131
|
+
public getApiFinanceServiceVatStatementHeaders(data: GetApiFinanceServiceVatStatementHeadersData = {}): CancelablePromise<GetApiFinanceServiceVatStatementHeadersResponse> {
|
|
155
132
|
return this.httpRequest.request({
|
|
156
133
|
method: 'GET',
|
|
157
|
-
url: '/api/finance-service/
|
|
134
|
+
url: '/api/finance-service/vat-statement-headers',
|
|
158
135
|
query: {
|
|
159
136
|
Sorting: data.sorting,
|
|
160
137
|
SkipCount: data.skipCount,
|
|
@@ -173,17 +150,16 @@ export class BillingService {
|
|
|
173
150
|
|
|
174
151
|
/**
|
|
175
152
|
* @param data The data for the request.
|
|
176
|
-
* @param data.
|
|
177
|
-
* @returns
|
|
153
|
+
* @param data.requestBody
|
|
154
|
+
* @returns UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto Success
|
|
178
155
|
* @throws ApiError
|
|
179
156
|
*/
|
|
180
|
-
public
|
|
157
|
+
public postApiFinanceServiceVatStatementHeaders(data: PostApiFinanceServiceVatStatementHeadersData = {}): CancelablePromise<PostApiFinanceServiceVatStatementHeadersResponse> {
|
|
181
158
|
return this.httpRequest.request({
|
|
182
|
-
method: '
|
|
183
|
-
url: '/api/finance-service/
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
},
|
|
159
|
+
method: 'POST',
|
|
160
|
+
url: '/api/finance-service/vat-statement-headers',
|
|
161
|
+
body: data.requestBody,
|
|
162
|
+
mediaType: 'application/json',
|
|
187
163
|
errors: {
|
|
188
164
|
400: 'Bad Request',
|
|
189
165
|
401: 'Unauthorized',
|
|
@@ -197,20 +173,25 @@ export class BillingService {
|
|
|
197
173
|
|
|
198
174
|
/**
|
|
199
175
|
* @param data The data for the request.
|
|
200
|
-
* @param data.
|
|
201
|
-
* @param data.
|
|
202
|
-
* @
|
|
176
|
+
* @param data.merchantId
|
|
177
|
+
* @param data.year
|
|
178
|
+
* @param data.month
|
|
179
|
+
* @param data.vAtStatementDate
|
|
180
|
+
* @returns UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto Success
|
|
203
181
|
* @throws ApiError
|
|
204
182
|
*/
|
|
205
|
-
public
|
|
183
|
+
public getApiFinanceServiceVatStatementHeadersFormDraftByMerchantId(data: GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData): CancelablePromise<GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdResponse> {
|
|
206
184
|
return this.httpRequest.request({
|
|
207
|
-
method: '
|
|
208
|
-
url: '/api/finance-service/
|
|
185
|
+
method: 'GET',
|
|
186
|
+
url: '/api/finance-service/vat-statement-headers/form-draft/{merchantId}',
|
|
209
187
|
path: {
|
|
210
|
-
|
|
188
|
+
merchantId: data.merchantId
|
|
189
|
+
},
|
|
190
|
+
query: {
|
|
191
|
+
year: data.year,
|
|
192
|
+
month: data.month,
|
|
193
|
+
vATStatementDate: data.vAtStatementDate
|
|
211
194
|
},
|
|
212
|
-
body: data.requestBody,
|
|
213
|
-
mediaType: 'application/json',
|
|
214
195
|
errors: {
|
|
215
196
|
400: 'Bad Request',
|
|
216
197
|
401: 'Unauthorized',
|
|
@@ -1,53 +1,133 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
items?: Array<
|
|
3
|
+
export type PagedResultDto_VATStatementHeaderForListDto = {
|
|
4
|
+
items?: Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderForListDto> | null;
|
|
5
5
|
totalCount?: number;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type UniRefund_ContractService_Enums_InvoiceChannel = 'ElectronicInvoice' | 'Email' | 'PaperInvoice';
|
|
9
|
+
|
|
10
|
+
export type UniRefund_ContractService_Enums_InvoicingFrequency = 'OneTimePerMonth' | 'TwoTimesPerMonth';
|
|
11
|
+
|
|
12
|
+
export type UniRefund_FinanceService_Enums_PaymentStatus = 'NotPaid' | 'PartlyPaid' | 'Paid' | 'OverPaid';
|
|
13
|
+
|
|
14
|
+
export type UniRefund_FinanceService_Enums_VATStatementStatus = 'Unfinished' | 'Approved' | 'Processing' | 'Error' | 'Sent' | 'PaymentReminder1' | 'PaymentReminder2' | 'PaymentReminder3' | 'DebtCollection' | 'Cancelled' | 'CreditNote' | 'Paid';
|
|
15
|
+
|
|
16
|
+
export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderCreateDto = {
|
|
17
|
+
readonly extraProperties?: {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
} | null;
|
|
20
|
+
merchantId: string;
|
|
21
|
+
year: number;
|
|
22
|
+
month: number;
|
|
23
|
+
vatStatementDate: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto = {
|
|
9
27
|
id?: string;
|
|
28
|
+
creationTime?: string;
|
|
29
|
+
creatorId?: string | null;
|
|
30
|
+
lastModificationTime?: string | null;
|
|
31
|
+
lastModifierId?: string | null;
|
|
32
|
+
isDeleted?: boolean;
|
|
33
|
+
deleterId?: string | null;
|
|
34
|
+
deletionTime?: string | null;
|
|
35
|
+
invoiceNumber: string;
|
|
10
36
|
merchantId: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
37
|
+
tagCount: number;
|
|
38
|
+
merchantName: string;
|
|
39
|
+
vatStatementDate: string;
|
|
14
40
|
dueDate: string;
|
|
15
41
|
total: number;
|
|
16
42
|
unpaid: number;
|
|
17
|
-
status:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
43
|
+
status: UniRefund_FinanceService_Enums_VATStatementStatus;
|
|
44
|
+
billingPeriod: UniRefund_ContractService_Enums_InvoicingFrequency;
|
|
45
|
+
termOfPayment: number;
|
|
46
|
+
paymentStatus: UniRefund_FinanceService_Enums_PaymentStatus;
|
|
47
|
+
isFactoring?: boolean;
|
|
48
|
+
referenceDateBegin: string;
|
|
49
|
+
referenceDateEnd: string;
|
|
50
|
+
deliveryMethod: UniRefund_ContractService_Enums_InvoiceChannel;
|
|
51
|
+
customerNumber?: string | null;
|
|
52
|
+
referenceNumber?: string | null;
|
|
53
|
+
yourReference?: string | null;
|
|
54
|
+
contractHeaderId?: string;
|
|
55
|
+
vatStatementTagDetails?: Array<UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailWithoutAuditedDto> | null;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto = {
|
|
59
|
+
id?: string;
|
|
60
|
+
creationTime?: string;
|
|
61
|
+
creatorId?: string | null;
|
|
62
|
+
lastModificationTime?: string | null;
|
|
63
|
+
lastModifierId?: string | null;
|
|
64
|
+
isDeleted?: boolean;
|
|
65
|
+
deleterId?: string | null;
|
|
66
|
+
deletionTime?: string | null;
|
|
67
|
+
invoiceNumber: string;
|
|
23
68
|
merchantId: string;
|
|
24
|
-
|
|
25
|
-
|
|
69
|
+
tagCount: number;
|
|
70
|
+
merchantName: string;
|
|
71
|
+
vatStatementDate: string;
|
|
26
72
|
dueDate: string;
|
|
27
73
|
total: number;
|
|
28
74
|
unpaid: number;
|
|
29
|
-
status:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
75
|
+
status: UniRefund_FinanceService_Enums_VATStatementStatus;
|
|
76
|
+
billingPeriod: UniRefund_ContractService_Enums_InvoicingFrequency;
|
|
77
|
+
termOfPayment: number;
|
|
78
|
+
paymentStatus: UniRefund_FinanceService_Enums_PaymentStatus;
|
|
79
|
+
isFactoring?: boolean;
|
|
80
|
+
referenceDateBegin: string;
|
|
81
|
+
referenceDateEnd: string;
|
|
82
|
+
deliveryMethod: UniRefund_ContractService_Enums_InvoiceChannel;
|
|
83
|
+
customerNumber?: string | null;
|
|
84
|
+
referenceNumber?: string | null;
|
|
85
|
+
yourReference?: string | null;
|
|
86
|
+
contractHeaderId?: string;
|
|
87
|
+
vatStatementTagDetails?: Array<UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailDto> | null;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderForListDto = {
|
|
91
|
+
id: string;
|
|
92
|
+
invoiceNumber: string;
|
|
35
93
|
merchantId: string;
|
|
36
|
-
|
|
37
|
-
|
|
94
|
+
tagCount: number;
|
|
95
|
+
merchantName: string;
|
|
96
|
+
vatStatementDate: string;
|
|
38
97
|
dueDate: string;
|
|
39
98
|
total: number;
|
|
40
99
|
unpaid: number;
|
|
41
|
-
status
|
|
42
|
-
|
|
43
|
-
paymentStatus: UniRefund_FinanceService_Enums_BillingPaymentStatusCode;
|
|
100
|
+
status: UniRefund_FinanceService_Enums_VATStatementStatus;
|
|
101
|
+
paymentStatus: UniRefund_FinanceService_Enums_PaymentStatus;
|
|
44
102
|
};
|
|
45
103
|
|
|
46
|
-
export type
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
104
|
+
export type UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailDto = {
|
|
105
|
+
id?: string;
|
|
106
|
+
creationTime?: string;
|
|
107
|
+
creatorId?: string | null;
|
|
108
|
+
lastModificationTime?: string | null;
|
|
109
|
+
lastModifierId?: string | null;
|
|
110
|
+
isDeleted?: boolean;
|
|
111
|
+
deleterId?: string | null;
|
|
112
|
+
deletionTime?: string | null;
|
|
113
|
+
tagId: string;
|
|
114
|
+
tagNumber: string;
|
|
115
|
+
refundDate: string;
|
|
116
|
+
grandTotal: number;
|
|
117
|
+
taxAmount: number;
|
|
118
|
+
refundAmount: number;
|
|
119
|
+
correctedAmount?: number | null;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailWithoutAuditedDto = {
|
|
123
|
+
tagId: string;
|
|
124
|
+
tagNumber: string;
|
|
125
|
+
refundDate: string;
|
|
126
|
+
grandTotal: number;
|
|
127
|
+
taxAmount: number;
|
|
128
|
+
refundAmount: number;
|
|
129
|
+
correctedAmount?: number | null;
|
|
130
|
+
};
|
|
51
131
|
|
|
52
132
|
export type Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto = {
|
|
53
133
|
grantedPolicies?: {
|
|
@@ -451,38 +531,34 @@ export type GetApiAbpApplicationLocalizationData = {
|
|
|
451
531
|
|
|
452
532
|
export type GetApiAbpApplicationLocalizationResponse = Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto;
|
|
453
533
|
|
|
454
|
-
export type
|
|
455
|
-
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
export type PostApiFinanceServiceBillingsResponse = UniRefund_FinanceService_Billings_BillingDto;
|
|
459
|
-
|
|
460
|
-
export type DeleteApiFinanceServiceBillingsData = {
|
|
461
|
-
id?: string;
|
|
534
|
+
export type GetApiFinanceServiceVatStatementHeadersByIdData = {
|
|
535
|
+
id: string;
|
|
462
536
|
};
|
|
463
537
|
|
|
464
|
-
export type
|
|
538
|
+
export type GetApiFinanceServiceVatStatementHeadersByIdResponse = UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto;
|
|
465
539
|
|
|
466
|
-
export type
|
|
540
|
+
export type GetApiFinanceServiceVatStatementHeadersData = {
|
|
467
541
|
maxResultCount?: number;
|
|
468
542
|
skipCount?: number;
|
|
469
543
|
sorting?: string;
|
|
470
544
|
};
|
|
471
545
|
|
|
472
|
-
export type
|
|
546
|
+
export type GetApiFinanceServiceVatStatementHeadersResponse = PagedResultDto_VATStatementHeaderForListDto;
|
|
473
547
|
|
|
474
|
-
export type
|
|
475
|
-
|
|
548
|
+
export type PostApiFinanceServiceVatStatementHeadersData = {
|
|
549
|
+
requestBody?: UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderCreateDto;
|
|
476
550
|
};
|
|
477
551
|
|
|
478
|
-
export type
|
|
552
|
+
export type PostApiFinanceServiceVatStatementHeadersResponse = Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
|
|
479
553
|
|
|
480
|
-
export type
|
|
481
|
-
|
|
482
|
-
|
|
554
|
+
export type GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData = {
|
|
555
|
+
merchantId: string;
|
|
556
|
+
month: number;
|
|
557
|
+
vAtStatementDate: string;
|
|
558
|
+
year: number;
|
|
483
559
|
};
|
|
484
560
|
|
|
485
|
-
export type
|
|
561
|
+
export type GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdResponse = Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
|
|
486
562
|
|
|
487
563
|
export type $OpenApiTs = {
|
|
488
564
|
'/api/abp/api-definition': {
|
|
@@ -590,14 +666,14 @@ export type $OpenApiTs = {
|
|
|
590
666
|
};
|
|
591
667
|
};
|
|
592
668
|
};
|
|
593
|
-
'/api/finance-service/
|
|
594
|
-
|
|
595
|
-
req:
|
|
669
|
+
'/api/finance-service/vat-statement-headers/{id}': {
|
|
670
|
+
get: {
|
|
671
|
+
req: GetApiFinanceServiceVatStatementHeadersByIdData;
|
|
596
672
|
res: {
|
|
597
673
|
/**
|
|
598
674
|
* Success
|
|
599
675
|
*/
|
|
600
|
-
200:
|
|
676
|
+
200: UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto;
|
|
601
677
|
/**
|
|
602
678
|
* Bad Request
|
|
603
679
|
*/
|
|
@@ -624,13 +700,15 @@ export type $OpenApiTs = {
|
|
|
624
700
|
501: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
625
701
|
};
|
|
626
702
|
};
|
|
627
|
-
|
|
628
|
-
|
|
703
|
+
};
|
|
704
|
+
'/api/finance-service/vat-statement-headers': {
|
|
705
|
+
get: {
|
|
706
|
+
req: GetApiFinanceServiceVatStatementHeadersData;
|
|
629
707
|
res: {
|
|
630
708
|
/**
|
|
631
709
|
* Success
|
|
632
710
|
*/
|
|
633
|
-
200:
|
|
711
|
+
200: PagedResultDto_VATStatementHeaderForListDto;
|
|
634
712
|
/**
|
|
635
713
|
* Bad Request
|
|
636
714
|
*/
|
|
@@ -657,13 +735,13 @@ export type $OpenApiTs = {
|
|
|
657
735
|
501: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
658
736
|
};
|
|
659
737
|
};
|
|
660
|
-
|
|
661
|
-
req:
|
|
738
|
+
post: {
|
|
739
|
+
req: PostApiFinanceServiceVatStatementHeadersData;
|
|
662
740
|
res: {
|
|
663
741
|
/**
|
|
664
742
|
* Success
|
|
665
743
|
*/
|
|
666
|
-
200:
|
|
744
|
+
200: Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
|
|
667
745
|
/**
|
|
668
746
|
* Bad Request
|
|
669
747
|
*/
|
|
@@ -691,47 +769,14 @@ export type $OpenApiTs = {
|
|
|
691
769
|
};
|
|
692
770
|
};
|
|
693
771
|
};
|
|
694
|
-
'/api/finance-service/
|
|
772
|
+
'/api/finance-service/vat-statement-headers/form-draft/{merchantId}': {
|
|
695
773
|
get: {
|
|
696
|
-
req:
|
|
697
|
-
res: {
|
|
698
|
-
/**
|
|
699
|
-
* Success
|
|
700
|
-
*/
|
|
701
|
-
200: UniRefund_FinanceService_Billings_BillingDto;
|
|
702
|
-
/**
|
|
703
|
-
* Bad Request
|
|
704
|
-
*/
|
|
705
|
-
400: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
706
|
-
/**
|
|
707
|
-
* Unauthorized
|
|
708
|
-
*/
|
|
709
|
-
401: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
710
|
-
/**
|
|
711
|
-
* Forbidden
|
|
712
|
-
*/
|
|
713
|
-
403: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
714
|
-
/**
|
|
715
|
-
* Not Found
|
|
716
|
-
*/
|
|
717
|
-
404: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
718
|
-
/**
|
|
719
|
-
* Server Error
|
|
720
|
-
*/
|
|
721
|
-
500: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
722
|
-
/**
|
|
723
|
-
* Server Error
|
|
724
|
-
*/
|
|
725
|
-
501: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
726
|
-
};
|
|
727
|
-
};
|
|
728
|
-
put: {
|
|
729
|
-
req: PutApiFinanceServiceBillingsByIdData;
|
|
774
|
+
req: GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData;
|
|
730
775
|
res: {
|
|
731
776
|
/**
|
|
732
777
|
* Success
|
|
733
778
|
*/
|
|
734
|
-
200:
|
|
779
|
+
200: Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
|
|
735
780
|
/**
|
|
736
781
|
* Bad Request
|
|
737
782
|
*/
|
package/generator.mjs
CHANGED
|
@@ -2,10 +2,21 @@
|
|
|
2
2
|
import { createClient } from "@hey-api/openapi-ts";
|
|
3
3
|
import SwaggerParser from "@apidevtools/swagger-parser";
|
|
4
4
|
import fs from "fs";
|
|
5
|
-
|
|
6
5
|
const BASE_URL = "http://192.168.1.105:";
|
|
7
6
|
const WEBGATEWAY_PORT = 44336;
|
|
8
7
|
|
|
8
|
+
// const BASE_URL = "https://uat.faturaturka.com:";
|
|
9
|
+
// const WEBGATEWAY_PORT = 44331;
|
|
10
|
+
|
|
11
|
+
const upwithcrowd_new_list = [
|
|
12
|
+
{
|
|
13
|
+
input: "",
|
|
14
|
+
output: "upwithcrowd",
|
|
15
|
+
port: 44331,
|
|
16
|
+
dereference: true,
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
|
|
9
20
|
const upwithcrowd_api_list = [
|
|
10
21
|
{
|
|
11
22
|
input: "",
|
|
@@ -94,6 +105,7 @@ var initial_api_list = [
|
|
|
94
105
|
dereference: true,
|
|
95
106
|
},
|
|
96
107
|
...upwithcrowd_api_list,
|
|
108
|
+
...upwithcrowd_new_list,
|
|
97
109
|
];
|
|
98
110
|
|
|
99
111
|
function clean_URL(url) {
|
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
import type { ApiResult } from './ApiResult';
|
|
3
|
+
|
|
4
|
+
export class ApiError extends Error {
|
|
5
|
+
public readonly url: string;
|
|
6
|
+
public readonly status: number;
|
|
7
|
+
public readonly statusText: string;
|
|
8
|
+
public readonly body: unknown;
|
|
9
|
+
public readonly request: ApiRequestOptions;
|
|
10
|
+
|
|
11
|
+
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
|
12
|
+
super(message);
|
|
13
|
+
|
|
14
|
+
this.name = 'ApiError';
|
|
15
|
+
this.url = response.url;
|
|
16
|
+
this.status = response.status;
|
|
17
|
+
this.statusText = response.statusText;
|
|
18
|
+
this.body = response.body;
|
|
19
|
+
this.request = request;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ApiRequestOptions = {
|
|
2
|
+
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
3
|
+
readonly url: string;
|
|
4
|
+
readonly path?: Record<string, unknown>;
|
|
5
|
+
readonly cookies?: Record<string, unknown>;
|
|
6
|
+
readonly headers?: Record<string, unknown>;
|
|
7
|
+
readonly query?: Record<string, unknown>;
|
|
8
|
+
readonly formData?: Record<string, unknown>;
|
|
9
|
+
readonly body?: any;
|
|
10
|
+
readonly mediaType?: string;
|
|
11
|
+
readonly responseHeader?: string;
|
|
12
|
+
readonly errors?: Record<number, string>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
import type { CancelablePromise } from './CancelablePromise';
|
|
3
|
+
import type { OpenAPIConfig } from './OpenAPI';
|
|
4
|
+
|
|
5
|
+
export abstract class BaseHttpRequest {
|
|
6
|
+
|
|
7
|
+
constructor(public readonly config: OpenAPIConfig) {}
|
|
8
|
+
|
|
9
|
+
public abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
10
|
+
}
|