@be-logixpair/api 0.0.6 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1680 -1224
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -233,110 +233,19 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
233
233
  output: string;
234
234
  meta: object;
235
235
  }>;
236
- locations: import("@trpc/server").TRPCBuiltRouter<{
236
+ settings: import("@trpc/server").TRPCBuiltRouter<{
237
237
  ctx: Context$1;
238
238
  meta: object;
239
239
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
240
240
  transformer: false;
241
241
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
242
- unLocodes: import("@trpc/server").TRPCBuiltRouter<{
242
+ references: import("@trpc/server").TRPCBuiltRouter<{
243
243
  ctx: Context$1;
244
244
  meta: object;
245
245
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
246
246
  transformer: false;
247
247
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
248
- get: import("@trpc/server").TRPCMutationProcedure<{
249
- input: {
250
- search?: string | null | undefined;
251
- take?: number | null | undefined;
252
- skip?: number | null | undefined;
253
- is_active?: boolean[] | null | undefined;
254
- ids_include?: number[] | null | undefined;
255
- ids_exclude?: number[] | null | undefined;
256
- ids_string_include?: string[] | null | undefined;
257
- ids_string_exclude?: string[] | null | undefined;
258
- logic_codes_include?: string[] | null | undefined;
259
- logic_codes_exclude?: string[] | null | undefined;
260
- };
261
- output: {
262
- data: {
263
- id: number;
264
- is_active: boolean | null;
265
- id_city: number | null;
266
- id_country: number | null;
267
- id_state: number | null;
268
- created_at: Date | null;
269
- created_by: string | null;
270
- updated_at: Date | null;
271
- updated_by: string | null;
272
- logic_code: string | null;
273
- un_code: string | null;
274
- iata_code: string | null;
275
- iata_region_code: string | null;
276
- latitude: Decimal | null;
277
- longitude: Decimal | null;
278
- port_name: string | null;
279
- proper_name: string | null;
280
- is_system: boolean | null;
281
- is_system_updatable: boolean | null;
282
- has_post: boolean | null;
283
- has_customs: boolean | null;
284
- has_unload: boolean | null;
285
- has_airport: boolean | null;
286
- has_railway: boolean | null;
287
- has_road: boolean | null;
288
- has_store: boolean | null;
289
- has_terminal: boolean | null;
290
- has_discharge: boolean | null;
291
- has_seaport: boolean | null;
292
- has_outport: boolean | null;
293
- }[] | undefined;
294
- total: number | undefined;
295
- };
296
- meta: object;
297
- }>;
298
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
299
- input: {
300
- id?: number | null | undefined;
301
- id_string?: string | null | undefined;
302
- };
303
- output: {
304
- data: {
305
- id: number;
306
- is_active: boolean | null;
307
- id_city: number | null;
308
- id_country: number | null;
309
- id_state: number | null;
310
- created_at: Date | null;
311
- created_by: string | null;
312
- updated_at: Date | null;
313
- updated_by: string | null;
314
- logic_code: string | null;
315
- un_code: string | null;
316
- iata_code: string | null;
317
- iata_region_code: string | null;
318
- latitude: Decimal | null;
319
- longitude: Decimal | null;
320
- port_name: string | null;
321
- proper_name: string | null;
322
- is_system: boolean | null;
323
- is_system_updatable: boolean | null;
324
- has_post: boolean | null;
325
- has_customs: boolean | null;
326
- has_unload: boolean | null;
327
- has_airport: boolean | null;
328
- has_railway: boolean | null;
329
- has_road: boolean | null;
330
- has_store: boolean | null;
331
- has_terminal: boolean | null;
332
- has_discharge: boolean | null;
333
- has_seaport: boolean | null;
334
- has_outport: boolean | null;
335
- } | undefined;
336
- };
337
- meta: object;
338
- }>;
339
- histories: import("@trpc/server").TRPCBuiltRouter<{
248
+ currencies: import("@trpc/server").TRPCBuiltRouter<{
340
249
  ctx: Context$1;
341
250
  meta: object;
342
251
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -354,24 +263,166 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
354
263
  ids_string_exclude?: string[] | null | undefined;
355
264
  logic_codes_include?: string[] | null | undefined;
356
265
  logic_codes_exclude?: string[] | null | undefined;
357
- id_log_type?: number | null | undefined;
358
- ids_log_type?: number[] | null | undefined;
359
- id_un_locode?: number | null | undefined;
360
- ids_un_locode?: number[] | null | undefined;
361
266
  };
362
267
  output: {
363
- data: ({
364
- log_type: {
268
+ data: {
269
+ symbol: string | null;
270
+ id: number;
271
+ name: string | null;
272
+ is_active: boolean | null;
273
+ created_at: Date | null;
274
+ created_by: string | null;
275
+ updated_at: Date | null;
276
+ updated_by: string | null;
277
+ logic_code: string | null;
278
+ currency_code: string | null;
279
+ currency_name: string | null;
280
+ major_unit: string | null;
281
+ minor_unit: string | null;
282
+ decimal_unit: number | null;
283
+ iso_decimal: number | null;
284
+ }[] | undefined;
285
+ total: number | undefined;
286
+ };
287
+ meta: object;
288
+ }>;
289
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
290
+ input: {
291
+ id?: number | null | undefined;
292
+ id_string?: string | null | undefined;
293
+ };
294
+ output: {
295
+ data: {
296
+ symbol: string | null;
297
+ id: number;
298
+ name: string | null;
299
+ is_active: boolean | null;
300
+ created_at: Date | null;
301
+ created_by: string | null;
302
+ updated_at: Date | null;
303
+ updated_by: string | null;
304
+ logic_code: string | null;
305
+ currency_code: string | null;
306
+ currency_name: string | null;
307
+ major_unit: string | null;
308
+ minor_unit: string | null;
309
+ decimal_unit: number | null;
310
+ iso_decimal: number | null;
311
+ };
312
+ };
313
+ meta: object;
314
+ }>;
315
+ histories: import("@trpc/server").TRPCBuiltRouter<{
316
+ ctx: Context$1;
317
+ meta: object;
318
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
319
+ transformer: false;
320
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
321
+ get: import("@trpc/server").TRPCMutationProcedure<{
322
+ input: {
323
+ search?: string | null | undefined;
324
+ take?: number | null | undefined;
325
+ skip?: number | null | undefined;
326
+ is_active?: boolean[] | null | undefined;
327
+ ids_include?: number[] | null | undefined;
328
+ ids_exclude?: number[] | null | undefined;
329
+ ids_string_include?: string[] | null | undefined;
330
+ ids_string_exclude?: string[] | null | undefined;
331
+ logic_codes_include?: string[] | null | undefined;
332
+ logic_codes_exclude?: string[] | null | undefined;
333
+ id_log_type?: number | null | undefined;
334
+ ids_log_type?: number[] | null | undefined;
335
+ id_currency?: number | null | undefined;
336
+ ids_currency?: number[] | null | undefined;
337
+ };
338
+ output: {
339
+ data: {
340
+ params: Record<string, unknown>;
341
+ log_type: {
342
+ id: number;
343
+ name: string | null;
344
+ is_active: boolean | null;
345
+ created_at: Date | null;
346
+ created_by: string | null;
347
+ updated_at: Date | null;
348
+ updated_by: string | null;
349
+ logic_code: string | null;
350
+ } | null;
365
351
  id: number;
366
- name: string | null;
367
- is_active: boolean | null;
368
- created_at: Date | null;
369
- created_by: string | null;
370
- updated_at: Date | null;
371
- updated_by: string | null;
372
- logic_code: string | null;
373
- } | null;
374
- } & {
352
+ url: string | null;
353
+ id_log_type: number | null;
354
+ action: string | null;
355
+ action_by: string | null;
356
+ action_id: string | null;
357
+ action_at: Date | null;
358
+ id_currency: number | null;
359
+ }[] | undefined;
360
+ total: number | undefined;
361
+ };
362
+ meta: object;
363
+ }>;
364
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
365
+ input: {
366
+ id?: number | null | undefined;
367
+ id_string?: string | null | undefined;
368
+ };
369
+ output: {
370
+ data: {
371
+ params: Record<string, unknown>;
372
+ log_type: {
373
+ id: number;
374
+ name: string | null;
375
+ is_active: boolean | null;
376
+ created_at: Date | null;
377
+ created_by: string | null;
378
+ updated_at: Date | null;
379
+ updated_by: string | null;
380
+ logic_code: string | null;
381
+ } | null;
382
+ id: number;
383
+ url: string | null;
384
+ id_log_type: number | null;
385
+ action: string | null;
386
+ action_by: string | null;
387
+ action_id: string | null;
388
+ action_at: Date | null;
389
+ id_currency: number | null;
390
+ } | undefined;
391
+ };
392
+ meta: object;
393
+ }>;
394
+ }>>;
395
+ create: import("@trpc/server").TRPCMutationProcedure<{
396
+ input: {
397
+ is_active?: boolean | undefined;
398
+ name?: string | null | undefined;
399
+ currency_code?: string | null | undefined;
400
+ currency_name?: string | null | undefined;
401
+ major_unit?: string | null | undefined;
402
+ minor_unit?: string | null | undefined;
403
+ decimal_unit?: number | null | undefined;
404
+ iso_decimal?: number | null | undefined;
405
+ symbol?: string | null | undefined;
406
+ };
407
+ output: {
408
+ data: {
409
+ symbol: string | null;
410
+ id: number;
411
+ name: string | null;
412
+ is_active: boolean | null;
413
+ created_at: Date | null;
414
+ created_by: string | null;
415
+ updated_at: Date | null;
416
+ updated_by: string | null;
417
+ logic_code: string | null;
418
+ currency_code: string | null;
419
+ currency_name: string | null;
420
+ major_unit: string | null;
421
+ minor_unit: string | null;
422
+ decimal_unit: number | null;
423
+ iso_decimal: number | null;
424
+ } | undefined;
425
+ log: {
375
426
  id: number;
376
427
  url: string | null;
377
428
  id_log_type: number | null;
@@ -380,30 +431,44 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
380
431
  action_by: string | null;
381
432
  action_id: string | null;
382
433
  action_at: Date | null;
383
- id_un_locode: number | null;
384
- })[] | undefined;
385
- total: number | undefined;
434
+ id_currency: number | null;
435
+ } | undefined;
386
436
  };
387
437
  meta: object;
388
438
  }>;
389
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
439
+ update: import("@trpc/server").TRPCMutationProcedure<{
390
440
  input: {
391
441
  id?: number | null | undefined;
392
442
  id_string?: string | null | undefined;
443
+ is_active?: boolean | undefined;
444
+ name?: string | null | undefined;
445
+ currency_code?: string | null | undefined;
446
+ currency_name?: string | null | undefined;
447
+ major_unit?: string | null | undefined;
448
+ minor_unit?: string | null | undefined;
449
+ decimal_unit?: number | null | undefined;
450
+ iso_decimal?: number | null | undefined;
451
+ symbol?: string | null | undefined;
393
452
  };
394
453
  output: {
395
- data: ({
396
- log_type: {
397
- id: number;
398
- name: string | null;
399
- is_active: boolean | null;
400
- created_at: Date | null;
401
- created_by: string | null;
402
- updated_at: Date | null;
403
- updated_by: string | null;
404
- logic_code: string | null;
405
- } | null;
406
- } & {
454
+ data: {
455
+ symbol: string | null;
456
+ id: number;
457
+ name: string | null;
458
+ is_active: boolean | null;
459
+ created_at: Date | null;
460
+ created_by: string | null;
461
+ updated_at: Date | null;
462
+ updated_by: string | null;
463
+ logic_code: string | null;
464
+ currency_code: string | null;
465
+ currency_name: string | null;
466
+ major_unit: string | null;
467
+ minor_unit: string | null;
468
+ decimal_unit: number | null;
469
+ iso_decimal: number | null;
470
+ } | undefined;
471
+ log: {
407
472
  id: number;
408
473
  url: string | null;
409
474
  id_log_type: number | null;
@@ -412,272 +477,48 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
412
477
  action_by: string | null;
413
478
  action_id: string | null;
414
479
  action_at: Date | null;
415
- id_un_locode: number | null;
416
- }) | undefined;
480
+ id_currency: number | null;
481
+ } | undefined;
482
+ };
483
+ meta: object;
484
+ }>;
485
+ delete: import("@trpc/server").TRPCMutationProcedure<{
486
+ input: {
487
+ id?: number | null | undefined;
488
+ ids?: number[] | null | undefined;
489
+ id_string?: string | null | undefined;
490
+ ids_string?: string[] | null | undefined;
491
+ };
492
+ output: {
493
+ data: ({
494
+ symbol: string | null;
495
+ id: number;
496
+ name: string | null;
497
+ is_active: boolean | null;
498
+ created_at: Date | null;
499
+ created_by: string | null;
500
+ updated_at: Date | null;
501
+ updated_by: string | null;
502
+ logic_code: string | null;
503
+ currency_code: string | null;
504
+ currency_name: string | null;
505
+ major_unit: string | null;
506
+ minor_unit: string | null;
507
+ decimal_unit: number | null;
508
+ iso_decimal: number | null;
509
+ } | undefined)[];
417
510
  };
418
511
  meta: object;
419
512
  }>;
420
513
  }>>;
