@ayasofyazilim/saas 0.0.42 → 0.0.44
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/CRMService/schemas.gen.ts +3674 -2158
- package/CRMService/services.gen.ts +5 -5
- package/CRMService/types.gen.ts +120 -31
- package/ContractService/ContractServiceClient.ts +0 -3
- package/ContractService/schemas.gen.ts +151 -1229
- package/ContractService/services.gen.ts +1 -112
- package/ContractService/types.gen.ts +41 -246
- package/TagService/TagServiceClient.ts +44 -0
- package/TagService/core/ApiError.ts +21 -0
- package/TagService/core/ApiRequestOptions.ts +13 -0
- package/TagService/core/ApiResult.ts +7 -0
- package/TagService/core/BaseHttpRequest.ts +10 -0
- package/TagService/core/CancelablePromise.ts +126 -0
- package/TagService/core/FetchHttpRequest.ts +22 -0
- package/TagService/core/OpenAPI.ts +56 -0
- package/TagService/core/request.ts +341 -0
- package/TagService/index.ts +9 -0
- package/TagService/schemas.gen.ts +4448 -0
- package/TagService/services.gen.ts +176 -0
- package/TagService/types.gen.ts +741 -0
- package/TravellerService/services.gen.ts +35 -35
- package/TravellerService/types.gen.ts +32 -36
- package/generator.mjs +5 -0
- package/package.json +1 -1
|
@@ -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, DeleteApiContractServiceContractsContractSettingsByIdData, DeleteApiContractServiceContractsContractSettingsByIdResponse, GetApiContractServiceContractsContractSettingsByIdData, GetApiContractServiceContractsContractSettingsByIdResponse, PutApiContractServiceContractsContractSettingsByIdData, PutApiContractServiceContractsContractSettingsByIdResponse, GetApiContractServiceContractsContractSettingsData, GetApiContractServiceContractsContractSettingsResponse, PostApiContractServiceContractsContractSettingsByIdContractStoresData, PostApiContractServiceContractsContractSettingsByIdContractStoresResponse, DeleteApiContractServiceContractsContractStoresByIdData, DeleteApiContractServiceContractsContractStoresByIdResponse, GetApiContractServiceContractsContractStoresByIdData, GetApiContractServiceContractsContractStoresByIdResponse, PutApiContractServiceContractsContractStoresByIdData, PutApiContractServiceContractsContractStoresByIdResponse, GetApiContractServiceContractsContractStoresData, GetApiContractServiceContractsContractStoresResponse, PostApiContractServiceContractsContractHeadersData, PostApiContractServiceContractsContractHeadersResponse, GetApiContractServiceContractsContractHeadersData, GetApiContractServiceContractsContractHeadersResponse, PostApiContractServiceContractsContractHeadersByIdContractSettingsData, PostApiContractServiceContractsContractHeadersByIdContractSettingsResponse, DeleteApiContractServiceContractsContractHeadersByIdData, DeleteApiContractServiceContractsContractHeadersByIdResponse, GetApiContractServiceContractsContractHeadersByIdData, GetApiContractServiceContractsContractHeadersByIdResponse, PutApiContractServiceContractsContractHeadersByIdData, PutApiContractServiceContractsContractHeadersByIdResponse, GetApiContractServiceContractsContractHeadersDetailByIdData, GetApiContractServiceContractsContractHeadersDetailByIdResponse,
|
|
5
|
+
import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse, DeleteApiContractServiceContractsContractSettingsByIdData, DeleteApiContractServiceContractsContractSettingsByIdResponse, GetApiContractServiceContractsContractSettingsByIdData, GetApiContractServiceContractsContractSettingsByIdResponse, PutApiContractServiceContractsContractSettingsByIdData, PutApiContractServiceContractsContractSettingsByIdResponse, GetApiContractServiceContractsContractSettingsData, GetApiContractServiceContractsContractSettingsResponse, PostApiContractServiceContractsContractSettingsByIdContractStoresData, PostApiContractServiceContractsContractSettingsByIdContractStoresResponse, DeleteApiContractServiceContractsContractStoresByIdData, DeleteApiContractServiceContractsContractStoresByIdResponse, GetApiContractServiceContractsContractStoresByIdData, GetApiContractServiceContractsContractStoresByIdResponse, PutApiContractServiceContractsContractStoresByIdData, PutApiContractServiceContractsContractStoresByIdResponse, GetApiContractServiceContractsContractStoresData, GetApiContractServiceContractsContractStoresResponse, PostApiContractServiceContractsContractHeadersData, PostApiContractServiceContractsContractHeadersResponse, GetApiContractServiceContractsContractHeadersData, GetApiContractServiceContractsContractHeadersResponse, PostApiContractServiceContractsContractHeadersByIdContractSettingsData, PostApiContractServiceContractsContractHeadersByIdContractSettingsResponse, DeleteApiContractServiceContractsContractHeadersByIdData, DeleteApiContractServiceContractsContractHeadersByIdResponse, GetApiContractServiceContractsContractHeadersByIdData, GetApiContractServiceContractsContractHeadersByIdResponse, PutApiContractServiceContractsContractHeadersByIdData, PutApiContractServiceContractsContractHeadersByIdResponse, GetApiContractServiceContractsContractHeadersDetailByIdData, GetApiContractServiceContractsContractHeadersDetailByIdResponse, GetApiContractServiceRebateTablesRebateSettingsByIdData, GetApiContractServiceRebateTablesRebateSettingsByIdResponse, PutApiContractServiceRebateTablesRebateSettingsByIdData, PutApiContractServiceRebateTablesRebateSettingsByIdResponse, DeleteApiContractServiceRebateTablesRebateSettingsByIdData, DeleteApiContractServiceRebateTablesRebateSettingsByIdResponse, PostApiContractServiceRebateTablesRebateSettingsByIdMinimumNetCommissionsData, PostApiContractServiceRebateTablesRebateSettingsByIdMinimumNetCommissionsResponse, GetApiContractServiceRebateTablesRebateSettingsDetailByIdData, GetApiContractServiceRebateTablesRebateSettingsDetailByIdResponse, GetApiContractServiceRebateTablesMinimumNetCommissionsByIdData, GetApiContractServiceRebateTablesMinimumNetCommissionsByIdResponse, PutApiContractServiceRebateTablesMinimumNetCommissionsByIdData, PutApiContractServiceRebateTablesMinimumNetCommissionsByIdResponse, DeleteApiContractServiceRebateTablesMinimumNetCommissionsByIdData, DeleteApiContractServiceRebateTablesMinimumNetCommissionsByIdResponse, GetApiContractServiceRebateTablesMinimumNetCommissionsData, GetApiContractServiceRebateTablesMinimumNetCommissionsResponse, GetApiContractServiceRebateTablesRebateTableHeadersProcessingFeeDetailsByIdData, GetApiContractServiceRebateTablesRebateTableHeadersProcessingFeeDetailsByIdResponse, PutApiContractServiceRebateTablesRebateTableHeadersProcessingFeeDetailsByIdData, PutApiContractServiceRebateTablesRebateTableHeadersProcessingFeeDetailsByIdResponse, DeleteApiContractServiceRebateTablesRebateTableHeadersProcessingFeeDetailsByIdData, DeleteApiContractServiceRebateTablesRebateTableHeadersProcessingFeeDetailsByIdResponse, PostApiContractServiceRebateTablesRebateTableHeadersByIdProcessingFeeDetailsData, PostApiContractServiceRebateTablesRebateTableHeadersByIdProcessingFeeDetailsResponse, GetApiContractServiceRebateTablesRebateTableDetailsByIdData, GetApiContractServiceRebateTablesRebateTableDetailsByIdResponse, PutApiContractServiceRebateTablesRebateTableDetailsByIdData, PutApiContractServiceRebateTablesRebateTableDetailsByIdResponse, DeleteApiContractServiceRebateTablesRebateTableDetailsByIdData, DeleteApiContractServiceRebateTablesRebateTableDetailsByIdResponse, GetApiContractServiceRebateTablesRebateTableDetailsData, GetApiContractServiceRebateTablesRebateTableDetailsResponse, GetApiContractServiceRebateTablesRebateTableHeadersDetailByIdData, GetApiContractServiceRebateTablesRebateTableHeadersDetailByIdResponse, GetApiContractServiceRebateTablesRebateTableHeadersTemplatesData, GetApiContractServiceRebateTablesRebateTableHeadersTemplatesResponse, PostApiContractServiceRebateTablesRebateTableHeadersData, PostApiContractServiceRebateTablesRebateTableHeadersResponse, PostApiContractServiceRebateTablesRebateTableHeadersByIdRebateTableDetailsData, PostApiContractServiceRebateTablesRebateTableHeadersByIdRebateTableDetailsResponse, PutApiContractServiceRebateTablesRebateTableHeadersByIdData, PutApiContractServiceRebateTablesRebateTableHeadersByIdResponse, DeleteApiContractServiceRebateTablesRebateTableHeadersByIdData, DeleteApiContractServiceRebateTablesRebateTableHeadersByIdResponse, GetApiContractServiceRefundTablesRefundTableHeadersByIdData, GetApiContractServiceRefundTablesRefundTableHeadersByIdResponse, PutApiContractServiceRefundTablesRefundTableHeadersByIdData, PutApiContractServiceRefundTablesRefundTableHeadersByIdResponse, DeleteApiContractServiceRefundTablesRefundTableHeadersByIdData, DeleteApiContractServiceRefundTablesRefundTableHeadersByIdResponse, GetApiContractServiceRefundTablesRefundTableHeadersData, GetApiContractServiceRefundTablesRefundTableHeadersResponse, PostApiContractServiceRefundTablesRefundTableHeadersData, PostApiContractServiceRefundTablesRefundTableHeadersResponse, PostApiContractServiceRefundTablesRefundTableHeadersByIdRefundTableDetailsData, PostApiContractServiceRefundTablesRefundTableHeadersByIdRefundTableDetailsResponse, GetApiContractServiceRefundTablesRefundTableDetailsByIdData, GetApiContractServiceRefundTablesRefundTableDetailsByIdResponse, PutApiContractServiceRefundTablesRefundTableDetailsByIdData, PutApiContractServiceRefundTablesRefundTableDetailsByIdResponse, DeleteApiContractServiceRefundTablesRefundTableDetailsByIdData, DeleteApiContractServiceRefundTablesRefundTableDetailsByIdResponse, GetApiContractServiceRefundTablesRefundTableDetailsData, GetApiContractServiceRefundTablesRefundTableDetailsResponse, GetApiContractServiceRefundTablesRefundFeeHeadersByIdData, GetApiContractServiceRefundTablesRefundFeeHeadersByIdResponse, PutApiContractServiceRefundTablesRefundFeeHeadersByIdData, PutApiContractServiceRefundTablesRefundFeeHeadersByIdResponse, DeleteApiContractServiceRefundTablesRefundFeeHeadersByIdData, DeleteApiContractServiceRefundTablesRefundFeeHeadersByIdResponse, GetApiContractServiceRefundTablesRefundFeeHeadersData, GetApiContractServiceRefundTablesRefundFeeHeadersResponse, PostApiContractServiceRefundTablesRefundFeeHeadersData, PostApiContractServiceRefundTablesRefundFeeHeadersResponse, GetApiContractServiceRefundTablesRefundFeeHeadersDetailByIdData, GetApiContractServiceRefundTablesRefundFeeHeadersDetailByIdResponse, PostApiContractServiceRefundTablesRefundFeeHeadersByIdRefundFeeDetailsData, PostApiContractServiceRefundTablesRefundFeeHeadersByIdRefundFeeDetailsResponse, GetApiContractServiceRefundTablesRefundFeeDetailsByIdData, GetApiContractServiceRefundTablesRefundFeeDetailsByIdResponse, PutApiContractServiceRefundTablesRefundFeeDetailsByIdData, PutApiContractServiceRefundTablesRefundFeeDetailsByIdResponse, DeleteApiContractServiceRefundTablesRefundFeeDetailsByIdData, DeleteApiContractServiceRefundTablesRefundFeeDetailsByIdResponse } from './types.gen';
|
|
6
6
|
|
|
7
7
|
export class AbpApiDefinitionService {
|
|
8
8
|
constructor(public readonly httpRequest: BaseHttpRequest) { }
|
|
@@ -508,117 +508,6 @@ export class ContractsService {
|
|
|
508
508
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
export class EnumsService {
|
|
512
|
-
constructor(public readonly httpRequest: BaseHttpRequest) { }
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* @param data The data for the request.
|
|
516
|
-
* @param data.enumTypeId
|
|
517
|
-
* @returns Volo_Abp_Application_Dtos_PagedResultDto_1<AyasofYazilim_Enum_Enums_EnumDto__AyasofYazilim_Enum_Application_Contracts__Version_0_1_5_0__Culture_neutral__PublicKeyToken_null_> Success
|
|
518
|
-
* @throws ApiError
|
|
519
|
-
*/
|
|
520
|
-
public getApiEnumServiceEnumsGetListByEnumTypeIdByEnumTypeId(data: GetApiEnumServiceEnumsGetListByEnumTypeIdByEnumTypeIdData): CancelablePromise<GetApiEnumServiceEnumsGetListByEnumTypeIdByEnumTypeIdResponse> {
|
|
521
|
-
return this.httpRequest.request({
|
|
522
|
-
method: 'GET',
|
|
523
|
-
url: '/api/enum-service/enums/get-list-by-enumTypeId/{enumTypeId}',
|
|
524
|
-
path: {
|
|
525
|
-
enumTypeId: data.enumTypeId
|
|
526
|
-
},
|
|
527
|
-
errors: {
|
|
528
|
-
400: 'Bad Request',
|
|
529
|
-
401: 'Unauthorized',
|
|
530
|
-
403: 'Forbidden',
|
|
531
|
-
404: 'Not Found',
|
|
532
|
-
500: 'Server Error',
|
|
533
|
-
501: 'Server Error'
|
|
534
|
-
}
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* @param data The data for the request.
|
|
540
|
-
* @param data.id
|
|
541
|
-
* @param data.requestBody
|
|
542
|
-
* @returns unknown Success
|
|
543
|
-
* @throws ApiError
|
|
544
|
-
*/
|
|
545
|
-
public postApiEnumServiceEnumsTranslation(data: PostApiEnumServiceEnumsTranslationData = {}): CancelablePromise<PostApiEnumServiceEnumsTranslationResponse> {
|
|
546
|
-
return this.httpRequest.request({
|
|
547
|
-
method: 'POST',
|
|
548
|
-
url: '/api/enum-service/enums/translation',
|
|
549
|
-
query: {
|
|
550
|
-
id: data.id
|
|
551
|
-
},
|
|
552
|
-
body: data.requestBody,
|
|
553
|
-
mediaType: 'application/json',
|
|
554
|
-
errors: {
|
|
555
|
-
400: 'Bad Request',
|
|
556
|
-
401: 'Unauthorized',
|
|
557
|
-
403: 'Forbidden',
|
|
558
|
-
404: 'Not Found',
|
|
559
|
-
500: 'Server Error',
|
|
560
|
-
501: 'Server Error'
|
|
561
|
-
}
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* @param data The data for the request.
|
|
567
|
-
* @param data.id
|
|
568
|
-
* @param data.requestBody
|
|
569
|
-
* @returns unknown Success
|
|
570
|
-
* @throws ApiError
|
|
571
|
-
*/
|
|
572
|
-
public postApiEnumServiceEnumsEnumTypeTranslation(data: PostApiEnumServiceEnumsEnumTypeTranslationData = {}): CancelablePromise<PostApiEnumServiceEnumsEnumTypeTranslationResponse> {
|
|
573
|
-
return this.httpRequest.request({
|
|
574
|
-
method: 'POST',
|
|
575
|
-
url: '/api/enum-service/enums/enum-type-translation',
|
|
576
|
-
query: {
|
|
577
|
-
id: data.id
|
|
578
|
-
},
|
|
579
|
-
body: data.requestBody,
|
|
580
|
-
mediaType: 'application/json',
|
|
581
|
-
errors: {
|
|
582
|
-
400: 'Bad Request',
|
|
583
|
-
401: 'Unauthorized',
|
|
584
|
-
403: 'Forbidden',
|
|
585
|
-
404: 'Not Found',
|
|
586
|
-
500: 'Server Error',
|
|
587
|
-
501: 'Server Error'
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* @param data The data for the request.
|
|
594
|
-
* @param data.sorting
|
|
595
|
-
* @param data.skipCount
|
|
596
|
-
* @param data.maxResultCount
|
|
597
|
-
* @returns Volo_Abp_Application_Dtos_PagedResultDto_1<AyasofYazilim_Enum_EnumTypes_EnumTypeDto__AyasofYazilim_Enum_Application_Contracts__Version_0_1_5_0__Culture_neutral__PublicKeyToken_null_> Success
|
|
598
|
-
* @throws ApiError
|
|
599
|
-
*/
|
|
600
|
-
public getApiEnumServiceEnumsEnumType(data: GetApiEnumServiceEnumsEnumTypeData = {}): CancelablePromise<GetApiEnumServiceEnumsEnumTypeResponse> {
|
|
601
|
-
return this.httpRequest.request({
|
|
602
|
-
method: 'GET',
|
|
603
|
-
url: '/api/enum-service/enums/enum-type',
|
|
604
|
-
query: {
|
|
605
|
-
Sorting: data.sorting,
|
|
606
|
-
SkipCount: data.skipCount,
|
|
607
|
-
MaxResultCount: data.maxResultCount
|
|
608
|
-
},
|
|
609
|
-
errors: {
|
|
610
|
-
400: 'Bad Request',
|
|
611
|
-
401: 'Unauthorized',
|
|
612
|
-
403: 'Forbidden',
|
|
613
|
-
404: 'Not Found',
|
|
614
|
-
500: 'Server Error',
|
|
615
|
-
501: 'Server Error'
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
|
|
622
511
|
export class RebateTablesService {
|
|
623
512
|
constructor(public readonly httpRequest: BaseHttpRequest) { }
|
|
624
513
|
|
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export type AyasofYazilim_Enum_EnumTypes_AddEnumTypeTranslationDto = {
|
|
4
|
-
language: string;
|
|
5
|
-
displayName: string;
|
|
6
|
-
description: string;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export type AyasofYazilim_Enum_EnumTypes_EnumTypeDto = {
|
|
10
|
-
id?: string | null;
|
|
11
|
-
creationTime?: string;
|
|
12
|
-
creatorId?: string | null;
|
|
13
|
-
lastModificationTime?: string | null;
|
|
14
|
-
lastModifierId?: string | null;
|
|
15
|
-
isDeleted?: boolean;
|
|
16
|
-
deleterId?: string | null;
|
|
17
|
-
deletionTime?: string | null;
|
|
18
|
-
displayName?: string | null;
|
|
19
|
-
description?: string | null;
|
|
20
|
-
enumTables?: Array<AyasofYazilim_Enum_Enums_EnumDto> | null;
|
|
21
|
-
language?: string | null;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export type AyasofYazilim_Enum_Enums_AddEnumTranslationDto = {
|
|
25
|
-
language: string;
|
|
26
|
-
displayName: string;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type AyasofYazilim_Enum_Enums_EnumDto = {
|
|
31
|
-
id?: string;
|
|
32
|
-
key?: string | null;
|
|
33
|
-
value?: number;
|
|
34
|
-
displayName?: string | null;
|
|
35
|
-
isActive?: boolean;
|
|
36
|
-
description?: string | null;
|
|
37
|
-
language?: string | null;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
3
|
export type UniRefund_ContractService_Contracts_ContractHeaderRefundTableHeaders_ContractHeaderRefundTableHeaderDto = {
|
|
41
4
|
id: string;
|
|
42
5
|
creationTime?: string;
|
|
@@ -91,14 +54,14 @@ export type UniRefund_ContractService_Contracts_ContractSettings_ContractSetting
|
|
|
91
54
|
name: string;
|
|
92
55
|
isDefault?: boolean;
|
|
93
56
|
referenceNumber: number;
|
|
94
|
-
invoicingFrequency:
|
|
57
|
+
invoicingFrequency: UniRefund_ContractService_Enums_InvoicingFrequency;
|
|
95
58
|
termOfPayment: number;
|
|
96
59
|
deliveryFee?: boolean;
|
|
97
60
|
factoring?: boolean;
|
|
98
61
|
invoicingAddressId: string;
|
|
99
|
-
invoiceChannel:
|
|
62
|
+
invoiceChannel: UniRefund_ContractService_Enums_InvoiceChannel;
|
|
100
63
|
eTaxFree?: boolean;
|
|
101
|
-
receiptType:
|
|
64
|
+
receiptType: UniRefund_ContractService_Enums_ReceiptType;
|
|
102
65
|
crossTaxFreeForm?: boolean;
|
|
103
66
|
facturaNumberIsUnique?: boolean;
|
|
104
67
|
goodsHaveSerialNumbers?: boolean;
|
|
@@ -119,14 +82,14 @@ export type UniRefund_ContractService_Contracts_ContractSettings_ContractSetting
|
|
|
119
82
|
name: string;
|
|
120
83
|
isDefault?: boolean;
|
|
121
84
|
referenceNumber: number;
|
|
122
|
-
invoicingFrequency:
|
|
85
|
+
invoicingFrequency: UniRefund_ContractService_Enums_InvoicingFrequency;
|
|
123
86
|
termOfPayment: number;
|
|
124
87
|
deliveryFee?: boolean;
|
|
125
88
|
factoring?: boolean;
|
|
126
89
|
invoicingAddressId: string;
|
|
127
|
-
invoiceChannel:
|
|
90
|
+
invoiceChannel: UniRefund_ContractService_Enums_InvoiceChannel;
|
|
128
91
|
eTaxFree?: boolean;
|
|
129
|
-
receiptType:
|
|
92
|
+
receiptType: UniRefund_ContractService_Enums_ReceiptType;
|
|
130
93
|
crossTaxFreeForm?: boolean;
|
|
131
94
|
facturaNumberIsUnique?: boolean;
|
|
132
95
|
goodsHaveSerialNumbers?: boolean;
|
|
@@ -143,14 +106,14 @@ export type UniRefund_ContractService_Contracts_ContractSettings_ContractSetting
|
|
|
143
106
|
name: string;
|
|
144
107
|
isDefault?: boolean;
|
|
145
108
|
referenceNumber: number;
|
|
146
|
-
invoicingFrequency:
|
|
109
|
+
invoicingFrequency: UniRefund_ContractService_Enums_InvoicingFrequency;
|
|
147
110
|
termOfPayment: number;
|
|
148
111
|
deliveryFee?: boolean;
|
|
149
112
|
factoring?: boolean;
|
|
150
113
|
invoicingAddressId: string;
|
|
151
|
-
invoiceChannel:
|
|
114
|
+
invoiceChannel: UniRefund_ContractService_Enums_InvoiceChannel;
|
|
152
115
|
eTaxFree?: boolean;
|
|
153
|
-
receiptType:
|
|
116
|
+
receiptType: UniRefund_ContractService_Enums_ReceiptType;
|
|
154
117
|
crossTaxFreeForm?: boolean;
|
|
155
118
|
facturaNumberIsUnique?: boolean;
|
|
156
119
|
goodsHaveSerialNumbers?: boolean;
|
|
@@ -163,7 +126,7 @@ export type UniRefund_ContractService_Contracts_ContractStores_ContractStoreCrea
|
|
|
163
126
|
[key: string]: unknown;
|
|
164
127
|
} | null;
|
|
165
128
|
merchantId: string;
|
|
166
|
-
receiptType:
|
|
129
|
+
receiptType: UniRefund_ContractService_Enums_ReceiptType;
|
|
167
130
|
};
|
|
168
131
|
|
|
169
132
|
export type UniRefund_ContractService_Contracts_ContractStores_ContractStoreDto = {
|
|
@@ -176,7 +139,7 @@ export type UniRefund_ContractService_Contracts_ContractStores_ContractStoreDto
|
|
|
176
139
|
deleterId?: string | null;
|
|
177
140
|
deletionTime?: string | null;
|
|
178
141
|
merchantId: string;
|
|
179
|
-
receiptType:
|
|
142
|
+
receiptType: UniRefund_ContractService_Enums_ReceiptType;
|
|
180
143
|
};
|
|
181
144
|
|
|
182
145
|
export type UniRefund_ContractService_Contracts_ContractStores_ContractStoreUpdateDto = {
|
|
@@ -184,12 +147,22 @@ export type UniRefund_ContractService_Contracts_ContractStores_ContractStoreUpda
|
|
|
184
147
|
[key: string]: unknown;
|
|
185
148
|
} | null;
|
|
186
149
|
merchantId: string;
|
|
187
|
-
receiptType:
|
|
150
|
+
receiptType: UniRefund_ContractService_Enums_ReceiptType;
|
|
188
151
|
};
|
|
189
152
|
|
|
190
|
-
export type
|
|
153
|
+
export type UniRefund_ContractService_Enums_FeeType = 'TouristFee' | 'TouristBonusFee' | 'AgentFee' | 'AirportFee';
|
|
191
154
|
|
|
192
|
-
export type
|
|
155
|
+
export type UniRefund_ContractService_Enums_InvoiceChannel = 'ElectronicInvoice' | 'Email' | 'PaperInvoice';
|
|
156
|
+
|
|
157
|
+
export type UniRefund_ContractService_Enums_InvoicingFrequency = 'OneTimePerMonth' | 'TwoTimesPerMonth';
|
|
158
|
+
|
|
159
|
+
export type UniRefund_ContractService_Enums_RebateStatementPeriod = 'None' | 'Monthly' | 'Quarterly' | 'BiAnnually' | 'Annually';
|
|
160
|
+
|
|
161
|
+
export type UniRefund_ContractService_Enums_ReceiptType = 'NoBarcodeNumber' | 'NoBarcodeText' | 'Barcode' | 'QRCodeIntegration' | 'UniRefundVoucherIntegration';
|
|
162
|
+
|
|
163
|
+
export type UniRefund_ContractService_Enums_RefundMethod = 'All' | 'Cash' | 'CreditCard' | 'Alipay' | 'WeChat' | 'CashViaPartner' | 'RefundLater';
|
|
164
|
+
|
|
165
|
+
export type UniRefund_ContractService_Enums_VariableFee = 'PercentOfGC' | 'PercentOfGcWithoutVAT' | 'PercentOfVAT' | 'PercentOfSIS';
|
|
193
166
|
|
|
194
167
|
export type UniRefund_ContractService_Rebates_MinimumNetCommissions_MinimumNetCommissionCreateDto = {
|
|
195
168
|
readonly extraProperties?: {
|
|
@@ -283,7 +256,7 @@ export type UniRefund_ContractService_Rebates_RebateSettings_RebateSettingCreate
|
|
|
283
256
|
} | null;
|
|
284
257
|
referenceNumber: number;
|
|
285
258
|
isTrustedMerchant: boolean;
|
|
286
|
-
rebateStatementPeriod:
|
|
259
|
+
rebateStatementPeriod: UniRefund_ContractService_Enums_RebateStatementPeriod;
|
|
287
260
|
rebateTableHeaders?: Array<UniRefund_ContractService_Rebates_RebateTableHeaders_RebateTableHeaderCreateDto> | null;
|
|
288
261
|
rebateTableHeaderIds?: Array<(string)> | null;
|
|
289
262
|
contactInformationTypeId: string;
|
|
@@ -301,7 +274,7 @@ export type UniRefund_ContractService_Rebates_RebateSettings_RebateSettingDto =
|
|
|
301
274
|
deletionTime?: string | null;
|
|
302
275
|
referenceNumber: number;
|
|
303
276
|
isTrustedMerchant: boolean;
|
|
304
|
-
rebateStatementPeriod:
|
|
277
|
+
rebateStatementPeriod: UniRefund_ContractService_Enums_RebateStatementPeriod;
|
|
305
278
|
contactInformationTypeId: string;
|
|
306
279
|
merchantId: string;
|
|
307
280
|
contractHeaderId: string;
|
|
@@ -315,7 +288,7 @@ export type UniRefund_ContractService_Rebates_RebateSettings_RebateSettingUpdate
|
|
|
315
288
|
} | null;
|
|
316
289
|
referenceNumber: number;
|
|
317
290
|
isTrustedMerchant: boolean;
|
|
318
|
-
rebateStatementPeriod:
|
|
291
|
+
rebateStatementPeriod: UniRefund_ContractService_Enums_RebateStatementPeriod;
|
|
319
292
|
contactInformationTypeId: string;
|
|
320
293
|
merchantId: string;
|
|
321
294
|
};
|
|
@@ -420,8 +393,8 @@ export type UniRefund_ContractService_Refunds_RefundFeeDetails_RefundFeeDetailCr
|
|
|
420
393
|
percentFeeValue: number;
|
|
421
394
|
minFee: number;
|
|
422
395
|
maxFee: number;
|
|
423
|
-
feeType:
|
|
424
|
-
refundMethod:
|
|
396
|
+
feeType: UniRefund_ContractService_Enums_FeeType;
|
|
397
|
+
refundMethod: UniRefund_ContractService_Enums_RefundMethod;
|
|
425
398
|
};
|
|
426
399
|
|
|
427
400
|
export type UniRefund_ContractService_Refunds_RefundFeeDetails_RefundFeeDetailDto = {
|
|
@@ -439,8 +412,8 @@ export type UniRefund_ContractService_Refunds_RefundFeeDetails_RefundFeeDetailDt
|
|
|
439
412
|
percentFeeValue: number;
|
|
440
413
|
minFee: number;
|
|
441
414
|
maxFee: number;
|
|
442
|
-
feeType:
|
|
443
|
-
refundMethod:
|
|
415
|
+
feeType: UniRefund_ContractService_Enums_FeeType;
|
|
416
|
+
refundMethod: UniRefund_ContractService_Enums_RefundMethod;
|
|
444
417
|
refundFeeHeaderId: string;
|
|
445
418
|
};
|
|
446
419
|
|
|
@@ -454,8 +427,8 @@ export type UniRefund_ContractService_Refunds_RefundFeeDetails_RefundFeeDetailUp
|
|
|
454
427
|
percentFeeValue: number;
|
|
455
428
|
minFee: number;
|
|
456
429
|
maxFee: number;
|
|
457
|
-
feeType:
|
|
458
|
-
refundMethod:
|
|
430
|
+
feeType: UniRefund_ContractService_Enums_FeeType;
|
|
431
|
+
refundMethod: UniRefund_ContractService_Enums_RefundMethod;
|
|
459
432
|
};
|
|
460
433
|
|
|
461
434
|
export type UniRefund_ContractService_Refunds_RefundFeeHeaders_RefundFeeHeaderCreateDto = {
|
|
@@ -575,56 +548,46 @@ export type UniRefund_ContractService_Refunds_RefundTableHeaders_RefundTableHead
|
|
|
575
548
|
};
|
|
576
549
|
|
|
577
550
|
export type Volo_Abp_Application_Dtos_PagedResultDto_1 = {
|
|
578
|
-
items?: Array<AyasofYazilim_Enum_EnumTypes_EnumTypeDto> | null;
|
|
579
|
-
totalCount?: number;
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
export type Volo_Abp_Application_Dtos_PagedResultDto_12 = {
|
|
583
|
-
items?: Array<AyasofYazilim_Enum_Enums_EnumDto> | null;
|
|
584
|
-
totalCount?: number;
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
export type Volo_Abp_Application_Dtos_PagedResultDto_13 = {
|
|
588
551
|
items?: Array<UniRefund_ContractService_Contracts_ContractHeaders_ContractHeaderDto> | null;
|
|
589
552
|
totalCount?: number;
|
|
590
553
|
};
|
|
591
554
|
|
|
592
|
-
export type
|
|
555
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_12 = {
|
|
593
556
|
items?: Array<UniRefund_ContractService_Contracts_ContractSettings_ContractSettingDto> | null;
|
|
594
557
|
totalCount?: number;
|
|
595
558
|
};
|
|
596
559
|
|
|
597
|
-
export type
|
|
560
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_13 = {
|
|
598
561
|
items?: Array<UniRefund_ContractService_Contracts_ContractStores_ContractStoreDto> | null;
|
|
599
562
|
totalCount?: number;
|
|
600
563
|
};
|
|
601
564
|
|
|
602
|
-
export type
|
|
565
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_14 = {
|
|
603
566
|
items?: Array<UniRefund_ContractService_Rebates_MinimumNetCommissions_MinimumNetCommissionDto> | null;
|
|
604
567
|
totalCount?: number;
|
|
605
568
|
};
|
|
606
569
|
|
|
607
|
-
export type
|
|
570
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_15 = {
|
|
608
571
|
items?: Array<UniRefund_ContractService_Rebates_RebateTableDetails_RebateTableDetailDto> | null;
|
|
609
572
|
totalCount?: number;
|
|
610
573
|
};
|
|
611
574
|
|
|
612
|
-
export type
|
|
575
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_16 = {
|
|
613
576
|
items?: Array<UniRefund_ContractService_Rebates_RebateTableHeaders_RebateTableHeaderDto> | null;
|
|
614
577
|
totalCount?: number;
|
|
615
578
|
};
|
|
616
579
|
|
|
617
|
-
export type
|
|
580
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_17 = {
|
|
618
581
|
items?: Array<UniRefund_ContractService_Refunds_RefundFeeHeaders_RefundFeeHeaderDto> | null;
|
|
619
582
|
totalCount?: number;
|
|
620
583
|
};
|
|
621
584
|
|
|
622
|
-
export type
|
|
585
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_18 = {
|
|
623
586
|
items?: Array<UniRefund_ContractService_Refunds_RefundTableDetails_RefundTableDetailDto> | null;
|
|
624
587
|
totalCount?: number;
|
|
625
588
|
};
|
|
626
589
|
|
|
627
|
-
export type
|
|
590
|
+
export type Volo_Abp_Application_Dtos_PagedResultDto_19 = {
|
|
628
591
|
items?: Array<UniRefund_ContractService_Refunds_RefundTableHeaders_RefundTableHeaderDto> | null;
|
|
629
592
|
totalCount?: number;
|
|
630
593
|
};
|
|
@@ -1138,34 +1101,6 @@ export type GetApiContractServiceContractsContractHeadersDetailByIdData = {
|
|
|
1138
1101
|
|
|
1139
1102
|
export type GetApiContractServiceContractsContractHeadersDetailByIdResponse = UniRefund_ContractService_Contracts_ContractHeaders_ContractHeaderDto;
|
|
1140
1103
|
|
|
1141
|
-
export type GetApiEnumServiceEnumsGetListByEnumTypeIdByEnumTypeIdData = {
|
|
1142
|
-
enumTypeId: string;
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
export type GetApiEnumServiceEnumsGetListByEnumTypeIdByEnumTypeIdResponse = Volo_Abp_Application_Dtos_PagedResultDto_1;
|
|
1146
|
-
|
|
1147
|
-
export type PostApiEnumServiceEnumsTranslationData = {
|
|
1148
|
-
id?: string;
|
|
1149
|
-
requestBody?: AyasofYazilim_Enum_Enums_AddEnumTranslationDto;
|
|
1150
|
-
};
|
|
1151
|
-
|
|
1152
|
-
export type PostApiEnumServiceEnumsTranslationResponse = unknown;
|
|
1153
|
-
|
|
1154
|
-
export type PostApiEnumServiceEnumsEnumTypeTranslationData = {
|
|
1155
|
-
id?: string;
|
|
1156
|
-
requestBody?: AyasofYazilim_Enum_EnumTypes_AddEnumTypeTranslationDto;
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
export type PostApiEnumServiceEnumsEnumTypeTranslationResponse = unknown;
|
|
1160
|
-
|
|
1161
|
-
export type GetApiEnumServiceEnumsEnumTypeData = {
|
|
1162
|
-
maxResultCount?: number;
|
|
1163
|
-
skipCount?: number;
|
|
1164
|
-
sorting?: string;
|
|
1165
|
-
};
|
|
1166
|
-
|
|
1167
|
-
export type GetApiEnumServiceEnumsEnumTypeResponse = Volo_Abp_Application_Dtos_PagedResultDto_1;
|
|
1168
|
-
|
|
1169
1104
|
export type GetApiContractServiceRebateTablesRebateSettingsByIdData = {
|
|
1170
1105
|
id: string;
|
|
1171
1106
|
};
|
|
@@ -2100,146 +2035,6 @@ export type $OpenApiTs = {
|
|
|
2100
2035
|
};
|
|
2101
2036
|
};
|
|
2102
2037
|
};
|
|
2103
|
-
'/api/enum-service/enums/get-list-by-enumTypeId/{enumTypeId}': {
|
|
2104
|
-
get: {
|
|
2105
|
-
req: GetApiEnumServiceEnumsGetListByEnumTypeIdByEnumTypeIdData;
|
|
2106
|
-
res: {
|
|
2107
|
-
/**
|
|
2108
|
-
* Success
|
|
2109
|
-
*/
|
|
2110
|
-
200: Volo_Abp_Application_Dtos_PagedResultDto_1;
|
|
2111
|
-
/**
|
|
2112
|
-
* Bad Request
|
|
2113
|
-
*/
|
|
2114
|
-
400: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2115
|
-
/**
|
|
2116
|
-
* Unauthorized
|
|
2117
|
-
*/
|
|
2118
|
-
401: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2119
|
-
/**
|
|
2120
|
-
* Forbidden
|
|
2121
|
-
*/
|
|
2122
|
-
403: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2123
|
-
/**
|
|
2124
|
-
* Not Found
|
|
2125
|
-
*/
|
|
2126
|
-
404: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2127
|
-
/**
|
|
2128
|
-
* Server Error
|
|
2129
|
-
*/
|
|
2130
|
-
500: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2131
|
-
/**
|
|
2132
|
-
* Server Error
|
|
2133
|
-
*/
|
|
2134
|
-
501: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2135
|
-
};
|
|
2136
|
-
};
|
|
2137
|
-
};
|
|
2138
|
-
'/api/enum-service/enums/translation': {
|
|
2139
|
-
post: {
|
|
2140
|
-
req: PostApiEnumServiceEnumsTranslationData;
|
|
2141
|
-
res: {
|
|
2142
|
-
/**
|
|
2143
|
-
* Success
|
|
2144
|
-
*/
|
|
2145
|
-
200: unknown;
|
|
2146
|
-
/**
|
|
2147
|
-
* Bad Request
|
|
2148
|
-
*/
|
|
2149
|
-
400: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2150
|
-
/**
|
|
2151
|
-
* Unauthorized
|
|
2152
|
-
*/
|
|
2153
|
-
401: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2154
|
-
/**
|
|
2155
|
-
* Forbidden
|
|
2156
|
-
*/
|
|
2157
|
-
403: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2158
|
-
/**
|
|
2159
|
-
* Not Found
|
|
2160
|
-
*/
|
|
2161
|
-
404: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2162
|
-
/**
|
|
2163
|
-
* Server Error
|
|
2164
|
-
*/
|
|
2165
|
-
500: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2166
|
-
/**
|
|
2167
|
-
* Server Error
|
|
2168
|
-
*/
|
|
2169
|
-
501: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2170
|
-
};
|
|
2171
|
-
};
|
|
2172
|
-
};
|
|
2173
|
-
'/api/enum-service/enums/enum-type-translation': {
|
|
2174
|
-
post: {
|
|
2175
|
-
req: PostApiEnumServiceEnumsEnumTypeTranslationData;
|
|
2176
|
-
res: {
|
|
2177
|
-
/**
|
|
2178
|
-
* Success
|
|
2179
|
-
*/
|
|
2180
|
-
200: unknown;
|
|
2181
|
-
/**
|
|
2182
|
-
* Bad Request
|
|
2183
|
-
*/
|
|
2184
|
-
400: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2185
|
-
/**
|
|
2186
|
-
* Unauthorized
|
|
2187
|
-
*/
|
|
2188
|
-
401: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2189
|
-
/**
|
|
2190
|
-
* Forbidden
|
|
2191
|
-
*/
|
|
2192
|
-
403: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2193
|
-
/**
|
|
2194
|
-
* Not Found
|
|
2195
|
-
*/
|
|
2196
|
-
404: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2197
|
-
/**
|
|
2198
|
-
* Server Error
|
|
2199
|
-
*/
|
|
2200
|
-
500: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2201
|
-
/**
|
|
2202
|
-
* Server Error
|
|
2203
|
-
*/
|
|
2204
|
-
501: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2205
|
-
};
|
|
2206
|
-
};
|
|
2207
|
-
};
|
|
2208
|
-
'/api/enum-service/enums/enum-type': {
|
|
2209
|
-
get: {
|
|
2210
|
-
req: GetApiEnumServiceEnumsEnumTypeData;
|
|
2211
|
-
res: {
|
|
2212
|
-
/**
|
|
2213
|
-
* Success
|
|
2214
|
-
*/
|
|
2215
|
-
200: Volo_Abp_Application_Dtos_PagedResultDto_1;
|
|
2216
|
-
/**
|
|
2217
|
-
* Bad Request
|
|
2218
|
-
*/
|
|
2219
|
-
400: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2220
|
-
/**
|
|
2221
|
-
* Unauthorized
|
|
2222
|
-
*/
|
|
2223
|
-
401: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2224
|
-
/**
|
|
2225
|
-
* Forbidden
|
|
2226
|
-
*/
|
|
2227
|
-
403: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2228
|
-
/**
|
|
2229
|
-
* Not Found
|
|
2230
|
-
*/
|
|
2231
|
-
404: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2232
|
-
/**
|
|
2233
|
-
* Server Error
|
|
2234
|
-
*/
|
|
2235
|
-
500: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2236
|
-
/**
|
|
2237
|
-
* Server Error
|
|
2238
|
-
*/
|
|
2239
|
-
501: Volo_Abp_Http_RemoteServiceErrorResponse;
|
|
2240
|
-
};
|
|
2241
|
-
};
|
|
2242
|
-
};
|
|
2243
2038
|
'/api/contract-service/rebate-tables/rebate-settings/{id}': {
|
|
2244
2039
|
get: {
|
|
2245
2040
|
req: GetApiContractServiceRebateTablesRebateSettingsByIdData;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
2
|
+
import type { OpenAPIConfig } from './core/OpenAPI';
|
|
3
|
+
import { Interceptors } from './core/OpenAPI';
|
|
4
|
+
import { FetchHttpRequest } from './core/FetchHttpRequest';
|
|
5
|
+
|
|
6
|
+
import { AbpApiDefinitionService } from './services.gen';
|
|
7
|
+
import { AbpApplicationConfigurationService } from './services.gen';
|
|
8
|
+
import { AbpApplicationLocalizationService } from './services.gen';
|
|
9
|
+
import { TagService } from './services.gen';
|
|
10
|
+
|
|
11
|
+
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
12
|
+
|
|
13
|
+
export class TagServiceClient {
|
|
14
|
+
|
|
15
|
+
public readonly abpApiDefinition: AbpApiDefinitionService;
|
|
16
|
+
public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
|
|
17
|
+
public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
|
|
18
|
+
public readonly tag: TagService;
|
|
19
|
+
|
|
20
|
+
public readonly request: BaseHttpRequest;
|
|
21
|
+
|
|
22
|
+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
|
|
23
|
+
this.request = new HttpRequest({
|
|
24
|
+
BASE: config?.BASE ?? '',
|
|
25
|
+
VERSION: config?.VERSION ?? '1',
|
|
26
|
+
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
27
|
+
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
28
|
+
TOKEN: config?.TOKEN,
|
|
29
|
+
USERNAME: config?.USERNAME,
|
|
30
|
+
PASSWORD: config?.PASSWORD,
|
|
31
|
+
HEADERS: config?.HEADERS,
|
|
32
|
+
ENCODE_PATH: config?.ENCODE_PATH,
|
|
33
|
+
interceptors: {
|
|
34
|
+
request: config?.interceptors?.request ?? new Interceptors(),
|
|
35
|
+
response: config?.interceptors?.response ?? new Interceptors(),
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
this.abpApiDefinition = new AbpApiDefinitionService(this.request);
|
|
40
|
+
this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
|
|
41
|
+
this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
|
|
42
|
+
this.tag = new TagService(this.request);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -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
|
+
};
|