@ayasofyazilim/saas 0.0.103 → 0.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,77 @@
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 './sdk.gen';
7
+ import { AbpApplicationConfigurationService } from './sdk.gen';
8
+ import { AbpApplicationLocalizationService } from './sdk.gen';
9
+ import { AffiliationCodeService } from './sdk.gen';
10
+ import { CustomsService } from './sdk.gen';
11
+ import { CustomsIntegrationService } from './sdk.gen';
12
+ import { IndividualService } from './sdk.gen';
13
+ import { MerchantService } from './sdk.gen';
14
+ import { MerchantIntegrationService } from './sdk.gen';
15
+ import { OrganizationService } from './sdk.gen';
16
+ import { RefundPointService } from './sdk.gen';
17
+ import { RefundPointIntegrationService } from './sdk.gen';
18
+ import { TaxFreeService } from './sdk.gen';
19
+ import { TaxOfficeService } from './sdk.gen';
20
+ import { TaxOfficeIntegrationService } from './sdk.gen';
21
+
22
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
23
+
24
+ export class CRMServiceClient {
25
+
26
+ public readonly abpApiDefinition: AbpApiDefinitionService;
27
+ public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
28
+ public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
29
+ public readonly affiliationCode: AffiliationCodeService;
30
+ public readonly customs: CustomsService;
31
+ public readonly customsIntegration: CustomsIntegrationService;
32
+ public readonly individual: IndividualService;
33
+ public readonly merchant: MerchantService;
34
+ public readonly merchantIntegration: MerchantIntegrationService;
35
+ public readonly organization: OrganizationService;
36
+ public readonly refundPoint: RefundPointService;
37
+ public readonly refundPointIntegration: RefundPointIntegrationService;
38
+ public readonly taxFree: TaxFreeService;
39
+ public readonly taxOffice: TaxOfficeService;
40
+ public readonly taxOfficeIntegration: TaxOfficeIntegrationService;
41
+
42
+ public readonly request: BaseHttpRequest;
43
+
44
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
45
+ this.request = new HttpRequest({
46
+ BASE: config?.BASE ?? '',
47
+ VERSION: config?.VERSION ?? '1',
48
+ WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
49
+ CREDENTIALS: config?.CREDENTIALS ?? 'include',
50
+ TOKEN: config?.TOKEN,
51
+ USERNAME: config?.USERNAME,
52
+ PASSWORD: config?.PASSWORD,
53
+ HEADERS: config?.HEADERS,
54
+ ENCODE_PATH: config?.ENCODE_PATH,
55
+ interceptors: {
56
+ request: config?.interceptors?.request ?? new Interceptors(),
57
+ response: config?.interceptors?.response ?? new Interceptors(),
58
+ },
59
+ });
60
+
61
+ this.abpApiDefinition = new AbpApiDefinitionService(this.request);
62
+ this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
63
+ this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
64
+ this.affiliationCode = new AffiliationCodeService(this.request);
65
+ this.customs = new CustomsService(this.request);
66
+ this.customsIntegration = new CustomsIntegrationService(this.request);
67
+ this.individual = new IndividualService(this.request);
68
+ this.merchant = new MerchantService(this.request);
69
+ this.merchantIntegration = new MerchantIntegrationService(this.request);
70
+ this.organization = new OrganizationService(this.request);
71
+ this.refundPoint = new RefundPointService(this.request);
72
+ this.refundPointIntegration = new RefundPointIntegrationService(this.request);
73
+ this.taxFree = new TaxFreeService(this.request);
74
+ this.taxOffice = new TaxOfficeService(this.request);
75
+ this.taxOfficeIntegration = new TaxOfficeIntegrationService(this.request);
76
+ }
77
+ }
@@ -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<T>): CancelablePromise<T>;
10
+ }
@@ -0,0 +1,22 @@
1
+ import type { ApiRequestOptions } from './ApiRequestOptions';
2
+ import { BaseHttpRequest } from './BaseHttpRequest';
3
+ import type { CancelablePromise } from './CancelablePromise';
4
+ import type { OpenAPIConfig } from './OpenAPI';
5
+ import { request as __request } from './request';
6
+
7
+ export class FetchHttpRequest extends BaseHttpRequest {
8
+
9
+ constructor(config: OpenAPIConfig) {
10
+ super(config);
11
+ }
12
+
13
+ /**
14
+ * Request method
15
+ * @param options The request options from the service
16
+ * @returns CancelablePromise<T>
17
+ * @throws ApiError
18
+ */
19
+ public override request<T>(options: ApiRequestOptions<T>): CancelablePromise<T> {
20
+ return __request(this.config, options);
21
+ }
22
+ }
@@ -1,5 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
+ export { CRMServiceClient } from './CRMServiceClient';
2
3
  export { ApiError } from './core/ApiError';
4
+ export { BaseHttpRequest } from './core/BaseHttpRequest';
3
5
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
4
6
  export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI';
5
7
  export * from './sdk.gen';