@ayasofyazilim/saas 0.0.64 → 0.0.66

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,65 +1,65 @@
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 { AffiliationCodeService } from './services.gen';
10
- import { CustomsService } from './services.gen';
11
- import { IndividualService } from './services.gen';
12
- import { MerchantService } from './services.gen';
13
- import { OrganizationService } from './services.gen';
14
- import { RefundPointService } from './services.gen';
15
- import { TaxFreeService } from './services.gen';
16
- import { TaxOfficeService } from './services.gen';
17
-
18
- type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
19
-
20
- export class CRMServiceClient {
21
-
22
- public readonly abpApiDefinition: AbpApiDefinitionService;
23
- public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
24
- public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
25
- public readonly affiliationCode: AffiliationCodeService;
26
- public readonly customs: CustomsService;
27
- public readonly individual: IndividualService;
28
- public readonly merchant: MerchantService;
29
- public readonly organization: OrganizationService;
30
- public readonly refundPoint: RefundPointService;
31
- public readonly taxFree: TaxFreeService;
32
- public readonly taxOffice: TaxOfficeService;
33
-
34
- public readonly request: BaseHttpRequest;
35
-
36
- constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
37
- this.request = new HttpRequest({
38
- BASE: config?.BASE ?? '',
39
- VERSION: config?.VERSION ?? '1',
40
- WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
41
- CREDENTIALS: config?.CREDENTIALS ?? 'include',
42
- TOKEN: config?.TOKEN,
43
- USERNAME: config?.USERNAME,
44
- PASSWORD: config?.PASSWORD,
45
- HEADERS: config?.HEADERS,
46
- ENCODE_PATH: config?.ENCODE_PATH,
47
- interceptors: {
48
- request: config?.interceptors?.request ?? new Interceptors(),
49
- response: config?.interceptors?.response ?? new Interceptors(),
50
- },
51
- });
52
-
53
- this.abpApiDefinition = new AbpApiDefinitionService(this.request);
54
- this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
55
- this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
56
- this.affiliationCode = new AffiliationCodeService(this.request);
57
- this.customs = new CustomsService(this.request);
58
- this.individual = new IndividualService(this.request);
59
- this.merchant = new MerchantService(this.request);
60
- this.organization = new OrganizationService(this.request);
61
- this.refundPoint = new RefundPointService(this.request);
62
- this.taxFree = new TaxFreeService(this.request);
63
- this.taxOffice = new TaxOfficeService(this.request);
64
- }
65
- }
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 { AffiliationCodeService } from './services.gen';
10
+ import { CustomsService } from './services.gen';
11
+ import { IndividualService } from './services.gen';
12
+ import { MerchantService } from './services.gen';
13
+ import { OrganizationService } from './services.gen';
14
+ import { RefundPointService } from './services.gen';
15
+ import { TaxFreeService } from './services.gen';
16
+ import { TaxOfficeService } from './services.gen';
17
+
18
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
19
+
20
+ export class CRMServiceClient {
21
+
22
+ public readonly abpApiDefinition: AbpApiDefinitionService;
23
+ public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
24
+ public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
25
+ public readonly affiliationCode: AffiliationCodeService;
26
+ public readonly customs: CustomsService;
27
+ public readonly individual: IndividualService;
28
+ public readonly merchant: MerchantService;
29
+ public readonly organization: OrganizationService;
30
+ public readonly refundPoint: RefundPointService;
31
+ public readonly taxFree: TaxFreeService;
32
+ public readonly taxOffice: TaxOfficeService;
33
+
34
+ public readonly request: BaseHttpRequest;
35
+
36
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
37
+ this.request = new HttpRequest({
38
+ BASE: config?.BASE ?? '',
39
+ VERSION: config?.VERSION ?? '1',
40
+ WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
41
+ CREDENTIALS: config?.CREDENTIALS ?? 'include',
42
+ TOKEN: config?.TOKEN,
43
+ USERNAME: config?.USERNAME,
44
+ PASSWORD: config?.PASSWORD,
45
+ HEADERS: config?.HEADERS,
46
+ ENCODE_PATH: config?.ENCODE_PATH,
47
+ interceptors: {
48
+ request: config?.interceptors?.request ?? new Interceptors(),
49
+ response: config?.interceptors?.response ?? new Interceptors(),
50
+ },
51
+ });
52
+
53
+ this.abpApiDefinition = new AbpApiDefinitionService(this.request);
54
+ this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
55
+ this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
56
+ this.affiliationCode = new AffiliationCodeService(this.request);
57
+ this.customs = new CustomsService(this.request);
58
+ this.individual = new IndividualService(this.request);
59
+ this.merchant = new MerchantService(this.request);
60
+ this.organization = new OrganizationService(this.request);
61
+ this.refundPoint = new RefundPointService(this.request);
62
+ this.taxFree = new TaxFreeService(this.request);
63
+ this.taxOffice = new TaxOfficeService(this.request);
64
+ }
65
+ }