421
- create: import("@trpc/server").TRPCMutationProcedure<{
422
- input: {
423
- is_active?: boolean | undefined;
424
- id_country?: number | null | undefined;
425
- id_state?: number | null | undefined;
426
- id_city?: number | null | undefined;
427
- logic_code?: string | null | undefined;
428
- un_code?: string | null | undefined;
429
- iata_code?: string | null | undefined;
430
- iata_region_code?: string | null | undefined;
431
- latitude?: string | null | undefined;
432
- longitude?: string | null | undefined;
433
- port_name?: string | null | undefined;
434
- proper_name?: string | null | undefined;
435
- is_system?: boolean | null | undefined;
436
- is_system_updatable?: boolean | null | undefined;
437
- has_post?: boolean | null | undefined;
438
- has_customs?: boolean | null | undefined;
439
- has_unload?: boolean | null | undefined;
440
- has_airport?: boolean | null | undefined;
441
- has_railway?: boolean | null | undefined;
442
- has_road?: boolean | null | undefined;
443
- has_store?: boolean | null | undefined;
444
- has_terminal?: boolean | null | undefined;
445
- has_discharge?: boolean | null | undefined;
446
- has_seaport?: boolean | null | undefined;
447
- has_outport?: boolean | null | undefined;
448
- };
449
- output: {
450
- data: {
451
- id: number;
452
- is_active: boolean | null;
453
- id_city: number | null;
454
- id_country: number | null;
455
- id_state: number | null;
456
- created_at: Date | null;
457
- created_by: string | null;
458
- updated_at: Date | null;
459
- updated_by: string | null;
460
- logic_code: string | null;
461
- un_code: string | null;
462
- iata_code: string | null;
463
- iata_region_code: string | null;
464
- latitude: Decimal | null;
465
- longitude: Decimal | null;
466
- port_name: string | null;
467
- proper_name: string | null;
468
- is_system: boolean | null;
469
- is_system_updatable: boolean | null;
470
- has_post: boolean | null;
471
- has_customs: boolean | null;
472
- has_unload: boolean | null;
473
- has_airport: boolean | null;
474
- has_railway: boolean | null;
475
- has_road: boolean | null;
476
- has_store: boolean | null;
477
- has_terminal: boolean | null;
478
- has_discharge: boolean | null;
479
- has_seaport: boolean | null;
480
- has_outport: boolean | null;
481
- } | undefined;
482
- log: {
483
- id: number;
484
- url: string | null;
485
- id_log_type: number | null;
486
- action: string | null;
487
- params: JsonValue | null;
488
- action_by: string | null;
489
- action_id: string | null;
490
- action_at: Date | null;
491
- id_un_locode: number | null;
492
- } | undefined;
493
- };
494
- meta: object;
495
- }>;
496
- update: import("@trpc/server").TRPCMutationProcedure<{
497
- input: {
498
- id?: number | null | undefined;
499
- id_string?: string | null | undefined;
500
- is_active?: boolean | undefined;
501
- id_country?: number | null | undefined;
502
- id_state?: number | null | undefined;
503
- id_city?: number | null | undefined;
504
- logic_code?: string | null | undefined;
505
- un_code?: string | null | undefined;
506
- iata_code?: string | null | undefined;
507
- iata_region_code?: string | null | undefined;
508
- latitude?: string | null | undefined;
509
- longitude?: string | null | undefined;
510
- port_name?: string | null | undefined;
511
- proper_name?: string | null | undefined;
512
- is_system?: boolean | null | undefined;
513
- is_system_updatable?: boolean | null | undefined;
514
- has_post?: boolean | null | undefined;
515
- has_customs?: boolean | null | undefined;
516
- has_unload?: boolean | null | undefined;
517
- has_airport?: boolean | null | undefined;
518
- has_railway?: boolean | null | undefined;
519
- has_road?: boolean | null | undefined;
520
- has_store?: boolean | null | undefined;
521
- has_terminal?: boolean | null | undefined;
522
- has_discharge?: boolean | null | undefined;
523
- has_seaport?: boolean | null | undefined;
524
- has_outport?: boolean | null | undefined;
525
- };
526
- output: {
527
- data: {
528
- id: number;
529
- is_active: boolean | null;
530
- id_city: number | null;
531
- id_country: number | null;
532
- id_state: number | null;
533
- created_at: Date | null;
534
- created_by: string | null;
535
- updated_at: Date | null;
536
- updated_by: string | null;
537
- logic_code: string | null;
538
- un_code: string | null;
539
- iata_code: string | null;
540
- iata_region_code: string | null;
541
- latitude: Decimal | null;
542
- longitude: Decimal | null;
543
- port_name: string | null;
544
- proper_name: string | null;
545
- is_system: boolean | null;
546
- is_system_updatable: boolean | null;
547
- has_post: boolean | null;
548
- has_customs: boolean | null;
549
- has_unload: boolean | null;
550
- has_airport: boolean | null;
551
- has_railway: boolean | null;
552
- has_road: boolean | null;
553
- has_store: boolean | null;
554
- has_terminal: boolean | null;
555
- has_discharge: boolean | null;
556
- has_seaport: boolean | null;
557
- has_outport: boolean | null;
558
- } | undefined;
559
- log: {
560
- id: number;
561
- url: string | null;
562
- id_log_type: number | null;
563
- action: string | null;
564
- params: JsonValue | null;
565
- action_by: string | null;
566
- action_id: string | null;
567
- action_at: Date | null;
568
- id_un_locode: number | null;
569
- } | undefined;
570
- };
571
- meta: object;
572
- }>;
573
- delete: import("@trpc/server").TRPCMutationProcedure<{
574
- input: {
575
- id?: number | null | undefined;
576
- ids?: number[] | null | undefined;
577
- id_string?: string | null | undefined;
578
- ids_string?: string[] | null | undefined;
579
- };
580
- output: {
581
- data: ({
582
- id: number;
583
- is_active: boolean | null;
584
- id_city: number | null;
585
- id_country: number | null;
586
- id_state: number | null;
587
- created_at: Date | null;
588
- created_by: string | null;
589
- updated_at: Date | null;
590
- updated_by: string | null;
591
- logic_code: string | null;
592
- un_code: string | null;
593
- iata_code: string | null;
594
- iata_region_code: string | null;
595
- latitude: Decimal | null;
596
- longitude: Decimal | null;
597
- port_name: string | null;
598
- proper_name: string | null;
599
- is_system: boolean | null;
600
- is_system_updatable: boolean | null;
601
- has_post: boolean | null;
602
- has_customs: boolean | null;
603
- has_unload: boolean | null;
604
- has_airport: boolean | null;
605
- has_railway: boolean | null;
606
- has_road: boolean | null;
607
- has_store: boolean | null;
608
- has_terminal: boolean | null;
609
- has_discharge: boolean | null;
610
- has_seaport: boolean | null;
611
- has_outport: boolean | null;
612
- } | undefined)[];
613
- };
614
- meta: object;
615
- }>;
616
514
  }>>;
617
- countries: import("@trpc/server").TRPCBuiltRouter<{
515
+ locations: import("@trpc/server").TRPCBuiltRouter<{
618
516
  ctx: Context$1;
619
517
  meta: object;
620
518
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
621
519
  transformer: false;
622
520
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
623
- get: import("@trpc/server").TRPCMutationProcedure<{
624
- input: {
625
- search?: string | null | undefined;
626
- take?: number | null | undefined;
627
- skip?: number | null | undefined;
628
- is_active?: boolean[] | null | undefined;
629
- ids_include?: number[] | null | undefined;
630
- ids_exclude?: number[] | null | undefined;
631
- ids_string_include?: string[] | null | undefined;
632
- ids_string_exclude?: string[] | null | undefined;
633
- logic_codes_include?: string[] | null | undefined;
634
- logic_codes_exclude?: string[] | null | undefined;
635
- };
636
- output: {
637
- data: {
638
- id: number;
639
- name: string | null;
640
- is_active: boolean | null;
641
- created_at: Date | null;
642
- created_by: string | null;
643
- updated_at: Date | null;
644
- updated_by: string | null;
645
- logic_code: string | null;
646
- id_currency: number | null;
647
- iso2_code: string | null;
648
- iso3_code: string | null;
649
- iso3_numeric: string | null;
650
- is_sanctioned: boolean | null;
651
- }[] | undefined;
652
- total: number | undefined;
653
- };
654
- meta: object;
655
- }>;
656
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
657
- input: {
658
- id?: number | null | undefined;
659
- id_string?: string | null | undefined;
660
- };
661
- output: {
662
- data: {
663
- id: number;
664
- name: string | null;
665
- is_active: boolean | null;
666
- created_at: Date | null;
667
- created_by: string | null;
668
- updated_at: Date | null;
669
- updated_by: string | null;
670
- logic_code: string | null;
671
- id_currency: number | null;
672
- iso2_code: string | null;
673
- iso3_code: string | null;
674
- iso3_numeric: string | null;
675
- is_sanctioned: boolean | null;
676
- } | undefined;
677
- };
678
- meta: object;
679
- }>;
680
- histories: import("@trpc/server").TRPCBuiltRouter<{
521
+ unLocodes: import("@trpc/server").TRPCBuiltRouter<{
681
522
  ctx: Context$1;
682
523
  meta: object;
683
524
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -695,237 +536,362 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
695
536
  ids_string_exclude?: string[] | null | undefined;
696
537
  logic_codes_include?: string[] | null | undefined;
697
538
  logic_codes_exclude?: string[] | null | undefined;
698
- id_log_type?: number | null | undefined;
699
- ids_log_type?: number[] | null | undefined;
700
- id_country?: number | null | undefined;
701
- ids_country?: number[] | null | undefined;
702
539
  };
703
540
  output: {
704
- data: ({
705
- log_type: {
541
+ data: {
542
+ id: number;
543
+ is_active: boolean | null;
544
+ id_city: number | null;
545
+ id_country: number | null;
546
+ id_state: number | null;
547
+ created_at: Date | null;
548
+ created_by: string | null;
549
+ updated_at: Date | null;
550
+ updated_by: string | null;
551
+ logic_code: string | null;
552
+ un_code: string | null;
553
+ iata_code: string | null;
554
+ iata_region_code: string | null;
555
+ latitude: Decimal | null;
556
+ longitude: Decimal | null;
557
+ port_name: string | null;
558
+ proper_name: string | null;
559
+ is_system: boolean | null;
560
+ is_system_updatable: boolean | null;
561
+ has_post: boolean | null;
562
+ has_customs: boolean | null;
563
+ has_unload: boolean | null;
564
+ has_airport: boolean | null;
565
+ has_railway: boolean | null;
566
+ has_road: boolean | null;
567
+ has_store: boolean | null;
568
+ has_terminal: boolean | null;
569
+ has_discharge: boolean | null;
570
+ has_seaport: boolean | null;
571
+ has_outport: boolean | null;
572
+ }[] | undefined;
573
+ total: number | undefined;
574
+ };
575
+ meta: object;
576
+ }>;
577
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
578
+ input: {
579
+ id?: number | null | undefined;
580
+ id_string?: string | null | undefined;
581
+ };
582
+ output: {
583
+ data: {
584
+ id: number;
585
+ is_active: boolean | null;
586
+ id_city: number | null;
587
+ id_country: number | null;
588
+ id_state: number | null;
589
+ created_at: Date | null;
590
+ created_by: string | null;
591
+ updated_at: Date | null;
592
+ updated_by: string | null;
593
+ logic_code: string | null;
594
+ un_code: string | null;
595
+ iata_code: string | null;
596
+ iata_region_code: string | null;
597
+ latitude: Decimal | null;
598
+ longitude: Decimal | null;
599
+ port_name: string | null;
600
+ proper_name: string | null;
601
+ is_system: boolean | null;
602
+ is_system_updatable: boolean | null;
603
+ has_post: boolean | null;
604
+ has_customs: boolean | null;
605
+ has_unload: boolean | null;
606
+ has_airport: boolean | null;
607
+ has_railway: boolean | null;
608
+ has_road: boolean | null;
609
+ has_store: boolean | null;
610
+ has_terminal: boolean | null;
611
+ has_discharge: boolean | null;
612
+ has_seaport: boolean | null;
613
+ has_outport: boolean | null;
614
+ };
615
+ };
616
+ meta: object;
617
+ }>;
618
+ histories: import("@trpc/server").TRPCBuiltRouter<{
619
+ ctx: Context$1;
620
+ meta: object;
621
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
622
+ transformer: false;
623
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
624
+ get: import("@trpc/server").TRPCMutationProcedure<{
625
+ input: {
626
+ search?: string | null | undefined;
627
+ take?: number | null | undefined;
628
+ skip?: number | null | undefined;
629
+ is_active?: boolean[] | null | undefined;
630
+ ids_include?: number[] | null | undefined;
631
+ ids_exclude?: number[] | null | undefined;
632
+ ids_string_include?: string[] | null | undefined;
633
+ ids_string_exclude?: string[] | null | undefined;
634
+ logic_codes_include?: string[] | null | undefined;
635
+ logic_codes_exclude?: string[] | null | undefined;
636
+ id_log_type?: number | null | undefined;
637
+ ids_log_type?: number[] | null | undefined;
638
+ id_un_locode?: number | null | undefined;
639
+ ids_un_locode?: number[] | null | undefined;
640
+ };
641
+ output: {
642
+ data: {
643
+ params: Record<string, unknown>;
644
+ log_type: {
645
+ id: number;
646
+ name: string | null;
647
+ is_active: boolean | null;
648
+ created_at: Date | null;
649
+ created_by: string | null;
650
+ updated_at: Date | null;
651
+ updated_by: string | null;
652
+ logic_code: string | null;
653
+ } | null;
706
654
  id: number;
707
- name: string | null;
708
- is_active: boolean | null;
709
- created_at: Date | null;
710
- created_by: string | null;
711
- updated_at: Date | null;
712
- updated_by: string | null;
713
- logic_code: string | null;
714
- } | null;
715
- } & {
655
+ url: string | null;
656
+ id_log_type: number | null;
657
+ action: string | null;
658
+ action_by: string | null;
659
+ action_id: string | null;
660
+ action_at: Date | null;
661
+ id_un_locode: number | null;
662
+ }[] | undefined;
663
+ total: number | undefined;
664
+ };
665
+ meta: object;
666
+ }>;
667
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
668
+ input: {
669
+ id?: number | null | undefined;
670
+ id_string?: string | null | undefined;
671
+ };
672
+ output: {
673
+ data: {
674
+ params: Record<string, unknown>;
675
+ log_type: {
676
+ id: number;
677
+ name: string | null;
678
+ is_active: boolean | null;
679
+ created_at: Date | null;
680
+ created_by: string | null;
681
+ updated_at: Date | null;
682
+ updated_by: string | null;
683
+ logic_code: string | null;
684
+ } | null;
685
+ id: number;
686
+ url: string | null;
687
+ id_log_type: number | null;
688
+ action: string | null;
689
+ action_by: string | null;
690
+ action_id: string | null;
691
+ action_at: Date | null;
692
+ id_un_locode: number | null;
693
+ } | undefined;
694
+ };
695
+ meta: object;
696
+ }>;
697
+ }>>;
698
+ create: import("@trpc/server").TRPCMutationProcedure<{
699
+ input: {
700
+ is_active?: boolean | undefined;
701
+ id_country?: number | null | undefined;
702
+ id_state?: number | null | undefined;
703
+ id_city?: number | null | undefined;
704
+ logic_code?: string | null | undefined;
705
+ un_code?: string | null | undefined;
706
+ iata_code?: string | null | undefined;
707
+ iata_region_code?: string | null | undefined;
708
+ latitude?: string | null | undefined;
709
+ longitude?: string | null | undefined;
710
+ port_name?: string | null | undefined;
711
+ proper_name?: string | null | undefined;
712
+ is_system?: boolean | null | undefined;
713
+ is_system_updatable?: boolean | null | undefined;
714
+ has_post?: boolean | null | undefined;
715
+ has_customs?: boolean | null | undefined;
716
+ has_unload?: boolean | null | undefined;
717
+ has_airport?: boolean | null | undefined;
718
+ has_railway?: boolean | null | undefined;
719
+ has_road?: boolean | null | undefined;
720
+ has_store?: boolean | null | undefined;
721
+ has_terminal?: boolean | null | undefined;
722
+ has_discharge?: boolean | null | undefined;
723
+ has_seaport?: boolean | null | undefined;
724
+ has_outport?: boolean | null | undefined;
725
+ };
726
+ output: {
727
+ data: {
728
+ id: number;
729
+ is_active: boolean | null;
730
+ id_city: number | null;
731
+ id_country: number | null;
732
+ id_state: number | null;
733
+ created_at: Date | null;
734
+ created_by: string | null;
735
+ updated_at: Date | null;
736
+ updated_by: string | null;
737
+ logic_code: string | null;
738
+ un_code: string | null;
739
+ iata_code: string | null;
740
+ iata_region_code: string | null;
741
+ latitude: Decimal | null;
742
+ longitude: Decimal | null;
743
+ port_name: string | null;
744
+ proper_name: string | null;
745
+ is_system: boolean | null;
746
+ is_system_updatable: boolean | null;
747
+ has_post: boolean | null;
748
+ has_customs: boolean | null;
749
+ has_unload: boolean | null;
750
+ has_airport: boolean | null;
751
+ has_railway: boolean | null;
752
+ has_road: boolean | null;
753
+ has_store: boolean | null;
754
+ has_terminal: boolean | null;
755
+ has_discharge: boolean | null;
756
+ has_seaport: boolean | null;
757
+ has_outport: boolean | null;
758
+ } | undefined;
759
+ log: {
716
760
  id: number;
717
761
  url: string | null;
718
762
  id_log_type: number | null;
719
- id_country: number | null;
720
763
  action: string | null;
721
764
  params: JsonValue | null;
722
765
  action_by: string | null;
723
766
  action_id: string | null;
724
767
  action_at: Date | null;
725
- })[] | undefined;
726
- total: number | undefined;
768
+ id_un_locode: number | null;
769
+ } | undefined;
727
770
  };
