@customafk/lunas-api-sdk 0.0.79 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +900 -30
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +900 -30
- package/dist/index.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -437,6 +437,545 @@ declare const _createClient: () => {
|
|
|
437
437
|
} & {
|
|
438
438
|
'~path': string;
|
|
439
439
|
};
|
|
440
|
+
documents: ((params: {
|
|
441
|
+
uuid: string | number;
|
|
442
|
+
}) => {
|
|
443
|
+
get: ((options?: {
|
|
444
|
+
fetch?: RequestInit | undefined;
|
|
445
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
446
|
+
headers?: {} | undefined;
|
|
447
|
+
query?: {} | undefined;
|
|
448
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
449
|
+
200: {
|
|
450
|
+
success: false;
|
|
451
|
+
statusCode: number;
|
|
452
|
+
data: null;
|
|
453
|
+
message: string;
|
|
454
|
+
error: TResponseError;
|
|
455
|
+
meta: TResponseMeta;
|
|
456
|
+
} | {
|
|
457
|
+
success: true;
|
|
458
|
+
statusCode: number;
|
|
459
|
+
data: {
|
|
460
|
+
type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
|
|
461
|
+
uuid: string;
|
|
462
|
+
status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
|
|
463
|
+
slug: string;
|
|
464
|
+
createdAt: Date;
|
|
465
|
+
updatedAt: Date;
|
|
466
|
+
title: string;
|
|
467
|
+
content: string;
|
|
468
|
+
createdByUuid: string;
|
|
469
|
+
publishedAt: Date | null;
|
|
470
|
+
createdBy: {
|
|
471
|
+
uuid: string;
|
|
472
|
+
email: string;
|
|
473
|
+
username: string;
|
|
474
|
+
role: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
message: null;
|
|
478
|
+
error: null;
|
|
479
|
+
meta: TResponseMeta;
|
|
480
|
+
};
|
|
481
|
+
422: {
|
|
482
|
+
type: "validation";
|
|
483
|
+
on: string;
|
|
484
|
+
summary?: string;
|
|
485
|
+
message?: string;
|
|
486
|
+
found?: unknown;
|
|
487
|
+
property?: string;
|
|
488
|
+
expected?: string;
|
|
489
|
+
};
|
|
490
|
+
}>>) & {
|
|
491
|
+
'~path': string;
|
|
492
|
+
};
|
|
493
|
+
patch: ((body?: {
|
|
494
|
+
type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
|
|
495
|
+
title?: string | undefined;
|
|
496
|
+
content?: string | undefined;
|
|
497
|
+
} | undefined, options?: {
|
|
498
|
+
fetch?: RequestInit | undefined;
|
|
499
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
500
|
+
headers?: {} | undefined;
|
|
501
|
+
query?: {} | undefined;
|
|
502
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
503
|
+
200: {
|
|
504
|
+
success: true;
|
|
505
|
+
statusCode: number;
|
|
506
|
+
data: null;
|
|
507
|
+
message: string;
|
|
508
|
+
error: null;
|
|
509
|
+
meta: TResponseMeta;
|
|
510
|
+
} | {
|
|
511
|
+
success: false;
|
|
512
|
+
statusCode: number;
|
|
513
|
+
data: null;
|
|
514
|
+
message: string;
|
|
515
|
+
error: TResponseError;
|
|
516
|
+
meta: TResponseMeta;
|
|
517
|
+
};
|
|
518
|
+
422: {
|
|
519
|
+
type: "validation";
|
|
520
|
+
on: string;
|
|
521
|
+
summary?: string;
|
|
522
|
+
message?: string;
|
|
523
|
+
found?: unknown;
|
|
524
|
+
property?: string;
|
|
525
|
+
expected?: string;
|
|
526
|
+
};
|
|
527
|
+
}>>) & {
|
|
528
|
+
'~path': string;
|
|
529
|
+
};
|
|
530
|
+
publish: {
|
|
531
|
+
patch: ((body?: {} | undefined, options?: {
|
|
532
|
+
fetch?: RequestInit | undefined;
|
|
533
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
534
|
+
headers?: {} | undefined;
|
|
535
|
+
query?: {} | undefined;
|
|
536
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
537
|
+
200: {
|
|
538
|
+
success: true;
|
|
539
|
+
statusCode: number;
|
|
540
|
+
data: null;
|
|
541
|
+
message: string;
|
|
542
|
+
error: null;
|
|
543
|
+
meta: TResponseMeta;
|
|
544
|
+
} | {
|
|
545
|
+
success: false;
|
|
546
|
+
statusCode: number;
|
|
547
|
+
data: null;
|
|
548
|
+
message: string;
|
|
549
|
+
error: TResponseError;
|
|
550
|
+
meta: TResponseMeta;
|
|
551
|
+
};
|
|
552
|
+
422: {
|
|
553
|
+
type: "validation";
|
|
554
|
+
on: string;
|
|
555
|
+
summary?: string;
|
|
556
|
+
message?: string;
|
|
557
|
+
found?: unknown;
|
|
558
|
+
property?: string;
|
|
559
|
+
expected?: string;
|
|
560
|
+
};
|
|
561
|
+
}>>) & {
|
|
562
|
+
'~path': string;
|
|
563
|
+
};
|
|
564
|
+
} & {
|
|
565
|
+
'~path': string;
|
|
566
|
+
};
|
|
567
|
+
archive: {
|
|
568
|
+
patch: ((body?: {} | undefined, options?: {
|
|
569
|
+
fetch?: RequestInit | undefined;
|
|
570
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
571
|
+
headers?: {} | undefined;
|
|
572
|
+
query?: {} | undefined;
|
|
573
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
574
|
+
200: {
|
|
575
|
+
success: true;
|
|
576
|
+
statusCode: number;
|
|
577
|
+
data: null;
|
|
578
|
+
message: string;
|
|
579
|
+
error: null;
|
|
580
|
+
meta: TResponseMeta;
|
|
581
|
+
} | {
|
|
582
|
+
success: false;
|
|
583
|
+
statusCode: number;
|
|
584
|
+
data: null;
|
|
585
|
+
message: string;
|
|
586
|
+
error: TResponseError;
|
|
587
|
+
meta: TResponseMeta;
|
|
588
|
+
};
|
|
589
|
+
422: {
|
|
590
|
+
type: "validation";
|
|
591
|
+
on: string;
|
|
592
|
+
summary?: string;
|
|
593
|
+
message?: string;
|
|
594
|
+
found?: unknown;
|
|
595
|
+
property?: string;
|
|
596
|
+
expected?: string;
|
|
597
|
+
};
|
|
598
|
+
}>>) & {
|
|
599
|
+
'~path': string;
|
|
600
|
+
};
|
|
601
|
+
} & {
|
|
602
|
+
'~path': string;
|
|
603
|
+
};
|
|
604
|
+
delete: ((body?: {} | undefined, options?: {
|
|
605
|
+
fetch?: RequestInit | undefined;
|
|
606
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
607
|
+
headers?: {} | undefined;
|
|
608
|
+
query?: {} | undefined;
|
|
609
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
610
|
+
200: {
|
|
611
|
+
success: true;
|
|
612
|
+
statusCode: number;
|
|
613
|
+
data: null;
|
|
614
|
+
message: string;
|
|
615
|
+
error: null;
|
|
616
|
+
meta: TResponseMeta;
|
|
617
|
+
} | {
|
|
618
|
+
success: false;
|
|
619
|
+
statusCode: number;
|
|
620
|
+
data: null;
|
|
621
|
+
message: string;
|
|
622
|
+
error: TResponseError;
|
|
623
|
+
meta: TResponseMeta;
|
|
624
|
+
};
|
|
625
|
+
422: {
|
|
626
|
+
type: "validation";
|
|
627
|
+
on: string;
|
|
628
|
+
summary?: string;
|
|
629
|
+
message?: string;
|
|
630
|
+
found?: unknown;
|
|
631
|
+
property?: string;
|
|
632
|
+
expected?: string;
|
|
633
|
+
};
|
|
634
|
+
}>>) & {
|
|
635
|
+
'~path': string;
|
|
636
|
+
};
|
|
637
|
+
'~path': string;
|
|
638
|
+
} & {
|
|
639
|
+
get: ((options?: {
|
|
640
|
+
fetch?: RequestInit | undefined;
|
|
641
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
642
|
+
headers?: {} | undefined;
|
|
643
|
+
query?: {} | undefined;
|
|
644
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
645
|
+
200: {
|
|
646
|
+
success: false;
|
|
647
|
+
statusCode: number;
|
|
648
|
+
data: null;
|
|
649
|
+
message: string;
|
|
650
|
+
error: TResponseError;
|
|
651
|
+
meta: TResponseMeta;
|
|
652
|
+
} | {
|
|
653
|
+
success: true;
|
|
654
|
+
statusCode: number;
|
|
655
|
+
data: {
|
|
656
|
+
type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
|
|
657
|
+
uuid: string;
|
|
658
|
+
status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
|
|
659
|
+
slug: string;
|
|
660
|
+
createdAt: Date;
|
|
661
|
+
updatedAt: Date;
|
|
662
|
+
title: string;
|
|
663
|
+
content: string;
|
|
664
|
+
createdByUuid: string;
|
|
665
|
+
publishedAt: Date | null;
|
|
666
|
+
createdBy: {
|
|
667
|
+
uuid: string;
|
|
668
|
+
email: string;
|
|
669
|
+
username: string;
|
|
670
|
+
role: string;
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
message: null;
|
|
674
|
+
error: null;
|
|
675
|
+
meta: TResponseMeta;
|
|
676
|
+
};
|
|
677
|
+
422: {
|
|
678
|
+
type: "validation";
|
|
679
|
+
on: string;
|
|
680
|
+
summary?: string;
|
|
681
|
+
message?: string;
|
|
682
|
+
found?: unknown;
|
|
683
|
+
property?: string;
|
|
684
|
+
expected?: string;
|
|
685
|
+
};
|
|
686
|
+
}>>) & {
|
|
687
|
+
'~path': string;
|
|
688
|
+
};
|
|
689
|
+
patch: ((body?: {
|
|
690
|
+
type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
|
|
691
|
+
title?: string | undefined;
|
|
692
|
+
content?: string | undefined;
|
|
693
|
+
} | undefined, options?: {
|
|
694
|
+
fetch?: RequestInit | undefined;
|
|
695
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
696
|
+
headers?: {} | undefined;
|
|
697
|
+
query?: {} | undefined;
|
|
698
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
699
|
+
200: {
|
|
700
|
+
success: true;
|
|
701
|
+
statusCode: number;
|
|
702
|
+
data: null;
|
|
703
|
+
message: string;
|
|
704
|
+
error: null;
|
|
705
|
+
meta: TResponseMeta;
|
|
706
|
+
} | {
|
|
707
|
+
success: false;
|
|
708
|
+
statusCode: number;
|
|
709
|
+
data: null;
|
|
710
|
+
message: string;
|
|
711
|
+
error: TResponseError;
|
|
712
|
+
meta: TResponseMeta;
|
|
713
|
+
};
|
|
714
|
+
422: {
|
|
715
|
+
type: "validation";
|
|
716
|
+
on: string;
|
|
717
|
+
summary?: string;
|
|
718
|
+
message?: string;
|
|
719
|
+
found?: unknown;
|
|
720
|
+
property?: string;
|
|
721
|
+
expected?: string;
|
|
722
|
+
};
|
|
723
|
+
}>>) & {
|
|
724
|
+
'~path': string;
|
|
725
|
+
};
|
|
726
|
+
publish: {
|
|
727
|
+
patch: ((body?: {} | undefined, options?: {
|
|
728
|
+
fetch?: RequestInit | undefined;
|
|
729
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
730
|
+
headers?: {} | undefined;
|
|
731
|
+
query?: {} | undefined;
|
|
732
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
733
|
+
200: {
|
|
734
|
+
success: true;
|
|
735
|
+
statusCode: number;
|
|
736
|
+
data: null;
|
|
737
|
+
message: string;
|
|
738
|
+
error: null;
|
|
739
|
+
meta: TResponseMeta;
|
|
740
|
+
} | {
|
|
741
|
+
success: false;
|
|
742
|
+
statusCode: number;
|
|
743
|
+
data: null;
|
|
744
|
+
message: string;
|
|
745
|
+
error: TResponseError;
|
|
746
|
+
meta: TResponseMeta;
|
|
747
|
+
};
|
|
748
|
+
422: {
|
|
749
|
+
type: "validation";
|
|
750
|
+
on: string;
|
|
751
|
+
summary?: string;
|
|
752
|
+
message?: string;
|
|
753
|
+
found?: unknown;
|
|
754
|
+
property?: string;
|
|
755
|
+
expected?: string;
|
|
756
|
+
};
|
|
757
|
+
}>>) & {
|
|
758
|
+
'~path': string;
|
|
759
|
+
};
|
|
760
|
+
} & {
|
|
761
|
+
'~path': string;
|
|
762
|
+
};
|
|
763
|
+
archive: {
|
|
764
|
+
patch: ((body?: {} | undefined, options?: {
|
|
765
|
+
fetch?: RequestInit | undefined;
|
|
766
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
767
|
+
headers?: {} | undefined;
|
|
768
|
+
query?: {} | undefined;
|
|
769
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
770
|
+
200: {
|
|
771
|
+
success: true;
|
|
772
|
+
statusCode: number;
|
|
773
|
+
data: null;
|
|
774
|
+
message: string;
|
|
775
|
+
error: null;
|
|
776
|
+
meta: TResponseMeta;
|
|
777
|
+
} | {
|
|
778
|
+
success: false;
|
|
779
|
+
statusCode: number;
|
|
780
|
+
data: null;
|
|
781
|
+
message: string;
|
|
782
|
+
error: TResponseError;
|
|
783
|
+
meta: TResponseMeta;
|
|
784
|
+
};
|
|
785
|
+
422: {
|
|
786
|
+
type: "validation";
|
|
787
|
+
on: string;
|
|
788
|
+
summary?: string;
|
|
789
|
+
message?: string;
|
|
790
|
+
found?: unknown;
|
|
791
|
+
property?: string;
|
|
792
|
+
expected?: string;
|
|
793
|
+
};
|
|
794
|
+
}>>) & {
|
|
795
|
+
'~path': string;
|
|
796
|
+
};
|
|
797
|
+
} & {
|
|
798
|
+
'~path': string;
|
|
799
|
+
};
|
|
800
|
+
delete: ((body?: {} | undefined, options?: {
|
|
801
|
+
fetch?: RequestInit | undefined;
|
|
802
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
803
|
+
headers?: {} | undefined;
|
|
804
|
+
query?: {} | undefined;
|
|
805
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
806
|
+
200: {
|
|
807
|
+
success: true;
|
|
808
|
+
statusCode: number;
|
|
809
|
+
data: null;
|
|
810
|
+
message: string;
|
|
811
|
+
error: null;
|
|
812
|
+
meta: TResponseMeta;
|
|
813
|
+
} | {
|
|
814
|
+
success: false;
|
|
815
|
+
statusCode: number;
|
|
816
|
+
data: null;
|
|
817
|
+
message: string;
|
|
818
|
+
error: TResponseError;
|
|
819
|
+
meta: TResponseMeta;
|
|
820
|
+
};
|
|
821
|
+
422: {
|
|
822
|
+
type: "validation";
|
|
823
|
+
on: string;
|
|
824
|
+
summary?: string;
|
|
825
|
+
message?: string;
|
|
826
|
+
found?: unknown;
|
|
827
|
+
property?: string;
|
|
828
|
+
expected?: string;
|
|
829
|
+
};
|
|
830
|
+
}>>) & {
|
|
831
|
+
'~path': string;
|
|
832
|
+
};
|
|
833
|
+
}) & {
|
|
834
|
+
get: ((options?: {
|
|
835
|
+
fetch?: RequestInit | undefined;
|
|
836
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
837
|
+
headers?: {} | undefined;
|
|
838
|
+
query?: {
|
|
839
|
+
type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
|
|
840
|
+
status?: "DRAFT" | "PUBLISHED" | "ARCHIVED" | undefined;
|
|
841
|
+
search?: string | undefined;
|
|
842
|
+
limit?: number | undefined;
|
|
843
|
+
page?: number | undefined;
|
|
844
|
+
} | undefined;
|
|
845
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
846
|
+
200: {
|
|
847
|
+
success: false;
|
|
848
|
+
statusCode: number;
|
|
849
|
+
data: null;
|
|
850
|
+
message: string;
|
|
851
|
+
error: TResponseError;
|
|
852
|
+
meta: TResponseMeta;
|
|
853
|
+
} | {
|
|
854
|
+
success: true;
|
|
855
|
+
statusCode: number;
|
|
856
|
+
data: {
|
|
857
|
+
data: {
|
|
858
|
+
type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
|
|
859
|
+
uuid: string;
|
|
860
|
+
status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
|
|
861
|
+
slug: string;
|
|
862
|
+
createdAt: Date;
|
|
863
|
+
updatedAt: Date;
|
|
864
|
+
title: string;
|
|
865
|
+
publishedAt: Date | null;
|
|
866
|
+
createdBy: {
|
|
867
|
+
uuid: string;
|
|
868
|
+
email: string;
|
|
869
|
+
username: string;
|
|
870
|
+
role: string;
|
|
871
|
+
};
|
|
872
|
+
}[];
|
|
873
|
+
pagination: {
|
|
874
|
+
page: number;
|
|
875
|
+
limit: number;
|
|
876
|
+
total: number;
|
|
877
|
+
totalPages: number;
|
|
878
|
+
hasNextPage: boolean;
|
|
879
|
+
hasPreviousPage: boolean;
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
message: null;
|
|
883
|
+
error: null;
|
|
884
|
+
meta: TResponseMeta;
|
|
885
|
+
};
|
|
886
|
+
422: {
|
|
887
|
+
type: "validation";
|
|
888
|
+
on: string;
|
|
889
|
+
summary?: string;
|
|
890
|
+
message?: string;
|
|
891
|
+
found?: unknown;
|
|
892
|
+
property?: string;
|
|
893
|
+
expected?: string;
|
|
894
|
+
};
|
|
895
|
+
}>>) & {
|
|
896
|
+
'~path': string;
|
|
897
|
+
};
|
|
898
|
+
post: ((body: {
|
|
899
|
+
content?: string | undefined;
|
|
900
|
+
type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
|
|
901
|
+
title: string;
|
|
902
|
+
}, options?: {
|
|
903
|
+
fetch?: RequestInit | undefined;
|
|
904
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
905
|
+
headers?: {} | undefined;
|
|
906
|
+
query?: {} | undefined;
|
|
907
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
908
|
+
200: {
|
|
909
|
+
success: false;
|
|
910
|
+
statusCode: number;
|
|
911
|
+
data: null;
|
|
912
|
+
message: string;
|
|
913
|
+
error: TResponseError;
|
|
914
|
+
meta: TResponseMeta;
|
|
915
|
+
} | {
|
|
916
|
+
success: true;
|
|
917
|
+
statusCode: number;
|
|
918
|
+
data: {
|
|
919
|
+
uuid: string;
|
|
920
|
+
};
|
|
921
|
+
message: null;
|
|
922
|
+
error: null;
|
|
923
|
+
meta: TResponseMeta;
|
|
924
|
+
};
|
|
925
|
+
422: {
|
|
926
|
+
type: "validation";
|
|
927
|
+
on: string;
|
|
928
|
+
summary?: string;
|
|
929
|
+
message?: string;
|
|
930
|
+
found?: unknown;
|
|
931
|
+
property?: string;
|
|
932
|
+
expected?: string;
|
|
933
|
+
};
|
|
934
|
+
}>>) & {
|
|
935
|
+
'~path': string;
|
|
936
|
+
};
|
|
937
|
+
bulk: {
|
|
938
|
+
delete: ((body: {}, options: {
|
|
939
|
+
fetch?: RequestInit | undefined;
|
|
940
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
941
|
+
headers?: {} | undefined;
|
|
942
|
+
query: {
|
|
943
|
+
uuids: string[];
|
|
944
|
+
};
|
|
945
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
946
|
+
200: {
|
|
947
|
+
success: true;
|
|
948
|
+
statusCode: number;
|
|
949
|
+
data: null;
|
|
950
|
+
message: string;
|
|
951
|
+
error: null;
|
|
952
|
+
meta: TResponseMeta;
|
|
953
|
+
} | {
|
|
954
|
+
success: false;
|
|
955
|
+
statusCode: number;
|
|
956
|
+
data: null;
|
|
957
|
+
message: string;
|
|
958
|
+
error: TResponseError;
|
|
959
|
+
meta: TResponseMeta;
|
|
960
|
+
};
|
|
961
|
+
422: {
|
|
962
|
+
type: "validation";
|
|
963
|
+
on: string;
|
|
964
|
+
summary?: string;
|
|
965
|
+
message?: string;
|
|
966
|
+
found?: unknown;
|
|
967
|
+
property?: string;
|
|
968
|
+
expected?: string;
|
|
969
|
+
};
|
|
970
|
+
}>>) & {
|
|
971
|
+
'~path': string;
|
|
972
|
+
};
|
|
973
|
+
} & {
|
|
974
|
+
'~path': string;
|
|
975
|
+
};
|
|
976
|
+
} & {
|
|
977
|
+
'~path': string;
|
|
978
|
+
};
|
|
440
979
|
account: ((params: {
|
|
441
980
|
uuid: string | number;
|
|
442
981
|
}) => {
|
|
@@ -457,13 +996,18 @@ declare const _createClient: () => {
|
|
|
457
996
|
success: true;
|
|
458
997
|
statusCode: number;
|
|
459
998
|
data: {
|
|
999
|
+
orderSummary: {
|
|
1000
|
+
totalOrders: number;
|
|
1001
|
+
totalSpent: number;
|
|
1002
|
+
lastOrderAt: Date | null;
|
|
1003
|
+
};
|
|
460
1004
|
uuid: string;
|
|
461
1005
|
email: string;
|
|
462
1006
|
createdAt: Date | null;
|
|
463
1007
|
updatedAt: Date | null;
|
|
464
|
-
isActive: boolean | null;
|
|
465
1008
|
username: string;
|
|
466
1009
|
role: string;
|
|
1010
|
+
isActive: boolean | null;
|
|
467
1011
|
networks: {
|
|
468
1012
|
createdAt: Date | null;
|
|
469
1013
|
updatedAt: Date | null;
|
|
@@ -483,20 +1027,101 @@ declare const _createClient: () => {
|
|
|
483
1027
|
dateOfBirth: Date | null;
|
|
484
1028
|
};
|
|
485
1029
|
};
|
|
486
|
-
message: null;
|
|
487
|
-
error: null;
|
|
488
|
-
meta: TResponseMeta;
|
|
489
|
-
};
|
|
490
|
-
422: {
|
|
491
|
-
type: "validation";
|
|
492
|
-
on: string;
|
|
493
|
-
summary?: string;
|
|
494
|
-
message?: string;
|
|
495
|
-
found?: unknown;
|
|
496
|
-
property?: string;
|
|
497
|
-
expected?: string;
|
|
1030
|
+
message: null;
|
|
1031
|
+
error: null;
|
|
1032
|
+
meta: TResponseMeta;
|
|
1033
|
+
};
|
|
1034
|
+
422: {
|
|
1035
|
+
type: "validation";
|
|
1036
|
+
on: string;
|
|
1037
|
+
summary?: string;
|
|
1038
|
+
message?: string;
|
|
1039
|
+
found?: unknown;
|
|
1040
|
+
property?: string;
|
|
1041
|
+
expected?: string;
|
|
1042
|
+
};
|
|
1043
|
+
}>>) & {
|
|
1044
|
+
'~path': string;
|
|
1045
|
+
};
|
|
1046
|
+
orders: {
|
|
1047
|
+
get: ((options?: {
|
|
1048
|
+
fetch?: RequestInit | undefined;
|
|
1049
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1050
|
+
headers?: {} | undefined;
|
|
1051
|
+
query?: {
|
|
1052
|
+
page?: number | undefined;
|
|
1053
|
+
limit?: number | undefined;
|
|
1054
|
+
status?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
1055
|
+
paymentStatus?: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | undefined;
|
|
1056
|
+
} | undefined;
|
|
1057
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1058
|
+
200: {
|
|
1059
|
+
success: false;
|
|
1060
|
+
statusCode: number;
|
|
1061
|
+
data: null;
|
|
1062
|
+
message: string;
|
|
1063
|
+
error: TResponseError;
|
|
1064
|
+
meta: TResponseMeta;
|
|
1065
|
+
} | {
|
|
1066
|
+
success: true;
|
|
1067
|
+
statusCode: number;
|
|
1068
|
+
data: {
|
|
1069
|
+
data: {
|
|
1070
|
+
name: string | null;
|
|
1071
|
+
uuid: string;
|
|
1072
|
+
status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
|
|
1073
|
+
createdAt: Date;
|
|
1074
|
+
updatedAt: Date;
|
|
1075
|
+
userUuid: string | null;
|
|
1076
|
+
orderType: "ORDER" | "IN-STOCK";
|
|
1077
|
+
orderCode: string;
|
|
1078
|
+
customerEmail: string | null;
|
|
1079
|
+
customerName: string | null;
|
|
1080
|
+
customerPhone: string | null;
|
|
1081
|
+
shippingAddress: unknown;
|
|
1082
|
+
subtotalAmount: number | null;
|
|
1083
|
+
taxTotal: number | null;
|
|
1084
|
+
appliedDepositName: string | null;
|
|
1085
|
+
appliedDepositType: "PERCENTAGE" | "FIXED" | null;
|
|
1086
|
+
appliedDepositValue: number | null;
|
|
1087
|
+
depositSurchargeTotal: number | null;
|
|
1088
|
+
otherSurchargeTotal: number | null;
|
|
1089
|
+
totalDue: number | null;
|
|
1090
|
+
depositRequiredAmount: number | null;
|
|
1091
|
+
totalPaid: number | null;
|
|
1092
|
+
totalRefunded: number | null;
|
|
1093
|
+
balanceRemaining: number | null;
|
|
1094
|
+
paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
|
|
1095
|
+
fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
|
|
1096
|
+
riskLevel: "LOW" | "MEDIUM" | "HIGH";
|
|
1097
|
+
completedAt: Date | null;
|
|
1098
|
+
}[];
|
|
1099
|
+
pagination: {
|
|
1100
|
+
page: number;
|
|
1101
|
+
limit: number;
|
|
1102
|
+
total: number;
|
|
1103
|
+
totalPages: number;
|
|
1104
|
+
hasNextPage: boolean;
|
|
1105
|
+
hasPreviousPage: boolean;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
message: null;
|
|
1109
|
+
error: null;
|
|
1110
|
+
meta: TResponseMeta;
|
|
1111
|
+
};
|
|
1112
|
+
422: {
|
|
1113
|
+
type: "validation";
|
|
1114
|
+
on: string;
|
|
1115
|
+
summary?: string;
|
|
1116
|
+
message?: string;
|
|
1117
|
+
found?: unknown;
|
|
1118
|
+
property?: string;
|
|
1119
|
+
expected?: string;
|
|
1120
|
+
};
|
|
1121
|
+
}>>) & {
|
|
1122
|
+
'~path': string;
|
|
498
1123
|
};
|
|
499
|
-
}
|
|
1124
|
+
} & {
|
|
500
1125
|
'~path': string;
|
|
501
1126
|
};
|
|
502
1127
|
patch: ((body?: {
|
|
@@ -579,6 +1204,45 @@ declare const _createClient: () => {
|
|
|
579
1204
|
} & {
|
|
580
1205
|
'~path': string;
|
|
581
1206
|
};
|
|
1207
|
+
status: {
|
|
1208
|
+
patch: ((body: {
|
|
1209
|
+
isActive: boolean;
|
|
1210
|
+
}, options?: {
|
|
1211
|
+
fetch?: RequestInit | undefined;
|
|
1212
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1213
|
+
headers?: {} | undefined;
|
|
1214
|
+
query?: {} | undefined;
|
|
1215
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1216
|
+
200: {
|
|
1217
|
+
success: true;
|
|
1218
|
+
statusCode: number;
|
|
1219
|
+
data: null;
|
|
1220
|
+
message: string;
|
|
1221
|
+
error: null;
|
|
1222
|
+
meta: TResponseMeta;
|
|
1223
|
+
} | {
|
|
1224
|
+
success: false;
|
|
1225
|
+
statusCode: number;
|
|
1226
|
+
data: null;
|
|
1227
|
+
message: string;
|
|
1228
|
+
error: TResponseError;
|
|
1229
|
+
meta: TResponseMeta;
|
|
1230
|
+
};
|
|
1231
|
+
422: {
|
|
1232
|
+
type: "validation";
|
|
1233
|
+
on: string;
|
|
1234
|
+
summary?: string;
|
|
1235
|
+
message?: string;
|
|
1236
|
+
found?: unknown;
|
|
1237
|
+
property?: string;
|
|
1238
|
+
expected?: string;
|
|
1239
|
+
};
|
|
1240
|
+
}>>) & {
|
|
1241
|
+
'~path': string;
|
|
1242
|
+
};
|
|
1243
|
+
} & {
|
|
1244
|
+
'~path': string;
|
|
1245
|
+
};
|
|
582
1246
|
delete: ((body?: {} | undefined, options?: {
|
|
583
1247
|
fetch?: RequestInit | undefined;
|
|
584
1248
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -633,13 +1297,18 @@ declare const _createClient: () => {
|
|
|
633
1297
|
success: true;
|
|
634
1298
|
statusCode: number;
|
|
635
1299
|
data: {
|
|
1300
|
+
orderSummary: {
|
|
1301
|
+
totalOrders: number;
|
|
1302
|
+
totalSpent: number;
|
|
1303
|
+
lastOrderAt: Date | null;
|
|
1304
|
+
};
|
|
636
1305
|
uuid: string;
|
|
637
1306
|
email: string;
|
|
638
1307
|
createdAt: Date | null;
|
|
639
1308
|
updatedAt: Date | null;
|
|
640
|
-
isActive: boolean | null;
|
|
641
1309
|
username: string;
|
|
642
1310
|
role: string;
|
|
1311
|
+
isActive: boolean | null;
|
|
643
1312
|
networks: {
|
|
644
1313
|
createdAt: Date | null;
|
|
645
1314
|
updatedAt: Date | null;
|
|
@@ -675,6 +1344,87 @@ declare const _createClient: () => {
|
|
|
675
1344
|
}>>) & {
|
|
676
1345
|
'~path': string;
|
|
677
1346
|
};
|
|
1347
|
+
orders: {
|
|
1348
|
+
get: ((options?: {
|
|
1349
|
+
fetch?: RequestInit | undefined;
|
|
1350
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1351
|
+
headers?: {} | undefined;
|
|
1352
|
+
query?: {
|
|
1353
|
+
page?: number | undefined;
|
|
1354
|
+
limit?: number | undefined;
|
|
1355
|
+
status?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
1356
|
+
paymentStatus?: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | undefined;
|
|
1357
|
+
} | undefined;
|
|
1358
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1359
|
+
200: {
|
|
1360
|
+
success: false;
|
|
1361
|
+
statusCode: number;
|
|
1362
|
+
data: null;
|
|
1363
|
+
message: string;
|
|
1364
|
+
error: TResponseError;
|
|
1365
|
+
meta: TResponseMeta;
|
|
1366
|
+
} | {
|
|
1367
|
+
success: true;
|
|
1368
|
+
statusCode: number;
|
|
1369
|
+
data: {
|
|
1370
|
+
data: {
|
|
1371
|
+
name: string | null;
|
|
1372
|
+
uuid: string;
|
|
1373
|
+
status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
|
|
1374
|
+
createdAt: Date;
|
|
1375
|
+
updatedAt: Date;
|
|
1376
|
+
userUuid: string | null;
|
|
1377
|
+
orderType: "ORDER" | "IN-STOCK";
|
|
1378
|
+
orderCode: string;
|
|
1379
|
+
customerEmail: string | null;
|
|
1380
|
+
customerName: string | null;
|
|
1381
|
+
customerPhone: string | null;
|
|
1382
|
+
shippingAddress: unknown;
|
|
1383
|
+
subtotalAmount: number | null;
|
|
1384
|
+
taxTotal: number | null;
|
|
1385
|
+
appliedDepositName: string | null;
|
|
1386
|
+
appliedDepositType: "PERCENTAGE" | "FIXED" | null;
|
|
1387
|
+
appliedDepositValue: number | null;
|
|
1388
|
+
depositSurchargeTotal: number | null;
|
|
1389
|
+
otherSurchargeTotal: number | null;
|
|
1390
|
+
totalDue: number | null;
|
|
1391
|
+
depositRequiredAmount: number | null;
|
|
1392
|
+
totalPaid: number | null;
|
|
1393
|
+
totalRefunded: number | null;
|
|
1394
|
+
balanceRemaining: number | null;
|
|
1395
|
+
paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
|
|
1396
|
+
fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
|
|
1397
|
+
riskLevel: "LOW" | "MEDIUM" | "HIGH";
|
|
1398
|
+
completedAt: Date | null;
|
|
1399
|
+
}[];
|
|
1400
|
+
pagination: {
|
|
1401
|
+
page: number;
|
|
1402
|
+
limit: number;
|
|
1403
|
+
total: number;
|
|
1404
|
+
totalPages: number;
|
|
1405
|
+
hasNextPage: boolean;
|
|
1406
|
+
hasPreviousPage: boolean;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
message: null;
|
|
1410
|
+
error: null;
|
|
1411
|
+
meta: TResponseMeta;
|
|
1412
|
+
};
|
|
1413
|
+
422: {
|
|
1414
|
+
type: "validation";
|
|
1415
|
+
on: string;
|
|
1416
|
+
summary?: string;
|
|
1417
|
+
message?: string;
|
|
1418
|
+
found?: unknown;
|
|
1419
|
+
property?: string;
|
|
1420
|
+
expected?: string;
|
|
1421
|
+
};
|
|
1422
|
+
}>>) & {
|
|
1423
|
+
'~path': string;
|
|
1424
|
+
};
|
|
1425
|
+
} & {
|
|
1426
|
+
'~path': string;
|
|
1427
|
+
};
|
|
678
1428
|
patch: ((body?: {
|
|
679
1429
|
role?: ERole | undefined;
|
|
680
1430
|
isActive?: boolean | undefined;
|
|
@@ -755,6 +1505,45 @@ declare const _createClient: () => {
|
|
|
755
1505
|
} & {
|
|
756
1506
|
'~path': string;
|
|
757
1507
|
};
|
|
1508
|
+
status: {
|
|
1509
|
+
patch: ((body: {
|
|
1510
|
+
isActive: boolean;
|
|
1511
|
+
}, options?: {
|
|
1512
|
+
fetch?: RequestInit | undefined;
|
|
1513
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1514
|
+
headers?: {} | undefined;
|
|
1515
|
+
query?: {} | undefined;
|
|
1516
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1517
|
+
200: {
|
|
1518
|
+
success: true;
|
|
1519
|
+
statusCode: number;
|
|
1520
|
+
data: null;
|
|
1521
|
+
message: string;
|
|
1522
|
+
error: null;
|
|
1523
|
+
meta: TResponseMeta;
|
|
1524
|
+
} | {
|
|
1525
|
+
success: false;
|
|
1526
|
+
statusCode: number;
|
|
1527
|
+
data: null;
|
|
1528
|
+
message: string;
|
|
1529
|
+
error: TResponseError;
|
|
1530
|
+
meta: TResponseMeta;
|
|
1531
|
+
};
|
|
1532
|
+
422: {
|
|
1533
|
+
type: "validation";
|
|
1534
|
+
on: string;
|
|
1535
|
+
summary?: string;
|
|
1536
|
+
message?: string;
|
|
1537
|
+
found?: unknown;
|
|
1538
|
+
property?: string;
|
|
1539
|
+
expected?: string;
|
|
1540
|
+
};
|
|
1541
|
+
}>>) & {
|
|
1542
|
+
'~path': string;
|
|
1543
|
+
};
|
|
1544
|
+
} & {
|
|
1545
|
+
'~path': string;
|
|
1546
|
+
};
|
|
758
1547
|
delete: ((body?: {} | undefined, options?: {
|
|
759
1548
|
fetch?: RequestInit | undefined;
|
|
760
1549
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -798,6 +1587,9 @@ declare const _createClient: () => {
|
|
|
798
1587
|
query?: {
|
|
799
1588
|
page?: number | undefined;
|
|
800
1589
|
limit?: number | undefined;
|
|
1590
|
+
search?: string | undefined;
|
|
1591
|
+
email?: string | undefined;
|
|
1592
|
+
phone?: string | undefined;
|
|
801
1593
|
} | undefined;
|
|
802
1594
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
803
1595
|
200: {
|
|
@@ -813,16 +1605,16 @@ declare const _createClient: () => {
|
|
|
813
1605
|
data: {
|
|
814
1606
|
data: {
|
|
815
1607
|
uuid: string;
|
|
1608
|
+
username: string;
|
|
816
1609
|
email: string;
|
|
1610
|
+
role: string;
|
|
1611
|
+
isActive: boolean | null;
|
|
817
1612
|
createdAt: Date | null;
|
|
818
1613
|
updatedAt: Date | null;
|
|
819
|
-
isActive: boolean | null;
|
|
820
|
-
username: string;
|
|
821
|
-
role: string;
|
|
822
1614
|
profile: {
|
|
823
1615
|
fullname: string;
|
|
824
1616
|
phoneNumber: string | null;
|
|
825
|
-
};
|
|
1617
|
+
} | null;
|
|
826
1618
|
}[];
|
|
827
1619
|
pagination: {
|
|
828
1620
|
page: number;
|
|
@@ -3904,9 +4696,9 @@ declare const _createClient: () => {
|
|
|
3904
4696
|
uuid: string;
|
|
3905
4697
|
createdAt: Date;
|
|
3906
4698
|
updatedAt: Date;
|
|
4699
|
+
isActive: boolean;
|
|
3907
4700
|
pageId: string;
|
|
3908
4701
|
pageName: string;
|
|
3909
|
-
isActive: boolean;
|
|
3910
4702
|
}[];
|
|
3911
4703
|
message: null;
|
|
3912
4704
|
error: null;
|
|
@@ -4440,7 +5232,7 @@ declare const _createClient: () => {
|
|
|
4440
5232
|
success: true;
|
|
4441
5233
|
statusCode: number;
|
|
4442
5234
|
data: {
|
|
4443
|
-
type: "
|
|
5235
|
+
type: "OTHER" | "ORDER_NOTE" | "PRODUCT_NOTE";
|
|
4444
5236
|
uuid: string;
|
|
4445
5237
|
createdAt: Date;
|
|
4446
5238
|
updatedAt: Date;
|
|
@@ -4591,7 +5383,7 @@ declare const _createClient: () => {
|
|
|
4591
5383
|
success: true;
|
|
4592
5384
|
statusCode: number;
|
|
4593
5385
|
data: {
|
|
4594
|
-
type: "
|
|
5386
|
+
type: "OTHER" | "ORDER_NOTE" | "PRODUCT_NOTE";
|
|
4595
5387
|
uuid: string;
|
|
4596
5388
|
createdAt: Date;
|
|
4597
5389
|
updatedAt: Date;
|
|
@@ -4729,7 +5521,7 @@ declare const _createClient: () => {
|
|
|
4729
5521
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
4730
5522
|
headers?: {} | undefined;
|
|
4731
5523
|
query?: {
|
|
4732
|
-
type?: "
|
|
5524
|
+
type?: "OTHER" | "ORDER_NOTE" | undefined;
|
|
4733
5525
|
search?: string | undefined;
|
|
4734
5526
|
limit?: number | undefined;
|
|
4735
5527
|
page?: number | undefined;
|
|
@@ -4748,7 +5540,7 @@ declare const _createClient: () => {
|
|
|
4748
5540
|
statusCode: number;
|
|
4749
5541
|
data: {
|
|
4750
5542
|
data: {
|
|
4751
|
-
type: "
|
|
5543
|
+
type: "OTHER" | "ORDER_NOTE" | "PRODUCT_NOTE";
|
|
4752
5544
|
uuid: string;
|
|
4753
5545
|
createdAt: Date;
|
|
4754
5546
|
updatedAt: Date;
|
|
@@ -4791,7 +5583,7 @@ declare const _createClient: () => {
|
|
|
4791
5583
|
};
|
|
4792
5584
|
post: ((body: {
|
|
4793
5585
|
orderId?: string | undefined;
|
|
4794
|
-
type: "
|
|
5586
|
+
type: "OTHER" | "ORDER_NOTE";
|
|
4795
5587
|
title: string;
|
|
4796
5588
|
content: string;
|
|
4797
5589
|
}, options?: {
|
|
@@ -6014,6 +6806,45 @@ declare const _createClient: () => {
|
|
|
6014
6806
|
} & {
|
|
6015
6807
|
'~path': string;
|
|
6016
6808
|
};
|
|
6809
|
+
account: {
|
|
6810
|
+
patch: ((body: {
|
|
6811
|
+
userUuid: string | null;
|
|
6812
|
+
}, options?: {
|
|
6813
|
+
fetch?: RequestInit | undefined;
|
|
6814
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6815
|
+
headers?: {} | undefined;
|
|
6816
|
+
query?: {} | undefined;
|
|
6817
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6818
|
+
200: {
|
|
6819
|
+
success: true;
|
|
6820
|
+
statusCode: number;
|
|
6821
|
+
data: null;
|
|
6822
|
+
message: string;
|
|
6823
|
+
error: null;
|
|
6824
|
+
meta: TResponseMeta;
|
|
6825
|
+
} | {
|
|
6826
|
+
success: false;
|
|
6827
|
+
statusCode: number;
|
|
6828
|
+
data: null;
|
|
6829
|
+
message: string;
|
|
6830
|
+
error: TResponseError;
|
|
6831
|
+
meta: TResponseMeta;
|
|
6832
|
+
};
|
|
6833
|
+
422: {
|
|
6834
|
+
type: "validation";
|
|
6835
|
+
on: string;
|
|
6836
|
+
summary?: string;
|
|
6837
|
+
message?: string;
|
|
6838
|
+
found?: unknown;
|
|
6839
|
+
property?: string;
|
|
6840
|
+
expected?: string;
|
|
6841
|
+
};
|
|
6842
|
+
}>>) & {
|
|
6843
|
+
'~path': string;
|
|
6844
|
+
};
|
|
6845
|
+
} & {
|
|
6846
|
+
'~path': string;
|
|
6847
|
+
};
|
|
6017
6848
|
'~path': string;
|
|
6018
6849
|
} & {
|
|
6019
6850
|
get: ((options?: {
|
|
@@ -6904,6 +7735,45 @@ declare const _createClient: () => {
|
|
|
6904
7735
|
} & {
|
|
6905
7736
|
'~path': string;
|
|
6906
7737
|
};
|
|
7738
|
+
account: {
|
|
7739
|
+
patch: ((body: {
|
|
7740
|
+
userUuid: string | null;
|
|
7741
|
+
}, options?: {
|
|
7742
|
+
fetch?: RequestInit | undefined;
|
|
7743
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7744
|
+
headers?: {} | undefined;
|
|
7745
|
+
query?: {} | undefined;
|
|
7746
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7747
|
+
200: {
|
|
7748
|
+
success: true;
|
|
7749
|
+
statusCode: number;
|
|
7750
|
+
data: null;
|
|
7751
|
+
message: string;
|
|
7752
|
+
error: null;
|
|
7753
|
+
meta: TResponseMeta;
|
|
7754
|
+
} | {
|
|
7755
|
+
success: false;
|
|
7756
|
+
statusCode: number;
|
|
7757
|
+
data: null;
|
|
7758
|
+
message: string;
|
|
7759
|
+
error: TResponseError;
|
|
7760
|
+
meta: TResponseMeta;
|
|
7761
|
+
};
|
|
7762
|
+
422: {
|
|
7763
|
+
type: "validation";
|
|
7764
|
+
on: string;
|
|
7765
|
+
summary?: string;
|
|
7766
|
+
message?: string;
|
|
7767
|
+
found?: unknown;
|
|
7768
|
+
property?: string;
|
|
7769
|
+
expected?: string;
|
|
7770
|
+
};
|
|
7771
|
+
}>>) & {
|
|
7772
|
+
'~path': string;
|
|
7773
|
+
};
|
|
7774
|
+
} & {
|
|
7775
|
+
'~path': string;
|
|
7776
|
+
};
|
|
6907
7777
|
}) & {
|
|
6908
7778
|
get: ((options?: {
|
|
6909
7779
|
fetch?: RequestInit | undefined;
|
|
@@ -7718,6 +8588,7 @@ declare const _createClient: () => {
|
|
|
7718
8588
|
description: string | null;
|
|
7719
8589
|
createdAt: Date | null;
|
|
7720
8590
|
updatedAt: Date | null;
|
|
8591
|
+
createdBy: string;
|
|
7721
8592
|
standardCost: number | null;
|
|
7722
8593
|
retailCost: number | null;
|
|
7723
8594
|
weight: number | null;
|
|
@@ -7725,7 +8596,6 @@ declare const _createClient: () => {
|
|
|
7725
8596
|
width: number | null;
|
|
7726
8597
|
height: number | null;
|
|
7727
8598
|
dimensionUnit: string | null;
|
|
7728
|
-
createdBy: string;
|
|
7729
8599
|
productLink: string | null;
|
|
7730
8600
|
quantity: number | null;
|
|
7731
8601
|
country: string | null;
|
|
@@ -7971,6 +8841,7 @@ declare const _createClient: () => {
|
|
|
7971
8841
|
description: string | null;
|
|
7972
8842
|
createdAt: Date | null;
|
|
7973
8843
|
updatedAt: Date | null;
|
|
8844
|
+
createdBy: string;
|
|
7974
8845
|
seriesUuid: string | null;
|
|
7975
8846
|
deletedAt: Date | null;
|
|
7976
8847
|
standardCost: number | null;
|
|
@@ -7980,7 +8851,6 @@ declare const _createClient: () => {
|
|
|
7980
8851
|
width: number | null;
|
|
7981
8852
|
height: number | null;
|
|
7982
8853
|
dimensionUnit: string | null;
|
|
7983
|
-
createdBy: string;
|
|
7984
8854
|
shortDescription: string | null;
|
|
7985
8855
|
richDescription: unknown;
|
|
7986
8856
|
productLink: string | null;
|
|
@@ -8439,6 +9309,7 @@ declare const _createClient: () => {
|
|
|
8439
9309
|
description: string | null;
|
|
8440
9310
|
createdAt: Date | null;
|
|
8441
9311
|
updatedAt: Date | null;
|
|
9312
|
+
createdBy: string;
|
|
8442
9313
|
standardCost: number | null;
|
|
8443
9314
|
retailCost: number | null;
|
|
8444
9315
|
weight: number | null;
|
|
@@ -8446,7 +9317,6 @@ declare const _createClient: () => {
|
|
|
8446
9317
|
width: number | null;
|
|
8447
9318
|
height: number | null;
|
|
8448
9319
|
dimensionUnit: string | null;
|
|
8449
|
-
createdBy: string;
|
|
8450
9320
|
productLink: string | null;
|
|
8451
9321
|
quantity: number | null;
|
|
8452
9322
|
country: string | null;
|
|
@@ -8692,6 +9562,7 @@ declare const _createClient: () => {
|
|
|
8692
9562
|
description: string | null;
|
|
8693
9563
|
createdAt: Date | null;
|
|
8694
9564
|
updatedAt: Date | null;
|
|
9565
|
+
createdBy: string;
|
|
8695
9566
|
seriesUuid: string | null;
|
|
8696
9567
|
deletedAt: Date | null;
|
|
8697
9568
|
standardCost: number | null;
|
|
@@ -8701,7 +9572,6 @@ declare const _createClient: () => {
|
|
|
8701
9572
|
width: number | null;
|
|
8702
9573
|
height: number | null;
|
|
8703
9574
|
dimensionUnit: string | null;
|
|
8704
|
-
createdBy: string;
|
|
8705
9575
|
shortDescription: string | null;
|
|
8706
9576
|
richDescription: unknown;
|
|
8707
9577
|
productLink: string | null;
|
|
@@ -9169,9 +10039,9 @@ declare const _createClient: () => {
|
|
|
9169
10039
|
uuid: string;
|
|
9170
10040
|
createdAt: Date | null;
|
|
9171
10041
|
updatedAt: Date | null;
|
|
10042
|
+
createdBy: string;
|
|
9172
10043
|
standardCost: number | null;
|
|
9173
10044
|
retailCost: number | null;
|
|
9174
|
-
createdBy: string;
|
|
9175
10045
|
quantity: number | null;
|
|
9176
10046
|
country: string | null;
|
|
9177
10047
|
productStatus: "draft" | "review" | "published" | "cancelled";
|