@icib.dev/api-client 1.0.1 → 1.0.3

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,1930 +1,5 @@
1
- export interface Allegato {
2
- /** ID */
1
+ export interface Item {
3
2
  id?: number;
4
- /** Nome */
5
- nome: string;
6
- /** Dimensione */
7
- dimensione: number;
8
- /** Data caricamento */
9
- data_caricamento?: string;
10
- /** Content */
11
- content?: string;
12
- /** Note */
13
- note?: string | null;
14
- /** Indirizzo */
15
- indirizzo?: string;
16
- /** Comune */
17
- comune?: string;
18
- }
19
- export interface Articolo {
20
- /** ID */
21
- id?: number;
22
- /** Tipo articolo */
23
- tipo_articolo?: string | null;
24
- /** Codice iva */
25
- codice_iva?: string | null;
26
- /** Unitamisura */
27
- unitamisura: string;
28
- /** Note */
29
- note?: string | null;
30
- /** Creato il */
31
- creato_il?: string;
32
- /** Creato da */
33
- creato_da?: string | null;
34
- /** Aggiornato il */
35
- aggiornato_il?: string;
36
- /** Aggiornato da */
37
- aggiornato_da?: string | null;
38
- /** Codice */
39
- codice: string;
40
- /** Nome */
41
- nome: string;
42
- /** Obsoleto */
43
- obsoleto?: boolean;
44
- }
45
- export interface AspettoBeni {
46
- /** ID */
47
- id?: number;
48
- /** Note */
49
- note?: string | null;
50
- /** Creato il */
51
- creato_il?: string;
52
- /** Creato da */
53
- creato_da?: string | null;
54
- /** Aggiornato il */
55
- aggiornato_il?: string;
56
- /** Aggiornato da */
57
- aggiornato_da?: string | null;
58
- /** Nome */
59
- nome: string;
60
- /** Default */
61
- default?: boolean;
62
- }
63
- export interface TokenObtainPair {
64
- /** Username */
65
- username: string;
66
- /** Password */
67
- password: string;
68
- }
69
- export interface TokenRefresh {
70
- /** Refresh */
71
- refresh: string;
72
- /** Access */
73
- access?: string;
74
- }
75
- export interface TokenVerify {
76
- /** Token */
77
- token: string;
78
- }
79
- export interface Azienda {
80
- /** ID */
81
- id?: number;
82
- /** Codice */
83
- codice?: string | null;
84
- /** Partita iva */
85
- partita_iva?: string | null;
86
- /** Codice fiscale */
87
- codice_fiscale?: string | null;
88
- /** Ragione sociale */
89
- ragione_sociale?: string | null;
90
- /** Nome */
91
- nome?: string | null;
92
- /** Cognome */
93
- cognome?: string | null;
94
- /** Tipo */
95
- tipo?: string | null;
96
- /** Regime fiscale */
97
- regime_fiscale?: string;
98
- /** Indirizzo */
99
- indirizzo: string;
100
- /** N civico */
101
- n_civico?: string | null;
102
- /** Cap */
103
- cap?: string | null;
104
- /** Comune */
105
- comune: string;
106
- /** Provincia */
107
- provincia?: string | null;
108
- /** Nazione */
109
- nazione?: string;
110
- /** Telefono */
111
- telefono?: string | null;
112
- /** Cellulare */
113
- cellulare?: string | null;
114
- /** Fax */
115
- fax?: string | null;
116
- /** Email */
117
- email?: string | null;
118
- /** Pec */
119
- pec?: string | null;
120
- /** Soggetto emittente */
121
- soggetto_emittente?: string | null;
122
- /** Provincia rea */
123
- provincia_rea?: string | null;
124
- /** Numero rea */
125
- numero_rea?: string | null;
126
- /** Capitale sociale rea */
127
- capitale_sociale_rea?: string | null;
128
- /** Numero soci rea */
129
- numero_soci_rea?: string | null;
130
- /** Stato liquidazione rea */
131
- stato_liquidazione_rea?: string | null;
132
- /** Professione albo */
133
- professione_albo?: string | null;
134
- /** Provincia albo */
135
- provincia_albo?: string | null;
136
- /** Numero albo */
137
- numero_albo?: string | null;
138
- /** Data albo */
139
- data_albo?: string | null;
140
- /** Scadenze automatiche */
141
- scadenze_automatiche?: boolean;
142
- /** Postino valido */
143
- postino_valido?: boolean | null;
144
- /** Postino sync */
145
- postino_sync?: boolean;
146
- /** Postino spoofing */
147
- postino_spoofing?: boolean;
148
- /** Costo dipendente */
149
- costo_dipendente?: string | null;
150
- /** Costo carburante */
151
- costo_carburante?: string | null;
152
- /** Costo adblue */
153
- costo_adblue?: string | null;
154
- /** Ritenuta tipo */
155
- ritenuta_tipo?: string | null;
156
- /** Ritenuta perc */
157
- ritenuta_perc?: string | null;
158
- /** Ritenuta perc totale */
159
- ritenuta_perc_totale?: string;
160
- /** Ritenuta causale */
161
- ritenuta_causale?: string | null;
162
- /** Conto cliente */
163
- conto_cliente?: number | null;
164
- /** Conto vendita */
165
- conto_vendita?: number | null;
166
- /** Conto acquisto */
167
- conto_acquisto?: number | null;
168
- /** Conto iva acquisto */
169
- conto_iva_acquisto?: number | null;
170
- /** Conto iva vendita */
171
- conto_iva_vendita?: number | null;
172
- /** Banca default */
173
- banca_default?: number | null;
174
- /** Pagamento default */
175
- pagamento_default?: number | null;
176
- }
177
- export interface Banca {
178
- /** ID */
179
- id?: number;
180
- /** Codice */
181
- codice: string;
182
- /** Ragione sociale */
183
- ragione_sociale: string;
184
- /** Iban */
185
- iban?: string | null;
186
- /** Bic swift */
187
- bic_swift?: string | null;
188
- /** Abi */
189
- abi?: string | null;
190
- /** Cab */
191
- cab?: string | null;
192
- /** Sia */
193
- sia?: string | null;
194
- /** Contocorrente */
195
- contocorrente?: string | null;
196
- }
197
- export interface BuildingMedia {
198
- /** Id */
199
- id?: string;
200
- /** Media url */
201
- media_url?: string;
202
- /** Media filename */
203
- media_filename?: string;
204
- /** Created at */
205
- created_at?: string;
206
- /** Created by */
207
- created_by?: string | null;
208
- /** Updated at */
209
- updated_at?: string;
210
- /** Updated by */
211
- updated_by?: string | null;
212
- /** Notes */
213
- notes?: string | null;
214
- /** Type */
215
- type: string;
216
- /** Building */
217
- building: string;
218
- /** Media */
219
- media: string;
220
- }
221
- export interface Building {
222
- /** Id */
223
- id?: string;
224
- /** Created at */
225
- created_at?: string;
226
- /** Created by */
227
- created_by?: string | null;
228
- /** Updated at */
229
- updated_at?: string;
230
- /** Updated by */
231
- updated_by?: string | null;
232
- /** Name */
233
- name: string;
234
- /** Internal number */
235
- internal_number?: string | null;
236
- /** Address line 1 */
237
- address_line_1?: string | null;
238
- /** Address line 2 */
239
- address_line_2?: string | null;
240
- /** Street number */
241
- street_number?: string | null;
242
- /** City */
243
- city?: string | null;
244
- /** Zip */
245
- zip?: string | null;
246
- /** Province */
247
- province?: string | null;
248
- /** Notes */
249
- notes?: string | null;
250
- /** Client */
251
- client: string;
252
- }
253
- export interface Catalog {
254
- /** Id */
255
- id?: string;
256
- /** Created at */
257
- created_at?: string;
258
- /** Created by */
259
- created_by?: string | null;
260
- /** Updated at */
261
- updated_at?: string;
262
- /** Updated by */
263
- updated_by?: string | null;
264
- /** Notes */
265
- notes?: string | null;
266
- /** Name */
267
- name: string;
268
- /** Is default */
269
- is_default?: boolean;
270
- }
271
- export interface CausaleTrasporto {
272
- /** ID */
273
- id?: number;
274
- /** Note */
275
- note?: string | null;
276
- /** Creato il */
277
- creato_il?: string;
278
- /** Creato da */
279
- creato_da?: string | null;
280
- /** Aggiornato il */
281
- aggiornato_il?: string;
282
- /** Aggiornato da */
283
- aggiornato_da?: string | null;
284
- /** Codice */
285
- codice: string;
286
- /** Nome */
287
- nome: string;
288
- /** Default */
289
- default?: boolean;
290
- }
291
- export interface ClientCatalog {
292
- /** ID */
293
- id?: number;
294
- /** Is default */
295
- is_default?: boolean;
296
- /** Client */
297
- client: string;
298
- /** Catalog */
299
- catalog: string;
300
- }
301
- export interface ClientUser {
302
- /** Id */
303
- id?: string;
304
- /** User display */
305
- user_display?: string;
306
- /** Client display */
307
- client_display?: string;
308
- /** Is access valid */
309
- is_access_valid?: string;
310
- /** Created at */
311
- created_at?: string;
312
- /** Created by */
313
- created_by?: string | null;
314
- /** Updated at */
315
- updated_at?: string;
316
- /** Updated by */
317
- updated_by?: string | null;
318
- /** Notes */
319
- notes?: string | null;
320
- /** Role */
321
- role: string;
322
- /** Access expires at */
323
- access_expires_at?: string | null;
324
- /** User */
325
- user: string;
326
- /** Client */
327
- client: string;
328
- /** Contract */
329
- contract?: string | null;
330
- }
331
- export interface Client {
332
- /** Id */
333
- id?: string;
334
- buildings?: Array<Building>;
335
- /** Valori: PRIVATO, PUBBLICO */
336
- client_type: string | null;
337
- /** Created at */
338
- created_at?: string;
339
- /** Created by */
340
- created_by?: string | null;
341
- /** Updated at */
342
- updated_at?: string;
343
- /** Updated by */
344
- updated_by?: string | null;
345
- /** Notes */
346
- notes?: string | null;
347
- /** Name */
348
- name: string;
349
- /** Discount */
350
- discount?: number;
351
- /** Pec */
352
- pec?: string | null;
353
- /** Address line 1 */
354
- address_line_1?: string | null;
355
- /** Address line 2 */
356
- address_line_2?: string | null;
357
- /** City */
358
- city?: string | null;
359
- /** Zip */
360
- zip?: string | null;
361
- /** Province */
362
- province?: string | null;
363
- /** Additional attributes */
364
- additional_attributes?: Record<string, unknown>;
365
- }
366
- export interface ClienteFornitore {
367
- /** ID */
368
- id?: number;
369
- /** Pagamento */
370
- pagamento?: string | null;
371
- /** Conto vendita */
372
- conto_vendita?: string | null;
373
- /** Conto acquisto */
374
- conto_acquisto?: string | null;
375
- /** Banca default */
376
- banca_default?: string | null;
377
- /** Codice */
378
- codice?: string | null;
379
- /** Partita iva */
380
- partita_iva?: string | null;
381
- /** Codice fiscale */
382
- codice_fiscale?: string | null;
383
- /** Ragione sociale */
384
- ragione_sociale?: string | null;
385
- /** Nome */
386
- nome?: string | null;
387
- /** Cognome */
388
- cognome?: string | null;
389
- /** Tipo */
390
- tipo?: string | null;
391
- /** Regime fiscale */
392
- regime_fiscale?: string;
393
- /** Indirizzo */
394
- indirizzo: string;
395
- /** N civico */
396
- n_civico?: string | null;
397
- /** Cap */
398
- cap?: string | null;
399
- /** Comune */
400
- comune: string;
401
- /** Provincia */
402
- provincia?: string | null;
403
- /** Nazione */
404
- nazione?: string;
405
- /** Telefono */
406
- telefono?: string | null;
407
- /** Cellulare */
408
- cellulare?: string | null;
409
- /** Fax */
410
- fax?: string | null;
411
- /** Email */
412
- email?: string | null;
413
- /** Pec */
414
- pec?: string | null;
415
- /** Note */
416
- note?: string | null;
417
- /** Creato il */
418
- creato_il?: string;
419
- /** Creato da */
420
- creato_da?: string | null;
421
- /** Aggiornato il */
422
- aggiornato_il?: string;
423
- /** Aggiornato da */
424
- aggiornato_da?: string | null;
425
- /** Cliente */
426
- cliente?: boolean;
427
- /** Fornitore */
428
- fornitore?: boolean;
429
- /** Vettore */
430
- vettore?: boolean;
431
- /** Codice destinatario */
432
- codice_destinatario?: string | null;
433
- /** Note fattura */
434
- note_fattura?: string | null;
435
- /** Esigibilita iva */
436
- esigibilita_iva?: string;
437
- /** Pa */
438
- pa?: boolean;
439
- /** Albo vettore */
440
- albo_vettore?: string | null;
441
- /** Conto cliente */
442
- conto_cliente?: number | null;
443
- /** Conto iva acquisto */
444
- conto_iva_acquisto?: number | null;
445
- /** Conto iva vendita */
446
- conto_iva_vendita?: number | null;
447
- }
448
- export interface ClienteFornitoreBanca {
449
- /** ID */
450
- id?: number;
451
- /** Ragione sociale */
452
- ragione_sociale: string;
453
- /** Iban */
454
- iban?: string | null;
455
- /** Bic swift */
456
- bic_swift?: string | null;
457
- /** Abi */
458
- abi?: string | null;
459
- /** Cab */
460
- cab?: string | null;
461
- /** Sia */
462
- sia?: string | null;
463
- /** Contocorrente */
464
- contocorrente?: string | null;
465
- /** Cliente fornitore */
466
- cliente_fornitore: string | null;
467
- /** Default */
468
- default?: boolean;
469
- }
470
- export interface ClienteFornitoreContatto {
471
- /** ID */
472
- id?: number;
473
- /** Cliente fornitore */
474
- cliente_fornitore: string | null;
475
- /** Valori: tecnico, commerciale, amministrativo */
476
- tipo?: string | null;
477
- /** Note */
478
- note?: string | null;
479
- /** Creato il */
480
- creato_il?: string;
481
- /** Creato da */
482
- creato_da?: string | null;
483
- /** Aggiornato il */
484
- aggiornato_il?: string;
485
- /** Aggiornato da */
486
- aggiornato_da?: string | null;
487
- /** Cognome */
488
- cognome: string;
489
- /** Nome */
490
- nome?: string | null;
491
- /** Telefono */
492
- telefono?: string | null;
493
- /** Cellulare */
494
- cellulare?: string | null;
495
- /** Email */
496
- email?: string | null;
497
- /** Pec */
498
- pec?: string | null;
499
- }
500
- export interface ClienteFornitoreSede {
501
- /** ID */
502
- id?: number;
503
- /** Cliente fornitore */
504
- cliente_fornitore: string | null;
505
- /** Denominazione */
506
- denominazione: string;
507
- /** Indirizzo */
508
- indirizzo: string;
509
- /** Cap */
510
- cap: string;
511
- /** Comune */
512
- comune: string;
513
- /** Provincia */
514
- provincia?: string | null;
515
- /** Nazione */
516
- nazione: string;
517
- /** Email */
518
- email?: string | null;
519
- /** Pec */
520
- pec?: string | null;
521
- /** Codice destinatario */
522
- codice_destinatario?: string | null;
523
- /** Spedizione default */
524
- spedizione_default?: boolean;
525
- /** Telefono */
526
- telefono?: string | null;
527
- /** Note */
528
- note?: string | null;
529
- /** Creato il */
530
- creato_il?: string;
531
- /** Creato da */
532
- creato_da?: string | null;
533
- /** Aggiornato il */
534
- aggiornato_il?: string;
535
- /** Aggiornato da */
536
- aggiornato_da?: string | null;
537
- }
538
- export interface CodiceIVA {
539
- /** ID */
540
- id?: number;
541
- /** Note */
542
- note?: string | null;
543
- /** Creato il */
544
- creato_il?: string;
545
- /** Creato da */
546
- creato_da?: string | null;
547
- /** Aggiornato il */
548
- aggiornato_il?: string;
549
- /** Aggiornato da */
550
- aggiornato_da?: string | null;
551
- /** Codice */
552
- codice: string;
553
- /** Descrizione */
554
- descrizione: string;
555
- /** Imposta */
556
- imposta: string;
557
- /** Indetraibile */
558
- indetraibile?: string;
559
- /** Classe */
560
- classe?: string | null;
561
- /** Natura */
562
- natura?: string | null;
563
- /** Data scadenza */
564
- data_scadenza?: string | null;
565
- /** Bollo */
566
- bollo?: boolean;
567
- }
568
- export interface Comment {
569
- /** Id */
570
- id?: string;
571
- /** Created at */
572
- created_at?: string;
573
- /** Created by */
574
- created_by?: string | null;
575
- /** Updated at */
576
- updated_at?: string;
577
- /** Updated by */
578
- updated_by?: string | null;
579
- /** Notes */
580
- notes?: string | null;
581
- /** Content */
582
- content: string;
583
- /** Visit equipment */
584
- visit_equipment: string;
585
- }
586
- export interface Contact {
587
- /** Id */
588
- id?: string;
589
- /** Created at */
590
- created_at?: string;
591
- /** Created by */
592
- created_by?: string | null;
593
- /** Updated at */
594
- updated_at?: string;
595
- /** Updated by */
596
- updated_by?: string | null;
597
- /** Name */
598
- name: string;
599
- /** Phone */
600
- phone?: string | null;
601
- /** Email */
602
- email?: string | null;
603
- /** Role */
604
- role?: string | null;
605
- /** Notes */
606
- notes?: string | null;
607
- /** Client */
608
- client?: string | null;
609
- /** Building */
610
- building?: string | null;
611
- }
612
- export interface Contract {
613
- /** Id */
614
- id?: string;
615
- /** Created at */
616
- created_at?: string;
617
- /** Created by */
618
- created_by?: string | null;
619
- /** Updated at */
620
- updated_at?: string;
621
- /** Updated by */
622
- updated_by?: string | null;
623
- /** Notes */
624
- notes?: string | null;
625
- /** Name */
626
- name?: string | null;
627
- /** Start date */
628
- start_date: string;
629
- /** End date */
630
- end_date: string;
631
- /** Client */
632
- client: string;
633
- }
634
- export interface DocumentoLink {
635
- /** ID */
636
- id?: number;
637
- /** Numero documento */
638
- numero_documento: string;
639
- /** Movimento */
640
- movimento: string;
641
- /** Tipo */
642
- tipo: string;
643
- }
644
- export interface FatturaElettronicaInvio {
645
- /** ID */
646
- id?: number;
647
- /** Guid */
648
- guid?: string | null;
649
- /** Stato */
650
- stato: string;
651
- /** Data invio */
652
- data_invio?: string | null;
653
- /** Documento */
654
- documento?: string;
655
- /** Notifiche */
656
- notifiche?: string;
657
- /** Postino stato */
658
- postino_stato?: string | null;
659
- /** Postino descrizione */
660
- postino_descrizione?: string | null;
661
- }
662
- export interface Documento {
663
- /** ID */
664
- id?: number;
665
- /** Sezionale */
666
- sezionale?: string | null;
667
- /** Cliente fornitore */
668
- cliente_fornitore?: string | null;
669
- /** Vettore */
670
- vettore?: string | null;
671
- /** Valori: TD01, TD24, TD02, TD03, TD04, TD05, TD06, TD16, TD17, TD18, TD19, TD20, TD21, TD22, TD23, TD25, TD26, TD27 */
672
- tipo_fattura?: string | null;
673
- /** Valori: non caricata, caricata, invio in corso, inviata, consegnata, annullata, accettata, rifiutata, scartata, decorrenza_termini, mancata_consegna, recapito_fallito */
674
- stato_fe?: string | null;
675
- /** Banca */
676
- banca?: string | null;
677
- /** Banca cliente fornitore */
678
- banca_cliente_fornitore?: string | null;
679
- /** Pagamento */
680
- pagamento?: string | null;
681
- /** Destinazione */
682
- destinazione?: string | null;
683
- /** Data */
684
- data?: string;
685
- /** Data trasporto */
686
- data_trasporto?: string | null;
687
- allegati?: Array<Allegato>;
688
- riferimenti?: Array<DocumentoLink>;
689
- derivati?: Array<DocumentoLink>;
690
- /** Causale trasporto */
691
- causale_trasporto?: string | null;
692
- /** Aspetto */
693
- aspetto?: string | null;
694
- /** Magazzino */
695
- magazzino?: string | null;
696
- /** Valori: franco, assegnato */
697
- tipo_porto?: string | null;
698
- /** Valori: destinatario, vettore, mittente */
699
- tipo_trasporto?: string | null;
700
- /** Valori: I, D, S */
701
- esigibilita_iva?: string | null;
702
- /** Valori: A, B, C, D, E, F, G, H, I, J, K, L, L1, M, M1, M2, N, O, O1, P, Q, R, S, T, U, V, V1, V2, W, X, Y, ZO */
703
- ritenuta_causale?: string | null;
704
- /** Valori: RT01, RT02, RT03, RT04, RT05, RT06 */
705
- ritenuta_tipo?: string | null;
706
- fe_invio?: FatturaElettronicaInvio;
707
- /** Numero documento */
708
- numero_documento?: string;
709
- /** Data ora prelievo */
710
- data_ora_prelievo?: string | null;
711
- /** Cig list */
712
- cig_list?: string;
713
- /** Evaso status */
714
- evaso_status?: string;
715
- /** Evaso status color */
716
- evaso_status_color?: string;
717
- /** Note */
718
- note?: string | null;
719
- /** Creato il */
720
- creato_il?: string;
721
- /** Creato da */
722
- creato_da?: string | null;
723
- /** Aggiornato il */
724
- aggiornato_il?: string;
725
- /** Aggiornato da */
726
- aggiornato_da?: string | null;
727
- /** Tipo */
728
- tipo?: string;
729
- /** Movimento */
730
- movimento?: string;
731
- /** Azienda documento */
732
- azienda_documento?: Record<string, unknown>;
733
- /** Cliente fornitore documento */
734
- cliente_fornitore_documento?: Record<string, unknown>;
735
- /** Ora trasporto */
736
- ora_trasporto?: string | null;
737
- /** Numero */
738
- numero?: number;
739
- /** Numero documento fornitore */
740
- numero_documento_fornitore?: string | null;
741
- /** Condizioni fornitura */
742
- condizioni_fornitura?: string | null;
743
- /** Banca ragione sociale */
744
- banca_ragione_sociale?: string | null;
745
- /** Banca iban */
746
- banca_iban?: string | null;
747
- /** Banca abi */
748
- banca_abi?: string | null;
749
- /** Banca cab */
750
- banca_cab?: string | null;
751
- /** Banca bic swift */
752
- banca_bic_swift?: string | null;
753
- /** Stato */
754
- stato?: string;
755
- /** Sconto magg */
756
- sconto_magg?: string | null;
757
- /** Tipo sconto */
758
- tipo_sconto?: string | null;
759
- /** Importo sconto */
760
- importo_sconto?: string | null;
761
- riepilogo_iva?: Array<Record<string, unknown>> | null;
762
- /** Imponibile */
763
- imponibile?: string | null;
764
- /** Totale iva */
765
- totale_iva?: string | null;
766
- /** Totale */
767
- totale?: string | null;
768
- /** Bollo */
769
- bollo?: string | null;
770
- /** Netto */
771
- netto?: string | null;
772
- /** Arrotondamento */
773
- arrotondamento?: string | null;
774
- /** Note cliente fornitore */
775
- note_cliente_fornitore?: string | null;
776
- /** Trasporto */
777
- trasporto?: string | null;
778
- /** Mezzo trasporto */
779
- mezzo_trasporto?: string | null;
780
- /** Descrizione trasporto */
781
- descrizione_trasporto?: string | null;
782
- /** Colli */
783
- colli?: number | null;
784
- /** Invio email */
785
- invio_email?: boolean;
786
- /** Riferimenti fe */
787
- riferimenti_fe?: Record<string, unknown>;
788
- riferimenti_fe_ddt?: Array<Record<string, unknown>> | null;
789
- /** Data anticipo */
790
- data_anticipo?: string | null;
791
- /** Autofattura */
792
- autofattura?: boolean | null;
793
- /** Nome operatore */
794
- nome_operatore?: string | null;
795
- /** Targa mezzo */
796
- targa_mezzo?: string | null;
797
- /** Rientro effettuato */
798
- rientro_effettuato?: boolean;
799
- /** Ritenuta perc */
800
- ritenuta_perc?: string | null;
801
- /** Ritenuta perc totale */
802
- ritenuta_perc_totale?: string;
803
- /** Ritenuta */
804
- ritenuta?: string | null;
805
- /** Azienda */
806
- azienda?: number;
807
- }
808
- export interface DocumentoRiga {
809
- /** ID */
810
- id?: number;
811
- /** Documento */
812
- documento: string | null;
813
- /** Articolo */
814
- articolo?: string | null;
815
- /** Progressivo */
816
- progressivo?: number;
817
- /** Codice */
818
- codice?: string | null;
819
- /** Codice ean */
820
- codice_ean?: string | null;
821
- /** Codice cliente fornitore */
822
- codice_cliente_fornitore?: string | null;
823
- /** Descrizione */
824
- descrizione: string;
825
- /** Quantita */
826
- quantita?: string | null;
827
- /** Importo */
828
- importo?: string | null;
829
- /** Valori: percentuale, netto */
830
- tipo_sconto?: string | null;
831
- /** Sconto */
832
- sconto?: string | null;
833
- /** Totale */
834
- totale?: string | null;
835
- /** Codice iva */
836
- codice_iva?: string | null;
837
- /** Unitamisura */
838
- unitamisura?: string | null;
839
- /** Note */
840
- note?: string | null;
841
- /** Pianoconti */
842
- pianoconti?: string | null;
843
- /** Ritenuta */
844
- ritenuta?: boolean;
845
- }
846
- export interface Equipment {
847
- /** Id */
848
- id?: string;
849
- /** Qr code */
850
- qr_code?: string;
851
- /** Created at */
852
- created_at?: string;
853
- /** Created by */
854
- created_by?: string | null;
855
- /** Updated at */
856
- updated_at?: string;
857
- /** Updated by */
858
- updated_by?: string | null;
859
- /** Notes */
860
- notes?: string | null;
861
- /** Is active */
862
- is_active?: boolean;
863
- /** Equipment model */
864
- equipment_model: string;
865
- /** Registry */
866
- registry: string;
867
- }
868
- export interface EquipmentDocument {
869
- /** Id */
870
- id?: string;
871
- /** Media url */
872
- media_url?: string;
873
- /** Media filename */
874
- media_filename?: string;
875
- /** Created at */
876
- created_at?: string;
877
- /** Created by */
878
- created_by?: string | null;
879
- /** Updated at */
880
- updated_at?: string;
881
- /** Updated by */
882
- updated_by?: string | null;
883
- /** Notes */
884
- notes?: string | null;
885
- /** Type */
886
- type: string;
887
- /** Equipment */
888
- equipment: string;
889
- /** Media */
890
- media: string;
891
- }
892
- export interface EquipmentField {
893
- /** ID */
894
- id?: number;
895
- value?: Array<string>;
896
- /** Order */
897
- order?: number;
898
- /** Equipment */
899
- equipment: string;
900
- /** Field */
901
- field: string;
902
- }
903
- export interface EquipmentModelChecklistItem {
904
- /** Id */
905
- id?: string;
906
- /** Created at */
907
- created_at?: string;
908
- /** Created by */
909
- created_by?: string | null;
910
- /** Updated at */
911
- updated_at?: string;
912
- /** Updated by */
913
- updated_by?: string | null;
914
- /** Notes */
915
- notes?: string | null;
916
- /** Ordine di visualizzazione nella checklist. */
917
- order?: number;
918
- /** Descrizione dell'elemento da verificare (es. Verificare manometro). */
919
- label: string;
920
- /** Se True, l'elemento deve essere verificato obbligatoriamente. */
921
- is_mandatory?: boolean;
922
- /** Equipment model */
923
- equipment_model: string;
924
- }
925
- export interface EquipmentModel {
926
- /** Id */
927
- id?: string;
928
- /** Name */
929
- name: string;
930
- /** Is technical room */
931
- is_technical_room?: boolean;
932
- /** Inspection yearly interval */
933
- inspection_yearly_interval?: number | null;
934
- /** Inspection yearly interval legacy */
935
- inspection_yearly_interval_legacy?: number | null;
936
- /** Testing yearly interval */
937
- testing_yearly_interval?: number | null;
938
- /** Expire years */
939
- expire_years?: number | null;
940
- registry_models: Array<string>;
941
- fields?: Array<string>;
942
- checklist_items?: Array<EquipmentModelChecklistItem>;
943
- /** Created at */
944
- created_at?: string;
945
- /** Updated at */
946
- updated_at?: string;
947
- /** Created by */
948
- created_by?: string | null;
949
- /** Updated by */
950
- updated_by?: string | null;
951
- /** Notes */
952
- notes?: string | null;
953
- }
954
- export interface FatturaElettronicaRicezioneRiepilogoIva {
955
- /** ID */
956
- id?: number;
957
- /** Fe ricezione */
958
- fe_ricezione: number;
959
- /** Aliquota iva */
960
- aliquota_iva: string | null;
961
- /** Imponibile */
962
- imponibile: string;
963
- /** Imposta */
964
- imposta: string;
965
- /** Conto */
966
- conto: string | null;
967
- /** Natura */
968
- natura?: string | null;
969
- /** Riferimento */
970
- riferimento?: string | null;
971
- }
972
- export interface Scadenzario {
973
- /** ID */
974
- id?: number;
975
- /** Documento */
976
- documento?: string | null;
977
- /** Tipologia */
978
- tipologia: string | null;
979
- /** Banca */
980
- banca: string | null;
981
- /** Valori: MP01, MP02, MP03, MP04, MP05, MP06, MP07, MP08, MP09, MP10, MP11, MP12, MP13, MP14, MP15, MP16, MP17, MP18, MP19, MP20, MP21, MP22, MP23 */
982
- tipo_pagamento: string | null;
983
- /** Tipologia pagamento */
984
- tipologia_pagamento?: string;
985
- /** Cliente fornitore */
986
- cliente_fornitore: string | null;
987
- /** Ultimo pagamento */
988
- ultimo_pagamento?: string;
989
- /** Tipo */
990
- tipo?: string;
991
- /** Documento fe */
992
- documento_fe?: string;
993
- /** Documento cliente fornitore */
994
- documento_cliente_fornitore?: string;
995
- /** Creato il */
996
- creato_il?: string;
997
- /** Creato da */
998
- creato_da?: string | null;
999
- /** Aggiornato il */
1000
- aggiornato_il?: string;
1001
- /** Aggiornato da */
1002
- aggiornato_da?: string | null;
1003
- /** Data */
1004
- data: string;
1005
- /** Importo */
1006
- importo: string;
1007
- /** Importo pagato */
1008
- importo_pagato?: string;
1009
- /** Arrotondamento */
1010
- arrotondamento?: string;
1011
- /** Sollecito */
1012
- sollecito?: boolean;
1013
- /** Note */
1014
- note?: string | null;
1015
- /** Fe ricezione */
1016
- fe_ricezione?: number | null;
1017
- }
1018
- export interface FatturaElettronicaRicezione {
1019
- /** ID */
1020
- id?: number;
1021
- /** Guid */
1022
- guid: string;
1023
- /** Fe numero documento */
1024
- fe_numero_documento?: string | null;
1025
- /** Postino descrizione */
1026
- postino_descrizione?: string | null;
1027
- /** Fe data documento */
1028
- fe_data_documento?: string | null;
1029
- /** Fe mittente denominazione */
1030
- fe_mittente_denominazione?: string | null;
1031
- /** Fe mittente partita iva */
1032
- fe_mittente_partita_iva?: string | null;
1033
- /** Fe mittente codice fiscale */
1034
- fe_mittente_codice_fiscale?: string | null;
1035
- /** Fe imponibile */
1036
- fe_imponibile?: string | null;
1037
- /** Fe imposta */
1038
- fe_imposta?: string | null;
1039
- /** Fe totale */
1040
- fe_totale?: string | null;
1041
- /** Data ricezione */
1042
- data_ricezione?: string | null;
1043
- /** Fe tipo */
1044
- fe_tipo?: string | null;
1045
- /** Fe anno */
1046
- fe_anno?: string;
1047
- /** Netto */
1048
- netto?: string;
1049
- /** Contab */
1050
- contab?: string;
1051
- riepilogo_iva?: Array<FatturaElettronicaRicezioneRiepilogoIva>;
1052
- scadenze: Array<Scadenzario>;
1053
- /** Da pagare */
1054
- da_pagare?: boolean;
1055
- /** Note */
1056
- note?: string | null;
1057
- }
1058
- export interface FatturaElettronicaRicezioneRiga {
1059
- /** ID */
1060
- id?: number;
1061
- /** Fe ricezione */
1062
- fe_ricezione: number;
1063
- /** Progressivo */
1064
- progressivo: number;
1065
- /** Codice */
1066
- codice?: string | null;
1067
- /** Descrizione */
1068
- descrizione: string;
1069
- /** Quantita */
1070
- quantita?: string | null;
1071
- /** Importo */
1072
- importo?: string | null;
1073
- /** Totale */
1074
- totale?: string | null;
1075
- /** Aliquota iva */
1076
- aliquota_iva?: string | null;
1077
- /** Natura */
1078
- natura?: string | null;
1079
- /** Conto */
1080
- conto: string | null;
1081
- /** Data riferimento */
1082
- data_riferimento?: string | null;
1083
- }
1084
- export interface Field {
1085
- /** Id */
1086
- id?: string;
1087
- /** Created at */
1088
- created_at?: string;
1089
- /** Created by */
1090
- created_by?: string | null;
1091
- /** Updated at */
1092
- updated_at?: string;
1093
- /** Updated by */
1094
- updated_by?: string | null;
1095
- /** Notes */
1096
- notes?: string | null;
1097
- /** Name */
1098
- name: string;
1099
- /** Format */
1100
- format?: string;
1101
- /** Type */
1102
- type?: string;
1103
- /** Is active */
1104
- is_active?: boolean;
1105
- /** Is mandatory */
1106
- is_mandatory?: boolean;
1107
- /** Allow multiple */
1108
- allow_multiple?: boolean;
1109
- dropdown_options?: Array<string>;
1110
- /** Min value */
1111
- min_value?: number | null;
1112
- /** Max value */
1113
- max_value?: number | null;
1114
- }
1115
- export interface Law {
1116
- /** Id */
1117
- id?: string;
1118
- /** Created at */
1119
- created_at?: string;
1120
- /** Created by */
1121
- created_by?: string | null;
1122
- /** Updated at */
1123
- updated_at?: string;
1124
- /** Updated by */
1125
- updated_by?: string | null;
1126
- /** Notes */
1127
- notes?: string | null;
1128
- /** Name */
1129
- name: string;
1130
- /** Description */
1131
- description?: string | null;
1132
- products?: Array<string>;
1133
- }
1134
- export interface Magazzino {
1135
- /** ID */
1136
- id?: number;
1137
- /** Note */
1138
- note?: string | null;
1139
- /** Creato il */
1140
- creato_il?: string;
1141
- /** Creato da */
1142
- creato_da?: string | null;
1143
- /** Aggiornato il */
1144
- aggiornato_il?: string;
1145
- /** Aggiornato da */
1146
- aggiornato_da?: string | null;
1147
- /** Codice */
1148
- codice: string;
1149
- /** Nome */
1150
- nome: string;
1151
- /** Esterno */
1152
- esterno?: boolean;
1153
- }
1154
- export interface Media {
1155
- /** Id */
1156
- id?: string;
1157
- /** Type */
1158
- type: string;
1159
- /** File url */
1160
- file_url?: string;
1161
- /** Filename */
1162
- filename?: string;
1163
- /** Lista entità associate. Possibili kind: building, product, equipment, visit_equipment, registry_model, visit. Ogni elemento ha kind e id (UUID). */
1164
- sources?: string;
1165
- }
1166
- export interface MovimentoContabile {
1167
- /** ID */
1168
- id?: number;
1169
- /** Banca */
1170
- banca: string | null;
1171
- /** Valori: MP01, MP02, MP03, MP04, MP05, MP06, MP07, MP08, MP09, MP10, MP11, MP12, MP13, MP14, MP15, MP16, MP17, MP18, MP19, MP20, MP21, MP22, MP23 */
1172
- tipo_pagamento: string | null;
1173
- /** Valori: attivo, passivo */
1174
- movimento: string | null;
1175
- /** Anagrafica */
1176
- anagrafica?: string;
1177
- /** Documento */
1178
- documento?: string;
1179
- /** Documento fe */
1180
- documento_fe?: string;
1181
- allegati?: Array<Allegato>;
1182
- /** Creato il */
1183
- creato_il?: string;
1184
- /** Creato da */
1185
- creato_da?: string | null;
1186
- /** Aggiornato il */
1187
- aggiornato_il?: string;
1188
- /** Aggiornato da */
1189
- aggiornato_da?: string | null;
1190
- /** Importo */
1191
- importo: string;
1192
- /** Data */
1193
- data?: string | null;
1194
- /** Arrotondamento */
1195
- arrotondamento?: string | null;
1196
- /** Note */
1197
- note?: string | null;
1198
- /** Scadenzario */
1199
- scadenzario?: number | null;
1200
- }
1201
- export interface MovimentoMagazzino {
1202
- /** ID */
1203
- id?: number;
1204
- /** Articolo */
1205
- articolo: string;
1206
- /** Magazzino */
1207
- magazzino: string;
1208
- /** Note */
1209
- note?: string | null;
1210
- /** Creato il */
1211
- creato_il?: string;
1212
- /** Creato da */
1213
- creato_da?: string | null;
1214
- /** Aggiornato il */
1215
- aggiornato_il?: string;
1216
- /** Aggiornato da */
1217
- aggiornato_da?: string | null;
1218
- /** Tipo */
1219
- tipo: string;
1220
- /** Quantita */
1221
- quantita: string;
1222
- /** Data */
1223
- data: string;
1224
- /** Causale */
1225
- causale?: string | null;
1226
- /** Documento riga */
1227
- documento_riga?: number | null;
1228
- }
1229
- export interface NonConformityProduct {
1230
- /** Id */
1231
- id?: string;
1232
- /** Non conformity */
1233
- non_conformity: string;
1234
- /** Product */
1235
- product: string;
1236
- /** Created at */
1237
- created_at?: string;
1238
- /** Created by */
1239
- created_by?: string | null;
1240
- /** Updated at */
1241
- updated_at?: string;
1242
- /** Updated by */
1243
- updated_by?: string | null;
1244
- /** Notes */
1245
- notes?: string | null;
1246
- /** Is active */
1247
- is_active?: boolean;
1248
- }
1249
- export interface NonConformity {
1250
- /** Id */
1251
- id?: string;
1252
- registry_models?: Array<string>;
1253
- /** Created at */
1254
- created_at?: string;
1255
- /** Created by */
1256
- created_by?: string | null;
1257
- /** Updated at */
1258
- updated_at?: string;
1259
- /** Updated by */
1260
- updated_by?: string | null;
1261
- /** Notes */
1262
- notes?: string | null;
1263
- /** Name */
1264
- name: string;
1265
- /** Is sign */
1266
- is_sign?: boolean;
1267
- /** Is equipment */
1268
- is_equipment?: boolean;
1269
- /** Is replacement */
1270
- is_replacement?: boolean;
1271
- /** Is replacement if no inspection */
1272
- is_replacement_if_no_inspection?: boolean;
1273
- /** Is critical */
1274
- is_critical?: boolean;
1275
- /** Is informative */
1276
- is_informative?: boolean;
1277
- equipment_models?: Array<string>;
1278
- }
1279
- export interface NonConformityEquipment {
1280
- /** Id */
1281
- id?: string;
1282
- /** Created at */
1283
- created_at?: string;
1284
- /** Created by */
1285
- created_by?: string | null;
1286
- /** Updated at */
1287
- updated_at?: string;
1288
- /** Updated by */
1289
- updated_by?: string | null;
1290
- /** Notes */
1291
- notes?: string | null;
1292
- /** Is active */
1293
- is_active?: boolean;
1294
- /** Resolved at */
1295
- resolved_at?: string | null;
1296
- /** Equipment */
1297
- equipment: string;
1298
- /** Non conformity */
1299
- non_conformity: string;
1300
- /** Visit equipment */
1301
- visit_equipment?: string | null;
1302
- }
1303
- export interface OfferItemProduct {
1304
- /** Id */
1305
- id?: string;
1306
- /** ProductSupplier ID — fornitore scelto per questo articolo in offerta. */
1307
- supplier?: string | null;
1308
- /** Created at */
1309
- created_at?: string;
1310
- /** Created by */
1311
- created_by?: string | null;
1312
- /** Updated at */
1313
- updated_at?: string;
1314
- /** Updated by */
1315
- updated_by?: string | null;
1316
- /** Notes */
1317
- notes?: string | null;
1318
- /** Offer item */
1319
- offer_item: string;
1320
- /** Product */
1321
- product: string;
1322
- /** Price tag */
1323
- price_tag?: string | null;
1324
- }
1325
- export interface OfferItem {
1326
- /** Id */
1327
- id?: string;
1328
- /** Created at */
1329
- created_at?: string;
1330
- /** Created by */
1331
- created_by?: string | null;
1332
- /** Updated at */
1333
- updated_at?: string;
1334
- /** Updated by */
1335
- updated_by?: string | null;
1336
- /** Notes */
1337
- notes?: string | null;
1338
- /** Price */
1339
- price?: string;
1340
- /** Cost */
1341
- cost?: string;
1342
- /** Description */
1343
- description?: string | null;
1344
- /** Offer */
1345
- offer: string;
1346
- /** Non conformity equipment */
1347
- non_conformity_equipment?: string | null;
1348
- /** Registry */
1349
- registry?: string | null;
1350
- }
1351
- export interface Offer {
1352
- /** Id */
1353
- id?: string;
1354
- /** Created at */
1355
- created_at?: string;
1356
- /** Created by */
1357
- created_by?: string | null;
1358
- /** Updated at */
1359
- updated_at?: string;
1360
- /** Updated by */
1361
- updated_by?: string | null;
1362
- /** Notes */
1363
- notes?: string | null;
1364
- /** Name */
1365
- name: string;
1366
- /** Number */
1367
- number: string;
1368
- /** Risk value */
1369
- risk_value?: number;
1370
- /** Status */
1371
- status?: string;
1372
- /** Client */
1373
- client: string;
1374
- }
1375
- export interface PagamentoRiga {
1376
- /** ID */
1377
- id?: number;
1378
- /** Giorni */
1379
- giorni: number;
1380
- /** Percentuale */
1381
- percentuale: string;
1382
- }
1383
- export interface Pagamento {
1384
- /** ID */
1385
- id?: number;
1386
- /** Codice */
1387
- codice: string;
1388
- /** Descrizione */
1389
- descrizione?: string;
1390
- /** Valido */
1391
- valido?: string;
1392
- /** Valori: MP01, MP02, MP03, MP04, MP05, MP06, MP07, MP08, MP09, MP10, MP11, MP12, MP13, MP14, MP15, MP16, MP17, MP18, MP19, MP20, MP21, MP22, MP23 */
1393
- tipo: string | null;
1394
- righe?: Array<PagamentoRiga>;
1395
- }
1396
- export interface PianoConti {
1397
- /** ID */
1398
- id?: number;
1399
- /** Conto */
1400
- conto: string;
1401
- /** Descrizione */
1402
- descrizione: string;
1403
- /** Tipologia */
1404
- tipologia: string;
1405
- }
1406
- export interface PriceTag {
1407
- /** Id */
1408
- id?: string;
1409
- /** Product */
1410
- product: string;
1411
- /** Catalog */
1412
- catalog: string;
1413
- /** Created at */
1414
- created_at?: string;
1415
- /** Created by */
1416
- created_by?: string | null;
1417
- /** Updated at */
1418
- updated_at?: string;
1419
- /** Updated by */
1420
- updated_by?: string | null;
1421
- /** Notes */
1422
- notes?: string | null;
1423
- /** Codice identificativo del listino (es. codice articolo nel catalogo cliente). */
1424
- code?: string | null;
1425
- /** Price */
1426
- price: number;
1427
- }
1428
- export interface ProductAccessory {
1429
- /** Id */
1430
- id?: string;
1431
- /** Product */
1432
- product: string | null;
1433
- /** Accessory */
1434
- accessory: string | null;
1435
- /** Created at */
1436
- created_at?: string;
1437
- /** Created by */
1438
- created_by?: string | null;
1439
- /** Updated at */
1440
- updated_at?: string;
1441
- /** Updated by */
1442
- updated_by?: string | null;
1443
- /** Notes */
1444
- notes?: string | null;
1445
- }
1446
- export interface ProductFamily {
1447
- /** Id */
1448
- id?: string;
1449
- /** Created at */
1450
- created_at?: string;
1451
- /** Created by */
1452
- created_by?: string | null;
1453
- /** Updated at */
1454
- updated_at?: string;
1455
- /** Updated by */
1456
- updated_by?: string | null;
1457
- /** Notes */
1458
- notes?: string | null;
1459
- /** Name */
1460
- name: string;
1461
- /** Description */
1462
- description?: string | null;
1463
- }
1464
- export interface ProductInstallation {
1465
- /** Id */
1466
- id?: string;
1467
- /** Product */
1468
- product: string | null;
1469
- /** Equipment */
1470
- equipment: string | null;
1471
- /** Created at */
1472
- created_at?: string;
1473
- /** Created by */
1474
- created_by?: string | null;
1475
- /** Updated at */
1476
- updated_at?: string;
1477
- /** Updated by */
1478
- updated_by?: string | null;
1479
- /** Notes */
1480
- notes?: string | null;
1481
- /** Data di installazione/sostituzione. */
1482
- installed_at: string;
1483
- }
1484
- export interface ProductLaw {
1485
- /** ID */
1486
- id?: number;
1487
- /** Product */
1488
- product: string;
1489
- /** Law */
1490
- law: string;
1491
- }
1492
- export interface ProductMedia {
1493
- /** Id */
1494
- id?: string;
1495
- /** Media url */
1496
- media_url?: string;
1497
- /** Media filename */
1498
- media_filename?: string;
1499
- /** Created at */
1500
- created_at?: string;
1501
- /** Created by */
1502
- created_by?: string | null;
1503
- /** Updated at */
1504
- updated_at?: string;
1505
- /** Updated by */
1506
- updated_by?: string | null;
1507
- /** Notes */
1508
- notes?: string | null;
1509
- /** Type */
1510
- type: string;
1511
- /** Product */
1512
- product: string;
1513
- /** Media */
1514
- media: string;
1515
- }
1516
- export interface ProductSupplier {
1517
- /** Id */
1518
- id?: string;
1519
- /** Supplier */
1520
- supplier: string | null;
1521
- /** Created at */
1522
- created_at?: string;
1523
- /** Created by */
1524
- created_by?: string | null;
1525
- /** Updated at */
1526
- updated_at?: string;
1527
- /** Updated by */
1528
- updated_by?: string | null;
1529
- /** Notes */
1530
- notes?: string | null;
1531
- /** Codice del prodotto usato dal fornitore. */
1532
- supplier_code?: string | null;
1533
- /** Prezzo di acquisto da questo fornitore. */
1534
- supplier_price?: number;
1535
- /** Descrizione commerciale per questo fornitore. */
1536
- commercial_description?: string | null;
1537
- /** Product */
1538
- product: string;
1539
- }
1540
- export interface LawInline {
1541
- /** Id */
1542
- id?: string;
1543
- /** Name */
1544
- name: string;
1545
- /** Description */
1546
- description?: string | null;
1547
- }
1548
- export interface ProductSupplierInline {
1549
- /** Id */
1550
- id?: string;
1551
- /** Supplier id */
1552
- supplier_id?: string;
1553
- /** Supplier name */
1554
- supplier_name?: string;
1555
- /** Supplier code */
1556
- supplier_code?: string | null;
1557
- /** Supplier price */
1558
- supplier_price?: number;
1559
- /** Commercial description */
1560
- commercial_description?: string | null;
1561
- }
1562
- export interface ProductAccessoryInline {
1563
- /** Id */
1564
- id?: string;
1565
- /** Accessory id */
1566
- accessory_id?: string;
1567
- /** Accessory code */
1568
- accessory_code?: string;
1569
- /** Accessory name */
1570
- accessory_name?: string;
1571
- }
1572
- export interface Product {
1573
- /** Id */
1574
- id?: string;
1575
- laws?: Array<LawInline>;
1576
- product_suppliers?: Array<ProductSupplierInline>;
1577
- accessories?: Array<ProductAccessoryInline>;
1578
- /** PRODUCT, SERVICE o CONSUMABLE */
1579
- product_type?: string | null;
1580
- /** Expiry non conformity */
1581
- expiry_non_conformity?: string | null;
1582
- /** UUID della famiglia (da GET /api/product-family/), non il nome */
1583
- family?: string | null;
1584
- /** Created at */
1585
- created_at?: string;
1586
- /** Created by */
1587
- created_by?: string | null;
1588
- /** Updated at */
1589
- updated_at?: string;
1590
- /** Updated by */
1591
- updated_by?: string | null;
1592
- /** Notes */
1593
- notes?: string | null;
1594
- /** Code */
1595
- code: string;
1596
- /** Name */
1597
- name: string;
1598
- /** Breve descrizione del prodotto. */
1599
- short_description?: string | null;
1600
- /** Labor hours */
1601
- labor_hours?: number | null;
1602
- /** Il prodotto può comparire al massimo una volta per offerta. */
1603
- is_unique?: boolean;
1604
- /** Mesi prima che il prodotto debba essere sostituito. NULL = non scade. */
1605
- expiry_months?: number | null;
1606
- }
1607
- export interface Registry {
1608
- /** Id */
1609
- id?: string;
1610
- /** Name */
1611
- name: string;
1612
- /** Is archived */
1613
- is_archived?: boolean;
1614
- /** Visible in offers */
1615
- visible_in_offers?: boolean;
1616
- /** Registry model */
1617
- registry_model: string;
1618
- /** Building */
1619
- building: string;
1620
- /** Created at */
1621
- created_at?: string;
1622
- /** Created by */
1623
- created_by?: string | null;
1624
- /** Updated at */
1625
- updated_at?: string;
1626
- /** Updated by */
1627
- updated_by?: string | null;
1628
- /** Notes */
1629
- notes?: string | null;
1630
- /** Icon url */
1631
- icon_url?: string;
1632
- /** Icon filename */
1633
- icon_filename?: string;
1634
- }
1635
- export interface RegistryModel {
1636
- /** Id */
1637
- id?: string;
1638
- fields?: Array<string>;
1639
- /** Icon url */
1640
- icon_url?: string;
1641
- /** Icon filename */
1642
- icon_filename?: string;
1643
- /** Created at */
1644
- created_at?: string;
1645
- /** Created by */
1646
- created_by?: string | null;
1647
- /** Updated at */
1648
- updated_at?: string;
1649
- /** Updated by */
1650
- updated_by?: string | null;
1651
- /** Notes */
1652
- notes?: string | null;
1653
- /** Name */
1654
- name: string;
1655
- /** Description */
1656
- description?: string | null;
1657
- /** Offer description */
1658
- offer_description?: string | null;
1659
- /** Progressive number */
1660
- progressive_number?: number;
1661
- /** Icona del modello di registro (un solo file immagine). */
1662
- icon?: string | null;
1663
- }
1664
- export interface ScadenzarioTipologia {
1665
- /** ID */
1666
- id?: number;
1667
- /** Valori: attivo, passivo */
1668
- movimento: string | null;
1669
- /** Nome */
1670
- nome: string;
1671
- }
1672
- export interface Sezionale {
1673
- /** ID */
1674
- id?: number;
1675
- /** Codice */
1676
- codice: string;
1677
- /** Descrizione */
1678
- descrizione: string;
1679
- /** Tipo */
1680
- tipo: string;
1681
- /** Movimento */
1682
- movimento: string;
1683
- /** Aspetto */
1684
- aspetto?: string | null;
1685
- /** Causale trasporto */
1686
- causale_trasporto?: string | null;
1687
- /** Autofattura */
1688
- autofattura?: boolean;
1689
- }
1690
- export interface Supplier {
1691
- /** Id */
1692
- id?: string;
1693
- /** Valori: RIBA_30, RIBA_60, RIBA_90, RIBA_120, ANTICIPO, CONTANTI */
1694
- payment_terms?: string | null;
1695
- /** Created at */
1696
- created_at?: string;
1697
- /** Created by */
1698
- created_by?: string | null;
1699
- /** Updated at */
1700
- updated_at?: string;
1701
- /** Updated by */
1702
- updated_by?: string | null;
1703
- /** Notes */
1704
- notes?: string | null;
1705
- /** Name */
1706
- name: string;
1707
- }
1708
- export interface TipoArticolo {
1709
- /** ID */
1710
- id?: number;
1711
- /** Note */
1712
- note?: string | null;
1713
- /** Creato il */
1714
- creato_il?: string;
1715
- /** Creato da */
1716
- creato_da?: string | null;
1717
- /** Aggiornato il */
1718
- aggiornato_il?: string;
1719
- /** Aggiornato da */
1720
- aggiornato_da?: string | null;
1721
- /** Codice */
1722
- codice: string;
1723
- /** Nome */
1724
- nome: string;
1725
- }
1726
- export interface UnitaMisura {
1727
- /** ID */
1728
- id?: number;
1729
- /** Note */
1730
- note?: string | null;
1731
- /** Creato il */
1732
- creato_il?: string;
1733
- /** Creato da */
1734
- creato_da?: string | null;
1735
- /** Aggiornato il */
1736
- aggiornato_il?: string;
1737
- /** Aggiornato da */
1738
- aggiornato_da?: string | null;
1739
- /** Codice */
1740
- codice: string;
1741
- /** Nome */
1742
- nome: string;
1743
- }
1744
- export interface Utente {
1745
- /** Id */
1746
- id?: string;
1747
- /** Obbligatorio. 150 caratteri o meno.Solo lettere, cifre e @/./+/-/_ */
1748
- username: string;
1749
- /** Nome */
1750
- first_name?: string;
1751
- /** Cognome */
1752
- last_name?: string;
1753
- /** Indirizzo email */
1754
- email?: string;
1755
- /** Password */
1756
- password?: string;
1757
- /** Stabilisce se l'utente può accedere a questo sito di amministrazione. */
1758
- is_staff?: boolean;
1759
- /** Stabilisce se l'utente debba essere considerato attivo. Deseleziona qui, piuttosto che cancellare gli account. */
1760
- is_active?: boolean;
1761
- /** Valori: amministrativo, tecnico, operatore_cantiere */
1762
- mansione?: string | null;
1763
- }
1764
- export interface Validation {
1765
- /** Id */
1766
- id?: string;
1767
- /** Created at */
1768
- created_at?: string;
1769
- /** Created by */
1770
- created_by?: string | null;
1771
- /** Updated at */
1772
- updated_at?: string;
1773
- /** Updated by */
1774
- updated_by?: string | null;
1775
- /** Notes */
1776
- notes?: string | null;
1777
- /** Method */
1778
- method?: string;
1779
- /** Interval years */
1780
- interval_years?: number | null;
1781
- /** Registry model */
1782
- registry_model: string;
1783
- /** DATE-type field whose value is used to calculate expiry. */
1784
- field?: string | null;
1785
- }
1786
- export interface VisitEquipmentMedia {
1787
- /** Id */
1788
- id?: string;
1789
- /** Media url */
1790
- media_url?: string;
1791
- /** Media filename */
1792
- media_filename?: string;
1793
- /** Created at */
1794
- created_at?: string;
1795
- /** Created by */
1796
- created_by?: string | null;
1797
- /** Updated at */
1798
- updated_at?: string;
1799
- /** Updated by */
1800
- updated_by?: string | null;
1801
- /** Notes */
1802
- notes?: string | null;
1803
- /** Type */
1804
- type: string;
1805
- /** Visit equipment */
1806
- visit_equipment: string;
1807
- /** Media */
1808
- media: string;
1809
- }
1810
- export interface VisitEquipment {
1811
- /** Id */
1812
- id?: string;
1813
- /** Is certified */
1814
- is_certified?: string;
1815
- /** Checklist items */
1816
- checklist_items?: string;
1817
- /** Created at */
1818
- created_at?: string;
1819
- /** Created by */
1820
- created_by?: string | null;
1821
- /** Updated at */
1822
- updated_at?: string;
1823
- /** Updated by */
1824
- updated_by?: string | null;
1825
- /** Notes */
1826
- notes?: string | null;
1827
- /** Note */
1828
- note?: string | null;
1829
- /** Status */
1830
- status?: string;
1831
- /** Visit */
1832
- visit: string;
1833
- /** Equipment */
1834
- equipment: string;
1835
- /** Job */
1836
- job?: string | null;
1837
- }
1838
- export interface VisitJob {
1839
- /** Id */
1840
- id?: string;
1841
- /** Created at */
1842
- created_at?: string;
1843
- /** Created by */
1844
- created_by?: string | null;
1845
- /** Updated at */
1846
- updated_at?: string;
1847
- /** Updated by */
1848
- updated_by?: string | null;
1849
- /** Notes */
1850
- notes?: string | null;
1851
- /** Name */
1852
- name: string;
1853
- /** Description */
1854
- description?: string | null;
1855
- /** Ordine di visualizzazione all'interno dell'uscita. */
1856
- order?: number;
1857
- /** Visit */
1858
- visit: string;
1859
- }
1860
- export interface VisitTechnician {
1861
- /** Id */
1862
- id?: string;
1863
- /** Created at */
1864
- created_at?: string;
1865
- /** Created by */
1866
- created_by?: string | null;
1867
- /** Updated at */
1868
- updated_at?: string;
1869
- /** Updated by */
1870
- updated_by?: string | null;
1871
- /** Notes */
1872
- notes?: string | null;
1873
- /** Visit */
1874
- visit: string;
1875
- /** Technician */
1876
- technician: string;
1877
- }
1878
- export interface VisitTechnicianInline {
1879
- /** Id */
1880
- id?: string;
1881
- /** Technician */
1882
- technician?: string;
1883
- }
1884
- export interface Visit {
1885
- /** Id */
1886
- id?: string;
1887
- /** List of user IDs to assign as technicians for this visit. */
1888
- technician_ids?: Array<string>;
1889
- technicians?: Array<VisitTechnicianInline>;
1890
- /** Can sign */
1891
- can_sign?: string;
1892
- /** Signature url */
1893
- signature_url?: string;
1894
- /** Created at */
1895
- created_at?: string;
1896
- /** Created by */
1897
- created_by?: string | null;
1898
- /** Updated at */
1899
- updated_at?: string;
1900
- /** Updated by */
1901
- updated_by?: string | null;
1902
- /** Notes */
1903
- notes?: string | null;
1904
- /** Name */
1905
- name: string;
1906
- /** Start date */
1907
- start_date: string;
1908
- /** End date */
1909
- end_date: string;
1910
- /** Type */
1911
- type: string;
1912
- /** Status */
1913
- status?: string;
1914
- /** Note */
1915
- note?: string | null;
1916
- /** Signed at */
1917
- signed_at?: string | null;
1918
- /** User */
1919
- user: string;
1920
- /** Client */
1921
- client: string;
1922
- /** Building */
1923
- building?: string | null;
1924
- /** Signed by */
1925
- signed_by?: string | null;
1926
- /** Signature media */
1927
- signature_media?: string | null;
1928
3
  }
1929
4
  export interface PaginatedResponse<T> {
1930
5
  count: number;