728
771
  meta: object;
729
772
  }>;
730
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
773
+ update: import("@trpc/server").TRPCMutationProcedure<{
731
774
  input: {
732
775
  id?: number | null | undefined;
733
776
  id_string?: string | null | undefined;
777
+ is_active?: boolean | undefined;
778
+ id_country?: number | null | undefined;
779
+ id_state?: number | null | undefined;
780
+ id_city?: number | null | undefined;
781
+ logic_code?: string | null | undefined;
782
+ un_code?: string | null | undefined;
783
+ iata_code?: string | null | undefined;
784
+ iata_region_code?: string | null | undefined;
785
+ latitude?: string | null | undefined;
786
+ longitude?: string | null | undefined;
787
+ port_name?: string | null | undefined;
788
+ proper_name?: string | null | undefined;
789
+ is_system?: boolean | null | undefined;
790
+ is_system_updatable?: boolean | null | undefined;
791
+ has_post?: boolean | null | undefined;
792
+ has_customs?: boolean | null | undefined;
793
+ has_unload?: boolean | null | undefined;
794
+ has_airport?: boolean | null | undefined;
795
+ has_railway?: boolean | null | undefined;
796
+ has_road?: boolean | null | undefined;
797
+ has_store?: boolean | null | undefined;
798
+ has_terminal?: boolean | null | undefined;
799
+ has_discharge?: boolean | null | undefined;
800
+ has_seaport?: boolean | null | undefined;
801
+ has_outport?: boolean | null | undefined;
734
802
  };
735
803
  output: {
736
- data: ({
737
- log_type: {
738
- id: number;
739
- name: string | null;
740
- is_active: boolean | null;
741
- created_at: Date | null;
742
- created_by: string | null;
743
- updated_at: Date | null;
744
- updated_by: string | null;
745
- logic_code: string | null;
746
- } | null;
747
- } & {
804
+ data: {
805
+ id: number;
806
+ is_active: boolean | null;
807
+ id_city: number | null;
808
+ id_country: number | null;
809
+ id_state: number | null;
810
+ created_at: Date | null;
811
+ created_by: string | null;
812
+ updated_at: Date | null;
813
+ updated_by: string | null;
814
+ logic_code: string | null;
815
+ un_code: string | null;
816
+ iata_code: string | null;
817
+ iata_region_code: string | null;
818
+ latitude: Decimal | null;
819
+ longitude: Decimal | null;
820
+ port_name: string | null;
821
+ proper_name: string | null;
822
+ is_system: boolean | null;
823
+ is_system_updatable: boolean | null;
824
+ has_post: boolean | null;
825
+ has_customs: boolean | null;
826
+ has_unload: boolean | null;
827
+ has_airport: boolean | null;
828
+ has_railway: boolean | null;
829
+ has_road: boolean | null;
830
+ has_store: boolean | null;
831
+ has_terminal: boolean | null;
832
+ has_discharge: boolean | null;
833
+ has_seaport: boolean | null;
834
+ has_outport: boolean | null;
835
+ } | undefined;
836
+ log: {
748
837
  id: number;
749
838
  url: string | null;
750
839
  id_log_type: number | null;
751
- id_country: number | null;
752
840
  action: string | null;
753
841
  params: JsonValue | null;
754
842
  action_by: string | null;
755
843
  action_id: string | null;
756
844
  action_at: Date | null;
757
- }) | undefined;
845
+ id_un_locode: number | null;
846
+ } | undefined;
847
+ };
848
+ meta: object;
849
+ }>;
850
+ delete: import("@trpc/server").TRPCMutationProcedure<{
851
+ input: {
852
+ id?: number | null | undefined;
853
+ ids?: number[] | null | undefined;
854
+ id_string?: string | null | undefined;
855
+ ids_string?: string[] | null | undefined;
856
+ };
857
+ output: {
858
+ data: ({
859
+ id: number;
860
+ is_active: boolean | null;
861
+ id_city: number | null;
862
+ id_country: number | null;
863
+ id_state: number | null;
864
+ created_at: Date | null;
865
+ created_by: string | null;
866
+ updated_at: Date | null;
867
+ updated_by: string | null;
868
+ logic_code: string | null;
869
+ un_code: string | null;
870
+ iata_code: string | null;
871
+ iata_region_code: string | null;
872
+ latitude: Decimal | null;
873
+ longitude: Decimal | null;
874
+ port_name: string | null;
875
+ proper_name: string | null;
876
+ is_system: boolean | null;
877
+ is_system_updatable: boolean | null;
878
+ has_post: boolean | null;
879
+ has_customs: boolean | null;
880
+ has_unload: boolean | null;
881
+ has_airport: boolean | null;
882
+ has_railway: boolean | null;
883
+ has_road: boolean | null;
884
+ has_store: boolean | null;
885
+ has_terminal: boolean | null;
886
+ has_discharge: boolean | null;
887
+ has_seaport: boolean | null;
888
+ has_outport: boolean | null;
889
+ } | undefined)[];
758
890
  };
759
891
  meta: object;
760
892
  }>;
761
893
  }>>;
