@ayasofyazilim/saas 0.0.16 → 0.0.18
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/ProjectService/ProjectServiceClient.ts +50 -44
- package/ProjectService/schemas.gen.ts +4546 -3706
- package/ProjectService/services.gen.ts +583 -146
- package/ProjectService/types.gen.ts +5112 -2310
- package/SettingService/SettingServiceClient.ts +53 -53
- package/SettingService/services.gen.ts +316 -316
- package/generator.mjs +89 -85
- package/package.json +1 -1
|
@@ -1,44 +1,50 @@
|
|
|
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 {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
public readonly
|
|
18
|
-
public readonly
|
|
19
|
-
|
|
20
|
-
public readonly
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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 { ProjectService } from './services.gen';
|
|
10
|
+
import { ProjectSectionService } from './services.gen';
|
|
11
|
+
import { ProjectSectionRelationService } from './services.gen';
|
|
12
|
+
|
|
13
|
+
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
14
|
+
|
|
15
|
+
export class ProjectServiceClient {
|
|
16
|
+
|
|
17
|
+
public readonly abpApiDefinition: AbpApiDefinitionService;
|
|
18
|
+
public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
|
|
19
|
+
public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
|
|
20
|
+
public readonly project: ProjectService;
|
|
21
|
+
public readonly projectSection: ProjectSectionService;
|
|
22
|
+
public readonly projectSectionRelation: ProjectSectionRelationService;
|
|
23
|
+
|
|
24
|
+
public readonly request: BaseHttpRequest;
|
|
25
|
+
|
|
26
|
+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
|
|
27
|
+
this.request = new HttpRequest({
|
|
28
|
+
BASE: config?.BASE ?? '',
|
|
29
|
+
VERSION: config?.VERSION ?? '1',
|
|
30
|
+
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
31
|
+
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
32
|
+
TOKEN: config?.TOKEN,
|
|
33
|
+
USERNAME: config?.USERNAME,
|
|
34
|
+
PASSWORD: config?.PASSWORD,
|
|
35
|
+
HEADERS: config?.HEADERS,
|
|
36
|
+
ENCODE_PATH: config?.ENCODE_PATH,
|
|
37
|
+
interceptors: {
|
|
38
|
+
request: config?.interceptors?.request ?? new Interceptors(),
|
|
39
|
+
response: config?.interceptors?.response ?? new Interceptors(),
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
this.abpApiDefinition = new AbpApiDefinitionService(this.request);
|
|
44
|
+
this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
|
|
45
|
+
this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
|
|
46
|
+
this.project = new ProjectService(this.request);
|
|
47
|
+
this.projectSection = new ProjectSectionService(this.request);
|
|
48
|
+
this.projectSectionRelation = new ProjectSectionRelationService(this.request);
|
|
49
|
+
}
|
|
50
|
+
}
|