@wakata-dev/api-client 0.3.2 → 0.4.0
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 +910 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3971 -103
- package/dist/index.d.ts +3971 -103
- package/dist/index.js +910 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ function generateIdempotencyKey() {
|
|
|
115
115
|
return `wak_idem_${uuid.replace(/-/g, "")}`;
|
|
116
116
|
}
|
|
117
117
|
var client = clientFetch.createClient(clientFetch.createConfig({
|
|
118
|
-
baseUrl: "https://api.wakata.ai"
|
|
118
|
+
baseUrl: "https://dev-api.wakata.ai"
|
|
119
119
|
}));
|
|
120
120
|
|
|
121
121
|
// src/generated/sdk.gen.ts
|
|
@@ -469,6 +469,818 @@ 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
|
+
};
|
|
1032
|
+
var customerControllerList = (options) => {
|
|
1033
|
+
return (options?.client ?? client).get({
|
|
1034
|
+
security: [
|
|
1035
|
+
{
|
|
1036
|
+
scheme: "bearer",
|
|
1037
|
+
type: "http"
|
|
1038
|
+
}
|
|
1039
|
+
],
|
|
1040
|
+
url: "/customer/list",
|
|
1041
|
+
...options
|
|
1042
|
+
});
|
|
1043
|
+
};
|
|
1044
|
+
var customerControllerDelete = (options) => {
|
|
1045
|
+
return (options.client ?? client).delete({
|
|
1046
|
+
security: [
|
|
1047
|
+
{
|
|
1048
|
+
scheme: "bearer",
|
|
1049
|
+
type: "http"
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
url: "/customer/{id}",
|
|
1053
|
+
...options
|
|
1054
|
+
});
|
|
1055
|
+
};
|
|
1056
|
+
var customerControllerGet = (options) => {
|
|
1057
|
+
return (options.client ?? client).get({
|
|
1058
|
+
security: [
|
|
1059
|
+
{
|
|
1060
|
+
scheme: "bearer",
|
|
1061
|
+
type: "http"
|
|
1062
|
+
}
|
|
1063
|
+
],
|
|
1064
|
+
url: "/customer/{id}",
|
|
1065
|
+
...options
|
|
1066
|
+
});
|
|
1067
|
+
};
|
|
1068
|
+
var customerControllerUpdate = (options) => {
|
|
1069
|
+
return (options.client ?? client).patch({
|
|
1070
|
+
security: [
|
|
1071
|
+
{
|
|
1072
|
+
scheme: "bearer",
|
|
1073
|
+
type: "http"
|
|
1074
|
+
}
|
|
1075
|
+
],
|
|
1076
|
+
url: "/customer/{id}",
|
|
1077
|
+
...options,
|
|
1078
|
+
headers: {
|
|
1079
|
+
"Content-Type": "application/json",
|
|
1080
|
+
...options?.headers
|
|
1081
|
+
}
|
|
1082
|
+
});
|
|
1083
|
+
};
|
|
1084
|
+
var customerControllerCreate = (options) => {
|
|
1085
|
+
return (options.client ?? client).post({
|
|
1086
|
+
security: [
|
|
1087
|
+
{
|
|
1088
|
+
scheme: "bearer",
|
|
1089
|
+
type: "http"
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
url: "/customer",
|
|
1093
|
+
...options,
|
|
1094
|
+
headers: {
|
|
1095
|
+
"Content-Type": "application/json",
|
|
1096
|
+
...options?.headers
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
};
|
|
1100
|
+
var zoneControllerList = (options) => {
|
|
1101
|
+
return (options?.client ?? client).get({
|
|
1102
|
+
security: [
|
|
1103
|
+
{
|
|
1104
|
+
scheme: "bearer",
|
|
1105
|
+
type: "http"
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
url: "/zone/list",
|
|
1109
|
+
...options
|
|
1110
|
+
});
|
|
1111
|
+
};
|
|
1112
|
+
var zoneControllerDelete = (options) => {
|
|
1113
|
+
return (options.client ?? client).delete({
|
|
1114
|
+
security: [
|
|
1115
|
+
{
|
|
1116
|
+
scheme: "bearer",
|
|
1117
|
+
type: "http"
|
|
1118
|
+
}
|
|
1119
|
+
],
|
|
1120
|
+
url: "/zone/{id}",
|
|
1121
|
+
...options
|
|
1122
|
+
});
|
|
1123
|
+
};
|
|
1124
|
+
var zoneControllerGet = (options) => {
|
|
1125
|
+
return (options.client ?? client).get({
|
|
1126
|
+
security: [
|
|
1127
|
+
{
|
|
1128
|
+
scheme: "bearer",
|
|
1129
|
+
type: "http"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
url: "/zone/{id}",
|
|
1133
|
+
...options
|
|
1134
|
+
});
|
|
1135
|
+
};
|
|
1136
|
+
var zoneControllerUpdate = (options) => {
|
|
1137
|
+
return (options.client ?? client).patch({
|
|
1138
|
+
security: [
|
|
1139
|
+
{
|
|
1140
|
+
scheme: "bearer",
|
|
1141
|
+
type: "http"
|
|
1142
|
+
}
|
|
1143
|
+
],
|
|
1144
|
+
url: "/zone/{id}",
|
|
1145
|
+
...options,
|
|
1146
|
+
headers: {
|
|
1147
|
+
"Content-Type": "application/json",
|
|
1148
|
+
...options?.headers
|
|
1149
|
+
}
|
|
1150
|
+
});
|
|
1151
|
+
};
|
|
1152
|
+
var zoneControllerCreate = (options) => {
|
|
1153
|
+
return (options.client ?? client).post({
|
|
1154
|
+
security: [
|
|
1155
|
+
{
|
|
1156
|
+
scheme: "bearer",
|
|
1157
|
+
type: "http"
|
|
1158
|
+
}
|
|
1159
|
+
],
|
|
1160
|
+
url: "/zone",
|
|
1161
|
+
...options,
|
|
1162
|
+
headers: {
|
|
1163
|
+
"Content-Type": "application/json",
|
|
1164
|
+
...options?.headers
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
};
|
|
1168
|
+
var groupControllerList = (options) => {
|
|
1169
|
+
return (options?.client ?? client).get({
|
|
1170
|
+
security: [
|
|
1171
|
+
{
|
|
1172
|
+
scheme: "bearer",
|
|
1173
|
+
type: "http"
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
url: "/group/list",
|
|
1177
|
+
...options
|
|
1178
|
+
});
|
|
1179
|
+
};
|
|
1180
|
+
var groupControllerDelete = (options) => {
|
|
1181
|
+
return (options.client ?? client).delete({
|
|
1182
|
+
security: [
|
|
1183
|
+
{
|
|
1184
|
+
scheme: "bearer",
|
|
1185
|
+
type: "http"
|
|
1186
|
+
}
|
|
1187
|
+
],
|
|
1188
|
+
url: "/group/{id}",
|
|
1189
|
+
...options
|
|
1190
|
+
});
|
|
1191
|
+
};
|
|
1192
|
+
var groupControllerGet = (options) => {
|
|
1193
|
+
return (options.client ?? client).get({
|
|
1194
|
+
security: [
|
|
1195
|
+
{
|
|
1196
|
+
scheme: "bearer",
|
|
1197
|
+
type: "http"
|
|
1198
|
+
}
|
|
1199
|
+
],
|
|
1200
|
+
url: "/group/{id}",
|
|
1201
|
+
...options
|
|
1202
|
+
});
|
|
1203
|
+
};
|
|
1204
|
+
var groupControllerUpdate = (options) => {
|
|
1205
|
+
return (options.client ?? client).patch({
|
|
1206
|
+
security: [
|
|
1207
|
+
{
|
|
1208
|
+
scheme: "bearer",
|
|
1209
|
+
type: "http"
|
|
1210
|
+
}
|
|
1211
|
+
],
|
|
1212
|
+
url: "/group/{id}",
|
|
1213
|
+
...options,
|
|
1214
|
+
headers: {
|
|
1215
|
+
"Content-Type": "application/json",
|
|
1216
|
+
...options?.headers
|
|
1217
|
+
}
|
|
1218
|
+
});
|
|
1219
|
+
};
|
|
1220
|
+
var groupControllerCreate = (options) => {
|
|
1221
|
+
return (options.client ?? client).post({
|
|
1222
|
+
security: [
|
|
1223
|
+
{
|
|
1224
|
+
scheme: "bearer",
|
|
1225
|
+
type: "http"
|
|
1226
|
+
}
|
|
1227
|
+
],
|
|
1228
|
+
url: "/group",
|
|
1229
|
+
...options,
|
|
1230
|
+
headers: {
|
|
1231
|
+
"Content-Type": "application/json",
|
|
1232
|
+
...options?.headers
|
|
1233
|
+
}
|
|
1234
|
+
});
|
|
1235
|
+
};
|
|
1236
|
+
var devicePublicControllerList = (options) => {
|
|
1237
|
+
return (options?.client ?? client).get({
|
|
1238
|
+
security: [
|
|
1239
|
+
{
|
|
1240
|
+
scheme: "bearer",
|
|
1241
|
+
type: "http"
|
|
1242
|
+
}
|
|
1243
|
+
],
|
|
1244
|
+
url: "/device/list",
|
|
1245
|
+
...options
|
|
1246
|
+
});
|
|
1247
|
+
};
|
|
1248
|
+
var devicePublicControllerGet = (options) => {
|
|
1249
|
+
return (options.client ?? client).get({
|
|
1250
|
+
security: [
|
|
1251
|
+
{
|
|
1252
|
+
scheme: "bearer",
|
|
1253
|
+
type: "http"
|
|
1254
|
+
}
|
|
1255
|
+
],
|
|
1256
|
+
url: "/device/{id}",
|
|
1257
|
+
...options
|
|
1258
|
+
});
|
|
1259
|
+
};
|
|
1260
|
+
var timesheetPublicControllerList = (options) => {
|
|
1261
|
+
return (options?.client ?? client).get({
|
|
1262
|
+
security: [
|
|
1263
|
+
{
|
|
1264
|
+
scheme: "bearer",
|
|
1265
|
+
type: "http"
|
|
1266
|
+
}
|
|
1267
|
+
],
|
|
1268
|
+
url: "/timesheet/list",
|
|
1269
|
+
...options
|
|
1270
|
+
});
|
|
1271
|
+
};
|
|
1272
|
+
var timesheetPublicControllerGet = (options) => {
|
|
1273
|
+
return (options.client ?? client).get({
|
|
1274
|
+
security: [
|
|
1275
|
+
{
|
|
1276
|
+
scheme: "bearer",
|
|
1277
|
+
type: "http"
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
url: "/timesheet/{id}",
|
|
1281
|
+
...options
|
|
1282
|
+
});
|
|
1283
|
+
};
|
|
472
1284
|
var siteControllerListSites = (options) => {
|
|
473
1285
|
return (options?.client ?? client).get({
|
|
474
1286
|
security: [
|
|
@@ -528,7 +1340,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
528
1340
|
|
|
529
1341
|
// src/client.ts
|
|
530
1342
|
var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
531
|
-
var PACKAGE_VERSION = "0.
|
|
1343
|
+
var PACKAGE_VERSION = "0.4.0";
|
|
532
1344
|
function unwrap(result) {
|
|
533
1345
|
if (result.data === void 0) {
|
|
534
1346
|
throw new WakataApiError({
|
|
@@ -686,12 +1498,107 @@ var WakataClient = class {
|
|
|
686
1498
|
update: async (opts) => unwrap(await assetClassPropertyControllerUpdate({ ...opts, client: client2 })),
|
|
687
1499
|
delete: async (opts) => unwrap(await assetClassPropertyControllerRemove({ ...opts, client: client2 }))
|
|
688
1500
|
};
|
|
1501
|
+
const docResource = (fns) => ({
|
|
1502
|
+
list: async (opts) => unwrap(await fns.list({ ...opts ?? {}, client: client2 })),
|
|
1503
|
+
get: async (opts) => unwrap(await fns.get({ ...opts, client: client2 })),
|
|
1504
|
+
create: async (opts) => unwrap(await fns.create({ ...opts, client: client2 })),
|
|
1505
|
+
update: async (opts) => unwrap(await fns.update({ ...opts, client: client2 })),
|
|
1506
|
+
delete: async (opts) => unwrap(await fns.remove({ ...opts, client: client2 }))
|
|
1507
|
+
});
|
|
1508
|
+
this.documents = {
|
|
1509
|
+
uploadUrl: async (opts) => unwrap(await documentUploadControllerUploadUrl({ ...opts, client: client2 })),
|
|
1510
|
+
asset: docResource({
|
|
1511
|
+
list: assetDocumentControllerList,
|
|
1512
|
+
get: assetDocumentControllerGet,
|
|
1513
|
+
create: assetDocumentControllerCreate,
|
|
1514
|
+
update: assetDocumentControllerUpdate,
|
|
1515
|
+
remove: assetDocumentControllerRemove
|
|
1516
|
+
}),
|
|
1517
|
+
assetClass: docResource({
|
|
1518
|
+
list: assetClassDocumentControllerList,
|
|
1519
|
+
get: assetClassDocumentControllerGet,
|
|
1520
|
+
create: assetClassDocumentControllerCreate,
|
|
1521
|
+
update: assetClassDocumentControllerUpdate,
|
|
1522
|
+
remove: assetClassDocumentControllerRemove
|
|
1523
|
+
}),
|
|
1524
|
+
user: docResource({
|
|
1525
|
+
list: userDocumentControllerList,
|
|
1526
|
+
get: userDocumentControllerGet,
|
|
1527
|
+
create: userDocumentControllerCreate,
|
|
1528
|
+
update: userDocumentControllerUpdate,
|
|
1529
|
+
remove: userDocumentControllerRemove
|
|
1530
|
+
}),
|
|
1531
|
+
site: docResource({
|
|
1532
|
+
list: siteDocumentControllerList,
|
|
1533
|
+
get: siteDocumentControllerGet,
|
|
1534
|
+
create: siteDocumentControllerCreate,
|
|
1535
|
+
update: siteDocumentControllerUpdate,
|
|
1536
|
+
remove: siteDocumentControllerRemove
|
|
1537
|
+
}),
|
|
1538
|
+
customer: docResource({
|
|
1539
|
+
list: customerDocumentControllerList,
|
|
1540
|
+
get: customerDocumentControllerGet,
|
|
1541
|
+
create: customerDocumentControllerCreate,
|
|
1542
|
+
update: customerDocumentControllerUpdate,
|
|
1543
|
+
remove: customerDocumentControllerRemove
|
|
1544
|
+
}),
|
|
1545
|
+
project: docResource({
|
|
1546
|
+
list: projectDocumentControllerList,
|
|
1547
|
+
get: projectDocumentControllerGet,
|
|
1548
|
+
create: projectDocumentControllerCreate,
|
|
1549
|
+
update: projectDocumentControllerUpdate,
|
|
1550
|
+
remove: projectDocumentControllerRemove
|
|
1551
|
+
}),
|
|
1552
|
+
job: docResource({
|
|
1553
|
+
list: jobDocumentControllerList,
|
|
1554
|
+
get: jobDocumentControllerGet,
|
|
1555
|
+
create: jobDocumentControllerCreate,
|
|
1556
|
+
update: jobDocumentControllerUpdate,
|
|
1557
|
+
remove: jobDocumentControllerRemove
|
|
1558
|
+
}),
|
|
1559
|
+
company: docResource({
|
|
1560
|
+
list: companyDocumentControllerList,
|
|
1561
|
+
get: companyDocumentControllerGet,
|
|
1562
|
+
create: companyDocumentControllerCreate,
|
|
1563
|
+
update: companyDocumentControllerUpdate,
|
|
1564
|
+
remove: companyDocumentControllerRemove
|
|
1565
|
+
})
|
|
1566
|
+
};
|
|
1567
|
+
this.customers = {
|
|
1568
|
+
list: async (opts) => unwrap(await customerControllerList({ ...opts ?? {}, client: client2 })),
|
|
1569
|
+
get: async (opts) => unwrap(await customerControllerGet({ ...opts, client: client2 })),
|
|
1570
|
+
create: async (opts) => unwrap(await customerControllerCreate({ ...opts, client: client2 })),
|
|
1571
|
+
update: async (opts) => unwrap(await customerControllerUpdate({ ...opts, client: client2 })),
|
|
1572
|
+
delete: async (opts) => unwrap(await customerControllerDelete({ ...opts, client: client2 }))
|
|
1573
|
+
};
|
|
1574
|
+
this.zones = {
|
|
1575
|
+
list: async (opts) => unwrap(await zoneControllerList({ ...opts ?? {}, client: client2 })),
|
|
1576
|
+
get: async (opts) => unwrap(await zoneControllerGet({ ...opts, client: client2 })),
|
|
1577
|
+
create: async (opts) => unwrap(await zoneControllerCreate({ ...opts, client: client2 })),
|
|
1578
|
+
update: async (opts) => unwrap(await zoneControllerUpdate({ ...opts, client: client2 })),
|
|
1579
|
+
delete: async (opts) => unwrap(await zoneControllerDelete({ ...opts, client: client2 }))
|
|
1580
|
+
};
|
|
1581
|
+
this.groups = {
|
|
1582
|
+
list: async (opts) => unwrap(await groupControllerList({ ...opts ?? {}, client: client2 })),
|
|
1583
|
+
get: async (opts) => unwrap(await groupControllerGet({ ...opts, client: client2 })),
|
|
1584
|
+
create: async (opts) => unwrap(await groupControllerCreate({ ...opts, client: client2 })),
|
|
1585
|
+
update: async (opts) => unwrap(await groupControllerUpdate({ ...opts, client: client2 })),
|
|
1586
|
+
delete: async (opts) => unwrap(await groupControllerDelete({ ...opts, client: client2 }))
|
|
1587
|
+
};
|
|
1588
|
+
this.devices = {
|
|
1589
|
+
list: async (opts) => unwrap(await devicePublicControllerList({ ...opts ?? {}, client: client2 })),
|
|
1590
|
+
get: async (opts) => unwrap(await devicePublicControllerGet({ ...opts, client: client2 }))
|
|
1591
|
+
};
|
|
1592
|
+
this.timesheets = {
|
|
1593
|
+
list: async (opts) => unwrap(await timesheetPublicControllerList({ ...opts ?? {}, client: client2 })),
|
|
1594
|
+
get: async (opts) => unwrap(await timesheetPublicControllerGet({ ...opts, client: client2 }))
|
|
1595
|
+
};
|
|
689
1596
|
}
|
|
690
1597
|
};
|
|
691
1598
|
|
|
692
1599
|
// src/index.ts
|
|
693
1600
|
var PACKAGE_NAME = "@wakata-dev/api-client";
|
|
694
|
-
var PACKAGE_VERSION2 = "0.3.
|
|
1601
|
+
var PACKAGE_VERSION2 = "0.3.3";
|
|
695
1602
|
var DEFAULT_BASE_URL2 = "https://api.wakata.ai/api/v1";
|
|
696
1603
|
|
|
697
1604
|
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL2;
|