762
- create: import("@trpc/server").TRPCMutationProcedure<{
763
- input: {
764
- id_currency?: number | null | undefined;
765
- is_active?: boolean | undefined;
766
- name?: string | null | undefined;
767
- iso2_code?: string | null | undefined;
768
- iso3_code?: string | null | undefined;
769
- iso3_numeric?: string | null | undefined;
770
- is_sanctioned?: boolean | null | undefined;
771
- };
772
- output: {
773
- data: {
774
- id: number;
775
- name: string | null;
776
- is_active: boolean | null;
777
- created_at: Date | null;
778
- created_by: string | null;
779
- updated_at: Date | null;
780
- updated_by: string | null;
781
- logic_code: string | null;
782
- id_currency: number | null;
783
- iso2_code: string | null;
784
- iso3_code: string | null;
785
- iso3_numeric: string | null;
786
- is_sanctioned: boolean | null;
787
- } | undefined;
788
- log: {
789
- id: number;
790
- url: string | null;
791
- id_log_type: number | null;
792
- id_country: number | null;
793
- action: string | null;
794
- params: JsonValue | null;
795
- action_by: string | null;
796
- action_id: string | null;
797
- action_at: Date | null;
798
- } | undefined;
799
- };
800
- meta: object;
801
- }>;
802
- update: import("@trpc/server").TRPCMutationProcedure<{
803
- input: {
804
- id?: number | null | undefined;
805
- id_string?: string | null | undefined;
806
- id_currency?: number | null | undefined;
807
- is_active?: boolean | undefined;
808
- name?: string | null | undefined;
809
- iso2_code?: string | null | undefined;
810
- iso3_code?: string | null | undefined;
811
- iso3_numeric?: string | null | undefined;
812
- is_sanctioned?: boolean | null | undefined;
813
- };
814
- output: {
815
- data: {
816
- id: number;
817
- name: string | null;
818
- is_active: boolean | null;
819
- created_at: Date | null;
820
- created_by: string | null;
821
- updated_at: Date | null;
822
- updated_by: string | null;
823
- logic_code: string | null;
824
- id_currency: number | null;
825
- iso2_code: string | null;
826
- iso3_code: string | null;
827
- iso3_numeric: string | null;
828
- is_sanctioned: boolean | null;
829
- } | undefined;
830
- log: {
831
- id: number;
832
- url: string | null;
833
- id_log_type: number | null;
834
- id_country: number | null;
835
- action: string | null;
836
- params: JsonValue | null;
837
- action_by: string | null;
838
- action_id: string | null;
839
- action_at: Date | null;
840
- } | undefined;
841
- };
842
- meta: object;
843
- }>;
844
- delete: import("@trpc/server").TRPCMutationProcedure<{
845
- input: {
846
- id?: number | null | undefined;
847
- ids?: number[] | null | undefined;
848
- id_string?: string | null | undefined;
849
- ids_string?: string[] | null | undefined;
850
- };
851
- output: {
852
- data: ({
853
- id: number;
854
- name: string | null;
855
- is_active: boolean | null;
856
- created_at: Date | null;
857
- created_by: string | null;
858
- updated_at: Date | null;
859
- updated_by: string | null;
860
- logic_code: string | null;
861
- id_currency: number | null;
862
- iso2_code: string | null;
863
- iso3_code: string | null;
864
- iso3_numeric: string | null;
865
- is_sanctioned: boolean | null;
866
- } | undefined)[];
867
- };
868
- meta: object;
869
- }>;
870
- }>>;
871
- states: import("@trpc/server").TRPCBuiltRouter<{
872
- ctx: Context$1;
873
- meta: object;
874
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
875
- transformer: false;
876
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
877
- get: import("@trpc/server").TRPCMutationProcedure<{
878
- input: {
879
- search?: string | null | undefined;
880
- take?: number | null | undefined;
881
- skip?: number | null | undefined;
882
- is_active?: boolean[] | null | undefined;
883
- ids_include?: number[] | null | undefined;
884
- ids_exclude?: number[] | null | undefined;
885
- ids_string_include?: string[] | null | undefined;
886
- ids_string_exclude?: string[] | null | undefined;
887
- logic_codes_include?: string[] | null | undefined;
888
- logic_codes_exclude?: string[] | null | undefined;
889
- };
890
- output: {
891
- data: {
892
- id: number;
893
- name: string | null;
894
- is_active: boolean | null;
895
- id_country: number | null;
896
- code: string | null;
897
- created_at: Date | null;
898
- created_by: string | null;
899
- updated_at: Date | null;
900
- updated_by: string | null;
901
- logic_code: string | null;
902
- }[] | undefined;
903
- total: number | undefined;
904
- };
905
- meta: object;
906
- }>;
907
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
908
- input: {
909
- id?: number | null | undefined;
910
- id_string?: string | null | undefined;
911
- };
912
- output: {
913
- data: {
914
- id: number;
915
- name: string | null;
916
- is_active: boolean | null;
917
- id_country: number | null;
918
- code: string | null;
919
- created_at: Date | null;
920
- created_by: string | null;
921
- updated_at: Date | null;
922
- updated_by: string | null;
923
- logic_code: string | null;
924
- } | undefined;
925
- };
926
- meta: object;
927
- }>;
928
- histories: import("@trpc/server").TRPCBuiltRouter<{
894
+ countries: import("@trpc/server").TRPCBuiltRouter<{
929
895
  ctx: Context$1;
930
896
  meta: object;
931
897
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -943,14 +909,55 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
943
909
  ids_string_exclude?: string[] | null | undefined;
944
910
  logic_codes_include?: string[] | null | undefined;
945
911
  logic_codes_exclude?: string[] | null | undefined;
946
- id_log_type?: number | null | undefined;
947
- ids_log_type?: number[] | null | undefined;
948
- id_state?: number | null | undefined;
949
- ids_state?: number[] | null | undefined;
950
912
  };
951
913
  output: {
952
- data: ({
953
- log_type: {
914
+ data: {
915
+ id: number;
916
+ name: string | null;
917
+ is_active: boolean | null;
918
+ created_at: Date | null;
919
+ created_by: string | null;
920
+ updated_at: Date | null;
921
+ updated_by: string | null;
922
+ logic_code: string | null;
923
+ id_currency: number | null;
924
+ iso2_code: string | null;
925
+ iso3_code: string | null;
926
+ iso3_numeric: string | null;
927
+ is_sanctioned: boolean | null;
928
+ }[] | undefined;
929
+ total: number | undefined;
930
+ };
931
+ meta: object;
932
+ }>;
933
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
934
+ input: {
935
+ id?: number | null | undefined;
936
+ id_string?: string | null | undefined;
937
+ };
938
+ output: {
939
+ data: {
940
+ _count: {
941
+ currency: number;
942
+ un_locodes: number;
943
+ states: number;
944
+ cities: number;
945
+ postal_codes: number;
946
+ local_codes: number;
947
+ country_logs: number;
948
+ airlines: number;
949
+ vessels: number;
950
+ branches: number;
951
+ users: number;
952
+ bank_accounts: number;
953
+ companies: number;
954
+ customs_datas: number;
955
+ forwarding_console_reference_numbers: number;
956
+ shipping_lines: number;
957
+ organization_forwarder_detail_handlings: number;
958
+ };
959
+ currency: {
960
+ symbol: string | null;
954
961
  id: number;
955
962
  name: string | null;
956
963
  is_active: boolean | null;
@@ -959,208 +966,221 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
959
966
  updated_at: Date | null;
960
967
  updated_by: string | null;
961
968
  logic_code: string | null;
969
+ currency_code: string | null;
970
+ currency_name: string | null;
971
+ major_unit: string | null;
972
+ minor_unit: string | null;
973
+ decimal_unit: number | null;
974
+ iso_decimal: number | null;
962
975
  } | null;
963
976
  } & {
977
+ id: number;
978
+ name: string | null;
979
+ is_active: boolean | null;
980
+ created_at: Date | null;
981
+ created_by: string | null;
982
+ updated_at: Date | null;
983
+ updated_by: string | null;
984
+ logic_code: string | null;
985
+ id_currency: number | null;
986
+ iso2_code: string | null;
987
+ iso3_code: string | null;
988
+ iso3_numeric: string | null;
989
+ is_sanctioned: boolean | null;
990
+ };
991
+ };
992
+ meta: object;
993
+ }>;
994
+ histories: import("@trpc/server").TRPCBuiltRouter<{
995
+ ctx: Context$1;
996
+ meta: object;
997
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
998
+ transformer: false;
999
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1000
+ get: import("@trpc/server").TRPCMutationProcedure<{
1001
+ input: {
1002
+ search?: string | null | undefined;
1003
+ take?: number | null | undefined;
1004
+ skip?: number | null | undefined;
1005
+ is_active?: boolean[] | null | undefined;
1006
+ ids_include?: number[] | null | undefined;
1007
+ ids_exclude?: number[] | null | undefined;
1008
+ ids_string_include?: string[] | null | undefined;
1009
+ ids_string_exclude?: string[] | null | undefined;
1010
+ logic_codes_include?: string[] | null | undefined;
1011
+ logic_codes_exclude?: string[] | null | undefined;
1012
+ id_log_type?: number | null | undefined;
1013
+ ids_log_type?: number[] | null | undefined;
1014
+ id_country?: number | null | undefined;
1015
+ ids_country?: number[] | null | undefined;
1016
+ };
1017
+ output: {
1018
+ data: {
1019
+ params: Record<string, unknown>;
1020
+ log_type: {
1021
+ id: number;
1022
+ name: string | null;
1023
+ is_active: boolean | null;
1024
+ created_at: Date | null;
1025
+ created_by: string | null;
1026
+ updated_at: Date | null;
1027
+ updated_by: string | null;
1028
+ logic_code: string | null;
1029
+ } | null;
1030
+ id: number;
1031
+ url: string | null;
1032
+ id_log_type: number | null;
1033
+ id_country: number | null;
1034
+ action: string | null;
1035
+ action_by: string | null;
1036
+ action_id: string | null;
1037
+ action_at: Date | null;
1038
+ }[] | undefined;
1039
+ total: number | undefined;
1040
+ };
1041
+ meta: object;
1042
+ }>;
1043
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
1044
+ input: {
1045
+ id?: number | null | undefined;
1046
+ id_string?: string | null | undefined;
1047
+ };
1048
+ output: {
1049
+ data: {
1050
+ params: Record<string, unknown>;
1051
+ log_type: {
1052
+ id: number;
1053
+ name: string | null;
1054
+ is_active: boolean | null;
1055
+ created_at: Date | null;
1056
+ created_by: string | null;
1057
+ updated_at: Date | null;
1058
+ updated_by: string | null;
1059
+ logic_code: string | null;
1060
+ } | null;
1061
+ id: number;
1062
+ url: string | null;
1063
+ id_log_type: number | null;
1064
+ id_country: number | null;
1065
+ action: string | null;
1066
+ action_by: string | null;
1067
+ action_id: string | null;
1068
+ action_at: Date | null;
1069
+ } | undefined;
1070
+ };
1071
+ meta: object;
1072
+ }>;
1073
+ }>>;
1074
+ create: import("@trpc/server").TRPCMutationProcedure<{
1075
+ input: {
1076
+ id_currency?: number | null | undefined;
1077
+ is_active?: boolean | undefined;
1078
+ name?: string | null | undefined;
1079
+ iso2_code?: string | null | undefined;
1080
+ iso3_code?: string | null | undefined;
1081
+ iso3_numeric?: string | null | undefined;
1082
+ is_sanctioned?: boolean | null | undefined;
1083
+ };
1084
+ output: {
1085
+ data: {
1086
+ id: number;
1087
+ name: string | null;
1088
+ is_active: boolean | null;
1089
+ created_at: Date | null;
1090
+ created_by: string | null;
1091
+ updated_at: Date | null;
1092
+ updated_by: string | null;
1093
+ logic_code: string | null;
1094
+ id_currency: number | null;
1095
+ iso2_code: string | null;
1096
+ iso3_code: string | null;
1097
+ iso3_numeric: string | null;
1098
+ is_sanctioned: boolean | null;
1099
+ } | undefined;
1100
+ log: {
964
1101
  id: number;
965
1102
  url: string | null;
966
1103
  id_log_type: number | null;
967
- id_state: number | null;
1104
+ id_country: number | null;
968
1105
  action: string | null;
969
1106
  params: JsonValue | null;
970
1107
  action_by: string | null;
971
1108
  action_id: string | null;
972
1109
  action_at: Date | null;
973
- })[] | undefined;
974
- total: number | undefined;
1110
+ } | undefined;
975
1111
  };
976
1112
  meta: object;
977
1113
  }>;
978
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
1114
+ update: import("@trpc/server").TRPCMutationProcedure<{
979
1115
  input: {
980
1116
  id?: number | null | undefined;
981
1117
  id_string?: string | null | undefined;
1118
+ id_currency?: number | null | undefined;
1119
+ is_active?: boolean | undefined;
1120
+ name?: string | null | undefined;
1121
+ iso2_code?: string | null | undefined;
1122
+ iso3_code?: string | null | undefined;
1123
+ iso3_numeric?: string | null | undefined;
1124
+ is_sanctioned?: boolean | null | undefined;
982
1125
  };
983
1126
  output: {
984
- data: ({
985
- log_type: {
986
- id: number;
987
- name: string | null;
988
- is_active: boolean | null;
989
- created_at: Date | null;
990
- created_by: string | null;
991
- updated_at: Date | null;
992
- updated_by: string | null;
993
- logic_code: string | null;
994
- } | null;
995
- } & {
1127
+ data: {
1128
+ id: number;
1129
+ name: string | null;
1130
+ is_active: boolean | null;
1131
+ created_at: Date | null;
1132
+ created_by: string | null;
1133
+ updated_at: Date | null;
1134
+ updated_by: string | null;
1135
+ logic_code: string | null;
1136
+ id_currency: number | null;
1137
+ iso2_code: string | null;
1138
+ iso3_code: string | null;
1139
+ iso3_numeric: string | null;
1140
+ is_sanctioned: boolean | null;
1141
+ } | undefined;
1142
+ log: {
996
1143
  id: number;
997
1144
  url: string | null;
998
1145
  id_log_type: number | null;
1146
+ id_country: number | null;
999
1147
  action: string | null;
1000
1148
  params: JsonValue | null;
1001
1149
  action_by: string | null;
1002
1150
  action_id: string | null;
1003
1151
  action_at: Date | null;
1004
- id_time_zone: number | null;
1005
- }) | undefined;
1152
+ } | undefined;
1153
+ };
1154
+ meta: object;
1155
+ }>;
1156
+ delete: import("@trpc/server").TRPCMutationProcedure<{
1157
+ input: {
1158
+ id?: number | null | undefined;
1159
+ ids?: number[] | null | undefined;
1160
+ id_string?: string | null | undefined;
1161
+ ids_string?: string[] | null | undefined;
1162
+ };
1163
+ output: {
1164
+ data: ({
1165
+ id: number;
1166
+ name: string | null;
1167
+ is_active: boolean | null;
1168
+ created_at: Date | null;
1169
+ created_by: string | null;
1170
+ updated_at: Date | null;
1171
+ updated_by: string | null;
1172
+ logic_code: string | null;
1173
+ id_currency: number | null;
1174
+ iso2_code: string | null;
1175
+ iso3_code: string | null;
1176
+ iso3_numeric: string | null;
1177
+ is_sanctioned: boolean | null;
1178
+ } | undefined)[];
1006
1179
  };
1007
1180
  meta: object;
1008
1181
  }>;
1009
1182
  }>>;
