@edsis/angular 0.0.2 → 21.0.1
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/README.md +77 -178
- package/fesm2022/edsis-angular-auth.mjs +992 -0
- package/fesm2022/edsis-angular-auth.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-access.mjs +1365 -0
- package/fesm2022/edsis-angular-sdk-access.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-approval.mjs +1259 -0
- package/fesm2022/edsis-angular-sdk-approval.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-auth.mjs +254 -0
- package/fesm2022/edsis-angular-sdk-auth.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-employee.mjs +284 -0
- package/fesm2022/edsis-angular-sdk-employee.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-health.mjs +96 -0
- package/fesm2022/edsis-angular-sdk-health.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-shared.mjs +2740 -0
- package/fesm2022/edsis-angular-sdk-shared.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-storage.mjs +288 -0
- package/fesm2022/edsis-angular-sdk-storage.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk-user.mjs +489 -0
- package/fesm2022/edsis-angular-sdk-user.mjs.map +1 -0
- package/fesm2022/edsis-angular-sdk.mjs +75 -0
- package/fesm2022/edsis-angular-sdk.mjs.map +1 -0
- package/fesm2022/edsis-angular.mjs +0 -5707
- package/fesm2022/edsis-angular.mjs.map +1 -1
- package/package.json +51 -46
- package/types/edsis-angular-auth.d.ts +117 -0
- package/types/edsis-angular-sdk-access.d.ts +547 -0
- package/types/edsis-angular-sdk-approval.d.ts +638 -0
- package/types/edsis-angular-sdk-auth.d.ts +128 -0
- package/types/edsis-angular-sdk-employee.d.ts +159 -0
- package/types/edsis-angular-sdk-health.d.ts +35 -0
- package/types/edsis-angular-sdk-shared.d.ts +176 -0
- package/types/edsis-angular-sdk-storage.d.ts +102 -0
- package/types/edsis-angular-sdk-user.d.ts +189 -0
- package/types/edsis-angular-sdk.d.ts +26 -0
- package/types/edsis-angular.d.ts +1 -824
- package/src/lib/styles/USAGE.md +0 -238
- package/src/lib/styles/container.css +0 -38
- package/src/lib/styles/fonts/commit-mono/CommitMonoVariable.woff2 +0 -0
- package/src/lib/styles/fonts/commit-mono/commit-mono.css +0 -2
- package/src/lib/styles/fonts/inter/InterVariable-Italic.woff2 +0 -0
- package/src/lib/styles/fonts/inter/InterVariable.woff2 +0 -0
- package/src/lib/styles/fonts/inter/inter.css +0 -2
- package/src/lib/styles/icons/README.md +0 -313
- package/src/lib/styles/icons/lucide.svg +0 -9768
- package/src/lib/styles/icons/material-symbols.css +0 -48
- package/src/lib/styles/main.css +0 -24
- package/src/lib/styles/tailwind/component/card.css +0 -7
- package/src/lib/styles/tailwind/tailwind.css +0 -144
- package/src/lib/styles/theme.css +0 -406
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { StrictHttpResponse, BaseService, ApiOperationRule } from '@edsis/angular/sdk/shared';
|
|
2
|
+
export * from '@edsis/angular/sdk/shared';
|
|
3
|
+
import { HttpClient, HttpContext } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
|
|
7
|
+
interface AuthLoginRequest {
|
|
8
|
+
email: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface AuthRegisterRequest {
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface AuthResendRequest {
|
|
17
|
+
email: string;
|
|
18
|
+
frontend_url?: string | null;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface AuthTokenResponse {
|
|
22
|
+
status?: string;
|
|
23
|
+
message?: string;
|
|
24
|
+
data?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface AuthUser {
|
|
28
|
+
user_id?: string;
|
|
29
|
+
email?: string;
|
|
30
|
+
role?: string;
|
|
31
|
+
status?: string;
|
|
32
|
+
name?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface AuthUserResponse {
|
|
36
|
+
status?: string;
|
|
37
|
+
message?: string;
|
|
38
|
+
data?: AuthUser;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface AuthVerifyRequest {
|
|
42
|
+
token: string;
|
|
43
|
+
device_type: 'web' | 'mobile' | 'desktop' | 'tablet';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface MagicLinkDispatchResponse {
|
|
47
|
+
status?: string;
|
|
48
|
+
message?: string;
|
|
49
|
+
data?: Record<string, unknown>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type LogoutAuthSession$Params = Record<string, never>;
|
|
53
|
+
declare function logoutAuthSession(http: HttpClient, rootUrl: string, _params?: Record<string, never>, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
54
|
+
declare namespace logoutAuthSession {
|
|
55
|
+
var PATH: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type RefreshAuthToken$Params = Record<string, never>;
|
|
59
|
+
declare function refreshAuthToken(http: HttpClient, rootUrl: string, _params?: Record<string, never>, context?: HttpContext): Observable<StrictHttpResponse<AuthTokenResponse>>;
|
|
60
|
+
declare namespace refreshAuthToken {
|
|
61
|
+
var PATH: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface RegisterAuthPrincipal$Params {
|
|
65
|
+
body: AuthRegisterRequest;
|
|
66
|
+
}
|
|
67
|
+
declare function registerAuthPrincipal(http: HttpClient, rootUrl: string, params: RegisterAuthPrincipal$Params, context?: HttpContext): Observable<StrictHttpResponse<AuthUserResponse>>;
|
|
68
|
+
declare namespace registerAuthPrincipal {
|
|
69
|
+
var PATH: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface RequestMagicLoginLink$Params {
|
|
73
|
+
body: AuthLoginRequest;
|
|
74
|
+
}
|
|
75
|
+
declare function requestMagicLoginLink(http: HttpClient, rootUrl: string, params: RequestMagicLoginLink$Params, context?: HttpContext): Observable<StrictHttpResponse<MagicLinkDispatchResponse>>;
|
|
76
|
+
declare namespace requestMagicLoginLink {
|
|
77
|
+
var PATH: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface ResendMagicLink$Params {
|
|
81
|
+
body: AuthResendRequest;
|
|
82
|
+
}
|
|
83
|
+
declare function resendMagicLink(http: HttpClient, rootUrl: string, params: ResendMagicLink$Params, context?: HttpContext): Observable<StrictHttpResponse<MagicLinkDispatchResponse>>;
|
|
84
|
+
declare namespace resendMagicLink {
|
|
85
|
+
var PATH: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface VerifyMagicLink$Params {
|
|
89
|
+
body: AuthVerifyRequest;
|
|
90
|
+
}
|
|
91
|
+
declare function verifyMagicLink(http: HttpClient, rootUrl: string, params: VerifyMagicLink$Params, context?: HttpContext): Observable<StrictHttpResponse<AuthTokenResponse>>;
|
|
92
|
+
declare namespace verifyMagicLink {
|
|
93
|
+
var PATH: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare class AuthService extends BaseService {
|
|
97
|
+
/** Revoke the current session (POST /v1/auth/logout) */
|
|
98
|
+
logoutAuthSession$Response(params?: LogoutAuthSession$Params, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
99
|
+
/** Revoke the current session (POST /v1/auth/logout) */
|
|
100
|
+
logoutAuthSession(params?: LogoutAuthSession$Params, context?: HttpContext): Observable<unknown>;
|
|
101
|
+
/** Rotate the refresh cookie (POST /v1/auth/refresh) */
|
|
102
|
+
refreshAuthToken$Response(params?: RefreshAuthToken$Params, context?: HttpContext): Observable<StrictHttpResponse<AuthTokenResponse>>;
|
|
103
|
+
/** Rotate the refresh cookie (POST /v1/auth/refresh) */
|
|
104
|
+
refreshAuthToken(params?: RefreshAuthToken$Params, context?: HttpContext): Observable<AuthTokenResponse>;
|
|
105
|
+
/** Register a new principal (POST /v1/auth/register) */
|
|
106
|
+
registerAuthPrincipal$Response(params: RegisterAuthPrincipal$Params, context?: HttpContext): Observable<StrictHttpResponse<AuthUserResponse>>;
|
|
107
|
+
/** Register a new principal (POST /v1/auth/register) */
|
|
108
|
+
registerAuthPrincipal(params: RegisterAuthPrincipal$Params, context?: HttpContext): Observable<AuthUserResponse>;
|
|
109
|
+
/** Send a magic login link (POST /v1/auth/login) */
|
|
110
|
+
requestMagicLoginLink$Response(params: RequestMagicLoginLink$Params, context?: HttpContext): Observable<StrictHttpResponse<MagicLinkDispatchResponse>>;
|
|
111
|
+
/** Send a magic login link (POST /v1/auth/login) */
|
|
112
|
+
requestMagicLoginLink(params: RequestMagicLoginLink$Params, context?: HttpContext): Observable<MagicLinkDispatchResponse>;
|
|
113
|
+
/** Resend a magic link (POST /v1/auth/resend) */
|
|
114
|
+
resendMagicLink$Response(params: ResendMagicLink$Params, context?: HttpContext): Observable<StrictHttpResponse<MagicLinkDispatchResponse>>;
|
|
115
|
+
/** Resend a magic link (POST /v1/auth/resend) */
|
|
116
|
+
resendMagicLink(params: ResendMagicLink$Params, context?: HttpContext): Observable<MagicLinkDispatchResponse>;
|
|
117
|
+
/** Verify a single-use magic link token (POST /v1/auth/verify) */
|
|
118
|
+
verifyMagicLink$Response(params: VerifyMagicLink$Params, context?: HttpContext): Observable<StrictHttpResponse<AuthTokenResponse>>;
|
|
119
|
+
/** Verify a single-use magic link token (POST /v1/auth/verify) */
|
|
120
|
+
verifyMagicLink(params: VerifyMagicLink$Params, context?: HttpContext): Observable<AuthTokenResponse>;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
122
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare const authOperationRules: Record<string, ApiOperationRule>;
|
|
126
|
+
|
|
127
|
+
export { AuthService, authOperationRules, logoutAuthSession, refreshAuthToken, registerAuthPrincipal, requestMagicLoginLink, resendMagicLink, verifyMagicLink };
|
|
128
|
+
export type { AuthLoginRequest, AuthRegisterRequest, AuthResendRequest, AuthTokenResponse, AuthUser, AuthUserResponse, AuthVerifyRequest, LogoutAuthSession$Params, MagicLinkDispatchResponse, RefreshAuthToken$Params, RegisterAuthPrincipal$Params, RequestMagicLoginLink$Params, ResendMagicLink$Params, VerifyMagicLink$Params };
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { PaginationMeta, StrictHttpResponse, BaseService, ApiOperationRule } from '@edsis/angular/sdk/shared';
|
|
2
|
+
export * from '@edsis/angular/sdk/shared';
|
|
3
|
+
import { HttpClient, HttpContext } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
|
|
7
|
+
interface CreateEmployeeRequest {
|
|
8
|
+
employee_number: string;
|
|
9
|
+
full_name: string;
|
|
10
|
+
nationality?: string;
|
|
11
|
+
phone_number?: string;
|
|
12
|
+
marital_status?: 'TK' | 'TK/1' | 'TK/2' | 'TK/3' | 'K' | 'K/1' | 'K/2' | 'K/3';
|
|
13
|
+
dependents?: number;
|
|
14
|
+
place_of_birth?: string;
|
|
15
|
+
date_of_birth?: string;
|
|
16
|
+
gender?: 'male' | 'female';
|
|
17
|
+
religion?: string;
|
|
18
|
+
email: string;
|
|
19
|
+
hire_date: string;
|
|
20
|
+
termination_date?: string;
|
|
21
|
+
payroll_date?: string;
|
|
22
|
+
employment_status?: 'contract' | 'permanent' | 'probation' | 'intern' | 'terminated';
|
|
23
|
+
photo_id?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface Employee {
|
|
27
|
+
id: string;
|
|
28
|
+
employee_number: string;
|
|
29
|
+
full_name: string;
|
|
30
|
+
nationality: string;
|
|
31
|
+
phone_number?: string | null;
|
|
32
|
+
marital_status?: string | null;
|
|
33
|
+
dependents?: number | null;
|
|
34
|
+
place_of_birth?: string | null;
|
|
35
|
+
date_of_birth?: string | null;
|
|
36
|
+
gender?: string | null;
|
|
37
|
+
religion?: string | null;
|
|
38
|
+
email: string;
|
|
39
|
+
hire_date: string;
|
|
40
|
+
termination_date?: string | null;
|
|
41
|
+
payroll_date?: string | null;
|
|
42
|
+
employment_status: 'contract' | 'permanent' | 'probation' | 'intern' | 'terminated';
|
|
43
|
+
photo_id?: string | null;
|
|
44
|
+
created_at: string;
|
|
45
|
+
updated_at: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface EmployeeListResponse {
|
|
49
|
+
status: string;
|
|
50
|
+
message: string;
|
|
51
|
+
data: Employee[];
|
|
52
|
+
meta: PaginationMeta;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface EmployeeMutationAckResponse {
|
|
56
|
+
status: string;
|
|
57
|
+
message: string;
|
|
58
|
+
data: Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface EmployeeResponse {
|
|
62
|
+
status: string;
|
|
63
|
+
message: string;
|
|
64
|
+
data: Employee;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface UpdateEmployeeRequest {
|
|
68
|
+
employee_number?: string;
|
|
69
|
+
full_name?: string;
|
|
70
|
+
nationality?: string;
|
|
71
|
+
phone_number?: string;
|
|
72
|
+
marital_status?: 'TK' | 'TK/1' | 'TK/2' | 'TK/3' | 'K' | 'K/1' | 'K/2' | 'K/3';
|
|
73
|
+
dependents?: number;
|
|
74
|
+
place_of_birth?: string;
|
|
75
|
+
date_of_birth?: string;
|
|
76
|
+
gender?: 'male' | 'female';
|
|
77
|
+
religion?: string;
|
|
78
|
+
email?: string;
|
|
79
|
+
hire_date?: string;
|
|
80
|
+
termination_date?: string;
|
|
81
|
+
payroll_date?: string;
|
|
82
|
+
employment_status?: 'contract' | 'permanent' | 'probation' | 'intern' | 'terminated';
|
|
83
|
+
photo_id?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface CreateEmployee$Params {
|
|
87
|
+
body: CreateEmployeeRequest;
|
|
88
|
+
}
|
|
89
|
+
declare function createEmployee(http: HttpClient, rootUrl: string, params: CreateEmployee$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeResponse>>;
|
|
90
|
+
declare namespace createEmployee {
|
|
91
|
+
var PATH: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface DeleteEmployeeByID$Params {
|
|
95
|
+
id: string;
|
|
96
|
+
}
|
|
97
|
+
declare function deleteEmployeeByID(http: HttpClient, rootUrl: string, params: DeleteEmployeeByID$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeMutationAckResponse>>;
|
|
98
|
+
declare namespace deleteEmployeeByID {
|
|
99
|
+
var PATH: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface GetEmployeeByID$Params {
|
|
103
|
+
id: string;
|
|
104
|
+
}
|
|
105
|
+
declare function getEmployeeByID(http: HttpClient, rootUrl: string, params: GetEmployeeByID$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeResponse>>;
|
|
106
|
+
declare namespace getEmployeeByID {
|
|
107
|
+
var PATH: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface ListEmployees$Params {
|
|
111
|
+
page?: number;
|
|
112
|
+
limit?: number;
|
|
113
|
+
sort?: 'created_at' | 'full_name' | 'employee_number' | 'email' | 'hire_date' | 'employment_status';
|
|
114
|
+
order?: 'asc' | 'desc';
|
|
115
|
+
search?: string;
|
|
116
|
+
}
|
|
117
|
+
declare function listEmployees(http: HttpClient, rootUrl: string, params?: ListEmployees$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeListResponse>>;
|
|
118
|
+
declare namespace listEmployees {
|
|
119
|
+
var PATH: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface PatchEmployeeByID$Params {
|
|
123
|
+
id: string;
|
|
124
|
+
body: UpdateEmployeeRequest;
|
|
125
|
+
}
|
|
126
|
+
declare function patchEmployeeByID(http: HttpClient, rootUrl: string, params: PatchEmployeeByID$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeResponse>>;
|
|
127
|
+
declare namespace patchEmployeeByID {
|
|
128
|
+
var PATH: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class EmployeeService extends BaseService {
|
|
132
|
+
/** Create employee (POST /v1/employee) */
|
|
133
|
+
createEmployee$Response(params: CreateEmployee$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeResponse>>;
|
|
134
|
+
/** Create employee (POST /v1/employee) */
|
|
135
|
+
createEmployee(params: CreateEmployee$Params, context?: HttpContext): Observable<EmployeeResponse>;
|
|
136
|
+
/** Delete employee (DELETE /v1/employee/{id}) */
|
|
137
|
+
deleteEmployeeByID$Response(params: DeleteEmployeeByID$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeMutationAckResponse>>;
|
|
138
|
+
/** Delete employee (DELETE /v1/employee/{id}) */
|
|
139
|
+
deleteEmployeeByID(params: DeleteEmployeeByID$Params, context?: HttpContext): Observable<EmployeeMutationAckResponse>;
|
|
140
|
+
/** Get employee detail (GET /v1/employee/{id}) */
|
|
141
|
+
getEmployeeByID$Response(params: GetEmployeeByID$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeResponse>>;
|
|
142
|
+
/** Get employee detail (GET /v1/employee/{id}) */
|
|
143
|
+
getEmployeeByID(params: GetEmployeeByID$Params, context?: HttpContext): Observable<EmployeeResponse>;
|
|
144
|
+
/** List employees (GET /v1/employee) */
|
|
145
|
+
listEmployees$Response(params?: ListEmployees$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeListResponse>>;
|
|
146
|
+
/** List employees (GET /v1/employee) */
|
|
147
|
+
listEmployees(params?: ListEmployees$Params, context?: HttpContext): Observable<EmployeeListResponse>;
|
|
148
|
+
/** Update employee (PATCH /v1/employee/{id}) */
|
|
149
|
+
patchEmployeeByID$Response(params: PatchEmployeeByID$Params, context?: HttpContext): Observable<StrictHttpResponse<EmployeeResponse>>;
|
|
150
|
+
/** Update employee (PATCH /v1/employee/{id}) */
|
|
151
|
+
patchEmployeeByID(params: PatchEmployeeByID$Params, context?: HttpContext): Observable<EmployeeResponse>;
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmployeeService, never>;
|
|
153
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EmployeeService>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare const employeeOperationRules: Record<string, ApiOperationRule>;
|
|
157
|
+
|
|
158
|
+
export { EmployeeService, createEmployee, deleteEmployeeByID, employeeOperationRules, getEmployeeByID, listEmployees, patchEmployeeByID };
|
|
159
|
+
export type { CreateEmployee$Params, CreateEmployeeRequest, DeleteEmployeeByID$Params, Employee, EmployeeListResponse, EmployeeMutationAckResponse, EmployeeResponse, GetEmployeeByID$Params, ListEmployees$Params, PatchEmployeeByID$Params, UpdateEmployeeRequest };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { StrictHttpResponse, BaseService, ApiOperationRule } from '@edsis/angular/sdk/shared';
|
|
2
|
+
export * from '@edsis/angular/sdk/shared';
|
|
3
|
+
import { HttpClient, HttpContext } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
|
|
7
|
+
type GetGatewayAPIRoot$Params = Record<string, never>;
|
|
8
|
+
declare function getGatewayAPIRoot(http: HttpClient, rootUrl: string, _params?: Record<string, never>, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
9
|
+
declare namespace getGatewayAPIRoot {
|
|
10
|
+
var PATH: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type GetGatewayHealth$Params = Record<string, never>;
|
|
14
|
+
declare function getGatewayHealth(http: HttpClient, rootUrl: string, _params?: Record<string, never>, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
15
|
+
declare namespace getGatewayHealth {
|
|
16
|
+
var PATH: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class HealthService extends BaseService {
|
|
20
|
+
/** Gateway API root probe (GET /v1) */
|
|
21
|
+
getGatewayAPIRoot$Response(params?: GetGatewayAPIRoot$Params, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
22
|
+
/** Gateway API root probe (GET /v1) */
|
|
23
|
+
getGatewayAPIRoot(params?: GetGatewayAPIRoot$Params, context?: HttpContext): Observable<unknown>;
|
|
24
|
+
/** Gateway health check (GET /health) */
|
|
25
|
+
getGatewayHealth$Response(params?: GetGatewayHealth$Params, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
26
|
+
/** Gateway health check (GET /health) */
|
|
27
|
+
getGatewayHealth(params?: GetGatewayHealth$Params, context?: HttpContext): Observable<unknown>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HealthService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HealthService>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare const healthOperationRules: Record<string, ApiOperationRule>;
|
|
33
|
+
|
|
34
|
+
export { HealthService, getGatewayAPIRoot, getGatewayHealth, healthOperationRules };
|
|
35
|
+
export type { GetGatewayAPIRoot$Params, GetGatewayHealth$Params };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { HttpClient, HttpContext, HttpRequest, HttpResponse } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { NavigationItem } from '@ojiepermana/angular/navigation';
|
|
6
|
+
|
|
7
|
+
declare class ApiConfiguration {
|
|
8
|
+
rootUrl: string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiConfiguration, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiConfiguration>;
|
|
11
|
+
}
|
|
12
|
+
declare function provideApiConfiguration(rootUrl: string): EnvironmentProviders;
|
|
13
|
+
|
|
14
|
+
declare class BaseService {
|
|
15
|
+
protected readonly config: ApiConfiguration;
|
|
16
|
+
protected readonly http: HttpClient;
|
|
17
|
+
private _rootUrl?;
|
|
18
|
+
get rootUrl(): string;
|
|
19
|
+
set rootUrl(url: string);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseService>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface BuildOptions {
|
|
25
|
+
accept?: string;
|
|
26
|
+
responseType?: 'json' | 'text' | 'blob' | 'arraybuffer';
|
|
27
|
+
reportProgress?: boolean;
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
}
|
|
30
|
+
declare class RequestBuilder {
|
|
31
|
+
readonly rootUrl: string;
|
|
32
|
+
readonly operationPath: string;
|
|
33
|
+
readonly method: string;
|
|
34
|
+
private readonly _pathParams;
|
|
35
|
+
private readonly _queryParams;
|
|
36
|
+
private readonly _headerParams;
|
|
37
|
+
private _body;
|
|
38
|
+
private _bodyContentType;
|
|
39
|
+
constructor(rootUrl: string, operationPath: string, method: string);
|
|
40
|
+
path(name: string, value: unknown): void;
|
|
41
|
+
query(name: string, value: unknown): void;
|
|
42
|
+
header(name: string, value: unknown): void;
|
|
43
|
+
body(value: unknown, contentType?: string): void;
|
|
44
|
+
build<T = unknown>(options?: BuildOptions): HttpRequest<T>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type StrictHttpResponse<T> = HttpResponse<T> & {
|
|
48
|
+
readonly body: T;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
type ApiFn<P, R> = (http: HttpClient, rootUrl: string, params: P, context?: HttpContext) => Observable<StrictHttpResponse<R>>;
|
|
52
|
+
/**
|
|
53
|
+
* Helper to invoke any tree-shakeable operation function directly.
|
|
54
|
+
*/
|
|
55
|
+
declare class Api {
|
|
56
|
+
private readonly config;
|
|
57
|
+
private readonly http;
|
|
58
|
+
private _rootUrl?;
|
|
59
|
+
get rootUrl(): string;
|
|
60
|
+
set rootUrl(url: string);
|
|
61
|
+
/** Invoke an operation function and stream the response body. */
|
|
62
|
+
invoke<P, R>(fn: ApiFn<P, R>, params: P, context?: HttpContext): Observable<R>;
|
|
63
|
+
/** Invoke an operation function and stream the full HTTP response. */
|
|
64
|
+
invoke$Response<P, R>(fn: ApiFn<P, R>, params: P, context?: HttpContext): Observable<StrictHttpResponse<R>>;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Api, never>;
|
|
66
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Api>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface ValidationErrorDetail {
|
|
70
|
+
field?: string;
|
|
71
|
+
message?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface ErrorResponse {
|
|
75
|
+
status?: string;
|
|
76
|
+
message?: string;
|
|
77
|
+
error_code?: string;
|
|
78
|
+
details?: ValidationErrorDetail[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface PaginationMeta {
|
|
82
|
+
current_page?: number;
|
|
83
|
+
per_page?: number;
|
|
84
|
+
total?: number;
|
|
85
|
+
last_page?: number;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface ApiFieldRule {
|
|
89
|
+
required?: boolean;
|
|
90
|
+
type?: string;
|
|
91
|
+
format?: string;
|
|
92
|
+
description?: string;
|
|
93
|
+
nullable?: boolean;
|
|
94
|
+
minLength?: number;
|
|
95
|
+
maxLength?: number;
|
|
96
|
+
minimum?: number;
|
|
97
|
+
maximum?: number;
|
|
98
|
+
pattern?: string;
|
|
99
|
+
enumValues?: readonly (string | number)[];
|
|
100
|
+
ref?: string;
|
|
101
|
+
itemsRef?: string;
|
|
102
|
+
itemsType?: string;
|
|
103
|
+
}
|
|
104
|
+
interface ApiSchemaRule {
|
|
105
|
+
required: readonly string[];
|
|
106
|
+
properties: Record<string, ApiFieldRule>;
|
|
107
|
+
}
|
|
108
|
+
interface ApiOperationRule {
|
|
109
|
+
method: string;
|
|
110
|
+
path: string;
|
|
111
|
+
tags: readonly string[];
|
|
112
|
+
summary?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
requiredPermissions: readonly string[];
|
|
115
|
+
authorizationNotes: readonly string[];
|
|
116
|
+
securitySchemes: readonly string[];
|
|
117
|
+
pathParams: Record<string, ApiFieldRule>;
|
|
118
|
+
queryParams: Record<string, ApiFieldRule>;
|
|
119
|
+
bodySchema?: string;
|
|
120
|
+
responseSchemas: Record<string, string | undefined>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare const accessValidationSchemas: Record<string, ApiSchemaRule>;
|
|
124
|
+
|
|
125
|
+
declare const actorValidationSchemas: Record<string, ApiSchemaRule>;
|
|
126
|
+
|
|
127
|
+
declare const approvalValidationSchemas: Record<string, ApiSchemaRule>;
|
|
128
|
+
|
|
129
|
+
declare const approveValidationSchemas: Record<string, ApiSchemaRule>;
|
|
130
|
+
|
|
131
|
+
declare const authValidationSchemas: Record<string, ApiSchemaRule>;
|
|
132
|
+
|
|
133
|
+
declare const createValidationSchemas: Record<string, ApiSchemaRule>;
|
|
134
|
+
|
|
135
|
+
declare const definitionValidationSchemas: Record<string, ApiSchemaRule>;
|
|
136
|
+
|
|
137
|
+
declare const employeeValidationSchemas: Record<string, ApiSchemaRule>;
|
|
138
|
+
|
|
139
|
+
declare const errorValidationSchemas: Record<string, ApiSchemaRule>;
|
|
140
|
+
|
|
141
|
+
declare const instanceValidationSchemas: Record<string, ApiSchemaRule>;
|
|
142
|
+
|
|
143
|
+
declare const magicValidationSchemas: Record<string, ApiSchemaRule>;
|
|
144
|
+
|
|
145
|
+
declare const paginationValidationSchemas: Record<string, ApiSchemaRule>;
|
|
146
|
+
|
|
147
|
+
declare const pendingValidationSchemas: Record<string, ApiSchemaRule>;
|
|
148
|
+
|
|
149
|
+
declare const permissionValidationSchemas: Record<string, ApiSchemaRule>;
|
|
150
|
+
|
|
151
|
+
declare const rejectValidationSchemas: Record<string, ApiSchemaRule>;
|
|
152
|
+
|
|
153
|
+
declare const roleValidationSchemas: Record<string, ApiSchemaRule>;
|
|
154
|
+
|
|
155
|
+
declare const stageValidationSchemas: Record<string, ApiSchemaRule>;
|
|
156
|
+
|
|
157
|
+
declare const storageValidationSchemas: Record<string, ApiSchemaRule>;
|
|
158
|
+
|
|
159
|
+
declare const submitValidationSchemas: Record<string, ApiSchemaRule>;
|
|
160
|
+
|
|
161
|
+
declare const transitionValidationSchemas: Record<string, ApiSchemaRule>;
|
|
162
|
+
|
|
163
|
+
declare const updateValidationSchemas: Record<string, ApiSchemaRule>;
|
|
164
|
+
|
|
165
|
+
declare const userValidationSchemas: Record<string, ApiSchemaRule>;
|
|
166
|
+
|
|
167
|
+
declare const validationValidationSchemas: Record<string, ApiSchemaRule>;
|
|
168
|
+
|
|
169
|
+
declare const workflowValidationSchemas: Record<string, ApiSchemaRule>;
|
|
170
|
+
|
|
171
|
+
declare const apiValidationSchemas: Record<string, ApiSchemaRule>;
|
|
172
|
+
|
|
173
|
+
declare const ApiNavigation: NavigationItem[];
|
|
174
|
+
|
|
175
|
+
export { Api, ApiConfiguration, ApiNavigation, BaseService, RequestBuilder, accessValidationSchemas, actorValidationSchemas, apiValidationSchemas, approvalValidationSchemas, approveValidationSchemas, authValidationSchemas, createValidationSchemas, definitionValidationSchemas, employeeValidationSchemas, errorValidationSchemas, instanceValidationSchemas, magicValidationSchemas, paginationValidationSchemas, pendingValidationSchemas, permissionValidationSchemas, provideApiConfiguration, rejectValidationSchemas, roleValidationSchemas, stageValidationSchemas, storageValidationSchemas, submitValidationSchemas, transitionValidationSchemas, updateValidationSchemas, userValidationSchemas, validationValidationSchemas, workflowValidationSchemas };
|
|
176
|
+
export type { ApiFieldRule, ApiOperationRule, ApiSchemaRule, ErrorResponse, PaginationMeta, StrictHttpResponse, ValidationErrorDetail };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { StrictHttpResponse, BaseService, ApiOperationRule } from '@edsis/angular/sdk/shared';
|
|
2
|
+
export * from '@edsis/angular/sdk/shared';
|
|
3
|
+
import { HttpClient, HttpContext } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
|
|
7
|
+
interface StorageObjectResponse {
|
|
8
|
+
status?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
data?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface StorageUploadResponse {
|
|
14
|
+
status?: string;
|
|
15
|
+
message?: string;
|
|
16
|
+
data?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface DownloadObjectGCS$Params {
|
|
20
|
+
key: string;
|
|
21
|
+
}
|
|
22
|
+
declare function downloadObjectGCS(http: HttpClient, rootUrl: string, params: DownloadObjectGCS$Params, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
23
|
+
declare namespace downloadObjectGCS {
|
|
24
|
+
var PATH: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface GetObjectGCS$Params {
|
|
28
|
+
key: string;
|
|
29
|
+
}
|
|
30
|
+
declare function getObjectGCS(http: HttpClient, rootUrl: string, params: GetObjectGCS$Params, context?: HttpContext): Observable<StrictHttpResponse<StorageObjectResponse>>;
|
|
31
|
+
declare namespace getObjectGCS {
|
|
32
|
+
var PATH: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type UploadGCS$Params = Record<string, never>;
|
|
36
|
+
declare function uploadGCS(http: HttpClient, rootUrl: string, _params?: Record<string, never>, context?: HttpContext): Observable<StrictHttpResponse<StorageUploadResponse>>;
|
|
37
|
+
declare namespace uploadGCS {
|
|
38
|
+
var PATH: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class GCSService extends BaseService {
|
|
42
|
+
/** Download GCS object via signed URL redirect (GET /v1/storage/gcs/object/download) */
|
|
43
|
+
downloadObjectGCS$Response(params: DownloadObjectGCS$Params, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
44
|
+
/** Download GCS object via signed URL redirect (GET /v1/storage/gcs/object/download) */
|
|
45
|
+
downloadObjectGCS(params: DownloadObjectGCS$Params, context?: HttpContext): Observable<unknown>;
|
|
46
|
+
/** Get GCS object metadata and signed URL (GET /v1/storage/gcs/object) */
|
|
47
|
+
getObjectGCS$Response(params: GetObjectGCS$Params, context?: HttpContext): Observable<StrictHttpResponse<StorageObjectResponse>>;
|
|
48
|
+
/** Get GCS object metadata and signed URL (GET /v1/storage/gcs/object) */
|
|
49
|
+
getObjectGCS(params: GetObjectGCS$Params, context?: HttpContext): Observable<StorageObjectResponse>;
|
|
50
|
+
/** Upload file to GCS (POST /v1/storage/gcs) */
|
|
51
|
+
uploadGCS$Response(params?: UploadGCS$Params, context?: HttpContext): Observable<StrictHttpResponse<StorageUploadResponse>>;
|
|
52
|
+
/** Upload file to GCS (POST /v1/storage/gcs) */
|
|
53
|
+
uploadGCS(params?: UploadGCS$Params, context?: HttpContext): Observable<StorageUploadResponse>;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GCSService, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GCSService>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface DownloadObjectS3$Params {
|
|
59
|
+
key: string;
|
|
60
|
+
}
|
|
61
|
+
declare function downloadObjectS3(http: HttpClient, rootUrl: string, params: DownloadObjectS3$Params, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
62
|
+
declare namespace downloadObjectS3 {
|
|
63
|
+
var PATH: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface GetObjectS3$Params {
|
|
67
|
+
key: string;
|
|
68
|
+
}
|
|
69
|
+
declare function getObjectS3(http: HttpClient, rootUrl: string, params: GetObjectS3$Params, context?: HttpContext): Observable<StrictHttpResponse<StorageObjectResponse>>;
|
|
70
|
+
declare namespace getObjectS3 {
|
|
71
|
+
var PATH: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type UploadS3$Params = Record<string, never>;
|
|
75
|
+
declare function uploadS3(http: HttpClient, rootUrl: string, _params?: Record<string, never>, context?: HttpContext): Observable<StrictHttpResponse<StorageUploadResponse>>;
|
|
76
|
+
declare namespace uploadS3 {
|
|
77
|
+
var PATH: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class S3Service extends BaseService {
|
|
81
|
+
/** Download S3 object via signed URL redirect (GET /v1/storage/sss/object/download) */
|
|
82
|
+
downloadObjectS3$Response(params: DownloadObjectS3$Params, context?: HttpContext): Observable<StrictHttpResponse<unknown>>;
|
|
83
|
+
/** Download S3 object via signed URL redirect (GET /v1/storage/sss/object/download) */
|
|
84
|
+
downloadObjectS3(params: DownloadObjectS3$Params, context?: HttpContext): Observable<unknown>;
|
|
85
|
+
/** Get S3 object metadata and signed URL (GET /v1/storage/sss/object) */
|
|
86
|
+
getObjectS3$Response(params: GetObjectS3$Params, context?: HttpContext): Observable<StrictHttpResponse<StorageObjectResponse>>;
|
|
87
|
+
/** Get S3 object metadata and signed URL (GET /v1/storage/sss/object) */
|
|
88
|
+
getObjectS3(params: GetObjectS3$Params, context?: HttpContext): Observable<StorageObjectResponse>;
|
|
89
|
+
/** Upload file to S3 (POST /v1/storage/sss) */
|
|
90
|
+
uploadS3$Response(params?: UploadS3$Params, context?: HttpContext): Observable<StrictHttpResponse<StorageUploadResponse>>;
|
|
91
|
+
/** Upload file to S3 (POST /v1/storage/sss) */
|
|
92
|
+
uploadS3(params?: UploadS3$Params, context?: HttpContext): Observable<StorageUploadResponse>;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<S3Service, never>;
|
|
94
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<S3Service>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare const gCSOperationRules: Record<string, ApiOperationRule>;
|
|
98
|
+
|
|
99
|
+
declare const s3OperationRules: Record<string, ApiOperationRule>;
|
|
100
|
+
|
|
101
|
+
export { GCSService, S3Service, downloadObjectGCS, downloadObjectS3, gCSOperationRules, getObjectGCS, getObjectS3, s3OperationRules, uploadGCS, uploadS3 };
|
|
102
|
+
export type { DownloadObjectGCS$Params, DownloadObjectS3$Params, GetObjectGCS$Params, GetObjectS3$Params, StorageObjectResponse, StorageUploadResponse, UploadGCS$Params, UploadS3$Params };
|