@cbm-common/cbm-types 0.0.43 → 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/lib/components/timeline/timeline.d.ts +27 -27
- package/lib/components/timeline/types.d.ts +17 -17
- package/lib/domain/models/credit-request.model.d.ts +271 -0
- package/lib/domain/models/print-settings.domain.model.d.ts +110 -110
- package/lib/domain/models/service-group.domain.model.d.ts +109 -109
- package/lib/domain/models/signature-settings.domain.model.d.ts +68 -68
- package/lib/domain/repositories/credit-request.domain.repository.d.ts +15 -0
- package/lib/domain/repositories/print-settings.domain.repository.d.ts +11 -11
- package/lib/domain/repositories/service-group.domain.repository.d.ts +15 -15
- package/lib/domain/repositories/signature-settings.domain.repository.d.ts +14 -14
- package/lib/infrastructure/repositories/credit-request.infrastructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/print-settings.infrastructure.repository.d.ts +8 -8
- package/lib/infrastructure/repositories/service-group.infrastructure.repository.d.ts +11 -11
- package/lib/infrastructure/repositories/signature-settings.infrastructure.repository.d.ts +11 -11
- package/lib/infrastructure/services/credit-request.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/print-settings.infrastructure.service.d.ts +13 -13
- package/lib/infrastructure/services/service-group.infrastructure.service.d.ts +15 -15
- package/lib/infrastructure/services/signature-settings.infrastructure.service.d.ts +16 -16
- package/lib/remotes/components.remote.d.ts +20 -20
- package/lib/remotes/repositories/credit-request.repository.d.ts +3 -0
- package/lib/remotes/repositories/print-settings.repository.d.ts +3 -3
- package/lib/remotes/repositories/signature-settings.repository.d.ts +3 -3
- package/lib/remotes/repositories.remote.d.ts +64 -63
- package/package.json +1 -1
- package/public-api.d.ts +5 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { CbmTimelineModel, TStatus } from './types';
|
|
2
|
-
export declare class CbmTimelineComponent {
|
|
3
|
-
data: import("@angular/core").InputSignal<CbmTimelineModel.ITimelineData[]>;
|
|
4
|
-
redirect: import("@angular/core").InputSignal<Map<string, string> | undefined>;
|
|
5
|
-
loading: import("@angular/core").InputSignal<TStatus>;
|
|
6
|
-
focusId: import("@angular/core").InputSignal<string | null>;
|
|
7
|
-
translationOfType: {
|
|
8
|
-
suspend: string;
|
|
9
|
-
credit: string;
|
|
10
|
-
increase: string;
|
|
11
|
-
decrease: string;
|
|
12
|
-
};
|
|
13
|
-
tagsDate: {
|
|
14
|
-
refused: string;
|
|
15
|
-
approved: string;
|
|
16
|
-
pending: string;
|
|
17
|
-
suspend: string;
|
|
18
|
-
};
|
|
19
|
-
tagsUser: {
|
|
20
|
-
refused: string;
|
|
21
|
-
approved: string;
|
|
22
|
-
pending: string;
|
|
23
|
-
suspend: string;
|
|
24
|
-
};
|
|
25
|
-
constructor();
|
|
26
|
-
openUrl(id: string): void;
|
|
27
|
-
}
|
|
1
|
+
import { CbmTimelineModel, TStatus } from './types';
|
|
2
|
+
export declare class CbmTimelineComponent {
|
|
3
|
+
data: import("@angular/core").InputSignal<CbmTimelineModel.ITimelineData[]>;
|
|
4
|
+
redirect: import("@angular/core").InputSignal<Map<string, string> | undefined>;
|
|
5
|
+
loading: import("@angular/core").InputSignal<TStatus>;
|
|
6
|
+
focusId: import("@angular/core").InputSignal<string | null>;
|
|
7
|
+
translationOfType: {
|
|
8
|
+
suspend: string;
|
|
9
|
+
credit: string;
|
|
10
|
+
increase: string;
|
|
11
|
+
decrease: string;
|
|
12
|
+
};
|
|
13
|
+
tagsDate: {
|
|
14
|
+
refused: string;
|
|
15
|
+
approved: string;
|
|
16
|
+
pending: string;
|
|
17
|
+
suspend: string;
|
|
18
|
+
};
|
|
19
|
+
tagsUser: {
|
|
20
|
+
refused: string;
|
|
21
|
+
approved: string;
|
|
22
|
+
pending: string;
|
|
23
|
+
suspend: string;
|
|
24
|
+
};
|
|
25
|
+
constructor();
|
|
26
|
+
openUrl(id: string): void;
|
|
27
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
2
|
-
export declare namespace CbmTimelineModel {
|
|
3
|
-
interface ITimelineData {
|
|
4
|
-
_id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
document_number: string;
|
|
7
|
-
type: 'suspend' | 'credit' | 'increase' | 'decrease';
|
|
8
|
-
document_state: 'refused' | 'approved' | 'pending' | 'suspend';
|
|
9
|
-
user_name: string;
|
|
10
|
-
date: number;
|
|
11
|
-
amount_to_date: number;
|
|
12
|
-
requested_amount: number;
|
|
13
|
-
current_deadline: string;
|
|
14
|
-
approved_deadline: string;
|
|
15
|
-
commentary?: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
2
|
+
export declare namespace CbmTimelineModel {
|
|
3
|
+
interface ITimelineData {
|
|
4
|
+
_id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
document_number: string;
|
|
7
|
+
type: 'suspend' | 'credit' | 'increase' | 'decrease';
|
|
8
|
+
document_state: 'refused' | 'approved' | 'pending' | 'suspend';
|
|
9
|
+
user_name: string;
|
|
10
|
+
date: number;
|
|
11
|
+
amount_to_date: number;
|
|
12
|
+
requested_amount: number;
|
|
13
|
+
current_deadline: string;
|
|
14
|
+
approved_deadline: string;
|
|
15
|
+
commentary?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
export declare namespace CbmCreditRequestModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
date_end?: number;
|
|
6
|
+
date_begin?: number;
|
|
7
|
+
client_id?: string;
|
|
8
|
+
new_credit_number?: string;
|
|
9
|
+
document_state?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}
|
|
12
|
+
interface ListResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
pageNum: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
pages: number;
|
|
17
|
+
total: number;
|
|
18
|
+
items: ListResponse.Item[];
|
|
19
|
+
}
|
|
20
|
+
namespace ListResponse {
|
|
21
|
+
interface Item {
|
|
22
|
+
_id: string;
|
|
23
|
+
company_id?: string;
|
|
24
|
+
company_branch_id?: string;
|
|
25
|
+
company_NIF?: string;
|
|
26
|
+
company_address?: string;
|
|
27
|
+
company_trade_name?: string;
|
|
28
|
+
company_business_name?: string;
|
|
29
|
+
company_branch_identification_number?: string;
|
|
30
|
+
company_branch_trade_name?: string;
|
|
31
|
+
company_branch_logo?: string;
|
|
32
|
+
company_branch_address?: string;
|
|
33
|
+
company_branch_email?: string;
|
|
34
|
+
company_branch_cellphone?: string;
|
|
35
|
+
company_branch_phone?: string;
|
|
36
|
+
user_id?: string;
|
|
37
|
+
client_id?: string;
|
|
38
|
+
client_branch_id?: string;
|
|
39
|
+
client_business_name?: string;
|
|
40
|
+
client_document_number?: string;
|
|
41
|
+
client_credit_limit?: number;
|
|
42
|
+
client_trade_name?: string;
|
|
43
|
+
client_email?: string;
|
|
44
|
+
client_address?: string;
|
|
45
|
+
client_phone_code?: string;
|
|
46
|
+
client_cellphone?: string;
|
|
47
|
+
client_province_id?: string;
|
|
48
|
+
client_canton_id?: string;
|
|
49
|
+
client_parish_id?: string;
|
|
50
|
+
client_province_code?: string;
|
|
51
|
+
client_province_name?: string;
|
|
52
|
+
client_canton_code?: string;
|
|
53
|
+
client_canton_name?: string;
|
|
54
|
+
client_parish_code?: string;
|
|
55
|
+
client_parish_name?: string;
|
|
56
|
+
document_nomenclature?: string;
|
|
57
|
+
document_number?: string;
|
|
58
|
+
document_state?: string;
|
|
59
|
+
request_value?: number;
|
|
60
|
+
decrease_value?: number;
|
|
61
|
+
type?: string;
|
|
62
|
+
reason?: string;
|
|
63
|
+
created_user?: string;
|
|
64
|
+
created_at?: number;
|
|
65
|
+
increase_value?: number;
|
|
66
|
+
approved_value?: number;
|
|
67
|
+
client_branch_code?: string;
|
|
68
|
+
client_branch_name?: string;
|
|
69
|
+
client_branch_address?: string;
|
|
70
|
+
client_branch_email?: string;
|
|
71
|
+
client_branch_cellphone?: string;
|
|
72
|
+
client_branch_phone?: string;
|
|
73
|
+
client_branch_phone_code?: string;
|
|
74
|
+
client_payment_deadline?: number;
|
|
75
|
+
seller_id?: string;
|
|
76
|
+
seller_identification_number?: string;
|
|
77
|
+
seller_full_name?: string;
|
|
78
|
+
seller_document_number?: string;
|
|
79
|
+
seller_address?: string;
|
|
80
|
+
seller_cellphone?: string;
|
|
81
|
+
seller_email?: string[];
|
|
82
|
+
new_credit_number?: string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
interface SaveBody {
|
|
86
|
+
company_NIF?: string;
|
|
87
|
+
company_address?: string;
|
|
88
|
+
company_trade_name?: string;
|
|
89
|
+
company_business_name?: string;
|
|
90
|
+
company_branch_identification_number?: string;
|
|
91
|
+
company_branch_trade_name?: string;
|
|
92
|
+
company_branch_logo?: string;
|
|
93
|
+
company_branch_address?: string;
|
|
94
|
+
company_branch_email?: string;
|
|
95
|
+
company_branch_cellphone?: string;
|
|
96
|
+
company_branch_phone?: string;
|
|
97
|
+
client_id?: string;
|
|
98
|
+
client_business_name?: string;
|
|
99
|
+
client_document_number?: string;
|
|
100
|
+
client_credit_limit?: number;
|
|
101
|
+
client_trade_name?: string;
|
|
102
|
+
client_email?: string;
|
|
103
|
+
client_address?: string;
|
|
104
|
+
client_phone_code?: string;
|
|
105
|
+
client_cellphone?: string;
|
|
106
|
+
client_province_id?: string;
|
|
107
|
+
client_canton_id?: string;
|
|
108
|
+
client_parish_id?: string;
|
|
109
|
+
client_province_code?: string;
|
|
110
|
+
client_province_name?: string;
|
|
111
|
+
client_canton_code?: string;
|
|
112
|
+
client_canton_name?: string;
|
|
113
|
+
client_parish_code?: string;
|
|
114
|
+
client_parish_name?: string;
|
|
115
|
+
reason?: string;
|
|
116
|
+
type?: string;
|
|
117
|
+
request_value?: number;
|
|
118
|
+
increase_value?: number;
|
|
119
|
+
decrease_value?: number;
|
|
120
|
+
revoke_value?: number;
|
|
121
|
+
client_branch_id?: string;
|
|
122
|
+
client_payment_deadline?: number;
|
|
123
|
+
client_branch_code?: string;
|
|
124
|
+
client_branch_name?: string;
|
|
125
|
+
client_branch_address?: string;
|
|
126
|
+
client_branch_email?: string;
|
|
127
|
+
client_branch_cellphone?: string;
|
|
128
|
+
client_branch_phone?: string;
|
|
129
|
+
client_branch_phone_code?: string;
|
|
130
|
+
seller_id?: string;
|
|
131
|
+
seller_identification_number?: string;
|
|
132
|
+
seller_document_number?: string;
|
|
133
|
+
seller_full_name?: string;
|
|
134
|
+
seller_address?: string;
|
|
135
|
+
seller_email?: string[];
|
|
136
|
+
seller_cellphone?: string;
|
|
137
|
+
reason_country_id?: string;
|
|
138
|
+
reason_country_code?: string;
|
|
139
|
+
reason_country_description?: string;
|
|
140
|
+
reason_country_description_process?: string;
|
|
141
|
+
}
|
|
142
|
+
interface GetOneResponse {
|
|
143
|
+
success?: boolean;
|
|
144
|
+
data: GetOneResponse.Data;
|
|
145
|
+
}
|
|
146
|
+
namespace GetOneResponse {
|
|
147
|
+
interface Data {
|
|
148
|
+
_id?: string;
|
|
149
|
+
company_id?: string;
|
|
150
|
+
company_branch_id?: string;
|
|
151
|
+
company_NIF?: string;
|
|
152
|
+
company_address?: string;
|
|
153
|
+
company_trade_name?: string;
|
|
154
|
+
company_business_name?: string;
|
|
155
|
+
company_branch_identification_number?: string;
|
|
156
|
+
company_branch_trade_name?: string;
|
|
157
|
+
company_branch_logo?: string;
|
|
158
|
+
company_branch_address?: string;
|
|
159
|
+
company_branch_email?: string;
|
|
160
|
+
company_branch_cellphone?: string;
|
|
161
|
+
company_branch_phone?: string;
|
|
162
|
+
user_id?: string;
|
|
163
|
+
client_id?: string;
|
|
164
|
+
client_business_name?: string;
|
|
165
|
+
client_document_number?: string;
|
|
166
|
+
client_credit_limit?: number;
|
|
167
|
+
client_payment_deadline?: number;
|
|
168
|
+
client_trade_name?: string;
|
|
169
|
+
client_email?: string;
|
|
170
|
+
client_address?: string;
|
|
171
|
+
client_phone_code?: string;
|
|
172
|
+
client_cellphone?: string;
|
|
173
|
+
client_province_id?: string;
|
|
174
|
+
client_canton_id?: string;
|
|
175
|
+
client_parish_id?: string;
|
|
176
|
+
client_province_code?: string;
|
|
177
|
+
client_province_name?: string;
|
|
178
|
+
client_canton_code?: string;
|
|
179
|
+
client_canton_name?: string;
|
|
180
|
+
client_parish_code?: string;
|
|
181
|
+
client_parish_name?: string;
|
|
182
|
+
payment_deadline?: number;
|
|
183
|
+
previous_payment_deadline?: number;
|
|
184
|
+
commentary?: string;
|
|
185
|
+
quota_number?: number;
|
|
186
|
+
grace_days?: number;
|
|
187
|
+
document_nomenclature?: string;
|
|
188
|
+
document_number?: string;
|
|
189
|
+
document_state?: string;
|
|
190
|
+
approved_value?: number;
|
|
191
|
+
request_value?: number;
|
|
192
|
+
increase_value?: number;
|
|
193
|
+
decrease_value?: number;
|
|
194
|
+
type?: string;
|
|
195
|
+
reason?: string;
|
|
196
|
+
created_user?: string;
|
|
197
|
+
created_at?: number;
|
|
198
|
+
client_branch_id?: string;
|
|
199
|
+
client_branch_code?: string;
|
|
200
|
+
client_branch_name?: string;
|
|
201
|
+
client_branch_address?: string;
|
|
202
|
+
client_branch_email?: string;
|
|
203
|
+
client_branch_cellphone?: string;
|
|
204
|
+
client_branch_phone?: string;
|
|
205
|
+
client_branch_phone_code?: string;
|
|
206
|
+
seller_id?: string;
|
|
207
|
+
seller_identification_number?: string;
|
|
208
|
+
seller_full_name?: string;
|
|
209
|
+
seller_document_number?: string;
|
|
210
|
+
seller_address?: string;
|
|
211
|
+
seller_cellphone?: string;
|
|
212
|
+
seller_email?: string[];
|
|
213
|
+
reason_country_id?: string;
|
|
214
|
+
reason_country_code?: string;
|
|
215
|
+
reason_country_description?: string;
|
|
216
|
+
reason_country_description_process?: string;
|
|
217
|
+
deny_reason_country_id?: string;
|
|
218
|
+
deny_reason_country_code?: string;
|
|
219
|
+
deny_reason_country_description?: string;
|
|
220
|
+
deny_reason_country_description_process?: string;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
interface TimelineResponse {
|
|
224
|
+
_id: string;
|
|
225
|
+
document_nomenclature: string;
|
|
226
|
+
document_number: string;
|
|
227
|
+
document_state: string;
|
|
228
|
+
type: string;
|
|
229
|
+
date: number;
|
|
230
|
+
user: string;
|
|
231
|
+
credit_limit: number;
|
|
232
|
+
request_value: number;
|
|
233
|
+
approved_value: number;
|
|
234
|
+
commentary?: string;
|
|
235
|
+
payment_deadline: number;
|
|
236
|
+
previous_payment_deadline: number;
|
|
237
|
+
}
|
|
238
|
+
interface ChangeStatusBody {
|
|
239
|
+
document_state?: string;
|
|
240
|
+
approved_value?: number;
|
|
241
|
+
commentary?: string;
|
|
242
|
+
payment_deadline?: number;
|
|
243
|
+
previous_payment_deadline?: number;
|
|
244
|
+
quota_number?: number;
|
|
245
|
+
grace_days?: number;
|
|
246
|
+
reason_country_id?: string;
|
|
247
|
+
reason_country_code?: string;
|
|
248
|
+
reason_country_description?: string;
|
|
249
|
+
reason_country_description_process?: string;
|
|
250
|
+
deny_reason_country_id?: string;
|
|
251
|
+
deny_reason_country_code?: string;
|
|
252
|
+
deny_reason_country_description?: string;
|
|
253
|
+
deny_reason_country_description_process?: string;
|
|
254
|
+
}
|
|
255
|
+
interface ConfirmResponse {
|
|
256
|
+
success: boolean;
|
|
257
|
+
message: string;
|
|
258
|
+
data?: any;
|
|
259
|
+
}
|
|
260
|
+
interface ValidationOperationClientParams {
|
|
261
|
+
client_id: string;
|
|
262
|
+
}
|
|
263
|
+
interface ValidationOperationClientResponse {
|
|
264
|
+
success?: boolean;
|
|
265
|
+
}
|
|
266
|
+
interface SendEmailParams {
|
|
267
|
+
timezone: string;
|
|
268
|
+
locale: string;
|
|
269
|
+
emails?: string;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
export declare namespace CbmPrintSettingsModel {
|
|
2
|
-
interface ListParams {
|
|
3
|
-
event_module: string;
|
|
4
|
-
collection_name?: string;
|
|
5
|
-
}
|
|
6
|
-
interface ListResponse {
|
|
7
|
-
success: boolean;
|
|
8
|
-
data: ListResponse.Data[];
|
|
9
|
-
}
|
|
10
|
-
namespace ListResponse {
|
|
11
|
-
interface Data {
|
|
12
|
-
_id: string;
|
|
13
|
-
company_id: string;
|
|
14
|
-
event_module: string;
|
|
15
|
-
collection_name: string;
|
|
16
|
-
description_module: string;
|
|
17
|
-
default_name: string;
|
|
18
|
-
code: string;
|
|
19
|
-
order: number;
|
|
20
|
-
print_a4: boolean;
|
|
21
|
-
print_logo_a4: boolean;
|
|
22
|
-
print_ticket: boolean;
|
|
23
|
-
print_logo_ticket: boolean;
|
|
24
|
-
accounting: boolean;
|
|
25
|
-
signature: boolean;
|
|
26
|
-
signature_data: Signature[];
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
deleted: boolean;
|
|
29
|
-
createdAt: number;
|
|
30
|
-
createdUser: string;
|
|
31
|
-
signature_ride: boolean;
|
|
32
|
-
signature_data_ride: SignatureRide[];
|
|
33
|
-
}
|
|
34
|
-
interface Signature {
|
|
35
|
-
_id: string;
|
|
36
|
-
code: string;
|
|
37
|
-
description: string;
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface SignatureRide {
|
|
41
|
-
_id: string;
|
|
42
|
-
code: string;
|
|
43
|
-
description: string;
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
interface SaveBody {
|
|
48
|
-
event_module: string;
|
|
49
|
-
collection_name: string;
|
|
50
|
-
description_module: string;
|
|
51
|
-
default_name: string;
|
|
52
|
-
code: string;
|
|
53
|
-
order: number;
|
|
54
|
-
print_a4: boolean;
|
|
55
|
-
print_logo_a4: boolean;
|
|
56
|
-
print_ticket: boolean;
|
|
57
|
-
print_logo_ticket: boolean;
|
|
58
|
-
accounting: boolean;
|
|
59
|
-
signature: boolean;
|
|
60
|
-
signature_data: SaveBody.Signature[];
|
|
61
|
-
signature_ride?: boolean;
|
|
62
|
-
signature_data_ride?: SaveBody.SignatureRide[];
|
|
63
|
-
}
|
|
64
|
-
namespace SaveBody {
|
|
65
|
-
interface Signature {
|
|
66
|
-
code: string;
|
|
67
|
-
description: string;
|
|
68
|
-
enabled: boolean;
|
|
69
|
-
}
|
|
70
|
-
interface SignatureRide {
|
|
71
|
-
code: string;
|
|
72
|
-
description: string;
|
|
73
|
-
enabled: boolean;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
interface UpdateBody {
|
|
77
|
-
event_module: string;
|
|
78
|
-
collection_name: string;
|
|
79
|
-
description_module: string;
|
|
80
|
-
default_name: string;
|
|
81
|
-
code: string;
|
|
82
|
-
order: number;
|
|
83
|
-
print_a4: boolean;
|
|
84
|
-
print_logo_a4: boolean;
|
|
85
|
-
print_ticket: boolean;
|
|
86
|
-
print_logo_ticket: boolean;
|
|
87
|
-
accounting: boolean;
|
|
88
|
-
signature: boolean;
|
|
89
|
-
signature_data: UpdateBody.Signature[];
|
|
90
|
-
signature_ride?: boolean;
|
|
91
|
-
signature_data_ride?: UpdateBody.SignatureRide[];
|
|
92
|
-
}
|
|
93
|
-
namespace UpdateBody {
|
|
94
|
-
interface Signature {
|
|
95
|
-
code: string;
|
|
96
|
-
description: string;
|
|
97
|
-
enabled: boolean;
|
|
98
|
-
}
|
|
99
|
-
interface SignatureRide {
|
|
100
|
-
code: string;
|
|
101
|
-
description: string;
|
|
102
|
-
enabled: boolean;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
interface ConfirmResponse {
|
|
106
|
-
success: boolean;
|
|
107
|
-
message: string;
|
|
108
|
-
data?: any;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
1
|
+
export declare namespace CbmPrintSettingsModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
event_module: string;
|
|
4
|
+
collection_name?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
company_id: string;
|
|
14
|
+
event_module: string;
|
|
15
|
+
collection_name: string;
|
|
16
|
+
description_module: string;
|
|
17
|
+
default_name: string;
|
|
18
|
+
code: string;
|
|
19
|
+
order: number;
|
|
20
|
+
print_a4: boolean;
|
|
21
|
+
print_logo_a4: boolean;
|
|
22
|
+
print_ticket: boolean;
|
|
23
|
+
print_logo_ticket: boolean;
|
|
24
|
+
accounting: boolean;
|
|
25
|
+
signature: boolean;
|
|
26
|
+
signature_data: Signature[];
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
deleted: boolean;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
createdUser: string;
|
|
31
|
+
signature_ride: boolean;
|
|
32
|
+
signature_data_ride: SignatureRide[];
|
|
33
|
+
}
|
|
34
|
+
interface Signature {
|
|
35
|
+
_id: string;
|
|
36
|
+
code: string;
|
|
37
|
+
description: string;
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
}
|
|
40
|
+
interface SignatureRide {
|
|
41
|
+
_id: string;
|
|
42
|
+
code: string;
|
|
43
|
+
description: string;
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
interface SaveBody {
|
|
48
|
+
event_module: string;
|
|
49
|
+
collection_name: string;
|
|
50
|
+
description_module: string;
|
|
51
|
+
default_name: string;
|
|
52
|
+
code: string;
|
|
53
|
+
order: number;
|
|
54
|
+
print_a4: boolean;
|
|
55
|
+
print_logo_a4: boolean;
|
|
56
|
+
print_ticket: boolean;
|
|
57
|
+
print_logo_ticket: boolean;
|
|
58
|
+
accounting: boolean;
|
|
59
|
+
signature: boolean;
|
|
60
|
+
signature_data: SaveBody.Signature[];
|
|
61
|
+
signature_ride?: boolean;
|
|
62
|
+
signature_data_ride?: SaveBody.SignatureRide[];
|
|
63
|
+
}
|
|
64
|
+
namespace SaveBody {
|
|
65
|
+
interface Signature {
|
|
66
|
+
code: string;
|
|
67
|
+
description: string;
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
}
|
|
70
|
+
interface SignatureRide {
|
|
71
|
+
code: string;
|
|
72
|
+
description: string;
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
interface UpdateBody {
|
|
77
|
+
event_module: string;
|
|
78
|
+
collection_name: string;
|
|
79
|
+
description_module: string;
|
|
80
|
+
default_name: string;
|
|
81
|
+
code: string;
|
|
82
|
+
order: number;
|
|
83
|
+
print_a4: boolean;
|
|
84
|
+
print_logo_a4: boolean;
|
|
85
|
+
print_ticket: boolean;
|
|
86
|
+
print_logo_ticket: boolean;
|
|
87
|
+
accounting: boolean;
|
|
88
|
+
signature: boolean;
|
|
89
|
+
signature_data: UpdateBody.Signature[];
|
|
90
|
+
signature_ride?: boolean;
|
|
91
|
+
signature_data_ride?: UpdateBody.SignatureRide[];
|
|
92
|
+
}
|
|
93
|
+
namespace UpdateBody {
|
|
94
|
+
interface Signature {
|
|
95
|
+
code: string;
|
|
96
|
+
description: string;
|
|
97
|
+
enabled: boolean;
|
|
98
|
+
}
|
|
99
|
+
interface SignatureRide {
|
|
100
|
+
code: string;
|
|
101
|
+
description: string;
|
|
102
|
+
enabled: boolean;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
interface ConfirmResponse {
|
|
106
|
+
success: boolean;
|
|
107
|
+
message: string;
|
|
108
|
+
data?: any;
|
|
109
|
+
}
|
|
110
|
+
}
|