1010
- create: import("@trpc/server").TRPCMutationProcedure<{
1011
- input: {
1012
- is_active?: boolean | undefined;
1013
- id_country?: number | null | undefined;
1014
- code?: string | null | undefined;
1015
- name?: string | null | undefined;
1016
- };
1017
- output: {
1018
- data: {
1019
- id: number;
1020
- name: string | null;
1021
- is_active: boolean | null;
1022
- id_country: number | null;
1023
- code: string | null;
1024
- created_at: Date | null;
1025
- created_by: string | null;
1026
- updated_at: Date | null;
1027
- updated_by: string | null;
1028
- logic_code: string | null;
1029
- } | undefined;
1030
- log: {
1031
- id: number;
1032
- url: string | null;
1033
- id_log_type: number | null;
1034
- id_state: number | null;
1035
- action: string | null;
1036
- params: JsonValue | null;
1037
- action_by: string | null;
1038
- action_id: string | null;
1039
- action_at: Date | null;
1040
- } | undefined;
1041
- };
1042
- meta: object;
1043
- }>;
1044
- update: import("@trpc/server").TRPCMutationProcedure<{
1045
- input: {
1046
- id?: number | null | undefined;
1047
- id_string?: string | null | undefined;
1048
- is_active?: boolean | undefined;
1049
- id_country?: number | null | undefined;
1050
- code?: string | null | undefined;
1051
- name?: string | null | undefined;
1052
- };
1053
- output: {
1054
- data: {
1055
- id: number;
1056
- name: string | null;
1057
- is_active: boolean | null;
1058
- id_country: number | null;
1059
- code: string | null;
1060
- created_at: Date | null;
1061
- created_by: string | null;
1062
- updated_at: Date | null;
1063
- updated_by: string | null;
1064
- logic_code: string | null;
1065
- } | undefined;
1066
- log: {
1067
- id: number;
1068
- url: string | null;
1069
- id_log_type: number | null;
1070
- id_state: number | null;
1071
- action: string | null;
1072
- params: JsonValue | null;
1073
- action_by: string | null;
1074
- action_id: string | null;
1075
- action_at: Date | null;
1076
- } | undefined;
1077
- };
1078
- meta: object;
1079
- }>;
1080
- delete: import("@trpc/server").TRPCMutationProcedure<{
1081
- input: {
1082
- id?: number | null | undefined;
1083
- ids?: number[] | null | undefined;
1084
- id_string?: string | null | undefined;
1085
- ids_string?: string[] | null | undefined;
1086
- };
1087
- output: {
1088
- data: ({
1089
- id: number;
1090
- name: string | null;
1091
- is_active: boolean | null;
1092
- id_country: number | null;
1093
- code: string | null;
1094
- created_at: Date | null;
1095
- created_by: string | null;
1096
- updated_at: Date | null;
1097
- updated_by: string | null;
1098
- logic_code: string | null;
1099
- } | undefined)[];
1100
- };
1101
- meta: object;
1102
- }>;
1103
- }>>;
1104
- cities: import("@trpc/server").TRPCBuiltRouter<{
1105
- ctx: Context$1;
1106
- meta: object;
1107
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1108
- transformer: false;
1109
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1110
- get: import("@trpc/server").TRPCMutationProcedure<{
1111
- input: {
1112
- search?: string | null | undefined;
1113
- take?: number | null | undefined;
1114
- skip?: number | null | undefined;
1115
- is_active?: boolean[] | null | undefined;
1116
- ids_include?: number[] | null | undefined;
1117
- ids_exclude?: number[] | null | undefined;
1118
- ids_string_include?: string[] | null | undefined;
1119
- ids_string_exclude?: string[] | null | undefined;
1120
- logic_codes_include?: string[] | null | undefined;
1121
- logic_codes_exclude?: string[] | null | undefined;
1122
- };
1123
- output: {
1124
- data: {
1125
- id: number;
1126
- name: string | null;
1127
- is_active: boolean | null;
1128
- id_country: number | null;
1129
- id_state: number | null;
1130
- code: string | null;
1131
- created_at: Date | null;
1132
- created_by: string | null;
1133
- updated_at: Date | null;
1134
- updated_by: string | null;
1135
- logic_code: string | null;
1136
- }[] | undefined;
1137
- total: number | undefined;
1138
- };
1139
- meta: object;
1140
- }>;
1141
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
1142
- input: {
1143
- id?: number | null | undefined;
1144
- id_string?: string | null | undefined;
1145
- };
1146
- output: {
1147
- data: {
1148
- id: number;
1149
- name: string | null;
1150
- is_active: boolean | null;
1151
- id_country: number | null;
1152
- id_state: number | null;
1153
- code: string | null;
1154
- created_at: Date | null;
1155
- created_by: string | null;
1156
- updated_at: Date | null;
1157
- updated_by: string | null;
1158
- logic_code: string | null;
1159
- } | undefined;
1160
- };
1161
- meta: object;
1162
- }>;
1163
- histories: import("@trpc/server").TRPCBuiltRouter<{
1183
+ states: import("@trpc/server").TRPCBuiltRouter<{
1164
1184
  ctx: Context$1;
1165
1185
  meta: object;
1166
1186
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -1178,14 +1198,61 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1178
1198
  ids_string_exclude?: string[] | null | undefined;
1179
1199
  logic_codes_include?: string[] | null | undefined;
1180
1200
  logic_codes_exclude?: string[] | null | undefined;
1181
- id_log_type?: number | null | undefined;
1182
- ids_log_type?: number[] | null | undefined;
1183
- id_city?: number | null | undefined;
1184
- ids_city?: number[] | null | undefined;
1185
1201
  };
1186
1202
  output: {
1187
- data: ({
1188
- log_type: {
1203
+ data: {
1204
+ id: number;
1205
+ name: string | null;
1206
+ is_active: boolean | null;
1207
+ id_country: number | null;
1208
+ code: string | null;
1209
+ created_at: Date | null;
1210
+ created_by: string | null;
1211
+ updated_at: Date | null;
1212
+ updated_by: string | null;
1213
+ logic_code: string | null;
1214
+ }[] | undefined;
1215
+ total: number | undefined;
1216
+ };
1217
+ meta: object;
1218
+ }>;
1219
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
1220
+ input: {
1221
+ id?: number | null | undefined;
1222
+ id_string?: string | null | undefined;
1223
+ };
1224
+ output: {
1225
+ data: {
1226
+ _count: {
1227
+ country: number;
1228
+ un_locodes: number;
1229
+ cities: number;
1230
+ state_logs: number;
1231
+ airlines: number;
1232
+ branches: number;
1233
+ users: number;
1234
+ companies: number;
1235
+ shipping_lines: number;
1236
+ };
1237
+ country: ({
1238
+ currency: {
1239
+ symbol: string | null;
1240
+ id: number;
1241
+ name: string | null;
1242
+ is_active: boolean | null;
1243
+ created_at: Date | null;
1244
+ created_by: string | null;
1245
+ updated_at: Date | null;
1246
+ updated_by: string | null;
1247
+ logic_code: string | null;
1248
+ currency_code: string | null;
1249
+ currency_name: string | null;
1250
+ major_unit: string | null;
1251
+ minor_unit: string | null;
1252
+ decimal_unit: number | null;
1253
+ iso_decimal: number | null;
1254
+ } | null;
1255
+ } & {
1189
1256
  id: number;
1190
1257
  name: string | null;
1191
1258
  is_active: boolean | null;
@@ -1194,18 +1261,234 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1194
1261
  updated_at: Date | null;
1195
1262
  updated_by: string | null;
1196
1263
  logic_code: string | null;
1197
- } | null;
1264
+ id_currency: number | null;
1265
+ iso2_code: string | null;
1266
+ iso3_code: string | null;
1267
+ iso3_numeric: string | null;
1268
+ is_sanctioned: boolean | null;
1269
+ }) | null;
1198
1270
  } & {
1199
1271
  id: number;
1200
- url: string | null;
1201
- id_log_type: number | null;
1202
- id_city: number | null;
1203
- action: string | null;
1204
- params: JsonValue | null;
1272
+ name: string | null;
1273
+ is_active: boolean | null;
1274
+ id_country: number | null;
1275
+ code: string | null;
1276
+ created_at: Date | null;
1277
+ created_by: string | null;
1278
+ updated_at: Date | null;
1279
+ updated_by: string | null;
1280
+ logic_code: string | null;
1281
+ };
1282
+ };
1283
+ meta: object;
1284
+ }>;
1285
+ histories: import("@trpc/server").TRPCBuiltRouter<{
1286
+ ctx: Context$1;
1287
+ meta: object;
1288
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1289
+ transformer: false;
1290
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1291
+ get: import("@trpc/server").TRPCMutationProcedure<{
1292
+ input: {
1293
+ search?: string | null | undefined;
1294
+ take?: number | null | undefined;
1295
+ skip?: number | null | undefined;
1296
+ is_active?: boolean[] | null | undefined;
1297
+ ids_include?: number[] | null | undefined;
1298
+ ids_exclude?: number[] | null | undefined;
1299
+ ids_string_include?: string[] | null | undefined;
1300
+ ids_string_exclude?: string[] | null | undefined;
1301
+ logic_codes_include?: string[] | null | undefined;
1302
+ logic_codes_exclude?: string[] | null | undefined;
1303
+ id_log_type?: number | null | undefined;
1304
+ ids_log_type?: number[] | null | undefined;
1305
+ id_state?: number | null | undefined;
1306
+ ids_state?: number[] | null | undefined;
1307
+ };
1308
+ output: {
1309
+ data: {
1310
+ params: Record<string, unknown>;
1311
+ log_type: {
1312
+ id: number;
1313
+ name: string | null;
1314
+ is_active: boolean | null;
1315
+ created_at: Date | null;
1316
+ created_by: string | null;
1317
+ updated_at: Date | null;
1318
+ updated_by: string | null;
1319
+ logic_code: string | null;
1320
+ } | null;
1321
+ id: number;
1322
+ url: string | null;
1323
+ id_log_type: number | null;
1324
+ id_state: number | null;
1325
+ action: string | null;
1326
+ action_by: string | null;
1327
+ action_id: string | null;
1328
+ action_at: Date | null;
1329
+ }[] | undefined;
1330
+ total: number | undefined;
1331
+ };
1332
+ meta: object;
1333
+ }>;
1334
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
1335
+ input: {
1336
+ id?: number | null | undefined;
1337
+ id_string?: string | null | undefined;
1338
+ };
1339
+ output: {
1340
+ data: {
1341
+ params: Record<string, unknown>;
1342
+ log_type: {
1343
+ id: number;
1344
+ name: string | null;
1345
+ is_active: boolean | null;
1346
+ created_at: Date | null;
1347
+ created_by: string | null;
1348
+ updated_at: Date | null;
1349
+ updated_by: string | null;
1350
+ logic_code: string | null;
1351
+ } | null;
1352
+ id: number;
1353
+ url: string | null;
1354
+ id_log_type: number | null;
1355
+ action: string | null;
1356
+ action_by: string | null;
1357
+ action_id: string | null;
1358
+ action_at: Date | null;
1359
+ id_time_zone: number | null;
1360
+ } | undefined;
1361
+ };
1362
+ meta: object;
1363
+ }>;
1364
+ }>>;
1365
+ create: import("@trpc/server").TRPCMutationProcedure<{
1366
+ input: {
1367
+ is_active?: boolean | undefined;
1368
+ id_country?: number | null | undefined;
1369
+ code?: string | null | undefined;
1370
+ name?: string | null | undefined;
1371
+ };
1372
+ output: {
1373
+ data: {
1374
+ id: number;
1375
+ name: string | null;
1376
+ is_active: boolean | null;
1377
+ id_country: number | null;
1378
+ code: string | null;
1379
+ created_at: Date | null;
1380
+ created_by: string | null;
1381
+ updated_at: Date | null;
1382
+ updated_by: string | null;
1383
+ logic_code: string | null;
1384
+ } | undefined;
1385
+ log: {
1386
+ id: number;
1387
+ url: string | null;
1388
+ id_log_type: number | null;
1389
+ id_state: number | null;
1390
+ action: string | null;
1391
+ params: JsonValue | null;
1392
+ action_by: string | null;
1393
+ action_id: string | null;
1394
+ action_at: Date | null;
1395
+ } | undefined;
1396
+ };
1397
+ meta: object;
1398
+ }>;
1399
+ update: import("@trpc/server").TRPCMutationProcedure<{
1400
+ input: {
1401
+ id?: number | null | undefined;
1402
+ id_string?: string | null | undefined;
1403
+ is_active?: boolean | undefined;
1404
+ id_country?: number | null | undefined;
1405
+ code?: string | null | undefined;
1406
+ name?: string | null | undefined;
1407
+ };
1408
+ output: {
1409
+ data: {
1410
+ id: number;
1411
+ name: string | null;
1412
+ is_active: boolean | null;
1413
+ id_country: number | null;
1414
+ code: string | null;
1415
+ created_at: Date | null;
1416
+ created_by: string | null;
1417
+ updated_at: Date | null;
1418
+ updated_by: string | null;
1419
+ logic_code: string | null;
1420
+ } | undefined;
1421
+ log: {
1422
+ id: number;
1423
+ url: string | null;
1424
+ id_log_type: number | null;
1425
+ id_state: number | null;
1426
+ action: string | null;
1427
+ params: JsonValue | null;
1205
1428
  action_by: string | null;
1206
1429
  action_id: string | null;
1207
1430
  action_at: Date | null;
1208
- })[] | undefined;
1431
+ } | undefined;
1432
+ };
1433
+ meta: object;
1434
+ }>;
1435
+ delete: import("@trpc/server").TRPCMutationProcedure<{
1436
+ input: {
1437
+ id?: number | null | undefined;
1438
+ ids?: number[] | null | undefined;
1439
+ id_string?: string | null | undefined;
1440
+ ids_string?: string[] | null | undefined;
1441
+ };
1442
+ output: {
1443
+ data: ({
1444
+ id: number;
1445
+ name: string | null;
1446
+ is_active: boolean | null;
1447
+ id_country: number | null;
1448
+ code: string | null;
1449
+ created_at: Date | null;
1450
+ created_by: string | null;
1451
+ updated_at: Date | null;
1452
+ updated_by: string | null;
1453
+ logic_code: string | null;
1454
+ } | undefined)[];
1455
+ };
1456
+ meta: object;
1457
+ }>;
1458
+ }>>;
1459
+ cities: import("@trpc/server").TRPCBuiltRouter<{
1460
+ ctx: Context$1;
1461
+ meta: object;
1462
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1463
+ transformer: false;
1464
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1465
+ get: import("@trpc/server").TRPCMutationProcedure<{
1466
+ input: {
1467
+ search?: string | null | undefined;
1468
+ take?: number | null | undefined;
1469
+ skip?: number | null | undefined;
1470
+ is_active?: boolean[] | null | undefined;
1471
+ ids_include?: number[] | null | undefined;
1472
+ ids_exclude?: number[] | null | undefined;
1473
+ ids_string_include?: string[] | null | undefined;
1474
+ ids_string_exclude?: string[] | null | undefined;
1475
+ logic_codes_include?: string[] | null | undefined;
1476
+ logic_codes_exclude?: string[] | null | undefined;
1477
+ };
1478
+ output: {
1479
+ data: {
1480
+ id: number;
1481
+ name: string | null;
1482
+ is_active: boolean | null;
1483
+ id_country: number | null;
1484
+ id_state: number | null;
1485
+ code: string | null;
1486
+ created_at: Date | null;
1487
+ created_by: string | null;
1488
+ updated_at: Date | null;
1489
+ updated_by: string | null;
1490
+ logic_code: string | null;
1491
+ }[] | undefined;
1209
1492
  total: number | undefined;
1210
1493
  };
1211
1494
  meta: object;
@@ -1216,11 +1499,58 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1216
1499
  id_string?: string | null | undefined;
1217
1500
  };
1218
1501
  output: {
1219
- data: ({
1220
- log_type: {
1502
+ data: {
1503
+ _count: {
1504
+ country: number;
1505
+ state: number;
1506
+ un_locodes: number;
1507
+ cities_postal_codes: number;
1508
+ city_logs: number;
1509
+ airlines: number;
1510
+ branches: number;
1511
+ users: number;
1512
+ companies: number;
1513
+ shipping_lines: number;
1514
+ };
1515
+ country: ({
1516
+ currency: {
1517
+ symbol: string | null;
1518
+ id: number;
1519
+ name: string | null;
1520
+ is_active: boolean | null;
1521
+ created_at: Date | null;
1522
+ created_by: string | null;
1523
+ updated_at: Date | null;
1524
+ updated_by: string | null;
1525
+ logic_code: string | null;
1526
+ currency_code: string | null;
1527
+ currency_name: string | null;
1528
+ major_unit: string | null;
1529
+ minor_unit: string | null;
1530
+ decimal_unit: number | null;
1531
+ iso_decimal: number | null;
1532
+ } | null;
1533
+ } & {
1534
+ id: number;
1535
+ name: string | null;
1536
+ is_active: boolean | null;
1537
+ created_at: Date | null;
1538
+ created_by: string | null;
1539
+ updated_at: Date | null;
1540
+ updated_by: string | null;
1541
+ logic_code: string | null;
1542
+ id_currency: number | null;
1543
+ iso2_code: string | null;
1544
+ iso3_code: string | null;
1545
+ iso3_numeric: string | null;
1546
+ is_sanctioned: boolean | null;
1547
+ }) | null;
1548
+ state: {
1221
1549
  id: number;
1222
1550
  name: string | null;
1223
1551
  is_active: boolean | null;
1552
+ id_country: number | null;
1553
+ code: string | null;
1224
1554
  created_at: Date | null;
1225
1555
  created_by: string | null;
1226
1556
  updated_at: Date | null;
@@ -1228,6 +1558,124 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1228
1558
  logic_code: string | null;
1229
1559
  } | null;
1230
1560
  } & {
1561
+ id: number;
1562
+ name: string | null;
1563
+ is_active: boolean | null;
1564
+ id_country: number | null;
1565
+ id_state: number | null;
1566
+ code: string | null;
1567
+ created_at: Date | null;
1568
+ created_by: string | null;
1569
+ updated_at: Date | null;
1570
+ updated_by: string | null;
1571
+ logic_code: string | null;
1572
+ };
1573
+ };
1574
+ meta: object;
1575
+ }>;
1576
+ histories: import("@trpc/server").TRPCBuiltRouter<{
1577
+ ctx: Context$1;
1578
+ meta: object;
1579
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1580
+ transformer: false;
1581
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1582
+ get: import("@trpc/server").TRPCMutationProcedure<{
1583
+ input: {
1584
+ search?: string | null | undefined;
1585
+ take?: number | null | undefined;
1586
+ skip?: number | null | undefined;
1587
+ is_active?: boolean[] | null | undefined;
1588
+ ids_include?: number[] | null | undefined;
1589
+ ids_exclude?: number[] | null | undefined;
1590
+ ids_string_include?: string[] | null | undefined;
1591
+ ids_string_exclude?: string[] | null | undefined;
1592
+ logic_codes_include?: string[] | null | undefined;
1593
+ logic_codes_exclude?: string[] | null | undefined;
1594
+ id_log_type?: number | null | undefined;
1595
+ ids_log_type?: number[] | null | undefined;
1596
+ id_city?: number | null | undefined;
1597
+ ids_city?: number[] | null | undefined;
1598
+ };
1599
+ output: {
1600
+ data: {
1601
+ params: Record<string, unknown>;
1602
+ log_type: {
1603
+ id: number;
1604
+ name: string | null;
1605
+ is_active: boolean | null;
1606
+ created_at: Date | null;
1607
+ created_by: string | null;
1608
+ updated_at: Date | null;
1609
+ updated_by: string | null;
1610
+ logic_code: string | null;
1611
+ } | null;
1612
+ id: number;
1613
+ url: string | null;
1614
+ id_log_type: number | null;
1615
+ id_city: number | null;
1616
+ action: string | null;
1617
+ action_by: string | null;
1618
+ action_id: string | null;
1619
+ action_at: Date | null;
1620
+ }[] | undefined;
1621
+ total: number | undefined;
1622
+ };
1623
+ meta: object;
1624
+ }>;
1625
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
1626
+ input: {
1627
+ id?: number | null | undefined;
1628
+ id_string?: string | null | undefined;
1629
+ };
1630
+ output: {
1631
+ data: {
1632
+ params: Record<string, unknown>;
1633
+ log_type: {
1634
+ id: number;
1635
+ name: string | null;
1636
+ is_active: boolean | null;
1637
+ created_at: Date | null;
1638
+ created_by: string | null;
1639
+ updated_at: Date | null;
1640
+ updated_by: string | null;
1641
+ logic_code: string | null;
1642
+ } | null;
1643
+ id: number;
1644
+ url: string | null;
1645
+ id_log_type: number | null;
1646
+ id_city: number | null;
1647
+ action: string | null;
1648
+ action_by: string | null;
1649
+ action_id: string | null;
1650
+ action_at: Date | null;
1651
+ } | undefined;
1652
+ };
1653
+ meta: object;
1654
+ }>;
1655
+ }>>;
1656
+ create: import("@trpc/server").TRPCMutationProcedure<{
1657
+ input: {
1658
+ is_active?: boolean | undefined;
1659
+ id_country?: number | null | undefined;
1660
+ id_state?: number | null | undefined;
1661
+ code?: string | null | undefined;
1662
+ name?: string | null | undefined;
1663
+ };
1664
+ output: {
1665
+ data: {
1666
+ id: number;
1667
+ name: string | null;
1668
+ is_active: boolean | null;
1669
+ id_country: number | null;
1670
+ id_state: number | null;
1671
+ code: string | null;
1672
+ created_at: Date | null;
1673
+ created_by: string | null;
1674
+ updated_at: Date | null;
1675
+ updated_by: string | null;
1676
+ logic_code: string | null;
1677
+ } | undefined;
1678
+ log: {
1231
1679
  id: number;
1232
1680
  url: string | null;
1233
1681
  id_log_type: number | null;
@@ -1237,165 +1685,73 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1237
1685
  action_by: string | null;
1238
1686
  action_id: string | null;
1239
1687
  action_at: Date | null;
1240
- }) | undefined;
1688
+ } | undefined;
1689
+ };
1690
+ meta: object;
1691
+ }>;
1692
+ update: import("@trpc/server").TRPCMutationProcedure<{
1693
+ input: {
1694
+ id?: number | null | undefined;
1695
+ id_string?: string | null | undefined;
1696
+ is_active?: boolean | undefined;
1697
+ id_country?: number | null | undefined;
1698
+ id_state?: number | null | undefined;
1699
+ code?: string | null | undefined;
1700
+ name?: string | null | undefined;
1701
+ };
1702
+ output: {
1703
+ data: {
1704
+ id: number;
1705
+ name: string | null;
1706
+ is_active: boolean | null;
1707
+ id_country: number | null;
1708
+ id_state: number | null;
1709
+ code: string | null;
1710
+ created_at: Date | null;
1711
+ created_by: string | null;
1712
+ updated_at: Date | null;
1713
+ updated_by: string | null;
1714
+ logic_code: string | null;
1715
+ } | undefined;
1716
+ log: {
1717
+ id: number;
1718
+ url: string | null;
1719
+ id_log_type: number | null;
1720
+ id_state: number | null;
1721
+ action: string | null;
1722
+ params: JsonValue | null;
1723
+ action_by: string | null;
1724
+ action_id: string | null;
1725
+ action_at: Date | null;
1726
+ } | undefined;
1727
+ };
1728
+ meta: object;
1729
+ }>;
1730
+ delete: import("@trpc/server").TRPCMutationProcedure<{
1731
+ input: {
1732
+ id?: number | null | undefined;
1733
+ ids?: number[] | null | undefined;
1734
+ id_string?: string | null | undefined;
1735
+ ids_string?: string[] | null | undefined;
1736
+ };
1737
+ output: {
1738
+ data: ({
1739
+ id: number;
1740
+ name: string | null;
1741
+ is_active: boolean | null;
1742
+ id_country: number | null;
1743
+ code: string | null;
1744
+ created_at: Date | null;
1745
+ created_by: string | null;
1746
+ updated_at: Date | null;
1747
+ updated_by: string | null;
1748
+ logic_code: string | null;
1749
+ } | undefined)[];
1241
1750
  };
1242
1751
  meta: object;
1243
1752
  }>;
