@cbm-common/cbm-types 0.0.62 → 0.0.64

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,358 +1,361 @@
1
- export declare namespace CbmCompanyModel {
2
- enum EStatus {
3
- SUSPENDED = "suspended",
4
- ACTIVE = "active",
5
- INACTIVE = "inactive",
6
- PENDING = "pending"
7
- }
8
- namespace EStatus {
9
- function fromString(value: string): EStatus;
10
- function toString(value: EStatus): TStatus;
11
- }
12
- type TStatus = `${EStatus}`;
13
- interface ListParams {
14
- page: number;
15
- size: number;
16
- deleted?: boolean;
17
- status?: TStatus;
18
- date_end?: number;
19
- date_begin?: number;
20
- filter?: string;
21
- country_id?: string;
22
- }
23
- interface ListResponse {
24
- success: boolean;
25
- pageNum: number;
26
- pageSize: number;
27
- items: ListResponse.Item[];
28
- pages: number;
29
- total: number;
30
- }
31
- namespace ListResponse {
32
- interface Item {
33
- _id: string;
34
- country_id?: string;
35
- NIF?: string;
36
- business_name?: string;
37
- address?: string;
38
- trade_name?: string;
39
- status?: string;
40
- readonly?: boolean;
41
- created_at?: number;
42
- created_user?: string;
43
- updated_at?: number;
44
- updated_user?: string;
45
- branches?: Item.Branch[];
46
- mandatory_accounting?: boolean;
47
- withholding_agent?: boolean;
48
- special_taxpayer?: boolean;
49
- artisanal_qualification?: boolean;
50
- default_account_plan?: boolean;
51
- account_template_id?: string;
52
- special_taxpayer_number?: string | null;
53
- artisanal_qualification_number?: string | null;
54
- enabled?: boolean;
55
- deleted?: boolean;
56
- manager_name?: string;
57
- accountant_name?: string;
58
- email?: string;
59
- regime_id?: string;
60
- expiration_signature_date?: number;
61
- regime?: Item.Regime;
62
- regime_name?: string;
63
- withholding_agent_number?: string;
64
- country_name?: string;
65
- country_code?: string;
66
- contry_short_name?: string;
67
- }
68
- namespace Item {
69
- interface Branch {
70
- _id: string;
71
- company_id?: string;
72
- identification_number?: string;
73
- trade_name?: string;
74
- address?: string;
75
- email?: string;
76
- cellphone?: string;
77
- phone?: string;
78
- environment?: number;
79
- enabled?: boolean;
80
- created_at?: number;
81
- created_user?: string;
82
- updated_at?: number;
83
- updated_user?: string;
84
- logo?: string;
85
- disabled_at?: number;
86
- disabled_reason?: string;
87
- disabled_user?: string;
88
- enabled_at?: number;
89
- enabled_user?: string;
90
- reading: boolean;
91
- transaction: boolean;
92
- }
93
- interface Regime {
94
- regime_code?: string;
95
- regime_name?: string;
96
- }
97
- interface FileSignature {
98
- url?: string;
99
- name?: string;
100
- mimetype?: string;
101
- }
102
- }
103
- }
104
- interface ListAllParams {
105
- filter?: string;
106
- }
107
- interface ListAllResponse {
108
- success: boolean;
109
- data: ListAllResponse.Data[];
110
- }
111
- namespace ListAllResponse {
112
- interface Data {
113
- _id: string;
114
- country_id?: string;
115
- NIF?: string;
116
- business_name?: string;
117
- address?: string;
118
- trade_name?: string;
119
- status?: string;
120
- readonly?: boolean;
121
- created_at?: number;
122
- created_user?: string;
123
- updated_at?: number;
124
- updated_user?: string;
125
- }
126
- }
127
- interface GetOneResponse {
128
- success: boolean;
129
- data: GetOneResponse.Data;
130
- }
131
- namespace GetOneResponse {
132
- interface Data {
133
- _id: string;
134
- country_id: string;
135
- NIF: string;
136
- business_name: string;
137
- address: string;
138
- trade_name: string;
139
- status: string;
140
- readonly: boolean;
141
- created_at: number;
142
- created_user: string;
143
- email: string;
144
- artisanal_qualification: boolean;
145
- mandatory_accounting: boolean;
146
- regime_id: string;
147
- special_taxpayer: boolean;
148
- updated_at: number;
149
- updated_user: string;
150
- withholding_agent: boolean;
151
- special_taxpayer_number: string;
152
- withholding_agent_number: string;
153
- deleted: boolean;
154
- file_signature: Data.FileSignature;
155
- password_signature: string;
156
- expiration_signature_date: number;
157
- artisanal_qualification_number: string;
158
- manager_name: string;
159
- regime_name: string;
160
- count_branches: number;
161
- regime: Data.Regime;
162
- subscription: Data.Subscription;
163
- default_account_plan: boolean;
164
- account_template_id: string;
165
- enabled: boolean;
166
- contry_short_name: string;
167
- country_code: string;
168
- country_name: string;
169
- country_short_name?: string;
170
- environment?: number;
171
- country_locale?: string;
172
- country_timezone?: string;
173
- }
174
- namespace Data {
175
- interface Regime {
176
- regime_code: string;
177
- regime_name: string;
178
- }
179
- interface FileSignature {
180
- mimetype: string;
181
- name: string;
182
- url: string;
183
- }
184
- interface Subscription {
185
- _id: string;
186
- subscription_id: string;
187
- company_id: string;
188
- user_id: string;
189
- code?: string;
190
- type_support: string;
191
- begin_date: number;
192
- end_date: number;
193
- count_users: number;
194
- count_storage: number;
195
- count_branch_read: number;
196
- count_branch_transactional: number;
197
- used_users: number;
198
- used_storage: number;
199
- used_branch_read: number;
200
- used_branch_transactional: number;
201
- status: string;
202
- enabled?: boolean;
203
- deleted: boolean;
204
- created_at?: number;
205
- created_user?: string;
206
- updated_at?: number;
207
- updated_user?: string;
208
- subscription_module_count: number;
209
- expiration_day: string;
210
- available_branch_transactional: number;
211
- available_branch_read: number;
212
- available_users: number;
213
- }
214
- interface Branch {
215
- _id: string;
216
- company_id?: string;
217
- identification_number?: string;
218
- trade_name?: string;
219
- address?: string;
220
- email?: string;
221
- cellphone?: string;
222
- phone?: string;
223
- environment?: number;
224
- enabled?: boolean;
225
- created_at?: number;
226
- created_user?: string;
227
- updated_at?: number;
228
- updated_user?: string;
229
- }
230
- interface Subscription {
231
- _id: string;
232
- code?: string;
233
- name?: string;
234
- life_year?: number;
235
- method_pay?: string;
236
- collection_method?: string;
237
- enabled?: boolean;
238
- created_at?: number;
239
- created_user?: string;
240
- updated_at?: number;
241
- updated_user?: string;
242
- }
243
- }
244
- }
245
- interface GetInfoResponse {
246
- success: boolean;
247
- data: GetInfoResponse.Data;
248
- }
249
- namespace GetInfoResponse {
250
- interface Data {
251
- _id: string;
252
- NIF?: string;
253
- business_name?: string;
254
- status?: TStatus;
255
- count_branches?: number;
256
- subscription_code?: string;
257
- count_branches_allowed?: number;
258
- count_users_allowed?: number;
259
- count_users?: number;
260
- count_modules?: number;
261
- created_at?: number;
262
- created_user?: string;
263
- updated_at?: number;
264
- updated_user?: string;
265
- }
266
- }
267
- interface SaveBody {
268
- NIF: string;
269
- business_name: string;
270
- address: string;
271
- trade_name: string;
272
- status?: string;
273
- readonly?: boolean;
274
- default_account_plan: boolean;
275
- account_template_id?: string;
276
- email?: string;
277
- mandatory_accounting?: boolean;
278
- withholding_agent?: boolean;
279
- special_taxpayer?: boolean;
280
- artisanal_qualification?: boolean;
281
- withholding_agent_number?: string;
282
- special_taxpayer_number?: string;
283
- artisanal_qualification_number?: string;
284
- manager_name?: string;
285
- accountant_name?: string;
286
- regime_id?: string;
287
- regime_code?: string;
288
- regime_name?: string;
289
- branches?: SaveBody.Data[];
290
- country_id: string;
291
- country_name: string;
292
- country_code: string;
293
- contry_short_name: string;
294
- }
295
- namespace SaveBody {
296
- interface Data {
297
- identification_number?: string;
298
- trade_name?: string;
299
- address?: string;
300
- email?: string;
301
- cellphone?: string;
302
- phone?: string;
303
- environment?: number;
304
- }
305
- }
306
- interface UpdateBody {
307
- NIF?: string;
308
- business_name?: string;
309
- address?: string;
310
- trade_name?: string;
311
- default_account_plan?: boolean;
312
- account_template_id?: string;
313
- email?: string;
314
- status?: string;
315
- readonly?: boolean;
316
- mandatory_accounting?: boolean;
317
- withholding_agent?: boolean;
318
- special_taxpayer?: boolean;
319
- artisanal_qualification?: boolean;
320
- withholding_agent_number?: string;
321
- special_taxpayer_number?: string;
322
- artisanal_qualification_number?: string;
323
- manager_name?: string;
324
- accountant_name?: string;
325
- regime_id?: string;
326
- regime_code?: string;
327
- regime_name?: string;
328
- branches?: BranchParams.Data[];
329
- password_signature?: string;
330
- type?: string;
331
- }
332
- namespace BranchParams {
333
- interface Data {
334
- identification_number?: string;
335
- trade_name?: string;
336
- address?: string;
337
- email?: string;
338
- cellphone?: string;
339
- phone?: string;
340
- environment?: number;
341
- }
342
- }
343
- interface BulkBody {
344
- tax_iva_id: string;
345
- }
346
- interface ChangeStatusBody {
347
- status: TStatus;
348
- }
349
- interface ConfirmResponse {
350
- success: boolean;
351
- message: string;
352
- data?: any;
353
- }
354
- interface UploadFileSignatureRequest {
355
- id: string;
356
- password: string;
357
- }
358
- }
1
+ export declare namespace CbmCompanyModel {
2
+ enum EStatus {
3
+ SUSPENDED = "suspended",
4
+ ACTIVE = "active",
5
+ INACTIVE = "inactive",
6
+ PENDING = "pending"
7
+ }
8
+ namespace EStatus {
9
+ function fromString(value: string): EStatus;
10
+ function toString(value: EStatus): TStatus;
11
+ }
12
+ type TStatus = `${EStatus}`;
13
+ interface ListParams {
14
+ page: number;
15
+ size: number;
16
+ deleted?: boolean;
17
+ status?: TStatus;
18
+ date_end?: number;
19
+ date_begin?: number;
20
+ filter?: string;
21
+ country_id?: string;
22
+ }
23
+ interface ListResponse {
24
+ success: boolean;
25
+ pageNum: number;
26
+ pageSize: number;
27
+ items: ListResponse.Item[];
28
+ pages: number;
29
+ total: number;
30
+ }
31
+ namespace ListResponse {
32
+ interface Item {
33
+ _id: string;
34
+ country_id?: string;
35
+ NIF?: string;
36
+ business_name?: string;
37
+ address?: string;
38
+ trade_name?: string;
39
+ status?: string;
40
+ readonly?: boolean;
41
+ created_at?: number;
42
+ created_user?: string;
43
+ updated_at?: number;
44
+ updated_user?: string;
45
+ branches?: Item.Branch[];
46
+ mandatory_accounting?: boolean;
47
+ withholding_agent?: boolean;
48
+ special_taxpayer?: boolean;
49
+ artisanal_qualification?: boolean;
50
+ default_account_plan?: boolean;
51
+ account_template_id?: string;
52
+ special_taxpayer_number?: string | null;
53
+ artisanal_qualification_number?: string | null;
54
+ enabled?: boolean;
55
+ deleted?: boolean;
56
+ manager_name?: string;
57
+ accountant_name?: string;
58
+ email?: string;
59
+ regime_id?: string;
60
+ expiration_signature_date?: number;
61
+ regime?: Item.Regime;
62
+ regime_name?: string;
63
+ withholding_agent_number?: string;
64
+ country_name?: string;
65
+ country_code?: string;
66
+ contry_short_name?: string;
67
+ }
68
+ namespace Item {
69
+ interface Branch {
70
+ _id: string;
71
+ company_id?: string;
72
+ identification_number?: string;
73
+ trade_name?: string;
74
+ address?: string;
75
+ email?: string;
76
+ cellphone?: string;
77
+ phone?: string;
78
+ environment?: number;
79
+ enabled?: boolean;
80
+ created_at?: number;
81
+ created_user?: string;
82
+ updated_at?: number;
83
+ updated_user?: string;
84
+ logo?: string;
85
+ disabled_at?: number;
86
+ disabled_reason?: string;
87
+ disabled_user?: string;
88
+ enabled_at?: number;
89
+ enabled_user?: string;
90
+ reading: boolean;
91
+ transaction: boolean;
92
+ }
93
+ interface Regime {
94
+ regime_code?: string;
95
+ regime_name?: string;
96
+ }
97
+ interface FileSignature {
98
+ url?: string;
99
+ name?: string;
100
+ mimetype?: string;
101
+ }
102
+ }
103
+ }
104
+ interface ListAllParams {
105
+ filter?: string;
106
+ }
107
+ interface ListAllResponse {
108
+ success: boolean;
109
+ data: ListAllResponse.Data[];
110
+ }
111
+ namespace ListAllResponse {
112
+ interface Data {
113
+ _id: string;
114
+ country_id?: string;
115
+ NIF?: string;
116
+ business_name?: string;
117
+ address?: string;
118
+ trade_name?: string;
119
+ status?: string;
120
+ readonly?: boolean;
121
+ created_at?: number;
122
+ created_user?: string;
123
+ updated_at?: number;
124
+ updated_user?: string;
125
+ }
126
+ }
127
+ interface GetOneResponse {
128
+ success: boolean;
129
+ data: GetOneResponse.Data;
130
+ }
131
+ namespace GetOneResponse {
132
+ interface Data {
133
+ _id: string;
134
+ country_id: string;
135
+ NIF: string;
136
+ business_name: string;
137
+ address: string;
138
+ trade_name: string;
139
+ status: string;
140
+ readonly: boolean;
141
+ created_at: number;
142
+ created_user: string;
143
+ email: string;
144
+ artisanal_qualification: boolean;
145
+ mandatory_accounting: boolean;
146
+ regime_id: string;
147
+ special_taxpayer: boolean;
148
+ updated_at: number;
149
+ updated_user: string;
150
+ withholding_agent: boolean;
151
+ special_taxpayer_number: string;
152
+ withholding_agent_number: string;
153
+ deleted: boolean;
154
+ file_signature: Data.FileSignature;
155
+ password_signature: string;
156
+ expiration_signature_date: number;
157
+ artisanal_qualification_number: string;
158
+ manager_name: string;
159
+ regime_name: string;
160
+ count_branches: number;
161
+ regime: Data.Regime;
162
+ subscription: Data.Subscription;
163
+ default_account_plan: boolean;
164
+ account_template_id: string;
165
+ enabled: boolean;
166
+ contry_short_name: string;
167
+ country_code: string;
168
+ country_name: string;
169
+ country_short_name?: string;
170
+ environment?: number;
171
+ country_locale?: string;
172
+ country_timezone?: string;
173
+ }
174
+ namespace Data {
175
+ interface Regime {
176
+ regime_code: string;
177
+ regime_name: string;
178
+ }
179
+ interface FileSignature {
180
+ mimetype: string;
181
+ name: string;
182
+ url: string;
183
+ }
184
+ interface Subscription {
185
+ _id: string;
186
+ subscription_id: string;
187
+ company_id: string;
188
+ user_id: string;
189
+ code?: string;
190
+ type_support: string;
191
+ begin_date: number;
192
+ end_date: number;
193
+ count_users: number;
194
+ count_storage: number;
195
+ count_branch_read: number;
196
+ count_branch_transactional: number;
197
+ used_users: number;
198
+ used_storage: number;
199
+ used_branch_read: number;
200
+ used_branch_transactional: number;
201
+ status: string;
202
+ enabled?: boolean;
203
+ deleted: boolean;
204
+ created_at?: number;
205
+ created_user?: string;
206
+ updated_at?: number;
207
+ updated_user?: string;
208
+ subscription_module_count: number;
209
+ expiration_day: string;
210
+ available_branch_transactional: number;
211
+ available_branch_read: number;
212
+ available_users: number;
213
+ }
214
+ interface Branch {
215
+ _id: string;
216
+ company_id?: string;
217
+ identification_number?: string;
218
+ trade_name?: string;
219
+ address?: string;
220
+ email?: string;
221
+ cellphone?: string;
222
+ phone?: string;
223
+ environment?: number;
224
+ enabled?: boolean;
225
+ created_at?: number;
226
+ created_user?: string;
227
+ updated_at?: number;
228
+ updated_user?: string;
229
+ }
230
+ interface Subscription {
231
+ _id: string;
232
+ code?: string;
233
+ name?: string;
234
+ life_year?: number;
235
+ method_pay?: string;
236
+ collection_method?: string;
237
+ enabled?: boolean;
238
+ created_at?: number;
239
+ created_user?: string;
240
+ updated_at?: number;
241
+ updated_user?: string;
242
+ }
243
+ }
244
+ }
245
+ interface GetInfoResponse {
246
+ success: boolean;
247
+ data: GetInfoResponse.Data;
248
+ }
249
+ namespace GetInfoResponse {
250
+ interface Data {
251
+ _id: string;
252
+ NIF?: string;
253
+ business_name?: string;
254
+ status?: TStatus;
255
+ count_branches?: number;
256
+ subscription_code?: string;
257
+ count_branches_allowed?: number;
258
+ count_users_allowed?: number;
259
+ count_users?: number;
260
+ count_modules?: number;
261
+ created_at?: number;
262
+ created_user?: string;
263
+ updated_at?: number;
264
+ updated_user?: string;
265
+ }
266
+ }
267
+ interface SaveBody {
268
+ NIF: string;
269
+ business_name: string;
270
+ address: string;
271
+ trade_name: string;
272
+ status?: string;
273
+ readonly?: boolean;
274
+ default_account_plan: boolean;
275
+ account_template_id?: string;
276
+ email?: string;
277
+ mandatory_accounting?: boolean;
278
+ withholding_agent?: boolean;
279
+ special_taxpayer?: boolean;
280
+ artisanal_qualification?: boolean;
281
+ withholding_agent_number?: string;
282
+ special_taxpayer_number?: string;
283
+ artisanal_qualification_number?: string;
284
+ manager_name?: string;
285
+ accountant_name?: string;
286
+ regime_id?: string;
287
+ regime_code?: string;
288
+ regime_name?: string;
289
+ branches?: SaveBody.Data[];
290
+ country_id: string;
291
+ country_name: string;
292
+ country_code: string;
293
+ contry_short_name: string;
294
+ }
295
+ namespace SaveBody {
296
+ interface Data {
297
+ identification_number?: string;
298
+ trade_name?: string;
299
+ address?: string;
300
+ email?: string;
301
+ cellphone?: string;
302
+ phone?: string;
303
+ environment?: number;
304
+ }
305
+ }
306
+ interface UpdateBody {
307
+ NIF?: string;
308
+ business_name?: string;
309
+ address?: string;
310
+ trade_name?: string;
311
+ default_account_plan?: boolean;
312
+ account_template_id?: string;
313
+ email?: string;
314
+ status?: string;
315
+ readonly?: boolean;
316
+ mandatory_accounting?: boolean;
317
+ withholding_agent?: boolean;
318
+ special_taxpayer?: boolean;
319
+ artisanal_qualification?: boolean;
320
+ withholding_agent_number?: string;
321
+ special_taxpayer_number?: string;
322
+ artisanal_qualification_number?: string;
323
+ manager_name?: string;
324
+ accountant_name?: string;
325
+ regime_id?: string;
326
+ regime_code?: string;
327
+ regime_name?: string;
328
+ branches?: BranchParams.Data[];
329
+ password_signature?: string;
330
+ type?: string;
331
+ }
332
+ namespace BranchParams {
333
+ interface Data {
334
+ identification_number?: string;
335
+ trade_name?: string;
336
+ address?: string;
337
+ email?: string;
338
+ cellphone?: string;
339
+ phone?: string;
340
+ environment?: number;
341
+ }
342
+ }
343
+ interface BulkBody {
344
+ tax_iva_id: string;
345
+ }
346
+ interface ChangeStatusBody {
347
+ status: TStatus;
348
+ }
349
+ interface ConfirmResponse {
350
+ success: boolean;
351
+ message: string;
352
+ data?: any;
353
+ }
354
+ interface UploadFileSignatureRequest {
355
+ id: string;
356
+ password: string;
357
+ }
358
+ interface ChangeProduction {
359
+ environment: number;
360
+ }
361
+ }
@@ -1,16 +1,17 @@
1
- import { CbmCompanyModel } from "../models/company.domain.model";
2
- import { ICbmCompanyInfrastructureRepository } from "../../infrastructure/repositories/company.infrastructure.repository";
3
- import { Observable } from "rxjs";
4
- export declare class CbmCompanyDomainRepository implements ICbmCompanyInfrastructureRepository {
5
- private service;
6
- constructor(service: ICbmCompanyInfrastructureRepository);
7
- list(params: CbmCompanyModel.ListParams): Observable<CbmCompanyModel.ListResponse>;
8
- listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
9
- getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
10
- getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
11
- save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
12
- saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
13
- update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
14
- changeStatus(id: string, data: CbmCompanyModel.ChangeStatusBody): Observable<CbmCompanyModel.ConfirmResponse>;
15
- uploadFileSignature(data: CbmCompanyModel.UploadFileSignatureRequest, file: FormData): Observable<CbmCompanyModel.ConfirmResponse>;
16
- }
1
+ import { CbmCompanyModel } from "../models/company.domain.model";
2
+ import { ICbmCompanyInfrastructureRepository } from "../../infrastructure/repositories/company.infrastructure.repository";
3
+ import { Observable } from "rxjs";
4
+ export declare class CbmCompanyDomainRepository implements ICbmCompanyInfrastructureRepository {
5
+ private service;
6
+ constructor(service: ICbmCompanyInfrastructureRepository);
7
+ list(params: CbmCompanyModel.ListParams): Observable<CbmCompanyModel.ListResponse>;
8
+ listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
9
+ getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
10
+ getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
11
+ save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
12
+ saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
13
+ update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
14
+ changeStatus(id: string, data: CbmCompanyModel.ChangeStatusBody): Observable<CbmCompanyModel.ConfirmResponse>;
15
+ uploadFileSignature(data: CbmCompanyModel.UploadFileSignatureRequest, file: FormData): Observable<CbmCompanyModel.ConfirmResponse>;
16
+ changeProduction(id: string, data: CbmCompanyModel.ChangeProduction): Observable<CbmCompanyModel.ConfirmResponse>;
17
+ }
@@ -0,0 +1,9 @@
1
+ import { Observable } from "rxjs";
2
+ import { CbmSriPaymentTermModel } from "../models/sri-payment-term.domain.model";
3
+ import { ICbmSriPaymentTermRepository } from "../../infrastructure/repositories/sri-payment-term.infrastructure.repository";
4
+ export declare class CbmSriPaymentTermRepository implements ICbmSriPaymentTermRepository {
5
+ private service;
6
+ constructor(service: ICbmSriPaymentTermRepository);
7
+ list(params: CbmSriPaymentTermModel.ListParams): Observable<CbmSriPaymentTermModel.ListResponse>;
8
+ getOne(id: string): Observable<CbmSriPaymentTermModel.GetOneResponse>;
9
+ }
@@ -1,13 +1,14 @@
1
- import { CbmCompanyModel } from "../../domain/models/company.domain.model";
2
- import { Observable } from "rxjs";
3
- export interface ICbmCompanyInfrastructureRepository {
4
- list(params: CbmCompanyModel.ListParams): Observable<CbmCompanyModel.ListResponse>;
5
- listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
6
- getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
7
- getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
8
- save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
9
- saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
10
- update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
11
- uploadFileSignature(data: CbmCompanyModel.UploadFileSignatureRequest, file: FormData): Observable<CbmCompanyModel.ConfirmResponse>;
12
- changeStatus(id: string, data: CbmCompanyModel.ChangeStatusBody): Observable<CbmCompanyModel.ConfirmResponse>;
13
- }
1
+ import { CbmCompanyModel } from "../../domain/models/company.domain.model";
2
+ import { Observable } from "rxjs";
3
+ export interface ICbmCompanyInfrastructureRepository {
4
+ list(params: CbmCompanyModel.ListParams): Observable<CbmCompanyModel.ListResponse>;
5
+ listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
6
+ getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
7
+ getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
8
+ save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
9
+ saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
10
+ update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
11
+ uploadFileSignature(data: CbmCompanyModel.UploadFileSignatureRequest, file: FormData): Observable<CbmCompanyModel.ConfirmResponse>;
12
+ changeStatus(id: string, data: CbmCompanyModel.ChangeStatusBody): Observable<CbmCompanyModel.ConfirmResponse>;
13
+ changeProduction(id: string, data: CbmCompanyModel.ChangeProduction): Observable<CbmCompanyModel.ConfirmResponse>;
14
+ }
@@ -1,18 +1,19 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { CbmCompanyModel } from '../../domain/models/company.domain.model';
3
- import { Observable } from 'rxjs';
4
- import { ICbmCompanyInfrastructureRepository } from '../repositories/company.infrastructure.repository';
5
- export declare class CbmCompanyInfrastructureService implements ICbmCompanyInfrastructureRepository {
6
- private readonly http;
7
- constructor(http: HttpClient);
8
- private readonly url;
9
- list(params: CbmCompanyModel.ListParams): Observable<CbmCompanyModel.ListResponse>;
10
- listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
11
- getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
12
- getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
13
- save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
14
- saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
15
- update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
16
- changeStatus(id: string, data: CbmCompanyModel.ChangeStatusBody): Observable<CbmCompanyModel.ConfirmResponse>;
17
- uploadFileSignature(data: CbmCompanyModel.UploadFileSignatureRequest, file: FormData): Observable<CbmCompanyModel.ConfirmResponse>;
18
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { CbmCompanyModel } from '../../domain/models/company.domain.model';
3
+ import { Observable } from 'rxjs';
4
+ import { ICbmCompanyInfrastructureRepository } from '../repositories/company.infrastructure.repository';
5
+ export declare class CbmCompanyInfrastructureService implements ICbmCompanyInfrastructureRepository {
6
+ private readonly http;
7
+ constructor(http: HttpClient);
8
+ private readonly url;
9
+ list(params: CbmCompanyModel.ListParams): Observable<CbmCompanyModel.ListResponse>;
10
+ listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
11
+ getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
12
+ getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
13
+ save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
14
+ saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
15
+ update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
16
+ changeStatus(id: string, data: CbmCompanyModel.ChangeStatusBody): Observable<CbmCompanyModel.ConfirmResponse>;
17
+ uploadFileSignature(data: CbmCompanyModel.UploadFileSignatureRequest, file: FormData): Observable<CbmCompanyModel.ConfirmResponse>;
18
+ changeProduction(id: string, data: CbmCompanyModel.ChangeProduction): Observable<CbmCompanyModel.ConfirmResponse>;
19
+ }
@@ -1,3 +1,3 @@
1
1
  import { HttpClient } from "@angular/common/http";
2
- import { CbmSriPaymentTermRepository } from "../../domain/repositories/sri-payment-term.domian.repository";
2
+ import { CbmSriPaymentTermRepository } from "../../domain/repositories/sri-payment-term.domain.repository";
3
3
  export declare function sriPaymentTermFactory(http: HttpClient): CbmSriPaymentTermRepository;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {