@wakata-dev/api-client 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +628 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2357 -89
- package/dist/index.d.ts +2357 -89
- package/dist/index.js +628 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -469,6 +469,566 @@ var assetClassPropertyControllerUpdate = (options) => {
|
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
};
|
|
472
|
+
var documentUploadControllerUploadUrl = (options) => {
|
|
473
|
+
return (options.client ?? client).post({
|
|
474
|
+
security: [
|
|
475
|
+
{
|
|
476
|
+
scheme: "bearer",
|
|
477
|
+
type: "http"
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
url: "/document/upload-url",
|
|
481
|
+
...options,
|
|
482
|
+
headers: {
|
|
483
|
+
"Content-Type": "application/json",
|
|
484
|
+
...options?.headers
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
var assetDocumentControllerList = (options) => {
|
|
489
|
+
return (options?.client ?? client).get({
|
|
490
|
+
security: [
|
|
491
|
+
{
|
|
492
|
+
scheme: "bearer",
|
|
493
|
+
type: "http"
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
url: "/asset-document/list",
|
|
497
|
+
...options
|
|
498
|
+
});
|
|
499
|
+
};
|
|
500
|
+
var assetDocumentControllerRemove = (options) => {
|
|
501
|
+
return (options.client ?? client).delete({
|
|
502
|
+
security: [
|
|
503
|
+
{
|
|
504
|
+
scheme: "bearer",
|
|
505
|
+
type: "http"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
url: "/asset-document/{id}",
|
|
509
|
+
...options
|
|
510
|
+
});
|
|
511
|
+
};
|
|
512
|
+
var assetDocumentControllerGet = (options) => {
|
|
513
|
+
return (options.client ?? client).get({
|
|
514
|
+
security: [
|
|
515
|
+
{
|
|
516
|
+
scheme: "bearer",
|
|
517
|
+
type: "http"
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
url: "/asset-document/{id}",
|
|
521
|
+
...options
|
|
522
|
+
});
|
|
523
|
+
};
|
|
524
|
+
var assetDocumentControllerUpdate = (options) => {
|
|
525
|
+
return (options.client ?? client).patch({
|
|
526
|
+
security: [
|
|
527
|
+
{
|
|
528
|
+
scheme: "bearer",
|
|
529
|
+
type: "http"
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
url: "/asset-document/{id}",
|
|
533
|
+
...options,
|
|
534
|
+
headers: {
|
|
535
|
+
"Content-Type": "application/json",
|
|
536
|
+
...options?.headers
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
var assetDocumentControllerCreate = (options) => {
|
|
541
|
+
return (options.client ?? client).post({
|
|
542
|
+
security: [
|
|
543
|
+
{
|
|
544
|
+
scheme: "bearer",
|
|
545
|
+
type: "http"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
url: "/asset-document",
|
|
549
|
+
...options,
|
|
550
|
+
headers: {
|
|
551
|
+
"Content-Type": "application/json",
|
|
552
|
+
...options?.headers
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
};
|
|
556
|
+
var assetClassDocumentControllerList = (options) => {
|
|
557
|
+
return (options?.client ?? client).get({
|
|
558
|
+
security: [
|
|
559
|
+
{
|
|
560
|
+
scheme: "bearer",
|
|
561
|
+
type: "http"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
url: "/asset-class-document/list",
|
|
565
|
+
...options
|
|
566
|
+
});
|
|
567
|
+
};
|
|
568
|
+
var assetClassDocumentControllerRemove = (options) => {
|
|
569
|
+
return (options.client ?? client).delete({
|
|
570
|
+
security: [
|
|
571
|
+
{
|
|
572
|
+
scheme: "bearer",
|
|
573
|
+
type: "http"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
url: "/asset-class-document/{id}",
|
|
577
|
+
...options
|
|
578
|
+
});
|
|
579
|
+
};
|
|
580
|
+
var assetClassDocumentControllerGet = (options) => {
|
|
581
|
+
return (options.client ?? client).get({
|
|
582
|
+
security: [
|
|
583
|
+
{
|
|
584
|
+
scheme: "bearer",
|
|
585
|
+
type: "http"
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
url: "/asset-class-document/{id}",
|
|
589
|
+
...options
|
|
590
|
+
});
|
|
591
|
+
};
|
|
592
|
+
var assetClassDocumentControllerUpdate = (options) => {
|
|
593
|
+
return (options.client ?? client).patch({
|
|
594
|
+
security: [
|
|
595
|
+
{
|
|
596
|
+
scheme: "bearer",
|
|
597
|
+
type: "http"
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
url: "/asset-class-document/{id}",
|
|
601
|
+
...options,
|
|
602
|
+
headers: {
|
|
603
|
+
"Content-Type": "application/json",
|
|
604
|
+
...options?.headers
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
};
|
|
608
|
+
var assetClassDocumentControllerCreate = (options) => {
|
|
609
|
+
return (options.client ?? client).post({
|
|
610
|
+
security: [
|
|
611
|
+
{
|
|
612
|
+
scheme: "bearer",
|
|
613
|
+
type: "http"
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
url: "/asset-class-document",
|
|
617
|
+
...options,
|
|
618
|
+
headers: {
|
|
619
|
+
"Content-Type": "application/json",
|
|
620
|
+
...options?.headers
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
};
|
|
624
|
+
var userDocumentControllerList = (options) => {
|
|
625
|
+
return (options?.client ?? client).get({
|
|
626
|
+
security: [
|
|
627
|
+
{
|
|
628
|
+
scheme: "bearer",
|
|
629
|
+
type: "http"
|
|
630
|
+
}
|
|
631
|
+
],
|
|
632
|
+
url: "/user-document/list",
|
|
633
|
+
...options
|
|
634
|
+
});
|
|
635
|
+
};
|
|
636
|
+
var userDocumentControllerRemove = (options) => {
|
|
637
|
+
return (options.client ?? client).delete({
|
|
638
|
+
security: [
|
|
639
|
+
{
|
|
640
|
+
scheme: "bearer",
|
|
641
|
+
type: "http"
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
url: "/user-document/{id}",
|
|
645
|
+
...options
|
|
646
|
+
});
|
|
647
|
+
};
|
|
648
|
+
var userDocumentControllerGet = (options) => {
|
|
649
|
+
return (options.client ?? client).get({
|
|
650
|
+
security: [
|
|
651
|
+
{
|
|
652
|
+
scheme: "bearer",
|
|
653
|
+
type: "http"
|
|
654
|
+
}
|
|
655
|
+
],
|
|
656
|
+
url: "/user-document/{id}",
|
|
657
|
+
...options
|
|
658
|
+
});
|
|
659
|
+
};
|
|
660
|
+
var userDocumentControllerUpdate = (options) => {
|
|
661
|
+
return (options.client ?? client).patch({
|
|
662
|
+
security: [
|
|
663
|
+
{
|
|
664
|
+
scheme: "bearer",
|
|
665
|
+
type: "http"
|
|
666
|
+
}
|
|
667
|
+
],
|
|
668
|
+
url: "/user-document/{id}",
|
|
669
|
+
...options,
|
|
670
|
+
headers: {
|
|
671
|
+
"Content-Type": "application/json",
|
|
672
|
+
...options?.headers
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
};
|
|
676
|
+
var userDocumentControllerCreate = (options) => {
|
|
677
|
+
return (options.client ?? client).post({
|
|
678
|
+
security: [
|
|
679
|
+
{
|
|
680
|
+
scheme: "bearer",
|
|
681
|
+
type: "http"
|
|
682
|
+
}
|
|
683
|
+
],
|
|
684
|
+
url: "/user-document",
|
|
685
|
+
...options,
|
|
686
|
+
headers: {
|
|
687
|
+
"Content-Type": "application/json",
|
|
688
|
+
...options?.headers
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
};
|
|
692
|
+
var siteDocumentControllerList = (options) => {
|
|
693
|
+
return (options?.client ?? client).get({
|
|
694
|
+
security: [
|
|
695
|
+
{
|
|
696
|
+
scheme: "bearer",
|
|
697
|
+
type: "http"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
url: "/site-document/list",
|
|
701
|
+
...options
|
|
702
|
+
});
|
|
703
|
+
};
|
|
704
|
+
var siteDocumentControllerRemove = (options) => {
|
|
705
|
+
return (options.client ?? client).delete({
|
|
706
|
+
security: [
|
|
707
|
+
{
|
|
708
|
+
scheme: "bearer",
|
|
709
|
+
type: "http"
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
url: "/site-document/{id}",
|
|
713
|
+
...options
|
|
714
|
+
});
|
|
715
|
+
};
|
|
716
|
+
var siteDocumentControllerGet = (options) => {
|
|
717
|
+
return (options.client ?? client).get({
|
|
718
|
+
security: [
|
|
719
|
+
{
|
|
720
|
+
scheme: "bearer",
|
|
721
|
+
type: "http"
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
url: "/site-document/{id}",
|
|
725
|
+
...options
|
|
726
|
+
});
|
|
727
|
+
};
|
|
728
|
+
var siteDocumentControllerUpdate = (options) => {
|
|
729
|
+
return (options.client ?? client).patch({
|
|
730
|
+
security: [
|
|
731
|
+
{
|
|
732
|
+
scheme: "bearer",
|
|
733
|
+
type: "http"
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
url: "/site-document/{id}",
|
|
737
|
+
...options,
|
|
738
|
+
headers: {
|
|
739
|
+
"Content-Type": "application/json",
|
|
740
|
+
...options?.headers
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
};
|
|
744
|
+
var siteDocumentControllerCreate = (options) => {
|
|
745
|
+
return (options.client ?? client).post({
|
|
746
|
+
security: [
|
|
747
|
+
{
|
|
748
|
+
scheme: "bearer",
|
|
749
|
+
type: "http"
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
url: "/site-document",
|
|
753
|
+
...options,
|
|
754
|
+
headers: {
|
|
755
|
+
"Content-Type": "application/json",
|
|
756
|
+
...options?.headers
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
};
|
|
760
|
+
var customerDocumentControllerList = (options) => {
|
|
761
|
+
return (options?.client ?? client).get({
|
|
762
|
+
security: [
|
|
763
|
+
{
|
|
764
|
+
scheme: "bearer",
|
|
765
|
+
type: "http"
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
url: "/customer-document/list",
|
|
769
|
+
...options
|
|
770
|
+
});
|
|
771
|
+
};
|
|
772
|
+
var customerDocumentControllerRemove = (options) => {
|
|
773
|
+
return (options.client ?? client).delete({
|
|
774
|
+
security: [
|
|
775
|
+
{
|
|
776
|
+
scheme: "bearer",
|
|
777
|
+
type: "http"
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
url: "/customer-document/{id}",
|
|
781
|
+
...options
|
|
782
|
+
});
|
|
783
|
+
};
|
|
784
|
+
var customerDocumentControllerGet = (options) => {
|
|
785
|
+
return (options.client ?? client).get({
|
|
786
|
+
security: [
|
|
787
|
+
{
|
|
788
|
+
scheme: "bearer",
|
|
789
|
+
type: "http"
|
|
790
|
+
}
|
|
791
|
+
],
|
|
792
|
+
url: "/customer-document/{id}",
|
|
793
|
+
...options
|
|
794
|
+
});
|
|
795
|
+
};
|
|
796
|
+
var customerDocumentControllerUpdate = (options) => {
|
|
797
|
+
return (options.client ?? client).patch({
|
|
798
|
+
security: [
|
|
799
|
+
{
|
|
800
|
+
scheme: "bearer",
|
|
801
|
+
type: "http"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
url: "/customer-document/{id}",
|
|
805
|
+
...options,
|
|
806
|
+
headers: {
|
|
807
|
+
"Content-Type": "application/json",
|
|
808
|
+
...options?.headers
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
};
|
|
812
|
+
var customerDocumentControllerCreate = (options) => {
|
|
813
|
+
return (options.client ?? client).post({
|
|
814
|
+
security: [
|
|
815
|
+
{
|
|
816
|
+
scheme: "bearer",
|
|
817
|
+
type: "http"
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
url: "/customer-document",
|
|
821
|
+
...options,
|
|
822
|
+
headers: {
|
|
823
|
+
"Content-Type": "application/json",
|
|
824
|
+
...options?.headers
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
var projectDocumentControllerList = (options) => {
|
|
829
|
+
return (options?.client ?? client).get({
|
|
830
|
+
security: [
|
|
831
|
+
{
|
|
832
|
+
scheme: "bearer",
|
|
833
|
+
type: "http"
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
url: "/project-document/list",
|
|
837
|
+
...options
|
|
838
|
+
});
|
|
839
|
+
};
|
|
840
|
+
var projectDocumentControllerRemove = (options) => {
|
|
841
|
+
return (options.client ?? client).delete({
|
|
842
|
+
security: [
|
|
843
|
+
{
|
|
844
|
+
scheme: "bearer",
|
|
845
|
+
type: "http"
|
|
846
|
+
}
|
|
847
|
+
],
|
|
848
|
+
url: "/project-document/{id}",
|
|
849
|
+
...options
|
|
850
|
+
});
|
|
851
|
+
};
|
|
852
|
+
var projectDocumentControllerGet = (options) => {
|
|
853
|
+
return (options.client ?? client).get({
|
|
854
|
+
security: [
|
|
855
|
+
{
|
|
856
|
+
scheme: "bearer",
|
|
857
|
+
type: "http"
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
url: "/project-document/{id}",
|
|
861
|
+
...options
|
|
862
|
+
});
|
|
863
|
+
};
|
|
864
|
+
var projectDocumentControllerUpdate = (options) => {
|
|
865
|
+
return (options.client ?? client).patch({
|
|
866
|
+
security: [
|
|
867
|
+
{
|
|
868
|
+
scheme: "bearer",
|
|
869
|
+
type: "http"
|
|
870
|
+
}
|
|
871
|
+
],
|
|
872
|
+
url: "/project-document/{id}",
|
|
873
|
+
...options,
|
|
874
|
+
headers: {
|
|
875
|
+
"Content-Type": "application/json",
|
|
876
|
+
...options?.headers
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
};
|
|
880
|
+
var projectDocumentControllerCreate = (options) => {
|
|
881
|
+
return (options.client ?? client).post({
|
|
882
|
+
security: [
|
|
883
|
+
{
|
|
884
|
+
scheme: "bearer",
|
|
885
|
+
type: "http"
|
|
886
|
+
}
|
|
887
|
+
],
|
|
888
|
+
url: "/project-document",
|
|
889
|
+
...options,
|
|
890
|
+
headers: {
|
|
891
|
+
"Content-Type": "application/json",
|
|
892
|
+
...options?.headers
|
|
893
|
+
}
|
|
894
|
+
});
|
|
895
|
+
};
|
|
896
|
+
var jobDocumentControllerList = (options) => {
|
|
897
|
+
return (options?.client ?? client).get({
|
|
898
|
+
security: [
|
|
899
|
+
{
|
|
900
|
+
scheme: "bearer",
|
|
901
|
+
type: "http"
|
|
902
|
+
}
|
|
903
|
+
],
|
|
904
|
+
url: "/job-document/list",
|
|
905
|
+
...options
|
|
906
|
+
});
|
|
907
|
+
};
|
|
908
|
+
var jobDocumentControllerRemove = (options) => {
|
|
909
|
+
return (options.client ?? client).delete({
|
|
910
|
+
security: [
|
|
911
|
+
{
|
|
912
|
+
scheme: "bearer",
|
|
913
|
+
type: "http"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
url: "/job-document/{id}",
|
|
917
|
+
...options
|
|
918
|
+
});
|
|
919
|
+
};
|
|
920
|
+
var jobDocumentControllerGet = (options) => {
|
|
921
|
+
return (options.client ?? client).get({
|
|
922
|
+
security: [
|
|
923
|
+
{
|
|
924
|
+
scheme: "bearer",
|
|
925
|
+
type: "http"
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
url: "/job-document/{id}",
|
|
929
|
+
...options
|
|
930
|
+
});
|
|
931
|
+
};
|
|
932
|
+
var jobDocumentControllerUpdate = (options) => {
|
|
933
|
+
return (options.client ?? client).patch({
|
|
934
|
+
security: [
|
|
935
|
+
{
|
|
936
|
+
scheme: "bearer",
|
|
937
|
+
type: "http"
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
url: "/job-document/{id}",
|
|
941
|
+
...options,
|
|
942
|
+
headers: {
|
|
943
|
+
"Content-Type": "application/json",
|
|
944
|
+
...options?.headers
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
};
|
|
948
|
+
var jobDocumentControllerCreate = (options) => {
|
|
949
|
+
return (options.client ?? client).post({
|
|
950
|
+
security: [
|
|
951
|
+
{
|
|
952
|
+
scheme: "bearer",
|
|
953
|
+
type: "http"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
url: "/job-document",
|
|
957
|
+
...options,
|
|
958
|
+
headers: {
|
|
959
|
+
"Content-Type": "application/json",
|
|
960
|
+
...options?.headers
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
};
|
|
964
|
+
var companyDocumentControllerList = (options) => {
|
|
965
|
+
return (options?.client ?? client).get({
|
|
966
|
+
security: [
|
|
967
|
+
{
|
|
968
|
+
scheme: "bearer",
|
|
969
|
+
type: "http"
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
url: "/company-document/list",
|
|
973
|
+
...options
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
var companyDocumentControllerRemove = (options) => {
|
|
977
|
+
return (options.client ?? client).delete({
|
|
978
|
+
security: [
|
|
979
|
+
{
|
|
980
|
+
scheme: "bearer",
|
|
981
|
+
type: "http"
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
url: "/company-document/{id}",
|
|
985
|
+
...options
|
|
986
|
+
});
|
|
987
|
+
};
|
|
988
|
+
var companyDocumentControllerGet = (options) => {
|
|
989
|
+
return (options.client ?? client).get({
|
|
990
|
+
security: [
|
|
991
|
+
{
|
|
992
|
+
scheme: "bearer",
|
|
993
|
+
type: "http"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
url: "/company-document/{id}",
|
|
997
|
+
...options
|
|
998
|
+
});
|
|
999
|
+
};
|
|
1000
|
+
var companyDocumentControllerUpdate = (options) => {
|
|
1001
|
+
return (options.client ?? client).patch({
|
|
1002
|
+
security: [
|
|
1003
|
+
{
|
|
1004
|
+
scheme: "bearer",
|
|
1005
|
+
type: "http"
|
|
1006
|
+
}
|
|
1007
|
+
],
|
|
1008
|
+
url: "/company-document/{id}",
|
|
1009
|
+
...options,
|
|
1010
|
+
headers: {
|
|
1011
|
+
"Content-Type": "application/json",
|
|
1012
|
+
...options?.headers
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
1015
|
+
};
|
|
1016
|
+
var companyDocumentControllerCreate = (options) => {
|
|
1017
|
+
return (options.client ?? client).post({
|
|
1018
|
+
security: [
|
|
1019
|
+
{
|
|
1020
|
+
scheme: "bearer",
|
|
1021
|
+
type: "http"
|
|
1022
|
+
}
|
|
1023
|
+
],
|
|
1024
|
+
url: "/company-document",
|
|
1025
|
+
...options,
|
|
1026
|
+
headers: {
|
|
1027
|
+
"Content-Type": "application/json",
|
|
1028
|
+
...options?.headers
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
};
|
|
472
1032
|
var siteControllerListSites = (options) => {
|
|
473
1033
|
return (options?.client ?? client).get({
|
|
474
1034
|
security: [
|
|
@@ -528,7 +1088,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
528
1088
|
|
|
529
1089
|
// src/client.ts
|
|
530
1090
|
var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
531
|
-
var PACKAGE_VERSION = "0.3.
|
|
1091
|
+
var PACKAGE_VERSION = "0.3.3";
|
|
532
1092
|
function unwrap(result) {
|
|
533
1093
|
if (result.data === void 0) {
|
|
534
1094
|
throw new WakataApiError({
|
|
@@ -686,12 +1246,78 @@ var WakataClient = class {
|
|
|
686
1246
|
update: async (opts) => unwrap(await assetClassPropertyControllerUpdate({ ...opts, client: client2 })),
|
|
687
1247
|
delete: async (opts) => unwrap(await assetClassPropertyControllerRemove({ ...opts, client: client2 }))
|
|
688
1248
|
};
|
|
1249
|
+
const docResource = (fns) => ({
|
|
1250
|
+
list: async (opts) => unwrap(await fns.list({ ...opts ?? {}, client: client2 })),
|
|
1251
|
+
get: async (opts) => unwrap(await fns.get({ ...opts, client: client2 })),
|
|
1252
|
+
create: async (opts) => unwrap(await fns.create({ ...opts, client: client2 })),
|
|
1253
|
+
update: async (opts) => unwrap(await fns.update({ ...opts, client: client2 })),
|
|
1254
|
+
delete: async (opts) => unwrap(await fns.remove({ ...opts, client: client2 }))
|
|
1255
|
+
});
|
|
1256
|
+
this.documents = {
|
|
1257
|
+
uploadUrl: async (opts) => unwrap(await documentUploadControllerUploadUrl({ ...opts, client: client2 })),
|
|
1258
|
+
asset: docResource({
|
|
1259
|
+
list: assetDocumentControllerList,
|
|
1260
|
+
get: assetDocumentControllerGet,
|
|
1261
|
+
create: assetDocumentControllerCreate,
|
|
1262
|
+
update: assetDocumentControllerUpdate,
|
|
1263
|
+
remove: assetDocumentControllerRemove
|
|
1264
|
+
}),
|
|
1265
|
+
assetClass: docResource({
|
|
1266
|
+
list: assetClassDocumentControllerList,
|
|
1267
|
+
get: assetClassDocumentControllerGet,
|
|
1268
|
+
create: assetClassDocumentControllerCreate,
|
|
1269
|
+
update: assetClassDocumentControllerUpdate,
|
|
1270
|
+
remove: assetClassDocumentControllerRemove
|
|
1271
|
+
}),
|
|
1272
|
+
user: docResource({
|
|
1273
|
+
list: userDocumentControllerList,
|
|
1274
|
+
get: userDocumentControllerGet,
|
|
1275
|
+
create: userDocumentControllerCreate,
|
|
1276
|
+
update: userDocumentControllerUpdate,
|
|
1277
|
+
remove: userDocumentControllerRemove
|
|
1278
|
+
}),
|
|
1279
|
+
site: docResource({
|
|
1280
|
+
list: siteDocumentControllerList,
|
|
1281
|
+
get: siteDocumentControllerGet,
|
|
1282
|
+
create: siteDocumentControllerCreate,
|
|
1283
|
+
update: siteDocumentControllerUpdate,
|
|
1284
|
+
remove: siteDocumentControllerRemove
|
|
1285
|
+
}),
|
|
1286
|
+
customer: docResource({
|
|
1287
|
+
list: customerDocumentControllerList,
|
|
1288
|
+
get: customerDocumentControllerGet,
|
|
1289
|
+
create: customerDocumentControllerCreate,
|
|
1290
|
+
update: customerDocumentControllerUpdate,
|
|
1291
|
+
remove: customerDocumentControllerRemove
|
|
1292
|
+
}),
|
|
1293
|
+
project: docResource({
|
|
1294
|
+
list: projectDocumentControllerList,
|
|
1295
|
+
get: projectDocumentControllerGet,
|
|
1296
|
+
create: projectDocumentControllerCreate,
|
|
1297
|
+
update: projectDocumentControllerUpdate,
|
|
1298
|
+
remove: projectDocumentControllerRemove
|
|
1299
|
+
}),
|
|
1300
|
+
job: docResource({
|
|
1301
|
+
list: jobDocumentControllerList,
|
|
1302
|
+
get: jobDocumentControllerGet,
|
|
1303
|
+
create: jobDocumentControllerCreate,
|
|
1304
|
+
update: jobDocumentControllerUpdate,
|
|
1305
|
+
remove: jobDocumentControllerRemove
|
|
1306
|
+
}),
|
|
1307
|
+
company: docResource({
|
|
1308
|
+
list: companyDocumentControllerList,
|
|
1309
|
+
get: companyDocumentControllerGet,
|
|
1310
|
+
create: companyDocumentControllerCreate,
|
|
1311
|
+
update: companyDocumentControllerUpdate,
|
|
1312
|
+
remove: companyDocumentControllerRemove
|
|
1313
|
+
})
|
|
1314
|
+
};
|
|
689
1315
|
}
|
|
690
1316
|
};
|
|
691
1317
|
|
|
692
1318
|
// src/index.ts
|
|
693
1319
|
var PACKAGE_NAME = "@wakata-dev/api-client";
|
|
694
|
-
var PACKAGE_VERSION2 = "0.3.
|
|
1320
|
+
var PACKAGE_VERSION2 = "0.3.3";
|
|
695
1321
|
var DEFAULT_BASE_URL2 = "https://api.wakata.ai/api/v1";
|
|
696
1322
|
|
|
697
1323
|
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL2;
|