1244
1753
  }>>;
1245
- create: import("@trpc/server").TRPCMutationProcedure<{
1246
- input: {
1247
- is_active?: boolean | undefined;
1248
- id_country?: number | null | undefined;
1249
- id_state?: number | null | undefined;
1250
- code?: string | null | undefined;
1251
- name?: string | null | undefined;
1252
- };
1253
- output: {
1254
- data: {
1255
- id: number;
1256
- name: string | null;
1257
- is_active: boolean | null;
1258
- id_country: number | null;
1259
- id_state: number | null;
1260
- code: string | null;
1261
- created_at: Date | null;
1262
- created_by: string | null;
1263
- updated_at: Date | null;
1264
- updated_by: string | null;
1265
- logic_code: string | null;
1266
- } | undefined;
1267
- log: {
1268
- id: number;
1269
- url: string | null;
1270
- id_log_type: number | null;
1271
- id_city: number | null;
1272
- action: string | null;
1273
- params: JsonValue | null;
1274
- action_by: string | null;
1275
- action_id: string | null;
1276
- action_at: Date | null;
1277
- } | undefined;
1278
- };
1279
- meta: object;
1280
- }>;
1281
- update: import("@trpc/server").TRPCMutationProcedure<{
1282
- input: {
1283
- id?: number | null | undefined;
1284
- id_string?: string | null | undefined;
1285
- is_active?: boolean | undefined;
1286
- id_country?: number | null | undefined;
1287
- id_state?: number | null | undefined;
1288
- code?: string | null | undefined;
1289
- name?: string | null | undefined;
1290
- };
1291
- output: {
1292
- data: {
1293
- id: number;
1294
- name: string | null;
1295
- is_active: boolean | null;
1296
- id_country: number | null;
1297
- id_state: number | null;
1298
- code: string | null;
1299
- created_at: Date | null;
1300
- created_by: string | null;
1301
- updated_at: Date | null;
1302
- updated_by: string | null;
1303
- logic_code: string | null;
1304
- } | undefined;
1305
- log: {
1306
- id: number;
1307
- url: string | null;
1308
- id_log_type: number | null;
1309
- id_state: number | null;
1310
- action: string | null;
1311
- params: JsonValue | null;
1312
- action_by: string | null;
1313
- action_id: string | null;
1314
- action_at: Date | null;
1315
- } | undefined;
1316
- };
1317
- meta: object;
1318
- }>;
1319
- delete: import("@trpc/server").TRPCMutationProcedure<{
1320
- input: {
1321
- id?: number | null | undefined;
1322
- ids?: number[] | null | undefined;
1323
- id_string?: string | null | undefined;
1324
- ids_string?: string[] | null | undefined;
1325
- };
1326
- output: {
1327
- data: ({
1328
- id: number;
1329
- name: string | null;
1330
- is_active: boolean | null;
1331
- id_country: number | null;
1332
- code: string | null;
1333
- created_at: Date | null;
1334
- created_by: string | null;
1335
- updated_at: Date | null;
1336
- updated_by: string | null;
1337
- logic_code: string | null;
1338
- } | undefined)[];
1339
- };
1340
- meta: object;
1341
- }>;
1342
- }>>;
1343
- postalCodes: import("@trpc/server").TRPCBuiltRouter<{
1344
- ctx: Context$1;
1345
- meta: object;
1346
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1347
- transformer: false;
1348
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1349
- get: import("@trpc/server").TRPCMutationProcedure<{
1350
- input: {
1351
- search?: string | null | undefined;
1352
- take?: number | null | undefined;
1353
- skip?: number | null | undefined;
1354
- is_active?: boolean[] | null | undefined;
1355
- ids_include?: number[] | null | undefined;
1356
- ids_exclude?: number[] | null | undefined;
1357
- ids_string_include?: string[] | null | undefined;
1358
- ids_string_exclude?: string[] | null | undefined;
1359
- logic_codes_include?: string[] | null | undefined;
1360
- logic_codes_exclude?: string[] | null | undefined;
1361
- };
1362
- output: {
1363
- data: {
1364
- id: number;
1365
- is_active: boolean | null;
1366
- id_country: number | null;
1367
- code: string | null;
1368
- created_at: Date | null;
1369
- created_by: string | null;
1370
- updated_at: Date | null;
1371
- updated_by: string | null;
1372
- logic_code: string | null;
1373
- }[] | undefined;
1374
- total: number | undefined;
1375
- };
1376
- meta: object;
1377
- }>;
1378
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
1379
- input: {
1380
- id?: number | null | undefined;
1381
- id_string?: string | null | undefined;
1382
- };
1383
- output: {
1384
- data: {
1385
- id: number;
1386
- is_active: boolean | null;
1387
- id_country: number | null;
1388
- code: string | null;
1389
- created_at: Date | null;
1390
- created_by: string | null;
1391
- updated_at: Date | null;
1392
- updated_by: string | null;
1393
- logic_code: string | null;
1394
- } | undefined;
1395
- };
1396
- meta: object;
1397
- }>;
1398
- histories: import("@trpc/server").TRPCBuiltRouter<{
1754
+ postalCodes: import("@trpc/server").TRPCBuiltRouter<{
1399
1755
  ctx: Context$1;
1400
1756
  meta: object;
1401
1757
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -1413,14 +1769,59 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1413
1769
  ids_string_exclude?: string[] | null | undefined;
1414
1770
  logic_codes_include?: string[] | null | undefined;
1415
1771
  logic_codes_exclude?: string[] | null | undefined;
1416
- id_log_type?: number | null | undefined;
1417
- ids_log_type?: number[] | null | undefined;
1418
- id_postal_code?: number | null | undefined;
1419
- ids_postal_code?: number[] | null | undefined;
1420
1772
  };
1421
1773
  output: {
1422
- data: ({
1423
- log_type: {
1774
+ data: {
1775
+ id: number;
1776
+ is_active: boolean | null;
1777
+ id_country: number | null;
1778
+ code: string | null;
1779
+ created_at: Date | null;
1780
+ created_by: string | null;
1781
+ updated_at: Date | null;
1782
+ updated_by: string | null;
1783
+ logic_code: string | null;
1784
+ }[] | undefined;
1785
+ total: number | undefined;
1786
+ };
1787
+ meta: object;
1788
+ }>;
1789
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
1790
+ input: {
1791
+ id?: number | null | undefined;
1792
+ id_string?: string | null | undefined;
1793
+ };
1794
+ output: {
1795
+ data: {
1796
+ _count: {
1797
+ country: number;
1798
+ cities_postal_codes: number;
1799
+ postal_code_logs: number;
1800
+ airlines: number;
1801
+ branches: number;
1802
+ users: number;
1803
+ companies: number;
1804
+ shipping_lines: number;
1805
+ };
1806
+ country: ({
1807
+ currency: {
1808
+ symbol: string | null;
1809
+ id: number;
1810
+ name: string | null;
1811
+ is_active: boolean | null;
1812
+ created_at: Date | null;
1813
+ created_by: string | null;
1814
+ updated_at: Date | null;
1815
+ updated_by: string | null;
1816
+ logic_code: string | null;
1817
+ currency_code: string | null;
1818
+ currency_name: string | null;
1819
+ major_unit: string | null;
1820
+ minor_unit: string | null;
1821
+ decimal_unit: number | null;
1822
+ iso_decimal: number | null;
1823
+ } | null;
1824
+ } & {
1424
1825
  id: number;
1425
1826
  name: string | null;
1426
1827
  is_active: boolean | null;
@@ -1429,8 +1830,125 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1429
1830
  updated_at: Date | null;
1430
1831
  updated_by: string | null;
1431
1832
  logic_code: string | null;
1432
- } | null;
1833
+ id_currency: number | null;
1834
+ iso2_code: string | null;
1835
+ iso3_code: string | null;
1836
+ iso3_numeric: string | null;
1837
+ is_sanctioned: boolean | null;
1838
+ }) | null;
1433
1839
  } & {
1840
+ id: number;
1841
+ is_active: boolean | null;
1842
+ id_country: number | null;
1843
+ code: string | null;
1844
+ created_at: Date | null;
1845
+ created_by: string | null;
1846
+ updated_at: Date | null;
1847
+ updated_by: string | null;
1848
+ logic_code: string | null;
1849
+ };
1850
+ };
1851
+ meta: object;
1852
+ }>;
1853
+ histories: import("@trpc/server").TRPCBuiltRouter<{
1854
+ ctx: Context$1;
1855
+ meta: object;
1856
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1857
+ transformer: false;
1858
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1859
+ get: import("@trpc/server").TRPCMutationProcedure<{
1860
+ input: {
1861
+ search?: string | null | undefined;
1862
+ take?: number | null | undefined;
1863
+ skip?: number | null | undefined;
1864
+ is_active?: boolean[] | null | undefined;
1865
+ ids_include?: number[] | null | undefined;
1866
+ ids_exclude?: number[] | null | undefined;
1867
+ ids_string_include?: string[] | null | undefined;
1868
+ ids_string_exclude?: string[] | null | undefined;
1869
+ logic_codes_include?: string[] | null | undefined;
1870
+ logic_codes_exclude?: string[] | null | undefined;
1871
+ id_log_type?: number | null | undefined;
1872
+ ids_log_type?: number[] | null | undefined;
1873
+ id_postal_code?: number | null | undefined;
1874
+ ids_postal_code?: number[] | null | undefined;
1875
+ };
1876
+ output: {
1877
+ data: {
1878
+ params: Record<string, unknown>;
1879
+ log_type: {
1880
+ id: number;
1881
+ name: string | null;
1882
+ is_active: boolean | null;
1883
+ created_at: Date | null;
1884
+ created_by: string | null;
1885
+ updated_at: Date | null;
1886
+ updated_by: string | null;
1887
+ logic_code: string | null;
1888
+ } | null;
1889
+ id: number;
1890
+ url: string | null;
1891
+ id_log_type: number | null;
1892
+ action: string | null;
1893
+ action_by: string | null;
1894
+ action_id: string | null;
1895
+ action_at: Date | null;
1896
+ id_postal_code: number | null;
1897
+ }[] | undefined;
1898
+ total: number | undefined;
1899
+ };
1900
+ meta: object;
1901
+ }>;
1902
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
1903
+ input: {
1904
+ id?: number | null | undefined;
1905
+ id_string?: string | null | undefined;
1906
+ };
1907
+ output: {
1908
+ data: {
1909
+ params: Record<string, unknown>;
1910
+ log_type: {
1911
+ id: number;
1912
+ name: string | null;
1913
+ is_active: boolean | null;
1914
+ created_at: Date | null;
1915
+ created_by: string | null;
1916
+ updated_at: Date | null;
1917
+ updated_by: string | null;
1918
+ logic_code: string | null;
1919
+ } | null;
1920
+ id: number;
1921
+ url: string | null;
1922
+ id_log_type: number | null;
1923
+ action: string | null;
1924
+ action_by: string | null;
1925
+ action_id: string | null;
1926
+ action_at: Date | null;
1927
+ id_postal_code: number | null;
1928
+ } | undefined;
1929
+ };
1930
+ meta: object;
1931
+ }>;
1932
+ }>>;
1933
+ create: import("@trpc/server").TRPCMutationProcedure<{
1934
+ input: {
1935
+ is_active?: boolean | undefined;
1936
+ id_country?: number | null | undefined;
1937
+ code?: string | null | undefined;
1938
+ };
1939
+ output: {
1940
+ data: {
1941
+ id: number;
1942
+ is_active: boolean | null;
1943
+ id_country: number | null;
1944
+ code: string | null;
1945
+ created_at: Date | null;
1946
+ created_by: string | null;
1947
+ updated_at: Date | null;
1948
+ updated_by: string | null;
1949
+ logic_code: string | null;
1950
+ } | undefined;
1951
+ log: {
1434
1952
  id: number;
1435
1953
  url: string | null;
1436
1954
  id_log_type: number | null;
@@ -1440,190 +1958,68 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1440
1958
  action_id: string | null;
1441
1959
  action_at: Date | null;
1442
1960
  id_postal_code: number | null;
1443
- })[] | undefined;
1444
- total: number | undefined;
1961
+ } | undefined;
1445
1962
  };
1446
1963
  meta: object;
1447
1964
  }>;
1448
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
1965
+ update: import("@trpc/server").TRPCMutationProcedure<{
1449
1966
  input: {
1450
1967
  id?: number | null | undefined;
1451
1968
  id_string?: string | null | undefined;
1969
+ is_active?: boolean | undefined;
1970
+ id_country?: number | null | undefined;
1971
+ code?: string | null | undefined;
1452
1972
  };
1453
1973
  output: {
1454
- data: ({
1455
- log_type: {
1456
- id: number;
1457
- name: string | null;
1458
- is_active: boolean | null;
1459
- created_at: Date | null;
1460
- created_by: string | null;
1461
- updated_at: Date | null;
1462
- updated_by: string | null;
1463
- logic_code: string | null;
1464
- } | null;
1465
- } & {
1974
+ data: {
1975
+ id: number;
1976
+ is_active: boolean | null;
1977
+ id_country: number | null;
1978
+ code: string | null;
1979
+ created_at: Date | null;
1980
+ created_by: string | null;
1981
+ updated_at: Date | null;
1982
+ updated_by: string | null;
1983
+ logic_code: string | null;
1984
+ } | undefined;
1985
+ log: {
1466
1986
  id: number;
1467
1987
  url: string | null;
1468
1988
  id_log_type: number | null;
1989
+ id_country: number | null;
1469
1990
  action: string | null;
1470
1991
  params: JsonValue | null;
1471
1992
  action_by: string | null;
1472
1993
  action_id: string | null;
1473
1994
  action_at: Date | null;
1474
- id_postal_code: number | null;
1475
- }) | undefined;
1995
+ } | undefined;
1996
+ };
1997
+ meta: object;
1998
+ }>;
1999
+ delete: import("@trpc/server").TRPCMutationProcedure<{
2000
+ input: {
2001
+ id?: number | null | undefined;
2002
+ ids?: number[] | null | undefined;
2003
+ id_string?: string | null | undefined;
2004
+ ids_string?: string[] | null | undefined;
2005
+ };
2006
+ output: {
2007
+ data: ({
2008
+ id: number;
2009
+ is_active: boolean | null;
2010
+ id_country: number | null;
2011
+ code: string | null;
2012
+ created_at: Date | null;
2013
+ created_by: string | null;
2014
+ updated_at: Date | null;
2015
+ updated_by: string | null;
2016
+ logic_code: string | null;
2017
+ } | undefined)[];
1476
2018
  };
1477
2019
  meta: object;
1478
2020
  }>;
1479
2021
  }>>;
1480
- create: import("@trpc/server").TRPCMutationProcedure<{
1481
- input: {
1482
- is_active?: boolean | undefined;
1483
- id_country?: number | null | undefined;
1484
- code?: string | null | undefined;
1485
- };
1486
- output: {
1487
- data: {
1488
- id: number;
1489
- is_active: boolean | null;
1490
- id_country: number | null;
1491
- code: string | null;
1492
- created_at: Date | null;
1493
- created_by: string | null;
1494
- updated_at: Date | null;
1495
- updated_by: string | null;
1496
- logic_code: string | null;
1497
- } | undefined;
1498
- log: {
1499
- id: number;
1500
- url: string | null;
1501
- id_log_type: number | null;
1502
- action: string | null;
1503
- params: JsonValue | null;
1504
- action_by: string | null;
1505
- action_id: string | null;
1506
- action_at: Date | null;
1507
- id_postal_code: number | null;
1508
- } | undefined;
1509
- };
1510
- meta: object;
1511
- }>;
1512
- update: import("@trpc/server").TRPCMutationProcedure<{
1513
- input: {
1514
- id?: number | null | undefined;
1515
- id_string?: string | null | undefined;
1516
- is_active?: boolean | undefined;
1517
- id_country?: number | null | undefined;
1518
- code?: string | null | undefined;
1519
- };
1520
- output: {
1521
- data: {
1522
- id: number;
1523
- is_active: boolean | null;
1524
- id_country: number | null;
1525
- code: string | null;
1526
- created_at: Date | null;
1527
- created_by: string | null;
1528
- updated_at: Date | null;
1529
- updated_by: string | null;
1530
- logic_code: string | null;
1531
- } | undefined;
1532
- log: {
1533
- id: number;
1534
- url: string | null;
1535
- id_log_type: number | null;
1536
- id_country: number | null;
1537
- action: string | null;
1538
- params: JsonValue | null;
1539
- action_by: string | null;
1540
- action_id: string | null;
1541
- action_at: Date | null;
1542
- } | undefined;
1543
- };
1544
- meta: object;
1545
- }>;
1546
- delete: import("@trpc/server").TRPCMutationProcedure<{
1547
- input: {
1548
- id?: number | null | undefined;
1549
- ids?: number[] | null | undefined;
1550
- id_string?: string | null | undefined;
1551
- ids_string?: string[] | null | undefined;
1552
- };
1553
- output: {
1554
- data: ({
1555
- id: number;
1556
- is_active: boolean | null;
1557
- id_country: number | null;
1558
- code: string | null;
1559
- created_at: Date | null;
1560
- created_by: string | null;
1561
- updated_at: Date | null;
1562
- updated_by: string | null;
1563
- logic_code: string | null;
1564
- } | undefined)[];
1565
- };
1566
- meta: object;
1567
- }>;
1568
- }>>;
1569
- timeZones: import("@trpc/server").TRPCBuiltRouter<{
1570
- ctx: Context$1;
1571
- meta: object;
1572
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1573
- transformer: false;
1574
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1575
- get: import("@trpc/server").TRPCMutationProcedure<{
1576
- input: {
1577
- search?: string | null | undefined;
1578
- take?: number | null | undefined;
1579
- skip?: number | null | undefined;
1580
- is_active?: boolean[] | null | undefined;
1581
- ids_include?: number[] | null | undefined;
1582
- ids_exclude?: number[] | null | undefined;
1583
- ids_string_include?: string[] | null | undefined;
1584
- ids_string_exclude?: string[] | null | undefined;
1585
- logic_codes_include?: string[] | null | undefined;
1586
- logic_codes_exclude?: string[] | null | undefined;
1587
- };
1588
- output: {
1589
- data: {
1590
- id: number;
1591
- name: string | null;
1592
- is_active: boolean | null;
1593
- code: string | null;
1594
- created_at: Date | null;
1595
- created_by: string | null;
1596
- updated_at: Date | null;
1597
- updated_by: string | null;
1598
- logic_code: string | null;
1599
- utc_offset: Decimal | null;
1600
- }[] | undefined;
1601
- total: number | undefined;
1602
- };
1603
- meta: object;
1604
- }>;
1605
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
1606
- input: {
1607
- id?: number | null | undefined;
1608
- id_string?: string | null | undefined;
1609
- };
1610
- output: {
1611
- data: {
1612
- id: number;
1613
- name: string | null;
1614
- is_active: boolean | null;
1615
- code: string | null;
1616
- created_at: Date | null;
1617
- created_by: string | null;
1618
- updated_at: Date | null;
1619
- updated_by: string | null;
1620
- logic_code: string | null;
1621
- utc_offset: Decimal | null;
1622
- } | undefined;
1623
- };
1624
- meta: object;
1625
- }>;
1626
- histories: import("@trpc/server").TRPCBuiltRouter<{
2022
+ timeZones: import("@trpc/server").TRPCBuiltRouter<{
1627
2023
  ctx: Context$1;
1628
2024
  meta: object;
1629
2025
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -1641,24 +2037,150 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1641
2037
  ids_string_exclude?: string[] | null | undefined;
1642
2038
  logic_codes_include?: string[] | null | undefined;
1643
2039
  logic_codes_exclude?: string[] | null | undefined;
1644
- id_log_type?: number | null | undefined;
1645
- ids_log_type?: number[] | null | undefined;
1646
- id_time_zone?: number | null | undefined;
1647
- ids_time_zone?: number[] | null | undefined;
1648
2040
  };
1649
2041
  output: {
1650
- data: ({
1651
- log_type: {
1652
- id: number;
1653
- name: string | null;
1654
- is_active: boolean | null;
1655
- created_at: Date | null;
1656
- created_by: string | null;
1657
- updated_at: Date | null;
1658
- updated_by: string | null;
1659
- logic_code: string | null;
1660
- } | null;
2042
+ data: {
2043
+ id: number;
2044
+ name: string | null;
2045
+ is_active: boolean | null;
2046
+ code: string | null;
2047
+ created_at: Date | null;
2048
+ created_by: string | null;
2049
+ updated_at: Date | null;
2050
+ updated_by: string | null;
2051
+ logic_code: string | null;
2052
+ utc_offset: Decimal | null;
2053
+ }[] | undefined;
2054
+ total: number | undefined;
2055
+ };
2056
+ meta: object;
2057
+ }>;
2058
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
2059
+ input: {
2060
+ id?: number | null | undefined;
2061
+ id_string?: string | null | undefined;
2062
+ };
2063
+ output: {
2064
+ data: {
2065
+ _count: {
2066
+ time_zone_logs: number;
2067
+ };
1661
2068
  } & {
2069
+ id: number;
2070
+ name: string | null;
2071
+ is_active: boolean | null;
2072
+ code: string | null;
2073
+ created_at: Date | null;
2074
+ created_by: string | null;
2075
+ updated_at: Date | null;
2076
+ updated_by: string | null;
2077
+ logic_code: string | null;
2078
+ utc_offset: Decimal | null;
2079
+ };
2080
+ };
2081
+ meta: object;
2082
+ }>;
2083
+ histories: import("@trpc/server").TRPCBuiltRouter<{
2084
+ ctx: Context$1;
2085
+ meta: object;
2086
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2087
+ transformer: false;
2088
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2089
+ get: import("@trpc/server").TRPCMutationProcedure<{
2090
+ input: {
2091
+ search?: string | null | undefined;
2092
+ take?: number | null | undefined;
2093
+ skip?: number | null | undefined;
2094
+ is_active?: boolean[] | null | undefined;
2095
+ ids_include?: number[] | null | undefined;
2096
+ ids_exclude?: number[] | null | undefined;
2097
+ ids_string_include?: string[] | null | undefined;
2098
+ ids_string_exclude?: string[] | null | undefined;
2099
+ logic_codes_include?: string[] | null | undefined;
2100
+ logic_codes_exclude?: string[] | null | undefined;
2101
+ id_log_type?: number | null | undefined;
2102
+ ids_log_type?: number[] | null | undefined;
2103
+ id_time_zone?: number | null | undefined;
2104
+ ids_time_zone?: number[] | null | undefined;
2105
+ };
2106
+ output: {
2107
+ data: {
2108
+ params: Record<string, unknown>;
2109
+ log_type: {
2110
+ id: number;
2111
+ name: string | null;
2112
+ is_active: boolean | null;
2113
+ created_at: Date | null;
2114
+ created_by: string | null;
2115
+ updated_at: Date | null;
2116
+ updated_by: string | null;
2117
+ logic_code: string | null;
2118
+ } | null;
2119
+ id: number;
2120
+ url: string | null;
2121
+ id_log_type: number | null;
2122
+ action: string | null;
2123
+ action_by: string | null;
2124
+ action_id: string | null;
2125
+ action_at: Date | null;
2126
+ id_time_zone: number | null;
2127
+ }[] | undefined;
2128
+ total: number | undefined;
2129
+ };
2130
+ meta: object;
2131
+ }>;
2132
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
2133
+ input: {
2134
+ id?: number | null | undefined;
2135
+ id_string?: string | null | undefined;
2136
+ };
2137
+ output: {
2138
+ data: {
2139
+ params: Record<string, unknown>;
2140
+ log_type: {
2141
+ id: number;
2142
+ name: string | null;
2143
+ is_active: boolean | null;
2144
+ created_at: Date | null;
2145
+ created_by: string | null;
2146
+ updated_at: Date | null;
2147
+ updated_by: string | null;
2148
+ logic_code: string | null;
2149
+ } | null;
2150
+ id: number;
2151
+ url: string | null;
2152
+ id_log_type: number | null;
2153
+ action: string | null;
2154
+ action_by: string | null;
2155
+ action_id: string | null;
2156
+ action_at: Date | null;
2157
+ id_time_zone: number | null;
2158
+ } | undefined;
2159
+ };
2160
+ meta: object;
2161
+ }>;
2162
+ }>>;
2163
+ create: import("@trpc/server").TRPCMutationProcedure<{
2164
+ input: {
2165
+ is_active?: boolean | undefined;
2166
+ code?: string | null | undefined;
2167
+ name?: string | null | undefined;
2168
+ utc_offset?: string | null | undefined;
2169
+ };
2170
+ output: {
2171
+ data: {
2172
+ id: number;
2173
+ name: string | null;
2174
+ is_active: boolean | null;
2175
+ code: string | null;
2176
+ created_at: Date | null;
2177
+ created_by: string | null;
2178
+ updated_at: Date | null;
2179
+ updated_by: string | null;
2180
+ logic_code: string | null;
2181
+ utc_offset: Decimal | null;
2182
+ } | undefined;
2183
+ log: {
1662
2184
  id: number;
1663
2185
  url: string | null;
1664
2186
  id_log_type: number | null;
@@ -1668,29 +2190,33 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1668
2190
  action_id: string | null;
1669
2191
  action_at: Date | null;
1670
2192
  id_time_zone: number | null;
1671
- })[] | undefined;
1672
- total: number | undefined;
2193
+ } | undefined;
1673
2194
  };
1674
2195
  meta: object;
1675
2196
  }>;
1676
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
2197
+ update: import("@trpc/server").TRPCMutationProcedure<{
1677
2198
  input: {
1678
2199
  id?: number | null | undefined;
1679
2200
  id_string?: string | null | undefined;
2201
+ is_active?: boolean | undefined;
2202
+ code?: string | null | undefined;
2203
+ name?: string | null | undefined;
2204
+ utc_offset?: string | null | undefined;
1680
2205
  };
1681
2206
  output: {
1682
- data: ({
1683
- log_type: {
1684
- id: number;
1685
- name: string | null;
1686
- is_active: boolean | null;
1687
- created_at: Date | null;
1688
- created_by: string | null;
1689
- updated_at: Date | null;
1690
- updated_by: string | null;
1691
- logic_code: string | null;
1692
- } | null;
1693
- } & {
2207
+ data: {
2208
+ id: number;
2209
+ name: string | null;
2210
+ is_active: boolean | null;
2211
+ code: string | null;
2212
+ created_at: Date | null;
2213
+ created_by: string | null;
2214
+ updated_at: Date | null;
2215
+ updated_by: string | null;
2216
+ logic_code: string | null;
2217
+ utc_offset: Decimal | null;
2218
+ } | undefined;
2219
+ log: {
1694
2220
  id: number;
1695
2221
  url: string | null;
1696
2222
  id_log_type: number | null;
@@ -1700,104 +2226,34 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1700
2226
  action_id: string | null;
1701
2227
  action_at: Date | null;
1702
2228
  id_time_zone: number | null;
1703
- }) | undefined;
2229
+ } | undefined;
2230
+ };
2231
+ meta: object;
2232
+ }>;
2233
+ delete: import("@trpc/server").TRPCMutationProcedure<{
2234
+ input: {
2235
+ id?: number | null | undefined;
2236
+ ids?: number[] | null | undefined;
2237
+ id_string?: string | null | undefined;
2238
+ ids_string?: string[] | null | undefined;
2239
+ };
2240
+ output: {
2241
+ data: ({
2242
+ id: number;
2243
+ name: string | null;
2244
+ is_active: boolean | null;
2245
+ code: string | null;
2246
+ created_at: Date | null;
2247
+ created_by: string | null;
2248
+ updated_at: Date | null;
2249
+ updated_by: string | null;
2250
+ logic_code: string | null;
2251
+ utc_offset: Decimal | null;
2252
+ } | undefined)[];
1704
2253
  };
1705
2254
  meta: object;
1706
2255
  }>;
1707
2256
  }>>;
1708
- create: import("@trpc/server").TRPCMutationProcedure<{
1709
- input: {
1710
- is_active?: boolean | undefined;
1711
- code?: string | null | undefined;
1712
- name?: string | null | undefined;
1713
- utc_offset?: string | null | undefined;
1714
- };
1715
- output: {
1716
- data: {
1717
- id: number;
1718
- name: string | null;
1719
- is_active: boolean | null;
1720
- code: string | null;
1721
- created_at: Date | null;
1722
- created_by: string | null;
1723
- updated_at: Date | null;
1724
- updated_by: string | null;
1725
- logic_code: string | null;
1726
- utc_offset: Decimal | null;
1727
- } | undefined;
1728
- log: {
1729
- id: number;
1730
- url: string | null;
1731
- id_log_type: number | null;
1732
- action: string | null;
1733
- params: JsonValue | null;
1734
- action_by: string | null;
1735
- action_id: string | null;
1736
- action_at: Date | null;
1737
- id_time_zone: number | null;
1738
- } | undefined;
1739
- };
1740
- meta: object;
1741
- }>;
1742
- update: import("@trpc/server").TRPCMutationProcedure<{
1743
- input: {
1744
- id?: number | null | undefined;
1745
- id_string?: string | null | undefined;
1746
- is_active?: boolean | undefined;
1747
- code?: string | null | undefined;
1748
- name?: string | null | undefined;
1749
- utc_offset?: string | null | undefined;
1750
- };
1751
- output: {
1752
- data: {
1753
- id: number;
1754
- name: string | null;
1755
- is_active: boolean | null;
1756
- code: string | null;
1757
- created_at: Date | null;
1758
- created_by: string | null;
1759
- updated_at: Date | null;
1760
- updated_by: string | null;
1761
- logic_code: string | null;
1762
- utc_offset: Decimal | null;
1763
- } | undefined;
1764
- log: {
1765
- id: number;
1766
- url: string | null;
1767
- id_log_type: number | null;
1768
- action: string | null;
1769
- params: JsonValue | null;
1770
- action_by: string | null;
1771
- action_id: string | null;
1772
- action_at: Date | null;
1773
- id_time_zone: number | null;
1774
- } | undefined;
1775
- };
1776
- meta: object;
1777
- }>;
1778
- delete: import("@trpc/server").TRPCMutationProcedure<{
1779
- input: {
1780
- id?: number | null | undefined;
1781
- ids?: number[] | null | undefined;
1782
- id_string?: string | null | undefined;
1783
- ids_string?: string[] | null | undefined;
1784
- };
1785
- output: {
1786
- data: ({
1787
- id: number;
1788
- name: string | null;
1789
- is_active: boolean | null;
1790
- code: string | null;
1791
- created_at: Date | null;
1792
- created_by: string | null;
1793
- updated_at: Date | null;
1794
- updated_by: string | null;
1795
- logic_code: string | null;
1796
- utc_offset: Decimal | null;
1797
- } | undefined)[];
1798
- };
1799
- meta: object;
1800
- }>;
1801
2257
  }>>;
1802
2258
  }>>;
1803
2259
  }>>;